]> jfr.im git - irc/unrealircd/unrealircd.git/blame - configure
- Undid that. Version is now 3.3-willneverbereleased.
[irc/unrealircd/unrealircd.git] / configure
CommitLineData
f40ec73c 1#! /bin/sh
f40ec73c 2# Guess values for system-dependent variables and create Makefiles.
81ae7da0 3# Generated by GNU Autoconf 2.59.
f40ec73c 4#
81ae7da0 5# Copyright (C) 2003 Free Software Foundation, Inc.
f40ec73c 6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
f69335e6 8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
cbdd3138
BM
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+"$@"}'='"$@"'
81ae7da0
BM
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
f69335e6 21fi
cbdd3138 22DUALCASE=1; export DUALCASE # for MKS sh
f69335e6 23
f69335e6 24# Support unset when possible.
cbdd3138 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
f69335e6 26 as_unset=unset
27else
28 as_unset=false
29fi
30
cbdd3138
BM
31
32# Work around bugs in pre-3.0 UWIN ksh.
81ae7da0 33$as_unset ENV MAIL MAILPATH
cbdd3138
BM
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
81ae7da0 47 $as_unset $as_var
cbdd3138
BM
48 fi
49done
50
51# Required to use basename.
81ae7da0 52if expr a : '\(a\)' >/dev/null 2>&1; then
cbdd3138
BM
53 as_expr=expr
54else
55 as_expr=false
56fi
57
81ae7da0 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
cbdd3138
BM
59 as_basename=basename
60else
61 as_basename=false
62fi
f69335e6 63
64
65# Name of the executable.
81ae7da0 66as_me=`$as_basename "$0" ||
f69335e6 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
81ae7da0
BM
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
f69335e6 71echo X/"$0" |
81ae7da0
BM
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
f69335e6 76
32843244 77
81ae7da0
BM
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
32843244 85
81ae7da0
BM
86# The user is always right.
87if 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
32843244 97fi
98
32843244 99
81ae7da0
BM
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
32843244 116
81ae7da0
BM
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 '')
f69335e6 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81ae7da0 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
f69335e6 132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
81ae7da0
BM
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
f69335e6 137 /*)
81ae7da0 138 if ("$as_dir/$as_base" -c '
32843244 139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
81ae7da0 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32843244 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
81ae7da0
BM
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
152done
153;;
154 esac
f69335e6 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
81ae7da0
BM
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.
f69335e6 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
81ae7da0
BM
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
f69335e6 165 sed '
166 N
81ae7da0
BM
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
f69335e6 170 t loop
81ae7da0
BM
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
f69335e6 173 ' >$as_me.lineno &&
81ae7da0 174 chmod +x $as_me.lineno ||
f69335e6 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
81ae7da0
BM
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
f69335e6 182 # Exit status is that of the last command.
183 exit
184}
185
186
81ae7da0
BM
187case `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= ;;
f69335e6 192esac
193
81ae7da0 194if expr a : '\(a\)' >/dev/null 2>&1; then
f69335e6 195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
81ae7da0
BM
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
f69335e6 207 as_ln_s='cp -p'
81ae7da0
BM
208 else
209 as_ln_s='ln -s'
210 fi
f69335e6 211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
81ae7da0 216rm -f conf$$ conf$$.exe conf$$.file
f69335e6 217
cbdd3138
BM
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
81ae7da0 225as_executable_p="test -f"
f69335e6 226
227# Sed expression to map a string onto a valid CPP name.
cbdd3138 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f69335e6 229
230# Sed expression to map a string onto a valid variable name.
cbdd3138 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f69335e6 232
233
81ae7da0
BM
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
f69335e6 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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
81ae7da0
BM
249exec 6>&1
250
f69335e6 251#
252# Initializations.
253#
f40ec73c 254ac_default_prefix=/usr/local
cbdd3138 255ac_config_libobj_dir=.
f69335e6 256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
81ae7da0
BM
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
f69335e6 267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="src/ircd.c"
275# Factoring default headers for most tests.
276ac_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>
81ae7da0
BM
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
f69335e6 307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
b4f2619a 312ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RM CP TOUCH OPENSSLPATH INSTALL MAKER GMAKE GUNZIP PKGCONFIG IRCDLIBS MKPASSWDLIBS CPP EGREP ALLOCA STRTOUL CRYPTOLIB MODULEFLAGS MODULES_WHICH HAVE_ZLIB URL IRCDDIR BINDIR FD_SETSIZE TREINCDIR TRELIBS CARESINCDIR CARESLIBDIR CARESLIBS LIBOBJS LTLIBOBJS'
cbdd3138 313ac_subst_files=''
f40ec73c 314
315# Initialize some variables set by options.
f69335e6 316ac_init_help=
317ac_init_version=false
f40ec73c 318# The variables have the same names as the options, with
319# dashes changed to underlines.
f69335e6 320cache_file=/dev/null
f40ec73c 321exec_prefix=NONE
f40ec73c 322no_create=
f40ec73c 323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
f40ec73c 331verbose=
332x_includes=NONE
333x_libraries=NONE
f69335e6 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.
f40ec73c 340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
81ae7da0 343datadir='${prefix}/share'
f40ec73c 344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
81ae7da0 347libdir='${exec_prefix}/lib'
f40ec73c 348includedir='${prefix}/include'
349oldincludedir='/usr/include'
81ae7da0
BM
350infodir='${prefix}/info'
351mandir='${prefix}/man'
f40ec73c 352
f40ec73c 353ac_prev=
354for ac_option
355do
f40ec73c 356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
81ae7da0 358 eval "$ac_prev=\$ac_option"
f40ec73c 359 ac_prev=
360 continue
361 fi
362
81ae7da0 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
f40ec73c 364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
81ae7da0 367 case $ac_option in
f40ec73c 368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f69335e6 372 bindir=$ac_optarg ;;
f40ec73c 373
374 -build | --build | --buil | --bui | --bu)
f69335e6 375 ac_prev=build_alias ;;
f40ec73c 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f69335e6 377 build_alias=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
f40ec73c 388
81ae7da0 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
f40ec73c 390 ac_prev=datadir ;;
81ae7da0
BM
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
f69335e6 393 datadir=$ac_optarg ;;
f40ec73c 394
395 -disable-* | --disable-*)
f69335e6 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
f40ec73c 397 # Reject names that are not valid shell variable names.
f69335e6 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'`
81ae7da0 402 eval "enable_$ac_feature=no" ;;
f40ec73c 403
404 -enable-* | --enable-*)
f69335e6 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
f40ec73c 406 # Reject names that are not valid shell variable names.
f69335e6 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'`
81ae7da0
BM
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'" ;;
f40ec73c 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=*)
f69335e6 424 exec_prefix=$ac_optarg ;;
f40ec73c 425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
f69335e6 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 ;;
f40ec73c 436
437 -host | --host | --hos | --ho)
f69335e6 438 ac_prev=host_alias ;;
f40ec73c 439 -host=* | --host=* | --hos=* | --ho=*)
f69335e6 440 host_alias=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 447 includedir=$ac_optarg ;;
f40ec73c 448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f69335e6 452 infodir=$ac_optarg ;;
f40ec73c 453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f69335e6 457 libdir=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 464 libexecdir=$ac_optarg ;;
f40ec73c 465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ae7da0
BM
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
f40ec73c 469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ae7da0
BM
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
f69335e6 473 localstatedir=$ac_optarg ;;
f40ec73c 474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f69335e6 478 mandir=$ac_optarg ;;
f40ec73c 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 \
f69335e6 485 | --no-cr | --no-c | -n)
f40ec73c 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=*)
f69335e6 499 oldincludedir=$ac_optarg ;;
f40ec73c 500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f69335e6 504 prefix=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 511 program_prefix=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 518 program_suffix=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 535 program_transform_name=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 545 sbindir=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 556 sharedstatedir=$ac_optarg ;;
f40ec73c 557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
f69335e6 561 site=$ac_optarg ;;
f40ec73c 562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f69335e6 566 srcdir=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 573 sysconfdir=$ac_optarg ;;
f40ec73c 574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
f69335e6 576 ac_prev=target_alias ;;
f40ec73c 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f69335e6 578 target_alias=$ac_optarg ;;
f40ec73c 579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
f69335e6 583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
f40ec73c 585
586 -with-* | --with-*)
f69335e6 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
f40ec73c 588 # Reject names that are not valid shell variable names.
f69335e6 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; }; }
f40ec73c 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
81ae7da0
BM
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'" ;;
f40ec73c 598
599 -without-* | --without-*)
f69335e6 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
f40ec73c 601 # Reject names that are not valid shell variable names.
f69335e6 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'`
81ae7da0 606 eval "with_$ac_package=no" ;;
f40ec73c 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=*)
f69335e6 617 x_includes=$ac_optarg ;;
f40ec73c 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=*)
f69335e6 624 x_libraries=$ac_optarg ;;
f40ec73c 625
f69335e6 626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
f40ec73c 629 ;;
630
f69335e6 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; }; }
81ae7da0
BM
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
f69335e6 639 export $ac_envvar ;;
640
f40ec73c 641 *)
f69335e6 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}
f40ec73c 647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
f69335e6 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; }; }
f40ec73c 656fi
f40ec73c 657
81ae7da0
BM
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
f40ec73c 660do
81ae7da0 661 eval ac_val=$`echo $ac_var`
f69335e6 662 case $ac_val in
81ae7da0
BM
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
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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; }; };;
f40ec73c 678 esac
679done
680
f69335e6 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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
697fi
f40ec73c 698
f69335e6 699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
f40ec73c 703
f40ec73c 704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
81ae7da0
BM
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
f69335e6 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cbdd3138
BM
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
81ae7da0
BM
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
f69335e6 715echo X"$0" |
81ae7da0
BM
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
f40ec73c 721 srcdir=$ac_confdir
64b46a71 722 if test ! -r $srcdir/$ac_unique_file; then
f40ec73c 723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
64b46a71 728if test ! -r $srcdir/$ac_unique_file; then
81ae7da0
BM
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
f69335e6 734 { (exit 1); exit 1; }; }
81ae7da0 735 fi
f40ec73c 736fi
64b46a71 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
81ae7da0 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
cbdd3138 739 { (exit 1); exit 1; }; }
81ae7da0
BM
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
0e87ac8a 769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
81ae7da0
BM
777ac_env_CPP_set=${CPP+set}
778ac_env_CPP_value=$CPP
779ac_cv_env_CPP_set=${CPP+set}
780ac_cv_env_CPP_value=$CPP
f69335e6 781
782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789\`configure' configures this package to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE. See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
81ae7da0
BM
809_ACEOF
810
811 cat <<_ACEOF
f69335e6 812Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
cbdd3138 814 [$ac_default_prefix]
f69335e6 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cbdd3138 816 [PREFIX]
f69335e6 817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
81ae7da0 829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
f69335e6 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
81ae7da0
BM
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
f69335e6 838_ACEOF
839
840 cat <<\_ACEOF
f69335e6 841_ACEOF
842fi
843
844if test -n "$ac_init_help"; then
845
846 cat <<\_ACEOF
847
848Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
af289c86 851 --enable-nospoof Enable spoofing protection
852 --enable-prefixaq Enable chanadmin and chanowner prefixes
853 --enable-hub Compile as a hub server
854 --enable-ssl= enable ssl will check /usr/local/ssl /usr/lib/ssl
855 /usr/ssl /usr/pkg /usr/local /usr
856 --enable-ziplinks enable ziplinks will check /usr/local /usr /usr/pkg
3be92d02 857 --enable-libcurl=DIR enable libcurl (remote include) support
af289c86 858 --enable-dynamic-linking
859 Make the IRCd dynamically link shared objects rather
860 than statically
861 --enable-inet6 Make the IRCd support IPv6
f69335e6 862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
af289c86 866 --with-listen=backlog Specify the listen backlog value
867 --with-nick-history=length
868 Specify the length of the nickname history
869 --with-sendq=maxsendq Specify the max sendq for the server
870 --with-bufferpool=size Specify the size of the buffer pool
af289c86 871 --with-permissions=permissions
872 Specify the default permissions for configuration
873 files
874 --with-dpath=path Specify the path where configuration files are
875 stored
876 --with-fd-setsize=size Specify the max file descriptors to use
877 --with-spath Specify the location of the executable
704b6260
BM
878 --with-showlistmodes Specify whether modes are shown in /list
879 --with-topicisnuhost Display nick!user@host as the topic setter
880 --with-shunnotices Notify a user when he/she is no longer shunned
881 --with-no-operoverride Disable OperOverride
882 --with-disableusermod Disable /set* and /chg*
883 --with-operoverride-verify
884 Require opers to invite themselves to +s/+p channels
542fa2bc 885 --with-disable-extendedban-stacking
886 Disable extended ban stacking
83384cef 887 --with-moduleswhich=onlycommands|onlymodules|commandsandmodules What modules to build
f69335e6 888
889Some influential environment variables:
890 CC C compiler command
891 CFLAGS C compiler flags
892 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
893 nonstandard directory <lib dir>
81ae7da0
BM
894 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
895 headers in a nonstandard directory <include dir>
0e87ac8a 896 CXX C++ compiler command
897 CXXFLAGS C++ compiler flags
f69335e6 898 CPP C preprocessor
899
900Use these variables to override the choices made by `configure' or to help
901it to find libraries and programs with nonstandard names/locations.
902
903_ACEOF
904fi
905
906if test "$ac_init_help" = "recursive"; then
907 # If there are subdirs, report their specific --help.
81ae7da0 908 ac_popdir=`pwd`
f69335e6 909 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ae7da0 910 test -d $ac_dir || continue
f69335e6 911 ac_builddir=.
912
81ae7da0 913if test "$ac_dir" != .; then
f69335e6 914 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
81ae7da0
BM
915 # A "../" for each directory in $ac_dir_suffix.
916 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
917else
918 ac_dir_suffix= ac_top_builddir=
919fi
f69335e6 920
921case $srcdir in
81ae7da0 922 .) # No --srcdir option. We are building in place.
f69335e6 923 ac_srcdir=.
81ae7da0
BM
924 if test -z "$ac_top_builddir"; then
925 ac_top_srcdir=.
926 else
927 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
928 fi ;;
929 [\\/]* | ?:[\\/]* ) # Absolute path.
f69335e6 930 ac_srcdir=$srcdir$ac_dir_suffix;
81ae7da0
BM
931 ac_top_srcdir=$srcdir ;;
932 *) # Relative path.
933 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
934 ac_top_srcdir=$ac_top_builddir$srcdir ;;
935esac
936
937# Do not use `cd foo && pwd` to compute absolute paths, because
938# the directories may not exist.
939case `pwd` in
940.) ac_abs_builddir="$ac_dir";;
941*)
942 case "$ac_dir" in
943 .) ac_abs_builddir=`pwd`;;
944 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
945 *) ac_abs_builddir=`pwd`/"$ac_dir";;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_builddir=${ac_top_builddir}.;;
950*)
951 case ${ac_top_builddir}. in
952 .) ac_abs_top_builddir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
955 esac;;
956esac
957case $ac_abs_builddir in
958.) ac_abs_srcdir=$ac_srcdir;;
959*)
960 case $ac_srcdir in
961 .) ac_abs_srcdir=$ac_abs_builddir;;
962 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
963 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
964 esac;;
965esac
966case $ac_abs_builddir in
967.) ac_abs_top_srcdir=$ac_top_srcdir;;
968*)
969 case $ac_top_srcdir in
970 .) ac_abs_top_srcdir=$ac_abs_builddir;;
971 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
973 esac;;
cbdd3138 974esac
81ae7da0
BM
975
976 cd $ac_dir
977 # Check for guested configure; otherwise get Cygnus style configure.
978 if test -f $ac_srcdir/configure.gnu; then
979 echo
980 $SHELL $ac_srcdir/configure.gnu --help=recursive
981 elif test -f $ac_srcdir/configure; then
982 echo
983 $SHELL $ac_srcdir/configure --help=recursive
984 elif test -f $ac_srcdir/configure.ac ||
985 test -f $ac_srcdir/configure.in; then
986 echo
987 $ac_configure --help
f69335e6 988 else
989 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
81ae7da0 990 fi
64b46a71 991 cd "$ac_popdir"
f69335e6 992 done
993fi
994
81ae7da0 995test -n "$ac_init_help" && exit 0
f69335e6 996if $ac_init_version; then
997 cat <<\_ACEOF
998
81ae7da0 999Copyright (C) 2003 Free Software Foundation, Inc.
f69335e6 1000This configure script is free software; the Free Software Foundation
1001gives unlimited permission to copy, distribute and modify it.
1002_ACEOF
81ae7da0 1003 exit 0
f69335e6 1004fi
81ae7da0
BM
1005exec 5>config.log
1006cat >&5 <<_ACEOF
f69335e6 1007This file contains any messages produced by compilers while
1008running configure, to aid debugging if configure makes a mistake.
1009
1010It was created by $as_me, which was
81ae7da0 1011generated by GNU Autoconf 2.59. Invocation command line was
f69335e6 1012
1013 $ $0 $@
1014
1015_ACEOF
1016{
1017cat <<_ASUNAME
1018## --------- ##
1019## Platform. ##
1020## --------- ##
1021
1022hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1023uname -m = `(uname -m) 2>/dev/null || echo unknown`
1024uname -r = `(uname -r) 2>/dev/null || echo unknown`
1025uname -s = `(uname -s) 2>/dev/null || echo unknown`
1026uname -v = `(uname -v) 2>/dev/null || echo unknown`
1027
1028/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1029/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1030
1031/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1032/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1033/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ae7da0 1034hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
f69335e6 1035/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1036/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1037/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1038
1039_ASUNAME
1040
1041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1042for as_dir in $PATH
1043do
1044 IFS=$as_save_IFS
1045 test -z "$as_dir" && as_dir=.
1046 echo "PATH: $as_dir"
1047done
1048
1049} >&5
1050
1051cat >&5 <<_ACEOF
1052
1053
1054## ----------- ##
1055## Core tests. ##
1056## ----------- ##
1057
1058_ACEOF
1059
1060
1061# Keep a trace of the command line.
1062# Strip out --no-create and --no-recursion so they do not pile up.
cbdd3138 1063# Strip out --silent because we don't want to record it for future runs.
f69335e6 1064# Also quote any args containing shell meta-characters.
cbdd3138 1065# Make two passes to allow for proper duplicate-argument suppression.
f69335e6 1066ac_configure_args=
cbdd3138
BM
1067ac_configure_args0=
1068ac_configure_args1=
81ae7da0 1069ac_sep=
cbdd3138
BM
1070ac_must_keep_next=false
1071for ac_pass in 1 2
f69335e6 1072do
cbdd3138
BM
1073 for ac_arg
1074 do
1075 case $ac_arg in
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 continue ;;
81ae7da0 1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
cbdd3138
BM
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 esac
1083 case $ac_pass in
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1085 2)
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087 if test $ac_must_keep_next = true; then
1088 ac_must_keep_next=false # Got value, back to normal.
1089 else
1090 case $ac_arg in
1091 *=* | --config-cache | -C | -disable-* | --disable-* \
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 | -with-* | --with-* | -without-* | --without-* | --x)
1095 case "$ac_configure_args0 " in
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 esac
1098 ;;
1099 -* ) ac_must_keep_next=true ;;
1100 esac
1101 fi
81ae7da0
BM
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103 # Get rid of the leading space.
1104 ac_sep=" "
cbdd3138
BM
1105 ;;
1106 esac
1107 done
f69335e6 1108done
cbdd3138
BM
1109$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1110$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f69335e6 1111
1112# When interrupted or exit'd, cleanup temporary files, and complete
1113# config.log. We remove comments because anyway the quotes in there
1114# would cause problems or look ugly.
81ae7da0
BM
1115# WARNING: Be sure not to use single quotes in there, as some shells,
1116# such as our DU 5.0 friend, will then `close' the trap.
f69335e6 1117trap 'exit_status=$?
1118 # Save into config.log some information that might help in debugging.
1119 {
1120 echo
cbdd3138 1121
f69335e6 1122 cat <<\_ASBOX
1123## ---------------- ##
1124## Cache variables. ##
1125## ---------------- ##
1126_ASBOX
1127 echo
1128 # The following way of writing the cache mishandles newlines in values,
81ae7da0 1129{
f69335e6 1130 (set) 2>&1 |
81ae7da0
BM
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 *ac_space=\ *)
f69335e6 1133 sed -n \
81ae7da0
BM
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136 ;;
f69335e6 1137 *)
81ae7da0
BM
1138 sed -n \
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
f69335e6 1140 ;;
81ae7da0
BM
1141 esac;
1142}
f69335e6 1143 echo
cbdd3138
BM
1144
1145 cat <<\_ASBOX
1146## ----------------- ##
1147## Output variables. ##
1148## ----------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_vars
1152 do
81ae7da0
BM
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
cbdd3138
BM
1155 done | sort
1156 echo
1157
1158 if test -n "$ac_subst_files"; then
1159 cat <<\_ASBOX
81ae7da0
BM
1160## ------------- ##
1161## Output files. ##
1162## ------------- ##
cbdd3138
BM
1163_ASBOX
1164 echo
1165 for ac_var in $ac_subst_files
1166 do
81ae7da0
BM
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
cbdd3138
BM
1169 done | sort
1170 echo
1171 fi
1172
f69335e6 1173 if test -s confdefs.h; then
1174 cat <<\_ASBOX
1175## ----------- ##
1176## confdefs.h. ##
1177## ----------- ##
1178_ASBOX
1179 echo
81ae7da0 1180 sed "/^$/d" confdefs.h | sort
f69335e6 1181 echo
1182 fi
1183 test "$ac_signal" != 0 &&
1184 echo "$as_me: caught signal $ac_signal"
1185 echo "$as_me: exit $exit_status"
1186 } >&5
81ae7da0
BM
1187 rm -f core *.core &&
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
f69335e6 1189 exit $exit_status
81ae7da0 1190 ' 0
f69335e6 1191for ac_signal in 1 2 13 15; do
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1193done
1194ac_signal=0
1195
1196# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ae7da0
BM
1197rm -rf conftest* confdefs.h
1198# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199echo >confdefs.h
f69335e6 1200
1201# Predefined preprocessor variables.
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_NAME "$PACKAGE_NAME"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_VERSION "$PACKAGE_VERSION"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_STRING "$PACKAGE_STRING"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1225_ACEOF
f40ec73c 1226
f69335e6 1227
1228# Let the site file select an alternate cache file if it wants to.
f40ec73c 1229# Prefer explicitly selected file to automatically selected ones.
81ae7da0
BM
1230if test -z "$CONFIG_SITE"; then
1231 if test "x$prefix" != xNONE; then
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1233 else
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 fi
f40ec73c 1236fi
81ae7da0 1237for ac_site_file in $CONFIG_SITE; do
f40ec73c 1238 if test -r "$ac_site_file"; then
f69335e6 1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1240echo "$as_me: loading site script $ac_site_file" >&6;}
1241 sed 's/^/| /' "$ac_site_file" >&5
f40ec73c 1242 . "$ac_site_file"
1243 fi
1244done
1245
1246if test -r "$cache_file"; then
f69335e6 1247 # Some versions of bash will fail to source /dev/null (special
1248 # files actually), so we avoid doing that.
1249 if test -f "$cache_file"; then
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1251echo "$as_me: loading cache $cache_file" >&6;}
1252 case $cache_file in
81ae7da0
BM
1253 [\\/]* | ?:[\\/]* ) . $cache_file;;
1254 *) . ./$cache_file;;
f69335e6 1255 esac
1256 fi
f40ec73c 1257else
f69335e6 1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1259echo "$as_me: creating cache $cache_file" >&6;}
1260 >$cache_file
1261fi
1262
1263# Check that the precious variables saved in the cache have kept the same
1264# value.
1265ac_cache_corrupted=false
81ae7da0
BM
1266for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
f69335e6 1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
81ae7da0
BM
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
f69335e6 1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
cbdd3138 1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f69335e6 1285echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
cbdd3138 1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f69335e6 1287echo "$as_me: former value: $ac_old_val" >&2;}
cbdd3138 1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f69335e6 1289echo "$as_me: current value: $ac_new_val" >&2;}
cbdd3138 1290 ac_cache_corrupted=:
f69335e6 1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
81ae7da0
BM
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
f69335e6 1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305done
1306if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
f40ec73c 1312fi
1313
81ae7da0
BM
1314ac_ext=c
1315ac_cpp='$CPP $CPPFLAGS'
1316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
f40ec73c 1320
1321
f69335e6 1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
cbdd3138 1337
f69335e6 1338if test $# = 0; then
1339 echo "You might want to run ./Config or provide some parameters to this script."
1340 echo "./configure --help for information about this script"
1341 exit 0
1342fi
81ae7da0 1343 ac_config_headers="$ac_config_headers include/setup.h"
f69335e6 1344
1345ac_ext=c
1346ac_cpp='$CPP $CPPFLAGS'
1347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1349ac_compiler_gnu=$ac_cv_c_compiler_gnu
1350if test -n "$ac_tool_prefix"; then
1351 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1352set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ae7da0
BM
1353echo "$as_me:$LINENO: checking for $ac_word" >&5
1354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 1355if test "${ac_cv_prog_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 1357else
1358 if test -n "$CC"; then
1359 ac_cv_prog_CC="$CC" # Let the user override the test.
1360else
f69335e6 1361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362for as_dir in $PATH
1363do
1364 IFS=$as_save_IFS
1365 test -z "$as_dir" && as_dir=.
1366 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 1368 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370 break 2
1371 fi
1372done
1373done
1374
f40ec73c 1375fi
1376fi
f69335e6 1377CC=$ac_cv_prog_CC
f40ec73c 1378if test -n "$CC"; then
81ae7da0
BM
1379 echo "$as_me:$LINENO: result: $CC" >&5
1380echo "${ECHO_T}$CC" >&6
f40ec73c 1381else
81ae7da0
BM
1382 echo "$as_me:$LINENO: result: no" >&5
1383echo "${ECHO_T}no" >&6
f40ec73c 1384fi
1385
f69335e6 1386fi
1387if test -z "$ac_cv_prog_CC"; then
1388 ac_ct_CC=$CC
1389 # Extract the first word of "gcc", so it can be a program name with args.
1390set dummy gcc; ac_word=$2
81ae7da0
BM
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 1393if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 1395else
f69335e6 1396 if test -n "$ac_ct_CC"; then
1397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
f40ec73c 1398else
f69335e6 1399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 1406 ac_cv_prog_ac_ct_CC="gcc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
f40ec73c 1409 fi
f69335e6 1410done
1411done
1412
f40ec73c 1413fi
1414fi
f69335e6 1415ac_ct_CC=$ac_cv_prog_ac_ct_CC
1416if test -n "$ac_ct_CC"; then
81ae7da0
BM
1417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1418echo "${ECHO_T}$ac_ct_CC" >&6
f69335e6 1419else
81ae7da0
BM
1420 echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
f40ec73c 1422fi
f69335e6 1423
81ae7da0 1424 CC=$ac_ct_CC
f40ec73c 1425else
f69335e6 1426 CC="$ac_cv_prog_CC"
f40ec73c 1427fi
1428
f69335e6 1429if test -z "$CC"; then
81ae7da0
BM
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f69335e6 1432set dummy ${ac_tool_prefix}cc; ac_word=$2
81ae7da0
BM
1433echo "$as_me:$LINENO: checking for $ac_word" >&5
1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 1435if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 1437else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440else
f69335e6 1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442for as_dir in $PATH
1443do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 1448 ac_cv_prog_CC="${ac_tool_prefix}cc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452done
1453done
1454
f40ec73c 1455fi
1456fi
f69335e6 1457CC=$ac_cv_prog_CC
f40ec73c 1458if test -n "$CC"; then
81ae7da0
BM
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460echo "${ECHO_T}$CC" >&6
f69335e6 1461else
81ae7da0
BM
1462 echo "$as_me:$LINENO: result: no" >&5
1463echo "${ECHO_T}no" >&6
f69335e6 1464fi
f40ec73c 1465
81ae7da0
BM
1466fi
1467if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "cc", so it can be a program name with args.
1470set dummy cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478else
1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="cc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
32843244 1489 fi
81ae7da0
BM
1490done
1491done
1492
1493fi
1494fi
1495ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498echo "${ECHO_T}$ac_ct_CC" >&6
1499else
1500 echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504 CC=$ac_ct_CC
1505else
1506 CC="$ac_cv_prog_CC"
1507fi
1508
f69335e6 1509fi
1510if test -z "$CC"; then
1511 # Extract the first word of "cc", so it can be a program name with args.
1512set dummy cc; ac_word=$2
81ae7da0
BM
1513echo "$as_me:$LINENO: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 1515if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520else
1521 ac_prog_rejected=no
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 1529 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1530 ac_prog_rejected=yes
1531 continue
1532 fi
1533 ac_cv_prog_CC="cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
f40ec73c 1539
f69335e6 1540if test $ac_prog_rejected = yes; then
1541 # We found a bogon in the path, so make sure we never use it.
1542 set dummy $ac_cv_prog_CC
1543 shift
1544 if test $# != 0; then
1545 # We chose a different compiler from the bogus one.
1546 # However, it has the same basename, so the bogon will be chosen
1547 # first if we set CC to just the basename; use the full file name.
1548 shift
cbdd3138 1549 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
f69335e6 1550 fi
1551fi
1552fi
1553fi
1554CC=$ac_cv_prog_CC
1555if test -n "$CC"; then
81ae7da0
BM
1556 echo "$as_me:$LINENO: result: $CC" >&5
1557echo "${ECHO_T}$CC" >&6
f69335e6 1558else
81ae7da0
BM
1559 echo "$as_me:$LINENO: result: no" >&5
1560echo "${ECHO_T}no" >&6
f69335e6 1561fi
f40ec73c 1562
f69335e6 1563fi
1564if test -z "$CC"; then
1565 if test -n "$ac_tool_prefix"; then
81ae7da0 1566 for ac_prog in cl
f69335e6 1567 do
1568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1569set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ae7da0
BM
1570echo "$as_me:$LINENO: checking for $ac_word" >&5
1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 1572if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1577else
1578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 1585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
f40ec73c 1588 fi
f69335e6 1589done
1590done
1591
1592fi
1593fi
1594CC=$ac_cv_prog_CC
1595if test -n "$CC"; then
81ae7da0
BM
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597echo "${ECHO_T}$CC" >&6
f40ec73c 1598else
81ae7da0
BM
1599 echo "$as_me:$LINENO: result: no" >&5
1600echo "${ECHO_T}no" >&6
f40ec73c 1601fi
f40ec73c 1602
f69335e6 1603 test -n "$CC" && break
1604 done
f40ec73c 1605fi
f69335e6 1606if test -z "$CC"; then
1607 ac_ct_CC=$CC
81ae7da0 1608 for ac_prog in cl
f69335e6 1609do
1610 # Extract the first word of "$ac_prog", so it can be a program name with args.
1611set dummy $ac_prog; ac_word=$2
81ae7da0
BM
1612echo "$as_me:$LINENO: checking for $ac_word" >&5
1613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 1614if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616else
1617 if test -n "$ac_ct_CC"; then
1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1619else
1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 1627 ac_cv_prog_ac_ct_CC="$ac_prog"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631done
1632done
f40ec73c 1633
f69335e6 1634fi
1635fi
1636ac_ct_CC=$ac_cv_prog_ac_ct_CC
1637if test -n "$ac_ct_CC"; then
81ae7da0
BM
1638 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1639echo "${ECHO_T}$ac_ct_CC" >&6
f40ec73c 1640else
81ae7da0
BM
1641 echo "$as_me:$LINENO: result: no" >&5
1642echo "${ECHO_T}no" >&6
f69335e6 1643fi
1644
1645 test -n "$ac_ct_CC" && break
1646done
1647
81ae7da0 1648 CC=$ac_ct_CC
f69335e6 1649fi
1650
1651fi
1652
1653
cbdd3138
BM
1654test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1655See \`config.log' for more details." >&5
1656echo "$as_me: error: no acceptable C compiler found in \$PATH
1657See \`config.log' for more details." >&2;}
f69335e6 1658 { (exit 1); exit 1; }; }
1659
1660# Provide some information about the compiler.
81ae7da0
BM
1661echo "$as_me:$LINENO:" \
1662 "checking for C compiler version" >&5
f69335e6 1663ac_compiler=`set X $ac_compile; echo $2`
81ae7da0
BM
1664{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1665 (eval $ac_compiler --version </dev/null >&5) 2>&5
f69335e6 1666 ac_status=$?
1667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1668 (exit $ac_status); }
81ae7da0
BM
1669{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1670 (eval $ac_compiler -v </dev/null >&5) 2>&5
f69335e6 1671 ac_status=$?
1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1673 (exit $ac_status); }
81ae7da0
BM
1674{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1675 (eval $ac_compiler -V </dev/null >&5) 2>&5
f69335e6 1676 ac_status=$?
1677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678 (exit $ac_status); }
1679
1680cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
1681/* confdefs.h. */
1682_ACEOF
1683cat confdefs.h >>conftest.$ac_ext
1684cat >>conftest.$ac_ext <<_ACEOF
1685/* end confdefs.h. */
f69335e6 1686
f69335e6 1687int
1688main ()
1689{
1690
1691 ;
1692 return 0;
1693}
1694_ACEOF
1695ac_clean_files_save=$ac_clean_files
cbdd3138 1696ac_clean_files="$ac_clean_files a.out a.exe b.out"
f69335e6 1697# Try to create an executable without -o first, disregard a.out.
1698# It will help us diagnose broken compilers, and finding out an intuition
1699# of exeext.
81ae7da0
BM
1700echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1701echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
f69335e6 1702ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
81ae7da0
BM
1703if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1704 (eval $ac_link_default) 2>&5
f69335e6 1705 ac_status=$?
1706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1707 (exit $ac_status); }; then
81ae7da0
BM
1708 # Find the output, starting from the most likely. This scheme is
1709# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1710# resort.
1711
1712# Be careful to initialize this variable, since it used to be cached.
1713# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1714ac_cv_exeext=
1715# b.out is created by i960 compilers.
1716for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
cbdd3138
BM
1717do
1718 test -f "$ac_file" || continue
f69335e6 1719 case $ac_file in
81ae7da0
BM
1720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1721 ;;
1722 conftest.$ac_ext )
1723 # This is the source file.
cbdd3138
BM
1724 ;;
1725 [ab].out )
1726 # We found the default executable, but exeext='' is most
1727 # certainly right.
1728 break;;
1729 *.* )
81ae7da0
BM
1730 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool,
1732 # but it would be cool to find out if it's true. Does anybody
1733 # maintain Libtool? --akim.
1734 export ac_cv_exeext
cbdd3138
BM
1735 break;;
1736 * )
1737 break;;
f69335e6 1738 esac
1739done
f40ec73c 1740else
f69335e6 1741 echo "$as_me: failed program was:" >&5
cbdd3138
BM
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1745See \`config.log' for more details." >&5
1746echo "$as_me: error: C compiler cannot create executables
1747See \`config.log' for more details." >&2;}
f69335e6 1748 { (exit 77); exit 77; }; }
1749fi
1750
1751ac_exeext=$ac_cv_exeext
81ae7da0
BM
1752echo "$as_me:$LINENO: result: $ac_file" >&5
1753echo "${ECHO_T}$ac_file" >&6
f69335e6 1754
81ae7da0 1755# Check the compiler produces executables we can run. If not, either
f69335e6 1756# the compiler is broken, or we cross compile.
81ae7da0
BM
1757echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1758echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
f69335e6 1759# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1760# If not cross compiling, check that we can run a simple program.
1761if test "$cross_compiling" != yes; then
1762 if { ac_try='./$ac_file'
81ae7da0
BM
1763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1764 (eval $ac_try) 2>&5
f69335e6 1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }; }; then
1768 cross_compiling=no
1769 else
1770 if test "$cross_compiling" = maybe; then
1771 cross_compiling=yes
1772 else
1773 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
cbdd3138
BM
1774If you meant to cross compile, use \`--host'.
1775See \`config.log' for more details." >&5
f69335e6 1776echo "$as_me: error: cannot run C compiled programs.
cbdd3138
BM
1777If you meant to cross compile, use \`--host'.
1778See \`config.log' for more details." >&2;}
f69335e6 1779 { (exit 1); exit 1; }; }
1780 fi
1781 fi
f40ec73c 1782fi
81ae7da0
BM
1783echo "$as_me:$LINENO: result: yes" >&5
1784echo "${ECHO_T}yes" >&6
f69335e6 1785
cbdd3138 1786rm -f a.out a.exe conftest$ac_cv_exeext b.out
f69335e6 1787ac_clean_files=$ac_clean_files_save
81ae7da0 1788# Check the compiler produces executables we can run. If not, either
f69335e6 1789# the compiler is broken, or we cross compile.
81ae7da0
BM
1790echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1791echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1792echo "$as_me:$LINENO: result: $cross_compiling" >&5
1793echo "${ECHO_T}$cross_compiling" >&6
1794
1795echo "$as_me:$LINENO: checking for suffix of executables" >&5
1796echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1798 (eval $ac_link) 2>&5
f69335e6 1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }; then
1802 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1803# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1804# work properly (i.e., refer to `conftest.exe'), while it won't with
1805# `rm'.
cbdd3138
BM
1806for ac_file in conftest.exe conftest conftest.*; do
1807 test -f "$ac_file" || continue
f69335e6 1808 case $ac_file in
81ae7da0 1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
f69335e6 1810 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
81ae7da0 1811 export ac_cv_exeext
cbdd3138 1812 break;;
f69335e6 1813 * ) break;;
1814 esac
1815done
1816else
cbdd3138
BM
1817 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1818See \`config.log' for more details." >&5
1819echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1820See \`config.log' for more details." >&2;}
f69335e6 1821 { (exit 1); exit 1; }; }
f40ec73c 1822fi
1823
f69335e6 1824rm -f conftest$ac_cv_exeext
81ae7da0
BM
1825echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1826echo "${ECHO_T}$ac_cv_exeext" >&6
f69335e6 1827
1828rm -f conftest.$ac_ext
1829EXEEXT=$ac_cv_exeext
1830ac_exeext=$EXEEXT
81ae7da0
BM
1831echo "$as_me:$LINENO: checking for suffix of object files" >&5
1832echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
f69335e6 1833if test "${ac_cv_objext+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
1837/* confdefs.h. */
1838_ACEOF
1839cat confdefs.h >>conftest.$ac_ext
1840cat >>conftest.$ac_ext <<_ACEOF
1841/* end confdefs.h. */
f69335e6 1842
f69335e6 1843int
1844main ()
1845{
f40ec73c 1846
f69335e6 1847 ;
1848 return 0;
1849}
1850_ACEOF
1851rm -f conftest.o conftest.obj
81ae7da0
BM
1852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1853 (eval $ac_compile) 2>&5
f69335e6 1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
81ae7da0 1857 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
f69335e6 1858 case $ac_file in
81ae7da0 1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
f69335e6 1860 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1861 break;;
1862 esac
1863done
f40ec73c 1864else
f69335e6 1865 echo "$as_me: failed program was:" >&5
cbdd3138
BM
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1869See \`config.log' for more details." >&5
1870echo "$as_me: error: cannot compute suffix of object files: cannot compile
1871See \`config.log' for more details." >&2;}
f69335e6 1872 { (exit 1); exit 1; }; }
f40ec73c 1873fi
1874
f69335e6 1875rm -f conftest.$ac_cv_objext conftest.$ac_ext
1876fi
81ae7da0
BM
1877echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1878echo "${ECHO_T}$ac_cv_objext" >&6
f69335e6 1879OBJEXT=$ac_cv_objext
1880ac_objext=$OBJEXT
81ae7da0
BM
1881echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1882echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
f69335e6 1883if test "${ac_cv_c_compiler_gnu+set}" = set; then
1884 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 1885else
f69335e6 1886 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
1887/* confdefs.h. */
1888_ACEOF
1889cat confdefs.h >>conftest.$ac_ext
1890cat >>conftest.$ac_ext <<_ACEOF
1891/* end confdefs.h. */
f69335e6 1892
f69335e6 1893int
1894main ()
1895{
1896#ifndef __GNUC__
1897 choke me
1898#endif
1899
1900 ;
1901 return 0;
1902}
1903_ACEOF
1904rm -f conftest.$ac_objext
81ae7da0
BM
1905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1906 (eval $ac_compile) 2>conftest.er1
f69335e6 1907 ac_status=$?
cbdd3138
BM
1908 grep -v '^ *+' conftest.er1 >conftest.err
1909 rm -f conftest.er1
1910 cat conftest.err >&5
f69335e6 1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); } &&
64b46a71 1913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
1914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1915 (eval $ac_try) 2>&5
cbdd3138
BM
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }; } &&
1919 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
1920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921 (eval $ac_try) 2>&5
f69335e6 1922 ac_status=$?
1923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924 (exit $ac_status); }; }; then
1925 ac_compiler_gnu=yes
1926else
1927 echo "$as_me: failed program was:" >&5
cbdd3138
BM
1928sed 's/^/| /' conftest.$ac_ext >&5
1929
81ae7da0 1930ac_compiler_gnu=no
f69335e6 1931fi
81ae7da0 1932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 1933ac_cv_c_compiler_gnu=$ac_compiler_gnu
1934
1935fi
81ae7da0
BM
1936echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1937echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
f69335e6 1938GCC=`test $ac_compiler_gnu = yes && echo yes`
1939ac_test_CFLAGS=${CFLAGS+set}
1940ac_save_CFLAGS=$CFLAGS
81ae7da0
BM
1941CFLAGS="-g"
1942echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1943echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
f69335e6 1944if test "${ac_cv_prog_cc_g+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
81ae7da0 1947 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
1948/* confdefs.h. */
1949_ACEOF
1950cat confdefs.h >>conftest.$ac_ext
1951cat >>conftest.$ac_ext <<_ACEOF
1952/* end confdefs.h. */
f69335e6 1953
f69335e6 1954int
1955main ()
1956{
1957
1958 ;
1959 return 0;
1960}
1961_ACEOF
1962rm -f conftest.$ac_objext
81ae7da0
BM
1963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>conftest.er1
f69335e6 1965 ac_status=$?
cbdd3138
BM
1966 grep -v '^ *+' conftest.er1 >conftest.err
1967 rm -f conftest.er1
1968 cat conftest.err >&5
f69335e6 1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); } &&
64b46a71 1971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 (eval $ac_try) 2>&5
cbdd3138
BM
1974 ac_status=$?
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; } &&
1977 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
f69335e6 1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
f40ec73c 1983 ac_cv_prog_cc_g=yes
1984else
f69335e6 1985 echo "$as_me: failed program was:" >&5
cbdd3138
BM
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
81ae7da0 1988ac_cv_prog_cc_g=no
f40ec73c 1989fi
81ae7da0 1990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 1991fi
81ae7da0
BM
1992echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1993echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f40ec73c 1994if test "$ac_test_CFLAGS" = set; then
f69335e6 1995 CFLAGS=$ac_save_CFLAGS
f40ec73c 1996elif test $ac_cv_prog_cc_g = yes; then
1997 if test "$GCC" = yes; then
1998 CFLAGS="-g -O2"
1999 else
2000 CFLAGS="-g"
2001 fi
2002else
2003 if test "$GCC" = yes; then
2004 CFLAGS="-O2"
2005 else
2006 CFLAGS=
2007 fi
2008fi
81ae7da0
BM
2009echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2010echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2011if test "${ac_cv_prog_cc_stdc+set}" = set; then
cbdd3138
BM
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
81ae7da0 2014 ac_cv_prog_cc_stdc=no
cbdd3138
BM
2015ac_save_CC=$CC
2016cat >conftest.$ac_ext <<_ACEOF
2017/* confdefs.h. */
2018_ACEOF
2019cat confdefs.h >>conftest.$ac_ext
2020cat >>conftest.$ac_ext <<_ACEOF
2021/* end confdefs.h. */
2022#include <stdarg.h>
2023#include <stdio.h>
2024#include <sys/types.h>
2025#include <sys/stat.h>
2026/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2027struct buf { int x; };
2028FILE * (*rcsopen) (struct buf *, struct stat *, int);
2029static char *e (p, i)
2030 char **p;
2031 int i;
2032{
2033 return p[i];
2034}
2035static char *f (char * (*g) (char **, int), char **p, ...)
2036{
2037 char *s;
2038 va_list v;
2039 va_start (v,p);
2040 s = g (p, va_arg (v,int));
2041 va_end (v);
2042 return s;
2043}
2044
2045/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2046 function prototypes and stuff, but not '\xHH' hex character constants.
2047 These don't provoke an error unfortunately, instead are silently treated
81ae7da0 2048 as 'x'. The following induces an error, until -std1 is added to get
cbdd3138
BM
2049 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2050 array size at least. It's necessary to write '\x00'==0 to get something
81ae7da0 2051 that's true only with -std1. */
cbdd3138
BM
2052int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2053
2054int test (int i, double x);
2055struct s1 {int (*f) (int a);};
2056struct s2 {int (*f) (double a);};
2057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2058int argc;
2059char **argv;
2060int
2061main ()
2062{
2063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2064 ;
2065 return 0;
2066}
2067_ACEOF
81ae7da0
BM
2068# Don't try gcc -ansi; that turns off useful extensions and
2069# breaks some systems' header files.
2070# AIX -qlanglvl=ansi
2071# Ultrix and OSF/1 -std1
2072# HP-UX 10.20 and later -Ae
2073# HP-UX older versions -Aa -D_HPUX_SOURCE
2074# SVR4 -Xc -D__EXTENSIONS__
2075for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
cbdd3138
BM
2076do
2077 CC="$ac_save_CC $ac_arg"
2078 rm -f conftest.$ac_objext
81ae7da0
BM
2079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
cbdd3138
BM
2081 ac_status=$?
2082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
64b46a71 2087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 (eval $ac_try) 2>&5
cbdd3138
BM
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; } &&
2093 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
cbdd3138
BM
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; }; then
81ae7da0
BM
2099 ac_cv_prog_cc_stdc=$ac_arg
2100break
cbdd3138
BM
2101else
2102 echo "$as_me: failed program was:" >&5
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
2105fi
81ae7da0 2106rm -f conftest.err conftest.$ac_objext
cbdd3138 2107done
81ae7da0 2108rm -f conftest.$ac_ext conftest.$ac_objext
cbdd3138
BM
2109CC=$ac_save_CC
2110
2111fi
81ae7da0
BM
2112
2113case "x$ac_cv_prog_cc_stdc" in
2114 x|xno)
2115 echo "$as_me:$LINENO: result: none needed" >&5
2116echo "${ECHO_T}none needed" >&6 ;;
cbdd3138 2117 *)
81ae7da0
BM
2118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2119echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2120 CC="$CC $ac_cv_prog_cc_stdc" ;;
cbdd3138
BM
2121esac
2122
81ae7da0
BM
2123# Some people use a C++ compiler to compile C. Since we use `exit',
2124# in C++ we need to declare it. In case someone uses the same compiler
2125# for both compiling C and C++ we need to have the C++ compiler decide
2126# the declaration of exit, since it's the most demanding environment.
2127cat >conftest.$ac_ext <<_ACEOF
2128#ifndef __cplusplus
2129 choke me
2130#endif
2131_ACEOF
2132rm -f conftest.$ac_objext
2133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>conftest.er1
2135 ac_status=$?
2136 grep -v '^ *+' conftest.er1 >conftest.err
2137 rm -f conftest.er1
2138 cat conftest.err >&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
64b46a71 2141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; } &&
2147 { ac_try='test -s conftest.$ac_objext'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; }; then
2153 for ac_declaration in \
2154 '' \
2155 'extern "C" void std::exit (int) throw (); using std::exit;' \
2156 'extern "C" void std::exit (int); using std::exit;' \
2157 'extern "C" void exit (int) throw ();' \
2158 'extern "C" void exit (int);' \
2159 'void exit (int);'
2160do
2161 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
2162/* confdefs.h. */
2163_ACEOF
2164cat confdefs.h >>conftest.$ac_ext
2165cat >>conftest.$ac_ext <<_ACEOF
2166/* end confdefs.h. */
81ae7da0
BM
2167$ac_declaration
2168#include <stdlib.h>
f69335e6 2169int
2170main ()
2171{
81ae7da0 2172exit (42);
f69335e6 2173 ;
2174 return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
81ae7da0
BM
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
f69335e6 2180 ac_status=$?
cbdd3138
BM
2181 grep -v '^ *+' conftest.er1 >conftest.err
2182 rm -f conftest.er1
2183 cat conftest.err >&5
f69335e6 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
64b46a71 2186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
cbdd3138
BM
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194 (eval $ac_try) 2>&5
f69335e6 2195 ac_status=$?
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
81ae7da0 2198 :
f69335e6 2199else
2200 echo "$as_me: failed program was:" >&5
cbdd3138
BM
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
81ae7da0 2203continue
f69335e6 2204fi
81ae7da0
BM
2205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2206 cat >conftest.$ac_ext <<_ACEOF
2207/* confdefs.h. */
2208_ACEOF
2209cat confdefs.h >>conftest.$ac_ext
2210cat >>conftest.$ac_ext <<_ACEOF
2211/* end confdefs.h. */
2212$ac_declaration
2213int
2214main ()
2215{
2216exit (42);
2217 ;
2218 return 0;
2219}
2220_ACEOF
2221rm -f conftest.$ac_objext
2222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
64b46a71 2230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 break
2243else
2244 echo "$as_me: failed program was:" >&5
2245sed 's/^/| /' conftest.$ac_ext >&5
2246
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249done
2250rm -f conftest*
2251if test -n "$ac_declaration"; then
2252 echo '#ifdef __cplusplus' >>confdefs.h
2253 echo $ac_declaration >>confdefs.h
2254 echo '#endif' >>confdefs.h
2255fi
2256
2257else
2258 echo "$as_me: failed program was:" >&5
2259sed 's/^/| /' conftest.$ac_ext >&5
2260
2261fi
2262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2263ac_ext=c
2264ac_cpp='$CPP $CPPFLAGS'
2265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268
2269if test "$ac_cv_c_compiler_gnu" = "yes"; then
2270CFLAGS="$CFLAGS -funsigned-char"
2271
2272echo "$as_me:$LINENO: checking if gcc has a working -pipe" >&5
2273echo $ECHO_N "checking if gcc has a working -pipe... $ECHO_C" >&6
2274if test "${ac_cv_pipe+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277
2278 save_cflags="$CFLAGS"
2279 CFLAGS="$CFLAGS -pipe"
2280 cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h. */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h. */
2286
2287int
2288main ()
2289{
2290
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295rm -f conftest.$ac_objext
2296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297 (eval $ac_compile) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } &&
64b46a71 2304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; } &&
2310 { ac_try='test -s conftest.$ac_objext'
2311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 (eval $ac_try) 2>&5
2313 ac_status=$?
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); }; }; then
2316 ac_cv_pipe="yes"
2317else
2318 echo "$as_me: failed program was:" >&5
2319sed 's/^/| /' conftest.$ac_ext >&5
2320
2321ac_cv_pipe="no"
2322fi
2323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324 CFLAGS="$save_cflags"
2325
15c76544 2326fi
81ae7da0
BM
2327echo "$as_me:$LINENO: result: $ac_cv_pipe" >&5
2328echo "${ECHO_T}$ac_cv_pipe" >&6
15c76544 2329if test "$ac_cv_pipe" = "yes"; then
2330CFLAGS="-pipe $CFLAGS"
2331fi
26f91d1c 2332fi
2333
cbdd3138
BM
2334
2335case "`$CC -v --help 2>&1`" in
2336 *-fstrict-aliasing* ) CFLAGS="$CFLAGS -fno-strict-aliasing" ;;
2337esac
2338
2339case "`$CC -v --help 2>&1`" in
2340 *-Wpointer-sign* ) CFLAGS="$CFLAGS -Wno-pointer-sign" ;;
2341esac
0e87ac8a 2342ac_ext=cc
2343ac_cpp='$CXXCPP $CPPFLAGS'
2344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2347if test -n "$ac_tool_prefix"; then
2348 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2349 do
2350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2352echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354if test "${ac_cv_prog_CXX+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357 if test -n "$CXX"; then
2358 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2359else
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371done
2372done
2373
2374fi
2375fi
2376CXX=$ac_cv_prog_CXX
2377if test -n "$CXX"; then
2378 echo "$as_me:$LINENO: result: $CXX" >&5
2379echo "${ECHO_T}$CXX" >&6
2380else
2381 echo "$as_me:$LINENO: result: no" >&5
2382echo "${ECHO_T}no" >&6
2383fi
2384
2385 test -n "$CXX" && break
2386 done
2387fi
2388if test -z "$CXX"; then
2389 ac_ct_CXX=$CXX
2390 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2391do
2392 # Extract the first word of "$ac_prog", so it can be a program name with args.
2393set dummy $ac_prog; ac_word=$2
2394echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 if test -n "$ac_ct_CXX"; then
2400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_ac_ct_CXX="$ac_prog"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
2412 fi
2413done
2414done
2415
2416fi
2417fi
2418ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2419if test -n "$ac_ct_CXX"; then
2420 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2421echo "${ECHO_T}$ac_ct_CXX" >&6
2422else
2423 echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6
2425fi
2426
2427 test -n "$ac_ct_CXX" && break
2428done
2429test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2430
2431 CXX=$ac_ct_CXX
2432fi
2433
2434
2435# Provide some information about the compiler.
2436echo "$as_me:$LINENO:" \
2437 "checking for C++ compiler version" >&5
2438ac_compiler=`set X $ac_compile; echo $2`
2439{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2440 (eval $ac_compiler --version </dev/null >&5) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }
2444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2445 (eval $ac_compiler -v </dev/null >&5) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }
2449{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2450 (eval $ac_compiler -V </dev/null >&5) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }
2454
2455echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2456echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2457if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460 cat >conftest.$ac_ext <<_ACEOF
2461/* confdefs.h. */
2462_ACEOF
2463cat confdefs.h >>conftest.$ac_ext
2464cat >>conftest.$ac_ext <<_ACEOF
2465/* end confdefs.h. */
2466
2467int
2468main ()
2469{
2470#ifndef __GNUC__
2471 choke me
2472#endif
2473
2474 ;
2475 return 0;
2476}
2477_ACEOF
2478rm -f conftest.$ac_objext
2479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2480 (eval $ac_compile) 2>conftest.er1
2481 ac_status=$?
2482 grep -v '^ *+' conftest.er1 >conftest.err
2483 rm -f conftest.er1
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
64b46a71 2487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0e87ac8a 2488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 (eval $ac_try) 2>&5
2490 ac_status=$?
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }; } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_compiler_gnu=yes
2500else
2501 echo "$as_me: failed program was:" >&5
2502sed 's/^/| /' conftest.$ac_ext >&5
2503
2504ac_compiler_gnu=no
2505fi
2506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2507ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2508
2509fi
2510echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2511echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2512GXX=`test $ac_compiler_gnu = yes && echo yes`
2513ac_test_CXXFLAGS=${CXXFLAGS+set}
2514ac_save_CXXFLAGS=$CXXFLAGS
2515CXXFLAGS="-g"
2516echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2517echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2518if test "${ac_cv_prog_cxx_g+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h. */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h. */
2527
2528int
2529main ()
2530{
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext
2537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
64b46a71 2545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0e87ac8a 2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_prog_cxx_g=yes
2558else
2559 echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562ac_cv_prog_cxx_g=no
2563fi
2564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2565fi
2566echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2567echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2568if test "$ac_test_CXXFLAGS" = set; then
2569 CXXFLAGS=$ac_save_CXXFLAGS
2570elif test $ac_cv_prog_cxx_g = yes; then
2571 if test "$GXX" = yes; then
2572 CXXFLAGS="-g -O2"
2573 else
2574 CXXFLAGS="-g"
2575 fi
2576else
2577 if test "$GXX" = yes; then
2578 CXXFLAGS="-O2"
2579 else
2580 CXXFLAGS=
2581 fi
2582fi
2583for ac_declaration in \
2584 '' \
2585 'extern "C" void std::exit (int) throw (); using std::exit;' \
2586 'extern "C" void std::exit (int); using std::exit;' \
2587 'extern "C" void exit (int) throw ();' \
2588 'extern "C" void exit (int);' \
2589 'void exit (int);'
2590do
2591 cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h. */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h. */
2597$ac_declaration
2598#include <stdlib.h>
2599int
2600main ()
2601{
2602exit (42);
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609 (eval $ac_compile) 2>conftest.er1
2610 ac_status=$?
2611 grep -v '^ *+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } &&
64b46a71 2616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0e87ac8a 2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 :
2629else
2630 echo "$as_me: failed program was:" >&5
2631sed 's/^/| /' conftest.$ac_ext >&5
2632
2633continue
2634fi
2635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
2642$ac_declaration
2643int
2644main ()
2645{
2646exit (42);
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
64b46a71 2660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0e87ac8a 2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 break
2673else
2674 echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677fi
2678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679done
2680rm -f conftest*
2681if test -n "$ac_declaration"; then
2682 echo '#ifdef __cplusplus' >>confdefs.h
2683 echo $ac_declaration >>confdefs.h
2684 echo '#endif' >>confdefs.h
2685fi
2686
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
cbdd3138 2692
f40ec73c 2693# Extract the first word of "rm", so it can be a program name with args.
2694set dummy rm; ac_word=$2
81ae7da0
BM
2695echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 2697if test "${ac_cv_path_RM+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 2699else
f69335e6 2700 case $RM in
2701 [\\/]* | ?:[\\/]*)
f40ec73c 2702 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2703 ;;
f40ec73c 2704 *)
f69335e6 2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 2712 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716done
2717done
2718
f40ec73c 2719 ;;
2720esac
2721fi
f69335e6 2722RM=$ac_cv_path_RM
81ae7da0 2723
f40ec73c 2724if test -n "$RM"; then
81ae7da0
BM
2725 echo "$as_me:$LINENO: result: $RM" >&5
2726echo "${ECHO_T}$RM" >&6
f40ec73c 2727else
81ae7da0
BM
2728 echo "$as_me:$LINENO: result: no" >&5
2729echo "${ECHO_T}no" >&6
f40ec73c 2730fi
2731
2732# Extract the first word of "cp", so it can be a program name with args.
2733set dummy cp; ac_word=$2
81ae7da0
BM
2734echo "$as_me:$LINENO: checking for $ac_word" >&5
2735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 2736if test "${ac_cv_path_CP+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 2738else
f69335e6 2739 case $CP in
2740 [\\/]* | ?:[\\/]*)
f40ec73c 2741 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2742 ;;
f40ec73c 2743 *)
f69335e6 2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 2751 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756done
2757
f40ec73c 2758 ;;
2759esac
2760fi
f69335e6 2761CP=$ac_cv_path_CP
81ae7da0 2762
f40ec73c 2763if test -n "$CP"; then
81ae7da0
BM
2764 echo "$as_me:$LINENO: result: $CP" >&5
2765echo "${ECHO_T}$CP" >&6
f40ec73c 2766else
81ae7da0
BM
2767 echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6
f40ec73c 2769fi
2770
2771# Extract the first word of "touch", so it can be a program name with args.
2772set dummy touch; ac_word=$2
81ae7da0
BM
2773echo "$as_me:$LINENO: checking for $ac_word" >&5
2774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 2775if test "${ac_cv_path_TOUCH+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 2777else
f69335e6 2778 case $TOUCH in
2779 [\\/]* | ?:[\\/]*)
f40ec73c 2780 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
2781 ;;
f40ec73c 2782 *)
f69335e6 2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 2790 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
2791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795done
2796
f40ec73c 2797 ;;
2798esac
2799fi
f69335e6 2800TOUCH=$ac_cv_path_TOUCH
81ae7da0 2801
f40ec73c 2802if test -n "$TOUCH"; then
81ae7da0
BM
2803 echo "$as_me:$LINENO: result: $TOUCH" >&5
2804echo "${ECHO_T}$TOUCH" >&6
f40ec73c 2805else
81ae7da0
BM
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
f40ec73c 2808fi
2809
2810# Extract the first word of "openssl", so it can be a program name with args.
2811set dummy openssl; ac_word=$2
81ae7da0
BM
2812echo "$as_me:$LINENO: checking for $ac_word" >&5
2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 2814if test "${ac_cv_path_OPENSSLPATH+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 2816else
f69335e6 2817 case $OPENSSLPATH in
2818 [\\/]* | ?:[\\/]*)
f40ec73c 2819 ac_cv_path_OPENSSLPATH="$OPENSSLPATH" # Let the user override the test with a path.
2820 ;;
f40ec73c 2821 *)
f69335e6 2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823for as_dir in $PATH
2824do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 2829 ac_cv_path_OPENSSLPATH="$as_dir/$ac_word$ac_exec_ext"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833done
2834done
2835
f40ec73c 2836 ;;
2837esac
2838fi
f69335e6 2839OPENSSLPATH=$ac_cv_path_OPENSSLPATH
81ae7da0 2840
f40ec73c 2841if test -n "$OPENSSLPATH"; then
81ae7da0
BM
2842 echo "$as_me:$LINENO: result: $OPENSSLPATH" >&5
2843echo "${ECHO_T}$OPENSSLPATH" >&6
f40ec73c 2844else
81ae7da0
BM
2845 echo "$as_me:$LINENO: result: no" >&5
2846echo "${ECHO_T}no" >&6
f40ec73c 2847fi
2848
29b7ea7e 2849# Extract the first word of "install", so it can be a program name with args.
2850set dummy install; ac_word=$2
81ae7da0
BM
2851echo "$as_me:$LINENO: checking for $ac_word" >&5
2852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f69335e6 2853if test "${ac_cv_path_INSTALL+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
29b7ea7e 2855else
f69335e6 2856 case $INSTALL in
2857 [\\/]* | ?:[\\/]*)
29b7ea7e 2858 ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
2859 ;;
29b7ea7e 2860 *)
f69335e6 2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862for as_dir in $PATH
2863do
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f69335e6 2868 ac_cv_path_INSTALL="$as_dir/$ac_word$ac_exec_ext"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872done
2873done
2874
29b7ea7e 2875 ;;
2876esac
2877fi
f69335e6 2878INSTALL=$ac_cv_path_INSTALL
81ae7da0 2879
29b7ea7e 2880if test -n "$INSTALL"; then
81ae7da0
BM
2881 echo "$as_me:$LINENO: result: $INSTALL" >&5
2882echo "${ECHO_T}$INSTALL" >&6
29b7ea7e 2883else
81ae7da0
BM
2884 echo "$as_me:$LINENO: result: no" >&5
2885echo "${ECHO_T}no" >&6
29b7ea7e 2886fi
2887
e7c7909d 2888# Extract the first word of "gmake", so it can be a program name with args.
2889set dummy gmake; ac_word=$2
81ae7da0
BM
2890echo "$as_me:$LINENO: checking for $ac_word" >&5
2891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e7c7909d 2892if test "${ac_cv_prog_MAKER+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895 if test -n "$MAKER"; then
2896 ac_cv_prog_MAKER="$MAKER" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7c7909d 2905 ac_cv_prog_MAKER="gmake"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909done
2910done
2911
2912 test -z "$ac_cv_prog_MAKER" && ac_cv_prog_MAKER="make"
2913fi
2914fi
2915MAKER=$ac_cv_prog_MAKER
2916if test -n "$MAKER"; then
81ae7da0
BM
2917 echo "$as_me:$LINENO: result: $MAKER" >&5
2918echo "${ECHO_T}$MAKER" >&6
e7c7909d 2919else
81ae7da0
BM
2920 echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
e7c7909d 2922fi
2923
2924# Extract the first word of "gmake", so it can be a program name with args.
2925set dummy gmake; ac_word=$2
81ae7da0
BM
2926echo "$as_me:$LINENO: checking for $ac_word" >&5
2927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
e7c7909d 2928if test "${ac_cv_path_GMAKE+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931 case $GMAKE in
2932 [\\/]* | ?:[\\/]*)
2933 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
2934 ;;
2935 *)
2936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7c7909d 2943 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
2944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
2949
2950 ;;
2951esac
2952fi
2953GMAKE=$ac_cv_path_GMAKE
81ae7da0 2954
e7c7909d 2955if test -n "$GMAKE"; then
81ae7da0
BM
2956 echo "$as_me:$LINENO: result: $GMAKE" >&5
2957echo "${ECHO_T}$GMAKE" >&6
e7c7909d 2958else
81ae7da0
BM
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
e7c7909d 2961fi
2962
ddcec35e 2963# Extract the first word of "gunzip", so it can be a program name with args.
2964set dummy gunzip; ac_word=$2
81ae7da0
BM
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ddcec35e 2967if test "${ac_cv_path_GUNZIP+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 case $GUNZIP in
2971 [\\/]* | ?:[\\/]*)
2972 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path.
2973 ;;
2974 *)
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 2981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ddcec35e 2982 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext"
2983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987done
2988
2989 ;;
2990esac
2991fi
2992GUNZIP=$ac_cv_path_GUNZIP
81ae7da0 2993
ddcec35e 2994if test -n "$GUNZIP"; then
81ae7da0
BM
2995 echo "$as_me:$LINENO: result: $GUNZIP" >&5
2996echo "${ECHO_T}$GUNZIP" >&6
ddcec35e 2997else
81ae7da0
BM
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
ddcec35e 3000fi
3001
6be3ab92 3002# Extract the first word of "pkg-config", so it can be a program name with args.
3003set dummy pkg-config; ac_word=$2
81ae7da0
BM
3004echo "$as_me:$LINENO: checking for $ac_word" >&5
3005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6be3ab92 3006if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 case $PKGCONFIG in
3010 [\\/]* | ?:[\\/]*)
3011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3012 ;;
3013 *)
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
81ae7da0 3020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6be3ab92 3021 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3024 fi
3025done
3026done
3027
3028 ;;
3029esac
3030fi
3031PKGCONFIG=$ac_cv_path_PKGCONFIG
81ae7da0 3032
6be3ab92 3033if test -n "$PKGCONFIG"; then
81ae7da0
BM
3034 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3035echo "${ECHO_T}$PKGCONFIG" >&6
6be3ab92 3036else
81ae7da0
BM
3037 echo "$as_me:$LINENO: result: no" >&5
3038echo "${ECHO_T}no" >&6
6be3ab92 3039fi
3040
3041
81ae7da0
BM
3042echo "$as_me:$LINENO: checking for crypt in -ldescrypt" >&5
3043echo $ECHO_N "checking for crypt in -ldescrypt... $ECHO_C" >&6
f69335e6 3044if test "${ac_cv_lib_descrypt_crypt+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 3046else
f69335e6 3047 ac_check_lib_save_LIBS=$LIBS
f40ec73c 3048LIBS="-ldescrypt $LIBS"
f69335e6 3049cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
f69335e6 3055
81ae7da0 3056/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 3057#ifdef __cplusplus
3058extern "C"
3059#endif
81ae7da0
BM
3060/* We use char because int might match the return type of a gcc2
3061 builtin and then its argument prototype would still apply. */
f69335e6 3062char crypt ();
f69335e6 3063int
3064main ()
3065{
81ae7da0 3066crypt ();
f69335e6 3067 ;
3068 return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
3072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3073 (eval $ac_link) 2>conftest.er1
f69335e6 3074 ac_status=$?
cbdd3138
BM
3075 grep -v '^ *+' conftest.er1 >conftest.err
3076 rm -f conftest.er1
3077 cat conftest.err >&5
f69335e6 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } &&
64b46a71 3080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 (eval $ac_try) 2>&5
f69335e6 3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cbdd3138
BM
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
cbdd3138
BM
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 ac_cv_lib_descrypt_crypt=yes
f69335e6 3093else
3094 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
81ae7da0 3097ac_cv_lib_descrypt_crypt=no
f69335e6 3098fi
81ae7da0 3099rm -f conftest.err conftest.$ac_objext \
cbdd3138 3100 conftest$ac_exeext conftest.$ac_ext
f69335e6 3101LIBS=$ac_check_lib_save_LIBS
3102fi
81ae7da0
BM
3103echo "$as_me:$LINENO: result: $ac_cv_lib_descrypt_crypt" >&5
3104echo "${ECHO_T}$ac_cv_lib_descrypt_crypt" >&6
f69335e6 3105if test $ac_cv_lib_descrypt_crypt = yes; then
3106 cat >>confdefs.h <<\_ACEOF
abedc78b 3107#define HAVE_CRYPT 1
f69335e6 3108_ACEOF
abedc78b 3109 IRCDLIBS="$IRCDLIBS-ldescrypt " MKPASSWDLIBS="-ldescrypt"
f40ec73c 3110else
81ae7da0
BM
3111 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
3112echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
f69335e6 3113if test "${ac_cv_lib_crypt_crypt+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 3115else
f69335e6 3116 ac_check_lib_save_LIBS=$LIBS
f40ec73c 3117LIBS="-lcrypt $LIBS"
f69335e6 3118cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3119/* confdefs.h. */
3120_ACEOF
3121cat confdefs.h >>conftest.$ac_ext
3122cat >>conftest.$ac_ext <<_ACEOF
3123/* end confdefs.h. */
f69335e6 3124
81ae7da0 3125/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 3126#ifdef __cplusplus
3127extern "C"
3128#endif
81ae7da0
BM
3129/* We use char because int might match the return type of a gcc2
3130 builtin and then its argument prototype would still apply. */
f69335e6 3131char crypt ();
f69335e6 3132int
3133main ()
3134{
81ae7da0 3135crypt ();
f69335e6 3136 ;
3137 return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
3141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142 (eval $ac_link) 2>conftest.er1
f69335e6 3143 ac_status=$?
cbdd3138
BM
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
f69335e6 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
64b46a71 3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
cbdd3138
BM
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
f69335e6 3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_lib_crypt_crypt=yes
3162else
3163 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
81ae7da0 3166ac_cv_lib_crypt_crypt=no
f69335e6 3167fi
81ae7da0 3168rm -f conftest.err conftest.$ac_objext \
cbdd3138 3169 conftest$ac_exeext conftest.$ac_ext
f69335e6 3170LIBS=$ac_check_lib_save_LIBS
3171fi
81ae7da0
BM
3172echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
3173echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
f69335e6 3174if test $ac_cv_lib_crypt_crypt = yes; then
3175 cat >>confdefs.h <<\_ACEOF
abedc78b 3176#define HAVE_CRYPT 1
f69335e6 3177_ACEOF
abedc78b 3178 IRCDLIBS="$IRCDLIBS-lcrypt " MKPASSWDLIBS="-lcrypt"
f40ec73c 3179fi
3180
740084b6 3181fi
3182
81ae7da0
BM
3183echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3184echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
f69335e6 3185if test "${ac_cv_lib_socket_socket+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 3187else
f69335e6 3188 ac_check_lib_save_LIBS=$LIBS
f40ec73c 3189LIBS="-lsocket $LIBS"
f69335e6 3190cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
f69335e6 3196
81ae7da0 3197/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 3198#ifdef __cplusplus
3199extern "C"
3200#endif
81ae7da0
BM
3201/* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
f69335e6 3203char socket ();
f69335e6 3204int
3205main ()
3206{
81ae7da0 3207socket ();
f69335e6 3208 ;
3209 return 0;
3210}
3211_ACEOF
3212rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
3213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3214 (eval $ac_link) 2>conftest.er1
f69335e6 3215 ac_status=$?
cbdd3138
BM
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
f69335e6 3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } &&
64b46a71 3221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 (eval $ac_try) 2>&5
cbdd3138
BM
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
f69335e6 3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3233 ac_cv_lib_socket_socket=yes
3234else
3235 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
81ae7da0 3238ac_cv_lib_socket_socket=no
f69335e6 3239fi
81ae7da0 3240rm -f conftest.err conftest.$ac_objext \
cbdd3138 3241 conftest$ac_exeext conftest.$ac_ext
f69335e6 3242LIBS=$ac_check_lib_save_LIBS
3243fi
81ae7da0
BM
3244echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3245echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
f69335e6 3246if test $ac_cv_lib_socket_socket = yes; then
825ee732 3247 IRCDLIBS="$IRCDLIBS-lsocket " SOCKLIB="-lsocket"
f40ec73c 3248fi
3249
81ae7da0
BM
3250echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
3251echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
f69335e6 3252if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
7de9d2d6 3254else
f69335e6 3255 ac_check_lib_save_LIBS=$LIBS
7de9d2d6 3256LIBS="-lnsl $LIBS"
f69335e6 3257cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
f69335e6 3263
81ae7da0 3264/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 3265#ifdef __cplusplus
3266extern "C"
3267#endif
81ae7da0
BM
3268/* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
f69335e6 3270char inet_ntoa ();
f69335e6 3271int
3272main ()
3273{
81ae7da0 3274inet_ntoa ();
f69335e6 3275 ;
3276 return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
3280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281 (eval $ac_link) 2>conftest.er1
f69335e6 3282 ac_status=$?
cbdd3138
BM
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
f69335e6 3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
64b46a71 3288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290 (eval $ac_try) 2>&5
cbdd3138
BM
3291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
3295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296 (eval $ac_try) 2>&5
f69335e6 3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); }; }; then
3300 ac_cv_lib_nsl_inet_ntoa=yes
3301else
3302 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
81ae7da0 3305ac_cv_lib_nsl_inet_ntoa=no
f69335e6 3306fi
81ae7da0 3307rm -f conftest.err conftest.$ac_objext \
cbdd3138 3308 conftest$ac_exeext conftest.$ac_ext
f69335e6 3309LIBS=$ac_check_lib_save_LIBS
3310fi
81ae7da0
BM
3311echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
3312echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
f69335e6 3313if test $ac_cv_lib_nsl_inet_ntoa = yes; then
825ee732 3314 IRCDLIBS="$IRCDLIBS-lnsl " INETLIB="-lnsl"
7de9d2d6 3315fi
3316
3317
f40ec73c 3318
3319
3320
3321
f40ec73c 3322
cbdd3138 3323
f69335e6 3324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ae7da0
BM
3329echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3330echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
f40ec73c 3331# On Suns, sometimes $CPP names a directory.
3332if test -n "$CPP" && test -d "$CPP"; then
3333 CPP=
3334fi
3335if test -z "$CPP"; then
f69335e6 3336 if test "${ac_cv_prog_CPP+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339 # Double quotes because CPP needs to be expanded
3340 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3341 do
3342 ac_preproc_ok=false
3343for ac_c_preproc_warn_flag in '' yes
3344do
3345 # Use a header file that comes with gcc, so configuring glibc
3346 # with a fresh cross-compiler works.
cbdd3138
BM
3347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348 # <limits.h> exists even on freestanding compilers.
f40ec73c 3349 # On the NeXT, cc -E runs the code through the compiler's parser,
f69335e6 3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3352/* confdefs.h. */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h. */
3357#ifdef __STDC__
3358# include <limits.h>
3359#else
3360# include <assert.h>
3361#endif
3362 Syntax error
f69335e6 3363_ACEOF
81ae7da0
BM
3364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 3366 ac_status=$?
cbdd3138 3367 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 3374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 3375 else
3376 ac_cpp_err=
3377 fi
3378else
3379 ac_cpp_err=yes
3380fi
3381if test -z "$ac_cpp_err"; then
f40ec73c 3382 :
3383else
f69335e6 3384 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
f69335e6 3387 # Broken: fails on valid input.
3388continue
3389fi
3390rm -f conftest.err conftest.$ac_ext
3391
81ae7da0 3392 # OK, works on sane cases. Now check whether non-existent headers
f69335e6 3393 # can be detected and how.
3394 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
f69335e6 3400#include <ac_nonexistent.h>
3401_ACEOF
81ae7da0
BM
3402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 3404 ac_status=$?
cbdd3138 3405 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 3413 else
3414 ac_cpp_err=
3415 fi
3416else
3417 ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
3420 # Broken: success on invalid input.
3421continue
3422else
3423 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
f69335e6 3426 # Passes both tests.
3427ac_preproc_ok=:
3428break
3429fi
3430rm -f conftest.err conftest.$ac_ext
3431
3432done
3433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3434rm -f conftest.err conftest.$ac_ext
3435if $ac_preproc_ok; then
3436 break
3437fi
3438
3439 done
3440 ac_cv_prog_CPP=$CPP
3441
3442fi
3443 CPP=$ac_cv_prog_CPP
3444else
3445 ac_cv_prog_CPP=$CPP
3446fi
81ae7da0
BM
3447echo "$as_me:$LINENO: result: $CPP" >&5
3448echo "${ECHO_T}$CPP" >&6
f69335e6 3449ac_preproc_ok=false
3450for ac_c_preproc_warn_flag in '' yes
3451do
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
cbdd3138
BM
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
f69335e6 3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
3464#ifdef __STDC__
3465# include <limits.h>
3466#else
3467# include <assert.h>
3468#endif
3469 Syntax error
f69335e6 3470_ACEOF
81ae7da0
BM
3471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 3473 ac_status=$?
cbdd3138 3474 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 3475 rm -f conftest.er1
3476 cat conftest.err >&5
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); } >/dev/null; then
3479 if test -s conftest.err; then
3480 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 3481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 3482 else
3483 ac_cpp_err=
3484 fi
3485else
3486 ac_cpp_err=yes
3487fi
3488if test -z "$ac_cpp_err"; then
f40ec73c 3489 :
3490else
f69335e6 3491 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
f69335e6 3494 # Broken: fails on valid input.
3495continue
3496fi
3497rm -f conftest.err conftest.$ac_ext
3498
81ae7da0 3499 # OK, works on sane cases. Now check whether non-existent headers
f69335e6 3500 # can be detected and how.
3501 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
f69335e6 3507#include <ac_nonexistent.h>
3508_ACEOF
81ae7da0
BM
3509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 3511 ac_status=$?
cbdd3138 3512 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null; then
3517 if test -s conftest.err; then
3518 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 3519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 3520 else
3521 ac_cpp_err=
3522 fi
3523else
3524 ac_cpp_err=yes
3525fi
3526if test -z "$ac_cpp_err"; then
3527 # Broken: success on invalid input.
3528continue
3529else
3530 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
f69335e6 3533 # Passes both tests.
3534ac_preproc_ok=:
3535break
3536fi
3537rm -f conftest.err conftest.$ac_ext
3538
3539done
3540# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541rm -f conftest.err conftest.$ac_ext
3542if $ac_preproc_ok; then
f40ec73c 3543 :
3544else
cbdd3138
BM
3545 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546See \`config.log' for more details." >&5
3547echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548See \`config.log' for more details." >&2;}
f69335e6 3549 { (exit 1); exit 1; }; }
3550fi
3551
3552ac_ext=c
3553ac_cpp='$CPP $CPPFLAGS'
3554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
3558
81ae7da0
BM
3559echo "$as_me:$LINENO: checking for egrep" >&5
3560echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3561if test "${ac_cv_prog_egrep+set}" = set; then
cbdd3138
BM
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
81ae7da0
BM
3564 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3565 then ac_cv_prog_egrep='grep -E'
3566 else ac_cv_prog_egrep='egrep'
cbdd3138 3567 fi
32843244 3568fi
81ae7da0
BM
3569echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3570echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3571 EGREP=$ac_cv_prog_egrep
32843244 3572
3573
81ae7da0
BM
3574echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3575echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
f69335e6 3576if test "${ac_cv_header_stdc+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
f69335e6 3585#include <stdlib.h>
3586#include <stdarg.h>
3587#include <string.h>
3588#include <float.h>
3589
cbdd3138
BM
3590int
3591main ()
3592{
3593
3594 ;
3595 return 0;
3596}
f69335e6 3597_ACEOF
cbdd3138 3598rm -f conftest.$ac_objext
81ae7da0
BM
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600 (eval $ac_compile) 2>conftest.er1
f69335e6 3601 ac_status=$?
cbdd3138 3602 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cbdd3138 3606 (exit $ac_status); } &&
64b46a71 3607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
cbdd3138
BM
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
cbdd3138
BM
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
f69335e6 3619 ac_cv_header_stdc=yes
3620else
3621 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
81ae7da0 3624ac_cv_header_stdc=no
f40ec73c 3625fi
81ae7da0 3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 3627
3628if test $ac_cv_header_stdc = yes; then
3629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3630 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3631/* confdefs.h. */
3632_ACEOF
3633cat confdefs.h >>conftest.$ac_ext
3634cat >>conftest.$ac_ext <<_ACEOF
3635/* end confdefs.h. */
f69335e6 3636#include <string.h>
3637
3638_ACEOF
3639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 3640 $EGREP "memchr" >/dev/null 2>&1; then
f69335e6 3641 :
3642else
3643 ac_cv_header_stdc=no
f40ec73c 3644fi
3645rm -f conftest*
f69335e6 3646
3647fi
3648
3649if test $ac_cv_header_stdc = yes; then
3650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3651 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
f69335e6 3657#include <stdlib.h>
3658
3659_ACEOF
3660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 3661 $EGREP "free" >/dev/null 2>&1; then
f69335e6 3662 :
3663else
3664 ac_cv_header_stdc=no
f40ec73c 3665fi
3666rm -f conftest*
f69335e6 3667
f40ec73c 3668fi
f69335e6 3669
3670if test $ac_cv_header_stdc = yes; then
3671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672 if test "$cross_compiling" = yes; then
3673 :
3674else
3675 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
f69335e6 3681#include <ctype.h>
3682#if ((' ' & 0x0FF) == 0x020)
3683# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685#else
cbdd3138
BM
3686# define ISLOWER(c) \
3687 (('a' <= (c) && (c) <= 'i') \
3688 || ('j' <= (c) && (c) <= 'r') \
3689 || ('s' <= (c) && (c) <= 'z'))
f69335e6 3690# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691#endif
3692
3693#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694int
3695main ()
3696{
3697 int i;
3698 for (i = 0; i < 256; i++)
3699 if (XOR (islower (i), ISLOWER (i))
cbdd3138 3700 || toupper (i) != TOUPPER (i))
81ae7da0
BM
3701 exit(2);
3702 exit (0);
f69335e6 3703}
3704_ACEOF
3705rm -f conftest$ac_exeext
81ae7da0
BM
3706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707 (eval $ac_link) 2>&5
f69335e6 3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
3711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712 (eval $ac_try) 2>&5
f69335e6 3713 ac_status=$?
3714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 :
f40ec73c 3717else
f69335e6 3718 echo "$as_me: program exited with status $ac_status" >&5
3719echo "$as_me: failed program was:" >&5
cbdd3138
BM
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
f69335e6 3722( exit $ac_status )
3723ac_cv_header_stdc=no
3724fi
81ae7da0 3725rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f69335e6 3726fi
3727fi
3728fi
81ae7da0
BM
3729echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730echo "${ECHO_T}$ac_cv_header_stdc" >&6
f69335e6 3731if test $ac_cv_header_stdc = yes; then
3732
3733cat >>confdefs.h <<\_ACEOF
3734#define STDC_HEADERS 1
3735_ACEOF
3736
3737fi
3738
3739# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
cbdd3138 3750 inttypes.h stdint.h unistd.h
f69335e6 3751do
3752as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
81ae7da0
BM
3753echo "$as_me:$LINENO: checking for $ac_header" >&5
3754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755if eval "test \"\${$as_ac_Header+set}\" = set"; then
f69335e6 3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
f69335e6 3764$ac_includes_default
3765
3766#include <$ac_header>
3767_ACEOF
3768rm -f conftest.$ac_objext
81ae7da0
BM
3769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770 (eval $ac_compile) 2>conftest.er1
f69335e6 3771 ac_status=$?
cbdd3138
BM
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
f69335e6 3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
64b46a71 3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
cbdd3138
BM
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
f69335e6 3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3790else
3791 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3792sed 's/^/| /' conftest.$ac_ext >&5
3793
81ae7da0 3794eval "$as_ac_Header=no"
f69335e6 3795fi
81ae7da0 3796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 3797fi
81ae7da0
BM
3798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f69335e6 3800if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801 cat >>confdefs.h <<_ACEOF
3802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3803_ACEOF
3804
f40ec73c 3805fi
f40ec73c 3806
f69335e6 3807done
3808
3809
3810if test "${ac_cv_header_sys_param_h+set}" = set; then
81ae7da0
BM
3811 echo "$as_me:$LINENO: checking for sys/param.h" >&5
3812echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6
f69335e6 3813if test "${ac_cv_header_sys_param_h+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815fi
81ae7da0
BM
3816echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5
3817echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6
f40ec73c 3818else
f69335e6 3819 # Is the header compilable?
81ae7da0
BM
3820echo "$as_me:$LINENO: checking sys/param.h usability" >&5
3821echo $ECHO_N "checking sys/param.h usability... $ECHO_C" >&6
f69335e6 3822cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3823/* confdefs.h. */
3824_ACEOF
3825cat confdefs.h >>conftest.$ac_ext
3826cat >>conftest.$ac_ext <<_ACEOF
3827/* end confdefs.h. */
f69335e6 3828$ac_includes_default
3829#include <sys/param.h>
3830_ACEOF
3831rm -f conftest.$ac_objext
81ae7da0
BM
3832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>conftest.er1
f69335e6 3834 ac_status=$?
cbdd3138
BM
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
f69335e6 3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
64b46a71 3840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 (eval $ac_try) 2>&5
cbdd3138
BM
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; } &&
3846 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
3847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 (eval $ac_try) 2>&5
f69335e6 3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; }; then
3852 ac_header_compiler=yes
3853else
3854 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
81ae7da0 3857ac_header_compiler=no
f69335e6 3858fi
81ae7da0
BM
3859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3860echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3861echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 3862
3863# Is the header present?
81ae7da0
BM
3864echo "$as_me:$LINENO: checking sys/param.h presence" >&5
3865echo $ECHO_N "checking sys/param.h presence... $ECHO_C" >&6
f69335e6 3866cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3867/* confdefs.h. */
3868_ACEOF
3869cat confdefs.h >>conftest.$ac_ext
3870cat >>conftest.$ac_ext <<_ACEOF
3871/* end confdefs.h. */
f40ec73c 3872#include <sys/param.h>
f69335e6 3873_ACEOF
81ae7da0
BM
3874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 3876 ac_status=$?
cbdd3138 3877 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 3878 rm -f conftest.er1
3879 cat conftest.err >&5
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } >/dev/null; then
3882 if test -s conftest.err; then
3883 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 3884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 3885 else
3886 ac_cpp_err=
3887 fi
3888else
3889 ac_cpp_err=yes
3890fi
3891if test -z "$ac_cpp_err"; then
3892 ac_header_preproc=yes
3893else
3894 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3895sed 's/^/| /' conftest.$ac_ext >&5
3896
f69335e6 3897 ac_header_preproc=no
3898fi
3899rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
3900echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3901echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 3902
3903# So? What about this header?
cbdd3138
BM
3904case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3905 yes:no: )
f69335e6 3906 { echo "$as_me:$LINENO: WARNING: sys/param.h: accepted by the compiler, rejected by the preprocessor!" >&5
3907echo "$as_me: WARNING: sys/param.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
3908 { echo "$as_me:$LINENO: WARNING: sys/param.h: proceeding with the compiler's result" >&5
3909echo "$as_me: WARNING: sys/param.h: proceeding with the compiler's result" >&2;}
3910 ac_header_preproc=yes
3911 ;;
3912 no:yes:* )
f69335e6 3913 { echo "$as_me:$LINENO: WARNING: sys/param.h: present but cannot be compiled" >&5
3914echo "$as_me: WARNING: sys/param.h: present but cannot be compiled" >&2;}
cbdd3138
BM
3915 { echo "$as_me:$LINENO: WARNING: sys/param.h: check for missing prerequisite headers?" >&5
3916echo "$as_me: WARNING: sys/param.h: check for missing prerequisite headers?" >&2;}
3917 { echo "$as_me:$LINENO: WARNING: sys/param.h: see the Autoconf documentation" >&5
3918echo "$as_me: WARNING: sys/param.h: see the Autoconf documentation" >&2;}
3919 { echo "$as_me:$LINENO: WARNING: sys/param.h: section \"Present But Cannot Be Compiled\"" >&5
3920echo "$as_me: WARNING: sys/param.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 3921 { echo "$as_me:$LINENO: WARNING: sys/param.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
3922echo "$as_me: WARNING: sys/param.h: proceeding with the preprocessor's result" >&2;}
3923 { echo "$as_me:$LINENO: WARNING: sys/param.h: in the future, the compiler will take precedence" >&5
3924echo "$as_me: WARNING: sys/param.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
3925 (
3926 cat <<\_ASBOX
3927## ------------------------------------------ ##
3928## Report this to the AC_PACKAGE_NAME lists. ##
3929## ------------------------------------------ ##
3930_ASBOX
3931 ) |
3932 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 3933 ;;
f69335e6 3934esac
81ae7da0
BM
3935echo "$as_me:$LINENO: checking for sys/param.h" >&5
3936echo $ECHO_N "checking for sys/param.h... $ECHO_C" >&6
f69335e6 3937if test "${ac_cv_header_sys_param_h+set}" = set; then
3938 echo $ECHO_N "(cached) $ECHO_C" >&6
3939else
3940 ac_cv_header_sys_param_h=$ac_header_preproc
f40ec73c 3941fi
81ae7da0
BM
3942echo "$as_me:$LINENO: result: $ac_cv_header_sys_param_h" >&5
3943echo "${ECHO_T}$ac_cv_header_sys_param_h" >&6
f69335e6 3944
f40ec73c 3945fi
f69335e6 3946if test $ac_cv_header_sys_param_h = yes; then
3947 cat >>confdefs.h <<\_ACEOF
f40ec73c 3948#define PARAMH 1
f69335e6 3949_ACEOF
f40ec73c 3950
f40ec73c 3951fi
3952
f69335e6 3953
3954if test "${ac_cv_header_stdlib_h+set}" = set; then
81ae7da0
BM
3955 echo "$as_me:$LINENO: checking for stdlib.h" >&5
3956echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
f69335e6 3957if test "${ac_cv_header_stdlib_h+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959fi
81ae7da0
BM
3960echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
3961echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
f40ec73c 3962else
f69335e6 3963 # Is the header compilable?
81ae7da0
BM
3964echo "$as_me:$LINENO: checking stdlib.h usability" >&5
3965echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6
f69335e6 3966cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
3967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
f69335e6 3972$ac_includes_default
3973#include <stdlib.h>
3974_ACEOF
3975rm -f conftest.$ac_objext
81ae7da0
BM
3976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3977 (eval $ac_compile) 2>conftest.er1
f69335e6 3978 ac_status=$?
cbdd3138
BM
3979 grep -v '^ *+' conftest.er1 >conftest.err
3980 rm -f conftest.er1
3981 cat conftest.err >&5
f69335e6 3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
64b46a71 3984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
cbdd3138
BM
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; } &&
3990 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
f69335e6 3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; }; then
3996 ac_header_compiler=yes
3997else
3998 echo "$as_me: failed program was:" >&5
cbdd3138
BM
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
81ae7da0 4001ac_header_compiler=no
f69335e6 4002fi
81ae7da0
BM
4003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4005echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4006
4007# Is the header present?
81ae7da0
BM
4008echo "$as_me:$LINENO: checking stdlib.h presence" >&5
4009echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6
f69335e6 4010cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4011/* confdefs.h. */
4012_ACEOF
4013cat confdefs.h >>conftest.$ac_ext
4014cat >>conftest.$ac_ext <<_ACEOF
4015/* end confdefs.h. */
f40ec73c 4016#include <stdlib.h>
f69335e6 4017_ACEOF
81ae7da0
BM
4018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4020 ac_status=$?
cbdd3138 4021 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } >/dev/null; then
4026 if test -s conftest.err; then
4027 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4029 else
4030 ac_cpp_err=
4031 fi
4032else
4033 ac_cpp_err=yes
4034fi
4035if test -z "$ac_cpp_err"; then
4036 ac_header_preproc=yes
4037else
4038 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
f69335e6 4041 ac_header_preproc=no
4042fi
4043rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4045echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4046
4047# So? What about this header?
cbdd3138
BM
4048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4049 yes:no: )
f69335e6 4050 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
4051echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4052 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5
4053echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;}
4054 ac_header_preproc=yes
4055 ;;
4056 no:yes:* )
f69335e6 4057 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5
4058echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4059 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5
4060echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;}
4061 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5
4062echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;}
4063 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5
4064echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4065 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4066echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5
4068echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4069 (
4070 cat <<\_ASBOX
4071## ------------------------------------------ ##
4072## Report this to the AC_PACKAGE_NAME lists. ##
4073## ------------------------------------------ ##
4074_ASBOX
4075 ) |
4076 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4077 ;;
f69335e6 4078esac
81ae7da0
BM
4079echo "$as_me:$LINENO: checking for stdlib.h" >&5
4080echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6
f69335e6 4081if test "${ac_cv_header_stdlib_h+set}" = set; then
4082 echo $ECHO_N "(cached) $ECHO_C" >&6
4083else
4084 ac_cv_header_stdlib_h=$ac_header_preproc
f40ec73c 4085fi
81ae7da0
BM
4086echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5
4087echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6
f69335e6 4088
f40ec73c 4089fi
f69335e6 4090if test $ac_cv_header_stdlib_h = yes; then
4091 cat >>confdefs.h <<\_ACEOF
f40ec73c 4092#define STDLIBH 1
f69335e6 4093_ACEOF
f40ec73c 4094
f40ec73c 4095fi
4096
f69335e6 4097
4098if test "${ac_cv_header_stddef_h+set}" = set; then
81ae7da0
BM
4099 echo "$as_me:$LINENO: checking for stddef.h" >&5
4100echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
f69335e6 4101if test "${ac_cv_header_stddef_h+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103fi
81ae7da0
BM
4104echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4105echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
f40ec73c 4106else
f69335e6 4107 # Is the header compilable?
81ae7da0
BM
4108echo "$as_me:$LINENO: checking stddef.h usability" >&5
4109echo $ECHO_N "checking stddef.h usability... $ECHO_C" >&6
f69335e6 4110cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4111/* confdefs.h. */
4112_ACEOF
4113cat confdefs.h >>conftest.$ac_ext
4114cat >>conftest.$ac_ext <<_ACEOF
4115/* end confdefs.h. */
f69335e6 4116$ac_includes_default
4117#include <stddef.h>
4118_ACEOF
4119rm -f conftest.$ac_objext
81ae7da0
BM
4120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4121 (eval $ac_compile) 2>conftest.er1
f69335e6 4122 ac_status=$?
cbdd3138
BM
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
f69335e6 4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
64b46a71 4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
cbdd3138
BM
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
f69335e6 4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 ac_header_compiler=yes
4141else
4142 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
81ae7da0 4145ac_header_compiler=no
f69335e6 4146fi
81ae7da0
BM
4147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4149echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4150
4151# Is the header present?
81ae7da0
BM
4152echo "$as_me:$LINENO: checking stddef.h presence" >&5
4153echo $ECHO_N "checking stddef.h presence... $ECHO_C" >&6
f69335e6 4154cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4155/* confdefs.h. */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h. */
f40ec73c 4160#include <stddef.h>
f69335e6 4161_ACEOF
81ae7da0
BM
4162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4164 ac_status=$?
cbdd3138 4165 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } >/dev/null; then
4170 if test -s conftest.err; then
4171 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4172 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4173 else
4174 ac_cpp_err=
4175 fi
4176else
4177 ac_cpp_err=yes
4178fi
4179if test -z "$ac_cpp_err"; then
4180 ac_header_preproc=yes
4181else
4182 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
f69335e6 4185 ac_header_preproc=no
4186fi
4187rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4189echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4190
4191# So? What about this header?
cbdd3138
BM
4192case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4193 yes:no: )
f69335e6 4194 { echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
4195echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4196 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
4197echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
4198 ac_header_preproc=yes
4199 ;;
4200 no:yes:* )
f69335e6 4201 { echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
4202echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4203 { echo "$as_me:$LINENO: WARNING: stddef.h: check for missing prerequisite headers?" >&5
4204echo "$as_me: WARNING: stddef.h: check for missing prerequisite headers?" >&2;}
4205 { echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
4206echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
4207 { echo "$as_me:$LINENO: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&5
4208echo "$as_me: WARNING: stddef.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4209 { echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4210echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
4211 { echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
4212echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4213 (
4214 cat <<\_ASBOX
4215## ------------------------------------------ ##
4216## Report this to the AC_PACKAGE_NAME lists. ##
4217## ------------------------------------------ ##
4218_ASBOX
4219 ) |
4220 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4221 ;;
f69335e6 4222esac
81ae7da0
BM
4223echo "$as_me:$LINENO: checking for stddef.h" >&5
4224echo $ECHO_N "checking for stddef.h... $ECHO_C" >&6
f69335e6 4225if test "${ac_cv_header_stddef_h+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228 ac_cv_header_stddef_h=$ac_header_preproc
f40ec73c 4229fi
81ae7da0
BM
4230echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4231echo "${ECHO_T}$ac_cv_header_stddef_h" >&6
f69335e6 4232
f40ec73c 4233fi
f69335e6 4234if test $ac_cv_header_stddef_h = yes; then
4235 cat >>confdefs.h <<\_ACEOF
f40ec73c 4236#define STDDEFH 1
f69335e6 4237_ACEOF
f40ec73c 4238
f40ec73c 4239fi
4240
f69335e6 4241
4242if test "${ac_cv_header_sys_syslog_h+set}" = set; then
81ae7da0
BM
4243 echo "$as_me:$LINENO: checking for sys/syslog.h" >&5
4244echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6
f69335e6 4245if test "${ac_cv_header_sys_syslog_h+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247fi
81ae7da0
BM
4248echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5
4249echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6
f40ec73c 4250else
f69335e6 4251 # Is the header compilable?
81ae7da0
BM
4252echo "$as_me:$LINENO: checking sys/syslog.h usability" >&5
4253echo $ECHO_N "checking sys/syslog.h usability... $ECHO_C" >&6
f69335e6 4254cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
f69335e6 4260$ac_includes_default
4261#include <sys/syslog.h>
4262_ACEOF
4263rm -f conftest.$ac_objext
81ae7da0
BM
4264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>conftest.er1
f69335e6 4266 ac_status=$?
cbdd3138
BM
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
f69335e6 4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); } &&
64b46a71 4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 (eval $ac_try) 2>&5
cbdd3138
BM
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
f69335e6 4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 ac_header_compiler=yes
4285else
4286 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4287sed 's/^/| /' conftest.$ac_ext >&5
4288
81ae7da0 4289ac_header_compiler=no
f69335e6 4290fi
81ae7da0
BM
4291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4292echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4293echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4294
4295# Is the header present?
81ae7da0
BM
4296echo "$as_me:$LINENO: checking sys/syslog.h presence" >&5
4297echo $ECHO_N "checking sys/syslog.h presence... $ECHO_C" >&6
f69335e6 4298cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
f40ec73c 4304#include <sys/syslog.h>
f69335e6 4305_ACEOF
81ae7da0
BM
4306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4308 ac_status=$?
cbdd3138 4309 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null; then
4314 if test -s conftest.err; then
4315 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4317 else
4318 ac_cpp_err=
4319 fi
4320else
4321 ac_cpp_err=yes
4322fi
4323if test -z "$ac_cpp_err"; then
4324 ac_header_preproc=yes
4325else
4326 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4327sed 's/^/| /' conftest.$ac_ext >&5
4328
f69335e6 4329 ac_header_preproc=no
4330fi
4331rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4332echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4333echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4334
4335# So? What about this header?
cbdd3138
BM
4336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4337 yes:no: )
f69335e6 4338 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
4339echo "$as_me: WARNING: sys/syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4340 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: proceeding with the compiler's result" >&5
4341echo "$as_me: WARNING: sys/syslog.h: proceeding with the compiler's result" >&2;}
4342 ac_header_preproc=yes
4343 ;;
4344 no:yes:* )
f69335e6 4345 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: present but cannot be compiled" >&5
4346echo "$as_me: WARNING: sys/syslog.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4347 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: check for missing prerequisite headers?" >&5
4348echo "$as_me: WARNING: sys/syslog.h: check for missing prerequisite headers?" >&2;}
4349 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: see the Autoconf documentation" >&5
4350echo "$as_me: WARNING: sys/syslog.h: see the Autoconf documentation" >&2;}
4351 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: section \"Present But Cannot Be Compiled\"" >&5
4352echo "$as_me: WARNING: sys/syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4353 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4354echo "$as_me: WARNING: sys/syslog.h: proceeding with the preprocessor's result" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: sys/syslog.h: in the future, the compiler will take precedence" >&5
4356echo "$as_me: WARNING: sys/syslog.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4357 (
4358 cat <<\_ASBOX
4359## ------------------------------------------ ##
4360## Report this to the AC_PACKAGE_NAME lists. ##
4361## ------------------------------------------ ##
4362_ASBOX
4363 ) |
4364 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4365 ;;
f69335e6 4366esac
81ae7da0
BM
4367echo "$as_me:$LINENO: checking for sys/syslog.h" >&5
4368echo $ECHO_N "checking for sys/syslog.h... $ECHO_C" >&6
f69335e6 4369if test "${ac_cv_header_sys_syslog_h+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372 ac_cv_header_sys_syslog_h=$ac_header_preproc
f40ec73c 4373fi
81ae7da0
BM
4374echo "$as_me:$LINENO: result: $ac_cv_header_sys_syslog_h" >&5
4375echo "${ECHO_T}$ac_cv_header_sys_syslog_h" >&6
f69335e6 4376
f40ec73c 4377fi
f69335e6 4378if test $ac_cv_header_sys_syslog_h = yes; then
4379 cat >>confdefs.h <<\_ACEOF
f40ec73c 4380#define SYSSYSLOGH 1
f69335e6 4381_ACEOF
f40ec73c 4382
f40ec73c 4383fi
4384
f69335e6 4385
4386if test "${ac_cv_header_unistd_h+set}" = set; then
81ae7da0
BM
4387 echo "$as_me:$LINENO: checking for unistd.h" >&5
4388echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
f69335e6 4389if test "${ac_cv_header_unistd_h+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391fi
81ae7da0
BM
4392echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
4393echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
f40ec73c 4394else
f69335e6 4395 # Is the header compilable?
81ae7da0
BM
4396echo "$as_me:$LINENO: checking unistd.h usability" >&5
4397echo $ECHO_N "checking unistd.h usability... $ECHO_C" >&6
f69335e6 4398cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4399/* confdefs.h. */
4400_ACEOF
4401cat confdefs.h >>conftest.$ac_ext
4402cat >>conftest.$ac_ext <<_ACEOF
4403/* end confdefs.h. */
f69335e6 4404$ac_includes_default
4405#include <unistd.h>
4406_ACEOF
4407rm -f conftest.$ac_objext
81ae7da0
BM
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
f69335e6 4410 ac_status=$?
cbdd3138
BM
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
f69335e6 4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
64b46a71 4416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
cbdd3138
BM
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
f69335e6 4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_header_compiler=yes
4429else
4430 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
81ae7da0 4433ac_header_compiler=no
f69335e6 4434fi
81ae7da0
BM
4435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4438
4439# Is the header present?
81ae7da0
BM
4440echo "$as_me:$LINENO: checking unistd.h presence" >&5
4441echo $ECHO_N "checking unistd.h presence... $ECHO_C" >&6
f69335e6 4442cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4443/* confdefs.h. */
4444_ACEOF
4445cat confdefs.h >>conftest.$ac_ext
4446cat >>conftest.$ac_ext <<_ACEOF
4447/* end confdefs.h. */
f40ec73c 4448#include <unistd.h>
f69335e6 4449_ACEOF
81ae7da0
BM
4450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4452 ac_status=$?
cbdd3138 4453 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } >/dev/null; then
4458 if test -s conftest.err; then
4459 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4461 else
4462 ac_cpp_err=
4463 fi
4464else
4465 ac_cpp_err=yes
4466fi
4467if test -z "$ac_cpp_err"; then
4468 ac_header_preproc=yes
4469else
4470 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
f69335e6 4473 ac_header_preproc=no
4474fi
4475rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4478
4479# So? What about this header?
cbdd3138
BM
4480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4481 yes:no: )
f69335e6 4482 { echo "$as_me:$LINENO: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&5
4483echo "$as_me: WARNING: unistd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4484 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the compiler's result" >&5
4485echo "$as_me: WARNING: unistd.h: proceeding with the compiler's result" >&2;}
4486 ac_header_preproc=yes
4487 ;;
4488 no:yes:* )
f69335e6 4489 { echo "$as_me:$LINENO: WARNING: unistd.h: present but cannot be compiled" >&5
4490echo "$as_me: WARNING: unistd.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4491 { echo "$as_me:$LINENO: WARNING: unistd.h: check for missing prerequisite headers?" >&5
4492echo "$as_me: WARNING: unistd.h: check for missing prerequisite headers?" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: unistd.h: see the Autoconf documentation" >&5
4494echo "$as_me: WARNING: unistd.h: see the Autoconf documentation" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&5
4496echo "$as_me: WARNING: unistd.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4497 { echo "$as_me:$LINENO: WARNING: unistd.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4498echo "$as_me: WARNING: unistd.h: proceeding with the preprocessor's result" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: unistd.h: in the future, the compiler will take precedence" >&5
4500echo "$as_me: WARNING: unistd.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4501 (
4502 cat <<\_ASBOX
4503## ------------------------------------------ ##
4504## Report this to the AC_PACKAGE_NAME lists. ##
4505## ------------------------------------------ ##
4506_ASBOX
4507 ) |
4508 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4509 ;;
f69335e6 4510esac
81ae7da0
BM
4511echo "$as_me:$LINENO: checking for unistd.h" >&5
4512echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6
f69335e6 4513if test "${ac_cv_header_unistd_h+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 ac_cv_header_unistd_h=$ac_header_preproc
f40ec73c 4517fi
81ae7da0
BM
4518echo "$as_me:$LINENO: result: $ac_cv_header_unistd_h" >&5
4519echo "${ECHO_T}$ac_cv_header_unistd_h" >&6
f69335e6 4520
f40ec73c 4521fi
f69335e6 4522if test $ac_cv_header_unistd_h = yes; then
4523 cat >>confdefs.h <<\_ACEOF
f40ec73c 4524#define UNISTDH 1
f69335e6 4525_ACEOF
f40ec73c 4526
f40ec73c 4527fi
4528
f69335e6 4529
4530if test "${ac_cv_header_string_h+set}" = set; then
81ae7da0
BM
4531 echo "$as_me:$LINENO: checking for string.h" >&5
4532echo $ECHO_N "checking for string.h... $ECHO_C" >&6
f69335e6 4533if test "${ac_cv_header_string_h+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535fi
81ae7da0
BM
4536echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
4537echo "${ECHO_T}$ac_cv_header_string_h" >&6
f40ec73c 4538else
f69335e6 4539 # Is the header compilable?
81ae7da0
BM
4540echo "$as_me:$LINENO: checking string.h usability" >&5
4541echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
f69335e6 4542cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4543/* confdefs.h. */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h. */
f69335e6 4548$ac_includes_default
4549#include <string.h>
4550_ACEOF
4551rm -f conftest.$ac_objext
81ae7da0
BM
4552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553 (eval $ac_compile) 2>conftest.er1
f69335e6 4554 ac_status=$?
cbdd3138
BM
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
f69335e6 4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } &&
64b46a71 4560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4562 (eval $ac_try) 2>&5
cbdd3138
BM
4563 ac_status=$?
4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565 (exit $ac_status); }; } &&
4566 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
f69335e6 4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4572 ac_header_compiler=yes
4573else
4574 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4575sed 's/^/| /' conftest.$ac_ext >&5
4576
81ae7da0 4577ac_header_compiler=no
f69335e6 4578fi
81ae7da0
BM
4579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4581echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4582
4583# Is the header present?
81ae7da0
BM
4584echo "$as_me:$LINENO: checking string.h presence" >&5
4585echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
f69335e6 4586cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4587/* confdefs.h. */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h. */
f40ec73c 4592#include <string.h>
f69335e6 4593_ACEOF
81ae7da0
BM
4594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4596 ac_status=$?
cbdd3138 4597 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } >/dev/null; then
4602 if test -s conftest.err; then
4603 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4605 else
4606 ac_cpp_err=
4607 fi
4608else
4609 ac_cpp_err=yes
4610fi
4611if test -z "$ac_cpp_err"; then
4612 ac_header_preproc=yes
4613else
4614 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
f69335e6 4617 ac_header_preproc=no
4618fi
4619rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4620echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4621echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4622
4623# So? What about this header?
cbdd3138
BM
4624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4625 yes:no: )
f69335e6 4626 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
4627echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4628 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
4629echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
4630 ac_header_preproc=yes
4631 ;;
4632 no:yes:* )
f69335e6 4633 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
4634echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4635 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
4636echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
4637 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
4638echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
4639 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
4640echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4641 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4642echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
4643 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
4644echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4645 (
4646 cat <<\_ASBOX
4647## ------------------------------------------ ##
4648## Report this to the AC_PACKAGE_NAME lists. ##
4649## ------------------------------------------ ##
4650_ASBOX
4651 ) |
4652 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4653 ;;
f69335e6 4654esac
81ae7da0
BM
4655echo "$as_me:$LINENO: checking for string.h" >&5
4656echo $ECHO_N "checking for string.h... $ECHO_C" >&6
f69335e6 4657if test "${ac_cv_header_string_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 ac_cv_header_string_h=$ac_header_preproc
f40ec73c 4661fi
81ae7da0
BM
4662echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
4663echo "${ECHO_T}$ac_cv_header_string_h" >&6
f69335e6 4664
f40ec73c 4665fi
f69335e6 4666if test $ac_cv_header_string_h = yes; then
4667 cat >>confdefs.h <<\_ACEOF
f40ec73c 4668#define STRINGH 1
f69335e6 4669_ACEOF
f40ec73c 4670
f40ec73c 4671fi
4672
f69335e6 4673
4674if test "${ac_cv_header_strings_h+set}" = set; then
81ae7da0
BM
4675 echo "$as_me:$LINENO: checking for strings.h" >&5
4676echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
f69335e6 4677if test "${ac_cv_header_strings_h+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679fi
81ae7da0
BM
4680echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
4681echo "${ECHO_T}$ac_cv_header_strings_h" >&6
f40ec73c 4682else
f69335e6 4683 # Is the header compilable?
81ae7da0
BM
4684echo "$as_me:$LINENO: checking strings.h usability" >&5
4685echo $ECHO_N "checking strings.h usability... $ECHO_C" >&6
f69335e6 4686cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4687/* confdefs.h. */
4688_ACEOF
4689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
4691/* end confdefs.h. */
f69335e6 4692$ac_includes_default
4693#include <strings.h>
4694_ACEOF
4695rm -f conftest.$ac_objext
81ae7da0
BM
4696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
f69335e6 4698 ac_status=$?
cbdd3138
BM
4699 grep -v '^ *+' conftest.er1 >conftest.err
4700 rm -f conftest.er1
4701 cat conftest.err >&5
f69335e6 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
64b46a71 4704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 (eval $ac_try) 2>&5
cbdd3138
BM
4707 ac_status=$?
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }; } &&
4710 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
f69335e6 4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; }; then
4716 ac_header_compiler=yes
4717else
4718 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
81ae7da0 4721ac_header_compiler=no
f69335e6 4722fi
81ae7da0
BM
4723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4724echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4725echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4726
4727# Is the header present?
81ae7da0
BM
4728echo "$as_me:$LINENO: checking strings.h presence" >&5
4729echo $ECHO_N "checking strings.h presence... $ECHO_C" >&6
f69335e6 4730cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4731/* confdefs.h. */
4732_ACEOF
4733cat confdefs.h >>conftest.$ac_ext
4734cat >>conftest.$ac_ext <<_ACEOF
4735/* end confdefs.h. */
f40ec73c 4736#include <strings.h>
f69335e6 4737_ACEOF
81ae7da0
BM
4738if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4739 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4740 ac_status=$?
cbdd3138 4741 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } >/dev/null; then
4746 if test -s conftest.err; then
4747 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4749 else
4750 ac_cpp_err=
4751 fi
4752else
4753 ac_cpp_err=yes
4754fi
4755if test -z "$ac_cpp_err"; then
4756 ac_header_preproc=yes
4757else
4758 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
f69335e6 4761 ac_header_preproc=no
4762fi
4763rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4764echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4766
4767# So? What about this header?
cbdd3138
BM
4768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4769 yes:no: )
f69335e6 4770 { echo "$as_me:$LINENO: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&5
4771echo "$as_me: WARNING: strings.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4772 { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the compiler's result" >&5
4773echo "$as_me: WARNING: strings.h: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4775 ;;
4776 no:yes:* )
f69335e6 4777 { echo "$as_me:$LINENO: WARNING: strings.h: present but cannot be compiled" >&5
4778echo "$as_me: WARNING: strings.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4779 { echo "$as_me:$LINENO: WARNING: strings.h: check for missing prerequisite headers?" >&5
4780echo "$as_me: WARNING: strings.h: check for missing prerequisite headers?" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: strings.h: see the Autoconf documentation" >&5
4782echo "$as_me: WARNING: strings.h: see the Autoconf documentation" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: strings.h: section \"Present But Cannot Be Compiled\"" >&5
4784echo "$as_me: WARNING: strings.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4785 { echo "$as_me:$LINENO: WARNING: strings.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4786echo "$as_me: WARNING: strings.h: proceeding with the preprocessor's result" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: strings.h: in the future, the compiler will take precedence" >&5
4788echo "$as_me: WARNING: strings.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4789 (
4790 cat <<\_ASBOX
4791## ------------------------------------------ ##
4792## Report this to the AC_PACKAGE_NAME lists. ##
4793## ------------------------------------------ ##
4794_ASBOX
4795 ) |
4796 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4797 ;;
f69335e6 4798esac
81ae7da0
BM
4799echo "$as_me:$LINENO: checking for strings.h" >&5
4800echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
f69335e6 4801if test "${ac_cv_header_strings_h+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803else
4804 ac_cv_header_strings_h=$ac_header_preproc
f40ec73c 4805fi
81ae7da0
BM
4806echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
4807echo "${ECHO_T}$ac_cv_header_strings_h" >&6
f69335e6 4808
f40ec73c 4809fi
f69335e6 4810if test $ac_cv_header_strings_h = yes; then
4811 cat >>confdefs.h <<\_ACEOF
f40ec73c 4812#define STRINGSH 1
f69335e6 4813_ACEOF
f40ec73c 4814
f40ec73c 4815fi
4816
f69335e6 4817
f69335e6 4818if test "${ac_cv_header_malloc_h+set}" = set; then
81ae7da0
BM
4819 echo "$as_me:$LINENO: checking for malloc.h" >&5
4820echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
f69335e6 4821if test "${ac_cv_header_malloc_h+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823fi
81ae7da0
BM
4824echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4825echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
f40ec73c 4826else
f69335e6 4827 # Is the header compilable?
81ae7da0
BM
4828echo "$as_me:$LINENO: checking malloc.h usability" >&5
4829echo $ECHO_N "checking malloc.h usability... $ECHO_C" >&6
f69335e6 4830cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4831/* confdefs.h. */
4832_ACEOF
4833cat confdefs.h >>conftest.$ac_ext
4834cat >>conftest.$ac_ext <<_ACEOF
4835/* end confdefs.h. */
f69335e6 4836$ac_includes_default
4837#include <malloc.h>
4838_ACEOF
4839rm -f conftest.$ac_objext
81ae7da0
BM
4840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
f69335e6 4842 ac_status=$?
cbdd3138
BM
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
f69335e6 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
64b46a71 4848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
cbdd3138
BM
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
f69335e6 4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_header_compiler=yes
4861else
4862 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
81ae7da0 4865ac_header_compiler=no
f69335e6 4866fi
81ae7da0
BM
4867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4868echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4869echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 4870
4871# Is the header present?
81ae7da0
BM
4872echo "$as_me:$LINENO: checking malloc.h presence" >&5
4873echo $ECHO_N "checking malloc.h presence... $ECHO_C" >&6
f69335e6 4874cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4875/* confdefs.h. */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h. */
f40ec73c 4880#include <malloc.h>
f69335e6 4881_ACEOF
81ae7da0
BM
4882if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 4884 ac_status=$?
cbdd3138 4885 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null; then
4890 if test -s conftest.err; then
4891 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 4892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 4893 else
4894 ac_cpp_err=
4895 fi
4896else
4897 ac_cpp_err=yes
4898fi
4899if test -z "$ac_cpp_err"; then
4900 ac_header_preproc=yes
4901else
4902 echo "$as_me: failed program was:" >&5
cbdd3138
BM
4903sed 's/^/| /' conftest.$ac_ext >&5
4904
f69335e6 4905 ac_header_preproc=no
4906fi
4907rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
4908echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4909echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 4910
4911# So? What about this header?
cbdd3138
BM
4912case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4913 yes:no: )
f69335e6 4914 { echo "$as_me:$LINENO: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
4915echo "$as_me: WARNING: malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
4916 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the compiler's result" >&5
4917echo "$as_me: WARNING: malloc.h: proceeding with the compiler's result" >&2;}
4918 ac_header_preproc=yes
4919 ;;
4920 no:yes:* )
f69335e6 4921 { echo "$as_me:$LINENO: WARNING: malloc.h: present but cannot be compiled" >&5
4922echo "$as_me: WARNING: malloc.h: present but cannot be compiled" >&2;}
cbdd3138
BM
4923 { echo "$as_me:$LINENO: WARNING: malloc.h: check for missing prerequisite headers?" >&5
4924echo "$as_me: WARNING: malloc.h: check for missing prerequisite headers?" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: malloc.h: see the Autoconf documentation" >&5
4926echo "$as_me: WARNING: malloc.h: see the Autoconf documentation" >&2;}
4927 { echo "$as_me:$LINENO: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&5
4928echo "$as_me: WARNING: malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 4929 { echo "$as_me:$LINENO: WARNING: malloc.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
4930echo "$as_me: WARNING: malloc.h: proceeding with the preprocessor's result" >&2;}
4931 { echo "$as_me:$LINENO: WARNING: malloc.h: in the future, the compiler will take precedence" >&5
4932echo "$as_me: WARNING: malloc.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
4933 (
4934 cat <<\_ASBOX
4935## ------------------------------------------ ##
4936## Report this to the AC_PACKAGE_NAME lists. ##
4937## ------------------------------------------ ##
4938_ASBOX
4939 ) |
4940 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 4941 ;;
f69335e6 4942esac
81ae7da0
BM
4943echo "$as_me:$LINENO: checking for malloc.h" >&5
4944echo $ECHO_N "checking for malloc.h... $ECHO_C" >&6
f69335e6 4945if test "${ac_cv_header_malloc_h+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 ac_cv_header_malloc_h=$ac_header_preproc
f40ec73c 4949fi
81ae7da0
BM
4950echo "$as_me:$LINENO: result: $ac_cv_header_malloc_h" >&5
4951echo "${ECHO_T}$ac_cv_header_malloc_h" >&6
f69335e6 4952
f40ec73c 4953fi
f69335e6 4954if test $ac_cv_header_malloc_h = yes; then
4955 cat >>confdefs.h <<\_ACEOF
f40ec73c 4956#define MALLOCH <malloc.h>
f69335e6 4957_ACEOF
f40ec73c 4958
f40ec73c 4959fi
4960
f69335e6 4961
4962if test "${ac_cv_header_sys_rusage_h+set}" = set; then
81ae7da0
BM
4963 echo "$as_me:$LINENO: checking for sys/rusage.h" >&5
4964echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6
f69335e6 4965if test "${ac_cv_header_sys_rusage_h+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967fi
81ae7da0
BM
4968echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5
4969echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6
f40ec73c 4970else
f69335e6 4971 # Is the header compilable?
81ae7da0
BM
4972echo "$as_me:$LINENO: checking sys/rusage.h usability" >&5
4973echo $ECHO_N "checking sys/rusage.h usability... $ECHO_C" >&6
f69335e6 4974cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
4975/* confdefs.h. */
4976_ACEOF
4977cat confdefs.h >>conftest.$ac_ext
4978cat >>conftest.$ac_ext <<_ACEOF
4979/* end confdefs.h. */
f69335e6 4980$ac_includes_default
4981#include <sys/rusage.h>
4982_ACEOF
4983rm -f conftest.$ac_objext
81ae7da0
BM
4984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4985 (eval $ac_compile) 2>conftest.er1
f69335e6 4986 ac_status=$?
cbdd3138
BM
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
f69335e6 4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
64b46a71 4992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
cbdd3138
BM
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; } &&
4998 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
f69335e6 5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; }; then
5004 ac_header_compiler=yes
5005else
5006 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
81ae7da0 5009ac_header_compiler=no
f69335e6 5010fi
81ae7da0
BM
5011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5013echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 5014
5015# Is the header present?
81ae7da0
BM
5016echo "$as_me:$LINENO: checking sys/rusage.h presence" >&5
5017echo $ECHO_N "checking sys/rusage.h presence... $ECHO_C" >&6
f69335e6 5018cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5019/* confdefs.h. */
5020_ACEOF
5021cat confdefs.h >>conftest.$ac_ext
5022cat >>conftest.$ac_ext <<_ACEOF
5023/* end confdefs.h. */
f40ec73c 5024#include <sys/rusage.h>
f69335e6 5025_ACEOF
81ae7da0
BM
5026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 5028 ac_status=$?
cbdd3138 5029 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 5030 rm -f conftest.er1
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } >/dev/null; then
5034 if test -s conftest.err; then
5035 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 5036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 5037 else
5038 ac_cpp_err=
5039 fi
5040else
5041 ac_cpp_err=yes
5042fi
5043if test -z "$ac_cpp_err"; then
5044 ac_header_preproc=yes
5045else
5046 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5047sed 's/^/| /' conftest.$ac_ext >&5
5048
f69335e6 5049 ac_header_preproc=no
5050fi
5051rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
5052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5053echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 5054
5055# So? What about this header?
cbdd3138
BM
5056case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5057 yes:no: )
f69335e6 5058 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: accepted by the compiler, rejected by the preprocessor!" >&5
5059echo "$as_me: WARNING: sys/rusage.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
5060 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: proceeding with the compiler's result" >&5
5061echo "$as_me: WARNING: sys/rusage.h: proceeding with the compiler's result" >&2;}
5062 ac_header_preproc=yes
5063 ;;
5064 no:yes:* )
f69335e6 5065 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: present but cannot be compiled" >&5
5066echo "$as_me: WARNING: sys/rusage.h: present but cannot be compiled" >&2;}
cbdd3138
BM
5067 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: check for missing prerequisite headers?" >&5
5068echo "$as_me: WARNING: sys/rusage.h: check for missing prerequisite headers?" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: see the Autoconf documentation" >&5
5070echo "$as_me: WARNING: sys/rusage.h: see the Autoconf documentation" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: section \"Present But Cannot Be Compiled\"" >&5
5072echo "$as_me: WARNING: sys/rusage.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 5073 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
5074echo "$as_me: WARNING: sys/rusage.h: proceeding with the preprocessor's result" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: sys/rusage.h: in the future, the compiler will take precedence" >&5
5076echo "$as_me: WARNING: sys/rusage.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
5077 (
5078 cat <<\_ASBOX
5079## ------------------------------------------ ##
5080## Report this to the AC_PACKAGE_NAME lists. ##
5081## ------------------------------------------ ##
5082_ASBOX
5083 ) |
5084 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 5085 ;;
f69335e6 5086esac
81ae7da0
BM
5087echo "$as_me:$LINENO: checking for sys/rusage.h" >&5
5088echo $ECHO_N "checking for sys/rusage.h... $ECHO_C" >&6
f69335e6 5089if test "${ac_cv_header_sys_rusage_h+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092 ac_cv_header_sys_rusage_h=$ac_header_preproc
f40ec73c 5093fi
81ae7da0
BM
5094echo "$as_me:$LINENO: result: $ac_cv_header_sys_rusage_h" >&5
5095echo "${ECHO_T}$ac_cv_header_sys_rusage_h" >&6
f69335e6 5096
f40ec73c 5097fi
f69335e6 5098if test $ac_cv_header_sys_rusage_h = yes; then
5099 cat >>confdefs.h <<\_ACEOF
f40ec73c 5100#define RUSAGEH 1
f69335e6 5101_ACEOF
f40ec73c 5102
f40ec73c 5103fi
5104
f69335e6 5105
5106if test "${ac_cv_header_glob_h+set}" = set; then
81ae7da0
BM
5107 echo "$as_me:$LINENO: checking for glob.h" >&5
5108echo $ECHO_N "checking for glob.h... $ECHO_C" >&6
f69335e6 5109if test "${ac_cv_header_glob_h+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111fi
81ae7da0
BM
5112echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5
5113echo "${ECHO_T}$ac_cv_header_glob_h" >&6
e03c2382 5114else
f69335e6 5115 # Is the header compilable?
81ae7da0
BM
5116echo "$as_me:$LINENO: checking glob.h usability" >&5
5117echo $ECHO_N "checking glob.h usability... $ECHO_C" >&6
f69335e6 5118cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5119/* confdefs.h. */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h. */
f69335e6 5124$ac_includes_default
5125#include <glob.h>
5126_ACEOF
5127rm -f conftest.$ac_objext
81ae7da0
BM
5128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>conftest.er1
f69335e6 5130 ac_status=$?
cbdd3138
BM
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
f69335e6 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } &&
64b46a71 5136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
cbdd3138
BM
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
f69335e6 5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_header_compiler=yes
5149else
5150 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
81ae7da0 5153ac_header_compiler=no
f69335e6 5154fi
81ae7da0
BM
5155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5157echo "${ECHO_T}$ac_header_compiler" >&6
f69335e6 5158
5159# Is the header present?
81ae7da0
BM
5160echo "$as_me:$LINENO: checking glob.h presence" >&5
5161echo $ECHO_N "checking glob.h presence... $ECHO_C" >&6
f69335e6 5162cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5163/* confdefs.h. */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h. */
e03c2382 5168#include <glob.h>
f69335e6 5169_ACEOF
81ae7da0
BM
5170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
f69335e6 5172 ac_status=$?
cbdd3138 5173 grep -v '^ *+' conftest.er1 >conftest.err
f69335e6 5174 rm -f conftest.er1
5175 cat conftest.err >&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev/null; then
5178 if test -s conftest.err; then
5179 ac_cpp_err=$ac_c_preproc_warn_flag
cbdd3138 5180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f69335e6 5181 else
5182 ac_cpp_err=
5183 fi
5184else
5185 ac_cpp_err=yes
5186fi
5187if test -z "$ac_cpp_err"; then
5188 ac_header_preproc=yes
5189else
5190 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
f69335e6 5193 ac_header_preproc=no
5194fi
5195rm -f conftest.err conftest.$ac_ext
81ae7da0
BM
5196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5197echo "${ECHO_T}$ac_header_preproc" >&6
f69335e6 5198
5199# So? What about this header?
cbdd3138
BM
5200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5201 yes:no: )
f69335e6 5202 { echo "$as_me:$LINENO: WARNING: glob.h: accepted by the compiler, rejected by the preprocessor!" >&5
5203echo "$as_me: WARNING: glob.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
cbdd3138
BM
5204 { echo "$as_me:$LINENO: WARNING: glob.h: proceeding with the compiler's result" >&5
5205echo "$as_me: WARNING: glob.h: proceeding with the compiler's result" >&2;}
5206 ac_header_preproc=yes
5207 ;;
5208 no:yes:* )
f69335e6 5209 { echo "$as_me:$LINENO: WARNING: glob.h: present but cannot be compiled" >&5
5210echo "$as_me: WARNING: glob.h: present but cannot be compiled" >&2;}
cbdd3138
BM
5211 { echo "$as_me:$LINENO: WARNING: glob.h: check for missing prerequisite headers?" >&5
5212echo "$as_me: WARNING: glob.h: check for missing prerequisite headers?" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: glob.h: see the Autoconf documentation" >&5
5214echo "$as_me: WARNING: glob.h: see the Autoconf documentation" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: glob.h: section \"Present But Cannot Be Compiled\"" >&5
5216echo "$as_me: WARNING: glob.h: section \"Present But Cannot Be Compiled\"" >&2;}
f69335e6 5217 { echo "$as_me:$LINENO: WARNING: glob.h: proceeding with the preprocessor's result" >&5
cbdd3138
BM
5218echo "$as_me: WARNING: glob.h: proceeding with the preprocessor's result" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: glob.h: in the future, the compiler will take precedence" >&5
5220echo "$as_me: WARNING: glob.h: in the future, the compiler will take precedence" >&2;}
81ae7da0
BM
5221 (
5222 cat <<\_ASBOX
5223## ------------------------------------------ ##
5224## Report this to the AC_PACKAGE_NAME lists. ##
5225## ------------------------------------------ ##
5226_ASBOX
5227 ) |
5228 sed "s/^/$as_me: WARNING: /" >&2
cbdd3138 5229 ;;
f69335e6 5230esac
81ae7da0
BM
5231echo "$as_me:$LINENO: checking for glob.h" >&5
5232echo $ECHO_N "checking for glob.h... $ECHO_C" >&6
f69335e6 5233if test "${ac_cv_header_glob_h+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236 ac_cv_header_glob_h=$ac_header_preproc
e03c2382 5237fi
81ae7da0
BM
5238echo "$as_me:$LINENO: result: $ac_cv_header_glob_h" >&5
5239echo "${ECHO_T}$ac_cv_header_glob_h" >&6
f69335e6 5240
e03c2382 5241fi
f69335e6 5242if test $ac_cv_header_glob_h = yes; then
5243 cat >>confdefs.h <<\_ACEOF
e03c2382 5244#define GLOBH 1
f69335e6 5245_ACEOF
e03c2382 5246
e03c2382 5247fi
5248
f69335e6 5249
81ae7da0
BM
5250echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5251echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
f69335e6 5252if test "${ac_cv_c_const+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5256/* confdefs.h. */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h. */
f69335e6 5261
f69335e6 5262int
5263main ()
5264{
5265/* FIXME: Include the comments suggested by Paul. */
5266#ifndef __cplusplus
5267 /* Ultrix mips cc rejects this. */
5268 typedef int charset[2];
5269 const charset x;
5270 /* SunOS 4.1.1 cc rejects this. */
5271 char const *const *ccp;
5272 char **p;
5273 /* NEC SVR4.0.2 mips cc rejects this. */
5274 struct point {int x, y;};
5275 static struct point const zero = {0,0};
5276 /* AIX XL C 1.02.0.0 rejects this.
5277 It does not let you subtract one const X* pointer from another in
5278 an arm of an if-expression whose if-part is not a constant
5279 expression */
5280 const char *g = "string";
5281 ccp = &g + (g ? g-g : 0);
5282 /* HPUX 7.0 cc rejects these. */
5283 ++ccp;
5284 p = (char**) ccp;
5285 ccp = (char const *const *) p;
5286 { /* SCO 3.2v4 cc rejects this. */
5287 char *t;
5288 char const *s = 0 ? (char *) 0 : (char const *) 0;
5289
5290 *t++ = 0;
5291 }
5292 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5293 int x[] = {25, 17};
5294 const int *foo = &x[0];
5295 ++foo;
5296 }
5297 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5298 typedef const int *iptr;
5299 iptr p = 0;
5300 ++p;
5301 }
5302 { /* AIX XL C 1.02.0.0 rejects this saying
5303 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5304 struct s { int j; const int *ap[3]; };
5305 struct s *b; b->j = 5;
5306 }
5307 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5308 const int foo = 10;
5309 }
5310#endif
5311
5312 ;
5313 return 0;
5314}
5315_ACEOF
5316rm -f conftest.$ac_objext
81ae7da0
BM
5317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5318 (eval $ac_compile) 2>conftest.er1
f69335e6 5319 ac_status=$?
cbdd3138
BM
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
f69335e6 5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
64b46a71 5325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 (eval $ac_try) 2>&5
cbdd3138
BM
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 (eval $ac_try) 2>&5
f69335e6 5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
f40ec73c 5337 ac_cv_c_const=yes
5338else
f69335e6 5339 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
81ae7da0 5342ac_cv_c_const=no
f40ec73c 5343fi
81ae7da0 5344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 5345fi
81ae7da0
BM
5346echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5347echo "${ECHO_T}$ac_cv_c_const" >&6
f40ec73c 5348if test $ac_cv_c_const = no; then
f69335e6 5349
5350cat >>confdefs.h <<\_ACEOF
5351#define const
5352_ACEOF
f40ec73c 5353
5354fi
5355
81ae7da0
BM
5356echo "$as_me:$LINENO: checking for inline" >&5
5357echo $ECHO_N "checking for inline... $ECHO_C" >&6
f69335e6 5358if test "${ac_cv_c_inline+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 5360else
5361 ac_cv_c_inline=no
5362for ac_kw in inline __inline__ __inline; do
f69335e6 5363 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
f69335e6 5369#ifndef __cplusplus
cbdd3138
BM
5370typedef int foo_t;
5371static $ac_kw foo_t static_foo () {return 0; }
5372$ac_kw foo_t foo () {return 0; }
f69335e6 5373#endif
f40ec73c 5374
f69335e6 5375_ACEOF
5376rm -f conftest.$ac_objext
81ae7da0
BM
5377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378 (eval $ac_compile) 2>conftest.er1
f69335e6 5379 ac_status=$?
cbdd3138
BM
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
f69335e6 5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
64b46a71 5385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 (eval $ac_try) 2>&5
cbdd3138
BM
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
f69335e6 5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
81ae7da0 5397 ac_cv_c_inline=$ac_kw; break
f40ec73c 5398else
f69335e6 5399 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5400sed 's/^/| /' conftest.$ac_ext >&5
5401
f40ec73c 5402fi
81ae7da0 5403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 5404done
5405
5406fi
81ae7da0
BM
5407echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5408echo "${ECHO_T}$ac_cv_c_inline" >&6
cbdd3138
BM
5409
5410
f69335e6 5411case $ac_cv_c_inline in
f40ec73c 5412 inline | yes) ;;
cbdd3138
BM
5413 *)
5414 case $ac_cv_c_inline in
5415 no) ac_val=;;
5416 *) ac_val=$ac_cv_c_inline;;
5417 esac
5418 cat >>confdefs.h <<_ACEOF
5419#ifndef __cplusplus
5420#define inline $ac_val
5421#endif
f69335e6 5422_ACEOF
cbdd3138 5423 ;;
f40ec73c 5424esac
5425
81ae7da0
BM
5426echo "$as_me:$LINENO: checking for size_t" >&5
5427echo $ECHO_N "checking for size_t... $ECHO_C" >&6
f69335e6 5428if test "${ac_cv_type_size_t+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 5430else
f69335e6 5431 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
f69335e6 5437$ac_includes_default
f69335e6 5438int
5439main ()
5440{
81ae7da0 5441if ((size_t *) 0)
f69335e6 5442 return 0;
81ae7da0 5443if (sizeof (size_t))
f69335e6 5444 return 0;
5445 ;
5446 return 0;
5447}
5448_ACEOF
5449rm -f conftest.$ac_objext
81ae7da0
BM
5450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
f69335e6 5452 ac_status=$?
cbdd3138
BM
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
f69335e6 5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
64b46a71 5458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 (eval $ac_try) 2>&5
cbdd3138
BM
5461 ac_status=$?
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; } &&
5464 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
f69335e6 5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; }; then
5470 ac_cv_type_size_t=yes
f40ec73c 5471else
f69335e6 5472 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
81ae7da0 5475ac_cv_type_size_t=no
f40ec73c 5476fi
81ae7da0 5477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 5478fi
81ae7da0
BM
5479echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5480echo "${ECHO_T}$ac_cv_type_size_t" >&6
f69335e6 5481if test $ac_cv_type_size_t = yes; then
f40ec73c 5482 :
5483else
f40ec73c 5484
f69335e6 5485cat >>confdefs.h <<_ACEOF
81ae7da0 5486#define size_t unsigned
f69335e6 5487_ACEOF
f40ec73c 5488
5489fi
5490
81ae7da0
BM
5491echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5492echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
f69335e6 5493if test "${ac_cv_header_time+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 5495else
f69335e6 5496 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
f40ec73c 5502#include <sys/types.h>
5503#include <sys/time.h>
5504#include <time.h>
f69335e6 5505
f69335e6 5506int
5507main ()
5508{
5509if ((struct tm *) 0)
5510return 0;
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
81ae7da0
BM
5516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>conftest.er1
f69335e6 5518 ac_status=$?
cbdd3138
BM
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
f69335e6 5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } &&
64b46a71 5524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
cbdd3138
BM
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
f69335e6 5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
f40ec73c 5536 ac_cv_header_time=yes
5537else
f69335e6 5538 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5539sed 's/^/| /' conftest.$ac_ext >&5
5540
81ae7da0 5541ac_cv_header_time=no
f40ec73c 5542fi
81ae7da0 5543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 5544fi
81ae7da0
BM
5545echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5546echo "${ECHO_T}$ac_cv_header_time" >&6
f40ec73c 5547if test $ac_cv_header_time = yes; then
f69335e6 5548
5549cat >>confdefs.h <<\_ACEOF
f40ec73c 5550#define TIME_WITH_SYS_TIME 1
f69335e6 5551_ACEOF
f40ec73c 5552
5553fi
5554
81ae7da0
BM
5555echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5556echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
f69335e6 5557if test "${ac_cv_struct_tm+set}" = set; then
5558 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 5559else
f69335e6 5560 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
f40ec73c 5566#include <sys/types.h>
5567#include <time.h>
f69335e6 5568
f69335e6 5569int
5570main ()
5571{
f40ec73c 5572struct tm *tp; tp->tm_sec;
f69335e6 5573 ;
5574 return 0;
5575}
5576_ACEOF
5577rm -f conftest.$ac_objext
81ae7da0
BM
5578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>conftest.er1
f69335e6 5580 ac_status=$?
cbdd3138
BM
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
f69335e6 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
64b46a71 5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 (eval $ac_try) 2>&5
cbdd3138
BM
5589 ac_status=$?
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); }; } &&
5592 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594 (eval $ac_try) 2>&5
f69335e6 5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); }; }; then
f40ec73c 5598 ac_cv_struct_tm=time.h
5599else
f69335e6 5600 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
81ae7da0 5603ac_cv_struct_tm=sys/time.h
f40ec73c 5604fi
81ae7da0 5605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 5606fi
81ae7da0
BM
5607echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5608echo "${ECHO_T}$ac_cv_struct_tm" >&6
f40ec73c 5609if test $ac_cv_struct_tm = sys/time.h; then
f69335e6 5610
5611cat >>confdefs.h <<\_ACEOF
f40ec73c 5612#define TM_IN_SYS_TIME 1
f69335e6 5613_ACEOF
f40ec73c 5614
5615fi
5616
81ae7da0
BM
5617echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5618echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
f69335e6 5619if test "${ac_cv_type_uid_t+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 5621else
f69335e6 5622 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5623/* confdefs.h. */
5624_ACEOF
5625cat confdefs.h >>conftest.$ac_ext
5626cat >>conftest.$ac_ext <<_ACEOF
5627/* end confdefs.h. */
f40ec73c 5628#include <sys/types.h>
f69335e6 5629
5630_ACEOF
f40ec73c 5631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 5632 $EGREP "uid_t" >/dev/null 2>&1; then
f40ec73c 5633 ac_cv_type_uid_t=yes
5634else
f40ec73c 5635 ac_cv_type_uid_t=no
5636fi
5637rm -f conftest*
5638
5639fi
81ae7da0
BM
5640echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5641echo "${ECHO_T}$ac_cv_type_uid_t" >&6
f40ec73c 5642if test $ac_cv_type_uid_t = no; then
f69335e6 5643
5644cat >>confdefs.h <<\_ACEOF
f40ec73c 5645#define uid_t int
f69335e6 5646_ACEOF
5647
f40ec73c 5648
f69335e6 5649cat >>confdefs.h <<\_ACEOF
f40ec73c 5650#define gid_t int
f69335e6 5651_ACEOF
5652
5653fi
5654
81ae7da0
BM
5655echo "$as_me:$LINENO: checking for short" >&5
5656echo $ECHO_N "checking for short... $ECHO_C" >&6
f69335e6 5657if test "${ac_cv_type_short+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5661/* confdefs.h. */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h. */
f69335e6 5666$ac_includes_default
f69335e6 5667int
5668main ()
5669{
81ae7da0 5670if ((short *) 0)
f69335e6 5671 return 0;
81ae7da0 5672if (sizeof (short))
f69335e6 5673 return 0;
5674 ;
5675 return 0;
5676}
5677_ACEOF
5678rm -f conftest.$ac_objext
81ae7da0
BM
5679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>conftest.er1
f69335e6 5681 ac_status=$?
cbdd3138
BM
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
f69335e6 5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
64b46a71 5687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
cbdd3138
BM
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; } &&
5693 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695 (eval $ac_try) 2>&5
f69335e6 5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_type_short=yes
5700else
5701 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5702sed 's/^/| /' conftest.$ac_ext >&5
5703
81ae7da0 5704ac_cv_type_short=no
f69335e6 5705fi
81ae7da0 5706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 5707fi
81ae7da0
BM
5708echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5709echo "${ECHO_T}$ac_cv_type_short" >&6
f69335e6 5710
81ae7da0
BM
5711echo "$as_me:$LINENO: checking size of short" >&5
5712echo $ECHO_N "checking size of short... $ECHO_C" >&6
f69335e6 5713if test "${ac_cv_sizeof_short+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 if test "$ac_cv_type_short" = yes; then
81ae7da0 5717 # The cast to unsigned long works around a bug in the HP C Compiler
f69335e6 5718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5720 # This bug is HP SR number 8606223364.
5721 if test "$cross_compiling" = yes; then
5722 # Depending upon the size, compute the lo and hi bounds.
5723cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
f69335e6 5729$ac_includes_default
f69335e6 5730int
5731main ()
5732{
81ae7da0 5733static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
f69335e6 5734test_array [0] = 0
5735
5736 ;
5737 return 0;
5738}
5739_ACEOF
5740rm -f conftest.$ac_objext
81ae7da0
BM
5741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742 (eval $ac_compile) 2>conftest.er1
f69335e6 5743 ac_status=$?
cbdd3138
BM
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
f69335e6 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
64b46a71 5749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
cbdd3138
BM
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; } &&
5755 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
f69335e6 5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_lo=0 ac_mid=0
5762 while :; do
5763 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5764/* confdefs.h. */
5765_ACEOF
5766cat confdefs.h >>conftest.$ac_ext
5767cat >>conftest.$ac_ext <<_ACEOF
5768/* end confdefs.h. */
f69335e6 5769$ac_includes_default
f69335e6 5770int
5771main ()
5772{
81ae7da0 5773static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
f69335e6 5774test_array [0] = 0
5775
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext
81ae7da0
BM
5781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5782 (eval $ac_compile) 2>conftest.er1
f69335e6 5783 ac_status=$?
cbdd3138
BM
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
f69335e6 5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
64b46a71 5789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
cbdd3138
BM
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; } &&
5795 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
f69335e6 5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 ac_hi=$ac_mid; break
5802else
5803 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
81ae7da0
BM
5806ac_lo=`expr $ac_mid + 1`
5807 if test $ac_lo -le $ac_mid; then
5808 ac_lo= ac_hi=
5809 break
5810 fi
5811 ac_mid=`expr 2 '*' $ac_mid + 1`
f69335e6 5812fi
81ae7da0 5813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 5814 done
5815else
5816 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5817sed 's/^/| /' conftest.$ac_ext >&5
5818
81ae7da0 5819cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
f69335e6 5825$ac_includes_default
f69335e6 5826int
5827main ()
5828{
81ae7da0 5829static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
f69335e6 5830test_array [0] = 0
5831
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836rm -f conftest.$ac_objext
81ae7da0
BM
5837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
f69335e6 5839 ac_status=$?
cbdd3138
BM
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
f69335e6 5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
64b46a71 5845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
cbdd3138
BM
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
f69335e6 5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_hi=-1 ac_mid=-1
5858 while :; do
5859 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */
f69335e6 5865$ac_includes_default
f69335e6 5866int
5867main ()
5868{
81ae7da0 5869static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
f69335e6 5870test_array [0] = 0
5871
5872 ;
5873 return 0;
5874}
5875_ACEOF
5876rm -f conftest.$ac_objext
81ae7da0
BM
5877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5878 (eval $ac_compile) 2>conftest.er1
f69335e6 5879 ac_status=$?
cbdd3138
BM
5880 grep -v '^ *+' conftest.er1 >conftest.err
5881 rm -f conftest.er1
5882 cat conftest.err >&5
f69335e6 5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
64b46a71 5885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 (eval $ac_try) 2>&5
cbdd3138
BM
5888 ac_status=$?
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 (eval $ac_try) 2>&5
f69335e6 5894 ac_status=$?
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_lo=$ac_mid; break
5898else
5899 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5900sed 's/^/| /' conftest.$ac_ext >&5
5901
81ae7da0
BM
5902ac_hi=`expr '(' $ac_mid ')' - 1`
5903 if test $ac_mid -le $ac_hi; then
5904 ac_lo= ac_hi=
5905 break
5906 fi
5907 ac_mid=`expr 2 '*' $ac_mid`
f69335e6 5908fi
81ae7da0 5909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 5910 done
5911else
5912 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5913sed 's/^/| /' conftest.$ac_ext >&5
5914
81ae7da0 5915ac_lo= ac_hi=
f69335e6 5916fi
81ae7da0 5917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 5918fi
81ae7da0 5919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 5920# Binary search between lo and hi bounds.
5921while test "x$ac_lo" != "x$ac_hi"; do
5922 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5923 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */
f69335e6 5929$ac_includes_default
f69335e6 5930int
5931main ()
5932{
81ae7da0 5933static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
f69335e6 5934test_array [0] = 0
5935
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940rm -f conftest.$ac_objext
81ae7da0
BM
5941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
f69335e6 5943 ac_status=$?
cbdd3138
BM
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
f69335e6 5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
64b46a71 5949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 (eval $ac_try) 2>&5
cbdd3138
BM
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; } &&
5955 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
5956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957 (eval $ac_try) 2>&5
f69335e6 5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; }; then
5961 ac_hi=$ac_mid
5962else
5963 echo "$as_me: failed program was:" >&5
cbdd3138
BM
5964sed 's/^/| /' conftest.$ac_ext >&5
5965
81ae7da0 5966ac_lo=`expr '(' $ac_mid ')' + 1`
f69335e6 5967fi
81ae7da0 5968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 5969done
5970case $ac_lo in
5971?*) ac_cv_sizeof_short=$ac_lo;;
81ae7da0 5972'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
cbdd3138 5973See \`config.log' for more details." >&5
81ae7da0 5974echo "$as_me: error: cannot compute sizeof (short), 77
cbdd3138 5975See \`config.log' for more details." >&2;}
81ae7da0 5976 { (exit 1); exit 1; }; } ;;
f69335e6 5977esac
81ae7da0
BM
5978else
5979 if test "$cross_compiling" = yes; then
64b46a71 5980 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5981echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
81ae7da0 5982 { (exit 1); exit 1; }; }
f69335e6 5983else
5984 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
5985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
f69335e6 5990$ac_includes_default
81ae7da0
BM
5991long longval () { return (long) (sizeof (short)); }
5992unsigned long ulongval () { return (long) (sizeof (short)); }
f69335e6 5993#include <stdio.h>
5994#include <stdlib.h>
f69335e6 5995int
5996main ()
5997{
f40ec73c 5998
f69335e6 5999 FILE *f = fopen ("conftest.val", "w");
6000 if (! f)
81ae7da0
BM
6001 exit (1);
6002 if (((long) (sizeof (short))) < 0)
f69335e6 6003 {
81ae7da0
BM
6004 long i = longval ();
6005 if (i != ((long) (sizeof (short))))
6006 exit (1);
f69335e6 6007 fprintf (f, "%ld\n", i);
6008 }
6009 else
6010 {
81ae7da0
BM
6011 unsigned long i = ulongval ();
6012 if (i != ((long) (sizeof (short))))
6013 exit (1);
f69335e6 6014 fprintf (f, "%lu\n", i);
6015 }
81ae7da0 6016 exit (ferror (f) || fclose (f) != 0);
f69335e6 6017
6018 ;
6019 return 0;
6020}
6021_ACEOF
6022rm -f conftest$ac_exeext
81ae7da0
BM
6023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6024 (eval $ac_link) 2>&5
f69335e6 6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
f69335e6 6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_sizeof_short=`cat conftest.val`
6034else
6035 echo "$as_me: program exited with status $ac_status" >&5
6036echo "$as_me: failed program was:" >&5
cbdd3138
BM
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
f69335e6 6039( exit $ac_status )
81ae7da0 6040{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
cbdd3138 6041See \`config.log' for more details." >&5
81ae7da0 6042echo "$as_me: error: cannot compute sizeof (short), 77
cbdd3138 6043See \`config.log' for more details." >&2;}
81ae7da0
BM
6044 { (exit 1); exit 1; }; }
6045fi
6046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f69335e6 6047fi
6048fi
6049rm -f conftest.val
6050else
6051 ac_cv_sizeof_short=0
6052fi
f40ec73c 6053fi
81ae7da0
BM
6054echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6055echo "${ECHO_T}$ac_cv_sizeof_short" >&6
f69335e6 6056cat >>confdefs.h <<_ACEOF
6057#define SIZEOF_SHORT $ac_cv_sizeof_short
6058_ACEOF
6059
f40ec73c 6060
81ae7da0
BM
6061echo "$as_me:$LINENO: checking for int" >&5
6062echo $ECHO_N "checking for int... $ECHO_C" >&6
f69335e6 6063if test "${ac_cv_type_int+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
f69335e6 6072$ac_includes_default
f69335e6 6073int
6074main ()
6075{
81ae7da0 6076if ((int *) 0)
f69335e6 6077 return 0;
81ae7da0 6078if (sizeof (int))
f69335e6 6079 return 0;
6080 ;
6081 return 0;
6082}
6083_ACEOF
6084rm -f conftest.$ac_objext
81ae7da0
BM
6085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>conftest.er1
f69335e6 6087 ac_status=$?
cbdd3138
BM
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
f69335e6 6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } &&
64b46a71 6093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 (eval $ac_try) 2>&5
cbdd3138
BM
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); }; } &&
6099 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6101 (eval $ac_try) 2>&5
f69335e6 6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_type_int=yes
6106else
6107 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6108sed 's/^/| /' conftest.$ac_ext >&5
6109
81ae7da0 6110ac_cv_type_int=no
f69335e6 6111fi
81ae7da0 6112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6113fi
81ae7da0
BM
6114echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6115echo "${ECHO_T}$ac_cv_type_int" >&6
f69335e6 6116
81ae7da0
BM
6117echo "$as_me:$LINENO: checking size of int" >&5
6118echo $ECHO_N "checking size of int... $ECHO_C" >&6
f69335e6 6119if test "${ac_cv_sizeof_int+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122 if test "$ac_cv_type_int" = yes; then
81ae7da0 6123 # The cast to unsigned long works around a bug in the HP C Compiler
f69335e6 6124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6126 # This bug is HP SR number 8606223364.
6127 if test "$cross_compiling" = yes; then
6128 # Depending upon the size, compute the lo and hi bounds.
6129cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6130/* confdefs.h. */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h. */
f69335e6 6135$ac_includes_default
f69335e6 6136int
6137main ()
6138{
81ae7da0 6139static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
f69335e6 6140test_array [0] = 0
6141
6142 ;
6143 return 0;
6144}
6145_ACEOF
6146rm -f conftest.$ac_objext
81ae7da0
BM
6147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>conftest.er1
f69335e6 6149 ac_status=$?
cbdd3138
BM
6150 grep -v '^ *+' conftest.er1 >conftest.err
6151 rm -f conftest.er1
6152 cat conftest.err >&5
f69335e6 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
64b46a71 6155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
cbdd3138
BM
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; } &&
6161 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163 (eval $ac_try) 2>&5
f69335e6 6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); }; }; then
6167 ac_lo=0 ac_mid=0
6168 while :; do
6169 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6170/* confdefs.h. */
6171_ACEOF
6172cat confdefs.h >>conftest.$ac_ext
6173cat >>conftest.$ac_ext <<_ACEOF
6174/* end confdefs.h. */
f69335e6 6175$ac_includes_default
f69335e6 6176int
6177main ()
6178{
81ae7da0 6179static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
f69335e6 6180test_array [0] = 0
6181
6182 ;
6183 return 0;
6184}
6185_ACEOF
6186rm -f conftest.$ac_objext
81ae7da0
BM
6187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>conftest.er1
f69335e6 6189 ac_status=$?
cbdd3138
BM
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
f69335e6 6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
64b46a71 6195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
cbdd3138
BM
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 (eval $ac_try) 2>&5
f69335e6 6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 ac_hi=$ac_mid; break
6208else
6209 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
81ae7da0
BM
6212ac_lo=`expr $ac_mid + 1`
6213 if test $ac_lo -le $ac_mid; then
6214 ac_lo= ac_hi=
6215 break
6216 fi
6217 ac_mid=`expr 2 '*' $ac_mid + 1`
f69335e6 6218fi
81ae7da0 6219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6220 done
6221else
6222 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
81ae7da0 6225cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
f69335e6 6231$ac_includes_default
f69335e6 6232int
6233main ()
6234{
81ae7da0 6235static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
f69335e6 6236test_array [0] = 0
6237
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
81ae7da0
BM
6243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>conftest.er1
f69335e6 6245 ac_status=$?
cbdd3138
BM
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
f69335e6 6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
64b46a71 6251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
cbdd3138
BM
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; } &&
6257 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
f69335e6 6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; }; then
6263 ac_hi=-1 ac_mid=-1
6264 while :; do
6265 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
f69335e6 6271$ac_includes_default
f69335e6 6272int
6273main ()
6274{
81ae7da0 6275static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
f69335e6 6276test_array [0] = 0
6277
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext
81ae7da0
BM
6283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284 (eval $ac_compile) 2>conftest.er1
f69335e6 6285 ac_status=$?
cbdd3138
BM
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
f69335e6 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
64b46a71 6291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
cbdd3138
BM
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
f69335e6 6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_lo=$ac_mid; break
6304else
6305 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
81ae7da0
BM
6308ac_hi=`expr '(' $ac_mid ')' - 1`
6309 if test $ac_mid -le $ac_hi; then
6310 ac_lo= ac_hi=
6311 break
6312 fi
6313 ac_mid=`expr 2 '*' $ac_mid`
f69335e6 6314fi
81ae7da0 6315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6316 done
6317else
6318 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
81ae7da0 6321ac_lo= ac_hi=
f69335e6 6322fi
81ae7da0 6323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6324fi
81ae7da0 6325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6326# Binary search between lo and hi bounds.
6327while test "x$ac_lo" != "x$ac_hi"; do
6328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6329 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
f69335e6 6335$ac_includes_default
f69335e6 6336int
6337main ()
6338{
81ae7da0 6339static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
f69335e6 6340test_array [0] = 0
6341
6342 ;
6343 return 0;
6344}
6345_ACEOF
6346rm -f conftest.$ac_objext
81ae7da0
BM
6347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>conftest.er1
f69335e6 6349 ac_status=$?
cbdd3138
BM
6350 grep -v '^ *+' conftest.er1 >conftest.err
6351 rm -f conftest.er1
6352 cat conftest.err >&5
f69335e6 6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
64b46a71 6355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
cbdd3138
BM
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
f69335e6 6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_hi=$ac_mid
6368else
6369 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6370sed 's/^/| /' conftest.$ac_ext >&5
6371
81ae7da0 6372ac_lo=`expr '(' $ac_mid ')' + 1`
f69335e6 6373fi
81ae7da0 6374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6375done
6376case $ac_lo in
6377?*) ac_cv_sizeof_int=$ac_lo;;
81ae7da0 6378'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
cbdd3138 6379See \`config.log' for more details." >&5
81ae7da0 6380echo "$as_me: error: cannot compute sizeof (int), 77
cbdd3138 6381See \`config.log' for more details." >&2;}
81ae7da0 6382 { (exit 1); exit 1; }; } ;;
f69335e6 6383esac
81ae7da0
BM
6384else
6385 if test "$cross_compiling" = yes; then
64b46a71 6386 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6387echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
81ae7da0 6388 { (exit 1); exit 1; }; }
29ad0e8f 6389else
f69335e6 6390 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
f69335e6 6396$ac_includes_default
81ae7da0
BM
6397long longval () { return (long) (sizeof (int)); }
6398unsigned long ulongval () { return (long) (sizeof (int)); }
29ad0e8f 6399#include <stdio.h>
f69335e6 6400#include <stdlib.h>
f69335e6 6401int
6402main ()
29ad0e8f 6403{
f69335e6 6404
6405 FILE *f = fopen ("conftest.val", "w");
6406 if (! f)
81ae7da0
BM
6407 exit (1);
6408 if (((long) (sizeof (int))) < 0)
f69335e6 6409 {
81ae7da0
BM
6410 long i = longval ();
6411 if (i != ((long) (sizeof (int))))
6412 exit (1);
f69335e6 6413 fprintf (f, "%ld\n", i);
6414 }
6415 else
6416 {
81ae7da0
BM
6417 unsigned long i = ulongval ();
6418 if (i != ((long) (sizeof (int))))
6419 exit (1);
f69335e6 6420 fprintf (f, "%lu\n", i);
6421 }
81ae7da0 6422 exit (ferror (f) || fclose (f) != 0);
f69335e6 6423
6424 ;
6425 return 0;
29ad0e8f 6426}
f69335e6 6427_ACEOF
6428rm -f conftest$ac_exeext
81ae7da0
BM
6429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
f69335e6 6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
f69335e6 6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_sizeof_int=`cat conftest.val`
6440else
6441 echo "$as_me: program exited with status $ac_status" >&5
6442echo "$as_me: failed program was:" >&5
cbdd3138
BM
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
f69335e6 6445( exit $ac_status )
81ae7da0 6446{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
cbdd3138 6447See \`config.log' for more details." >&5
81ae7da0 6448echo "$as_me: error: cannot compute sizeof (int), 77
cbdd3138 6449See \`config.log' for more details." >&2;}
81ae7da0
BM
6450 { (exit 1); exit 1; }; }
6451fi
6452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f69335e6 6453fi
6454fi
6455rm -f conftest.val
29ad0e8f 6456else
f69335e6 6457 ac_cv_sizeof_int=0
29ad0e8f 6458fi
29ad0e8f 6459fi
81ae7da0
BM
6460echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6461echo "${ECHO_T}$ac_cv_sizeof_int" >&6
f69335e6 6462cat >>confdefs.h <<_ACEOF
6463#define SIZEOF_INT $ac_cv_sizeof_int
6464_ACEOF
f40ec73c 6465
29ad0e8f 6466
81ae7da0
BM
6467echo "$as_me:$LINENO: checking for long" >&5
6468echo $ECHO_N "checking for long... $ECHO_C" >&6
f69335e6 6469if test "${ac_cv_type_long+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 6471else
f69335e6 6472 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
f69335e6 6478$ac_includes_default
f69335e6 6479int
6480main ()
6481{
81ae7da0 6482if ((long *) 0)
f69335e6 6483 return 0;
81ae7da0 6484if (sizeof (long))
f69335e6 6485 return 0;
6486 ;
6487 return 0;
6488}
6489_ACEOF
6490rm -f conftest.$ac_objext
81ae7da0
BM
6491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 (eval $ac_compile) 2>conftest.er1
f69335e6 6493 ac_status=$?
cbdd3138
BM
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
f69335e6 6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } &&
64b46a71 6499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
cbdd3138
BM
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
f69335e6 6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_type_long=yes
6512else
6513 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6514sed 's/^/| /' conftest.$ac_ext >&5
6515
81ae7da0 6516ac_cv_type_long=no
f69335e6 6517fi
81ae7da0 6518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6519fi
81ae7da0
BM
6520echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6521echo "${ECHO_T}$ac_cv_type_long" >&6
f69335e6 6522
81ae7da0
BM
6523echo "$as_me:$LINENO: checking size of long" >&5
6524echo $ECHO_N "checking size of long... $ECHO_C" >&6
f69335e6 6525if test "${ac_cv_sizeof_long+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528 if test "$ac_cv_type_long" = yes; then
81ae7da0 6529 # The cast to unsigned long works around a bug in the HP C Compiler
f69335e6 6530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6532 # This bug is HP SR number 8606223364.
29ad0e8f 6533 if test "$cross_compiling" = yes; then
f69335e6 6534 # Depending upon the size, compute the lo and hi bounds.
6535cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6536/* confdefs.h. */
6537_ACEOF
6538cat confdefs.h >>conftest.$ac_ext
6539cat >>conftest.$ac_ext <<_ACEOF
6540/* end confdefs.h. */
f69335e6 6541$ac_includes_default
f69335e6 6542int
6543main ()
6544{
81ae7da0 6545static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
f69335e6 6546test_array [0] = 0
6547
6548 ;
6549 return 0;
6550}
6551_ACEOF
6552rm -f conftest.$ac_objext
81ae7da0
BM
6553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
f69335e6 6555 ac_status=$?
cbdd3138
BM
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
f69335e6 6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
64b46a71 6561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
cbdd3138
BM
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 (eval $ac_try) 2>&5
f69335e6 6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 ac_lo=0 ac_mid=0
6574 while :; do
6575 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h. */
f69335e6 6581$ac_includes_default
f69335e6 6582int
6583main ()
6584{
81ae7da0 6585static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
f69335e6 6586test_array [0] = 0
6587
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext
81ae7da0
BM
6593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>conftest.er1
f69335e6 6595 ac_status=$?
cbdd3138
BM
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
f69335e6 6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
64b46a71 6601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
cbdd3138
BM
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
f69335e6 6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_hi=$ac_mid; break
6614else
6615 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
81ae7da0
BM
6618ac_lo=`expr $ac_mid + 1`
6619 if test $ac_lo -le $ac_mid; then
6620 ac_lo= ac_hi=
6621 break
6622 fi
6623 ac_mid=`expr 2 '*' $ac_mid + 1`
f69335e6 6624fi
81ae7da0 6625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6626 done
29ad0e8f 6627else
f69335e6 6628 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
81ae7da0 6631cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6632/* confdefs.h. */
6633_ACEOF
6634cat confdefs.h >>conftest.$ac_ext
6635cat >>conftest.$ac_ext <<_ACEOF
6636/* end confdefs.h. */
f69335e6 6637$ac_includes_default
f69335e6 6638int
6639main ()
6640{
81ae7da0 6641static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
f69335e6 6642test_array [0] = 0
6643
6644 ;
6645 return 0;
6646}
6647_ACEOF
6648rm -f conftest.$ac_objext
81ae7da0
BM
6649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
f69335e6 6651 ac_status=$?
cbdd3138
BM
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
f69335e6 6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
64b46a71 6657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
cbdd3138
BM
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; } &&
6663 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 (eval $ac_try) 2>&5
f69335e6 6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; }; then
6669 ac_hi=-1 ac_mid=-1
6670 while :; do
6671 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6672/* confdefs.h. */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h. */
f69335e6 6677$ac_includes_default
f69335e6 6678int
6679main ()
29ad0e8f 6680{
81ae7da0 6681static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
f69335e6 6682test_array [0] = 0
6683
6684 ;
6685 return 0;
f40ec73c 6686}
f69335e6 6687_ACEOF
6688rm -f conftest.$ac_objext
81ae7da0
BM
6689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>conftest.er1
f69335e6 6691 ac_status=$?
cbdd3138
BM
6692 grep -v '^ *+' conftest.er1 >conftest.err
6693 rm -f conftest.er1
6694 cat conftest.err >&5
f69335e6 6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } &&
64b46a71 6697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
cbdd3138
BM
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
f69335e6 6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 ac_lo=$ac_mid; break
6710else
6711 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
81ae7da0
BM
6714ac_hi=`expr '(' $ac_mid ')' - 1`
6715 if test $ac_mid -le $ac_hi; then
6716 ac_lo= ac_hi=
6717 break
6718 fi
6719 ac_mid=`expr 2 '*' $ac_mid`
f69335e6 6720fi
81ae7da0 6721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6722 done
29ad0e8f 6723else
f69335e6 6724 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
81ae7da0 6727ac_lo= ac_hi=
29ad0e8f 6728fi
81ae7da0 6729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 6730fi
81ae7da0 6731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6732# Binary search between lo and hi bounds.
6733while test "x$ac_lo" != "x$ac_hi"; do
6734 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6735 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6736/* confdefs.h. */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h. */
f69335e6 6741$ac_includes_default
f69335e6 6742int
6743main ()
6744{
81ae7da0 6745static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
f69335e6 6746test_array [0] = 0
29ad0e8f 6747
f69335e6 6748 ;
6749 return 0;
6750}
6751_ACEOF
6752rm -f conftest.$ac_objext
81ae7da0
BM
6753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754 (eval $ac_compile) 2>conftest.er1
f69335e6 6755 ac_status=$?
cbdd3138
BM
6756 grep -v '^ *+' conftest.er1 >conftest.err
6757 rm -f conftest.er1
6758 cat conftest.err >&5
f69335e6 6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
64b46a71 6761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763 (eval $ac_try) 2>&5
cbdd3138
BM
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
f69335e6 6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; }; then
6773 ac_hi=$ac_mid
6774else
6775 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6776sed 's/^/| /' conftest.$ac_ext >&5
6777
81ae7da0 6778ac_lo=`expr '(' $ac_mid ')' + 1`
f69335e6 6779fi
81ae7da0 6780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f69335e6 6781done
6782case $ac_lo in
6783?*) ac_cv_sizeof_long=$ac_lo;;
81ae7da0 6784'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
cbdd3138 6785See \`config.log' for more details." >&5
81ae7da0 6786echo "$as_me: error: cannot compute sizeof (long), 77
cbdd3138 6787See \`config.log' for more details." >&2;}
81ae7da0 6788 { (exit 1); exit 1; }; } ;;
f69335e6 6789esac
81ae7da0
BM
6790else
6791 if test "$cross_compiling" = yes; then
64b46a71 6792 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6793echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
81ae7da0 6794 { (exit 1); exit 1; }; }
29ad0e8f 6795else
f69335e6 6796 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6797/* confdefs.h. */
6798_ACEOF
6799cat confdefs.h >>conftest.$ac_ext
6800cat >>conftest.$ac_ext <<_ACEOF
6801/* end confdefs.h. */
f69335e6 6802$ac_includes_default
81ae7da0
BM
6803long longval () { return (long) (sizeof (long)); }
6804unsigned long ulongval () { return (long) (sizeof (long)); }
29ad0e8f 6805#include <stdio.h>
f69335e6 6806#include <stdlib.h>
f69335e6 6807int
6808main ()
29ad0e8f 6809{
f69335e6 6810
6811 FILE *f = fopen ("conftest.val", "w");
6812 if (! f)
81ae7da0
BM
6813 exit (1);
6814 if (((long) (sizeof (long))) < 0)
f69335e6 6815 {
81ae7da0
BM
6816 long i = longval ();
6817 if (i != ((long) (sizeof (long))))
6818 exit (1);
f69335e6 6819 fprintf (f, "%ld\n", i);
6820 }
6821 else
6822 {
81ae7da0
BM
6823 unsigned long i = ulongval ();
6824 if (i != ((long) (sizeof (long))))
6825 exit (1);
f69335e6 6826 fprintf (f, "%lu\n", i);
6827 }
81ae7da0 6828 exit (ferror (f) || fclose (f) != 0);
f69335e6 6829
6830 ;
6831 return 0;
29ad0e8f 6832}
f69335e6 6833_ACEOF
6834rm -f conftest$ac_exeext
81ae7da0
BM
6835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6836 (eval $ac_link) 2>&5
f69335e6 6837 ac_status=$?
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
6840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6841 (eval $ac_try) 2>&5
f69335e6 6842 ac_status=$?
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); }; }; then
6845 ac_cv_sizeof_long=`cat conftest.val`
6846else
6847 echo "$as_me: program exited with status $ac_status" >&5
6848echo "$as_me: failed program was:" >&5
cbdd3138
BM
6849sed 's/^/| /' conftest.$ac_ext >&5
6850
f69335e6 6851( exit $ac_status )
81ae7da0 6852{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
cbdd3138 6853See \`config.log' for more details." >&5
81ae7da0 6854echo "$as_me: error: cannot compute sizeof (long), 77
cbdd3138 6855See \`config.log' for more details." >&2;}
81ae7da0
BM
6856 { (exit 1); exit 1; }; }
6857fi
6858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f69335e6 6859fi
6860fi
6861rm -f conftest.val
f40ec73c 6862else
29ad0e8f 6863 ac_cv_sizeof_long=0
6864fi
29ad0e8f 6865fi
81ae7da0
BM
6866echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6867echo "${ECHO_T}$ac_cv_sizeof_long" >&6
f69335e6 6868cat >>confdefs.h <<_ACEOF
29ad0e8f 6869#define SIZEOF_LONG $ac_cv_sizeof_long
f69335e6 6870_ACEOF
29ad0e8f 6871
6872
6873if test "$ac_cv_sizeof_int" = 2 ; then
81ae7da0
BM
6874 echo "$as_me:$LINENO: checking for int16_t" >&5
6875echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
f69335e6 6876if test "${ac_cv_type_int16_t+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 6878else
f69335e6 6879 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
f69335e6 6885$ac_includes_default
f69335e6 6886int
6887main ()
6888{
81ae7da0 6889if ((int16_t *) 0)
f69335e6 6890 return 0;
81ae7da0 6891if (sizeof (int16_t))
f69335e6 6892 return 0;
6893 ;
6894 return 0;
6895}
6896_ACEOF
6897rm -f conftest.$ac_objext
81ae7da0
BM
6898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899 (eval $ac_compile) 2>conftest.er1
f69335e6 6900 ac_status=$?
cbdd3138
BM
6901 grep -v '^ *+' conftest.er1 >conftest.err
6902 rm -f conftest.er1
6903 cat conftest.err >&5
f69335e6 6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
64b46a71 6906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
cbdd3138
BM
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; } &&
6912 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 (eval $ac_try) 2>&5
f69335e6 6915 ac_status=$?
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
29ad0e8f 6918 ac_cv_type_int16_t=yes
6919else
f69335e6 6920 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6921sed 's/^/| /' conftest.$ac_ext >&5
6922
81ae7da0 6923ac_cv_type_int16_t=no
29ad0e8f 6924fi
81ae7da0 6925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 6926fi
81ae7da0
BM
6927echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
6928echo "${ECHO_T}$ac_cv_type_int16_t" >&6
f69335e6 6929if test $ac_cv_type_int16_t = yes; then
6930 :
6931else
6932
6933cat >>confdefs.h <<_ACEOF
29ad0e8f 6934#define int16_t int
f69335e6 6935_ACEOF
29ad0e8f 6936
6937fi
6938
81ae7da0
BM
6939 echo "$as_me:$LINENO: checking for u_int16_t" >&5
6940echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
f69335e6 6941if test "${ac_cv_type_u_int16_t+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 6943else
f69335e6 6944 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
f69335e6 6950$ac_includes_default
f69335e6 6951int
6952main ()
6953{
81ae7da0 6954if ((u_int16_t *) 0)
f69335e6 6955 return 0;
81ae7da0 6956if (sizeof (u_int16_t))
f69335e6 6957 return 0;
6958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext
81ae7da0
BM
6963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6964 (eval $ac_compile) 2>conftest.er1
f69335e6 6965 ac_status=$?
cbdd3138
BM
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
f69335e6 6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } &&
64b46a71 6971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
cbdd3138
BM
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
f69335e6 6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
29ad0e8f 6983 ac_cv_type_u_int16_t=yes
6984else
f69335e6 6985 echo "$as_me: failed program was:" >&5
cbdd3138
BM
6986sed 's/^/| /' conftest.$ac_ext >&5
6987
81ae7da0 6988ac_cv_type_u_int16_t=no
29ad0e8f 6989fi
81ae7da0 6990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 6991fi
81ae7da0
BM
6992echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
6993echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
f69335e6 6994if test $ac_cv_type_u_int16_t = yes; then
6995 :
6996else
6997
6998cat >>confdefs.h <<_ACEOF
29ad0e8f 6999#define u_int16_t unsigned int
f69335e6 7000_ACEOF
29ad0e8f 7001
7002fi
7003
7004elif test "$ac_cv_sizeof_short" = 2 ; then
81ae7da0
BM
7005 echo "$as_me:$LINENO: checking for int16_t" >&5
7006echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
f69335e6 7007if test "${ac_cv_type_int16_t+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7009else
f69335e6 7010 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7011/* confdefs.h. */
7012_ACEOF
7013cat confdefs.h >>conftest.$ac_ext
7014cat >>conftest.$ac_ext <<_ACEOF
7015/* end confdefs.h. */
f69335e6 7016$ac_includes_default
f69335e6 7017int
7018main ()
7019{
81ae7da0 7020if ((int16_t *) 0)
f69335e6 7021 return 0;
81ae7da0 7022if (sizeof (int16_t))
f69335e6 7023 return 0;
7024 ;
7025 return 0;
7026}
7027_ACEOF
7028rm -f conftest.$ac_objext
81ae7da0
BM
7029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>conftest.er1
f69335e6 7031 ac_status=$?
cbdd3138
BM
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
f69335e6 7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
64b46a71 7037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 (eval $ac_try) 2>&5
cbdd3138
BM
7040 ac_status=$?
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); }; } &&
7043 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
f69335e6 7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; }; then
29ad0e8f 7049 ac_cv_type_int16_t=yes
7050else
f69335e6 7051 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7052sed 's/^/| /' conftest.$ac_ext >&5
7053
81ae7da0 7054ac_cv_type_int16_t=no
29ad0e8f 7055fi
81ae7da0 7056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7057fi
81ae7da0
BM
7058echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7059echo "${ECHO_T}$ac_cv_type_int16_t" >&6
f69335e6 7060if test $ac_cv_type_int16_t = yes; then
7061 :
7062else
7063
7064cat >>confdefs.h <<_ACEOF
29ad0e8f 7065#define int16_t short
f69335e6 7066_ACEOF
29ad0e8f 7067
7068fi
7069
81ae7da0
BM
7070 echo "$as_me:$LINENO: checking for u_int16_t" >&5
7071echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
f69335e6 7072if test "${ac_cv_type_u_int16_t+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7074else
f69335e6 7075 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7076/* confdefs.h. */
7077_ACEOF
7078cat confdefs.h >>conftest.$ac_ext
7079cat >>conftest.$ac_ext <<_ACEOF
7080/* end confdefs.h. */
f69335e6 7081$ac_includes_default
f69335e6 7082int
7083main ()
7084{
81ae7da0 7085if ((u_int16_t *) 0)
f69335e6 7086 return 0;
81ae7da0 7087if (sizeof (u_int16_t))
f69335e6 7088 return 0;
7089 ;
7090 return 0;
7091}
7092_ACEOF
7093rm -f conftest.$ac_objext
81ae7da0
BM
7094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>conftest.er1
f69335e6 7096 ac_status=$?
cbdd3138
BM
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
f69335e6 7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } &&
64b46a71 7102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104 (eval $ac_try) 2>&5
cbdd3138
BM
7105 ac_status=$?
7106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); }; } &&
7108 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
f69335e6 7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
29ad0e8f 7114 ac_cv_type_u_int16_t=yes
7115else
f69335e6 7116 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
81ae7da0 7119ac_cv_type_u_int16_t=no
f40ec73c 7120fi
81ae7da0 7121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 7122fi
81ae7da0
BM
7123echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
7124echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
f69335e6 7125if test $ac_cv_type_u_int16_t = yes; then
7126 :
7127else
7128
7129cat >>confdefs.h <<_ACEOF
29ad0e8f 7130#define u_int16_t unsigned short
f69335e6 7131_ACEOF
29ad0e8f 7132
7133fi
7134
7135else
f69335e6 7136 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
7137echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
7138 { (exit 1); exit 1; }; }
29ad0e8f 7139fi
7140if test "$ac_cv_sizeof_int" = 4 ; then
81ae7da0
BM
7141 echo "$as_me:$LINENO: checking for int32_t" >&5
7142echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
f69335e6 7143if test "${ac_cv_type_int32_t+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7145else
f69335e6 7146 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7147/* confdefs.h. */
7148_ACEOF
7149cat confdefs.h >>conftest.$ac_ext
7150cat >>conftest.$ac_ext <<_ACEOF
7151/* end confdefs.h. */
f69335e6 7152$ac_includes_default
f69335e6 7153int
7154main ()
7155{
81ae7da0 7156if ((int32_t *) 0)
f69335e6 7157 return 0;
81ae7da0 7158if (sizeof (int32_t))
f69335e6 7159 return 0;
7160 ;
7161 return 0;
7162}
7163_ACEOF
7164rm -f conftest.$ac_objext
81ae7da0
BM
7165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166 (eval $ac_compile) 2>conftest.er1
f69335e6 7167 ac_status=$?
cbdd3138
BM
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
f69335e6 7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
64b46a71 7173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
cbdd3138
BM
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
f69335e6 7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
29ad0e8f 7185 ac_cv_type_int32_t=yes
7186else
f69335e6 7187 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7188sed 's/^/| /' conftest.$ac_ext >&5
7189
81ae7da0 7190ac_cv_type_int32_t=no
29ad0e8f 7191fi
81ae7da0 7192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7193fi
81ae7da0
BM
7194echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7195echo "${ECHO_T}$ac_cv_type_int32_t" >&6
f69335e6 7196if test $ac_cv_type_int32_t = yes; then
7197 :
7198else
7199
7200cat >>confdefs.h <<_ACEOF
29ad0e8f 7201#define int32_t int
f69335e6 7202_ACEOF
29ad0e8f 7203
7204fi
7205
81ae7da0
BM
7206 echo "$as_me:$LINENO: checking for u_int32_t" >&5
7207echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
f69335e6 7208if test "${ac_cv_type_u_int32_t+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7210else
f69335e6 7211 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
f69335e6 7217$ac_includes_default
f69335e6 7218int
7219main ()
7220{
81ae7da0 7221if ((u_int32_t *) 0)
f69335e6 7222 return 0;
81ae7da0 7223if (sizeof (u_int32_t))
f69335e6 7224 return 0;
7225 ;
7226 return 0;
7227}
7228_ACEOF
7229rm -f conftest.$ac_objext
81ae7da0
BM
7230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>conftest.er1
f69335e6 7232 ac_status=$?
cbdd3138
BM
7233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
f69335e6 7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
64b46a71 7238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
cbdd3138
BM
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
f69335e6 7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
29ad0e8f 7250 ac_cv_type_u_int32_t=yes
7251else
f69335e6 7252 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
81ae7da0 7255ac_cv_type_u_int32_t=no
29ad0e8f 7256fi
81ae7da0 7257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7258fi
81ae7da0
BM
7259echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7260echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
f69335e6 7261if test $ac_cv_type_u_int32_t = yes; then
7262 :
7263else
7264
7265cat >>confdefs.h <<_ACEOF
29ad0e8f 7266#define u_int32_t unsigned int
f69335e6 7267_ACEOF
29ad0e8f 7268
7269fi
7270
7271elif test "$ac_cv_sizeof_short" = 4 ; then
81ae7da0
BM
7272 echo "$as_me:$LINENO: checking for int32_t" >&5
7273echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
f69335e6 7274if test "${ac_cv_type_int32_t+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7276else
f69335e6 7277 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7278/* confdefs.h. */
7279_ACEOF
7280cat confdefs.h >>conftest.$ac_ext
7281cat >>conftest.$ac_ext <<_ACEOF
7282/* end confdefs.h. */
f69335e6 7283$ac_includes_default
f69335e6 7284int
7285main ()
7286{
81ae7da0 7287if ((int32_t *) 0)
f69335e6 7288 return 0;
81ae7da0 7289if (sizeof (int32_t))
f69335e6 7290 return 0;
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295rm -f conftest.$ac_objext
81ae7da0
BM
7296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
f69335e6 7298 ac_status=$?
cbdd3138
BM
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
f69335e6 7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
64b46a71 7304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
cbdd3138
BM
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; } &&
7310 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
f69335e6 7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
29ad0e8f 7316 ac_cv_type_int32_t=yes
7317else
f69335e6 7318 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7319sed 's/^/| /' conftest.$ac_ext >&5
7320
81ae7da0 7321ac_cv_type_int32_t=no
29ad0e8f 7322fi
81ae7da0 7323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7324fi
81ae7da0
BM
7325echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7326echo "${ECHO_T}$ac_cv_type_int32_t" >&6
f69335e6 7327if test $ac_cv_type_int32_t = yes; then
7328 :
7329else
7330
7331cat >>confdefs.h <<_ACEOF
29ad0e8f 7332#define int32_t short
f69335e6 7333_ACEOF
f40ec73c 7334
f40ec73c 7335fi
29ad0e8f 7336
81ae7da0
BM
7337 echo "$as_me:$LINENO: checking for u_int32_t" >&5
7338echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
f69335e6 7339if test "${ac_cv_type_u_int32_t+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7341else
f69335e6 7342 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7343/* confdefs.h. */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h. */
f69335e6 7348$ac_includes_default
f69335e6 7349int
7350main ()
7351{
81ae7da0 7352if ((u_int32_t *) 0)
f69335e6 7353 return 0;
81ae7da0 7354if (sizeof (u_int32_t))
f69335e6 7355 return 0;
7356 ;
7357 return 0;
7358}
7359_ACEOF
7360rm -f conftest.$ac_objext
81ae7da0
BM
7361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7362 (eval $ac_compile) 2>conftest.er1
f69335e6 7363 ac_status=$?
cbdd3138
BM
7364 grep -v '^ *+' conftest.er1 >conftest.err
7365 rm -f conftest.er1
7366 cat conftest.err >&5
f69335e6 7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } &&
64b46a71 7369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371 (eval $ac_try) 2>&5
cbdd3138
BM
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; } &&
7375 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377 (eval $ac_try) 2>&5
f69335e6 7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; }; then
29ad0e8f 7381 ac_cv_type_u_int32_t=yes
7382else
f69335e6 7383 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7384sed 's/^/| /' conftest.$ac_ext >&5
7385
81ae7da0 7386ac_cv_type_u_int32_t=no
29ad0e8f 7387fi
81ae7da0 7388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7389fi
81ae7da0
BM
7390echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7391echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
f69335e6 7392if test $ac_cv_type_u_int32_t = yes; then
7393 :
7394else
7395
7396cat >>confdefs.h <<_ACEOF
29ad0e8f 7397#define u_int32_t unsigned short
f69335e6 7398_ACEOF
29ad0e8f 7399
7400fi
7401
7402elif test "$ac_cv_sizeof_long" = 4 ; then
81ae7da0
BM
7403 echo "$as_me:$LINENO: checking for int32_t" >&5
7404echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
f69335e6 7405if test "${ac_cv_type_int32_t+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7407else
f69335e6 7408 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7409/* confdefs.h. */
7410_ACEOF
7411cat confdefs.h >>conftest.$ac_ext
7412cat >>conftest.$ac_ext <<_ACEOF
7413/* end confdefs.h. */
f69335e6 7414$ac_includes_default
f69335e6 7415int
7416main ()
7417{
81ae7da0 7418if ((int32_t *) 0)
f69335e6 7419 return 0;
81ae7da0 7420if (sizeof (int32_t))
f69335e6 7421 return 0;
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426rm -f conftest.$ac_objext
81ae7da0
BM
7427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428 (eval $ac_compile) 2>conftest.er1
f69335e6 7429 ac_status=$?
cbdd3138
BM
7430 grep -v '^ *+' conftest.er1 >conftest.err
7431 rm -f conftest.er1
7432 cat conftest.err >&5
f69335e6 7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
64b46a71 7435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
cbdd3138
BM
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; } &&
7441 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 (eval $ac_try) 2>&5
f69335e6 7444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
29ad0e8f 7447 ac_cv_type_int32_t=yes
7448else
f69335e6 7449 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
81ae7da0 7452ac_cv_type_int32_t=no
29ad0e8f 7453fi
81ae7da0 7454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7455fi
81ae7da0
BM
7456echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7457echo "${ECHO_T}$ac_cv_type_int32_t" >&6
f69335e6 7458if test $ac_cv_type_int32_t = yes; then
7459 :
7460else
7461
7462cat >>confdefs.h <<_ACEOF
29ad0e8f 7463#define int32_t long
f69335e6 7464_ACEOF
29ad0e8f 7465
7466fi
7467
81ae7da0
BM
7468 echo "$as_me:$LINENO: checking for u_int32_t" >&5
7469echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
f69335e6 7470if test "${ac_cv_type_u_int32_t+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
29ad0e8f 7472else
f69335e6 7473 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7474/* confdefs.h. */
7475_ACEOF
7476cat confdefs.h >>conftest.$ac_ext
7477cat >>conftest.$ac_ext <<_ACEOF
7478/* end confdefs.h. */
f69335e6 7479$ac_includes_default
f69335e6 7480int
7481main ()
7482{
81ae7da0 7483if ((u_int32_t *) 0)
f69335e6 7484 return 0;
81ae7da0 7485if (sizeof (u_int32_t))
f69335e6 7486 return 0;
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext
81ae7da0
BM
7492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493 (eval $ac_compile) 2>conftest.er1
f69335e6 7494 ac_status=$?
cbdd3138
BM
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
f69335e6 7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
64b46a71 7500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 (eval $ac_try) 2>&5
cbdd3138
BM
7503 ac_status=$?
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; } &&
7506 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 (eval $ac_try) 2>&5
f69335e6 7509 ac_status=$?
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
29ad0e8f 7512 ac_cv_type_u_int32_t=yes
7513else
f69335e6 7514 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7515sed 's/^/| /' conftest.$ac_ext >&5
7516
81ae7da0 7517ac_cv_type_u_int32_t=no
29ad0e8f 7518fi
81ae7da0 7519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29ad0e8f 7520fi
81ae7da0
BM
7521echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7522echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
f69335e6 7523if test $ac_cv_type_u_int32_t = yes; then
7524 :
7525else
7526
7527cat >>confdefs.h <<_ACEOF
29ad0e8f 7528#define u_int32_t unsigned long
f69335e6 7529_ACEOF
29ad0e8f 7530
7531fi
7532
7533else
f69335e6 7534 { { echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
7535echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
7536 { (exit 1); exit 1; }; }
29ad0e8f 7537fi
81ae7da0
BM
7538echo "$as_me:$LINENO: checking for rlim_t" >&5
7539echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
efb54b62 7540if test "${ac_cv_type_rlim_t+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7542else
7543 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7544/* confdefs.h. */
7545_ACEOF
7546cat confdefs.h >>conftest.$ac_ext
7547cat >>conftest.$ac_ext <<_ACEOF
7548/* end confdefs.h. */
efb54b62 7549$ac_includes_default
efb54b62 7550int
7551main ()
7552{
81ae7da0 7553if ((rlim_t *) 0)
efb54b62 7554 return 0;
81ae7da0 7555if (sizeof (rlim_t))
efb54b62 7556 return 0;
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561rm -f conftest.$ac_objext
81ae7da0
BM
7562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>conftest.er1
efb54b62 7564 ac_status=$?
cbdd3138
BM
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
efb54b62 7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
64b46a71 7570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 (eval $ac_try) 2>&5
cbdd3138
BM
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
efb54b62 7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_type_rlim_t=yes
7583else
7584 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7585sed 's/^/| /' conftest.$ac_ext >&5
7586
81ae7da0 7587ac_cv_type_rlim_t=no
efb54b62 7588fi
81ae7da0 7589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efb54b62 7590fi
81ae7da0
BM
7591echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
7592echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
efb54b62 7593
81ae7da0
BM
7594echo "$as_me:$LINENO: checking size of rlim_t" >&5
7595echo $ECHO_N "checking size of rlim_t... $ECHO_C" >&6
efb54b62 7596if test "${ac_cv_sizeof_rlim_t+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599 if test "$ac_cv_type_rlim_t" = yes; then
81ae7da0 7600 # The cast to unsigned long works around a bug in the HP C Compiler
efb54b62 7601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7603 # This bug is HP SR number 8606223364.
7604 if test "$cross_compiling" = yes; then
7605 # Depending upon the size, compute the lo and hi bounds.
7606cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7607/* confdefs.h. */
7608_ACEOF
7609cat confdefs.h >>conftest.$ac_ext
7610cat >>conftest.$ac_ext <<_ACEOF
7611/* end confdefs.h. */
efb54b62 7612$ac_includes_default
efb54b62 7613int
7614main ()
7615{
81ae7da0 7616static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= 0)];
efb54b62 7617test_array [0] = 0
7618
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623rm -f conftest.$ac_objext
81ae7da0
BM
7624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>conftest.er1
efb54b62 7626 ac_status=$?
cbdd3138
BM
7627 grep -v '^ *+' conftest.er1 >conftest.err
7628 rm -f conftest.er1
7629 cat conftest.err >&5
efb54b62 7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
64b46a71 7632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
cbdd3138
BM
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; } &&
7638 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
efb54b62 7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_lo=0 ac_mid=0
7645 while :; do
7646 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7647/* confdefs.h. */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h. */
efb54b62 7652$ac_includes_default
efb54b62 7653int
7654main ()
7655{
81ae7da0 7656static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)];
efb54b62 7657test_array [0] = 0
7658
7659 ;
7660 return 0;
7661}
7662_ACEOF
7663rm -f conftest.$ac_objext
81ae7da0
BM
7664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665 (eval $ac_compile) 2>conftest.er1
efb54b62 7666 ac_status=$?
cbdd3138
BM
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
efb54b62 7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
64b46a71 7672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
efb54b62 7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cbdd3138
BM
7677 (exit $ac_status); }; } &&
7678 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 (eval $ac_try) 2>&5
cbdd3138
BM
7681 ac_status=$?
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); }; }; then
efb54b62 7684 ac_hi=$ac_mid; break
7685else
7686 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
81ae7da0
BM
7689ac_lo=`expr $ac_mid + 1`
7690 if test $ac_lo -le $ac_mid; then
7691 ac_lo= ac_hi=
7692 break
7693 fi
7694 ac_mid=`expr 2 '*' $ac_mid + 1`
efb54b62 7695fi
81ae7da0 7696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efb54b62 7697 done
7698else
7699 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
81ae7da0 7702cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7703/* confdefs.h. */
7704_ACEOF
7705cat confdefs.h >>conftest.$ac_ext
7706cat >>conftest.$ac_ext <<_ACEOF
7707/* end confdefs.h. */
efb54b62 7708$ac_includes_default
efb54b62 7709int
7710main ()
7711{
81ae7da0 7712static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) < 0)];
efb54b62 7713test_array [0] = 0
7714
7715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext
81ae7da0
BM
7720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721 (eval $ac_compile) 2>conftest.er1
efb54b62 7722 ac_status=$?
cbdd3138
BM
7723 grep -v '^ *+' conftest.er1 >conftest.err
7724 rm -f conftest.er1
7725 cat conftest.err >&5
efb54b62 7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
64b46a71 7728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7730 (eval $ac_try) 2>&5
cbdd3138
BM
7731 ac_status=$?
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; } &&
7734 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7736 (eval $ac_try) 2>&5
efb54b62 7737 ac_status=$?
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_hi=-1 ac_mid=-1
7741 while :; do
7742 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7743/* confdefs.h. */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h. */
efb54b62 7748$ac_includes_default
efb54b62 7749int
7750main ()
7751{
81ae7da0 7752static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) >= $ac_mid)];
efb54b62 7753test_array [0] = 0
7754
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759rm -f conftest.$ac_objext
81ae7da0
BM
7760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>conftest.er1
efb54b62 7762 ac_status=$?
cbdd3138
BM
7763 grep -v '^ *+' conftest.er1 >conftest.err
7764 rm -f conftest.er1
7765 cat conftest.err >&5
efb54b62 7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } &&
64b46a71 7768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
cbdd3138
BM
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; } &&
7774 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7776 (eval $ac_try) 2>&5
efb54b62 7777 ac_status=$?
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; }; then
7780 ac_lo=$ac_mid; break
7781else
7782 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7783sed 's/^/| /' conftest.$ac_ext >&5
7784
81ae7da0
BM
7785ac_hi=`expr '(' $ac_mid ')' - 1`
7786 if test $ac_mid -le $ac_hi; then
7787 ac_lo= ac_hi=
7788 break
7789 fi
7790 ac_mid=`expr 2 '*' $ac_mid`
efb54b62 7791fi
81ae7da0 7792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efb54b62 7793 done
7794else
7795 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7796sed 's/^/| /' conftest.$ac_ext >&5
7797
81ae7da0 7798ac_lo= ac_hi=
efb54b62 7799fi
81ae7da0 7800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efb54b62 7801fi
81ae7da0 7802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efb54b62 7803# Binary search between lo and hi bounds.
7804while test "x$ac_lo" != "x$ac_hi"; do
7805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7806 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
efb54b62 7812$ac_includes_default
efb54b62 7813int
7814main ()
7815{
81ae7da0 7816static int test_array [1 - 2 * !(((long) (sizeof (rlim_t))) <= $ac_mid)];
efb54b62 7817test_array [0] = 0
7818
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823rm -f conftest.$ac_objext
81ae7da0
BM
7824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825 (eval $ac_compile) 2>conftest.er1
efb54b62 7826 ac_status=$?
cbdd3138
BM
7827 grep -v '^ *+' conftest.er1 >conftest.err
7828 rm -f conftest.er1
7829 cat conftest.err >&5
efb54b62 7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } &&
64b46a71 7832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
cbdd3138
BM
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; } &&
7838 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
efb54b62 7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_hi=$ac_mid
7845else
7846 echo "$as_me: failed program was:" >&5
cbdd3138
BM
7847sed 's/^/| /' conftest.$ac_ext >&5
7848
81ae7da0 7849ac_lo=`expr '(' $ac_mid ')' + 1`
efb54b62 7850fi
81ae7da0 7851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
efb54b62 7852done
7853case $ac_lo in
7854?*) ac_cv_sizeof_rlim_t=$ac_lo;;
81ae7da0 7855'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77
cbdd3138 7856See \`config.log' for more details." >&5
81ae7da0 7857echo "$as_me: error: cannot compute sizeof (rlim_t), 77
cbdd3138 7858See \`config.log' for more details." >&2;}
81ae7da0 7859 { (exit 1); exit 1; }; } ;;
efb54b62 7860esac
81ae7da0
BM
7861else
7862 if test "$cross_compiling" = yes; then
64b46a71 7863 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7864echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
81ae7da0 7865 { (exit 1); exit 1; }; }
efb54b62 7866else
7867 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7868/* confdefs.h. */
7869_ACEOF
7870cat confdefs.h >>conftest.$ac_ext
7871cat >>conftest.$ac_ext <<_ACEOF
7872/* end confdefs.h. */
efb54b62 7873$ac_includes_default
81ae7da0
BM
7874long longval () { return (long) (sizeof (rlim_t)); }
7875unsigned long ulongval () { return (long) (sizeof (rlim_t)); }
efb54b62 7876#include <stdio.h>
7877#include <stdlib.h>
efb54b62 7878int
7879main ()
7880{
7881
7882 FILE *f = fopen ("conftest.val", "w");
7883 if (! f)
81ae7da0
BM
7884 exit (1);
7885 if (((long) (sizeof (rlim_t))) < 0)
efb54b62 7886 {
81ae7da0
BM
7887 long i = longval ();
7888 if (i != ((long) (sizeof (rlim_t))))
7889 exit (1);
efb54b62 7890 fprintf (f, "%ld\n", i);
7891 }
7892 else
7893 {
81ae7da0
BM
7894 unsigned long i = ulongval ();
7895 if (i != ((long) (sizeof (rlim_t))))
7896 exit (1);
efb54b62 7897 fprintf (f, "%lu\n", i);
7898 }
81ae7da0 7899 exit (ferror (f) || fclose (f) != 0);
efb54b62 7900
7901 ;
7902 return 0;
7903}
7904_ACEOF
7905rm -f conftest$ac_exeext
81ae7da0
BM
7906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>&5
efb54b62 7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
7911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 (eval $ac_try) 2>&5
efb54b62 7913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; }; then
7916 ac_cv_sizeof_rlim_t=`cat conftest.val`
7917else
7918 echo "$as_me: program exited with status $ac_status" >&5
7919echo "$as_me: failed program was:" >&5
cbdd3138
BM
7920sed 's/^/| /' conftest.$ac_ext >&5
7921
efb54b62 7922( exit $ac_status )
81ae7da0 7923{ { echo "$as_me:$LINENO: error: cannot compute sizeof (rlim_t), 77
cbdd3138 7924See \`config.log' for more details." >&5
81ae7da0 7925echo "$as_me: error: cannot compute sizeof (rlim_t), 77
cbdd3138 7926See \`config.log' for more details." >&2;}
81ae7da0
BM
7927 { (exit 1); exit 1; }; }
7928fi
7929rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
efb54b62 7930fi
7931fi
7932rm -f conftest.val
7933else
7934 ac_cv_sizeof_rlim_t=0
7935fi
7936fi
81ae7da0
BM
7937echo "$as_me:$LINENO: result: $ac_cv_sizeof_rlim_t" >&5
7938echo "${ECHO_T}$ac_cv_sizeof_rlim_t" >&6
efb54b62 7939cat >>confdefs.h <<_ACEOF
7940#define SIZEOF_RLIM_T $ac_cv_sizeof_rlim_t
7941_ACEOF
7942
7943
7944if test "$ac_cv_sizeof_rlim_t" = 8 ; then
7945cat >>confdefs.h <<\_ACEOF
7946#define LONG_LONG_RLIM_T 1
7947_ACEOF
7948
7949fi
7950
29ad0e8f 7951
81ae7da0
BM
7952echo "$as_me:$LINENO: checking what kind of nonblocking sockets you have" >&5
7953echo $ECHO_N "checking what kind of nonblocking sockets you have... $ECHO_C" >&6
f69335e6 7954if test "${ac_cv_nonblocking+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 7956else
f69335e6 7957
825ee732 7958save_libs="$LIBS"
7959LIBS="$LIBS $SOCKLIB"
f40ec73c 7960if test "$cross_compiling" = yes; then
cbdd3138
BM
7961 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7962See \`config.log' for more details." >&5
7963echo "$as_me: error: cannot run test program while cross compiling
7964See \`config.log' for more details." >&2;}
f69335e6 7965 { (exit 1); exit 1; }; }
f40ec73c 7966else
f69335e6 7967 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
7968/* confdefs.h. */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h. */
f40ec73c 7973
7974#include <sys/types.h>
7975#include <sys/socket.h>
7976#include <fcntl.h>
7977#include <sys/ioctl.h>
7978#include <sys/file.h>
7979#include <signal.h>
7980alarmed() {
7981exit(1);
7982}
7983int main() {
7984#ifdef O_NONBLOCK
7985char b[12], x[32];
7986int f, l = sizeof(x);
7987f = socket(AF_INET, SOCK_DGRAM, 0);
7988if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK))) {
7989signal(SIGALRM, alarmed);
7990alarm(3);
7991recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
7992alarm(0);
7993exit(0);
7994}
7995#endif
7996exit(1);
7997}
7998
f69335e6 7999_ACEOF
8000rm -f conftest$ac_exeext
81ae7da0
BM
8001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8002 (eval $ac_link) 2>&5
f69335e6 8003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
f69335e6 8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
f40ec73c 8011 ac_cv_nonblocking=O_NONBLOCK
8012else
f69335e6 8013 echo "$as_me: program exited with status $ac_status" >&5
8014echo "$as_me: failed program was:" >&5
cbdd3138
BM
8015sed 's/^/| /' conftest.$ac_ext >&5
8016
f69335e6 8017( exit $ac_status )
8018
f40ec73c 8019if test "$cross_compiling" = yes; then
cbdd3138
BM
8020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8021See \`config.log' for more details." >&5
8022echo "$as_me: error: cannot run test program while cross compiling
8023See \`config.log' for more details." >&2;}
f69335e6 8024 { (exit 1); exit 1; }; }
f40ec73c 8025else
f69335e6 8026 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8027/* confdefs.h. */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h. */
f40ec73c 8032
8033#include <sys/types.h>
8034#include <sys/socket.h>
8035#include <fcntl.h>
8036#include <sys/ioctl.h>
8037#include <sys/file.h>
8038#include <signal.h>
8039alarmed() {
8040exit(0);
8041}
8042int main() {
8043#ifdef O_NDELAY
8044char b[12], x[32];
8045int f, l = sizeof(x);
8046f = socket(AF_INET, SOCK_DGRAM, 0);
8047if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY))) {
8048signal(SIGALRM, alarmed);
8049alarm(3);
8050recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
8051alarm(0);
8052exit(0);
8053}
8054#endif
8055exit(1);
8056}
f69335e6 8057_ACEOF
8058rm -f conftest$ac_exeext
81ae7da0
BM
8059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8060 (eval $ac_link) 2>&5
f69335e6 8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 (eval $ac_try) 2>&5
f69335e6 8066 ac_status=$?
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
f40ec73c 8069 ac_cv_nonblocking=O_NDELAY
8070else
f69335e6 8071 echo "$as_me: program exited with status $ac_status" >&5
8072echo "$as_me: failed program was:" >&5
cbdd3138
BM
8073sed 's/^/| /' conftest.$ac_ext >&5
8074
f69335e6 8075( exit $ac_status )
8076
f40ec73c 8077if test "$cross_compiling" = yes; then
cbdd3138
BM
8078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8079See \`config.log' for more details." >&5
8080echo "$as_me: error: cannot run test program while cross compiling
8081See \`config.log' for more details." >&2;}
f69335e6 8082 { (exit 1); exit 1; }; }
f40ec73c 8083else
f69335e6 8084 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8085/* confdefs.h. */
8086_ACEOF
8087cat confdefs.h >>conftest.$ac_ext
8088cat >>conftest.$ac_ext <<_ACEOF
8089/* end confdefs.h. */
f40ec73c 8090
8091#include <sys/types.h>
8092#include <sys/socket.h>
8093#include <fcntl.h>
8094#include <sys/ioctl.h>
8095#include <sys/file.h>
8096#include <signal.h>
8097alarmed() {
8098exit(1);
8099}
8100int main() {
8101#ifdef FIONBIO
8102char b[12], x[32];
8103int f, l = sizeof(x);
8104f = socket(AF_INET, SOCK_DGRAM, 0);
8105if (f >= 0 && !(fcntl(f, F_SETFL, FIONBIO))) {
8106signal(SIGALRM, alarmed);
8107alarm(3);
8108recvfrom(f, b, 12, 0, (struct sockaddr *)x, &l);
8109alarm(0);
8110exit(0);
8111}
8112#endif
8113exit(1);
8114
f69335e6 8115_ACEOF
8116rm -f conftest$ac_exeext
81ae7da0
BM
8117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118 (eval $ac_link) 2>&5
f69335e6 8119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 (eval $ac_try) 2>&5
f69335e6 8124 ac_status=$?
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
f40ec73c 8127 ac_cv_nonblocking=FIONBIO
8128else
f69335e6 8129 echo "$as_me: program exited with status $ac_status" >&5
8130echo "$as_me: failed program was:" >&5
cbdd3138
BM
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
f69335e6 8133( exit $ac_status )
8134ac_cv_nonblocking=none
f40ec73c 8135fi
81ae7da0 8136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 8137fi
f40ec73c 8138fi
81ae7da0 8139rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 8140fi
f40ec73c 8141fi
81ae7da0 8142rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 8143fi
f40ec73c 8144fi
81ae7da0
BM
8145echo "$as_me:$LINENO: result: $ac_cv_nonblocking" >&5
8146echo "${ECHO_T}$ac_cv_nonblocking" >&6
776fa42c 8147if test "$ac_cv_nonblocking" = "O_NONBLOCK"; then
f69335e6 8148cat >>confdefs.h <<\_ACEOF
f40ec73c 8149#define NBLOCK_POSIX 1
f69335e6 8150_ACEOF
f40ec73c 8151
776fa42c 8152elif test "$ac_cv_nonblocking" = "O_NDELAY"; then
f69335e6 8153cat >>confdefs.h <<\_ACEOF
f40ec73c 8154#define NBLOCK_BSD 1
f69335e6 8155_ACEOF
f40ec73c 8156
776fa42c 8157elif test "$ac_cv_nonblocking" = "FIONBIO"; then
f69335e6 8158cat >>confdefs.h <<\_ACEOF
f40ec73c 8159#define NBLOCK_SYSV 1
f69335e6 8160_ACEOF
f40ec73c 8161
8162fi
825ee732 8163LIBS="$save_libs"
f69335e6 8164if test $ac_cv_c_compiler_gnu = yes; then
81ae7da0
BM
8165 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
8166echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
f69335e6 8167if test "${ac_cv_prog_gcc_traditional+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 8169else
8170 ac_pattern="Autoconf.*'x'"
f69335e6 8171 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8172/* confdefs.h. */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
8176/* end confdefs.h. */
f40ec73c 8177#include <sgtty.h>
8178Autoconf TIOCGETP
f69335e6 8179_ACEOF
f40ec73c 8180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 8181 $EGREP "$ac_pattern" >/dev/null 2>&1; then
f40ec73c 8182 ac_cv_prog_gcc_traditional=yes
8183else
f40ec73c 8184 ac_cv_prog_gcc_traditional=no
8185fi
8186rm -f conftest*
8187
8188
8189 if test $ac_cv_prog_gcc_traditional = no; then
f69335e6 8190 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8191/* confdefs.h. */
8192_ACEOF
8193cat confdefs.h >>conftest.$ac_ext
8194cat >>conftest.$ac_ext <<_ACEOF
8195/* end confdefs.h. */
f40ec73c 8196#include <termio.h>
8197Autoconf TCGETA
f69335e6 8198_ACEOF
f40ec73c 8199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 8200 $EGREP "$ac_pattern" >/dev/null 2>&1; then
f40ec73c 8201 ac_cv_prog_gcc_traditional=yes
8202fi
8203rm -f conftest*
8204
8205 fi
8206fi
81ae7da0
BM
8207echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
8208echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
f40ec73c 8209 if test $ac_cv_prog_gcc_traditional = yes; then
8210 CC="$CC -traditional"
8211 fi
8212fi
8213
81ae7da0
BM
8214echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
8215echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
f69335e6 8216if test "${ac_cv_func_setpgrp_void+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 8218else
8219 if test "$cross_compiling" = yes; then
f69335e6 8220 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
8221echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
8222 { (exit 1); exit 1; }; }
f40ec73c 8223else
f69335e6 8224 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
81ae7da0
BM
8230#if HAVE_UNISTD_H
8231# include <unistd.h>
8232#endif
8233
f69335e6 8234int
8235main ()
f40ec73c 8236{
f69335e6 8237/* If this system has a BSD-style setpgrp which takes arguments,
8238 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
8239 exit successfully. */
81ae7da0 8240 exit (setpgrp (1,1) == -1 ? 0 : 1);
f69335e6 8241 ;
8242 return 0;
f40ec73c 8243}
f69335e6 8244_ACEOF
8245rm -f conftest$ac_exeext
81ae7da0
BM
8246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>&5
f69335e6 8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
8251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 (eval $ac_try) 2>&5
f69335e6 8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); }; }; then
f40ec73c 8256 ac_cv_func_setpgrp_void=no
8257else
f69335e6 8258 echo "$as_me: program exited with status $ac_status" >&5
8259echo "$as_me: failed program was:" >&5
cbdd3138
BM
8260sed 's/^/| /' conftest.$ac_ext >&5
8261
f69335e6 8262( exit $ac_status )
8263ac_cv_func_setpgrp_void=yes
f40ec73c 8264fi
81ae7da0 8265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 8266fi
f40ec73c 8267fi
81ae7da0
BM
8268echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
8269echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
f40ec73c 8270if test $ac_cv_func_setpgrp_void = yes; then
f69335e6 8271
8272cat >>confdefs.h <<\_ACEOF
f40ec73c 8273#define SETPGRP_VOID 1
f69335e6 8274_ACEOF
f40ec73c 8275
8276fi
8277
81ae7da0
BM
8278echo "$as_me:$LINENO: checking for function prototypes" >&5
8279echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8280if test "$ac_cv_prog_cc_stdc" != no; then
8281 echo "$as_me:$LINENO: result: yes" >&5
8282echo "${ECHO_T}yes" >&6
cbdd3138
BM
8283
8284cat >>confdefs.h <<\_ACEOF
8285#define PROTOTYPES 1
8286_ACEOF
8287
8288
8289cat >>confdefs.h <<\_ACEOF
8290#define __PROTOTYPES 1
8291_ACEOF
8292
8293else
81ae7da0
BM
8294 echo "$as_me:$LINENO: result: no" >&5
8295echo "${ECHO_T}no" >&6
cbdd3138
BM
8296fi
8297
81ae7da0
BM
8298echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
8299echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
f69335e6 8300if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 8302else
cbdd3138
BM
8303 ac_cv_func_setvbuf_reversed=no
8304 cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310#include <stdio.h>
8311# if PROTOTYPES
8312 int (setvbuf) (FILE *, int, char *, size_t);
8313# endif
8314int
8315main ()
8316{
8317char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>conftest.er1
cbdd3138
BM
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
64b46a71 8331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 (eval $ac_try) 2>&5
cbdd3138
BM
8334 ac_status=$?
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); }; } &&
8337 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
cbdd3138
BM
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h. */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h. */
8349#include <stdio.h>
8350# if PROTOTYPES
8351 int (setvbuf) (FILE *, int, char *, size_t);
8352# endif
8353int
8354main ()
8355{
8356char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
8357 ;
8358 return 0;
8359}
8360_ACEOF
8361rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8363 (eval $ac_link) 2>conftest.er1
cbdd3138
BM
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
64b46a71 8370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
cbdd3138
BM
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
cbdd3138
BM
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 # It compiles and links either way, so it must not be declared
8383 # with a prototype and most likely this is a K&R C compiler.
8384 # Try running it.
8385 if test "$cross_compiling" = yes; then
8386 : # Assume setvbuf is not reversed when cross-compiling.
f40ec73c 8387else
f69335e6 8388 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8389/* confdefs.h. */
8390_ACEOF
8391cat confdefs.h >>conftest.$ac_ext
8392cat >>conftest.$ac_ext <<_ACEOF
8393/* end confdefs.h. */
81ae7da0 8394#include <stdio.h>
f69335e6 8395int
8396main ()
8397{
cbdd3138
BM
8398/* This call has the arguments reversed.
8399 A reversed system may check and see that the address of buf
8400 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
8401 char buf;
8402 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
81ae7da0 8403 exit (1);
cbdd3138 8404 putchar ('\r');
81ae7da0 8405 exit (0); /* Non-reversed systems SEGV here. */
cbdd3138
BM
8406 ;
8407 return 0;
f40ec73c 8408}
f69335e6 8409_ACEOF
8410rm -f conftest$ac_exeext
81ae7da0
BM
8411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412 (eval $ac_link) 2>&5
f69335e6 8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
8416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 (eval $ac_try) 2>&5
f69335e6 8418 ac_status=$?
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); }; }; then
f40ec73c 8421 ac_cv_func_setvbuf_reversed=yes
8422else
f69335e6 8423 echo "$as_me: program exited with status $ac_status" >&5
8424echo "$as_me: failed program was:" >&5
cbdd3138
BM
8425sed 's/^/| /' conftest.$ac_ext >&5
8426
81ae7da0
BM
8427( exit $ac_status )
8428rm -f core *.core
f40ec73c 8429fi
81ae7da0 8430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 8431fi
cbdd3138
BM
8432 ac_cv_func_setvbuf_reversed=yes
8433else
8434 echo "$as_me: failed program was:" >&5
8435sed 's/^/| /' conftest.$ac_ext >&5
8436
8437fi
81ae7da0 8438rm -f conftest.err conftest.$ac_objext \
cbdd3138
BM
8439 conftest$ac_exeext conftest.$ac_ext
8440else
8441 echo "$as_me: failed program was:" >&5
8442sed 's/^/| /' conftest.$ac_ext >&5
8443
8444fi
81ae7da0 8445rm -f conftest.err conftest.$ac_objext \
cbdd3138 8446 conftest$ac_exeext conftest.$ac_ext
f40ec73c 8447fi
81ae7da0
BM
8448echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
8449echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
f40ec73c 8450if test $ac_cv_func_setvbuf_reversed = yes; then
f69335e6 8451
8452cat >>confdefs.h <<\_ACEOF
f40ec73c 8453#define SETVBUF_REVERSED 1
f69335e6 8454_ACEOF
f40ec73c 8455
704b6260
BM
8456fi
8457
8458# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8459# for constant arguments. Useless!
81ae7da0
BM
8460echo "$as_me:$LINENO: checking for working alloca.h" >&5
8461echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
704b6260
BM
8462if test "${ac_cv_working_alloca_h+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8466/* confdefs.h. */
8467_ACEOF
8468cat confdefs.h >>conftest.$ac_ext
8469cat >>conftest.$ac_ext <<_ACEOF
8470/* end confdefs.h. */
704b6260 8471#include <alloca.h>
704b6260
BM
8472int
8473main ()
8474{
8475char *p = (char *) alloca (2 * sizeof (int));
8476 ;
8477 return 0;
8478}
8479_ACEOF
8480rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>conftest.er1
704b6260 8483 ac_status=$?
cbdd3138
BM
8484 grep -v '^ *+' conftest.er1 >conftest.err
8485 rm -f conftest.er1
8486 cat conftest.err >&5
704b6260
BM
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
64b46a71 8489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
cbdd3138
BM
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; } &&
8495 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 (eval $ac_try) 2>&5
704b6260
BM
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 ac_cv_working_alloca_h=yes
8502else
8503 echo "$as_me: failed program was:" >&5
cbdd3138
BM
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
81ae7da0 8506ac_cv_working_alloca_h=no
704b6260 8507fi
81ae7da0 8508rm -f conftest.err conftest.$ac_objext \
cbdd3138 8509 conftest$ac_exeext conftest.$ac_ext
704b6260 8510fi
81ae7da0
BM
8511echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8512echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
704b6260
BM
8513if test $ac_cv_working_alloca_h = yes; then
8514
8515cat >>confdefs.h <<\_ACEOF
8516#define HAVE_ALLOCA_H 1
8517_ACEOF
8518
8519fi
8520
81ae7da0
BM
8521echo "$as_me:$LINENO: checking for alloca" >&5
8522echo $ECHO_N "checking for alloca... $ECHO_C" >&6
704b6260
BM
8523if test "${ac_cv_func_alloca_works+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525else
8526 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
704b6260
BM
8532#ifdef __GNUC__
8533# define alloca __builtin_alloca
8534#else
8535# ifdef _MSC_VER
8536# include <malloc.h>
8537# define alloca _alloca
8538# else
8539# if HAVE_ALLOCA_H
8540# include <alloca.h>
8541# else
8542# ifdef _AIX
8543 #pragma alloca
8544# else
8545# ifndef alloca /* predefined by HP cc +Olibcalls */
8546char *alloca ();
8547# endif
8548# endif
8549# endif
8550# endif
8551#endif
8552
704b6260
BM
8553int
8554main ()
8555{
8556char *p = (char *) alloca (1);
8557 ;
8558 return 0;
8559}
8560_ACEOF
8561rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>conftest.er1
704b6260 8564 ac_status=$?
cbdd3138
BM
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
704b6260
BM
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } &&
64b46a71 8570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572 (eval $ac_try) 2>&5
cbdd3138
BM
8573 ac_status=$?
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); }; } &&
8576 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 (eval $ac_try) 2>&5
704b6260
BM
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; }; then
8582 ac_cv_func_alloca_works=yes
8583else
8584 echo "$as_me: failed program was:" >&5
cbdd3138
BM
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
81ae7da0 8587ac_cv_func_alloca_works=no
704b6260 8588fi
81ae7da0 8589rm -f conftest.err conftest.$ac_objext \
cbdd3138 8590 conftest$ac_exeext conftest.$ac_ext
704b6260 8591fi
81ae7da0
BM
8592echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8593echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
704b6260
BM
8594
8595if test $ac_cv_func_alloca_works = yes; then
8596
8597cat >>confdefs.h <<\_ACEOF
8598#define HAVE_ALLOCA 1
8599_ACEOF
8600
8601else
8602 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8603# that cause trouble. Some versions do not even contain alloca or
8604# contain a buggy version. If you still want to use their alloca,
8605# use ar to extract alloca.o from them instead of compiling alloca.c.
8606
81ae7da0 8607ALLOCA=alloca.$ac_objext
704b6260
BM
8608
8609cat >>confdefs.h <<\_ACEOF
8610#define C_ALLOCA 1
8611_ACEOF
8612
8613
81ae7da0
BM
8614echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8615echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
704b6260
BM
8616if test "${ac_cv_os_cray+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618else
8619 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8620/* confdefs.h. */
8621_ACEOF
8622cat confdefs.h >>conftest.$ac_ext
8623cat >>conftest.$ac_ext <<_ACEOF
8624/* end confdefs.h. */
81ae7da0 8625#if defined(CRAY) && ! defined(CRAY2)
704b6260
BM
8626webecray
8627#else
8628wenotbecray
8629#endif
8630
8631_ACEOF
8632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 8633 $EGREP "webecray" >/dev/null 2>&1; then
704b6260
BM
8634 ac_cv_os_cray=yes
8635else
8636 ac_cv_os_cray=no
8637fi
8638rm -f conftest*
8639
8640fi
81ae7da0
BM
8641echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8642echo "${ECHO_T}$ac_cv_os_cray" >&6
704b6260
BM
8643if test $ac_cv_os_cray = yes; then
8644 for ac_func in _getb67 GETB67 getb67; do
8645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
8646echo "$as_me:$LINENO: checking for $ac_func" >&5
8647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8648if eval "test \"\${$as_ac_var+set}\" = set"; then
704b6260
BM
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650else
8651 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
8657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8659#define $ac_func innocuous_$ac_func
8660
704b6260 8661/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
8662 which can conflict with char $ac_func (); below.
8663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8664 <limits.h> exists even on freestanding compilers. */
8665
8666#ifdef __STDC__
8667# include <limits.h>
8668#else
8669# include <assert.h>
8670#endif
8671
8672#undef $ac_func
8673
81ae7da0 8674/* Override any gcc2 internal prototype to avoid an error. */
704b6260
BM
8675#ifdef __cplusplus
8676extern "C"
81ae7da0 8677{
704b6260 8678#endif
81ae7da0
BM
8679/* We use char because int might match the return type of a gcc2
8680 builtin and then its argument prototype would still apply. */
704b6260 8681char $ac_func ();
704b6260
BM
8682/* The GNU C library defines this for functions which it implements
8683 to always fail with ENOSYS. Some functions are actually named
8684 something starting with __ and the normal name is an alias. */
81ae7da0 8685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
704b6260 8686choke me
81ae7da0
BM
8687#else
8688char (*f) () = $ac_func;
8689#endif
8690#ifdef __cplusplus
8691}
704b6260
BM
8692#endif
8693
cbdd3138
BM
8694int
8695main ()
8696{
81ae7da0 8697return f != $ac_func;
704b6260
BM
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704 (eval $ac_link) 2>conftest.er1
704b6260 8705 ac_status=$?
cbdd3138
BM
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
704b6260
BM
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } &&
64b46a71 8711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
cbdd3138
BM
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 (eval $ac_try) 2>&5
704b6260
BM
8720 ac_status=$?
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); }; }; then
8723 eval "$as_ac_var=yes"
8724else
8725 echo "$as_me: failed program was:" >&5
cbdd3138
BM
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
81ae7da0 8728eval "$as_ac_var=no"
704b6260 8729fi
81ae7da0 8730rm -f conftest.err conftest.$ac_objext \
cbdd3138 8731 conftest$ac_exeext conftest.$ac_ext
704b6260 8732fi
81ae7da0
BM
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
704b6260
BM
8735if test `eval echo '${'$as_ac_var'}'` = yes; then
8736
8737cat >>confdefs.h <<_ACEOF
8738#define CRAY_STACKSEG_END $ac_func
8739_ACEOF
8740
8741 break
8742fi
8743
8744 done
8745fi
8746
81ae7da0
BM
8747echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8748echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
704b6260
BM
8749if test "${ac_cv_c_stack_direction+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751else
8752 if test "$cross_compiling" = yes; then
8753 ac_cv_c_stack_direction=0
8754else
8755 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8756/* confdefs.h. */
8757_ACEOF
8758cat confdefs.h >>conftest.$ac_ext
8759cat >>conftest.$ac_ext <<_ACEOF
8760/* end confdefs.h. */
704b6260
BM
8761int
8762find_stack_direction ()
8763{
8764 static char *addr = 0;
8765 auto char dummy;
8766 if (addr == 0)
8767 {
8768 addr = &dummy;
8769 return find_stack_direction ();
8770 }
8771 else
8772 return (&dummy > addr) ? 1 : -1;
8773}
8774
8775int
8776main ()
8777{
81ae7da0 8778 exit (find_stack_direction () < 0);
704b6260
BM
8779}
8780_ACEOF
8781rm -f conftest$ac_exeext
81ae7da0
BM
8782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783 (eval $ac_link) 2>&5
704b6260
BM
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
8787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 (eval $ac_try) 2>&5
704b6260
BM
8789 ac_status=$?
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); }; }; then
8792 ac_cv_c_stack_direction=1
8793else
8794 echo "$as_me: program exited with status $ac_status" >&5
8795echo "$as_me: failed program was:" >&5
cbdd3138
BM
8796sed 's/^/| /' conftest.$ac_ext >&5
8797
704b6260
BM
8798( exit $ac_status )
8799ac_cv_c_stack_direction=-1
8800fi
81ae7da0 8801rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
704b6260
BM
8802fi
8803fi
81ae7da0
BM
8804echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8805echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
704b6260
BM
8806
8807cat >>confdefs.h <<_ACEOF
8808#define STACK_DIRECTION $ac_cv_c_stack_direction
8809_ACEOF
8810
8811
f40ec73c 8812fi
8813
f69335e6 8814
491d6f70 8815for ac_func in snprintf
8816do
f69335e6 8817as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
8818echo "$as_me:$LINENO: checking for $ac_func" >&5
8819echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8820if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822else
8823 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8824/* confdefs.h. */
8825_ACEOF
8826cat confdefs.h >>conftest.$ac_ext
8827cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h. */
8829/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8831#define $ac_func innocuous_$ac_func
8832
491d6f70 8833/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
8834 which can conflict with char $ac_func (); below.
8835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8836 <limits.h> exists even on freestanding compilers. */
8837
8838#ifdef __STDC__
8839# include <limits.h>
8840#else
8841# include <assert.h>
8842#endif
8843
8844#undef $ac_func
8845
81ae7da0 8846/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 8847#ifdef __cplusplus
8848extern "C"
81ae7da0 8849{
f69335e6 8850#endif
81ae7da0
BM
8851/* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
f69335e6 8853char $ac_func ();
491d6f70 8854/* The GNU C library defines this for functions which it implements
8855 to always fail with ENOSYS. Some functions are actually named
8856 something starting with __ and the normal name is an alias. */
81ae7da0 8857#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
491d6f70 8858choke me
81ae7da0
BM
8859#else
8860char (*f) () = $ac_func;
8861#endif
8862#ifdef __cplusplus
8863}
491d6f70 8864#endif
8865
cbdd3138
BM
8866int
8867main ()
8868{
81ae7da0 8869return f != $ac_func;
f69335e6 8870 ;
8871 return 0;
8872}
8873_ACEOF
8874rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8876 (eval $ac_link) 2>conftest.er1
f69335e6 8877 ac_status=$?
cbdd3138
BM
8878 grep -v '^ *+' conftest.er1 >conftest.err
8879 rm -f conftest.er1
8880 cat conftest.err >&5
f69335e6 8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } &&
64b46a71 8883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
cbdd3138
BM
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; } &&
8889 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
f69335e6 8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; }; then
8895 eval "$as_ac_var=yes"
8896else
8897 echo "$as_me: failed program was:" >&5
cbdd3138
BM
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
81ae7da0 8900eval "$as_ac_var=no"
f69335e6 8901fi
81ae7da0 8902rm -f conftest.err conftest.$ac_objext \
cbdd3138 8903 conftest$ac_exeext conftest.$ac_ext
f69335e6 8904fi
81ae7da0
BM
8905echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8906echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 8907if test `eval echo '${'$as_ac_var'}'` = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8910_ACEOF
8911 cat >>confdefs.h <<\_ACEOF
491d6f70 8912#define HAVE_SNPRINTF 1
f69335e6 8913_ACEOF
491d6f70 8914
491d6f70 8915fi
8916done
8917
f69335e6 8918
491d6f70 8919for ac_func in vsnprintf
8920do
f69335e6 8921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
8922echo "$as_me:$LINENO: checking for $ac_func" >&5
8923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8924if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926else
8927 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
8928/* confdefs.h. */
8929_ACEOF
8930cat confdefs.h >>conftest.$ac_ext
8931cat >>conftest.$ac_ext <<_ACEOF
8932/* end confdefs.h. */
8933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8935#define $ac_func innocuous_$ac_func
8936
491d6f70 8937/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
8938 which can conflict with char $ac_func (); below.
8939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940 <limits.h> exists even on freestanding compilers. */
8941
8942#ifdef __STDC__
8943# include <limits.h>
8944#else
8945# include <assert.h>
8946#endif
8947
8948#undef $ac_func
8949
81ae7da0 8950/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 8951#ifdef __cplusplus
8952extern "C"
81ae7da0 8953{
f69335e6 8954#endif
81ae7da0
BM
8955/* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
f69335e6 8957char $ac_func ();
491d6f70 8958/* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
81ae7da0 8961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
491d6f70 8962choke me
81ae7da0
BM
8963#else
8964char (*f) () = $ac_func;
8965#endif
8966#ifdef __cplusplus
8967}
491d6f70 8968#endif
8969
cbdd3138
BM
8970int
8971main ()
8972{
81ae7da0 8973return f != $ac_func;
f69335e6 8974 ;
8975 return 0;
8976}
8977_ACEOF
8978rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
8979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
f69335e6 8981 ac_status=$?
cbdd3138
BM
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
f69335e6 8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
64b46a71 8987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989 (eval $ac_try) 2>&5
cbdd3138
BM
8990 ac_status=$?
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; } &&
8993 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
f69335e6 8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
8999 eval "$as_ac_var=yes"
9000else
9001 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
81ae7da0 9004eval "$as_ac_var=no"
f69335e6 9005fi
81ae7da0 9006rm -f conftest.err conftest.$ac_objext \
cbdd3138 9007 conftest$ac_exeext conftest.$ac_ext
f69335e6 9008fi
81ae7da0
BM
9009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9010echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 9011if test `eval echo '${'$as_ac_var'}'` = yes; then
9012 cat >>confdefs.h <<_ACEOF
9013#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9014_ACEOF
9015 cat >>confdefs.h <<\_ACEOF
491d6f70 9016#define HAVE_VSNPRINTF 1
f69335e6 9017_ACEOF
491d6f70 9018
491d6f70 9019fi
9020done
9021
f69335e6 9022
491d6f70 9023for ac_func in strlcpy
9024do
f69335e6 9025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9026echo "$as_me:$LINENO: checking for $ac_func" >&5
9027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9028if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9030else
9031 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
9037/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9039#define $ac_func innocuous_$ac_func
9040
491d6f70 9041/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9042 which can conflict with char $ac_func (); below.
9043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9044 <limits.h> exists even on freestanding compilers. */
9045
9046#ifdef __STDC__
9047# include <limits.h>
9048#else
9049# include <assert.h>
9050#endif
9051
9052#undef $ac_func
9053
81ae7da0 9054/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 9055#ifdef __cplusplus
9056extern "C"
81ae7da0 9057{
f69335e6 9058#endif
81ae7da0
BM
9059/* We use char because int might match the return type of a gcc2
9060 builtin and then its argument prototype would still apply. */
f69335e6 9061char $ac_func ();
491d6f70 9062/* The GNU C library defines this for functions which it implements
9063 to always fail with ENOSYS. Some functions are actually named
9064 something starting with __ and the normal name is an alias. */
81ae7da0 9065#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
491d6f70 9066choke me
81ae7da0
BM
9067#else
9068char (*f) () = $ac_func;
9069#endif
9070#ifdef __cplusplus
9071}
491d6f70 9072#endif
9073
cbdd3138
BM
9074int
9075main ()
9076{
81ae7da0 9077return f != $ac_func;
f69335e6 9078 ;
9079 return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084 (eval $ac_link) 2>conftest.er1
f69335e6 9085 ac_status=$?
cbdd3138
BM
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
f69335e6 9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
64b46a71 9091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093 (eval $ac_try) 2>&5
cbdd3138
BM
9094 ac_status=$?
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); }; } &&
9097 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
f69335e6 9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 eval "$as_ac_var=yes"
9104else
9105 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9106sed 's/^/| /' conftest.$ac_ext >&5
9107
81ae7da0 9108eval "$as_ac_var=no"
f69335e6 9109fi
81ae7da0 9110rm -f conftest.err conftest.$ac_objext \
cbdd3138 9111 conftest$ac_exeext conftest.$ac_ext
f69335e6 9112fi
81ae7da0
BM
9113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9114echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 9115if test `eval echo '${'$as_ac_var'}'` = yes; then
9116 cat >>confdefs.h <<_ACEOF
9117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9118_ACEOF
9119 cat >>confdefs.h <<\_ACEOF
491d6f70 9120#define HAVE_STRLCPY 1
f69335e6 9121_ACEOF
491d6f70 9122
491d6f70 9123fi
9124done
9125
f69335e6 9126
491d6f70 9127for ac_func in strlcat
9128do
f69335e6 9129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9130echo "$as_me:$LINENO: checking for $ac_func" >&5
9131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9132if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 9133 echo $ECHO_N "(cached) $ECHO_C" >&6
9134else
9135 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9136/* confdefs.h. */
9137_ACEOF
9138cat confdefs.h >>conftest.$ac_ext
9139cat >>conftest.$ac_ext <<_ACEOF
9140/* end confdefs.h. */
9141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9143#define $ac_func innocuous_$ac_func
9144
491d6f70 9145/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9146 which can conflict with char $ac_func (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9149
9150#ifdef __STDC__
9151# include <limits.h>
9152#else
9153# include <assert.h>
9154#endif
9155
9156#undef $ac_func
9157
81ae7da0 9158/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 9159#ifdef __cplusplus
9160extern "C"
81ae7da0 9161{
f69335e6 9162#endif
81ae7da0
BM
9163/* We use char because int might match the return type of a gcc2
9164 builtin and then its argument prototype would still apply. */
f69335e6 9165char $ac_func ();
491d6f70 9166/* The GNU C library defines this for functions which it implements
9167 to always fail with ENOSYS. Some functions are actually named
9168 something starting with __ and the normal name is an alias. */
81ae7da0 9169#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
491d6f70 9170choke me
81ae7da0
BM
9171#else
9172char (*f) () = $ac_func;
9173#endif
9174#ifdef __cplusplus
9175}
491d6f70 9176#endif
9177
cbdd3138
BM
9178int
9179main ()
9180{
81ae7da0 9181return f != $ac_func;
f69335e6 9182 ;
9183 return 0;
9184}
9185_ACEOF
9186rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9188 (eval $ac_link) 2>conftest.er1
f69335e6 9189 ac_status=$?
cbdd3138
BM
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
f69335e6 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } &&
64b46a71 9195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
cbdd3138
BM
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
f69335e6 9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 eval "$as_ac_var=yes"
9208else
9209 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9210sed 's/^/| /' conftest.$ac_ext >&5
9211
81ae7da0 9212eval "$as_ac_var=no"
f69335e6 9213fi
81ae7da0 9214rm -f conftest.err conftest.$ac_objext \
cbdd3138 9215 conftest$ac_exeext conftest.$ac_ext
f69335e6 9216fi
81ae7da0
BM
9217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9218echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 9219if test `eval echo '${'$as_ac_var'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9222_ACEOF
9223 cat >>confdefs.h <<\_ACEOF
491d6f70 9224#define HAVE_STRLCAT 1
f69335e6 9225_ACEOF
491d6f70 9226
491d6f70 9227fi
9228done
9229
f69335e6 9230
491d6f70 9231for ac_func in strlncat
9232do
f69335e6 9233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9234echo "$as_me:$LINENO: checking for $ac_func" >&5
9235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9236if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238else
9239 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h. */
9245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9247#define $ac_func innocuous_$ac_func
9248
491d6f70 9249/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9250 which can conflict with char $ac_func (); below.
9251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9252 <limits.h> exists even on freestanding compilers. */
9253
9254#ifdef __STDC__
9255# include <limits.h>
9256#else
9257# include <assert.h>
9258#endif
9259
9260#undef $ac_func
9261
81ae7da0 9262/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 9263#ifdef __cplusplus
9264extern "C"
81ae7da0 9265{
f69335e6 9266#endif
81ae7da0
BM
9267/* We use char because int might match the return type of a gcc2
9268 builtin and then its argument prototype would still apply. */
f69335e6 9269char $ac_func ();
491d6f70 9270/* The GNU C library defines this for functions which it implements
9271 to always fail with ENOSYS. Some functions are actually named
9272 something starting with __ and the normal name is an alias. */
81ae7da0 9273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
491d6f70 9274choke me
81ae7da0
BM
9275#else
9276char (*f) () = $ac_func;
9277#endif
9278#ifdef __cplusplus
9279}
491d6f70 9280#endif
9281
cbdd3138
BM
9282int
9283main ()
9284{
81ae7da0 9285return f != $ac_func;
f69335e6 9286 ;
9287 return 0;
9288}
9289_ACEOF
9290rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292 (eval $ac_link) 2>conftest.er1
f69335e6 9293 ac_status=$?
cbdd3138
BM
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
f69335e6 9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } &&
64b46a71 9299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
cbdd3138
BM
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
f69335e6 9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 eval "$as_ac_var=yes"
9312else
9313 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
81ae7da0 9316eval "$as_ac_var=no"
f69335e6 9317fi
81ae7da0 9318rm -f conftest.err conftest.$ac_objext \
cbdd3138 9319 conftest$ac_exeext conftest.$ac_ext
f69335e6 9320fi
81ae7da0
BM
9321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 9323if test `eval echo '${'$as_ac_var'}'` = yes; then
9324 cat >>confdefs.h <<_ACEOF
9325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9326_ACEOF
9327 cat >>confdefs.h <<\_ACEOF
491d6f70 9328#define HAVE_STRLNCAT 1
f69335e6 9329_ACEOF
491d6f70 9330
491d6f70 9331fi
9332done
9333
9334
704b6260
BM
9335for ac_func in inet_pton
9336do
9337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9338echo "$as_me:$LINENO: checking for $ac_func" >&5
9339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9340if eval "test \"\${$as_ac_var+set}\" = set"; then
704b6260
BM
9341 echo $ECHO_N "(cached) $ECHO_C" >&6
9342else
9343 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9344/* confdefs.h. */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h. */
9349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9351#define $ac_func innocuous_$ac_func
9352
704b6260 9353/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9354 which can conflict with char $ac_func (); below.
9355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9356 <limits.h> exists even on freestanding compilers. */
9357
9358#ifdef __STDC__
9359# include <limits.h>
9360#else
9361# include <assert.h>
9362#endif
9363
9364#undef $ac_func
9365
81ae7da0 9366/* Override any gcc2 internal prototype to avoid an error. */
704b6260
BM
9367#ifdef __cplusplus
9368extern "C"
81ae7da0 9369{
704b6260 9370#endif
81ae7da0
BM
9371/* We use char because int might match the return type of a gcc2
9372 builtin and then its argument prototype would still apply. */
704b6260 9373char $ac_func ();
704b6260
BM
9374/* The GNU C library defines this for functions which it implements
9375 to always fail with ENOSYS. Some functions are actually named
9376 something starting with __ and the normal name is an alias. */
81ae7da0 9377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
704b6260 9378choke me
81ae7da0
BM
9379#else
9380char (*f) () = $ac_func;
9381#endif
9382#ifdef __cplusplus
9383}
704b6260
BM
9384#endif
9385
cbdd3138
BM
9386int
9387main ()
9388{
81ae7da0 9389return f != $ac_func;
704b6260
BM
9390 ;
9391 return 0;
9392}
9393_ACEOF
9394rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>conftest.er1
704b6260 9397 ac_status=$?
cbdd3138
BM
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
704b6260
BM
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
64b46a71 9403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
cbdd3138
BM
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411 (eval $ac_try) 2>&5
704b6260
BM
9412 ac_status=$?
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 eval "$as_ac_var=yes"
9416else
9417 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
81ae7da0 9420eval "$as_ac_var=no"
704b6260 9421fi
81ae7da0 9422rm -f conftest.err conftest.$ac_objext \
cbdd3138 9423 conftest$ac_exeext conftest.$ac_ext
704b6260 9424fi
81ae7da0
BM
9425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
704b6260
BM
9427if test `eval echo '${'$as_ac_var'}'` = yes; then
9428 cat >>confdefs.h <<_ACEOF
9429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9430_ACEOF
9431 cat >>confdefs.h <<\_ACEOF
9432#define HAVE_INET_PTON 1
9433_ACEOF
9434
9435fi
9436done
9437
9438
9439for ac_func in inet_ntop
9440do
9441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9442echo "$as_me:$LINENO: checking for $ac_func" >&5
9443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9444if eval "test \"\${$as_ac_var+set}\" = set"; then
704b6260
BM
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9446else
9447 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9448/* confdefs.h. */
9449_ACEOF
9450cat confdefs.h >>conftest.$ac_ext
9451cat >>conftest.$ac_ext <<_ACEOF
9452/* end confdefs.h. */
9453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455#define $ac_func innocuous_$ac_func
9456
704b6260 9457/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9458 which can conflict with char $ac_func (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9461
9462#ifdef __STDC__
9463# include <limits.h>
9464#else
9465# include <assert.h>
9466#endif
9467
9468#undef $ac_func
9469
81ae7da0 9470/* Override any gcc2 internal prototype to avoid an error. */
704b6260
BM
9471#ifdef __cplusplus
9472extern "C"
81ae7da0 9473{
704b6260 9474#endif
81ae7da0
BM
9475/* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
704b6260 9477char $ac_func ();
704b6260
BM
9478/* The GNU C library defines this for functions which it implements
9479 to always fail with ENOSYS. Some functions are actually named
9480 something starting with __ and the normal name is an alias. */
81ae7da0 9481#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
704b6260 9482choke me
81ae7da0
BM
9483#else
9484char (*f) () = $ac_func;
9485#endif
9486#ifdef __cplusplus
9487}
704b6260
BM
9488#endif
9489
cbdd3138
BM
9490int
9491main ()
9492{
81ae7da0 9493return f != $ac_func;
704b6260
BM
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
704b6260 9501 ac_status=$?
cbdd3138
BM
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
704b6260
BM
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
64b46a71 9507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 (eval $ac_try) 2>&5
cbdd3138
BM
9510 ac_status=$?
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; } &&
9513 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
704b6260
BM
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; }; then
9519 eval "$as_ac_var=yes"
9520else
9521 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
81ae7da0 9524eval "$as_ac_var=no"
704b6260 9525fi
81ae7da0 9526rm -f conftest.err conftest.$ac_objext \
cbdd3138 9527 conftest$ac_exeext conftest.$ac_ext
704b6260 9528fi
81ae7da0
BM
9529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9530echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
704b6260
BM
9531if test `eval echo '${'$as_ac_var'}'` = yes; then
9532 cat >>confdefs.h <<_ACEOF
9533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9534_ACEOF
9535 cat >>confdefs.h <<\_ACEOF
9536#define HAVE_INET_NTOP 1
9537_ACEOF
9538
9539fi
9540done
9541
81ae7da0
BM
9542echo "$as_me:$LINENO: checking if C99 variable length arrays are supported" >&5
9543echo $ECHO_N "checking if C99 variable length arrays are supported... $ECHO_C" >&6
704b6260
BM
9544if test "${ac_cv_varlen_arrays+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547
9548cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9549/* confdefs.h. */
9550_ACEOF
9551cat confdefs.h >>conftest.$ac_ext
9552cat >>conftest.$ac_ext <<_ACEOF
9553/* end confdefs.h. */
704b6260 9554
704b6260
BM
9555int
9556main ()
9557{
9558
9559int main() {
9560int i = 5;
9561int a[i];
9562a[0] = 1;
9563return 0;
9564}
9565 ;
9566 return 0;
9567}
9568_ACEOF
9569rm -f conftest.$ac_objext
81ae7da0
BM
9570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9571 (eval $ac_compile) 2>conftest.er1
704b6260 9572 ac_status=$?
cbdd3138
BM
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
704b6260
BM
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
64b46a71 9578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
cbdd3138
BM
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 (eval $ac_try) 2>&5
704b6260
BM
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_cv_varlen_arrays=yes
9591else
9592 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9593sed 's/^/| /' conftest.$ac_ext >&5
9594
81ae7da0 9595ac_cv_varlen_arrays=no
704b6260 9596fi
81ae7da0 9597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
704b6260
BM
9598
9599fi
81ae7da0
BM
9600echo "$as_me:$LINENO: result: $ac_cv_varlen_arrays" >&5
9601echo "${ECHO_T}$ac_cv_varlen_arrays" >&6
704b6260
BM
9602if test "$ac_cv_varlen_arrays" = "yes" ; then
9603 cat >>confdefs.h <<\_ACEOF
9604#define HAVE_C99_VARLEN_ARRAY 1
9605_ACEOF
9606
9607fi
81ae7da0
BM
9608echo "$as_me:$LINENO: checking if we can set the core size to unlimited" >&5
9609echo $ECHO_N "checking if we can set the core size to unlimited... $ECHO_C" >&6
f69335e6 9610if test "${ac_cv_force_core+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 9612else
f69335e6 9613
f40ec73c 9614if test "$cross_compiling" = yes; then
cbdd3138
BM
9615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9616See \`config.log' for more details." >&5
9617echo "$as_me: error: cannot run test program while cross compiling
9618See \`config.log' for more details." >&2;}
f69335e6 9619 { (exit 1); exit 1; }; }
f40ec73c 9620else
f69335e6 9621 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9622/* confdefs.h. */
9623_ACEOF
9624cat confdefs.h >>conftest.$ac_ext
9625cat >>conftest.$ac_ext <<_ACEOF
9626/* end confdefs.h. */
f40ec73c 9627
9628#include <sys/time.h>
9629#include <sys/resource.h>
9630#include <unistd.h>
9631int main() {
9632struct rlimit corelim;
9633corelim.rlim_cur = corelim.rlim_max = RLIM_INFINITY;
9634if (setrlimit(RLIMIT_CORE, &corelim))
9635exit(1);
9636exit(0);
9637}
9638
f69335e6 9639_ACEOF
9640rm -f conftest$ac_exeext
81ae7da0
BM
9641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642 (eval $ac_link) 2>&5
f69335e6 9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
9646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9647 (eval $ac_try) 2>&5
f69335e6 9648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
f40ec73c 9651 ac_cv_force_core=yes
9652else
f69335e6 9653 echo "$as_me: program exited with status $ac_status" >&5
9654echo "$as_me: failed program was:" >&5
cbdd3138
BM
9655sed 's/^/| /' conftest.$ac_ext >&5
9656
f69335e6 9657( exit $ac_status )
9658ac_cv_force_core=no
f40ec73c 9659fi
81ae7da0 9660rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 9661fi
9662
f40ec73c 9663fi
81ae7da0
BM
9664echo "$as_me:$LINENO: result: $ac_cv_force_core" >&5
9665echo "${ECHO_T}$ac_cv_force_core" >&6
776fa42c 9666if test "$ac_cv_force_core" = "yes"; then
f69335e6 9667cat >>confdefs.h <<\_ACEOF
f40ec73c 9668#define FORCE_CORE 1
f69335e6 9669_ACEOF
f40ec73c 9670
9671fi
f69335e6 9672
9673for ac_func in vprintf
9674do
9675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9676echo "$as_me:$LINENO: checking for $ac_func" >&5
9677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9678if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680else
9681 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9682/* confdefs.h. */
9683_ACEOF
9684cat confdefs.h >>conftest.$ac_ext
9685cat >>conftest.$ac_ext <<_ACEOF
9686/* end confdefs.h. */
9687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9689#define $ac_func innocuous_$ac_func
9690
f40ec73c 9691/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9692 which can conflict with char $ac_func (); below.
9693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9694 <limits.h> exists even on freestanding compilers. */
9695
9696#ifdef __STDC__
9697# include <limits.h>
9698#else
9699# include <assert.h>
9700#endif
9701
9702#undef $ac_func
9703
81ae7da0 9704/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 9705#ifdef __cplusplus
9706extern "C"
81ae7da0 9707{
f69335e6 9708#endif
81ae7da0
BM
9709/* We use char because int might match the return type of a gcc2
9710 builtin and then its argument prototype would still apply. */
f69335e6 9711char $ac_func ();
f40ec73c 9712/* The GNU C library defines this for functions which it implements
9713 to always fail with ENOSYS. Some functions are actually named
9714 something starting with __ and the normal name is an alias. */
81ae7da0 9715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 9716choke me
81ae7da0
BM
9717#else
9718char (*f) () = $ac_func;
9719#endif
9720#ifdef __cplusplus
9721}
f40ec73c 9722#endif
9723
cbdd3138
BM
9724int
9725main ()
9726{
81ae7da0 9727return f != $ac_func;
f69335e6 9728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
f69335e6 9735 ac_status=$?
cbdd3138
BM
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
f69335e6 9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
64b46a71 9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
cbdd3138
BM
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
f69335e6 9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 eval "$as_ac_var=yes"
9754else
9755 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
81ae7da0 9758eval "$as_ac_var=no"
f69335e6 9759fi
81ae7da0 9760rm -f conftest.err conftest.$ac_objext \
cbdd3138 9761 conftest$ac_exeext conftest.$ac_ext
f69335e6 9762fi
81ae7da0
BM
9763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 9765if test `eval echo '${'$as_ac_var'}'` = yes; then
9766 cat >>confdefs.h <<_ACEOF
9767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9768_ACEOF
9769
81ae7da0
BM
9770echo "$as_me:$LINENO: checking for _doprnt" >&5
9771echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
f69335e6 9772if test "${ac_cv_func__doprnt+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9774else
9775 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
9782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9783#define _doprnt innocuous__doprnt
9784
f40ec73c 9785/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9786 which can conflict with char _doprnt (); below.
9787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9788 <limits.h> exists even on freestanding compilers. */
9789
9790#ifdef __STDC__
9791# include <limits.h>
9792#else
9793# include <assert.h>
9794#endif
9795
9796#undef _doprnt
9797
81ae7da0 9798/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 9799#ifdef __cplusplus
9800extern "C"
81ae7da0 9801{
f69335e6 9802#endif
81ae7da0
BM
9803/* We use char because int might match the return type of a gcc2
9804 builtin and then its argument prototype would still apply. */
f69335e6 9805char _doprnt ();
f40ec73c 9806/* The GNU C library defines this for functions which it implements
9807 to always fail with ENOSYS. Some functions are actually named
9808 something starting with __ and the normal name is an alias. */
81ae7da0 9809#if defined (__stub__doprnt) || defined (__stub____doprnt)
f40ec73c 9810choke me
81ae7da0
BM
9811#else
9812char (*f) () = _doprnt;
9813#endif
9814#ifdef __cplusplus
9815}
f40ec73c 9816#endif
9817
cbdd3138
BM
9818int
9819main ()
9820{
81ae7da0 9821return f != _doprnt;
f69335e6 9822 ;
9823 return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>conftest.er1
f69335e6 9829 ac_status=$?
cbdd3138
BM
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
f69335e6 9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
64b46a71 9835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
cbdd3138
BM
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
f69335e6 9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_func__doprnt=yes
9848else
9849 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9850sed 's/^/| /' conftest.$ac_ext >&5
9851
81ae7da0 9852ac_cv_func__doprnt=no
f69335e6 9853fi
81ae7da0 9854rm -f conftest.err conftest.$ac_objext \
cbdd3138 9855 conftest$ac_exeext conftest.$ac_ext
f69335e6 9856fi
81ae7da0
BM
9857echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
9858echo "${ECHO_T}$ac_cv_func__doprnt" >&6
f69335e6 9859if test $ac_cv_func__doprnt = yes; then
9860
9861cat >>confdefs.h <<\_ACEOF
f40ec73c 9862#define HAVE_DOPRNT 1
f69335e6 9863_ACEOF
f40ec73c 9864
f40ec73c 9865fi
9866
9867fi
f69335e6 9868done
9869
9870
f40ec73c 9871
9872for ac_func in gettimeofday
9873do
f69335e6 9874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9875echo "$as_me:$LINENO: checking for $ac_func" >&5
9876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9877if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
9880 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888#define $ac_func innocuous_$ac_func
9889
f40ec73c 9890/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9894
9895#ifdef __STDC__
9896# include <limits.h>
9897#else
9898# include <assert.h>
9899#endif
9900
9901#undef $ac_func
9902
81ae7da0 9903/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 9904#ifdef __cplusplus
9905extern "C"
81ae7da0 9906{
f69335e6 9907#endif
81ae7da0
BM
9908/* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
f69335e6 9910char $ac_func ();
f40ec73c 9911/* The GNU C library defines this for functions which it implements
9912 to always fail with ENOSYS. Some functions are actually named
9913 something starting with __ and the normal name is an alias. */
81ae7da0 9914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 9915choke me
81ae7da0
BM
9916#else
9917char (*f) () = $ac_func;
9918#endif
9919#ifdef __cplusplus
9920}
f40ec73c 9921#endif
9922
cbdd3138
BM
9923int
9924main ()
9925{
81ae7da0 9926return f != $ac_func;
f69335e6 9927 ;
9928 return 0;
9929}
9930_ACEOF
9931rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
9932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>conftest.er1
f69335e6 9934 ac_status=$?
cbdd3138
BM
9935 grep -v '^ *+' conftest.er1 >conftest.err
9936 rm -f conftest.er1
9937 cat conftest.err >&5
f69335e6 9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); } &&
64b46a71 9940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
cbdd3138
BM
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
f69335e6 9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9952 eval "$as_ac_var=yes"
9953else
9954 echo "$as_me: failed program was:" >&5
cbdd3138
BM
9955sed 's/^/| /' conftest.$ac_ext >&5
9956
81ae7da0 9957eval "$as_ac_var=no"
f69335e6 9958fi
81ae7da0 9959rm -f conftest.err conftest.$ac_objext \
cbdd3138 9960 conftest$ac_exeext conftest.$ac_ext
f69335e6 9961fi
81ae7da0
BM
9962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9963echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 9964if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9967_ACEOF
9968 cat >>confdefs.h <<\_ACEOF
f40ec73c 9969#define GETTIMEOFDAY 1
f69335e6 9970_ACEOF
f40ec73c 9971
9972else
f69335e6 9973
f40ec73c 9974for ac_func in lrand48
9975do
f69335e6 9976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
9977echo "$as_me:$LINENO: checking for $ac_func" >&5
9978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9979if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9981else
9982 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
9983/* confdefs.h. */
9984_ACEOF
9985cat confdefs.h >>conftest.$ac_ext
9986cat >>conftest.$ac_ext <<_ACEOF
9987/* end confdefs.h. */
9988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9990#define $ac_func innocuous_$ac_func
9991
f40ec73c 9992/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
9993 which can conflict with char $ac_func (); below.
9994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9995 <limits.h> exists even on freestanding compilers. */
9996
9997#ifdef __STDC__
9998# include <limits.h>
9999#else
10000# include <assert.h>
10001#endif
10002
10003#undef $ac_func
10004
81ae7da0 10005/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10006#ifdef __cplusplus
10007extern "C"
81ae7da0 10008{
f69335e6 10009#endif
81ae7da0
BM
10010/* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
f69335e6 10012char $ac_func ();
f40ec73c 10013/* The GNU C library defines this for functions which it implements
10014 to always fail with ENOSYS. Some functions are actually named
10015 something starting with __ and the normal name is an alias. */
81ae7da0 10016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 10017choke me
81ae7da0
BM
10018#else
10019char (*f) () = $ac_func;
10020#endif
10021#ifdef __cplusplus
10022}
f40ec73c 10023#endif
10024
cbdd3138
BM
10025int
10026main ()
10027{
81ae7da0 10028return f != $ac_func;
f69335e6 10029 ;
10030 return 0;
10031}
10032_ACEOF
10033rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035 (eval $ac_link) 2>conftest.er1
f69335e6 10036 ac_status=$?
cbdd3138
BM
10037 grep -v '^ *+' conftest.er1 >conftest.err
10038 rm -f conftest.er1
10039 cat conftest.err >&5
f69335e6 10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
64b46a71 10042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044 (eval $ac_try) 2>&5
cbdd3138
BM
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; } &&
10048 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
f69335e6 10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 eval "$as_ac_var=yes"
10055else
10056 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10057sed 's/^/| /' conftest.$ac_ext >&5
10058
81ae7da0 10059eval "$as_ac_var=no"
f69335e6 10060fi
81ae7da0 10061rm -f conftest.err conftest.$ac_objext \
cbdd3138 10062 conftest$ac_exeext conftest.$ac_ext
f69335e6 10063fi
81ae7da0
BM
10064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10065echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10066if test `eval echo '${'$as_ac_var'}'` = yes; then
10067 cat >>confdefs.h <<_ACEOF
10068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10069_ACEOF
10070 cat >>confdefs.h <<\_ACEOF
f40ec73c 10071#define LRADN48 1
f69335e6 10072_ACEOF
f40ec73c 10073
f40ec73c 10074fi
10075done
10076
10077fi
10078done
10079
f69335e6 10080
f40ec73c 10081for ac_func in getrusage
10082do
f69335e6 10083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10084echo "$as_me:$LINENO: checking for $ac_func" >&5
10085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10086if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088else
10089 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10090/* confdefs.h. */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h. */
10095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10097#define $ac_func innocuous_$ac_func
10098
f40ec73c 10099/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10100 which can conflict with char $ac_func (); below.
10101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10102 <limits.h> exists even on freestanding compilers. */
10103
10104#ifdef __STDC__
10105# include <limits.h>
10106#else
10107# include <assert.h>
10108#endif
10109
10110#undef $ac_func
10111
81ae7da0 10112/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10113#ifdef __cplusplus
10114extern "C"
81ae7da0 10115{
f69335e6 10116#endif
81ae7da0
BM
10117/* We use char because int might match the return type of a gcc2
10118 builtin and then its argument prototype would still apply. */
f69335e6 10119char $ac_func ();
f40ec73c 10120/* The GNU C library defines this for functions which it implements
10121 to always fail with ENOSYS. Some functions are actually named
10122 something starting with __ and the normal name is an alias. */
81ae7da0 10123#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 10124choke me
81ae7da0
BM
10125#else
10126char (*f) () = $ac_func;
10127#endif
10128#ifdef __cplusplus
10129}
f40ec73c 10130#endif
10131
cbdd3138
BM
10132int
10133main ()
10134{
81ae7da0 10135return f != $ac_func;
f69335e6 10136 ;
10137 return 0;
10138}
10139_ACEOF
10140rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
f69335e6 10143 ac_status=$?
cbdd3138
BM
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
f69335e6 10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } &&
64b46a71 10149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
cbdd3138
BM
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
f69335e6 10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 eval "$as_ac_var=yes"
10162else
10163 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
81ae7da0 10166eval "$as_ac_var=no"
f69335e6 10167fi
81ae7da0 10168rm -f conftest.err conftest.$ac_objext \
cbdd3138 10169 conftest$ac_exeext conftest.$ac_ext
f69335e6 10170fi
81ae7da0
BM
10171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10173if test `eval echo '${'$as_ac_var'}'` = yes; then
10174 cat >>confdefs.h <<_ACEOF
10175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10176_ACEOF
10177 cat >>confdefs.h <<\_ACEOF
f40ec73c 10178#define GETRUSAGE_2 1
f69335e6 10179_ACEOF
f40ec73c 10180
10181else
f69335e6 10182
f40ec73c 10183for ac_func in times
10184do
f69335e6 10185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10186echo "$as_me:$LINENO: checking for $ac_func" >&5
10187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10188if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190else
10191 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10192/* confdefs.h. */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h. */
10197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199#define $ac_func innocuous_$ac_func
10200
f40ec73c 10201/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10202 which can conflict with char $ac_func (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10205
10206#ifdef __STDC__
10207# include <limits.h>
10208#else
10209# include <assert.h>
10210#endif
10211
10212#undef $ac_func
10213
81ae7da0 10214/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10215#ifdef __cplusplus
10216extern "C"
81ae7da0 10217{
f69335e6 10218#endif
81ae7da0
BM
10219/* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
f69335e6 10221char $ac_func ();
f40ec73c 10222/* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
81ae7da0 10225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 10226choke me
81ae7da0
BM
10227#else
10228char (*f) () = $ac_func;
10229#endif
10230#ifdef __cplusplus
10231}
f40ec73c 10232#endif
10233
cbdd3138
BM
10234int
10235main ()
10236{
81ae7da0 10237return f != $ac_func;
f69335e6 10238 ;
10239 return 0;
10240}
10241_ACEOF
10242rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10244 (eval $ac_link) 2>conftest.er1
f69335e6 10245 ac_status=$?
cbdd3138
BM
10246 grep -v '^ *+' conftest.er1 >conftest.err
10247 rm -f conftest.er1
10248 cat conftest.err >&5
f69335e6 10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
64b46a71 10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253 (eval $ac_try) 2>&5
cbdd3138
BM
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259 (eval $ac_try) 2>&5
f69335e6 10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; }; then
10263 eval "$as_ac_var=yes"
10264else
10265 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
81ae7da0 10268eval "$as_ac_var=no"
f69335e6 10269fi
81ae7da0 10270rm -f conftest.err conftest.$ac_objext \
cbdd3138 10271 conftest$ac_exeext conftest.$ac_ext
f69335e6 10272fi
81ae7da0
BM
10273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10275if test `eval echo '${'$as_ac_var'}'` = yes; then
10276 cat >>confdefs.h <<_ACEOF
10277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10278_ACEOF
10279 cat >>confdefs.h <<\_ACEOF
f40ec73c 10280#define TIMES_2 1
f69335e6 10281_ACEOF
f40ec73c 10282
f40ec73c 10283fi
10284done
10285
10286fi
10287done
10288
f69335e6 10289
b9602884 10290for ac_func in setproctitle
10291do
f69335e6 10292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10293echo "$as_me:$LINENO: checking for $ac_func" >&5
10294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10295if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10299/* confdefs.h. */
10300_ACEOF
10301cat confdefs.h >>conftest.$ac_ext
10302cat >>conftest.$ac_ext <<_ACEOF
10303/* end confdefs.h. */
10304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10306#define $ac_func innocuous_$ac_func
10307
b9602884 10308/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10309 which can conflict with char $ac_func (); below.
10310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10311 <limits.h> exists even on freestanding compilers. */
10312
10313#ifdef __STDC__
10314# include <limits.h>
10315#else
10316# include <assert.h>
10317#endif
10318
10319#undef $ac_func
10320
81ae7da0 10321/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10322#ifdef __cplusplus
10323extern "C"
81ae7da0 10324{
f69335e6 10325#endif
81ae7da0
BM
10326/* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
f69335e6 10328char $ac_func ();
b9602884 10329/* The GNU C library defines this for functions which it implements
10330 to always fail with ENOSYS. Some functions are actually named
10331 something starting with __ and the normal name is an alias. */
81ae7da0 10332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b9602884 10333choke me
81ae7da0
BM
10334#else
10335char (*f) () = $ac_func;
10336#endif
10337#ifdef __cplusplus
10338}
b9602884 10339#endif
10340
cbdd3138
BM
10341int
10342main ()
10343{
81ae7da0 10344return f != $ac_func;
f69335e6 10345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>conftest.er1
f69335e6 10352 ac_status=$?
cbdd3138
BM
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
f69335e6 10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
64b46a71 10358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
cbdd3138
BM
10361 ac_status=$?
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
f69335e6 10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 eval "$as_ac_var=yes"
10371else
10372 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
81ae7da0 10375eval "$as_ac_var=no"
f69335e6 10376fi
81ae7da0 10377rm -f conftest.err conftest.$ac_objext \
cbdd3138 10378 conftest$ac_exeext conftest.$ac_ext
f69335e6 10379fi
81ae7da0
BM
10380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10382if test `eval echo '${'$as_ac_var'}'` = yes; then
10383 cat >>confdefs.h <<_ACEOF
10384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10385_ACEOF
10386 cat >>confdefs.h <<\_ACEOF
b9602884 10387#define HAVE_SETPROCTITLE 1
f69335e6 10388_ACEOF
b9602884 10389
10390else
f69335e6 10391
81ae7da0
BM
10392echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
10393echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
f69335e6 10394if test "${ac_cv_lib_util_setproctitle+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
afebe156 10396else
f69335e6 10397 ac_check_lib_save_LIBS=$LIBS
afebe156 10398LIBS="-lutil $LIBS"
f69335e6 10399cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
f69335e6 10405
81ae7da0 10406/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10407#ifdef __cplusplus
10408extern "C"
10409#endif
81ae7da0
BM
10410/* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
f69335e6 10412char setproctitle ();
f69335e6 10413int
10414main ()
10415{
81ae7da0 10416setproctitle ();
f69335e6 10417 ;
10418 return 0;
10419}
10420_ACEOF
10421rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>conftest.er1
f69335e6 10424 ac_status=$?
cbdd3138
BM
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
f69335e6 10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } &&
64b46a71 10430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
cbdd3138
BM
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; } &&
10436 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
f69335e6 10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ac_cv_lib_util_setproctitle=yes
10443else
10444 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10445sed 's/^/| /' conftest.$ac_ext >&5
10446
81ae7da0 10447ac_cv_lib_util_setproctitle=no
f69335e6 10448fi
81ae7da0 10449rm -f conftest.err conftest.$ac_objext \
cbdd3138 10450 conftest$ac_exeext conftest.$ac_ext
f69335e6 10451LIBS=$ac_check_lib_save_LIBS
10452fi
81ae7da0
BM
10453echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
10454echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
f69335e6 10455if test $ac_cv_lib_util_setproctitle = yes; then
10456 cat >>confdefs.h <<\_ACEOF
afebe156 10457#define HAVE_SETPROCTITLE 1
f69335e6 10458_ACEOF
afebe156 10459 IRCDLIBS="$IRCDLIBS-lutil"
10460else
ab9db562 10461
f69335e6 10462cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
ab9db562 10468#include <sys/exec.h>
f69335e6 10469
10470_ACEOF
ab9db562 10471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cbdd3138 10472 $EGREP "#define.*PS_STRINGS.*" >/dev/null 2>&1; then
f69335e6 10473 cat >>confdefs.h <<\_ACEOF
ab9db562 10474#define HAVE_PSSTRINGS 1
f69335e6 10475_ACEOF
ab9db562 10476
10477else
f69335e6 10478
10479
ab9db562 10480for ac_func in pstat
10481do
f69335e6 10482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10483echo "$as_me:$LINENO: checking for $ac_func" >&5
10484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10485if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10489/* confdefs.h. */
10490_ACEOF
10491cat confdefs.h >>conftest.$ac_ext
10492cat >>conftest.$ac_ext <<_ACEOF
10493/* end confdefs.h. */
10494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10496#define $ac_func innocuous_$ac_func
10497
ab9db562 10498/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10499 which can conflict with char $ac_func (); below.
10500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501 <limits.h> exists even on freestanding compilers. */
10502
10503#ifdef __STDC__
10504# include <limits.h>
10505#else
10506# include <assert.h>
10507#endif
10508
10509#undef $ac_func
10510
81ae7da0 10511/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10512#ifdef __cplusplus
10513extern "C"
81ae7da0 10514{
f69335e6 10515#endif
81ae7da0
BM
10516/* We use char because int might match the return type of a gcc2
10517 builtin and then its argument prototype would still apply. */
f69335e6 10518char $ac_func ();
ab9db562 10519/* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
81ae7da0 10522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
ab9db562 10523choke me
81ae7da0
BM
10524#else
10525char (*f) () = $ac_func;
10526#endif
10527#ifdef __cplusplus
10528}
ab9db562 10529#endif
10530
cbdd3138
BM
10531int
10532main ()
10533{
81ae7da0 10534return f != $ac_func;
f69335e6 10535 ;
10536 return 0;
10537}
10538_ACEOF
10539rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541 (eval $ac_link) 2>conftest.er1
f69335e6 10542 ac_status=$?
cbdd3138
BM
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
f69335e6 10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
64b46a71 10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550 (eval $ac_try) 2>&5
cbdd3138
BM
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; } &&
10554 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
f69335e6 10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 eval "$as_ac_var=yes"
10561else
10562 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10563sed 's/^/| /' conftest.$ac_ext >&5
10564
81ae7da0 10565eval "$as_ac_var=no"
f69335e6 10566fi
81ae7da0 10567rm -f conftest.err conftest.$ac_objext \
cbdd3138 10568 conftest$ac_exeext conftest.$ac_ext
f69335e6 10569fi
81ae7da0
BM
10570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10572if test `eval echo '${'$as_ac_var'}'` = yes; then
10573 cat >>confdefs.h <<_ACEOF
10574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10575_ACEOF
10576 cat >>confdefs.h <<\_ACEOF
ab9db562 10577#define HAVE_PSTAT 1
f69335e6 10578_ACEOF
ab9db562 10579
ab9db562 10580fi
10581done
10582
10583
10584fi
10585rm -f conftest*
10586
10587
10588fi
10589
10590
10591fi
10592done
10593
81ae7da0
BM
10594echo "$as_me:$LINENO: checking what type of signals you have" >&5
10595echo $ECHO_N "checking what type of signals you have... $ECHO_C" >&6
f69335e6 10596if test "${ac_cv_sigtype+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 10598else
f69335e6 10599
f40ec73c 10600if test "$cross_compiling" = yes; then
cbdd3138
BM
10601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10602See \`config.log' for more details." >&5
10603echo "$as_me: error: cannot run test program while cross compiling
10604See \`config.log' for more details." >&2;}
f69335e6 10605 { (exit 1); exit 1; }; }
f40ec73c 10606else
f69335e6 10607 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
f40ec73c 10613
10614#include <signal.h>
10615int main() {
10616sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L);
10617}
10618
f69335e6 10619_ACEOF
10620rm -f conftest$ac_exeext
81ae7da0
BM
10621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10622 (eval $ac_link) 2>&5
f69335e6 10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
f69335e6 10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; }; then
f40ec73c 10631 ac_cv_sigtype=POSIX
10632else
f69335e6 10633 echo "$as_me: program exited with status $ac_status" >&5
10634echo "$as_me: failed program was:" >&5
cbdd3138
BM
10635sed 's/^/| /' conftest.$ac_ext >&5
10636
f69335e6 10637( exit $ac_status )
10638
f40ec73c 10639if test "$cross_compiling" = yes; then
cbdd3138
BM
10640 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10641See \`config.log' for more details." >&5
10642echo "$as_me: error: cannot run test program while cross compiling
10643See \`config.log' for more details." >&2;}
f69335e6 10644 { (exit 1); exit 1; }; }
f40ec73c 10645else
f69335e6 10646 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10647/* confdefs.h. */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
10651/* end confdefs.h. */
f40ec73c 10652
10653#include <signal.h>
10654int calls = 0;
10655void handler()
10656{
10657if (calls)
10658return;
10659calls++;
10660kill(getpid(), SIGTERM);
10661sleep(1);
10662}
10663
10664int main() {
10665signal(SIGTERM, handler);
10666kill(getpid(), SIGTERM);
10667exit(0);
10668}
10669
f69335e6 10670_ACEOF
10671rm -f conftest$ac_exeext
81ae7da0
BM
10672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673 (eval $ac_link) 2>&5
f69335e6 10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
f69335e6 10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
f40ec73c 10682 ac_cv_sigtype=BSD
10683else
f69335e6 10684 echo "$as_me: program exited with status $ac_status" >&5
10685echo "$as_me: failed program was:" >&5
cbdd3138
BM
10686sed 's/^/| /' conftest.$ac_ext >&5
10687
f69335e6 10688( exit $ac_status )
10689ac_cv_sigtype=SYSV
f40ec73c 10690fi
81ae7da0 10691rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 10692fi
f40ec73c 10693fi
81ae7da0 10694rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 10695fi
f40ec73c 10696fi
81ae7da0
BM
10697echo "$as_me:$LINENO: result: $ac_cv_sigtype" >&5
10698echo "${ECHO_T}$ac_cv_sigtype" >&6
f40ec73c 10699
776fa42c 10700if test "$ac_cv_sigtype" = "POSIX"; then
f69335e6 10701cat >>confdefs.h <<\_ACEOF
f40ec73c 10702#define POSIX_SIGNALS 1
f69335e6 10703_ACEOF
f40ec73c 10704
776fa42c 10705elif test "$ac_cv_sigtype" = "BSD"; then
f69335e6 10706cat >>confdefs.h <<\_ACEOF
f40ec73c 10707#define BSD_RELIABLE_SIGNALS 1
f69335e6 10708_ACEOF
f40ec73c 10709
10710else
f69335e6 10711cat >>confdefs.h <<\_ACEOF
f40ec73c 10712#define SYSV_UNRELIABLE_SIGNALS 1
f69335e6 10713_ACEOF
10714
10715fi
f40ec73c 10716
f40ec73c 10717for ac_func in strtoken
10718do
f69335e6 10719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10720echo "$as_me:$LINENO: checking for $ac_func" >&5
10721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10722if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10726/* confdefs.h. */
10727_ACEOF
10728cat confdefs.h >>conftest.$ac_ext
10729cat >>conftest.$ac_ext <<_ACEOF
10730/* end confdefs.h. */
10731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10733#define $ac_func innocuous_$ac_func
10734
f40ec73c 10735/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10736 which can conflict with char $ac_func (); below.
10737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738 <limits.h> exists even on freestanding compilers. */
10739
10740#ifdef __STDC__
10741# include <limits.h>
10742#else
10743# include <assert.h>
10744#endif
10745
10746#undef $ac_func
10747
81ae7da0 10748/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10749#ifdef __cplusplus
10750extern "C"
81ae7da0 10751{
f69335e6 10752#endif
81ae7da0
BM
10753/* We use char because int might match the return type of a gcc2
10754 builtin and then its argument prototype would still apply. */
f69335e6 10755char $ac_func ();
f40ec73c 10756/* The GNU C library defines this for functions which it implements
10757 to always fail with ENOSYS. Some functions are actually named
10758 something starting with __ and the normal name is an alias. */
81ae7da0 10759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 10760choke me
81ae7da0
BM
10761#else
10762char (*f) () = $ac_func;
10763#endif
10764#ifdef __cplusplus
10765}
f40ec73c 10766#endif
10767
cbdd3138
BM
10768int
10769main ()
10770{
81ae7da0 10771return f != $ac_func;
f69335e6 10772 ;
10773 return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10778 (eval $ac_link) 2>conftest.er1
f69335e6 10779 ac_status=$?
cbdd3138
BM
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
f69335e6 10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
64b46a71 10785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
cbdd3138
BM
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793 (eval $ac_try) 2>&5
f69335e6 10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 eval "$as_ac_var=yes"
10798else
10799 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10800sed 's/^/| /' conftest.$ac_ext >&5
10801
81ae7da0 10802eval "$as_ac_var=no"
f69335e6 10803fi
81ae7da0 10804rm -f conftest.err conftest.$ac_objext \
cbdd3138 10805 conftest$ac_exeext conftest.$ac_ext
f69335e6 10806fi
81ae7da0
BM
10807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10809if test `eval echo '${'$as_ac_var'}'` = yes; then
10810 cat >>confdefs.h <<_ACEOF
10811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10812_ACEOF
10813
10814else
10815 cat >>confdefs.h <<\_ACEOF
f40ec73c 10816#define NEED_STRTOKEN 1
f69335e6 10817_ACEOF
f40ec73c 10818
10819fi
10820done
10821
f69335e6 10822
f40ec73c 10823for ac_func in strtok
10824do
f69335e6 10825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10826echo "$as_me:$LINENO: checking for $ac_func" >&5
10827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10828if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839#define $ac_func innocuous_$ac_func
10840
f40ec73c 10841/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10842 which can conflict with char $ac_func (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
10845
10846#ifdef __STDC__
10847# include <limits.h>
10848#else
10849# include <assert.h>
10850#endif
10851
10852#undef $ac_func
10853
81ae7da0 10854/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10855#ifdef __cplusplus
10856extern "C"
81ae7da0 10857{
f69335e6 10858#endif
81ae7da0
BM
10859/* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */
f69335e6 10861char $ac_func ();
f40ec73c 10862/* The GNU C library defines this for functions which it implements
10863 to always fail with ENOSYS. Some functions are actually named
10864 something starting with __ and the normal name is an alias. */
81ae7da0 10865#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 10866choke me
81ae7da0
BM
10867#else
10868char (*f) () = $ac_func;
10869#endif
10870#ifdef __cplusplus
10871}
f40ec73c 10872#endif
10873
cbdd3138
BM
10874int
10875main ()
10876{
81ae7da0 10877return f != $ac_func;
f69335e6 10878 ;
10879 return 0;
10880}
10881_ACEOF
10882rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10884 (eval $ac_link) 2>conftest.er1
f69335e6 10885 ac_status=$?
cbdd3138
BM
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
f69335e6 10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } &&
64b46a71 10891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
cbdd3138
BM
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
f69335e6 10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 eval "$as_ac_var=yes"
10904else
10905 echo "$as_me: failed program was:" >&5
cbdd3138
BM
10906sed 's/^/| /' conftest.$ac_ext >&5
10907
81ae7da0 10908eval "$as_ac_var=no"
f69335e6 10909fi
81ae7da0 10910rm -f conftest.err conftest.$ac_objext \
cbdd3138 10911 conftest$ac_exeext conftest.$ac_ext
f69335e6 10912fi
81ae7da0
BM
10913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10914echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 10915if test `eval echo '${'$as_ac_var'}'` = yes; then
10916 cat >>confdefs.h <<_ACEOF
10917#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10918_ACEOF
10919
10920else
10921 cat >>confdefs.h <<\_ACEOF
f40ec73c 10922#define NEED_STRTOK 1
f69335e6 10923_ACEOF
f40ec73c 10924
10925fi
10926done
10927
f69335e6 10928
f40ec73c 10929for ac_func in strerror
10930do
f69335e6 10931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
10932echo "$as_me:$LINENO: checking for $ac_func" >&5
10933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10934if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10945#define $ac_func innocuous_$ac_func
10946
f40ec73c 10947/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
10948 which can conflict with char $ac_func (); below.
10949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10950 <limits.h> exists even on freestanding compilers. */
10951
10952#ifdef __STDC__
10953# include <limits.h>
10954#else
10955# include <assert.h>
10956#endif
10957
10958#undef $ac_func
10959
81ae7da0 10960/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 10961#ifdef __cplusplus
10962extern "C"
81ae7da0 10963{
f69335e6 10964#endif
81ae7da0
BM
10965/* We use char because int might match the return type of a gcc2
10966 builtin and then its argument prototype would still apply. */
f69335e6 10967char $ac_func ();
f40ec73c 10968/* The GNU C library defines this for functions which it implements
10969 to always fail with ENOSYS. Some functions are actually named
10970 something starting with __ and the normal name is an alias. */
81ae7da0 10971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 10972choke me
81ae7da0
BM
10973#else
10974char (*f) () = $ac_func;
10975#endif
10976#ifdef __cplusplus
10977}
f40ec73c 10978#endif
10979
cbdd3138
BM
10980int
10981main ()
10982{
81ae7da0 10983return f != $ac_func;
f69335e6 10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
10989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>conftest.er1
f69335e6 10991 ac_status=$?
cbdd3138
BM
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
f69335e6 10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
64b46a71 10997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
cbdd3138
BM
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
f69335e6 11006 ac_status=$?
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 eval "$as_ac_var=yes"
11010else
11011 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11012sed 's/^/| /' conftest.$ac_ext >&5
11013
81ae7da0 11014eval "$as_ac_var=no"
f69335e6 11015fi
81ae7da0 11016rm -f conftest.err conftest.$ac_objext \
cbdd3138 11017 conftest$ac_exeext conftest.$ac_ext
f69335e6 11018fi
81ae7da0
BM
11019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11021if test `eval echo '${'$as_ac_var'}'` = yes; then
11022 cat >>confdefs.h <<_ACEOF
11023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11024_ACEOF
11025
11026else
11027 cat >>confdefs.h <<\_ACEOF
f40ec73c 11028#define NEED_STRERROR 1
f69335e6 11029_ACEOF
f40ec73c 11030
11031fi
11032done
11033
f69335e6 11034
f40ec73c 11035for ac_func in index
11036do
f69335e6 11037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11038echo "$as_me:$LINENO: checking for $ac_func" >&5
11039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11040if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11042else
11043 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11044/* confdefs.h. */
11045_ACEOF
11046cat confdefs.h >>conftest.$ac_ext
11047cat >>conftest.$ac_ext <<_ACEOF
11048/* end confdefs.h. */
11049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11051#define $ac_func innocuous_$ac_func
11052
f40ec73c 11053/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11054 which can conflict with char $ac_func (); below.
11055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056 <limits.h> exists even on freestanding compilers. */
11057
11058#ifdef __STDC__
11059# include <limits.h>
11060#else
11061# include <assert.h>
11062#endif
11063
11064#undef $ac_func
11065
81ae7da0 11066/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11067#ifdef __cplusplus
11068extern "C"
81ae7da0 11069{
f69335e6 11070#endif
81ae7da0
BM
11071/* We use char because int might match the return type of a gcc2
11072 builtin and then its argument prototype would still apply. */
f69335e6 11073char $ac_func ();
f40ec73c 11074/* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
81ae7da0 11077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11078choke me
81ae7da0
BM
11079#else
11080char (*f) () = $ac_func;
11081#endif
11082#ifdef __cplusplus
11083}
f40ec73c 11084#endif
11085
cbdd3138
BM
11086int
11087main ()
11088{
81ae7da0 11089return f != $ac_func;
f69335e6 11090 ;
11091 return 0;
11092}
11093_ACEOF
11094rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11096 (eval $ac_link) 2>conftest.er1
f69335e6 11097 ac_status=$?
cbdd3138
BM
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
f69335e6 11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
64b46a71 11103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
cbdd3138
BM
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
f69335e6 11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 eval "$as_ac_var=yes"
11116else
11117 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
81ae7da0 11120eval "$as_ac_var=no"
f69335e6 11121fi
81ae7da0 11122rm -f conftest.err conftest.$ac_objext \
cbdd3138 11123 conftest$ac_exeext conftest.$ac_ext
f69335e6 11124fi
81ae7da0
BM
11125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11126echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11127if test `eval echo '${'$as_ac_var'}'` = yes; then
11128 cat >>confdefs.h <<_ACEOF
11129#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11130_ACEOF
11131
11132else
11133 cat >>confdefs.h <<\_ACEOF
f40ec73c 11134#define NOINDEX 1
f69335e6 11135_ACEOF
f40ec73c 11136
11137fi
11138done
11139
f69335e6 11140
f40ec73c 11141for ac_func in strtoul
11142do
f69335e6 11143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11144echo "$as_me:$LINENO: checking for $ac_func" >&5
11145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11146if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11157#define $ac_func innocuous_$ac_func
11158
f40ec73c 11159/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11160 which can conflict with char $ac_func (); below.
11161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11162 <limits.h> exists even on freestanding compilers. */
11163
11164#ifdef __STDC__
11165# include <limits.h>
11166#else
11167# include <assert.h>
11168#endif
11169
11170#undef $ac_func
11171
81ae7da0 11172/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11173#ifdef __cplusplus
11174extern "C"
81ae7da0 11175{
f69335e6 11176#endif
81ae7da0
BM
11177/* We use char because int might match the return type of a gcc2
11178 builtin and then its argument prototype would still apply. */
f69335e6 11179char $ac_func ();
f40ec73c 11180/* The GNU C library defines this for functions which it implements
11181 to always fail with ENOSYS. Some functions are actually named
11182 something starting with __ and the normal name is an alias. */
81ae7da0 11183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11184choke me
81ae7da0
BM
11185#else
11186char (*f) () = $ac_func;
11187#endif
11188#ifdef __cplusplus
11189}
f40ec73c 11190#endif
11191
cbdd3138
BM
11192int
11193main ()
11194{
81ae7da0 11195return f != $ac_func;
f69335e6 11196 ;
11197 return 0;
11198}
11199_ACEOF
11200rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11202 (eval $ac_link) 2>conftest.er1
f69335e6 11203 ac_status=$?
cbdd3138
BM
11204 grep -v '^ *+' conftest.er1 >conftest.err
11205 rm -f conftest.er1
11206 cat conftest.err >&5
f69335e6 11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
64b46a71 11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
cbdd3138
BM
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; } &&
11215 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
f69335e6 11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; }; then
11221 eval "$as_ac_var=yes"
11222else
11223 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11224sed 's/^/| /' conftest.$ac_ext >&5
11225
81ae7da0 11226eval "$as_ac_var=no"
f69335e6 11227fi
81ae7da0 11228rm -f conftest.err conftest.$ac_objext \
cbdd3138 11229 conftest$ac_exeext conftest.$ac_ext
f69335e6 11230fi
81ae7da0
BM
11231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11233if test `eval echo '${'$as_ac_var'}'` = yes; then
11234 cat >>confdefs.h <<_ACEOF
11235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11236_ACEOF
11237
11238else
11239 STRTOUL="strtoul.o"
f40ec73c 11240fi
11241done
11242
f69335e6 11243
f40ec73c 11244for ac_func in bcopy
11245do
f69335e6 11246as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11247echo "$as_me:$LINENO: checking for $ac_func" >&5
11248echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11249if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11250 echo $ECHO_N "(cached) $ECHO_C" >&6
11251else
11252 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11253/* confdefs.h. */
11254_ACEOF
11255cat confdefs.h >>conftest.$ac_ext
11256cat >>conftest.$ac_ext <<_ACEOF
11257/* end confdefs.h. */
11258/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11260#define $ac_func innocuous_$ac_func
11261
f40ec73c 11262/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11263 which can conflict with char $ac_func (); below.
11264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265 <limits.h> exists even on freestanding compilers. */
11266
11267#ifdef __STDC__
11268# include <limits.h>
11269#else
11270# include <assert.h>
11271#endif
11272
11273#undef $ac_func
11274
81ae7da0 11275/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11276#ifdef __cplusplus
11277extern "C"
81ae7da0 11278{
f69335e6 11279#endif
81ae7da0
BM
11280/* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
f69335e6 11282char $ac_func ();
f40ec73c 11283/* The GNU C library defines this for functions which it implements
11284 to always fail with ENOSYS. Some functions are actually named
11285 something starting with __ and the normal name is an alias. */
81ae7da0 11286#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11287choke me
81ae7da0
BM
11288#else
11289char (*f) () = $ac_func;
11290#endif
11291#ifdef __cplusplus
11292}
f40ec73c 11293#endif
11294
cbdd3138
BM
11295int
11296main ()
11297{
81ae7da0 11298return f != $ac_func;
f69335e6 11299 ;
11300 return 0;
11301}
11302_ACEOF
11303rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>conftest.er1
f69335e6 11306 ac_status=$?
cbdd3138
BM
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
f69335e6 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
64b46a71 11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
cbdd3138
BM
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
f69335e6 11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 eval "$as_ac_var=yes"
11325else
11326 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
81ae7da0 11329eval "$as_ac_var=no"
f69335e6 11330fi
81ae7da0 11331rm -f conftest.err conftest.$ac_objext \
cbdd3138 11332 conftest$ac_exeext conftest.$ac_ext
f69335e6 11333fi
81ae7da0
BM
11334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11336if test `eval echo '${'$as_ac_var'}'` = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11339_ACEOF
11340
11341else
11342 cat >>confdefs.h <<\_ACEOF
f40ec73c 11343#define NEED_BCOPY 1
f69335e6 11344_ACEOF
f40ec73c 11345
11346fi
11347done
11348
f69335e6 11349
f40ec73c 11350for ac_func in bcmp
11351do
f69335e6 11352as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11353echo "$as_me:$LINENO: checking for $ac_func" >&5
11354echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11355if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11357else
11358 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
11364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11366#define $ac_func innocuous_$ac_func
11367
f40ec73c 11368/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11369 which can conflict with char $ac_func (); below.
11370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11371 <limits.h> exists even on freestanding compilers. */
11372
11373#ifdef __STDC__
11374# include <limits.h>
11375#else
11376# include <assert.h>
11377#endif
11378
11379#undef $ac_func
11380
81ae7da0 11381/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11382#ifdef __cplusplus
11383extern "C"
81ae7da0 11384{
f69335e6 11385#endif
81ae7da0
BM
11386/* We use char because int might match the return type of a gcc2
11387 builtin and then its argument prototype would still apply. */
f69335e6 11388char $ac_func ();
f40ec73c 11389/* The GNU C library defines this for functions which it implements
11390 to always fail with ENOSYS. Some functions are actually named
11391 something starting with __ and the normal name is an alias. */
81ae7da0 11392#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11393choke me
81ae7da0
BM
11394#else
11395char (*f) () = $ac_func;
11396#endif
11397#ifdef __cplusplus
11398}
f40ec73c 11399#endif
11400
cbdd3138
BM
11401int
11402main ()
11403{
81ae7da0 11404return f != $ac_func;
f69335e6 11405 ;
11406 return 0;
11407}
11408_ACEOF
11409rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11411 (eval $ac_link) 2>conftest.er1
f69335e6 11412 ac_status=$?
cbdd3138
BM
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
f69335e6 11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
64b46a71 11418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
cbdd3138
BM
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
f69335e6 11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 eval "$as_ac_var=yes"
11431else
11432 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11433sed 's/^/| /' conftest.$ac_ext >&5
11434
81ae7da0 11435eval "$as_ac_var=no"
f69335e6 11436fi
81ae7da0 11437rm -f conftest.err conftest.$ac_objext \
cbdd3138 11438 conftest$ac_exeext conftest.$ac_ext
f69335e6 11439fi
81ae7da0
BM
11440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11442if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11445_ACEOF
11446
11447else
11448 cat >>confdefs.h <<\_ACEOF
f40ec73c 11449#define NEED_BCMP 1
f69335e6 11450_ACEOF
f40ec73c 11451
11452fi
11453done
11454
f69335e6 11455
f40ec73c 11456for ac_func in bzero
11457do
f69335e6 11458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11459echo "$as_me:$LINENO: checking for $ac_func" >&5
11460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11461if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
11464 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11465/* confdefs.h. */
11466_ACEOF
11467cat confdefs.h >>conftest.$ac_ext
11468cat >>conftest.$ac_ext <<_ACEOF
11469/* end confdefs.h. */
11470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11472#define $ac_func innocuous_$ac_func
11473
f40ec73c 11474/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11475 which can conflict with char $ac_func (); below.
11476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477 <limits.h> exists even on freestanding compilers. */
11478
11479#ifdef __STDC__
11480# include <limits.h>
11481#else
11482# include <assert.h>
11483#endif
11484
11485#undef $ac_func
11486
81ae7da0 11487/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11488#ifdef __cplusplus
11489extern "C"
81ae7da0 11490{
f69335e6 11491#endif
81ae7da0
BM
11492/* We use char because int might match the return type of a gcc2
11493 builtin and then its argument prototype would still apply. */
f69335e6 11494char $ac_func ();
f40ec73c 11495/* The GNU C library defines this for functions which it implements
11496 to always fail with ENOSYS. Some functions are actually named
11497 something starting with __ and the normal name is an alias. */
81ae7da0 11498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11499choke me
81ae7da0
BM
11500#else
11501char (*f) () = $ac_func;
11502#endif
11503#ifdef __cplusplus
11504}
f40ec73c 11505#endif
11506
cbdd3138
BM
11507int
11508main ()
11509{
81ae7da0 11510return f != $ac_func;
f69335e6 11511 ;
11512 return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11517 (eval $ac_link) 2>conftest.er1
f69335e6 11518 ac_status=$?
cbdd3138
BM
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
f69335e6 11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
64b46a71 11524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
cbdd3138
BM
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
f69335e6 11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 eval "$as_ac_var=yes"
11537else
11538 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11539sed 's/^/| /' conftest.$ac_ext >&5
11540
81ae7da0 11541eval "$as_ac_var=no"
f69335e6 11542fi
81ae7da0 11543rm -f conftest.err conftest.$ac_objext \
cbdd3138 11544 conftest$ac_exeext conftest.$ac_ext
f69335e6 11545fi
81ae7da0
BM
11546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11548if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h <<_ACEOF
11550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11551_ACEOF
11552
11553else
11554 cat >>confdefs.h <<\_ACEOF
f40ec73c 11555#define NEED_BZERO 1
f69335e6 11556_ACEOF
f40ec73c 11557
11558fi
11559done
11560
f69335e6 11561
f40ec73c 11562for ac_func in strcasecmp
11563do
f69335e6 11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11565echo "$as_me:$LINENO: checking for $ac_func" >&5
11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11567if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578#define $ac_func innocuous_$ac_func
11579
f40ec73c 11580/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11584
11585#ifdef __STDC__
11586# include <limits.h>
11587#else
11588# include <assert.h>
11589#endif
11590
11591#undef $ac_func
11592
81ae7da0 11593/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11594#ifdef __cplusplus
11595extern "C"
81ae7da0 11596{
f69335e6 11597#endif
81ae7da0
BM
11598/* We use char because int might match the return type of a gcc2
11599 builtin and then its argument prototype would still apply. */
f69335e6 11600char $ac_func ();
f40ec73c 11601/* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
81ae7da0 11604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11605choke me
81ae7da0
BM
11606#else
11607char (*f) () = $ac_func;
11608#endif
11609#ifdef __cplusplus
11610}
f40ec73c 11611#endif
11612
cbdd3138
BM
11613int
11614main ()
11615{
81ae7da0 11616return f != $ac_func;
f69335e6 11617 ;
11618 return 0;
11619}
11620_ACEOF
11621rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>conftest.er1
f69335e6 11624 ac_status=$?
cbdd3138
BM
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
f69335e6 11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
64b46a71 11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
cbdd3138
BM
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
f69335e6 11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 eval "$as_ac_var=yes"
11643else
11644 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
81ae7da0 11647eval "$as_ac_var=no"
f69335e6 11648fi
81ae7da0 11649rm -f conftest.err conftest.$ac_objext \
cbdd3138 11650 conftest$ac_exeext conftest.$ac_ext
f69335e6 11651fi
81ae7da0
BM
11652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11654if test `eval echo '${'$as_ac_var'}'` = yes; then
11655 cat >>confdefs.h <<_ACEOF
11656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11657_ACEOF
11658 cat >>confdefs.h <<\_ACEOF
f40ec73c 11659#define GOT_STRCASECMP 1
f69335e6 11660_ACEOF
f40ec73c 11661
f40ec73c 11662fi
11663done
11664
825ee732 11665save_libs="$LIBS"
11666LIBS="$LIBS $SOCKLIB $INETLIB"
f69335e6 11667
f40ec73c 11668for ac_func in inet_addr
11669do
f69335e6 11670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11671echo "$as_me:$LINENO: checking for $ac_func" >&5
11672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11673if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675else
11676 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684#define $ac_func innocuous_$ac_func
11685
f40ec73c 11686/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11690
11691#ifdef __STDC__
11692# include <limits.h>
11693#else
11694# include <assert.h>
11695#endif
11696
11697#undef $ac_func
11698
81ae7da0 11699/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11700#ifdef __cplusplus
11701extern "C"
81ae7da0 11702{
f69335e6 11703#endif
81ae7da0
BM
11704/* We use char because int might match the return type of a gcc2
11705 builtin and then its argument prototype would still apply. */
f69335e6 11706char $ac_func ();
f40ec73c 11707/* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
81ae7da0 11710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11711choke me
81ae7da0
BM
11712#else
11713char (*f) () = $ac_func;
11714#endif
11715#ifdef __cplusplus
11716}
f40ec73c 11717#endif
11718
cbdd3138
BM
11719int
11720main ()
11721{
81ae7da0 11722return f != $ac_func;
f69335e6 11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>conftest.er1
f69335e6 11730 ac_status=$?
cbdd3138
BM
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
f69335e6 11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } &&
64b46a71 11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
cbdd3138
BM
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
f69335e6 11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 eval "$as_ac_var=yes"
11749else
11750 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11751sed 's/^/| /' conftest.$ac_ext >&5
11752
81ae7da0 11753eval "$as_ac_var=no"
f69335e6 11754fi
81ae7da0 11755rm -f conftest.err conftest.$ac_objext \
cbdd3138 11756 conftest$ac_exeext conftest.$ac_ext
f69335e6 11757fi
81ae7da0
BM
11758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11759echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11760if test `eval echo '${'$as_ac_var'}'` = yes; then
11761 cat >>confdefs.h <<_ACEOF
11762#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11763_ACEOF
11764
11765else
11766 cat >>confdefs.h <<\_ACEOF
f40ec73c 11767#define NEED_INET_ADDR 1
f69335e6 11768_ACEOF
f40ec73c 11769
11770fi
11771done
11772
f69335e6 11773
f40ec73c 11774for ac_func in inet_ntoa
11775do
f69335e6 11776as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11777echo "$as_me:$LINENO: checking for $ac_func" >&5
11778echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11779if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781else
11782 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11790#define $ac_func innocuous_$ac_func
11791
f40ec73c 11792/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11793 which can conflict with char $ac_func (); below.
11794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11795 <limits.h> exists even on freestanding compilers. */
11796
11797#ifdef __STDC__
11798# include <limits.h>
11799#else
11800# include <assert.h>
11801#endif
11802
11803#undef $ac_func
11804
81ae7da0 11805/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11806#ifdef __cplusplus
11807extern "C"
81ae7da0 11808{
f69335e6 11809#endif
81ae7da0
BM
11810/* We use char because int might match the return type of a gcc2
11811 builtin and then its argument prototype would still apply. */
f69335e6 11812char $ac_func ();
f40ec73c 11813/* The GNU C library defines this for functions which it implements
11814 to always fail with ENOSYS. Some functions are actually named
11815 something starting with __ and the normal name is an alias. */
81ae7da0 11816#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11817choke me
81ae7da0
BM
11818#else
11819char (*f) () = $ac_func;
11820#endif
11821#ifdef __cplusplus
11822}
f40ec73c 11823#endif
11824
cbdd3138
BM
11825int
11826main ()
11827{
81ae7da0 11828return f != $ac_func;
f69335e6 11829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>conftest.er1
f69335e6 11836 ac_status=$?
cbdd3138
BM
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
f69335e6 11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
64b46a71 11842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
cbdd3138
BM
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
f69335e6 11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 eval "$as_ac_var=yes"
11855else
11856 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
81ae7da0 11859eval "$as_ac_var=no"
f69335e6 11860fi
81ae7da0 11861rm -f conftest.err conftest.$ac_objext \
cbdd3138 11862 conftest$ac_exeext conftest.$ac_ext
f69335e6 11863fi
81ae7da0
BM
11864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11865echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11866if test `eval echo '${'$as_ac_var'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11869_ACEOF
11870
11871else
11872 cat >>confdefs.h <<\_ACEOF
f40ec73c 11873#define NEED_INET_NTOA 1
f69335e6 11874_ACEOF
f40ec73c 11875
11876fi
11877done
11878
f69335e6 11879
f40ec73c 11880for ac_func in inet_netof
11881do
f69335e6 11882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11883echo "$as_me:$LINENO: checking for $ac_func" >&5
11884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11885if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887else
11888 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
11894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11896#define $ac_func innocuous_$ac_func
11897
f40ec73c 11898/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
11899 which can conflict with char $ac_func (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11902
11903#ifdef __STDC__
11904# include <limits.h>
11905#else
11906# include <assert.h>
11907#endif
11908
11909#undef $ac_func
11910
81ae7da0 11911/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 11912#ifdef __cplusplus
11913extern "C"
81ae7da0 11914{
f69335e6 11915#endif
81ae7da0
BM
11916/* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
f69335e6 11918char $ac_func ();
f40ec73c 11919/* The GNU C library defines this for functions which it implements
11920 to always fail with ENOSYS. Some functions are actually named
11921 something starting with __ and the normal name is an alias. */
81ae7da0 11922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
f40ec73c 11923choke me
81ae7da0
BM
11924#else
11925char (*f) () = $ac_func;
11926#endif
11927#ifdef __cplusplus
11928}
f40ec73c 11929#endif
11930
cbdd3138
BM
11931int
11932main ()
11933{
81ae7da0 11934return f != $ac_func;
f69335e6 11935 ;
11936 return 0;
11937}
11938_ACEOF
11939rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
11940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11941 (eval $ac_link) 2>conftest.er1
f69335e6 11942 ac_status=$?
cbdd3138
BM
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
f69335e6 11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
64b46a71 11948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
cbdd3138
BM
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
11955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
f69335e6 11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 eval "$as_ac_var=yes"
11961else
11962 echo "$as_me: failed program was:" >&5
cbdd3138
BM
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
81ae7da0 11965eval "$as_ac_var=no"
f69335e6 11966fi
81ae7da0 11967rm -f conftest.err conftest.$ac_objext \
cbdd3138 11968 conftest$ac_exeext conftest.$ac_ext
f69335e6 11969fi
81ae7da0
BM
11970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 11972if test `eval echo '${'$as_ac_var'}'` = yes; then
11973 cat >>confdefs.h <<_ACEOF
11974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11975_ACEOF
11976
11977else
11978 cat >>confdefs.h <<\_ACEOF
f40ec73c 11979#define NEED_INET_NETOF 1
f69335e6 11980_ACEOF
f40ec73c 11981
11982fi
11983done
11984
825ee732 11985LIBS="$save_libs"
f69335e6 11986
65a2668e 11987for ac_func in syslog
11988do
f69335e6 11989as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
11990echo "$as_me:$LINENO: checking for $ac_func" >&5
11991echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11992if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11994else
11995 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12003#define $ac_func innocuous_$ac_func
12004
65a2668e 12005/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
12006 which can conflict with char $ac_func (); below.
12007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12008 <limits.h> exists even on freestanding compilers. */
12009
12010#ifdef __STDC__
12011# include <limits.h>
12012#else
12013# include <assert.h>
12014#endif
12015
12016#undef $ac_func
12017
81ae7da0 12018/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 12019#ifdef __cplusplus
12020extern "C"
81ae7da0 12021{
f69335e6 12022#endif
81ae7da0
BM
12023/* We use char because int might match the return type of a gcc2
12024 builtin and then its argument prototype would still apply. */
f69335e6 12025char $ac_func ();
65a2668e 12026/* The GNU C library defines this for functions which it implements
12027 to always fail with ENOSYS. Some functions are actually named
12028 something starting with __ and the normal name is an alias. */
81ae7da0 12029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65a2668e 12030choke me
81ae7da0
BM
12031#else
12032char (*f) () = $ac_func;
12033#endif
12034#ifdef __cplusplus
12035}
65a2668e 12036#endif
12037
cbdd3138
BM
12038int
12039main ()
12040{
81ae7da0 12041return f != $ac_func;
f69335e6 12042 ;
12043 return 0;
12044}
12045_ACEOF
12046rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
12047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12048 (eval $ac_link) 2>conftest.er1
f69335e6 12049 ac_status=$?
cbdd3138
BM
12050 grep -v '^ *+' conftest.er1 >conftest.err
12051 rm -f conftest.er1
12052 cat conftest.err >&5
f69335e6 12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
64b46a71 12055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
cbdd3138
BM
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
f69335e6 12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 eval "$as_ac_var=yes"
12068else
12069 echo "$as_me: failed program was:" >&5
cbdd3138
BM
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
81ae7da0 12072eval "$as_ac_var=no"
f69335e6 12073fi
81ae7da0 12074rm -f conftest.err conftest.$ac_objext \
cbdd3138 12075 conftest$ac_exeext conftest.$ac_ext
f69335e6 12076fi
81ae7da0
BM
12077echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12078echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 12079if test `eval echo '${'$as_ac_var'}'` = yes; then
12080 cat >>confdefs.h <<_ACEOF
12081#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082_ACEOF
12083 cat >>confdefs.h <<\_ACEOF
65a2668e 12084#define HAVE_SYSLOG 1
f69335e6 12085_ACEOF
65a2668e 12086
65a2668e 12087fi
12088done
12089
f69335e6 12090
65a2668e 12091for ac_func in vsyslog
12092do
f69335e6 12093as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
81ae7da0
BM
12094echo "$as_me:$LINENO: checking for $ac_func" >&5
12095echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12096if eval "test \"\${$as_ac_var+set}\" = set"; then
f69335e6 12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098else
12099 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
12100/* confdefs.h. */
12101_ACEOF
12102cat confdefs.h >>conftest.$ac_ext
12103cat >>conftest.$ac_ext <<_ACEOF
12104/* end confdefs.h. */
12105/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12107#define $ac_func innocuous_$ac_func
12108
65a2668e 12109/* System header to define __stub macros and hopefully few prototypes,
cbdd3138
BM
12110 which can conflict with char $ac_func (); below.
12111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12112 <limits.h> exists even on freestanding compilers. */
12113
12114#ifdef __STDC__
12115# include <limits.h>
12116#else
12117# include <assert.h>
12118#endif
12119
12120#undef $ac_func
12121
81ae7da0 12122/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 12123#ifdef __cplusplus
12124extern "C"
81ae7da0 12125{
f69335e6 12126#endif
81ae7da0
BM
12127/* We use char because int might match the return type of a gcc2
12128 builtin and then its argument prototype would still apply. */
f69335e6 12129char $ac_func ();
65a2668e 12130/* The GNU C library defines this for functions which it implements
12131 to always fail with ENOSYS. Some functions are actually named
12132 something starting with __ and the normal name is an alias. */
81ae7da0 12133#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65a2668e 12134choke me
81ae7da0
BM
12135#else
12136char (*f) () = $ac_func;
12137#endif
12138#ifdef __cplusplus
12139}
65a2668e 12140#endif
12141
cbdd3138
BM
12142int
12143main ()
12144{
81ae7da0 12145return f != $ac_func;
f69335e6 12146 ;
12147 return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
12151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>conftest.er1
f69335e6 12153 ac_status=$?
cbdd3138
BM
12154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
f69335e6 12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
64b46a71 12159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
cbdd3138
BM
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
f69335e6 12168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 eval "$as_ac_var=yes"
12172else
12173 echo "$as_me: failed program was:" >&5
cbdd3138
BM
12174sed 's/^/| /' conftest.$ac_ext >&5
12175
81ae7da0 12176eval "$as_ac_var=no"
f69335e6 12177fi
81ae7da0 12178rm -f conftest.err conftest.$ac_objext \
cbdd3138 12179 conftest$ac_exeext conftest.$ac_ext
f69335e6 12180fi
81ae7da0
BM
12181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
f69335e6 12183if test `eval echo '${'$as_ac_var'}'` = yes; then
12184 cat >>confdefs.h <<_ACEOF
12185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12186_ACEOF
12187 cat >>confdefs.h <<\_ACEOF
65a2668e 12188#define HAVE_VSYSLOG 1
f69335e6 12189_ACEOF
65a2668e 12190
65a2668e 12191fi
12192done
12193
f40ec73c 12194
12195
12196
12197
81ae7da0 12198# Check whether --with-listen or --without-listen was given.
f40ec73c 12199if test "${with_listen+set}" = set; then
81ae7da0
BM
12200 withval="$with_listen"
12201 cat >>confdefs.h <<_ACEOF
f40ec73c 12202#define LISTEN_SIZE $withval
f69335e6 12203_ACEOF
f40ec73c 12204
12205else
f69335e6 12206 cat >>confdefs.h <<\_ACEOF
f40ec73c 12207#define LISTEN_SIZE 5
f69335e6 12208_ACEOF
f40ec73c 12209
81ae7da0 12210fi;
f40ec73c 12211
81ae7da0 12212# Check whether --with-nick-history or --without-nick-history was given.
f40ec73c 12213if test "${with_nick_history+set}" = set; then
81ae7da0
BM
12214 withval="$with_nick_history"
12215 cat >>confdefs.h <<_ACEOF
f40ec73c 12216#define NICKNAMEHISTORYLENGTH $withval
f69335e6 12217_ACEOF
f40ec73c 12218
12219else
f69335e6 12220 cat >>confdefs.h <<\_ACEOF
f40ec73c 12221#define NICKNAMEHISTORYLENGTH 2000
f69335e6 12222_ACEOF
f40ec73c 12223
81ae7da0 12224fi;
f40ec73c 12225
81ae7da0 12226# Check whether --with-sendq or --without-sendq was given.
f40ec73c 12227if test "${with_sendq+set}" = set; then
81ae7da0
BM
12228 withval="$with_sendq"
12229 cat >>confdefs.h <<_ACEOF
f40ec73c 12230#define MAXSENDQLENGTH $withval
f69335e6 12231_ACEOF
f40ec73c 12232
12233else
f69335e6 12234 cat >>confdefs.h <<\_ACEOF
f40ec73c 12235#define MAXSENDQLENGTH 3000000
f69335e6 12236_ACEOF
f40ec73c 12237
81ae7da0 12238fi;
f40ec73c 12239
81ae7da0 12240# Check whether --with-bufferpool or --without-bufferpool was given.
f40ec73c 12241if test "${with_bufferpool+set}" = set; then
81ae7da0
BM
12242 withval="$with_bufferpool"
12243 cat >>confdefs.h <<_ACEOF
12eabdba 12244#define BUFFERPOOL ($withval * MAXSENDQLENGTH)
f69335e6 12245_ACEOF
f40ec73c 12246
12247else
f69335e6 12248 cat >>confdefs.h <<\_ACEOF
0778c391 12249#define BUFFERPOOL (18 * MAXSENDQLENGTH)
f69335e6 12250_ACEOF
f40ec73c 12251
81ae7da0 12252fi;
f40ec73c 12253
81ae7da0 12254# Check whether --with-permissions or --without-permissions was given.
f40ec73c 12255if test "${with_permissions+set}" = set; then
81ae7da0
BM
12256 withval="$with_permissions"
12257 cat >>confdefs.h <<_ACEOF
f40ec73c 12258#define DEFAULT_PERMISSIONS $withval
f69335e6 12259_ACEOF
f40ec73c 12260
12261else
f69335e6 12262 cat >>confdefs.h <<\_ACEOF
f40ec73c 12263#define DEFAULT_PERMISSIONS 0600
f69335e6 12264_ACEOF
12265
81ae7da0 12266fi;
f40ec73c 12267
81ae7da0 12268# Check whether --with-dpath or --without-dpath was given.
f40ec73c 12269if test "${with_dpath+set}" = set; then
81ae7da0
BM
12270 withval="$with_dpath"
12271 cat >>confdefs.h <<_ACEOF
f40ec73c 12272#define DPATH "$withval"
f69335e6 12273_ACEOF
704b6260 12274 IRCDDIR="$withval"
f40ec73c 12275else
f69335e6 12276 cat >>confdefs.h <<_ACEOF
f40ec73c 12277#define DPATH "`pwd`"
f69335e6 12278_ACEOF
704b6260 12279 IRCDDIR="`pwd`"
81ae7da0 12280fi;
f40ec73c 12281
81ae7da0 12282# Check whether --with-fd-setsize or --without-fd-setsize was given.
f40ec73c 12283if test "${with_fd_setsize+set}" = set; then
81ae7da0
BM
12284 withval="$with_fd_setsize"
12285 ac_fd=$withval
f40ec73c 12286else
12287 ac_fd=1024
81ae7da0 12288fi;
f69335e6 12289cat >>confdefs.h <<_ACEOF
519a8f89 12290#define MAXCONNECTIONS $ac_fd
f69335e6 12291_ACEOF
12292
3b0d1625 12293
81ae7da0 12294# Check whether --with-spath or --without-spath was given.
f40ec73c 12295if test "${with_spath+set}" = set; then
81ae7da0
BM
12296 withval="$with_spath"
12297 cat >>confdefs.h <<_ACEOF
ee772480 12298#define SPATH "$withval/ircd"
f69335e6 12299_ACEOF
29b7ea7e 12300 BINDIR="$withval"
f40ec73c 12301else
f69335e6 12302 cat >>confdefs.h <<_ACEOF
f40ec73c 12303#define SPATH "`pwd`/src/ircd"
f69335e6 12304_ACEOF
29b7ea7e 12305 BINDIR="`pwd`/src/ircd"
81ae7da0
BM
12306fi;
12307# Check whether --enable-nospoof or --disable-nospoof was given.
f40ec73c 12308if test "${enable_nospoof+set}" = set; then
81ae7da0
BM
12309 enableval="$enable_nospoof"
12310 cat >>confdefs.h <<\_ACEOF
f40ec73c 12311#define NOSPOOF 1
f69335e6 12312_ACEOF
f40ec73c 12313
81ae7da0
BM
12314fi;
12315# Check whether --enable-prefixaq or --disable-prefixaq was given.
948b4e61 12316if test "${enable_prefixaq+set}" = set; then
81ae7da0
BM
12317 enableval="$enable_prefixaq"
12318 cat >>confdefs.h <<\_ACEOF
948b4e61
BM
12319#define PREFIX_AQ 1
12320_ACEOF
12321
81ae7da0
BM
12322fi;
12323# Check whether --enable-hub or --disable-hub was given.
f40ec73c 12324if test "${enable_hub+set}" = set; then
81ae7da0
BM
12325 enableval="$enable_hub"
12326 cat >>confdefs.h <<\_ACEOF
f40ec73c 12327#define HUB 1
f69335e6 12328_ACEOF
f40ec73c 12329
81ae7da0 12330fi;
06dc8646 12331
81ae7da0 12332# Check whether --with-showlistmodes or --without-showlistmodes was given.
704b6260 12333if test "${with_showlistmodes+set}" = set; then
81ae7da0
BM
12334 withval="$with_showlistmodes"
12335 cat >>confdefs.h <<\_ACEOF
704b6260
BM
12336#define LIST_SHOW_MODES 1
12337_ACEOF
12338
81ae7da0 12339fi;
704b6260 12340
81ae7da0 12341# Check whether --with-topicisnuhost or --without-topicisnuhost was given.
704b6260 12342if test "${with_topicisnuhost+set}" = set; then
81ae7da0
BM
12343 withval="$with_topicisnuhost"
12344 cat >>confdefs.h <<\_ACEOF
704b6260
BM
12345#define TOPIC_NICK_IS_NUHOST 1
12346_ACEOF
12347
81ae7da0 12348fi;
704b6260 12349
81ae7da0 12350# Check whether --with-shunnotices or --without-shunnotices was given.
704b6260 12351if test "${with_shunnotices+set}" = set; then
81ae7da0
BM
12352 withval="$with_shunnotices"
12353 cat >>confdefs.h <<\_ACEOF
704b6260
BM
12354#define SHUN_NOTICES 1
12355_ACEOF
12356
81ae7da0 12357fi;
704b6260 12358
81ae7da0 12359# Check whether --with-no-operoverride or --without-no-operoverride was given.
704b6260 12360if test "${with_no_operoverride+set}" = set; then
81ae7da0
BM
12361 withval="$with_no_operoverride"
12362 cat >>confdefs.h <<\_ACEOF
704b6260
BM
12363#define NO_OPEROVERRIDE 1
12364_ACEOF
12365
81ae7da0 12366fi;
704b6260 12367
81ae7da0 12368# Check whether --with-disableusermod or --without-disableusermod was given.
704b6260 12369if test "${with_disableusermod+set}" = set; then
81ae7da0
BM
12370 withval="$with_disableusermod"
12371 cat >>confdefs.h <<\_ACEOF
704b6260
BM
12372#define DISABLE_USERMOD 1
12373_ACEOF
12374
81ae7da0 12375fi;
704b6260 12376
81ae7da0 12377# Check whether --with-operoverride-verify or --without-operoverride-verify was given.
704b6260 12378if test "${with_operoverride_verify+set}" = set; then
81ae7da0
BM
12379 withval="$with_operoverride_verify"
12380 cat >>confdefs.h <<\_ACEOF
704b6260
BM
12381#define OPEROVERRIDE_VERIFY 1
12382_ACEOF
12383
81ae7da0 12384fi;
704b6260 12385
542fa2bc 12386# Check whether --with-disable-extendedban-stacking or --without-disable-extendedban-stacking was given.
12387if test "${with_disable_extendedban_stacking+set}" = set; then
12388 withval="$with_disable_extendedban_stacking"
12389 cat >>confdefs.h <<\_ACEOF
12390#define DISABLE_STACKED_EXTBANS 1
12391_ACEOF
12392
12393fi;
b4f2619a 12394MODULES_WHICH=commandsandmodules
12395echo "$as_me:$LINENO: checking for how much module building work we need to do" >&5
12396echo $ECHO_N "checking for how much module building work we need to do... $ECHO_C" >&6
12397
12398# Check whether --with-moduleswhich or --without-moduleswhich was given.
12399if test "${with_moduleswhich+set}" = set; then
12400 withval="$with_moduleswhich"
12401 case "$withval" in
12402 yes|no)
12403 ;;
12404 * )
12405 MODULES_WHICH="$withval"
12406 ;;
12407 esac
12408fi;
12409
12410echo "$as_me:$LINENO: result: $MODULES_WHICH" >&5
12411echo "${ECHO_T}$MODULES_WHICH" >&6
542fa2bc 12412
81ae7da0 12413# Check whether --enable-ssl or --disable-ssl was given.
f40ec73c 12414if test "${enable_ssl+set}" = set; then
81ae7da0
BM
12415 enableval="$enable_ssl"
12416
12417echo "$as_me:$LINENO: checking for openssl" >&5
12418echo $ECHO_N "checking for openssl... $ECHO_C" >&6
af289c86 12419 for dir in $enableval /usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr; do
06dc8646 12420 ssldir="$dir"
12421 if test -f "$dir/include/openssl/ssl.h"; then
81ae7da0
BM
12422 echo "$as_me:$LINENO: result: found in $ssldir/include/openssl" >&5
12423echo "${ECHO_T}found in $ssldir/include/openssl" >&6
06dc8646 12424 found_ssl="yes";
dc112427 12425 if test ! "$ssldir" = "/usr" ; then
12426 CFLAGS="$CFLAGS -I$ssldir/include";
12427 fi
06dc8646 12428 break;
12429 fi
12430 if test -f "$dir/include/ssl.h"; then
81ae7da0
BM
12431 echo "$as_me:$LINENO: result: found in $ssldir/include" >&5
12432echo "${ECHO_T}found in $ssldir/include" >&6
06dc8646 12433 found_ssl="yes";
dc112427 12434 if test ! "$ssldir" = "/usr" ; then
12435 CFLAGS="$CFLAGS -I$ssldir/include";
12436 fi
06dc8646 12437 break
12438 fi
12439 done
12440 if test x_$found_ssl != x_yes; then
81ae7da0
BM
12441 echo "$as_me:$LINENO: result: not found" >&5
12442echo "${ECHO_T}not found" >&6
cbdd3138
BM
12443 echo ""
12444 echo "Apparently you do not have both the openssl binary and openssl development libraries installed."
12445 echo "You have two options:"
12446 echo "a) Install the needed binaries and libraries"
12447 echo " and run ./Config"
12448 echo "OR"
12449 echo "b) If you don't need SSL..."
12450 echo " Run ./Config and say 'no' when asked about SSL"
12451 echo ""
12452 exit 1
06dc8646 12453 else
12454 CRYPTOLIB="-lssl -lcrypto";
dc112427 12455 if test ! "$ssldir" = "/usr" ; then
12456 LDFLAGS="$LDFLAGS -L$ssldir/lib";
12457 fi
4ce745ca 12458 cat >>confdefs.h <<\_ACEOF
f40ec73c 12459#define USE_SSL 1
f69335e6 12460_ACEOF
f40ec73c 12461
4ce745ca 12462 fi
f69335e6 12463
81ae7da0 12464fi;
871948d2 12465
06dc8646 12466
81ae7da0 12467# Check whether --enable-ziplinks or --disable-ziplinks was given.
32843244 12468if test "${enable_ziplinks+set}" = set; then
81ae7da0
BM
12469 enableval="$enable_ziplinks"
12470
12471echo "$as_me:$LINENO: checking for zlib" >&5
12472echo $ECHO_N "checking for zlib... $ECHO_C" >&6
af289c86 12473 for dir in $enableval /usr/local /usr /usr/pkg; do
06dc8646 12474 zlibdir="$dir"
12475 if test -f "$dir/include/zlib.h"; then
81ae7da0
BM
12476 echo "$as_me:$LINENO: result: found in $zlibdir" >&5
12477echo "${ECHO_T}found in $zlibdir" >&6
06dc8646 12478 found_zlib="yes";
12479 if test "$zlibdir" = "/usr" ; then
12480 CFLAGS="$CFLAGS -DZIP_LINKS";
12481 else
12482 CFLAGS="$CFLAGS -I$zlibdir/include -DZIP_LINKS";
12483 fi
12484 break;
12485 fi
12486 done
12487 if test x_$found_zlib != x_yes; then
81ae7da0
BM
12488 echo "$as_me:$LINENO: result: not found" >&5
12489echo "${ECHO_T}not found" >&6
cbdd3138
BM
12490 echo ""
12491 echo "Apparently you do not have the zlib development library installed."
12492 echo "You have two options:"
12493 echo "a) Install the zlib development library"
12494 echo " and run ./Config"
12495 echo "OR"
12496 echo "b) If you don't need compressed links..."
12497 echo " Run ./Config and say 'no' when asked about ziplinks support"
12498 echo ""
12499 exit 1
06dc8646 12500 else
12501 IRCDLIBS="$IRCDLIBS -lz";
12502 if test "$zlibdir" != "/usr" ; then
12503 LDFLAGS="$LDFLAGS -L$zlibdir/lib";
12504 fi
12505 HAVE_ZLIB=yes
12506 fi
12507
f40ec73c 12508
81ae7da0 12509fi;
3be92d02 12510
12511
81ae7da0 12512 # Check whether --enable-libcurl or --disable-libcurl was given.
3be92d02 12513if test "${enable_libcurl+set}" = set; then
81ae7da0
BM
12514 enableval="$enable_libcurl"
12515
3be92d02 12516 CURLCFLAG=`$enableval/bin/curl-config --cflags`
3be92d02 12517 CURLLIBS=`$enableval/bin/curl-config --libs`
12518
cbdd3138
BM
12519 if test "x`echo $CURLLIBS |grep ares`" != x ; then
12520 XCURLLIBS="`echo "$CURLLIBS"|sed -r 's/([^ ]+ [^ ]+ )([^ ]+ [^ ]+ )(.+)/\1\3/g' 2>/dev/null`"
12521 if test x"$XCURLLIBS" = x; then
12522 XCURLLIBS="`echo "$CURLLIBS"|sed -E 's/([^ ]+ [^ ]+ )([^ ]+ [^ ]+ )(.+)/\1\3/g' 2>/dev/null`"
12523 if test x"$XCURLLIBS" = x; then
12524 { { echo "$as_me:$LINENO: error: sed appears to be broken. It is needed for a remote includes compile hack." >&5
12525echo "$as_me: error: sed appears to be broken. It is needed for a remote includes compile hack." >&2;}
12526 { (exit 1); exit 1; }; }
12527 fi
12528 fi
12529 CURLLIBS="$XCURLLIBS"
3be92d02 12530 fi
cbdd3138 12531
3be92d02 12532 IRCDLIBS="$IRCDLIBS $CURLLIBS"
cbdd3138 12533 CFLAGS="$CFLAGS $CURLCFLAG -DUSE_LIBCURL"
3be92d02 12534 URL="url.o"
12535
12536
81ae7da0 12537fi;
f69335e6 12538
81ae7da0 12539# Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
32843244 12540if test "${enable_dynamic_linking+set}" = set; then
81ae7da0
BM
12541 enableval="$enable_dynamic_linking"
12542
12543echo "$as_me:$LINENO: checking for dlopen" >&5
12544echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
f69335e6 12545if test "${ac_cv_func_dlopen+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 12547else
f69335e6 12548 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
12549/* confdefs.h. */
12550_ACEOF
12551cat confdefs.h >>conftest.$ac_ext
12552cat >>conftest.$ac_ext <<_ACEOF
12553/* end confdefs.h. */
12554/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12556#define dlopen innocuous_dlopen
12557
12558/* System header to define __stub macros and hopefully few prototypes,
12559 which can conflict with char dlopen (); below.
12560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12561 <limits.h> exists even on freestanding compilers. */
12562
12563#ifdef __STDC__
12564# include <limits.h>
12565#else
12566# include <assert.h>
12567#endif
12568
12569#undef dlopen
12570
81ae7da0 12571/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 12572#ifdef __cplusplus
12573extern "C"
81ae7da0 12574{
f69335e6 12575#endif
81ae7da0
BM
12576/* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
f69335e6 12578char dlopen ();
f40ec73c 12579/* The GNU C library defines this for functions which it implements
12580 to always fail with ENOSYS. Some functions are actually named
12581 something starting with __ and the normal name is an alias. */
81ae7da0 12582#if defined (__stub_dlopen) || defined (__stub___dlopen)
f40ec73c 12583choke me
81ae7da0
BM
12584#else
12585char (*f) () = dlopen;
12586#endif
12587#ifdef __cplusplus
12588}
f40ec73c 12589#endif
12590
cbdd3138
BM
12591int
12592main ()
12593{
81ae7da0 12594return f != dlopen;
f69335e6 12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
12600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12601 (eval $ac_link) 2>conftest.er1
f69335e6 12602 ac_status=$?
cbdd3138
BM
12603 grep -v '^ *+' conftest.er1 >conftest.err
12604 rm -f conftest.er1
12605 cat conftest.err >&5
f69335e6 12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } &&
64b46a71 12608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
cbdd3138
BM
12611 ac_status=$?
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
f69335e6 12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_func_dlopen=yes
12621else
12622 echo "$as_me: failed program was:" >&5
cbdd3138
BM
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
81ae7da0 12625ac_cv_func_dlopen=no
f69335e6 12626fi
81ae7da0 12627rm -f conftest.err conftest.$ac_objext \
cbdd3138 12628 conftest$ac_exeext conftest.$ac_ext
f69335e6 12629fi
81ae7da0
BM
12630echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12631echo "${ECHO_T}$ac_cv_func_dlopen" >&6
f69335e6 12632if test $ac_cv_func_dlopen = yes; then
f40ec73c 12633 :
12634else
81ae7da0
BM
12635 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12636echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
f69335e6 12637if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 12639else
f69335e6 12640 ac_check_lib_save_LIBS=$LIBS
f40ec73c 12641LIBS="-ldl $LIBS"
f69335e6 12642cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
12643/* confdefs.h. */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
12647/* end confdefs.h. */
f69335e6 12648
81ae7da0 12649/* Override any gcc2 internal prototype to avoid an error. */
f69335e6 12650#ifdef __cplusplus
12651extern "C"
12652#endif
81ae7da0
BM
12653/* We use char because int might match the return type of a gcc2
12654 builtin and then its argument prototype would still apply. */
f69335e6 12655char dlopen ();
f69335e6 12656int
12657main ()
12658{
81ae7da0 12659dlopen ();
f69335e6 12660 ;
12661 return 0;
12662}
12663_ACEOF
12664rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
12665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>conftest.er1
f69335e6 12667 ac_status=$?
cbdd3138
BM
12668 grep -v '^ *+' conftest.er1 >conftest.err
12669 rm -f conftest.er1
12670 cat conftest.err >&5
f69335e6 12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
64b46a71 12673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
cbdd3138
BM
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; } &&
12679 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
f69335e6 12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_lib_dl_dlopen=yes
12686else
12687 echo "$as_me: failed program was:" >&5
cbdd3138
BM
12688sed 's/^/| /' conftest.$ac_ext >&5
12689
81ae7da0 12690ac_cv_lib_dl_dlopen=no
f69335e6 12691fi
81ae7da0 12692rm -f conftest.err conftest.$ac_objext \
cbdd3138 12693 conftest$ac_exeext conftest.$ac_ext
f69335e6 12694LIBS=$ac_check_lib_save_LIBS
12695fi
81ae7da0
BM
12696echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12697echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
f69335e6 12698if test $ac_cv_lib_dl_dlopen = yes; then
0ca9f4c2 12699 IRCDLIBS="$IRCDLIBS -ldl"
f40ec73c 12700else
775f3fe2 12701
12702{ echo "$as_me:$LINENO: WARNING: Dynamic linking is not enabled because dlopen was not found" >&5
12703echo "$as_me: WARNING: Dynamic linking is not enabled because dlopen was not found" >&2;}
12704cat >>confdefs.h <<\_ACEOF
f40ec73c 12705#define STATIC_LINKING 1
f69335e6 12706_ACEOF
f40ec73c 12707
775f3fe2 12708
f40ec73c 12709fi
12710
12711fi
12712
775f3fe2 12713
f40ec73c 12714hold_cflags=$CFLAGS
12715CFLAGS="$CFLAGS -export-dynamic"
81ae7da0
BM
12716echo "$as_me:$LINENO: checking if we need the -export-dynamic flag" >&5
12717echo $ECHO_N "checking if we need the -export-dynamic flag... $ECHO_C" >&6
f69335e6 12718if test "${ac_cv_export_dynamic+set}" = set; then
12719 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 12720else
f69335e6 12721
12722cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
12723/* confdefs.h. */
12724_ACEOF
12725cat confdefs.h >>conftest.$ac_ext
12726cat >>conftest.$ac_ext <<_ACEOF
12727/* end confdefs.h. */
f40ec73c 12728
f69335e6 12729int
12730main ()
12731{
f40ec73c 12732int i;
f69335e6 12733 ;
12734 return 0;
12735}
12736_ACEOF
12737rm -f conftest.$ac_objext conftest$ac_exeext
81ae7da0
BM
12738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12739 (eval $ac_link) 2>conftest.er1
f69335e6 12740 ac_status=$?
cbdd3138
BM
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
f69335e6 12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } &&
64b46a71 12746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
cbdd3138
BM
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest$ac_exeext'
81ae7da0
BM
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
f69335e6 12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
f40ec73c 12758 ac_cv_export_dynamic=yes
12759else
f69335e6 12760 echo "$as_me: failed program was:" >&5
cbdd3138
BM
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
81ae7da0 12763ac_cv_export_dynamic=no
f40ec73c 12764fi
81ae7da0 12765rm -f conftest.err conftest.$ac_objext \
cbdd3138 12766 conftest$ac_exeext conftest.$ac_ext
f40ec73c 12767fi
81ae7da0
BM
12768echo "$as_me:$LINENO: result: $ac_cv_export_dynamic" >&5
12769echo "${ECHO_T}$ac_cv_export_dynamic" >&6
776fa42c 12770if test "$ac_cv_export_dynamic" = "no"; then
f40ec73c 12771CFLAGS=$hold_cflags
f40ec73c 12772fi
12773
81ae7da0
BM
12774echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
12775echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
f69335e6 12776if test "${ac_cv_pic+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
f40ec73c 12778else
f69335e6 12779
12780if test "$ac_cv_c_compiler_gnu" = "yes"; then
f40ec73c 12781 ac_cv_pic="-fPIC -DPIC -shared"
878a0f89 12782 case `uname -s` in
12783 Darwin*)
12784 ac_cv_pic="-bundle -flat_namespace -undefined suppress"
12785 ;;
704b6260
BM
12786 HP-UX*)
12787 ac_cv_pic="-fPIC"
12788 ;;
878a0f89 12789 esac
f40ec73c 12790else
12791case `uname -s` in
12792 SunOS*)
12793 ac_cv_pic="-KPIC -DPIC -G"
12794 ;;
12795esac
12796fi
12797
12798fi
81ae7da0
BM
12799echo "$as_me:$LINENO: result: $ac_cv_pic" >&5
12800echo "${ECHO_T}$ac_cv_pic" >&6
12801echo "$as_me:$LINENO: checking if your system prepends an underscore on symbols" >&5
12802echo $ECHO_N "checking if your system prepends an underscore on symbols... $ECHO_C" >&6
f69335e6 12803if test "${ac_cv_underscore+set}" = set; then
12804 echo $ECHO_N "(cached) $ECHO_C" >&6
d29b6498 12805else
f69335e6 12806
d29b6498 12807cat >uscore.c << __EOF__
12808int main() {
12809 return 0;
12810}
12811__EOF__
12812$CC -o uscore $CFLAGS uscore.c 1>&5
12813if test -z "`strings -a uscore |grep '^_main$'`"; then
12814ac_cv_underscore=no
12815else
12816ac_cv_underscore=yes
12817fi
4f1345c3 12818rm -f uscore uscore.c
e77382c1 12819
12820fi
81ae7da0
BM
12821echo "$as_me:$LINENO: result: $ac_cv_underscore" >&5
12822echo "${ECHO_T}$ac_cv_underscore" >&6
d29b6498 12823if test "$ac_cv_underscore" = "yes"; then
f69335e6 12824cat >>confdefs.h <<\_ACEOF
d29b6498 12825#define UNDERSCORE 1
f69335e6 12826_ACEOF
d29b6498 12827
12828fi
12829
5ceda9a5 12830MODULEFLAGS=$ac_cv_pic
f69335e6 12831cat >>confdefs.h <<\_ACEOF
f40ec73c 12832#define DYNAMIC_LINKING 1
f69335e6 12833_ACEOF
f40ec73c 12834
12835
cbdd3138
BM
12836else
12837 cat >>confdefs.h <<\_ACEOF
12838#define STATIC_LINKING 1
12839_ACEOF
12840
81ae7da0
BM
12841fi;
12842# Check whether --enable-inet6 or --disable-inet6 was given.
32843244 12843if test "${enable_inet6+set}" = set; then
81ae7da0
BM
12844 enableval="$enable_inet6"
12845
12846echo "$as_me:$LINENO: checking if your system has IPv6 support" >&5
12847echo $ECHO_N "checking if your system has IPv6 support... $ECHO_C" >&6
f69335e6 12848if test "${ac_cv_ip6+set}" = set; then
12849 echo $ECHO_N "(cached) $ECHO_C" >&6
3b0d1625 12850else
f69335e6 12851
825ee732 12852save_libs="$LIBS"
12853LIBS="$LIBS $SOCKLIB"
3b0d1625 12854if test "$cross_compiling" = yes; then
cbdd3138
BM
12855 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12856See \`config.log' for more details." >&5
12857echo "$as_me: error: cannot run test program while cross compiling
12858See \`config.log' for more details." >&2;}
f69335e6 12859 { (exit 1); exit 1; }; }
3b0d1625 12860else
f69335e6 12861 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
12862/* confdefs.h. */
12863_ACEOF
12864cat confdefs.h >>conftest.$ac_ext
12865cat >>conftest.$ac_ext <<_ACEOF
12866/* end confdefs.h. */
3b0d1625 12867
12868#include <sys/types.h>
12869#include <sys/socket.h>
12870int main() {
12871if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
12872exit(1);
12873exit(0);
12874}
12875
f69335e6 12876_ACEOF
12877rm -f conftest$ac_exeext
81ae7da0
BM
12878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>&5
f69335e6 12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
f69335e6 12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
3b0d1625 12888 ac_cv_ip6=yes
12889else
f69335e6 12890 echo "$as_me: program exited with status $ac_status" >&5
12891echo "$as_me: failed program was:" >&5
cbdd3138
BM
12892sed 's/^/| /' conftest.$ac_ext >&5
12893
f69335e6 12894( exit $ac_status )
12895ac_cv_ip6=no
3b0d1625 12896fi
81ae7da0 12897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3b0d1625 12898fi
12899
3b0d1625 12900fi
81ae7da0
BM
12901echo "$as_me:$LINENO: result: $ac_cv_ip6" >&5
12902echo "${ECHO_T}$ac_cv_ip6" >&6
7680ec83 12903if test "$ac_cv_ip6" = "no"; then
f69335e6 12904{ echo "$as_me:$LINENO: WARNING: Your system does not support IPv6 so it will not be enabled" >&5
12905echo "$as_me: WARNING: Your system does not support IPv6 so it will not be enabled" >&2;}
7680ec83 12906else
f69335e6 12907cat >>confdefs.h <<\_ACEOF
7680ec83 12908#define INET6 1
f69335e6 12909_ACEOF
3b0d1625 12910
81ae7da0
BM
12911 echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
12912echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6
cbdd3138
BM
12913 cat >conftest.$ac_ext <<_ACEOF
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
12919#define IN_AUTOCONF
12920 #include <sys/types.h>
12921 #include <sys/socket.h>
12922 #include <netinet/in.h>
12923int
12924main ()
12925{
12926struct in6_addr a = in6addr_any;
12927
12928 ;
12929 return 0;
12930}
12931_ACEOF
12932rm -f conftest.$ac_objext
81ae7da0
BM
12933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12934 (eval $ac_compile) 2>conftest.er1
cbdd3138
BM
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
64b46a71 12941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
81ae7da0
BM
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
cbdd3138
BM
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest.$ac_objext'
81ae7da0
BM
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
cbdd3138
BM
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
81ae7da0
BM
12953 echo "$as_me:$LINENO: result: yes" >&5
12954echo "${ECHO_T}yes" >&6
cbdd3138
BM
12955else
12956 echo "$as_me: failed program was:" >&5
12957sed 's/^/| /' conftest.$ac_ext >&5
12958
12959
81ae7da0
BM
12960 echo "$as_me:$LINENO: result: no" >&5
12961echo "${ECHO_T}no" >&6
cbdd3138
BM
12962 cat >>confdefs.h <<\_ACEOF
12963#define NO_IN6ADDR_ANY 1
12964_ACEOF
12965
12966
12967
12968fi
81ae7da0 12969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f40ec73c 12970fi
825ee732 12971LIBS="$save_libs"
f40ec73c 12972
81ae7da0 12973fi;
f40ec73c 12974
12975
81ae7da0
BM
12976echo "$as_me:$LINENO: checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors" >&5
12977echo $ECHO_N "checking if FD_SETSIZE is large enough to allow $ac_fd file descriptors... $ECHO_C" >&6
f40ec73c 12978if test "$cross_compiling" = yes; then
cbdd3138
BM
12979 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12980See \`config.log' for more details." >&5
12981echo "$as_me: error: cannot run test program while cross compiling
12982See \`config.log' for more details." >&2;}
f69335e6 12983 { (exit 1); exit 1; }; }
f40ec73c 12984else
f69335e6 12985 cat >conftest.$ac_ext <<_ACEOF
cbdd3138
BM
12986/* confdefs.h. */
12987_ACEOF
12988cat confdefs.h >>conftest.$ac_ext
12989cat >>conftest.$ac_ext <<_ACEOF
12990/* end confdefs.h. */
f40ec73c 12991
12992#include <sys/types.h>
12993#include <sys/time.h>
12994int main() {
12995if (FD_SETSIZE >= $ac_fd)
12996exit(0);
12997exit(1);
12998}
12999
f69335e6 13000_ACEOF
13001rm -f conftest$ac_exeext
81ae7da0
BM
13002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>&5
f69335e6 13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
81ae7da0
BM
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
f69335e6 13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
81ae7da0
BM
13012 echo "$as_me:$LINENO: result: yes" >&5
13013echo "${ECHO_T}yes" >&6
f69335e6 13014else
13015 echo "$as_me: program exited with status $ac_status" >&5
13016echo "$as_me: failed program was:" >&5
cbdd3138
BM
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
f69335e6 13019( exit $ac_status )
f8f82984 13020
13021FD_SETSIZE="-DFD_SETSIZE=$ac_fd"
81ae7da0
BM
13022echo "$as_me:$LINENO: result: no" >&5
13023echo "${ECHO_T}no" >&6
f8f82984 13024
f69335e6 13025fi
81ae7da0 13026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f40ec73c 13027fi
13028
730c302c 13029case `uname -s` in
2c3eb033 13030*SunOS*)
13031CFLAGS="$CFLAGS -D_SOLARIS"
13032IRCDLIBS="$IRCDLIBS -lresolv "
7f62aab7 13033;;
351a8b48 13034*solaris*)
13035CFLAGS="$CFLAGS -D_SOLARIS"
c8c5ff95 13036IRCDLIBS="$IRCDLIBS -lresolv "
7de9d2d6 13037;;
7f62aab7 13038esac
51462f5e 13039
64b46a71 13040tre_version="7.2"
13041echo "$as_me:$LINENO: result: extracting PCRE regex library" >&5
13042echo "${ECHO_T}extracting PCRE regex library" >&6
ce14fdec 13043cur_dir=`pwd`
13044cd extras
64b46a71 13045rm -rf pcre-$tre_version
ddcec35e 13046if test "x$ac_cv_path_GUNZIP" = "x" ; then
64b46a71 13047 tar xfz pcre.tar.gz
13048else
13049 cp pcre.tar.gz pcre.tar.gz.bak
13050 gunzip -f pcre.tar.gz
13051 cp pcre.tar.gz.bak pcre.tar.gz
13052 tar xf pcre.tar
13053fi
13054echo "$as_me:$LINENO: result: configuring PCRE regex library" >&5
13055echo "${ECHO_T}configuring PCRE regex library" >&6
13056cd pcre-$tre_version
13057./configure --disable-shared --disable-system-abi --disable-utf8 --prefix=$cur_dir/extras/regexp || exit 1
13058echo "$as_me:$LINENO: result: compiling PCRE regex library" >&5
13059echo "${ECHO_T}compiling PCRE regex library" >&6
cbdd3138 13060$ac_cv_prog_MAKER || exit 1
64b46a71 13061echo "$as_me:$LINENO: result: installing PCRE regex library" >&5
13062echo "${ECHO_T}installing PCRE regex library" >&6
cbdd3138 13063$ac_cv_prog_MAKER install || exit 1
759be00e 13064TREINCDIR="$cur_dir/extras/regexp/include"
13065
6be3ab92 13066if test "x$ac_cv_path_PKGCONFIG" = "x" ; then
64b46a71 13067 TRELIBS="-L../extras/regexp/lib -lpcreposix -lpcre"
6be3ab92 13068else
64b46a71 13069 TRELIBS="`$ac_cv_path_PKGCONFIG --libs libpcre.pc` -lpcreposix -lpcre"
6be3ab92 13070fi
13071
ce14fdec 13072cd $cur_dir
cbdd3138
BM
13073
13074
d03f91e9 13075cares_version="1.4.0"
81ae7da0
BM
13076echo "$as_me:$LINENO: result: extracting c-ares resolver library" >&5
13077echo "${ECHO_T}extracting c-ares resolver library" >&6
cbdd3138
BM
13078cur_dir=`pwd`
13079cd extras
13080rm -rf c-ares-$cares_version
13081if test "x$ac_cv_path_GUNZIP" = "x" ; then
13082 tar xfz c-ares.tar.gz
13083else
13084 cp c-ares.tar.gz c-ares.tar.gz.bak
13085 gunzip -f c-ares.tar.gz
13086 cp c-ares.tar.gz.bak c-ares.tar.gz
13087 tar xf c-ares.tar
13088fi
81ae7da0
BM
13089echo "$as_me:$LINENO: result: configuring c-ares library" >&5
13090echo "${ECHO_T}configuring c-ares library" >&6
cbdd3138
BM
13091cd c-ares-$cares_version
13092./configure --prefix=$cur_dir/extras/c-ares || exit 1
81ae7da0
BM
13093echo "$as_me:$LINENO: result: compiling c-ares resolver library" >&5
13094echo "${ECHO_T}compiling c-ares resolver library" >&6
cbdd3138 13095$ac_cv_prog_MAKER || exit 1
81ae7da0
BM
13096echo "$as_me:$LINENO: result: installing c-ares resolver library" >&5
13097echo "${ECHO_T}installing c-ares resolver library" >&6
cbdd3138
BM
13098$ac_cv_prog_MAKER install || exit 1
13099CARESINCDIR="$cur_dir/extras/c-ares/include"
13100
13101CARESLIBDIR="-L../extras/c-ares/lib"
13102
13103CARESLIBS="-lcares"
13104
13105cd $cur_dir
13106
13107
81ae7da0 13108 ac_config_files="$ac_config_files Makefile src/modules/Makefile src/modules/chanmodes/Makefile unreal ircdcron/ircdchk"
f69335e6 13109cat >confcache <<\_ACEOF
f40ec73c 13110# This file is a shell script that caches the results of configure
13111# tests run on this system so they can be shared between configure
f69335e6 13112# scripts and configure runs, see configure's option --config-cache.
13113# It is not useful on other systems. If it contains results you don't
13114# want to keep, you may remove or edit it.
f40ec73c 13115#
f69335e6 13116# config.status only pays attention to the cache file if you give it
13117# the --recheck option to rerun configure.
f40ec73c 13118#
cbdd3138 13119# `ac_cv_env_foo' variables (set or unset) will be overridden when
f69335e6 13120# loading this file, other *unset* `ac_cv_foo' will be assigned the
13121# following values.
13122
13123_ACEOF
13124
f40ec73c 13125# The following way of writing the cache mishandles newlines in values,
13126# but we know of no workaround that is simple, portable, and efficient.
81ae7da0 13127# So, don't put newlines in cache variables' values.
f40ec73c 13128# Ultrix sh set writes to stderr and can't be redirected directly,
13129# and sets the high bit in the cache file unless we assign to the vars.
81ae7da0 13130{
32843244 13131 (set) 2>&1 |
81ae7da0
BM
13132 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13133 *ac_space=\ *)
32843244 13134 # `set' does not quote correctly, so add quotes (double-quote
13135 # substitution turns \\\\ into \\, and sed turns \\ into \).
f69335e6 13136 sed -n \
cbdd3138
BM
13137 "s/'/'\\\\''/g;
13138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ae7da0 13139 ;;
f69335e6 13140 *)
13141 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ae7da0
BM
13142 sed -n \
13143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
f69335e6 13144 ;;
81ae7da0
BM
13145 esac;
13146} |
f69335e6 13147 sed '
13148 t clear
81ae7da0 13149 : clear
f69335e6 13150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13151 t end
81ae7da0
BM
13152 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13153 : end' >>confcache
13154if diff $cache_file confcache >/dev/null 2>&1; then :; else
13155 if test -w $cache_file; then
13156 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
f69335e6 13157 cat confcache >$cache_file
f40ec73c 13158 else
81ae7da0 13159 echo "not updating unwritable cache $cache_file"
f40ec73c 13160 fi
13161fi
13162rm -f confcache
13163
f40ec73c 13164test "x$prefix" = xNONE && prefix=$ac_default_prefix
13165# Let make expand exec_prefix.
13166test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13167
81ae7da0
BM
13168# VPATH may cause trouble with some makes, so we remove $(srcdir),
13169# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13170# trailing colons and then remove the whole line if VPATH becomes empty
13171# (actually we leave an empty line to preserve line numbers).
13172if test "x$srcdir" = x.; then
13173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13174s/:*\$(srcdir):*/:/;
13175s/:*\${srcdir}:*/:/;
13176s/:*@srcdir@:*/:/;
13177s/^\([^=]*=[ ]*\):*/\1/;
13178s/:*$//;
13179s/^[^=]*=[ ]*$//;
13180}'
13181fi
13182
f40ec73c 13183DEFS=-DHAVE_CONFIG_H
13184
cbdd3138
BM
13185ac_libobjs=
13186ac_ltlibobjs=
13187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13188 # 1. Remove the extension, and $U if already installed.
81ae7da0
BM
13189 ac_i=`echo "$ac_i" |
13190 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13191 # 2. Add them.
13192 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13193 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
cbdd3138
BM
13194done
13195LIBOBJS=$ac_libobjs
13196
13197LTLIBOBJS=$ac_ltlibobjs
13198
13199
f40ec73c 13200
f69335e6 13201: ${CONFIG_STATUS=./config.status}
13202ac_clean_files_save=$ac_clean_files
13203ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13204{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13205echo "$as_me: creating $CONFIG_STATUS" >&6;}
13206cat >$CONFIG_STATUS <<_ACEOF
13207#! $SHELL
13208# Generated by $as_me.
f40ec73c 13209# Run this file to recreate the current configuration.
f40ec73c 13210# Compiler output produced by configure, useful for debugging
f69335e6 13211# configure, is in config.log if it exists.
f40ec73c 13212
f69335e6 13213debug=false
cbdd3138
BM
13214ac_cs_recheck=false
13215ac_cs_silent=false
f69335e6 13216SHELL=\${CONFIG_SHELL-$SHELL}
13217_ACEOF
13218
13219cat >>$CONFIG_STATUS <<\_ACEOF
f69335e6 13220## --------------------- ##
13221## M4sh Initialization. ##
13222## --------------------- ##
13223
13224# Be Bourne compatible
13225if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13226 emulate sh
13227 NULLCMD=:
cbdd3138
BM
13228 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13229 # is contrary to our usage. Disable this feature.
13230 alias -g '${1+"$@"}'='"$@"'
81ae7da0
BM
13231elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13232 set -o posix
f69335e6 13233fi
cbdd3138 13234DUALCASE=1; export DUALCASE # for MKS sh
f69335e6 13235
f69335e6 13236# Support unset when possible.
cbdd3138 13237if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
f69335e6 13238 as_unset=unset
13239else
13240 as_unset=false
13241fi
13242
cbdd3138
BM
13243
13244# Work around bugs in pre-3.0 UWIN ksh.
81ae7da0 13245$as_unset ENV MAIL MAILPATH
cbdd3138
BM
13246PS1='$ '
13247PS2='> '
13248PS4='+ '
13249
13250# NLS nuisances.
13251for as_var in \
13252 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13253 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13254 LC_TELEPHONE LC_TIME
13255do
13256 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13257 eval $as_var=C; export $as_var
13258 else
81ae7da0 13259 $as_unset $as_var
cbdd3138
BM
13260 fi
13261done
13262
13263# Required to use basename.
81ae7da0 13264if expr a : '\(a\)' >/dev/null 2>&1; then
cbdd3138
BM
13265 as_expr=expr
13266else
13267 as_expr=false
13268fi
13269
81ae7da0 13270if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
cbdd3138
BM
13271 as_basename=basename
13272else
13273 as_basename=false
13274fi
f69335e6 13275
13276
13277# Name of the executable.
81ae7da0 13278as_me=`$as_basename "$0" ||
f69335e6 13279$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13280 X"$0" : 'X\(//\)$' \| \
81ae7da0
BM
13281 X"$0" : 'X\(/\)$' \| \
13282 . : '\(.\)' 2>/dev/null ||
f69335e6 13283echo X/"$0" |
81ae7da0
BM
13284 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13285 /^X\/\(\/\/\)$/{ s//\1/; q; }
13286 /^X\/\(\/\).*/{ s//\1/; q; }
13287 s/.*/./; q'`
f69335e6 13288
f69335e6 13289
81ae7da0
BM
13290# PATH needs CR, and LINENO needs CR and PATH.
13291# Avoid depending upon Character Ranges.
13292as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13293as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13294as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13295as_cr_digits='0123456789'
13296as_cr_alnum=$as_cr_Letters$as_cr_digits
13297
13298# The user is always right.
13299if test "${PATH_SEPARATOR+set}" != set; then
13300 echo "#! /bin/sh" >conf$$.sh
13301 echo "exit 0" >>conf$$.sh
13302 chmod +x conf$$.sh
13303 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13304 PATH_SEPARATOR=';'
13305 else
13306 PATH_SEPARATOR=:
13307 fi
13308 rm -f conf$$.sh
13309fi
f69335e6 13310
f69335e6 13311
f69335e6 13312 as_lineno_1=$LINENO
13313 as_lineno_2=$LINENO
81ae7da0 13314 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
f69335e6 13315 test "x$as_lineno_1" != "x$as_lineno_2" &&
81ae7da0
BM
13316 test "x$as_lineno_3" = "x$as_lineno_2" || {
13317 # Find who we are. Look in the path if we contain no path at all
13318 # relative or not.
13319 case $0 in
13320 *[\\/]* ) as_myself=$0 ;;
13321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13322for as_dir in $PATH
13323do
13324 IFS=$as_save_IFS
13325 test -z "$as_dir" && as_dir=.
13326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13327done
13328
13329 ;;
13330 esac
13331 # We did not find ourselves, most probably we were run as `sh COMMAND'
13332 # in which case we are not to be found in the path.
13333 if test "x$as_myself" = x; then
13334 as_myself=$0
13335 fi
13336 if test ! -f "$as_myself"; then
13337 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13338echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13339 { (exit 1); exit 1; }; }
13340 fi
13341 case $CONFIG_SHELL in
13342 '')
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13345do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for as_base in sh bash ksh sh5; do
13349 case $as_dir in
13350 /*)
13351 if ("$as_dir/$as_base" -c '
13352 as_lineno_1=$LINENO
13353 as_lineno_2=$LINENO
13354 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13355 test "x$as_lineno_1" != "x$as_lineno_2" &&
13356 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13357 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13358 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13359 CONFIG_SHELL=$as_dir/$as_base
13360 export CONFIG_SHELL
13361 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13362 fi;;
13363 esac
13364 done
13365done
13366;;
13367 esac
f40ec73c 13368
f69335e6 13369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13370 # uniformly replaced by the line number. The first 'sed' inserts a
81ae7da0
BM
13371 # line-number line before each line; the second 'sed' does the real
13372 # work. The second script uses 'N' to pair each line-number line
13373 # with the numbered line, and appends trailing '-' during
13374 # substitution so that $LINENO is not a special case at line end.
f69335e6 13375 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
81ae7da0
BM
13376 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13377 sed '=' <$as_myself |
f69335e6 13378 sed '
13379 N
81ae7da0
BM
13380 s,$,-,
13381 : loop
13382 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
f69335e6 13383 t loop
81ae7da0
BM
13384 s,-$,,
13385 s,^['$as_cr_digits']*\n,,
f69335e6 13386 ' >$as_me.lineno &&
81ae7da0
BM
13387 chmod +x $as_me.lineno ||
13388 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13389echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
f69335e6 13390 { (exit 1); exit 1; }; }
13391
13392 # Don't try to exec as it changes $[0], causing all sort of problems
13393 # (the dirname of $[0] is not the place where we might find the
81ae7da0
BM
13394 # original and so on. Autoconf is especially sensible to this).
13395 . ./$as_me.lineno
f69335e6 13396 # Exit status is that of the last command.
13397 exit
13398}
f40ec73c 13399
f40ec73c 13400
81ae7da0
BM
13401case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13402 *c*,-n*) ECHO_N= ECHO_C='
13403' ECHO_T=' ' ;;
13404 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13405 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
f69335e6 13406esac
f40ec73c 13407
81ae7da0 13408if expr a : '\(a\)' >/dev/null 2>&1; then
f69335e6 13409 as_expr=expr
13410else
13411 as_expr=false
13412fi
13413
13414rm -f conf$$ conf$$.exe conf$$.file
13415echo >conf$$.file
13416if ln -s conf$$.file conf$$ 2>/dev/null; then
81ae7da0
BM
13417 # We could just check for DJGPP; but this test a) works b) is more generic
13418 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13419 if test -f conf$$.exe; then
13420 # Don't use ln at all; we don't have any links
f69335e6 13421 as_ln_s='cp -p'
81ae7da0
BM
13422 else
13423 as_ln_s='ln -s'
13424 fi
f69335e6 13425elif ln conf$$.file conf$$ 2>/dev/null; then
13426 as_ln_s=ln
13427else
13428 as_ln_s='cp -p'
13429fi
81ae7da0 13430rm -f conf$$ conf$$.exe conf$$.file
f69335e6 13431
cbdd3138
BM
13432if mkdir -p . 2>/dev/null; then
13433 as_mkdir_p=:
13434else
13435 test -d ./-p && rmdir ./-p
13436 as_mkdir_p=false
13437fi
13438
81ae7da0 13439as_executable_p="test -f"
f69335e6 13440
13441# Sed expression to map a string onto a valid CPP name.
cbdd3138 13442as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
f69335e6 13443
13444# Sed expression to map a string onto a valid variable name.
cbdd3138 13445as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f69335e6 13446
13447
81ae7da0
BM
13448# IFS
13449# We need space, tab and new line, in precisely that order.
13450as_nl='
13451'
13452IFS=" $as_nl"
13453
13454# CDPATH.
13455$as_unset CDPATH
13456
f69335e6 13457exec 6>&1
13458
81ae7da0 13459# Open the log real soon, to keep \$[0] and so on meaningful, and to
f69335e6 13460# report actual input values of CONFIG_FILES etc. instead of their
81ae7da0
BM
13461# values after options handling. Logging --version etc. is OK.
13462exec 5>>config.log
13463{
13464 echo
13465 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13466## Running $as_me. ##
13467_ASBOX
13468} >&5
13469cat >&5 <<_CSEOF
13470
f69335e6 13471This file was extended by $as_me, which was
81ae7da0 13472generated by GNU Autoconf 2.59. Invocation command line was
f69335e6 13473
13474 CONFIG_FILES = $CONFIG_FILES
13475 CONFIG_HEADERS = $CONFIG_HEADERS
13476 CONFIG_LINKS = $CONFIG_LINKS
13477 CONFIG_COMMANDS = $CONFIG_COMMANDS
13478 $ $0 $@
13479
81ae7da0
BM
13480_CSEOF
13481echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13482echo >&5
f69335e6 13483_ACEOF
13484
13485# Files that config.status was made for.
81ae7da0
BM
13486if test -n "$ac_config_files"; then
13487 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13488fi
f69335e6 13489
81ae7da0
BM
13490if test -n "$ac_config_headers"; then
13491 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13492fi
13493
13494if test -n "$ac_config_links"; then
13495 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13496fi
13497
13498if test -n "$ac_config_commands"; then
13499 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13500fi
f69335e6 13501
13502cat >>$CONFIG_STATUS <<\_ACEOF
81ae7da0 13503
f69335e6 13504ac_cs_usage="\
13505\`$as_me' instantiates files from templates according to the
13506current configuration.
13507
13508Usage: $0 [OPTIONS] [FILE]...
13509
13510 -h, --help print this help, then exit
13511 -V, --version print version number, then exit
cbdd3138 13512 -q, --quiet do not print progress messages
f69335e6 13513 -d, --debug don't remove temporary files
13514 --recheck update $as_me by reconfiguring in the same conditions
13515 --file=FILE[:TEMPLATE]
cbdd3138 13516 instantiate the configuration file FILE
f69335e6 13517 --header=FILE[:TEMPLATE]
cbdd3138 13518 instantiate the configuration header FILE
f69335e6 13519
13520Configuration files:
13521$config_files
13522
13523Configuration headers:
13524$config_headers
13525
13526Report bugs to <bug-autoconf@gnu.org>."
32843244 13527_ACEOF
81ae7da0 13528
f69335e6 13529cat >>$CONFIG_STATUS <<_ACEOF
13530ac_cs_version="\\
13531config.status
81ae7da0
BM
13532configured by $0, generated by GNU Autoconf 2.59,
13533 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
f69335e6 13534
81ae7da0 13535Copyright (C) 2003 Free Software Foundation, Inc.
f69335e6 13536This config.status script is free software; the Free Software Foundation
13537gives unlimited permission to copy, distribute and modify it."
81ae7da0 13538srcdir=$srcdir
f69335e6 13539_ACEOF
13540
13541cat >>$CONFIG_STATUS <<\_ACEOF
13542# If no file are specified by the user, then we need to provide default
13543# value. By we need to know if files were specified by the user.
13544ac_need_defaults=:
13545while test $# != 0
13546do
13547 case $1 in
13548 --*=*)
81ae7da0
BM
13549 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13550 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
cbdd3138
BM
13551 ac_shift=:
13552 ;;
81ae7da0 13553 -*)
cbdd3138
BM
13554 ac_option=$1
13555 ac_optarg=$2
13556 ac_shift=shift
f69335e6 13557 ;;
81ae7da0
BM
13558 *) # This is not an option, so the user has probably given explicit
13559 # arguments.
13560 ac_option=$1
13561 ac_need_defaults=false;;
f69335e6 13562 esac
13563
cbdd3138 13564 case $ac_option in
f69335e6 13565 # Handling of the options.
81ae7da0
BM
13566_ACEOF
13567cat >>$CONFIG_STATUS <<\_ACEOF
cbdd3138
BM
13568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13569 ac_cs_recheck=: ;;
81ae7da0
BM
13570 --version | --vers* | -V )
13571 echo "$ac_cs_version"; exit 0 ;;
13572 --he | --h)
13573 # Conflict between --help and --header
13574 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13575Try \`$0 --help' for more information." >&5
13576echo "$as_me: error: ambiguous option: $1
13577Try \`$0 --help' for more information." >&2;}
13578 { (exit 1); exit 1; }; };;
13579 --help | --hel | -h )
13580 echo "$ac_cs_usage"; exit 0 ;;
13581 --debug | --d* | -d )
f69335e6 13582 debug=: ;;
13583 --file | --fil | --fi | --f )
cbdd3138
BM
13584 $ac_shift
13585 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f69335e6 13586 ac_need_defaults=false;;
13587 --header | --heade | --head | --hea )
cbdd3138
BM
13588 $ac_shift
13589 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f69335e6 13590 ac_need_defaults=false;;
cbdd3138
BM
13591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13592 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13593 ac_cs_silent=: ;;
f69335e6 13594
13595 # This is an error.
81ae7da0
BM
13596 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13597Try \`$0 --help' for more information." >&5
13598echo "$as_me: error: unrecognized option: $1
13599Try \`$0 --help' for more information." >&2;}
f69335e6 13600 { (exit 1); exit 1; }; } ;;
13601
81ae7da0 13602 *) ac_config_targets="$ac_config_targets $1" ;;
f69335e6 13603
13604 esac
13605 shift
13606done
13607
cbdd3138
BM
13608ac_configure_extra_args=
13609
13610if $ac_cs_silent; then
13611 exec 6>/dev/null
13612 ac_configure_extra_args="$ac_configure_extra_args --silent"
13613fi
13614
13615_ACEOF
13616cat >>$CONFIG_STATUS <<_ACEOF
13617if \$ac_cs_recheck; then
81ae7da0
BM
13618 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13619 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cbdd3138
BM
13620fi
13621
f69335e6 13622_ACEOF
13623
f69335e6 13624
32843244 13625
81ae7da0
BM
13626
13627
13628cat >>$CONFIG_STATUS <<\_ACEOF
f69335e6 13629for ac_config_target in $ac_config_targets
13630do
81ae7da0
BM
13631 case "$ac_config_target" in
13632 # Handling of arguments.
13633 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13634 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
13635 "src/modules/chanmodes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/chanmodes/Makefile" ;;
13636 "unreal" ) CONFIG_FILES="$CONFIG_FILES unreal" ;;
13637 "ircdcron/ircdchk" ) CONFIG_FILES="$CONFIG_FILES ircdcron/ircdchk" ;;
13638 "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
f69335e6 13639 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13640echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13641 { (exit 1); exit 1; }; };;
13642 esac
f40ec73c 13643done
f69335e6 13644
13645# If the user did not use the arguments to specify the items to instantiate,
13646# then the envvar interface is used. Set only those that are not.
13647# We use the long form for the default assignment because of an extremely
13648# bizarre bug on SunOS 4.1.3.
13649if $ac_need_defaults; then
13650 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13651 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
f40ec73c 13652fi
f40ec73c 13653
cbdd3138 13654# Have a temporary directory for convenience. Make it in the build tree
81ae7da0 13655# simply because there is no reason to put it here, and in addition,
cbdd3138 13656# creating and moving files from /tmp can sometimes cause problems.
81ae7da0 13657# Create a temporary directory, and hook for its removal unless debugging.
f69335e6 13658$debug ||
13659{
81ae7da0 13660 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
f69335e6 13661 trap '{ (exit 1); exit 1; }' 1 2 13 15
13662}
81ae7da0 13663
f69335e6 13664# Create a (secure) tmp directory for tmp files.
cbdd3138 13665
f69335e6 13666{
81ae7da0 13667 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
f69335e6 13668 test -n "$tmp" && test -d "$tmp"
13669} ||
13670{
81ae7da0
BM
13671 tmp=./confstat$$-$RANDOM
13672 (umask 077 && mkdir $tmp)
f69335e6 13673} ||
13674{
cbdd3138 13675 echo "$me: cannot create a temporary directory in ." >&2
f69335e6 13676 { (exit 1); exit 1; }
13677}
13678
81ae7da0
BM
13679_ACEOF
13680
13681cat >>$CONFIG_STATUS <<_ACEOF
13682
f69335e6 13683#
81ae7da0 13684# CONFIG_FILES section.
f69335e6 13685#
13686
13687# No need to generate the scripts if there are no CONFIG_FILES.
13688# This happens for instance when ./config.status config.h
81ae7da0
BM
13689if test -n "\$CONFIG_FILES"; then
13690 # Protect against being on the right side of a sed subst in config.status.
13691 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13692 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13693s,@SHELL@,$SHELL,;t t
13694s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13695s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13696s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13697s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13698s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13699s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13700s,@exec_prefix@,$exec_prefix,;t t
13701s,@prefix@,$prefix,;t t
13702s,@program_transform_name@,$program_transform_name,;t t
13703s,@bindir@,$bindir,;t t
13704s,@sbindir@,$sbindir,;t t
13705s,@libexecdir@,$libexecdir,;t t
13706s,@datadir@,$datadir,;t t
13707s,@sysconfdir@,$sysconfdir,;t t
13708s,@sharedstatedir@,$sharedstatedir,;t t
13709s,@localstatedir@,$localstatedir,;t t
13710s,@libdir@,$libdir,;t t
13711s,@includedir@,$includedir,;t t
13712s,@oldincludedir@,$oldincludedir,;t t
13713s,@infodir@,$infodir,;t t
13714s,@mandir@,$mandir,;t t
13715s,@build_alias@,$build_alias,;t t
13716s,@host_alias@,$host_alias,;t t
13717s,@target_alias@,$target_alias,;t t
13718s,@DEFS@,$DEFS,;t t
13719s,@ECHO_C@,$ECHO_C,;t t
13720s,@ECHO_N@,$ECHO_N,;t t
13721s,@ECHO_T@,$ECHO_T,;t t
13722s,@LIBS@,$LIBS,;t t
13723s,@CC@,$CC,;t t
13724s,@CFLAGS@,$CFLAGS,;t t
13725s,@LDFLAGS@,$LDFLAGS,;t t
13726s,@CPPFLAGS@,$CPPFLAGS,;t t
13727s,@ac_ct_CC@,$ac_ct_CC,;t t
13728s,@EXEEXT@,$EXEEXT,;t t
13729s,@OBJEXT@,$OBJEXT,;t t
0e87ac8a 13730s,@CXX@,$CXX,;t t
13731s,@CXXFLAGS@,$CXXFLAGS,;t t
13732s,@ac_ct_CXX@,$ac_ct_CXX,;t t
81ae7da0
BM
13733s,@RM@,$RM,;t t
13734s,@CP@,$CP,;t t
13735s,@TOUCH@,$TOUCH,;t t
13736s,@OPENSSLPATH@,$OPENSSLPATH,;t t
13737s,@INSTALL@,$INSTALL,;t t
13738s,@MAKER@,$MAKER,;t t
13739s,@GMAKE@,$GMAKE,;t t
13740s,@GUNZIP@,$GUNZIP,;t t
13741s,@PKGCONFIG@,$PKGCONFIG,;t t
13742s,@IRCDLIBS@,$IRCDLIBS,;t t
13743s,@MKPASSWDLIBS@,$MKPASSWDLIBS,;t t
13744s,@CPP@,$CPP,;t t
13745s,@EGREP@,$EGREP,;t t
13746s,@ALLOCA@,$ALLOCA,;t t
13747s,@STRTOUL@,$STRTOUL,;t t
13748s,@CRYPTOLIB@,$CRYPTOLIB,;t t
13749s,@MODULEFLAGS@,$MODULEFLAGS,;t t
b4f2619a 13750s,@MODULES_WHICH@,$MODULES_WHICH,;t t
81ae7da0
BM
13751s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
13752s,@URL@,$URL,;t t
13753s,@IRCDDIR@,$IRCDDIR,;t t
13754s,@BINDIR@,$BINDIR,;t t
13755s,@FD_SETSIZE@,$FD_SETSIZE,;t t
13756s,@TREINCDIR@,$TREINCDIR,;t t
13757s,@TRELIBS@,$TRELIBS,;t t
13758s,@CARESINCDIR@,$CARESINCDIR,;t t
13759s,@CARESLIBDIR@,$CARESLIBDIR,;t t
13760s,@CARESLIBS@,$CARESLIBS,;t t
13761s,@LIBOBJS@,$LIBOBJS,;t t
13762s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13763CEOF
13764
13765_ACEOF
13766
13767 cat >>$CONFIG_STATUS <<\_ACEOF
13768 # Split the substitutions into bite-sized pieces for seds with
13769 # small command number limits, like on Digital OSF/1 and HP-UX.
13770 ac_max_sed_lines=48
13771 ac_sed_frag=1 # Number of current file.
13772 ac_beg=1 # First line for current file.
13773 ac_end=$ac_max_sed_lines # Line after last line for current file.
13774 ac_more_lines=:
13775 ac_sed_cmds=
13776 while $ac_more_lines; do
13777 if test $ac_beg -gt 1; then
13778 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13779 else
13780 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13781 fi
13782 if test ! -s $tmp/subs.frag; then
13783 ac_more_lines=false
13784 else
13785 # The purpose of the label and of the branching condition is to
13786 # speed up the sed processing (if there are no `@' at all, there
13787 # is no need to browse any of the substitutions).
13788 # These are the two extra sed commands mentioned above.
13789 (echo ':t
13790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13791 if test -z "$ac_sed_cmds"; then
13792 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13793 else
13794 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13795 fi
13796 ac_sed_frag=`expr $ac_sed_frag + 1`
13797 ac_beg=$ac_end
13798 ac_end=`expr $ac_end + $ac_max_sed_lines`
13799 fi
13800 done
13801 if test -z "$ac_sed_cmds"; then
13802 ac_sed_cmds=cat
f69335e6 13803 fi
81ae7da0 13804fi # test -n "$CONFIG_FILES"
32843244 13805
f69335e6 13806_ACEOF
13807cat >>$CONFIG_STATUS <<\_ACEOF
81ae7da0
BM
13808for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13810 case $ac_file in
13811 - | *:- | *:-:* ) # input from stdin
13812 cat >$tmp/stdin
13813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13817 * ) ac_file_in=$ac_file.in ;;
f69335e6 13818 esac
13819
81ae7da0
BM
13820 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13821 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
f69335e6 13822$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
cbdd3138
BM
13823 X"$ac_file" : 'X\(//\)[^/]' \| \
13824 X"$ac_file" : 'X\(//\)$' \| \
81ae7da0
BM
13825 X"$ac_file" : 'X\(/\)' \| \
13826 . : '\(.\)' 2>/dev/null ||
f69335e6 13827echo X"$ac_file" |
81ae7da0
BM
13828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13830 /^X\(\/\/\)$/{ s//\1/; q; }
13831 /^X\(\/\).*/{ s//\1/; q; }
13832 s/.*/./; q'`
13833 { if $as_mkdir_p; then
13834 mkdir -p "$ac_dir"
13835 else
13836 as_dir="$ac_dir"
cbdd3138 13837 as_dirs=
81ae7da0
BM
13838 while test ! -d "$as_dir"; do
13839 as_dirs="$as_dir $as_dirs"
13840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
cbdd3138
BM
13841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13842 X"$as_dir" : 'X\(//\)[^/]' \| \
13843 X"$as_dir" : 'X\(//\)$' \| \
81ae7da0
BM
13844 X"$as_dir" : 'X\(/\)' \| \
13845 . : '\(.\)' 2>/dev/null ||
cbdd3138 13846echo X"$as_dir" |
81ae7da0
BM
13847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13849 /^X\(\/\/\)$/{ s//\1/; q; }
13850 /^X\(\/\).*/{ s//\1/; q; }
13851 s/.*/./; q'`
cbdd3138 13852 done
81ae7da0
BM
13853 test ! -n "$as_dirs" || mkdir $as_dirs
13854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13855echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
cbdd3138 13856 { (exit 1); exit 1; }; }; }
81ae7da0 13857
f69335e6 13858 ac_builddir=.
f40ec73c 13859
81ae7da0 13860if test "$ac_dir" != .; then
f69335e6 13861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
81ae7da0
BM
13862 # A "../" for each directory in $ac_dir_suffix.
13863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13864else
13865 ac_dir_suffix= ac_top_builddir=
13866fi
f40ec73c 13867
f69335e6 13868case $srcdir in
81ae7da0 13869 .) # No --srcdir option. We are building in place.
f69335e6 13870 ac_srcdir=.
81ae7da0
BM
13871 if test -z "$ac_top_builddir"; then
13872 ac_top_srcdir=.
13873 else
13874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13875 fi ;;
13876 [\\/]* | ?:[\\/]* ) # Absolute path.
f69335e6 13877 ac_srcdir=$srcdir$ac_dir_suffix;
81ae7da0
BM
13878 ac_top_srcdir=$srcdir ;;
13879 *) # Relative path.
13880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
f69335e6 13882esac
cbdd3138 13883
81ae7da0
BM
13884# Do not use `cd foo && pwd` to compute absolute paths, because
13885# the directories may not exist.
13886case `pwd` in
13887.) ac_abs_builddir="$ac_dir";;
13888*)
13889 case "$ac_dir" in
13890 .) ac_abs_builddir=`pwd`;;
13891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13893 esac;;
13894esac
13895case $ac_abs_builddir in
13896.) ac_abs_top_builddir=${ac_top_builddir}.;;
13897*)
13898 case ${ac_top_builddir}. in
13899 .) ac_abs_top_builddir=$ac_abs_builddir;;
13900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13902 esac;;
13903esac
13904case $ac_abs_builddir in
13905.) ac_abs_srcdir=$ac_srcdir;;
13906*)
13907 case $ac_srcdir in
13908 .) ac_abs_srcdir=$ac_abs_builddir;;
13909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13911 esac;;
13912esac
13913case $ac_abs_builddir in
13914.) ac_abs_top_srcdir=$ac_top_srcdir;;
13915*)
13916 case $ac_top_srcdir in
13917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13920 esac;;
13921esac
f40ec73c 13922
13923
f40ec73c 13924
81ae7da0
BM
13925 # Let's still pretend it is `configure' which instantiates (i.e., don't
13926 # use $as_me), people would be surprised to read:
13927 # /* config.h. Generated by config.status. */
13928 if test x"$ac_file" = x-; then
13929 configure_input=
13930 else
13931 configure_input="$ac_file. "
13932 fi
13933 configure_input=$configure_input"Generated from `echo $ac_file_in |
13934 sed 's,.*/,,'` by configure."
13935
13936 # First look for the input files in the build tree, otherwise in the
13937 # src tree.
13938 ac_file_inputs=`IFS=:
13939 for f in $ac_file_in; do
13940 case $f in
13941 -) echo $tmp/stdin ;;
13942 [\\/$]*)
13943 # Absolute (can't be DOS-style, as IFS=:)
13944 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13945echo "$as_me: error: cannot find input file: $f" >&2;}
13946 { (exit 1); exit 1; }; }
13947 echo "$f";;
13948 *) # Relative
13949 if test -f "$f"; then
13950 # Build tree
13951 echo "$f"
13952 elif test -f "$srcdir/$f"; then
13953 # Source tree
13954 echo "$srcdir/$f"
13955 else
13956 # /dev/null tree
13957 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13958echo "$as_me: error: cannot find input file: $f" >&2;}
13959 { (exit 1); exit 1; }; }
13960 fi;;
13961 esac
13962 done` || { (exit 1); exit 1; }
64b46a71 13963
13964 if test x"$ac_file" != x-; then
13965 { echo "$as_me:$LINENO: creating $ac_file" >&5
13966echo "$as_me: creating $ac_file" >&6;}
13967 rm -f "$ac_file"
13968 fi
81ae7da0 13969_ACEOF
f69335e6 13970cat >>$CONFIG_STATUS <<_ACEOF
13971 sed "$ac_vpsub
13972$extrasub
13973_ACEOF
13974cat >>$CONFIG_STATUS <<\_ACEOF
13975:t
13976/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ae7da0
BM
13977s,@configure_input@,$configure_input,;t t
13978s,@srcdir@,$ac_srcdir,;t t
13979s,@abs_srcdir@,$ac_abs_srcdir,;t t
13980s,@top_srcdir@,$ac_top_srcdir,;t t
13981s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13982s,@builddir@,$ac_builddir,;t t
13983s,@abs_builddir@,$ac_abs_builddir,;t t
13984s,@top_builddir@,$ac_top_builddir,;t t
13985s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13986" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13987 rm -f $tmp/stdin
13988 if test x"$ac_file" != x-; then
13989 mv $tmp/out $ac_file
13990 else
13991 cat $tmp/out
13992 rm -f $tmp/out
13993 fi
13994
13995done
13996_ACEOF
13997cat >>$CONFIG_STATUS <<\_ACEOF
13998
13999#
14000# CONFIG_HEADER section.
14001#
14002
14003# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14004# NAME is the cpp macro being defined and VALUE is the value it is being given.
14005#
14006# ac_d sets the value in "#define NAME VALUE" lines.
14007ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14008ac_dB='[ ].*$,\1#\2'
14009ac_dC=' '
14010ac_dD=',;t'
14011# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14012ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14013ac_uB='$,\1#\2define\3'
14014ac_uC=' '
14015ac_uD=',;t'
14016
14017for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f69335e6 14019 case $ac_file in
81ae7da0
BM
14020 - | *:- | *:-:* ) # input from stdin
14021 cat >$tmp/stdin
14022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14026 * ) ac_file_in=$ac_file.in ;;
f40ec73c 14027 esac
81ae7da0
BM
14028
14029 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14030echo "$as_me: creating $ac_file" >&6;}
14031
14032 # First look for the input files in the build tree, otherwise in the
14033 # src tree.
14034 ac_file_inputs=`IFS=:
14035 for f in $ac_file_in; do
14036 case $f in
14037 -) echo $tmp/stdin ;;
14038 [\\/$]*)
14039 # Absolute (can't be DOS-style, as IFS=:)
14040 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14041echo "$as_me: error: cannot find input file: $f" >&2;}
14042 { (exit 1); exit 1; }; }
14043 # Do quote $f, to prevent DOS paths from being IFS'd.
14044 echo "$f";;
14045 *) # Relative
14046 if test -f "$f"; then
14047 # Build tree
14048 echo "$f"
14049 elif test -f "$srcdir/$f"; then
14050 # Source tree
14051 echo "$srcdir/$f"
14052 else
14053 # /dev/null tree
14054 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14055echo "$as_me: error: cannot find input file: $f" >&2;}
14056 { (exit 1); exit 1; }; }
14057 fi;;
14058 esac
14059 done` || { (exit 1); exit 1; }
14060 # Remove the trailing spaces.
14061 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14062
14063_ACEOF
14064
14065# Transform confdefs.h into two sed scripts, `conftest.defines' and
14066# `conftest.undefs', that substitutes the proper values into
14067# config.h.in to produce config.h. The first handles `#define'
14068# templates, and the second `#undef' templates.
14069# And first: Protect against being on the right side of a sed subst in
14070# config.status. Protect against being in an unquoted here document
14071# in config.status.
14072rm -f conftest.defines conftest.undefs
14073# Using a here document instead of a string reduces the quoting nightmare.
14074# Putting comments in sed scripts is not portable.
14075#
14076# `end' is used to avoid that the second main sed command (meant for
14077# 0-ary CPP macros) applies to n-ary macro definitions.
14078# See the Autoconf documentation for `clear'.
14079cat >confdef2sed.sed <<\_ACEOF
14080s/[\\&,]/\\&/g
14081s,[\\$`],\\&,g
14082t clear
14083: clear
14084s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14085t end
14086s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14087: end
14088_ACEOF
14089# If some macros were called several times there might be several times
14090# the same #defines, which is useless. Nevertheless, we may not want to
14091# sort them, since we want the *last* AC-DEFINE to be honored.
14092uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14093sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14094rm -f confdef2sed.sed
14095
14096# This sed command replaces #undef with comments. This is necessary, for
f40ec73c 14097# example, in the case of _POSIX_SOURCE, which is predefined and required
14098# on some systems where configure will not decide to define it.
81ae7da0
BM
14099cat >>conftest.undefs <<\_ACEOF
14100s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14101_ACEOF
14102
14103# Break up conftest.defines because some shells have a limit on the size
14104# of here documents, and old seds have small limits too (100 cmds).
14105echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14106echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14107echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14108echo ' :' >>$CONFIG_STATUS
14109rm -f conftest.tail
14110while grep . conftest.defines >/dev/null
f69335e6 14111do
81ae7da0
BM
14112 # Write a limited-size here document to $tmp/defines.sed.
14113 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14114 # Speed up: don't consider the non `#define' lines.
14115 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14116 # Work around the forget-to-reset-the-flag bug.
14117 echo 't clr' >>$CONFIG_STATUS
14118 echo ': clr' >>$CONFIG_STATUS
14119 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
f69335e6 14120 echo 'CEOF
81ae7da0
BM
14121 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14122 rm -f $tmp/in
14123 mv $tmp/out $tmp/in
14124' >>$CONFIG_STATUS
14125 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
f69335e6 14126 rm -f conftest.defines
14127 mv conftest.tail conftest.defines
14128done
81ae7da0
BM
14129rm -f conftest.defines
14130echo ' fi # grep' >>$CONFIG_STATUS
14131echo >>$CONFIG_STATUS
14132
14133# Break up conftest.undefs because some shells have a limit on the size
14134# of here documents, and old seds have small limits too (100 cmds).
14135echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14136rm -f conftest.tail
14137while grep . conftest.undefs >/dev/null
14138do
14139 # Write a limited-size here document to $tmp/undefs.sed.
14140 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14141 # Speed up: don't consider the non `#undef'
14142 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14143 # Work around the forget-to-reset-the-flag bug.
14144 echo 't clr' >>$CONFIG_STATUS
14145 echo ': clr' >>$CONFIG_STATUS
14146 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14147 echo 'CEOF
14148 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14149 rm -f $tmp/in
14150 mv $tmp/out $tmp/in
14151' >>$CONFIG_STATUS
14152 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14153 rm -f conftest.undefs
14154 mv conftest.tail conftest.undefs
14155done
14156rm -f conftest.undefs
f69335e6 14157
14158cat >>$CONFIG_STATUS <<\_ACEOF
81ae7da0
BM
14159 # Let's still pretend it is `configure' which instantiates (i.e., don't
14160 # use $as_me), people would be surprised to read:
14161 # /* config.h. Generated by config.status. */
14162 if test x"$ac_file" = x-; then
14163 echo "/* Generated by configure. */" >$tmp/config.h
14164 else
14165 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14166 fi
14167 cat $tmp/in >>$tmp/config.h
14168 rm -f $tmp/in
f69335e6 14169 if test x"$ac_file" != x-; then
81ae7da0 14170 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
f69335e6 14171 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14172echo "$as_me: $ac_file is unchanged" >&6;}
14173 else
81ae7da0
BM
14174 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14175$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14176 X"$ac_file" : 'X\(//\)[^/]' \| \
14177 X"$ac_file" : 'X\(//\)$' \| \
14178 X"$ac_file" : 'X\(/\)' \| \
14179 . : '\(.\)' 2>/dev/null ||
14180echo X"$ac_file" |
14181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14182 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14183 /^X\(\/\/\)$/{ s//\1/; q; }
14184 /^X\(\/\).*/{ s//\1/; q; }
14185 s/.*/./; q'`
14186 { if $as_mkdir_p; then
14187 mkdir -p "$ac_dir"
14188 else
14189 as_dir="$ac_dir"
14190 as_dirs=
14191 while test ! -d "$as_dir"; do
14192 as_dirs="$as_dir $as_dirs"
14193 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14194$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14195 X"$as_dir" : 'X\(//\)[^/]' \| \
14196 X"$as_dir" : 'X\(//\)$' \| \
14197 X"$as_dir" : 'X\(/\)' \| \
14198 . : '\(.\)' 2>/dev/null ||
14199echo X"$as_dir" |
14200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14202 /^X\(\/\/\)$/{ s//\1/; q; }
14203 /^X\(\/\).*/{ s//\1/; q; }
14204 s/.*/./; q'`
14205 done
14206 test ! -n "$as_dirs" || mkdir $as_dirs
14207 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14208echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14209 { (exit 1); exit 1; }; }; }
14210
f69335e6 14211 rm -f $ac_file
81ae7da0 14212 mv $tmp/config.h $ac_file
f69335e6 14213 fi
14214 else
81ae7da0
BM
14215 cat $tmp/config.h
14216 rm -f $tmp/config.h
f69335e6 14217 fi
81ae7da0
BM
14218done
14219_ACEOF
f40ec73c 14220
81ae7da0 14221cat >>$CONFIG_STATUS <<\_ACEOF
f40ec73c 14222
f69335e6 14223{ (exit 0); exit 0; }
14224_ACEOF
f40ec73c 14225chmod +x $CONFIG_STATUS
f69335e6 14226ac_clean_files=$ac_clean_files_save
14227
14228
14229# configure is writing to config.log, and then calls config.status.
14230# config.status does its own redirection, appending to config.log.
14231# Unfortunately, on DOS this fails, as config.log is still kept open
14232# by configure, so config.status won't be able to write to it; its
14233# output is simply discarded. So we exec the FD to /dev/null,
14234# effectively closing config.log, so it can be properly (re)opened and
14235# appended to by config.status. When coming back to configure, we
14236# need to make the FD available again.
14237if test "$no_create" != yes; then
14238 ac_cs_success=:
cbdd3138
BM
14239 ac_config_status_args=
14240 test "$silent" = yes &&
14241 ac_config_status_args="$ac_config_status_args --quiet"
f69335e6 14242 exec 5>/dev/null
cbdd3138 14243 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f69335e6 14244 exec 5>>config.log
14245 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14246 # would make configure fail if this is the last instruction.
14247 $ac_cs_success || { (exit 1); exit 1; }
14248fi
f40ec73c 14249
cad8d532 14250chmod 0700 unreal
4bda94ac 14251chmod 0700 ircdcron/ircdchk