]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Win32 tweaks
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895  --with-readline=DIR             specify readline library directory
896
897   --with-python=DIR       Include Python support.  DIR is the Python base
898                           install directory, default is to search through
899                           a number of common places for the Python files.
900   --with-tcp-wrappers=DIR        enable tcpwrappers support
901   --with-openssl[=DIR]
902                           Include OpenSSL support. DIR is the OpenSSL base
903   --with-working-dir=PATH        specify path of Bacula working directory
904   --with-scriptdir=PATH    specify path of Bacula scripts directory
905   --with-dump-email=EMAIL        dump email address
906   --with-job-email=EMAIL         job output email address
907   --with-smtp-host=HOST          SMTP mail host address
908   --with-pid-dir=PATH            specify location of Bacula pid files
909   --with-subsys-dir=PATH         specify location of Bacula subsys file
910   --with-baseport=PORT           specify base port address for daemons
911   --with-dir-password=PASSWORD   specify Director's password
912   --with-fd-password=PASSWORD    specify Client's password
913   --with-sd-password=PASSWORD    specify Storage daemon's password
914   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
915   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
916   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
917   --with-dir-user=USER           specify user for Director daemon
918   --with-dir-group=GROUP                 specify group for Director daemon
919   --with-sd-user=USER            specify user for Storage daemon
920   --with-sd-group=GROUP          specify group for Storage daemon
921   --with-fd-user=USER            specify user for File daemon
922   --with-fd-group=GROUP          specify group for File daemon
923   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
924   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
925                           base install directory, defaults to /usr/local/pgsql
926
927   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
928                           install directory, default is to search through
929                           a number of common places for the MySQL files.
930
931   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
932                           install directory, default is to search through
933                           a number of common places for the MySQL files.
934
935   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
936                           install directory, default is to search through
937                           a number of common places for the SQLite3 files.
938
939   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
940                           install directory, default is to search through
941                           a number of common places for the SQLite files.
942   --with-x                use the X Window System
943
944 Some influential environment variables:
945   CC          C compiler command
946   CFLAGS      C compiler flags
947   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
948               nonstandard directory <lib dir>
949   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
950               headers in a nonstandard directory <include dir>
951   CXX         C++ compiler command
952   CXXFLAGS    C++ compiler flags
953   CPP         C preprocessor
954   WXCONFIG    wx-config command. On some systems, you must set it to
955               wx-config-2.6 to use wxWidgets 2.6.
956   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965   # If there are subdirs, report their specific --help.
966   ac_popdir=`pwd`
967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968     test -d $ac_dir || continue
969     ac_builddir=.
970
971 if test "$ac_dir" != .; then
972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973   # A "../" for each directory in $ac_dir_suffix.
974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976   ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980   .)  # No --srcdir option.  We are building in place.
981     ac_srcdir=.
982     if test -z "$ac_top_builddir"; then
983        ac_top_srcdir=.
984     else
985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986     fi ;;
987   [\\/]* | ?:[\\/]* )  # Absolute path.
988     ac_srcdir=$srcdir$ac_dir_suffix;
989     ac_top_srcdir=$srcdir ;;
990   *) # Relative path.
991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000   case "$ac_dir" in
1001   .) ac_abs_builddir=`pwd`;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009   case ${ac_top_builddir}. in
1010   .) ac_abs_top_builddir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018   case $ac_srcdir in
1019   .) ac_abs_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027   case $ac_top_srcdir in
1028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031   esac;;
1032 esac
1033
1034     cd $ac_dir
1035     # Check for guested configure; otherwise get Cygnus style configure.
1036     if test -f $ac_srcdir/configure.gnu; then
1037       echo
1038       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1039     elif test -f $ac_srcdir/configure; then
1040       echo
1041       $SHELL $ac_srcdir/configure  --help=recursive
1042     elif test -f $ac_srcdir/configure.ac ||
1043            test -f $ac_srcdir/configure.in; then
1044       echo
1045       $ac_configure --help
1046     else
1047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048     fi
1049     cd $ac_popdir
1050   done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055   cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061   exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59.  Invocation command line was
1070
1071   $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1088
1089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102   IFS=$as_save_IFS
1103   test -z "$as_dir" && as_dir=.
1104   echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131   for ac_arg
1132   do
1133     case $ac_arg in
1134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136     | -silent | --silent | --silen | --sile | --sil)
1137       continue ;;
1138     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140     esac
1141     case $ac_pass in
1142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143     2)
1144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145       if test $ac_must_keep_next = true; then
1146         ac_must_keep_next=false # Got value, back to normal.
1147       else
1148         case $ac_arg in
1149           *=* | --config-cache | -C | -disable-* | --disable-* \
1150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152           | -with-* | --with-* | -without-* | --without-* | --x)
1153             case "$ac_configure_args0 " in
1154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155             esac
1156             ;;
1157           -* ) ac_must_keep_next=true ;;
1158         esac
1159       fi
1160       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161       # Get rid of the leading space.
1162       ac_sep=" "
1163       ;;
1164     esac
1165   done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log.  We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176   # Save into config.log some information that might help in debugging.
1177   {
1178     echo
1179
1180     cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185     echo
1186     # The following way of writing the cache mishandles newlines in values,
1187 {
1188   (set) 2>&1 |
1189     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190     *ac_space=\ *)
1191       sed -n \
1192         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194       ;;
1195     *)
1196       sed -n \
1197         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198       ;;
1199     esac;
1200 }
1201     echo
1202
1203     cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208     echo
1209     for ac_var in $ac_subst_vars
1210     do
1211       eval ac_val=$`echo $ac_var`
1212       echo "$ac_var='"'"'$ac_val'"'"'"
1213     done | sort
1214     echo
1215
1216     if test -n "$ac_subst_files"; then
1217       cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222       echo
1223       for ac_var in $ac_subst_files
1224       do
1225         eval ac_val=$`echo $ac_var`
1226         echo "$ac_var='"'"'$ac_val'"'"'"
1227       done | sort
1228       echo
1229     fi
1230
1231     if test -s confdefs.h; then
1232       cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237       echo
1238       sed "/^$/d" confdefs.h | sort
1239       echo
1240     fi
1241     test "$ac_signal" != 0 &&
1242       echo "$as_me: caught signal $ac_signal"
1243     echo "$as_me: exit $exit_status"
1244   } >&5
1245   rm -f core *.core &&
1246   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247     exit $exit_status
1248      ' 0
1249 for ac_signal in 1 2 13 15; do
1250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289   if test "x$prefix" != xNONE; then
1290     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291   else
1292     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293   fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296   if test -r "$ac_site_file"; then
1297     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299     sed 's/^/| /' "$ac_site_file" >&5
1300     . "$ac_site_file"
1301   fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305   # Some versions of bash will fail to source /dev/null (special
1306   # files actually), so we avoid doing that.
1307   if test -f "$cache_file"; then
1308     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310     case $cache_file in
1311       [\\/]* | ?:[\\/]* ) . $cache_file;;
1312       *)                      . ./$cache_file;;
1313     esac
1314   fi
1315 else
1316   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318   >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327   eval ac_new_set=\$ac_env_${ac_var}_set
1328   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329   eval ac_new_val="\$ac_env_${ac_var}_value"
1330   case $ac_old_set,$ac_new_set in
1331     set,)
1332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334       ac_cache_corrupted=: ;;
1335     ,set)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,);;
1340     *)
1341       if test "x$ac_old_val" != "x$ac_new_val"; then
1342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1345 echo "$as_me:   former value:  $ac_old_val" >&2;}
1346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1347 echo "$as_me:   current value: $ac_new_val" >&2;}
1348         ac_cache_corrupted=:
1349       fi;;
1350   esac
1351   # Pass precious variables to config.status.
1352   if test "$ac_new_set" = set; then
1353     case $ac_new_val in
1354     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356     *) ac_arg=$ac_var=$ac_new_val ;;
1357     esac
1358     case " $ac_configure_args " in
1359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1360       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361     esac
1362   fi
1363 done
1364 if $ac_cache_corrupted; then
1365   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396 BUILD_DIR=`pwd`
1397 cd ..
1398 TOP_DIR=`pwd`
1399 cd ${BUILD_DIR}
1400
1401 ac_aux_dir=
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403   if test -f $ac_dir/install-sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install-sh -c"
1406     break
1407   elif test -f $ac_dir/install.sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install.sh -c"
1410     break
1411   elif test -f $ac_dir/shtool; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/shtool install -c"
1414     break
1415   fi
1416 done
1417 if test -z "$ac_aux_dir"; then
1418   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1427
1428
1429
1430
1431
1432 for ac_prog in true
1433 do
1434   # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   case $TRUEPRG in
1442   [\\/]* | ?:[\\/]*)
1443   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1444   ;;
1445   *)
1446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460   ;;
1461 esac
1462 fi
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1464
1465 if test -n "$TRUEPRG"; then
1466   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1468 else
1469   echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473   test -n "$TRUEPRG" && break
1474 done
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1476
1477 for ac_prog in false
1478 do
1479   # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   case $FALSEPRG in
1487   [\\/]* | ?:[\\/]*)
1488   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1489   ;;
1490   *)
1491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   for ac_exec_ext in '' $ac_executable_extensions; do
1497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
1505   ;;
1506 esac
1507 fi
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1509
1510 if test -n "$FALSEPRG"; then
1511   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518   test -n "$FALSEPRG" && break
1519 done
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1521
1522
1523 #AC_CANONICAL_HOST
1524
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1529
1530
1531
1532 ac_ext=c
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   if test -n "$CC"; then
1546   ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   for ac_exec_ext in '' $ac_executable_extensions; do
1554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557     break 2
1558   fi
1559 done
1560 done
1561
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$ac_cv_prog_CC"; then
1575   ac_ct_CC=$CC
1576   # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   if test -n "$ac_ct_CC"; then
1584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     ac_cv_prog_ac_ct_CC="gcc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611   CC=$ac_ct_CC
1612 else
1613   CC="$ac_cv_prog_CC"
1614 fi
1615
1616 if test -z "$CC"; then
1617   if test -n "$ac_tool_prefix"; then
1618   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_CC="${ac_tool_prefix}cc"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 fi
1654 if test -z "$ac_cv_prog_CC"; then
1655   ac_ct_CC=$CC
1656   # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$ac_ct_CC"; then
1664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_ac_ct_CC="cc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691   CC=$ac_ct_CC
1692 else
1693   CC="$ac_cv_prog_CC"
1694 fi
1695
1696 fi
1697 if test -z "$CC"; then
1698   # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$CC"; then
1706   ac_cv_prog_CC="$CC" # Let the user override the test.
1707 else
1708   ac_prog_rejected=no
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717        ac_prog_rejected=yes
1718        continue
1719      fi
1720     ac_cv_prog_CC="cc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726
1727 if test $ac_prog_rejected = yes; then
1728   # We found a bogon in the path, so make sure we never use it.
1729   set dummy $ac_cv_prog_CC
1730   shift
1731   if test $# != 0; then
1732     # We chose a different compiler from the bogus one.
1733     # However, it has the same basename, so the bogon will be chosen
1734     # first if we set CC to just the basename; use the full file name.
1735     shift
1736     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1737   fi
1738 fi
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$CC"; then
1752   if test -n "$ac_tool_prefix"; then
1753   for ac_prog in cl
1754   do
1755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$CC"; then
1763   ac_cv_prog_CC="$CC" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768   IFS=$as_save_IFS
1769   test -z "$as_dir" && as_dir=.
1770   for ac_exec_ext in '' $ac_executable_extensions; do
1771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 fi
1780 fi
1781 CC=$ac_cv_prog_CC
1782 if test -n "$CC"; then
1783   echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1785 else
1786   echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1788 fi
1789
1790     test -n "$CC" && break
1791   done
1792 fi
1793 if test -z "$CC"; then
1794   ac_ct_CC=$CC
1795   for ac_prog in cl
1796 do
1797   # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$ac_ct_CC"; then
1805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     ac_cv_prog_ac_ct_CC="$ac_prog"
1815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816     break 2
1817   fi
1818 done
1819 done
1820
1821 fi
1822 fi
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830 fi
1831
1832   test -n "$ac_ct_CC" && break
1833 done
1834
1835   CC=$ac_ct_CC
1836 fi
1837
1838 fi
1839
1840
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845    { (exit 1); exit 1; }; }
1846
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849      "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852   (eval $ac_compiler --version </dev/null >&5) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857   (eval $ac_compiler -v </dev/null >&5) 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862   (eval $ac_compiler -V </dev/null >&5) 2>&5
1863   ac_status=$?
1864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865   (exit $ac_status); }
1866
1867 cat >conftest.$ac_ext <<_ACEOF
1868 /* confdefs.h.  */
1869 _ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h.  */
1873
1874 int
1875 main ()
1876 {
1877
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1886 # of exeext.
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891   (eval $ac_link_default) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; then
1895   # Find the output, starting from the most likely.  This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1897 # resort.
1898
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1901 ac_cv_exeext=
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1904 do
1905   test -f "$ac_file" || continue
1906   case $ac_file in
1907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1908         ;;
1909     conftest.$ac_ext )
1910         # This is the source file.
1911         ;;
1912     [ab].out )
1913         # We found the default executable, but exeext='' is most
1914         # certainly right.
1915         break;;
1916     *.* )
1917         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918         # FIXME: I believe we export ac_cv_exeext for Libtool,
1919         # but it would be cool to find out if it's true.  Does anybody
1920         # maintain Libtool? --akim.
1921         export ac_cv_exeext
1922         break;;
1923     * )
1924         break;;
1925   esac
1926 done
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935    { (exit 77); exit 77; }; }
1936 fi
1937
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1941
1942 # Check the compiler produces executables we can run.  If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949   if { ac_try='./$ac_file'
1950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951   (eval $ac_try) 2>&5
1952   ac_status=$?
1953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954   (exit $ac_status); }; }; then
1955     cross_compiling=no
1956   else
1957     if test "$cross_compiling" = maybe; then
1958         cross_compiling=yes
1959     else
1960         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966    { (exit 1); exit 1; }; }
1967     fi
1968   fi
1969 fi
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1972
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run.  If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1981
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985   (eval $ac_link) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }; then
1989   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1992 # `rm'.
1993 for ac_file in conftest.exe conftest conftest.*; do
1994   test -f "$ac_file" || continue
1995   case $ac_file in
1996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1998           export ac_cv_exeext
1999           break;;
2000     * ) break;;
2001   esac
2002 done
2003 else
2004   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2014
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2017 ac_exeext=$EXEEXT
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   cat >conftest.$ac_ext <<_ACEOF
2024 /* confdefs.h.  */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h.  */
2029
2030 int
2031 main ()
2032 {
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040   (eval $ac_compile) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2045   case $ac_file in
2046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2048        break;;
2049   esac
2050 done
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2067 ac_objext=$OBJEXT
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   cat >conftest.$ac_ext <<_ACEOF
2074 /* confdefs.h.  */
2075 _ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h.  */
2079
2080 int
2081 main ()
2082 {
2083 #ifndef __GNUC__
2084        choke me
2085 #endif
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093   (eval $ac_compile) 2>conftest.er1
2094   ac_status=$?
2095   grep -v '^ *+' conftest.er1 >conftest.err
2096   rm -f conftest.er1
2097   cat conftest.err >&5
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -z "$ac_c_werror_flag"
2101                          || test ! -s conftest.err'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_compiler_gnu=yes
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_compiler_gnu=no
2119 fi
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123 fi
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2129 CFLAGS="-g"
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>conftest.er1
2153   ac_status=$?
2154   grep -v '^ *+' conftest.er1 >conftest.err
2155   rm -f conftest.er1
2156   cat conftest.err >&5
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); } &&
2159          { ac_try='test -z "$ac_c_werror_flag"
2160                          || test ! -s conftest.err'
2161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162   (eval $ac_try) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; } &&
2166          { ac_try='test -s conftest.$ac_objext'
2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168   (eval $ac_try) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; }; then
2172   ac_cv_prog_cc_g=yes
2173 else
2174   echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_cv_prog_cc_g=no
2178 fi
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184   CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186   if test "$GCC" = yes; then
2187     CFLAGS="-g -O2"
2188   else
2189     CFLAGS="-g"
2190   fi
2191 else
2192   if test "$GCC" = yes; then
2193     CFLAGS="-O2"
2194   else
2195     CFLAGS=
2196   fi
2197 fi
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   ac_cv_prog_cc_stdc=no
2204 ac_save_CC=$CC
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 #include <stdarg.h>
2212 #include <stdio.h>
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2219      char **p;
2220      int i;
2221 {
2222   return p[i];
2223 }
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2225 {
2226   char *s;
2227   va_list v;
2228   va_start (v,p);
2229   s = g (p, va_arg (v,int));
2230   va_end (v);
2231   return s;
2232 }
2233
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2235    function prototypes and stuff, but not '\xHH' hex character constants.
2236    These don't provoke an error unfortunately, instead are silently treated
2237    as 'x'.  The following induces an error, until -std1 is added to get
2238    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2239    array size at least.  It's necessary to write '\x00'==0 to get something
2240    that's true only with -std1.  */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2242
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2247 int argc;
2248 char **argv;
2249 int
2250 main ()
2251 {
2252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX                   -qlanglvl=ansi
2260 # Ultrix and OSF/1      -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2263 # SVR4                  -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2265 do
2266   CC="$ac_save_CC $ac_arg"
2267   rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>conftest.er1
2270   ac_status=$?
2271   grep -v '^ *+' conftest.er1 >conftest.err
2272   rm -f conftest.er1
2273   cat conftest.err >&5
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); } &&
2276          { ac_try='test -z "$ac_c_werror_flag"
2277                          || test ! -s conftest.err'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   ac_cv_prog_cc_stdc=$ac_arg
2290 break
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 fi
2296 rm -f conftest.err conftest.$ac_objext
2297 done
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2299 CC=$ac_save_CC
2300
2301 fi
2302
2303 case "x$ac_cv_prog_cc_stdc" in
2304   x|xno)
2305     echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2307   *)
2308     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310     CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 esac
2312
2313 # Some people use a C++ compiler to compile C.  Since we use `exit',
2314 # in C++ we need to declare it.  In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #ifndef __cplusplus
2319   choke me
2320 #endif
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   for ac_declaration in \
2345    '' \
2346    'extern "C" void std::exit (int) throw (); using std::exit;' \
2347    'extern "C" void std::exit (int); using std::exit;' \
2348    'extern "C" void exit (int) throw ();' \
2349    'extern "C" void exit (int);' \
2350    'void exit (int);'
2351 do
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358 $ac_declaration
2359 #include <stdlib.h>
2360 int
2361 main ()
2362 {
2363 exit (42);
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag"
2378                          || test ! -s conftest.err'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   :
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 continue
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404 $ac_declaration
2405 int
2406 main ()
2407 {
2408 exit (42);
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_c_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   break
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 fi
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443 rm -f conftest*
2444 if test -n "$ac_declaration"; then
2445   echo '#ifdef __cplusplus' >>confdefs.h
2446   echo $ac_declaration      >>confdefs.h
2447   echo '#endif'             >>confdefs.h
2448 fi
2449
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462 ac_ext=cc
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2469   do
2470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$CXX"; then
2478   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493
2494 fi
2495 fi
2496 CXX=$ac_cv_prog_CXX
2497 if test -n "$CXX"; then
2498   echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2500 else
2501   echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505     test -n "$CXX" && break
2506   done
2507 fi
2508 if test -z "$CXX"; then
2509   ac_ct_CXX=$CXX
2510   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2511 do
2512   # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_CXX"; then
2520   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529     ac_cv_prog_ac_ct_CXX="$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535
2536 fi
2537 fi
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2542 else
2543   echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2545 fi
2546
2547   test -n "$ac_ct_CXX" && break
2548 done
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2550
2551   CXX=$ac_ct_CXX
2552 fi
2553
2554
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557      "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560   (eval $ac_compiler --version </dev/null >&5) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565   (eval $ac_compiler -v </dev/null >&5) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570   (eval $ac_compiler -V </dev/null >&5) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }
2574
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590 #ifndef __GNUC__
2591        choke me
2592 #endif
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_cxx_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   ac_compiler_gnu=yes
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 ac_compiler_gnu=no
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2636 CXXFLAGS="-g"
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_cxx_werror_flag"
2667                          || test ! -s conftest.err'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   ac_cv_prog_cxx_g=yes
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 ac_cv_prog_cxx_g=no
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691   CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693   if test "$GXX" = yes; then
2694     CXXFLAGS="-g -O2"
2695   else
2696     CXXFLAGS="-g"
2697   fi
2698 else
2699   if test "$GXX" = yes; then
2700     CXXFLAGS="-O2"
2701   else
2702     CXXFLAGS=
2703   fi
2704 fi
2705 for ac_declaration in \
2706    '' \
2707    'extern "C" void std::exit (int) throw (); using std::exit;' \
2708    'extern "C" void std::exit (int); using std::exit;' \
2709    'extern "C" void exit (int) throw ();' \
2710    'extern "C" void exit (int);' \
2711    'void exit (int);'
2712 do
2713   cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719 $ac_declaration
2720 #include <stdlib.h>
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_cxx_werror_flag"
2739                          || test ! -s conftest.err'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 continue
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765 $ac_declaration
2766 int
2767 main ()
2768 {
2769 exit (42);
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776   (eval $ac_compile) 2>conftest.er1
2777   ac_status=$?
2778   grep -v '^ *+' conftest.er1 >conftest.err
2779   rm -f conftest.er1
2780   cat conftest.err >&5
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -z "$ac_cxx_werror_flag"
2784                          || test ! -s conftest.err'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796   break
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804 rm -f conftest*
2805 if test -n "$ac_declaration"; then
2806   echo '#ifdef __cplusplus' >>confdefs.h
2807   echo $ac_declaration      >>confdefs.h
2808   echo '#endif'             >>confdefs.h
2809 fi
2810
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817 if test "x$CC" != xcc; then
2818   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2820 else
2821   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2823 fi
2824 set dummy $CC; ac_cc=`echo $2 |
2825                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); };
2858 then
2859   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860   if test "x$CC" != xcc; then
2861     # Test first that cc exists at all.
2862     if { ac_try='cc -c conftest.$ac_ext >&5'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } &&
2874          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); };
2879       then
2880         # cc works too.
2881         :
2882       else
2883         # cc exists but doesn't like -o.
2884         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885       fi
2886     fi
2887   fi
2888 else
2889   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2890 fi
2891 rm -f conftest*
2892
2893 fi
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895   echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2897 else
2898   echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2903 _ACEOF
2904
2905 fi
2906
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2916   CPP=
2917 fi
2918 if test -z "$CPP"; then
2919   if test "${ac_cv_prog_CPP+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922       # Double quotes because CPP needs to be expanded
2923     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924     do
2925       ac_preproc_ok=false
2926 for ac_c_preproc_warn_flag in '' yes
2927 do
2928   # Use a header file that comes with gcc, so configuring glibc
2929   # with a fresh cross-compiler works.
2930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931   # <limits.h> exists even on freestanding compilers.
2932   # On the NeXT, cc -E runs the code through the compiler's parser,
2933   # not just through cpp. "Syntax error" is here to catch this case.
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2945                      Syntax error
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958   else
2959     ac_cpp_err=
2960   fi
2961 else
2962   ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Broken: fails on valid input.
2971 continue
2972 fi
2973 rm -f conftest.err conftest.$ac_ext
2974
2975   # OK, works on sane cases.  Now check whether non-existent headers
2976   # can be detected and how.
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <ac_nonexistent.h>
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996   else
2997     ac_cpp_err=
2998   fi
2999 else
3000   ac_cpp_err=yes
3001 fi
3002 if test -z "$ac_cpp_err"; then
3003   # Broken: success on invalid input.
3004 continue
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013 rm -f conftest.err conftest.$ac_ext
3014
3015 done
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3019   break
3020 fi
3021
3022     done
3023     ac_cv_prog_CPP=$CPP
3024
3025 fi
3026   CPP=$ac_cv_prog_CPP
3027 else
3028   ac_cv_prog_CPP=$CPP
3029 fi
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3032 ac_preproc_ok=false
3033 for ac_c_preproc_warn_flag in '' yes
3034 do
3035   # Use a header file that comes with gcc, so configuring glibc
3036   # with a fresh cross-compiler works.
3037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038   # <limits.h> exists even on freestanding compilers.
3039   # On the NeXT, cc -E runs the code through the compiler's parser,
3040   # not just through cpp. "Syntax error" is here to catch this case.
3041   cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052                      Syntax error
3053 _ACEOF
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } >/dev/null; then
3062   if test -s conftest.err; then
3063     ac_cpp_err=$ac_c_preproc_warn_flag
3064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065   else
3066     ac_cpp_err=
3067   fi
3068 else
3069   ac_cpp_err=yes
3070 fi
3071 if test -z "$ac_cpp_err"; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077   # Broken: fails on valid input.
3078 continue
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081
3082   # OK, works on sane cases.  Now check whether non-existent headers
3083   # can be detected and how.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #include <ac_nonexistent.h>
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_c_preproc_warn_flag
3102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103   else
3104     ac_cpp_err=
3105   fi
3106 else
3107   ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110   # Broken: success on invalid input.
3111 continue
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116   # Passes both tests.
3117 ac_preproc_ok=:
3118 break
3119 fi
3120 rm -f conftest.err conftest.$ac_ext
3121
3122 done
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3126   :
3127 else
3128   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132    { (exit 1); exit 1; }; }
3133 fi
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148     then ac_cv_prog_egrep='grep -E'
3149     else ac_cv_prog_egrep='egrep'
3150     fi
3151 fi
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154  EGREP=$ac_cv_prog_egrep
3155
3156
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163     ac_pattern="Autoconf.*'x'"
3164   cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 #include <sgtty.h>
3171 Autoconf TIOCGETP
3172 _ACEOF
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175   ac_cv_prog_gcc_traditional=yes
3176 else
3177   ac_cv_prog_gcc_traditional=no
3178 fi
3179 rm -f conftest*
3180
3181
3182   if test $ac_cv_prog_gcc_traditional = no; then
3183     cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <termio.h>
3190 Autoconf TCGETA
3191 _ACEOF
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194   ac_cv_prog_gcc_traditional=yes
3195 fi
3196 rm -f conftest*
3197
3198   fi
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202   if test $ac_cv_prog_gcc_traditional = yes; then
3203     CC="$CC -traditional"
3204   fi
3205 fi
3206
3207 if test "x$CC" = xgcc; then
3208    cat >>confdefs.h <<\_ACEOF
3209 #define HAVE_GCC 1
3210 _ACEOF
3211
3212 fi
3213 # Extract the first word of "$CXX", so it can be a program name with args.
3214 set dummy $CXX; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_CXX+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   case $CXX in
3221   [\\/]* | ?:[\\/]*)
3222   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3223   ;;
3224   *)
3225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230   for ac_exec_ext in '' $ac_executable_extensions; do
3231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234     break 2
3235   fi
3236 done
3237 done
3238
3239   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3240   ;;
3241 esac
3242 fi
3243 CXX=$ac_cv_path_CXX
3244
3245 if test -n "$CXX"; then
3246   echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 if test ! -e $CXX; then
3254    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3255 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3256    { (exit 1); exit 1; }; }
3257 fi
3258
3259 # Find a good install program.  We prefer a C program (faster),
3260 # so one script is as good as another.  But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3265 # AIX /bin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283   # Account for people who put trailing slashes in PATH elements.
3284 case $as_dir/ in
3285   ./ | .// | /cC/* | \
3286   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3287   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3288   /usr/ucb/* ) ;;
3289   *)
3290     # OSF1 and SCO ODT 3.0 have their own names for install.
3291     # Don't use installbsd from OSF since it installs stuff as root
3292     # by default.
3293     for ac_prog in ginstall scoinst install; do
3294       for ac_exec_ext in '' $ac_executable_extensions; do
3295         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3296           if test $ac_prog = install &&
3297             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298             # AIX install.  It has an incompatible calling convention.
3299             :
3300           elif test $ac_prog = install &&
3301             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302             # program-specific install script used by HP pwplus--don't use.
3303             :
3304           else
3305             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3306             break 3
3307           fi
3308         fi
3309       done
3310     done
3311     ;;
3312 esac
3313 done
3314
3315
3316 fi
3317   if test "${ac_cv_path_install+set}" = set; then
3318     INSTALL=$ac_cv_path_install
3319   else
3320     # As a last resort, use the slow shell script.  We don't cache a
3321     # path for INSTALL within a source directory, because that will
3322     # break other packages using the cache if that directory is
3323     # removed, or if the path is relative.
3324     INSTALL=$ac_install_sh
3325   fi
3326 fi
3327 echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 echo "${ECHO_T}$INSTALL" >&6
3329
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3333
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3335
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3337
3338 if test -n "$ac_tool_prefix"; then
3339   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$RANLIB"; then
3347   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362
3363 fi
3364 fi
3365 RANLIB=$ac_cv_prog_RANLIB
3366 if test -n "$RANLIB"; then
3367   echo "$as_me:$LINENO: result: $RANLIB" >&5
3368 echo "${ECHO_T}$RANLIB" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 fi
3375 if test -z "$ac_cv_prog_RANLIB"; then
3376   ac_ct_RANLIB=$RANLIB
3377   # Extract the first word of "ranlib", so it can be a program name with args.
3378 set dummy ranlib; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   if test -n "$ac_ct_RANLIB"; then
3385   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_prog_ac_ct_RANLIB="ranlib"
3395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399 done
3400
3401   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3402 fi
3403 fi
3404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405 if test -n "$ac_ct_RANLIB"; then
3406   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3408 else
3409   echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413   RANLIB=$ac_ct_RANLIB
3414 else
3415   RANLIB="$ac_cv_prog_RANLIB"
3416 fi
3417
3418 # Extract the first word of "mv", so it can be a program name with args.
3419 set dummy mv; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_MV+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $MV in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3445   ;;
3446 esac
3447 fi
3448 MV=$ac_cv_path_MV
3449
3450 if test -n "$MV"; then
3451   echo "$as_me:$LINENO: result: $MV" >&5
3452 echo "${ECHO_T}$MV" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "rm", so it can be a program name with args.
3459 set dummy rm; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_RM+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $RM in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3485   ;;
3486 esac
3487 fi
3488 RM=$ac_cv_path_RM
3489
3490 if test -n "$RM"; then
3491   echo "$as_me:$LINENO: result: $RM" >&5
3492 echo "${ECHO_T}$RM" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cp", so it can be a program name with args.
3499 set dummy cp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3525   ;;
3526 esac
3527 fi
3528 CP=$ac_cv_path_CP
3529
3530 if test -n "$CP"; then
3531   echo "$as_me:$LINENO: result: $CP" >&5
3532 echo "${ECHO_T}$CP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "sed", so it can be a program name with args.
3539 set dummy sed; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_SED+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $SED in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3565   ;;
3566 esac
3567 fi
3568 SED=$ac_cv_path_SED
3569
3570 if test -n "$SED"; then
3571   echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "echo", so it can be a program name with args.
3579 set dummy echo; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_ECHO+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $ECHO in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3605   ;;
3606 esac
3607 fi
3608 ECHO=$ac_cv_path_ECHO
3609
3610 if test -n "$ECHO"; then
3611   echo "$as_me:$LINENO: result: $ECHO" >&5
3612 echo "${ECHO_T}$ECHO" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "cmp", so it can be a program name with args.
3619 set dummy cmp; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_CMP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $CMP in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3645   ;;
3646 esac
3647 fi
3648 CMP=$ac_cv_path_CMP
3649
3650 if test -n "$CMP"; then
3651   echo "$as_me:$LINENO: result: $CMP" >&5
3652 echo "${ECHO_T}$CMP" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "tbl", so it can be a program name with args.
3659 set dummy tbl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_TBL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $TBL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3685   ;;
3686 esac
3687 fi
3688 TBL=$ac_cv_path_TBL
3689
3690 if test -n "$TBL"; then
3691   echo "$as_me:$LINENO: result: $TBL" >&5
3692 echo "${ECHO_T}$TBL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "ar", so it can be a program name with args.
3699 set dummy ar; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_AR+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $AR in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3725   ;;
3726 esac
3727 fi
3728 AR=$ac_cv_path_AR
3729
3730 if test -n "$AR"; then
3731   echo "$as_me:$LINENO: result: $AR" >&5
3732 echo "${ECHO_T}$AR" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "openssl", so it can be a program name with args.
3739 set dummy openssl; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_OPENSSL+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $OPENSSL in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3765   ;;
3766 esac
3767 fi
3768 OPENSSL=$ac_cv_path_OPENSSL
3769
3770 if test -n "$OPENSSL"; then
3771   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3772 echo "${ECHO_T}$OPENSSL" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778 # Extract the first word of "mtx", so it can be a program name with args.
3779 set dummy mtx; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_path_MTX+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   case $MTX in
3786   [\\/]* | ?:[\\/]*)
3787   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3788   ;;
3789   *)
3790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799     break 2
3800   fi
3801 done
3802 done
3803
3804   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3805   ;;
3806 esac
3807 fi
3808 MTX=$ac_cv_path_MTX
3809
3810 if test -n "$MTX"; then
3811   echo "$as_me:$LINENO: result: $MTX" >&5
3812 echo "${ECHO_T}$MTX" >&6
3813 else
3814   echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3816 fi
3817
3818 # Extract the first word of "df", so it can be a program name with args.
3819 set dummy df; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_path_DF+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   case $DF in
3826   [\\/]* | ?:[\\/]*)
3827   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3828   ;;
3829   *)
3830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843
3844   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3845   ;;
3846 esac
3847 fi
3848 DF=$ac_cv_path_DF
3849
3850 if test -n "$DF"; then
3851   echo "$as_me:$LINENO: result: $DF" >&5
3852 echo "${ECHO_T}$DF" >&6
3853 else
3854   echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3856 fi
3857
3858 # Extract the first word of "mkisofs", so it can be a program name with args.
3859 set dummy mkisofs; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_MKISOFS+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   case $MKISOFS in
3866   [\\/]* | ?:[\\/]*)
3867   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3868   ;;
3869   *)
3870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_exec_ext in '' $ac_executable_extensions; do
3876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882 done
3883
3884   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3885   ;;
3886 esac
3887 fi
3888 MKISOFS=$ac_cv_path_MKISOFS
3889
3890 if test -n "$MKISOFS"; then
3891   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3892 echo "${ECHO_T}$MKISOFS" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898 # Extract the first word of "python", so it can be a program name with args.
3899 set dummy python; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_path_PYTHON+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   case $PYTHON in
3906   [\\/]* | ?:[\\/]*)
3907   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3908   ;;
3909   *)
3910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3925   ;;
3926 esac
3927 fi
3928 PYTHON=$ac_cv_path_PYTHON
3929
3930 if test -n "$PYTHON"; then
3931   echo "$as_me:$LINENO: result: $PYTHON" >&5
3932 echo "${ECHO_T}$PYTHON" >&6
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
3938 # Extract the first word of "growisofs", so it can be a program name with args.
3939 set dummy growisofs; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   case $GROWISOFS in
3946   [\\/]* | ?:[\\/]*)
3947   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3948   ;;
3949   *)
3950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_exec_ext in '' $ac_executable_extensions; do
3956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962 done
3963
3964   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3965   ;;
3966 esac
3967 fi
3968 GROWISOFS=$ac_cv_path_GROWISOFS
3969
3970 if test -n "$GROWISOFS"; then
3971   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3972 echo "${ECHO_T}$GROWISOFS" >&6
3973 else
3974   echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976 fi
3977
3978 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3979 set dummy dvd+rw-mediainfo; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   case $DVDRWMEDIAINFO in
3986   [\\/]* | ?:[\\/]*)
3987   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3988   ;;
3989   *)
3990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4005   ;;
4006 esac
4007 fi
4008 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4009
4010 if test -n "$DVDRWMEDIAINFO"; then
4011   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4012 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4013 else
4014   echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017
4018 # Extract the first word of "pkg-config", so it can be a program name with args.
4019 set dummy pkg-config; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   case $PKGCONFIG in
4026   [\\/]* | ?:[\\/]*)
4027   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4028   ;;
4029   *)
4030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_exec_ext in '' $ac_executable_extensions; do
4036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042 done
4043
4044   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4045   ;;
4046 esac
4047 fi
4048 PKGCONFIG=$ac_cv_path_PKGCONFIG
4049
4050 if test -n "$PKGCONFIG"; then
4051   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4052 echo "${ECHO_T}$PKGCONFIG" >&6
4053 else
4054   echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056 fi
4057
4058
4059 if test "x$WXCONFIG" = x; then
4060   WXCONFIG=wx-config
4061 fi
4062 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4063 set dummy ${WXCONFIG}; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   case $WXCONFIG in
4070   [\\/]* | ?:[\\/]*)
4071   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4072   ;;
4073   *)
4074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_exec_ext in '' $ac_executable_extensions; do
4080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083     break 2
4084   fi
4085 done
4086 done
4087
4088   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4089   ;;
4090 esac
4091 fi
4092 WXCONFIG=$ac_cv_path_WXCONFIG
4093
4094 if test -n "$WXCONFIG"; then
4095   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4096 echo "${ECHO_T}$WXCONFIG" >&6
4097 else
4098   echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4100 fi
4101
4102
4103 # Extract the first word of "cdrecord", so it can be a program name with args.
4104 set dummy cdrecord; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_CDRECORD+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   case $CDRECORD in
4111   [\\/]* | ?:[\\/]*)
4112   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4113   ;;
4114   *)
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4130   ;;
4131 esac
4132 fi
4133 CDRECORD=$ac_cv_path_CDRECORD
4134
4135 if test -n "$CDRECORD"; then
4136   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4137 echo "${ECHO_T}$CDRECORD" >&6
4138 else
4139   echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143 # Extract the first word of "pidof", so it can be a program name with args.
4144 set dummy pidof; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_PIDOF+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   case $PIDOF in
4151   [\\/]* | ?:[\\/]*)
4152   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4153   ;;
4154   *)
4155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160   for ac_exec_ext in '' $ac_executable_extensions; do
4161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167 done
4168
4169   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4170   ;;
4171 esac
4172 fi
4173 PIDOF=$ac_cv_path_PIDOF
4174
4175 if test -n "$PIDOF"; then
4176   echo "$as_me:$LINENO: result: $PIDOF" >&5
4177 echo "${ECHO_T}$PIDOF" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183 for ac_prog in gawk mawk nawk awk
4184 do
4185   # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_AWK+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   if test -n "$AWK"; then
4193   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200   for ac_exec_ext in '' $ac_executable_extensions; do
4201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202     ac_cv_prog_AWK="$ac_prog"
4203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207 done
4208
4209 fi
4210 fi
4211 AWK=$ac_cv_prog_AWK
4212 if test -n "$AWK"; then
4213   echo "$as_me:$LINENO: result: $AWK" >&5
4214 echo "${ECHO_T}$AWK" >&6
4215 else
4216   echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4218 fi
4219
4220   test -n "$AWK" && break
4221 done
4222
4223 # Some AWK programs fail, so test it and warn the user
4224 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4225       { if ((prog == $2) || (("(" prog ")") == $2) ||
4226            (("" prog "") == $2) ||
4227            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4228 else
4229   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4230    The regex engine of $AWK is too broken to be used you
4231    might want to install GNU AWK.
4232    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4233 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4234    The regex engine of $AWK is too broken to be used you
4235    might want to install GNU AWK.
4236    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4237    { (exit 1); exit 1; }; }
4238 fi
4239 THE_AWK=$AWK
4240 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4241 set dummy $THE_AWK; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_path_AWK+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   case $AWK in
4248   [\\/]* | ?:[\\/]*)
4249   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4250   ;;
4251   *)
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265
4266   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4267   ;;
4268 esac
4269 fi
4270 AWK=$ac_cv_path_AWK
4271
4272 if test -n "$AWK"; then
4273   echo "$as_me:$LINENO: result: $AWK" >&5
4274 echo "${ECHO_T}$AWK" >&6
4275 else
4276   echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 test -n "$ARFLAG" || ARFLAGS="cr"
4282
4283
4284 MAKE_SHELL=/bin/sh
4285
4286
4287
4288
4289
4290
4291
4292 # Make sure we can run config.sub.
4293 $ac_config_sub sun4 >/dev/null 2>&1 ||
4294   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4296    { (exit 1); exit 1; }; }
4297
4298 echo "$as_me:$LINENO: checking build system type" >&5
4299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4300 if test "${ac_cv_build+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   ac_cv_build_alias=$build_alias
4304 test -z "$ac_cv_build_alias" &&
4305   ac_cv_build_alias=`$ac_config_guess`
4306 test -z "$ac_cv_build_alias" &&
4307   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4309    { (exit 1); exit 1; }; }
4310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4311   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4313    { (exit 1); exit 1; }; }
4314
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4317 echo "${ECHO_T}$ac_cv_build" >&6
4318 build=$ac_cv_build
4319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4322
4323
4324
4325 echo "$as_me:$LINENO: checking host system type" >&5
4326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4327 if test "${ac_cv_host+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   ac_cv_host_alias=$host_alias
4331 test -z "$ac_cv_host_alias" &&
4332   ac_cv_host_alias=$ac_cv_build_alias
4333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4334   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4336    { (exit 1); exit 1; }; }
4337
4338 fi
4339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4340 echo "${ECHO_T}$ac_cv_host" >&6
4341 host=$ac_cv_host
4342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4345
4346
4347 case $host_os in
4348   *cygwin* ) CYGWIN=yes;;
4349          * ) CYGWIN=no;;
4350 esac
4351
4352 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4353 then
4354
4355
4356 if $TRUEPRG; then
4357   HAVE_SUN_OS_TRUE=
4358   HAVE_SUN_OS_FALSE='#'
4359 else
4360   HAVE_SUN_OS_TRUE='#'
4361   HAVE_SUN_OS_FALSE=
4362 fi
4363         cat >>confdefs.h <<\_ACEOF
4364 #define HAVE_SUN_OS 1
4365 _ACEOF
4366
4367 else
4368
4369
4370 if $FALSEPRG; then
4371   HAVE_SUN_OS_TRUE=
4372   HAVE_SUN_OS_FALSE='#'
4373 else
4374   HAVE_SUN_OS_TRUE='#'
4375   HAVE_SUN_OS_FALSE=
4376 fi
4377 fi
4378
4379 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4380 then
4381
4382
4383 if $TRUEPRG; then
4384   HAVE_OSF1_OS_TRUE=
4385   HAVE_OSF1_OS_FALSE='#'
4386 else
4387   HAVE_OSF1_OS_TRUE='#'
4388   HAVE_OSF1_OS_FALSE=
4389 fi
4390         cat >>confdefs.h <<\_ACEOF
4391 #define HAVE_OSF1_OS 1
4392 _ACEOF
4393
4394 else
4395
4396
4397 if $FALSEPRG; then
4398   HAVE_OSF1_OS_TRUE=
4399   HAVE_OSF1_OS_FALSE='#'
4400 else
4401   HAVE_OSF1_OS_TRUE='#'
4402   HAVE_OSF1_OS_FALSE=
4403 fi
4404 fi
4405
4406 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4407 then
4408
4409
4410 if $TRUEPRG; then
4411   HAVE_AIX_OS_TRUE=
4412   HAVE_AIX_OS_FALSE='#'
4413 else
4414   HAVE_AIX_OS_TRUE='#'
4415   HAVE_AIX_OS_FALSE=
4416 fi
4417         cat >>confdefs.h <<\_ACEOF
4418 #define HAVE_AIX_OS 1
4419 _ACEOF
4420
4421 else
4422
4423
4424 if $FALSEPRG; then
4425   HAVE_AIX_OS_TRUE=
4426   HAVE_AIX_OS_FALSE='#'
4427 else
4428   HAVE_AIX_OS_TRUE='#'
4429   HAVE_AIX_OS_FALSE=
4430 fi
4431 fi
4432
4433 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4434 then
4435
4436
4437 if $TRUEPRG; then
4438   HAVE_HPUX_OS_TRUE=
4439   HAVE_HPUX_OS_FALSE='#'
4440 else
4441   HAVE_HPUX_OS_TRUE='#'
4442   HAVE_HPUX_OS_FALSE=
4443 fi
4444         cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_HPUX_OS 1
4446 _ACEOF
4447
4448 else
4449
4450
4451 if $FALSEPRG; then
4452   HAVE_HPUX_OS_TRUE=
4453   HAVE_HPUX_OS_FALSE='#'
4454 else
4455   HAVE_HPUX_OS_TRUE='#'
4456   HAVE_HPUX_OS_FALSE=
4457 fi
4458 fi
4459
4460 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4461 then
4462
4463
4464 if $TRUEPRG; then
4465   HAVE_LINUX_OS_TRUE=
4466   HAVE_LINUX_OS_FALSE='#'
4467 else
4468   HAVE_LINUX_OS_TRUE='#'
4469   HAVE_LINUX_OS_FALSE=
4470 fi
4471         cat >>confdefs.h <<\_ACEOF
4472 #define HAVE_LINUX_OS 1
4473 _ACEOF
4474
4475 else
4476
4477
4478 if $FALSEPRG; then
4479   HAVE_LINUX_OS_TRUE=
4480   HAVE_LINUX_OS_FALSE='#'
4481 else
4482   HAVE_LINUX_OS_TRUE='#'
4483   HAVE_LINUX_OS_FALSE=
4484 fi
4485 fi
4486
4487 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4488 then
4489
4490
4491 if $TRUEPRG; then
4492   HAVE_FREEBSD_OS_TRUE=
4493   HAVE_FREEBSD_OS_FALSE='#'
4494 else
4495   HAVE_FREEBSD_OS_TRUE='#'
4496   HAVE_FREEBSD_OS_FALSE=
4497 fi
4498         cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_FREEBSD_OS 1
4500 _ACEOF
4501
4502 else
4503
4504
4505 if $FALSEPRG; then
4506   HAVE_FREEBSD_OS_TRUE=
4507   HAVE_FREEBSD_OS_FALSE='#'
4508 else
4509   HAVE_FREEBSD_OS_TRUE='#'
4510   HAVE_FREEBSD_OS_FALSE=
4511 fi
4512 fi
4513
4514 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4515 then
4516
4517
4518 if $TRUEPRG; then
4519   HAVE_NETBSD_OS_TRUE=
4520   HAVE_NETBSD_OS_FALSE='#'
4521 else
4522   HAVE_NETBSD_OS_TRUE='#'
4523   HAVE_NETBSD_OS_FALSE=
4524 fi
4525         cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_NETBSD_OS 1
4527 _ACEOF
4528
4529 else
4530
4531
4532 if $FALSEPRG; then
4533   HAVE_NETBSD_OS_TRUE=
4534   HAVE_NETBSD_OS_FALSE='#'
4535 else
4536   HAVE_NETBSD_OS_TRUE='#'
4537   HAVE_NETBSD_OS_FALSE=
4538 fi
4539 fi
4540
4541 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4542 then
4543
4544
4545 if $TRUEPRG; then
4546   HAVE_OPENBSD_OS_TRUE=
4547   HAVE_OPENBSD_OS_FALSE='#'
4548 else
4549   HAVE_OPENBSD_OS_TRUE='#'
4550   HAVE_OPENBSD_OS_FALSE=
4551 fi
4552         cat >>confdefs.h <<\_ACEOF
4553 #define HAVE_OPENBSD_OS 1
4554 _ACEOF
4555
4556 else
4557
4558
4559 if $FALSEPRG; then
4560   HAVE_OPENBSD_OS_TRUE=
4561   HAVE_OPENBSD_OS_FALSE='#'
4562 else
4563   HAVE_OPENBSD_OS_TRUE='#'
4564   HAVE_OPENBSD_OS_FALSE=
4565 fi
4566 fi
4567
4568 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4569 then
4570
4571
4572 if $TRUEPRG; then
4573   HAVE_BSDI_OS_TRUE=
4574   HAVE_BSDI_OS_FALSE='#'
4575 else
4576   HAVE_BSDI_OS_TRUE='#'
4577   HAVE_BSDI_OS_FALSE=
4578 fi
4579         cat >>confdefs.h <<\_ACEOF
4580 #define HAVE_BSDI_OS 1
4581 _ACEOF
4582
4583 else
4584
4585
4586 if $FALSEPRG; then
4587   HAVE_BSDI_OS_TRUE=
4588   HAVE_BSDI_OS_FALSE='#'
4589 else
4590   HAVE_BSDI_OS_TRUE='#'
4591   HAVE_BSDI_OS_FALSE=
4592 fi
4593 fi
4594
4595 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4596 then
4597
4598
4599 if $TRUEPRG; then
4600   HAVE_SGI_OS_TRUE=
4601   HAVE_SGI_OS_FALSE='#'
4602 else
4603   HAVE_SGI_OS_TRUE='#'
4604   HAVE_SGI_OS_FALSE=
4605 fi
4606         cat >>confdefs.h <<\_ACEOF
4607 #define HAVE_SGI_OS 1
4608 _ACEOF
4609
4610 else
4611
4612
4613 if $FALSEPRG; then
4614   HAVE_SGI_OS_TRUE=
4615   HAVE_SGI_OS_FALSE='#'
4616 else
4617   HAVE_SGI_OS_TRUE='#'
4618   HAVE_SGI_OS_FALSE=
4619 fi
4620 fi
4621
4622 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4623 then
4624
4625
4626 if $TRUEPRG; then
4627   HAVE_IRIX_OS_TRUE=
4628   HAVE_IRIX_OS_FALSE='#'
4629 else
4630   HAVE_IRIX_OS_TRUE='#'
4631   HAVE_IRIX_OS_FALSE=
4632 fi
4633         cat >>confdefs.h <<\_ACEOF
4634 #define HAVE_IRIX_OS 1
4635 _ACEOF
4636
4637 else
4638
4639
4640 if $FALSEPRG; then
4641   HAVE_IRIX_OS_TRUE=
4642   HAVE_IRIX_OS_FALSE='#'
4643 else
4644   HAVE_IRIX_OS_TRUE='#'
4645   HAVE_IRIX_OS_FALSE=
4646 fi
4647 fi
4648
4649 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4650 then
4651
4652
4653 if $TRUEPRG; then
4654   HAVE_DARWIN_OS_TRUE=
4655   HAVE_DARWIN_OS_FALSE='#'
4656 else
4657   HAVE_DARWIN_OS_TRUE='#'
4658   HAVE_DARWIN_OS_FALSE=
4659 fi
4660     cat >>confdefs.h <<\_ACEOF
4661 #define HAVE_DARWIN_OS 1
4662 _ACEOF
4663
4664 else
4665
4666
4667 if $FALSEPRG; then
4668   HAVE_DARWIN_OS_TRUE=
4669   HAVE_DARWIN_OS_FALSE='#'
4670 else
4671   HAVE_DARWIN_OS_TRUE='#'
4672   HAVE_DARWIN_OS_FALSE=
4673 fi
4674 fi
4675
4676
4677 # -----------------------------------------------------------
4678 # ----------------------------------------------------------
4679 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4680 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4681 if test "x$DISTNAME" != "x"
4682 then
4683         echo "distname set to $DISTNAME"
4684 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4685 then
4686         DISTNAME=alpha
4687 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4688 then
4689         DISTNAME=aix
4690 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4691 then
4692         DISTNAME=hpux
4693 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4694 then
4695         DISTNAME=solaris
4696 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4697 then
4698         DISTNAME=freebsd
4699 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4700 then
4701         DISTNAME=netbsd
4702 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4703 then
4704         DISTNAME=openbsd
4705 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4706 then
4707         DISTNAME=irix
4708 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4709 then
4710         DISTNAME=bsdi
4711 elif test -f /etc/SuSE-release
4712 then
4713         DISTNAME=suse
4714 elif test -d /etc/SuSEconfig
4715 then
4716         DISTNAME=suse5
4717 elif test -f /etc/mandrake-release
4718 then
4719         DISTNAME=mandrake
4720 elif test -f /etc/whitebox-release
4721 then
4722        DISTNAME=redhat
4723 elif test -f /etc/redhat-release
4724 then
4725         DISTNAME=redhat
4726 elif test -f /etc/gentoo-release
4727 then
4728         DISTNAME=gentoo
4729 elif test -f /etc/debian_version
4730 then
4731         DISTNAME=debian
4732 elif test -f /etc/slackware-version
4733 then
4734         DISTNAME=slackware
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4736 then
4737     DISTNAME=darwin
4738 elif test -f /etc/engarde-version
4739 then
4740         DISTNAME=engarde
4741 elif test "$CYGWIN" = yes
4742 then
4743         DISTNAME=cygwin
4744         cat >>confdefs.h <<\_ACEOF
4745 #define HAVE_CYGWIN 1
4746 _ACEOF
4747
4748 else
4749         DISTNAME=unknown
4750 fi
4751 echo "$as_me:$LINENO: result: done" >&5
4752 echo "${ECHO_T}done" >&6
4753
4754
4755 # --------------------------------------------------
4756 # Suppport for gettext (translations)
4757 # By default, $datadir is ${prefix}/share
4758 # --------------------------------------------------
4759 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4760 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4761 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4762 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   cat >conftest.make <<\_ACEOF
4766 all:
4767         @echo 'ac_maketemp="$(MAKE)"'
4768 _ACEOF
4769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4770 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4771 if test -n "$ac_maketemp"; then
4772   eval ac_cv_prog_make_${ac_make}_set=yes
4773 else
4774   eval ac_cv_prog_make_${ac_make}_set=no
4775 fi
4776 rm -f conftest.make
4777 fi
4778 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4779   echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6
4781   SET_MAKE=
4782 else
4783   echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4785   SET_MAKE="MAKE=${MAKE-make}"
4786 fi
4787
4788
4789
4790         MKINSTALLDIRS=
4791   if test -n "$ac_aux_dir"; then
4792     case "$ac_aux_dir" in
4793       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4794       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4795     esac
4796   fi
4797   if test -z "$MKINSTALLDIRS"; then
4798     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4799   fi
4800
4801
4802
4803   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4805     # Check whether --enable-nls or --disable-nls was given.
4806 if test "${enable_nls+set}" = set; then
4807   enableval="$enable_nls"
4808   USE_NLS=$enableval
4809 else
4810   USE_NLS=yes
4811 fi;
4812   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4813 echo "${ECHO_T}$USE_NLS" >&6
4814
4815
4816
4817
4818
4819
4820 # Prepare PATH_SEPARATOR.
4821 # The user is always right.
4822 if test "${PATH_SEPARATOR+set}" != set; then
4823   echo "#! /bin/sh" >conf$$.sh
4824   echo  "exit 0"   >>conf$$.sh
4825   chmod +x conf$$.sh
4826   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4827     PATH_SEPARATOR=';'
4828   else
4829     PATH_SEPARATOR=:
4830   fi
4831   rm -f conf$$.sh
4832 fi
4833
4834 # Find out how to test for executable files. Don't use a zero-byte file,
4835 # as systems may use methods other than mode bits to determine executability.
4836 cat >conf$$.file <<_ASEOF
4837 #! /bin/sh
4838 exit 0
4839 _ASEOF
4840 chmod +x conf$$.file
4841 if test -x conf$$.file >/dev/null 2>&1; then
4842   ac_executable_p="test -x"
4843 else
4844   ac_executable_p="test -f"
4845 fi
4846 rm -f conf$$.file
4847
4848 # Extract the first word of "msgfmt", so it can be a program name with args.
4849 set dummy msgfmt; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_MSGFMT+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   case "$MSGFMT" in
4856   [\\/]* | ?:[\\/]*)
4857     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4858     ;;
4859   *)
4860     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4861     for ac_dir in $PATH; do
4862       IFS="$ac_save_IFS"
4863       test -z "$ac_dir" && ac_dir=.
4864       for ac_exec_ext in '' $ac_executable_extensions; do
4865         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4866           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4867           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4868      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4869             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4870             break 2
4871           fi
4872         fi
4873       done
4874     done
4875     IFS="$ac_save_IFS"
4876   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4877     ;;
4878 esac
4879 fi
4880 MSGFMT="$ac_cv_path_MSGFMT"
4881 if test "$MSGFMT" != ":"; then
4882   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4883 echo "${ECHO_T}$MSGFMT" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4890 set dummy gmsgfmt; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $GMSGFMT in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4916   ;;
4917 esac
4918 fi
4919 GMSGFMT=$ac_cv_path_GMSGFMT
4920
4921 if test -n "$GMSGFMT"; then
4922   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4923 echo "${ECHO_T}$GMSGFMT" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929
4930
4931 # Prepare PATH_SEPARATOR.
4932 # The user is always right.
4933 if test "${PATH_SEPARATOR+set}" != set; then
4934   echo "#! /bin/sh" >conf$$.sh
4935   echo  "exit 0"   >>conf$$.sh
4936   chmod +x conf$$.sh
4937   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4938     PATH_SEPARATOR=';'
4939   else
4940     PATH_SEPARATOR=:
4941   fi
4942   rm -f conf$$.sh
4943 fi
4944
4945 # Find out how to test for executable files. Don't use a zero-byte file,
4946 # as systems may use methods other than mode bits to determine executability.
4947 cat >conf$$.file <<_ASEOF
4948 #! /bin/sh
4949 exit 0
4950 _ASEOF
4951 chmod +x conf$$.file
4952 if test -x conf$$.file >/dev/null 2>&1; then
4953   ac_executable_p="test -x"
4954 else
4955   ac_executable_p="test -f"
4956 fi
4957 rm -f conf$$.file
4958
4959 # Extract the first word of "xgettext", so it can be a program name with args.
4960 set dummy xgettext; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   case "$XGETTEXT" in
4967   [\\/]* | ?:[\\/]*)
4968     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4969     ;;
4970   *)
4971     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4972     for ac_dir in $PATH; do
4973       IFS="$ac_save_IFS"
4974       test -z "$ac_dir" && ac_dir=.
4975       for ac_exec_ext in '' $ac_executable_extensions; do
4976         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4977           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4978           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4979      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4980             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4981             break 2
4982           fi
4983         fi
4984       done
4985     done
4986     IFS="$ac_save_IFS"
4987   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4988     ;;
4989 esac
4990 fi
4991 XGETTEXT="$ac_cv_path_XGETTEXT"
4992 if test "$XGETTEXT" != ":"; then
4993   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4994 echo "${ECHO_T}$XGETTEXT" >&6
4995 else
4996   echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998 fi
4999
5000     rm -f messages.po
5001
5002
5003 # Prepare PATH_SEPARATOR.
5004 # The user is always right.
5005 if test "${PATH_SEPARATOR+set}" != set; then
5006   echo "#! /bin/sh" >conf$$.sh
5007   echo  "exit 0"   >>conf$$.sh
5008   chmod +x conf$$.sh
5009   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5010     PATH_SEPARATOR=';'
5011   else
5012     PATH_SEPARATOR=:
5013   fi
5014   rm -f conf$$.sh
5015 fi
5016
5017 # Find out how to test for executable files. Don't use a zero-byte file,
5018 # as systems may use methods other than mode bits to determine executability.
5019 cat >conf$$.file <<_ASEOF
5020 #! /bin/sh
5021 exit 0
5022 _ASEOF
5023 chmod +x conf$$.file
5024 if test -x conf$$.file >/dev/null 2>&1; then
5025   ac_executable_p="test -x"
5026 else
5027   ac_executable_p="test -f"
5028 fi
5029 rm -f conf$$.file
5030
5031 # Extract the first word of "msgmerge", so it can be a program name with args.
5032 set dummy msgmerge; ac_word=$2
5033 echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   case "$MSGMERGE" in
5039   [\\/]* | ?:[\\/]*)
5040     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5041     ;;
5042   *)
5043     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5044     for ac_dir in $PATH; do
5045       IFS="$ac_save_IFS"
5046       test -z "$ac_dir" && ac_dir=.
5047       for ac_exec_ext in '' $ac_executable_extensions; do
5048         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5049           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5050           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5051             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5052             break 2
5053           fi
5054         fi
5055       done
5056     done
5057     IFS="$ac_save_IFS"
5058   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5059     ;;
5060 esac
5061 fi
5062 MSGMERGE="$ac_cv_path_MSGMERGE"
5063 if test "$MSGMERGE" != ":"; then
5064   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5065 echo "${ECHO_T}$MSGMERGE" >&6
5066 else
5067   echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 fi
5070
5071
5072       if test "$GMSGFMT" != ":"; then
5073             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5074        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5075       : ;
5076     else
5077       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5078       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5079 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5080       GMSGFMT=":"
5081     fi
5082   fi
5083
5084       if test "$XGETTEXT" != ":"; then
5085             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5086        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5087       : ;
5088     else
5089       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5090 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5091       XGETTEXT=":"
5092     fi
5093         rm -f messages.po
5094   fi
5095
5096             ac_config_commands="$ac_config_commands default-1"
5097
5098
5099
5100       if test "X$prefix" = "XNONE"; then
5101     acl_final_prefix="$ac_default_prefix"
5102   else
5103     acl_final_prefix="$prefix"
5104   fi
5105   if test "X$exec_prefix" = "XNONE"; then
5106     acl_final_exec_prefix='${prefix}'
5107   else
5108     acl_final_exec_prefix="$exec_prefix"
5109   fi
5110   acl_save_prefix="$prefix"
5111   prefix="$acl_final_prefix"
5112   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5113   prefix="$acl_save_prefix"
5114
5115
5116 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5117 if test "${with_gnu_ld+set}" = set; then
5118   withval="$with_gnu_ld"
5119   test "$withval" = no || with_gnu_ld=yes
5120 else
5121   with_gnu_ld=no
5122 fi;
5123 # Prepare PATH_SEPARATOR.
5124 # The user is always right.
5125 if test "${PATH_SEPARATOR+set}" != set; then
5126   echo "#! /bin/sh" >conf$$.sh
5127   echo  "exit 0"   >>conf$$.sh
5128   chmod +x conf$$.sh
5129   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5130     PATH_SEPARATOR=';'
5131   else
5132     PATH_SEPARATOR=:
5133   fi
5134   rm -f conf$$.sh
5135 fi
5136 ac_prog=ld
5137 if test "$GCC" = yes; then
5138   # Check if gcc -print-prog-name=ld gives a path.
5139   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5140 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5141   case $host in
5142   *-*-mingw*)
5143     # gcc leaves a trailing carriage return which upsets mingw
5144     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5145   *)
5146     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5147   esac
5148   case $ac_prog in
5149     # Accept absolute paths.
5150     [\\/]* | [A-Za-z]:[\\/]*)
5151       re_direlt='/[^/][^/]*/\.\./'
5152       # Canonicalize the path of ld
5153       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5154       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5155         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5156       done
5157       test -z "$LD" && LD="$ac_prog"
5158       ;;
5159   "")
5160     # If it fails, then pretend we aren't using GCC.
5161     ac_prog=ld
5162     ;;
5163   *)
5164     # If it is relative, then search for the first ld in PATH.
5165     with_gnu_ld=unknown
5166     ;;
5167   esac
5168 elif test "$with_gnu_ld" = yes; then
5169   echo "$as_me:$LINENO: checking for GNU ld" >&5
5170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5171 else
5172   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5174 fi
5175 if test "${acl_cv_path_LD+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   if test -z "$LD"; then
5179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5180   for ac_dir in $PATH; do
5181     test -z "$ac_dir" && ac_dir=.
5182     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5183       acl_cv_path_LD="$ac_dir/$ac_prog"
5184       # Check to see if the program is GNU ld.  I'd rather use --version,
5185       # but apparently some GNU ld's only accept -v.
5186       # Break only if it was the GNU/non-GNU ld that we prefer.
5187       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5188       *GNU* | *'with BFD'*)
5189         test "$with_gnu_ld" != no && break ;;
5190       *)
5191         test "$with_gnu_ld" != yes && break ;;
5192       esac
5193     fi
5194   done
5195   IFS="$ac_save_ifs"
5196 else
5197   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5198 fi
5199 fi
5200
5201 LD="$acl_cv_path_LD"
5202 if test -n "$LD"; then
5203   echo "$as_me:$LINENO: result: $LD" >&5
5204 echo "${ECHO_T}$LD" >&6
5205 else
5206   echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5208 fi
5209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5211    { (exit 1); exit 1; }; }
5212 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5214 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5218 case `$LD -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220   acl_cv_prog_gnu_ld=yes ;;
5221 *)
5222   acl_cv_prog_gnu_ld=no ;;
5223 esac
5224 fi
5225 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5227 with_gnu_ld=$acl_cv_prog_gnu_ld
5228
5229
5230
5231
5232                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5233 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5234 if test "${acl_cv_rpath+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237
5238     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5239     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5240     . ./conftest.sh
5241     rm -f ./conftest.sh
5242     acl_cv_rpath=done
5243
5244 fi
5245 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5246 echo "${ECHO_T}$acl_cv_rpath" >&6
5247   wl="$acl_cv_wl"
5248   libext="$acl_cv_libext"
5249   shlibext="$acl_cv_shlibext"
5250   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5251   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5252   hardcode_direct="$acl_cv_hardcode_direct"
5253   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5254     # Check whether --enable-rpath or --disable-rpath was given.
5255 if test "${enable_rpath+set}" = set; then
5256   enableval="$enable_rpath"
5257   :
5258 else
5259   enable_rpath=yes
5260 fi;
5261
5262
5263
5264
5265
5266
5267
5268     use_additional=yes
5269
5270   acl_save_prefix="$prefix"
5271   prefix="$acl_final_prefix"
5272   acl_save_exec_prefix="$exec_prefix"
5273   exec_prefix="$acl_final_exec_prefix"
5274
5275     eval additional_includedir=\"$includedir\"
5276     eval additional_libdir=\"$libdir\"
5277
5278   exec_prefix="$acl_save_exec_prefix"
5279   prefix="$acl_save_prefix"
5280
5281
5282 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5283 if test "${with_libiconv_prefix+set}" = set; then
5284   withval="$with_libiconv_prefix"
5285
5286     if test "X$withval" = "Xno"; then
5287       use_additional=no
5288     else
5289       if test "X$withval" = "X"; then
5290
5291   acl_save_prefix="$prefix"
5292   prefix="$acl_final_prefix"
5293   acl_save_exec_prefix="$exec_prefix"
5294   exec_prefix="$acl_final_exec_prefix"
5295
5296           eval additional_includedir=\"$includedir\"
5297           eval additional_libdir=\"$libdir\"
5298
5299   exec_prefix="$acl_save_exec_prefix"
5300   prefix="$acl_save_prefix"
5301
5302       else
5303         additional_includedir="$withval/include"
5304         additional_libdir="$withval/lib"
5305       fi
5306     fi
5307
5308 fi;
5309       LIBICONV=
5310   LTLIBICONV=
5311   INCICONV=
5312   rpathdirs=
5313   ltrpathdirs=
5314   names_already_handled=
5315   names_next_round='iconv '
5316   while test -n "$names_next_round"; do
5317     names_this_round="$names_next_round"
5318     names_next_round=
5319     for name in $names_this_round; do
5320       already_handled=
5321       for n in $names_already_handled; do
5322         if test "$n" = "$name"; then
5323           already_handled=yes
5324           break
5325         fi
5326       done
5327       if test -z "$already_handled"; then
5328         names_already_handled="$names_already_handled $name"
5329                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5330         eval value=\"\$HAVE_LIB$uppername\"
5331         if test -n "$value"; then
5332           if test "$value" = yes; then
5333             eval value=\"\$LIB$uppername\"
5334             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5335             eval value=\"\$LTLIB$uppername\"
5336             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5337           else
5338                                     :
5339           fi
5340         else
5341                               found_dir=
5342           found_la=
5343           found_so=
5344           found_a=
5345           if test $use_additional = yes; then
5346             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5347               found_dir="$additional_libdir"
5348               found_so="$additional_libdir/lib$name.$shlibext"
5349               if test -f "$additional_libdir/lib$name.la"; then
5350                 found_la="$additional_libdir/lib$name.la"
5351               fi
5352             else
5353               if test -f "$additional_libdir/lib$name.$libext"; then
5354                 found_dir="$additional_libdir"
5355                 found_a="$additional_libdir/lib$name.$libext"
5356                 if test -f "$additional_libdir/lib$name.la"; then
5357                   found_la="$additional_libdir/lib$name.la"
5358                 fi
5359               fi
5360             fi
5361           fi
5362           if test "X$found_dir" = "X"; then
5363             for x in $LDFLAGS $LTLIBICONV; do
5364
5365   acl_save_prefix="$prefix"
5366   prefix="$acl_final_prefix"
5367   acl_save_exec_prefix="$exec_prefix"
5368   exec_prefix="$acl_final_exec_prefix"
5369   eval x=\"$x\"
5370   exec_prefix="$acl_save_exec_prefix"
5371   prefix="$acl_save_prefix"
5372
5373               case "$x" in
5374                 -L*)
5375                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5376                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5377                     found_dir="$dir"
5378                     found_so="$dir/lib$name.$shlibext"
5379                     if test -f "$dir/lib$name.la"; then
5380                       found_la="$dir/lib$name.la"
5381                     fi
5382                   else
5383                     if test -f "$dir/lib$name.$libext"; then
5384                       found_dir="$dir"
5385                       found_a="$dir/lib$name.$libext"
5386                       if test -f "$dir/lib$name.la"; then
5387                         found_la="$dir/lib$name.la"
5388                       fi
5389                     fi
5390                   fi
5391                   ;;
5392               esac
5393               if test "X$found_dir" != "X"; then
5394                 break
5395               fi
5396             done
5397           fi
5398           if test "X$found_dir" != "X"; then
5399                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5400             if test "X$found_so" != "X"; then
5401                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5402                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5403               else
5404                                                                                 haveit=
5405                 for x in $ltrpathdirs; do
5406                   if test "X$x" = "X$found_dir"; then
5407                     haveit=yes
5408                     break
5409                   fi
5410                 done
5411                 if test -z "$haveit"; then
5412                   ltrpathdirs="$ltrpathdirs $found_dir"
5413                 fi
5414                                 if test "$hardcode_direct" = yes; then
5415                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5416                 else
5417                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5418                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5419                                                             haveit=
5420                     for x in $rpathdirs; do
5421                       if test "X$x" = "X$found_dir"; then
5422                         haveit=yes
5423                         break
5424                       fi
5425                     done
5426                     if test -z "$haveit"; then
5427                       rpathdirs="$rpathdirs $found_dir"
5428                     fi
5429                   else
5430                                                                                 haveit=
5431                     for x in $LDFLAGS $LIBICONV; do
5432
5433   acl_save_prefix="$prefix"
5434   prefix="$acl_final_prefix"
5435   acl_save_exec_prefix="$exec_prefix"
5436   exec_prefix="$acl_final_exec_prefix"
5437   eval x=\"$x\"
5438   exec_prefix="$acl_save_exec_prefix"
5439   prefix="$acl_save_prefix"
5440
5441                       if test "X$x" = "X-L$found_dir"; then
5442                         haveit=yes
5443                         break
5444                       fi
5445                     done
5446                     if test -z "$haveit"; then
5447                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5448                     fi
5449                     if test "$hardcode_minus_L" != no; then
5450                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5451                     else
5452                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5453                     fi
5454                   fi
5455                 fi
5456               fi
5457             else
5458               if test "X$found_a" != "X"; then
5459                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5460               else
5461                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5462               fi
5463             fi
5464                         additional_includedir=
5465             case "$found_dir" in
5466               */lib | */lib/)
5467                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5468                 additional_includedir="$basedir/include"
5469                 ;;
5470             esac
5471             if test "X$additional_includedir" != "X"; then
5472                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5473                 haveit=
5474                 if test "X$additional_includedir" = "X/usr/local/include"; then
5475                   if test -n "$GCC"; then
5476                     case $host_os in
5477                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5478                     esac
5479                   fi
5480                 fi
5481                 if test -z "$haveit"; then
5482                   for x in $CPPFLAGS $INCICONV; do
5483
5484   acl_save_prefix="$prefix"
5485   prefix="$acl_final_prefix"
5486   acl_save_exec_prefix="$exec_prefix"
5487   exec_prefix="$acl_final_exec_prefix"
5488   eval x=\"$x\"
5489   exec_prefix="$acl_save_exec_prefix"
5490   prefix="$acl_save_prefix"
5491
5492                     if test "X$x" = "X-I$additional_includedir"; then
5493                       haveit=yes
5494                       break
5495                     fi
5496                   done
5497                   if test -z "$haveit"; then
5498                     if test -d "$additional_includedir"; then
5499                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5500                     fi
5501                   fi
5502                 fi
5503               fi
5504             fi
5505                         if test -n "$found_la"; then
5506                                                         save_libdir="$libdir"
5507               case "$found_la" in
5508                 */* | *\\*) . "$found_la" ;;
5509                 *) . "./$found_la" ;;
5510               esac
5511               libdir="$save_libdir"
5512                             for dep in $dependency_libs; do
5513                 case "$dep" in
5514                   -L*)
5515                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5516                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5517                       haveit=
5518                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5519                         if test -n "$GCC"; then
5520                           case $host_os in
5521                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5522                           esac
5523                         fi
5524                       fi
5525                       if test -z "$haveit"; then
5526                         haveit=
5527                         for x in $LDFLAGS $LIBICONV; do
5528
5529   acl_save_prefix="$prefix"
5530   prefix="$acl_final_prefix"
5531   acl_save_exec_prefix="$exec_prefix"
5532   exec_prefix="$acl_final_exec_prefix"
5533   eval x=\"$x\"
5534   exec_prefix="$acl_save_exec_prefix"
5535   prefix="$acl_save_prefix"
5536
5537                           if test "X$x" = "X-L$additional_libdir"; then
5538                             haveit=yes
5539                             break
5540                           fi
5541                         done
5542                         if test -z "$haveit"; then
5543                           if test -d "$additional_libdir"; then
5544                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5545                           fi
5546                         fi
5547                         haveit=
5548                         for x in $LDFLAGS $LTLIBICONV; do
5549
5550   acl_save_prefix="$prefix"
5551   prefix="$acl_final_prefix"
5552   acl_save_exec_prefix="$exec_prefix"
5553   exec_prefix="$acl_final_exec_prefix"
5554   eval x=\"$x\"
5555   exec_prefix="$acl_save_exec_prefix"
5556   prefix="$acl_save_prefix"
5557
5558                           if test "X$x" = "X-L$additional_libdir"; then
5559                             haveit=yes
5560                             break
5561                           fi
5562                         done
5563                         if test -z "$haveit"; then
5564                           if test -d "$additional_libdir"; then
5565                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5566                           fi
5567                         fi
5568                       fi
5569                     fi
5570                     ;;
5571                   -R*)
5572                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5573                     if test "$enable_rpath" != no; then
5574                                                                   haveit=
5575                       for x in $rpathdirs; do
5576                         if test "X$x" = "X$dir"; then
5577                           haveit=yes
5578                           break
5579                         fi
5580                       done
5581                       if test -z "$haveit"; then
5582                         rpathdirs="$rpathdirs $dir"
5583                       fi
5584                                                                   haveit=
5585                       for x in $ltrpathdirs; do
5586                         if test "X$x" = "X$dir"; then
5587                           haveit=yes
5588                           break
5589                         fi
5590                       done
5591                       if test -z "$haveit"; then
5592                         ltrpathdirs="$ltrpathdirs $dir"
5593                       fi
5594                     fi
5595                     ;;
5596                   -l*)
5597                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5598                     ;;
5599                   *.la)
5600                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5601                     ;;
5602                   *)
5603                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5604                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5605                     ;;
5606                 esac
5607               done
5608             fi
5609           else
5610                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5611             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5612           fi
5613         fi
5614       fi
5615     done
5616   done
5617   if test "X$rpathdirs" != "X"; then
5618     if test -n "$hardcode_libdir_separator"; then
5619                         alldirs=
5620       for found_dir in $rpathdirs; do
5621         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5622       done
5623             acl_save_libdir="$libdir"
5624       libdir="$alldirs"
5625       eval flag=\"$hardcode_libdir_flag_spec\"
5626       libdir="$acl_save_libdir"
5627       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5628     else
5629             for found_dir in $rpathdirs; do
5630         acl_save_libdir="$libdir"
5631         libdir="$found_dir"
5632         eval flag=\"$hardcode_libdir_flag_spec\"
5633         libdir="$acl_save_libdir"
5634         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5635       done
5636     fi
5637   fi
5638   if test "X$ltrpathdirs" != "X"; then
5639             for found_dir in $ltrpathdirs; do
5640       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5641     done
5642   fi
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5662 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5663 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   gt_save_CPPFLAGS="$CPPFLAGS"
5667      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5668      gt_save_LIBS="$LIBS"
5669      LIBS="$LIBS -framework CoreFoundation"
5670      cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676 #include <CFPreferences.h>
5677 int
5678 main ()
5679 {
5680 CFPreferencesCopyAppValue(NULL, NULL)
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687   (eval $ac_link) 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } &&
5694          { ac_try='test -z "$ac_c_werror_flag"
5695                          || test ! -s conftest.err'
5696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697   (eval $ac_try) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; } &&
5701          { ac_try='test -s conftest$ac_exeext'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; }; then
5707   gt_cv_func_CFPreferencesCopyAppValue=yes
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 gt_cv_func_CFPreferencesCopyAppValue=no
5713 fi
5714 rm -f conftest.err conftest.$ac_objext \
5715       conftest$ac_exeext conftest.$ac_ext
5716      CPPFLAGS="$gt_save_CPPFLAGS"
5717      LIBS="$gt_save_LIBS"
5718 fi
5719 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5720 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5721   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5725 _ACEOF
5726
5727   fi
5728     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5729 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5730 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   gt_save_CPPFLAGS="$CPPFLAGS"
5734      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5735      gt_save_LIBS="$LIBS"
5736      LIBS="$LIBS -framework CoreFoundation"
5737      cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 #include <CFLocale.h>
5744 int
5745 main ()
5746 {
5747 CFLocaleCopyCurrent();
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754   (eval $ac_link) 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -z "$ac_c_werror_flag"
5762                          || test ! -s conftest.err'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; } &&
5768          { ac_try='test -s conftest$ac_exeext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   gt_cv_func_CFLocaleCopyCurrent=yes
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 gt_cv_func_CFLocaleCopyCurrent=no
5780 fi
5781 rm -f conftest.err conftest.$ac_objext \
5782       conftest$ac_exeext conftest.$ac_ext
5783      CPPFLAGS="$gt_save_CPPFLAGS"
5784      LIBS="$gt_save_LIBS"
5785 fi
5786 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5787 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5788   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5789
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_CFLOCALECOPYCURRENT 1
5792 _ACEOF
5793
5794   fi
5795   INTL_MACOSX_LIBS=
5796   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5797     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5798   fi
5799
5800
5801
5802
5803   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5805     # Check whether --enable-nls or --disable-nls was given.
5806 if test "${enable_nls+set}" = set; then
5807   enableval="$enable_nls"
5808   USE_NLS=$enableval
5809 else
5810   USE_NLS=yes
5811 fi;
5812   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5813 echo "${ECHO_T}$USE_NLS" >&6
5814
5815
5816
5817
5818   LIBINTL=
5819   LTLIBINTL=
5820   POSUB=
5821
5822     if test "$USE_NLS" = "yes"; then
5823     gt_use_preinstalled_gnugettext=no
5824
5825
5826
5827
5828
5829
5830         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5831 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5832 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 #include <libintl.h>
5842 extern int _nl_msg_cat_cntr;
5843 extern int *_nl_domain_bindings;
5844 int
5845 main ()
5846 {
5847 bindtextdomain ("", "");
5848 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855   (eval $ac_link) 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_c_werror_flag"
5863                          || test ! -s conftest.err'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; } &&
5869          { ac_try='test -s conftest$ac_exeext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   gt_cv_func_gnugettext1_libc=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 gt_cv_func_gnugettext1_libc=no
5881 fi
5882 rm -f conftest.err conftest.$ac_objext \
5883       conftest$ac_exeext conftest.$ac_ext
5884 fi
5885 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5886 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5887
5888         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5889
5890
5891
5892
5893
5894           am_save_CPPFLAGS="$CPPFLAGS"
5895
5896   for element in $INCICONV; do
5897     haveit=
5898     for x in $CPPFLAGS; do
5899
5900   acl_save_prefix="$prefix"
5901   prefix="$acl_final_prefix"
5902   acl_save_exec_prefix="$exec_prefix"
5903   exec_prefix="$acl_final_exec_prefix"
5904   eval x=\"$x\"
5905   exec_prefix="$acl_save_exec_prefix"
5906   prefix="$acl_save_prefix"
5907
5908       if test "X$x" = "X$element"; then
5909         haveit=yes
5910         break
5911       fi
5912     done
5913     if test -z "$haveit"; then
5914       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5915     fi
5916   done
5917
5918
5919   echo "$as_me:$LINENO: checking for iconv" >&5
5920 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5921 if test "${am_cv_func_iconv+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924
5925     am_cv_func_iconv="no, consider installing GNU libiconv"
5926     am_cv_lib_iconv=no
5927     cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #include <stdlib.h>
5934 #include <iconv.h>
5935 int
5936 main ()
5937 {
5938 iconv_t cd = iconv_open("","");
5939        iconv(cd,NULL,NULL,NULL,NULL);
5940        iconv_close(cd);
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947   (eval $ac_link) 2>conftest.er1
5948   ac_status=$?
5949   grep -v '^ *+' conftest.er1 >conftest.err
5950   rm -f conftest.er1
5951   cat conftest.err >&5
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } &&
5954          { ac_try='test -z "$ac_c_werror_flag"
5955                          || test ! -s conftest.err'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; } &&
5961          { ac_try='test -s conftest$ac_exeext'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; }; then
5967   am_cv_func_iconv=yes
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 fi
5973 rm -f conftest.err conftest.$ac_objext \
5974       conftest$ac_exeext conftest.$ac_ext
5975     if test "$am_cv_func_iconv" != yes; then
5976       am_save_LIBS="$LIBS"
5977       LIBS="$LIBS $LIBICONV"
5978       cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984 #include <stdlib.h>
5985 #include <iconv.h>
5986 int
5987 main ()
5988 {
5989 iconv_t cd = iconv_open("","");
5990          iconv(cd,NULL,NULL,NULL,NULL);
5991          iconv_close(cd);
5992   ;
5993   return 0;
5994 }
5995 _ACEOF
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998   (eval $ac_link) 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -z "$ac_c_werror_flag"
6006                          || test ! -s conftest.err'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; } &&
6012          { ac_try='test -s conftest$ac_exeext'
6013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014   (eval $ac_try) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); }; }; then
6018   am_cv_lib_iconv=yes
6019         am_cv_func_iconv=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext \
6026       conftest$ac_exeext conftest.$ac_ext
6027       LIBS="$am_save_LIBS"
6028     fi
6029
6030 fi
6031 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6032 echo "${ECHO_T}$am_cv_func_iconv" >&6
6033   if test "$am_cv_func_iconv" = yes; then
6034
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ICONV 1
6037 _ACEOF
6038
6039   fi
6040   if test "$am_cv_lib_iconv" = yes; then
6041     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6042 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6043     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6044 echo "${ECHO_T}$LIBICONV" >&6
6045   else
6046             CPPFLAGS="$am_save_CPPFLAGS"
6047     LIBICONV=
6048     LTLIBICONV=
6049   fi
6050
6051
6052
6053
6054
6055
6056     use_additional=yes
6057
6058   acl_save_prefix="$prefix"
6059   prefix="$acl_final_prefix"
6060   acl_save_exec_prefix="$exec_prefix"
6061   exec_prefix="$acl_final_exec_prefix"
6062
6063     eval additional_includedir=\"$includedir\"
6064     eval additional_libdir=\"$libdir\"
6065
6066   exec_prefix="$acl_save_exec_prefix"
6067   prefix="$acl_save_prefix"
6068
6069
6070 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6071 if test "${with_libintl_prefix+set}" = set; then
6072   withval="$with_libintl_prefix"
6073
6074     if test "X$withval" = "Xno"; then
6075       use_additional=no
6076     else
6077       if test "X$withval" = "X"; then
6078
6079   acl_save_prefix="$prefix"
6080   prefix="$acl_final_prefix"
6081   acl_save_exec_prefix="$exec_prefix"
6082   exec_prefix="$acl_final_exec_prefix"
6083
6084           eval additional_includedir=\"$includedir\"
6085           eval additional_libdir=\"$libdir\"
6086
6087   exec_prefix="$acl_save_exec_prefix"
6088   prefix="$acl_save_prefix"
6089
6090       else
6091         additional_includedir="$withval/include"
6092         additional_libdir="$withval/lib"
6093       fi
6094     fi
6095
6096 fi;
6097       LIBINTL=
6098   LTLIBINTL=
6099   INCINTL=
6100   rpathdirs=
6101   ltrpathdirs=
6102   names_already_handled=
6103   names_next_round='intl '
6104   while test -n "$names_next_round"; do
6105     names_this_round="$names_next_round"
6106     names_next_round=
6107     for name in $names_this_round; do
6108       already_handled=
6109       for n in $names_already_handled; do
6110         if test "$n" = "$name"; then
6111           already_handled=yes
6112           break
6113         fi
6114       done
6115       if test -z "$already_handled"; then
6116         names_already_handled="$names_already_handled $name"
6117                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6118         eval value=\"\$HAVE_LIB$uppername\"
6119         if test -n "$value"; then
6120           if test "$value" = yes; then
6121             eval value=\"\$LIB$uppername\"
6122             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6123             eval value=\"\$LTLIB$uppername\"
6124             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6125           else
6126                                     :
6127           fi
6128         else
6129                               found_dir=
6130           found_la=
6131           found_so=
6132           found_a=
6133           if test $use_additional = yes; then
6134             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6135               found_dir="$additional_libdir"
6136               found_so="$additional_libdir/lib$name.$shlibext"
6137               if test -f "$additional_libdir/lib$name.la"; then
6138                 found_la="$additional_libdir/lib$name.la"
6139               fi
6140             else
6141               if test -f "$additional_libdir/lib$name.$libext"; then
6142                 found_dir="$additional_libdir"
6143                 found_a="$additional_libdir/lib$name.$libext"
6144                 if test -f "$additional_libdir/lib$name.la"; then
6145                   found_la="$additional_libdir/lib$name.la"
6146                 fi
6147               fi
6148             fi
6149           fi
6150           if test "X$found_dir" = "X"; then
6151             for x in $LDFLAGS $LTLIBINTL; do
6152
6153   acl_save_prefix="$prefix"
6154   prefix="$acl_final_prefix"
6155   acl_save_exec_prefix="$exec_prefix"
6156   exec_prefix="$acl_final_exec_prefix"
6157   eval x=\"$x\"
6158   exec_prefix="$acl_save_exec_prefix"
6159   prefix="$acl_save_prefix"
6160
6161               case "$x" in
6162                 -L*)
6163                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6164                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6165                     found_dir="$dir"
6166                     found_so="$dir/lib$name.$shlibext"
6167                     if test -f "$dir/lib$name.la"; then
6168                       found_la="$dir/lib$name.la"
6169                     fi
6170                   else
6171                     if test -f "$dir/lib$name.$libext"; then
6172                       found_dir="$dir"
6173                       found_a="$dir/lib$name.$libext"
6174                       if test -f "$dir/lib$name.la"; then
6175                         found_la="$dir/lib$name.la"
6176                       fi
6177                     fi
6178                   fi
6179                   ;;
6180               esac
6181               if test "X$found_dir" != "X"; then
6182                 break
6183               fi
6184             done
6185           fi
6186           if test "X$found_dir" != "X"; then
6187                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6188             if test "X$found_so" != "X"; then
6189                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6190                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6191               else
6192                                                                                 haveit=
6193                 for x in $ltrpathdirs; do
6194                   if test "X$x" = "X$found_dir"; then
6195                     haveit=yes
6196                     break
6197                   fi
6198                 done
6199                 if test -z "$haveit"; then
6200                   ltrpathdirs="$ltrpathdirs $found_dir"
6201                 fi
6202                                 if test "$hardcode_direct" = yes; then
6203                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6204                 else
6205                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6206                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6207                                                             haveit=
6208                     for x in $rpathdirs; do
6209                       if test "X$x" = "X$found_dir"; then
6210                         haveit=yes
6211                         break
6212                       fi
6213                     done
6214                     if test -z "$haveit"; then
6215                       rpathdirs="$rpathdirs $found_dir"
6216                     fi
6217                   else
6218                                                                                 haveit=
6219                     for x in $LDFLAGS $LIBINTL; do
6220
6221   acl_save_prefix="$prefix"
6222   prefix="$acl_final_prefix"
6223   acl_save_exec_prefix="$exec_prefix"
6224   exec_prefix="$acl_final_exec_prefix"
6225   eval x=\"$x\"
6226   exec_prefix="$acl_save_exec_prefix"
6227   prefix="$acl_save_prefix"
6228
6229                       if test "X$x" = "X-L$found_dir"; then
6230                         haveit=yes
6231                         break
6232                       fi
6233                     done
6234                     if test -z "$haveit"; then
6235                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6236                     fi
6237                     if test "$hardcode_minus_L" != no; then
6238                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6239                     else
6240                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6241                     fi
6242                   fi
6243                 fi
6244               fi
6245             else
6246               if test "X$found_a" != "X"; then
6247                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6248               else
6249                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6250               fi
6251             fi
6252                         additional_includedir=
6253             case "$found_dir" in
6254               */lib | */lib/)
6255                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6256                 additional_includedir="$basedir/include"
6257                 ;;
6258             esac
6259             if test "X$additional_includedir" != "X"; then
6260                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6261                 haveit=
6262                 if test "X$additional_includedir" = "X/usr/local/include"; then
6263                   if test -n "$GCC"; then
6264                     case $host_os in
6265                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6266                     esac
6267                   fi
6268                 fi
6269                 if test -z "$haveit"; then
6270                   for x in $CPPFLAGS $INCINTL; do
6271
6272   acl_save_prefix="$prefix"
6273   prefix="$acl_final_prefix"
6274   acl_save_exec_prefix="$exec_prefix"
6275   exec_prefix="$acl_final_exec_prefix"
6276   eval x=\"$x\"
6277   exec_prefix="$acl_save_exec_prefix"
6278   prefix="$acl_save_prefix"
6279
6280                     if test "X$x" = "X-I$additional_includedir"; then
6281                       haveit=yes
6282                       break
6283                     fi
6284                   done
6285                   if test -z "$haveit"; then
6286                     if test -d "$additional_includedir"; then
6287                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6288                     fi
6289                   fi
6290                 fi
6291               fi
6292             fi
6293                         if test -n "$found_la"; then
6294                                                         save_libdir="$libdir"
6295               case "$found_la" in
6296                 */* | *\\*) . "$found_la" ;;
6297                 *) . "./$found_la" ;;
6298               esac
6299               libdir="$save_libdir"
6300                             for dep in $dependency_libs; do
6301                 case "$dep" in
6302                   -L*)
6303                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6304                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6305                       haveit=
6306                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6307                         if test -n "$GCC"; then
6308                           case $host_os in
6309                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6310                           esac
6311                         fi
6312                       fi
6313                       if test -z "$haveit"; then
6314                         haveit=
6315                         for x in $LDFLAGS $LIBINTL; do
6316
6317   acl_save_prefix="$prefix"
6318   prefix="$acl_final_prefix"
6319   acl_save_exec_prefix="$exec_prefix"
6320   exec_prefix="$acl_final_exec_prefix"
6321   eval x=\"$x\"
6322   exec_prefix="$acl_save_exec_prefix"
6323   prefix="$acl_save_prefix"
6324
6325                           if test "X$x" = "X-L$additional_libdir"; then
6326                             haveit=yes
6327                             break
6328                           fi
6329                         done
6330                         if test -z "$haveit"; then
6331                           if test -d "$additional_libdir"; then
6332                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6333                           fi
6334                         fi
6335                         haveit=
6336                         for x in $LDFLAGS $LTLIBINTL; do
6337
6338   acl_save_prefix="$prefix"
6339   prefix="$acl_final_prefix"
6340   acl_save_exec_prefix="$exec_prefix"
6341   exec_prefix="$acl_final_exec_prefix"
6342   eval x=\"$x\"
6343   exec_prefix="$acl_save_exec_prefix"
6344   prefix="$acl_save_prefix"
6345
6346                           if test "X$x" = "X-L$additional_libdir"; then
6347                             haveit=yes
6348                             break
6349                           fi
6350                         done
6351                         if test -z "$haveit"; then
6352                           if test -d "$additional_libdir"; then
6353                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6354                           fi
6355                         fi
6356                       fi
6357                     fi
6358                     ;;
6359                   -R*)
6360                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6361                     if test "$enable_rpath" != no; then
6362                                                                   haveit=
6363                       for x in $rpathdirs; do
6364                         if test "X$x" = "X$dir"; then
6365                           haveit=yes
6366                           break
6367                         fi
6368                       done
6369                       if test -z "$haveit"; then
6370                         rpathdirs="$rpathdirs $dir"
6371                       fi
6372                                                                   haveit=
6373                       for x in $ltrpathdirs; do
6374                         if test "X$x" = "X$dir"; then
6375                           haveit=yes
6376                           break
6377                         fi
6378                       done
6379                       if test -z "$haveit"; then
6380                         ltrpathdirs="$ltrpathdirs $dir"
6381                       fi
6382                     fi
6383                     ;;
6384                   -l*)
6385                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6386                     ;;
6387                   *.la)
6388                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6389                     ;;
6390                   *)
6391                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6392                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6393                     ;;
6394                 esac
6395               done
6396             fi
6397           else
6398                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6399             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6400           fi
6401         fi
6402       fi
6403     done
6404   done
6405   if test "X$rpathdirs" != "X"; then
6406     if test -n "$hardcode_libdir_separator"; then
6407                         alldirs=
6408       for found_dir in $rpathdirs; do
6409         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6410       done
6411             acl_save_libdir="$libdir"
6412       libdir="$alldirs"
6413       eval flag=\"$hardcode_libdir_flag_spec\"
6414       libdir="$acl_save_libdir"
6415       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6416     else
6417             for found_dir in $rpathdirs; do
6418         acl_save_libdir="$libdir"
6419         libdir="$found_dir"
6420         eval flag=\"$hardcode_libdir_flag_spec\"
6421         libdir="$acl_save_libdir"
6422         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6423       done
6424     fi
6425   fi
6426   if test "X$ltrpathdirs" != "X"; then
6427             for found_dir in $ltrpathdirs; do
6428       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6429     done
6430   fi
6431
6432           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6433 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6434 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   gt_save_CPPFLAGS="$CPPFLAGS"
6438             CPPFLAGS="$CPPFLAGS $INCINTL"
6439             gt_save_LIBS="$LIBS"
6440             LIBS="$LIBS $LIBINTL"
6441                         cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 #include <libintl.h>
6448 extern int _nl_msg_cat_cntr;
6449 extern
6450 #ifdef __cplusplus
6451 "C"
6452 #endif
6453 const char *_nl_expand_alias (const char *);
6454 int
6455 main ()
6456 {
6457 bindtextdomain ("", "");
6458 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465   (eval $ac_link) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } &&
6472          { ac_try='test -z "$ac_c_werror_flag"
6473                          || test ! -s conftest.err'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; } &&
6479          { ac_try='test -s conftest$ac_exeext'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; }; then
6485   gt_cv_func_gnugettext1_libintl=yes
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 gt_cv_func_gnugettext1_libintl=no
6491 fi
6492 rm -f conftest.err conftest.$ac_objext \
6493       conftest$ac_exeext conftest.$ac_ext
6494                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6495               LIBS="$LIBS $LIBICONV"
6496               cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502 #include <libintl.h>
6503 extern int _nl_msg_cat_cntr;
6504 extern
6505 #ifdef __cplusplus
6506 "C"
6507 #endif
6508 const char *_nl_expand_alias (const char *);
6509 int
6510 main ()
6511 {
6512 bindtextdomain ("", "");
6513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520   (eval $ac_link) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   LIBINTL="$LIBINTL $LIBICONV"
6541                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6542                 gt_cv_func_gnugettext1_libintl=yes
6543
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551             fi
6552             CPPFLAGS="$gt_save_CPPFLAGS"
6553             LIBS="$gt_save_LIBS"
6554 fi
6555 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6556 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6557         fi
6558
6559                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6560            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6561                 && test "$PACKAGE" != gettext-runtime \
6562                 && test "$PACKAGE" != gettext-tools; }; then
6563           gt_use_preinstalled_gnugettext=yes
6564         else
6565                     LIBINTL=
6566           LTLIBINTL=
6567           INCINTL=
6568         fi
6569
6570
6571
6572     if test -n "$INTL_MACOSX_LIBS"; then
6573       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6574          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6575                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6576         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6577       fi
6578     fi
6579
6580     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6581        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6582
6583 cat >>confdefs.h <<\_ACEOF
6584 #define ENABLE_NLS 1
6585 _ACEOF
6586
6587     else
6588       USE_NLS=no
6589     fi
6590   fi
6591
6592   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6593 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6594   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6595 echo "${ECHO_T}$USE_NLS" >&6
6596   if test "$USE_NLS" = "yes"; then
6597     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6598 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6599     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6600       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6601         gt_source="external libintl"
6602       else
6603         gt_source="libc"
6604       fi
6605     else
6606       gt_source="included intl directory"
6607     fi
6608     echo "$as_me:$LINENO: result: $gt_source" >&5
6609 echo "${ECHO_T}$gt_source" >&6
6610   fi
6611
6612   if test "$USE_NLS" = "yes"; then
6613
6614     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6615       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6616         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6617 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6618         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6619 echo "${ECHO_T}$LIBINTL" >&6
6620
6621   for element in $INCINTL; do
6622     haveit=
6623     for x in $CPPFLAGS; do
6624
6625   acl_save_prefix="$prefix"
6626   prefix="$acl_final_prefix"
6627   acl_save_exec_prefix="$exec_prefix"
6628   exec_prefix="$acl_final_exec_prefix"
6629   eval x=\"$x\"
6630   exec_prefix="$acl_save_exec_prefix"
6631   prefix="$acl_save_prefix"
6632
6633       if test "X$x" = "X$element"; then
6634         haveit=yes
6635         break
6636       fi
6637     done
6638     if test -z "$haveit"; then
6639       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6640     fi
6641   done
6642
6643       fi
6644
6645
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_GETTEXT 1
6648 _ACEOF
6649
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_DCGETTEXT 1
6653 _ACEOF
6654
6655     fi
6656
6657         POSUB=po
6658   fi
6659
6660
6661
6662     INTLLIBS="$LIBINTL"
6663
6664
6665
6666
6667
6668
6669 if test x${prefix} = xNONE ; then
6670    if test `eval echo ${datadir}` = NONE/share ; then
6671       datadir=/usr/share
6672    fi
6673 fi
6674
6675 # ------------------------------------------------------------------
6676 #  If the user has not set --prefix, we set our default to nothing.
6677 #  In this case, if the user has not set --sysconfdir, we set it
6678 #  to the package default of /etc/bacula.  If either --prefix or
6679 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6680 # ------------------------------------------------------------------
6681 if test x${prefix} = xNONE ; then
6682     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6683         sysconfdir=/etc/bacula
6684     fi
6685     prefix=
6686 fi
6687 sysconfdir=`eval echo ${sysconfdir}`
6688 datadir=`eval echo ${datadir}`
6689 localedir=`eval echo ${datadir}/locale`
6690 cat >>confdefs.h <<_ACEOF
6691 #define LOCALEDIR "$localedir"
6692 _ACEOF
6693
6694
6695 # -------------------------------------------------------------------------
6696 #  If the user has not set --exec-prefix, we default to ${prefix}
6697 # -------------------------------------------------------------------------
6698 if test x${exec_prefix} = xNONE ; then
6699     exec_prefix=${prefix}
6700 fi
6701
6702 # ------------------------------------------------------------------
6703 # If the user has not set --sbindir, we set our default as /sbin
6704 # ------------------------------------------------------------------
6705 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6706     sbindir=${exec_prefix}/sbin
6707 fi
6708 sbindir=`eval echo ${sbindir}`
6709
6710 # -------------------------------------------------------------------------
6711 #  If the user has not set --mandir, we default to /usr/share/man
6712 # -------------------------------------------------------------------------
6713 if test x$mandir = x'${prefix}/man' ; then
6714    mandir=/usr/share/man
6715 fi
6716
6717
6718 # ------------------------------------------------------------------
6719 # All list of languages for which a translation exist. Each
6720 #  language is separated by a space.
6721 # ------------------------------------------------------------------
6722 ALL_LINGUAS=""
6723
6724 for ac_prog in msgfmt
6725 do
6726   # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_path_MSGFMT+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $MSGFMT in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751
6752   ;;
6753 esac
6754 fi
6755 MSGFMT=$ac_cv_path_MSGFMT
6756
6757 if test -n "$MSGFMT"; then
6758   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6759 echo "${ECHO_T}$MSGFMT" >&6
6760 else
6761   echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6763 fi
6764
6765   test -n "$MSGFMT" && break
6766 done
6767 test -n "$MSGFMT" || MSGFMT="no"
6768
6769 if test "$MSGFMT" = "no"
6770 then
6771    echo 'msgfmt program not found, disabling NLS !'
6772    USE_NLS=no
6773    USE_INCLUDED_LIBINTL=no
6774 #else
6775 #   AM_GNU_GETTEXT
6776 fi
6777
6778
6779 support_mysql=no
6780 support_sqlite=no
6781 support_sqlite3=no
6782 support_postgresql=no
6783 support_smartalloc=yes
6784 support_readline=yes
6785 support_conio=yes
6786 support_gnome=no
6787 support_wx_console=no
6788 support_tls=no
6789 gnome_version=
6790 wx_version=
6791 support_static_tools=no
6792 support_static_fd=no
6793 support_static_sd=no
6794 support_static_dir=no
6795 support_static_cons=no
6796 support_python=no
6797 build_client_only=no
6798 build_dird=yes
6799 build_stored=yes
6800 cats=
6801 db_name=Internal
6802 DB_NAME=bdb
6803
6804
6805 # -------------------------------------------
6806 # gnome (default off)
6807 # -------------------------------------------
6808 # Check whether --enable-gnome or --disable-gnome was given.
6809 if test "${enable_gnome+set}" = set; then
6810   enableval="$enable_gnome"
6811   if test x$enableval = xyes; then
6812     support_gnome=yes
6813   fi
6814 fi;
6815
6816 GNOME_DIR=
6817 if test x$support_gnome = xyes; then
6818   abc=`$PKGCONFIG --exists libgnomeui-2.0`
6819   pkg=$?
6820   if test $pkg = 0; then
6821      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6822      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6823      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6824      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6825
6826
6827
6828
6829      GNOME_DIR=src/gnome2-console
6830      gnome_version="Version 2.x"
6831   else
6832      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6833 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6834    { (exit 1); exit 1; }; }
6835   fi
6836 fi
6837
6838
6839
6840 # -------------------------------------------
6841 # wx-console (default off)
6842 # -------------------------------------------
6843 # Check whether --enable-wx-console or --disable-wx-console was given.
6844 if test "${enable_wx_console+set}" = set; then
6845   enableval="$enable_wx_console"
6846   if test x$enableval = xyes; then
6847     support_wx_console=yes
6848   fi
6849 fi;
6850
6851 WX_DIR=
6852 if test x$support_wx_console = xyes; then
6853   abc=`$WXCONFIG $WXFLAGS --cppflags`
6854   pkg=$?
6855   if test $pkg = 0; then
6856      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6857      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6858      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6859
6860
6861
6862      WX_DIR=src/wx-console
6863   else
6864      echo " "
6865      echo "wx-config program not found. wx-console disabled."
6866      echo " "
6867      support_wx_console=no
6868   fi
6869 fi
6870
6871
6872
6873 # -------------------------------------------
6874 # tray-monitor (default off)
6875 # -------------------------------------------
6876 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6877 if test "${enable_tray_monitor+set}" = set; then
6878   enableval="$enable_tray_monitor"
6879   if test x$enableval = xyes; then
6880     support_tray_monitor=yes
6881   fi
6882 fi;
6883
6884 TRAY_MONITOR_DIR=
6885 if test x$support_tray_monitor = xyes; then
6886   abc=`$PKGCONFIG --exists gtk+-2.0`
6887   pkg=$?
6888   if test $pkg = 0; then
6889      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6890      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6891
6892
6893      TRAY_MONITOR_DIR=src/tray-monitor
6894      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6895      pkg=$?
6896      if test $pkg = 0; then
6897         cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_GTK_2_4 1
6899 _ACEOF
6900
6901      fi
6902   fi
6903 fi
6904
6905
6906 # -------------------------------------------
6907 # smartalloc (default off)
6908 # -------------------------------------------
6909 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6910 if test "${enable_smartalloc+set}" = set; then
6911   enableval="$enable_smartalloc"
6912   if test x$enableval = xno; then
6913     support_smartalloc=no
6914   fi
6915 fi;
6916
6917 if test x$support_smartalloc = xyes; then
6918    cat >>confdefs.h <<\_ACEOF
6919 #define SMARTALLOC 1
6920 _ACEOF
6921
6922 fi
6923
6924 # -------------------------------------------
6925 # static-tools (default off)
6926 # -------------------------------------------
6927 # Check whether --enable-static-tools or --disable-static-tools was given.
6928 if test "${enable_static_tools+set}" = set; then
6929   enableval="$enable_static_tools"
6930   if test x$enableval = xyes; then
6931      support_static_tools=yes
6932    fi
6933 fi;
6934
6935 TTOOL_LDFLAGS=
6936 if test x$support_static_tools = xyes; then
6937    TTOOL_LDFLAGS="-static"
6938 fi
6939
6940
6941 # -------------------------------------------
6942 # static-fd    (default off)
6943 # -------------------------------------------
6944 # Check whether --enable-static-fd or --disable-static-fd was given.
6945 if test "${enable_static_fd+set}" = set; then
6946   enableval="$enable_static_fd"
6947   if test x$enableval = xyes; then
6948      support_static_fd=yes
6949    fi
6950 fi;
6951
6952 STATIC_FD=
6953 if test x$support_static_fd = xyes; then
6954    STATIC_FD="static-bacula-fd"
6955 fi
6956
6957
6958 # -------------------------------------------
6959 # static-sd    (default off)
6960 # -------------------------------------------
6961 # Check whether --enable-static-sd or --disable-static-sd was given.
6962 if test "${enable_static_sd+set}" = set; then
6963   enableval="$enable_static_sd"
6964   if test x$enableval = xyes; then
6965      support_static_sd=yes
6966    fi
6967 fi;
6968
6969 STATIC_SD=
6970 if test x$support_static_sd = xyes; then
6971    STATIC_SD="static-bacula-sd"
6972 fi
6973
6974
6975 # -------------------------------------------
6976 # static-dir   (default off)
6977 # -------------------------------------------
6978 # Check whether --enable-static-dir or --disable-static-dir was given.
6979 if test "${enable_static_dir+set}" = set; then
6980   enableval="$enable_static_dir"
6981   if test x$enableval = xyes; then
6982      support_static_dir=yes
6983    fi
6984 fi;
6985
6986 STATIC_DIR=
6987 if test x$support_static_dir = xyes; then
6988    STATIC_DIR="static-bacula-dir"
6989 fi
6990
6991
6992 # -------------------------------------------
6993 # static-cons  (default off)
6994 # -------------------------------------------
6995 # Check whether --enable-static-cons or --disable-static-cons was given.
6996 if test "${enable_static_cons+set}" = set; then
6997   enableval="$enable_static_cons"
6998   if test x$enableval = xyes; then
6999      support_static_cons=yes
7000    fi
7001 fi;
7002
7003 STATIC_CONS=
7004 STATIC_GNOME_CONS=
7005 STATIC_WX_CONS=
7006 if test x$support_static_cons = xyes; then
7007    STATIC_CONS="static-bconsole"
7008    STATIC_GNOME_CONS="static-gnome-console"
7009    STATIC_WX_CONS="static-wx-console"
7010 fi
7011
7012
7013
7014
7015 # -------------------------------------------
7016 # client_only  (default off)
7017 # -------------------------------------------
7018 # Check whether --enable-client-only or --disable-client-only was given.
7019 if test "${enable_client_only+set}" = set; then
7020   enableval="$enable_client_only"
7021   if test x$enableval = xyes; then
7022       build_client_only=yes
7023       db_name=None
7024       DB_NAME=none
7025    fi
7026 fi;
7027 if test x$build_client_only = xno; then
7028    ALL_DIRS="subdirs"
7029 else
7030    ALL_DIRS=""
7031 fi
7032
7033
7034 # -------------------------------------------
7035 # director  (default on)
7036 # -------------------------------------------
7037 # Check whether --enable-build-dird or --disable-build-dird was given.
7038 if test "${enable_build_dird+set}" = set; then
7039   enableval="$enable_build_dird"
7040   if test x$enableval = xno; then
7041       build_dird=no
7042    fi
7043 fi;
7044 if test x$build_dird = xyes; then
7045    DIRD_DIR="src/dird"
7046    DIR_TOOLS="DIRTOOLS"
7047 else
7048    DIRD_DIR=""
7049    DIR_TOOLS="NODIRTOOLS"
7050 fi
7051
7052
7053
7054 # -------------------------------------------
7055 # stored  (default on)
7056 # -------------------------------------------
7057 # Check whether --enable-build-stored or --disable-build-stored was given.
7058 if test "${enable_build_stored+set}" = set; then
7059   enableval="$enable_build_stored"
7060   if test x$enableval = xno; then
7061       build_stored=no
7062    fi
7063 fi;
7064 if test x$build_stored = xyes; then
7065    STORED_DIR="src/stored"
7066 else
7067    STORED_DIR=""
7068 fi
7069
7070
7071 # ---------------------------------------------------
7072 # Check for conio (Bacula readline substitute)(
7073 # ---------------------------------------------------
7074 # this allows you to turn it completely off
7075 # Check whether --enable-conio or --disable-conio was given.
7076 if test "${enable_conio+set}" = set; then
7077   enableval="$enable_conio"
7078   if test x$enableval = xno; then
7079     support_conio=no
7080   fi
7081 fi;
7082
7083 got_conio="no"
7084 if test x$support_conio = xyes; then
7085    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7087 if test "${ac_cv_header_stdc+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <stdlib.h>
7097 #include <stdarg.h>
7098 #include <string.h>
7099 #include <float.h>
7100
7101 int
7102 main ()
7103 {
7104
7105   ;
7106   return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111   (eval $ac_compile) 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } &&
7118          { ac_try='test -z "$ac_c_werror_flag"
7119                          || test ! -s conftest.err'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; } &&
7125          { ac_try='test -s conftest.$ac_objext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   ac_cv_header_stdc=yes
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ac_cv_header_stdc=no
7137 fi
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139
7140 if test $ac_cv_header_stdc = yes; then
7141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7142   cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 #include <string.h>
7149
7150 _ACEOF
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152   $EGREP "memchr" >/dev/null 2>&1; then
7153   :
7154 else
7155   ac_cv_header_stdc=no
7156 fi
7157 rm -f conftest*
7158
7159 fi
7160
7161 if test $ac_cv_header_stdc = yes; then
7162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 #include <stdlib.h>
7170
7171 _ACEOF
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173   $EGREP "free" >/dev/null 2>&1; then
7174   :
7175 else
7176   ac_cv_header_stdc=no
7177 fi
7178 rm -f conftest*
7179
7180 fi
7181
7182 if test $ac_cv_header_stdc = yes; then
7183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7184   if test "$cross_compiling" = yes; then
7185   :
7186 else
7187   cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 #include <ctype.h>
7194 #if ((' ' & 0x0FF) == 0x020)
7195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7197 #else
7198 # define ISLOWER(c) \
7199                    (('a' <= (c) && (c) <= 'i') \
7200                      || ('j' <= (c) && (c) <= 'r') \
7201                      || ('s' <= (c) && (c) <= 'z'))
7202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7203 #endif
7204
7205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7206 int
7207 main ()
7208 {
7209   int i;
7210   for (i = 0; i < 256; i++)
7211     if (XOR (islower (i), ISLOWER (i))
7212         || toupper (i) != TOUPPER (i))
7213       exit(2);
7214   exit (0);
7215 }
7216 _ACEOF
7217 rm -f conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219   (eval $ac_link) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; }; then
7228   :
7229 else
7230   echo "$as_me: program exited with status $ac_status" >&5
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 ( exit $ac_status )
7235 ac_cv_header_stdc=no
7236 fi
7237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 fi
7240 fi
7241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7243 if test $ac_cv_header_stdc = yes; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define STDC_HEADERS 1
7247 _ACEOF
7248
7249 fi
7250
7251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7262                   inttypes.h stdint.h unistd.h
7263 do
7264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7265 echo "$as_me:$LINENO: checking for $ac_header" >&5
7266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h.  */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h.  */
7276 $ac_includes_default
7277
7278 #include <$ac_header>
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282   (eval $ac_compile) 2>conftest.er1
7283   ac_status=$?
7284   grep -v '^ *+' conftest.er1 >conftest.err
7285   rm -f conftest.er1
7286   cat conftest.err >&5
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } &&
7289          { ac_try='test -z "$ac_c_werror_flag"
7290                          || test ! -s conftest.err'
7291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292   (eval $ac_try) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; } &&
7296          { ac_try='test -s conftest.$ac_objext'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; }; then
7302   eval "$as_ac_Header=yes"
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 eval "$as_ac_Header=no"
7308 fi
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 fi
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314   cat >>confdefs.h <<_ACEOF
7315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7316 _ACEOF
7317
7318 fi
7319
7320 done
7321
7322
7323 if test "${ac_cv_header_termcap_h+set}" = set; then
7324   echo "$as_me:$LINENO: checking for termcap.h" >&5
7325 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7326 if test "${ac_cv_header_termcap_h+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 fi
7329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7331 else
7332   # Is the header compilable?
7333 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7334 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 $ac_includes_default
7342 #include <termcap.h>
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346   (eval $ac_compile) 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } &&
7353          { ac_try='test -z "$ac_c_werror_flag"
7354                          || test ! -s conftest.err'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; } &&
7360          { ac_try='test -s conftest.$ac_objext'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; }; then
7366   ac_header_compiler=yes
7367 else
7368   echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_header_compiler=no
7372 fi
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375 echo "${ECHO_T}$ac_header_compiler" >&6
7376
7377 # Is the header present?
7378 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7379 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386 #include <termcap.h>
7387 _ACEOF
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } >/dev/null; then
7396   if test -s conftest.err; then
7397     ac_cpp_err=$ac_c_preproc_warn_flag
7398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399   else
7400     ac_cpp_err=
7401   fi
7402 else
7403   ac_cpp_err=yes
7404 fi
7405 if test -z "$ac_cpp_err"; then
7406   ac_header_preproc=yes
7407 else
7408   echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7410
7411   ac_header_preproc=no
7412 fi
7413 rm -f conftest.err conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415 echo "${ECHO_T}$ac_header_preproc" >&6
7416
7417 # So?  What about this header?
7418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7419   yes:no: )
7420     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7421 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7422     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7423 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7424     ac_header_preproc=yes
7425     ;;
7426   no:yes:* )
7427     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7428 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7429     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
7430 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
7431     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7432 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7433     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
7434 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7435     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7436 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7437     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7438 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7439     (
7440       cat <<\_ASBOX
7441 ## ------------------------------------------ ##
7442 ## Report this to the AC_PACKAGE_NAME lists.  ##
7443 ## ------------------------------------------ ##
7444 _ASBOX
7445     ) |
7446       sed "s/^/$as_me: WARNING:     /" >&2
7447     ;;
7448 esac
7449 echo "$as_me:$LINENO: checking for termcap.h" >&5
7450 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7451 if test "${ac_cv_header_termcap_h+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   ac_cv_header_termcap_h=$ac_header_preproc
7455 fi
7456 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7457 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7458
7459 fi
7460 if test $ac_cv_header_termcap_h = yes; then
7461    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7462 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7463 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   ac_check_lib_save_LIBS=$LIBS
7467 LIBS="-ltermcap  $LIBS"
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474
7475 /* Override any gcc2 internal prototype to avoid an error.  */
7476 #ifdef __cplusplus
7477 extern "C"
7478 #endif
7479 /* We use char because int might match the return type of a gcc2
7480    builtin and then its argument prototype would still apply.  */
7481 char tgetent ();
7482 int
7483 main ()
7484 {
7485 tgetent ();
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492   (eval $ac_link) 2>conftest.er1
7493   ac_status=$?
7494   grep -v '^ *+' conftest.er1 >conftest.err
7495   rm -f conftest.er1
7496   cat conftest.err >&5
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); } &&
7499          { ac_try='test -z "$ac_c_werror_flag"
7500                          || test ! -s conftest.err'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; } &&
7506          { ac_try='test -s conftest$ac_exeext'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; }; then
7512   ac_cv_lib_termcap_tgetent=yes
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517 ac_cv_lib_termcap_tgetent=no
7518 fi
7519 rm -f conftest.err conftest.$ac_objext \
7520       conftest$ac_exeext conftest.$ac_ext
7521 LIBS=$ac_check_lib_save_LIBS
7522 fi
7523 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7524 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7525 if test $ac_cv_lib_termcap_tgetent = yes; then
7526    CONS_LIBS="-ltermcap"
7527          CONS_OBJ="conio.o"
7528          CONS_SRC="conio.c"
7529          got_conio="yes"
7530          support_readline=no
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_CONIO 1
7534 _ACEOF
7535
7536
7537 else
7538    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7539 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7540 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   ac_check_lib_save_LIBS=$LIBS
7544 LIBS="-lncurses  $LIBS"
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551
7552 /* Override any gcc2 internal prototype to avoid an error.  */
7553 #ifdef __cplusplus
7554 extern "C"
7555 #endif
7556 /* We use char because int might match the return type of a gcc2
7557    builtin and then its argument prototype would still apply.  */
7558 char tgetent ();
7559 int
7560 main ()
7561 {
7562 tgetent ();
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569   (eval $ac_link) 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } &&
7576          { ac_try='test -z "$ac_c_werror_flag"
7577                          || test ! -s conftest.err'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; } &&
7583          { ac_try='test -s conftest$ac_exeext'
7584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585   (eval $ac_try) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589   ac_cv_lib_ncurses_tgetent=yes
7590 else
7591   echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_cv_lib_ncurses_tgetent=no
7595 fi
7596 rm -f conftest.err conftest.$ac_objext \
7597       conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7599 fi
7600 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7601 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7602 if test $ac_cv_lib_ncurses_tgetent = yes; then
7603    CONS_LIBS="-lncurses"
7604            CONS_OBJ="conio.o"
7605            CONS_SRC="conio.c"
7606            got_conio="yes"
7607            support_readline=no
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_CONIO 1
7611 _ACEOF
7612
7613
7614 fi
7615
7616
7617 fi
7618
7619
7620 else
7621
7622
7623 for ac_header in curses.h
7624 do
7625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627   echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 fi
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634 else
7635   # Is the header compilable?
7636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 $ac_includes_default
7645 #include <$ac_header>
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649   (eval $ac_compile) 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -z "$ac_c_werror_flag"
7657                          || test ! -s conftest.err'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; } &&
7663          { ac_try='test -s conftest.$ac_objext'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   ac_header_compiler=yes
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ac_header_compiler=no
7675 fi
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7678 echo "${ECHO_T}$ac_header_compiler" >&6
7679
7680 # Is the header present?
7681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 #include <$ac_header>
7690 _ACEOF
7691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } >/dev/null; then
7699   if test -s conftest.err; then
7700     ac_cpp_err=$ac_c_preproc_warn_flag
7701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7702   else
7703     ac_cpp_err=
7704   fi
7705 else
7706   ac_cpp_err=yes
7707 fi
7708 if test -z "$ac_cpp_err"; then
7709   ac_header_preproc=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714   ac_header_preproc=no
7715 fi
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7719
7720 # So?  What about this header?
7721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7722   yes:no: )
7723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7727     ac_header_preproc=yes
7728     ;;
7729   no:yes:* )
7730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7742     (
7743       cat <<\_ASBOX
7744 ## ------------------------------------------ ##
7745 ## Report this to the AC_PACKAGE_NAME lists.  ##
7746 ## ------------------------------------------ ##
7747 _ASBOX
7748     ) |
7749       sed "s/^/$as_me: WARNING:     /" >&2
7750     ;;
7751 esac
7752 echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   eval "$as_ac_Header=\$ac_header_preproc"
7758 fi
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7761
7762 fi
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764   cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 _ACEOF
7767
7768 fi
7769
7770 done
7771
7772          echo "$as_me:$LINENO: checking for term.h" >&5
7773 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7774 if test "${ac_cv_header_term_h+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 #if HAVE_CURSES_H
7784 #include <curses.h>
7785 #endif
7786
7787
7788 #include <term.h>
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792   (eval $ac_compile) 2>conftest.er1
7793   ac_status=$?
7794   grep -v '^ *+' conftest.er1 >conftest.err
7795   rm -f conftest.er1
7796   cat conftest.err >&5
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); } &&
7799          { ac_try='test -z "$ac_c_werror_flag"
7800                          || test ! -s conftest.err'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; } &&
7806          { ac_try='test -s conftest.$ac_objext'
7807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808   (eval $ac_try) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; }; then
7812   ac_cv_header_term_h=yes
7813 else
7814   echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7816
7817 ac_cv_header_term_h=no
7818 fi
7819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7822 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7823 if test $ac_cv_header_term_h = yes; then
7824    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7825 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7826 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-lcurses  $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837
7838 /* Override any gcc2 internal prototype to avoid an error.  */
7839 #ifdef __cplusplus
7840 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843    builtin and then its argument prototype would still apply.  */
7844 char tgetent ();
7845 int
7846 main ()
7847 {
7848 tgetent ();
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855   (eval $ac_link) 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag"
7863                          || test ! -s conftest.err'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; } &&
7869          { ac_try='test -s conftest$ac_exeext'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   ac_cv_lib_curses_tgetent=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_cv_lib_curses_tgetent=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext \
7883       conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7887 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7888 if test $ac_cv_lib_curses_tgetent = yes; then
7889    CONS_LIBS="-lcurses"
7890                    CONS_OBJ="conio.o"
7891                    CONS_SRC="conio.c"
7892                    got_conio="yes"
7893                    support_readline=no
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_CONIO 1
7897 _ACEOF
7898
7899
7900 fi
7901
7902
7903 else
7904    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7905 fi
7906
7907
7908
7909 fi
7910
7911
7912 fi
7913
7914
7915 # ---------------------------------------------------
7916 # Check for readline support/directory (default off)
7917 # ---------------------------------------------------
7918 # this allows you to turn it completely off
7919 # Check whether --enable-readline or --disable-readline was given.
7920 if test "${enable_readline+set}" = set; then
7921   enableval="$enable_readline"
7922   if test x$enableval = xno; then
7923     support_readline=no
7924   fi
7925 fi;
7926
7927 got_readline="no"
7928 READLINE_SRC=
7929 if test x$support_readline = xyes; then
7930
7931 # Check whether --with-readline or --without-readline was given.
7932 if test "${with_readline+set}" = set; then
7933   withval="$with_readline"
7934
7935         case "$with_readline" in
7936         no) : ;;
7937         yes|*)
7938           if test -f ${with_readline}/readline.h; then
7939              CONS_INC="-I${with_readline}"
7940              CONS_LDFLAGS="-L$with_readline"
7941           elif test -f ${with_readline}/include/readline/readline.h; then
7942              CONS_INC="-I${with_readline}/include/readline"
7943              CONS_LDFLAGS="-L${with_readline}/lib"
7944              with_readline="${with_readline}/include/readline"
7945           else
7946              with_readline="/usr/include/readline"
7947           fi
7948           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7951 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 fi
7955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7957 else
7958   # Is the header compilable?
7959 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7960 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h.  */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h.  */
7967 $ac_includes_default
7968 #include <${with_readline}/readline.h>
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972   (eval $ac_compile) 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -z "$ac_c_werror_flag"
7980                          || test ! -s conftest.err'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; } &&
7986          { ac_try='test -s conftest.$ac_objext'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; }; then
7992   ac_header_compiler=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 ac_header_compiler=no
7998 fi
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8002
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
8005 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012 #include <${with_readline}/readline.h>
8013 _ACEOF
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016   ac_status=$?
8017   grep -v '^ *+' conftest.er1 >conftest.err
8018   rm -f conftest.er1
8019   cat conftest.err >&5
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } >/dev/null; then
8022   if test -s conftest.err; then
8023     ac_cpp_err=$ac_c_preproc_warn_flag
8024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8025   else
8026     ac_cpp_err=
8027   fi
8028 else
8029   ac_cpp_err=yes
8030 fi
8031 if test -z "$ac_cpp_err"; then
8032   ac_header_preproc=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037   ac_header_preproc=no
8038 fi
8039 rm -f conftest.err conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041 echo "${ECHO_T}$ac_header_preproc" >&6
8042
8043 # So?  What about this header?
8044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8045   yes:no: )
8046     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8047 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8049 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8050     ac_header_preproc=yes
8051     ;;
8052   no:yes:* )
8053     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8055     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
8057     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8058 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8060 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8061     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8063     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8064 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8065     (
8066       cat <<\_ASBOX
8067 ## ------------------------------------------ ##
8068 ## Report this to the AC_PACKAGE_NAME lists.  ##
8069 ## ------------------------------------------ ##
8070 _ASBOX
8071     ) |
8072       sed "s/^/$as_me: WARNING:     /" >&2
8073     ;;
8074 esac
8075 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8076 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078   echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080   eval "$as_ac_Header=\$ac_header_preproc"
8081 fi
8082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084
8085 fi
8086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087    cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_READLINE 1
8089 _ACEOF
8090
8091                CONS_LIBS="-lreadline -lhistory -ltermcap"
8092                got_readline="yes"
8093
8094 else
8095    echo " "
8096                echo "readline.h not found. readline turned off ..."
8097                echo " "
8098
8099
8100 fi
8101
8102
8103           ;;
8104         esac
8105
8106 else
8107
8108        # check for standard readline library
8109        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8110   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8111 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8112 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 fi
8115 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8116 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8117 else
8118   # Is the header compilable?
8119 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8120 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 $ac_includes_default
8128 #include </usr/include/readline/readline.h>
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132   (eval $ac_compile) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } &&
8139          { ac_try='test -z "$ac_c_werror_flag"
8140                          || test ! -s conftest.err'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; } &&
8146          { ac_try='test -s conftest.$ac_objext'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; }; then
8152   ac_header_compiler=yes
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_header_compiler=no
8158 fi
8159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161 echo "${ECHO_T}$ac_header_compiler" >&6
8162
8163 # Is the header present?
8164 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8165 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #include </usr/include/readline/readline.h>
8173 _ACEOF
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8176   ac_status=$?
8177   grep -v '^ *+' conftest.er1 >conftest.err
8178   rm -f conftest.er1
8179   cat conftest.err >&5
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } >/dev/null; then
8182   if test -s conftest.err; then
8183     ac_cpp_err=$ac_c_preproc_warn_flag
8184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8185   else
8186     ac_cpp_err=
8187   fi
8188 else
8189   ac_cpp_err=yes
8190 fi
8191 if test -z "$ac_cpp_err"; then
8192   ac_header_preproc=yes
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197   ac_header_preproc=no
8198 fi
8199 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201 echo "${ECHO_T}$ac_header_preproc" >&6
8202
8203 # So?  What about this header?
8204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8205   yes:no: )
8206     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8207 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8209 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8210     ac_header_preproc=yes
8211     ;;
8212   no:yes:* )
8213     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8214 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
8216 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8217     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8218 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8219     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8220 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8222 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8224 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8225     (
8226       cat <<\_ASBOX
8227 ## ------------------------------------------ ##
8228 ## Report this to the AC_PACKAGE_NAME lists.  ##
8229 ## ------------------------------------------ ##
8230 _ASBOX
8231     ) |
8232       sed "s/^/$as_me: WARNING:     /" >&2
8233     ;;
8234 esac
8235 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8236 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8237 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8241 fi
8242 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8243 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8244
8245 fi
8246 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8247    cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_READLINE 1
8249 _ACEOF
8250
8251            got_readline="yes"
8252            CONS_INC="-I/usr/include/readline"
8253            CONS_LIBS="-lreadline -ltermcap"
8254
8255 else
8256
8257            # Did not find standard library, so try Bacula's default
8258             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 fi
8265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8267 else
8268   # Is the header compilable?
8269 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8270 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 $ac_includes_default
8278 #include <${TOP_DIR}/depkgs/readline/readline.h>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282   (eval $ac_compile) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag"
8290                          || test ! -s conftest.err'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; } &&
8296          { ac_try='test -s conftest.$ac_objext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_header_compiler=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ac_header_compiler=no
8308 fi
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8312
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8315 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <${TOP_DIR}/depkgs/readline/readline.h>
8323 _ACEOF
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } >/dev/null; then
8332   if test -s conftest.err; then
8333     ac_cpp_err=$ac_c_preproc_warn_flag
8334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8335   else
8336     ac_cpp_err=
8337   fi
8338 else
8339   ac_cpp_err=yes
8340 fi
8341 if test -z "$ac_cpp_err"; then
8342   ac_header_preproc=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347   ac_header_preproc=no
8348 fi
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8352
8353 # So?  What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8355   yes:no: )
8356     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8360     ac_header_preproc=yes
8361     ;;
8362   no:yes:* )
8363     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8369     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8371     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8373     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8375     (
8376       cat <<\_ASBOX
8377 ## ------------------------------------------ ##
8378 ## Report this to the AC_PACKAGE_NAME lists.  ##
8379 ## ------------------------------------------ ##
8380 _ASBOX
8381     ) |
8382       sed "s/^/$as_me: WARNING:     /" >&2
8383     ;;
8384 esac
8385 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8386 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   eval "$as_ac_Header=\$ac_header_preproc"
8391 fi
8392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8394
8395 fi
8396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8397    cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_READLINE 1
8399 _ACEOF
8400
8401                  got_readline="yes"
8402                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
8403                  CONS_LIBS="-lreadline -lhistory -ltermcap"
8404                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8405                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8406
8407 else
8408    echo " "
8409                 echo "readline.h not found. readline turned off ..."
8410                 echo " "
8411
8412
8413 fi
8414
8415
8416
8417
8418 fi
8419
8420
8421
8422
8423 fi;
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 # Minimal stuff for readline Makefile configuration
8436 MAKE_SHELL=/bin/sh
8437
8438 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8439 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8440 if test "${ac_cv_header_stat_broken+set}" = set; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 #include <sys/types.h>
8450 #include <sys/stat.h>
8451
8452 #if defined(S_ISBLK) && defined(S_IFDIR)
8453 # if S_ISBLK (S_IFDIR)
8454 You lose.
8455 # endif
8456 #endif
8457
8458 #if defined(S_ISBLK) && defined(S_IFCHR)
8459 # if S_ISBLK (S_IFCHR)
8460 You lose.
8461 # endif
8462 #endif
8463
8464 #if defined(S_ISLNK) && defined(S_IFREG)
8465 # if S_ISLNK (S_IFREG)
8466 You lose.
8467 # endif
8468 #endif
8469
8470 #if defined(S_ISSOCK) && defined(S_IFREG)
8471 # if S_ISSOCK (S_IFREG)
8472 You lose.
8473 # endif
8474 #endif
8475
8476 _ACEOF
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478   $EGREP "You lose" >/dev/null 2>&1; then
8479   ac_cv_header_stat_broken=yes
8480 else
8481   ac_cv_header_stat_broken=no
8482 fi
8483 rm -f conftest*
8484
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8487 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8488 if test $ac_cv_header_stat_broken = yes; then
8489
8490 cat >>confdefs.h <<\_ACEOF
8491 #define STAT_MACROS_BROKEN 1
8492 _ACEOF
8493
8494 fi
8495
8496
8497
8498
8499
8500
8501 ac_header_dirent=no
8502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8503   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 #include <sys/types.h>
8516 #include <$ac_hdr>
8517
8518 int
8519 main ()
8520 {
8521 if ((DIR *) 0)
8522 return 0;
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529   (eval $ac_compile) 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag"
8537                          || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   eval "$as_ac_Header=yes"
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 eval "$as_ac_Header=no"
8555 fi
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
8558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561   cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8563 _ACEOF
8564
8565 ac_header_dirent=$ac_hdr; break
8566 fi
8567
8568 done
8569 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8570 if test $ac_header_dirent = dirent.h; then
8571   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8572 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8573 if test "${ac_cv_search_opendir+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   ac_func_search_save_LIBS=$LIBS
8577 ac_cv_search_opendir=no
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584
8585 /* Override any gcc2 internal prototype to avoid an error.  */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590    builtin and then its argument prototype would still apply.  */
8591 char opendir ();
8592 int
8593 main ()
8594 {
8595 opendir ();
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag"
8610                          || test ! -s conftest.err'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; } &&
8616          { ac_try='test -s conftest$ac_exeext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   ac_cv_search_opendir="none required"
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 if test "$ac_cv_search_opendir" = no; then
8631   for ac_lib in dir; do
8632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8633     cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 /* Override any gcc2 internal prototype to avoid an error.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 /* We use char because int might match the return type of a gcc2
8645    builtin and then its argument prototype would still apply.  */
8646 char opendir ();
8647 int
8648 main ()
8649 {
8650 opendir ();
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657   (eval $ac_link) 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -z "$ac_c_werror_flag"
8665                          || test ! -s conftest.err'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_search_opendir="-l$ac_lib"
8678 break
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 fi
8684 rm -f conftest.err conftest.$ac_objext \
8685       conftest$ac_exeext conftest.$ac_ext
8686   done
8687 fi
8688 LIBS=$ac_func_search_save_LIBS
8689 fi
8690 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8691 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8692 if test "$ac_cv_search_opendir" != no; then
8693   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8694
8695 fi
8696
8697 else
8698   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8700 if test "${ac_cv_search_opendir+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   ac_func_search_save_LIBS=$LIBS
8704 ac_cv_search_opendir=no
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711
8712 /* Override any gcc2 internal prototype to avoid an error.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 /* We use char because int might match the return type of a gcc2
8717    builtin and then its argument prototype would still apply.  */
8718 char opendir ();
8719 int
8720 main ()
8721 {
8722 opendir ();
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729   (eval $ac_link) 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } &&
8736          { ac_try='test -z "$ac_c_werror_flag"
8737                          || test ! -s conftest.err'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest$ac_exeext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   ac_cv_search_opendir="none required"
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 fi
8755 rm -f conftest.err conftest.$ac_objext \
8756       conftest$ac_exeext conftest.$ac_ext
8757 if test "$ac_cv_search_opendir" = no; then
8758   for ac_lib in x; do
8759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8760     cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766
8767 /* Override any gcc2 internal prototype to avoid an error.  */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 /* We use char because int might match the return type of a gcc2
8772    builtin and then its argument prototype would still apply.  */
8773 char opendir ();
8774 int
8775 main ()
8776 {
8777 opendir ();
8778   ;
8779   return 0;
8780 }
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784   (eval $ac_link) 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } &&
8791          { ac_try='test -z "$ac_c_werror_flag"
8792                          || test ! -s conftest.err'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; } &&
8798          { ac_try='test -s conftest$ac_exeext'
8799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800   (eval $ac_try) 2>&5
8801   ac_status=$?
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); }; }; then
8804   ac_cv_search_opendir="-l$ac_lib"
8805 break
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 fi
8811 rm -f conftest.err conftest.$ac_objext \
8812       conftest$ac_exeext conftest.$ac_ext
8813   done
8814 fi
8815 LIBS=$ac_func_search_save_LIBS
8816 fi
8817 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8818 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8819 if test "$ac_cv_search_opendir" != no; then
8820   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8821
8822 fi
8823
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8834 do
8835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8836 echo "$as_me:$LINENO: checking for $ac_func" >&5
8837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_var+set}\" = set"; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8849 #define $ac_func innocuous_$ac_func
8850
8851 /* System header to define __stub macros and hopefully few prototypes,
8852     which can conflict with char $ac_func (); below.
8853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8854     <limits.h> exists even on freestanding compilers.  */
8855
8856 #ifdef __STDC__
8857 # include <limits.h>
8858 #else
8859 # include <assert.h>
8860 #endif
8861
8862 #undef $ac_func
8863
8864 /* Override any gcc2 internal prototype to avoid an error.  */
8865 #ifdef __cplusplus
8866 extern "C"
8867 {
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char $ac_func ();
8872 /* The GNU C library defines this for functions which it implements
8873     to always fail with ENOSYS.  Some functions are actually named
8874     something starting with __ and the normal name is an alias.  */
8875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8876 choke me
8877 #else
8878 char (*f) () = $ac_func;
8879 #endif
8880 #ifdef __cplusplus
8881 }
8882 #endif
8883
8884 int
8885 main ()
8886 {
8887 return f != $ac_func;
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894   (eval $ac_link) 2>conftest.er1
8895   ac_status=$?
8896   grep -v '^ *+' conftest.er1 >conftest.err
8897   rm -f conftest.er1
8898   cat conftest.err >&5
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } &&
8901          { ac_try='test -z "$ac_c_werror_flag"
8902                          || test ! -s conftest.err'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; } &&
8908          { ac_try='test -s conftest$ac_exeext'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   eval "$as_ac_var=yes"
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 eval "$as_ac_var=no"
8920 fi
8921 rm -f conftest.err conftest.$ac_objext \
8922       conftest$ac_exeext conftest.$ac_ext
8923 fi
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8926 if test `eval echo '${'$as_ac_var'}'` = yes; then
8927   cat >>confdefs.h <<_ACEOF
8928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8929 _ACEOF
8930
8931 fi
8932 done
8933
8934
8935
8936 for ac_func in nanosleep nl_langinfo
8937 do
8938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944   cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8952 #define $ac_func innocuous_$ac_func
8953
8954 /* System header to define __stub macros and hopefully few prototypes,
8955     which can conflict with char $ac_func (); below.
8956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957     <limits.h> exists even on freestanding compilers.  */
8958
8959 #ifdef __STDC__
8960 # include <limits.h>
8961 #else
8962 # include <assert.h>
8963 #endif
8964
8965 #undef $ac_func
8966
8967 /* Override any gcc2 internal prototype to avoid an error.  */
8968 #ifdef __cplusplus
8969 extern "C"
8970 {
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973    builtin and then its argument prototype would still apply.  */
8974 char $ac_func ();
8975 /* The GNU C library defines this for functions which it implements
8976     to always fail with ENOSYS.  Some functions are actually named
8977     something starting with __ and the normal name is an alias.  */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8979 choke me
8980 #else
8981 char (*f) () = $ac_func;
8982 #endif
8983 #ifdef __cplusplus
8984 }
8985 #endif
8986
8987 int
8988 main ()
8989 {
8990 return f != $ac_func;
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997   (eval $ac_link) 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -z "$ac_c_werror_flag"
9005                          || test ! -s conftest.err'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; } &&
9011          { ac_try='test -s conftest$ac_exeext'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   eval "$as_ac_var=yes"
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 eval "$as_ac_var=no"
9023 fi
9024 rm -f conftest.err conftest.$ac_objext \
9025       conftest$ac_exeext conftest.$ac_ext
9026 fi
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9029 if test `eval echo '${'$as_ac_var'}'` = yes; then
9030   cat >>confdefs.h <<_ACEOF
9031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9032 _ACEOF
9033
9034 fi
9035 done
9036
9037
9038 for ac_header in varargs.h
9039 do
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042   echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 fi
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 else
9050   # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059 $ac_includes_default
9060 #include <$ac_header>
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064   (eval $ac_compile) 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } &&
9071          { ac_try='test -z "$ac_c_werror_flag"
9072                          || test ! -s conftest.err'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; } &&
9078          { ac_try='test -s conftest.$ac_objext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_header_compiler=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_header_compiler=no
9090 fi
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9094
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #include <$ac_header>
9105 _ACEOF
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } >/dev/null; then
9114   if test -s conftest.err; then
9115     ac_cpp_err=$ac_c_preproc_warn_flag
9116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9117   else
9118     ac_cpp_err=
9119   fi
9120 else
9121   ac_cpp_err=yes
9122 fi
9123 if test -z "$ac_cpp_err"; then
9124   ac_header_preproc=yes
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129   ac_header_preproc=no
9130 fi
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9134
9135 # So?  What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137   yes:no: )
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142     ac_header_preproc=yes
9143     ;;
9144   no:yes:* )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9157     (
9158       cat <<\_ASBOX
9159 ## ------------------------------------------ ##
9160 ## Report this to the AC_PACKAGE_NAME lists.  ##
9161 ## ------------------------------------------ ##
9162 _ASBOX
9163     ) |
9164       sed "s/^/$as_me: WARNING:     /" >&2
9165     ;;
9166 esac
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   eval "$as_ac_Header=\$ac_header_preproc"
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176
9177 fi
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179   cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 _ACEOF
9182
9183 fi
9184
9185 done
9186
9187
9188 # End of readline/conio stuff
9189 # -----------------------------------------------------------------------
9190
9191 # -----------------------------------------------------------------------
9192 #  Check for Python support
9193 #
9194 echo "$as_me:$LINENO: checking for Python support" >&5
9195 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9196
9197 # Check whether --with-python or --without-python was given.
9198 if test "${with_python+set}" = set; then
9199   withval="$with_python"
9200
9201   PYTHON_INCDIR=
9202   PYTHON_LIBS=
9203   if test "$withval" != "no"; then
9204      if test "$withval" = "yes"; then
9205         for python_root in /usr /usr/local; do
9206           if test -f $python_root/include/python2.2/Python.h; then
9207              PYTHON_INCDIR=-I$python_root/include/python2.2
9208              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9209              break
9210           elif test -f $python_root/include/python2.3/Python.h; then
9211              PYTHON_INCDIR=-I$python_root/include/python2.3
9212              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9213              break
9214           elif test -f $python_root/include/python2.4/Python.h; then
9215              PYTHON_INCDIR=-I$python_root/include/python2.4
9216              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9217              break
9218           fi
9219         done
9220         if test x$PYTHON_INCDIR = x; then
9221           if test -f $prefix/include/Python.h; then
9222              PYTHON_INCDIR=-I$prefix/include
9223              PYTHON_LIBS="-L$prefix/lib/config -lpython"
9224           else
9225            echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6
9227            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9228 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9229    { (exit 1); exit 1; }; }
9230           fi
9231         fi
9232      else
9233         if test -f $withval/Python.h; then
9234            PYTHON_INCDIR=-I$withval
9235            PYTHON_LIBS="-L$withval/config -lpython"
9236         elif test -f $withval/include/Python.h; then
9237            PYTHON_INCDIR=-I$withval/include
9238            PYTHON_LIBS="-L$withval/lib/config -lpython"
9239         elif test -f $withval/include/python/Python.h; then
9240            PYTHON_INCDIR=-I$withval/include/python
9241            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9242         else
9243            echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9245            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9246 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9247    { (exit 1); exit 1; }; }
9248         fi
9249      fi
9250      cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_PYTHON 1
9252 _ACEOF
9253
9254      echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9256      support_python=yes
9257      { echo "$as_me:$LINENO: checking for more Python libs" >&5
9258 echo "$as_me: checking for more Python libs" >&6;}
9259      saved_LIBS="$LIBS"; LIBS=
9260      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9261 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9262 if test "${ac_cv_search_shm_open+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   ac_func_search_save_LIBS=$LIBS
9266 ac_cv_search_shm_open=no
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273
9274 /* Override any gcc2 internal prototype to avoid an error.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 /* We use char because int might match the return type of a gcc2
9279    builtin and then its argument prototype would still apply.  */
9280 char shm_open ();
9281 int
9282 main ()
9283 {
9284 shm_open ();
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_search_shm_open="none required"
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 fi
9317 rm -f conftest.err conftest.$ac_objext \
9318       conftest$ac_exeext conftest.$ac_ext
9319 if test "$ac_cv_search_shm_open" = no; then
9320   for ac_lib in rt; do
9321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9322     cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 /* We use char because int might match the return type of a gcc2
9334    builtin and then its argument prototype would still apply.  */
9335 char shm_open ();
9336 int
9337 main ()
9338 {
9339 shm_open ();
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346   (eval $ac_link) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_search_shm_open="-l$ac_lib"
9367 break
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 fi
9373 rm -f conftest.err conftest.$ac_objext \
9374       conftest$ac_exeext conftest.$ac_ext
9375   done
9376 fi
9377 LIBS=$ac_func_search_save_LIBS
9378 fi
9379 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9380 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9381 if test "$ac_cv_search_shm_open" != no; then
9382   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9383
9384 fi
9385
9386
9387 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9388 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9389 if test "${ac_cv_lib_util_openpty+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   ac_check_lib_save_LIBS=$LIBS
9393 LIBS="-lutil  $LIBS"
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400
9401 /* Override any gcc2 internal prototype to avoid an error.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 /* We use char because int might match the return type of a gcc2
9406    builtin and then its argument prototype would still apply.  */
9407 char openpty ();
9408 int
9409 main ()
9410 {
9411 openpty ();
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418   (eval $ac_link) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag"
9426                          || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_cv_lib_util_openpty=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 ac_cv_lib_util_openpty=no
9444 fi
9445 rm -f conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9448 fi
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9450 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9451 if test $ac_cv_lib_util_openpty = yes; then
9452   cat >>confdefs.h <<_ACEOF
9453 #define HAVE_LIBUTIL 1
9454 _ACEOF
9455
9456   LIBS="-lutil $LIBS"
9457
9458 fi
9459
9460      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9461      LIBS="$saved_LIBS"
9462   else
9463      echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6
9465   fi
9466
9467 else
9468
9469   echo "$as_me:$LINENO: result: no" >&5
9470 echo "${ECHO_T}no" >&6
9471
9472 fi;
9473
9474
9475
9476
9477 #
9478 # Find where sockets are (especially for Solaris)
9479 # Do this before the TCP Wrappers test since tcp wrappers
9480 # uses the socket library and some linkers are stupid.
9481 #
9482 echo "$as_me:$LINENO: checking for socket" >&5
9483 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9484 if test "${ac_cv_func_socket+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9495 #define socket innocuous_socket
9496
9497 /* System header to define __stub macros and hopefully few prototypes,
9498     which can conflict with char socket (); below.
9499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500     <limits.h> exists even on freestanding compilers.  */
9501
9502 #ifdef __STDC__
9503 # include <limits.h>
9504 #else
9505 # include <assert.h>
9506 #endif
9507
9508 #undef socket
9509
9510 /* Override any gcc2 internal prototype to avoid an error.  */
9511 #ifdef __cplusplus
9512 extern "C"
9513 {
9514 #endif
9515 /* We use char because int might match the return type of a gcc2
9516    builtin and then its argument prototype would still apply.  */
9517 char socket ();
9518 /* The GNU C library defines this for functions which it implements
9519     to always fail with ENOSYS.  Some functions are actually named
9520     something starting with __ and the normal name is an alias.  */
9521 #if defined (__stub_socket) || defined (__stub___socket)
9522 choke me
9523 #else
9524 char (*f) () = socket;
9525 #endif
9526 #ifdef __cplusplus
9527 }
9528 #endif
9529
9530 int
9531 main ()
9532 {
9533 return f != socket;
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540   (eval $ac_link) 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -z "$ac_c_werror_flag"
9548                          || test ! -s conftest.err'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; } &&
9554          { ac_try='test -s conftest$ac_exeext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_func_socket=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_func_socket=no
9566 fi
9567 rm -f conftest.err conftest.$ac_objext \
9568       conftest$ac_exeext conftest.$ac_ext
9569 fi
9570 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9571 echo "${ECHO_T}$ac_cv_func_socket" >&6
9572 if test $ac_cv_func_socket = yes; then
9573   echo "$as_me:$LINENO: result: using libc's socket" >&5
9574 echo "${ECHO_T}using libc's socket" >&6
9575 else
9576
9577 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9578 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9579 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-lxnet  $LIBS"
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590
9591 /* Override any gcc2 internal prototype to avoid an error.  */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 /* We use char because int might match the return type of a gcc2
9596    builtin and then its argument prototype would still apply.  */
9597 char socket ();
9598 int
9599 main ()
9600 {
9601 socket ();
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608   (eval $ac_link) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag"
9616                          || test ! -s conftest.err'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; } &&
9622          { ac_try='test -s conftest$ac_exeext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   ac_cv_lib_xnet_socket=yes
9629 else
9630   echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 ac_cv_lib_xnet_socket=no
9634 fi
9635 rm -f conftest.err conftest.$ac_objext \
9636       conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9638 fi
9639 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9640 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9641 if test $ac_cv_lib_xnet_socket = yes; then
9642   cat >>confdefs.h <<_ACEOF
9643 #define HAVE_LIBXNET 1
9644 _ACEOF
9645
9646   LIBS="-lxnet $LIBS"
9647
9648 fi
9649
9650
9651 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9652 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9653 if test "${ac_cv_lib_socket_socket+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lsocket  $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664
9665 /* Override any gcc2 internal prototype to avoid an error.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 /* We use char because int might match the return type of a gcc2
9670    builtin and then its argument prototype would still apply.  */
9671 char socket ();
9672 int
9673 main ()
9674 {
9675 socket ();
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682   (eval $ac_link) 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag"
9690                          || test ! -s conftest.err'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   ac_cv_lib_socket_socket=yes
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_cv_lib_socket_socket=no
9708 fi
9709 rm -f conftest.err conftest.$ac_objext \
9710       conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9712 fi
9713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9715 if test $ac_cv_lib_socket_socket = yes; then
9716   cat >>confdefs.h <<_ACEOF
9717 #define HAVE_LIBSOCKET 1
9718 _ACEOF
9719
9720   LIBS="-lsocket $LIBS"
9721
9722 fi
9723
9724
9725 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9727 if test "${ac_cv_lib_inet_socket+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   ac_check_lib_save_LIBS=$LIBS
9731 LIBS="-linet  $LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738
9739 /* Override any gcc2 internal prototype to avoid an error.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 /* We use char because int might match the return type of a gcc2
9744    builtin and then its argument prototype would still apply.  */
9745 char socket ();
9746 int
9747 main ()
9748 {
9749 socket ();
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_cv_lib_inet_socket=yes
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ac_cv_lib_inet_socket=no
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784       conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9786 fi
9787 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9789 if test $ac_cv_lib_inet_socket = yes; then
9790   cat >>confdefs.h <<_ACEOF
9791 #define HAVE_LIBINET 1
9792 _ACEOF
9793
9794   LIBS="-linet $LIBS"
9795
9796 fi
9797
9798 fi
9799
9800
9801
9802 # -----------------------------------------------------------
9803 # Check whether user wants TCP wrappers support (default off)
9804 # -----------------------------------------------------------
9805 TCPW_MSG="no"
9806
9807 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9808 if test "${with_tcp_wrappers+set}" = set; then
9809   withval="$with_tcp_wrappers"
9810
9811     if test "x$withval" != "xno" ; then
9812        saved_LIBS="$LIBS"
9813        LIBS="$saved_LIBS -lwrap"
9814        echo "$as_me:$LINENO: checking for libwrap" >&5
9815 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9816        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
9817 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
9818 if test "${ac_cv_search_nanosleep+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   ac_func_search_save_LIBS=$LIBS
9822 ac_cv_search_nanosleep=no
9823 cat >conftest.$ac_ext <<_ACEOF
9824 /* confdefs.h.  */
9825 _ACEOF
9826 cat confdefs.h >>conftest.$ac_ext
9827 cat >>conftest.$ac_ext <<_ACEOF
9828 /* end confdefs.h.  */
9829
9830 /* Override any gcc2 internal prototype to avoid an error.  */
9831 #ifdef __cplusplus
9832 extern "C"
9833 #endif
9834 /* We use char because int might match the return type of a gcc2
9835    builtin and then its argument prototype would still apply.  */
9836 char nanosleep ();
9837 int
9838 main ()
9839 {
9840 nanosleep ();
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847   (eval $ac_link) 2>conftest.er1
9848   ac_status=$?
9849   grep -v '^ *+' conftest.er1 >conftest.err
9850   rm -f conftest.er1
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -z "$ac_c_werror_flag"
9855                          || test ! -s conftest.err'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; } &&
9861          { ac_try='test -s conftest$ac_exeext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867   ac_cv_search_nanosleep="none required"
9868 else
9869   echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 fi
9873 rm -f conftest.err conftest.$ac_objext \
9874       conftest$ac_exeext conftest.$ac_ext
9875 if test "$ac_cv_search_nanosleep" = no; then
9876   for ac_lib in rt; do
9877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9878     cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884
9885 /* Override any gcc2 internal prototype to avoid an error.  */
9886 #ifdef __cplusplus
9887 extern "C"
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890    builtin and then its argument prototype would still apply.  */
9891 char nanosleep ();
9892 int
9893 main ()
9894 {
9895 nanosleep ();
9896   ;
9897   return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902   (eval $ac_link) 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } &&
9909          { ac_try='test -z "$ac_c_werror_flag"
9910                          || test ! -s conftest.err'
9911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912   (eval $ac_try) 2>&5
9913   ac_status=$?
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   (exit $ac_status); }; } &&
9916          { ac_try='test -s conftest$ac_exeext'
9917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9918   (eval $ac_try) 2>&5
9919   ac_status=$?
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); }; }; then
9922   ac_cv_search_nanosleep="-l$ac_lib"
9923 break
9924 else
9925   echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9927
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931   done
9932 fi
9933 LIBS=$ac_func_search_save_LIBS
9934 fi
9935 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
9936 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
9937 if test "$ac_cv_search_nanosleep" != no; then
9938   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
9939
9940 fi
9941
9942        cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948  #include <tcpd.h>
9949              int deny_severity = 0;
9950              int allow_severity = 0;
9951              struct request_info *req;
9952 int
9953 main ()
9954 {
9955  hosts_access(req);
9956   ;
9957   return 0;
9958 }
9959 _ACEOF
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962   (eval $ac_link) 2>conftest.er1
9963   ac_status=$?
9964   grep -v '^ *+' conftest.er1 >conftest.err
9965   rm -f conftest.er1
9966   cat conftest.err >&5
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); } &&
9969          { ac_try='test -z "$ac_c_werror_flag"
9970                          || test ! -s conftest.err'
9971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972   (eval $ac_try) 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; } &&
9976          { ac_try='test -s conftest$ac_exeext'
9977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978   (eval $ac_try) 2>&5
9979   ac_status=$?
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); }; }; then
9982
9983             echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6
9985             cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_LIBWRAP 1
9987 _ACEOF
9988
9989             TCPW_MSG="yes"
9990
9991 else
9992   echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995
9996             LIBS="$saved_LIBS -lwrap -lnsl"
9997             cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003  #include <tcpd.h>
10004                  int deny_severity = 0;
10005                  int allow_severity = 0;
10006                  struct request_info *req;
10007 int
10008 main ()
10009 {
10010  hosts_access(req);
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017   (eval $ac_link) 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -z "$ac_c_werror_flag"
10025                          || test ! -s conftest.err'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; } &&
10031          { ac_try='test -s conftest$ac_exeext'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037
10038                  echo "$as_me:$LINENO: result: yes" >&5
10039 echo "${ECHO_T}yes" >&6
10040                  cat >>confdefs.h <<\_ACEOF
10041 #define HAVE_LIBWRAP 1
10042 _ACEOF
10043
10044                  TCPW_MSG="yes"
10045
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
10051 echo "$as_me: error: *** libwrap missing" >&2;}
10052    { (exit 1); exit 1; }; }
10053
10054 fi
10055 rm -f conftest.err conftest.$ac_objext \
10056       conftest$ac_exeext conftest.$ac_ext
10057
10058 fi
10059 rm -f conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061     fi
10062
10063
10064 fi;
10065
10066 # -----------------------------------------------------------
10067 # Check whether OpenSSL is available
10068 # -----------------------------------------------------------
10069 echo "$as_me:$LINENO: checking for OpenSSL" >&5
10070 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
10071
10072 # Check whether --with-openssl or --without-openssl was given.
10073 if test "${with_openssl+set}" = set; then
10074   withval="$with_openssl"
10075   with_openssl_directory=${withval}
10076 fi;
10077
10078 if test "x$with_openssl_directory" != "x"; then
10079         OPENSSL_LIBS="-lssl -lcrypto"
10080         OPENSSL_INC=""
10081
10082         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
10083                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
10084                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
10085         fi
10086
10087         saved_LIBS="$LIBS"
10088         saved_CFLAGS="$CFLAGS"
10089         LIBS="$saved_LIBS $OPENSSL_LIBS"
10090         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
10091
10092         cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098  #include <openssl/ssl.h>
10099 int
10100 main ()
10101 {
10102  CRYPTO_set_id_callback(NULL);
10103   ;
10104   return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109   (eval $ac_link) 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -z "$ac_c_werror_flag"
10117                          || test ! -s conftest.err'
10118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119   (eval $ac_try) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); }; } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129    support_tls="yes"
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134  support_tls="no"
10135
10136 fi
10137 rm -f conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139
10140         LIBS="$saved_LIBS"
10141         CFLAGS="$saved_CFLAGS"
10142
10143         if test "$support_tls" = "yes"; then
10144
10145 cat >>confdefs.h <<\_ACEOF
10146 #define HAVE_OPENSSL 1
10147 _ACEOF
10148
10149
10150 cat >>confdefs.h <<\_ACEOF
10151 #define HAVE_TLS 1
10152 _ACEOF
10153
10154         fi
10155 else
10156         support_tls="no"
10157         OPENSSL_LIBS=""
10158         OPENSSL_INC=""
10159 fi
10160
10161 echo "$as_me:$LINENO: result: $support_tls" >&5
10162 echo "${ECHO_T}$support_tls" >&6
10163
10164
10165
10166
10167 # -----------------------------------------------------------
10168 # Python and OpenSSL are using dlopen
10169 # -----------------------------------------------------------
10170
10171 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10172    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10173 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10174 if test "${ac_cv_search_dlopen+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177   ac_func_search_save_LIBS=$LIBS
10178 ac_cv_search_dlopen=no
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185
10186 /* Override any gcc2 internal prototype to avoid an error.  */
10187 #ifdef __cplusplus
10188 extern "C"
10189 #endif
10190 /* We use char because int might match the return type of a gcc2
10191    builtin and then its argument prototype would still apply.  */
10192 char dlopen ();
10193 int
10194 main ()
10195 {
10196 dlopen ();
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203   (eval $ac_link) 2>conftest.er1
10204   ac_status=$?
10205   grep -v '^ *+' conftest.er1 >conftest.err
10206   rm -f conftest.er1
10207   cat conftest.err >&5
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } &&
10210          { ac_try='test -z "$ac_c_werror_flag"
10211                          || test ! -s conftest.err'
10212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10213   (eval $ac_try) 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; } &&
10217          { ac_try='test -s conftest$ac_exeext'
10218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219   (eval $ac_try) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; }; then
10223   ac_cv_search_dlopen="none required"
10224 else
10225   echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228 fi
10229 rm -f conftest.err conftest.$ac_objext \
10230       conftest$ac_exeext conftest.$ac_ext
10231 if test "$ac_cv_search_dlopen" = no; then
10232   for ac_lib in dl; do
10233     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10234     cat >conftest.$ac_ext <<_ACEOF
10235 /* confdefs.h.  */
10236 _ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h.  */
10240
10241 /* Override any gcc2 internal prototype to avoid an error.  */
10242 #ifdef __cplusplus
10243 extern "C"
10244 #endif
10245 /* We use char because int might match the return type of a gcc2
10246    builtin and then its argument prototype would still apply.  */
10247 char dlopen ();
10248 int
10249 main ()
10250 {
10251 dlopen ();
10252   ;
10253   return 0;
10254 }
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258   (eval $ac_link) 2>conftest.er1
10259   ac_status=$?
10260   grep -v '^ *+' conftest.er1 >conftest.err
10261   rm -f conftest.er1
10262   cat conftest.err >&5
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); } &&
10265          { ac_try='test -z "$ac_c_werror_flag"
10266                          || test ! -s conftest.err'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274   (eval $ac_try) 2>&5
10275   ac_status=$?
10276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277   (exit $ac_status); }; }; then
10278   ac_cv_search_dlopen="-l$ac_lib"
10279 break
10280 else
10281   echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 fi
10285 rm -f conftest.err conftest.$ac_objext \
10286       conftest$ac_exeext conftest.$ac_ext
10287   done
10288 fi
10289 LIBS=$ac_func_search_save_LIBS
10290 fi
10291 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10292 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10293 if test "$ac_cv_search_dlopen" != no; then
10294   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10295
10296 fi
10297
10298 fi
10299
10300 # ------------------------------------------
10301 # Where to place working dir
10302 # ------------------------------------------
10303 working_dir=`eval echo ${prefix}/var/bacula/working`
10304
10305 # Check whether --with-working-dir or --without-working-dir was given.
10306 if test "${with_working_dir+set}" = set; then
10307   withval="$with_working_dir"
10308
10309        if test "x$withval" != "xno" ; then
10310               working_dir=$withval
10311        fi
10312
10313
10314 fi;
10315
10316
10317
10318
10319 # ------------------------------------------
10320 # Where to place scriptdir (script files)
10321 # ------------------------------------------
10322 scriptdir=`eval echo ${sysconfdir}`
10323
10324 # Check whether --with-scriptdir or --without-scriptdir was given.
10325 if test "${with_scriptdir+set}" = set; then
10326   withval="$with_scriptdir"
10327
10328        if test "x$withval" != "xno" ; then
10329               scriptdir=$withval
10330        fi
10331
10332
10333 fi;
10334
10335
10336
10337
10338 # ------------------------------------------
10339 # Where to send dump email
10340 # ------------------------------------------
10341 dump_email=root@localhost
10342
10343 # Check whether --with-dump-email or --without-dump-email was given.
10344 if test "${with_dump_email+set}" = set; then
10345   withval="$with_dump_email"
10346
10347        if test "x$withval" != "xno" ; then
10348               dump_email=$withval
10349        fi
10350
10351
10352 fi;
10353
10354
10355
10356 # ------------------------------------------
10357 # Where to send job email
10358 # ------------------------------------------
10359 job_email=root@localhost
10360
10361 # Check whether --with-job-email or --without-job-email was given.
10362 if test "${with_job_email+set}" = set; then
10363   withval="$with_job_email"
10364
10365        if test "x$withval" != "xno" ; then
10366               job_email=$withval
10367        fi
10368
10369
10370 fi;
10371
10372
10373
10374 # ------------------------------------------
10375 # Where to find smtp host
10376 # ------------------------------------------
10377 smtp_host=localhost
10378
10379 # Check whether --with-smtp_host or --without-smtp_host was given.
10380 if test "${with_smtp_host+set}" = set; then
10381   withval="$with_smtp_host"
10382
10383        if test "x$withval" != "xno" ; then
10384               smtp_host=$withval
10385        fi
10386
10387
10388 fi;
10389
10390
10391
10392
10393 # ------------------------------------
10394 # Where to place pid files
10395 # ------------------------------------
10396 piddir=/var/run
10397
10398 # Check whether --with-pid-dir or --without-pid-dir was given.
10399 if test "${with_pid_dir+set}" = set; then
10400   withval="$with_pid_dir"
10401
10402         if test "x$withval" != "xno" ; then
10403             piddir=$withval
10404         fi
10405
10406
10407 fi;
10408
10409 cat >>confdefs.h <<_ACEOF
10410 #define _PATH_BACULA_PIDDIR "$piddir"
10411 _ACEOF
10412
10413
10414
10415
10416 # ------------------------------------
10417 # Where to place subsys "lock file"
10418 # ------------------------------------
10419 subsysdir=/var/run/subsys
10420
10421 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10422 if test "${with_subsys_dir+set}" = set; then
10423   withval="$with_subsys_dir"
10424
10425         if test "x$withval" != "xno" ; then
10426             subsysdir=$withval
10427         fi
10428
10429
10430 fi;
10431
10432
10433
10434
10435
10436 # ------------------------------------
10437 # Where to start assigning ports
10438 # ------------------------------------
10439 baseport=9101
10440
10441 # Check whether --with-baseport or --without-baseport was given.
10442 if test "${with_baseport+set}" = set; then
10443   withval="$with_baseport"
10444
10445         if test "x$withval" != "xno" ; then
10446              baseport=$withval
10447         fi
10448
10449
10450 fi;
10451
10452
10453 dir_port=`expr $baseport`
10454 fd_port=`expr $baseport + 1`
10455 sd_port=`expr $fd_port + 1`
10456
10457
10458
10459
10460
10461
10462 # ------------------------------------------
10463 # Generate passwords
10464 # ------------------------------------------
10465 dir_password=
10466
10467 # Check whether --with-dir-password or --without-dir-password was given.
10468 if test "${with_dir_password+set}" = set; then
10469   withval="$with_dir_password"
10470
10471        if test "x$withval" != "xno" ; then
10472            dir_password=$withval
10473        fi
10474
10475
10476 fi;
10477
10478 if test "x$dir_password" = "x" ; then
10479    if test "x$OPENSSL" = "xnone" ; then
10480       key=`autoconf/randpass 33`
10481    else
10482       key=`openssl rand -base64 33`
10483    fi
10484    dir_password=$key
10485 fi
10486
10487 fd_password=
10488
10489 # Check whether --with-fd-password or --without-fd-password was given.
10490 if test "${with_fd_password+set}" = set; then
10491   withval="$with_fd_password"
10492
10493        if test "x$withval" != "xno" ; then
10494            fd_password=$withval
10495        fi
10496
10497
10498 fi;
10499
10500 if test "x$fd_password" = "x" ; then
10501    if test "x$OPENSSL" = "xnone" ; then
10502       key=`autoconf/randpass 37`
10503    else
10504       key=`openssl rand -base64 33`
10505    fi
10506    fd_password=$key
10507 fi
10508
10509 sd_password=
10510
10511 # Check whether --with-sd-password or --without-sd-password was given.
10512 if test "${with_sd_password+set}" = set; then
10513   withval="$with_sd_password"
10514
10515        if test "x$withval" != "xno" ; then
10516            sd_password=$withval
10517        fi
10518
10519
10520 fi;
10521
10522 if test "x$sd_password" = "x" ; then
10523    if test "x$OPENSSL" = "xnone" ; then
10524       key=`autoconf/randpass 41`
10525    else
10526       key=`openssl rand -base64 33`
10527    fi
10528    sd_password=$key
10529 fi
10530
10531 mon_dir_password=
10532
10533 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10534 if test "${with_mon_dir_password+set}" = set; then
10535   withval="$with_mon_dir_password"
10536
10537        if test "x$withval" != "xno" ; then
10538            mon_dir_password=$withval
10539        fi
10540
10541
10542 fi;
10543
10544 if test "x$mon_dir_password" = "x" ; then
10545    if test "x$OPENSSL" = "xnone" ; then
10546       key=`autoconf/randpass 33`
10547    else
10548       key=`openssl rand -base64 33`
10549    fi
10550    mon_dir_password=$key
10551 fi
10552
10553 mon_fd_password=
10554
10555 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10556 if test "${with_mon_fd_password+set}" = set; then
10557   withval="$with_mon_fd_password"
10558
10559        if test "x$withval" != "xno" ; then
10560            mon_fd_password=$withval
10561        fi
10562
10563
10564 fi;
10565
10566 if test "x$mon_fd_password" = "x" ; then
10567    if test "x$OPENSSL" = "xnone" ; then
10568       key=`autoconf/randpass 37`
10569    else
10570       key=`openssl rand -base64 33`
10571    fi
10572    mon_fd_password=$key
10573 fi
10574
10575 mon_sd_password=
10576
10577 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10578 if test "${with_mon_sd_password+set}" = set; then
10579   withval="$with_mon_sd_password"
10580
10581        if test "x$withval" != "xno" ; then
10582            mon_sd_password=$withval
10583        fi
10584
10585
10586 fi;
10587
10588 if test "x$mon_sd_password" = "x" ; then
10589    if test "x$OPENSSL" = "xnone" ; then
10590       key=`autoconf/randpass 41`
10591    else
10592       key=`openssl rand -base64 33`
10593    fi
10594    mon_sd_password=$key
10595 fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 #
10606 # Handle users and groups for each daemon
10607 #
10608 dir_user=
10609
10610 # Check whether --with-dir_user or --without-dir_user was given.
10611 if test "${with_dir_user+set}" = set; then
10612   withval="$with_dir_user"
10613
10614         if test "x$withval" != "x" ; then
10615              dir_user=$withval
10616         fi
10617
10618
10619 fi;
10620
10621 dir_group=
10622
10623 # Check whether --with-dir_group or --without-dir_group was given.
10624 if test "${with_dir_group+set}" = set; then
10625   withval="$with_dir_group"
10626
10627         if test "x$withval" != "x" ; then
10628              dir_group=$withval
10629         fi
10630
10631
10632 fi;
10633
10634 sd_user=
10635
10636 # Check whether --with-sd_user or --without-sd_user was given.
10637 if test "${with_sd_user+set}" = set; then
10638   withval="$with_sd_user"
10639
10640         if test "x$withval" != "x" ; then
10641              sd_user=$withval
10642         fi
10643
10644
10645 fi;
10646
10647 sd_group=
10648
10649 # Check whether --with-sd_group or --without-sd_group was given.
10650 if test "${with_sd_group+set}" = set; then
10651   withval="$with_sd_group"
10652
10653         if test "x$withval" != "x" ; then
10654              sd_group=$withval
10655         fi
10656
10657
10658 fi;
10659
10660 fd_user=
10661
10662 # Check whether --with-fd_user or --without-fd_user was given.
10663 if test "${with_fd_user+set}" = set; then
10664   withval="$with_fd_user"
10665
10666         if test "x$withval" != "x" ; then
10667              fd_user=$withval
10668         fi
10669
10670
10671 fi;
10672
10673 fd_group=
10674
10675 # Check whether --with-fd_group or --without-fd_group was given.
10676 if test "${with_fd_group+set}" = set; then
10677   withval="$with_fd_group"
10678
10679         if test "x$withval" != "x" ; then
10680              fd_group=$withval
10681         fi
10682
10683
10684 fi;
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696 #
10697 # allow setting default executable permissions
10698 #
10699 SBINPERM=0754
10700
10701 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10702 if test "${with_sbin_perm+set}" = set; then
10703   withval="$with_sbin_perm"
10704
10705         if test "x$withval" != "x" ; then
10706             SBINPERM=$withval
10707         fi
10708
10709
10710 fi;
10711
10712
10713
10714 # ------------------------------------------------
10715 # Bacula check for various SQL database engines
10716 # ------------------------------------------------
10717
10718 db_found=no
10719 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10720 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10721
10722 # Check whether --with-postgresql or --without-postgresql was given.
10723 if test "${with_postgresql+set}" = set; then
10724   withval="$with_postgresql"
10725
10726   if test "$withval" != "no"; then
10727       if test "$db_found" = "yes"; then
10728           echo "$as_me:$LINENO: result: error" >&5
10729 echo "${ECHO_T}error" >&6
10730           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10731 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10732    { (exit 1); exit 1; }; };
10733       fi
10734       if test "$withval" = "yes"; then
10735           if test -f /usr/local/include/libpq-fe.h; then
10736               POSTGRESQL_INCDIR=/usr/local/include
10737               POSTGRESQL_LIBDIR=/usr/local/lib
10738               POSTGRESQL_BINDIR=/usr/local/bin
10739           elif test -f /usr/include/libpq-fe.h; then
10740               POSTGRESQL_INCDIR=/usr/include
10741               POSTGRESQL_LIBDIR=/usr/lib
10742               POSTGRESQL_BINDIR=/usr/bin
10743           elif test -f /usr/include/pgsql/libpq-fe.h; then
10744               POSTGRESQL_INCDIR=/usr/include/pgsql
10745               POSTGRESQL_LIBDIR=/usr/lib/pgsql
10746               POSTGRESQL_BINDIR=/usr/bin
10747           elif test -f /usr/include/postgresql/libpq-fe.h; then
10748               POSTGRESQL_INCDIR=/usr/include/postgresql
10749               POSTGRESQL_LIBDIR=/usr/lib/postgresql
10750               POSTGRESQL_BINDIR=/usr/bin
10751           else
10752               echo "$as_me:$LINENO: result: no" >&5
10753 echo "${ECHO_T}no" >&6
10754               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10755 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10756    { (exit 1); exit 1; }; }
10757           fi
10758       elif test -f $withval/include/libpq-fe.h; then
10759           POSTGRESQL_INCDIR=$withval/include
10760           POSTGRESQL_LIBDIR=$withval/lib
10761           POSTGRESQL_BINDIR=$withval/bin
10762       elif test -f $withval/include/postgresql/libpq-fe.h; then
10763           POSTGRESQL_INCDIR=$withval/include/postgresql
10764           POSTGRESQL_LIBDIR=$withval/lib
10765           POSTGRESQL_BINDIR=$withval/bin
10766       else
10767           echo "$as_me:$LINENO: result: no" >&5
10768 echo "${ECHO_T}no" >&6
10769           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10770 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10771    { (exit 1); exit 1; }; }
10772       fi
10773       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10774       echo "$as_me:$LINENO: checking for crypt" >&5
10775 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10776 if test "${ac_cv_func_crypt+set}" = set; then
10777   echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779   cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10787 #define crypt innocuous_crypt
10788
10789 /* System header to define __stub macros and hopefully few prototypes,
10790     which can conflict with char crypt (); below.
10791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792     <limits.h> exists even on freestanding compilers.  */
10793
10794 #ifdef __STDC__
10795 # include <limits.h>
10796 #else
10797 # include <assert.h>
10798 #endif
10799
10800 #undef crypt
10801
10802 /* Override any gcc2 internal prototype to avoid an error.  */
10803 #ifdef __cplusplus
10804 extern "C"
10805 {
10806 #endif
10807 /* We use char because int might match the return type of a gcc2
10808    builtin and then its argument prototype would still apply.  */
10809 char crypt ();
10810 /* The GNU C library defines this for functions which it implements
10811     to always fail with ENOSYS.  Some functions are actually named
10812     something starting with __ and the normal name is an alias.  */
10813 #if defined (__stub_crypt) || defined (__stub___crypt)
10814 choke me
10815 #else
10816 char (*f) () = crypt;
10817 #endif
10818 #ifdef __cplusplus
10819 }
10820 #endif
10821
10822 int
10823 main ()
10824 {
10825 return f != crypt;
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832   (eval $ac_link) 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_c_werror_flag"
10840                          || test ! -s conftest.err'
10841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842   (eval $ac_try) 2>&5
10843   ac_status=$?
10844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845   (exit $ac_status); }; } &&
10846          { ac_try='test -s conftest$ac_exeext'
10847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848   (eval $ac_try) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); }; }; then
10852   ac_cv_func_crypt=yes
10853 else
10854   echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10856
10857 ac_cv_func_crypt=no
10858 fi
10859 rm -f conftest.err conftest.$ac_objext \
10860       conftest$ac_exeext conftest.$ac_ext
10861 fi
10862 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10863 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10864 if test $ac_cv_func_crypt = yes; then
10865   :
10866 else
10867   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10868 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10869 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10870   echo $ECHO_N "(cached) $ECHO_C" >&6
10871 else
10872   ac_check_lib_save_LIBS=$LIBS
10873 LIBS="-lcrypt  $LIBS"
10874 cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880
10881 /* Override any gcc2 internal prototype to avoid an error.  */
10882 #ifdef __cplusplus
10883 extern "C"
10884 #endif
10885 /* We use char because int might match the return type of a gcc2
10886    builtin and then its argument prototype would still apply.  */
10887 char crypt ();
10888 int
10889 main ()
10890 {
10891 crypt ();
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898   (eval $ac_link) 2>conftest.er1
10899   ac_status=$?
10900   grep -v '^ *+' conftest.er1 >conftest.err
10901   rm -f conftest.er1
10902   cat conftest.err >&5
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); } &&
10905          { ac_try='test -z "$ac_c_werror_flag"
10906                          || test ! -s conftest.err'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; } &&
10912          { ac_try='test -s conftest$ac_exeext'
10913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914   (eval $ac_try) 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   ac_cv_lib_crypt_crypt=yes
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 ac_cv_lib_crypt_crypt=no
10924 fi
10925 rm -f conftest.err conftest.$ac_objext \
10926       conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10928 fi
10929 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10930 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10931 if test $ac_cv_lib_crypt_crypt = yes; then
10932   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10933 fi
10934
10935 fi
10936
10937       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10938       SQL_LFLAGS=$POSTGRESQL_LFLAGS
10939       SQL_BINDIR=$POSTGRESQL_BINDIR
10940       cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_POSTGRESQL 1
10942 _ACEOF
10943
10944       echo "$as_me:$LINENO: result: yes" >&5
10945 echo "${ECHO_T}yes" >&6
10946       db_found=yes
10947       support_postgresql=yes
10948       db_name=PostgreSQL
10949       DB_NAME=postgresql
10950   else
10951       echo "$as_me:$LINENO: result: no" >&5
10952 echo "${ECHO_T}no" >&6
10953   fi
10954
10955 else
10956
10957   echo "$as_me:$LINENO: result: no" >&5
10958 echo "${ECHO_T}no" >&6
10959
10960 fi;
10961
10962
10963
10964
10965
10966
10967
10968 db_found=no
10969 echo "$as_me:$LINENO: checking for MySQL support" >&5
10970 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10971
10972 # Check whether --with-mysql or --without-mysql was given.
10973 if test "${with_mysql+set}" = set; then
10974   withval="$with_mysql"
10975
10976   if test "$withval" != "no"; then
10977         if test "$withval" = "yes"; then
10978                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10979                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10980                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10981                         MYSQL_BINDIR=/usr/local/mysql/bin
10982                 elif test -f /usr/include/mysql/mysql.h; then
10983                         MYSQL_INCDIR=/usr/include/mysql
10984                         MYSQL_LIBDIR=/usr/lib/mysql
10985                         MYSQL_BINDIR=/usr/bin
10986                 elif test -f /usr/include/mysql.h; then
10987                         MYSQL_INCDIR=/usr/include
10988                         MYSQL_LIBDIR=/usr/lib
10989                         MYSQL_BINDIR=/usr/bin
10990                 elif test -f /usr/local/include/mysql/mysql.h; then
10991                         MYSQL_INCDIR=/usr/local/include/mysql
10992                         MYSQL_LIBDIR=/usr/local/lib/mysql
10993                         MYSQL_BINDIR=/usr/local/bin
10994                 elif test -f /usr/local/include/mysql.h; then
10995                         MYSQL_INCDIR=/usr/local/include
10996                         MYSQL_LIBDIR=/usr/local/lib
10997                         MYSQL_BINDIR=/usr/local/bin
10998                 else
10999                    echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11001                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
11002 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
11003    { (exit 1); exit 1; }; }
11004                 fi
11005         else
11006                 if test -f $withval/include/mysql/mysql.h; then
11007                         MYSQL_INCDIR=$withval/include/mysql
11008                         MYSQL_LIBDIR=$withval/lib/mysql
11009                         MYSQL_BINDIR=$withval/bin
11010                 elif test -f $withval/include/mysql.h; then
11011                         MYSQL_INCDIR=$withval/include
11012                         MYSQL_LIBDIR=$withval/lib
11013                         MYSQL_BINDIR=$withval/bin
11014                 else
11015                    echo "$as_me:$LINENO: result: no" >&5
11016 echo "${ECHO_T}no" >&6
11017                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
11018 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
11019    { (exit 1); exit 1; }; }
11020                 fi
11021         fi
11022     SQL_INCLUDE=-I$MYSQL_INCDIR
11023     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
11024        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
11025        cat >>confdefs.h <<\_ACEOF
11026 #define HAVE_THREAD_SAFE_MYSQL 1
11027 _ACEOF
11028
11029     else
11030        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
11031     fi
11032     SQL_BINDIR=$MYSQL_BINDIR
11033
11034     cat >>confdefs.h <<\_ACEOF
11035 #define HAVE_MYSQL 1
11036 _ACEOF
11037
11038     echo "$as_me:$LINENO: result: yes" >&5
11039 echo "${ECHO_T}yes" >&6
11040     db_found=yes
11041     support_mysql=yes
11042     db_name=MySQL
11043     DB_NAME=mysql
11044
11045   else
11046         echo "$as_me:$LINENO: result: no" >&5
11047 echo "${ECHO_T}no" >&6
11048   fi
11049
11050
11051 fi;
11052
11053
11054 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
11055 if test "${with_embedded_mysql+set}" = set; then
11056   withval="$with_embedded_mysql"
11057
11058   if test "$withval" != "no"; then
11059         if test "$withval" = "yes"; then
11060                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
11061                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
11062                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
11063                         MYSQL_BINDIR=/usr/local/mysql/bin
11064                 elif test -f /usr/include/mysql/mysql.h; then
11065                         MYSQL_INCDIR=/usr/include/mysql
11066                         MYSQL_LIBDIR=/usr/lib/mysql
11067                         MYSQL_BINDIR=/usr/bin
11068                 elif test -f /usr/include/mysql.h; then
11069                         MYSQL_INCDIR=/usr/include
11070                         MYSQL_LIBDIR=/usr/lib
11071                         MYSQL_BINDIR=/usr/bin
11072                 elif test -f /usr/local/include/mysql/mysql.h; then
11073                         MYSQL_INCDIR=/usr/local/include/mysql
11074                         MYSQL_LIBDIR=/usr/local/lib/mysql
11075                         MYSQL_BINDIR=/usr/local/bin
11076                 elif test -f /usr/local/include/mysql.h; then
11077                         MYSQL_INCDIR=/usr/local/include
11078                         MYSQL_LIBDIR=/usr/local/lib
11079                         MYSQL_BINDIR=/usr/local/bin
11080                 else
11081                    echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11083                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
11084 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
11085    { (exit 1); exit 1; }; }
11086                 fi
11087         else
11088                 if test -f $withval/include/mysql/mysql.h; then
11089                         MYSQL_INCDIR=$withval/include/mysql
11090                         MYSQL_LIBDIR=$withval/lib/mysql
11091                         MYSQL_BINDIR=$withval/bin
11092                 elif test -f $withval/include/mysql.h; then
11093                         MYSQL_INCDIR=$withval/include
11094                         MYSQL_LIBDIR=$withval/lib
11095                         MYSQL_BINDIR=$withval/bin
11096                 else
11097                    echo "$as_me:$LINENO: result: no" >&5
11098 echo "${ECHO_T}no" >&6
11099                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
11100 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
11101    { (exit 1); exit 1; }; }
11102                 fi
11103         fi
11104     SQL_INCLUDE=-I$MYSQL_INCDIR
11105     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
11106     SQL_BINDIR=$MYSQL_BINDIR
11107
11108     cat >>confdefs.h <<\_ACEOF
11109 #define HAVE_MYSQL 1
11110 _ACEOF
11111
11112     cat >>confdefs.h <<\_ACEOF
11113 #define HAVE_EMBEDDED_MYSQL 1
11114 _ACEOF
11115
11116     echo "$as_me:$LINENO: result: yes" >&5
11117 echo "${ECHO_T}yes" >&6
11118     db_found=yes
11119     support_mysql=yes
11120     db_name=MySQL
11121     DB_NAME=mysql
11122
11123   else
11124         echo "$as_me:$LINENO: result: no" >&5
11125 echo "${ECHO_T}no" >&6
11126   fi
11127
11128
11129 fi;
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 db_found=no
11140 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
11141 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
11142
11143 # Check whether --with-sqlite3 or --without-sqlite3 was given.
11144 if test "${with_sqlite3+set}" = set; then
11145   withval="$with_sqlite3"
11146
11147   if test "$withval" != "no"; then
11148      if test "$withval" = "yes"; then
11149         if test -f /usr/local/include/sqlite3.h; then
11150            SQLITE_INCDIR=/usr/local/include
11151            SQLITE_LIBDIR=/usr/local/lib
11152            SQLITE_BINDIR=/usr/local/bin
11153         elif test -f /usr/include/sqlite3.h; then
11154            SQLITE_INCDIR=/usr/include
11155            SQLITE_LIBDIR=/usr/lib
11156            SQLITE_BINDIR=/usr/bin
11157         elif test -f $prefix/include/sqlite3.h; then
11158            SQLITE_INCDIR=$prefix/include
11159            SQLITE_LIBDIR=$prefix/lib
11160            SQLITE_BINDIR=$prefix/bin
11161         else
11162            echo "$as_me:$LINENO: result: no" >&5
11163 echo "${ECHO_T}no" >&6
11164            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
11165 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
11166    { (exit 1); exit 1; }; }
11167         fi
11168      else
11169         if test -f $withval/sqlite3.h; then
11170            SQLITE_INCDIR=$withval
11171            SQLITE_LIBDIR=$withval
11172            SQLITE_BINDIR=$withval
11173         elif test -f $withval/include/sqlite3.h; then
11174            SQLITE_INCDIR=$withval/include
11175            SQLITE_LIBDIR=$withval/lib
11176            SQLITE_BINDIR=$withval/bin
11177         else
11178            echo "$as_me:$LINENO: result: no" >&5
11179 echo "${ECHO_T}no" >&6
11180            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11181 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11182    { (exit 1); exit 1; }; }
11183         fi
11184      fi
11185      SQL_INCLUDE=-I$SQLITE_INCDIR
11186      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11187      SQL_BINDIR=$SQLITE_BINDIR
11188
11189      cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_SQLITE3 1
11191 _ACEOF
11192
11193      echo "$as_me:$LINENO: result: yes" >&5
11194 echo "${ECHO_T}yes" >&6
11195      db_found=yes
11196      support_sqlite3=yes
11197      db_name=SQLite3
11198      DB_NAME=sqlite3
11199
11200   else
11201      echo "$as_me:$LINENO: result: no" >&5
11202 echo "${ECHO_T}no" >&6
11203   fi
11204
11205 else
11206
11207   echo "$as_me:$LINENO: result: no" >&5
11208 echo "${ECHO_T}no" >&6
11209
11210 fi;
11211
11212
11213
11214
11215
11216
11217
11218 db_found=no
11219 echo "$as_me:$LINENO: checking for SQLite support" >&5
11220 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11221
11222 # Check whether --with-sqlite or --without-sqlite was given.
11223 if test "${with_sqlite+set}" = set; then
11224   withval="$with_sqlite"
11225
11226   if test "$withval" != "no"; then
11227      if test "$withval" = "yes"; then
11228         if test -f /usr/local/include/sqlite.h; then
11229            SQLITE_INCDIR=/usr/local/include
11230            SQLITE_LIBDIR=/usr/local/lib
11231            SQLITE_BINDIR=/usr/local/bin
11232         elif test -f /usr/include/sqlite.h; then
11233            SQLITE_INCDIR=/usr/include
11234            SQLITE_LIBDIR=/usr/lib
11235            SQLITE_BINDIR=/usr/bin
11236         elif test -f $prefix/include/sqlite.h; then
11237            SQLITE_INCDIR=$prefix/include
11238            SQLITE_LIBDIR=$prefix/lib
11239            SQLITE_BINDIR=$prefix/bin
11240         else
11241            echo "$as_me:$LINENO: result: no" >&5
11242 echo "${ECHO_T}no" >&6
11243            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11244 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11245    { (exit 1); exit 1; }; }
11246         fi
11247      else
11248         if test -f $withval/sqlite.h; then
11249            SQLITE_INCDIR=$withval
11250            SQLITE_LIBDIR=$withval
11251            SQLITE_BINDIR=$withval
11252         elif test -f $withval/include/sqlite.h; then
11253            SQLITE_INCDIR=$withval/include
11254            SQLITE_LIBDIR=$withval/lib
11255            SQLITE_BINDIR=$withval/bin
11256         else
11257            echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6
11259            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11260 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11261    { (exit 1); exit 1; }; }
11262         fi
11263      fi
11264      SQL_INCLUDE=-I$SQLITE_INCDIR
11265      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11266      SQL_BINDIR=$SQLITE_BINDIR
11267
11268      cat >>confdefs.h <<\_ACEOF
11269 #define HAVE_SQLITE 1
11270 _ACEOF
11271
11272      echo "$as_me:$LINENO: result: yes" >&5
11273 echo "${ECHO_T}yes" >&6
11274      db_found=yes
11275      support_sqlite=yes
11276      db_name=SQLite
11277      DB_NAME=sqlite
11278
11279   else
11280      echo "$as_me:$LINENO: result: no" >&5
11281 echo "${ECHO_T}no" >&6
11282   fi
11283
11284 else
11285
11286   echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11288
11289 fi;
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299 cat >>confdefs.h <<\_ACEOF
11300 #define PROTOTYPES 1
11301 _ACEOF
11302
11303
11304 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11305     if test -z "$CCOPTS"; then
11306         CCOPTS='-g -O2 -Wall'
11307     fi
11308     CFLAGS="$CCOPTS"
11309 fi
11310
11311
11312
11313
11314 largefile_support="no"
11315
11316    # Check whether --enable-largefile or --disable-largefile was given.
11317 if test "${enable_largefile+set}" = set; then
11318   enableval="$enable_largefile"
11319
11320 fi;
11321    if test "$enable_largefile" != no; then
11322      if test -n "$ac_tool_prefix"; then
11323   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11324 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11325 echo "$as_me:$LINENO: checking for $ac_word" >&5
11326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11327 if test "${ac_cv_prog_GETCONF+set}" = set; then
11328   echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330   if test -n "$GETCONF"; then
11331   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11332 else
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336   IFS=$as_save_IFS
11337   test -z "$as_dir" && as_dir=.
11338   for ac_exec_ext in '' $ac_executable_extensions; do
11339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11340     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11342     break 2
11343   fi
11344 done
11345 done
11346
11347 fi
11348 fi
11349 GETCONF=$ac_cv_prog_GETCONF
11350 if test -n "$GETCONF"; then
11351   echo "$as_me:$LINENO: result: $GETCONF" >&5
11352 echo "${ECHO_T}$GETCONF" >&6
11353 else
11354   echo "$as_me:$LINENO: result: no" >&5
11355 echo "${ECHO_T}no" >&6
11356 fi
11357
11358 fi
11359 if test -z "$ac_cv_prog_GETCONF"; then
11360   ac_ct_GETCONF=$GETCONF
11361   # Extract the first word of "getconf", so it can be a program name with args.
11362 set dummy getconf; ac_word=$2
11363 echo "$as_me:$LINENO: checking for $ac_word" >&5
11364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11365 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11366   echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368   if test -n "$ac_ct_GETCONF"; then
11369   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11370 else
11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11372 for as_dir in $PATH
11373 do
11374   IFS=$as_save_IFS
11375   test -z "$as_dir" && as_dir=.
11376   for ac_exec_ext in '' $ac_executable_extensions; do
11377   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11378     ac_cv_prog_ac_ct_GETCONF="getconf"
11379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11380     break 2
11381   fi
11382 done
11383 done
11384
11385 fi
11386 fi
11387 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11388 if test -n "$ac_ct_GETCONF"; then
11389   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11390 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11391 else
11392   echo "$as_me:$LINENO: result: no" >&5
11393 echo "${ECHO_T}no" >&6
11394 fi
11395
11396   GETCONF=$ac_ct_GETCONF
11397 else
11398   GETCONF="$ac_cv_prog_GETCONF"
11399 fi
11400
11401      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11402 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11403 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11404   echo $ECHO_N "(cached) $ECHO_C" >&6
11405 else
11406   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11407         ac_cv_sys_largefile_CFLAGS=no
11408         case "$host_os" in
11409            # IRIX 6.2 and later require cc -n32.
11410            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11411              if test "$GCC" != yes; then
11412                ac_cv_sys_largefile_CFLAGS=-n32
11413              fi
11414              ac_save_CC="$CC"
11415              CC="$CC $ac_cv_sys_largefile_CFLAGS"
11416              cat >conftest.$ac_ext <<_ACEOF
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422
11423 int
11424 main ()
11425 {
11426
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433   (eval $ac_link) 2>conftest.er1
11434   ac_status=$?
11435   grep -v '^ *+' conftest.er1 >conftest.err
11436   rm -f conftest.er1
11437   cat conftest.err >&5
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); } &&
11440          { ac_try='test -z "$ac_c_werror_flag"
11441                          || test ! -s conftest.err'
11442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443   (eval $ac_try) 2>&5
11444   ac_status=$?
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); }; } &&
11447          { ac_try='test -s conftest$ac_exeext'
11448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449   (eval $ac_try) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; }; then
11453   :
11454 else
11455   echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458 ac_cv_sys_largefile_CFLAGS=no
11459 fi
11460 rm -f conftest.err conftest.$ac_objext \
11461       conftest$ac_exeext conftest.$ac_ext
11462              CC="$ac_save_CC"
11463            esac
11464       }
11465 fi
11466 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11467 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11468      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11469 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11470 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11471   echo $ECHO_N "(cached) $ECHO_C" >&6
11472 else
11473   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11474         ac_cv_sys_largefile_LDFLAGS=no
11475
11476       }
11477 fi
11478 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11479 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11480      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11481 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11482 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11483   echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11486         ac_cv_sys_largefile_LIBS=no
11487
11488       }
11489 fi
11490 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11491 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11492
11493      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11494        case "$ac_flag" in
11495        no) ;;
11496        -D_FILE_OFFSET_BITS=*) ;;
11497        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11498        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11499        -D?* | -I?*)
11500          case "$ac_flag" in
11501    no) ;;
11502    ?*)
11503      case "$CPPFLAGS" in
11504      '') CPPFLAGS="$ac_flag" ;;
11505      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11506      esac ;;
11507    esac ;;
11508        *)
11509          case "$ac_flag" in
11510    no) ;;
11511    ?*)
11512      case "$CFLAGS" in
11513      '') CFLAGS="$ac_flag" ;;
11514      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11515      esac ;;
11516    esac ;;
11517        esac
11518      done
11519      case "$ac_cv_sys_largefile_LDFLAGS" in
11520    no) ;;
11521    ?*)
11522      case "$LDFLAGS" in
11523      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11524      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11525      esac ;;
11526    esac
11527      case "$ac_cv_sys_largefile_LIBS" in
11528    no) ;;
11529    ?*)
11530      case "$LIBS" in
11531      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11532      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11533      esac ;;
11534    esac
11535      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11536 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11537 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   ac_cv_sys_file_offset_bits=no
11541       ac_cv_sys_file_offset_bits=64
11542       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11543         case "$ac_flag" in
11544         -D_FILE_OFFSET_BITS)
11545           ac_cv_sys_file_offset_bits=1 ;;
11546         -D_FILE_OFFSET_BITS=*)
11547           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11548         esac
11549       done
11550
11551 fi
11552 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11553 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11554    if test "$ac_cv_sys_file_offset_bits" != no; then
11555
11556 cat >>confdefs.h <<_ACEOF
11557 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11558 _ACEOF
11559
11560    fi
11561      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11562 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11563 if test "${ac_cv_sys_largefile_source+set}" = set; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   ac_cv_sys_largefile_source=no
11567       ac_cv_sys_largefile_source=1
11568       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11569         case "$ac_flag" in
11570         -D_LARGEFILE_SOURCE)
11571           ac_cv_sys_largefile_source=1 ;;
11572         -D_LARGEFILE_SOURCE=*)
11573           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11574         esac
11575       done
11576
11577 fi
11578 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11579 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11580    if test "$ac_cv_sys_largefile_source" != no; then
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11584 _ACEOF
11585
11586    fi
11587      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11588 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11589 if test "${ac_cv_sys_large_files+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   ac_cv_sys_large_files=no
11593       ac_cv_sys_large_files=1
11594       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11595         case "$ac_flag" in
11596         -D_LARGE_FILES)
11597           ac_cv_sys_large_files=1 ;;
11598         -D_LARGE_FILES=*)
11599           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11600         esac
11601       done
11602
11603 fi
11604 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11605 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11606    if test "$ac_cv_sys_large_files" != no; then
11607
11608 cat >>confdefs.h <<_ACEOF
11609 #define _LARGE_FILES $ac_cv_sys_large_files
11610 _ACEOF
11611
11612    fi
11613    fi
11614
11615
11616
11617 echo "$as_me:$LINENO: checking for X" >&5
11618 echo $ECHO_N "checking for X... $ECHO_C" >&6
11619
11620
11621 # Check whether --with-x or --without-x was given.
11622 if test "${with_x+set}" = set; then
11623   withval="$with_x"
11624
11625 fi;
11626 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11627 if test "x$with_x" = xno; then
11628   # The user explicitly disabled X.
11629   have_x=disabled
11630 else
11631   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11632     # Both variables are already set.
11633     have_x=yes
11634   else
11635     if test "${ac_cv_have_x+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   # One or both of the vars are not set, and there is no cached value.
11639 ac_x_includes=no ac_x_libraries=no
11640 rm -fr conftest.dir
11641 if mkdir conftest.dir; then
11642   cd conftest.dir
11643   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11644   cat >Imakefile <<'_ACEOF'
11645 acfindx:
11646         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11647 _ACEOF
11648   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11649     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11650     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11651     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11652     for ac_extension in a so sl; do
11653       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11654          test -f $ac_im_libdir/libX11.$ac_extension; then
11655         ac_im_usrlibdir=$ac_im_libdir; break
11656       fi
11657     done
11658     # Screen out bogus values from the imake configuration.  They are
11659     # bogus both because they are the default anyway, and because
11660     # using them would break gcc on systems where it needs fixed includes.
11661     case $ac_im_incroot in
11662         /usr/include) ;;
11663         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11664     esac
11665     case $ac_im_usrlibdir in
11666         /usr/lib | /lib) ;;
11667         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11668     esac
11669   fi
11670   cd ..
11671   rm -fr conftest.dir
11672 fi
11673
11674 # Standard set of common directories for X headers.
11675 # Check X11 before X11Rn because it is often a symlink to the current release.
11676 ac_x_header_dirs='
11677 /usr/X11/include
11678 /usr/X11R6/include
11679 /usr/X11R5/include
11680 /usr/X11R4/include
11681
11682 /usr/include/X11
11683 /usr/include/X11R6
11684 /usr/include/X11R5
11685 /usr/include/X11R4
11686
11687 /usr/local/X11/include
11688 /usr/local/X11R6/include
11689 /usr/local/X11R5/include
11690 /usr/local/X11R4/include
11691
11692 /usr/local/include/X11
11693 /usr/local/include/X11R6
11694 /usr/local/include/X11R5
11695 /usr/local/include/X11R4
11696
11697 /usr/X386/include
11698 /usr/x386/include
11699 /usr/XFree86/include/X11
11700
11701 /usr/include
11702 /usr/local/include
11703 /usr/unsupported/include
11704 /usr/athena/include
11705 /usr/local/x11r5/include
11706 /usr/lpp/Xamples/include
11707
11708 /usr/openwin/include
11709 /usr/openwin/share/include'
11710
11711 if test "$ac_x_includes" = no; then
11712   # Guess where to find include files, by looking for Intrinsic.h.
11713   # First, try using that file with no special directory specified.
11714   cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720 #include <X11/Intrinsic.h>
11721 _ACEOF
11722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11724   ac_status=$?
11725   grep -v '^ *+' conftest.er1 >conftest.err
11726   rm -f conftest.er1
11727   cat conftest.err >&5
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } >/dev/null; then
11730   if test -s conftest.err; then
11731     ac_cpp_err=$ac_c_preproc_warn_flag
11732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11733   else
11734     ac_cpp_err=
11735   fi
11736 else
11737   ac_cpp_err=yes
11738 fi
11739 if test -z "$ac_cpp_err"; then
11740   # We can compile using X headers with no special include directory.
11741 ac_x_includes=
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746   for ac_dir in $ac_x_header_dirs; do
11747   if test -r "$ac_dir/X11/Intrinsic.h"; then
11748     ac_x_includes=$ac_dir
11749     break
11750   fi
11751 done
11752 fi
11753 rm -f conftest.err conftest.$ac_ext
11754 fi # $ac_x_includes = no
11755
11756 if test "$ac_x_libraries" = no; then
11757   # Check for the libraries.
11758   # See if we find them without any special options.
11759   # Don't add to $LIBS permanently.
11760   ac_save_LIBS=$LIBS
11761   LIBS="-lXt $LIBS"
11762   cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768 #include <X11/Intrinsic.h>
11769 int
11770 main ()
11771 {
11772 XtMalloc (0)
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779   (eval $ac_link) 2>conftest.er1
11780   ac_status=$?
11781   grep -v '^ *+' conftest.er1 >conftest.err
11782   rm -f conftest.er1
11783   cat conftest.err >&5
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); } &&
11786          { ac_try='test -z "$ac_c_werror_flag"
11787                          || test ! -s conftest.err'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; } &&
11793          { ac_try='test -s conftest$ac_exeext'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   LIBS=$ac_save_LIBS
11800 # We can link X programs with no special library path.
11801 ac_x_libraries=
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 LIBS=$ac_save_LIBS
11807 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11808 do
11809   # Don't even attempt the hair of trying to link an X program!
11810   for ac_extension in a so sl; do
11811     if test -r $ac_dir/libXt.$ac_extension; then
11812       ac_x_libraries=$ac_dir
11813       break 2
11814     fi
11815   done
11816 done
11817 fi
11818 rm -f conftest.err conftest.$ac_objext \
11819       conftest$ac_exeext conftest.$ac_ext
11820 fi # $ac_x_libraries = no
11821
11822 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11823   # Didn't find X anywhere.  Cache the known absence of X.
11824   ac_cv_have_x="have_x=no"
11825 else
11826   # Record where we found X for the cache.
11827   ac_cv_have_x="have_x=yes \
11828                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11829 fi
11830 fi
11831
11832   fi
11833   eval "$ac_cv_have_x"
11834 fi # $with_x != no
11835
11836 if test "$have_x" != yes; then
11837   echo "$as_me:$LINENO: result: $have_x" >&5
11838 echo "${ECHO_T}$have_x" >&6
11839   no_x=yes
11840 else
11841   # If each of the values was on the command line, it overrides each guess.
11842   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11843   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11844   # Update the cache value to reflect the command line values.
11845   ac_cv_have_x="have_x=yes \
11846                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11847   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11848 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11849 fi
11850
11851 if test "$no_x" = yes; then
11852   # Not all programs may use this symbol, but it does not hurt to define it.
11853
11854 cat >>confdefs.h <<\_ACEOF
11855 #define X_DISPLAY_MISSING 1
11856 _ACEOF
11857
11858   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11859 else
11860   if test -n "$x_includes"; then
11861     X_CFLAGS="$X_CFLAGS -I$x_includes"
11862   fi
11863
11864   # It would also be nice to do this for all -L options, not just this one.
11865   if test -n "$x_libraries"; then
11866     X_LIBS="$X_LIBS -L$x_libraries"
11867     # For Solaris; some versions of Sun CC require a space after -R and
11868     # others require no space.  Words are not sufficient . . . .
11869     case `(uname -sr) 2>/dev/null` in
11870     "SunOS 5"*)
11871       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11872 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11873       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11874       cat >conftest.$ac_ext <<_ACEOF
11875 /* confdefs.h.  */
11876 _ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h.  */
11880
11881 int
11882 main ()
11883 {
11884
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891   (eval $ac_link) 2>conftest.er1
11892   ac_status=$?
11893   grep -v '^ *+' conftest.er1 >conftest.err
11894   rm -f conftest.er1
11895   cat conftest.err >&5
11896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897   (exit $ac_status); } &&
11898          { ac_try='test -z "$ac_c_werror_flag"
11899                          || test ! -s conftest.err'
11900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); }; } &&
11905          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11911   ac_R_nospace=yes
11912 else
11913   echo "$as_me: failed program was:" >&5
11914 sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 ac_R_nospace=no
11917 fi
11918 rm -f conftest.err conftest.$ac_objext \
11919       conftest$ac_exeext conftest.$ac_ext
11920       if test $ac_R_nospace = yes; then
11921         echo "$as_me:$LINENO: result: no" >&5
11922 echo "${ECHO_T}no" >&6
11923         X_LIBS="$X_LIBS -R$x_libraries"
11924       else
11925         LIBS="$ac_xsave_LIBS -R $x_libraries"
11926         cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932
11933 int
11934 main ()
11935 {
11936
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943   (eval $ac_link) 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -z "$ac_c_werror_flag"
11951                          || test ! -s conftest.err'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; } &&
11957          { ac_try='test -s conftest$ac_exeext'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   ac_R_space=yes
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 ac_R_space=no
11969 fi
11970 rm -f conftest.err conftest.$ac_objext \
11971       conftest$ac_exeext conftest.$ac_ext
11972         if test $ac_R_space = yes; then
11973           echo "$as_me:$LINENO: result: yes" >&5
11974 echo "${ECHO_T}yes" >&6
11975           X_LIBS="$X_LIBS -R $x_libraries"
11976         else
11977           echo "$as_me:$LINENO: result: neither works" >&5
11978 echo "${ECHO_T}neither works" >&6
11979         fi
11980       fi
11981       LIBS=$ac_xsave_LIBS
11982     esac
11983   fi
11984
11985   # Check for system-dependent libraries X programs must link with.
11986   # Do this before checking for the system-independent R6 libraries
11987   # (-lICE), since we may need -lsocket or whatever for X linking.
11988
11989   if test "$ISC" = yes; then
11990     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11991   else
11992     # Martyn Johnson says this is needed for Ultrix, if the X
11993     # libraries were built with DECnet support.  And Karl Berry says
11994     # the Alpha needs dnet_stub (dnet does not exist).
11995     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11996     cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002
12003 /* Override any gcc2 internal prototype to avoid an error.  */
12004 #ifdef __cplusplus
12005 extern "C"
12006 #endif
12007 /* We use char because int might match the return type of a gcc2
12008    builtin and then its argument prototype would still apply.  */
12009 char XOpenDisplay ();
12010 int
12011 main ()
12012 {
12013 XOpenDisplay ();
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12020   (eval $ac_link) 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } &&
12027          { ac_try='test -z "$ac_c_werror_flag"
12028                          || test ! -s conftest.err'
12029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030   (eval $ac_try) 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; } &&
12034          { ac_try='test -s conftest$ac_exeext'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   :
12041 else
12042   echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
12046 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
12047 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-ldnet  $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h.  */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h.  */
12058
12059 /* Override any gcc2 internal prototype to avoid an error.  */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 /* We use char because int might match the return type of a gcc2
12064    builtin and then its argument prototype would still apply.  */
12065 char dnet_ntoa ();
12066 int
12067 main ()
12068 {
12069 dnet_ntoa ();
12070   ;
12071   return 0;
12072 }
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12076   (eval $ac_link) 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag"
12084                          || test ! -s conftest.err'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; } &&
12090          { ac_try='test -s conftest$ac_exeext'
12091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092   (eval $ac_try) 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   ac_cv_lib_dnet_dnet_ntoa=yes
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 ac_cv_lib_dnet_dnet_ntoa=no
12102 fi
12103 rm -f conftest.err conftest.$ac_objext \
12104       conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12108 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12109 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12110   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12111 fi
12112
12113     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12114       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
12115 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12116 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119   ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-ldnet_stub  $LIBS"
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127
12128 /* Override any gcc2 internal prototype to avoid an error.  */
12129 #ifdef __cplusplus
12130 extern "C"
12131 #endif
12132 /* We use char because int might match the return type of a gcc2
12133    builtin and then its argument prototype would still apply.  */
12134 char dnet_ntoa ();
12135 int
12136 main ()
12137 {
12138 dnet_ntoa ();
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145   (eval $ac_link) 2>conftest.er1
12146   ac_status=$?
12147   grep -v '^ *+' conftest.er1 >conftest.err
12148   rm -f conftest.er1
12149   cat conftest.err >&5
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); } &&
12152          { ac_try='test -z "$ac_c_werror_flag"
12153                          || test ! -s conftest.err'
12154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155   (eval $ac_try) 2>&5
12156   ac_status=$?
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); }; } &&
12159          { ac_try='test -s conftest$ac_exeext'
12160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161   (eval $ac_try) 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; }; then
12165   ac_cv_lib_dnet_stub_dnet_ntoa=yes
12166 else
12167   echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12169
12170 ac_cv_lib_dnet_stub_dnet_ntoa=no
12171 fi
12172 rm -f conftest.err conftest.$ac_objext \
12173       conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12175 fi
12176 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12177 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12178 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12179   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12180 fi
12181
12182     fi
12183 fi
12184 rm -f conftest.err conftest.$ac_objext \
12185       conftest$ac_exeext conftest.$ac_ext
12186     LIBS="$ac_xsave_LIBS"
12187
12188     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12189     # to get the SysV transport functions.
12190     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12191     # needs -lnsl.
12192     # The nsl library prevents programs from opening the X display
12193     # on Irix 5.2, according to T.E. Dickey.
12194     # The functions gethostbyname, getservbyname, and inet_addr are
12195     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12196     echo "$as_me:$LINENO: checking for gethostbyname" >&5
12197 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12198 if test "${ac_cv_func_gethostbyname+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   cat >conftest.$ac_ext <<_ACEOF
12202 /* confdefs.h.  */
12203 _ACEOF
12204 cat confdefs.h >>conftest.$ac_ext
12205 cat >>conftest.$ac_ext <<_ACEOF
12206 /* end confdefs.h.  */
12207 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12209 #define gethostbyname innocuous_gethostbyname
12210
12211 /* System header to define __stub macros and hopefully few prototypes,
12212     which can conflict with char gethostbyname (); below.
12213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12214     <limits.h> exists even on freestanding compilers.  */
12215
12216 #ifdef __STDC__
12217 # include <limits.h>
12218 #else
12219 # include <assert.h>
12220 #endif
12221
12222 #undef gethostbyname
12223
12224 /* Override any gcc2 internal prototype to avoid an error.  */
12225 #ifdef __cplusplus
12226 extern "C"
12227 {
12228 #endif
12229 /* We use char because int might match the return type of a gcc2
12230    builtin and then its argument prototype would still apply.  */
12231 char gethostbyname ();
12232 /* The GNU C library defines this for functions which it implements
12233     to always fail with ENOSYS.  Some functions are actually named
12234     something starting with __ and the normal name is an alias.  */
12235 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12236 choke me
12237 #else
12238 char (*f) () = gethostbyname;
12239 #endif
12240 #ifdef __cplusplus
12241 }
12242 #endif
12243
12244 int
12245 main ()
12246 {
12247 return f != gethostbyname;
12248   ;
12249   return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12254   (eval $ac_link) 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } &&
12261          { ac_try='test -z "$ac_c_werror_flag"
12262                          || test ! -s conftest.err'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; } &&
12268          { ac_try='test -s conftest$ac_exeext'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; }; then
12274   ac_cv_func_gethostbyname=yes
12275 else
12276   echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ac_cv_func_gethostbyname=no
12280 fi
12281 rm -f conftest.err conftest.$ac_objext \
12282       conftest$ac_exeext conftest.$ac_ext
12283 fi
12284 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12285 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12286
12287     if test $ac_cv_func_gethostbyname = no; then
12288       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12289 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12290 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-lnsl  $LIBS"
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301
12302 /* Override any gcc2 internal prototype to avoid an error.  */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 /* We use char because int might match the return type of a gcc2
12307    builtin and then its argument prototype would still apply.  */
12308 char gethostbyname ();
12309 int
12310 main ()
12311 {
12312 gethostbyname ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 rm -f conftest.$ac_objext conftest$ac_exeext
12318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12319   (eval $ac_link) 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } &&
12326          { ac_try='test -z "$ac_c_werror_flag"
12327                          || test ! -s conftest.err'
12328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329   (eval $ac_try) 2>&5
12330   ac_status=$?
12331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332   (exit $ac_status); }; } &&
12333          { ac_try='test -s conftest$ac_exeext'
12334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335   (eval $ac_try) 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; }; then
12339   ac_cv_lib_nsl_gethostbyname=yes
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 ac_cv_lib_nsl_gethostbyname=no
12345 fi
12346 rm -f conftest.err conftest.$ac_objext \
12347       conftest$ac_exeext conftest.$ac_ext
12348 LIBS=$ac_check_lib_save_LIBS
12349 fi
12350 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12351 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12352 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12353   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12354 fi
12355
12356       if test $ac_cv_lib_nsl_gethostbyname = no; then
12357         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12358 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12359 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lbsd  $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370
12371 /* Override any gcc2 internal prototype to avoid an error.  */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 /* We use char because int might match the return type of a gcc2
12376    builtin and then its argument prototype would still apply.  */
12377 char gethostbyname ();
12378 int
12379 main ()
12380 {
12381 gethostbyname ();
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388   (eval $ac_link) 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -z "$ac_c_werror_flag"
12396                          || test ! -s conftest.err'
12397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398   (eval $ac_try) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; } &&
12402          { ac_try='test -s conftest$ac_exeext'
12403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404   (eval $ac_try) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_cv_lib_bsd_gethostbyname=yes
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_cv_lib_bsd_gethostbyname=no
12414 fi
12415 rm -f conftest.err conftest.$ac_objext \
12416       conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12418 fi
12419 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12420 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12421 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12422   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12423 fi
12424
12425       fi
12426     fi
12427
12428     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12429     # socket/setsockopt and other routines are undefined under SCO ODT
12430     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12431     # on later versions), says Simon Leinen: it contains gethostby*
12432     # variants that don't use the name server (or something).  -lsocket
12433     # must be given before -lnsl if both are needed.  We assume that
12434     # if connect needs -lnsl, so does gethostbyname.
12435     echo "$as_me:$LINENO: checking for connect" >&5
12436 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12437 if test "${ac_cv_func_connect+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h.  */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h.  */
12446 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12448 #define connect innocuous_connect
12449
12450 /* System header to define __stub macros and hopefully few prototypes,
12451     which can conflict with char connect (); below.
12452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12453     <limits.h> exists even on freestanding compilers.  */
12454
12455 #ifdef __STDC__
12456 # include <limits.h>
12457 #else
12458 # include <assert.h>
12459 #endif
12460
12461 #undef connect
12462
12463 /* Override any gcc2 internal prototype to avoid an error.  */
12464 #ifdef __cplusplus
12465 extern "C"
12466 {
12467 #endif
12468 /* We use char because int might match the return type of a gcc2
12469    builtin and then its argument prototype would still apply.  */
12470 char connect ();
12471 /* The GNU C library defines this for functions which it implements
12472     to always fail with ENOSYS.  Some functions are actually named
12473     something starting with __ and the normal name is an alias.  */
12474 #if defined (__stub_connect) || defined (__stub___connect)
12475 choke me
12476 #else
12477 char (*f) () = connect;
12478 #endif
12479 #ifdef __cplusplus
12480 }
12481 #endif
12482
12483 int
12484 main ()
12485 {
12486 return f != connect;
12487   ;
12488   return 0;
12489 }
12490 _ACEOF
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12493   (eval $ac_link) 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } &&
12500          { ac_try='test -z "$ac_c_werror_flag"
12501                          || test ! -s conftest.err'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest$ac_exeext'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; }; then
12513   ac_cv_func_connect=yes
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 ac_cv_func_connect=no
12519 fi
12520 rm -f conftest.err conftest.$ac_objext \
12521       conftest$ac_exeext conftest.$ac_ext
12522 fi
12523 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12524 echo "${ECHO_T}$ac_cv_func_connect" >&6
12525
12526     if test $ac_cv_func_connect = no; then
12527       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12528 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12529 if test "${ac_cv_lib_socket_connect+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h.  */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h.  */
12540
12541 /* Override any gcc2 internal prototype to avoid an error.  */
12542 #ifdef __cplusplus
12543 extern "C"
12544 #endif
12545 /* We use char because int might match the return type of a gcc2
12546    builtin and then its argument prototype would still apply.  */
12547 char connect ();
12548 int
12549 main ()
12550 {
12551 connect ();
12552   ;
12553   return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558   (eval $ac_link) 2>conftest.er1
12559   ac_status=$?
12560   grep -v '^ *+' conftest.er1 >conftest.err
12561   rm -f conftest.er1
12562   cat conftest.err >&5
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } &&
12565          { ac_try='test -z "$ac_c_werror_flag"
12566                          || test ! -s conftest.err'
12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568   (eval $ac_try) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; } &&
12572          { ac_try='test -s conftest$ac_exeext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   ac_cv_lib_socket_connect=yes
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_cv_lib_socket_connect=no
12584 fi
12585 rm -f conftest.err conftest.$ac_objext \
12586       conftest$ac_exeext conftest.$ac_ext
12587 LIBS=$ac_check_lib_save_LIBS
12588 fi
12589 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12590 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12591 if test $ac_cv_lib_socket_connect = yes; then
12592   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12593 fi
12594
12595     fi
12596
12597     # Guillermo Gomez says -lposix is necessary on A/UX.
12598     echo "$as_me:$LINENO: checking for remove" >&5
12599 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12600 if test "${ac_cv_func_remove+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h.  */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h.  */
12609 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12611 #define remove innocuous_remove
12612
12613 /* System header to define __stub macros and hopefully few prototypes,
12614     which can conflict with char remove (); below.
12615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12616     <limits.h> exists even on freestanding compilers.  */
12617
12618 #ifdef __STDC__
12619 # include <limits.h>
12620 #else
12621 # include <assert.h>
12622 #endif
12623
12624 #undef remove
12625
12626 /* Override any gcc2 internal prototype to avoid an error.  */
12627 #ifdef __cplusplus
12628 extern "C"
12629 {
12630 #endif
12631 /* We use char because int might match the return type of a gcc2
12632    builtin and then its argument prototype would still apply.  */
12633 char remove ();
12634 /* The GNU C library defines this for functions which it implements
12635     to always fail with ENOSYS.  Some functions are actually named
12636     something starting with __ and the normal name is an alias.  */
12637 #if defined (__stub_remove) || defined (__stub___remove)
12638 choke me
12639 #else
12640 char (*f) () = remove;
12641 #endif
12642 #ifdef __cplusplus
12643 }
12644 #endif
12645
12646 int
12647 main ()
12648 {
12649 return f != remove;
12650   ;
12651   return 0;
12652 }
12653 _ACEOF
12654 rm -f conftest.$ac_objext conftest$ac_exeext
12655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12656   (eval $ac_link) 2>conftest.er1
12657   ac_status=$?
12658   grep -v '^ *+' conftest.er1 >conftest.err
12659   rm -f conftest.er1
12660   cat conftest.err >&5
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); } &&
12663          { ac_try='test -z "$ac_c_werror_flag"
12664                          || test ! -s conftest.err'
12665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666   (eval $ac_try) 2>&5
12667   ac_status=$?
12668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669   (exit $ac_status); }; } &&
12670          { ac_try='test -s conftest$ac_exeext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_cv_func_remove=yes
12677 else
12678   echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12680
12681 ac_cv_func_remove=no
12682 fi
12683 rm -f conftest.err conftest.$ac_objext \
12684       conftest$ac_exeext conftest.$ac_ext
12685 fi
12686 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12687 echo "${ECHO_T}$ac_cv_func_remove" >&6
12688
12689     if test $ac_cv_func_remove = no; then
12690       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12691 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12692 if test "${ac_cv_lib_posix_remove+set}" = set; then
12693   echo $ECHO_N "(cached) $ECHO_C" >&6
12694 else
12695   ac_check_lib_save_LIBS=$LIBS
12696 LIBS="-lposix  $LIBS"
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h.  */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h.  */
12703
12704 /* Override any gcc2 internal prototype to avoid an error.  */
12705 #ifdef __cplusplus
12706 extern "C"
12707 #endif
12708 /* We use char because int might match the return type of a gcc2
12709    builtin and then its argument prototype would still apply.  */
12710 char remove ();
12711 int
12712 main ()
12713 {
12714 remove ();
12715   ;
12716   return 0;
12717 }
12718 _ACEOF
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721   (eval $ac_link) 2>conftest.er1
12722   ac_status=$?
12723   grep -v '^ *+' conftest.er1 >conftest.err
12724   rm -f conftest.er1
12725   cat conftest.err >&5
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); } &&
12728          { ac_try='test -z "$ac_c_werror_flag"
12729                          || test ! -s conftest.err'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; } &&
12735          { ac_try='test -s conftest$ac_exeext'
12736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737   (eval $ac_try) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; }; then
12741   ac_cv_lib_posix_remove=yes
12742 else
12743   echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746 ac_cv_lib_posix_remove=no
12747 fi
12748 rm -f conftest.err conftest.$ac_objext \
12749       conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12751 fi
12752 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12753 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12754 if test $ac_cv_lib_posix_remove = yes; then
12755   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12756 fi
12757
12758     fi
12759
12760     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12761     echo "$as_me:$LINENO: checking for shmat" >&5
12762 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12763 if test "${ac_cv_func_shmat+set}" = set; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766   cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12774 #define shmat innocuous_shmat
12775
12776 /* System header to define __stub macros and hopefully few prototypes,
12777     which can conflict with char shmat (); below.
12778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12779     <limits.h> exists even on freestanding compilers.  */
12780
12781 #ifdef __STDC__
12782 # include <limits.h>
12783 #else
12784 # include <assert.h>
12785 #endif
12786
12787 #undef shmat
12788
12789 /* Override any gcc2 internal prototype to avoid an error.  */
12790 #ifdef __cplusplus
12791 extern "C"
12792 {
12793 #endif
12794 /* We use char because int might match the return type of a gcc2
12795    builtin and then its argument prototype would still apply.  */
12796 char shmat ();
12797 /* The GNU C library defines this for functions which it implements
12798     to always fail with ENOSYS.  Some functions are actually named
12799     something starting with __ and the normal name is an alias.  */
12800 #if defined (__stub_shmat) || defined (__stub___shmat)
12801 choke me
12802 #else
12803 char (*f) () = shmat;
12804 #endif
12805 #ifdef __cplusplus
12806 }
12807 #endif
12808
12809 int
12810 main ()
12811 {
12812 return f != shmat;
12813   ;
12814   return 0;
12815 }
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819   (eval $ac_link) 2>conftest.er1
12820   ac_status=$?
12821   grep -v '^ *+' conftest.er1 >conftest.err
12822   rm -f conftest.er1
12823   cat conftest.err >&5
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); } &&
12826          { ac_try='test -z "$ac_c_werror_flag"
12827                          || test ! -s conftest.err'
12828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829   (eval $ac_try) 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; } &&
12833          { ac_try='test -s conftest$ac_exeext'
12834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835   (eval $ac_try) 2>&5
12836   ac_status=$?
12837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838   (exit $ac_status); }; }; then
12839   ac_cv_func_shmat=yes
12840 else
12841   echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 ac_cv_func_shmat=no
12845 fi
12846 rm -f conftest.err conftest.$ac_objext \
12847       conftest$ac_exeext conftest.$ac_ext
12848 fi
12849 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12850 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12851
12852     if test $ac_cv_func_shmat = no; then
12853       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12854 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12855 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12856   echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858   ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-lipc  $LIBS"
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866
12867 /* Override any gcc2 internal prototype to avoid an error.  */
12868 #ifdef __cplusplus
12869 extern "C"
12870 #endif
12871 /* We use char because int might match the return type of a gcc2
12872    builtin and then its argument prototype would still apply.  */
12873 char shmat ();
12874 int
12875 main ()
12876 {
12877 shmat ();
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884   (eval $ac_link) 2>conftest.er1
12885   ac_status=$?
12886   grep -v '^ *+' conftest.er1 >conftest.err
12887   rm -f conftest.er1
12888   cat conftest.err >&5
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); } &&
12891          { ac_try='test -z "$ac_c_werror_flag"
12892                          || test ! -s conftest.err'
12893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894   (eval $ac_try) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; } &&
12898          { ac_try='test -s conftest$ac_exeext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_cv_lib_ipc_shmat=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_cv_lib_ipc_shmat=no
12910 fi
12911 rm -f conftest.err conftest.$ac_objext \
12912       conftest$ac_exeext conftest.$ac_ext
12913 LIBS=$ac_check_lib_save_LIBS
12914 fi
12915 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12917 if test $ac_cv_lib_ipc_shmat = yes; then
12918   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12919 fi
12920
12921     fi
12922   fi
12923
12924   # Check for libraries that X11R6 Xt/Xaw programs need.
12925   ac_save_LDFLAGS=$LDFLAGS
12926   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12927   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12928   # check for ICE first), but we must link in the order -lSM -lICE or
12929   # we get undefined symbols.  So assume we have SM if we have ICE.
12930   # These have to be linked with before -lX11, unlike the other
12931   # libraries we check for below, so use a different variable.
12932   # John Interrante, Karl Berry
12933   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   ac_check_lib_save_LIBS=$LIBS
12939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12940 cat >conftest.$ac_ext <<_ACEOF
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946
12947 /* Override any gcc2 internal prototype to avoid an error.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 #endif
12951 /* We use char because int might match the return type of a gcc2
12952    builtin and then its argument prototype would still apply.  */
12953 char IceConnectionNumber ();
12954 int
12955 main ()
12956 {
12957 IceConnectionNumber ();
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 rm -f conftest.$ac_objext conftest$ac_exeext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964   (eval $ac_link) 2>conftest.er1
12965   ac_status=$?
12966   grep -v '^ *+' conftest.er1 >conftest.err
12967   rm -f conftest.er1
12968   cat conftest.err >&5
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -z "$ac_c_werror_flag"
12972                          || test ! -s conftest.err'
12973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974   (eval $ac_try) 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; } &&
12978          { ac_try='test -s conftest$ac_exeext'
12979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980   (eval $ac_try) 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; }; then
12984   ac_cv_lib_ICE_IceConnectionNumber=yes
12985 else
12986   echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 ac_cv_lib_ICE_IceConnectionNumber=no
12990 fi
12991 rm -f conftest.err conftest.$ac_objext \
12992       conftest$ac_exeext conftest.$ac_ext
12993 LIBS=$ac_check_lib_save_LIBS
12994 fi
12995 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12996 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12997 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12998   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12999 fi
13000
13001   LDFLAGS=$ac_save_LDFLAGS
13002
13003 fi
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033 for ac_header in \
13034         assert.h \
13035         fcntl.h \
13036         grp.h \
13037         pwd.h \
13038         libc.h \
13039         limits.h \
13040         stdarg.h \
13041         stdlib.h \
13042         stdint.h \
13043         string.h \
13044         termios.h \
13045         termcap.h \
13046         term.h \
13047         unistd.h \
13048         sys/bitypes.h \
13049         sys/byteorder.h \
13050         sys/ioctl.h \
13051         sys/select.h \
13052         sys/sockio.h \
13053         sys/time.h \
13054         sys/socket.h \
13055         arpa/nameser.h \
13056         resolv.h \
13057         mtio.h \
13058         sys/mtio.h \
13059         sys/tape.h \
13060         regex.h \
13061
13062 do
13063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13065   echo "$as_me:$LINENO: checking for $ac_header" >&5
13066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 fi
13070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13072 else
13073   # Is the header compilable?
13074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h.  */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h.  */
13082 $ac_includes_default
13083 #include <$ac_header>
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087   (eval $ac_compile) 2>conftest.er1
13088   ac_status=$?
13089   grep -v '^ *+' conftest.er1 >conftest.err
13090   rm -f conftest.er1
13091   cat conftest.err >&5
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); } &&
13094          { ac_try='test -z "$ac_c_werror_flag"
13095                          || test ! -s conftest.err'
13096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097   (eval $ac_try) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; } &&
13101          { ac_try='test -s conftest.$ac_objext'
13102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103   (eval $ac_try) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; }; then
13107   ac_header_compiler=yes
13108 else
13109   echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_header_compiler=no
13113 fi
13114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13116 echo "${ECHO_T}$ac_header_compiler" >&6
13117
13118 # Is the header present?
13119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127 #include <$ac_header>
13128 _ACEOF
13129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13131   ac_status=$?
13132   grep -v '^ *+' conftest.er1 >conftest.err
13133   rm -f conftest.er1
13134   cat conftest.err >&5
13135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136   (exit $ac_status); } >/dev/null; then
13137   if test -s conftest.err; then
13138     ac_cpp_err=$ac_c_preproc_warn_flag
13139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13140   else
13141     ac_cpp_err=
13142   fi
13143 else
13144   ac_cpp_err=yes
13145 fi
13146 if test -z "$ac_cpp_err"; then
13147   ac_header_preproc=yes
13148 else
13149   echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152   ac_header_preproc=no
13153 fi
13154 rm -f conftest.err conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13156 echo "${ECHO_T}$ac_header_preproc" >&6
13157
13158 # So?  What about this header?
13159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13160   yes:no: )
13161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13165     ac_header_preproc=yes
13166     ;;
13167   no:yes:* )
13168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13180     (
13181       cat <<\_ASBOX
13182 ## ------------------------------------------ ##
13183 ## Report this to the AC_PACKAGE_NAME lists.  ##
13184 ## ------------------------------------------ ##
13185 _ASBOX
13186     ) |
13187       sed "s/^/$as_me: WARNING:     /" >&2
13188     ;;
13189 esac
13190 echo "$as_me:$LINENO: checking for $ac_header" >&5
13191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13193   echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195   eval "$as_ac_Header=\$ac_header_preproc"
13196 fi
13197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13199
13200 fi
13201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13202   cat >>confdefs.h <<_ACEOF
13203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13204 _ACEOF
13205
13206 fi
13207
13208 done
13209
13210 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13212 if test "${ac_cv_header_stdc+set}" = set; then
13213   echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215   cat >conftest.$ac_ext <<_ACEOF
13216 /* confdefs.h.  */
13217 _ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h.  */
13221 #include <stdlib.h>
13222 #include <stdarg.h>
13223 #include <string.h>
13224 #include <float.h>
13225
13226 int
13227 main ()
13228 {
13229
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236   (eval $ac_compile) 2>conftest.er1
13237   ac_status=$?
13238   grep -v '^ *+' conftest.er1 >conftest.err
13239   rm -f conftest.er1
13240   cat conftest.err >&5
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } &&
13243          { ac_try='test -z "$ac_c_werror_flag"
13244                          || test ! -s conftest.err'
13245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246   (eval $ac_try) 2>&5
13247   ac_status=$?
13248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249   (exit $ac_status); }; } &&
13250          { ac_try='test -s conftest.$ac_objext'
13251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252   (eval $ac_try) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; }; then
13256   ac_cv_header_stdc=yes
13257 else
13258   echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_cv_header_stdc=no
13262 fi
13263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13264
13265 if test $ac_cv_header_stdc = yes; then
13266   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13267   cat >conftest.$ac_ext <<_ACEOF
13268 /* confdefs.h.  */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h.  */
13273 #include <string.h>
13274
13275 _ACEOF
13276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13277   $EGREP "memchr" >/dev/null 2>&1; then
13278   :
13279 else
13280   ac_cv_header_stdc=no
13281 fi
13282 rm -f conftest*
13283
13284 fi
13285
13286 if test $ac_cv_header_stdc = yes; then
13287   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13288   cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 #include <stdlib.h>
13295
13296 _ACEOF
13297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13298   $EGREP "free" >/dev/null 2>&1; then
13299   :
13300 else
13301   ac_cv_header_stdc=no
13302 fi
13303 rm -f conftest*
13304
13305 fi
13306
13307 if test $ac_cv_header_stdc = yes; then
13308   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13309   if test "$cross_compiling" = yes; then
13310   :
13311 else
13312   cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318 #include <ctype.h>
13319 #if ((' ' & 0x0FF) == 0x020)
13320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13322 #else
13323 # define ISLOWER(c) \
13324                    (('a' <= (c) && (c) <= 'i') \
13325                      || ('j' <= (c) && (c) <= 'r') \
13326                      || ('s' <= (c) && (c) <= 'z'))
13327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13328 #endif
13329
13330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13331 int
13332 main ()
13333 {
13334   int i;
13335   for (i = 0; i < 256; i++)
13336     if (XOR (islower (i), ISLOWER (i))
13337         || toupper (i) != TOUPPER (i))
13338       exit(2);
13339   exit (0);
13340 }
13341 _ACEOF
13342 rm -f conftest$ac_exeext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13344   (eval $ac_link) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349   (eval $ac_try) 2>&5
13350   ac_status=$?
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); }; }; then
13353   :
13354 else
13355   echo "$as_me: program exited with status $ac_status" >&5
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 ( exit $ac_status )
13360 ac_cv_header_stdc=no
13361 fi
13362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13363 fi
13364 fi
13365 fi
13366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13368 if test $ac_cv_header_stdc = yes; then
13369
13370 cat >>confdefs.h <<\_ACEOF
13371 #define STDC_HEADERS 1
13372 _ACEOF
13373
13374 fi
13375
13376 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13377 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13378 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13379   echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381   cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387 #include <sys/types.h>
13388 int
13389 main ()
13390 {
13391 return makedev(0, 0);
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398   (eval $ac_link) 2>conftest.er1
13399   ac_status=$?
13400   grep -v '^ *+' conftest.er1 >conftest.err
13401   rm -f conftest.er1
13402   cat conftest.err >&5
13403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); } &&
13405          { ac_try='test -z "$ac_c_werror_flag"
13406                          || test ! -s conftest.err'
13407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408   (eval $ac_try) 2>&5
13409   ac_status=$?
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); }; } &&
13412          { ac_try='test -s conftest$ac_exeext'
13413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414   (eval $ac_try) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; }; then
13418   ac_cv_header_sys_types_h_makedev=yes
13419 else
13420   echo "$as_me: failed program was:" >&5
13421 sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_cv_header_sys_types_h_makedev=no
13424 fi
13425 rm -f conftest.err conftest.$ac_objext \
13426       conftest$ac_exeext conftest.$ac_ext
13427
13428 fi
13429 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13430 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13431
13432 if test $ac_cv_header_sys_types_h_makedev = no; then
13433 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13434   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13435 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13436 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13437   echo $ECHO_N "(cached) $ECHO_C" >&6
13438 fi
13439 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13440 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13441 else
13442   # Is the header compilable?
13443 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13444 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13445 cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451 $ac_includes_default
13452 #include <sys/mkdev.h>
13453 _ACEOF
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456   (eval $ac_compile) 2>conftest.er1
13457   ac_status=$?
13458   grep -v '^ *+' conftest.er1 >conftest.err
13459   rm -f conftest.er1
13460   cat conftest.err >&5
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } &&
13463          { ac_try='test -z "$ac_c_werror_flag"
13464                          || test ! -s conftest.err'
13465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466   (eval $ac_try) 2>&5
13467   ac_status=$?
13468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469   (exit $ac_status); }; } &&
13470          { ac_try='test -s conftest.$ac_objext'
13471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472   (eval $ac_try) 2>&5
13473   ac_status=$?
13474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475   (exit $ac_status); }; }; then
13476   ac_header_compiler=yes
13477 else
13478   echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_header_compiler=no
13482 fi
13483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13485 echo "${ECHO_T}$ac_header_compiler" >&6
13486
13487 # Is the header present?
13488 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13489 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496 #include <sys/mkdev.h>
13497 _ACEOF
13498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } >/dev/null; then
13506   if test -s conftest.err; then
13507     ac_cpp_err=$ac_c_preproc_warn_flag
13508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13509   else
13510     ac_cpp_err=
13511   fi
13512 else
13513   ac_cpp_err=yes
13514 fi
13515 if test -z "$ac_cpp_err"; then
13516   ac_header_preproc=yes
13517 else
13518   echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521   ac_header_preproc=no
13522 fi
13523 rm -f conftest.err conftest.$ac_ext
13524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13525 echo "${ECHO_T}$ac_header_preproc" >&6
13526
13527 # So?  What about this header?
13528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13529   yes:no: )
13530     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13531 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13532     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13533 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13534     ac_header_preproc=yes
13535     ;;
13536   no:yes:* )
13537     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13538 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13539     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
13540 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
13541     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13542 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13543     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
13544 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13545     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13546 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13547     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13548 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13549     (
13550       cat <<\_ASBOX
13551 ## ------------------------------------------ ##
13552 ## Report this to the AC_PACKAGE_NAME lists.  ##
13553 ## ------------------------------------------ ##
13554 _ASBOX
13555     ) |
13556       sed "s/^/$as_me: WARNING:     /" >&2
13557     ;;
13558 esac
13559 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13560 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13561 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   ac_cv_header_sys_mkdev_h=$ac_header_preproc
13565 fi
13566 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13567 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13568
13569 fi
13570 if test $ac_cv_header_sys_mkdev_h = yes; then
13571
13572 cat >>confdefs.h <<\_ACEOF
13573 #define MAJOR_IN_MKDEV 1
13574 _ACEOF
13575
13576 fi
13577
13578
13579
13580   if test $ac_cv_header_sys_mkdev_h = no; then
13581     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13582   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13583 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13584 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 fi
13587 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13588 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13589 else
13590   # Is the header compilable?
13591 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13592 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 $ac_includes_default
13600 #include <sys/sysmacros.h>
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604   (eval $ac_compile) 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -z "$ac_c_werror_flag"
13612                          || test ! -s conftest.err'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest.$ac_objext'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; }; then
13624   ac_header_compiler=yes
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_header_compiler=no
13630 fi
13631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6
13634
13635 # Is the header present?
13636 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13637 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <sys/sysmacros.h>
13645 _ACEOF
13646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13648   ac_status=$?
13649   grep -v '^ *+' conftest.er1 >conftest.err
13650   rm -f conftest.er1
13651   cat conftest.err >&5
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } >/dev/null; then
13654   if test -s conftest.err; then
13655     ac_cpp_err=$ac_c_preproc_warn_flag
13656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13657   else
13658     ac_cpp_err=
13659   fi
13660 else
13661   ac_cpp_err=yes
13662 fi
13663 if test -z "$ac_cpp_err"; then
13664   ac_header_preproc=yes
13665 else
13666   echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669   ac_header_preproc=no
13670 fi
13671 rm -f conftest.err conftest.$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13673 echo "${ECHO_T}$ac_header_preproc" >&6
13674
13675 # So?  What about this header?
13676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13677   yes:no: )
13678     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13679 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13680     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13681 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13682     ac_header_preproc=yes
13683     ;;
13684   no:yes:* )
13685     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13686 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13687     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
13688 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
13689     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13690 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
13692 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13694 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13696 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13697     (
13698       cat <<\_ASBOX
13699 ## ------------------------------------------ ##
13700 ## Report this to the AC_PACKAGE_NAME lists.  ##
13701 ## ------------------------------------------ ##
13702 _ASBOX
13703     ) |
13704       sed "s/^/$as_me: WARNING:     /" >&2
13705     ;;
13706 esac
13707 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13708 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13709 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13715 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13716
13717 fi
13718 if test $ac_cv_header_sys_sysmacros_h = yes; then
13719
13720 cat >>confdefs.h <<\_ACEOF
13721 #define MAJOR_IN_SYSMACROS 1
13722 _ACEOF
13723
13724 fi
13725
13726
13727   fi
13728 fi
13729
13730
13731
13732
13733
13734
13735 ac_header_dirent=no
13736 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13737   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13738 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13739 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13741   echo $ECHO_N "(cached) $ECHO_C" >&6
13742 else
13743   cat >conftest.$ac_ext <<_ACEOF
13744 /* confdefs.h.  */
13745 _ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h.  */
13749 #include <sys/types.h>
13750 #include <$ac_hdr>
13751
13752 int
13753 main ()
13754 {
13755 if ((DIR *) 0)
13756 return 0;
13757   ;
13758   return 0;
13759 }
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763   (eval $ac_compile) 2>conftest.er1
13764   ac_status=$?
13765   grep -v '^ *+' conftest.er1 >conftest.err
13766   rm -f conftest.er1
13767   cat conftest.err >&5
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } &&
13770          { ac_try='test -z "$ac_c_werror_flag"
13771                          || test ! -s conftest.err'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; } &&
13777          { ac_try='test -s conftest.$ac_objext'
13778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779   (eval $ac_try) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); }; }; then
13783   eval "$as_ac_Header=yes"
13784 else
13785   echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 eval "$as_ac_Header=no"
13789 fi
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791 fi
13792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13795   cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13797 _ACEOF
13798
13799 ac_header_dirent=$ac_hdr; break
13800 fi
13801
13802 done
13803 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13804 if test $ac_header_dirent = dirent.h; then
13805   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13807 if test "${ac_cv_search_opendir+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   ac_func_search_save_LIBS=$LIBS
13811 ac_cv_search_opendir=no
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818
13819 /* Override any gcc2 internal prototype to avoid an error.  */
13820 #ifdef __cplusplus
13821 extern "C"
13822 #endif
13823 /* We use char because int might match the return type of a gcc2
13824    builtin and then its argument prototype would still apply.  */
13825 char opendir ();
13826 int
13827 main ()
13828 {
13829 opendir ();
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext conftest$ac_exeext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13836   (eval $ac_link) 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } &&
13843          { ac_try='test -z "$ac_c_werror_flag"
13844                          || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest$ac_exeext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   ac_cv_search_opendir="none required"
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 fi
13862 rm -f conftest.err conftest.$ac_objext \
13863       conftest$ac_exeext conftest.$ac_ext
13864 if test "$ac_cv_search_opendir" = no; then
13865   for ac_lib in dir; do
13866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13867     cat >conftest.$ac_ext <<_ACEOF
13868 /* confdefs.h.  */
13869 _ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h.  */
13873
13874 /* Override any gcc2 internal prototype to avoid an error.  */
13875 #ifdef __cplusplus
13876 extern "C"
13877 #endif
13878 /* We use char because int might match the return type of a gcc2
13879    builtin and then its argument prototype would still apply.  */
13880 char opendir ();
13881 int
13882 main ()
13883 {
13884 opendir ();
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext conftest$ac_exeext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891   (eval $ac_link) 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -z "$ac_c_werror_flag"
13899                          || test ! -s conftest.err'
13900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901   (eval $ac_try) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; } &&
13905          { ac_try='test -s conftest$ac_exeext'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_cv_search_opendir="-l$ac_lib"
13912 break
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917 fi
13918 rm -f conftest.err conftest.$ac_objext \
13919       conftest$ac_exeext conftest.$ac_ext
13920   done
13921 fi
13922 LIBS=$ac_func_search_save_LIBS
13923 fi
13924 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13925 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13926 if test "$ac_cv_search_opendir" != no; then
13927   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13928
13929 fi
13930
13931 else
13932   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13933 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13934 if test "${ac_cv_search_opendir+set}" = set; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   ac_func_search_save_LIBS=$LIBS
13938 ac_cv_search_opendir=no
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h.  */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h.  */
13945
13946 /* Override any gcc2 internal prototype to avoid an error.  */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 /* We use char because int might match the return type of a gcc2
13951    builtin and then its argument prototype would still apply.  */
13952 char opendir ();
13953 int
13954 main ()
13955 {
13956 opendir ();
13957   ;
13958   return 0;
13959 }
13960 _ACEOF
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13963   (eval $ac_link) 2>conftest.er1
13964   ac_status=$?
13965   grep -v '^ *+' conftest.er1 >conftest.err
13966   rm -f conftest.er1
13967   cat conftest.err >&5
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } &&
13970          { ac_try='test -z "$ac_c_werror_flag"
13971                          || test ! -s conftest.err'
13972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973   (eval $ac_try) 2>&5
13974   ac_status=$?
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); }; } &&
13977          { ac_try='test -s conftest$ac_exeext'
13978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13979   (eval $ac_try) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); }; }; then
13983   ac_cv_search_opendir="none required"
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 fi
13989 rm -f conftest.err conftest.$ac_objext \
13990       conftest$ac_exeext conftest.$ac_ext
13991 if test "$ac_cv_search_opendir" = no; then
13992   for ac_lib in x; do
13993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13994     cat >conftest.$ac_ext <<_ACEOF
13995 /* confdefs.h.  */
13996 _ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h.  */
14000
14001 /* Override any gcc2 internal prototype to avoid an error.  */
14002 #ifdef __cplusplus
14003 extern "C"
14004 #endif
14005 /* We use char because int might match the return type of a gcc2
14006    builtin and then its argument prototype would still apply.  */
14007 char opendir ();
14008 int
14009 main ()
14010 {
14011 opendir ();
14012   ;
14013   return 0;
14014 }
14015 _ACEOF
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14018   (eval $ac_link) 2>conftest.er1
14019   ac_status=$?
14020   grep -v '^ *+' conftest.er1 >conftest.err
14021   rm -f conftest.er1
14022   cat conftest.err >&5
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); } &&
14025          { ac_try='test -z "$ac_c_werror_flag"
14026                          || test ! -s conftest.err'
14027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028   (eval $ac_try) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); }; } &&
14032          { ac_try='test -s conftest$ac_exeext'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_cv_search_opendir="-l$ac_lib"
14039 break
14040 else
14041   echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 fi
14045 rm -f conftest.err conftest.$ac_objext \
14046       conftest$ac_exeext conftest.$ac_ext
14047   done
14048 fi
14049 LIBS=$ac_func_search_save_LIBS
14050 fi
14051 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14052 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14053 if test "$ac_cv_search_opendir" != no; then
14054   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14055
14056 fi
14057
14058 fi
14059
14060 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14061 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14062 if test "${ac_cv_header_stat_broken+set}" = set; then
14063   echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065   cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h.  */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h.  */
14071 #include <sys/types.h>
14072 #include <sys/stat.h>
14073
14074 #if defined(S_ISBLK) && defined(S_IFDIR)
14075 # if S_ISBLK (S_IFDIR)
14076 You lose.
14077 # endif
14078 #endif
14079
14080 #if defined(S_ISBLK) && defined(S_IFCHR)
14081 # if S_ISBLK (S_IFCHR)
14082 You lose.
14083 # endif
14084 #endif
14085
14086 #if defined(S_ISLNK) && defined(S_IFREG)
14087 # if S_ISLNK (S_IFREG)
14088 You lose.
14089 # endif
14090 #endif
14091
14092 #if defined(S_ISSOCK) && defined(S_IFREG)
14093 # if S_ISSOCK (S_IFREG)
14094 You lose.
14095 # endif
14096 #endif
14097
14098 _ACEOF
14099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14100   $EGREP "You lose" >/dev/null 2>&1; then
14101   ac_cv_header_stat_broken=yes
14102 else
14103   ac_cv_header_stat_broken=no
14104 fi
14105 rm -f conftest*
14106
14107 fi
14108 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14109 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14110 if test $ac_cv_header_stat_broken = yes; then
14111
14112 cat >>confdefs.h <<\_ACEOF
14113 #define STAT_MACROS_BROKEN 1
14114 _ACEOF
14115
14116 fi
14117
14118 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14119 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14120 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 #include <sys/types.h>
14130 #include <sys/wait.h>
14131 #ifndef WEXITSTATUS
14132 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14133 #endif
14134 #ifndef WIFEXITED
14135 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14136 #endif
14137
14138 int
14139 main ()
14140 {
14141   int s;
14142   wait (&s);
14143   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 rm -f conftest.$ac_objext
14149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14150   (eval $ac_compile) 2>conftest.er1
14151   ac_status=$?
14152   grep -v '^ *+' conftest.er1 >conftest.err
14153   rm -f conftest.er1
14154   cat conftest.err >&5
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); } &&
14157          { ac_try='test -z "$ac_c_werror_flag"
14158                          || test ! -s conftest.err'
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); }; } &&
14164          { ac_try='test -s conftest.$ac_objext'
14165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166   (eval $ac_try) 2>&5
14167   ac_status=$?
14168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); }; }; then
14170   ac_cv_header_sys_wait_h=yes
14171 else
14172   echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14174
14175 ac_cv_header_sys_wait_h=no
14176 fi
14177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14178 fi
14179 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14180 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14181 if test $ac_cv_header_sys_wait_h = yes; then
14182
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_SYS_WAIT_H 1
14185 _ACEOF
14186
14187 fi
14188
14189 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14190 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14191 if test "${ac_cv_header_time+set}" = set; then
14192   echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194   cat >conftest.$ac_ext <<_ACEOF
14195 /* confdefs.h.  */
14196 _ACEOF
14197 cat confdefs.h >>conftest.$ac_ext
14198 cat >>conftest.$ac_ext <<_ACEOF
14199 /* end confdefs.h.  */
14200 #include <sys/types.h>
14201 #include <sys/time.h>
14202 #include <time.h>
14203
14204 int
14205 main ()
14206 {
14207 if ((struct tm *) 0)
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_header_time=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 ac_cv_header_time=no
14241 fi
14242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14245 echo "${ECHO_T}$ac_cv_header_time" >&6
14246 if test $ac_cv_header_time = yes; then
14247
14248 cat >>confdefs.h <<\_ACEOF
14249 #define TIME_WITH_SYS_TIME 1
14250 _ACEOF
14251
14252 fi
14253
14254
14255 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14256 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14257 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 $ac_includes_default
14267 int
14268 main ()
14269 {
14270 static struct stat ac_aggr;
14271 if (ac_aggr.st_blksize)
14272 return 0;
14273   ;
14274   return 0;
14275 }
14276 _ACEOF
14277 rm -f conftest.$ac_objext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14279   (eval $ac_compile) 2>conftest.er1
14280   ac_status=$?
14281   grep -v '^ *+' conftest.er1 >conftest.err
14282   rm -f conftest.er1
14283   cat conftest.err >&5
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -z "$ac_c_werror_flag"
14287                          || test ! -s conftest.err'
14288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289   (eval $ac_try) 2>&5
14290   ac_status=$?
14291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292   (exit $ac_status); }; } &&
14293          { ac_try='test -s conftest.$ac_objext'
14294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295   (eval $ac_try) 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; }; then
14299   ac_cv_member_struct_stat_st_blksize=yes
14300 else
14301   echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14303
14304 cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h.  */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h.  */
14310 $ac_includes_default
14311 int
14312 main ()
14313 {
14314 static struct stat ac_aggr;
14315 if (sizeof ac_aggr.st_blksize)
14316 return 0;
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext
14322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14323   (eval $ac_compile) 2>conftest.er1
14324   ac_status=$?
14325   grep -v '^ *+' conftest.er1 >conftest.err
14326   rm -f conftest.er1
14327   cat conftest.err >&5
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); } &&
14330          { ac_try='test -z "$ac_c_werror_flag"
14331                          || test ! -s conftest.err'
14332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333   (eval $ac_try) 2>&5
14334   ac_status=$?
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); }; } &&
14337          { ac_try='test -s conftest.$ac_objext'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; }; then
14343   ac_cv_member_struct_stat_st_blksize=yes
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348 ac_cv_member_struct_stat_st_blksize=no
14349 fi
14350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14351 fi
14352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14353 fi
14354 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14355 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14356 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14357
14358 cat >>confdefs.h <<_ACEOF
14359 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14360 _ACEOF
14361
14362
14363 cat >>confdefs.h <<\_ACEOF
14364 #define HAVE_ST_BLKSIZE 1
14365 _ACEOF
14366
14367 fi
14368
14369
14370 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14371 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14372 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 $ac_includes_default
14382 int
14383 main ()
14384 {
14385 static struct stat ac_aggr;
14386 if (ac_aggr.st_blocks)
14387 return 0;
14388   ;
14389   return 0;
14390 }
14391 _ACEOF
14392 rm -f conftest.$ac_objext
14393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14394   (eval $ac_compile) 2>conftest.er1
14395   ac_status=$?
14396   grep -v '^ *+' conftest.er1 >conftest.err
14397   rm -f conftest.er1
14398   cat conftest.err >&5
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } &&
14401          { ac_try='test -z "$ac_c_werror_flag"
14402                          || test ! -s conftest.err'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; } &&
14408          { ac_try='test -s conftest.$ac_objext'
14409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410   (eval $ac_try) 2>&5
14411   ac_status=$?
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); }; }; then
14414   ac_cv_member_struct_stat_st_blocks=yes
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425 $ac_includes_default
14426 int
14427 main ()
14428 {
14429 static struct stat ac_aggr;
14430 if (sizeof ac_aggr.st_blocks)
14431 return 0;
14432   ;
14433   return 0;
14434 }
14435 _ACEOF
14436 rm -f conftest.$ac_objext
14437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14438   (eval $ac_compile) 2>conftest.er1
14439   ac_status=$?
14440   grep -v '^ *+' conftest.er1 >conftest.err
14441   rm -f conftest.er1
14442   cat conftest.err >&5
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); } &&
14445          { ac_try='test -z "$ac_c_werror_flag"
14446                          || test ! -s conftest.err'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; } &&
14452          { ac_try='test -s conftest.$ac_objext'
14453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454   (eval $ac_try) 2>&5
14455   ac_status=$?
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); }; }; then
14458   ac_cv_member_struct_stat_st_blocks=yes
14459 else
14460   echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463 ac_cv_member_struct_stat_st_blocks=no
14464 fi
14465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14466 fi
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14470 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14471 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14472
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14475 _ACEOF
14476
14477
14478 cat >>confdefs.h <<\_ACEOF
14479 #define HAVE_ST_BLOCKS 1
14480 _ACEOF
14481
14482 else
14483   case $LIBOBJS in
14484     "fileblocks.$ac_objext"   | \
14485   *" fileblocks.$ac_objext"   | \
14486     "fileblocks.$ac_objext "* | \
14487   *" fileblocks.$ac_objext "* ) ;;
14488   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14489 esac
14490
14491 fi
14492
14493
14494 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14495 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14496 if test "${ac_cv_struct_tm+set}" = set; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499   cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h.  */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h.  */
14505 #include <sys/types.h>
14506 #include <time.h>
14507
14508 int
14509 main ()
14510 {
14511 struct tm *tp; tp->tm_sec;
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest.$ac_objext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14518   (eval $ac_compile) 2>conftest.er1
14519   ac_status=$?
14520   grep -v '^ *+' conftest.er1 >conftest.err
14521   rm -f conftest.er1
14522   cat conftest.err >&5
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); } &&
14525          { ac_try='test -z "$ac_c_werror_flag"
14526                          || test ! -s conftest.err'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; } &&
14532          { ac_try='test -s conftest.$ac_objext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538   ac_cv_struct_tm=time.h
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543 ac_cv_struct_tm=sys/time.h
14544 fi
14545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14546 fi
14547 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14548 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14549 if test $ac_cv_struct_tm = sys/time.h; then
14550
14551 cat >>confdefs.h <<\_ACEOF
14552 #define TM_IN_SYS_TIME 1
14553 _ACEOF
14554
14555 fi
14556
14557 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14558 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14559 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #include <sys/types.h>
14569 #include <$ac_cv_struct_tm>
14570
14571
14572 int
14573 main ()
14574 {
14575 static struct tm ac_aggr;
14576 if (ac_aggr.tm_zone)
14577 return 0;
14578   ;
14579   return 0;
14580 }
14581 _ACEOF
14582 rm -f conftest.$ac_objext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14584   (eval $ac_compile) 2>conftest.er1
14585   ac_status=$?
14586   grep -v '^ *+' conftest.er1 >conftest.err
14587   rm -f conftest.er1
14588   cat conftest.err >&5
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -z "$ac_c_werror_flag"
14592                          || test ! -s conftest.err'
14593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594   (eval $ac_try) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); }; } &&
14598          { ac_try='test -s conftest.$ac_objext'
14599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600   (eval $ac_try) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; }; then
14604   ac_cv_member_struct_tm_tm_zone=yes
14605 else
14606   echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14608
14609 cat >conftest.$ac_ext <<_ACEOF
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615 #include <sys/types.h>
14616 #include <$ac_cv_struct_tm>
14617
14618
14619 int
14620 main ()
14621 {
14622 static struct tm ac_aggr;
14623 if (sizeof ac_aggr.tm_zone)
14624 return 0;
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631   (eval $ac_compile) 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -z "$ac_c_werror_flag"
14639                          || test ! -s conftest.err'
14640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); }; } &&
14645          { ac_try='test -s conftest.$ac_objext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   ac_cv_member_struct_tm_tm_zone=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_cv_member_struct_tm_tm_zone=no
14657 fi
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14661 fi
14662 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14663 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14664 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14665
14666 cat >>confdefs.h <<_ACEOF
14667 #define HAVE_STRUCT_TM_TM_ZONE 1
14668 _ACEOF
14669
14670
14671 fi
14672
14673 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14674
14675 cat >>confdefs.h <<\_ACEOF
14676 #define HAVE_TM_ZONE 1
14677 _ACEOF
14678
14679 else
14680   echo "$as_me:$LINENO: checking for tzname" >&5
14681 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14682 if test "${ac_cv_var_tzname+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691 #include <time.h>
14692 #ifndef tzname /* For SGI.  */
14693 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14694 #endif
14695
14696 int
14697 main ()
14698 {
14699 atoi(*tzname);
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext conftest$ac_exeext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14706   (eval $ac_link) 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag"
14714                          || test ! -s conftest.err'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; } &&
14720          { ac_try='test -s conftest$ac_exeext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ac_cv_var_tzname=yes
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ac_cv_var_tzname=no
14732 fi
14733 rm -f conftest.err conftest.$ac_objext \
14734       conftest$ac_exeext conftest.$ac_ext
14735 fi
14736 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14737 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14738   if test $ac_cv_var_tzname = yes; then
14739
14740 cat >>confdefs.h <<\_ACEOF
14741 #define HAVE_TZNAME 1
14742 _ACEOF
14743
14744   fi
14745 fi
14746
14747
14748 echo "$as_me:$LINENO: checking for utime.h" >&5
14749 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14750 if test "${ba_cv_header_utime_h+set}" = set; then
14751   echo $ECHO_N "(cached) $ECHO_C" >&6
14752 else
14753   cat >conftest.$ac_ext <<_ACEOF
14754 /* confdefs.h.  */
14755 _ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h.  */
14759
14760 #include <sys/types.h>
14761 #include <utime.h>
14762 int
14763 main ()
14764 {
14765 struct utimbuf foo
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest.$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772   (eval $ac_compile) 2>conftest.er1
14773   ac_status=$?
14774   grep -v '^ *+' conftest.er1 >conftest.err
14775   rm -f conftest.er1
14776   cat conftest.err >&5
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); } &&
14779          { ac_try='test -z "$ac_c_werror_flag"
14780                          || test ! -s conftest.err'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; } &&
14786          { ac_try='test -s conftest.$ac_objext'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; }; then
14792   ba_cv_header_utime_h=yes
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 ba_cv_header_utime_h=no
14798 fi
14799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14800 fi
14801 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14802 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14803 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_UTIME_H 1
14805 _ACEOF
14806
14807
14808 echo "$as_me:$LINENO: checking for socklen_t" >&5
14809 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14810 if test "${ba_cv_header_socklen_t+set}" = set; then
14811   echo $ECHO_N "(cached) $ECHO_C" >&6
14812 else
14813   cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h.  */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h.  */
14819
14820 #include <sys/types.h>
14821 #include <sys/socket.h>
14822 int
14823 main ()
14824 {
14825 socklen_t x
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14832   (eval $ac_compile) 2>conftest.er1
14833   ac_status=$?
14834   grep -v '^ *+' conftest.er1 >conftest.err
14835   rm -f conftest.er1
14836   cat conftest.err >&5
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } &&
14839          { ac_try='test -z "$ac_c_werror_flag"
14840                          || test ! -s conftest.err'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; } &&
14846          { ac_try='test -s conftest.$ac_objext'
14847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848   (eval $ac_try) 2>&5
14849   ac_status=$?
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; }; then
14852   ba_cv_header_socklen_t=yes
14853 else
14854   echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857 ba_cv_header_socklen_t=no
14858 fi
14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14860 fi
14861 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14862 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14863 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_SOCKLEN_T 1
14865 _ACEOF
14866
14867
14868 echo "$as_me:$LINENO: checking for bigendian" >&5
14869 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14870 if test "${ba_cv_bigendian+set}" = set; then
14871   echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873   if test "$cross_compiling" = yes; then
14874   ba_cv_bigendian=no
14875 else
14876   cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14883 _ACEOF
14884 rm -f conftest$ac_exeext
14885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14886   (eval $ac_link) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891   (eval $ac_try) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; }; then
14895   ba_cv_bigendian=yes
14896 else
14897   echo "$as_me: program exited with status $ac_status" >&5
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901 ( exit $ac_status )
14902 ba_cv_bigendian=no
14903 fi
14904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14905 fi
14906 fi
14907 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14908 echo "${ECHO_T}$ba_cv_bigendian" >&6
14909 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14910 #define HAVE_BIGENDIAN 1
14911 _ACEOF
14912
14913
14914
14915 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14916 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14917 if test "${ac_cv_c_const+set}" = set; then
14918   echo $ECHO_N "(cached) $ECHO_C" >&6
14919 else
14920   cat >conftest.$ac_ext <<_ACEOF
14921 /* confdefs.h.  */
14922 _ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h.  */
14926
14927 int
14928 main ()
14929 {
14930 /* FIXME: Include the comments suggested by Paul. */
14931 #ifndef __cplusplus
14932   /* Ultrix mips cc rejects this.  */
14933   typedef int charset[2];
14934   const charset x;
14935   /* SunOS 4.1.1 cc rejects this.  */
14936   char const *const *ccp;
14937   char **p;
14938   /* NEC SVR4.0.2 mips cc rejects this.  */
14939   struct point {int x, y;};
14940   static struct point const zero = {0,0};
14941   /* AIX XL C 1.02.0.0 rejects this.
14942      It does not let you subtract one const X* pointer from another in
14943      an arm of an if-expression whose if-part is not a constant
14944      expression */
14945   const char *g = "string";
14946   ccp = &g + (g ? g-g : 0);
14947   /* HPUX 7.0 cc rejects these. */
14948   ++ccp;
14949   p = (char**) ccp;
14950   ccp = (char const *const *) p;
14951   { /* SCO 3.2v4 cc rejects this.  */
14952     char *t;
14953     char const *s = 0 ? (char *) 0 : (char const *) 0;
14954
14955     *t++ = 0;
14956   }
14957   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14958     int x[] = {25, 17};
14959     const int *foo = &x[0];
14960     ++foo;
14961   }
14962   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14963     typedef const int *iptr;
14964     iptr p = 0;
14965     ++p;
14966   }
14967   { /* AIX XL C 1.02.0.0 rejects this saying
14968        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14969     struct s { int j; const int *ap[3]; };
14970     struct s *b; b->j = 5;
14971   }
14972   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14973     const int foo = 10;
14974   }
14975 #endif
14976
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14983   (eval $ac_compile) 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -z "$ac_c_werror_flag"
14991                          || test ! -s conftest.err'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; } &&
14997          { ac_try='test -s conftest.$ac_objext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   ac_cv_c_const=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_cv_c_const=no
15009 fi
15010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15011 fi
15012 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15013 echo "${ECHO_T}$ac_cv_c_const" >&6
15014 if test $ac_cv_c_const = no; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define const
15018 _ACEOF
15019
15020 fi
15021
15022
15023
15024 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
15025 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
15026 fstype=no
15027 # The order of these tests is important.
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h.  */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h.  */
15034 #include <sys/statvfs.h>
15035 #include <sys/fstyp.h>
15036 _ACEOF
15037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15038   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } >/dev/null; then
15045   if test -s conftest.err; then
15046     ac_cpp_err=$ac_c_preproc_warn_flag
15047     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15048   else
15049     ac_cpp_err=
15050   fi
15051 else
15052   ac_cpp_err=yes
15053 fi
15054 if test -z "$ac_cpp_err"; then
15055   cat >>confdefs.h <<\_ACEOF
15056 #define FSTYPE_STATVFS 1
15057 _ACEOF
15058  fstype=SVR4
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063
15064 fi
15065 rm -f conftest.err conftest.$ac_ext
15066 if test $fstype = no; then
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 #include <sys/statfs.h>
15074 #include <sys/fstyp.h>
15075 _ACEOF
15076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15078   ac_status=$?
15079   grep -v '^ *+' conftest.er1 >conftest.err
15080   rm -f conftest.er1
15081   cat conftest.err >&5
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } >/dev/null; then
15084   if test -s conftest.err; then
15085     ac_cpp_err=$ac_c_preproc_warn_flag
15086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15087   else
15088     ac_cpp_err=
15089   fi
15090 else
15091   ac_cpp_err=yes
15092 fi
15093 if test -z "$ac_cpp_err"; then
15094   cat >>confdefs.h <<\_ACEOF
15095 #define FSTYPE_USG_STATFS 1
15096 _ACEOF
15097  fstype=SVR3
15098 else
15099   echo "$as_me: failed program was:" >&5
15100 sed 's/^/| /' conftest.$ac_ext >&5
15101
15102
15103 fi
15104 rm -f conftest.err conftest.$ac_ext
15105 fi
15106 if test $fstype = no; then
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113 #include <sys/statfs.h>
15114 #include <sys/vmount.h>
15115 _ACEOF
15116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15118   ac_status=$?
15119   grep -v '^ *+' conftest.er1 >conftest.err
15120   rm -f conftest.er1
15121   cat conftest.err >&5
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); } >/dev/null; then
15124   if test -s conftest.err; then
15125     ac_cpp_err=$ac_c_preproc_warn_flag
15126     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15127   else
15128     ac_cpp_err=
15129   fi
15130 else
15131   ac_cpp_err=yes
15132 fi
15133 if test -z "$ac_cpp_err"; then
15134   cat >>confdefs.h <<\_ACEOF
15135 #define FSTYPE_AIX_STATFS 1
15136 _ACEOF
15137  fstype=AIX
15138 else
15139   echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15141
15142
15143 fi
15144 rm -f conftest.err conftest.$ac_ext
15145 fi
15146 if test $fstype = no; then
15147 cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h.  */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h.  */
15153 #include <mntent.h>
15154 _ACEOF
15155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15157   ac_status=$?
15158   grep -v '^ *+' conftest.er1 >conftest.err
15159   rm -f conftest.er1
15160   cat conftest.err >&5
15161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162   (exit $ac_status); } >/dev/null; then
15163   if test -s conftest.err; then
15164     ac_cpp_err=$ac_c_preproc_warn_flag
15165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15166   else
15167     ac_cpp_err=
15168   fi
15169 else
15170   ac_cpp_err=yes
15171 fi
15172 if test -z "$ac_cpp_err"; then
15173   cat >>confdefs.h <<\_ACEOF
15174 #define FSTYPE_MNTENT 1
15175 _ACEOF
15176  fstype=4.3BSD
15177 else
15178   echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181
15182 fi
15183 rm -f conftest.err conftest.$ac_ext
15184 fi
15185 if test $fstype = no; then
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <sys/mount.h>
15193
15194 _ACEOF
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196   $EGREP "f_type;" >/dev/null 2>&1; then
15197   cat >>confdefs.h <<\_ACEOF
15198 #define FSTYPE_STATFS 1
15199 _ACEOF
15200  fstype=4.4BSD/OSF1
15201 fi
15202 rm -f conftest*
15203
15204 fi
15205 if test $fstype = no; then
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212 #include <sys/mount.h>
15213 #include <sys/fs_types.h>
15214 _ACEOF
15215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } >/dev/null; then
15223   if test -s conftest.err; then
15224     ac_cpp_err=$ac_c_preproc_warn_flag
15225     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15226   else
15227     ac_cpp_err=
15228   fi
15229 else
15230   ac_cpp_err=yes
15231 fi
15232 if test -z "$ac_cpp_err"; then
15233   cat >>confdefs.h <<\_ACEOF
15234 #define FSTYPE_GETMNT 1
15235 _ACEOF
15236  fstype=Ultrix
15237 else
15238   echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15240
15241
15242 fi
15243 rm -f conftest.err conftest.$ac_ext
15244 fi
15245 echo "$as_me:$LINENO: result: $fstype" >&5
15246 echo "${ECHO_T}$fstype" >&6
15247
15248 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15249 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15250 if test "${ac_cv_type_signal+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   cat >conftest.$ac_ext <<_ACEOF
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 #include <sys/types.h>
15260 #include <signal.h>
15261 #ifdef signal
15262 # undef signal
15263 #endif
15264 #ifdef __cplusplus
15265 extern "C" void (*signal (int, void (*)(int)))(int);
15266 #else
15267 void (*signal ()) ();
15268 #endif
15269
15270 int
15271 main ()
15272 {
15273 int i;
15274   ;
15275   return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280   (eval $ac_compile) 2>conftest.er1
15281   ac_status=$?
15282   grep -v '^ *+' conftest.er1 >conftest.err
15283   rm -f conftest.er1
15284   cat conftest.err >&5
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); } &&
15287          { ac_try='test -z "$ac_c_werror_flag"
15288                          || test ! -s conftest.err'
15289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290   (eval $ac_try) 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; } &&
15294          { ac_try='test -s conftest.$ac_objext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_cv_type_signal=void
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305 ac_cv_type_signal=int
15306 fi
15307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15308 fi
15309 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15310 echo "${ECHO_T}$ac_cv_type_signal" >&6
15311
15312 cat >>confdefs.h <<_ACEOF
15313 #define RETSIGTYPE $ac_cv_type_signal
15314 _ACEOF
15315
15316
15317
15318 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15319 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15320 if test "${bash_cv_signal_vintage+set}" = set; then
15321   echo $ECHO_N "(cached) $ECHO_C" >&6
15322 else
15323
15324   cat >conftest.$ac_ext <<_ACEOF
15325 /* confdefs.h.  */
15326 _ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h.  */
15330 #include <signal.h>
15331 int
15332 main ()
15333 {
15334
15335     sigset_t ss;
15336     struct sigaction sa;
15337     sigemptyset(&ss); sigsuspend(&ss);
15338     sigaction(SIGINT, &sa, (struct sigaction *) 0);
15339     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15340
15341   ;
15342   return 0;
15343 }
15344 _ACEOF
15345 rm -f conftest.$ac_objext conftest$ac_exeext
15346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15347   (eval $ac_link) 2>conftest.er1
15348   ac_status=$?
15349   grep -v '^ *+' conftest.er1 >conftest.err
15350   rm -f conftest.er1
15351   cat conftest.err >&5
15352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353   (exit $ac_status); } &&
15354          { ac_try='test -z "$ac_c_werror_flag"
15355                          || test ! -s conftest.err'
15356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357   (eval $ac_try) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; } &&
15361          { ac_try='test -s conftest$ac_exeext'
15362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363   (eval $ac_try) 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); }; }; then
15367   bash_cv_signal_vintage=posix
15368 else
15369   echo "$as_me: failed program was:" >&5
15370 sed 's/^/| /' conftest.$ac_ext >&5
15371
15372
15373     cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 #include <signal.h>
15380 int
15381 main ()
15382 {
15383
15384         int mask = sigmask(SIGINT);
15385         sigsetmask(mask); sigblock(mask); sigpause(mask);
15386
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393   (eval $ac_link) 2>conftest.er1
15394   ac_status=$?
15395   grep -v '^ *+' conftest.er1 >conftest.err
15396   rm -f conftest.er1
15397   cat conftest.err >&5
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); } &&
15400          { ac_try='test -z "$ac_c_werror_flag"
15401                          || test ! -s conftest.err'
15402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403   (eval $ac_try) 2>&5
15404   ac_status=$?
15405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406   (exit $ac_status); }; } &&
15407          { ac_try='test -s conftest$ac_exeext'
15408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15409   (eval $ac_try) 2>&5
15410   ac_status=$?
15411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412   (exit $ac_status); }; }; then
15413   bash_cv_signal_vintage=4.2bsd
15414 else
15415   echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15417
15418
15419       cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425
15426         #include <signal.h>
15427         RETSIGTYPE foo() { }
15428 int
15429 main ()
15430 {
15431
15432                 int mask = sigmask(SIGINT);
15433                 sigset(SIGINT, foo); sigrelse(SIGINT);
15434                 sighold(SIGINT); sigpause(SIGINT);
15435
15436   ;
15437   return 0;
15438 }
15439 _ACEOF
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442   (eval $ac_link) 2>conftest.er1
15443   ac_status=$?
15444   grep -v '^ *+' conftest.er1 >conftest.err
15445   rm -f conftest.er1
15446   cat conftest.err >&5
15447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448   (exit $ac_status); } &&
15449          { ac_try='test -z "$ac_c_werror_flag"
15450                          || test ! -s conftest.err'
15451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452   (eval $ac_try) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }; } &&
15456          { ac_try='test -s conftest$ac_exeext'
15457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458   (eval $ac_try) 2>&5
15459   ac_status=$?
15460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461   (exit $ac_status); }; }; then
15462   bash_cv_signal_vintage=svr3
15463 else
15464   echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 bash_cv_signal_vintage=v7
15468
15469 fi
15470 rm -f conftest.err conftest.$ac_objext \
15471       conftest$ac_exeext conftest.$ac_ext
15472
15473 fi
15474 rm -f conftest.err conftest.$ac_objext \
15475       conftest$ac_exeext conftest.$ac_ext
15476
15477 fi
15478 rm -f conftest.err conftest.$ac_objext \
15479       conftest$ac_exeext conftest.$ac_ext
15480
15481 fi
15482
15483 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15484 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15485 if test "$bash_cv_signal_vintage" = posix; then
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_POSIX_SIGNALS 1
15488 _ACEOF
15489
15490 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15491 cat >>confdefs.h <<\_ACEOF
15492 #define HAVE_BSD_SIGNALS 1
15493 _ACEOF
15494
15495 elif test "$bash_cv_signal_vintage" = svr3; then
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_USG_SIGHOLD 1
15498 _ACEOF
15499
15500 fi
15501
15502 echo "$as_me:$LINENO: checking for mode_t" >&5
15503 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15504 if test "${ac_cv_type_mode_t+set}" = set; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507   cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 $ac_includes_default
15514 int
15515 main ()
15516 {
15517 if ((mode_t *) 0)
15518   return 0;
15519 if (sizeof (mode_t))
15520   return 0;
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527   (eval $ac_compile) 2>conftest.er1
15528   ac_status=$?
15529   grep -v '^ *+' conftest.er1 >conftest.err
15530   rm -f conftest.er1
15531   cat conftest.err >&5
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); } &&
15534          { ac_try='test -z "$ac_c_werror_flag"
15535                          || test ! -s conftest.err'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; } &&
15541          { ac_try='test -s conftest.$ac_objext'
15542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543   (eval $ac_try) 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; }; then
15547   ac_cv_type_mode_t=yes
15548 else
15549   echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552 ac_cv_type_mode_t=no
15553 fi
15554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15557 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15558 if test $ac_cv_type_mode_t = yes; then
15559   :
15560 else
15561
15562 cat >>confdefs.h <<_ACEOF
15563 #define mode_t int
15564 _ACEOF
15565
15566 fi
15567
15568 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15569 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15570 if test "${ac_cv_type_uid_t+set}" = set; then
15571   echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573   cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579 #include <sys/types.h>
15580
15581 _ACEOF
15582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15583   $EGREP "uid_t" >/dev/null 2>&1; then
15584   ac_cv_type_uid_t=yes
15585 else
15586   ac_cv_type_uid_t=no
15587 fi
15588 rm -f conftest*
15589
15590 fi
15591 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15592 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15593 if test $ac_cv_type_uid_t = no; then
15594
15595 cat >>confdefs.h <<\_ACEOF
15596 #define uid_t int
15597 _ACEOF
15598
15599
15600 cat >>confdefs.h <<\_ACEOF
15601 #define gid_t int
15602 _ACEOF
15603
15604 fi
15605
15606 echo "$as_me:$LINENO: checking for size_t" >&5
15607 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15608 if test "${ac_cv_type_size_t+set}" = set; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611   cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617 $ac_includes_default
15618 int
15619 main ()
15620 {
15621 if ((size_t *) 0)
15622   return 0;
15623 if (sizeof (size_t))
15624   return 0;
15625   ;
15626   return 0;
15627 }
15628 _ACEOF
15629 rm -f conftest.$ac_objext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631   (eval $ac_compile) 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } &&
15638          { ac_try='test -z "$ac_c_werror_flag"
15639                          || test ! -s conftest.err'
15640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641   (eval $ac_try) 2>&5
15642   ac_status=$?
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); }; } &&
15645          { ac_try='test -s conftest.$ac_objext'
15646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647   (eval $ac_try) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; }; then
15651   ac_cv_type_size_t=yes
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 ac_cv_type_size_t=no
15657 fi
15658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15661 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15662 if test $ac_cv_type_size_t = yes; then
15663   :
15664 else
15665
15666 cat >>confdefs.h <<_ACEOF
15667 #define size_t unsigned
15668 _ACEOF
15669
15670 fi
15671
15672 echo "$as_me:$LINENO: checking for pid_t" >&5
15673 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15674 if test "${ac_cv_type_pid_t+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 $ac_includes_default
15684 int
15685 main ()
15686 {
15687 if ((pid_t *) 0)
15688   return 0;
15689 if (sizeof (pid_t))
15690   return 0;
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697   (eval $ac_compile) 2>conftest.er1
15698   ac_status=$?
15699   grep -v '^ *+' conftest.er1 >conftest.err
15700   rm -f conftest.er1
15701   cat conftest.err >&5
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); } &&
15704          { ac_try='test -z "$ac_c_werror_flag"
15705                          || test ! -s conftest.err'
15706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707   (eval $ac_try) 2>&5
15708   ac_status=$?
15709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710   (exit $ac_status); }; } &&
15711          { ac_try='test -s conftest.$ac_objext'
15712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713   (eval $ac_try) 2>&5
15714   ac_status=$?
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); }; }; then
15717   ac_cv_type_pid_t=yes
15718 else
15719   echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_cv_type_pid_t=no
15723 fi
15724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15725 fi
15726 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15727 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15728 if test $ac_cv_type_pid_t = yes; then
15729   :
15730 else
15731
15732 cat >>confdefs.h <<_ACEOF
15733 #define pid_t int
15734 _ACEOF
15735
15736 fi
15737
15738 echo "$as_me:$LINENO: checking for off_t" >&5
15739 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15740 if test "${ac_cv_type_off_t+set}" = set; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743   cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749 $ac_includes_default
15750 int
15751 main ()
15752 {
15753 if ((off_t *) 0)
15754   return 0;
15755 if (sizeof (off_t))
15756   return 0;
15757   ;
15758   return 0;
15759 }
15760 _ACEOF
15761 rm -f conftest.$ac_objext
15762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763   (eval $ac_compile) 2>conftest.er1
15764   ac_status=$?
15765   grep -v '^ *+' conftest.er1 >conftest.err
15766   rm -f conftest.er1
15767   cat conftest.err >&5
15768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769   (exit $ac_status); } &&
15770          { ac_try='test -z "$ac_c_werror_flag"
15771                          || test ! -s conftest.err'
15772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773   (eval $ac_try) 2>&5
15774   ac_status=$?
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); }; } &&
15777          { ac_try='test -s conftest.$ac_objext'
15778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779   (eval $ac_try) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; }; then
15783   ac_cv_type_off_t=yes
15784 else
15785   echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15787
15788 ac_cv_type_off_t=no
15789 fi
15790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15791 fi
15792 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15793 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15794 if test $ac_cv_type_off_t = yes; then
15795   :
15796 else
15797
15798 cat >>confdefs.h <<_ACEOF
15799 #define off_t long
15800 _ACEOF
15801
15802 fi
15803
15804 echo "$as_me:$LINENO: checking for ino_t" >&5
15805 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15806 if test "${ac_cv_type_ino_t+set}" = set; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815 $ac_includes_default
15816 int
15817 main ()
15818 {
15819 if ((ino_t *) 0)
15820   return 0;
15821 if (sizeof (ino_t))
15822   return 0;
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 rm -f conftest.$ac_objext
15828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15829   (eval $ac_compile) 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } &&
15836          { ac_try='test -z "$ac_c_werror_flag"
15837                          || test ! -s conftest.err'
15838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839   (eval $ac_try) 2>&5
15840   ac_status=$?
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); }; } &&
15843          { ac_try='test -s conftest.$ac_objext'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_cv_type_ino_t=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_cv_type_ino_t=no
15855 fi
15856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15859 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15860 if test $ac_cv_type_ino_t = yes; then
15861   :
15862 else
15863
15864 cat >>confdefs.h <<_ACEOF
15865 #define ino_t unsigned long
15866 _ACEOF
15867
15868 fi
15869
15870 echo "$as_me:$LINENO: checking for dev_t" >&5
15871 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15872 if test "${ac_cv_type_dev_t+set}" = set; then
15873   echo $ECHO_N "(cached) $ECHO_C" >&6
15874 else
15875   cat >conftest.$ac_ext <<_ACEOF
15876 /* confdefs.h.  */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h.  */
15881 $ac_includes_default
15882 int
15883 main ()
15884 {
15885 if ((dev_t *) 0)
15886   return 0;
15887 if (sizeof (dev_t))
15888   return 0;
15889   ;
15890   return 0;
15891 }
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895   (eval $ac_compile) 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } &&
15902          { ac_try='test -z "$ac_c_werror_flag"
15903                          || test ! -s conftest.err'
15904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905   (eval $ac_try) 2>&5
15906   ac_status=$?
15907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908   (exit $ac_status); }; } &&
15909          { ac_try='test -s conftest.$ac_objext'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; }; then
15915   ac_cv_type_dev_t=yes
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_cv_type_dev_t=no
15921 fi
15922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15923 fi
15924 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15925 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15926 if test $ac_cv_type_dev_t = yes; then
15927   :
15928 else
15929
15930 cat >>confdefs.h <<_ACEOF
15931 #define dev_t unsigned long
15932 _ACEOF
15933
15934 fi
15935
15936 echo "$as_me:$LINENO: checking for daddr_t" >&5
15937 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15938 if test "${ac_cv_type_daddr_t+set}" = set; then
15939   echo $ECHO_N "(cached) $ECHO_C" >&6
15940 else
15941   cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947 $ac_includes_default
15948 int
15949 main ()
15950 {
15951 if ((daddr_t *) 0)
15952   return 0;
15953 if (sizeof (daddr_t))
15954   return 0;
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961   (eval $ac_compile) 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag"
15969                          || test ! -s conftest.err'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   ac_cv_type_daddr_t=yes
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986 ac_cv_type_daddr_t=no
15987 fi
15988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15989 fi
15990 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15991 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15992 if test $ac_cv_type_daddr_t = yes; then
15993   :
15994 else
15995
15996 cat >>confdefs.h <<_ACEOF
15997 #define daddr_t long
15998 _ACEOF
15999
16000 fi
16001
16002 echo "$as_me:$LINENO: checking for major_t" >&5
16003 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
16004 if test "${ac_cv_type_major_t+set}" = set; then
16005   echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007   cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h.  */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h.  */
16013 $ac_includes_default
16014 int
16015 main ()
16016 {
16017 if ((major_t *) 0)
16018   return 0;
16019 if (sizeof (major_t))
16020   return 0;
16021   ;
16022   return 0;
16023 }
16024 _ACEOF
16025 rm -f conftest.$ac_objext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16027   (eval $ac_compile) 2>conftest.er1
16028   ac_status=$?
16029   grep -v '^ *+' conftest.er1 >conftest.err
16030   rm -f conftest.er1
16031   cat conftest.err >&5
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); } &&
16034          { ac_try='test -z "$ac_c_werror_flag"
16035                          || test ! -s conftest.err'
16036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037   (eval $ac_try) 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; } &&
16041          { ac_try='test -s conftest.$ac_objext'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; }; then
16047   ac_cv_type_major_t=yes
16048 else
16049   echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16051
16052 ac_cv_type_major_t=no
16053 fi
16054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16055 fi
16056 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
16057 echo "${ECHO_T}$ac_cv_type_major_t" >&6
16058 if test $ac_cv_type_major_t = yes; then
16059   :
16060 else
16061
16062 cat >>confdefs.h <<_ACEOF
16063 #define major_t int
16064 _ACEOF
16065
16066 fi
16067
16068 echo "$as_me:$LINENO: checking for minor_t" >&5
16069 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
16070 if test "${ac_cv_type_minor_t+set}" = set; then
16071   echo $ECHO_N "(cached) $ECHO_C" >&6
16072 else
16073   cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 $ac_includes_default
16080 int
16081 main ()
16082 {
16083 if ((minor_t *) 0)
16084   return 0;
16085 if (sizeof (minor_t))
16086   return 0;
16087   ;
16088   return 0;
16089 }
16090 _ACEOF
16091 rm -f conftest.$ac_objext
16092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16093   (eval $ac_compile) 2>conftest.er1
16094   ac_status=$?
16095   grep -v '^ *+' conftest.er1 >conftest.err
16096   rm -f conftest.er1
16097   cat conftest.err >&5
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); } &&
16100          { ac_try='test -z "$ac_c_werror_flag"
16101                          || test ! -s conftest.err'
16102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103   (eval $ac_try) 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; } &&
16107          { ac_try='test -s conftest.$ac_objext'
16108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109   (eval $ac_try) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); }; }; then
16113   ac_cv_type_minor_t=yes
16114 else
16115   echo "$as_me: failed program was:" >&5
16116 sed 's/^/| /' conftest.$ac_ext >&5
16117
16118 ac_cv_type_minor_t=no
16119 fi
16120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16121 fi
16122 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
16123 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
16124 if test $ac_cv_type_minor_t = yes; then
16125   :
16126 else
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define minor_t int
16130 _ACEOF
16131
16132 fi
16133
16134 echo "$as_me:$LINENO: checking for ssize_t" >&5
16135 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16136 if test "${ac_cv_type_ssize_t+set}" = set; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h.  */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h.  */
16145 $ac_includes_default
16146 int
16147 main ()
16148 {
16149 if ((ssize_t *) 0)
16150   return 0;
16151 if (sizeof (ssize_t))
16152   return 0;
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159   (eval $ac_compile) 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } &&
16166          { ac_try='test -z "$ac_c_werror_flag"
16167                          || test ! -s conftest.err'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest.$ac_objext'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179   ac_cv_type_ssize_t=yes
16180 else
16181   echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16183
16184 ac_cv_type_ssize_t=no
16185 fi
16186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16187 fi
16188 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16189 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16190 if test $ac_cv_type_ssize_t = yes; then
16191   :
16192 else
16193
16194 cat >>confdefs.h <<_ACEOF
16195 #define ssize_t int
16196 _ACEOF
16197
16198 fi
16199
16200 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16201 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16202 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16203   echo $ECHO_N "(cached) $ECHO_C" >&6
16204 else
16205   cat >conftest.$ac_ext <<_ACEOF
16206 /* confdefs.h.  */
16207 _ACEOF
16208 cat confdefs.h >>conftest.$ac_ext
16209 cat >>conftest.$ac_ext <<_ACEOF
16210 /* end confdefs.h.  */
16211 $ac_includes_default
16212 int
16213 main ()
16214 {
16215 static struct stat ac_aggr;
16216 if (ac_aggr.st_blocks)
16217 return 0;
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 rm -f conftest.$ac_objext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16224   (eval $ac_compile) 2>conftest.er1
16225   ac_status=$?
16226   grep -v '^ *+' conftest.er1 >conftest.err
16227   rm -f conftest.er1
16228   cat conftest.err >&5
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } &&
16231          { ac_try='test -z "$ac_c_werror_flag"
16232                          || test ! -s conftest.err'
16233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234   (eval $ac_try) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; } &&
16238          { ac_try='test -s conftest.$ac_objext'
16239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240   (eval $ac_try) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); }; }; then
16244   ac_cv_member_struct_stat_st_blocks=yes
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255 $ac_includes_default
16256 int
16257 main ()
16258 {
16259 static struct stat ac_aggr;
16260 if (sizeof ac_aggr.st_blocks)
16261 return 0;
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268   (eval $ac_compile) 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } &&
16275          { ac_try='test -z "$ac_c_werror_flag"
16276                          || test ! -s conftest.err'
16277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278   (eval $ac_try) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest.$ac_objext'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_cv_member_struct_stat_st_blocks=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ac_cv_member_struct_stat_st_blocks=no
16294 fi
16295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16296 fi
16297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298 fi
16299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16300 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16301 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16302
16303 cat >>confdefs.h <<_ACEOF
16304 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16305 _ACEOF
16306
16307
16308 cat >>confdefs.h <<\_ACEOF
16309 #define HAVE_ST_BLOCKS 1
16310 _ACEOF
16311
16312 else
16313   case $LIBOBJS in
16314     "fileblocks.$ac_objext"   | \
16315   *" fileblocks.$ac_objext"   | \
16316     "fileblocks.$ac_objext "* | \
16317   *" fileblocks.$ac_objext "* ) ;;
16318   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16319 esac
16320
16321 fi
16322
16323
16324
16325 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16326 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16327 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16328   echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330   cat >conftest.$ac_ext <<_ACEOF
16331 /* confdefs.h.  */
16332 _ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h.  */
16336 $ac_includes_default
16337 int
16338 main ()
16339 {
16340 static struct stat ac_aggr;
16341 if (ac_aggr.st_rdev)
16342 return 0;
16343   ;
16344   return 0;
16345 }
16346 _ACEOF
16347 rm -f conftest.$ac_objext
16348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16349   (eval $ac_compile) 2>conftest.er1
16350   ac_status=$?
16351   grep -v '^ *+' conftest.er1 >conftest.err
16352   rm -f conftest.er1
16353   cat conftest.err >&5
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); } &&
16356          { ac_try='test -z "$ac_c_werror_flag"
16357                          || test ! -s conftest.err'
16358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359   (eval $ac_try) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; } &&
16363          { ac_try='test -s conftest.$ac_objext'
16364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365   (eval $ac_try) 2>&5
16366   ac_status=$?
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); }; }; then
16369   ac_cv_member_struct_stat_st_rdev=yes
16370 else
16371   echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16373
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h.  */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h.  */
16380 $ac_includes_default
16381 int
16382 main ()
16383 {
16384 static struct stat ac_aggr;
16385 if (sizeof ac_aggr.st_rdev)
16386 return 0;
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393   (eval $ac_compile) 2>conftest.er1
16394   ac_status=$?
16395   grep -v '^ *+' conftest.er1 >conftest.err
16396   rm -f conftest.er1
16397   cat conftest.err >&5
16398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); } &&
16400          { ac_try='test -z "$ac_c_werror_flag"
16401                          || test ! -s conftest.err'
16402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403   (eval $ac_try) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; } &&
16407          { ac_try='test -s conftest.$ac_objext'
16408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409   (eval $ac_try) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   ac_cv_member_struct_stat_st_rdev=yes
16414 else
16415   echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 ac_cv_member_struct_stat_st_rdev=no
16419 fi
16420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16421 fi
16422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16423 fi
16424 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16426 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16427
16428 cat >>confdefs.h <<_ACEOF
16429 #define HAVE_STRUCT_STAT_ST_RDEV 1
16430 _ACEOF
16431
16432
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE_ST_RDEV 1
16435 _ACEOF
16436
16437 fi
16438
16439
16440 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16441 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16442 if test "${ac_cv_struct_tm+set}" = set; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451 #include <sys/types.h>
16452 #include <time.h>
16453
16454 int
16455 main ()
16456 {
16457 struct tm *tp; tp->tm_sec;
16458   ;
16459   return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464   (eval $ac_compile) 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } &&
16471          { ac_try='test -z "$ac_c_werror_flag"
16472                          || test ! -s conftest.err'
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); }; } &&
16478          { ac_try='test -s conftest.$ac_objext'
16479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480   (eval $ac_try) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; }; then
16484   ac_cv_struct_tm=time.h
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489 ac_cv_struct_tm=sys/time.h
16490 fi
16491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16492 fi
16493 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16494 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16495 if test $ac_cv_struct_tm = sys/time.h; then
16496
16497 cat >>confdefs.h <<\_ACEOF
16498 #define TM_IN_SYS_TIME 1
16499 _ACEOF
16500
16501 fi
16502
16503 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16504 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16505 if test "${ac_cv_c_const+set}" = set; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h.  */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h.  */
16514
16515 int
16516 main ()
16517 {
16518 /* FIXME: Include the comments suggested by Paul. */
16519 #ifndef __cplusplus
16520   /* Ultrix mips cc rejects this.  */
16521   typedef int charset[2];
16522   const charset x;
16523   /* SunOS 4.1.1 cc rejects this.  */
16524   char const *const *ccp;
16525   char **p;
16526   /* NEC SVR4.0.2 mips cc rejects this.  */
16527   struct point {int x, y;};
16528   static struct point const zero = {0,0};
16529   /* AIX XL C 1.02.0.0 rejects this.
16530      It does not let you subtract one const X* pointer from another in
16531      an arm of an if-expression whose if-part is not a constant
16532      expression */
16533   const char *g = "string";
16534   ccp = &g + (g ? g-g : 0);
16535   /* HPUX 7.0 cc rejects these. */
16536   ++ccp;
16537   p = (char**) ccp;
16538   ccp = (char const *const *) p;
16539   { /* SCO 3.2v4 cc rejects this.  */
16540     char *t;
16541     char const *s = 0 ? (char *) 0 : (char const *) 0;
16542
16543     *t++ = 0;
16544   }
16545   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16546     int x[] = {25, 17};
16547     const int *foo = &x[0];
16548     ++foo;
16549   }
16550   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16551     typedef const int *iptr;
16552     iptr p = 0;
16553     ++p;
16554   }
16555   { /* AIX XL C 1.02.0.0 rejects this saying
16556        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16557     struct s { int j; const int *ap[3]; };
16558     struct s *b; b->j = 5;
16559   }
16560   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16561     const int foo = 10;
16562   }
16563 #endif
16564
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16571   (eval $ac_compile) 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } &&
16578          { ac_try='test -z "$ac_c_werror_flag"
16579                          || test ! -s conftest.err'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; } &&
16585          { ac_try='test -s conftest.$ac_objext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   ac_cv_c_const=yes
16592 else
16593   echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 ac_cv_c_const=no
16597 fi
16598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16599 fi
16600 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16601 echo "${ECHO_T}$ac_cv_c_const" >&6
16602 if test $ac_cv_c_const = no; then
16603
16604 cat >>confdefs.h <<\_ACEOF
16605 #define const
16606 _ACEOF
16607
16608 fi
16609
16610
16611
16612 echo "$as_me:$LINENO: checking for char" >&5
16613 echo $ECHO_N "checking for char... $ECHO_C" >&6
16614 if test "${ac_cv_type_char+set}" = set; then
16615   echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617   cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623 $ac_includes_default
16624 int
16625 main ()
16626 {
16627 if ((char *) 0)
16628   return 0;
16629 if (sizeof (char))
16630   return 0;
16631   ;
16632   return 0;
16633 }
16634 _ACEOF
16635 rm -f conftest.$ac_objext
16636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16637   (eval $ac_compile) 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } &&
16644          { ac_try='test -z "$ac_c_werror_flag"
16645                          || test ! -s conftest.err'
16646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16647   (eval $ac_try) 2>&5
16648   ac_status=$?
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); }; } &&
16651          { ac_try='test -s conftest.$ac_objext'
16652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653   (eval $ac_try) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); }; }; then
16657   ac_cv_type_char=yes
16658 else
16659   echo "$as_me: failed program was:" >&5
16660 sed 's/^/| /' conftest.$ac_ext >&5
16661
16662 ac_cv_type_char=no
16663 fi
16664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16665 fi
16666 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16667 echo "${ECHO_T}$ac_cv_type_char" >&6
16668
16669 echo "$as_me:$LINENO: checking size of char" >&5
16670 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16671 if test "${ac_cv_sizeof_char+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   if test "$ac_cv_type_char" = yes; then
16675   # The cast to unsigned long works around a bug in the HP C Compiler
16676   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16677   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16678   # This bug is HP SR number 8606223364.
16679   if test "$cross_compiling" = yes; then
16680   # Depending upon the size, compute the lo and hi bounds.
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 $ac_includes_default
16688 int
16689 main ()
16690 {
16691 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16692 test_array [0] = 0
16693
16694   ;
16695   return 0;
16696 }
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700   (eval $ac_compile) 2>conftest.er1
16701   ac_status=$?
16702   grep -v '^ *+' conftest.er1 >conftest.err
16703   rm -f conftest.er1
16704   cat conftest.err >&5
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); } &&
16707          { ac_try='test -z "$ac_c_werror_flag"
16708                          || test ! -s conftest.err'
16709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710   (eval $ac_try) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; } &&
16714          { ac_try='test -s conftest.$ac_objext'
16715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716   (eval $ac_try) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }; }; then
16720   ac_lo=0 ac_mid=0
16721   while :; do
16722     cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 $ac_includes_default
16729 int
16730 main ()
16731 {
16732 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16733 test_array [0] = 0
16734
16735   ;
16736   return 0;
16737 }
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741   (eval $ac_compile) 2>conftest.er1
16742   ac_status=$?
16743   grep -v '^ *+' conftest.er1 >conftest.err
16744   rm -f conftest.er1
16745   cat conftest.err >&5
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } &&
16748          { ac_try='test -z "$ac_c_werror_flag"
16749                          || test ! -s conftest.err'
16750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751   (eval $ac_try) 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; } &&
16755          { ac_try='test -s conftest.$ac_objext'
16756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757   (eval $ac_try) 2>&5
16758   ac_status=$?
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); }; }; then
16761   ac_hi=$ac_mid; break
16762 else
16763   echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766 ac_lo=`expr $ac_mid + 1`
16767                     if test $ac_lo -le $ac_mid; then
16768                       ac_lo= ac_hi=
16769                       break
16770                     fi
16771                     ac_mid=`expr 2 '*' $ac_mid + 1`
16772 fi
16773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16774   done
16775 else
16776   echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h.  */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h.  */
16785 $ac_includes_default
16786 int
16787 main ()
16788 {
16789 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16790 test_array [0] = 0
16791
16792   ;
16793   return 0;
16794 }
16795 _ACEOF
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798   (eval $ac_compile) 2>conftest.er1
16799   ac_status=$?
16800   grep -v '^ *+' conftest.er1 >conftest.err
16801   rm -f conftest.er1
16802   cat conftest.err >&5
16803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804   (exit $ac_status); } &&
16805          { ac_try='test -z "$ac_c_werror_flag"
16806                          || test ! -s conftest.err'
16807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808   (eval $ac_try) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); }; } &&
16812          { ac_try='test -s conftest.$ac_objext'
16813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814   (eval $ac_try) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; }; then
16818   ac_hi=-1 ac_mid=-1
16819   while :; do
16820     cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h.  */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h.  */
16826 $ac_includes_default
16827 int
16828 main ()
16829 {
16830 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16831 test_array [0] = 0
16832
16833   ;
16834   return 0;
16835 }
16836 _ACEOF
16837 rm -f conftest.$ac_objext
16838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16839   (eval $ac_compile) 2>conftest.er1
16840   ac_status=$?
16841   grep -v '^ *+' conftest.er1 >conftest.err
16842   rm -f conftest.er1
16843   cat conftest.err >&5
16844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845   (exit $ac_status); } &&
16846          { ac_try='test -z "$ac_c_werror_flag"
16847                          || test ! -s conftest.err'
16848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849   (eval $ac_try) 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); }; } &&
16853          { ac_try='test -s conftest.$ac_objext'
16854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855   (eval $ac_try) 2>&5
16856   ac_status=$?
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); }; }; then
16859   ac_lo=$ac_mid; break
16860 else
16861   echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ac_hi=`expr '(' $ac_mid ')' - 1`
16865                        if test $ac_mid -le $ac_hi; then
16866                          ac_lo= ac_hi=
16867                          break
16868                        fi
16869                        ac_mid=`expr 2 '*' $ac_mid`
16870 fi
16871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16872   done
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 ac_lo= ac_hi=
16878 fi
16879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16880 fi
16881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16882 # Binary search between lo and hi bounds.
16883 while test "x$ac_lo" != "x$ac_hi"; do
16884   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16885   cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891 $ac_includes_default
16892 int
16893 main ()
16894 {
16895 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16896 test_array [0] = 0
16897
16898   ;
16899   return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904   (eval $ac_compile) 2>conftest.er1
16905   ac_status=$?
16906   grep -v '^ *+' conftest.er1 >conftest.err
16907   rm -f conftest.er1
16908   cat conftest.err >&5
16909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910   (exit $ac_status); } &&
16911          { ac_try='test -z "$ac_c_werror_flag"
16912                          || test ! -s conftest.err'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; } &&
16918          { ac_try='test -s conftest.$ac_objext'
16919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920   (eval $ac_try) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   ac_hi=$ac_mid
16925 else
16926   echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 ac_lo=`expr '(' $ac_mid ')' + 1`
16930 fi
16931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16932 done
16933 case $ac_lo in
16934 ?*) ac_cv_sizeof_char=$ac_lo;;
16935 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16936 See \`config.log' for more details." >&5
16937 echo "$as_me: error: cannot compute sizeof (char), 77
16938 See \`config.log' for more details." >&2;}
16939    { (exit 1); exit 1; }; } ;;
16940 esac
16941 else
16942   if test "$cross_compiling" = yes; then
16943   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16944 See \`config.log' for more details." >&5
16945 echo "$as_me: error: cannot run test program while cross compiling
16946 See \`config.log' for more details." >&2;}
16947    { (exit 1); exit 1; }; }
16948 else
16949   cat >conftest.$ac_ext <<_ACEOF
16950 /* confdefs.h.  */
16951 _ACEOF
16952 cat confdefs.h >>conftest.$ac_ext
16953 cat >>conftest.$ac_ext <<_ACEOF
16954 /* end confdefs.h.  */
16955 $ac_includes_default
16956 long longval () { return (long) (sizeof (char)); }
16957 unsigned long ulongval () { return (long) (sizeof (char)); }
16958 #include <stdio.h>
16959 #include <stdlib.h>
16960 int
16961 main ()
16962 {
16963
16964   FILE *f = fopen ("conftest.val", "w");
16965   if (! f)
16966     exit (1);
16967   if (((long) (sizeof (char))) < 0)
16968     {
16969       long i = longval ();
16970       if (i != ((long) (sizeof (char))))
16971         exit (1);
16972       fprintf (f, "%ld\n", i);
16973     }
16974   else
16975     {
16976       unsigned long i = ulongval ();
16977       if (i != ((long) (sizeof (char))))
16978         exit (1);
16979       fprintf (f, "%lu\n", i);
16980     }
16981   exit (ferror (f) || fclose (f) != 0);
16982
16983   ;
16984   return 0;
16985 }
16986 _ACEOF
16987 rm -f conftest$ac_exeext
16988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989   (eval $ac_link) 2>&5
16990   ac_status=$?
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; }; then
16998   ac_cv_sizeof_char=`cat conftest.val`
16999 else
17000   echo "$as_me: program exited with status $ac_status" >&5
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17003
17004 ( exit $ac_status )
17005 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17006 See \`config.log' for more details." >&5
17007 echo "$as_me: error: cannot compute sizeof (char), 77
17008 See \`config.log' for more details." >&2;}
17009    { (exit 1); exit 1; }; }
17010 fi
17011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17012 fi
17013 fi
17014 rm -f conftest.val
17015 else
17016   ac_cv_sizeof_char=0
17017 fi
17018 fi
17019 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17020 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17021 cat >>confdefs.h <<_ACEOF
17022 #define SIZEOF_CHAR $ac_cv_sizeof_char
17023 _ACEOF
17024
17025
17026 echo "$as_me:$LINENO: checking for short int" >&5
17027 echo $ECHO_N "checking for short int... $ECHO_C" >&6
17028 if test "${ac_cv_type_short_int+set}" = set; then
17029   echo $ECHO_N "(cached) $ECHO_C" >&6
17030 else
17031   cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h.  */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h.  */
17037 $ac_includes_default
17038 int
17039 main ()
17040 {
17041 if ((short int *) 0)
17042   return 0;
17043 if (sizeof (short int))
17044   return 0;
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051   (eval $ac_compile) 2>conftest.er1
17052   ac_status=$?
17053   grep -v '^ *+' conftest.er1 >conftest.err
17054   rm -f conftest.er1
17055   cat conftest.err >&5
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); } &&
17058          { ac_try='test -z "$ac_c_werror_flag"
17059                          || test ! -s conftest.err'
17060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061   (eval $ac_try) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest.$ac_objext'
17066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067   (eval $ac_try) 2>&5
17068   ac_status=$?
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); }; }; then
17071   ac_cv_type_short_int=yes
17072 else
17073   echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ac_cv_type_short_int=no
17077 fi
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17079 fi
17080 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
17081 echo "${ECHO_T}$ac_cv_type_short_int" >&6
17082
17083 echo "$as_me:$LINENO: checking size of short int" >&5
17084 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
17085 if test "${ac_cv_sizeof_short_int+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   if test "$ac_cv_type_short_int" = yes; then
17089   # The cast to unsigned long works around a bug in the HP C Compiler
17090   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17091   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17092   # This bug is HP SR number 8606223364.
17093   if test "$cross_compiling" = yes; then
17094   # Depending upon the size, compute the lo and hi bounds.
17095 cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101 $ac_includes_default
17102 int
17103 main ()
17104 {
17105 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
17106 test_array [0] = 0
17107
17108   ;
17109   return 0;
17110 }
17111 _ACEOF
17112 rm -f conftest.$ac_objext
17113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17114   (eval $ac_compile) 2>conftest.er1
17115   ac_status=$?
17116   grep -v '^ *+' conftest.er1 >conftest.err
17117   rm -f conftest.er1
17118   cat conftest.err >&5
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); } &&
17121          { ac_try='test -z "$ac_c_werror_flag"
17122                          || test ! -s conftest.err'
17123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124   (eval $ac_try) 2>&5
17125   ac_status=$?
17126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127   (exit $ac_status); }; } &&
17128          { ac_try='test -s conftest.$ac_objext'
17129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17130   (eval $ac_try) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; }; then
17134   ac_lo=0 ac_mid=0
17135   while :; do
17136     cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 $ac_includes_default
17143 int
17144 main ()
17145 {
17146 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17147 test_array [0] = 0
17148
17149   ;
17150   return 0;
17151 }
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155   (eval $ac_compile) 2>conftest.er1
17156   ac_status=$?
17157   grep -v '^ *+' conftest.er1 >conftest.err
17158   rm -f conftest.er1
17159   cat conftest.err >&5
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); } &&
17162          { ac_try='test -z "$ac_c_werror_flag"
17163                          || test ! -s conftest.err'
17164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165   (eval $ac_try) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; } &&
17169          { ac_try='test -s conftest.$ac_objext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_hi=$ac_mid; break
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 ac_lo=`expr $ac_mid + 1`
17181                     if test $ac_lo -le $ac_mid; then
17182                       ac_lo= ac_hi=
17183                       break
17184                     fi
17185                     ac_mid=`expr 2 '*' $ac_mid + 1`
17186 fi
17187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17188   done
17189 else
17190   echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17192
17193 cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199 $ac_includes_default
17200 int
17201 main ()
17202 {
17203 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17204 test_array [0] = 0
17205
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 rm -f conftest.$ac_objext
17211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17212   (eval $ac_compile) 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } &&
17219          { ac_try='test -z "$ac_c_werror_flag"
17220                          || test ! -s conftest.err'
17221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222   (eval $ac_try) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; } &&
17226          { ac_try='test -s conftest.$ac_objext'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; }; then
17232   ac_hi=-1 ac_mid=-1
17233   while :; do
17234     cat >conftest.$ac_ext <<_ACEOF
17235 /* confdefs.h.  */
17236 _ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h.  */
17240 $ac_includes_default
17241 int
17242 main ()
17243 {
17244 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17245 test_array [0] = 0
17246
17247   ;
17248   return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253   (eval $ac_compile) 2>conftest.er1
17254   ac_status=$?
17255   grep -v '^ *+' conftest.er1 >conftest.err
17256   rm -f conftest.er1
17257   cat conftest.err >&5
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); } &&
17260          { ac_try='test -z "$ac_c_werror_flag"
17261                          || test ! -s conftest.err'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; } &&
17267          { ac_try='test -s conftest.$ac_objext'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; }; then
17273   ac_lo=$ac_mid; break
17274 else
17275   echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278 ac_hi=`expr '(' $ac_mid ')' - 1`
17279                        if test $ac_mid -le $ac_hi; then
17280                          ac_lo= ac_hi=
17281                          break
17282                        fi
17283                        ac_mid=`expr 2 '*' $ac_mid`
17284 fi
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17286   done
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291 ac_lo= ac_hi=
17292 fi
17293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17294 fi
17295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17296 # Binary search between lo and hi bounds.
17297 while test "x$ac_lo" != "x$ac_hi"; do
17298   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17299   cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h.  */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h.  */
17305 $ac_includes_default
17306 int
17307 main ()
17308 {
17309 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17310 test_array [0] = 0
17311
17312   ;
17313   return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17318   (eval $ac_compile) 2>conftest.er1
17319   ac_status=$?
17320   grep -v '^ *+' conftest.er1 >conftest.err
17321   rm -f conftest.er1
17322   cat conftest.err >&5
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); } &&
17325          { ac_try='test -z "$ac_c_werror_flag"
17326                          || test ! -s conftest.err'
17327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328   (eval $ac_try) 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); }; } &&
17332          { ac_try='test -s conftest.$ac_objext'
17333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334   (eval $ac_try) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); }; }; then
17338   ac_hi=$ac_mid
17339 else
17340   echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_lo=`expr '(' $ac_mid ')' + 1`
17344 fi
17345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17346 done
17347 case $ac_lo in
17348 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17349 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17350 See \`config.log' for more details." >&5
17351 echo "$as_me: error: cannot compute sizeof (short int), 77
17352 See \`config.log' for more details." >&2;}
17353    { (exit 1); exit 1; }; } ;;
17354 esac
17355 else
17356   if test "$cross_compiling" = yes; then
17357   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17358 See \`config.log' for more details." >&5
17359 echo "$as_me: error: cannot run test program while cross compiling
17360 See \`config.log' for more details." >&2;}
17361    { (exit 1); exit 1; }; }
17362 else
17363   cat >conftest.$ac_ext <<_ACEOF
17364 /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369 $ac_includes_default
17370 long longval () { return (long) (sizeof (short int)); }
17371 unsigned long ulongval () { return (long) (sizeof (short int)); }
17372 #include <stdio.h>
17373 #include <stdlib.h>
17374 int
17375 main ()
17376 {
17377
17378   FILE *f = fopen ("conftest.val", "w");
17379   if (! f)
17380     exit (1);
17381   if (((long) (sizeof (short int))) < 0)
17382     {
17383       long i = longval ();
17384       if (i != ((long) (sizeof (short int))))
17385         exit (1);
17386       fprintf (f, "%ld\n", i);
17387     }
17388   else
17389     {
17390       unsigned long i = ulongval ();
17391       if (i != ((long) (sizeof (short int))))
17392         exit (1);
17393       fprintf (f, "%lu\n", i);
17394     }
17395   exit (ferror (f) || fclose (f) != 0);
17396
17397   ;
17398   return 0;
17399 }
17400 _ACEOF
17401 rm -f conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403   (eval $ac_link) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408   (eval $ac_try) 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; }; then
17412   ac_cv_sizeof_short_int=`cat conftest.val`
17413 else
17414   echo "$as_me: program exited with status $ac_status" >&5
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 ( exit $ac_status )
17419 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17420 See \`config.log' for more details." >&5
17421 echo "$as_me: error: cannot compute sizeof (short int), 77
17422 See \`config.log' for more details." >&2;}
17423    { (exit 1); exit 1; }; }
17424 fi
17425 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17426 fi
17427 fi
17428 rm -f conftest.val
17429 else
17430   ac_cv_sizeof_short_int=0
17431 fi
17432 fi
17433 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17434 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17435 cat >>confdefs.h <<_ACEOF
17436 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17437 _ACEOF
17438
17439
17440 echo "$as_me:$LINENO: checking for int" >&5
17441 echo $ECHO_N "checking for int... $ECHO_C" >&6
17442 if test "${ac_cv_type_int+set}" = set; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451 $ac_includes_default
17452 int
17453 main ()
17454 {
17455 if ((int *) 0)
17456   return 0;
17457 if (sizeof (int))
17458   return 0;
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext
17464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17465   (eval $ac_compile) 2>conftest.er1
17466   ac_status=$?
17467   grep -v '^ *+' conftest.er1 >conftest.err
17468   rm -f conftest.er1
17469   cat conftest.err >&5
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); } &&
17472          { ac_try='test -z "$ac_c_werror_flag"
17473                          || test ! -s conftest.err'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; } &&
17479          { ac_try='test -s conftest.$ac_objext'
17480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481   (eval $ac_try) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); }; }; then
17485   ac_cv_type_int=yes
17486 else
17487   echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17489
17490 ac_cv_type_int=no
17491 fi
17492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17493 fi
17494 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17495 echo "${ECHO_T}$ac_cv_type_int" >&6
17496
17497 echo "$as_me:$LINENO: checking size of int" >&5
17498 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17499 if test "${ac_cv_sizeof_int+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   if test "$ac_cv_type_int" = yes; then
17503   # The cast to unsigned long works around a bug in the HP C Compiler
17504   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17505   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17506   # This bug is HP SR number 8606223364.
17507   if test "$cross_compiling" = yes; then
17508   # Depending upon the size, compute the lo and hi bounds.
17509 cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 $ac_includes_default
17516 int
17517 main ()
17518 {
17519 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17520 test_array [0] = 0
17521
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528   (eval $ac_compile) 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -z "$ac_c_werror_flag"
17536                          || test ! -s conftest.err'
17537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538   (eval $ac_try) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest.$ac_objext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_lo=0 ac_mid=0
17549   while :; do
17550     cat >conftest.$ac_ext <<_ACEOF
17551 /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556 $ac_includes_default
17557 int
17558 main ()
17559 {
17560 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17561 test_array [0] = 0
17562
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569   (eval $ac_compile) 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } &&
17576          { ac_try='test -z "$ac_c_werror_flag"
17577                          || test ! -s conftest.err'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest.$ac_objext'
17584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585   (eval $ac_try) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   ac_hi=$ac_mid; break
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ac_lo=`expr $ac_mid + 1`
17595                     if test $ac_lo -le $ac_mid; then
17596                       ac_lo= ac_hi=
17597                       break
17598                     fi
17599                     ac_mid=`expr 2 '*' $ac_mid + 1`
17600 fi
17601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17602   done
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607 cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 $ac_includes_default
17614 int
17615 main ()
17616 {
17617 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17618 test_array [0] = 0
17619
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626   (eval $ac_compile) 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } &&
17633          { ac_try='test -z "$ac_c_werror_flag"
17634                          || test ! -s conftest.err'
17635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636   (eval $ac_try) 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); }; } &&
17640          { ac_try='test -s conftest.$ac_objext'
17641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642   (eval $ac_try) 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; }; then
17646   ac_hi=-1 ac_mid=-1
17647   while :; do
17648     cat >conftest.$ac_ext <<_ACEOF
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654 $ac_includes_default
17655 int
17656 main ()
17657 {
17658 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17659 test_array [0] = 0
17660
17661   ;
17662   return 0;
17663 }
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17667   (eval $ac_compile) 2>conftest.er1
17668   ac_status=$?
17669   grep -v '^ *+' conftest.er1 >conftest.err
17670   rm -f conftest.er1
17671   cat conftest.err >&5
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); } &&
17674          { ac_try='test -z "$ac_c_werror_flag"
17675                          || test ! -s conftest.err'
17676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17677   (eval $ac_try) 2>&5
17678   ac_status=$?
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); }; } &&
17681          { ac_try='test -s conftest.$ac_objext'
17682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683   (eval $ac_try) 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }; }; then
17687   ac_lo=$ac_mid; break
17688 else
17689   echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692 ac_hi=`expr '(' $ac_mid ')' - 1`
17693                        if test $ac_mid -le $ac_hi; then
17694                          ac_lo= ac_hi=
17695                          break
17696                        fi
17697                        ac_mid=`expr 2 '*' $ac_mid`
17698 fi
17699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17700   done
17701 else
17702   echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 ac_lo= ac_hi=
17706 fi
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17708 fi
17709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17710 # Binary search between lo and hi bounds.
17711 while test "x$ac_lo" != "x$ac_hi"; do
17712   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17713   cat >conftest.$ac_ext <<_ACEOF
17714 /* confdefs.h.  */
17715 _ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h.  */
17719 $ac_includes_default
17720 int
17721 main ()
17722 {
17723 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17724 test_array [0] = 0
17725
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17732   (eval $ac_compile) 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_c_werror_flag"
17740                          || test ! -s conftest.err'
17741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742   (eval $ac_try) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; } &&
17746          { ac_try='test -s conftest.$ac_objext'
17747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748   (eval $ac_try) 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   ac_hi=$ac_mid
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_lo=`expr '(' $ac_mid ')' + 1`
17758 fi
17759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17760 done
17761 case $ac_lo in
17762 ?*) ac_cv_sizeof_int=$ac_lo;;
17763 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17764 See \`config.log' for more details." >&5
17765 echo "$as_me: error: cannot compute sizeof (int), 77
17766 See \`config.log' for more details." >&2;}
17767    { (exit 1); exit 1; }; } ;;
17768 esac
17769 else
17770   if test "$cross_compiling" = yes; then
17771   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17772 See \`config.log' for more details." >&5
17773 echo "$as_me: error: cannot run test program while cross compiling
17774 See \`config.log' for more details." >&2;}
17775    { (exit 1); exit 1; }; }
17776 else
17777   cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 $ac_includes_default
17784 long longval () { return (long) (sizeof (int)); }
17785 unsigned long ulongval () { return (long) (sizeof (int)); }
17786 #include <stdio.h>
17787 #include <stdlib.h>
17788 int
17789 main ()
17790 {
17791
17792   FILE *f = fopen ("conftest.val", "w");
17793   if (! f)
17794     exit (1);
17795   if (((long) (sizeof (int))) < 0)
17796     {
17797       long i = longval ();
17798       if (i != ((long) (sizeof (int))))
17799         exit (1);
17800       fprintf (f, "%ld\n", i);
17801     }
17802   else
17803     {
17804       unsigned long i = ulongval ();
17805       if (i != ((long) (sizeof (int))))
17806         exit (1);
17807       fprintf (f, "%lu\n", i);
17808     }
17809   exit (ferror (f) || fclose (f) != 0);
17810
17811   ;
17812   return 0;
17813 }
17814 _ACEOF
17815 rm -f conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817   (eval $ac_link) 2>&5
17818   ac_status=$?
17819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822   (eval $ac_try) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; }; then
17826   ac_cv_sizeof_int=`cat conftest.val`
17827 else
17828   echo "$as_me: program exited with status $ac_status" >&5
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 ( exit $ac_status )
17833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17834 See \`config.log' for more details." >&5
17835 echo "$as_me: error: cannot compute sizeof (int), 77
17836 See \`config.log' for more details." >&2;}
17837    { (exit 1); exit 1; }; }
17838 fi
17839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17840 fi
17841 fi
17842 rm -f conftest.val
17843 else
17844   ac_cv_sizeof_int=0
17845 fi
17846 fi
17847 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17848 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17849 cat >>confdefs.h <<_ACEOF
17850 #define SIZEOF_INT $ac_cv_sizeof_int
17851 _ACEOF
17852
17853
17854 echo "$as_me:$LINENO: checking for long int" >&5
17855 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17856 if test "${ac_cv_type_long_int+set}" = set; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859   cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h.  */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h.  */
17865 $ac_includes_default
17866 int
17867 main ()
17868 {
17869 if ((long int *) 0)
17870   return 0;
17871 if (sizeof (long int))
17872   return 0;
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 rm -f conftest.$ac_objext
17878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879   (eval $ac_compile) 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } &&
17886          { ac_try='test -z "$ac_c_werror_flag"
17887                          || test ! -s conftest.err'
17888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889   (eval $ac_try) 2>&5
17890   ac_status=$?
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); }; } &&
17893          { ac_try='test -s conftest.$ac_objext'
17894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895   (eval $ac_try) 2>&5
17896   ac_status=$?
17897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898   (exit $ac_status); }; }; then
17899   ac_cv_type_long_int=yes
17900 else
17901   echo "$as_me: failed program was:" >&5
17902 sed 's/^/| /' conftest.$ac_ext >&5
17903
17904 ac_cv_type_long_int=no
17905 fi
17906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17907 fi
17908 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17909 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17910
17911 echo "$as_me:$LINENO: checking size of long int" >&5
17912 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17913 if test "${ac_cv_sizeof_long_int+set}" = set; then
17914   echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916   if test "$ac_cv_type_long_int" = yes; then
17917   # The cast to unsigned long works around a bug in the HP C Compiler
17918   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17919   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17920   # This bug is HP SR number 8606223364.
17921   if test "$cross_compiling" = yes; then
17922   # Depending upon the size, compute the lo and hi bounds.
17923 cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929 $ac_includes_default
17930 int
17931 main ()
17932 {
17933 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17934 test_array [0] = 0
17935
17936   ;
17937   return 0;
17938 }
17939 _ACEOF
17940 rm -f conftest.$ac_objext
17941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17942   (eval $ac_compile) 2>conftest.er1
17943   ac_status=$?
17944   grep -v '^ *+' conftest.er1 >conftest.err
17945   rm -f conftest.er1
17946   cat conftest.err >&5
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); } &&
17949          { ac_try='test -z "$ac_c_werror_flag"
17950                          || test ! -s conftest.err'
17951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17952   (eval $ac_try) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; } &&
17956          { ac_try='test -s conftest.$ac_objext'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   ac_lo=0 ac_mid=0
17963   while :; do
17964     cat >conftest.$ac_ext <<_ACEOF
17965 /* confdefs.h.  */
17966 _ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h.  */
17970 $ac_includes_default
17971 int
17972 main ()
17973 {
17974 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17975 test_array [0] = 0
17976
17977   ;
17978   return 0;
17979 }
17980 _ACEOF
17981 rm -f conftest.$ac_objext
17982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17983   (eval $ac_compile) 2>conftest.er1
17984   ac_status=$?
17985   grep -v '^ *+' conftest.er1 >conftest.err
17986   rm -f conftest.er1
17987   cat conftest.err >&5
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); } &&
17990          { ac_try='test -z "$ac_c_werror_flag"
17991                          || test ! -s conftest.err'
17992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993   (eval $ac_try) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }; } &&
17997          { ac_try='test -s conftest.$ac_objext'
17998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999   (eval $ac_try) 2>&5
18000   ac_status=$?
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); }; }; then
18003   ac_hi=$ac_mid; break
18004 else
18005   echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18007
18008 ac_lo=`expr $ac_mid + 1`
18009                     if test $ac_lo -le $ac_mid; then
18010                       ac_lo= ac_hi=
18011                       break
18012                     fi
18013                     ac_mid=`expr 2 '*' $ac_mid + 1`
18014 fi
18015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18016   done
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 $ac_includes_default
18028 int
18029 main ()
18030 {
18031 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
18032 test_array [0] = 0
18033
18034   ;
18035   return 0;
18036 }
18037 _ACEOF
18038 rm -f conftest.$ac_objext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18040   (eval $ac_compile) 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } &&
18047          { ac_try='test -z "$ac_c_werror_flag"
18048                          || test ! -s conftest.err'
18049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050   (eval $ac_try) 2>&5
18051   ac_status=$?
18052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053   (exit $ac_status); }; } &&
18054          { ac_try='test -s conftest.$ac_objext'
18055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056   (eval $ac_try) 2>&5
18057   ac_status=$?
18058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059   (exit $ac_status); }; }; then
18060   ac_hi=-1 ac_mid=-1
18061   while :; do
18062     cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068 $ac_includes_default
18069 int
18070 main ()
18071 {
18072 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
18073 test_array [0] = 0
18074
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081   (eval $ac_compile) 2>conftest.er1
18082   ac_status=$?
18083   grep -v '^ *+' conftest.er1 >conftest.err
18084   rm -f conftest.er1
18085   cat conftest.err >&5
18086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } &&
18088          { ac_try='test -z "$ac_c_werror_flag"
18089                          || test ! -s conftest.err'
18090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091   (eval $ac_try) 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; } &&
18095          { ac_try='test -s conftest.$ac_objext'
18096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097   (eval $ac_try) 2>&5
18098   ac_status=$?
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); }; }; then
18101   ac_lo=$ac_mid; break
18102 else
18103   echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18105
18106 ac_hi=`expr '(' $ac_mid ')' - 1`
18107                        if test $ac_mid -le $ac_hi; then
18108                          ac_lo= ac_hi=
18109                          break
18110                        fi
18111                        ac_mid=`expr 2 '*' $ac_mid`
18112 fi
18113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18114   done
18115 else
18116   echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 ac_lo= ac_hi=
18120 fi
18121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18122 fi
18123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18124 # Binary search between lo and hi bounds.
18125 while test "x$ac_lo" != "x$ac_hi"; do
18126   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18127   cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h.  */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h.  */
18133 $ac_includes_default
18134 int
18135 main ()
18136 {
18137 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
18138 test_array [0] = 0
18139
18140   ;
18141   return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146   (eval $ac_compile) 2>conftest.er1
18147   ac_status=$?
18148   grep -v '^ *+' conftest.er1 >conftest.err
18149   rm -f conftest.er1
18150   cat conftest.err >&5
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -z "$ac_c_werror_flag"
18154                          || test ! -s conftest.err'
18155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156   (eval $ac_try) 2>&5
18157   ac_status=$?
18158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); }; } &&
18160          { ac_try='test -s conftest.$ac_objext'
18161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162   (eval $ac_try) 2>&5
18163   ac_status=$?
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); }; }; then
18166   ac_hi=$ac_mid
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 ac_lo=`expr '(' $ac_mid ')' + 1`
18172 fi
18173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18174 done
18175 case $ac_lo in
18176 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18177 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18178 See \`config.log' for more details." >&5
18179 echo "$as_me: error: cannot compute sizeof (long int), 77
18180 See \`config.log' for more details." >&2;}
18181    { (exit 1); exit 1; }; } ;;
18182 esac
18183 else
18184   if test "$cross_compiling" = yes; then
18185   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18186 See \`config.log' for more details." >&5
18187 echo "$as_me: error: cannot run test program while cross compiling
18188 See \`config.log' for more details." >&2;}
18189    { (exit 1); exit 1; }; }
18190 else
18191   cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h.  */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h.  */
18197 $ac_includes_default
18198 long longval () { return (long) (sizeof (long int)); }
18199 unsigned long ulongval () { return (long) (sizeof (long int)); }
18200 #include <stdio.h>
18201 #include <stdlib.h>
18202 int
18203 main ()
18204 {
18205
18206   FILE *f = fopen ("conftest.val", "w");
18207   if (! f)
18208     exit (1);
18209   if (((long) (sizeof (long int))) < 0)
18210     {
18211       long i = longval ();
18212       if (i != ((long) (sizeof (long int))))
18213         exit (1);
18214       fprintf (f, "%ld\n", i);
18215     }
18216   else
18217     {
18218       unsigned long i = ulongval ();
18219       if (i != ((long) (sizeof (long int))))
18220         exit (1);
18221       fprintf (f, "%lu\n", i);
18222     }
18223   exit (ferror (f) || fclose (f) != 0);
18224
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 rm -f conftest$ac_exeext
18230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18231   (eval $ac_link) 2>&5
18232   ac_status=$?
18233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236   (eval $ac_try) 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); }; }; then
18240   ac_cv_sizeof_long_int=`cat conftest.val`
18241 else
18242   echo "$as_me: program exited with status $ac_status" >&5
18243 echo "$as_me: failed program was:" >&5
18244 sed 's/^/| /' conftest.$ac_ext >&5
18245
18246 ( exit $ac_status )
18247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18248 See \`config.log' for more details." >&5
18249 echo "$as_me: error: cannot compute sizeof (long int), 77
18250 See \`config.log' for more details." >&2;}
18251    { (exit 1); exit 1; }; }
18252 fi
18253 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18254 fi
18255 fi
18256 rm -f conftest.val
18257 else
18258   ac_cv_sizeof_long_int=0
18259 fi
18260 fi
18261 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18262 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18263 cat >>confdefs.h <<_ACEOF
18264 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18265 _ACEOF
18266
18267
18268 echo "$as_me:$LINENO: checking for long long int" >&5
18269 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18270 if test "${ac_cv_type_long_long_int+set}" = set; then
18271   echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273   cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h.  */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h.  */
18279 $ac_includes_default
18280 int
18281 main ()
18282 {
18283 if ((long long int *) 0)
18284   return 0;
18285 if (sizeof (long long int))
18286   return 0;
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293   (eval $ac_compile) 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -z "$ac_c_werror_flag"
18301                          || test ! -s conftest.err'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; } &&
18307          { ac_try='test -s conftest.$ac_objext'
18308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309   (eval $ac_try) 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); }; }; then
18313   ac_cv_type_long_long_int=yes
18314 else
18315   echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18317
18318 ac_cv_type_long_long_int=no
18319 fi
18320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18321 fi
18322 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18323 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18324
18325 echo "$as_me:$LINENO: checking size of long long int" >&5
18326 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18327 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   if test "$ac_cv_type_long_long_int" = yes; then
18331   # The cast to unsigned long works around a bug in the HP C Compiler
18332   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18333   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18334   # This bug is HP SR number 8606223364.
18335   if test "$cross_compiling" = yes; then
18336   # Depending upon the size, compute the lo and hi bounds.
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 $ac_includes_default
18344 int
18345 main ()
18346 {
18347 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18348 test_array [0] = 0
18349
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18356   (eval $ac_compile) 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } &&
18363          { ac_try='test -z "$ac_c_werror_flag"
18364                          || test ! -s conftest.err'
18365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366   (eval $ac_try) 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; } &&
18370          { ac_try='test -s conftest.$ac_objext'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_lo=0 ac_mid=0
18377   while :; do
18378     cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384 $ac_includes_default
18385 int
18386 main ()
18387 {
18388 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18389 test_array [0] = 0
18390
18391   ;
18392   return 0;
18393 }
18394 _ACEOF
18395 rm -f conftest.$ac_objext
18396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18397   (eval $ac_compile) 2>conftest.er1
18398   ac_status=$?
18399   grep -v '^ *+' conftest.er1 >conftest.err
18400   rm -f conftest.er1
18401   cat conftest.err >&5
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); } &&
18404          { ac_try='test -z "$ac_c_werror_flag"
18405                          || test ! -s conftest.err'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; } &&
18411          { ac_try='test -s conftest.$ac_objext'
18412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18413   (eval $ac_try) 2>&5
18414   ac_status=$?
18415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416   (exit $ac_status); }; }; then
18417   ac_hi=$ac_mid; break
18418 else
18419   echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422 ac_lo=`expr $ac_mid + 1`
18423                     if test $ac_lo -le $ac_mid; then
18424                       ac_lo= ac_hi=
18425                       break
18426                     fi
18427                     ac_mid=`expr 2 '*' $ac_mid + 1`
18428 fi
18429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18430   done
18431 else
18432   echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 $ac_includes_default
18442 int
18443 main ()
18444 {
18445 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18446 test_array [0] = 0
18447
18448   ;
18449   return 0;
18450 }
18451 _ACEOF
18452 rm -f conftest.$ac_objext
18453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18454   (eval $ac_compile) 2>conftest.er1
18455   ac_status=$?
18456   grep -v '^ *+' conftest.er1 >conftest.err
18457   rm -f conftest.er1
18458   cat conftest.err >&5
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); } &&
18461          { ac_try='test -z "$ac_c_werror_flag"
18462                          || test ! -s conftest.err'
18463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464   (eval $ac_try) 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); }; } &&
18468          { ac_try='test -s conftest.$ac_objext'
18469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18470   (eval $ac_try) 2>&5
18471   ac_status=$?
18472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473   (exit $ac_status); }; }; then
18474   ac_hi=-1 ac_mid=-1
18475   while :; do
18476     cat >conftest.$ac_ext <<_ACEOF
18477 /* confdefs.h.  */
18478 _ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h.  */
18482 $ac_includes_default
18483 int
18484 main ()
18485 {
18486 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18487 test_array [0] = 0
18488
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495   (eval $ac_compile) 2>conftest.er1
18496   ac_status=$?
18497   grep -v '^ *+' conftest.er1 >conftest.err
18498   rm -f conftest.er1
18499   cat conftest.err >&5
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); } &&
18502          { ac_try='test -z "$ac_c_werror_flag"
18503                          || test ! -s conftest.err'
18504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505   (eval $ac_try) 2>&5
18506   ac_status=$?
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); }; } &&
18509          { ac_try='test -s conftest.$ac_objext'
18510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511   (eval $ac_try) 2>&5
18512   ac_status=$?
18513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514   (exit $ac_status); }; }; then
18515   ac_lo=$ac_mid; break
18516 else
18517   echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 ac_hi=`expr '(' $ac_mid ')' - 1`
18521                        if test $ac_mid -le $ac_hi; then
18522                          ac_lo= ac_hi=
18523                          break
18524                        fi
18525                        ac_mid=`expr 2 '*' $ac_mid`
18526 fi
18527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18528   done
18529 else
18530   echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18532
18533 ac_lo= ac_hi=
18534 fi
18535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18536 fi
18537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18538 # Binary search between lo and hi bounds.
18539 while test "x$ac_lo" != "x$ac_hi"; do
18540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18541   cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h.  */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h.  */
18547 $ac_includes_default
18548 int
18549 main ()
18550 {
18551 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18552 test_array [0] = 0
18553
18554   ;
18555   return 0;
18556 }
18557 _ACEOF
18558 rm -f conftest.$ac_objext
18559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18560   (eval $ac_compile) 2>conftest.er1
18561   ac_status=$?
18562   grep -v '^ *+' conftest.er1 >conftest.err
18563   rm -f conftest.er1
18564   cat conftest.err >&5
18565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566   (exit $ac_status); } &&
18567          { ac_try='test -z "$ac_c_werror_flag"
18568                          || test ! -s conftest.err'
18569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570   (eval $ac_try) 2>&5
18571   ac_status=$?
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); }; } &&
18574          { ac_try='test -s conftest.$ac_objext'
18575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18576   (eval $ac_try) 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); }; }; then
18580   ac_hi=$ac_mid
18581 else
18582   echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585 ac_lo=`expr '(' $ac_mid ')' + 1`
18586 fi
18587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18588 done
18589 case $ac_lo in
18590 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18591 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18592 See \`config.log' for more details." >&5
18593 echo "$as_me: error: cannot compute sizeof (long long int), 77
18594 See \`config.log' for more details." >&2;}
18595    { (exit 1); exit 1; }; } ;;
18596 esac
18597 else
18598   if test "$cross_compiling" = yes; then
18599   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18600 See \`config.log' for more details." >&5
18601 echo "$as_me: error: cannot run test program while cross compiling
18602 See \`config.log' for more details." >&2;}
18603    { (exit 1); exit 1; }; }
18604 else
18605   cat >conftest.$ac_ext <<_ACEOF
18606 /* confdefs.h.  */
18607 _ACEOF
18608 cat confdefs.h >>conftest.$ac_ext
18609 cat >>conftest.$ac_ext <<_ACEOF
18610 /* end confdefs.h.  */
18611 $ac_includes_default
18612 long longval () { return (long) (sizeof (long long int)); }
18613 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18614 #include <stdio.h>
18615 #include <stdlib.h>
18616 int
18617 main ()
18618 {
18619
18620   FILE *f = fopen ("conftest.val", "w");
18621   if (! f)
18622     exit (1);
18623   if (((long) (sizeof (long long int))) < 0)
18624     {
18625       long i = longval ();
18626       if (i != ((long) (sizeof (long long int))))
18627         exit (1);
18628       fprintf (f, "%ld\n", i);
18629     }
18630   else
18631     {
18632       unsigned long i = ulongval ();
18633       if (i != ((long) (sizeof (long long int))))
18634         exit (1);
18635       fprintf (f, "%lu\n", i);
18636     }
18637   exit (ferror (f) || fclose (f) != 0);
18638
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645   (eval $ac_link) 2>&5
18646   ac_status=$?
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650   (eval $ac_try) 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; }; then
18654   ac_cv_sizeof_long_long_int=`cat conftest.val`
18655 else
18656   echo "$as_me: program exited with status $ac_status" >&5
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18659
18660 ( exit $ac_status )
18661 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18662 See \`config.log' for more details." >&5
18663 echo "$as_me: error: cannot compute sizeof (long long int), 77
18664 See \`config.log' for more details." >&2;}
18665    { (exit 1); exit 1; }; }
18666 fi
18667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18668 fi
18669 fi
18670 rm -f conftest.val
18671 else
18672   ac_cv_sizeof_long_long_int=0
18673 fi
18674 fi
18675 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18676 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18677 cat >>confdefs.h <<_ACEOF
18678 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18679 _ACEOF
18680
18681
18682 echo "$as_me:$LINENO: checking for int *" >&5
18683 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18684 if test "${ac_cv_type_int_p+set}" = set; then
18685   echo $ECHO_N "(cached) $ECHO_C" >&6
18686 else
18687   cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693 $ac_includes_default
18694 int
18695 main ()
18696 {
18697 if ((int * *) 0)
18698   return 0;
18699 if (sizeof (int *))
18700   return 0;
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18707   (eval $ac_compile) 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } &&
18714          { ac_try='test -z "$ac_c_werror_flag"
18715                          || test ! -s conftest.err'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; } &&
18721          { ac_try='test -s conftest.$ac_objext'
18722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723   (eval $ac_try) 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; }; then
18727   ac_cv_type_int_p=yes
18728 else
18729   echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ac_cv_type_int_p=no
18733 fi
18734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18735 fi
18736 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18737 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18738
18739 echo "$as_me:$LINENO: checking size of int *" >&5
18740 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18741 if test "${ac_cv_sizeof_int_p+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   if test "$ac_cv_type_int_p" = yes; then
18745   # The cast to unsigned long works around a bug in the HP C Compiler
18746   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18747   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18748   # This bug is HP SR number 8606223364.
18749   if test "$cross_compiling" = yes; then
18750   # Depending upon the size, compute the lo and hi bounds.
18751 cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h.  */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h.  */
18757 $ac_includes_default
18758 int
18759 main ()
18760 {
18761 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18762 test_array [0] = 0
18763
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext
18769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18770   (eval $ac_compile) 2>conftest.er1
18771   ac_status=$?
18772   grep -v '^ *+' conftest.er1 >conftest.err
18773   rm -f conftest.er1
18774   cat conftest.err >&5
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } &&
18777          { ac_try='test -z "$ac_c_werror_flag"
18778                          || test ! -s conftest.err'
18779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780   (eval $ac_try) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; } &&
18784          { ac_try='test -s conftest.$ac_objext'
18785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18786   (eval $ac_try) 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; }; then
18790   ac_lo=0 ac_mid=0
18791   while :; do
18792     cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798 $ac_includes_default
18799 int
18800 main ()
18801 {
18802 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18803 test_array [0] = 0
18804
18805   ;
18806   return 0;
18807 }
18808 _ACEOF
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811   (eval $ac_compile) 2>conftest.er1
18812   ac_status=$?
18813   grep -v '^ *+' conftest.er1 >conftest.err
18814   rm -f conftest.er1
18815   cat conftest.err >&5
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); } &&
18818          { ac_try='test -z "$ac_c_werror_flag"
18819                          || test ! -s conftest.err'
18820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821   (eval $ac_try) 2>&5
18822   ac_status=$?
18823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824   (exit $ac_status); }; } &&
18825          { ac_try='test -s conftest.$ac_objext'
18826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827   (eval $ac_try) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; }; then
18831   ac_hi=$ac_mid; break
18832 else
18833   echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18835
18836 ac_lo=`expr $ac_mid + 1`
18837                     if test $ac_lo -le $ac_mid; then
18838                       ac_lo= ac_hi=
18839                       break
18840                     fi
18841                     ac_mid=`expr 2 '*' $ac_mid + 1`
18842 fi
18843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18844   done
18845 else
18846   echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18848
18849 cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855 $ac_includes_default
18856 int
18857 main ()
18858 {
18859 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18860 test_array [0] = 0
18861
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18868   (eval $ac_compile) 2>conftest.er1
18869   ac_status=$?
18870   grep -v '^ *+' conftest.er1 >conftest.err
18871   rm -f conftest.er1
18872   cat conftest.err >&5
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); } &&
18875          { ac_try='test -z "$ac_c_werror_flag"
18876                          || test ! -s conftest.err'
18877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878   (eval $ac_try) 2>&5
18879   ac_status=$?
18880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881   (exit $ac_status); }; } &&
18882          { ac_try='test -s conftest.$ac_objext'
18883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884   (eval $ac_try) 2>&5
18885   ac_status=$?
18886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887   (exit $ac_status); }; }; then
18888   ac_hi=-1 ac_mid=-1
18889   while :; do
18890     cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h.  */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h.  */
18896 $ac_includes_default
18897 int
18898 main ()
18899 {
18900 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18901 test_array [0] = 0
18902
18903   ;
18904   return 0;
18905 }
18906 _ACEOF
18907 rm -f conftest.$ac_objext
18908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18909   (eval $ac_compile) 2>conftest.er1
18910   ac_status=$?
18911   grep -v '^ *+' conftest.er1 >conftest.err
18912   rm -f conftest.er1
18913   cat conftest.err >&5
18914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915   (exit $ac_status); } &&
18916          { ac_try='test -z "$ac_c_werror_flag"
18917                          || test ! -s conftest.err'
18918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18919   (eval $ac_try) 2>&5
18920   ac_status=$?
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); }; } &&
18923          { ac_try='test -s conftest.$ac_objext'
18924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925   (eval $ac_try) 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); }; }; then
18929   ac_lo=$ac_mid; break
18930 else
18931   echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934 ac_hi=`expr '(' $ac_mid ')' - 1`
18935                        if test $ac_mid -le $ac_hi; then
18936                          ac_lo= ac_hi=
18937                          break
18938                        fi
18939                        ac_mid=`expr 2 '*' $ac_mid`
18940 fi
18941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18942   done
18943 else
18944   echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18946
18947 ac_lo= ac_hi=
18948 fi
18949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18950 fi
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952 # Binary search between lo and hi bounds.
18953 while test "x$ac_lo" != "x$ac_hi"; do
18954   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18955   cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961 $ac_includes_default
18962 int
18963 main ()
18964 {
18965 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18966 test_array [0] = 0
18967
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18974   (eval $ac_compile) 2>conftest.er1
18975   ac_status=$?
18976   grep -v '^ *+' conftest.er1 >conftest.err
18977   rm -f conftest.er1
18978   cat conftest.err >&5
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); } &&
18981          { ac_try='test -z "$ac_c_werror_flag"
18982                          || test ! -s conftest.err'
18983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984   (eval $ac_try) 2>&5
18985   ac_status=$?
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); }; } &&
18988          { ac_try='test -s conftest.$ac_objext'
18989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990   (eval $ac_try) 2>&5
18991   ac_status=$?
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); }; }; then
18994   ac_hi=$ac_mid
18995 else
18996   echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18998
18999 ac_lo=`expr '(' $ac_mid ')' + 1`
19000 fi
19001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19002 done
19003 case $ac_lo in
19004 ?*) ac_cv_sizeof_int_p=$ac_lo;;
19005 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
19006 See \`config.log' for more details." >&5
19007 echo "$as_me: error: cannot compute sizeof (int *), 77
19008 See \`config.log' for more details." >&2;}
19009    { (exit 1); exit 1; }; } ;;
19010 esac
19011 else
19012   if test "$cross_compiling" = yes; then
19013   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19014 See \`config.log' for more details." >&5
19015 echo "$as_me: error: cannot run test program while cross compiling
19016 See \`config.log' for more details." >&2;}
19017    { (exit 1); exit 1; }; }
19018 else
19019   cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 $ac_includes_default
19026 long longval () { return (long) (sizeof (int *)); }
19027 unsigned long ulongval () { return (long) (sizeof (int *)); }
19028 #include <stdio.h>
19029 #include <stdlib.h>
19030 int
19031 main ()
19032 {
19033
19034   FILE *f = fopen ("conftest.val", "w");
19035   if (! f)
19036     exit (1);
19037   if (((long) (sizeof (int *))) < 0)
19038     {
19039       long i = longval ();
19040       if (i != ((long) (sizeof (int *))))
19041         exit (1);
19042       fprintf (f, "%ld\n", i);
19043     }
19044   else
19045     {
19046       unsigned long i = ulongval ();
19047       if (i != ((long) (sizeof (int *))))
19048         exit (1);
19049       fprintf (f, "%lu\n", i);
19050     }
19051   exit (ferror (f) || fclose (f) != 0);
19052
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059   (eval $ac_link) 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064   (eval $ac_try) 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; }; then
19068   ac_cv_sizeof_int_p=`cat conftest.val`
19069 else
19070   echo "$as_me: program exited with status $ac_status" >&5
19071 echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 ( exit $ac_status )
19075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
19076 See \`config.log' for more details." >&5
19077 echo "$as_me: error: cannot compute sizeof (int *), 77
19078 See \`config.log' for more details." >&2;}
19079    { (exit 1); exit 1; }; }
19080 fi
19081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19082 fi
19083 fi
19084 rm -f conftest.val
19085 else
19086   ac_cv_sizeof_int_p=0
19087 fi
19088 fi
19089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
19090 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
19091 cat >>confdefs.h <<_ACEOF
19092 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
19093 _ACEOF
19094
19095
19096
19097 # Check for sys/types.h types
19098 echo "$as_me:$LINENO: checking for u_int type" >&5
19099 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
19100 if test "${ac_cv_have_u_int+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103
19104     cat >conftest.$ac_ext <<_ACEOF
19105 /* confdefs.h.  */
19106 _ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h.  */
19110  #include <sys/types.h>
19111 int
19112 main ()
19113 {
19114  u_int a; a = 1;
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext
19120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19121   (eval $ac_compile) 2>conftest.er1
19122   ac_status=$?
19123   grep -v '^ *+' conftest.er1 >conftest.err
19124   rm -f conftest.er1
19125   cat conftest.err >&5
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); } &&
19128          { ac_try='test -z "$ac_c_werror_flag"
19129                          || test ! -s conftest.err'
19130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131   (eval $ac_try) 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; } &&
19135          { ac_try='test -s conftest.$ac_objext'
19136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137   (eval $ac_try) 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; }; then
19141    ac_cv_have_u_int="yes"
19142 else
19143   echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19145
19146  ac_cv_have_u_int="no"
19147
19148 fi
19149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19150
19151 fi
19152 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
19153 echo "${ECHO_T}$ac_cv_have_u_int" >&6
19154 if test "x$ac_cv_have_u_int" = "xyes" ; then
19155    cat >>confdefs.h <<\_ACEOF
19156 #define HAVE_U_INT 1
19157 _ACEOF
19158
19159    have_u_int=1
19160 fi
19161
19162 echo "$as_me:$LINENO: checking for intmax_t type" >&5
19163 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
19164 if test "${ac_cv_have_intmax_t+set}" = set; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167
19168    cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174  #include <sys/types.h>
19175 int
19176 main ()
19177 {
19178  intmax_t a; a = 1;
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext
19184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19185   (eval $ac_compile) 2>conftest.er1
19186   ac_status=$?
19187   grep -v '^ *+' conftest.er1 >conftest.err
19188   rm -f conftest.er1
19189   cat conftest.err >&5
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); } &&
19192          { ac_try='test -z "$ac_c_werror_flag"
19193                          || test ! -s conftest.err'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; } &&
19199          { ac_try='test -s conftest.$ac_objext'
19200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201   (eval $ac_try) 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; }; then
19205    ac_cv_have_intmax_t="yes"
19206 else
19207   echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19209
19210
19211          cat >conftest.$ac_ext <<_ACEOF
19212 /* confdefs.h.  */
19213 _ACEOF
19214 cat confdefs.h >>conftest.$ac_ext
19215 cat >>conftest.$ac_ext <<_ACEOF
19216 /* end confdefs.h.  */
19217  #include <stdint.h>
19218 int
19219 main ()
19220 {
19221  intmax_t a; a = 1;
19222   ;
19223   return 0;
19224 }
19225 _ACEOF
19226 rm -f conftest.$ac_objext
19227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228   (eval $ac_compile) 2>conftest.er1
19229   ac_status=$?
19230   grep -v '^ *+' conftest.er1 >conftest.err
19231   rm -f conftest.er1
19232   cat conftest.err >&5
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } &&
19235          { ac_try='test -z "$ac_c_werror_flag"
19236                          || test ! -s conftest.err'
19237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238   (eval $ac_try) 2>&5
19239   ac_status=$?
19240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241   (exit $ac_status); }; } &&
19242          { ac_try='test -s conftest.$ac_objext'
19243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244   (eval $ac_try) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); }; }; then
19248    ac_cv_have_intmax_t="yes"
19249 else
19250   echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253  ac_cv_have_intmax_t="no"
19254
19255 fi
19256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19257
19258
19259 fi
19260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19261
19262
19263 fi
19264 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19265 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19266 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19267    cat >>confdefs.h <<\_ACEOF
19268 #define HAVE_INTMAX_T 1
19269 _ACEOF
19270
19271    have_intmax_t=1
19272 fi
19273
19274
19275 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19276 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19277 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19278   echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280
19281    cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h.  */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h.  */
19287  #include <sys/types.h>
19288 int
19289 main ()
19290 {
19291  u_intmax_t a; a = 1;
19292   ;
19293   return 0;
19294 }
19295 _ACEOF
19296 rm -f conftest.$ac_objext
19297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19298   (eval $ac_compile) 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } &&
19305          { ac_try='test -z "$ac_c_werror_flag"
19306                          || test ! -s conftest.err'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; } &&
19312          { ac_try='test -s conftest.$ac_objext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318    ac_cv_have_u_intmax_t="yes"
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323
19324          cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330  #include <stdint.h>
19331 int
19332 main ()
19333 {
19334  u_intmax_t a; a = 1;
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19341   (eval $ac_compile) 2>conftest.er1
19342   ac_status=$?
19343   grep -v '^ *+' conftest.er1 >conftest.err
19344   rm -f conftest.er1
19345   cat conftest.err >&5
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); } &&
19348          { ac_try='test -z "$ac_c_werror_flag"
19349                          || test ! -s conftest.err'
19350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351   (eval $ac_try) 2>&5
19352   ac_status=$?
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); }; } &&
19355          { ac_try='test -s conftest.$ac_objext'
19356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357   (eval $ac_try) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; }; then
19361    ac_cv_have_u_intmax_t="yes"
19362 else
19363   echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366  ac_cv_have_u_intmax_t="no"
19367
19368 fi
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370
19371
19372 fi
19373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19374
19375 fi
19376 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19377 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19378 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19379    cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_U_INTMAX_T 1
19381 _ACEOF
19382
19383    have_u_intmax_t=1
19384 fi
19385
19386
19387 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19388 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19389 if test "${ac_cv_have_intxx_t+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392
19393    cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h.  */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h.  */
19399  #include <sys/types.h>
19400 int
19401 main ()
19402 {
19403  int8_t a; int16_t b; int32_t c; a = b = c = 1;
19404   ;
19405   return 0;
19406 }
19407 _ACEOF
19408 rm -f conftest.$ac_objext
19409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19410   (eval $ac_compile) 2>conftest.er1
19411   ac_status=$?
19412   grep -v '^ *+' conftest.er1 >conftest.err
19413   rm -f conftest.er1
19414   cat conftest.err >&5
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); } &&
19417          { ac_try='test -z "$ac_c_werror_flag"
19418                          || test ! -s conftest.err'
19419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420   (eval $ac_try) 2>&5
19421   ac_status=$?
19422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423   (exit $ac_status); }; } &&
19424          { ac_try='test -s conftest.$ac_objext'
19425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426   (eval $ac_try) 2>&5
19427   ac_status=$?
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); }; }; then
19430    ac_cv_have_intxx_t="yes"
19431 else
19432   echo "$as_me: failed program was:" >&5
19433 sed 's/^/| /' conftest.$ac_ext >&5
19434
19435  ac_cv_have_intxx_t="no"
19436
19437 fi
19438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19439
19440 fi
19441 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19442 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19443 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19444    cat >>confdefs.h <<\_ACEOF
19445 #define HAVE_INTXX_T 1
19446 _ACEOF
19447
19448    have_intxx_t=1
19449 fi
19450
19451 echo "$as_me:$LINENO: checking for int64_t type" >&5
19452 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19453 if test "${ac_cv_have_int64_t+set}" = set; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456
19457    cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463  #include <sys/types.h>
19464 int
19465 main ()
19466 {
19467  int64_t a; a = 1;
19468   ;
19469   return 0;
19470 }
19471 _ACEOF
19472 rm -f conftest.$ac_objext
19473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19474   (eval $ac_compile) 2>conftest.er1
19475   ac_status=$?
19476   grep -v '^ *+' conftest.er1 >conftest.err
19477   rm -f conftest.er1
19478   cat conftest.err >&5
19479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480   (exit $ac_status); } &&
19481          { ac_try='test -z "$ac_c_werror_flag"
19482                          || test ! -s conftest.err'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; } &&
19488          { ac_try='test -s conftest.$ac_objext'
19489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490   (eval $ac_try) 2>&5
19491   ac_status=$?
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); }; }; then
19494    ac_cv_have_int64_t="yes"
19495 else
19496   echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19498
19499  ac_cv_have_int64_t="no"
19500
19501 fi
19502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19503
19504 fi
19505 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19506 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19507 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19508    cat >>confdefs.h <<\_ACEOF
19509 #define HAVE_INT64_T 1
19510 _ACEOF
19511
19512    have_int64_t=1
19513 fi
19514
19515 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19516 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19517 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19518   echo $ECHO_N "(cached) $ECHO_C" >&6
19519 else
19520
19521    cat >conftest.$ac_ext <<_ACEOF
19522 /* confdefs.h.  */
19523 _ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h.  */
19527  #include <sys/types.h>
19528 int
19529 main ()
19530 {
19531  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538   (eval $ac_compile) 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_c_werror_flag"
19546                          || test ! -s conftest.err'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558    ac_cv_have_u_intxx_t="yes"
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563  ac_cv_have_u_intxx_t="no"
19564
19565 fi
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19567
19568 fi
19569 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19570 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19571 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19572    cat >>confdefs.h <<\_ACEOF
19573 #define HAVE_U_INTXX_T 1
19574 _ACEOF
19575
19576    have_u_intxx_t=1
19577 fi
19578
19579 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19580 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19581 if test "${ac_cv_have_u_int64_t+set}" = set; then
19582   echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584
19585    cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591  #include <sys/types.h>
19592 int
19593 main ()
19594 {
19595  u_int64_t a; a = 1;
19596   ;
19597   return 0;
19598 }
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602   (eval $ac_compile) 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } &&
19609          { ac_try='test -z "$ac_c_werror_flag"
19610                          || test ! -s conftest.err'
19611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612   (eval $ac_try) 2>&5
19613   ac_status=$?
19614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615   (exit $ac_status); }; } &&
19616          { ac_try='test -s conftest.$ac_objext'
19617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618   (eval $ac_try) 2>&5
19619   ac_status=$?
19620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621   (exit $ac_status); }; }; then
19622    ac_cv_have_u_int64_t="yes"
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627  ac_cv_have_u_int64_t="no"
19628
19629 fi
19630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19631
19632 fi
19633 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19634 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19635 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19636    cat >>confdefs.h <<\_ACEOF
19637 #define HAVE_U_INT64_T 1
19638 _ACEOF
19639
19640    have_u_int64_t=1
19641 fi
19642
19643 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19644            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19645 then
19646    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19647 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19648    cat >conftest.$ac_ext <<_ACEOF
19649 /* confdefs.h.  */
19650 _ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h.  */
19654  #include <sys/bitypes.h>
19655 int
19656 main ()
19657 {
19658  int8_t a; int16_t b; int32_t c;
19659         u_int8_t e; u_int16_t f; u_int32_t g;
19660         a = b = c = e = f = g = 1;
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19667   (eval $ac_compile) 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_c_werror_flag"
19675                          || test ! -s conftest.err'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; } &&
19681          { ac_try='test -s conftest.$ac_objext'
19682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683   (eval $ac_try) 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; }; then
19687    cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_U_INTXX_T 1
19689 _ACEOF
19690
19691         cat >>confdefs.h <<\_ACEOF
19692 #define HAVE_INTXX_T 1
19693 _ACEOF
19694
19695         cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_SYS_BITYPES_H 1
19697 _ACEOF
19698
19699         echo "$as_me:$LINENO: result: yes" >&5
19700 echo "${ECHO_T}yes" >&6
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705  echo "$as_me:$LINENO: result: no" >&5
19706 echo "${ECHO_T}no" >&6
19707
19708 fi
19709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19710 fi
19711
19712 if test -z "$have_u_intxx_t" ; then
19713    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19714 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19715 if test "${ac_cv_have_uintxx_t+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718
19719       cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h.  */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h.  */
19725  #include <sys/types.h>
19726 int
19727 main ()
19728 {
19729  uint8_t a; uint16_t b;
19730            uint32_t c; a = b = c = 1;
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19737   (eval $ac_compile) 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } &&
19744          { ac_try='test -z "$ac_c_werror_flag"
19745                          || test ! -s conftest.err'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; } &&
19751          { ac_try='test -s conftest.$ac_objext'
19752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753   (eval $ac_try) 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); }; }; then
19757    ac_cv_have_uintxx_t="yes"
19758 else
19759   echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762  ac_cv_have_uintxx_t="no"
19763
19764 fi
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766
19767 fi
19768 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19769 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19770    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19771       cat >>confdefs.h <<\_ACEOF
19772 #define HAVE_UINTXX_T 1
19773 _ACEOF
19774
19775    fi
19776 fi
19777
19778 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19779           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19780 then
19781    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19782 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19783    cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h.  */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h.  */
19789  #include <sys/bitypes.h>
19790 int
19791 main ()
19792 {
19793  int64_t a; u_int64_t b;
19794        a = b = 1;
19795   ;
19796   return 0;
19797 }
19798 _ACEOF
19799 rm -f conftest.$ac_objext
19800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19801   (eval $ac_compile) 2>conftest.er1
19802   ac_status=$?
19803   grep -v '^ *+' conftest.er1 >conftest.err
19804   rm -f conftest.er1
19805   cat conftest.err >&5
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); } &&
19808          { ac_try='test -z "$ac_c_werror_flag"
19809                          || test ! -s conftest.err'
19810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811   (eval $ac_try) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); }; } &&
19815          { ac_try='test -s conftest.$ac_objext'
19816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817   (eval $ac_try) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); }; }; then
19821    cat >>confdefs.h <<\_ACEOF
19822 #define HAVE_U_INT64_T 1
19823 _ACEOF
19824
19825        cat >>confdefs.h <<\_ACEOF
19826 #define HAVE_INT64_T 1
19827 _ACEOF
19828
19829        echo "$as_me:$LINENO: result: yes" >&5
19830 echo "${ECHO_T}yes" >&6
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835  echo "$as_me:$LINENO: result: no" >&5
19836 echo "${ECHO_T}no" >&6
19837
19838 fi
19839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19840 fi
19841
19842 if (test -z "$have_uintxx_t" && \
19843           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19844 then
19845    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19846 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19847    cat >conftest.$ac_ext <<_ACEOF
19848 /* confdefs.h.  */
19849 _ACEOF
19850 cat confdefs.h >>conftest.$ac_ext
19851 cat >>conftest.$ac_ext <<_ACEOF
19852 /* end confdefs.h.  */
19853  #include <sys/bitypes.h>
19854 int
19855 main ()
19856 {
19857  uint8_t a; uint16_t b;
19858           uint32_t c; a = b = c = 1;
19859   ;
19860   return 0;
19861 }
19862 _ACEOF
19863 rm -f conftest.$ac_objext
19864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19865   (eval $ac_compile) 2>conftest.er1
19866   ac_status=$?
19867   grep -v '^ *+' conftest.er1 >conftest.err
19868   rm -f conftest.er1
19869   cat conftest.err >&5
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); } &&
19872          { ac_try='test -z "$ac_c_werror_flag"
19873                          || test ! -s conftest.err'
19874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875   (eval $ac_try) 2>&5
19876   ac_status=$?
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); }; } &&
19879          { ac_try='test -s conftest.$ac_objext'
19880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881   (eval $ac_try) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); }; }; then
19885    cat >>confdefs.h <<\_ACEOF
19886 #define HAVE_UINTXX_T 1
19887 _ACEOF
19888
19889        echo "$as_me:$LINENO: result: yes" >&5
19890 echo "${ECHO_T}yes" >&6
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895  echo "$as_me:$LINENO: result: no" >&5
19896 echo "${ECHO_T}no" >&6
19897
19898 fi
19899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19900
19901 fi
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919 for ac_func in \
19920         fork \
19921         getcwd \
19922         gethostname \
19923         getpid \
19924         gettimeofday \
19925         setpgid \
19926         setpgrp \
19927         setsid \
19928         signal \
19929         strerror \
19930         strncmp \
19931         strncpy \
19932         vfprintf \
19933
19934 do
19935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19936 echo "$as_me:$LINENO: checking for $ac_func" >&5
19937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19938 if eval "test \"\${$as_ac_var+set}\" = set"; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941   cat >conftest.$ac_ext <<_ACEOF
19942 /* confdefs.h.  */
19943 _ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h.  */
19947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19949 #define $ac_func innocuous_$ac_func
19950
19951 /* System header to define __stub macros and hopefully few prototypes,
19952     which can conflict with char $ac_func (); below.
19953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19954     <limits.h> exists even on freestanding compilers.  */
19955
19956 #ifdef __STDC__
19957 # include <limits.h>
19958 #else
19959 # include <assert.h>
19960 #endif
19961
19962 #undef $ac_func
19963
19964 /* Override any gcc2 internal prototype to avoid an error.  */
19965 #ifdef __cplusplus
19966 extern "C"
19967 {
19968 #endif
19969 /* We use char because int might match the return type of a gcc2
19970    builtin and then its argument prototype would still apply.  */
19971 char $ac_func ();
19972 /* The GNU C library defines this for functions which it implements
19973     to always fail with ENOSYS.  Some functions are actually named
19974     something starting with __ and the normal name is an alias.  */
19975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19976 choke me
19977 #else
19978 char (*f) () = $ac_func;
19979 #endif
19980 #ifdef __cplusplus
19981 }
19982 #endif
19983
19984 int
19985 main ()
19986 {
19987 return f != $ac_func;
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19994   (eval $ac_link) 2>conftest.er1
19995   ac_status=$?
19996   grep -v '^ *+' conftest.er1 >conftest.err
19997   rm -f conftest.er1
19998   cat conftest.err >&5
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } &&
20001          { ac_try='test -z "$ac_c_werror_flag"
20002                          || test ! -s conftest.err'
20003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004   (eval $ac_try) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); }; } &&
20008          { ac_try='test -s conftest$ac_exeext'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; }; then
20014   eval "$as_ac_var=yes"
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019 eval "$as_ac_var=no"
20020 fi
20021 rm -f conftest.err conftest.$ac_objext \
20022       conftest$ac_exeext conftest.$ac_ext
20023 fi
20024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20026 if test `eval echo '${'$as_ac_var'}'` = yes; then
20027   cat >>confdefs.h <<_ACEOF
20028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20029 _ACEOF
20030
20031 else
20032   echo 'configure: cannot find needed function.'; exit 1
20033
20034 fi
20035 done
20036
20037
20038
20039 for ac_func in fchdir
20040 do
20041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20042 echo "$as_me:$LINENO: checking for $ac_func" >&5
20043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20044 if eval "test \"\${$as_ac_var+set}\" = set"; then
20045   echo $ECHO_N "(cached) $ECHO_C" >&6
20046 else
20047   cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h.  */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h.  */
20053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20055 #define $ac_func innocuous_$ac_func
20056
20057 /* System header to define __stub macros and hopefully few prototypes,
20058     which can conflict with char $ac_func (); below.
20059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20060     <limits.h> exists even on freestanding compilers.  */
20061
20062 #ifdef __STDC__
20063 # include <limits.h>
20064 #else
20065 # include <assert.h>
20066 #endif
20067
20068 #undef $ac_func
20069
20070 /* Override any gcc2 internal prototype to avoid an error.  */
20071 #ifdef __cplusplus
20072 extern "C"
20073 {
20074 #endif
20075 /* We use char because int might match the return type of a gcc2
20076    builtin and then its argument prototype would still apply.  */
20077 char $ac_func ();
20078 /* The GNU C library defines this for functions which it implements
20079     to always fail with ENOSYS.  Some functions are actually named
20080     something starting with __ and the normal name is an alias.  */
20081 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20082 choke me
20083 #else
20084 char (*f) () = $ac_func;
20085 #endif
20086 #ifdef __cplusplus
20087 }
20088 #endif
20089
20090 int
20091 main ()
20092 {
20093 return f != $ac_func;
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20100   (eval $ac_link) 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } &&
20107          { ac_try='test -z "$ac_c_werror_flag"
20108                          || test ! -s conftest.err'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; } &&
20114          { ac_try='test -s conftest$ac_exeext'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; }; then
20120   eval "$as_ac_var=yes"
20121 else
20122   echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 eval "$as_ac_var=no"
20126 fi
20127 rm -f conftest.err conftest.$ac_objext \
20128       conftest$ac_exeext conftest.$ac_ext
20129 fi
20130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20132 if test `eval echo '${'$as_ac_var'}'` = yes; then
20133   cat >>confdefs.h <<_ACEOF
20134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20135 _ACEOF
20136  cat >>confdefs.h <<\_ACEOF
20137 #define HAVE_FCHDIR 1
20138 _ACEOF
20139
20140 fi
20141 done
20142
20143
20144 for ac_func in strtoll
20145 do
20146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20147 echo "$as_me:$LINENO: checking for $ac_func" >&5
20148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20149 if eval "test \"\${$as_ac_var+set}\" = set"; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152   cat >conftest.$ac_ext <<_ACEOF
20153 /* confdefs.h.  */
20154 _ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h.  */
20158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20160 #define $ac_func innocuous_$ac_func
20161
20162 /* System header to define __stub macros and hopefully few prototypes,
20163     which can conflict with char $ac_func (); below.
20164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20165     <limits.h> exists even on freestanding compilers.  */
20166
20167 #ifdef __STDC__
20168 # include <limits.h>
20169 #else
20170 # include <assert.h>
20171 #endif
20172
20173 #undef $ac_func
20174
20175 /* Override any gcc2 internal prototype to avoid an error.  */
20176 #ifdef __cplusplus
20177 extern "C"
20178 {
20179 #endif
20180 /* We use char because int might match the return type of a gcc2
20181    builtin and then its argument prototype would still apply.  */
20182 char $ac_func ();
20183 /* The GNU C library defines this for functions which it implements
20184     to always fail with ENOSYS.  Some functions are actually named
20185     something starting with __ and the normal name is an alias.  */
20186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20187 choke me
20188 #else
20189 char (*f) () = $ac_func;
20190 #endif
20191 #ifdef __cplusplus
20192 }
20193 #endif
20194
20195 int
20196 main ()
20197 {
20198 return f != $ac_func;
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 rm -f conftest.$ac_objext conftest$ac_exeext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20205   (eval $ac_link) 2>conftest.er1
20206   ac_status=$?
20207   grep -v '^ *+' conftest.er1 >conftest.err
20208   rm -f conftest.er1
20209   cat conftest.err >&5
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); } &&
20212          { ac_try='test -z "$ac_c_werror_flag"
20213                          || test ! -s conftest.err'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; } &&
20219          { ac_try='test -s conftest$ac_exeext'
20220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221   (eval $ac_try) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225   eval "$as_ac_var=yes"
20226 else
20227   echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 eval "$as_ac_var=no"
20231 fi
20232 rm -f conftest.err conftest.$ac_objext \
20233       conftest$ac_exeext conftest.$ac_ext
20234 fi
20235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20237 if test `eval echo '${'$as_ac_var'}'` = yes; then
20238   cat >>confdefs.h <<_ACEOF
20239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20240 _ACEOF
20241  cat >>confdefs.h <<\_ACEOF
20242 #define HAVE_STRTOLL 1
20243 _ACEOF
20244
20245 fi
20246 done
20247
20248
20249
20250 for ac_func in chflags
20251 do
20252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20253 echo "$as_me:$LINENO: checking for $ac_func" >&5
20254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20255 if eval "test \"\${$as_ac_var+set}\" = set"; then
20256   echo $ECHO_N "(cached) $ECHO_C" >&6
20257 else
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20266 #define $ac_func innocuous_$ac_func
20267
20268 /* System header to define __stub macros and hopefully few prototypes,
20269     which can conflict with char $ac_func (); below.
20270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271     <limits.h> exists even on freestanding compilers.  */
20272
20273 #ifdef __STDC__
20274 # include <limits.h>
20275 #else
20276 # include <assert.h>
20277 #endif
20278
20279 #undef $ac_func
20280
20281 /* Override any gcc2 internal prototype to avoid an error.  */
20282 #ifdef __cplusplus
20283 extern "C"
20284 {
20285 #endif
20286 /* We use char because int might match the return type of a gcc2
20287    builtin and then its argument prototype would still apply.  */
20288 char $ac_func ();
20289 /* The GNU C library defines this for functions which it implements
20290     to always fail with ENOSYS.  Some functions are actually named
20291     something starting with __ and the normal name is an alias.  */
20292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20293 choke me
20294 #else
20295 char (*f) () = $ac_func;
20296 #endif
20297 #ifdef __cplusplus
20298 }
20299 #endif
20300
20301 int
20302 main ()
20303 {
20304 return f != $ac_func;
20305   ;
20306   return 0;
20307 }
20308 _ACEOF
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311   (eval $ac_link) 2>conftest.er1
20312   ac_status=$?
20313   grep -v '^ *+' conftest.er1 >conftest.err
20314   rm -f conftest.er1
20315   cat conftest.err >&5
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } &&
20318          { ac_try='test -z "$ac_c_werror_flag"
20319                          || test ! -s conftest.err'
20320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321   (eval $ac_try) 2>&5
20322   ac_status=$?
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); }; } &&
20325          { ac_try='test -s conftest$ac_exeext'
20326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327   (eval $ac_try) 2>&5
20328   ac_status=$?
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); }; }; then
20331   eval "$as_ac_var=yes"
20332 else
20333   echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20335
20336 eval "$as_ac_var=no"
20337 fi
20338 rm -f conftest.err conftest.$ac_objext \
20339       conftest$ac_exeext conftest.$ac_ext
20340 fi
20341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20343 if test `eval echo '${'$as_ac_var'}'` = yes; then
20344   cat >>confdefs.h <<_ACEOF
20345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20346 _ACEOF
20347
20348 fi
20349 done
20350
20351
20352
20353
20354
20355
20356 for ac_func in snprintf vsnprintf gethostid fseeko
20357 do
20358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20359 echo "$as_me:$LINENO: checking for $ac_func" >&5
20360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20361 if eval "test \"\${$as_ac_var+set}\" = set"; then
20362   echo $ECHO_N "(cached) $ECHO_C" >&6
20363 else
20364   cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20372 #define $ac_func innocuous_$ac_func
20373
20374 /* System header to define __stub macros and hopefully few prototypes,
20375     which can conflict with char $ac_func (); below.
20376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20377     <limits.h> exists even on freestanding compilers.  */
20378
20379 #ifdef __STDC__
20380 # include <limits.h>
20381 #else
20382 # include <assert.h>
20383 #endif
20384
20385 #undef $ac_func
20386
20387 /* Override any gcc2 internal prototype to avoid an error.  */
20388 #ifdef __cplusplus
20389 extern "C"
20390 {
20391 #endif
20392 /* We use char because int might match the return type of a gcc2
20393    builtin and then its argument prototype would still apply.  */
20394 char $ac_func ();
20395 /* The GNU C library defines this for functions which it implements
20396     to always fail with ENOSYS.  Some functions are actually named
20397     something starting with __ and the normal name is an alias.  */
20398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20399 choke me
20400 #else
20401 char (*f) () = $ac_func;
20402 #endif
20403 #ifdef __cplusplus
20404 }
20405 #endif
20406
20407 int
20408 main ()
20409 {
20410 return f != $ac_func;
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 rm -f conftest.$ac_objext conftest$ac_exeext
20416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20417   (eval $ac_link) 2>conftest.er1
20418   ac_status=$?
20419   grep -v '^ *+' conftest.er1 >conftest.err
20420   rm -f conftest.er1
20421   cat conftest.err >&5
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } &&
20424          { ac_try='test -z "$ac_c_werror_flag"
20425                          || test ! -s conftest.err'
20426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427   (eval $ac_try) 2>&5
20428   ac_status=$?
20429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430   (exit $ac_status); }; } &&
20431          { ac_try='test -s conftest$ac_exeext'
20432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433   (eval $ac_try) 2>&5
20434   ac_status=$?
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); }; }; then
20437   eval "$as_ac_var=yes"
20438 else
20439   echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442 eval "$as_ac_var=no"
20443 fi
20444 rm -f conftest.err conftest.$ac_objext \
20445       conftest$ac_exeext conftest.$ac_ext
20446 fi
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20449 if test `eval echo '${'$as_ac_var'}'` = yes; then
20450   cat >>confdefs.h <<_ACEOF
20451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20452 _ACEOF
20453
20454 fi
20455 done
20456
20457
20458
20459
20460
20461
20462 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20463 do
20464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20465 echo "$as_me:$LINENO: checking for $ac_func" >&5
20466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20467 if eval "test \"\${$as_ac_var+set}\" = set"; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20478 #define $ac_func innocuous_$ac_func
20479
20480 /* System header to define __stub macros and hopefully few prototypes,
20481     which can conflict with char $ac_func (); below.
20482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20483     <limits.h> exists even on freestanding compilers.  */
20484
20485 #ifdef __STDC__
20486 # include <limits.h>
20487 #else
20488 # include <assert.h>
20489 #endif
20490
20491 #undef $ac_func
20492
20493 /* Override any gcc2 internal prototype to avoid an error.  */
20494 #ifdef __cplusplus
20495 extern "C"
20496 {
20497 #endif
20498 /* We use char because int might match the return type of a gcc2
20499    builtin and then its argument prototype would still apply.  */
20500 char $ac_func ();
20501 /* The GNU C library defines this for functions which it implements
20502     to always fail with ENOSYS.  Some functions are actually named
20503     something starting with __ and the normal name is an alias.  */
20504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20505 choke me
20506 #else
20507 char (*f) () = $ac_func;
20508 #endif
20509 #ifdef __cplusplus
20510 }
20511 #endif
20512
20513 int
20514 main ()
20515 {
20516 return f != $ac_func;
20517   ;
20518   return 0;
20519 }
20520 _ACEOF
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20523   (eval $ac_link) 2>conftest.er1
20524   ac_status=$?
20525   grep -v '^ *+' conftest.er1 >conftest.err
20526   rm -f conftest.er1
20527   cat conftest.err >&5
20528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529   (exit $ac_status); } &&
20530          { ac_try='test -z "$ac_c_werror_flag"
20531                          || test ! -s conftest.err'
20532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20533   (eval $ac_try) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); }; } &&
20537          { ac_try='test -s conftest$ac_exeext'
20538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20539   (eval $ac_try) 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; }; then
20543   eval "$as_ac_var=yes"
20544 else
20545   echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 eval "$as_ac_var=no"
20549 fi
20550 rm -f conftest.err conftest.$ac_objext \
20551       conftest$ac_exeext conftest.$ac_ext
20552 fi
20553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20555 if test `eval echo '${'$as_ac_var'}'` = yes; then
20556   cat >>confdefs.h <<_ACEOF
20557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20558 _ACEOF
20559
20560 fi
20561 done
20562
20563
20564 # If resolver functions are not in libc check for -lnsl or -lresolv.
20565 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20566 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20567 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h.  */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h.  */
20576 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20578 #define gethostbyname_r innocuous_gethostbyname_r
20579
20580 /* System header to define __stub macros and hopefully few prototypes,
20581     which can conflict with char gethostbyname_r (); below.
20582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20583     <limits.h> exists even on freestanding compilers.  */
20584
20585 #ifdef __STDC__
20586 # include <limits.h>
20587 #else
20588 # include <assert.h>
20589 #endif
20590
20591 #undef gethostbyname_r
20592
20593 /* Override any gcc2 internal prototype to avoid an error.  */
20594 #ifdef __cplusplus
20595 extern "C"
20596 {
20597 #endif
20598 /* We use char because int might match the return type of a gcc2
20599    builtin and then its argument prototype would still apply.  */
20600 char gethostbyname_r ();
20601 /* The GNU C library defines this for functions which it implements
20602     to always fail with ENOSYS.  Some functions are actually named
20603     something starting with __ and the normal name is an alias.  */
20604 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20605 choke me
20606 #else
20607 char (*f) () = gethostbyname_r;
20608 #endif
20609 #ifdef __cplusplus
20610 }
20611 #endif
20612
20613 int
20614 main ()
20615 {
20616 return f != gethostbyname_r;
20617   ;
20618   return 0;
20619 }
20620 _ACEOF
20621 rm -f conftest.$ac_objext conftest$ac_exeext
20622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623   (eval $ac_link) 2>conftest.er1
20624   ac_status=$?
20625   grep -v '^ *+' conftest.er1 >conftest.err
20626   rm -f conftest.er1
20627   cat conftest.err >&5
20628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629   (exit $ac_status); } &&
20630          { ac_try='test -z "$ac_c_werror_flag"
20631                          || test ! -s conftest.err'
20632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633   (eval $ac_try) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); }; } &&
20637          { ac_try='test -s conftest$ac_exeext'
20638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639   (eval $ac_try) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; }; then
20643   ac_cv_func_gethostbyname_r=yes
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648 ac_cv_func_gethostbyname_r=no
20649 fi
20650 rm -f conftest.err conftest.$ac_objext \
20651       conftest$ac_exeext conftest.$ac_ext
20652 fi
20653 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20654 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20655 if test $ac_cv_func_gethostbyname_r = yes; then
20656   echo "$as_me:$LINENO: result: using libc's resolver" >&5
20657 echo "${ECHO_T}using libc's resolver" >&6
20658 else
20659
20660 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20661 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20662 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20663   echo $ECHO_N "(cached) $ECHO_C" >&6
20664 else
20665   ac_check_lib_save_LIBS=$LIBS
20666 LIBS="-lnsl  $LIBS"
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673
20674 /* Override any gcc2 internal prototype to avoid an error.  */
20675 #ifdef __cplusplus
20676 extern "C"
20677 #endif
20678 /* We use char because int might match the return type of a gcc2
20679    builtin and then its argument prototype would still apply.  */
20680 char gethostbyname_r ();
20681 int
20682 main ()
20683 {
20684 gethostbyname_r ();
20685   ;
20686   return 0;
20687 }
20688 _ACEOF
20689 rm -f conftest.$ac_objext conftest$ac_exeext
20690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20691   (eval $ac_link) 2>conftest.er1
20692   ac_status=$?
20693   grep -v '^ *+' conftest.er1 >conftest.err
20694   rm -f conftest.er1
20695   cat conftest.err >&5
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); } &&
20698          { ac_try='test -z "$ac_c_werror_flag"
20699                          || test ! -s conftest.err'
20700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20701   (eval $ac_try) 2>&5
20702   ac_status=$?
20703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704   (exit $ac_status); }; } &&
20705          { ac_try='test -s conftest$ac_exeext'
20706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707   (eval $ac_try) 2>&5
20708   ac_status=$?
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); }; }; then
20711   ac_cv_lib_nsl_gethostbyname_r=yes
20712 else
20713   echo "$as_me: failed program was:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 ac_cv_lib_nsl_gethostbyname_r=no
20717 fi
20718 rm -f conftest.err conftest.$ac_objext \
20719       conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20721 fi
20722 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20723 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20724 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20725   cat >>confdefs.h <<_ACEOF
20726 #define HAVE_LIBNSL 1
20727 _ACEOF
20728
20729   LIBS="-lnsl $LIBS"
20730
20731 fi
20732
20733
20734 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20735 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20736 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20737   echo $ECHO_N "(cached) $ECHO_C" >&6
20738 else
20739   ac_check_lib_save_LIBS=$LIBS
20740 LIBS="-lresolv  $LIBS"
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h.  */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h.  */
20747
20748 /* Override any gcc2 internal prototype to avoid an error.  */
20749 #ifdef __cplusplus
20750 extern "C"
20751 #endif
20752 /* We use char because int might match the return type of a gcc2
20753    builtin and then its argument prototype would still apply.  */
20754 char gethostbyname_r ();
20755 int
20756 main ()
20757 {
20758 gethostbyname_r ();
20759   ;
20760   return 0;
20761 }
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20765   (eval $ac_link) 2>conftest.er1
20766   ac_status=$?
20767   grep -v '^ *+' conftest.er1 >conftest.err
20768   rm -f conftest.er1
20769   cat conftest.err >&5
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); } &&
20772          { ac_try='test -z "$ac_c_werror_flag"
20773                          || test ! -s conftest.err'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; } &&
20779          { ac_try='test -s conftest$ac_exeext'
20780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781   (eval $ac_try) 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; }; then
20785   ac_cv_lib_resolv_gethostbyname_r=yes
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790 ac_cv_lib_resolv_gethostbyname_r=no
20791 fi
20792 rm -f conftest.err conftest.$ac_objext \
20793       conftest$ac_exeext conftest.$ac_ext
20794 LIBS=$ac_check_lib_save_LIBS
20795 fi
20796 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20797 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20798 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20799   cat >>confdefs.h <<_ACEOF
20800 #define HAVE_LIBRESOLV 1
20801 _ACEOF
20802
20803   LIBS="-lresolv $LIBS"
20804
20805 fi
20806
20807 fi
20808
20809
20810
20811
20812
20813 for ac_func in inet_pton
20814 do
20815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20816 echo "$as_me:$LINENO: checking for $ac_func" >&5
20817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20818 if eval "test \"\${$as_ac_var+set}\" = set"; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20829 #define $ac_func innocuous_$ac_func
20830
20831 /* System header to define __stub macros and hopefully few prototypes,
20832     which can conflict with char $ac_func (); below.
20833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834     <limits.h> exists even on freestanding compilers.  */
20835
20836 #ifdef __STDC__
20837 # include <limits.h>
20838 #else
20839 # include <assert.h>
20840 #endif
20841
20842 #undef $ac_func
20843
20844 /* Override any gcc2 internal prototype to avoid an error.  */
20845 #ifdef __cplusplus
20846 extern "C"
20847 {
20848 #endif
20849 /* We use char because int might match the return type of a gcc2
20850    builtin and then its argument prototype would still apply.  */
20851 char $ac_func ();
20852 /* The GNU C library defines this for functions which it implements
20853     to always fail with ENOSYS.  Some functions are actually named
20854     something starting with __ and the normal name is an alias.  */
20855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20856 choke me
20857 #else
20858 char (*f) () = $ac_func;
20859 #endif
20860 #ifdef __cplusplus
20861 }
20862 #endif
20863
20864 int
20865 main ()
20866 {
20867 return f != $ac_func;
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874   (eval $ac_link) 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } &&
20881          { ac_try='test -z "$ac_c_werror_flag"
20882                          || test ! -s conftest.err'
20883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884   (eval $ac_try) 2>&5
20885   ac_status=$?
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); }; } &&
20888          { ac_try='test -s conftest$ac_exeext'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; }; then
20894   eval "$as_ac_var=yes"
20895 else
20896   echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.$ac_ext >&5
20898
20899 eval "$as_ac_var=no"
20900 fi
20901 rm -f conftest.err conftest.$ac_objext \
20902       conftest$ac_exeext conftest.$ac_ext
20903 fi
20904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20906 if test `eval echo '${'$as_ac_var'}'` = yes; then
20907   cat >>confdefs.h <<_ACEOF
20908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20909 _ACEOF
20910  cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_INET_PTON 1
20912 _ACEOF
20913
20914 fi
20915 done
20916
20917
20918 for ac_func in inet_ntop
20919 do
20920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20921 echo "$as_me:$LINENO: checking for $ac_func" >&5
20922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20923 if eval "test \"\${$as_ac_var+set}\" = set"; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926   cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h.  */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h.  */
20932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20934 #define $ac_func innocuous_$ac_func
20935
20936 /* System header to define __stub macros and hopefully few prototypes,
20937     which can conflict with char $ac_func (); below.
20938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20939     <limits.h> exists even on freestanding compilers.  */
20940
20941 #ifdef __STDC__
20942 # include <limits.h>
20943 #else
20944 # include <assert.h>
20945 #endif
20946
20947 #undef $ac_func
20948
20949 /* Override any gcc2 internal prototype to avoid an error.  */
20950 #ifdef __cplusplus
20951 extern "C"
20952 {
20953 #endif
20954 /* We use char because int might match the return type of a gcc2
20955    builtin and then its argument prototype would still apply.  */
20956 char $ac_func ();
20957 /* The GNU C library defines this for functions which it implements
20958     to always fail with ENOSYS.  Some functions are actually named
20959     something starting with __ and the normal name is an alias.  */
20960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20961 choke me
20962 #else
20963 char (*f) () = $ac_func;
20964 #endif
20965 #ifdef __cplusplus
20966 }
20967 #endif
20968
20969 int
20970 main ()
20971 {
20972 return f != $ac_func;
20973   ;
20974   return 0;
20975 }
20976 _ACEOF
20977 rm -f conftest.$ac_objext conftest$ac_exeext
20978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20979   (eval $ac_link) 2>conftest.er1
20980   ac_status=$?
20981   grep -v '^ *+' conftest.er1 >conftest.err
20982   rm -f conftest.er1
20983   cat conftest.err >&5
20984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985   (exit $ac_status); } &&
20986          { ac_try='test -z "$ac_c_werror_flag"
20987                          || test ! -s conftest.err'
20988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989   (eval $ac_try) 2>&5
20990   ac_status=$?
20991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992   (exit $ac_status); }; } &&
20993          { ac_try='test -s conftest$ac_exeext'
20994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995   (eval $ac_try) 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; }; then
20999   eval "$as_ac_var=yes"
21000 else
21001   echo "$as_me: failed program was:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21003
21004 eval "$as_ac_var=no"
21005 fi
21006 rm -f conftest.err conftest.$ac_objext \
21007       conftest$ac_exeext conftest.$ac_ext
21008 fi
21009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21011 if test `eval echo '${'$as_ac_var'}'` = yes; then
21012   cat >>confdefs.h <<_ACEOF
21013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21014 _ACEOF
21015  cat >>confdefs.h <<\_ACEOF
21016 #define HAVE_INET_NTOP 1
21017 _ACEOF
21018
21019 fi
21020 done
21021
21022
21023 for ac_func in gethostbyname2
21024 do
21025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21026 echo "$as_me:$LINENO: checking for $ac_func" >&5
21027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21028 if eval "test \"\${$as_ac_var+set}\" = set"; then
21029   echo $ECHO_N "(cached) $ECHO_C" >&6
21030 else
21031   cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h.  */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h.  */
21037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21039 #define $ac_func innocuous_$ac_func
21040
21041 /* System header to define __stub macros and hopefully few prototypes,
21042     which can conflict with char $ac_func (); below.
21043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21044     <limits.h> exists even on freestanding compilers.  */
21045
21046 #ifdef __STDC__
21047 # include <limits.h>
21048 #else
21049 # include <assert.h>
21050 #endif
21051
21052 #undef $ac_func
21053
21054 /* Override any gcc2 internal prototype to avoid an error.  */
21055 #ifdef __cplusplus
21056 extern "C"
21057 {
21058 #endif
21059 /* We use char because int might match the return type of a gcc2
21060    builtin and then its argument prototype would still apply.  */
21061 char $ac_func ();
21062 /* The GNU C library defines this for functions which it implements
21063     to always fail with ENOSYS.  Some functions are actually named
21064     something starting with __ and the normal name is an alias.  */
21065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21066 choke me
21067 #else
21068 char (*f) () = $ac_func;
21069 #endif
21070 #ifdef __cplusplus
21071 }
21072 #endif
21073
21074 int
21075 main ()
21076 {
21077 return f != $ac_func;
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21084   (eval $ac_link) 2>conftest.er1
21085   ac_status=$?
21086   grep -v '^ *+' conftest.er1 >conftest.err
21087   rm -f conftest.er1
21088   cat conftest.err >&5
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); } &&
21091          { ac_try='test -z "$ac_c_werror_flag"
21092                          || test ! -s conftest.err'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; } &&
21098          { ac_try='test -s conftest$ac_exeext'
21099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100   (eval $ac_try) 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; }; then
21104   eval "$as_ac_var=yes"
21105 else
21106   echo "$as_me: failed program was:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21108
21109 eval "$as_ac_var=no"
21110 fi
21111 rm -f conftest.err conftest.$ac_objext \
21112       conftest$ac_exeext conftest.$ac_ext
21113 fi
21114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21116 if test `eval echo '${'$as_ac_var'}'` = yes; then
21117   cat >>confdefs.h <<_ACEOF
21118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21119 _ACEOF
21120  cat >>confdefs.h <<\_ACEOF
21121 #define HAVE_GETHOSTBYNAME2 1
21122 _ACEOF
21123
21124 fi
21125 done
21126
21127
21128 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
21129 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
21130 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139 #include <sys/socket.h>
21140 int
21141 main ()
21142 {
21143 struct sockaddr s; s.sa_len;
21144   ;
21145   return 0;
21146 }
21147 _ACEOF
21148 rm -f conftest.$ac_objext
21149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21150   (eval $ac_compile) 2>conftest.er1
21151   ac_status=$?
21152   grep -v '^ *+' conftest.er1 >conftest.err
21153   rm -f conftest.er1
21154   cat conftest.err >&5
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } &&
21157          { ac_try='test -z "$ac_c_werror_flag"
21158                          || test ! -s conftest.err'
21159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160   (eval $ac_try) 2>&5
21161   ac_status=$?
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); }; } &&
21164          { ac_try='test -s conftest.$ac_objext'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; }; then
21170   ac_cv_struct_sockaddr_sa_len=yes
21171 else
21172   echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ac_cv_struct_sockaddr_sa_len=no
21176 fi
21177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21178 fi
21179 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21180 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21181
21182  if test $ac_cv_struct_sockaddr_sa_len = yes; then
21183
21184 cat >>confdefs.h <<\_ACEOF
21185 #define HAVE_SA_LEN 1
21186 _ACEOF
21187
21188  fi
21189
21190
21191 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21192 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21193 if test "${ac_cv_ipv6_support+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202  #include <sys/types.h>
21203 #include <sys/socket.h>
21204 #include <netinet/in.h>
21205 int
21206 main ()
21207 {
21208 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21209  0;
21210   ;
21211   return 0;
21212 }
21213 _ACEOF
21214 rm -f conftest.$ac_objext conftest$ac_exeext
21215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21216   (eval $ac_link) 2>conftest.er1
21217   ac_status=$?
21218   grep -v '^ *+' conftest.er1 >conftest.err
21219   rm -f conftest.er1
21220   cat conftest.err >&5
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } &&
21223          { ac_try='test -z "$ac_c_werror_flag"
21224                          || test ! -s conftest.err'
21225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21226   (eval $ac_try) 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; } &&
21230          { ac_try='test -s conftest$ac_exeext'
21231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21232   (eval $ac_try) 2>&5
21233   ac_status=$?
21234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235   (exit $ac_status); }; }; then
21236   ac_cv_ipv6_support=yes
21237 else
21238   echo "$as_me: failed program was:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21240
21241 ac_cv_ipv6_support=no
21242 fi
21243 rm -f conftest.err conftest.$ac_objext \
21244       conftest$ac_exeext conftest.$ac_ext
21245 fi
21246 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21247 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21248
21249 if test "$ac_cv_ipv6_support" = yes; then
21250
21251 cat >>confdefs.h <<\_ACEOF
21252 #define HAVE_IPV6 1
21253 _ACEOF
21254
21255 fi
21256
21257
21258
21259
21260 for ac_func in strftime
21261 do
21262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21263 echo "$as_me:$LINENO: checking for $ac_func" >&5
21264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21265 if eval "test \"\${$as_ac_var+set}\" = set"; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h.  */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h.  */
21274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21276 #define $ac_func innocuous_$ac_func
21277
21278 /* System header to define __stub macros and hopefully few prototypes,
21279     which can conflict with char $ac_func (); below.
21280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21281     <limits.h> exists even on freestanding compilers.  */
21282
21283 #ifdef __STDC__
21284 # include <limits.h>
21285 #else
21286 # include <assert.h>
21287 #endif
21288
21289 #undef $ac_func
21290
21291 /* Override any gcc2 internal prototype to avoid an error.  */
21292 #ifdef __cplusplus
21293 extern "C"
21294 {
21295 #endif
21296 /* We use char because int might match the return type of a gcc2
21297    builtin and then its argument prototype would still apply.  */
21298 char $ac_func ();
21299 /* The GNU C library defines this for functions which it implements
21300     to always fail with ENOSYS.  Some functions are actually named
21301     something starting with __ and the normal name is an alias.  */
21302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21303 choke me
21304 #else
21305 char (*f) () = $ac_func;
21306 #endif
21307 #ifdef __cplusplus
21308 }
21309 #endif
21310
21311 int
21312 main ()
21313 {
21314 return f != $ac_func;
21315   ;
21316   return 0;
21317 }
21318 _ACEOF
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21321   (eval $ac_link) 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } &&
21328          { ac_try='test -z "$ac_c_werror_flag"
21329                          || test ! -s conftest.err'
21330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331   (eval $ac_try) 2>&5
21332   ac_status=$?
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); }; } &&
21335          { ac_try='test -s conftest$ac_exeext'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; }; then
21341   eval "$as_ac_var=yes"
21342 else
21343   echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21345
21346 eval "$as_ac_var=no"
21347 fi
21348 rm -f conftest.err conftest.$ac_objext \
21349       conftest$ac_exeext conftest.$ac_ext
21350 fi
21351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21353 if test `eval echo '${'$as_ac_var'}'` = yes; then
21354   cat >>confdefs.h <<_ACEOF
21355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21356 _ACEOF
21357
21358 else
21359   # strftime is in -lintl on SCO UNIX.
21360 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21361 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21362 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21363   echo $ECHO_N "(cached) $ECHO_C" >&6
21364 else
21365   ac_check_lib_save_LIBS=$LIBS
21366 LIBS="-lintl  $LIBS"
21367 cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373
21374 /* Override any gcc2 internal prototype to avoid an error.  */
21375 #ifdef __cplusplus
21376 extern "C"
21377 #endif
21378 /* We use char because int might match the return type of a gcc2
21379    builtin and then its argument prototype would still apply.  */
21380 char strftime ();
21381 int
21382 main ()
21383 {
21384 strftime ();
21385   ;
21386   return 0;
21387 }
21388 _ACEOF
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21391   (eval $ac_link) 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } &&
21398          { ac_try='test -z "$ac_c_werror_flag"
21399                          || test ! -s conftest.err'
21400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401   (eval $ac_try) 2>&5
21402   ac_status=$?
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); }; } &&
21405          { ac_try='test -s conftest$ac_exeext'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; }; then
21411   ac_cv_lib_intl_strftime=yes
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416 ac_cv_lib_intl_strftime=no
21417 fi
21418 rm -f conftest.err conftest.$ac_objext \
21419       conftest$ac_exeext conftest.$ac_ext
21420 LIBS=$ac_check_lib_save_LIBS
21421 fi
21422 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21423 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21424 if test $ac_cv_lib_intl_strftime = yes; then
21425   cat >>confdefs.h <<\_ACEOF
21426 #define HAVE_STRFTIME 1
21427 _ACEOF
21428
21429 LIBS="-lintl $LIBS"
21430 fi
21431
21432 fi
21433 done
21434
21435
21436 for ac_func in vprintf
21437 do
21438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21439 echo "$as_me:$LINENO: checking for $ac_func" >&5
21440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21441 if eval "test \"\${$as_ac_var+set}\" = set"; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h.  */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h.  */
21450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21452 #define $ac_func innocuous_$ac_func
21453
21454 /* System header to define __stub macros and hopefully few prototypes,
21455     which can conflict with char $ac_func (); below.
21456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457     <limits.h> exists even on freestanding compilers.  */
21458
21459 #ifdef __STDC__
21460 # include <limits.h>
21461 #else
21462 # include <assert.h>
21463 #endif
21464
21465 #undef $ac_func
21466
21467 /* Override any gcc2 internal prototype to avoid an error.  */
21468 #ifdef __cplusplus
21469 extern "C"
21470 {
21471 #endif
21472 /* We use char because int might match the return type of a gcc2
21473    builtin and then its argument prototype would still apply.  */
21474 char $ac_func ();
21475 /* The GNU C library defines this for functions which it implements
21476     to always fail with ENOSYS.  Some functions are actually named
21477     something starting with __ and the normal name is an alias.  */
21478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21479 choke me
21480 #else
21481 char (*f) () = $ac_func;
21482 #endif
21483 #ifdef __cplusplus
21484 }
21485 #endif
21486
21487 int
21488 main ()
21489 {
21490 return f != $ac_func;
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497   (eval $ac_link) 2>conftest.er1
21498   ac_status=$?
21499   grep -v '^ *+' conftest.er1 >conftest.err
21500   rm -f conftest.er1
21501   cat conftest.err >&5
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); } &&
21504          { ac_try='test -z "$ac_c_werror_flag"
21505                          || test ! -s conftest.err'
21506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507   (eval $ac_try) 2>&5
21508   ac_status=$?
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); }; } &&
21511          { ac_try='test -s conftest$ac_exeext'
21512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513   (eval $ac_try) 2>&5
21514   ac_status=$?
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); }; }; then
21517   eval "$as_ac_var=yes"
21518 else
21519   echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 eval "$as_ac_var=no"
21523 fi
21524 rm -f conftest.err conftest.$ac_objext \
21525       conftest$ac_exeext conftest.$ac_ext
21526 fi
21527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21529 if test `eval echo '${'$as_ac_var'}'` = yes; then
21530   cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21532 _ACEOF
21533
21534 echo "$as_me:$LINENO: checking for _doprnt" >&5
21535 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21536 if test "${ac_cv_func__doprnt+set}" = set; then
21537   echo $ECHO_N "(cached) $ECHO_C" >&6
21538 else
21539   cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h.  */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h.  */
21545 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21547 #define _doprnt innocuous__doprnt
21548
21549 /* System header to define __stub macros and hopefully few prototypes,
21550     which can conflict with char _doprnt (); below.
21551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21552     <limits.h> exists even on freestanding compilers.  */
21553
21554 #ifdef __STDC__
21555 # include <limits.h>
21556 #else
21557 # include <assert.h>
21558 #endif
21559
21560 #undef _doprnt
21561
21562 /* Override any gcc2 internal prototype to avoid an error.  */
21563 #ifdef __cplusplus
21564 extern "C"
21565 {
21566 #endif
21567 /* We use char because int might match the return type of a gcc2
21568    builtin and then its argument prototype would still apply.  */
21569 char _doprnt ();
21570 /* The GNU C library defines this for functions which it implements
21571     to always fail with ENOSYS.  Some functions are actually named
21572     something starting with __ and the normal name is an alias.  */
21573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21574 choke me
21575 #else
21576 char (*f) () = _doprnt;
21577 #endif
21578 #ifdef __cplusplus
21579 }
21580 #endif
21581
21582 int
21583 main ()
21584 {
21585 return f != _doprnt;
21586   ;
21587   return 0;
21588 }
21589 _ACEOF
21590 rm -f conftest.$ac_objext conftest$ac_exeext
21591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21592   (eval $ac_link) 2>conftest.er1
21593   ac_status=$?
21594   grep -v '^ *+' conftest.er1 >conftest.err
21595   rm -f conftest.er1
21596   cat conftest.err >&5
21597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598   (exit $ac_status); } &&
21599          { ac_try='test -z "$ac_c_werror_flag"
21600                          || test ! -s conftest.err'
21601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602   (eval $ac_try) 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest$ac_exeext'
21607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608   (eval $ac_try) 2>&5
21609   ac_status=$?
21610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611   (exit $ac_status); }; }; then
21612   ac_cv_func__doprnt=yes
21613 else
21614   echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21616
21617 ac_cv_func__doprnt=no
21618 fi
21619 rm -f conftest.err conftest.$ac_objext \
21620       conftest$ac_exeext conftest.$ac_ext
21621 fi
21622 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21623 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21624 if test $ac_cv_func__doprnt = yes; then
21625
21626 cat >>confdefs.h <<\_ACEOF
21627 #define HAVE_DOPRNT 1
21628 _ACEOF
21629
21630 fi
21631
21632 fi
21633 done
21634
21635
21636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21637 # for constant arguments.  Useless!
21638 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21639 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21640 if test "${ac_cv_working_alloca_h+set}" = set; then
21641   echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643   cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h.  */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h.  */
21649 #include <alloca.h>
21650 int
21651 main ()
21652 {
21653 char *p = (char *) alloca (2 * sizeof (int));
21654   ;
21655   return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext conftest$ac_exeext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21660   (eval $ac_link) 2>conftest.er1
21661   ac_status=$?
21662   grep -v '^ *+' conftest.er1 >conftest.err
21663   rm -f conftest.er1
21664   cat conftest.err >&5
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } &&
21667          { ac_try='test -z "$ac_c_werror_flag"
21668                          || test ! -s conftest.err'
21669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21670   (eval $ac_try) 2>&5
21671   ac_status=$?
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); }; } &&
21674          { ac_try='test -s conftest$ac_exeext'
21675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21676   (eval $ac_try) 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); }; }; then
21680   ac_cv_working_alloca_h=yes
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685 ac_cv_working_alloca_h=no
21686 fi
21687 rm -f conftest.err conftest.$ac_objext \
21688       conftest$ac_exeext conftest.$ac_ext
21689 fi
21690 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21691 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21692 if test $ac_cv_working_alloca_h = yes; then
21693
21694 cat >>confdefs.h <<\_ACEOF
21695 #define HAVE_ALLOCA_H 1
21696 _ACEOF
21697
21698 fi
21699
21700 echo "$as_me:$LINENO: checking for alloca" >&5
21701 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21702 if test "${ac_cv_func_alloca_works+set}" = set; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705   cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #ifdef __GNUC__
21712 # define alloca __builtin_alloca
21713 #else
21714 # ifdef _MSC_VER
21715 #  include <malloc.h>
21716 #  define alloca _alloca
21717 # else
21718 #  if HAVE_ALLOCA_H
21719 #   include <alloca.h>
21720 #  else
21721 #   ifdef _AIX
21722  #pragma alloca
21723 #   else
21724 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21725 char *alloca ();
21726 #    endif
21727 #   endif
21728 #  endif
21729 # endif
21730 #endif
21731
21732 int
21733 main ()
21734 {
21735 char *p = (char *) alloca (1);
21736   ;
21737   return 0;
21738 }
21739 _ACEOF
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21742   (eval $ac_link) 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } &&
21749          { ac_try='test -z "$ac_c_werror_flag"
21750                          || test ! -s conftest.err'
21751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21752   (eval $ac_try) 2>&5
21753   ac_status=$?
21754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755   (exit $ac_status); }; } &&
21756          { ac_try='test -s conftest$ac_exeext'
21757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758   (eval $ac_try) 2>&5
21759   ac_status=$?
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); }; }; then
21762   ac_cv_func_alloca_works=yes
21763 else
21764   echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ac_cv_func_alloca_works=no
21768 fi
21769 rm -f conftest.err conftest.$ac_objext \
21770       conftest$ac_exeext conftest.$ac_ext
21771 fi
21772 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21773 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21774
21775 if test $ac_cv_func_alloca_works = yes; then
21776
21777 cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_ALLOCA 1
21779 _ACEOF
21780
21781 else
21782   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21783 # that cause trouble.  Some versions do not even contain alloca or
21784 # contain a buggy version.  If you still want to use their alloca,
21785 # use ar to extract alloca.o from them instead of compiling alloca.c.
21786
21787 ALLOCA=alloca.$ac_objext
21788
21789 cat >>confdefs.h <<\_ACEOF
21790 #define C_ALLOCA 1
21791 _ACEOF
21792
21793
21794 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21795 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21796 if test "${ac_cv_os_cray+set}" = set; then
21797   echo $ECHO_N "(cached) $ECHO_C" >&6
21798 else
21799   cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h.  */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h.  */
21805 #if defined(CRAY) && ! defined(CRAY2)
21806 webecray
21807 #else
21808 wenotbecray
21809 #endif
21810
21811 _ACEOF
21812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21813   $EGREP "webecray" >/dev/null 2>&1; then
21814   ac_cv_os_cray=yes
21815 else
21816   ac_cv_os_cray=no
21817 fi
21818 rm -f conftest*
21819
21820 fi
21821 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21822 echo "${ECHO_T}$ac_cv_os_cray" >&6
21823 if test $ac_cv_os_cray = yes; then
21824   for ac_func in _getb67 GETB67 getb67; do
21825     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21826 echo "$as_me:$LINENO: checking for $ac_func" >&5
21827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21828 if eval "test \"\${$as_ac_var+set}\" = set"; then
21829   echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831   cat >conftest.$ac_ext <<_ACEOF
21832 /* confdefs.h.  */
21833 _ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h.  */
21837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21839 #define $ac_func innocuous_$ac_func
21840
21841 /* System header to define __stub macros and hopefully few prototypes,
21842     which can conflict with char $ac_func (); below.
21843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21844     <limits.h> exists even on freestanding compilers.  */
21845
21846 #ifdef __STDC__
21847 # include <limits.h>
21848 #else
21849 # include <assert.h>
21850 #endif
21851
21852 #undef $ac_func
21853
21854 /* Override any gcc2 internal prototype to avoid an error.  */
21855 #ifdef __cplusplus
21856 extern "C"
21857 {
21858 #endif
21859 /* We use char because int might match the return type of a gcc2
21860    builtin and then its argument prototype would still apply.  */
21861 char $ac_func ();
21862 /* The GNU C library defines this for functions which it implements
21863     to always fail with ENOSYS.  Some functions are actually named
21864     something starting with __ and the normal name is an alias.  */
21865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21866 choke me
21867 #else
21868 char (*f) () = $ac_func;
21869 #endif
21870 #ifdef __cplusplus
21871 }
21872 #endif
21873
21874 int
21875 main ()
21876 {
21877 return f != $ac_func;
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext conftest$ac_exeext
21883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21884   (eval $ac_link) 2>conftest.er1
21885   ac_status=$?
21886   grep -v '^ *+' conftest.er1 >conftest.err
21887   rm -f conftest.er1
21888   cat conftest.err >&5
21889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890   (exit $ac_status); } &&
21891          { ac_try='test -z "$ac_c_werror_flag"
21892                          || test ! -s conftest.err'
21893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894   (eval $ac_try) 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); }; } &&
21898          { ac_try='test -s conftest$ac_exeext'
21899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900   (eval $ac_try) 2>&5
21901   ac_status=$?
21902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903   (exit $ac_status); }; }; then
21904   eval "$as_ac_var=yes"
21905 else
21906   echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 eval "$as_ac_var=no"
21910 fi
21911 rm -f conftest.err conftest.$ac_objext \
21912       conftest$ac_exeext conftest.$ac_ext
21913 fi
21914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21916 if test `eval echo '${'$as_ac_var'}'` = yes; then
21917
21918 cat >>confdefs.h <<_ACEOF
21919 #define CRAY_STACKSEG_END $ac_func
21920 _ACEOF
21921
21922     break
21923 fi
21924
21925   done
21926 fi
21927
21928 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21929 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21930 if test "${ac_cv_c_stack_direction+set}" = set; then
21931   echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933   if test "$cross_compiling" = yes; then
21934   ac_cv_c_stack_direction=0
21935 else
21936   cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h.  */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h.  */
21942 int
21943 find_stack_direction ()
21944 {
21945   static char *addr = 0;
21946   auto char dummy;
21947   if (addr == 0)
21948     {
21949       addr = &dummy;
21950       return find_stack_direction ();
21951     }
21952   else
21953     return (&dummy > addr) ? 1 : -1;
21954 }
21955
21956 int
21957 main ()
21958 {
21959   exit (find_stack_direction () < 0);
21960 }
21961 _ACEOF
21962 rm -f conftest$ac_exeext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964   (eval $ac_link) 2>&5
21965   ac_status=$?
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969   (eval $ac_try) 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); }; }; then
21973   ac_cv_c_stack_direction=1
21974 else
21975   echo "$as_me: program exited with status $ac_status" >&5
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 ( exit $ac_status )
21980 ac_cv_c_stack_direction=-1
21981 fi
21982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21983 fi
21984 fi
21985 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21986 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21987
21988 cat >>confdefs.h <<_ACEOF
21989 #define STACK_DIRECTION $ac_cv_c_stack_direction
21990 _ACEOF
21991
21992
21993 fi
21994
21995 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21996 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21997 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21998 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21999   echo $ECHO_N "(cached) $ECHO_C" >&6
22000 else
22001   ac_check_lib_save_LIBS=$LIBS
22002 LIBS="-lsun  $LIBS"
22003 cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009
22010 /* Override any gcc2 internal prototype to avoid an error.  */
22011 #ifdef __cplusplus
22012 extern "C"
22013 #endif
22014 /* We use char because int might match the return type of a gcc2
22015    builtin and then its argument prototype would still apply.  */
22016 char getmntent ();
22017 int
22018 main ()
22019 {
22020 getmntent ();
22021   ;
22022   return 0;
22023 }
22024 _ACEOF
22025 rm -f conftest.$ac_objext conftest$ac_exeext
22026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22027   (eval $ac_link) 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } &&
22034          { ac_try='test -z "$ac_c_werror_flag"
22035                          || test ! -s conftest.err'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; } &&
22041          { ac_try='test -s conftest$ac_exeext'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   ac_cv_lib_sun_getmntent=yes
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 ac_cv_lib_sun_getmntent=no
22053 fi
22054 rm -f conftest.err conftest.$ac_objext \
22055       conftest$ac_exeext conftest.$ac_ext
22056 LIBS=$ac_check_lib_save_LIBS
22057 fi
22058 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
22059 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
22060 if test $ac_cv_lib_sun_getmntent = yes; then
22061   LIBS="-lsun $LIBS"
22062 else
22063   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
22064 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
22065 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068   ac_check_lib_save_LIBS=$LIBS
22069 LIBS="-lseq  $LIBS"
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h.  */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h.  */
22076
22077 /* Override any gcc2 internal prototype to avoid an error.  */
22078 #ifdef __cplusplus
22079 extern "C"
22080 #endif
22081 /* We use char because int might match the return type of a gcc2
22082    builtin and then its argument prototype would still apply.  */
22083 char getmntent ();
22084 int
22085 main ()
22086 {
22087 getmntent ();
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22094   (eval $ac_link) 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } &&
22101          { ac_try='test -z "$ac_c_werror_flag"
22102                          || test ! -s conftest.err'
22103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104   (eval $ac_try) 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); }; } &&
22108          { ac_try='test -s conftest$ac_exeext'
22109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110   (eval $ac_try) 2>&5
22111   ac_status=$?
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); }; }; then
22114   ac_cv_lib_seq_getmntent=yes
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 ac_cv_lib_seq_getmntent=no
22120 fi
22121 rm -f conftest.err conftest.$ac_objext \
22122       conftest$ac_exeext conftest.$ac_ext
22123 LIBS=$ac_check_lib_save_LIBS
22124 fi
22125 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
22126 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
22127 if test $ac_cv_lib_seq_getmntent = yes; then
22128   LIBS="-lseq $LIBS"
22129 else
22130   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
22131 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
22132 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
22133   echo $ECHO_N "(cached) $ECHO_C" >&6
22134 else
22135   ac_check_lib_save_LIBS=$LIBS
22136 LIBS="-lgen  $LIBS"
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143
22144 /* Override any gcc2 internal prototype to avoid an error.  */
22145 #ifdef __cplusplus
22146 extern "C"
22147 #endif
22148 /* We use char because int might match the return type of a gcc2
22149    builtin and then its argument prototype would still apply.  */
22150 char getmntent ();
22151 int
22152 main ()
22153 {
22154 getmntent ();
22155   ;
22156   return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22161   (eval $ac_link) 2>conftest.er1
22162   ac_status=$?
22163   grep -v '^ *+' conftest.er1 >conftest.err
22164   rm -f conftest.er1
22165   cat conftest.err >&5
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } &&
22168          { ac_try='test -z "$ac_c_werror_flag"
22169                          || test ! -s conftest.err'
22170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; } &&
22175          { ac_try='test -s conftest$ac_exeext'
22176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177   (eval $ac_try) 2>&5
22178   ac_status=$?
22179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180   (exit $ac_status); }; }; then
22181   ac_cv_lib_gen_getmntent=yes
22182 else
22183   echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186 ac_cv_lib_gen_getmntent=no
22187 fi
22188 rm -f conftest.err conftest.$ac_objext \
22189       conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22191 fi
22192 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22193 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22194 if test $ac_cv_lib_gen_getmntent = yes; then
22195   LIBS="-lgen $LIBS"
22196 fi
22197
22198 fi
22199
22200 fi
22201
22202
22203 for ac_func in getmntent
22204 do
22205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22206 echo "$as_me:$LINENO: checking for $ac_func" >&5
22207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22208 if eval "test \"\${$as_ac_var+set}\" = set"; then
22209   echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211   cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h.  */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h.  */
22217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22219 #define $ac_func innocuous_$ac_func
22220
22221 /* System header to define __stub macros and hopefully few prototypes,
22222     which can conflict with char $ac_func (); below.
22223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22224     <limits.h> exists even on freestanding compilers.  */
22225
22226 #ifdef __STDC__
22227 # include <limits.h>
22228 #else
22229 # include <assert.h>
22230 #endif
22231
22232 #undef $ac_func
22233
22234 /* Override any gcc2 internal prototype to avoid an error.  */
22235 #ifdef __cplusplus
22236 extern "C"
22237 {
22238 #endif
22239 /* We use char because int might match the return type of a gcc2
22240    builtin and then its argument prototype would still apply.  */
22241 char $ac_func ();
22242 /* The GNU C library defines this for functions which it implements
22243     to always fail with ENOSYS.  Some functions are actually named
22244     something starting with __ and the normal name is an alias.  */
22245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22246 choke me
22247 #else
22248 char (*f) () = $ac_func;
22249 #endif
22250 #ifdef __cplusplus
22251 }
22252 #endif
22253
22254 int
22255 main ()
22256 {
22257 return f != $ac_func;
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext conftest$ac_exeext
22263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22264   (eval $ac_link) 2>conftest.er1
22265   ac_status=$?
22266   grep -v '^ *+' conftest.er1 >conftest.err
22267   rm -f conftest.er1
22268   cat conftest.err >&5
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); } &&
22271          { ac_try='test -z "$ac_c_werror_flag"
22272                          || test ! -s conftest.err'
22273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22274   (eval $ac_try) 2>&5
22275   ac_status=$?
22276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277   (exit $ac_status); }; } &&
22278          { ac_try='test -s conftest$ac_exeext'
22279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22280   (eval $ac_try) 2>&5
22281   ac_status=$?
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); }; }; then
22284   eval "$as_ac_var=yes"
22285 else
22286   echo "$as_me: failed program was:" >&5
22287 sed 's/^/| /' conftest.$ac_ext >&5
22288
22289 eval "$as_ac_var=no"
22290 fi
22291 rm -f conftest.err conftest.$ac_objext \
22292       conftest$ac_exeext conftest.$ac_ext
22293 fi
22294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22296 if test `eval echo '${'$as_ac_var'}'` = yes; then
22297   cat >>confdefs.h <<_ACEOF
22298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22299 _ACEOF
22300
22301 fi
22302 done
22303
22304
22305 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22306 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22307 if test "${ac_cv_func_closedir_void+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310   if test "$cross_compiling" = yes; then
22311   ac_cv_func_closedir_void=yes
22312 else
22313   cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h.  */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h.  */
22319 $ac_includes_default
22320 #include <$ac_header_dirent>
22321 #ifndef __cplusplus
22322 int closedir ();
22323 #endif
22324
22325 int
22326 main ()
22327 {
22328 exit (closedir (opendir (".")) != 0);
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest$ac_exeext
22334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22335   (eval $ac_link) 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22340   (eval $ac_try) 2>&5
22341   ac_status=$?
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); }; }; then
22344   ac_cv_func_closedir_void=no
22345 else
22346   echo "$as_me: program exited with status $ac_status" >&5
22347 echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350 ( exit $ac_status )
22351 ac_cv_func_closedir_void=yes
22352 fi
22353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22354 fi
22355 fi
22356 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22357 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22358 if test $ac_cv_func_closedir_void = yes; then
22359
22360 cat >>confdefs.h <<\_ACEOF
22361 #define CLOSEDIR_VOID 1
22362 _ACEOF
22363
22364 fi
22365
22366 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22367 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22368 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22369   echo $ECHO_N "(cached) $ECHO_C" >&6
22370 else
22371   if test "$cross_compiling" = yes; then
22372   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22373 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22374    { (exit 1); exit 1; }; }
22375 else
22376   cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h.  */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h.  */
22382 #if HAVE_UNISTD_H
22383 # include <unistd.h>
22384 #endif
22385
22386 int
22387 main ()
22388 {
22389 /* If this system has a BSD-style setpgrp which takes arguments,
22390   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22391   exit successfully. */
22392   exit (setpgrp (1,1) == -1 ? 0 : 1);
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest$ac_exeext
22398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22399   (eval $ac_link) 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404   (eval $ac_try) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }; }; then
22408   ac_cv_func_setpgrp_void=no
22409 else
22410   echo "$as_me: program exited with status $ac_status" >&5
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414 ( exit $ac_status )
22415 ac_cv_func_setpgrp_void=yes
22416 fi
22417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22418 fi
22419 fi
22420 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22421 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22422 if test $ac_cv_func_setpgrp_void = yes; then
22423
22424 cat >>confdefs.h <<\_ACEOF
22425 #define SETPGRP_VOID 1
22426 _ACEOF
22427
22428 fi
22429                       # AC_FUNC_FNMATCH    dnl use local version
22430
22431
22432 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22433 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22434 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22435   echo $ECHO_N "(cached) $ECHO_C" >&6
22436 else
22437   ac_check_lib_save_LIBS=$LIBS
22438 LIBS="-lxpg4  $LIBS"
22439 cat >conftest.$ac_ext <<_ACEOF
22440 /* confdefs.h.  */
22441 _ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h.  */
22445
22446 /* Override any gcc2 internal prototype to avoid an error.  */
22447 #ifdef __cplusplus
22448 extern "C"
22449 #endif
22450 /* We use char because int might match the return type of a gcc2
22451    builtin and then its argument prototype would still apply.  */
22452 char setlocale ();
22453 int
22454 main ()
22455 {
22456 setlocale ();
22457   ;
22458   return 0;
22459 }
22460 _ACEOF
22461 rm -f conftest.$ac_objext conftest$ac_exeext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22463   (eval $ac_link) 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } &&
22470          { ac_try='test -z "$ac_c_werror_flag"
22471                          || test ! -s conftest.err'
22472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473   (eval $ac_try) 2>&5
22474   ac_status=$?
22475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476   (exit $ac_status); }; } &&
22477          { ac_try='test -s conftest$ac_exeext'
22478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479   (eval $ac_try) 2>&5
22480   ac_status=$?
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); }; }; then
22483   ac_cv_lib_xpg4_setlocale=yes
22484 else
22485   echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22487
22488 ac_cv_lib_xpg4_setlocale=no
22489 fi
22490 rm -f conftest.err conftest.$ac_objext \
22491       conftest$ac_exeext conftest.$ac_ext
22492 LIBS=$ac_check_lib_save_LIBS
22493 fi
22494 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22495 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22496 if test $ac_cv_lib_xpg4_setlocale = yes; then
22497   LIBS="$LIBS -lxpg4"
22498 fi
22499
22500
22501
22502
22503 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22504 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22505 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22506   echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508   ac_check_lib_save_LIBS=$LIBS
22509 LIBS="-lsun  $LIBS"
22510 cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h.  */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h.  */
22516
22517 /* Override any gcc2 internal prototype to avoid an error.  */
22518 #ifdef __cplusplus
22519 extern "C"
22520 #endif
22521 /* We use char because int might match the return type of a gcc2
22522    builtin and then its argument prototype would still apply.  */
22523 char getpwnam ();
22524 int
22525 main ()
22526 {
22527 getpwnam ();
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22534   (eval $ac_link) 2>conftest.er1
22535   ac_status=$?
22536   grep -v '^ *+' conftest.er1 >conftest.err
22537   rm -f conftest.er1
22538   cat conftest.err >&5
22539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540   (exit $ac_status); } &&
22541          { ac_try='test -z "$ac_c_werror_flag"
22542                          || test ! -s conftest.err'
22543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544   (eval $ac_try) 2>&5
22545   ac_status=$?
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); }; } &&
22548          { ac_try='test -s conftest$ac_exeext'
22549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22550   (eval $ac_try) 2>&5
22551   ac_status=$?
22552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553   (exit $ac_status); }; }; then
22554   ac_cv_lib_sun_getpwnam=yes
22555 else
22556   echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559 ac_cv_lib_sun_getpwnam=no
22560 fi
22561 rm -f conftest.err conftest.$ac_objext \
22562       conftest$ac_exeext conftest.$ac_ext
22563 LIBS=$ac_check_lib_save_LIBS
22564 fi
22565 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22566 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22567 if test $ac_cv_lib_sun_getpwnam = yes; then
22568   cat >>confdefs.h <<_ACEOF
22569 #define HAVE_LIBSUN 1
22570 _ACEOF
22571
22572   LIBS="-lsun $LIBS"
22573
22574 fi
22575
22576
22577
22578 for ac_header in zlib.h
22579 do
22580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22582   echo "$as_me:$LINENO: checking for $ac_header" >&5
22583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 fi
22587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22589 else
22590   # Is the header compilable?
22591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 $ac_includes_default
22600 #include <$ac_header>
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22604   (eval $ac_compile) 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag"
22612                          || test ! -s conftest.err'
22613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614   (eval $ac_try) 2>&5
22615   ac_status=$?
22616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617   (exit $ac_status); }; } &&
22618          { ac_try='test -s conftest.$ac_objext'
22619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620   (eval $ac_try) 2>&5
22621   ac_status=$?
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); }; }; then
22624   ac_header_compiler=yes
22625 else
22626   echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22628
22629 ac_header_compiler=no
22630 fi
22631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22633 echo "${ECHO_T}$ac_header_compiler" >&6
22634
22635 # Is the header present?
22636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22637 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
22645 _ACEOF
22646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } >/dev/null; then
22654   if test -s conftest.err; then
22655     ac_cpp_err=$ac_c_preproc_warn_flag
22656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22657   else
22658     ac_cpp_err=
22659   fi
22660 else
22661   ac_cpp_err=yes
22662 fi
22663 if test -z "$ac_cpp_err"; then
22664   ac_header_preproc=yes
22665 else
22666   echo "$as_me: failed program was:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22668
22669   ac_header_preproc=no
22670 fi
22671 rm -f conftest.err conftest.$ac_ext
22672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22673 echo "${ECHO_T}$ac_header_preproc" >&6
22674
22675 # So?  What about this header?
22676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22677   yes:no: )
22678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22682     ac_header_preproc=yes
22683     ;;
22684   no:yes:* )
22685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22697     (
22698       cat <<\_ASBOX
22699 ## ------------------------------------------ ##
22700 ## Report this to the AC_PACKAGE_NAME lists.  ##
22701 ## ------------------------------------------ ##
22702 _ASBOX
22703     ) |
22704       sed "s/^/$as_me: WARNING:     /" >&2
22705     ;;
22706 esac
22707 echo "$as_me:$LINENO: checking for $ac_header" >&5
22708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22710   echo $ECHO_N "(cached) $ECHO_C" >&6
22711 else
22712   eval "$as_ac_Header=\$ac_header_preproc"
22713 fi
22714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22716
22717 fi
22718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22719   cat >>confdefs.h <<_ACEOF
22720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22721 _ACEOF
22722
22723 fi
22724
22725 done
22726
22727 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22728 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22729 if test "${ac_cv_lib_z_deflate+set}" = set; then
22730   echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732   ac_check_lib_save_LIBS=$LIBS
22733 LIBS="-lz  $LIBS"
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740
22741 /* Override any gcc2 internal prototype to avoid an error.  */
22742 #ifdef __cplusplus
22743 extern "C"
22744 #endif
22745 /* We use char because int might match the return type of a gcc2
22746    builtin and then its argument prototype would still apply.  */
22747 char deflate ();
22748 int
22749 main ()
22750 {
22751 deflate ();
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22758   (eval $ac_link) 2>conftest.er1
22759   ac_status=$?
22760   grep -v '^ *+' conftest.er1 >conftest.err
22761   rm -f conftest.er1
22762   cat conftest.err >&5
22763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764   (exit $ac_status); } &&
22765          { ac_try='test -z "$ac_c_werror_flag"
22766                          || test ! -s conftest.err'
22767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768   (eval $ac_try) 2>&5
22769   ac_status=$?
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); }; } &&
22772          { ac_try='test -s conftest$ac_exeext'
22773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774   (eval $ac_try) 2>&5
22775   ac_status=$?
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); }; }; then
22778   ac_cv_lib_z_deflate=yes
22779 else
22780   echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783 ac_cv_lib_z_deflate=no
22784 fi
22785 rm -f conftest.err conftest.$ac_objext \
22786       conftest$ac_exeext conftest.$ac_ext
22787 LIBS=$ac_check_lib_save_LIBS
22788 fi
22789 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22790 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22791 if test $ac_cv_lib_z_deflate = yes; then
22792   FDLIBS="-lz"
22793 fi
22794
22795 have_zlib=no
22796 if test x$FDLIBS = x-lz; then
22797   cat >>confdefs.h <<\_ACEOF
22798 #define HAVE_LIBZ 1
22799 _ACEOF
22800
22801   have_zlib=yes
22802 fi
22803
22804 have_acl=no
22805 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22806   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22807 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22808 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22809   echo $ECHO_N "(cached) $ECHO_C" >&6
22810 fi
22811 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22812 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22813 else
22814   # Is the header compilable?
22815 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22816 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22817 cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h.  */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h.  */
22823 $ac_includes_default
22824 #include <sys/acl.h>
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22828   (eval $ac_compile) 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } &&
22835          { ac_try='test -z "$ac_c_werror_flag"
22836                          || test ! -s conftest.err'
22837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22838   (eval $ac_try) 2>&5
22839   ac_status=$?
22840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22841   (exit $ac_status); }; } &&
22842          { ac_try='test -s conftest.$ac_objext'
22843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22844   (eval $ac_try) 2>&5
22845   ac_status=$?
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); }; }; then
22848   ac_header_compiler=yes
22849 else
22850   echo "$as_me: failed program was:" >&5
22851 sed 's/^/| /' conftest.$ac_ext >&5
22852
22853 ac_header_compiler=no
22854 fi
22855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22857 echo "${ECHO_T}$ac_header_compiler" >&6
22858
22859 # Is the header present?
22860 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22861 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 #include <sys/acl.h>
22869 _ACEOF
22870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22871   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } >/dev/null; then
22878   if test -s conftest.err; then
22879     ac_cpp_err=$ac_c_preproc_warn_flag
22880     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22881   else
22882     ac_cpp_err=
22883   fi
22884 else
22885   ac_cpp_err=yes
22886 fi
22887 if test -z "$ac_cpp_err"; then
22888   ac_header_preproc=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893   ac_header_preproc=no
22894 fi
22895 rm -f conftest.err conftest.$ac_ext
22896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22897 echo "${ECHO_T}$ac_header_preproc" >&6
22898
22899 # So?  What about this header?
22900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22901   yes:no: )
22902     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22903 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22904     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22905 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22906     ac_header_preproc=yes
22907     ;;
22908   no:yes:* )
22909     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22910 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22911     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
22912 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
22913     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22914 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22915     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
22916 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22917     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22918 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22919     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22920 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22921     (
22922       cat <<\_ASBOX
22923 ## ------------------------------------------ ##
22924 ## Report this to the AC_PACKAGE_NAME lists.  ##
22925 ## ------------------------------------------ ##
22926 _ASBOX
22927     ) |
22928       sed "s/^/$as_me: WARNING:     /" >&2
22929     ;;
22930 esac
22931 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22932 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22933 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22934   echo $ECHO_N "(cached) $ECHO_C" >&6
22935 else
22936   ac_cv_header_sys_acl_h=$ac_header_preproc
22937 fi
22938 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22939 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22940
22941 fi
22942
22943
22944 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22945 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22946 if test "${ac_cv_func_acl_get_file+set}" = set; then
22947   echo $ECHO_N "(cached) $ECHO_C" >&6
22948 else
22949   cat >conftest.$ac_ext <<_ACEOF
22950 /* confdefs.h.  */
22951 _ACEOF
22952 cat confdefs.h >>conftest.$ac_ext
22953 cat >>conftest.$ac_ext <<_ACEOF
22954 /* end confdefs.h.  */
22955 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22957 #define acl_get_file innocuous_acl_get_file
22958
22959 /* System header to define __stub macros and hopefully few prototypes,
22960     which can conflict with char acl_get_file (); below.
22961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22962     <limits.h> exists even on freestanding compilers.  */
22963
22964 #ifdef __STDC__
22965 # include <limits.h>
22966 #else
22967 # include <assert.h>
22968 #endif
22969
22970 #undef acl_get_file
22971
22972 /* Override any gcc2 internal prototype to avoid an error.  */
22973 #ifdef __cplusplus
22974 extern "C"
22975 {
22976 #endif
22977 /* We use char because int might match the return type of a gcc2
22978    builtin and then its argument prototype would still apply.  */
22979 char acl_get_file ();
22980 /* The GNU C library defines this for functions which it implements
22981     to always fail with ENOSYS.  Some functions are actually named
22982     something starting with __ and the normal name is an alias.  */
22983 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22984 choke me
22985 #else
22986 char (*f) () = acl_get_file;
22987 #endif
22988 #ifdef __cplusplus
22989 }
22990 #endif
22991
22992 int
22993 main ()
22994 {
22995 return f != acl_get_file;
22996   ;
22997   return 0;
22998 }
22999 _ACEOF
23000 rm -f conftest.$ac_objext conftest$ac_exeext
23001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23002   (eval $ac_link) 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } &&
23009          { ac_try='test -z "$ac_c_werror_flag"
23010                          || test ! -s conftest.err'
23011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012   (eval $ac_try) 2>&5
23013   ac_status=$?
23014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015   (exit $ac_status); }; } &&
23016          { ac_try='test -s conftest$ac_exeext'
23017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018   (eval $ac_try) 2>&5
23019   ac_status=$?
23020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021   (exit $ac_status); }; }; then
23022   ac_cv_func_acl_get_file=yes
23023 else
23024   echo "$as_me: failed program was:" >&5
23025 sed 's/^/| /' conftest.$ac_ext >&5
23026
23027 ac_cv_func_acl_get_file=no
23028 fi
23029 rm -f conftest.err conftest.$ac_objext \
23030       conftest$ac_exeext conftest.$ac_ext
23031 fi
23032 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
23033 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
23034 if test $ac_cv_func_acl_get_file = yes; then
23035   have_acl=yes
23036 else
23037   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
23038 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
23039 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
23040   echo $ECHO_N "(cached) $ECHO_C" >&6
23041 else
23042   ac_check_lib_save_LIBS=$LIBS
23043 LIBS="-lacl  $LIBS"
23044 cat >conftest.$ac_ext <<_ACEOF
23045 /* confdefs.h.  */
23046 _ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h.  */
23050
23051 /* Override any gcc2 internal prototype to avoid an error.  */
23052 #ifdef __cplusplus
23053 extern "C"
23054 #endif
23055 /* We use char because int might match the return type of a gcc2
23056    builtin and then its argument prototype would still apply.  */
23057 char acl_get_file ();
23058 int
23059 main ()
23060 {
23061 acl_get_file ();
23062   ;
23063   return 0;
23064 }
23065 _ACEOF
23066 rm -f conftest.$ac_objext conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068   (eval $ac_link) 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -z "$ac_c_werror_flag"
23076                          || test ! -s conftest.err'
23077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078   (eval $ac_try) 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; } &&
23082          { ac_try='test -s conftest$ac_exeext'
23083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23084   (eval $ac_try) 2>&5
23085   ac_status=$?
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); }; }; then
23088   ac_cv_lib_acl_acl_get_file=yes
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 ac_cv_lib_acl_acl_get_file=no
23094 fi
23095 rm -f conftest.err conftest.$ac_objext \
23096       conftest$ac_exeext conftest.$ac_ext
23097 LIBS=$ac_check_lib_save_LIBS
23098 fi
23099 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
23100 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
23101 if test $ac_cv_lib_acl_acl_get_file = yes; then
23102   have_acl=yes; FDLIBS="-lacl $FDLIBS"
23103 fi
23104
23105
23106 fi
23107
23108 if test $have_acl = yes; then
23109    cat >>confdefs.h <<\_ACEOF
23110 #define HAVE_ACL 1
23111 _ACEOF
23112
23113 fi
23114
23115 PTHREAD_LIB=""
23116 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
23117 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
23118 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
23119   echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121   ac_check_lib_save_LIBS=$LIBS
23122 LIBS="-lpthread  $LIBS"
23123 cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129
23130 /* Override any gcc2 internal prototype to avoid an error.  */
23131 #ifdef __cplusplus
23132 extern "C"
23133 #endif
23134 /* We use char because int might match the return type of a gcc2
23135    builtin and then its argument prototype would still apply.  */
23136 char pthread_create ();
23137 int
23138 main ()
23139 {
23140 pthread_create ();
23141   ;
23142   return 0;
23143 }
23144 _ACEOF
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23147   (eval $ac_link) 2>conftest.er1
23148   ac_status=$?
23149   grep -v '^ *+' conftest.er1 >conftest.err
23150   rm -f conftest.er1
23151   cat conftest.err >&5
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } &&
23154          { ac_try='test -z "$ac_c_werror_flag"
23155                          || test ! -s conftest.err'
23156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); }; } &&
23161          { ac_try='test -s conftest$ac_exeext'
23162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23163   (eval $ac_try) 2>&5
23164   ac_status=$?
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); }; }; then
23167   ac_cv_lib_pthread_pthread_create=yes
23168 else
23169   echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23171
23172 ac_cv_lib_pthread_pthread_create=no
23173 fi
23174 rm -f conftest.err conftest.$ac_objext \
23175       conftest$ac_exeext conftest.$ac_ext
23176 LIBS=$ac_check_lib_save_LIBS
23177 fi
23178 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23179 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23180 if test $ac_cv_lib_pthread_pthread_create = yes; then
23181   PTHREAD_LIB="-lpthread"
23182 else
23183   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23184 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23185 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   ac_check_lib_save_LIBS=$LIBS
23189 LIBS="-lpthreads  $LIBS"
23190 cat >conftest.$ac_ext <<_ACEOF
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196
23197 /* Override any gcc2 internal prototype to avoid an error.  */
23198 #ifdef __cplusplus
23199 extern "C"
23200 #endif
23201 /* We use char because int might match the return type of a gcc2
23202    builtin and then its argument prototype would still apply.  */
23203 char pthread_create ();
23204 int
23205 main ()
23206 {
23207 pthread_create ();
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23214   (eval $ac_link) 2>conftest.er1
23215   ac_status=$?
23216   grep -v '^ *+' conftest.er1 >conftest.err
23217   rm -f conftest.er1
23218   cat conftest.err >&5
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); } &&
23221          { ac_try='test -z "$ac_c_werror_flag"
23222                          || test ! -s conftest.err'
23223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224   (eval $ac_try) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); }; } &&
23228          { ac_try='test -s conftest$ac_exeext'
23229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230   (eval $ac_try) 2>&5
23231   ac_status=$?
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); }; }; then
23234   ac_cv_lib_pthreads_pthread_create=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_lib_pthreads_pthread_create=no
23240 fi
23241 rm -f conftest.err conftest.$ac_objext \
23242       conftest$ac_exeext conftest.$ac_ext
23243 LIBS=$ac_check_lib_save_LIBS
23244 fi
23245 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23246 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23247 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23248   PTHREAD_LIB="-lpthreads"
23249 else
23250   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23251 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23252 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   ac_check_lib_save_LIBS=$LIBS
23256 LIBS="-lc_r  $LIBS"
23257 cat >conftest.$ac_ext <<_ACEOF
23258 /* confdefs.h.  */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h.  */
23263
23264 /* Override any gcc2 internal prototype to avoid an error.  */
23265 #ifdef __cplusplus
23266 extern "C"
23267 #endif
23268 /* We use char because int might match the return type of a gcc2
23269    builtin and then its argument prototype would still apply.  */
23270 char pthread_create ();
23271 int
23272 main ()
23273 {
23274 pthread_create ();
23275   ;
23276   return 0;
23277 }
23278 _ACEOF
23279 rm -f conftest.$ac_objext conftest$ac_exeext
23280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23281   (eval $ac_link) 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } &&
23288          { ac_try='test -z "$ac_c_werror_flag"
23289                          || test ! -s conftest.err'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; } &&
23295          { ac_try='test -s conftest$ac_exeext'
23296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297   (eval $ac_try) 2>&5
23298   ac_status=$?
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); }; }; then
23301   ac_cv_lib_c_r_pthread_create=yes
23302 else
23303   echo "$as_me: failed program was:" >&5
23304 sed 's/^/| /' conftest.$ac_ext >&5
23305
23306 ac_cv_lib_c_r_pthread_create=no
23307 fi
23308 rm -f conftest.err conftest.$ac_objext \
23309       conftest$ac_exeext conftest.$ac_ext
23310 LIBS=$ac_check_lib_save_LIBS
23311 fi
23312 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23313 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23314 if test $ac_cv_lib_c_r_pthread_create = yes; then
23315   PTHREAD_LIB="-lc_r"
23316 else
23317   echo "$as_me:$LINENO: checking for pthread_create" >&5
23318 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23319 if test "${ac_cv_func_pthread_create+set}" = set; then
23320   echo $ECHO_N "(cached) $ECHO_C" >&6
23321 else
23322   cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23330 #define pthread_create innocuous_pthread_create
23331
23332 /* System header to define __stub macros and hopefully few prototypes,
23333     which can conflict with char pthread_create (); below.
23334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23335     <limits.h> exists even on freestanding compilers.  */
23336
23337 #ifdef __STDC__
23338 # include <limits.h>
23339 #else
23340 # include <assert.h>
23341 #endif
23342
23343 #undef pthread_create
23344
23345 /* Override any gcc2 internal prototype to avoid an error.  */
23346 #ifdef __cplusplus
23347 extern "C"
23348 {
23349 #endif
23350 /* We use char because int might match the return type of a gcc2
23351    builtin and then its argument prototype would still apply.  */
23352 char pthread_create ();
23353 /* The GNU C library defines this for functions which it implements
23354     to always fail with ENOSYS.  Some functions are actually named
23355     something starting with __ and the normal name is an alias.  */
23356 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23357 choke me
23358 #else
23359 char (*f) () = pthread_create;
23360 #endif
23361 #ifdef __cplusplus
23362 }
23363 #endif
23364
23365 int
23366 main ()
23367 {
23368 return f != pthread_create;
23369   ;
23370   return 0;
23371 }
23372 _ACEOF
23373 rm -f conftest.$ac_objext conftest$ac_exeext
23374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23375   (eval $ac_link) 2>conftest.er1
23376   ac_status=$?
23377   grep -v '^ *+' conftest.er1 >conftest.err
23378   rm -f conftest.er1
23379   cat conftest.err >&5
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } &&
23382          { ac_try='test -z "$ac_c_werror_flag"
23383                          || test ! -s conftest.err'
23384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23385   (eval $ac_try) 2>&5
23386   ac_status=$?
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); }; } &&
23389          { ac_try='test -s conftest$ac_exeext'
23390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391   (eval $ac_try) 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; }; then
23395   ac_cv_func_pthread_create=yes
23396 else
23397   echo "$as_me: failed program was:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23399
23400 ac_cv_func_pthread_create=no
23401 fi
23402 rm -f conftest.err conftest.$ac_objext \
23403       conftest$ac_exeext conftest.$ac_ext
23404 fi
23405 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23406 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23407
23408
23409 fi
23410
23411
23412 fi
23413
23414
23415 fi
23416
23417
23418
23419 cat >>confdefs.h <<\_ACEOF
23420 #define FDLIBS 1
23421 _ACEOF
23422
23423
23424
23425 CFLAGS=${CFLAGS--O}
23426 LDFLAGS=${LDFLAGS--O}
23427 DB_LIBS="${SQL_LFLAGS}"
23428
23429 CPPFLAGS="$CPPFLAGS"
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445 OBJLIST=
23446
23447
23448 lld="lld"
23449 llu="llu"
23450
23451 WCFLAGS=
23452 WLDFLAGS=
23453
23454 #
23455 # Finally we set appropriate distribution specific
23456 #  variables and defaults
23457 #
23458 # PFILES are platform specific files
23459 PFILES="platforms/Makefile"
23460 PSCMD="ps -e"
23461 WIN32=
23462 MACOSX=
23463 hostname=`uname -n | cut -d '.' -f 1`
23464 case "$DISTNAME" in
23465 aix)
23466         DISTVER=`uname -r`
23467         PSCMD="ps -e -o pid,comm"
23468         PFILES="${PFILES} \
23469            platforms/aix/Makefile"
23470         TAPEDRIVE="/dev/rmt0.1"
23471   ;;
23472 alpha)
23473         DISTVER=`uname -r`
23474         PTHREAD_LIB="-lpthread -lexc"
23475         if test "${CC}" = "gcc" ; then
23476            lld="lld"
23477            llu="llu"
23478         else
23479            lld="ld"
23480            llu="lu"
23481         fi
23482         TAPEDRIVE="/dev/nrmt0"
23483   ;;
23484 bsdi)
23485         DISTVER=`uname -a |awk '{print $3}'`
23486         TAPEDRIVE="/dev/nrmt0"
23487         PTHREAD_LIB="-pthread"
23488         CFLAGS="${CFLAGS} -pthread"
23489         PSCMD="ps -ax -o pid,command"
23490         lld="qd"
23491         llu="qu"
23492         PFILES="${PFILES} \
23493             platforms/bsdi/Makefile \
23494             platforms/bsdi/bacula-fd \
23495             platforms/bsdi/bacula-sd \
23496             platforms/bsdi/bacula-dir"
23497         largefile_support="yes"
23498   ;;
23499 cygwin)
23500         DISTVER=`uname -a |awk '{print $3}'`
23501         TAPEDRIVE="/dev/nrst0"
23502         WIN32=win32
23503         WCFLAGS="-mwindows"
23504         WLDFLAGS="-mwindows"
23505   ;;
23506 darwin)
23507         DISTVER=`uname -r`
23508         TAPEDRIVE="/dev/nst0"
23509         PSCMD="ps -e -o pid,command"
23510         MACOSX=macosx
23511         PFILES="${PFILES} \
23512            platforms/darwin/Makefile"
23513   ;;
23514 debian)
23515         DISTVER=`cat /etc/debian_version`
23516         TAPEDRIVE="/dev/nrst0"
23517         PSCMD="ps -e -o pid,command"
23518   ;;
23519 freebsd)
23520         DISTVER=`uname -a |awk '{print $3}'`
23521         VER=`echo $DISTVER | cut -c 1`
23522         if test x$VER = x4 ; then
23523            PTHREAD_LIB="-pthread"
23524            CFLAGS="${CFLAGS} -pthread"
23525         fi
23526         lld="qd"
23527         llu="qu"
23528         TAPEDRIVE="/dev/nrsa0"
23529         PSCMD="ps -ax -o pid,command"
23530         PFILES="${PFILES} \
23531             platforms/freebsd/Makefile \
23532             platforms/freebsd/bacula-fd \
23533             platforms/freebsd/bacula-sd \
23534             platforms/freebsd/bacula-dir"
23535         largefile_support="yes"
23536   ;;
23537 hpux)
23538         PSCMD="UNIX95=1 ps -e -o pid,comm"
23539         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23540         DISTVER=`uname -r`
23541         TAPEDRIVE="/dev/rmt/0hnb"
23542         PTHREAD_LIB="-lpthread"
23543         cat >>confdefs.h <<\_ACEOF
23544 #define _INCLUDE_LONGLONG 1
23545 _ACEOF
23546
23547   ;;
23548 irix)
23549         DISTVER=`uname -r`
23550         TAPEDRIVE="/dev/rmt/0cbn"
23551         PSCMD="ps -e -o pid,comm"
23552         PFILES="${PFILES} \
23553             platforms/irix/Makefile \
23554             platforms/irix/bacula-fd \
23555             platforms/irix/bacula-sd \
23556             platforms/irix/bacula-dir"
23557   ;;
23558 netbsd)
23559         DISTVER=`uname -a |awk '{print $3}'`
23560         lld="qd"
23561         llu="qu"
23562         TAPEDRIVE="/dev/nrst0"
23563         PSCMD="ps -ax -o pid,command"
23564         PTHREAD_LIB="-pthread"
23565         CFLAGS="${CFLAGS} -pthread"
23566   ;;
23567 openbsd)
23568         DISTVER=`uname -a |awk '{print $3}'`
23569         lld="qd"
23570         llu="qu"
23571         TAPEDRIVE="/dev/nrst0"
23572         PSCMD="ps -ax -o pid,command"
23573         PTHREAD_LIB="-pthread"
23574         CFLAGS="${CFLAGS} -pthread"
23575         PFILES="${PFILES} \
23576             platforms/openbsd/Makefile \
23577             platforms/openbsd/bacula-fd \
23578             platforms/openbsd/bacula-sd \
23579             platforms/openbsd/bacula-dir"
23580   ;;
23581 redhat)
23582         if test -f /etc/whitebox-release ; then
23583            f=/etc/whitebox-release
23584         else
23585            f=/etc/redhat-release
23586         fi
23587         if test `cat $f | grep release |\
23588                    cut -f 3 -d ' '`x = "Enterprise"x ; then
23589            DISTVER="Enterprise "`cat $f | grep release |\
23590                     cut -f 6 -d ' '`
23591         else
23592             DISTVER=`cat /etc/redhat-release | grep release |\
23593                      cut -f 5 -d ' '`
23594         fi
23595         TAPEDRIVE="/dev/nst0"
23596         PSCMD="ps -e -o pid,command"
23597         PFILES="${PFILES} \
23598             platforms/redhat/Makefile \
23599             platforms/redhat/bacula-fd \
23600             platforms/redhat/bacula-sd \
23601             platforms/redhat/bacula-dir \
23602             platforms/redhat/bacula.spec \
23603             "
23604         hostname=`hostname -s`
23605   ;;
23606 mandrake)
23607         DISTVER=`cat /etc/mandrake-release | grep release |\
23608            cut -f 5 -d ' '`
23609         TAPEDRIVE="/dev/nst0"
23610         PSCMD="ps -e -o pid,command"
23611         PFILES="${PFILES} \
23612             platforms/mandrake/Makefile \
23613             platforms/mandrake/bacula-fd \
23614             platforms/mandrake/bacula-sd \
23615             platforms/mandrake/bacula-dir \
23616             platforms/mandrake/bacula.spec \
23617             "
23618   ;;
23619 gentoo)
23620         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23621         TAPEDRIVE="/dev/nst0"
23622         PSCMD="ps -e -o pid,command"
23623         PFILES="${PFILES} \
23624             platforms/gentoo/Makefile \
23625          platforms/gentoo/bacula-init \
23626             platforms/gentoo/bacula-fd \
23627             platforms/gentoo/bacula-sd \
23628             platforms/gentoo/bacula-dir"
23629   ;;
23630 slackware)
23631         DISTVER=`cat /etc/slackware-version`
23632         TAPEDRIVE="/dev/nst0"
23633         PSCMD="ps -e -o pid,command"
23634         PFILES="${PFILES} \
23635             platforms/slackware/Makefile \
23636             platforms/slackware/rc.bacula-fd \
23637             platforms/slackware/rc.bacula-sd \
23638             platforms/slackware/rc.bacula-dir\
23639             platforms/slackware/functions.bacula"
23640   ;;
23641 solaris)
23642         DISTVER=`uname -r`
23643         TAPEDRIVE="/dev/rmt/0cbn"
23644         PSCMD="ps -e -o pid,comm"
23645         PFILES="${PFILES} \
23646             platforms/solaris/Makefile \
23647             platforms/solaris/bacula-fd \
23648             platforms/solaris/bacula-sd \
23649             platforms/solaris/bacula-dir"
23650         if test x$DISTVER = x5.6 ; then
23651             cat >>confdefs.h <<\_ACEOF
23652 #define HAVE_OLD_SOCKOPT 1
23653 _ACEOF
23654
23655         fi
23656         LIBS="$LIBS -lresolv"
23657   ;;
23658 suse)
23659         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23660             cut -f 3 -d ' '`
23661         TAPEDRIVE="/dev/nst0"
23662         PSCMD="ps -e -o pid,command"
23663         PFILES="${PFILES} \
23664             platforms/suse/Makefile \
23665             platforms/suse/bacula-fd \
23666             platforms/suse/bacula-sd \
23667             platforms/suse/bacula-dir \
23668             platforms/suse/bacula \
23669             platforms/suse/bacula.spec"
23670   ;;
23671 suse5)
23672         DISTNAME=suse
23673         DISTVER=5.x
23674         TAPEDRIVE="/dev/nst0"
23675         PSCMD="ps -e -o pid,command"
23676         PFILES="${PFILES} \
23677             platforms/suse/Makefile \
23678             platforms/suse/bacula-fd \
23679             platforms/suse/bacula-sd \
23680             platforms/suse/bacula-dir"
23681   ;;
23682 unknown)
23683         DISTVER=unknown
23684         TAPEDRIVE="/dev/nst0"
23685   ;;
23686 *)
23687   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23688   ;;
23689 esac
23690
23691
23692
23693 LIBS="$PTHREAD_LIB $LIBS"
23694
23695 cat >>confdefs.h <<_ACEOF
23696 #define lld "$lld"
23697 _ACEOF
23698
23699 cat >>confdefs.h <<_ACEOF
23700 #define llu "$llu"
23701 _ACEOF
23702
23703
23704
23705
23706
23707
23708
23709
23710 MCOMMON=./autoconf/Make.common
23711
23712
23713 if test "x${subsysdir}" = "x${sbindir}" ; then
23714    echo " "
23715    echo " "
23716    echo "You have set both --sbindir and --with-subsys-dir"
23717    echo "  equal to: ${subsysdir} "
23718    echo "This is not permitted. Please reconfigure."
23719    echo " "
23720    echo "Aborting configuration ..."
23721    echo " "
23722    echo " "
23723    exit 1
23724 fi
23725
23726                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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"
23727           ac_config_commands="$ac_config_commands default"
23728 cat >confcache <<\_ACEOF
23729 # This file is a shell script that caches the results of configure
23730 # tests run on this system so they can be shared between configure
23731 # scripts and configure runs, see configure's option --config-cache.
23732 # It is not useful on other systems.  If it contains results you don't
23733 # want to keep, you may remove or edit it.
23734 #
23735 # config.status only pays attention to the cache file if you give it
23736 # the --recheck option to rerun configure.
23737 #
23738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23740 # following values.
23741
23742 _ACEOF
23743
23744 # The following way of writing the cache mishandles newlines in values,
23745 # but we know of no workaround that is simple, portable, and efficient.
23746 # So, don't put newlines in cache variables' values.
23747 # Ultrix sh set writes to stderr and can't be redirected directly,
23748 # and sets the high bit in the cache file unless we assign to the vars.
23749 {
23750   (set) 2>&1 |
23751     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23752     *ac_space=\ *)
23753       # `set' does not quote correctly, so add quotes (double-quote
23754       # substitution turns \\\\ into \\, and sed turns \\ into \).
23755       sed -n \
23756         "s/'/'\\\\''/g;
23757           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23758       ;;
23759     *)
23760       # `set' quotes correctly as required by POSIX, so do not add quotes.
23761       sed -n \
23762         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23763       ;;
23764     esac;
23765 } |
23766   sed '
23767      t clear
23768      : clear
23769      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23770      t end
23771      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23772      : end' >>confcache
23773 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23774   if test -w $cache_file; then
23775     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23776     cat confcache >$cache_file
23777   else
23778     echo "not updating unwritable cache $cache_file"
23779   fi
23780 fi
23781 rm -f confcache
23782
23783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23784 # Let make expand exec_prefix.
23785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23786
23787 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23788 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23789 # trailing colons and then remove the whole line if VPATH becomes empty
23790 # (actually we leave an empty line to preserve line numbers).
23791 if test "x$srcdir" = x.; then
23792   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23793 s/:*\$(srcdir):*/:/;
23794 s/:*\${srcdir}:*/:/;
23795 s/:*@srcdir@:*/:/;
23796 s/^\([^=]*=[     ]*\):*/\1/;
23797 s/:*$//;
23798 s/^[^=]*=[       ]*$//;
23799 }'
23800 fi
23801
23802 DEFS=-DHAVE_CONFIG_H
23803
23804 ac_libobjs=
23805 ac_ltlibobjs=
23806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23807   # 1. Remove the extension, and $U if already installed.
23808   ac_i=`echo "$ac_i" |
23809          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23810   # 2. Add them.
23811   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23812   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23813 done
23814 LIBOBJS=$ac_libobjs
23815
23816 LTLIBOBJS=$ac_ltlibobjs
23817
23818
23819
23820 : ${CONFIG_STATUS=./config.status}
23821 ac_clean_files_save=$ac_clean_files
23822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23823 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23824 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23825 cat >$CONFIG_STATUS <<_ACEOF
23826 #! $SHELL
23827 # Generated by $as_me.
23828 # Run this file to recreate the current configuration.
23829 # Compiler output produced by configure, useful for debugging
23830 # configure, is in config.log if it exists.
23831
23832 debug=false
23833 ac_cs_recheck=false
23834 ac_cs_silent=false
23835 SHELL=\${CONFIG_SHELL-$SHELL}
23836 _ACEOF
23837
23838 cat >>$CONFIG_STATUS <<\_ACEOF
23839 ## --------------------- ##
23840 ## M4sh Initialization.  ##
23841 ## --------------------- ##
23842
23843 # Be Bourne compatible
23844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23845   emulate sh
23846   NULLCMD=:
23847   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23848   # is contrary to our usage.  Disable this feature.
23849   alias -g '${1+"$@"}'='"$@"'
23850 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23851   set -o posix
23852 fi
23853 DUALCASE=1; export DUALCASE # for MKS sh
23854
23855 # Support unset when possible.
23856 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23857   as_unset=unset
23858 else
23859   as_unset=false
23860 fi
23861
23862
23863 # Work around bugs in pre-3.0 UWIN ksh.
23864 $as_unset ENV MAIL MAILPATH
23865 PS1='$ '
23866 PS2='> '
23867 PS4='+ '
23868
23869 # NLS nuisances.
23870 for as_var in \
23871   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23872   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23873   LC_TELEPHONE LC_TIME
23874 do
23875   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23876     eval $as_var=C; export $as_var
23877   else
23878     $as_unset $as_var
23879   fi
23880 done
23881
23882 # Required to use basename.
23883 if expr a : '\(a\)' >/dev/null 2>&1; then
23884   as_expr=expr
23885 else
23886   as_expr=false
23887 fi
23888
23889 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23890   as_basename=basename
23891 else
23892   as_basename=false
23893 fi
23894
23895
23896 # Name of the executable.
23897 as_me=`$as_basename "$0" ||
23898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23899          X"$0" : 'X\(//\)$' \| \
23900          X"$0" : 'X\(/\)$' \| \
23901          .     : '\(.\)' 2>/dev/null ||
23902 echo X/"$0" |
23903     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23904           /^X\/\(\/\/\)$/{ s//\1/; q; }
23905           /^X\/\(\/\).*/{ s//\1/; q; }
23906           s/.*/./; q'`
23907
23908
23909 # PATH needs CR, and LINENO needs CR and PATH.
23910 # Avoid depending upon Character Ranges.
23911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23914 as_cr_digits='0123456789'
23915 as_cr_alnum=$as_cr_Letters$as_cr_digits
23916
23917 # The user is always right.
23918 if test "${PATH_SEPARATOR+set}" != set; then
23919   echo "#! /bin/sh" >conf$$.sh
23920   echo  "exit 0"   >>conf$$.sh
23921   chmod +x conf$$.sh
23922   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23923     PATH_SEPARATOR=';'
23924   else
23925     PATH_SEPARATOR=:
23926   fi
23927   rm -f conf$$.sh
23928 fi
23929
23930
23931   as_lineno_1=$LINENO
23932   as_lineno_2=$LINENO
23933   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23934   test "x$as_lineno_1" != "x$as_lineno_2" &&
23935   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23936   # Find who we are.  Look in the path if we contain no path at all
23937   # relative or not.
23938   case $0 in
23939     *[\\/]* ) as_myself=$0 ;;
23940     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23941 for as_dir in $PATH
23942 do
23943   IFS=$as_save_IFS
23944   test -z "$as_dir" && as_dir=.
23945   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23946 done
23947
23948        ;;
23949   esac
23950   # We did not find ourselves, most probably we were run as `sh COMMAND'
23951   # in which case we are not to be found in the path.
23952   if test "x$as_myself" = x; then
23953     as_myself=$0
23954   fi
23955   if test ! -f "$as_myself"; then
23956     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23957 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23958    { (exit 1); exit 1; }; }
23959   fi
23960   case $CONFIG_SHELL in
23961   '')
23962     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23963 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23964 do
23965   IFS=$as_save_IFS
23966   test -z "$as_dir" && as_dir=.
23967   for as_base in sh bash ksh sh5; do
23968          case $as_dir in
23969          /*)
23970            if ("$as_dir/$as_base" -c '
23971   as_lineno_1=$LINENO
23972   as_lineno_2=$LINENO
23973   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23974   test "x$as_lineno_1" != "x$as_lineno_2" &&
23975   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23976              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23977              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23978              CONFIG_SHELL=$as_dir/$as_base
23979              export CONFIG_SHELL
23980              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23981            fi;;
23982          esac
23983        done
23984 done
23985 ;;
23986   esac
23987
23988   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23989   # uniformly replaced by the line number.  The first 'sed' inserts a
23990   # line-number line before each line; the second 'sed' does the real
23991   # work.  The second script uses 'N' to pair each line-number line
23992   # with the numbered line, and appends trailing '-' during
23993   # substitution so that $LINENO is not a special case at line end.
23994   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23995   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23996   sed '=' <$as_myself |
23997     sed '
23998       N
23999       s,$,-,
24000       : loop
24001       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24002       t loop
24003       s,-$,,
24004       s,^['$as_cr_digits']*\n,,
24005     ' >$as_me.lineno &&
24006   chmod +x $as_me.lineno ||
24007     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24008 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24009    { (exit 1); exit 1; }; }
24010
24011   # Don't try to exec as it changes $[0], causing all sort of problems
24012   # (the dirname of $[0] is not the place where we might find the
24013   # original and so on.  Autoconf is especially sensible to this).
24014   . ./$as_me.lineno
24015   # Exit status is that of the last command.
24016   exit
24017 }
24018
24019
24020 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24021   *c*,-n*) ECHO_N= ECHO_C='
24022 ' ECHO_T='      ' ;;
24023   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24024   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24025 esac
24026
24027 if expr a : '\(a\)' >/dev/null 2>&1; then
24028   as_expr=expr
24029 else
24030   as_expr=false
24031 fi
24032
24033 rm -f conf$$ conf$$.exe conf$$.file
24034 echo >conf$$.file
24035 if ln -s conf$$.file conf$$ 2>/dev/null; then
24036   # We could just check for DJGPP; but this test a) works b) is more generic
24037   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24038   if test -f conf$$.exe; then
24039     # Don't use ln at all; we don't have any links
24040     as_ln_s='cp -p'
24041   else
24042     as_ln_s='ln -s'
24043   fi
24044 elif ln conf$$.file conf$$ 2>/dev/null; then
24045   as_ln_s=ln
24046 else
24047   as_ln_s='cp -p'
24048 fi
24049 rm -f conf$$ conf$$.exe conf$$.file
24050
24051 if mkdir -p . 2>/dev/null; then
24052   as_mkdir_p=:
24053 else
24054   test -d ./-p && rmdir ./-p
24055   as_mkdir_p=false
24056 fi
24057
24058 as_executable_p="test -f"
24059
24060 # Sed expression to map a string onto a valid CPP name.
24061 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24062
24063 # Sed expression to map a string onto a valid variable name.
24064 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24065
24066
24067 # IFS
24068 # We need space, tab and new line, in precisely that order.
24069 as_nl='
24070 '
24071 IFS="   $as_nl"
24072
24073 # CDPATH.
24074 $as_unset CDPATH
24075
24076 exec 6>&1
24077
24078 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24079 # report actual input values of CONFIG_FILES etc. instead of their
24080 # values after options handling.  Logging --version etc. is OK.
24081 exec 5>>config.log
24082 {
24083   echo
24084   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24085 ## Running $as_me. ##
24086 _ASBOX
24087 } >&5
24088 cat >&5 <<_CSEOF
24089
24090 This file was extended by $as_me, which was
24091 generated by GNU Autoconf 2.59.  Invocation command line was
24092
24093   CONFIG_FILES    = $CONFIG_FILES
24094   CONFIG_HEADERS  = $CONFIG_HEADERS
24095   CONFIG_LINKS    = $CONFIG_LINKS
24096   CONFIG_COMMANDS = $CONFIG_COMMANDS
24097   $ $0 $@
24098
24099 _CSEOF
24100 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24101 echo >&5
24102 _ACEOF
24103
24104 # Files that config.status was made for.
24105 if test -n "$ac_config_files"; then
24106   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24107 fi
24108
24109 if test -n "$ac_config_headers"; then
24110   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24111 fi
24112
24113 if test -n "$ac_config_links"; then
24114   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24115 fi
24116
24117 if test -n "$ac_config_commands"; then
24118   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24119 fi
24120
24121 cat >>$CONFIG_STATUS <<\_ACEOF
24122
24123 ac_cs_usage="\
24124 \`$as_me' instantiates files from templates according to the
24125 current configuration.
24126
24127 Usage: $0 [OPTIONS] [FILE]...
24128
24129   -h, --help       print this help, then exit
24130   -V, --version    print version number, then exit
24131   -q, --quiet      do not print progress messages
24132   -d, --debug      don't remove temporary files
24133       --recheck    update $as_me by reconfiguring in the same conditions
24134   --file=FILE[:TEMPLATE]
24135                    instantiate the configuration file FILE
24136   --header=FILE[:TEMPLATE]
24137                    instantiate the configuration header FILE
24138
24139 Configuration files:
24140 $config_files
24141
24142 Configuration headers:
24143 $config_headers
24144
24145 Configuration commands:
24146 $config_commands
24147
24148 Report bugs to <bug-autoconf@gnu.org>."
24149 _ACEOF
24150
24151 cat >>$CONFIG_STATUS <<_ACEOF
24152 ac_cs_version="\\
24153 config.status
24154 configured by $0, generated by GNU Autoconf 2.59,
24155   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24156
24157 Copyright (C) 2003 Free Software Foundation, Inc.
24158 This config.status script is free software; the Free Software Foundation
24159 gives unlimited permission to copy, distribute and modify it."
24160 srcdir=$srcdir
24161 INSTALL="$INSTALL"
24162 _ACEOF
24163
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 # If no file are specified by the user, then we need to provide default
24166 # value.  By we need to know if files were specified by the user.
24167 ac_need_defaults=:
24168 while test $# != 0
24169 do
24170   case $1 in
24171   --*=*)
24172     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24173     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24174     ac_shift=:
24175     ;;
24176   -*)
24177     ac_option=$1
24178     ac_optarg=$2
24179     ac_shift=shift
24180     ;;
24181   *) # This is not an option, so the user has probably given explicit
24182      # arguments.
24183      ac_option=$1
24184      ac_need_defaults=false;;
24185   esac
24186
24187   case $ac_option in
24188   # Handling of the options.
24189 _ACEOF
24190 cat >>$CONFIG_STATUS <<\_ACEOF
24191   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24192     ac_cs_recheck=: ;;
24193   --version | --vers* | -V )
24194     echo "$ac_cs_version"; exit 0 ;;
24195   --he | --h)
24196     # Conflict between --help and --header
24197     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24198 Try \`$0 --help' for more information." >&5
24199 echo "$as_me: error: ambiguous option: $1
24200 Try \`$0 --help' for more information." >&2;}
24201    { (exit 1); exit 1; }; };;
24202   --help | --hel | -h )
24203     echo "$ac_cs_usage"; exit 0 ;;
24204   --debug | --d* | -d )
24205     debug=: ;;
24206   --file | --fil | --fi | --f )
24207     $ac_shift
24208     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24209     ac_need_defaults=false;;
24210   --header | --heade | --head | --hea )
24211     $ac_shift
24212     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24213     ac_need_defaults=false;;
24214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24215   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24216     ac_cs_silent=: ;;
24217
24218   # This is an error.
24219   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24220 Try \`$0 --help' for more information." >&5
24221 echo "$as_me: error: unrecognized option: $1
24222 Try \`$0 --help' for more information." >&2;}
24223    { (exit 1); exit 1; }; } ;;
24224
24225   *) ac_config_targets="$ac_config_targets $1" ;;
24226
24227   esac
24228   shift
24229 done
24230
24231 ac_configure_extra_args=
24232
24233 if $ac_cs_silent; then
24234   exec 6>/dev/null
24235   ac_configure_extra_args="$ac_configure_extra_args --silent"
24236 fi
24237
24238 _ACEOF
24239 cat >>$CONFIG_STATUS <<_ACEOF
24240 if \$ac_cs_recheck; then
24241   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24242   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24243 fi
24244
24245 _ACEOF
24246
24247 cat >>$CONFIG_STATUS <<_ACEOF
24248 #
24249 # INIT-COMMANDS section.
24250 #
24251
24252 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24253     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24254     # from automake.
24255     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24256     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24257     LINGUAS="${LINGUAS-%UNSET%}"
24258
24259
24260 _ACEOF
24261
24262
24263
24264 cat >>$CONFIG_STATUS <<\_ACEOF
24265 for ac_config_target in $ac_config_targets
24266 do
24267   case "$ac_config_target" in
24268   # Handling of arguments.
24269   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24270   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24271   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24272   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24273   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24274   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24275   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24276   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24277   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24278   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24279   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24280   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24281   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24282   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24283   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24284   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24285   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24286   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24287   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24288   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24289   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24290   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24291   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24292   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24293   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24294   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24295   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24296   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24297   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24298   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24299   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24300   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24301   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24302   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24303   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24304   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24305   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24306   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24307   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24308   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24309   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24310   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24311   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24312   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24313   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24314   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24315   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24316   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24317   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24318   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24319   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24320   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24321   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24322   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24323   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24324   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24325   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24326   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24327   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24328   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24329   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24330   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24331   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24332   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24333   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24334   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24335   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24336   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24337   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24338   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24339   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24340   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24341   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24342   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24343   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24344   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24345   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24346   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24347   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24348   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24349   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24350   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24351   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24352   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24353   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24354   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24355   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24356   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24357   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24358   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24359   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24360   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24361   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24362   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24363   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24364   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24365   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24366   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24367   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24368 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24369    { (exit 1); exit 1; }; };;
24370   esac
24371 done
24372
24373 # If the user did not use the arguments to specify the items to instantiate,
24374 # then the envvar interface is used.  Set only those that are not.
24375 # We use the long form for the default assignment because of an extremely
24376 # bizarre bug on SunOS 4.1.3.
24377 if $ac_need_defaults; then
24378   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24379   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24380   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24381 fi
24382
24383 # Have a temporary directory for convenience.  Make it in the build tree
24384 # simply because there is no reason to put it here, and in addition,
24385 # creating and moving files from /tmp can sometimes cause problems.
24386 # Create a temporary directory, and hook for its removal unless debugging.
24387 $debug ||
24388 {
24389   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24390   trap '{ (exit 1); exit 1; }' 1 2 13 15
24391 }
24392
24393 # Create a (secure) tmp directory for tmp files.
24394
24395 {
24396   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24397   test -n "$tmp" && test -d "$tmp"
24398 }  ||
24399 {
24400   tmp=./confstat$$-$RANDOM
24401   (umask 077 && mkdir $tmp)
24402 } ||
24403 {
24404    echo "$me: cannot create a temporary directory in ." >&2
24405    { (exit 1); exit 1; }
24406 }
24407
24408 _ACEOF
24409
24410 cat >>$CONFIG_STATUS <<_ACEOF
24411
24412 #
24413 # CONFIG_FILES section.
24414 #
24415
24416 # No need to generate the scripts if there are no CONFIG_FILES.
24417 # This happens for instance when ./config.status config.h
24418 if test -n "\$CONFIG_FILES"; then
24419   # Protect against being on the right side of a sed subst in config.status.
24420   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24421    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24422 s,@SHELL@,$SHELL,;t t
24423 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24424 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24425 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24426 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24427 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24428 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24429 s,@exec_prefix@,$exec_prefix,;t t
24430 s,@prefix@,$prefix,;t t
24431 s,@program_transform_name@,$program_transform_name,;t t
24432 s,@bindir@,$bindir,;t t
24433 s,@sbindir@,$sbindir,;t t
24434 s,@libexecdir@,$libexecdir,;t t
24435 s,@datadir@,$datadir,;t t
24436 s,@sysconfdir@,$sysconfdir,;t t
24437 s,@sharedstatedir@,$sharedstatedir,;t t
24438 s,@localstatedir@,$localstatedir,;t t
24439 s,@libdir@,$libdir,;t t
24440 s,@includedir@,$includedir,;t t
24441 s,@oldincludedir@,$oldincludedir,;t t
24442 s,@infodir@,$infodir,;t t
24443 s,@mandir@,$mandir,;t t
24444 s,@build_alias@,$build_alias,;t t
24445 s,@host_alias@,$host_alias,;t t
24446 s,@target_alias@,$target_alias,;t t
24447 s,@DEFS@,$DEFS,;t t
24448 s,@ECHO_C@,$ECHO_C,;t t
24449 s,@ECHO_N@,$ECHO_N,;t t
24450 s,@ECHO_T@,$ECHO_T,;t t
24451 s,@LIBS@,$LIBS,;t t
24452 s,@BUILD_DIR@,$BUILD_DIR,;t t
24453 s,@TRUEPRG@,$TRUEPRG,;t t
24454 s,@FALSEPRG@,$FALSEPRG,;t t
24455 s,@VERSION@,$VERSION,;t t
24456 s,@DATE@,$DATE,;t t
24457 s,@LSMDATE@,$LSMDATE,;t t
24458 s,@CC@,$CC,;t t
24459 s,@CFLAGS@,$CFLAGS,;t t
24460 s,@LDFLAGS@,$LDFLAGS,;t t
24461 s,@CPPFLAGS@,$CPPFLAGS,;t t
24462 s,@ac_ct_CC@,$ac_ct_CC,;t t
24463 s,@EXEEXT@,$EXEEXT,;t t
24464 s,@OBJEXT@,$OBJEXT,;t t
24465 s,@CXX@,$CXX,;t t
24466 s,@CXXFLAGS@,$CXXFLAGS,;t t
24467 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24468 s,@CPP@,$CPP,;t t
24469 s,@EGREP@,$EGREP,;t t
24470 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24471 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24472 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24473 s,@RANLIB@,$RANLIB,;t t
24474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24475 s,@MV@,$MV,;t t
24476 s,@RM@,$RM,;t t
24477 s,@CP@,$CP,;t t
24478 s,@SED@,$SED,;t t
24479 s,@ECHO@,$ECHO,;t t
24480 s,@CMP@,$CMP,;t t
24481 s,@TBL@,$TBL,;t t
24482 s,@AR@,$AR,;t t
24483 s,@OPENSSL@,$OPENSSL,;t t
24484 s,@MTX@,$MTX,;t t
24485 s,@DF@,$DF,;t t
24486 s,@MKISOFS@,$MKISOFS,;t t
24487 s,@PYTHON@,$PYTHON,;t t
24488 s,@GROWISOFS@,$GROWISOFS,;t t
24489 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24490 s,@PKGCONFIG@,$PKGCONFIG,;t t
24491 s,@WXCONFIG@,$WXCONFIG,;t t
24492 s,@WXFLAGS@,$WXFLAGS,;t t
24493 s,@CDRECORD@,$CDRECORD,;t t
24494 s,@PIDOF@,$PIDOF,;t t
24495 s,@AWK@,$AWK,;t t
24496 s,@ARFLAGS@,$ARFLAGS,;t t
24497 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24498 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24499 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24500 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24501 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24502 s,@build@,$build,;t t
24503 s,@build_cpu@,$build_cpu,;t t
24504 s,@build_vendor@,$build_vendor,;t t
24505 s,@build_os@,$build_os,;t t
24506 s,@host@,$host,;t t
24507 s,@host_cpu@,$host_cpu,;t t
24508 s,@host_vendor@,$host_vendor,;t t
24509 s,@host_os@,$host_os,;t t
24510 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24511 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24512 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24513 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24514 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24515 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24516 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24517 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24518 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24519 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24520 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24521 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24522 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24523 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24524 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24525 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24526 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24527 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24528 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24529 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24530 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24531 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24532 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24533 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24534 s,@SET_MAKE@,$SET_MAKE,;t t
24535 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24536 s,@USE_NLS@,$USE_NLS,;t t
24537 s,@MSGFMT@,$MSGFMT,;t t
24538 s,@GMSGFMT@,$GMSGFMT,;t t
24539 s,@XGETTEXT@,$XGETTEXT,;t t
24540 s,@MSGMERGE@,$MSGMERGE,;t t
24541 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24542 s,@LIBICONV@,$LIBICONV,;t t
24543 s,@LTLIBICONV@,$LTLIBICONV,;t t
24544 s,@INTLLIBS@,$INTLLIBS,;t t
24545 s,@LIBINTL@,$LIBINTL,;t t
24546 s,@LTLIBINTL@,$LTLIBINTL,;t t
24547 s,@POSUB@,$POSUB,;t t
24548 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24549 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24550 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24551 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24552 s,@GNOME_DIR@,$GNOME_DIR,;t t
24553 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24554 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24555 s,@WX_DIR@,$WX_DIR,;t t
24556 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24557 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24558 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24559 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24560 s,@STATIC_FD@,$STATIC_FD,;t t
24561 s,@STATIC_SD@,$STATIC_SD,;t t
24562 s,@STATIC_DIR@,$STATIC_DIR,;t t
24563 s,@STATIC_CONS@,$STATIC_CONS,;t t
24564 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24565 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24566 s,@ALL_DIRS@,$ALL_DIRS,;t t
24567 s,@DIRD_DIR@,$DIRD_DIR,;t t
24568 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
24569 s,@STORED_DIR@,$STORED_DIR,;t t
24570 s,@CONS_INC@,$CONS_INC,;t t
24571 s,@CONS_OBJ@,$CONS_OBJ,;t t
24572 s,@CONS_SRC@,$CONS_SRC,;t t
24573 s,@CONS_LIBS@,$CONS_LIBS,;t t
24574 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24575 s,@READLINE_SRC@,$READLINE_SRC,;t t
24576 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24577 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24578 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24579 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24580 s,@working_dir@,$working_dir,;t t
24581 s,@scriptdir@,$scriptdir,;t t
24582 s,@dump_email@,$dump_email,;t t
24583 s,@job_email@,$job_email,;t t
24584 s,@smtp_host@,$smtp_host,;t t
24585 s,@piddir@,$piddir,;t t
24586 s,@subsysdir@,$subsysdir,;t t
24587 s,@baseport@,$baseport,;t t
24588 s,@dir_port@,$dir_port,;t t
24589 s,@fd_port@,$fd_port,;t t
24590 s,@sd_port@,$sd_port,;t t
24591 s,@dir_password@,$dir_password,;t t
24592 s,@fd_password@,$fd_password,;t t
24593 s,@sd_password@,$sd_password,;t t
24594 s,@mon_dir_password@,$mon_dir_password,;t t
24595 s,@mon_fd_password@,$mon_fd_password,;t t
24596 s,@mon_sd_password@,$mon_sd_password,;t t
24597 s,@dir_user@,$dir_user,;t t
24598 s,@dir_group@,$dir_group,;t t
24599 s,@sd_user@,$sd_user,;t t
24600 s,@sd_group@,$sd_group,;t t
24601 s,@fd_user@,$fd_user,;t t
24602 s,@fd_group@,$fd_group,;t t
24603 s,@SBINPERM@,$SBINPERM,;t t
24604 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24605 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24606 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24607 s,@cats@,$cats,;t t
24608 s,@DB_NAME@,$DB_NAME,;t t
24609 s,@GETCONF@,$GETCONF,;t t
24610 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24611 s,@X_CFLAGS@,$X_CFLAGS,;t t
24612 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24613 s,@X_LIBS@,$X_LIBS,;t t
24614 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24615 s,@LIBOBJS@,$LIBOBJS,;t t
24616 s,@ALLOCA@,$ALLOCA,;t t
24617 s,@FDLIBS@,$FDLIBS,;t t
24618 s,@DEBUG@,$DEBUG,;t t
24619 s,@DINCLUDE@,$DINCLUDE,;t t
24620 s,@DLIB@,$DLIB,;t t
24621 s,@DB_LIBS@,$DB_LIBS,;t t
24622 s,@WCFLAGS@,$WCFLAGS,;t t
24623 s,@WLDFLAGS@,$WLDFLAGS,;t t
24624 s,@OBJLIST@,$OBJLIST,;t t
24625 s,@hostname@,$hostname,;t t
24626 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24627 s,@PSCMD@,$PSCMD,;t t
24628 s,@WIN32@,$WIN32,;t t
24629 s,@MACOSX@,$MACOSX,;t t
24630 s,@DISTNAME@,$DISTNAME,;t t
24631 s,@DISTVER@,$DISTVER,;t t
24632 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24633 /@MCOMMON@/r $MCOMMON
24634 s,@MCOMMON@,,;t t
24635 CEOF
24636
24637 _ACEOF
24638
24639   cat >>$CONFIG_STATUS <<\_ACEOF
24640   # Split the substitutions into bite-sized pieces for seds with
24641   # small command number limits, like on Digital OSF/1 and HP-UX.
24642   ac_max_sed_lines=48
24643   ac_sed_frag=1 # Number of current file.
24644   ac_beg=1 # First line for current file.
24645   ac_end=$ac_max_sed_lines # Line after last line for current file.
24646   ac_more_lines=:
24647   ac_sed_cmds=
24648   while $ac_more_lines; do
24649     if test $ac_beg -gt 1; then
24650       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24651     else
24652       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24653     fi
24654     if test ! -s $tmp/subs.frag; then
24655       ac_more_lines=false
24656     else
24657       # The purpose of the label and of the branching condition is to
24658       # speed up the sed processing (if there are no `@' at all, there
24659       # is no need to browse any of the substitutions).
24660       # These are the two extra sed commands mentioned above.
24661       (echo ':t
24662   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24663       if test -z "$ac_sed_cmds"; then
24664         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24665       else
24666         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24667       fi
24668       ac_sed_frag=`expr $ac_sed_frag + 1`
24669       ac_beg=$ac_end
24670       ac_end=`expr $ac_end + $ac_max_sed_lines`
24671     fi
24672   done
24673   if test -z "$ac_sed_cmds"; then
24674     ac_sed_cmds=cat
24675   fi
24676 fi # test -n "$CONFIG_FILES"
24677
24678 _ACEOF
24679 cat >>$CONFIG_STATUS <<\_ACEOF
24680 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24681   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24682   case $ac_file in
24683   - | *:- | *:-:* ) # input from stdin
24684         cat >$tmp/stdin
24685         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24686         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24687   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24688         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24689   * )   ac_file_in=$ac_file.in ;;
24690   esac
24691
24692   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24693   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24695          X"$ac_file" : 'X\(//\)[^/]' \| \
24696          X"$ac_file" : 'X\(//\)$' \| \
24697          X"$ac_file" : 'X\(/\)' \| \
24698          .     : '\(.\)' 2>/dev/null ||
24699 echo X"$ac_file" |
24700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24702           /^X\(\/\/\)$/{ s//\1/; q; }
24703           /^X\(\/\).*/{ s//\1/; q; }
24704           s/.*/./; q'`
24705   { if $as_mkdir_p; then
24706     mkdir -p "$ac_dir"
24707   else
24708     as_dir="$ac_dir"
24709     as_dirs=
24710     while test ! -d "$as_dir"; do
24711       as_dirs="$as_dir $as_dirs"
24712       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24714          X"$as_dir" : 'X\(//\)[^/]' \| \
24715          X"$as_dir" : 'X\(//\)$' \| \
24716          X"$as_dir" : 'X\(/\)' \| \
24717          .     : '\(.\)' 2>/dev/null ||
24718 echo X"$as_dir" |
24719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24721           /^X\(\/\/\)$/{ s//\1/; q; }
24722           /^X\(\/\).*/{ s//\1/; q; }
24723           s/.*/./; q'`
24724     done
24725     test ! -n "$as_dirs" || mkdir $as_dirs
24726   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24728    { (exit 1); exit 1; }; }; }
24729
24730   ac_builddir=.
24731
24732 if test "$ac_dir" != .; then
24733   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24734   # A "../" for each directory in $ac_dir_suffix.
24735   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24736 else
24737   ac_dir_suffix= ac_top_builddir=
24738 fi
24739
24740 case $srcdir in
24741   .)  # No --srcdir option.  We are building in place.
24742     ac_srcdir=.
24743     if test -z "$ac_top_builddir"; then
24744        ac_top_srcdir=.
24745     else
24746        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24747     fi ;;
24748   [\\/]* | ?:[\\/]* )  # Absolute path.
24749     ac_srcdir=$srcdir$ac_dir_suffix;
24750     ac_top_srcdir=$srcdir ;;
24751   *) # Relative path.
24752     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24753     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24754 esac
24755
24756 # Do not use `cd foo && pwd` to compute absolute paths, because
24757 # the directories may not exist.
24758 case `pwd` in
24759 .) ac_abs_builddir="$ac_dir";;
24760 *)
24761   case "$ac_dir" in
24762   .) ac_abs_builddir=`pwd`;;
24763   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24764   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24765   esac;;
24766 esac
24767 case $ac_abs_builddir in
24768 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24769 *)
24770   case ${ac_top_builddir}. in
24771   .) ac_abs_top_builddir=$ac_abs_builddir;;
24772   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24773   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24774   esac;;
24775 esac
24776 case $ac_abs_builddir in
24777 .) ac_abs_srcdir=$ac_srcdir;;
24778 *)
24779   case $ac_srcdir in
24780   .) ac_abs_srcdir=$ac_abs_builddir;;
24781   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24782   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24783   esac;;
24784 esac
24785 case $ac_abs_builddir in
24786 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24787 *)
24788   case $ac_top_srcdir in
24789   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24790   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24791   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24792   esac;;
24793 esac
24794
24795
24796   case $INSTALL in
24797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24798   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24799   esac
24800
24801   if test x"$ac_file" != x-; then
24802     { echo "$as_me:$LINENO: creating $ac_file" >&5
24803 echo "$as_me: creating $ac_file" >&6;}
24804     rm -f "$ac_file"
24805   fi
24806   # Let's still pretend it is `configure' which instantiates (i.e., don't
24807   # use $as_me), people would be surprised to read:
24808   #    /* config.h.  Generated by config.status.  */
24809   if test x"$ac_file" = x-; then
24810     configure_input=
24811   else
24812     configure_input="$ac_file.  "
24813   fi
24814   configure_input=$configure_input"Generated from `echo $ac_file_in |
24815                                      sed 's,.*/,,'` by configure."
24816
24817   # First look for the input files in the build tree, otherwise in the
24818   # src tree.
24819   ac_file_inputs=`IFS=:
24820     for f in $ac_file_in; do
24821       case $f in
24822       -) echo $tmp/stdin ;;
24823       [\\/$]*)
24824          # Absolute (can't be DOS-style, as IFS=:)
24825          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24826 echo "$as_me: error: cannot find input file: $f" >&2;}
24827    { (exit 1); exit 1; }; }
24828          echo "$f";;
24829       *) # Relative
24830          if test -f "$f"; then
24831            # Build tree
24832            echo "$f"
24833          elif test -f "$srcdir/$f"; then
24834            # Source tree
24835            echo "$srcdir/$f"
24836          else
24837            # /dev/null tree
24838            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24839 echo "$as_me: error: cannot find input file: $f" >&2;}
24840    { (exit 1); exit 1; }; }
24841          fi;;
24842       esac
24843     done` || { (exit 1); exit 1; }
24844 _ACEOF
24845 cat >>$CONFIG_STATUS <<_ACEOF
24846   sed "$ac_vpsub
24847 $extrasub
24848 _ACEOF
24849 cat >>$CONFIG_STATUS <<\_ACEOF
24850 :t
24851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24852 s,@configure_input@,$configure_input,;t t
24853 s,@srcdir@,$ac_srcdir,;t t
24854 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24855 s,@top_srcdir@,$ac_top_srcdir,;t t
24856 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24857 s,@builddir@,$ac_builddir,;t t
24858 s,@abs_builddir@,$ac_abs_builddir,;t t
24859 s,@top_builddir@,$ac_top_builddir,;t t
24860 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24861 s,@INSTALL@,$ac_INSTALL,;t t
24862 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24863   rm -f $tmp/stdin
24864   if test x"$ac_file" != x-; then
24865     mv $tmp/out $ac_file
24866   else
24867     cat $tmp/out
24868     rm -f $tmp/out
24869   fi
24870
24871 done
24872 _ACEOF
24873 cat >>$CONFIG_STATUS <<\_ACEOF
24874
24875 #
24876 # CONFIG_HEADER section.
24877 #
24878
24879 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24880 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24881 #
24882 # ac_d sets the value in "#define NAME VALUE" lines.
24883 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24884 ac_dB='[         ].*$,\1#\2'
24885 ac_dC=' '
24886 ac_dD=',;t'
24887 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24888 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24889 ac_uB='$,\1#\2define\3'
24890 ac_uC=' '
24891 ac_uD=',;t'
24892
24893 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24894   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24895   case $ac_file in
24896   - | *:- | *:-:* ) # input from stdin
24897         cat >$tmp/stdin
24898         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24899         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24900   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24901         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24902   * )   ac_file_in=$ac_file.in ;;
24903   esac
24904
24905   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24906 echo "$as_me: creating $ac_file" >&6;}
24907
24908   # First look for the input files in the build tree, otherwise in the
24909   # src tree.
24910   ac_file_inputs=`IFS=:
24911     for f in $ac_file_in; do
24912       case $f in
24913       -) echo $tmp/stdin ;;
24914       [\\/$]*)
24915          # Absolute (can't be DOS-style, as IFS=:)
24916          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24917 echo "$as_me: error: cannot find input file: $f" >&2;}
24918    { (exit 1); exit 1; }; }
24919          # Do quote $f, to prevent DOS paths from being IFS'd.
24920          echo "$f";;
24921       *) # Relative
24922          if test -f "$f"; then
24923            # Build tree
24924            echo "$f"
24925          elif test -f "$srcdir/$f"; then
24926            # Source tree
24927            echo "$srcdir/$f"
24928          else
24929            # /dev/null tree
24930            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24931 echo "$as_me: error: cannot find input file: $f" >&2;}
24932    { (exit 1); exit 1; }; }
24933          fi;;
24934       esac
24935     done` || { (exit 1); exit 1; }
24936   # Remove the trailing spaces.
24937   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24938
24939 _ACEOF
24940
24941 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24942 # `conftest.undefs', that substitutes the proper values into
24943 # config.h.in to produce config.h.  The first handles `#define'
24944 # templates, and the second `#undef' templates.
24945 # And first: Protect against being on the right side of a sed subst in
24946 # config.status.  Protect against being in an unquoted here document
24947 # in config.status.
24948 rm -f conftest.defines conftest.undefs
24949 # Using a here document instead of a string reduces the quoting nightmare.
24950 # Putting comments in sed scripts is not portable.
24951 #
24952 # `end' is used to avoid that the second main sed command (meant for
24953 # 0-ary CPP macros) applies to n-ary macro definitions.
24954 # See the Autoconf documentation for `clear'.
24955 cat >confdef2sed.sed <<\_ACEOF
24956 s/[\\&,]/\\&/g
24957 s,[\\$`],\\&,g
24958 t clear
24959 : clear
24960 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24961 t end
24962 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24963 : end
24964 _ACEOF
24965 # If some macros were called several times there might be several times
24966 # the same #defines, which is useless.  Nevertheless, we may not want to
24967 # sort them, since we want the *last* AC-DEFINE to be honored.
24968 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24969 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24970 rm -f confdef2sed.sed
24971
24972 # This sed command replaces #undef with comments.  This is necessary, for
24973 # example, in the case of _POSIX_SOURCE, which is predefined and required
24974 # on some systems where configure will not decide to define it.
24975 cat >>conftest.undefs <<\_ACEOF
24976 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24977 _ACEOF
24978
24979 # Break up conftest.defines because some shells have a limit on the size
24980 # of here documents, and old seds have small limits too (100 cmds).
24981 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24982 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24983 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24984 echo '  :' >>$CONFIG_STATUS
24985 rm -f conftest.tail
24986 while grep . conftest.defines >/dev/null
24987 do
24988   # Write a limited-size here document to $tmp/defines.sed.
24989   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24990   # Speed up: don't consider the non `#define' lines.
24991   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24992   # Work around the forget-to-reset-the-flag bug.
24993   echo 't clr' >>$CONFIG_STATUS
24994   echo ': clr' >>$CONFIG_STATUS
24995   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24996   echo 'CEOF
24997   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24998   rm -f $tmp/in
24999   mv $tmp/out $tmp/in
25000 ' >>$CONFIG_STATUS
25001   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25002   rm -f conftest.defines
25003   mv conftest.tail conftest.defines
25004 done
25005 rm -f conftest.defines
25006 echo '  fi # grep' >>$CONFIG_STATUS
25007 echo >>$CONFIG_STATUS
25008
25009 # Break up conftest.undefs because some shells have a limit on the size
25010 # of here documents, and old seds have small limits too (100 cmds).
25011 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25012 rm -f conftest.tail
25013 while grep . conftest.undefs >/dev/null
25014 do
25015   # Write a limited-size here document to $tmp/undefs.sed.
25016   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25017   # Speed up: don't consider the non `#undef'
25018   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25019   # Work around the forget-to-reset-the-flag bug.
25020   echo 't clr' >>$CONFIG_STATUS
25021   echo ': clr' >>$CONFIG_STATUS
25022   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25023   echo 'CEOF
25024   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25025   rm -f $tmp/in
25026   mv $tmp/out $tmp/in
25027 ' >>$CONFIG_STATUS
25028   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25029   rm -f conftest.undefs
25030   mv conftest.tail conftest.undefs
25031 done
25032 rm -f conftest.undefs
25033
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035   # Let's still pretend it is `configure' which instantiates (i.e., don't
25036   # use $as_me), people would be surprised to read:
25037   #    /* config.h.  Generated by config.status.  */
25038   if test x"$ac_file" = x-; then
25039     echo "/* Generated by configure.  */" >$tmp/config.h
25040   else
25041     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25042   fi
25043   cat $tmp/in >>$tmp/config.h
25044   rm -f $tmp/in
25045   if test x"$ac_file" != x-; then
25046     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25047       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25048 echo "$as_me: $ac_file is unchanged" >&6;}
25049     else
25050       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25052          X"$ac_file" : 'X\(//\)[^/]' \| \
25053          X"$ac_file" : 'X\(//\)$' \| \
25054          X"$ac_file" : 'X\(/\)' \| \
25055          .     : '\(.\)' 2>/dev/null ||
25056 echo X"$ac_file" |
25057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25059           /^X\(\/\/\)$/{ s//\1/; q; }
25060           /^X\(\/\).*/{ s//\1/; q; }
25061           s/.*/./; q'`
25062       { if $as_mkdir_p; then
25063     mkdir -p "$ac_dir"
25064   else
25065     as_dir="$ac_dir"
25066     as_dirs=
25067     while test ! -d "$as_dir"; do
25068       as_dirs="$as_dir $as_dirs"
25069       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25071          X"$as_dir" : 'X\(//\)[^/]' \| \
25072          X"$as_dir" : 'X\(//\)$' \| \
25073          X"$as_dir" : 'X\(/\)' \| \
25074          .     : '\(.\)' 2>/dev/null ||
25075 echo X"$as_dir" |
25076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25078           /^X\(\/\/\)$/{ s//\1/; q; }
25079           /^X\(\/\).*/{ s//\1/; q; }
25080           s/.*/./; q'`
25081     done
25082     test ! -n "$as_dirs" || mkdir $as_dirs
25083   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25085    { (exit 1); exit 1; }; }; }
25086
25087       rm -f $ac_file
25088       mv $tmp/config.h $ac_file
25089     fi
25090   else
25091     cat $tmp/config.h
25092     rm -f $tmp/config.h
25093   fi
25094 done
25095 _ACEOF
25096 cat >>$CONFIG_STATUS <<\_ACEOF
25097
25098 #
25099 # CONFIG_COMMANDS section.
25100 #
25101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25102   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25103   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25104   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25106          X"$ac_dest" : 'X\(//\)[^/]' \| \
25107          X"$ac_dest" : 'X\(//\)$' \| \
25108          X"$ac_dest" : 'X\(/\)' \| \
25109          .     : '\(.\)' 2>/dev/null ||
25110 echo X"$ac_dest" |
25111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25112           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25113           /^X\(\/\/\)$/{ s//\1/; q; }
25114           /^X\(\/\).*/{ s//\1/; q; }
25115           s/.*/./; q'`
25116   { if $as_mkdir_p; then
25117     mkdir -p "$ac_dir"
25118   else
25119     as_dir="$ac_dir"
25120     as_dirs=
25121     while test ! -d "$as_dir"; do
25122       as_dirs="$as_dir $as_dirs"
25123       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25125          X"$as_dir" : 'X\(//\)[^/]' \| \
25126          X"$as_dir" : 'X\(//\)$' \| \
25127          X"$as_dir" : 'X\(/\)' \| \
25128          .     : '\(.\)' 2>/dev/null ||
25129 echo X"$as_dir" |
25130     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25131           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25132           /^X\(\/\/\)$/{ s//\1/; q; }
25133           /^X\(\/\).*/{ s//\1/; q; }
25134           s/.*/./; q'`
25135     done
25136     test ! -n "$as_dirs" || mkdir $as_dirs
25137   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25139    { (exit 1); exit 1; }; }; }
25140
25141   ac_builddir=.
25142
25143 if test "$ac_dir" != .; then
25144   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25145   # A "../" for each directory in $ac_dir_suffix.
25146   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25147 else
25148   ac_dir_suffix= ac_top_builddir=
25149 fi
25150
25151 case $srcdir in
25152   .)  # No --srcdir option.  We are building in place.
25153     ac_srcdir=.
25154     if test -z "$ac_top_builddir"; then
25155        ac_top_srcdir=.
25156     else
25157        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25158     fi ;;
25159   [\\/]* | ?:[\\/]* )  # Absolute path.
25160     ac_srcdir=$srcdir$ac_dir_suffix;
25161     ac_top_srcdir=$srcdir ;;
25162   *) # Relative path.
25163     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25164     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25165 esac
25166
25167 # Do not use `cd foo && pwd` to compute absolute paths, because
25168 # the directories may not exist.
25169 case `pwd` in
25170 .) ac_abs_builddir="$ac_dir";;
25171 *)
25172   case "$ac_dir" in
25173   .) ac_abs_builddir=`pwd`;;
25174   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25175   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25176   esac;;
25177 esac
25178 case $ac_abs_builddir in
25179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25180 *)
25181   case ${ac_top_builddir}. in
25182   .) ac_abs_top_builddir=$ac_abs_builddir;;
25183   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25184   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25185   esac;;
25186 esac
25187 case $ac_abs_builddir in
25188 .) ac_abs_srcdir=$ac_srcdir;;
25189 *)
25190   case $ac_srcdir in
25191   .) ac_abs_srcdir=$ac_abs_builddir;;
25192   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25193   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25194   esac;;
25195 esac
25196 case $ac_abs_builddir in
25197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25198 *)
25199   case $ac_top_srcdir in
25200   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25201   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25202   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25203   esac;;
25204 esac
25205
25206
25207   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25208 echo "$as_me: executing $ac_dest commands" >&6;}
25209   case $ac_dest in
25210     default-1 )
25211     for ac_file in $CONFIG_FILES; do
25212       # Support "outfile[:infile[:infile...]]"
25213       case "$ac_file" in
25214         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25215       esac
25216       # PO directories have a Makefile.in generated from Makefile.in.in.
25217       case "$ac_file" in */Makefile.in)
25218         # Adjust a relative srcdir.
25219         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25220         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25221         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25222         # In autoconf-2.13 it is called $ac_given_srcdir.
25223         # In autoconf-2.50 it is called $srcdir.
25224         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25225         case "$ac_given_srcdir" in
25226           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25227           /*) top_srcdir="$ac_given_srcdir" ;;
25228           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25229         esac
25230         # Treat a directory as a PO directory if and only if it has a
25231         # POTFILES.in file. This allows packages to have multiple PO
25232         # directories under different names or in different locations.
25233         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25234           rm -f "$ac_dir/POTFILES"
25235           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25236           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25237           POMAKEFILEDEPS="POTFILES.in"
25238           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25239           # on $ac_dir but don't depend on user-specified configuration
25240           # parameters.
25241           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25242             # The LINGUAS file contains the set of available languages.
25243             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25244               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25245             fi
25246             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25247             # Hide the ALL_LINGUAS assigment from automake.
25248             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25249             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25250           else
25251             # The set of available languages was given in configure.in.
25252             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25253           fi
25254           # Compute POFILES
25255           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25256           # Compute UPDATEPOFILES
25257           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25258           # Compute DUMMYPOFILES
25259           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25260           # Compute GMOFILES
25261           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25262           case "$ac_given_srcdir" in
25263             .) srcdirpre= ;;
25264             *) srcdirpre='$(srcdir)/' ;;
25265           esac
25266           POFILES=
25267           UPDATEPOFILES=
25268           DUMMYPOFILES=
25269           GMOFILES=
25270           for lang in $ALL_LINGUAS; do
25271             POFILES="$POFILES $srcdirpre$lang.po"
25272             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25273             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25274             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25275           done
25276           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25277           # environment variable.
25278           INST_LINGUAS=
25279           if test -n "$ALL_LINGUAS"; then
25280             for presentlang in $ALL_LINGUAS; do
25281               useit=no
25282               if test "%UNSET%" != "$LINGUAS"; then
25283                 desiredlanguages="$LINGUAS"
25284               else
25285                 desiredlanguages="$ALL_LINGUAS"
25286               fi
25287               for desiredlang in $desiredlanguages; do
25288                 # Use the presentlang catalog if desiredlang is
25289                 #   a. equal to presentlang, or
25290                 #   b. a variant of presentlang (because in this case,
25291                 #      presentlang can be used as a fallback for messages
25292                 #      which are not translated in the desiredlang catalog).
25293                 case "$desiredlang" in
25294                   "$presentlang"*) useit=yes;;
25295                 esac
25296               done
25297               if test $useit = yes; then
25298                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25299               fi
25300             done
25301           fi
25302           CATALOGS=
25303           if test -n "$INST_LINGUAS"; then
25304             for lang in $INST_LINGUAS; do
25305               CATALOGS="$CATALOGS $lang.gmo"
25306             done
25307           fi
25308           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25309           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"
25310           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25311             if test -f "$f"; then
25312               case "$f" in
25313                 *.orig | *.bak | *~) ;;
25314                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25315               esac
25316             fi
25317           done
25318         fi
25319         ;;
25320       esac
25321     done ;;
25322     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25323  ;;
25324   esac
25325 done
25326 _ACEOF
25327
25328 cat >>$CONFIG_STATUS <<\_ACEOF
25329
25330 { (exit 0); exit 0; }
25331 _ACEOF
25332 chmod +x $CONFIG_STATUS
25333 ac_clean_files=$ac_clean_files_save
25334
25335
25336 # configure is writing to config.log, and then calls config.status.
25337 # config.status does its own redirection, appending to config.log.
25338 # Unfortunately, on DOS this fails, as config.log is still kept open
25339 # by configure, so config.status won't be able to write to it; its
25340 # output is simply discarded.  So we exec the FD to /dev/null,
25341 # effectively closing config.log, so it can be properly (re)opened and
25342 # appended to by config.status.  When coming back to configure, we
25343 # need to make the FD available again.
25344 if test "$no_create" != yes; then
25345   ac_cs_success=:
25346   ac_config_status_args=
25347   test "$silent" = yes &&
25348     ac_config_status_args="$ac_config_status_args --quiet"
25349   exec 5>/dev/null
25350   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25351   exec 5>>config.log
25352   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25353   # would make configure fail if this is the last instruction.
25354   $ac_cs_success || { (exit 1); exit 1; }
25355 fi
25356
25357
25358 cd scripts
25359 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25360 chmod 755 dvd-writepart dvd-freespace
25361 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25362 cd ..
25363
25364 c=src/cats
25365
25366 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
25367 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
25368
25369 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
25370 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
25371
25372 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
25373 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
25374
25375 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
25376 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
25377
25378 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
25379 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
25380
25381 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25382 chmod 755 $c/sqlite
25383 chmod 755 $c/mysql
25384
25385 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25386    largefile_support="yes"
25387 fi
25388
25389 #
25390 # A whole lot of hand springs to get the compiler version.
25391 #  This is because gcc changed the output in version 3.0
25392 #
25393 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25394 if test "x${CCVERSION}" = "x" ; then
25395   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25396 fi
25397 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25398 if test x"${CXXVERSION}" = x ; then
25399   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25400 fi
25401
25402 if test "x${subsysdir}" = "x${sbindir}" ; then
25403    echo " "
25404    echo " "
25405    echo "You have set --sbindir and --with-subsys-dir"
25406    echo "  both equal to: ${subsysdir} "
25407    echo "  This is not permitted. Please reconfigure."
25408    echo " "
25409    echo "Aborting configuration ..."
25410    echo " "
25411    echo " "
25412    exit 1
25413 fi
25414
25415 if test "x${db_name}" = "xInternal" ; then
25416    echo " "
25417    echo " "
25418    echo "You have not specified either --enable-client-only or one of the"
25419    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25420    echo "  This is not permitted. Please reconfigure."
25421    echo " "
25422    echo "Aborting the configuration ..."
25423    echo " "
25424    echo " "
25425    exit 1
25426 fi
25427
25428 echo "
25429 Configuration on `date`:
25430
25431   Host:                       $host -- ${DISTNAME} ${DISTVER}
25432   Bacula version:             ${VERSION} (${DATE})
25433   Source code location:       ${srcdir}
25434   Install binaries:           ${sbindir}
25435   Install config files:       ${sysconfdir}
25436   Scripts directory:          ${scriptdir}
25437   Working directory:          ${working_dir}
25438   PID directory:              ${piddir}
25439   Subsys directory:           ${subsysdir}
25440   Man directory:              ${mandir}
25441   Data directory:             ${datadir}
25442   C Compiler:                 ${CC} ${CCVERSION}
25443   C++ Compiler:               ${CXX} ${CXXVERSION}
25444   Compiler flags:             ${WCFLAGS} ${CFLAGS}
25445   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
25446   Libraries:                  ${LIBS}
25447   Statically Linked Tools:    ${support_static_tools}
25448   Statically Linked FD:       ${support_static_fd}
25449   Statically Linked SD:       ${support_static_sd}
25450   Statically Linked DIR:      ${support_static_dir}
25451   Statically Linked CONS:     ${support_static_cons}
25452   Database type:              ${db_name}
25453   Database lib:               ${DB_LIBS}
25454
25455   Job Output Email:           ${job_email}
25456   Traceback Email:            ${dump_email}
25457   SMTP Host Address:          ${smtp_host}
25458
25459   Director Port:              ${dir_port}
25460   File daemon Port:           ${fd_port}
25461   Storage daemon Port:        ${sd_port}
25462
25463   Director User:              ${dir_user}
25464   Director Group:             ${dir_group}
25465   Storage Daemon User:        ${sd_user}
25466   Storage DaemonGroup:        ${sd_group}
25467   File Daemon User:           ${fd_user}
25468   File Daemon Group:          ${fd_group}
25469
25470   SQL binaries Directory      ${SQL_BINDIR}
25471
25472   Large file support:         $largefile_support
25473   Bacula conio support:       ${got_conio} ${CONS_LIBS}
25474   readline support:           ${got_readline} ${PRTREADLINE_SRC}
25475   TCP Wrappers support:       ${TCPW_MSG}
25476   TLS support:                ${support_tls}
25477   ZLIB support:               ${have_zlib}
25478   enable-smartalloc:          ${support_smartalloc}
25479   enable-gnome:               ${support_gnome} ${gnome_version}
25480   enable-wx-console:          ${support_wx_console} ${wx_version}
25481   enable-tray-monitor:        ${support_tray_monitor}
25482   client-only:                ${build_client_only}
25483   build-dird:                 ${build_dird}
25484   build-stored:               ${build_stored}
25485   ACL support:                ${have_acl}
25486   Python support:             ${support_python} ${PYTHON_LIBS}
25487
25488   " > config.out
25489
25490 cat config.out