]> jfr.im git - irc/rqf/shadowircd.git/blame - configure
[svn] Merge old trunk r2212:
[irc/rqf/shadowircd.git] / configure
CommitLineData
212380e3 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b1fc1658 3# Generated by GNU Autoconf 2.59 for charybdis 2.2.0.
212380e3 4#
b1fc1658 5# $Id: configure 3165 2007-01-26 16:52:29Z jilles $
212380e3 6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='charybdis'
271PACKAGE_TARNAME='charybdis'
b1fc1658 272PACKAGE_VERSION='2.2.0'
273PACKAGE_STRING='charybdis 2.2.0'
212380e3 274PACKAGE_BUGREPORT=''
275
276ac_default_prefix=$HOME/ircd
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_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 MKDEP MAKEDEPEND STDOUT CPP EGREP SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CP MV LN SED AR LD RANLIB TOUCH YACC LEX LEXLIB LEX_OUTPUT_ROOT CRYPT_LIB VICONF ALLOCA ENCSPEED ZLIB_LD ETC_DIR confdir LOG_DIR logdir HELP_DIR helpdir MODULE_DIR moduledir SELECT_TYPE FNVHASH_S MODULES_LIBS MOD_TARGET SSL_SRCS_ENABLE SSL_INCLUDES SSL_LIBS PICFLAGS IRC_CFLAGS SEDOBJ LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
369 case $ac_option in
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
375
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
396
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
405
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
438
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
587
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
600
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
627
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
631 ;;
632
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
643 *)
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
737 fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
775
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
b1fc1658 783\`configure' configures charybdis 2.2.0 to adapt to many kinds of systems.
212380e3 784
785Usage: $0 [OPTION]... [VAR=VALUE]...
786
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
789
790Defaults for the options are specified in brackets.
791
792Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
802
803_ACEOF
804
805 cat <<_ACEOF
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832_ACEOF
833
834 cat <<\_ACEOF
835_ACEOF
836fi
837
838if test -n "$ac_init_help"; then
839 case $ac_init_help in
b1fc1658 840 short | recursive ) echo "Configuration of charybdis 2.2.0:";;
212380e3 841 esac
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-ipv6 Enable IPv6 support
848 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
849 --disable-openssl Disable OpenSSL support.
850 --disable-zlib Disable ziplinks support
851 --enable-poll Force poll() usage.
852 --enable-select Force select() usage.
853 --enable-kqueue Force kqueue() usage.
854 --enable-devpoll Force usage of /dev/poll.
855 --enable-epoll Force sys_epoll usage (Linux only).
856 --enable-assert Enable assert(). Choose between soft(warnings) and
857 hard(aborts the daemon)
858 --enable-iodebug Enable IO Debugging hooks
859 --enable-profile Enable profiling
860 --disable-balloc Disable the block allocator.
861 --enable-ricer-hashing Enable assembly-based hashing routines.
862 --enable-small-net Enable small network support.
863 --disable-shared-modules
864 Disable shared modules.
865 --enable-warnings Enable all sorts of warnings for debugging.
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-zlib-path=DIR Path to libz.so for ziplinks support.
871 --with-confdir=DIR Directory to install config files.
872 --with-logdir=DIR Directory where to write logfiles.
873 --with-helpdir=DIR Directory to install help files.
874 --with-moduledir=DIR Directory to install modules.
875 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50)
876 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
877 390)
878 --with-maxclients=NUMBER
879 Maximum number of connections the ircd can handle
880
881Some influential environment variables:
882 CC C compiler command
883 CFLAGS C compiler flags
884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
885 nonstandard directory <lib dir>
886 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
887 headers in a nonstandard directory <include dir>
888 CPP C preprocessor
889
890Use these variables to override the choices made by `configure' or to help
891it to find libraries and programs with nonstandard names/locations.
892
893_ACEOF
894fi
895
896if test "$ac_init_help" = "recursive"; then
897 # If there are subdirs, report their specific --help.
898 ac_popdir=`pwd`
899 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
900 test -d $ac_dir || continue
901 ac_builddir=.
902
903if test "$ac_dir" != .; then
904 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
905 # A "../" for each directory in $ac_dir_suffix.
906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
907else
908 ac_dir_suffix= ac_top_builddir=
909fi
910
911case $srcdir in
912 .) # No --srcdir option. We are building in place.
913 ac_srcdir=.
914 if test -z "$ac_top_builddir"; then
915 ac_top_srcdir=.
916 else
917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
918 fi ;;
919 [\\/]* | ?:[\\/]* ) # Absolute path.
920 ac_srcdir=$srcdir$ac_dir_suffix;
921 ac_top_srcdir=$srcdir ;;
922 *) # Relative path.
923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
925esac
926
927# Do not use `cd foo && pwd` to compute absolute paths, because
928# the directories may not exist.
929case `pwd` in
930.) ac_abs_builddir="$ac_dir";;
931*)
932 case "$ac_dir" in
933 .) ac_abs_builddir=`pwd`;;
934 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
935 *) ac_abs_builddir=`pwd`/"$ac_dir";;
936 esac;;
937esac
938case $ac_abs_builddir in
939.) ac_abs_top_builddir=${ac_top_builddir}.;;
940*)
941 case ${ac_top_builddir}. in
942 .) ac_abs_top_builddir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
944 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
945 esac;;
946esac
947case $ac_abs_builddir in
948.) ac_abs_srcdir=$ac_srcdir;;
949*)
950 case $ac_srcdir in
951 .) ac_abs_srcdir=$ac_abs_builddir;;
952 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
953 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_srcdir=$ac_top_srcdir;;
958*)
959 case $ac_top_srcdir in
960 .) ac_abs_top_srcdir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
962 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
963 esac;;
964esac
965
966 cd $ac_dir
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
969 echo
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
972 echo
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
976 echo
977 $ac_configure --help
978 else
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 fi
981 cd $ac_popdir
982 done
983fi
984
985test -n "$ac_init_help" && exit 0
986if $ac_init_version; then
987 cat <<\_ACEOF
b1fc1658 988charybdis configure 2.2.0
212380e3 989generated by GNU Autoconf 2.59
990
991Copyright (C) 2003 Free Software Foundation, Inc.
992This configure script is free software; the Free Software Foundation
993gives unlimited permission to copy, distribute and modify it.
994
b1fc1658 995$Id: configure 3165 2007-01-26 16:52:29Z jilles $
212380e3 996_ACEOF
997 exit 0
998fi
999exec 5>config.log
1000cat >&5 <<_ACEOF
1001This file contains any messages produced by compilers while
1002running configure, to aid debugging if configure makes a mistake.
1003
b1fc1658 1004It was created by charybdis $as_me 2.2.0, which was
212380e3 1005generated by GNU Autoconf 2.59. Invocation command line was
1006
1007 $ $0 $@
1008
1009_ACEOF
1010{
1011cat <<_ASUNAME
1012## --------- ##
1013## Platform. ##
1014## --------- ##
1015
1016hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024
1025/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1026/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1027/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1029/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1030/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1031/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032
1033_ASUNAME
1034
1035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036for as_dir in $PATH
1037do
1038 IFS=$as_save_IFS
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1041done
1042
1043} >&5
1044
1045cat >&5 <<_ACEOF
1046
1047
1048## ----------- ##
1049## Core tests. ##
1050## ----------- ##
1051
1052_ACEOF
1053
1054
1055# Keep a trace of the command line.
1056# Strip out --no-create and --no-recursion so they do not pile up.
1057# Strip out --silent because we don't want to record it for future runs.
1058# Also quote any args containing shell meta-characters.
1059# Make two passes to allow for proper duplicate-argument suppression.
1060ac_configure_args=
1061ac_configure_args0=
1062ac_configure_args1=
1063ac_sep=
1064ac_must_keep_next=false
1065for ac_pass in 1 2
1066do
1067 for ac_arg
1068 do
1069 case $ac_arg in
1070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 continue ;;
1074 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 esac
1077 case $ac_pass in
1078 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 2)
1080 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081 if test $ac_must_keep_next = true; then
1082 ac_must_keep_next=false # Got value, back to normal.
1083 else
1084 case $ac_arg in
1085 *=* | --config-cache | -C | -disable-* | --disable-* \
1086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088 | -with-* | --with-* | -without-* | --without-* | --x)
1089 case "$ac_configure_args0 " in
1090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 esac
1092 ;;
1093 -* ) ac_must_keep_next=true ;;
1094 esac
1095 fi
1096 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097 # Get rid of the leading space.
1098 ac_sep=" "
1099 ;;
1100 esac
1101 done
1102done
1103$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106# When interrupted or exit'd, cleanup temporary files, and complete
1107# config.log. We remove comments because anyway the quotes in there
1108# would cause problems or look ugly.
1109# WARNING: Be sure not to use single quotes in there, as some shells,
1110# such as our DU 5.0 friend, will then `close' the trap.
1111trap 'exit_status=$?
1112 # Save into config.log some information that might help in debugging.
1113 {
1114 echo
1115
1116 cat <<\_ASBOX
1117## ---------------- ##
1118## Cache variables. ##
1119## ---------------- ##
1120_ASBOX
1121 echo
1122 # The following way of writing the cache mishandles newlines in values,
1123{
1124 (set) 2>&1 |
1125 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 *ac_space=\ *)
1127 sed -n \
1128 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 ;;
1131 *)
1132 sed -n \
1133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134 ;;
1135 esac;
1136}
1137 echo
1138
1139 cat <<\_ASBOX
1140## ----------------- ##
1141## Output variables. ##
1142## ----------------- ##
1143_ASBOX
1144 echo
1145 for ac_var in $ac_subst_vars
1146 do
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1151
1152 if test -n "$ac_subst_files"; then
1153 cat <<\_ASBOX
1154## ------------- ##
1155## Output files. ##
1156## ------------- ##
1157_ASBOX
1158 echo
1159 for ac_var in $ac_subst_files
1160 do
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1165 fi
1166
1167 if test -s confdefs.h; then
1168 cat <<\_ASBOX
1169## ----------- ##
1170## confdefs.h. ##
1171## ----------- ##
1172_ASBOX
1173 echo
1174 sed "/^$/d" confdefs.h | sort
1175 echo
1176 fi
1177 test "$ac_signal" != 0 &&
1178 echo "$as_me: caught signal $ac_signal"
1179 echo "$as_me: exit $exit_status"
1180 } >&5
1181 rm -f core *.core &&
1182 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 exit $exit_status
1184 ' 0
1185for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187done
1188ac_signal=0
1189
1190# confdefs.h avoids OS command line length limits that DEFS can exceed.
1191rm -rf conftest* confdefs.h
1192# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193echo >confdefs.h
1194
1195# Predefined preprocessor variables.
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_NAME "$PACKAGE_NAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_VERSION "$PACKAGE_VERSION"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_STRING "$PACKAGE_STRING"
1214_ACEOF
1215
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219_ACEOF
1220
1221
1222# Let the site file select an alternate cache file if it wants to.
1223# Prefer explicitly selected file to automatically selected ones.
1224if test -z "$CONFIG_SITE"; then
1225 if test "x$prefix" != xNONE; then
1226 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 else
1228 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 fi
1230fi
1231for ac_site_file in $CONFIG_SITE; do
1232 if test -r "$ac_site_file"; then
1233 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1236 . "$ac_site_file"
1237 fi
1238done
1239
1240if test -r "$cache_file"; then
1241 # Some versions of bash will fail to source /dev/null (special
1242 # files actually), so we avoid doing that.
1243 if test -f "$cache_file"; then
1244 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245echo "$as_me: loading cache $cache_file" >&6;}
1246 case $cache_file in
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1249 esac
1250 fi
1251else
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253echo "$as_me: creating cache $cache_file" >&6;}
1254 >$cache_file
1255fi
1256
1257# Check that the precious variables saved in the cache have kept the same
1258# value.
1259ac_cache_corrupted=false
1260for ac_var in `(set) 2>&1 |
1261 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263 eval ac_new_set=\$ac_env_${ac_var}_set
1264 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265 eval ac_new_val="\$ac_env_${ac_var}_value"
1266 case $ac_old_set,$ac_new_set in
1267 set,)
1268 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270 ac_cache_corrupted=: ;;
1271 ,set)
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1275 ,);;
1276 *)
1277 if test "x$ac_old_val" != "x$ac_new_val"; then
1278 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283echo "$as_me: current value: $ac_new_val" >&2;}
1284 ac_cache_corrupted=:
1285 fi;;
1286 esac
1287 # Pass precious variables to config.status.
1288 if test "$ac_new_set" = set; then
1289 case $ac_new_val in
1290 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292 *) ac_arg=$ac_var=$ac_new_val ;;
1293 esac
1294 case " $ac_configure_args " in
1295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1296 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 esac
1298 fi
1299done
1300if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1306fi
1307
1308ac_ext=c
1309ac_cpp='$CPP $CPPFLAGS'
1310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341 ac_config_headers="$ac_config_headers include/setup.h"
1342
1343
1344
1345
1346
1347cat >>confdefs.h <<\_ACEOF
1348#define _GNU_SOURCE 1
1349_ACEOF
1350
1351
1352
1353OLD_CFLAGS="$CFLAGS"
1354ac_ext=c
1355ac_cpp='$CPP $CPPFLAGS'
1356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359if test -n "$ac_tool_prefix"; then
1360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1361set dummy ${ac_tool_prefix}gcc; ac_word=$2
1362echo "$as_me:$LINENO: checking for $ac_word" >&5
1363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364if test "${ac_cv_prog_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366else
1367 if test -n "$CC"; then
1368 ac_cv_prog_CC="$CC" # Let the user override the test.
1369else
1370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371for as_dir in $PATH
1372do
1373 IFS=$as_save_IFS
1374 test -z "$as_dir" && as_dir=.
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1379 break 2
1380 fi
1381done
1382done
1383
1384fi
1385fi
1386CC=$ac_cv_prog_CC
1387if test -n "$CC"; then
1388 echo "$as_me:$LINENO: result: $CC" >&5
1389echo "${ECHO_T}$CC" >&6
1390else
1391 echo "$as_me:$LINENO: result: no" >&5
1392echo "${ECHO_T}no" >&6
1393fi
1394
1395fi
1396if test -z "$ac_cv_prog_CC"; then
1397 ac_ct_CC=$CC
1398 # Extract the first word of "gcc", so it can be a program name with args.
1399set dummy gcc; ac_word=$2
1400echo "$as_me:$LINENO: checking for $ac_word" >&5
1401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405 if test -n "$ac_ct_CC"; then
1406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1407else
1408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409for as_dir in $PATH
1410do
1411 IFS=$as_save_IFS
1412 test -z "$as_dir" && as_dir=.
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1415 ac_cv_prog_ac_ct_CC="gcc"
1416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1417 break 2
1418 fi
1419done
1420done
1421
1422fi
1423fi
1424ac_ct_CC=$ac_cv_prog_ac_ct_CC
1425if test -n "$ac_ct_CC"; then
1426 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1427echo "${ECHO_T}$ac_ct_CC" >&6
1428else
1429 echo "$as_me:$LINENO: result: no" >&5
1430echo "${ECHO_T}no" >&6
1431fi
1432
1433 CC=$ac_ct_CC
1434else
1435 CC="$ac_cv_prog_CC"
1436fi
1437
1438if test -z "$CC"; then
1439 if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1441set dummy ${ac_tool_prefix}cc; ac_word=$2
1442echo "$as_me:$LINENO: checking for $ac_word" >&5
1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449else
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}cc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
1462done
1463
1464fi
1465fi
1466CC=$ac_cv_prog_CC
1467if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469echo "${ECHO_T}$CC" >&6
1470else
1471 echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475fi
1476if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "cc", so it can be a program name with args.
1479set dummy cc; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487else
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="cc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
1502fi
1503fi
1504ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507echo "${ECHO_T}$ac_ct_CC" >&6
1508else
1509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513 CC=$ac_ct_CC
1514else
1515 CC="$ac_cv_prog_CC"
1516fi
1517
1518fi
1519if test -z "$CC"; then
1520 # Extract the first word of "cc", so it can be a program name with args.
1521set dummy cc; ac_word=$2
1522echo "$as_me:$LINENO: checking for $ac_word" >&5
1523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529else
1530 ac_prog_rejected=no
1531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532for as_dir in $PATH
1533do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1539 ac_prog_rejected=yes
1540 continue
1541 fi
1542 ac_cv_prog_CC="cc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 break 2
1545 fi
1546done
1547done
1548
1549if test $ac_prog_rejected = yes; then
1550 # We found a bogon in the path, so make sure we never use it.
1551 set dummy $ac_cv_prog_CC
1552 shift
1553 if test $# != 0; then
1554 # We chose a different compiler from the bogus one.
1555 # However, it has the same basename, so the bogon will be chosen
1556 # first if we set CC to just the basename; use the full file name.
1557 shift
1558 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1559 fi
1560fi
1561fi
1562fi
1563CC=$ac_cv_prog_CC
1564if test -n "$CC"; then
1565 echo "$as_me:$LINENO: result: $CC" >&5
1566echo "${ECHO_T}$CC" >&6
1567else
1568 echo "$as_me:$LINENO: result: no" >&5
1569echo "${ECHO_T}no" >&6
1570fi
1571
1572fi
1573if test -z "$CC"; then
1574 if test -n "$ac_tool_prefix"; then
1575 for ac_prog in cl
1576 do
1577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1578set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1579echo "$as_me:$LINENO: checking for $ac_word" >&5
1580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC="$CC" # Let the user override the test.
1586else
1587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588for as_dir in $PATH
1589do
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596 break 2
1597 fi
1598done
1599done
1600
1601fi
1602fi
1603CC=$ac_cv_prog_CC
1604if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606echo "${ECHO_T}$CC" >&6
1607else
1608 echo "$as_me:$LINENO: result: no" >&5
1609echo "${ECHO_T}no" >&6
1610fi
1611
1612 test -n "$CC" && break
1613 done
1614fi
1615if test -z "$CC"; then
1616 ac_ct_CC=$CC
1617 for ac_prog in cl
1618do
1619 # Extract the first word of "$ac_prog", so it can be a program name with args.
1620set dummy $ac_prog; ac_word=$2
1621echo "$as_me:$LINENO: checking for $ac_word" >&5
1622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625else
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1628else
1629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_ac_ct_CC="$ac_prog"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
1641done
1642
1643fi
1644fi
1645ac_ct_CC=$ac_cv_prog_ac_ct_CC
1646if test -n "$ac_ct_CC"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1648echo "${ECHO_T}$ac_ct_CC" >&6
1649else
1650 echo "$as_me:$LINENO: result: no" >&5
1651echo "${ECHO_T}no" >&6
1652fi
1653
1654 test -n "$ac_ct_CC" && break
1655done
1656
1657 CC=$ac_ct_CC
1658fi
1659
1660fi
1661
1662
1663test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1664See \`config.log' for more details." >&5
1665echo "$as_me: error: no acceptable C compiler found in \$PATH
1666See \`config.log' for more details." >&2;}
1667 { (exit 1); exit 1; }; }
1668
1669# Provide some information about the compiler.
1670echo "$as_me:$LINENO:" \
1671 "checking for C compiler version" >&5
1672ac_compiler=`set X $ac_compile; echo $2`
1673{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1674 (eval $ac_compiler --version </dev/null >&5) 2>&5
1675 ac_status=$?
1676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1677 (exit $ac_status); }
1678{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1679 (eval $ac_compiler -v </dev/null >&5) 2>&5
1680 ac_status=$?
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1684 (eval $ac_compiler -V </dev/null >&5) 2>&5
1685 ac_status=$?
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688
1689cat >conftest.$ac_ext <<_ACEOF
1690/* confdefs.h. */
1691_ACEOF
1692cat confdefs.h >>conftest.$ac_ext
1693cat >>conftest.$ac_ext <<_ACEOF
1694/* end confdefs.h. */
1695
1696int
1697main ()
1698{
1699
1700 ;
1701 return 0;
1702}
1703_ACEOF
1704ac_clean_files_save=$ac_clean_files
1705ac_clean_files="$ac_clean_files a.out a.exe b.out"
1706# Try to create an executable without -o first, disregard a.out.
1707# It will help us diagnose broken compilers, and finding out an intuition
1708# of exeext.
1709echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1710echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1711ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1712if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1713 (eval $ac_link_default) 2>&5
1714 ac_status=$?
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }; then
1717 # Find the output, starting from the most likely. This scheme is
1718# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1719# resort.
1720
1721# Be careful to initialize this variable, since it used to be cached.
1722# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1723ac_cv_exeext=
1724# b.out is created by i960 compilers.
1725for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1726do
1727 test -f "$ac_file" || continue
1728 case $ac_file in
1729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1730 ;;
1731 conftest.$ac_ext )
1732 # This is the source file.
1733 ;;
1734 [ab].out )
1735 # We found the default executable, but exeext='' is most
1736 # certainly right.
1737 break;;
1738 *.* )
1739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1740 # FIXME: I believe we export ac_cv_exeext for Libtool,
1741 # but it would be cool to find out if it's true. Does anybody
1742 # maintain Libtool? --akim.
1743 export ac_cv_exeext
1744 break;;
1745 * )
1746 break;;
1747 esac
1748done
1749else
1750 echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1754See \`config.log' for more details." >&5
1755echo "$as_me: error: C compiler cannot create executables
1756See \`config.log' for more details." >&2;}
1757 { (exit 77); exit 77; }; }
1758fi
1759
1760ac_exeext=$ac_cv_exeext
1761echo "$as_me:$LINENO: result: $ac_file" >&5
1762echo "${ECHO_T}$ac_file" >&6
1763
1764# Check the compiler produces executables we can run. If not, either
1765# the compiler is broken, or we cross compile.
1766echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1767echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1768# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1769# If not cross compiling, check that we can run a simple program.
1770if test "$cross_compiling" != yes; then
1771 if { ac_try='./$ac_file'
1772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1773 (eval $ac_try) 2>&5
1774 ac_status=$?
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; }; then
1777 cross_compiling=no
1778 else
1779 if test "$cross_compiling" = maybe; then
1780 cross_compiling=yes
1781 else
1782 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1783If you meant to cross compile, use \`--host'.
1784See \`config.log' for more details." >&5
1785echo "$as_me: error: cannot run C compiled programs.
1786If you meant to cross compile, use \`--host'.
1787See \`config.log' for more details." >&2;}
1788 { (exit 1); exit 1; }; }
1789 fi
1790 fi
1791fi
1792echo "$as_me:$LINENO: result: yes" >&5
1793echo "${ECHO_T}yes" >&6
1794
1795rm -f a.out a.exe conftest$ac_cv_exeext b.out
1796ac_clean_files=$ac_clean_files_save
1797# Check the compiler produces executables we can run. If not, either
1798# the compiler is broken, or we cross compile.
1799echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1800echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1801echo "$as_me:$LINENO: result: $cross_compiling" >&5
1802echo "${ECHO_T}$cross_compiling" >&6
1803
1804echo "$as_me:$LINENO: checking for suffix of executables" >&5
1805echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1807 (eval $ac_link) 2>&5
1808 ac_status=$?
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }; then
1811 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1812# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1813# work properly (i.e., refer to `conftest.exe'), while it won't with
1814# `rm'.
1815for ac_file in conftest.exe conftest conftest.*; do
1816 test -f "$ac_file" || continue
1817 case $ac_file in
1818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 export ac_cv_exeext
1821 break;;
1822 * ) break;;
1823 esac
1824done
1825else
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1827See \`config.log' for more details." >&5
1828echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1829See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1831fi
1832
1833rm -f conftest$ac_cv_exeext
1834echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1835echo "${ECHO_T}$ac_cv_exeext" >&6
1836
1837rm -f conftest.$ac_ext
1838EXEEXT=$ac_cv_exeext
1839ac_exeext=$EXEEXT
1840echo "$as_me:$LINENO: checking for suffix of object files" >&5
1841echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1842if test "${ac_cv_objext+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845 cat >conftest.$ac_ext <<_ACEOF
1846/* confdefs.h. */
1847_ACEOF
1848cat confdefs.h >>conftest.$ac_ext
1849cat >>conftest.$ac_ext <<_ACEOF
1850/* end confdefs.h. */
1851
1852int
1853main ()
1854{
1855
1856 ;
1857 return 0;
1858}
1859_ACEOF
1860rm -f conftest.o conftest.obj
1861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1863 ac_status=$?
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }; then
1866 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1867 case $ac_file in
1868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1869 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1870 break;;
1871 esac
1872done
1873else
1874 echo "$as_me: failed program was:" >&5
1875sed 's/^/| /' conftest.$ac_ext >&5
1876
1877{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1878See \`config.log' for more details." >&5
1879echo "$as_me: error: cannot compute suffix of object files: cannot compile
1880See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
1882fi
1883
1884rm -f conftest.$ac_cv_objext conftest.$ac_ext
1885fi
1886echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1887echo "${ECHO_T}$ac_cv_objext" >&6
1888OBJEXT=$ac_cv_objext
1889ac_objext=$OBJEXT
1890echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1891echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895 cat >conftest.$ac_ext <<_ACEOF
1896/* confdefs.h. */
1897_ACEOF
1898cat confdefs.h >>conftest.$ac_ext
1899cat >>conftest.$ac_ext <<_ACEOF
1900/* end confdefs.h. */
1901
1902int
1903main ()
1904{
1905#ifndef __GNUC__
1906 choke me
1907#endif
1908
1909 ;
1910 return 0;
1911}
1912_ACEOF
1913rm -f conftest.$ac_objext
1914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915 (eval $ac_compile) 2>conftest.er1
1916 ac_status=$?
1917 grep -v '^ *+' conftest.er1 >conftest.err
1918 rm -f conftest.er1
1919 cat conftest.err >&5
1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921 (exit $ac_status); } &&
1922 { ac_try='test -z "$ac_c_werror_flag"
1923 || test ! -s conftest.err'
1924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1925 (eval $ac_try) 2>&5
1926 ac_status=$?
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; } &&
1929 { ac_try='test -s conftest.$ac_objext'
1930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 (eval $ac_try) 2>&5
1932 ac_status=$?
1933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934 (exit $ac_status); }; }; then
1935 ac_compiler_gnu=yes
1936else
1937 echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940ac_compiler_gnu=no
1941fi
1942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1943ac_cv_c_compiler_gnu=$ac_compiler_gnu
1944
1945fi
1946echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948GCC=`test $ac_compiler_gnu = yes && echo yes`
1949ac_test_CFLAGS=${CFLAGS+set}
1950ac_save_CFLAGS=$CFLAGS
1951CFLAGS="-g"
1952echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956else
1957 cat >conftest.$ac_ext <<_ACEOF
1958/* confdefs.h. */
1959_ACEOF
1960cat confdefs.h >>conftest.$ac_ext
1961cat >>conftest.$ac_ext <<_ACEOF
1962/* end confdefs.h. */
1963
1964int
1965main ()
1966{
1967
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972rm -f conftest.$ac_objext
1973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1974 (eval $ac_compile) 2>conftest.er1
1975 ac_status=$?
1976 grep -v '^ *+' conftest.er1 >conftest.err
1977 rm -f conftest.er1
1978 cat conftest.err >&5
1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -z "$ac_c_werror_flag"
1982 || test ! -s conftest.err'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; } &&
1988 { ac_try='test -s conftest.$ac_objext'
1989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1990 (eval $ac_try) 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }; }; then
1994 ac_cv_prog_cc_g=yes
1995else
1996 echo "$as_me: failed program was:" >&5
1997sed 's/^/| /' conftest.$ac_ext >&5
1998
1999ac_cv_prog_cc_g=no
2000fi
2001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2004echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2005if test "$ac_test_CFLAGS" = set; then
2006 CFLAGS=$ac_save_CFLAGS
2007elif test $ac_cv_prog_cc_g = yes; then
2008 if test "$GCC" = yes; then
2009 CFLAGS="-g -O2"
2010 else
2011 CFLAGS="-g"
2012 fi
2013else
2014 if test "$GCC" = yes; then
2015 CFLAGS="-O2"
2016 else
2017 CFLAGS=
2018 fi
2019fi
2020echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2021echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2022if test "${ac_cv_prog_cc_stdc+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025 ac_cv_prog_cc_stdc=no
2026ac_save_CC=$CC
2027cat >conftest.$ac_ext <<_ACEOF
2028/* confdefs.h. */
2029_ACEOF
2030cat confdefs.h >>conftest.$ac_ext
2031cat >>conftest.$ac_ext <<_ACEOF
2032/* end confdefs.h. */
2033#include <stdarg.h>
2034#include <stdio.h>
2035#include <sys/types.h>
2036#include <sys/stat.h>
2037/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2038struct buf { int x; };
2039FILE * (*rcsopen) (struct buf *, struct stat *, int);
2040static char *e (p, i)
2041 char **p;
2042 int i;
2043{
2044 return p[i];
2045}
2046static char *f (char * (*g) (char **, int), char **p, ...)
2047{
2048 char *s;
2049 va_list v;
2050 va_start (v,p);
2051 s = g (p, va_arg (v,int));
2052 va_end (v);
2053 return s;
2054}
2055
2056/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2057 function prototypes and stuff, but not '\xHH' hex character constants.
2058 These don't provoke an error unfortunately, instead are silently treated
2059 as 'x'. The following induces an error, until -std1 is added to get
2060 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2061 array size at least. It's necessary to write '\x00'==0 to get something
2062 that's true only with -std1. */
2063int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2064
2065int test (int i, double x);
2066struct s1 {int (*f) (int a);};
2067struct s2 {int (*f) (double a);};
2068int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2069int argc;
2070char **argv;
2071int
2072main ()
2073{
2074return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079# Don't try gcc -ansi; that turns off useful extensions and
2080# breaks some systems' header files.
2081# AIX -qlanglvl=ansi
2082# Ultrix and OSF/1 -std1
2083# HP-UX 10.20 and later -Ae
2084# HP-UX older versions -Aa -D_HPUX_SOURCE
2085# SVR4 -Xc -D__EXTENSIONS__
2086for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2087do
2088 CC="$ac_save_CC $ac_arg"
2089 rm -f conftest.$ac_objext
2090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2092 ac_status=$?
2093 grep -v '^ *+' conftest.er1 >conftest.err
2094 rm -f conftest.er1
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag"
2099 || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 ac_cv_prog_cc_stdc=$ac_arg
2112break
2113else
2114 echo "$as_me: failed program was:" >&5
2115sed 's/^/| /' conftest.$ac_ext >&5
2116
2117fi
2118rm -f conftest.err conftest.$ac_objext
2119done
2120rm -f conftest.$ac_ext conftest.$ac_objext
2121CC=$ac_save_CC
2122
2123fi
2124
2125case "x$ac_cv_prog_cc_stdc" in
2126 x|xno)
2127 echo "$as_me:$LINENO: result: none needed" >&5
2128echo "${ECHO_T}none needed" >&6 ;;
2129 *)
2130 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2131echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2132 CC="$CC $ac_cv_prog_cc_stdc" ;;
2133esac
2134
2135# Some people use a C++ compiler to compile C. Since we use `exit',
2136# in C++ we need to declare it. In case someone uses the same compiler
2137# for both compiling C and C++ we need to have the C++ compiler decide
2138# the declaration of exit, since it's the most demanding environment.
2139cat >conftest.$ac_ext <<_ACEOF
2140#ifndef __cplusplus
2141 choke me
2142#endif
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>conftest.er1
2147 ac_status=$?
2148 grep -v '^ *+' conftest.er1 >conftest.err
2149 rm -f conftest.er1
2150 cat conftest.err >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); } &&
2153 { ac_try='test -z "$ac_c_werror_flag"
2154 || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 for ac_declaration in \
2167 '' \
2168 'extern "C" void std::exit (int) throw (); using std::exit;' \
2169 'extern "C" void std::exit (int); using std::exit;' \
2170 'extern "C" void exit (int) throw ();' \
2171 'extern "C" void exit (int);' \
2172 'void exit (int);'
2173do
2174 cat >conftest.$ac_ext <<_ACEOF
2175/* confdefs.h. */
2176_ACEOF
2177cat confdefs.h >>conftest.$ac_ext
2178cat >>conftest.$ac_ext <<_ACEOF
2179/* end confdefs.h. */
2180$ac_declaration
2181#include <stdlib.h>
2182int
2183main ()
2184{
2185exit (42);
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190rm -f conftest.$ac_objext
2191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 :
2213else
2214 echo "$as_me: failed program was:" >&5
2215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217continue
2218fi
2219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h. */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h. */
2226$ac_declaration
2227int
2228main ()
2229{
2230exit (42);
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235rm -f conftest.$ac_objext
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237 (eval $ac_compile) 2>conftest.er1
2238 ac_status=$?
2239 grep -v '^ *+' conftest.er1 >conftest.err
2240 rm -f conftest.er1
2241 cat conftest.err >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } &&
2244 { ac_try='test -z "$ac_c_werror_flag"
2245 || test ! -s conftest.err'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 (eval $ac_try) 2>&5
2248 ac_status=$?
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; } &&
2251 { ac_try='test -s conftest.$ac_objext'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2257 break
2258else
2259 echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262fi
2263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2264done
2265rm -f conftest*
2266if test -n "$ac_declaration"; then
2267 echo '#ifdef __cplusplus' >>confdefs.h
2268 echo $ac_declaration >>confdefs.h
2269 echo '#endif' >>confdefs.h
2270fi
2271
2272else
2273 echo "$as_me: failed program was:" >&5
2274sed 's/^/| /' conftest.$ac_ext >&5
2275
2276fi
2277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278ac_ext=c
2279ac_cpp='$CPP $CPPFLAGS'
2280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284ac_ext=c
2285ac_cpp='$CPP $CPPFLAGS'
2286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291CFLAGS="$OLD_CFLAGS"
2292
2293
2294if test "$ac_cv_c_compiler_gnu" != yes; then
2295
2296SGS=no
2297echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2298echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6
2299case `$CC -version 2>&1` in
2300*TenDRA*)
2301 echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2302echo "${ECHO_T}yes, TenDRA" >&6
2303 IRC_CFLAGS=""
2304 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2305 SGS=yes
2306 TenDRA=yes
2307;;
2308*MIPSpro*)
2309 echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2310echo "${ECHO_T}yes, MIPSpro" >&6
2311 MIPSpro=yes
2312 SGS=yes
2313;;
2314*)
2315 echo "$as_me:$LINENO: result: no" >&5
2316echo "${ECHO_T}no" >&6
2317 TenDRA=no
2318 MIPSpro=no
2319;;
2320esac
2321
2322echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2323echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6
2324case `$CC -V 2>&1` in
2325*Sun*WorkShop* | *Forte*Developer*)
2326 echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2327echo "${ECHO_T}Sun Workshop/Forte" >&6
2328 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2329 SunWorkShop=yes
2330 SGS=yes
2331;;
2332*Tru64*)
2333 echo "$as_me:$LINENO: result: Tru64 cc" >&5
2334echo "${ECHO_T}Tru64 cc" >&6
2335 IRC_CFLAGS="-O2"
2336 CPPFLAGS="-I/usr/local/include"
2337 Tru=yes
2338;;
2339*HP*ANSI*)
2340 echo "$as_me:$LINENO: result: HPUX cc" >&5
2341echo "${ECHO_T}HPUX cc" >&6
2342 HPUX=yes
2343 IRC_CFLAGS="+e"
2344;;
2345*)
2346 echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6
2348;;
2349esac
2350
2351fi
2352
2353echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2354echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6
2355OSNAME=`uname -s`
2356case "$OSNAME" in
2357 HP-UX*)
2358
2359 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2360 echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2361echo "${ECHO_T}assuming old HPUX with its own cc" >&6
2362 IRC_CFLAGS="$IRC_CFLAGS +e"
2363 HPUX=yes
2364 else
2365 echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2366echo "${ECHO_T}already using newer HPUX" >&6
2367 fi
2368 ;;
2369 CYGWIN*)
2370 echo "$as_me:$LINENO: result: Cygwin" >&5
2371echo "${ECHO_T}Cygwin" >&6
2372 CYGWIN=yes
2373 ;;
2374 SunOS*)
2375 echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2376echo "${ECHO_T}SunOS or Solaris" >&6
2377
2378cat >>confdefs.h <<\_ACEOF
2379#define __EXTENSIONS__ 1
2380_ACEOF
2381
2382 SUN=yes
2383 ;;
2384 AIX*)
2385 echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2386echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6
2387 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2388 ;;
2389 *)
2390 echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6
2392 ;;
2393esac
2394
2395if test "$ac_cv_c_compiler_gnu" = yes; then
2396 echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2397echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6
2398
2399 case `$CC -v 2>&1 | tail -n 1` in
2400 *Apple*)
2401 echo "$as_me:$LINENO: result: yes" >&5
2402echo "${ECHO_T}yes" >&6
2403 AppleGCC=yes
2404 ;;
2405 *)
2406 echo "$as_me:$LINENO: result: no" >&5
2407echo "${ECHO_T}no" >&6
2408 AppleGCC=no
2409 ;;
2410 esac
2411
2412 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2413fi
2414
2415if test "$ac_cv_prog_cc_g" = yes; then
2416 if test "$Tru" = yes; then
2417 IRC_CFLAGS="$IRC_CFLAGS -g3"
2418 else
2419 IRC_CFLAGS="$IRC_CFLAGS -g"
2420 fi
2421fi
2422
2423echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2424echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6
2425if test "$SGS" = "yes"; then
2426 echo "$as_me:$LINENO: result: yes" >&5
2427echo "${ECHO_T}yes" >&6
2428else
2429 echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
2431fi
2432
2433# Extract the first word of "mkdep", so it can be a program name with args.
2434set dummy mkdep; ac_word=$2
2435echo "$as_me:$LINENO: checking for $ac_word" >&5
2436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437if test "${ac_cv_path_MKDEP+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440 case $MKDEP in
2441 [\\/]* | ?:[\\/]*)
2442 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2443 ;;
2444 *)
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
2457done
2458
2459 ;;
2460esac
2461fi
2462MKDEP=$ac_cv_path_MKDEP
2463
2464if test -n "$MKDEP"; then
2465 echo "$as_me:$LINENO: result: $MKDEP" >&5
2466echo "${ECHO_T}$MKDEP" >&6
2467else
2468 echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6
2470fi
2471
2472# Extract the first word of "makedepend", so it can be a program name with args.
2473set dummy makedepend; ac_word=$2
2474echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478else
2479 case $MAKEDEPEND in
2480 [\\/]* | ?:[\\/]*)
2481 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2482 ;;
2483 *)
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485for as_dir in $PATH
2486do
2487 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 break 2
2494 fi
2495done
2496done
2497
2498 ;;
2499esac
2500fi
2501MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2502
2503if test -n "$MAKEDEPEND"; then
2504 echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2505echo "${ECHO_T}$MAKEDEPEND" >&6
2506else
2507 echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6
2509fi
2510
2511
2512echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2513echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6
2514
2515STDOUT="> .depend"
2516
2517if test "$ac_cv_c_compiler_gnu" = yes; then
2518 echo "$as_me:$LINENO: result: gcc -MM" >&5
2519echo "${ECHO_T}gcc -MM" >&6
2520 MKDEP="$CC -MM"
2521elif test ! -z "$MKDEP"; then
2522 echo "$as_me:$LINENO: result: mkdep" >&5
2523echo "${ECHO_T}mkdep" >&6
2524
2525 if test -z "$Tru"; then
2526 STDOUT=""
2527 else
2528 STDOUT=" 2> /dev/null"
2529 fi
2530elif test "$SunWorkShop" = yes; then
2531 echo "$as_me:$LINENO: result: $CC -xM" >&5
2532echo "${ECHO_T}$CC -xM" >&6
2533 MKDEP="$CC -xM"
2534 STDOUT="> .depend 2> /dev/null"
2535elif test ! -z "$MAKEDEPEND"; then
2536 echo "$as_me:$LINENO: result: makedepend" >&5
2537echo "${ECHO_T}makedepend" >&6
2538 MKDEP="$MAKEDEPEND -f-"
2539else
2540 echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2541echo "${ECHO_T}nothing suitable.. forget it!" >&6
2542 MKDEP=":"
2543fi
2544
2545
2546
2547
2548echo "$as_me:$LINENO: checking for /dev/null" >&5
2549echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6
2550if test -c /dev/null ; then
2551
2552cat >>confdefs.h <<\_ACEOF
2553#define PATH_DEVNULL "/dev/null"
2554_ACEOF
2555
2556 echo "$as_me:$LINENO: result: yes" >&5
2557echo "${ECHO_T}yes" >&6
2558else
2559
2560cat >>confdefs.h <<\_ACEOF
2561#define PATH_DEVNULL "devnull.log"
2562_ACEOF
2563
2564 echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2565echo "${ECHO_T}no - using devnull.log" >&6
2566fi
2567
2568if test ! -z "$CFLAGS"; then
2569 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2570fi
2571
2572
2573echo "$as_me:$LINENO: checking for library containing strerror" >&5
2574echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2575if test "${ac_cv_search_strerror+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578 ac_func_search_save_LIBS=$LIBS
2579ac_cv_search_strerror=no
2580cat >conftest.$ac_ext <<_ACEOF
2581/* confdefs.h. */
2582_ACEOF
2583cat confdefs.h >>conftest.$ac_ext
2584cat >>conftest.$ac_ext <<_ACEOF
2585/* end confdefs.h. */
2586
2587/* Override any gcc2 internal prototype to avoid an error. */
2588#ifdef __cplusplus
2589extern "C"
2590#endif
2591/* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2593char strerror ();
2594int
2595main ()
2596{
2597strerror ();
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602rm -f conftest.$ac_objext conftest$ac_exeext
2603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>conftest.er1
2605 ac_status=$?
2606 grep -v '^ *+' conftest.er1 >conftest.err
2607 rm -f conftest.er1
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 { ac_try='test -z "$ac_c_werror_flag"
2612 || test ! -s conftest.err'
2613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 (eval $ac_try) 2>&5
2615 ac_status=$?
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; } &&
2618 { ac_try='test -s conftest$ac_exeext'
2619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620 (eval $ac_try) 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; }; then
2624 ac_cv_search_strerror="none required"
2625else
2626 echo "$as_me: failed program was:" >&5
2627sed 's/^/| /' conftest.$ac_ext >&5
2628
2629fi
2630rm -f conftest.err conftest.$ac_objext \
2631 conftest$ac_exeext conftest.$ac_ext
2632if test "$ac_cv_search_strerror" = no; then
2633 for ac_lib in cposix; do
2634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2635 cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
2641
2642/* Override any gcc2 internal prototype to avoid an error. */
2643#ifdef __cplusplus
2644extern "C"
2645#endif
2646/* We use char because int might match the return type of a gcc2
2647 builtin and then its argument prototype would still apply. */
2648char strerror ();
2649int
2650main ()
2651{
2652strerror ();
2653 ;
2654 return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext conftest$ac_exeext
2658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>conftest.er1
2660 ac_status=$?
2661 grep -v '^ *+' conftest.er1 >conftest.err
2662 rm -f conftest.er1
2663 cat conftest.err >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); } &&
2666 { ac_try='test -z "$ac_c_werror_flag"
2667 || test ! -s conftest.err'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; } &&
2673 { ac_try='test -s conftest$ac_exeext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 (eval $ac_try) 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 ac_cv_search_strerror="-l$ac_lib"
2680break
2681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext \
2687 conftest$ac_exeext conftest.$ac_ext
2688 done
2689fi
2690LIBS=$ac_func_search_save_LIBS
2691fi
2692echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2693echo "${ECHO_T}$ac_cv_search_strerror" >&6
2694if test "$ac_cv_search_strerror" != no; then
2695 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2696
2697fi
2698
2699echo "$as_me:$LINENO: checking for inline" >&5
2700echo $ECHO_N "checking for inline... $ECHO_C" >&6
2701if test "${ac_cv_c_inline+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703else
2704 ac_cv_c_inline=no
2705for ac_kw in inline __inline__ __inline; do
2706 cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h. */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h. */
2712#ifndef __cplusplus
2713typedef int foo_t;
2714static $ac_kw foo_t static_foo () {return 0; }
2715$ac_kw foo_t foo () {return 0; }
2716#endif
2717
2718_ACEOF
2719rm -f conftest.$ac_objext
2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_c_inline=$ac_kw; break
2742else
2743 echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746fi
2747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748done
2749
2750fi
2751echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2752echo "${ECHO_T}$ac_cv_c_inline" >&6
2753
2754
2755case $ac_cv_c_inline in
2756 inline | yes) ;;
2757 *)
2758 case $ac_cv_c_inline in
2759 no) ac_val=;;
2760 *) ac_val=$ac_cv_c_inline;;
2761 esac
2762 cat >>confdefs.h <<_ACEOF
2763#ifndef __cplusplus
2764#define inline $ac_val
2765#endif
2766_ACEOF
2767 ;;
2768esac
2769
2770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2776echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2777# On Suns, sometimes $CPP names a directory.
2778if test -n "$CPP" && test -d "$CPP"; then
2779 CPP=
2780fi
2781if test -z "$CPP"; then
2782 if test "${ac_cv_prog_CPP+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784else
2785 # Double quotes because CPP needs to be expanded
2786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2787 do
2788 ac_preproc_ok=false
2789for ac_c_preproc_warn_flag in '' yes
2790do
2791 # Use a header file that comes with gcc, so configuring glibc
2792 # with a fresh cross-compiler works.
2793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 # <limits.h> exists even on freestanding compilers.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp. "Syntax error" is here to catch this case.
2797 cat >conftest.$ac_ext <<_ACEOF
2798/* confdefs.h. */
2799_ACEOF
2800cat confdefs.h >>conftest.$ac_ext
2801cat >>conftest.$ac_ext <<_ACEOF
2802/* end confdefs.h. */
2803#ifdef __STDC__
2804# include <limits.h>
2805#else
2806# include <assert.h>
2807#endif
2808 Syntax error
2809_ACEOF
2810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2812 ac_status=$?
2813 grep -v '^ *+' conftest.er1 >conftest.err
2814 rm -f conftest.er1
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } >/dev/null; then
2818 if test -s conftest.err; then
2819 ac_cpp_err=$ac_c_preproc_warn_flag
2820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2821 else
2822 ac_cpp_err=
2823 fi
2824else
2825 ac_cpp_err=yes
2826fi
2827if test -z "$ac_cpp_err"; then
2828 :
2829else
2830 echo "$as_me: failed program was:" >&5
2831sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 # Broken: fails on valid input.
2834continue
2835fi
2836rm -f conftest.err conftest.$ac_ext
2837
2838 # OK, works on sane cases. Now check whether non-existent headers
2839 # can be detected and how.
2840 cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h. */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h. */
2846#include <ac_nonexistent.h>
2847_ACEOF
2848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2850 ac_status=$?
2851 grep -v '^ *+' conftest.er1 >conftest.err
2852 rm -f conftest.er1
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev/null; then
2856 if test -s conftest.err; then
2857 ac_cpp_err=$ac_c_preproc_warn_flag
2858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2859 else
2860 ac_cpp_err=
2861 fi
2862else
2863 ac_cpp_err=yes
2864fi
2865if test -z "$ac_cpp_err"; then
2866 # Broken: success on invalid input.
2867continue
2868else
2869 echo "$as_me: failed program was:" >&5
2870sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 # Passes both tests.
2873ac_preproc_ok=:
2874break
2875fi
2876rm -f conftest.err conftest.$ac_ext
2877
2878done
2879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880rm -f conftest.err conftest.$ac_ext
2881if $ac_preproc_ok; then
2882 break
2883fi
2884
2885 done
2886 ac_cv_prog_CPP=$CPP
2887
2888fi
2889 CPP=$ac_cv_prog_CPP
2890else
2891 ac_cv_prog_CPP=$CPP
2892fi
2893echo "$as_me:$LINENO: result: $CPP" >&5
2894echo "${ECHO_T}$CPP" >&6
2895ac_preproc_ok=false
2896for ac_c_preproc_warn_flag in '' yes
2897do
2898 # Use a header file that comes with gcc, so configuring glibc
2899 # with a fresh cross-compiler works.
2900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2901 # <limits.h> exists even on freestanding compilers.
2902 # On the NeXT, cc -E runs the code through the compiler's parser,
2903 # not just through cpp. "Syntax error" is here to catch this case.
2904 cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
2910#ifdef __STDC__
2911# include <limits.h>
2912#else
2913# include <assert.h>
2914#endif
2915 Syntax error
2916_ACEOF
2917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } >/dev/null; then
2925 if test -s conftest.err; then
2926 ac_cpp_err=$ac_c_preproc_warn_flag
2927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2928 else
2929 ac_cpp_err=
2930 fi
2931else
2932 ac_cpp_err=yes
2933fi
2934if test -z "$ac_cpp_err"; then
2935 :
2936else
2937 echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 # Broken: fails on valid input.
2941continue
2942fi
2943rm -f conftest.err conftest.$ac_ext
2944
2945 # OK, works on sane cases. Now check whether non-existent headers
2946 # can be detected and how.
2947 cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h. */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h. */
2953#include <ac_nonexistent.h>
2954_ACEOF
2955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } >/dev/null; then
2963 if test -s conftest.err; then
2964 ac_cpp_err=$ac_c_preproc_warn_flag
2965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966 else
2967 ac_cpp_err=
2968 fi
2969else
2970 ac_cpp_err=yes
2971fi
2972if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2974continue
2975else
2976 echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 # Passes both tests.
2980ac_preproc_ok=:
2981break
2982fi
2983rm -f conftest.err conftest.$ac_ext
2984
2985done
2986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987rm -f conftest.err conftest.$ac_ext
2988if $ac_preproc_ok; then
2989 :
2990else
2991 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2992See \`config.log' for more details." >&5
2993echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2994See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2996fi
2997
2998ac_ext=c
2999ac_cpp='$CPP $CPPFLAGS'
3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005echo "$as_me:$LINENO: checking for egrep" >&5
3006echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3007if test "${ac_cv_prog_egrep+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3011 then ac_cv_prog_egrep='grep -E'
3012 else ac_cv_prog_egrep='egrep'
3013 fi
3014fi
3015echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3016echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3017 EGREP=$ac_cv_prog_egrep
3018
3019
3020if test $ac_cv_c_compiler_gnu = yes; then
3021 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3022echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3023if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026 ac_pattern="Autoconf.*'x'"
3027 cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
3032/* end confdefs.h. */
3033#include <sgtty.h>
3034Autoconf TIOCGETP
3035_ACEOF
3036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3038 ac_cv_prog_gcc_traditional=yes
3039else
3040 ac_cv_prog_gcc_traditional=no
3041fi
3042rm -f conftest*
3043
3044
3045 if test $ac_cv_prog_gcc_traditional = no; then
3046 cat >conftest.$ac_ext <<_ACEOF
3047/* confdefs.h. */
3048_ACEOF
3049cat confdefs.h >>conftest.$ac_ext
3050cat >>conftest.$ac_ext <<_ACEOF
3051/* end confdefs.h. */
3052#include <termio.h>
3053Autoconf TCGETA
3054_ACEOF
3055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3057 ac_cv_prog_gcc_traditional=yes
3058fi
3059rm -f conftest*
3060
3061 fi
3062fi
3063echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3064echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3065 if test $ac_cv_prog_gcc_traditional = yes; then
3066 CC="$CC -traditional"
3067 fi
3068fi
3069
3070echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3072set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3073if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075else
3076 cat >conftest.make <<\_ACEOF
3077all:
3078 @echo 'ac_maketemp="$(MAKE)"'
3079_ACEOF
3080# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3081eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3082if test -n "$ac_maketemp"; then
3083 eval ac_cv_prog_make_${ac_make}_set=yes
3084else
3085 eval ac_cv_prog_make_${ac_make}_set=no
3086fi
3087rm -f conftest.make
3088fi
3089if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091echo "${ECHO_T}yes" >&6
3092 SET_MAKE=
3093else
3094 echo "$as_me:$LINENO: result: no" >&5
3095echo "${ECHO_T}no" >&6
3096 SET_MAKE="MAKE=${MAKE-make}"
3097fi
3098
3099ac_aux_dir=
3100for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3101 if test -f $ac_dir/install-sh; then
3102 ac_aux_dir=$ac_dir
3103 ac_install_sh="$ac_aux_dir/install-sh -c"
3104 break
3105 elif test -f $ac_dir/install.sh; then
3106 ac_aux_dir=$ac_dir
3107 ac_install_sh="$ac_aux_dir/install.sh -c"
3108 break
3109 elif test -f $ac_dir/shtool; then
3110 ac_aux_dir=$ac_dir
3111 ac_install_sh="$ac_aux_dir/shtool install -c"
3112 break
3113 fi
3114done
3115if test -z "$ac_aux_dir"; then
3116 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3117echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3118 { (exit 1); exit 1; }; }
3119fi
3120ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3121ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3122ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3123
3124# Find a good install program. We prefer a C program (faster),
3125# so one script is as good as another. But avoid the broken or
3126# incompatible versions:
3127# SysV /etc/install, /usr/sbin/install
3128# SunOS /usr/etc/install
3129# IRIX /sbin/install
3130# AIX /bin/install
3131# AmigaOS /C/install, which installs bootblocks on floppy discs
3132# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3133# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3134# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3135# OS/2's system install, which has a completely different semantic
3136# ./install, which can be erroneously created by make from ./install.sh.
3137echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3138echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3139if test -z "$INSTALL"; then
3140if test "${ac_cv_path_install+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 # Account for people who put trailing slashes in PATH elements.
3149case $as_dir/ in
3150 ./ | .// | /cC/* | \
3151 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3152 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3153 /usr/ucb/* ) ;;
3154 *)
3155 # OSF1 and SCO ODT 3.0 have their own names for install.
3156 # Don't use installbsd from OSF since it installs stuff as root
3157 # by default.
3158 for ac_prog in ginstall scoinst install; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3161 if test $ac_prog = install &&
3162 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3163 # AIX install. It has an incompatible calling convention.
3164 :
3165 elif test $ac_prog = install &&
3166 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3167 # program-specific install script used by HP pwplus--don't use.
3168 :
3169 else
3170 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3171 break 3
3172 fi
3173 fi
3174 done
3175 done
3176 ;;
3177esac
3178done
3179
3180
3181fi
3182 if test "${ac_cv_path_install+set}" = set; then
3183 INSTALL=$ac_cv_path_install
3184 else
3185 # As a last resort, use the slow shell script. We don't cache a
3186 # path for INSTALL within a source directory, because that will
3187 # break other packages using the cache if that directory is
3188 # removed, or if the path is relative.
3189 INSTALL=$ac_install_sh
3190 fi
3191fi
3192echo "$as_me:$LINENO: result: $INSTALL" >&5
3193echo "${ECHO_T}$INSTALL" >&6
3194
3195# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3196# It thinks the first close brace ends the variable substitution.
3197test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3198
3199test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3200
3201test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3202
3203# Extract the first word of "rm", so it can be a program name with args.
3204set dummy rm; ac_word=$2
3205echo "$as_me:$LINENO: checking for $ac_word" >&5
3206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207if test "${ac_cv_path_RM+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209else
3210 case $RM in
3211 [\\/]* | ?:[\\/]*)
3212 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3213 ;;
3214 *)
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226done
3227done
3228
3229 ;;
3230esac
3231fi
3232RM=$ac_cv_path_RM
3233
3234if test -n "$RM"; then
3235 echo "$as_me:$LINENO: result: $RM" >&5
3236echo "${ECHO_T}$RM" >&6
3237else
3238 echo "$as_me:$LINENO: result: no" >&5
3239echo "${ECHO_T}no" >&6
3240fi
3241
3242# Extract the first word of "cp", so it can be a program name with args.
3243set dummy cp; ac_word=$2
3244echo "$as_me:$LINENO: checking for $ac_word" >&5
3245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246if test "${ac_cv_path_CP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249 case $CP in
3250 [\\/]* | ?:[\\/]*)
3251 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3252 ;;
3253 *)
3254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257 IFS=$as_save_IFS
3258 test -z "$as_dir" && as_dir=.
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265done
3266done
3267
3268 ;;
3269esac
3270fi
3271CP=$ac_cv_path_CP
3272
3273if test -n "$CP"; then
3274 echo "$as_me:$LINENO: result: $CP" >&5
3275echo "${ECHO_T}$CP" >&6
3276else
3277 echo "$as_me:$LINENO: result: no" >&5
3278echo "${ECHO_T}no" >&6
3279fi
3280
3281# Extract the first word of "mv", so it can be a program name with args.
3282set dummy mv; ac_word=$2
3283echo "$as_me:$LINENO: checking for $ac_word" >&5
3284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285if test "${ac_cv_path_MV+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287else
3288 case $MV in
3289 [\\/]* | ?:[\\/]*)
3290 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3291 ;;
3292 *)
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304done
3305done
3306
3307 ;;
3308esac
3309fi
3310MV=$ac_cv_path_MV
3311
3312if test -n "$MV"; then
3313 echo "$as_me:$LINENO: result: $MV" >&5
3314echo "${ECHO_T}$MV" >&6
3315else
3316 echo "$as_me:$LINENO: result: no" >&5
3317echo "${ECHO_T}no" >&6
3318fi
3319
3320# Extract the first word of "ln", so it can be a program name with args.
3321set dummy ln; ac_word=$2
3322echo "$as_me:$LINENO: checking for $ac_word" >&5
3323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324if test "${ac_cv_path_LN+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 case $LN in
3328 [\\/]* | ?:[\\/]*)
3329 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3330 ;;
3331 *)
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343done
3344done
3345
3346 ;;
3347esac
3348fi
3349LN=$ac_cv_path_LN
3350
3351if test -n "$LN"; then
3352 echo "$as_me:$LINENO: result: $LN" >&5
3353echo "${ECHO_T}$LN" >&6
3354else
3355 echo "$as_me:$LINENO: result: no" >&5
3356echo "${ECHO_T}no" >&6
3357fi
3358
3359# Extract the first word of "sed", so it can be a program name with args.
3360set dummy sed; ac_word=$2
3361echo "$as_me:$LINENO: checking for $ac_word" >&5
3362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363if test "${ac_cv_path_SED+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366 case $SED in
3367 [\\/]* | ?:[\\/]*)
3368 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3369 ;;
3370 *)
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383done
3384
3385 ;;
3386esac
3387fi
3388SED=$ac_cv_path_SED
3389
3390if test -n "$SED"; then
3391 echo "$as_me:$LINENO: result: $SED" >&5
3392echo "${ECHO_T}$SED" >&6
3393else
3394 echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6
3396fi
3397
3398# Extract the first word of "ar", so it can be a program name with args.
3399set dummy ar; ac_word=$2
3400echo "$as_me:$LINENO: checking for $ac_word" >&5
3401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402if test "${ac_cv_path_AR+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404else
3405 case $AR in
3406 [\\/]* | ?:[\\/]*)
3407 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3408 ;;
3409 *)
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421done
3422done
3423
3424 ;;
3425esac
3426fi
3427AR=$ac_cv_path_AR
3428
3429if test -n "$AR"; then
3430 echo "$as_me:$LINENO: result: $AR" >&5
3431echo "${ECHO_T}$AR" >&6
3432else
3433 echo "$as_me:$LINENO: result: no" >&5
3434echo "${ECHO_T}no" >&6
3435fi
3436
3437# Extract the first word of "ld", so it can be a program name with args.
3438set dummy ld; ac_word=$2
3439echo "$as_me:$LINENO: checking for $ac_word" >&5
3440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441if test "${ac_cv_path_LD+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443else
3444 case $LD in
3445 [\\/]* | ?:[\\/]*)
3446 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3447 ;;
3448 *)
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460done
3461done
3462
3463 ;;
3464esac
3465fi
3466LD=$ac_cv_path_LD
3467
3468if test -n "$LD"; then
3469 echo "$as_me:$LINENO: result: $LD" >&5
3470echo "${ECHO_T}$LD" >&6
3471else
3472 echo "$as_me:$LINENO: result: no" >&5
3473echo "${ECHO_T}no" >&6
3474fi
3475
3476# Extract the first word of "ranlib", so it can be a program name with args.
3477set dummy ranlib; ac_word=$2
3478echo "$as_me:$LINENO: checking for $ac_word" >&5
3479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480if test "${ac_cv_path_RANLIB+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483 case $RANLIB in
3484 [\\/]* | ?:[\\/]*)
3485 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3486 ;;
3487 *)
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489for as_dir in $PATH
3490do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499done
3500done
3501
3502 ;;
3503esac
3504fi
3505RANLIB=$ac_cv_path_RANLIB
3506
3507if test -n "$RANLIB"; then
3508 echo "$as_me:$LINENO: result: $RANLIB" >&5
3509echo "${ECHO_T}$RANLIB" >&6
3510else
3511 echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6
3513fi
3514
3515# Extract the first word of "touch", so it can be a program name with args.
3516set dummy touch; ac_word=$2
3517echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519if test "${ac_cv_path_TOUCH+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522 case $TOUCH in
3523 [\\/]* | ?:[\\/]*)
3524 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
3525 ;;
3526 *)
3527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528for as_dir in $PATH
3529do
3530 IFS=$as_save_IFS
3531 test -z "$as_dir" && as_dir=.
3532 for ac_exec_ext in '' $ac_executable_extensions; do
3533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
3535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 break 2
3537 fi
3538done
3539done
3540
3541 ;;
3542esac
3543fi
3544TOUCH=$ac_cv_path_TOUCH
3545
3546if test -n "$TOUCH"; then
3547 echo "$as_me:$LINENO: result: $TOUCH" >&5
3548echo "${ECHO_T}$TOUCH" >&6
3549else
3550 echo "$as_me:$LINENO: result: no" >&5
3551echo "${ECHO_T}no" >&6
3552fi
3553
3554
3555for ac_prog in 'bison -y' byacc
3556do
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558set dummy $ac_prog; ac_word=$2
3559echo "$as_me:$LINENO: checking for $ac_word" >&5
3560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561if test "${ac_cv_prog_YACC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 if test -n "$YACC"; then
3565 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3566else
3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574 ac_cv_prog_YACC="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3577 fi
3578done
3579done
3580
3581fi
3582fi
3583YACC=$ac_cv_prog_YACC
3584if test -n "$YACC"; then
3585 echo "$as_me:$LINENO: result: $YACC" >&5
3586echo "${ECHO_T}$YACC" >&6
3587else
3588 echo "$as_me:$LINENO: result: no" >&5
3589echo "${ECHO_T}no" >&6
3590fi
3591
3592 test -n "$YACC" && break
3593done
3594test -n "$YACC" || YACC="yacc"
3595
3596
3597if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
3598 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
3599echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
3600 { (exit 1); exit 1; }; }
3601fi
3602
3603for ac_prog in flex lex
3604do
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606set dummy $ac_prog; ac_word=$2
3607echo "$as_me:$LINENO: checking for $ac_word" >&5
3608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609if test "${ac_cv_prog_LEX+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612 if test -n "$LEX"; then
3613 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3614else
3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616for as_dir in $PATH
3617do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_LEX="$ac_prog"
3623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626done
3627done
3628
3629fi
3630fi
3631LEX=$ac_cv_prog_LEX
3632if test -n "$LEX"; then
3633 echo "$as_me:$LINENO: result: $LEX" >&5
3634echo "${ECHO_T}$LEX" >&6
3635else
3636 echo "$as_me:$LINENO: result: no" >&5
3637echo "${ECHO_T}no" >&6
3638fi
3639
3640 test -n "$LEX" && break
3641done
3642test -n "$LEX" || LEX=":"
3643
3644if test -z "$LEXLIB"
3645then
3646 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3647echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3648if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650else
3651 ac_check_lib_save_LIBS=$LIBS
3652LIBS="-lfl $LIBS"
3653cat >conftest.$ac_ext <<_ACEOF
3654/* confdefs.h. */
3655_ACEOF
3656cat confdefs.h >>conftest.$ac_ext
3657cat >>conftest.$ac_ext <<_ACEOF
3658/* end confdefs.h. */
3659
3660/* Override any gcc2 internal prototype to avoid an error. */
3661#ifdef __cplusplus
3662extern "C"
3663#endif
3664/* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3666char yywrap ();
3667int
3668main ()
3669{
3670yywrap ();
3671 ;
3672 return 0;
3673}
3674_ACEOF
3675rm -f conftest.$ac_objext conftest$ac_exeext
3676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677 (eval $ac_link) 2>conftest.er1
3678 ac_status=$?
3679 grep -v '^ *+' conftest.er1 >conftest.err
3680 rm -f conftest.er1
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -z "$ac_c_werror_flag"
3685 || test ! -s conftest.err'
3686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687 (eval $ac_try) 2>&5
3688 ac_status=$?
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest$ac_exeext'
3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 (eval $ac_try) 2>&5
3694 ac_status=$?
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_cv_lib_fl_yywrap=yes
3698else
3699 echo "$as_me: failed program was:" >&5
3700sed 's/^/| /' conftest.$ac_ext >&5
3701
3702ac_cv_lib_fl_yywrap=no
3703fi
3704rm -f conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext conftest.$ac_ext
3706LIBS=$ac_check_lib_save_LIBS
3707fi
3708echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3709echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3710if test $ac_cv_lib_fl_yywrap = yes; then
3711 LEXLIB="-lfl"
3712else
3713 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3714echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3715if test "${ac_cv_lib_l_yywrap+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 ac_check_lib_save_LIBS=$LIBS
3719LIBS="-ll $LIBS"
3720cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h. */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h. */
3726
3727/* Override any gcc2 internal prototype to avoid an error. */
3728#ifdef __cplusplus
3729extern "C"
3730#endif
3731/* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3733char yywrap ();
3734int
3735main ()
3736{
3737yywrap ();
3738 ;
3739 return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext conftest$ac_exeext
3743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3744 (eval $ac_link) 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest$ac_exeext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 ac_cv_lib_l_yywrap=yes
3765else
3766 echo "$as_me: failed program was:" >&5
3767sed 's/^/| /' conftest.$ac_ext >&5
3768
3769ac_cv_lib_l_yywrap=no
3770fi
3771rm -f conftest.err conftest.$ac_objext \
3772 conftest$ac_exeext conftest.$ac_ext
3773LIBS=$ac_check_lib_save_LIBS
3774fi
3775echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3776echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3777if test $ac_cv_lib_l_yywrap = yes; then
3778 LEXLIB="-ll"
3779fi
3780
3781fi
3782
3783fi
3784
3785if test "x$LEX" != "x:"; then
3786 echo "$as_me:$LINENO: checking lex output file root" >&5
3787echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3788if test "${ac_cv_prog_lex_root+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790else
3791 # The minimal lex program is just a single line: %%. But some broken lexes
3792# (Solaris, I think it was) want two %% lines, so accommodate them.
3793cat >conftest.l <<_ACEOF
3794%%
3795%%
3796_ACEOF
3797{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3798 (eval $LEX conftest.l) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3802if test -f lex.yy.c; then
3803 ac_cv_prog_lex_root=lex.yy
3804elif test -f lexyy.c; then
3805 ac_cv_prog_lex_root=lexyy
3806else
3807 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3808echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3809 { (exit 1); exit 1; }; }
3810fi
3811fi
3812echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3813echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3814rm -f conftest.l
3815LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3816
3817echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3818echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3819if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822 # POSIX says lex can declare yytext either as a pointer or an array; the
3823# default is implementation-dependent. Figure out which it is, since
3824# not all implementations provide the %pointer and %array declarations.
3825ac_cv_prog_lex_yytext_pointer=no
3826echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3827ac_save_LIBS=$LIBS
3828LIBS="$LIBS $LEXLIB"
3829cat >conftest.$ac_ext <<_ACEOF
3830`cat $LEX_OUTPUT_ROOT.c`
3831_ACEOF
3832rm -f conftest.$ac_objext conftest$ac_exeext
3833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag"
3842 || test ! -s conftest.err'
3843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 (eval $ac_try) 2>&5
3845 ac_status=$?
3846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847 (exit $ac_status); }; } &&
3848 { ac_try='test -s conftest$ac_exeext'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_prog_lex_yytext_pointer=yes
3855else
3856 echo "$as_me: failed program was:" >&5
3857sed 's/^/| /' conftest.$ac_ext >&5
3858
3859fi
3860rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
3862LIBS=$ac_save_LIBS
3863rm -f "${LEX_OUTPUT_ROOT}.c"
3864
3865fi
3866echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3867echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3868if test $ac_cv_prog_lex_yytext_pointer = yes; then
3869
3870cat >>confdefs.h <<\_ACEOF
3871#define YYTEXT_POINTER 1
3872_ACEOF
3873
3874fi
3875
3876fi
3877
3878if test "$LEX" = ":"; then
3879 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
3880echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
3881 { (exit 1); exit 1; }; }
3882fi
3883
3884if test "$libexecdir" = '${exec_prefix}/libexec' &&
3885 test "$localstatedir" = '${prefix}/var'; then
3886 libexecdir='${bindir}'
3887 localstatedir='${prefix}'
3888fi
3889
3890echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3891echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3892if test "${ac_cv_header_stdc+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895 cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
3901#include <stdlib.h>
3902#include <stdarg.h>
3903#include <string.h>
3904#include <float.h>
3905
3906int
3907main ()
3908{
3909
3910 ;
3911 return 0;
3912}
3913_ACEOF
3914rm -f conftest.$ac_objext
3915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916 (eval $ac_compile) 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } &&
3923 { ac_try='test -z "$ac_c_werror_flag"
3924 || test ! -s conftest.err'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; } &&
3930 { ac_try='test -s conftest.$ac_objext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_header_stdc=yes
3937else
3938 echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941ac_cv_header_stdc=no
3942fi
3943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3944
3945if test $ac_cv_header_stdc = yes; then
3946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3947 cat >conftest.$ac_ext <<_ACEOF
3948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h. */
3953#include <string.h>
3954
3955_ACEOF
3956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "memchr" >/dev/null 2>&1; then
3958 :
3959else
3960 ac_cv_header_stdc=no
3961fi
3962rm -f conftest*
3963
3964fi
3965
3966if test $ac_cv_header_stdc = yes; then
3967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3968 cat >conftest.$ac_ext <<_ACEOF
3969/* confdefs.h. */
3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h. */
3974#include <stdlib.h>
3975
3976_ACEOF
3977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "free" >/dev/null 2>&1; then
3979 :
3980else
3981 ac_cv_header_stdc=no
3982fi
3983rm -f conftest*
3984
3985fi
3986
3987if test $ac_cv_header_stdc = yes; then
3988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989 if test "$cross_compiling" = yes; then
3990 :
3991else
3992 cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h. */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h. */
3998#include <ctype.h>
3999#if ((' ' & 0x0FF) == 0x020)
4000# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4001# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4002#else
4003# define ISLOWER(c) \
4004 (('a' <= (c) && (c) <= 'i') \
4005 || ('j' <= (c) && (c) <= 'r') \
4006 || ('s' <= (c) && (c) <= 'z'))
4007# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4008#endif
4009
4010#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4011int
4012main ()
4013{
4014 int i;
4015 for (i = 0; i < 256; i++)
4016 if (XOR (islower (i), ISLOWER (i))
4017 || toupper (i) != TOUPPER (i))
4018 exit(2);
4019 exit (0);
4020}
4021_ACEOF
4022rm -f conftest$ac_exeext
4023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>&5
4025 ac_status=$?
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 :
4034else
4035 echo "$as_me: program exited with status $ac_status" >&5
4036echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039( exit $ac_status )
4040ac_cv_header_stdc=no
4041fi
4042rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4043fi
4044fi
4045fi
4046echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4047echo "${ECHO_T}$ac_cv_header_stdc" >&6
4048if test $ac_cv_header_stdc = yes; then
4049
4050cat >>confdefs.h <<\_ACEOF
4051#define STDC_HEADERS 1
4052_ACEOF
4053
4054fi
4055
4056
4057# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4068 inttypes.h stdint.h unistd.h
4069do
4070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4071echo "$as_me:$LINENO: checking for $ac_header" >&5
4072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082$ac_includes_default
4083
4084#include <$ac_header>
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4088 (eval $ac_compile) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag"
4096 || test ! -s conftest.err'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; } &&
4102 { ac_try='test -s conftest.$ac_objext'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; }; then
4108 eval "$as_ac_Header=yes"
4109else
4110 echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113eval "$as_ac_Header=no"
4114fi
4115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116fi
4117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h <<_ACEOF
4121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4122_ACEOF
4123
4124fi
4125
4126done
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
4141do
4142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144 echo "$as_me:$LINENO: checking for $ac_header" >&5
4145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4146if eval "test \"\${$as_ac_Header+set}\" = set"; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148fi
4149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4151else
4152 # Is the header compilable?
4153echo "$as_me:$LINENO: checking $ac_header usability" >&5
4154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4155cat >conftest.$ac_ext <<_ACEOF
4156/* confdefs.h. */
4157_ACEOF
4158cat confdefs.h >>conftest.$ac_ext
4159cat >>conftest.$ac_ext <<_ACEOF
4160/* end confdefs.h. */
4161$ac_includes_default
4162#include <$ac_header>
4163_ACEOF
4164rm -f conftest.$ac_objext
4165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4166 (eval $ac_compile) 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } &&
4173 { ac_try='test -z "$ac_c_werror_flag"
4174 || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_header_compiler=yes
4187else
4188 echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191ac_header_compiler=no
4192fi
4193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4195echo "${ECHO_T}$ac_header_compiler" >&6
4196
4197# Is the header present?
4198echo "$as_me:$LINENO: checking $ac_header presence" >&5
4199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4200cat >conftest.$ac_ext <<_ACEOF
4201/* confdefs.h. */
4202_ACEOF
4203cat confdefs.h >>conftest.$ac_ext
4204cat >>conftest.$ac_ext <<_ACEOF
4205/* end confdefs.h. */
4206#include <$ac_header>
4207_ACEOF
4208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4210 ac_status=$?
4211 grep -v '^ *+' conftest.er1 >conftest.err
4212 rm -f conftest.er1
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } >/dev/null; then
4216 if test -s conftest.err; then
4217 ac_cpp_err=$ac_c_preproc_warn_flag
4218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4219 else
4220 ac_cpp_err=
4221 fi
4222else
4223 ac_cpp_err=yes
4224fi
4225if test -z "$ac_cpp_err"; then
4226 ac_header_preproc=yes
4227else
4228 echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ac_header_preproc=no
4232fi
4233rm -f conftest.err conftest.$ac_ext
4234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4235echo "${ECHO_T}$ac_header_preproc" >&6
4236
4237# So? What about this header?
4238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4239 yes:no: )
4240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4244 ac_header_preproc=yes
4245 ;;
4246 no:yes:* )
4247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4259 (
4260 cat <<\_ASBOX
4261## ------------------------------------ ##
4262## Report this to the charybdis lists. ##
4263## ------------------------------------ ##
4264_ASBOX
4265 ) |
4266 sed "s/^/$as_me: WARNING: /" >&2
4267 ;;
4268esac
4269echo "$as_me:$LINENO: checking for $ac_header" >&5
4270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4271if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274 eval "$as_ac_Header=\$ac_header_preproc"
4275fi
4276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4278
4279fi
4280if test `eval echo '${'$as_ac_Header'}'` = yes; then
4281 cat >>confdefs.h <<_ACEOF
4282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283_ACEOF
4284
4285fi
4286
4287done
4288
4289
4290
4291echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4292echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4293if test "${ac_cv_c_const+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h. */
4302
4303int
4304main ()
4305{
4306/* FIXME: Include the comments suggested by Paul. */
4307#ifndef __cplusplus
4308 /* Ultrix mips cc rejects this. */
4309 typedef int charset[2];
4310 const charset x;
4311 /* SunOS 4.1.1 cc rejects this. */
4312 char const *const *ccp;
4313 char **p;
4314 /* NEC SVR4.0.2 mips cc rejects this. */
4315 struct point {int x, y;};
4316 static struct point const zero = {0,0};
4317 /* AIX XL C 1.02.0.0 rejects this.
4318 It does not let you subtract one const X* pointer from another in
4319 an arm of an if-expression whose if-part is not a constant
4320 expression */
4321 const char *g = "string";
4322 ccp = &g + (g ? g-g : 0);
4323 /* HPUX 7.0 cc rejects these. */
4324 ++ccp;
4325 p = (char**) ccp;
4326 ccp = (char const *const *) p;
4327 { /* SCO 3.2v4 cc rejects this. */
4328 char *t;
4329 char const *s = 0 ? (char *) 0 : (char const *) 0;
4330
4331 *t++ = 0;
4332 }
4333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4334 int x[] = {25, 17};
4335 const int *foo = &x[0];
4336 ++foo;
4337 }
4338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4339 typedef const int *iptr;
4340 iptr p = 0;
4341 ++p;
4342 }
4343 { /* AIX XL C 1.02.0.0 rejects this saying
4344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4345 struct s { int j; const int *ap[3]; };
4346 struct s *b; b->j = 5;
4347 }
4348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4349 const int foo = 10;
4350 }
4351#endif
4352
4353 ;
4354 return 0;
4355}
4356_ACEOF
4357rm -f conftest.$ac_objext
4358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
4366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest.$ac_objext'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_const=yes
4380else
4381 echo "$as_me: failed program was:" >&5
4382sed 's/^/| /' conftest.$ac_ext >&5
4383
4384ac_cv_c_const=no
4385fi
4386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387fi
4388echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4389echo "${ECHO_T}$ac_cv_c_const" >&6
4390if test $ac_cv_c_const = no; then
4391
4392cat >>confdefs.h <<\_ACEOF
4393#define const
4394_ACEOF
4395
4396fi
4397
4398if test "$ac_cv_header_machine_endian_h" = "no" ; then
4399 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4400echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4401if test "${ac_cv_c_bigendian+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404 # See if sys/param.h defines the BYTE_ORDER macro.
4405cat >conftest.$ac_ext <<_ACEOF
4406/* confdefs.h. */
4407_ACEOF
4408cat confdefs.h >>conftest.$ac_ext
4409cat >>conftest.$ac_ext <<_ACEOF
4410/* end confdefs.h. */
4411#include <sys/types.h>
4412#include <sys/param.h>
4413
4414int
4415main ()
4416{
4417#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4418 bogus endian macros
4419#endif
4420
4421 ;
4422 return 0;
4423}
4424_ACEOF
4425rm -f conftest.$ac_objext
4426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>conftest.er1
4428 ac_status=$?
4429 grep -v '^ *+' conftest.er1 >conftest.err
4430 rm -f conftest.er1
4431 cat conftest.err >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -z "$ac_c_werror_flag"
4435 || test ! -s conftest.err'
4436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 (eval $ac_try) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 # It does; now see whether it defined to BIG_ENDIAN or not.
4448cat >conftest.$ac_ext <<_ACEOF
4449/* confdefs.h. */
4450_ACEOF
4451cat confdefs.h >>conftest.$ac_ext
4452cat >>conftest.$ac_ext <<_ACEOF
4453/* end confdefs.h. */
4454#include <sys/types.h>
4455#include <sys/param.h>
4456
4457int
4458main ()
4459{
4460#if BYTE_ORDER != BIG_ENDIAN
4461 not big endian
4462#endif
4463
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468rm -f conftest.$ac_objext
4469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } &&
4477 { ac_try='test -z "$ac_c_werror_flag"
4478 || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_c_bigendian=yes
4491else
4492 echo "$as_me: failed program was:" >&5
4493sed 's/^/| /' conftest.$ac_ext >&5
4494
4495ac_cv_c_bigendian=no
4496fi
4497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498else
4499 echo "$as_me: failed program was:" >&5
4500sed 's/^/| /' conftest.$ac_ext >&5
4501
4502# It does not; compile a test program.
4503if test "$cross_compiling" = yes; then
4504 # try to guess the endianness by grepping values into an object file
4505 ac_cv_c_bigendian=unknown
4506 cat >conftest.$ac_ext <<_ACEOF
4507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
4512short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4518int
4519main ()
4520{
4521 _ascii (); _ebcdic ();
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526rm -f conftest.$ac_objext
4527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4549 ac_cv_c_bigendian=yes
4550fi
4551if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4552 if test "$ac_cv_c_bigendian" = unknown; then
4553 ac_cv_c_bigendian=no
4554 else
4555 # finding both strings is unlikely to happen, but who knows?
4556 ac_cv_c_bigendian=unknown
4557 fi
4558fi
4559else
4560 echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563fi
4564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565else
4566 cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
4572int
4573main ()
4574{
4575 /* Are we little or big endian? From Harbison&Steele. */
4576 union
4577 {
4578 long l;
4579 char c[sizeof (long)];
4580 } u;
4581 u.l = 1;
4582 exit (u.c[sizeof (long) - 1] == 1);
4583}
4584_ACEOF
4585rm -f conftest$ac_exeext
4586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4587 (eval $ac_link) 2>&5
4588 ac_status=$?
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_c_bigendian=no
4597else
4598 echo "$as_me: program exited with status $ac_status" >&5
4599echo "$as_me: failed program was:" >&5
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
4602( exit $ac_status )
4603ac_cv_c_bigendian=yes
4604fi
4605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4606fi
4607fi
4608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609fi
4610echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4611echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4612case $ac_cv_c_bigendian in
4613 yes)
4614
4615cat >>confdefs.h <<\_ACEOF
4616#define WORDS_BIGENDIAN 1
4617_ACEOF
4618 ;;
4619 no)
4620 ;;
4621 *)
4622 { { echo "$as_me:$LINENO: error: unknown endianness
4623presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4624echo "$as_me: error: unknown endianness
4625presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4626 { (exit 1); exit 1; }; } ;;
4627esac
4628
4629fi
4630echo "$as_me:$LINENO: checking for pid_t" >&5
4631echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4632if test "${ac_cv_type_pid_t+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641$ac_includes_default
4642int
4643main ()
4644{
4645if ((pid_t *) 0)
4646 return 0;
4647if (sizeof (pid_t))
4648 return 0;
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653rm -f conftest.$ac_objext
4654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>conftest.er1
4656 ac_status=$?
4657 grep -v '^ *+' conftest.er1 >conftest.err
4658 rm -f conftest.er1
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag"
4663 || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest.$ac_objext'
4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671 (eval $ac_try) 2>&5
4672 ac_status=$?
4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); }; }; then
4675 ac_cv_type_pid_t=yes
4676else
4677 echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680ac_cv_type_pid_t=no
4681fi
4682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683fi
4684echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4685echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4686if test $ac_cv_type_pid_t = yes; then
4687 :
4688else
4689
4690cat >>confdefs.h <<_ACEOF
4691#define pid_t int
4692_ACEOF
4693
4694fi
4695
4696echo "$as_me:$LINENO: checking for size_t" >&5
4697echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4698if test "${ac_cv_type_size_t+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
4707$ac_includes_default
4708int
4709main ()
4710{
4711if ((size_t *) 0)
4712 return 0;
4713if (sizeof (size_t))
4714 return 0;
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719rm -f conftest.$ac_objext
4720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -z "$ac_c_werror_flag"
4729 || test ! -s conftest.err'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; } &&
4735 { ac_try='test -s conftest.$ac_objext'
4736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737 (eval $ac_try) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; }; then
4741 ac_cv_type_size_t=yes
4742else
4743 echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746ac_cv_type_size_t=no
4747fi
4748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749fi
4750echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4751echo "${ECHO_T}$ac_cv_type_size_t" >&6
4752if test $ac_cv_type_size_t = yes; then
4753 :
4754else
4755
4756cat >>confdefs.h <<_ACEOF
4757#define size_t unsigned
4758_ACEOF
4759
4760fi
4761
4762echo "$as_me:$LINENO: checking for short" >&5
4763echo $ECHO_N "checking for short... $ECHO_C" >&6
4764if test "${ac_cv_type_short+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 cat >conftest.$ac_ext <<_ACEOF
4768/* confdefs.h. */
4769_ACEOF
4770cat confdefs.h >>conftest.$ac_ext
4771cat >>conftest.$ac_ext <<_ACEOF
4772/* end confdefs.h. */
4773$ac_includes_default
4774int
4775main ()
4776{
4777if ((short *) 0)
4778 return 0;
4779if (sizeof (short))
4780 return 0;
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785rm -f conftest.$ac_objext
4786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4787 (eval $ac_compile) 2>conftest.er1
4788 ac_status=$?
4789 grep -v '^ *+' conftest.er1 >conftest.err
4790 rm -f conftest.er1
4791 cat conftest.err >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); } &&
4794 { ac_try='test -z "$ac_c_werror_flag"
4795 || test ! -s conftest.err'
4796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 (eval $ac_try) 2>&5
4798 ac_status=$?
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }; } &&
4801 { ac_try='test -s conftest.$ac_objext'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; }; then
4807 ac_cv_type_short=yes
4808else
4809 echo "$as_me: failed program was:" >&5
4810sed 's/^/| /' conftest.$ac_ext >&5
4811
4812ac_cv_type_short=no
4813fi
4814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815fi
4816echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4817echo "${ECHO_T}$ac_cv_type_short" >&6
4818
4819echo "$as_me:$LINENO: checking size of short" >&5
4820echo $ECHO_N "checking size of short... $ECHO_C" >&6
4821if test "${ac_cv_sizeof_short+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 if test "$ac_cv_type_short" = yes; then
4825 # The cast to unsigned long works around a bug in the HP C Compiler
4826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4828 # This bug is HP SR number 8606223364.
4829 if test "$cross_compiling" = yes; then
4830 # Depending upon the size, compute the lo and hi bounds.
4831cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
4837$ac_includes_default
4838int
4839main ()
4840{
4841static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4842test_array [0] = 0
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848rm -f conftest.$ac_objext
4849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>conftest.er1
4851 ac_status=$?
4852 grep -v '^ *+' conftest.er1 >conftest.err
4853 rm -f conftest.er1
4854 cat conftest.err >&5
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try='test -z "$ac_c_werror_flag"
4858 || test ! -s conftest.err'
4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860 (eval $ac_try) 2>&5
4861 ac_status=$?
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866 (eval $ac_try) 2>&5
4867 ac_status=$?
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_lo=0 ac_mid=0
4871 while :; do
4872 cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878$ac_includes_default
4879int
4880main ()
4881{
4882static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4883test_array [0] = 0
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
4889rm -f conftest.$ac_objext
4890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } &&
4898 { ac_try='test -z "$ac_c_werror_flag"
4899 || test ! -s conftest.err'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; } &&
4905 { ac_try='test -s conftest.$ac_objext'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; }; then
4911 ac_hi=$ac_mid; break
4912else
4913 echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916ac_lo=`expr $ac_mid + 1`
4917 if test $ac_lo -le $ac_mid; then
4918 ac_lo= ac_hi=
4919 break
4920 fi
4921 ac_mid=`expr 2 '*' $ac_mid + 1`
4922fi
4923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924 done
4925else
4926 echo "$as_me: failed program was:" >&5
4927sed 's/^/| /' conftest.$ac_ext >&5
4928
4929cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
4935$ac_includes_default
4936int
4937main ()
4938{
4939static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4940test_array [0] = 0
4941
4942 ;
4943 return 0;
4944}
4945_ACEOF
4946rm -f conftest.$ac_objext
4947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4948 (eval $ac_compile) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } &&
4955 { ac_try='test -z "$ac_c_werror_flag"
4956 || test ! -s conftest.err'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; } &&
4962 { ac_try='test -s conftest.$ac_objext'
4963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 (eval $ac_try) 2>&5
4965 ac_status=$?
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }; }; then
4968 ac_hi=-1 ac_mid=-1
4969 while :; do
4970 cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h. */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h. */
4976$ac_includes_default
4977int
4978main ()
4979{
4980static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4981test_array [0] = 0
4982
4983 ;
4984 return 0;
4985}
4986_ACEOF
4987rm -f conftest.$ac_objext
4988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } &&
4996 { ac_try='test -z "$ac_c_werror_flag"
4997 || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 (eval $ac_try) 2>&5
5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_lo=$ac_mid; break
5010else
5011 echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
5014ac_hi=`expr '(' $ac_mid ')' - 1`
5015 if test $ac_mid -le $ac_hi; then
5016 ac_lo= ac_hi=
5017 break
5018 fi
5019 ac_mid=`expr 2 '*' $ac_mid`
5020fi
5021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 done
5023else
5024 echo "$as_me: failed program was:" >&5
5025sed 's/^/| /' conftest.$ac_ext >&5
5026
5027ac_lo= ac_hi=
5028fi
5029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030fi
5031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032# Binary search between lo and hi bounds.
5033while test "x$ac_lo" != "x$ac_hi"; do
5034 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5035 cat >conftest.$ac_ext <<_ACEOF
5036/* confdefs.h. */
5037_ACEOF
5038cat confdefs.h >>conftest.$ac_ext
5039cat >>conftest.$ac_ext <<_ACEOF
5040/* end confdefs.h. */
5041$ac_includes_default
5042int
5043main ()
5044{
5045static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5046test_array [0] = 0
5047
5048 ;
5049 return 0;
5050}
5051_ACEOF
5052rm -f conftest.$ac_objext
5053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054 (eval $ac_compile) 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -z "$ac_c_werror_flag"
5062 || test ! -s conftest.err'
5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 (eval $ac_try) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }; } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_hi=$ac_mid
5075else
5076 echo "$as_me: failed program was:" >&5
5077sed 's/^/| /' conftest.$ac_ext >&5
5078
5079ac_lo=`expr '(' $ac_mid ')' + 1`
5080fi
5081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082done
5083case $ac_lo in
5084?*) ac_cv_sizeof_short=$ac_lo;;
5085'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5086See \`config.log' for more details." >&5
5087echo "$as_me: error: cannot compute sizeof (short), 77
5088See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; } ;;
5090esac
5091else
5092 if test "$cross_compiling" = yes; then
5093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5094See \`config.log' for more details." >&5
5095echo "$as_me: error: cannot run test program while cross compiling
5096See \`config.log' for more details." >&2;}
5097 { (exit 1); exit 1; }; }
5098else
5099 cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h. */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h. */
5105$ac_includes_default
5106long longval () { return (long) (sizeof (short)); }
5107unsigned long ulongval () { return (long) (sizeof (short)); }
5108#include <stdio.h>
5109#include <stdlib.h>
5110int
5111main ()
5112{
5113
5114 FILE *f = fopen ("conftest.val", "w");
5115 if (! f)
5116 exit (1);
5117 if (((long) (sizeof (short))) < 0)
5118 {
5119 long i = longval ();
5120 if (i != ((long) (sizeof (short))))
5121 exit (1);
5122 fprintf (f, "%ld\n", i);
5123 }
5124 else
5125 {
5126 unsigned long i = ulongval ();
5127 if (i != ((long) (sizeof (short))))
5128 exit (1);
5129 fprintf (f, "%lu\n", i);
5130 }
5131 exit (ferror (f) || fclose (f) != 0);
5132
5133 ;
5134 return 0;
5135}
5136_ACEOF
5137rm -f conftest$ac_exeext
5138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5139 (eval $ac_link) 2>&5
5140 ac_status=$?
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_sizeof_short=`cat conftest.val`
5149else
5150 echo "$as_me: program exited with status $ac_status" >&5
5151echo "$as_me: failed program was:" >&5
5152sed 's/^/| /' conftest.$ac_ext >&5
5153
5154( exit $ac_status )
5155{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5156See \`config.log' for more details." >&5
5157echo "$as_me: error: cannot compute sizeof (short), 77
5158See \`config.log' for more details." >&2;}
5159 { (exit 1); exit 1; }; }
5160fi
5161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162fi
5163fi
5164rm -f conftest.val
5165else
5166 ac_cv_sizeof_short=0
5167fi
5168fi
5169echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5170echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5171cat >>confdefs.h <<_ACEOF
5172#define SIZEOF_SHORT $ac_cv_sizeof_short
5173_ACEOF
5174
5175
5176echo "$as_me:$LINENO: checking for int" >&5
5177echo $ECHO_N "checking for int... $ECHO_C" >&6
5178if test "${ac_cv_type_int+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 cat >conftest.$ac_ext <<_ACEOF
5182/* confdefs.h. */
5183_ACEOF
5184cat confdefs.h >>conftest.$ac_ext
5185cat >>conftest.$ac_ext <<_ACEOF
5186/* end confdefs.h. */
5187$ac_includes_default
5188int
5189main ()
5190{
5191if ((int *) 0)
5192 return 0;
5193if (sizeof (int))
5194 return 0;
5195 ;
5196 return 0;
5197}
5198_ACEOF
5199rm -f conftest.$ac_objext
5200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201 (eval $ac_compile) 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } &&
5208 { ac_try='test -z "$ac_c_werror_flag"
5209 || test ! -s conftest.err'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; } &&
5215 { ac_try='test -s conftest.$ac_objext'
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 ac_cv_type_int=yes
5222else
5223 echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226ac_cv_type_int=no
5227fi
5228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229fi
5230echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5231echo "${ECHO_T}$ac_cv_type_int" >&6
5232
5233echo "$as_me:$LINENO: checking size of int" >&5
5234echo $ECHO_N "checking size of int... $ECHO_C" >&6
5235if test "${ac_cv_sizeof_int+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 if test "$ac_cv_type_int" = yes; then
5239 # The cast to unsigned long works around a bug in the HP C Compiler
5240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5242 # This bug is HP SR number 8606223364.
5243 if test "$cross_compiling" = yes; then
5244 # Depending upon the size, compute the lo and hi bounds.
5245cat >conftest.$ac_ext <<_ACEOF
5246/* confdefs.h. */
5247_ACEOF
5248cat confdefs.h >>conftest.$ac_ext
5249cat >>conftest.$ac_ext <<_ACEOF
5250/* end confdefs.h. */
5251$ac_includes_default
5252int
5253main ()
5254{
5255static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5256test_array [0] = 0
5257
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext
5263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5264 (eval $ac_compile) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest.$ac_objext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_lo=0 ac_mid=0
5285 while :; do
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292$ac_includes_default
5293int
5294main ()
5295{
5296static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5297test_array [0] = 0
5298
5299 ;
5300 return 0;
5301}
5302_ACEOF
5303rm -f conftest.$ac_objext
5304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -z "$ac_c_werror_flag"
5313 || test ! -s conftest.err'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 (eval $ac_try) 2>&5
5316 ac_status=$?
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 (eval $ac_try) 2>&5
5322 ac_status=$?
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 ac_hi=$ac_mid; break
5326else
5327 echo "$as_me: failed program was:" >&5
5328sed 's/^/| /' conftest.$ac_ext >&5
5329
5330ac_lo=`expr $ac_mid + 1`
5331 if test $ac_lo -le $ac_mid; then
5332 ac_lo= ac_hi=
5333 break
5334 fi
5335 ac_mid=`expr 2 '*' $ac_mid + 1`
5336fi
5337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 done
5339else
5340 echo "$as_me: failed program was:" >&5
5341sed 's/^/| /' conftest.$ac_ext >&5
5342
5343cat >conftest.$ac_ext <<_ACEOF
5344/* confdefs.h. */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h. */
5349$ac_includes_default
5350int
5351main ()
5352{
5353static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5354test_array [0] = 0
5355
5356 ;
5357 return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext
5361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5362 (eval $ac_compile) 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } &&
5369 { ac_try='test -z "$ac_c_werror_flag"
5370 || test ! -s conftest.err'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try='test -s conftest.$ac_objext'
5377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5378 (eval $ac_try) 2>&5
5379 ac_status=$?
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }; }; then
5382 ac_hi=-1 ac_mid=-1
5383 while :; do
5384 cat >conftest.$ac_ext <<_ACEOF
5385/* confdefs.h. */
5386_ACEOF
5387cat confdefs.h >>conftest.$ac_ext
5388cat >>conftest.$ac_ext <<_ACEOF
5389/* end confdefs.h. */
5390$ac_includes_default
5391int
5392main ()
5393{
5394static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5395test_array [0] = 0
5396
5397 ;
5398 return 0;
5399}
5400_ACEOF
5401rm -f conftest.$ac_objext
5402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest.$ac_objext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_lo=$ac_mid; break
5424else
5425 echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428ac_hi=`expr '(' $ac_mid ')' - 1`
5429 if test $ac_mid -le $ac_hi; then
5430 ac_lo= ac_hi=
5431 break
5432 fi
5433 ac_mid=`expr 2 '*' $ac_mid`
5434fi
5435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5436 done
5437else
5438 echo "$as_me: failed program was:" >&5
5439sed 's/^/| /' conftest.$ac_ext >&5
5440
5441ac_lo= ac_hi=
5442fi
5443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5444fi
5445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5446# Binary search between lo and hi bounds.
5447while test "x$ac_lo" != "x$ac_hi"; do
5448 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5449 cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
5455$ac_includes_default
5456int
5457main ()
5458{
5459static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5460test_array [0] = 0
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466rm -f conftest.$ac_objext
5467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try='test -z "$ac_c_werror_flag"
5476 || test ! -s conftest.err'
5477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5478 (eval $ac_try) 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }; } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484 (eval $ac_try) 2>&5
5485 ac_status=$?
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_hi=$ac_mid
5489else
5490 echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
5493ac_lo=`expr '(' $ac_mid ')' + 1`
5494fi
5495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496done
5497case $ac_lo in
5498?*) ac_cv_sizeof_int=$ac_lo;;
5499'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5500See \`config.log' for more details." >&5
5501echo "$as_me: error: cannot compute sizeof (int), 77
5502See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; } ;;
5504esac
5505else
5506 if test "$cross_compiling" = yes; then
5507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5508See \`config.log' for more details." >&5
5509echo "$as_me: error: cannot run test program while cross compiling
5510See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; }
5512else
5513 cat >conftest.$ac_ext <<_ACEOF
5514/* confdefs.h. */
5515_ACEOF
5516cat confdefs.h >>conftest.$ac_ext
5517cat >>conftest.$ac_ext <<_ACEOF
5518/* end confdefs.h. */
5519$ac_includes_default
5520long longval () { return (long) (sizeof (int)); }
5521unsigned long ulongval () { return (long) (sizeof (int)); }
5522#include <stdio.h>
5523#include <stdlib.h>
5524int
5525main ()
5526{
5527
5528 FILE *f = fopen ("conftest.val", "w");
5529 if (! f)
5530 exit (1);
5531 if (((long) (sizeof (int))) < 0)
5532 {
5533 long i = longval ();
5534 if (i != ((long) (sizeof (int))))
5535 exit (1);
5536 fprintf (f, "%ld\n", i);
5537 }
5538 else
5539 {
5540 unsigned long i = ulongval ();
5541 if (i != ((long) (sizeof (int))))
5542 exit (1);
5543 fprintf (f, "%lu\n", i);
5544 }
5545 exit (ferror (f) || fclose (f) != 0);
5546
5547 ;
5548 return 0;
5549}
5550_ACEOF
5551rm -f conftest$ac_exeext
5552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5553 (eval $ac_link) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_sizeof_int=`cat conftest.val`
5563else
5564 echo "$as_me: program exited with status $ac_status" >&5
5565echo "$as_me: failed program was:" >&5
5566sed 's/^/| /' conftest.$ac_ext >&5
5567
5568( exit $ac_status )
5569{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5570See \`config.log' for more details." >&5
5571echo "$as_me: error: cannot compute sizeof (int), 77
5572See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }
5574fi
5575rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5576fi
5577fi
5578rm -f conftest.val
5579else
5580 ac_cv_sizeof_int=0
5581fi
5582fi
5583echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5584echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5585cat >>confdefs.h <<_ACEOF
5586#define SIZEOF_INT $ac_cv_sizeof_int
5587_ACEOF
5588
5589
5590echo "$as_me:$LINENO: checking for long" >&5
5591echo $ECHO_N "checking for long... $ECHO_C" >&6
5592if test "${ac_cv_type_long+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601$ac_includes_default
5602int
5603main ()
5604{
5605if ((long *) 0)
5606 return 0;
5607if (sizeof (long))
5608 return 0;
5609 ;
5610 return 0;
5611}
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5615 (eval $ac_compile) 2>conftest.er1
5616 ac_status=$?
5617 grep -v '^ *+' conftest.er1 >conftest.err
5618 rm -f conftest.er1
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_type_long=yes
5636else
5637 echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640ac_cv_type_long=no
5641fi
5642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5643fi
5644echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5645echo "${ECHO_T}$ac_cv_type_long" >&6
5646
5647echo "$as_me:$LINENO: checking size of long" >&5
5648echo $ECHO_N "checking size of long... $ECHO_C" >&6
5649if test "${ac_cv_sizeof_long+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651else
5652 if test "$ac_cv_type_long" = yes; then
5653 # The cast to unsigned long works around a bug in the HP C Compiler
5654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5656 # This bug is HP SR number 8606223364.
5657 if test "$cross_compiling" = yes; then
5658 # Depending upon the size, compute the lo and hi bounds.
5659cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
5664/* end confdefs.h. */
5665$ac_includes_default
5666int
5667main ()
5668{
5669static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5670test_array [0] = 0
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678 (eval $ac_compile) 2>conftest.er1
5679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } &&
5685 { ac_try='test -z "$ac_c_werror_flag"
5686 || test ! -s conftest.err'
5687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 (eval $ac_try) 2>&5
5689 ac_status=$?
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; } &&
5692 { ac_try='test -s conftest.$ac_objext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694 (eval $ac_try) 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_lo=0 ac_mid=0
5699 while :; do
5700 cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h. */
5706$ac_includes_default
5707int
5708main ()
5709{
5710static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5711test_array [0] = 0
5712
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext
5718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5719 (eval $ac_compile) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest.$ac_objext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_hi=$ac_mid; break
5740else
5741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744ac_lo=`expr $ac_mid + 1`
5745 if test $ac_lo -le $ac_mid; then
5746 ac_lo= ac_hi=
5747 break
5748 fi
5749 ac_mid=`expr 2 '*' $ac_mid + 1`
5750fi
5751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 done
5753else
5754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757cat >conftest.$ac_ext <<_ACEOF
5758/* confdefs.h. */
5759_ACEOF
5760cat confdefs.h >>conftest.$ac_ext
5761cat >>conftest.$ac_ext <<_ACEOF
5762/* end confdefs.h. */
5763$ac_includes_default
5764int
5765main ()
5766{
5767static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5768test_array [0] = 0
5769
5770 ;
5771 return 0;
5772}
5773_ACEOF
5774rm -f conftest.$ac_objext
5775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776 (eval $ac_compile) 2>conftest.er1
5777 ac_status=$?
5778 grep -v '^ *+' conftest.er1 >conftest.err
5779 rm -f conftest.er1
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -z "$ac_c_werror_flag"
5784 || test ! -s conftest.err'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_hi=-1 ac_mid=-1
5797 while :; do
5798 cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
5804$ac_includes_default
5805int
5806main ()
5807{
5808static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5809test_array [0] = 0
5810
5811 ;
5812 return 0;
5813}
5814_ACEOF
5815rm -f conftest.$ac_objext
5816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817 (eval $ac_compile) 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 ac_lo=$ac_mid; break
5838else
5839 echo "$as_me: failed program was:" >&5
5840sed 's/^/| /' conftest.$ac_ext >&5
5841
5842ac_hi=`expr '(' $ac_mid ')' - 1`
5843 if test $ac_mid -le $ac_hi; then
5844 ac_lo= ac_hi=
5845 break
5846 fi
5847 ac_mid=`expr 2 '*' $ac_mid`
5848fi
5849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 done
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855ac_lo= ac_hi=
5856fi
5857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858fi
5859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860# Binary search between lo and hi bounds.
5861while test "x$ac_lo" != "x$ac_hi"; do
5862 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869$ac_includes_default
5870int
5871main ()
5872{
5873static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5874test_array [0] = 0
5875
5876 ;
5877 return 0;
5878}
5879_ACEOF
5880rm -f conftest.$ac_objext
5881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_hi=$ac_mid
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907ac_lo=`expr '(' $ac_mid ')' + 1`
5908fi
5909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910done
5911case $ac_lo in
5912?*) ac_cv_sizeof_long=$ac_lo;;
5913'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5914See \`config.log' for more details." >&5
5915echo "$as_me: error: cannot compute sizeof (long), 77
5916See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; } ;;
5918esac
5919else
5920 if test "$cross_compiling" = yes; then
5921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5922See \`config.log' for more details." >&5
5923echo "$as_me: error: cannot run test program while cross compiling
5924See \`config.log' for more details." >&2;}
5925 { (exit 1); exit 1; }; }
5926else
5927 cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h. */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h. */
5933$ac_includes_default
5934long longval () { return (long) (sizeof (long)); }
5935unsigned long ulongval () { return (long) (sizeof (long)); }
5936#include <stdio.h>
5937#include <stdlib.h>
5938int
5939main ()
5940{
5941
5942 FILE *f = fopen ("conftest.val", "w");
5943 if (! f)
5944 exit (1);
5945 if (((long) (sizeof (long))) < 0)
5946 {
5947 long i = longval ();
5948 if (i != ((long) (sizeof (long))))
5949 exit (1);
5950 fprintf (f, "%ld\n", i);
5951 }
5952 else
5953 {
5954 unsigned long i = ulongval ();
5955 if (i != ((long) (sizeof (long))))
5956 exit (1);
5957 fprintf (f, "%lu\n", i);
5958 }
5959 exit (ferror (f) || fclose (f) != 0);
5960
5961 ;
5962 return 0;
5963}
5964_ACEOF
5965rm -f conftest$ac_exeext
5966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5967 (eval $ac_link) 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5972 (eval $ac_try) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5976 ac_cv_sizeof_long=`cat conftest.val`
5977else
5978 echo "$as_me: program exited with status $ac_status" >&5
5979echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982( exit $ac_status )
5983{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5984See \`config.log' for more details." >&5
5985echo "$as_me: error: cannot compute sizeof (long), 77
5986See \`config.log' for more details." >&2;}
5987 { (exit 1); exit 1; }; }
5988fi
5989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5990fi
5991fi
5992rm -f conftest.val
5993else
5994 ac_cv_sizeof_long=0
5995fi
5996fi
5997echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5998echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5999cat >>confdefs.h <<_ACEOF
6000#define SIZEOF_LONG $ac_cv_sizeof_long
6001_ACEOF
6002
6003
6004echo "$as_me:$LINENO: checking for long long" >&5
6005echo $ECHO_N "checking for long long... $ECHO_C" >&6
6006if test "${ac_cv_type_long_long+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009 cat >conftest.$ac_ext <<_ACEOF
6010/* confdefs.h. */
6011_ACEOF
6012cat confdefs.h >>conftest.$ac_ext
6013cat >>conftest.$ac_ext <<_ACEOF
6014/* end confdefs.h. */
6015$ac_includes_default
6016int
6017main ()
6018{
6019if ((long long *) 0)
6020 return 0;
6021if (sizeof (long long))
6022 return 0;
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027rm -f conftest.$ac_objext
6028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>conftest.er1
6030 ac_status=$?
6031 grep -v '^ *+' conftest.er1 >conftest.err
6032 rm -f conftest.er1
6033 cat conftest.err >&5
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); } &&
6036 { ac_try='test -z "$ac_c_werror_flag"
6037 || test ! -s conftest.err'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; } &&
6043 { ac_try='test -s conftest.$ac_objext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045 (eval $ac_try) 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_type_long_long=yes
6050else
6051 echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054ac_cv_type_long_long=no
6055fi
6056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057fi
6058echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6059echo "${ECHO_T}$ac_cv_type_long_long" >&6
6060
6061echo "$as_me:$LINENO: checking size of long long" >&5
6062echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6063if test "${ac_cv_sizeof_long_long+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 if test "$ac_cv_type_long_long" = yes; then
6067 # The cast to unsigned long works around a bug in the HP C Compiler
6068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6070 # This bug is HP SR number 8606223364.
6071 if test "$cross_compiling" = yes; then
6072 # Depending upon the size, compute the lo and hi bounds.
6073cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
6079$ac_includes_default
6080int
6081main ()
6082{
6083static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6084test_array [0] = 0
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090rm -f conftest.$ac_objext
6091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6092 (eval $ac_compile) 2>conftest.er1
6093 ac_status=$?
6094 grep -v '^ *+' conftest.er1 >conftest.err
6095 rm -f conftest.er1
6096 cat conftest.err >&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } &&
6099 { ac_try='test -z "$ac_c_werror_flag"
6100 || test ! -s conftest.err'
6101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 (eval $ac_try) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); }; } &&
6106 { ac_try='test -s conftest.$ac_objext'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_lo=0 ac_mid=0
6113 while :; do
6114 cat >conftest.$ac_ext <<_ACEOF
6115/* confdefs.h. */
6116_ACEOF
6117cat confdefs.h >>conftest.$ac_ext
6118cat >>conftest.$ac_ext <<_ACEOF
6119/* end confdefs.h. */
6120$ac_includes_default
6121int
6122main ()
6123{
6124static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6125test_array [0] = 0
6126
6127 ;
6128 return 0;
6129}
6130_ACEOF
6131rm -f conftest.$ac_objext
6132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_hi=$ac_mid; break
6154else
6155 echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158ac_lo=`expr $ac_mid + 1`
6159 if test $ac_lo -le $ac_mid; then
6160 ac_lo= ac_hi=
6161 break
6162 fi
6163 ac_mid=`expr 2 '*' $ac_mid + 1`
6164fi
6165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166 done
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
6171cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
6177$ac_includes_default
6178int
6179main ()
6180{
6181static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6182test_array [0] = 0
6183
6184 ;
6185 return 0;
6186}
6187_ACEOF
6188rm -f conftest.$ac_objext
6189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190 (eval $ac_compile) 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -z "$ac_c_werror_flag"
6198 || test ! -s conftest.err'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; } &&
6204 { ac_try='test -s conftest.$ac_objext'
6205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); }; }; then
6210 ac_hi=-1 ac_mid=-1
6211 while :; do
6212 cat >conftest.$ac_ext <<_ACEOF
6213/* confdefs.h. */
6214_ACEOF
6215cat confdefs.h >>conftest.$ac_ext
6216cat >>conftest.$ac_ext <<_ACEOF
6217/* end confdefs.h. */
6218$ac_includes_default
6219int
6220main ()
6221{
6222static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6223test_array [0] = 0
6224
6225 ;
6226 return 0;
6227}
6228_ACEOF
6229rm -f conftest.$ac_objext
6230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_lo=$ac_mid; break
6252else
6253 echo "$as_me: failed program was:" >&5
6254sed 's/^/| /' conftest.$ac_ext >&5
6255
6256ac_hi=`expr '(' $ac_mid ')' - 1`
6257 if test $ac_mid -le $ac_hi; then
6258 ac_lo= ac_hi=
6259 break
6260 fi
6261 ac_mid=`expr 2 '*' $ac_mid`
6262fi
6263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264 done
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
6269ac_lo= ac_hi=
6270fi
6271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272fi
6273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274# Binary search between lo and hi bounds.
6275while test "x$ac_lo" != "x$ac_hi"; do
6276 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6277 cat >conftest.$ac_ext <<_ACEOF
6278/* confdefs.h. */
6279_ACEOF
6280cat confdefs.h >>conftest.$ac_ext
6281cat >>conftest.$ac_ext <<_ACEOF
6282/* end confdefs.h. */
6283$ac_includes_default
6284int
6285main ()
6286{
6287static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6288test_array [0] = 0
6289
6290 ;
6291 return 0;
6292}
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } &&
6303 { ac_try='test -z "$ac_c_werror_flag"
6304 || test ! -s conftest.err'
6305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306 (eval $ac_try) 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; } &&
6310 { ac_try='test -s conftest.$ac_objext'
6311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 (eval $ac_try) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }; }; then
6316 ac_hi=$ac_mid
6317else
6318 echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321ac_lo=`expr '(' $ac_mid ')' + 1`
6322fi
6323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324done
6325case $ac_lo in
6326?*) ac_cv_sizeof_long_long=$ac_lo;;
6327'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6328See \`config.log' for more details." >&5
6329echo "$as_me: error: cannot compute sizeof (long long), 77
6330See \`config.log' for more details." >&2;}
6331 { (exit 1); exit 1; }; } ;;
6332esac
6333else
6334 if test "$cross_compiling" = yes; then
6335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6336See \`config.log' for more details." >&5
6337echo "$as_me: error: cannot run test program while cross compiling
6338See \`config.log' for more details." >&2;}
6339 { (exit 1); exit 1; }; }
6340else
6341 cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347$ac_includes_default
6348long longval () { return (long) (sizeof (long long)); }
6349unsigned long ulongval () { return (long) (sizeof (long long)); }
6350#include <stdio.h>
6351#include <stdlib.h>
6352int
6353main ()
6354{
6355
6356 FILE *f = fopen ("conftest.val", "w");
6357 if (! f)
6358 exit (1);
6359 if (((long) (sizeof (long long))) < 0)
6360 {
6361 long i = longval ();
6362 if (i != ((long) (sizeof (long long))))
6363 exit (1);
6364 fprintf (f, "%ld\n", i);
6365 }
6366 else
6367 {
6368 unsigned long i = ulongval ();
6369 if (i != ((long) (sizeof (long long))))
6370 exit (1);
6371 fprintf (f, "%lu\n", i);
6372 }
6373 exit (ferror (f) || fclose (f) != 0);
6374
6375 ;
6376 return 0;
6377}
6378_ACEOF
6379rm -f conftest$ac_exeext
6380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_sizeof_long_long=`cat conftest.val`
6391else
6392 echo "$as_me: program exited with status $ac_status" >&5
6393echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
6396( exit $ac_status )
6397{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6398See \`config.log' for more details." >&5
6399echo "$as_me: error: cannot compute sizeof (long long), 77
6400See \`config.log' for more details." >&2;}
6401 { (exit 1); exit 1; }; }
6402fi
6403rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6404fi
6405fi
6406rm -f conftest.val
6407else
6408 ac_cv_sizeof_long_long=0
6409fi
6410fi
6411echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6412echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6413cat >>confdefs.h <<_ACEOF
6414#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6415_ACEOF
6416
6417
6418
6419
6420echo "$as_me:$LINENO: checking the system's memory page size" >&5
6421echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6
6422pagesize="no"
6423if test "$cross_compiling" = yes; then
6424 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6425See \`config.log' for more details." >&5
6426echo "$as_me: error: cannot run test program while cross compiling
6427See \`config.log' for more details." >&2;}
6428 { (exit 1); exit 1; }; }
6429else
6430 cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
6436
6437#include <stdio.h>
6438#if HAVE_UNISTD_H
6439# include <unistd.h>
6440#endif
6441
6442int main(void) {
6443 FILE *fp = fopen("conftest.malloc", "w");
6444
6445 if (fp != NULL) {
6446 fprintf(fp, "%d\n", getpagesize());
6447 fclose(fp);
6448 } else
6449 exit(1);
6450 exit(0);
6451}
6452_ACEOF
6453rm -f conftest$ac_exeext
6454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6456 ac_status=$?
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 (eval $ac_try) 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464
6465if test -f "conftest.malloc" ; then
6466 pagesize=`cat conftest.malloc`
6467fi
6468
6469else
6470 echo "$as_me: program exited with status $ac_status" >&5
6471echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474fi
6475rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6476fi
6477if test "$pagesize" != "no" ; then
6478 echo "$as_me:$LINENO: result: $pagesize" >&5
6479echo "${ECHO_T}$pagesize" >&6
6480else
6481 if test "$ac_cv_sizeof_int" = "4" ; then
6482 pagesize=4096
6483 else
6484 pagesize=8192
6485 fi
6486 echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6487echo "${ECHO_T}$pagesize (guessing)" >&6
6488fi
6489
6490cat >>confdefs.h <<_ACEOF
6491#define MALLOC_PAGESIZE $pagesize
6492_ACEOF
6493
6494
6495
6496echo "$as_me:$LINENO: checking for library containing socket" >&5
6497echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6498if test "${ac_cv_search_socket+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
6501 ac_func_search_save_LIBS=$LIBS
6502ac_cv_search_socket=no
6503cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h. */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h. */
6509
6510/* Override any gcc2 internal prototype to avoid an error. */
6511#ifdef __cplusplus
6512extern "C"
6513#endif
6514/* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6516char socket ();
6517int
6518main ()
6519{
6520socket ();
6521 ;
6522 return 0;
6523}
6524_ACEOF
6525rm -f conftest.$ac_objext conftest$ac_exeext
6526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6527 (eval $ac_link) 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag"
6535 || test ! -s conftest.err'
6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537 (eval $ac_try) 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest$ac_exeext'
6542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543 (eval $ac_try) 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6547 ac_cv_search_socket="none required"
6548else
6549 echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552fi
6553rm -f conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555if test "$ac_cv_search_socket" = no; then
6556 for ac_lib in socket; do
6557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
6564
6565/* Override any gcc2 internal prototype to avoid an error. */
6566#ifdef __cplusplus
6567extern "C"
6568#endif
6569/* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571char socket ();
6572int
6573main ()
6574{
6575socket ();
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580rm -f conftest.$ac_objext conftest$ac_exeext
6581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6582 (eval $ac_link) 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest$ac_exeext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_search_socket="-l$ac_lib"
6603break
6604else
6605 echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608fi
6609rm -f conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6611 done
6612fi
6613LIBS=$ac_func_search_save_LIBS
6614fi
6615echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6616echo "${ECHO_T}$ac_cv_search_socket" >&6
6617if test "$ac_cv_search_socket" != no; then
6618 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
6619
6620else
6621 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6622echo "$as_me: error: You have no socket()! Aborting." >&2;}
6623 { (exit 1); exit 1; }; }
6624fi
6625
6626
6627if test x"$SUN" = xyes; then
6628 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6629echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
6630if test "${ac_cv_search_inet_ntoa+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633 ac_func_search_save_LIBS=$LIBS
6634ac_cv_search_inet_ntoa=no
6635cat >conftest.$ac_ext <<_ACEOF
6636/* confdefs.h. */
6637_ACEOF
6638cat confdefs.h >>conftest.$ac_ext
6639cat >>conftest.$ac_ext <<_ACEOF
6640/* end confdefs.h. */
6641
6642/* Override any gcc2 internal prototype to avoid an error. */
6643#ifdef __cplusplus
6644extern "C"
6645#endif
6646/* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648char inet_ntoa ();
6649int
6650main ()
6651{
6652inet_ntoa ();
6653 ;
6654 return 0;
6655}
6656_ACEOF
6657rm -f conftest.$ac_objext conftest$ac_exeext
6658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6659 (eval $ac_link) 2>conftest.er1
6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } &&
6666 { ac_try='test -z "$ac_c_werror_flag"
6667 || test ! -s conftest.err'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; } &&
6673 { ac_try='test -s conftest$ac_exeext'
6674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6675 (eval $ac_try) 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_search_inet_ntoa="none required"
6680else
6681 echo "$as_me: failed program was:" >&5
6682sed 's/^/| /' conftest.$ac_ext >&5
6683
6684fi
6685rm -f conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
6687if test "$ac_cv_search_inet_ntoa" = no; then
6688 for ac_lib in nsl; do
6689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6690 cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696
6697/* Override any gcc2 internal prototype to avoid an error. */
6698#ifdef __cplusplus
6699extern "C"
6700#endif
6701/* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703char inet_ntoa ();
6704int
6705main ()
6706{
6707inet_ntoa ();
6708 ;
6709 return 0;
6710}
6711_ACEOF
6712rm -f conftest.$ac_objext conftest$ac_exeext
6713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -z "$ac_c_werror_flag"
6722 || test ! -s conftest.err'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; } &&
6728 { ac_try='test -s conftest$ac_exeext'
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6734 ac_cv_search_inet_ntoa="-l$ac_lib"
6735break
6736else
6737 echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740fi
6741rm -f conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 done
6744fi
6745LIBS=$ac_func_search_save_LIBS
6746fi
6747echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
6748echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
6749if test "$ac_cv_search_inet_ntoa" != no; then
6750 test "$ac_cv_search_inet_ntoa" = "none required" || LIBS="$ac_cv_search_inet_ntoa $LIBS"
6751
6752else
6753 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
6754echo "$as_me: error: libnsl not found! Aborting." >&2;}
6755 { (exit 1); exit 1; }; }
6756fi
6757
6758fi
6759
6760echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6761echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
6762if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764else
6765 cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h. */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h. */
6771#include <sys/types.h>
6772#include <sys/socket.h>
6773
6774
6775int
6776main ()
6777{
6778static struct sockaddr ac_aggr;
6779if (ac_aggr.sa_len)
6780return 0;
6781 ;
6782 return 0;
6783}
6784_ACEOF
6785rm -f conftest.$ac_objext
6786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787 (eval $ac_compile) 2>conftest.er1
6788 ac_status=$?
6789 grep -v '^ *+' conftest.er1 >conftest.err
6790 rm -f conftest.er1
6791 cat conftest.err >&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } &&
6794 { ac_try='test -z "$ac_c_werror_flag"
6795 || test ! -s conftest.err'
6796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797 (eval $ac_try) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_cv_member_struct_sockaddr_sa_len=yes
6808else
6809 echo "$as_me: failed program was:" >&5
6810sed 's/^/| /' conftest.$ac_ext >&5
6811
6812cat >conftest.$ac_ext <<_ACEOF
6813/* confdefs.h. */
6814_ACEOF
6815cat confdefs.h >>conftest.$ac_ext
6816cat >>conftest.$ac_ext <<_ACEOF
6817/* end confdefs.h. */
6818#include <sys/types.h>
6819#include <sys/socket.h>
6820
6821
6822int
6823main ()
6824{
6825static struct sockaddr ac_aggr;
6826if (sizeof ac_aggr.sa_len)
6827return 0;
6828 ;
6829 return 0;
6830}
6831_ACEOF
6832rm -f conftest.$ac_objext
6833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 (eval $ac_compile) 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -z "$ac_c_werror_flag"
6842 || test ! -s conftest.err'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try='test -s conftest.$ac_objext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
6854 ac_cv_member_struct_sockaddr_sa_len=yes
6855else
6856 echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859ac_cv_member_struct_sockaddr_sa_len=no
6860fi
6861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6862fi
6863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6864fi
6865echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6866echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
6867if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6868
6869cat >>confdefs.h <<\_ACEOF
6870#define SOCKADDR_IN_HAS_LEN 1
6871_ACEOF
6872
6873fi
6874
6875
6876echo "$as_me:$LINENO: checking for socklen_t" >&5
6877echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6878if test "${ac_cv_type_socklen_t+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881 cat >conftest.$ac_ext <<_ACEOF
6882/* confdefs.h. */
6883_ACEOF
6884cat confdefs.h >>conftest.$ac_ext
6885cat >>conftest.$ac_ext <<_ACEOF
6886/* end confdefs.h. */
6887#include <sys/types.h>
6888#include <sys/socket.h>
6889
6890int
6891main ()
6892{
6893if ((socklen_t *) 0)
6894 return 0;
6895if (sizeof (socklen_t))
6896 return 0;
6897 ;
6898 return 0;
6899}
6900_ACEOF
6901rm -f conftest.$ac_objext
6902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6903 (eval $ac_compile) 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } &&
6910 { ac_try='test -z "$ac_c_werror_flag"
6911 || test ! -s conftest.err'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; } &&
6917 { ac_try='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 (eval $ac_try) 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_type_socklen_t=yes
6924else
6925 echo "$as_me: failed program was:" >&5
6926sed 's/^/| /' conftest.$ac_ext >&5
6927
6928ac_cv_type_socklen_t=no
6929fi
6930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931fi
6932echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6933echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6934if test $ac_cv_type_socklen_t = yes; then
6935 :
6936else
6937
6938cat >>confdefs.h <<\_ACEOF
6939#define socklen_t unsigned int
6940_ACEOF
6941
6942fi
6943
6944
6945# Check whether --enable-ipv6 or --disable-ipv6 was given.
6946if test "${enable_ipv6+set}" = set; then
6947 enableval="$enable_ipv6"
6948 ipv6=$enableval
6949else
6950 ipv6=no
6951fi;
6952
6953if test $ipv6 != yes; then
6954 have_v6="no"
6955else
6956echo "$as_me:$LINENO: checking for core IPv6 support" >&5
6957echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6
6958
6959cat >conftest.$ac_ext <<_ACEOF
6960/* confdefs.h. */
6961_ACEOF
6962cat confdefs.h >>conftest.$ac_ext
6963cat >>conftest.$ac_ext <<_ACEOF
6964/* end confdefs.h. */
6965#define IN_AUTOCONF
6966 #include <sys/types.h>
6967 #include <sys/socket.h>
6968 #include <netinet/in.h>
6969int
6970main ()
6971{
6972struct sockaddr_in6 s;
6973 s.sin6_family = 0;
6974
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext
6980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -z "$ac_c_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try='test -s conftest.$ac_objext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001
7002 if test "$CYGWIN" = "yes"; then
7003 echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7004echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6
7005 have_v6=no
7006 else
7007 have_v6=yes
7008
7009cat >>confdefs.h <<\_ACEOF
7010#define IPV6 1
7011_ACEOF
7012
7013 echo "$as_me:$LINENO: result: yes" >&5
7014echo "${ECHO_T}yes" >&6
7015 echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7016echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6
7017 cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h. */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h. */
7023#define IN_AUTOCONF
7024 #include <sys/types.h>
7025 #include <sys/socket.h>
7026 #include <netinet/in.h>
7027int
7028main ()
7029{
7030struct in6_addr a = in6addr_any;
7031
7032 ;
7033 return 0;
7034}
7035_ACEOF
7036rm -f conftest.$ac_objext
7037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038 (eval $ac_compile) 2>conftest.er1
7039 ac_status=$?
7040 grep -v '^ *+' conftest.er1 >conftest.err
7041 rm -f conftest.er1
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -z "$ac_c_werror_flag"
7046 || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 echo "$as_me:$LINENO: result: yes" >&5
7059echo "${ECHO_T}yes" >&6
7060else
7061 echo "$as_me: failed program was:" >&5
7062sed 's/^/| /' conftest.$ac_ext >&5
7063
7064
7065 echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6
7067
7068cat >>confdefs.h <<\_ACEOF
7069#define NO_IN6ADDR_ANY 1
7070_ACEOF
7071
7072 inet_misc=1
7073
7074
7075fi
7076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7077 fi
7078
7079else
7080 echo "$as_me: failed program was:" >&5
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
7083echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085have_v6="no"
7086fi
7087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088fi
7089
7090echo "$as_me:$LINENO: checking for library containing crypt" >&5
7091echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
7092if test "${ac_cv_search_crypt+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095 ac_func_search_save_LIBS=$LIBS
7096ac_cv_search_crypt=no
7097cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
7103
7104/* Override any gcc2 internal prototype to avoid an error. */
7105#ifdef __cplusplus
7106extern "C"
7107#endif
7108/* We use char because int might match the return type of a gcc2
7109 builtin and then its argument prototype would still apply. */
7110char crypt ();
7111int
7112main ()
7113{
7114crypt ();
7115 ;
7116 return 0;
7117}
7118_ACEOF
7119rm -f conftest.$ac_objext conftest$ac_exeext
7120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag"
7129 || test ! -s conftest.err'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try='test -s conftest$ac_exeext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_cv_search_crypt="none required"
7142else
7143 echo "$as_me: failed program was:" >&5
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
7146fi
7147rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149if test "$ac_cv_search_crypt" = no; then
7150 for ac_lib in crypt descrypt; do
7151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7153/* confdefs.h. */
7154_ACEOF
7155cat confdefs.h >>conftest.$ac_ext
7156cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */
7158
7159/* Override any gcc2 internal prototype to avoid an error. */
7160#ifdef __cplusplus
7161extern "C"
7162#endif
7163/* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7165char crypt ();
7166int
7167main ()
7168{
7169crypt ();
7170 ;
7171 return 0;
7172}
7173_ACEOF
7174rm -f conftest.$ac_objext conftest$ac_exeext
7175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>conftest.er1
7177 ac_status=$?
7178 grep -v '^ *+' conftest.er1 >conftest.err
7179 rm -f conftest.er1
7180 cat conftest.err >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); } &&
7183 { ac_try='test -z "$ac_c_werror_flag"
7184 || test ! -s conftest.err'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 (eval $ac_try) 2>&5
7187 ac_status=$?
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; } &&
7190 { ac_try='test -s conftest$ac_exeext'
7191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 (eval $ac_try) 2>&5
7193 ac_status=$?
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); }; }; then
7196 ac_cv_search_crypt="-l$ac_lib"
7197break
7198else
7199 echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202fi
7203rm -f conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 done
7206fi
7207LIBS=$ac_func_search_save_LIBS
7208fi
7209echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7210echo "${ECHO_T}$ac_cv_search_crypt" >&6
7211if test "$ac_cv_search_crypt" != no; then
7212 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
7213
7214fi
7215
7216
7217CRYPT_LIB=$ac_cv_search_crypt
7218
7219if test "$CRYPT_LIB" = "none required"; then
7220 unset CRYPT_LIB
7221elif test "$CRYPT_LIB" = no; then
7222 unset CRYPT_LIB
7223fi
7224
7225
7226
7227if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7228 VICONF=viconf
7229 else
7230 VICONF=""
7231fi
7232
7233
7234
7235echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7236echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7237if test "${gcc_cv_header_string+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239else
7240
7241 cat >conftest.$ac_ext <<_ACEOF
7242#include <string.h>
7243 #include <strings.h>
7244_ACEOF
7245rm -f conftest.$ac_objext
7246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7248 ac_status=$?
7249 grep -v '^ *+' conftest.er1 >conftest.err
7250 rm -f conftest.er1
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 (eval $ac_try) 2>&5
7264 ac_status=$?
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 gcc_cv_header_string=yes
7268else
7269 echo "$as_me: failed program was:" >&5
7270sed 's/^/| /' conftest.$ac_ext >&5
7271
7272gcc_cv_header_string=no
7273fi
7274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276fi
7277echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7278echo "${ECHO_T}$gcc_cv_header_string" >&6
7279
7280if test "$gcc_cv_header_string" = "yes"; then
7281
7282cat >>confdefs.h <<\_ACEOF
7283#define STRING_WITH_STRINGS 1
7284_ACEOF
7285
7286fi
7287
7288echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7289echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7290if test "${ac_cv_c_bigendian+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292else
7293 # See if sys/param.h defines the BYTE_ORDER macro.
7294cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
7300#include <sys/types.h>
7301#include <sys/param.h>
7302
7303int
7304main ()
7305{
7306#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7307 bogus endian macros
7308#endif
7309
7310 ;
7311 return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext
7315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7316 (eval $ac_compile) 2>conftest.er1
7317 ac_status=$?
7318 grep -v '^ *+' conftest.er1 >conftest.err
7319 rm -f conftest.er1
7320 cat conftest.err >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } &&
7323 { ac_try='test -z "$ac_c_werror_flag"
7324 || test ! -s conftest.err'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; } &&
7330 { ac_try='test -s conftest.$ac_objext'
7331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332 (eval $ac_try) 2>&5
7333 ac_status=$?
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); }; }; then
7336 # It does; now see whether it defined to BIG_ENDIAN or not.
7337cat >conftest.$ac_ext <<_ACEOF
7338/* confdefs.h. */
7339_ACEOF
7340cat confdefs.h >>conftest.$ac_ext
7341cat >>conftest.$ac_ext <<_ACEOF
7342/* end confdefs.h. */
7343#include <sys/types.h>
7344#include <sys/param.h>
7345
7346int
7347main ()
7348{
7349#if BYTE_ORDER != BIG_ENDIAN
7350 not big endian
7351#endif
7352
7353 ;
7354 return 0;
7355}
7356_ACEOF
7357rm -f conftest.$ac_objext
7358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7359 (eval $ac_compile) 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } &&
7366 { ac_try='test -z "$ac_c_werror_flag"
7367 || test ! -s conftest.err'
7368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 (eval $ac_try) 2>&5
7370 ac_status=$?
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); }; } &&
7373 { ac_try='test -s conftest.$ac_objext'
7374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 (eval $ac_try) 2>&5
7376 ac_status=$?
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_c_bigendian=yes
7380else
7381 echo "$as_me: failed program was:" >&5
7382sed 's/^/| /' conftest.$ac_ext >&5
7383
7384ac_cv_c_bigendian=no
7385fi
7386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387else
7388 echo "$as_me: failed program was:" >&5
7389sed 's/^/| /' conftest.$ac_ext >&5
7390
7391# It does not; compile a test program.
7392if test "$cross_compiling" = yes; then
7393 # try to guess the endianness by grepping values into an object file
7394 ac_cv_c_bigendian=unknown
7395 cat >conftest.$ac_ext <<_ACEOF
7396/* confdefs.h. */
7397_ACEOF
7398cat confdefs.h >>conftest.$ac_ext
7399cat >>conftest.$ac_ext <<_ACEOF
7400/* end confdefs.h. */
7401short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7402short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7403void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7404short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7405short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7406void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7407int
7408main ()
7409{
7410 _ascii (); _ebcdic ();
7411 ;
7412 return 0;
7413}
7414_ACEOF
7415rm -f conftest.$ac_objext
7416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -z "$ac_c_werror_flag"
7425 || test ! -s conftest.err'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7438 ac_cv_c_bigendian=yes
7439fi
7440if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7441 if test "$ac_cv_c_bigendian" = unknown; then
7442 ac_cv_c_bigendian=no
7443 else
7444 # finding both strings is unlikely to happen, but who knows?
7445 ac_cv_c_bigendian=unknown
7446 fi
7447fi
7448else
7449 echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452fi
7453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454else
7455 cat >conftest.$ac_ext <<_ACEOF
7456/* confdefs.h. */
7457_ACEOF
7458cat confdefs.h >>conftest.$ac_ext
7459cat >>conftest.$ac_ext <<_ACEOF
7460/* end confdefs.h. */
7461int
7462main ()
7463{
7464 /* Are we little or big endian? From Harbison&Steele. */
7465 union
7466 {
7467 long l;
7468 char c[sizeof (long)];
7469 } u;
7470 u.l = 1;
7471 exit (u.c[sizeof (long) - 1] == 1);
7472}
7473_ACEOF
7474rm -f conftest$ac_exeext
7475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7476 (eval $ac_link) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481 (eval $ac_try) 2>&5
7482 ac_status=$?
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_c_bigendian=no
7486else
7487 echo "$as_me: program exited with status $ac_status" >&5
7488echo "$as_me: failed program was:" >&5
7489sed 's/^/| /' conftest.$ac_ext >&5
7490
7491( exit $ac_status )
7492ac_cv_c_bigendian=yes
7493fi
7494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7495fi
7496fi
7497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498fi
7499echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7500echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7501case $ac_cv_c_bigendian in
7502 yes)
7503
7504cat >>confdefs.h <<\_ACEOF
7505#define WORDS_BIGENDIAN 1
7506_ACEOF
7507 ;;
7508 no)
7509 ;;
7510 *)
7511 { { echo "$as_me:$LINENO: error: unknown endianness
7512presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7513echo "$as_me: error: unknown endianness
7514presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7515 { (exit 1); exit 1; }; } ;;
7516esac
7517
7518
7519if test "${ac_cv_header_stdarg_h+set}" = set; then
7520 echo "$as_me:$LINENO: checking for stdarg.h" >&5
7521echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7522if test "${ac_cv_header_stdarg_h+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524fi
7525echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7526echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7527else
7528 # Is the header compilable?
7529echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7530echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
7531cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537$ac_includes_default
7538#include <stdarg.h>
7539_ACEOF
7540rm -f conftest.$ac_objext
7541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_header_compiler=yes
7563else
7564 echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567ac_header_compiler=no
7568fi
7569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7571echo "${ECHO_T}$ac_header_compiler" >&6
7572
7573# Is the header present?
7574echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7575echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
7576cat >conftest.$ac_ext <<_ACEOF
7577/* confdefs.h. */
7578_ACEOF
7579cat confdefs.h >>conftest.$ac_ext
7580cat >>conftest.$ac_ext <<_ACEOF
7581/* end confdefs.h. */
7582#include <stdarg.h>
7583_ACEOF
7584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } >/dev/null; then
7592 if test -s conftest.err; then
7593 ac_cpp_err=$ac_c_preproc_warn_flag
7594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7595 else
7596 ac_cpp_err=
7597 fi
7598else
7599 ac_cpp_err=yes
7600fi
7601if test -z "$ac_cpp_err"; then
7602 ac_header_preproc=yes
7603else
7604 echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 ac_header_preproc=no
7608fi
7609rm -f conftest.err conftest.$ac_ext
7610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7611echo "${ECHO_T}$ac_header_preproc" >&6
7612
7613# So? What about this header?
7614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7615 yes:no: )
7616 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7617echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7619echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7620 ac_header_preproc=yes
7621 ;;
7622 no:yes:* )
7623 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7624echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7625 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7626echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7628echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7630echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7632echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7634echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7635 (
7636 cat <<\_ASBOX
7637## ------------------------------------ ##
7638## Report this to the charybdis lists. ##
7639## ------------------------------------ ##
7640_ASBOX
7641 ) |
7642 sed "s/^/$as_me: WARNING: /" >&2
7643 ;;
7644esac
7645echo "$as_me:$LINENO: checking for stdarg.h" >&5
7646echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7647if test "${ac_cv_header_stdarg_h+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650 ac_cv_header_stdarg_h=$ac_header_preproc
7651fi
7652echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7653echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7654
7655fi
7656if test $ac_cv_header_stdarg_h = yes; then
7657 :
7658else
7659 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7660echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7661 { (exit 1); exit 1; }; }
7662fi
7663
7664
7665
7666
7667if test "$ac_cv_c_compiler_gnu" = yes; then
7668
7669echo "$as_me:$LINENO: checking for strlcpy" >&5
7670echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
7671save_CFLAGS=$CFLAGS
7672CFLAGS="$CFLAGS -Wimplicit -Werror"
7673
7674cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
7680#include <string.h>
7681 #include <stdlib.h>
7682int
7683main ()
7684{
7685char *a = malloc(6);
7686 strlcpy(a, "hello", 6);
7687
7688 ;
7689 return 0;
7690}
7691_ACEOF
7692rm -f conftest.$ac_objext conftest$ac_exeext
7693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>conftest.er1
7695 ac_status=$?
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } &&
7701 { ac_try='test -z "$ac_c_werror_flag"
7702 || test ! -s conftest.err'
7703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 (eval $ac_try) 2>&5
7705 ac_status=$?
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); }; } &&
7708 { ac_try='test -s conftest$ac_exeext'
7709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 (eval $ac_try) 2>&5
7711 ac_status=$?
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); }; }; then
7714 echo "$as_me:$LINENO: result: yes" >&5
7715echo "${ECHO_T}yes" >&6
7716
7717cat >>confdefs.h <<\_ACEOF
7718#define HAVE_STRLCPY 1
7719_ACEOF
7720
7721else
7722 echo "$as_me: failed program was:" >&5
7723sed 's/^/| /' conftest.$ac_ext >&5
7724
7725echo "$as_me:$LINENO: result: no" >&5
7726echo "${ECHO_T}no" >&6
7727
7728fi
7729rm -f conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731
7732echo "$as_me:$LINENO: checking for strlcat" >&5
7733echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
7734cat >conftest.$ac_ext <<_ACEOF
7735/* confdefs.h. */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h. */
7740#include <string.h>
7741 #include <stdlib.h>
7742int
7743main ()
7744{
7745char *a = malloc(6);
7746 a[0] = '\0';
7747 strlcat(a, "hello", 6);
7748
7749 ;
7750 return 0;
7751}
7752_ACEOF
7753rm -f conftest.$ac_objext conftest$ac_exeext
7754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7755 (eval $ac_link) 2>conftest.er1
7756 ac_status=$?
7757 grep -v '^ *+' conftest.er1 >conftest.err
7758 rm -f conftest.er1
7759 cat conftest.err >&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -z "$ac_c_werror_flag"
7763 || test ! -s conftest.err'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 (eval $ac_try) 2>&5
7766 ac_status=$?
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 (eval $ac_try) 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 echo "$as_me:$LINENO: result: yes" >&5
7776echo "${ECHO_T}yes" >&6
7777
7778cat >>confdefs.h <<\_ACEOF
7779#define HAVE_STRLCAT 1
7780_ACEOF
7781
7782else
7783 echo "$as_me: failed program was:" >&5
7784sed 's/^/| /' conftest.$ac_ext >&5
7785
7786echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788
7789fi
7790rm -f conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792
7793CFLAGS=$save_CFLAGS
7794
7795else
7796
7797
7798
7799
7800for ac_func in strlcat strlcpy
7801do
7802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7803echo "$as_me:$LINENO: checking for $ac_func" >&5
7804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7805if eval "test \"\${$as_ac_var+set}\" = set"; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 cat >conftest.$ac_ext <<_ACEOF
7809/* confdefs.h. */
7810_ACEOF
7811cat confdefs.h >>conftest.$ac_ext
7812cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h. */
7814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7816#define $ac_func innocuous_$ac_func
7817
7818/* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func (); below.
7820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7821 <limits.h> exists even on freestanding compilers. */
7822
7823#ifdef __STDC__
7824# include <limits.h>
7825#else
7826# include <assert.h>
7827#endif
7828
7829#undef $ac_func
7830
7831/* Override any gcc2 internal prototype to avoid an error. */
7832#ifdef __cplusplus
7833extern "C"
7834{
7835#endif
7836/* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7838char $ac_func ();
7839/* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7843choke me
7844#else
7845char (*f) () = $ac_func;
7846#endif
7847#ifdef __cplusplus
7848}
7849#endif
7850
7851int
7852main ()
7853{
7854return f != $ac_func;
7855 ;
7856 return 0;
7857}
7858_ACEOF
7859rm -f conftest.$ac_objext conftest$ac_exeext
7860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861 (eval $ac_link) 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 (eval $ac_try) 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877 (eval $ac_try) 2>&5
7878 ac_status=$?
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_var=yes"
7882else
7883 echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886eval "$as_ac_var=no"
7887fi
7888rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890fi
7891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7893if test `eval echo '${'$as_ac_var'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7896_ACEOF
7897
7898fi
7899done
7900
7901
7902fi
7903
7904echo "$as_me:$LINENO: checking for u_int32_t" >&5
7905echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
7906if test "${ac_cv_type_u_int32_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915$ac_includes_default
7916int
7917main ()
7918{
7919if ((u_int32_t *) 0)
7920 return 0;
7921if (sizeof (u_int32_t))
7922 return 0;
7923 ;
7924 return 0;
7925}
7926_ACEOF
7927rm -f conftest.$ac_objext
7928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_cv_type_u_int32_t=yes
7950else
7951 echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
7954ac_cv_type_u_int32_t=no
7955fi
7956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957fi
7958echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7959echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
7960if test $ac_cv_type_u_int32_t = yes; then
7961 :
7962else
7963
7964 echo "$as_me:$LINENO: checking for uint32_t" >&5
7965echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7966if test "${ac_cv_type_uint32_t+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h. */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h. */
7975$ac_includes_default
7976int
7977main ()
7978{
7979if ((uint32_t *) 0)
7980 return 0;
7981if (sizeof (uint32_t))
7982 return 0;
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext
7988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989 (eval $ac_compile) 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -z "$ac_c_werror_flag"
7997 || test ! -s conftest.err'
7998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7999 (eval $ac_try) 2>&5
8000 ac_status=$?
8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); }; } &&
8003 { ac_try='test -s conftest.$ac_objext'
8004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005 (eval $ac_try) 2>&5
8006 ac_status=$?
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); }; }; then
8009 ac_cv_type_uint32_t=yes
8010else
8011 echo "$as_me: failed program was:" >&5
8012sed 's/^/| /' conftest.$ac_ext >&5
8013
8014ac_cv_type_uint32_t=no
8015fi
8016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8017fi
8018echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8019echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8020if test $ac_cv_type_uint32_t = yes; then
8021
8022
8023cat >>confdefs.h <<\_ACEOF
8024#define u_int32_t uint32_t
8025_ACEOF
8026
8027
8028else
8029
8030 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8031echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8032
8033cat >>confdefs.h <<\_ACEOF
8034#define u_int32_t unsigned long int
8035_ACEOF
8036
8037
8038fi
8039
8040
8041fi
8042
8043
8044echo "$as_me:$LINENO: checking for u_int16_t" >&5
8045echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
8046if test "${ac_cv_type_u_int16_t+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049 cat >conftest.$ac_ext <<_ACEOF
8050/* confdefs.h. */
8051_ACEOF
8052cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */
8055$ac_includes_default
8056int
8057main ()
8058{
8059if ((u_int16_t *) 0)
8060 return 0;
8061if (sizeof (u_int16_t))
8062 return 0;
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext
8068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_type_u_int16_t=yes
8090else
8091 echo "$as_me: failed program was:" >&5
8092sed 's/^/| /' conftest.$ac_ext >&5
8093
8094ac_cv_type_u_int16_t=no
8095fi
8096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097fi
8098echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8099echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
8100if test $ac_cv_type_u_int16_t = yes; then
8101 :
8102else
8103
8104 echo "$as_me:$LINENO: checking for uint16_t" >&5
8105echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
8106if test "${ac_cv_type_uint16_t+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */
8115$ac_includes_default
8116int
8117main ()
8118{
8119if ((uint16_t *) 0)
8120 return 0;
8121if (sizeof (uint16_t))
8122 return 0;
8123 ;
8124 return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext
8128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_type_uint16_t=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
8154ac_cv_type_uint16_t=no
8155fi
8156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157fi
8158echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8159echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
8160if test $ac_cv_type_uint16_t = yes; then
8161
8162
8163cat >>confdefs.h <<\_ACEOF
8164#define u_int16_t uint16_t
8165_ACEOF
8166
8167
8168else
8169
8170 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8171echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8172
8173cat >>confdefs.h <<\_ACEOF
8174#define u_int16_t unsigned short int
8175_ACEOF
8176
8177
8178fi
8179
8180
8181fi
8182
8183
8184echo "$as_me:$LINENO: checking for in_port_t" >&5
8185echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
8186if test "${ac_cv_type_in_port_t+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188else
8189 cat >conftest.$ac_ext <<_ACEOF
8190/* confdefs.h. */
8191_ACEOF
8192cat confdefs.h >>conftest.$ac_ext
8193cat >>conftest.$ac_ext <<_ACEOF
8194/* end confdefs.h. */
8195#include <sys/types.h>
8196#include <netinet/in.h>
8197
8198int
8199main ()
8200{
8201if ((in_port_t *) 0)
8202 return 0;
8203if (sizeof (in_port_t))
8204 return 0;
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext
8210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8211 (eval $ac_compile) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest.$ac_objext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_type_in_port_t=yes
8232else
8233 echo "$as_me: failed program was:" >&5
8234sed 's/^/| /' conftest.$ac_ext >&5
8235
8236ac_cv_type_in_port_t=no
8237fi
8238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8239fi
8240echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8241echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
8242if test $ac_cv_type_in_port_t = yes; then
8243 :
8244else
8245
8246cat >>confdefs.h <<\_ACEOF
8247#define in_port_t u_int16_t
8248_ACEOF
8249
8250fi
8251
8252
8253echo "$as_me:$LINENO: checking for sa_family_t" >&5
8254echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
8255if test "${ac_cv_type_sa_family_t+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258 cat >conftest.$ac_ext <<_ACEOF
8259/* confdefs.h. */
8260_ACEOF
8261cat confdefs.h >>conftest.$ac_ext
8262cat >>conftest.$ac_ext <<_ACEOF
8263/* end confdefs.h. */
8264#include <sys/types.h>
8265#include <sys/socket.h>
8266
8267int
8268main ()
8269{
8270if ((sa_family_t *) 0)
8271 return 0;
8272if (sizeof (sa_family_t))
8273 return 0;
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278rm -f conftest.$ac_objext
8279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8280 (eval $ac_compile) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest.$ac_objext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_type_sa_family_t=yes
8301else
8302 echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305ac_cv_type_sa_family_t=no
8306fi
8307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8308fi
8309echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8310echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
8311if test $ac_cv_type_sa_family_t = yes; then
8312 :
8313else
8314
8315cat >>confdefs.h <<\_ACEOF
8316#define sa_family_t u_int16_t
8317_ACEOF
8318
8319fi
8320
8321
8322echo "$as_me:$LINENO: checking for uintptr_t" >&5
8323echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8324if test "${ac_cv_type_uintptr_t+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327 cat >conftest.$ac_ext <<_ACEOF
8328/* confdefs.h. */
8329_ACEOF
8330cat confdefs.h >>conftest.$ac_ext
8331cat >>conftest.$ac_ext <<_ACEOF
8332/* end confdefs.h. */
8333$ac_includes_default
8334int
8335main ()
8336{
8337if ((uintptr_t *) 0)
8338 return 0;
8339if (sizeof (uintptr_t))
8340 return 0;
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345rm -f conftest.$ac_objext
8346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8347 (eval $ac_compile) 2>conftest.er1
8348 ac_status=$?
8349 grep -v '^ *+' conftest.er1 >conftest.err
8350 rm -f conftest.er1
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } &&
8354 { ac_try='test -z "$ac_c_werror_flag"
8355 || test ! -s conftest.err'
8356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357 (eval $ac_try) 2>&5
8358 ac_status=$?
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); }; } &&
8361 { ac_try='test -s conftest.$ac_objext'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
8367 ac_cv_type_uintptr_t=yes
8368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
8372ac_cv_type_uintptr_t=no
8373fi
8374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375fi
8376echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8377echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8378if test $ac_cv_type_uintptr_t = yes; then
8379
8380cat >>confdefs.h <<_ACEOF
8381#define HAVE_UINTPTR_T 1
8382_ACEOF
8383
8384
8385fi
8386
8387
8388
8389
8390
8391
8392
8393
8394for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8395do
8396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8397echo "$as_me:$LINENO: checking for $ac_func" >&5
8398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8399if eval "test \"\${$as_ac_var+set}\" = set"; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402 cat >conftest.$ac_ext <<_ACEOF
8403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
8408/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8410#define $ac_func innocuous_$ac_func
8411
8412/* System header to define __stub macros and hopefully few prototypes,
8413 which can conflict with char $ac_func (); below.
8414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8415 <limits.h> exists even on freestanding compilers. */
8416
8417#ifdef __STDC__
8418# include <limits.h>
8419#else
8420# include <assert.h>
8421#endif
8422
8423#undef $ac_func
8424
8425/* Override any gcc2 internal prototype to avoid an error. */
8426#ifdef __cplusplus
8427extern "C"
8428{
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432char $ac_func ();
8433/* The GNU C library defines this for functions which it implements
8434 to always fail with ENOSYS. Some functions are actually named
8435 something starting with __ and the normal name is an alias. */
8436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8437choke me
8438#else
8439char (*f) () = $ac_func;
8440#endif
8441#ifdef __cplusplus
8442}
8443#endif
8444
8445int
8446main ()
8447{
8448return f != $ac_func;
8449 ;
8450 return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8455 (eval $ac_link) 2>conftest.er1
8456 ac_status=$?
8457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
8462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest$ac_exeext'
8470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 eval "$as_ac_var=yes"
8476else
8477 echo "$as_me: failed program was:" >&5
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
8480eval "$as_ac_var=no"
8481fi
8482rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484fi
8485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8486echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8487if test `eval echo '${'$as_ac_var'}'` = yes; then
8488 cat >>confdefs.h <<_ACEOF
8489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8490_ACEOF
8491
8492fi
8493done
8494
8495
8496# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8497# for constant arguments. Useless!
8498echo "$as_me:$LINENO: checking for working alloca.h" >&5
8499echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8500if test "${ac_cv_working_alloca_h+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 cat >conftest.$ac_ext <<_ACEOF
8504/* confdefs.h. */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h. */
8509#include <alloca.h>
8510int
8511main ()
8512{
8513char *p = (char *) alloca (2 * sizeof (int));
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518rm -f conftest.$ac_objext conftest$ac_exeext
8519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 (eval $ac_link) 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag"
8528 || test ! -s conftest.err'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 (eval $ac_try) 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; }; then
8540 ac_cv_working_alloca_h=yes
8541else
8542 echo "$as_me: failed program was:" >&5
8543sed 's/^/| /' conftest.$ac_ext >&5
8544
8545ac_cv_working_alloca_h=no
8546fi
8547rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549fi
8550echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8551echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8552if test $ac_cv_working_alloca_h = yes; then
8553
8554cat >>confdefs.h <<\_ACEOF
8555#define HAVE_ALLOCA_H 1
8556_ACEOF
8557
8558fi
8559
8560echo "$as_me:$LINENO: checking for alloca" >&5
8561echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8562if test "${ac_cv_func_alloca_works+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565 cat >conftest.$ac_ext <<_ACEOF
8566/* confdefs.h. */
8567_ACEOF
8568cat confdefs.h >>conftest.$ac_ext
8569cat >>conftest.$ac_ext <<_ACEOF
8570/* end confdefs.h. */
8571#ifdef __GNUC__
8572# define alloca __builtin_alloca
8573#else
8574# ifdef _MSC_VER
8575# include <malloc.h>
8576# define alloca _alloca
8577# else
8578# if HAVE_ALLOCA_H
8579# include <alloca.h>
8580# else
8581# ifdef _AIX
8582 #pragma alloca
8583# else
8584# ifndef alloca /* predefined by HP cc +Olibcalls */
8585char *alloca ();
8586# endif
8587# endif
8588# endif
8589# endif
8590#endif
8591
8592int
8593main ()
8594{
8595char *p = (char *) alloca (1);
8596 ;
8597 return 0;
8598}
8599_ACEOF
8600rm -f conftest.$ac_objext conftest$ac_exeext
8601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_alloca_works=yes
8623else
8624 echo "$as_me: failed program was:" >&5
8625sed 's/^/| /' conftest.$ac_ext >&5
8626
8627ac_cv_func_alloca_works=no
8628fi
8629rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631fi
8632echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8633echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8634
8635if test $ac_cv_func_alloca_works = yes; then
8636
8637cat >>confdefs.h <<\_ACEOF
8638#define HAVE_ALLOCA 1
8639_ACEOF
8640
8641else
8642 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8643# that cause trouble. Some versions do not even contain alloca or
8644# contain a buggy version. If you still want to use their alloca,
8645# use ar to extract alloca.o from them instead of compiling alloca.c.
8646
8647ALLOCA=alloca.$ac_objext
8648
8649cat >>confdefs.h <<\_ACEOF
8650#define C_ALLOCA 1
8651_ACEOF
8652
8653
8654echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8655echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8656if test "${ac_cv_os_cray+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658else
8659 cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h. */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h. */
8665#if defined(CRAY) && ! defined(CRAY2)
8666webecray
8667#else
8668wenotbecray
8669#endif
8670
8671_ACEOF
8672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8673 $EGREP "webecray" >/dev/null 2>&1; then
8674 ac_cv_os_cray=yes
8675else
8676 ac_cv_os_cray=no
8677fi
8678rm -f conftest*
8679
8680fi
8681echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8682echo "${ECHO_T}$ac_cv_os_cray" >&6
8683if test $ac_cv_os_cray = yes; then
8684 for ac_func in _getb67 GETB67 getb67; do
8685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686echo "$as_me:$LINENO: checking for $ac_func" >&5
8687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8688if eval "test \"\${$as_ac_var+set}\" = set"; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690else
8691 cat >conftest.$ac_ext <<_ACEOF
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
8697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8699#define $ac_func innocuous_$ac_func
8700
8701/* System header to define __stub macros and hopefully few prototypes,
8702 which can conflict with char $ac_func (); below.
8703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 <limits.h> exists even on freestanding compilers. */
8705
8706#ifdef __STDC__
8707# include <limits.h>
8708#else
8709# include <assert.h>
8710#endif
8711
8712#undef $ac_func
8713
8714/* Override any gcc2 internal prototype to avoid an error. */
8715#ifdef __cplusplus
8716extern "C"
8717{
8718#endif
8719/* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8721char $ac_func ();
8722/* The GNU C library defines this for functions which it implements
8723 to always fail with ENOSYS. Some functions are actually named
8724 something starting with __ and the normal name is an alias. */
8725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8726choke me
8727#else
8728char (*f) () = $ac_func;
8729#endif
8730#ifdef __cplusplus
8731}
8732#endif
8733
8734int
8735main ()
8736{
8737return f != $ac_func;
8738 ;
8739 return 0;
8740}
8741_ACEOF
8742rm -f conftest.$ac_objext conftest$ac_exeext
8743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754 (eval $ac_try) 2>&5
8755 ac_status=$?
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 eval "$as_ac_var=yes"
8765else
8766 echo "$as_me: failed program was:" >&5
8767sed 's/^/| /' conftest.$ac_ext >&5
8768
8769eval "$as_ac_var=no"
8770fi
8771rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773fi
8774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8776if test `eval echo '${'$as_ac_var'}'` = yes; then
8777
8778cat >>confdefs.h <<_ACEOF
8779#define CRAY_STACKSEG_END $ac_func
8780_ACEOF
8781
8782 break
8783fi
8784
8785 done
8786fi
8787
8788echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8789echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8790if test "${ac_cv_c_stack_direction+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792else
8793 if test "$cross_compiling" = yes; then
8794 ac_cv_c_stack_direction=0
8795else
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802int
8803find_stack_direction ()
8804{
8805 static char *addr = 0;
8806 auto char dummy;
8807 if (addr == 0)
8808 {
8809 addr = &dummy;
8810 return find_stack_direction ();
8811 }
8812 else
8813 return (&dummy > addr) ? 1 : -1;
8814}
8815
8816int
8817main ()
8818{
8819 exit (find_stack_direction () < 0);
8820}
8821_ACEOF
8822rm -f conftest$ac_exeext
8823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8824 (eval $ac_link) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_cv_c_stack_direction=1
8834else
8835 echo "$as_me: program exited with status $ac_status" >&5
8836echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839( exit $ac_status )
8840ac_cv_c_stack_direction=-1
8841fi
8842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8843fi
8844fi
8845echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8846echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8847
8848cat >>confdefs.h <<_ACEOF
8849#define STACK_DIRECTION $ac_cv_c_stack_direction
8850_ACEOF
8851
8852
8853fi
8854
8855
8856
8857echo "$as_me:$LINENO: checking for nanosleep" >&5
8858echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
8859if test "${ac_cv_func_nanosleep+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h. */
8868/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
8869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8870#define nanosleep innocuous_nanosleep
8871
8872/* System header to define __stub macros and hopefully few prototypes,
8873 which can conflict with char nanosleep (); below.
8874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8875 <limits.h> exists even on freestanding compilers. */
8876
8877#ifdef __STDC__
8878# include <limits.h>
8879#else
8880# include <assert.h>
8881#endif
8882
8883#undef nanosleep
8884
8885/* Override any gcc2 internal prototype to avoid an error. */
8886#ifdef __cplusplus
8887extern "C"
8888{
8889#endif
8890/* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8892char nanosleep ();
8893/* The GNU C library defines this for functions which it implements
8894 to always fail with ENOSYS. Some functions are actually named
8895 something starting with __ and the normal name is an alias. */
8896#if defined (__stub_nanosleep) || defined (__stub___nanosleep)
8897choke me
8898#else
8899char (*f) () = nanosleep;
8900#endif
8901#ifdef __cplusplus
8902}
8903#endif
8904
8905int
8906main ()
8907{
8908return f != nanosleep;
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913rm -f conftest.$ac_objext conftest$ac_exeext
8914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8915 (eval $ac_link) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -z "$ac_c_werror_flag"
8923 || test ! -s conftest.err'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 (eval $ac_try) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; } &&
8929 { ac_try='test -s conftest$ac_exeext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 ac_cv_func_nanosleep=yes
8936else
8937 echo "$as_me: failed program was:" >&5
8938sed 's/^/| /' conftest.$ac_ext >&5
8939
8940ac_cv_func_nanosleep=no
8941fi
8942rm -f conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944fi
8945echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8946echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
8947if test $ac_cv_func_nanosleep = yes; then
8948 :
8949else
8950 echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8951echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
8952if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954else
8955 ac_check_lib_save_LIBS=$LIBS
8956LIBS="-lrt $LIBS"
8957cat >conftest.$ac_ext <<_ACEOF
8958/* confdefs.h. */
8959_ACEOF
8960cat confdefs.h >>conftest.$ac_ext
8961cat >>conftest.$ac_ext <<_ACEOF
8962/* end confdefs.h. */
8963
8964/* Override any gcc2 internal prototype to avoid an error. */
8965#ifdef __cplusplus
8966extern "C"
8967#endif
8968/* We use char because int might match the return type of a gcc2
8969 builtin and then its argument prototype would still apply. */
8970char nanosleep ();
8971int
8972main ()
8973{
8974nanosleep ();
8975 ;
8976 return 0;
8977}
8978_ACEOF
8979rm -f conftest.$ac_objext conftest$ac_exeext
8980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981 (eval $ac_link) 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -z "$ac_c_werror_flag"
8989 || test ! -s conftest.err'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; } &&
8995 { ac_try='test -s conftest$ac_exeext'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; }; then
9001 ac_cv_lib_rt_nanosleep=yes
9002else
9003 echo "$as_me: failed program was:" >&5
9004sed 's/^/| /' conftest.$ac_ext >&5
9005
9006ac_cv_lib_rt_nanosleep=no
9007fi
9008rm -f conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010LIBS=$ac_check_lib_save_LIBS
9011fi
9012echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9013echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
9014if test $ac_cv_lib_rt_nanosleep = yes; then
9015 LIBS="${LIBS} -lrt"
9016else
9017 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9018echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
9019if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022 ac_check_lib_save_LIBS=$LIBS
9023LIBS="-lposix4 $LIBS"
9024cat >conftest.$ac_ext <<_ACEOF
9025/* confdefs.h. */
9026_ACEOF
9027cat confdefs.h >>conftest.$ac_ext
9028cat >>conftest.$ac_ext <<_ACEOF
9029/* end confdefs.h. */
9030
9031/* Override any gcc2 internal prototype to avoid an error. */
9032#ifdef __cplusplus
9033extern "C"
9034#endif
9035/* We use char because int might match the return type of a gcc2
9036 builtin and then its argument prototype would still apply. */
9037char nanosleep ();
9038int
9039main ()
9040{
9041nanosleep ();
9042 ;
9043 return 0;
9044}
9045_ACEOF
9046rm -f conftest.$ac_objext conftest$ac_exeext
9047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -z "$ac_c_werror_flag"
9056 || test ! -s conftest.err'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_lib_posix4_nanosleep=yes
9069else
9070 echo "$as_me: failed program was:" >&5
9071sed 's/^/| /' conftest.$ac_ext >&5
9072
9073ac_cv_lib_posix4_nanosleep=no
9074fi
9075rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077LIBS=$ac_check_lib_save_LIBS
9078fi
9079echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9080echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
9081if test $ac_cv_lib_posix4_nanosleep = yes; then
9082 LIBS="${LIBS} -lposix4"
9083
9084fi
9085
9086fi
9087
9088fi
9089
9090if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
9091then
9092 echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9093echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6
9094else
9095
9096cat >>confdefs.h <<\_ACEOF
9097#define HAVE_NANOSLEEP 1
9098_ACEOF
9099
9100fi
9101
9102echo "$as_me:$LINENO: checking for OpenSSL" >&5
9103echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9104# Check whether --enable-openssl or --disable-openssl was given.
9105if test "${enable_openssl+set}" = set; then
9106 enableval="$enable_openssl"
9107 cf_enable_openssl=$enableval
9108else
9109 cf_enable_openssl="auto"
9110fi;
9111
9112if test "$cf_enable_openssl" != "no" ; then
9113 cf_openssl_basedir=""
9114 if test "$cf_enable_openssl" != "auto" &&
9115 test "$cf_enable_openssl" != "yes" ; then
9116 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9117 else
9118 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9119 /usr/local/openssl ; do
9120 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9121 cf_openssl_basedir="${dirs}"
9122 break
9123 fi
9124 done
9125 unset dirs
9126 fi
9127 if test ! -z "$cf_openssl_basedir"; then
9128 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9129 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9130 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9131 else
9132 cf_openssl_basedir=""
9133 fi
9134 else
9135 if test -f "/usr/include/openssl/opensslv.h" ; then
9136 cf_openssl_basedir="/usr"
9137 fi
9138 fi
9139
9140 if test ! -z "$cf_openssl_basedir"; then
9141 echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9142echo "${ECHO_T}$cf_openssl_basedir" >&6
9143 cf_enable_openssl="yes"
9144 else
9145 echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9146echo "${ECHO_T}not found. Specify a correct path?" >&6
9147 cf_enable_openssl="no"
9148 fi
9149 unset cf_openssl_basedir
9150else
9151 echo "$as_me:$LINENO: result: disabled" >&5
9152echo "${ECHO_T}disabled" >&6
9153fi
9154
9155save_CPPFLAGS="$CPPFLAGS"
9156CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9157save_LIBS="$LIBS"
9158LIBS="$LIBS $SSL_LIBS"
9159if test "$cf_enable_openssl" != no; then
9160 echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9161echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6
9162 if test "$cross_compiling" = yes; then
9163 cf_openssl_version_ok=no
9164else
9165 cat >conftest.$ac_ext <<_ACEOF
9166/* confdefs.h. */
9167_ACEOF
9168cat confdefs.h >>conftest.$ac_ext
9169cat >>conftest.$ac_ext <<_ACEOF
9170/* end confdefs.h. */
9171#include <openssl/opensslv.h>
9172 #include <stdlib.h>
9173int
9174main ()
9175{
9176if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9177 exit(0); else exit(1);
9178 ;
9179 return 0;
9180}
9181_ACEOF
9182rm -f conftest$ac_exeext
9183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 cf_openssl_version_ok=yes
9194else
9195 echo "$as_me: program exited with status $ac_status" >&5
9196echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
9198
9199( exit $ac_status )
9200cf_openssl_version_ok=no
9201fi
9202rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9203fi
9204
9205 if test "$cf_openssl_version_ok" = yes; then
9206 echo "$as_me:$LINENO: result: found" >&5
9207echo "${ECHO_T}found" >&6
9208
9209 ENCSPEED=encspeed
9210
9211
9212 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9213
9214echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9215echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
9216if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219 ac_check_lib_save_LIBS=$LIBS
9220LIBS="-lcrypto $LIBS"
9221cat >conftest.$ac_ext <<_ACEOF
9222/* confdefs.h. */
9223_ACEOF
9224cat confdefs.h >>conftest.$ac_ext
9225cat >>conftest.$ac_ext <<_ACEOF
9226/* end confdefs.h. */
9227
9228/* Override any gcc2 internal prototype to avoid an error. */
9229#ifdef __cplusplus
9230extern "C"
9231#endif
9232/* We use char because int might match the return type of a gcc2
9233 builtin and then its argument prototype would still apply. */
9234char RSA_free ();
9235int
9236main ()
9237{
9238RSA_free ();
9239 ;
9240 return 0;
9241}
9242_ACEOF
9243rm -f conftest.$ac_objext conftest$ac_exeext
9244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag"
9253 || test ! -s conftest.err'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; } &&
9259 { ac_try='test -s conftest$ac_exeext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 ac_cv_lib_crypto_RSA_free=yes
9266else
9267 echo "$as_me: failed program was:" >&5
9268sed 's/^/| /' conftest.$ac_ext >&5
9269
9270ac_cv_lib_crypto_RSA_free=no
9271fi
9272rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274LIBS=$ac_check_lib_save_LIBS
9275fi
9276echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9277echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
9278if test $ac_cv_lib_crypto_RSA_free = yes; then
9279 cat >>confdefs.h <<_ACEOF
9280#define HAVE_LIBCRYPTO 1
9281_ACEOF
9282
9283 LIBS="-lcrypto $LIBS"
9284
9285fi
9286
9287 SSL_LIBS="$SSL_LIBS -lcrypto"
9288 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9289 else
9290 echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9291echo "${ECHO_T}no - OpenSSL support disabled" >&6
9292 fi
9293fi
9294
9295CPPFLAGS="$save_CPPFLAGS"
9296LIBS="$save_LIBS"
9297
9298
9299
9300
9301
9302# Check whether --with-zlib-path or --without-zlib-path was given.
9303if test "${with_zlib_path+set}" = set; then
9304 withval="$with_zlib_path"
9305 LIBS="$LIBS -L$withval"
9306fi;
9307
9308# Check whether --enable-zlib or --disable-zlib was given.
9309if test "${enable_zlib+set}" = set; then
9310 enableval="$enable_zlib"
9311 zlib=$enableval
9312else
9313 zlib=yes
9314fi;
9315
9316if test "$zlib" = yes; then
9317
9318if test "${ac_cv_header_zlib_h+set}" = set; then
9319 echo "$as_me:$LINENO: checking for zlib.h" >&5
9320echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9321if test "${ac_cv_header_zlib_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323fi
9324echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9325echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9326else
9327 # Is the header compilable?
9328echo "$as_me:$LINENO: checking zlib.h usability" >&5
9329echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9330cat >conftest.$ac_ext <<_ACEOF
9331/* confdefs.h. */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h. */
9336$ac_includes_default
9337#include <zlib.h>
9338_ACEOF
9339rm -f conftest.$ac_objext
9340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9342 ac_status=$?
9343 grep -v '^ *+' conftest.er1 >conftest.err
9344 rm -f conftest.er1
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_header_compiler=yes
9362else
9363 echo "$as_me: failed program was:" >&5
9364sed 's/^/| /' conftest.$ac_ext >&5
9365
9366ac_header_compiler=no
9367fi
9368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9370echo "${ECHO_T}$ac_header_compiler" >&6
9371
9372# Is the header present?
9373echo "$as_me:$LINENO: checking zlib.h presence" >&5
9374echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9375cat >conftest.$ac_ext <<_ACEOF
9376/* confdefs.h. */
9377_ACEOF
9378cat confdefs.h >>conftest.$ac_ext
9379cat >>conftest.$ac_ext <<_ACEOF
9380/* end confdefs.h. */
9381#include <zlib.h>
9382_ACEOF
9383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } >/dev/null; then
9391 if test -s conftest.err; then
9392 ac_cpp_err=$ac_c_preproc_warn_flag
9393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9394 else
9395 ac_cpp_err=
9396 fi
9397else
9398 ac_cpp_err=yes
9399fi
9400if test -z "$ac_cpp_err"; then
9401 ac_header_preproc=yes
9402else
9403 echo "$as_me: failed program was:" >&5
9404sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 ac_header_preproc=no
9407fi
9408rm -f conftest.err conftest.$ac_ext
9409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410echo "${ECHO_T}$ac_header_preproc" >&6
9411
9412# So? What about this header?
9413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9414 yes:no: )
9415 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9416echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9418echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9419 ac_header_preproc=yes
9420 ;;
9421 no:yes:* )
9422 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9423echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9424 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9425echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9427echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9428 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9429echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9430 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9431echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9432 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9433echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9434 (
9435 cat <<\_ASBOX
9436## ------------------------------------ ##
9437## Report this to the charybdis lists. ##
9438## ------------------------------------ ##
9439_ASBOX
9440 ) |
9441 sed "s/^/$as_me: WARNING: /" >&2
9442 ;;
9443esac
9444echo "$as_me:$LINENO: checking for zlib.h" >&5
9445echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9446if test "${ac_cv_header_zlib_h+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449 ac_cv_header_zlib_h=$ac_header_preproc
9450fi
9451echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9452echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9453
9454fi
9455if test $ac_cv_header_zlib_h = yes; then
9456
9457 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9458echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
9459if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461else
9462 ac_check_lib_save_LIBS=$LIBS
9463LIBS="-lz $LIBS"
9464cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470
9471/* Override any gcc2 internal prototype to avoid an error. */
9472#ifdef __cplusplus
9473extern "C"
9474#endif
9475/* We use char because int might match the return type of a gcc2
9476 builtin and then its argument prototype would still apply. */
9477char zlibVersion ();
9478int
9479main ()
9480{
9481zlibVersion ();
9482 ;
9483 return 0;
9484}
9485_ACEOF
9486rm -f conftest.$ac_objext conftest$ac_exeext
9487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 ac_cv_lib_z_zlibVersion=yes
9509else
9510 echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513ac_cv_lib_z_zlibVersion=no
9514fi
9515rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517LIBS=$ac_check_lib_save_LIBS
9518fi
9519echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9520echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
9521if test $ac_cv_lib_z_zlibVersion = yes; then
9522
9523 ZLIB_LD=-lz
9524
9525
9526cat >>confdefs.h <<\_ACEOF
9527#define HAVE_LIBZ 1
9528_ACEOF
9529
9530
9531else
9532 zlib=no
9533fi
9534
9535
9536else
9537 zlib=no
9538fi
9539
9540
9541
9542fi
9543
9544
9545# Check whether --enable-poll or --disable-poll was given.
9546if test "${enable_poll+set}" = set; then
9547 enableval="$enable_poll"
9548 if test $enableval = yes; then
9549 SELECT_TYPE_EXPLICIT="poll"
9550 else
9551 use_poll=no
9552 fi
9553
9554fi;
9555
9556# Check whether --enable-select or --disable-select was given.
9557if test "${enable_select+set}" = set; then
9558 enableval="$enable_select"
9559 if test $enableval = yes; then
9560 SELECT_TYPE_EXPLICIT="select"
9561 else
9562 use_select=no
9563 fi
9564
9565fi;
9566
9567# Check whether --enable-kqueue or --disable-kqueue was given.
9568if test "${enable_kqueue+set}" = set; then
9569 enableval="$enable_kqueue"
9570 if test $enableval = yes; then
9571 SELECT_TYPE_EXPLICIT="kqueue"
9572 else
9573 use_kqueue=no
9574 fi
9575
9576fi;
9577
9578# Check whether --enable-devpoll or --disable-devpoll was given.
9579if test "${enable_devpoll+set}" = set; then
9580 enableval="$enable_devpoll"
9581 if test $enableval = yes; then
9582 SELECT_TYPE_EXPLICIT="devpoll"
9583
9584
9585for ac_header in sys/devpoll.h devpoll.h
9586do
9587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593fi
9594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9596else
9597 # Is the header compilable?
9598echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606$ac_includes_default
9607#include <$ac_header>
9608_ACEOF
9609rm -f conftest.$ac_objext
9610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9611 (eval $ac_compile) 2>conftest.er1
9612 ac_status=$?
9613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_header_compiler=yes
9632else
9633 echo "$as_me: failed program was:" >&5
9634sed 's/^/| /' conftest.$ac_ext >&5
9635
9636ac_header_compiler=no
9637fi
9638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640echo "${ECHO_T}$ac_header_compiler" >&6
9641
9642# Is the header present?
9643echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h. */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h. */
9651#include <$ac_header>
9652_ACEOF
9653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } >/dev/null; then
9661 if test -s conftest.err; then
9662 ac_cpp_err=$ac_c_preproc_warn_flag
9663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9664 else
9665 ac_cpp_err=
9666 fi
9667else
9668 ac_cpp_err=yes
9669fi
9670if test -z "$ac_cpp_err"; then
9671 ac_header_preproc=yes
9672else
9673 echo "$as_me: failed program was:" >&5
9674sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_header_preproc=no
9677fi
9678rm -f conftest.err conftest.$ac_ext
9679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680echo "${ECHO_T}$ac_header_preproc" >&6
9681
9682# So? What about this header?
9683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9684 yes:no: )
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9689 ac_header_preproc=yes
9690 ;;
9691 no:yes:* )
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9704 (
9705 cat <<\_ASBOX
9706## ------------------------------------ ##
9707## Report this to the charybdis lists. ##
9708## ------------------------------------ ##
9709_ASBOX
9710 ) |
9711 sed "s/^/$as_me: WARNING: /" >&2
9712 ;;
9713esac
9714echo "$as_me:$LINENO: checking for $ac_header" >&5
9715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719 eval "$as_ac_Header=\$ac_header_preproc"
9720fi
9721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723
9724fi
9725if test `eval echo '${'$as_ac_Header'}'` = yes; then
9726 cat >>confdefs.h <<_ACEOF
9727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9728_ACEOF
9729
9730fi
9731
9732done
9733
9734 else
9735 use_devpoll=no;
9736 fi
9737
9738fi;
9739
9740# Check whether --enable-epoll or --disable-epoll was given.
9741if test "${enable_epoll+set}" = set; then
9742 enableval="$enable_epoll"
9743 if test $enableval = yes; then
9744 SELECT_TYPE_EXPLICIT="epoll"
9745 else
9746 use_epoll=no
9747 fi
9748
9749fi;
9750
9751
9752echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9753echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6
9754
9755# Check whether --with-confdir or --without-confdir was given.
9756if test "${with_confdir+set}" = set; then
9757 withval="$with_confdir"
9758 confdir=`echo $withval | sed 's/\/$//'`
9759 echo "$as_me:$LINENO: result: yes" >&5
9760echo "${ECHO_T}yes" >&6
9761
9762 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9764 ac_define_dir=`eval echo $confdir`
9765 ac_define_dir=`eval echo $ac_define_dir`
9766 ETC_DIR="$ac_define_dir"
9767
9768
9769cat >>confdefs.h <<_ACEOF
9770#define ETC_DIR "$ac_define_dir"
9771_ACEOF
9772
9773
9774
9775
9776 confdir=`(
9777 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9778 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9779 eval echo \""$confdir"\"
9780 )`
9781
9782
9783else
9784 confdir='${prefix}/etc'
9785 echo "$as_me:$LINENO: result: no" >&5
9786echo "${ECHO_T}no" >&6
9787
9788 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9789 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9790 ac_define_dir=`eval echo $confdir`
9791 ac_define_dir=`eval echo $ac_define_dir`
9792 ETC_DIR="$ac_define_dir"
9793
9794
9795cat >>confdefs.h <<_ACEOF
9796#define ETC_DIR "$ac_define_dir"
9797_ACEOF
9798
9799
9800
9801
9802 confdir=`(
9803 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9804 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9805 eval echo \""$confdir"\"
9806 )`
9807
9808
9809
9810fi;
9811
9812
9813echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9814echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6
9815
9816# Check whether --with-logdir or --without-logdir was given.
9817if test "${with_logdir+set}" = set; then
9818 withval="$with_logdir"
9819 logdir=`echo $withval | sed 's/\/$//'`
9820 echo "$as_me:$LINENO: result: yes" >&5
9821echo "${ECHO_T}yes" >&6
9822
9823 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9825 ac_define_dir=`eval echo $logdir`
9826 ac_define_dir=`eval echo $ac_define_dir`
9827 LOG_DIR="$ac_define_dir"
9828
9829
9830cat >>confdefs.h <<_ACEOF
9831#define LOG_DIR "$ac_define_dir"
9832_ACEOF
9833
9834
9835
9836
9837 logdir=`(
9838 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9839 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9840 eval echo \""$logdir"\"
9841 )`
9842
9843
9844else
9845 logdir='${prefix}/logs'
9846 echo "$as_me:$LINENO: result: no" >&5
9847echo "${ECHO_T}no" >&6
9848
9849 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9851 ac_define_dir=`eval echo $logdir`
9852 ac_define_dir=`eval echo $ac_define_dir`
9853 LOG_DIR="$ac_define_dir"
9854
9855
9856cat >>confdefs.h <<_ACEOF
9857#define LOG_DIR "$ac_define_dir"
9858_ACEOF
9859
9860
9861
9862
9863 logdir=`(
9864 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9865 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9866 eval echo \""$logdir"\"
9867 )`
9868
9869
9870
9871fi;
9872
9873
9874echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9875echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6
9876
9877# Check whether --with-helpdir or --without-helpdir was given.
9878if test "${with_helpdir+set}" = set; then
9879 withval="$with_helpdir"
9880 helpdir=`echo $withval | sed 's/\/$//'`
9881 echo "$as_me:$LINENO: result: yes" >&5
9882echo "${ECHO_T}yes" >&6
9883
9884 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9886 ac_define_dir=`eval echo $helpdir`
9887 ac_define_dir=`eval echo $ac_define_dir`
9888 HELP_DIR="$ac_define_dir"
9889
9890
9891cat >>confdefs.h <<_ACEOF
9892#define HELP_DIR "$ac_define_dir"
9893_ACEOF
9894
9895
9896
9897
9898 helpdir=`(
9899 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9900 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9901 eval echo \""$helpdir"\"
9902 )`
9903
9904
9905else
9906 helpdir='${prefix}/help'
9907 echo "$as_me:$LINENO: result: no" >&5
9908echo "${ECHO_T}no" >&6
9909
9910 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9912 ac_define_dir=`eval echo $helpdir`
9913 ac_define_dir=`eval echo $ac_define_dir`
9914 HELP_DIR="$ac_define_dir"
9915
9916
9917cat >>confdefs.h <<_ACEOF
9918#define HELP_DIR "$ac_define_dir"
9919_ACEOF
9920
9921
9922
9923
9924 helpdir=`(
9925 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9926 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9927 eval echo \""$helpdir"\"
9928 )`
9929
9930
9931
9932fi;
9933
9934
9935echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9936echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6
9937
9938# Check whether --with-moduledir or --without-moduledir was given.
9939if test "${with_moduledir+set}" = set; then
9940 withval="$with_moduledir"
9941 moduledir=`echo $withval | sed 's/\/$//'`
9942 echo "$as_me:$LINENO: result: yes" >&5
9943echo "${ECHO_T}yes" >&6
9944
9945 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9947 ac_define_dir=`eval echo $moduledir`
9948 ac_define_dir=`eval echo $ac_define_dir`
9949 MODULE_DIR="$ac_define_dir"
9950
9951
9952cat >>confdefs.h <<_ACEOF
9953#define MODULE_DIR "$ac_define_dir"
9954_ACEOF
9955
9956
9957
9958
9959 moduledir=`(
9960 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9961 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9962 eval echo \""$moduledir"\"
9963 )`
9964
9965
9966else
9967 moduledir='${prefix}/modules'
9968 echo "$as_me:$LINENO: result: no" >&5
9969echo "${ECHO_T}no" >&6
9970
9971 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9973 ac_define_dir=`eval echo $moduledir`
9974 ac_define_dir=`eval echo $ac_define_dir`
9975 MODULE_DIR="$ac_define_dir"
9976
9977
9978cat >>confdefs.h <<_ACEOF
9979#define MODULE_DIR "$ac_define_dir"
9980_ACEOF
9981
9982
9983
9984
9985 moduledir=`(
9986 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9987 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9988 eval echo \""$moduledir"\"
9989 )`
9990
9991
9992
9993fi;
9994
9995if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9996 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
9997 echo "Forcing $SELECT_TYPE to be enabled"
9998else
9999
10000if test ! "x$use_select" = "xno"; then
10001
10002for ac_func in select
10003do
10004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005echo "$as_me:$LINENO: checking for $ac_func" >&5
10006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 cat >conftest.$ac_ext <<_ACEOF
10011/* confdefs.h. */
10012_ACEOF
10013cat confdefs.h >>conftest.$ac_ext
10014cat >>conftest.$ac_ext <<_ACEOF
10015/* end confdefs.h. */
10016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10018#define $ac_func innocuous_$ac_func
10019
10020/* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char $ac_func (); below.
10022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10023 <limits.h> exists even on freestanding compilers. */
10024
10025#ifdef __STDC__
10026# include <limits.h>
10027#else
10028# include <assert.h>
10029#endif
10030
10031#undef $ac_func
10032
10033/* Override any gcc2 internal prototype to avoid an error. */
10034#ifdef __cplusplus
10035extern "C"
10036{
10037#endif
10038/* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040char $ac_func ();
10041/* The GNU C library defines this for functions which it implements
10042 to always fail with ENOSYS. Some functions are actually named
10043 something starting with __ and the normal name is an alias. */
10044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10045choke me
10046#else
10047char (*f) () = $ac_func;
10048#endif
10049#ifdef __cplusplus
10050}
10051#endif
10052
10053int
10054main ()
10055{
10056return f != $ac_func;
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>conftest.er1
10064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); } &&
10070 { ac_try='test -z "$ac_c_werror_flag"
10071 || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10080 ac_status=$?
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 eval "$as_ac_var=yes"
10084else
10085 echo "$as_me: failed program was:" >&5
10086sed 's/^/| /' conftest.$ac_ext >&5
10087
10088eval "$as_ac_var=no"
10089fi
10090rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092fi
10093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095if test `eval echo '${'$as_ac_var'}'` = yes; then
10096 cat >>confdefs.h <<_ACEOF
10097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10098_ACEOF
10099 haveselect=yes
10100else
10101 haveselect=no
10102fi
10103done
10104
10105 if test "x$haveselect" = "xyes" ; then
10106 SELECT_TYPE="select"
10107 fi
10108fi
10109
10110if test ! "x$use_poll" = "xno"; then
10111
10112for ac_func in poll
10113do
10114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10115echo "$as_me:$LINENO: checking for $ac_func" >&5
10116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10117if eval "test \"\${$as_ac_var+set}\" = set"; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119else
10120 cat >conftest.$ac_ext <<_ACEOF
10121/* confdefs.h. */
10122_ACEOF
10123cat confdefs.h >>conftest.$ac_ext
10124cat >>conftest.$ac_ext <<_ACEOF
10125/* end confdefs.h. */
10126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10128#define $ac_func innocuous_$ac_func
10129
10130/* System header to define __stub macros and hopefully few prototypes,
10131 which can conflict with char $ac_func (); below.
10132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10133 <limits.h> exists even on freestanding compilers. */
10134
10135#ifdef __STDC__
10136# include <limits.h>
10137#else
10138# include <assert.h>
10139#endif
10140
10141#undef $ac_func
10142
10143/* Override any gcc2 internal prototype to avoid an error. */
10144#ifdef __cplusplus
10145extern "C"
10146{
10147#endif
10148/* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150char $ac_func ();
10151/* The GNU C library defines this for functions which it implements
10152 to always fail with ENOSYS. Some functions are actually named
10153 something starting with __ and the normal name is an alias. */
10154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10155choke me
10156#else
10157char (*f) () = $ac_func;
10158#endif
10159#ifdef __cplusplus
10160}
10161#endif
10162
10163int
10164main ()
10165{
10166return f != $ac_func;
10167 ;
10168 return 0;
10169}
10170_ACEOF
10171rm -f conftest.$ac_objext conftest$ac_exeext
10172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } &&
10180 { ac_try='test -z "$ac_c_werror_flag"
10181 || test ! -s conftest.err'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10184 ac_status=$?
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; } &&
10187 { ac_try='test -s conftest$ac_exeext'
10188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189 (eval $ac_try) 2>&5
10190 ac_status=$?
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); }; }; then
10193 eval "$as_ac_var=yes"
10194else
10195 echo "$as_me: failed program was:" >&5
10196sed 's/^/| /' conftest.$ac_ext >&5
10197
10198eval "$as_ac_var=no"
10199fi
10200rm -f conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202fi
10203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10205if test `eval echo '${'$as_ac_var'}'` = yes; then
10206 cat >>confdefs.h <<_ACEOF
10207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10208_ACEOF
10209 havepoll=yes
10210else
10211 havepoll=no
10212fi
10213done
10214
10215 if test "x$havepoll" = "xyes" ; then
10216 SELECT_TYPE="poll"
10217 fi
10218fi
10219
10220if test ! "x$use_devpoll" = "xno"; then
10221 echo "$as_me:$LINENO: checking for /dev/poll" >&5
10222echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
10223 if test -c "/dev/poll"; then
10224 echo "$as_me:$LINENO: result: yes" >&5
10225echo "${ECHO_T}yes" >&6
10226
10227
10228for ac_header in devpoll.h sys/devpoll.h
10229do
10230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232 echo "$as_me:$LINENO: checking for $ac_header" >&5
10233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10234if eval "test \"\${$as_ac_Header+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236fi
10237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10239else
10240 # Is the header compilable?
10241echo "$as_me:$LINENO: checking $ac_header usability" >&5
10242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10243cat >conftest.$ac_ext <<_ACEOF
10244/* confdefs.h. */
10245_ACEOF
10246cat confdefs.h >>conftest.$ac_ext
10247cat >>conftest.$ac_ext <<_ACEOF
10248/* end confdefs.h. */
10249$ac_includes_default
10250#include <$ac_header>
10251_ACEOF
10252rm -f conftest.$ac_objext
10253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } &&
10261 { ac_try='test -z "$ac_c_werror_flag"
10262 || test ! -s conftest.err'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; } &&
10268 { ac_try='test -s conftest.$ac_objext'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_header_compiler=yes
10275else
10276 echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279ac_header_compiler=no
10280fi
10281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10283echo "${ECHO_T}$ac_header_compiler" >&6
10284
10285# Is the header present?
10286echo "$as_me:$LINENO: checking $ac_header presence" >&5
10287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10288cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
10294#include <$ac_header>
10295_ACEOF
10296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } >/dev/null; then
10304 if test -s conftest.err; then
10305 ac_cpp_err=$ac_c_preproc_warn_flag
10306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10307 else
10308 ac_cpp_err=
10309 fi
10310else
10311 ac_cpp_err=yes
10312fi
10313if test -z "$ac_cpp_err"; then
10314 ac_header_preproc=yes
10315else
10316 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_header_preproc=no
10320fi
10321rm -f conftest.err conftest.$ac_ext
10322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10323echo "${ECHO_T}$ac_header_preproc" >&6
10324
10325# So? What about this header?
10326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10327 yes:no: )
10328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10332 ac_header_preproc=yes
10333 ;;
10334 no:yes:* )
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10347 (
10348 cat <<\_ASBOX
10349## ------------------------------------ ##
10350## Report this to the charybdis lists. ##
10351## ------------------------------------ ##
10352_ASBOX
10353 ) |
10354 sed "s/^/$as_me: WARNING: /" >&2
10355 ;;
10356esac
10357echo "$as_me:$LINENO: checking for $ac_header" >&5
10358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10359if eval "test \"\${$as_ac_Header+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 eval "$as_ac_Header=\$ac_header_preproc"
10363fi
10364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10366
10367fi
10368if test `eval echo '${'$as_ac_Header'}'` = yes; then
10369 cat >>confdefs.h <<_ACEOF
10370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10371_ACEOF
10372
10373fi
10374
10375done
10376
10377 SELECT_TYPE="devpoll"
10378 else
10379 echo "$as_me:$LINENO: result: no" >&5
10380echo "${ECHO_T}no" >&6
10381 fi
10382fi
10383
10384if test ! "x$use_kqueue" = "xno"; then
10385
10386for ac_func in kevent
10387do
10388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389echo "$as_me:$LINENO: checking for $ac_func" >&5
10390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10391if eval "test \"\${$as_ac_var+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393else
10394 cat >conftest.$ac_ext <<_ACEOF
10395/* confdefs.h. */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h. */
10400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10402#define $ac_func innocuous_$ac_func
10403
10404/* System header to define __stub macros and hopefully few prototypes,
10405 which can conflict with char $ac_func (); below.
10406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10407 <limits.h> exists even on freestanding compilers. */
10408
10409#ifdef __STDC__
10410# include <limits.h>
10411#else
10412# include <assert.h>
10413#endif
10414
10415#undef $ac_func
10416
10417/* Override any gcc2 internal prototype to avoid an error. */
10418#ifdef __cplusplus
10419extern "C"
10420{
10421#endif
10422/* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10424char $ac_func ();
10425/* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10429choke me
10430#else
10431char (*f) () = $ac_func;
10432#endif
10433#ifdef __cplusplus
10434}
10435#endif
10436
10437int
10438main ()
10439{
10440return f != $ac_func;
10441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext conftest$ac_exeext
10446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest$ac_exeext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 eval "$as_ac_var=yes"
10468else
10469 echo "$as_me: failed program was:" >&5
10470sed 's/^/| /' conftest.$ac_ext >&5
10471
10472eval "$as_ac_var=no"
10473fi
10474rm -f conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476fi
10477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10479if test `eval echo '${'$as_ac_var'}'` = yes; then
10480 cat >>confdefs.h <<_ACEOF
10481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10482_ACEOF
10483 havekqueue=yes
10484else
10485 havekqueue=no
10486fi
10487done
10488
10489 if test "x$havekqueue" = "xyes" ; then
10490 SELECT_TYPE="kqueue"
10491 fi
10492fi
10493
10494if test ! "x$use_epoll" = "xno"; then
10495
10496for ac_func in epoll_ctl
10497do
10498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10499echo "$as_me:$LINENO: checking for $ac_func" >&5
10500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10501if eval "test \"\${$as_ac_var+set}\" = set"; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503else
10504 cat >conftest.$ac_ext <<_ACEOF
10505/* confdefs.h. */
10506_ACEOF
10507cat confdefs.h >>conftest.$ac_ext
10508cat >>conftest.$ac_ext <<_ACEOF
10509/* end confdefs.h. */
10510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10512#define $ac_func innocuous_$ac_func
10513
10514/* System header to define __stub macros and hopefully few prototypes,
10515 which can conflict with char $ac_func (); below.
10516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10517 <limits.h> exists even on freestanding compilers. */
10518
10519#ifdef __STDC__
10520# include <limits.h>
10521#else
10522# include <assert.h>
10523#endif
10524
10525#undef $ac_func
10526
10527/* Override any gcc2 internal prototype to avoid an error. */
10528#ifdef __cplusplus
10529extern "C"
10530{
10531#endif
10532/* We use char because int might match the return type of a gcc2
10533 builtin and then its argument prototype would still apply. */
10534char $ac_func ();
10535/* The GNU C library defines this for functions which it implements
10536 to always fail with ENOSYS. Some functions are actually named
10537 something starting with __ and the normal name is an alias. */
10538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10539choke me
10540#else
10541char (*f) () = $ac_func;
10542#endif
10543#ifdef __cplusplus
10544}
10545#endif
10546
10547int
10548main ()
10549{
10550return f != $ac_func;
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext conftest$ac_exeext
10556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 eval "$as_ac_var=yes"
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
10582eval "$as_ac_var=no"
10583fi
10584rm -f conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586fi
10587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10589if test `eval echo '${'$as_ac_var'}'` = yes; then
10590 cat >>confdefs.h <<_ACEOF
10591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10592_ACEOF
10593 haveepoll=yes
10594else
10595 haveepoll=no
10596fi
10597done
10598
10599 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10600 if test "x$haveepoll" = "xyes" ; then
10601 echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10602echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6
10603 if test "$cross_compiling" = yes; then
10604 echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6
10606else
10607 cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
10613#include <stdint.h>
10614#include <sys/param.h>
10615#include <sys/types.h>
10616#include <sys/epoll.h>
10617#include <sys/syscall.h>
10618#include <unistd.h>
10619
10620int
10621main(int argc, char **argv)
10622{
10623 int epfd;
10624
10625 epfd = epoll_create(256);
10626 exit (epfd == -1 ? 1 : 0);
10627}
10628_ACEOF
10629rm -f conftest$ac_exeext
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 echo "$as_me:$LINENO: result: yes" >&5
10641echo "${ECHO_T}yes" >&6
10642
10643cat >>confdefs.h <<\_ACEOF
10644#define HAVE_EPOLL 1
10645_ACEOF
10646
10647 SELECT_TYPE="epoll"
10648else
10649 echo "$as_me: program exited with status $ac_status" >&5
10650echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653( exit $ac_status )
10654echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656fi
10657rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10658fi
10659 fi
10660 fi
10661
10662haveepollsyscall=no
10663
10664if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10665 if test "x$haveepoll" = "xno" ; then
10666 echo "$as_me:$LINENO: checking for epoll system call" >&5
10667echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
10668 if test "$cross_compiling" = yes; then
10669 echo "$as_me:$LINENO: result: no" >&5
10670echo "${ECHO_T}no" >&6
10671else
10672 cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678#include <stdint.h>
10679#include <sys/param.h>
10680#include <sys/types.h>
10681#include <sys/epoll.h>
10682#include <sys/syscall.h>
10683#include <unistd.h>
10684
10685int
10686epoll_create(int size)
10687{
10688 return (syscall(__NR_epoll_create, size));
10689}
10690
10691int
10692main(int argc, char **argv)
10693{
10694 int epfd;
10695
10696 epfd = epoll_create(256);
10697 exit (epfd == -1 ? 1 : 0);
10698}
10699_ACEOF
10700rm -f conftest$ac_exeext
10701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10702 (eval $ac_link) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 echo "$as_me:$LINENO: result: yes" >&5
10712echo "${ECHO_T}yes" >&6
10713
10714cat >>confdefs.h <<\_ACEOF
10715#define HAVE_EPOLL 1
10716_ACEOF
10717
10718 SELECT_TYPE="epoll"
10719else
10720 echo "$as_me: program exited with status $ac_status" >&5
10721echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724( exit $ac_status )
10725echo "$as_me:$LINENO: result: no" >&5
10726echo "${ECHO_T}no" >&6
10727fi
10728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10729fi
10730 fi
10731fi
10732
10733fi
10734
10735fi
10736
10737if test -z "$SELECT_TYPE"; then
10738 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10739echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10740 { (exit 1); exit 1; }; }
10741fi
10742
10743echo "Using $SELECT_TYPE for select loop."
10744
10745
10746cat >>confdefs.h <<_ACEOF
10747#define SELECT_TYPE "$SELECT_TYPE"
10748_ACEOF
10749
10750
10751
10752
10753
10754# Check whether --enable-assert or --disable-assert was given.
10755if test "${enable_assert+set}" = set; then
10756 enableval="$enable_assert"
10757 assert=$enableval
10758else
10759 assert=no
10760fi;
10761
10762if test "$assert" = no; then
10763
10764cat >>confdefs.h <<\_ACEOF
10765#define NDEBUG 1
10766_ACEOF
10767
10768elif test "$assert" = soft; then
10769
10770cat >>confdefs.h <<\_ACEOF
10771#define SOFT_ASSERT 1
10772_ACEOF
10773
10774
10775cat >>confdefs.h <<\_ACEOF
10776#define NDEBUG 1
10777_ACEOF
10778
10779elif test "$assert" = yes; then
10780 assert = "hard";
10781fi
10782
10783echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10784echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6
10785# Check whether --enable-iodebug or --disable-iodebug was given.
10786if test "${enable_iodebug+set}" = set; then
10787 enableval="$enable_iodebug"
10788 iodebug=$enableval
10789else
10790 iodebug=no
10791fi;
10792
10793if test "$iodebug" = yes; then
10794
10795cat >>confdefs.h <<\_ACEOF
10796#define USE_IODEBUG_HOOKS 1
10797_ACEOF
10798
10799 echo "$as_me:$LINENO: result: yes" >&5
10800echo "${ECHO_T}yes" >&6
10801else
10802 echo "$as_me:$LINENO: result: no" >&5
10803echo "${ECHO_T}no" >&6
10804fi
10805
10806
10807echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10808echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
10809# Check whether --enable-profile or --disable-profile was given.
10810if test "${enable_profile+set}" = set; then
10811 enableval="$enable_profile"
10812 profile=$enableval
10813else
10814 profile=no
10815fi;
10816
10817if test "$profile" = yes; then
10818 if test "$ac_cv_c_compiler_gnu" = yes; then
10819 IRC_CFLAGS="$IRC_CFLAGS -pg"
10820 echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10821echo "${ECHO_T}yes, adding -pg" >&6
10822
10823cat >>confdefs.h <<\_ACEOF
10824#define CHARYBDIS_PROFILE 1
10825_ACEOF
10826
10827 else
10828 echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10829echo "${ECHO_T}no, profile builds only work with gcc" >&6
10830 fi
10831else
10832 echo "$as_me:$LINENO: result: no" >&5
10833echo "${ECHO_T}no" >&6
10834fi
10835
10836# Check whether --enable-balloc or --disable-balloc was given.
10837if test "${enable_balloc+set}" = set; then
10838 enableval="$enable_balloc"
10839 balloc=$enableval
10840else
10841 balloc=yes
10842fi;
10843
10844if test "$balloc" = no; then
10845
10846cat >>confdefs.h <<\_ACEOF
10847#define NOBALLOC 1
10848_ACEOF
10849
10850fi
10851
10852# Check whether --enable-ricer-hashing or --disable-ricer-hashing was given.
10853if test "${enable_ricer_hashing+set}" = set; then
10854 enableval="$enable_ricer_hashing"
10855 ricer_hashing=$enableval
10856else
10857 ricer_hashing=no
10858fi;
10859
10860FNVHASH_S=""
10861
10862if test "$ricer_hashing" = "yes"; then
10863
10864cat >>confdefs.h <<\_ACEOF
10865#define RICER_HASHING 1
10866_ACEOF
10867
10868 FNVHASH_S="fnvhash.s"
10869fi
10870
10871
10872
10873# Check whether --enable-small-net or --disable-small-net was given.
10874if test "${enable_small_net+set}" = set; then
10875 enableval="$enable_small_net"
10876 small_net=$enableval
10877else
10878 small_net=no
10879fi;
10880
10881if test "$small_net" = yes; then
10882
10883cat >>confdefs.h <<\_ACEOF
10884#define NICKNAMEHISTORYLENGTH 1500
10885_ACEOF
10886
10887
10888cat >>confdefs.h <<\_ACEOF
10889#define CHANNEL_HEAP_SIZE 256
10890_ACEOF
10891
10892
10893cat >>confdefs.h <<\_ACEOF
10894#define BAN_HEAP_SIZE 128
10895_ACEOF
10896
10897
10898cat >>confdefs.h <<\_ACEOF
10899#define CLIENT_HEAP_SIZE 256
10900_ACEOF
10901
10902
10903cat >>confdefs.h <<\_ACEOF
10904#define LCLIENT_HEAP_SIZE 128
10905_ACEOF
10906
10907
10908cat >>confdefs.h <<\_ACEOF
10909#define PCLIENT_HEAP_SIZE 32
10910_ACEOF
10911
10912
10913cat >>confdefs.h <<\_ACEOF
10914#define USER_HEAP_SIZE 128
10915_ACEOF
10916
10917
10918cat >>confdefs.h <<\_ACEOF
10919#define DNODE_HEAP_SIZE 256
10920_ACEOF
10921
10922
10923cat >>confdefs.h <<\_ACEOF
10924#define TOPIC_HEAP_SIZE 256
10925_ACEOF
10926
10927
10928cat >>confdefs.h <<\_ACEOF
10929#define LINEBUF_HEAP_SIZE 128
10930_ACEOF
10931
10932
10933cat >>confdefs.h <<\_ACEOF
10934#define MEMBER_HEAP_SIZE 256
10935_ACEOF
10936
10937
10938cat >>confdefs.h <<\_ACEOF
10939#define ND_HEAP_SIZE 128
10940_ACEOF
10941
10942
10943cat >>confdefs.h <<\_ACEOF
10944#define CONFITEM_HEAP_SIZE 128
10945_ACEOF
10946
10947
10948cat >>confdefs.h <<\_ACEOF
10949#define MONITOR_HEAP_SIZE 128
10950_ACEOF
10951
10952else
10953
10954cat >>confdefs.h <<\_ACEOF
10955#define NICKNAMEHISTORYLENGTH 15000
10956_ACEOF
10957
10958
10959cat >>confdefs.h <<\_ACEOF
10960#define CHANNEL_HEAP_SIZE 8192
10961_ACEOF
10962
10963
10964cat >>confdefs.h <<\_ACEOF
10965#define BAN_HEAP_SIZE 4096
10966_ACEOF
10967
10968
10969cat >>confdefs.h <<\_ACEOF
10970#define CLIENT_HEAP_SIZE 8192
10971_ACEOF
10972
10973
10974cat >>confdefs.h <<\_ACEOF
10975#define LCLIENT_HEAP_SIZE 1024
10976_ACEOF
10977
10978
10979cat >>confdefs.h <<\_ACEOF
10980#define PCLIENT_HEAP_SIZE 256
10981_ACEOF
10982
10983
10984cat >>confdefs.h <<\_ACEOF
10985#define USER_HEAP_SIZE 8192
10986_ACEOF
10987
10988
10989cat >>confdefs.h <<\_ACEOF
10990#define DNODE_HEAP_SIZE 8192
10991_ACEOF
10992
10993
10994cat >>confdefs.h <<\_ACEOF
10995#define TOPIC_HEAP_SIZE 4096
10996_ACEOF
10997
10998
10999cat >>confdefs.h <<\_ACEOF
11000#define LINEBUF_HEAP_SIZE 2048
11001_ACEOF
11002
11003
11004cat >>confdefs.h <<\_ACEOF
11005#define MEMBER_HEAP_SIZE 32768
11006_ACEOF
11007
11008
11009cat >>confdefs.h <<\_ACEOF
11010#define ND_HEAP_SIZE 512
11011_ACEOF
11012
11013
11014cat >>confdefs.h <<\_ACEOF
11015#define CONFITEM_HEAP_SIZE 256
11016_ACEOF
11017
11018
11019cat >>confdefs.h <<\_ACEOF
11020#define MONITOR_HEAP_SIZE 1024
11021_ACEOF
11022
11023fi
11024
11025
11026# Check whether --with-nicklen or --without-nicklen was given.
11027if test "${with_nicklen+set}" = set; then
11028 withval="$with_nicklen"
11029
11030 if test $withval -ge 50; then
11031 NICKLEN=50
11032 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
11033echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11034 else
11035 NICKLEN="$withval"
11036 fi
11037
11038else
11039 NICKLEN=15
11040fi;
11041
11042
11043# Check whether --with-topiclen or --without-topiclen was given.
11044if test "${with_topiclen+set}" = set; then
11045 withval="$with_topiclen"
11046
11047 if test $withval -ge 390; then
11048 TOPICLEN=390
11049 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11050echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11051 else
11052 TOPICLEN=$withval
11053 fi
11054
11055else
11056 TOPICLEN=390
11057fi;
11058
11059
11060# Check whether --with-maxclients or --without-maxclients was given.
11061if test "${with_maxclients+set}" = set; then
11062 withval="$with_maxclients"
11063 MAX_CLIENTS="$withval"
11064else
11065 MAX_CLIENTS=3000
11066fi;
11067
11068
11069if test "$MAX_CLIENTS" = yes; then
11070 MAX_CLIENTS=3000
11071fi
11072
11073if test $MAX_CLIENTS -gt 65536; then
11074 MAX_CLIENTS=65536
11075 { echo "$as_me:$LINENO: WARNING: Max connections cannot be larger than 65536!" >&5
11076echo "$as_me: WARNING: Max connections cannot be larger than 65536!" >&2;}
11077fi
11078
11079
11080cat >>confdefs.h <<_ACEOF
11081#define TOPICLEN ${TOPICLEN}
11082_ACEOF
11083
11084
11085cat >>confdefs.h <<_ACEOF
11086#define NICKLEN (${NICKLEN}+1)
11087_ACEOF
11088
11089
11090cat >>confdefs.h <<_ACEOF
11091#define MAX_CLIENTS ${MAX_CLIENTS}
11092_ACEOF
11093
11094
11095# Check whether --enable-shared-modules or --disable-shared-modules was given.
11096if test "${enable_shared_modules+set}" = set; then
11097 enableval="$enable_shared_modules"
11098 shared_modules=$enableval
11099else
11100 shared_modules="yes"
11101fi;
11102
11103if test "$shared_modules" = yes; then
11104
11105 if test "$CYGWIN" = yes; then
11106 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11107echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11108 shared_modules="no"
11109 fi
11110
11111 if test "$CC" = tcc -a "$TenDRA" = "no"; then
11112 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11113echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11114 shared_modules="no"
11115 fi
11116fi
11117
11118if test "$shared_modules" = yes; then
11119 DYNLINK_C=dynlink.c
11120
11121for ac_header in dlfcn.h
11122do
11123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11124if eval "test \"\${$as_ac_Header+set}\" = set"; then
11125 echo "$as_me:$LINENO: checking for $ac_header" >&5
11126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11127if eval "test \"\${$as_ac_Header+set}\" = set"; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129fi
11130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11132else
11133 # Is the header compilable?
11134echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11136cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142$ac_includes_default
11143#include <$ac_header>
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag"
11155 || test ! -s conftest.err'
11156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157 (eval $ac_try) 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; } &&
11161 { ac_try='test -s conftest.$ac_objext'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; }; then
11167 ac_header_compiler=yes
11168else
11169 echo "$as_me: failed program was:" >&5
11170sed 's/^/| /' conftest.$ac_ext >&5
11171
11172ac_header_compiler=no
11173fi
11174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11176echo "${ECHO_T}$ac_header_compiler" >&6
11177
11178# Is the header present?
11179echo "$as_me:$LINENO: checking $ac_header presence" >&5
11180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11181cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
11187#include <$ac_header>
11188_ACEOF
11189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11191 ac_status=$?
11192 grep -v '^ *+' conftest.er1 >conftest.err
11193 rm -f conftest.er1
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } >/dev/null; then
11197 if test -s conftest.err; then
11198 ac_cpp_err=$ac_c_preproc_warn_flag
11199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11200 else
11201 ac_cpp_err=
11202 fi
11203else
11204 ac_cpp_err=yes
11205fi
11206if test -z "$ac_cpp_err"; then
11207 ac_header_preproc=yes
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_header_preproc=no
11213fi
11214rm -f conftest.err conftest.$ac_ext
11215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11216echo "${ECHO_T}$ac_header_preproc" >&6
11217
11218# So? What about this header?
11219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11220 yes:no: )
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11225 ac_header_preproc=yes
11226 ;;
11227 no:yes:* )
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11240 (
11241 cat <<\_ASBOX
11242## ------------------------------------ ##
11243## Report this to the charybdis lists. ##
11244## ------------------------------------ ##
11245_ASBOX
11246 ) |
11247 sed "s/^/$as_me: WARNING: /" >&2
11248 ;;
11249esac
11250echo "$as_me:$LINENO: checking for $ac_header" >&5
11251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11252if eval "test \"\${$as_ac_Header+set}\" = set"; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255 eval "$as_ac_Header=\$ac_header_preproc"
11256fi
11257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11259
11260fi
11261if test `eval echo '${'$as_ac_Header'}'` = yes; then
11262 cat >>confdefs.h <<_ACEOF
11263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11264_ACEOF
11265
11266fi
11267
11268done
11269
11270 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11271echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
11272if test "${ac_cv_search_shl_load+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 ac_func_search_save_LIBS=$LIBS
11276ac_cv_search_shl_load=no
11277cat >conftest.$ac_ext <<_ACEOF
11278/* confdefs.h. */
11279_ACEOF
11280cat confdefs.h >>conftest.$ac_ext
11281cat >>conftest.$ac_ext <<_ACEOF
11282/* end confdefs.h. */
11283
11284/* Override any gcc2 internal prototype to avoid an error. */
11285#ifdef __cplusplus
11286extern "C"
11287#endif
11288/* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290char shl_load ();
11291int
11292main ()
11293{
11294shl_load ();
11295 ;
11296 return 0;
11297}
11298_ACEOF
11299rm -f conftest.$ac_objext conftest$ac_exeext
11300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -z "$ac_c_werror_flag"
11309 || test ! -s conftest.err'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest$ac_exeext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 ac_cv_search_shl_load="none required"
11322else
11323 echo "$as_me: failed program was:" >&5
11324sed 's/^/| /' conftest.$ac_ext >&5
11325
11326fi
11327rm -f conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329if test "$ac_cv_search_shl_load" = no; then
11330 for ac_lib in dld; do
11331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11332 cat >conftest.$ac_ext <<_ACEOF
11333/* confdefs.h. */
11334_ACEOF
11335cat confdefs.h >>conftest.$ac_ext
11336cat >>conftest.$ac_ext <<_ACEOF
11337/* end confdefs.h. */
11338
11339/* Override any gcc2 internal prototype to avoid an error. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343/* We use char because int might match the return type of a gcc2
11344 builtin and then its argument prototype would still apply. */
11345char shl_load ();
11346int
11347main ()
11348{
11349shl_load ();
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354rm -f conftest.$ac_objext conftest$ac_exeext
11355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11356 (eval $ac_link) 2>conftest.er1
11357 ac_status=$?
11358 grep -v '^ *+' conftest.er1 >conftest.err
11359 rm -f conftest.er1
11360 cat conftest.err >&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); } &&
11363 { ac_try='test -z "$ac_c_werror_flag"
11364 || test ! -s conftest.err'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; } &&
11370 { ac_try='test -s conftest$ac_exeext'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
11376 ac_cv_search_shl_load="-l$ac_lib"
11377break
11378else
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382fi
11383rm -f conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385 done
11386fi
11387LIBS=$ac_func_search_save_LIBS
11388fi
11389echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11390echo "${ECHO_T}$ac_cv_search_shl_load" >&6
11391if test "$ac_cv_search_shl_load" != no; then
11392 test "$ac_cv_search_shl_load" = "none required" || LIBS="$ac_cv_search_shl_load $LIBS"
11393
11394
11395cat >>confdefs.h <<\_ACEOF
11396#define HAVE_SHL_LOAD 1
11397_ACEOF
11398
11399 SUFFIX=".sl"
11400 MOD_TARGET=hpux_shared
11401 SEDOBJ="s/\.o/.sl/g"
11402
11403else
11404
11405 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11406echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
11407if test "${ac_cv_search_dlopen+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409else
11410 ac_func_search_save_LIBS=$LIBS
11411ac_cv_search_dlopen=no
11412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418
11419/* Override any gcc2 internal prototype to avoid an error. */
11420#ifdef __cplusplus
11421extern "C"
11422#endif
11423/* We use char because int might match the return type of a gcc2
11424 builtin and then its argument prototype would still apply. */
11425char dlopen ();
11426int
11427main ()
11428{
11429dlopen ();
11430 ;
11431 return 0;
11432}
11433_ACEOF
11434rm -f conftest.$ac_objext conftest$ac_exeext
11435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11436 (eval $ac_link) 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag"
11444 || test ! -s conftest.err'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest$ac_exeext'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_search_dlopen="none required"
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461fi
11462rm -f conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464if test "$ac_cv_search_dlopen" = no; then
11465 for ac_lib in dl c_r; do
11466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11467 cat >conftest.$ac_ext <<_ACEOF
11468/* confdefs.h. */
11469_ACEOF
11470cat confdefs.h >>conftest.$ac_ext
11471cat >>conftest.$ac_ext <<_ACEOF
11472/* end confdefs.h. */
11473
11474/* Override any gcc2 internal prototype to avoid an error. */
11475#ifdef __cplusplus
11476extern "C"
11477#endif
11478/* We use char because int might match the return type of a gcc2
11479 builtin and then its argument prototype would still apply. */
11480char dlopen ();
11481int
11482main ()
11483{
11484dlopen ();
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext conftest$ac_exeext
11490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11491 (eval $ac_link) 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag"
11499 || test ! -s conftest.err'
11500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11501 (eval $ac_try) 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest$ac_exeext'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; }; then
11511 ac_cv_search_dlopen="-l$ac_lib"
11512break
11513else
11514 echo "$as_me: failed program was:" >&5
11515sed 's/^/| /' conftest.$ac_ext >&5
11516
11517fi
11518rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 done
11521fi
11522LIBS=$ac_func_search_save_LIBS
11523fi
11524echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11525echo "${ECHO_T}$ac_cv_search_dlopen" >&6
11526if test "$ac_cv_search_dlopen" != no; then
11527 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
11528
11529
11530cat >>confdefs.h <<\_ACEOF
11531#define HAVE_DLOPEN 1
11532_ACEOF
11533
11534 SUFFIX=".so"
11535 MOD_TARGET=shared_modules
11536 SEDOBJ="s/\.o/.so/g"
11537 if test "$AppleGCC" = yes; then
11538
11539for ac_header in mach-o/dyld.h
11540do
11541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11542if eval "test \"\${$as_ac_Header+set}\" = set"; then
11543 echo "$as_me:$LINENO: checking for $ac_header" >&5
11544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11545if eval "test \"\${$as_ac_Header+set}\" = set"; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547fi
11548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11550else
11551 # Is the header compilable?
11552echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11554cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560$ac_includes_default
11561#include <$ac_header>
11562_ACEOF
11563rm -f conftest.$ac_objext
11564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11565 (eval $ac_compile) 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -z "$ac_c_werror_flag"
11573 || test ! -s conftest.err'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; } &&
11579 { ac_try='test -s conftest.$ac_objext'
11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581 (eval $ac_try) 2>&5
11582 ac_status=$?
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); }; }; then
11585 ac_header_compiler=yes
11586else
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590ac_header_compiler=no
11591fi
11592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11594echo "${ECHO_T}$ac_header_compiler" >&6
11595
11596# Is the header present?
11597echo "$as_me:$LINENO: checking $ac_header presence" >&5
11598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11599cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
11605#include <$ac_header>
11606_ACEOF
11607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } >/dev/null; then
11615 if test -s conftest.err; then
11616 ac_cpp_err=$ac_c_preproc_warn_flag
11617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11618 else
11619 ac_cpp_err=
11620 fi
11621else
11622 ac_cpp_err=yes
11623fi
11624if test -z "$ac_cpp_err"; then
11625 ac_header_preproc=yes
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_header_preproc=no
11631fi
11632rm -f conftest.err conftest.$ac_ext
11633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11634echo "${ECHO_T}$ac_header_preproc" >&6
11635
11636# So? What about this header?
11637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11638 yes:no: )
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11643 ac_header_preproc=yes
11644 ;;
11645 no:yes:* )
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11653echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11658 (
11659 cat <<\_ASBOX
11660## ------------------------------------ ##
11661## Report this to the charybdis lists. ##
11662## ------------------------------------ ##
11663_ASBOX
11664 ) |
11665 sed "s/^/$as_me: WARNING: /" >&2
11666 ;;
11667esac
11668echo "$as_me:$LINENO: checking for $ac_header" >&5
11669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11670if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673 eval "$as_ac_Header=\$ac_header_preproc"
11674fi
11675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11677
11678fi
11679if test `eval echo '${'$as_ac_Header'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682_ACEOF
11683
11684fi
11685
11686done
11687
11688 fi
11689 echo "$as_me:$LINENO: checking for dlsym" >&5
11690echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
11691if test "${ac_cv_func_dlsym+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693else
11694 cat >conftest.$ac_ext <<_ACEOF
11695/* confdefs.h. */
11696_ACEOF
11697cat confdefs.h >>conftest.$ac_ext
11698cat >>conftest.$ac_ext <<_ACEOF
11699/* end confdefs.h. */
11700/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11702#define dlsym innocuous_dlsym
11703
11704/* System header to define __stub macros and hopefully few prototypes,
11705 which can conflict with char dlsym (); below.
11706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11707 <limits.h> exists even on freestanding compilers. */
11708
11709#ifdef __STDC__
11710# include <limits.h>
11711#else
11712# include <assert.h>
11713#endif
11714
11715#undef dlsym
11716
11717/* Override any gcc2 internal prototype to avoid an error. */
11718#ifdef __cplusplus
11719extern "C"
11720{
11721#endif
11722/* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11724char dlsym ();
11725/* The GNU C library defines this for functions which it implements
11726 to always fail with ENOSYS. Some functions are actually named
11727 something starting with __ and the normal name is an alias. */
11728#if defined (__stub_dlsym) || defined (__stub___dlsym)
11729choke me
11730#else
11731char (*f) () = dlsym;
11732#endif
11733#ifdef __cplusplus
11734}
11735#endif
11736
11737int
11738main ()
11739{
11740return f != dlsym;
11741 ;
11742 return 0;
11743}
11744_ACEOF
11745rm -f conftest.$ac_objext conftest$ac_exeext
11746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11747 (eval $ac_link) 2>conftest.er1
11748 ac_status=$?
11749 grep -v '^ *+' conftest.er1 >conftest.err
11750 rm -f conftest.er1
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } &&
11754 { ac_try='test -z "$ac_c_werror_flag"
11755 || test ! -s conftest.err'
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; } &&
11761 { ac_try='test -s conftest$ac_exeext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_cv_func_dlsym=yes
11768else
11769 echo "$as_me: failed program was:" >&5
11770sed 's/^/| /' conftest.$ac_ext >&5
11771
11772ac_cv_func_dlsym=no
11773fi
11774rm -f conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776fi
11777echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11778echo "${ECHO_T}$ac_cv_func_dlsym" >&6
11779if test $ac_cv_func_dlsym = yes; then
11780 :
11781else
11782
11783 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11784echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11785 shared_modules=no
11786
11787fi
11788
11789
11790for ac_func in dlfunc
11791do
11792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793echo "$as_me:$LINENO: checking for $ac_func" >&5
11794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11795if eval "test \"\${$as_ac_var+set}\" = set"; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11806#define $ac_func innocuous_$ac_func
11807
11808/* System header to define __stub macros and hopefully few prototypes,
11809 which can conflict with char $ac_func (); below.
11810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 <limits.h> exists even on freestanding compilers. */
11812
11813#ifdef __STDC__
11814# include <limits.h>
11815#else
11816# include <assert.h>
11817#endif
11818
11819#undef $ac_func
11820
11821/* Override any gcc2 internal prototype to avoid an error. */
11822#ifdef __cplusplus
11823extern "C"
11824{
11825#endif
11826/* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11828char $ac_func ();
11829/* The GNU C library defines this for functions which it implements
11830 to always fail with ENOSYS. Some functions are actually named
11831 something starting with __ and the normal name is an alias. */
11832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11833choke me
11834#else
11835char (*f) () = $ac_func;
11836#endif
11837#ifdef __cplusplus
11838}
11839#endif
11840
11841int
11842main ()
11843{
11844return f != $ac_func;
11845 ;
11846 return 0;
11847}
11848_ACEOF
11849rm -f conftest.$ac_objext conftest$ac_exeext
11850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11851 (eval $ac_link) 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } &&
11858 { ac_try='test -z "$ac_c_werror_flag"
11859 || test ! -s conftest.err'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11868 ac_status=$?
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 eval "$as_ac_var=yes"
11872else
11873 echo "$as_me: failed program was:" >&5
11874sed 's/^/| /' conftest.$ac_ext >&5
11875
11876eval "$as_ac_var=no"
11877fi
11878rm -f conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880fi
11881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11883if test `eval echo '${'$as_ac_var'}'` = yes; then
11884 cat >>confdefs.h <<_ACEOF
11885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11886_ACEOF
11887
11888fi
11889done
11890
11891
11892else
11893
11894 shared_modules=no
11895
11896fi
11897
11898
11899fi
11900
11901fi
11902
11903
11904cat >>confdefs.h <<_ACEOF
11905#define SHARED_SUFFIX "$SUFFIX"
11906_ACEOF
11907
11908
11909if test "$shared_modules" = yes; then
11910 # The GNU linker requires the -export-dynamic option to make
11911 # all symbols visible in the dynamic symbol table.
11912 hold_ldflags=$LDFLAGS
11913 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11914echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
11915 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922
11923int
11924main ()
11925{
11926int i;
11927 ;
11928 return 0;
11929}
11930_ACEOF
11931rm -f conftest.$ac_objext conftest$ac_exeext
11932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11933 (eval $ac_link) 2>conftest.er1
11934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag"
11941 || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 found=yes
11954else
11955 echo "$as_me: failed program was:" >&5
11956sed 's/^/| /' conftest.$ac_ext >&5
11957
11958found=no
11959fi
11960rm -f conftest.err conftest.$ac_objext \
11961 conftest$ac_exeext conftest.$ac_ext
11962 LDFLAGS=$hold_ldflags
11963
11964 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11965 found="no, IRIX ld uses -B,dynamic"
11966 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11967 fi
11968
11969 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11970 found="no, AIX ld uses -G -brtl"
11971 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11972 fi
11973
11974 echo "$as_me:$LINENO: result: $found" >&5
11975echo "${ECHO_T}$found" >&6
11976
11977 if test "$found" = yes; then
11978 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11979 fi
11980
11981 echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11982echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6
11983 if test "$SGS" = "yes"; then
11984 echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11985echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6
11986 PICFLAGS="-KPIC -DPIC -G"
11987 fi
11988
11989 if test "$AppleGCC" = "yes"; then
11990 echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11991echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6
11992 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11993 fi
11994 if test "$HPUX" = "yes" -a "$CC" != gcc; then
11995 echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11996echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6
11997 PICFLAGS="+z -r -q -n -c"
11998 echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11999echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6
12000
12001 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
12002 echo "$as_me:$LINENO: result: no" >&5
12003echo "${ECHO_T}no" >&6
12004 else
12005 echo "$as_me:$LINENO: result: yes" >&5
12006echo "${ECHO_T}yes" >&6
12007 PICFLAGS="$PICFLAGS +ESfic"
12008 fi
12009
12010 LDFLAGS="${LDFLAGS} -Wl,-E"
12011 fi
12012 if test "$Tru" = yes -a "$CC" != gcc; then
12013 echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
12014echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6
12015 PICFLAGS="-shared -expect_unresolved '*' "
12016 LDFLAGS="-call_shared"
12017 fi
12018 if test -z "$PICFLAGS"; then
12019 if test "$ac_cv_c_compiler_gnu" = "yes"; then
12020 echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
12021echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
12022 PICFLAGS="-fPIC -DPIC -shared"
12023 else
12024 echo "$as_me:$LINENO: result: no" >&5
12025echo "${ECHO_T}no" >&6
12026 shared_modules=no
12027 fi
12028 fi
12029fi
12030
12031# This must be down here, or it will mess up checks like the ones
12032# for -Wl,-export-dynamic
12033# -- jilles
12034# Check whether --enable-warnings or --disable-warnings was given.
12035if test "${enable_warnings+set}" = set; then
12036 enableval="$enable_warnings"
12037
12038IRC_CFLAGS="$IRC_CFLAGS -O0"
12039CFLAGS="$IRC_CFLAGS"
12040
12041
12042 echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
12043echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6
12044 if test "${GCC-no}" = yes
12045 then
12046 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048else
12049
12050 oldcflags="${CFLAGS-}"
12051 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
12052 cat >conftest.$ac_ext <<_ACEOF
12053/* confdefs.h. */
12054_ACEOF
12055cat confdefs.h >>conftest.$ac_ext
12056cat >>conftest.$ac_ext <<_ACEOF
12057/* end confdefs.h. */
12058
12059#include <string.h>
12060#include <stdio.h>
12061int main(void);
12062
12063int
12064main ()
12065{
12066
b1fc1658 12067 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12068
12069 ;
12070 return 0;
12071}
12072_ACEOF
12073rm -f conftest.$ac_objext
12074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12075 (eval $ac_compile) 2>conftest.er1
12076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag"
12083 || test ! -s conftest.err'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; } &&
12089 { ac_try='test -s conftest.$ac_objext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 charybdis_cv_c_gcc_w_all=yes
12096else
12097 echo "$as_me: failed program was:" >&5
12098sed 's/^/| /' conftest.$ac_ext >&5
12099
12100charybdis_cv_c_gcc_w_all=no
12101fi
12102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 CFLAGS="${oldcflags}"
12104fi
12105
12106 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
12107 CWARNS="${CWARNS}-Wall "
12108 echo "$as_me:$LINENO: result: ok" >&5
12109echo "${ECHO_T}ok" >&6
12110 else
12111 charybdis_cv_c_gcc_w_all=''
12112 echo "$as_me:$LINENO: result: no" >&5
12113echo "${ECHO_T}no" >&6
12114 fi
12115 else
12116 echo "$as_me:$LINENO: result: no" >&5
12117echo "${ECHO_T}no" >&6
12118 fi
12119
12120
12121 echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12122echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6
12123 if test "${GCC-no}" = yes
12124 then
12125 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128
12129 oldcflags="${CFLAGS-}"
12130 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12131 cat >conftest.$ac_ext <<_ACEOF
12132/* confdefs.h. */
12133_ACEOF
12134cat confdefs.h >>conftest.$ac_ext
12135cat >>conftest.$ac_ext <<_ACEOF
12136/* end confdefs.h. */
12137
12138#include <string.h>
12139#include <stdio.h>
12140int main(void);
12141
12142int
12143main ()
12144{
12145
b1fc1658 12146 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12147
12148 ;
12149 return 0;
12150}
12151_ACEOF
12152rm -f conftest.$ac_objext
12153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12154 (eval $ac_compile) 2>conftest.er1
12155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -z "$ac_c_werror_flag"
12162 || test ! -s conftest.err'
12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; } &&
12168 { ac_try='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 charybdis_cv_c_gcc_w_pointer_arith=yes
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179charybdis_cv_c_gcc_w_pointer_arith=no
12180fi
12181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12182 CFLAGS="${oldcflags}"
12183fi
12184
12185 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
12186 CWARNS="${CWARNS}-Wpointer-arith "
12187 echo "$as_me:$LINENO: result: ok" >&5
12188echo "${ECHO_T}ok" >&6
12189 else
12190 charybdis_cv_c_gcc_w_pointer_arith=''
12191 echo "$as_me:$LINENO: result: no" >&5
12192echo "${ECHO_T}no" >&6
12193 fi
12194 else
12195 echo "$as_me:$LINENO: result: no" >&5
12196echo "${ECHO_T}no" >&6
12197 fi
12198
12199
12200 echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12201echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6
12202 if test "${GCC-no}" = yes
12203 then
12204 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206else
12207
12208 oldcflags="${CFLAGS-}"
12209 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12210 cat >conftest.$ac_ext <<_ACEOF
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216
12217#include <string.h>
12218#include <stdio.h>
12219int main(void);
12220
12221int
12222main ()
12223{
12224
b1fc1658 12225 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12226
12227 ;
12228 return 0;
12229}
12230_ACEOF
12231rm -f conftest.$ac_objext
12232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12233 (eval $ac_compile) 2>conftest.er1
12234 ac_status=$?
12235 grep -v '^ *+' conftest.er1 >conftest.err
12236 rm -f conftest.er1
12237 cat conftest.err >&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try='test -z "$ac_c_werror_flag"
12241 || test ! -s conftest.err'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; } &&
12247 { ac_try='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12250 ac_status=$?
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 charybdis_cv_c_gcc_w_implicit=yes
12254else
12255 echo "$as_me: failed program was:" >&5
12256sed 's/^/| /' conftest.$ac_ext >&5
12257
12258charybdis_cv_c_gcc_w_implicit=no
12259fi
12260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12261 CFLAGS="${oldcflags}"
12262fi
12263
12264 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
12265 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
12266 echo "$as_me:$LINENO: result: ok" >&5
12267echo "${ECHO_T}ok" >&6
12268 else
12269 charybdis_cv_c_gcc_w_implicit=''
12270 echo "$as_me:$LINENO: result: no" >&5
12271echo "${ECHO_T}no" >&6
12272 fi
12273 else
12274 echo "$as_me:$LINENO: result: no" >&5
12275echo "${ECHO_T}no" >&6
12276 fi
12277
12278
12279 echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12280echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6
12281 if test "${GCC-no}" = yes
12282 then
12283 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285else
12286
12287 oldcflags="${CFLAGS-}"
12288 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12289 cat >conftest.$ac_ext <<_ACEOF
12290/* confdefs.h. */
12291_ACEOF
12292cat confdefs.h >>conftest.$ac_ext
12293cat >>conftest.$ac_ext <<_ACEOF
12294/* end confdefs.h. */
12295
12296#include <string.h>
12297#include <stdio.h>
12298int main(void);
12299
12300int
12301main ()
12302{
12303
b1fc1658 12304 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12305
12306 ;
12307 return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext
12311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312 (eval $ac_compile) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } &&
12319 { ac_try='test -z "$ac_c_werror_flag"
12320 || test ! -s conftest.err'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; } &&
12326 { ac_try='test -s conftest.$ac_objext'
12327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328 (eval $ac_try) 2>&5
12329 ac_status=$?
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); }; }; then
12332 charybdis_cv_c_gcc_w_cast_align=yes
12333else
12334 echo "$as_me: failed program was:" >&5
12335sed 's/^/| /' conftest.$ac_ext >&5
12336
12337charybdis_cv_c_gcc_w_cast_align=no
12338fi
12339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 CFLAGS="${oldcflags}"
12341fi
12342
12343 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
12344 CWARNS="${CWARNS}-Wcast-align "
12345 echo "$as_me:$LINENO: result: ok" >&5
12346echo "${ECHO_T}ok" >&6
12347 else
12348 charybdis_cv_c_gcc_w_cast_align=''
12349 echo "$as_me:$LINENO: result: no" >&5
12350echo "${ECHO_T}no" >&6
12351 fi
12352 else
12353 echo "$as_me:$LINENO: result: no" >&5
12354echo "${ECHO_T}no" >&6
12355 fi
12356
12357
12358 echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12359echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6
12360 if test "${GCC-no}" = yes
12361 then
12362 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12363 echo $ECHO_N "(cached) $ECHO_C" >&6
12364else
12365
12366 oldcflags="${CFLAGS-}"
12367 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12368 cat >conftest.$ac_ext <<_ACEOF
12369/* confdefs.h. */
12370_ACEOF
12371cat confdefs.h >>conftest.$ac_ext
12372cat >>conftest.$ac_ext <<_ACEOF
12373/* end confdefs.h. */
12374
12375#include <string.h>
12376#include <stdio.h>
12377int main(void);
12378
12379int
12380main ()
12381{
12382
b1fc1658 12383 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12384
12385 ;
12386 return 0;
12387}
12388_ACEOF
12389rm -f conftest.$ac_objext
12390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try='test -z "$ac_c_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest.$ac_objext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 charybdis_cv_c_gcc_w_cast_qual=yes
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416charybdis_cv_c_gcc_w_cast_qual=no
12417fi
12418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12419 CFLAGS="${oldcflags}"
12420fi
12421
12422 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12423 CWARNS="${CWARNS}-Wcast-qual "
12424 echo "$as_me:$LINENO: result: ok" >&5
12425echo "${ECHO_T}ok" >&6
12426 else
12427 charybdis_cv_c_gcc_w_cast_qual=''
12428 echo "$as_me:$LINENO: result: no" >&5
12429echo "${ECHO_T}no" >&6
12430 fi
12431 else
12432 echo "$as_me:$LINENO: result: no" >&5
12433echo "${ECHO_T}no" >&6
12434 fi
12435
12436
12437 echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12438echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6
12439 if test "${GCC-no}" = yes
12440 then
12441 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443else
12444
12445 oldcflags="${CFLAGS-}"
12446 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12447 cat >conftest.$ac_ext <<_ACEOF
12448/* confdefs.h. */
12449_ACEOF
12450cat confdefs.h >>conftest.$ac_ext
12451cat >>conftest.$ac_ext <<_ACEOF
12452/* end confdefs.h. */
12453
12454#include <string.h>
12455#include <stdio.h>
12456int main(void);
12457
12458int
12459main ()
12460{
12461
b1fc1658 12462 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12463
12464 ;
12465 return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext
12469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest.$ac_objext'
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 charybdis_cv_c_gcc_prototypes=yes
12491else
12492 echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
12495charybdis_cv_c_gcc_prototypes=no
12496fi
12497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12498 CFLAGS="${oldcflags}"
12499fi
12500
12501 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12502 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12503 echo "$as_me:$LINENO: result: ok" >&5
12504echo "${ECHO_T}ok" >&6
12505 else
12506 charybdis_cv_c_gcc_prototypes=''
12507 echo "$as_me:$LINENO: result: no" >&5
12508echo "${ECHO_T}no" >&6
12509 fi
12510 else
12511 echo "$as_me:$LINENO: result: no" >&5
12512echo "${ECHO_T}no" >&6
12513 fi
12514
12515
12516 echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12517echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6
12518 if test "${GCC-no}" = yes
12519 then
12520 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12522else
12523
12524 oldcflags="${CFLAGS-}"
12525 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12526 cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
12532
12533#include <string.h>
12534#include <stdio.h>
12535int main(void);
12536
12537int
12538main ()
12539{
12540
b1fc1658 12541 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12542
12543 ;
12544 return 0;
12545}
12546_ACEOF
12547rm -f conftest.$ac_objext
12548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag"
12557 || test ! -s conftest.err'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest.$ac_objext'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; }; then
12569 charybdis_cv_c_gcc_parenthesis=yes
12570else
12571 echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574charybdis_cv_c_gcc_parenthesis=no
12575fi
12576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577 CFLAGS="${oldcflags}"
12578fi
12579
12580 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12581 CWARNS="${CWARNS}-Wparenthesis "
12582 echo "$as_me:$LINENO: result: ok" >&5
12583echo "${ECHO_T}ok" >&6
12584 else
12585 charybdis_cv_c_gcc_parenthesis=''
12586 echo "$as_me:$LINENO: result: no" >&5
12587echo "${ECHO_T}no" >&6
12588 fi
12589 else
12590 echo "$as_me:$LINENO: result: no" >&5
12591echo "${ECHO_T}no" >&6
12592 fi
12593
12594
12595 echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12596echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6
12597 if test "${GCC-no}" = yes
12598 then
12599 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12600 echo $ECHO_N "(cached) $ECHO_C" >&6
12601else
12602
12603 oldcflags="${CFLAGS-}"
12604 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12605 cat >conftest.$ac_ext <<_ACEOF
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
12611
12612#include <string.h>
12613#include <stdio.h>
12614int main(void);
12615
12616int
12617main ()
12618{
12619
b1fc1658 12620 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12621
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626rm -f conftest.$ac_objext
12627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -z "$ac_c_werror_flag"
12636 || test ! -s conftest.err'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; }; then
12648 charybdis_cv_c_gcc_w=yes
12649else
12650 echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
12653charybdis_cv_c_gcc_w=no
12654fi
12655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12656 CFLAGS="${oldcflags}"
12657fi
12658
12659 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12660 CWARNS="${CWARNS}-W -Wno-unused "
12661 echo "$as_me:$LINENO: result: ok" >&5
12662echo "${ECHO_T}ok" >&6
12663 else
12664 charybdis_cv_c_gcc_w=''
12665 echo "$as_me:$LINENO: result: no" >&5
12666echo "${ECHO_T}no" >&6
12667 fi
12668 else
12669 echo "$as_me:$LINENO: result: no" >&5
12670echo "${ECHO_T}no" >&6
12671 fi
12672
12673
12674 echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12675echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6
12676 if test "${GCC-no}" = yes
12677 then
12678 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12680else
12681
12682 oldcflags="${CFLAGS-}"
12683 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12684 cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
12690
12691#include <string.h>
12692#include <stdio.h>
12693int main(void);
12694
12695int
12696main ()
12697{
12698
b1fc1658 12699 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12700
12701 ;
12702 return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext
12706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12707 (eval $ac_compile) 2>conftest.er1
12708 ac_status=$?
12709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } &&
12714 { ac_try='test -z "$ac_c_werror_flag"
12715 || test ! -s conftest.err'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12727 charybdis_cv_c_gcc_w_extra=yes
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732charybdis_cv_c_gcc_w_extra=no
12733fi
12734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12735 CFLAGS="${oldcflags}"
12736fi
12737
12738 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12739 CWARNS="${CWARNS}-Wextra "
12740 echo "$as_me:$LINENO: result: ok" >&5
12741echo "${ECHO_T}ok" >&6
12742 else
12743 charybdis_cv_c_gcc_w_extra=''
12744 echo "$as_me:$LINENO: result: no" >&5
12745echo "${ECHO_T}no" >&6
12746 fi
12747 else
12748 echo "$as_me:$LINENO: result: no" >&5
12749echo "${ECHO_T}no" >&6
12750 fi
12751
12752
12753 echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12754echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6
12755 if test "${GCC-no}" = yes
12756 then
12757 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760
12761 oldcflags="${CFLAGS-}"
12762 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12763 cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h. */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h. */
12769
12770#include <string.h>
12771#include <stdio.h>
12772int main(void);
12773
12774int
12775main ()
12776{
12777
b1fc1658 12778 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12779
12780 ;
12781 return 0;
12782}
12783_ACEOF
12784rm -f conftest.$ac_objext
12785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786 (eval $ac_compile) 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest.$ac_objext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 charybdis_cv_c_gcc_w_shadow=yes
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811charybdis_cv_c_gcc_w_shadow=no
12812fi
12813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814 CFLAGS="${oldcflags}"
12815fi
12816
12817 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12818 CWARNS="${CWARNS}-Wshadow "
12819 echo "$as_me:$LINENO: result: ok" >&5
12820echo "${ECHO_T}ok" >&6
12821 else
12822 charybdis_cv_c_gcc_w_shadow=''
12823 echo "$as_me:$LINENO: result: no" >&5
12824echo "${ECHO_T}no" >&6
12825 fi
12826 else
12827 echo "$as_me:$LINENO: result: no" >&5
12828echo "${ECHO_T}no" >&6
12829 fi
12830
12831
12832 echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12833echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6
12834 if test "${GCC-no}" = yes
12835 then
12836 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838else
12839
12840 oldcflags="${CFLAGS-}"
12841 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12842 cat >conftest.$ac_ext <<_ACEOF
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
12848
12849#include <string.h>
12850#include <stdio.h>
12851int main(void);
12852
12853int
12854main ()
12855{
12856
b1fc1658 12857 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12858
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863rm -f conftest.$ac_objext
12864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12865 (eval $ac_compile) 2>conftest.er1
12866 ac_status=$?
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); } &&
12872 { ac_try='test -z "$ac_c_werror_flag"
12873 || test ! -s conftest.err'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12876 ac_status=$?
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; } &&
12879 { ac_try='test -s conftest.$ac_objext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 charybdis_cv_c_gcc_w_missing_noreturn=yes
12886else
12887 echo "$as_me: failed program was:" >&5
12888sed 's/^/| /' conftest.$ac_ext >&5
12889
12890charybdis_cv_c_gcc_w_missing_noreturn=no
12891fi
12892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12893 CFLAGS="${oldcflags}"
12894fi
12895
12896 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12897 CWARNS="${CWARNS}-Wmissing-noreturn "
12898 echo "$as_me:$LINENO: result: ok" >&5
12899echo "${ECHO_T}ok" >&6
12900 else
12901 charybdis_cv_c_gcc_w_missing_noreturn=''
12902 echo "$as_me:$LINENO: result: no" >&5
12903echo "${ECHO_T}no" >&6
12904 fi
12905 else
12906 echo "$as_me:$LINENO: result: no" >&5
12907echo "${ECHO_T}no" >&6
12908 fi
12909
12910
12911 echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12912echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6
12913 if test "${GCC-no}" = yes
12914 then
12915 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12917else
12918
12919 oldcflags="${CFLAGS-}"
12920 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12921 cat >conftest.$ac_ext <<_ACEOF
12922/* confdefs.h. */
12923_ACEOF
12924cat confdefs.h >>conftest.$ac_ext
12925cat >>conftest.$ac_ext <<_ACEOF
12926/* end confdefs.h. */
12927
12928#include <string.h>
12929#include <stdio.h>
12930int main(void);
12931
12932int
12933main ()
12934{
12935
b1fc1658 12936 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12937
12938 ;
12939 return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext
12943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>conftest.er1
12945 ac_status=$?
12946 grep -v '^ *+' conftest.er1 >conftest.err
12947 rm -f conftest.er1
12948 cat conftest.err >&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -z "$ac_c_werror_flag"
12952 || test ! -s conftest.err'
12953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954 (eval $ac_try) 2>&5
12955 ac_status=$?
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try='test -s conftest.$ac_objext'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 charybdis_cv_c_gcc_w_undef=yes
12965else
12966 echo "$as_me: failed program was:" >&5
12967sed 's/^/| /' conftest.$ac_ext >&5
12968
12969charybdis_cv_c_gcc_w_undef=no
12970fi
12971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12972 CFLAGS="${oldcflags}"
12973fi
12974
12975 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12976 CWARNS="${CWARNS}-Wundef "
12977 echo "$as_me:$LINENO: result: ok" >&5
12978echo "${ECHO_T}ok" >&6
12979 else
12980 charybdis_cv_c_gcc_w_undef=''
12981 echo "$as_me:$LINENO: result: no" >&5
12982echo "${ECHO_T}no" >&6
12983 fi
12984 else
12985 echo "$as_me:$LINENO: result: no" >&5
12986echo "${ECHO_T}no" >&6
12987 fi
12988
12989
12990 echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12991echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6
12992 if test "${GCC-no}" = yes
12993 then
12994 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12995 echo $ECHO_N "(cached) $ECHO_C" >&6
12996else
12997
12998 oldcflags="${CFLAGS-}"
12999 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
13000 cat >conftest.$ac_ext <<_ACEOF
13001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h. */
13006
13007#include <string.h>
13008#include <stdio.h>
13009int main(void);
13010
13011int
13012main ()
13013{
13014
b1fc1658 13015 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13016
13017 ;
13018 return 0;
13019}
13020_ACEOF
13021rm -f conftest.$ac_objext
13022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13023 (eval $ac_compile) 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -z "$ac_c_werror_flag"
13031 || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 charybdis_cv_c_gcc_w_packed=yes
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048charybdis_cv_c_gcc_w_packed=no
13049fi
13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051 CFLAGS="${oldcflags}"
13052fi
13053
13054 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
13055 CWARNS="${CWARNS}-Wpacked "
13056 echo "$as_me:$LINENO: result: ok" >&5
13057echo "${ECHO_T}ok" >&6
13058 else
13059 charybdis_cv_c_gcc_w_packed=''
13060 echo "$as_me:$LINENO: result: no" >&5
13061echo "${ECHO_T}no" >&6
13062 fi
13063 else
13064 echo "$as_me:$LINENO: result: no" >&5
13065echo "${ECHO_T}no" >&6
13066 fi
13067
13068
13069 echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
13070echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6
13071 if test "${GCC-no}" = yes
13072 then
13073 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075else
13076
13077 oldcflags="${CFLAGS-}"
13078 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
13079 cat >conftest.$ac_ext <<_ACEOF
13080/* confdefs.h. */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */
13085
13086#include <string.h>
13087#include <stdio.h>
13088int main(void);
13089
13090int
13091main ()
13092{
13093
b1fc1658 13094 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13095
13096 ;
13097 return 0;
13098}
13099_ACEOF
13100rm -f conftest.$ac_objext
13101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13102 (eval $ac_compile) 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } &&
13109 { ac_try='test -z "$ac_c_werror_flag"
13110 || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest.$ac_objext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 charybdis_cv_c_gcc_w_nested_externs=yes
13123else
13124 echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
13127charybdis_cv_c_gcc_w_nested_externs=no
13128fi
13129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13130 CFLAGS="${oldcflags}"
13131fi
13132
13133 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
13134 CWARNS="${CWARNS}-Wnested-externs "
13135 echo "$as_me:$LINENO: result: ok" >&5
13136echo "${ECHO_T}ok" >&6
13137 else
13138 charybdis_cv_c_gcc_w_nested_externs=''
13139 echo "$as_me:$LINENO: result: no" >&5
13140echo "${ECHO_T}no" >&6
13141 fi
13142 else
13143 echo "$as_me:$LINENO: result: no" >&5
13144echo "${ECHO_T}no" >&6
13145 fi
13146
13147
13148 echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13149echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6
13150 if test "${GCC-no}" = yes
13151 then
13152 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155
13156 oldcflags="${CFLAGS-}"
13157 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13158 cat >conftest.$ac_ext <<_ACEOF
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
13164
13165#include <string.h>
13166#include <stdio.h>
13167int main(void);
13168
13169int
13170main ()
13171{
13172
b1fc1658 13173 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13174
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext
13180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 charybdis_cv_c_gcc_w_bad_function_cast=yes
13202else
13203 echo "$as_me: failed program was:" >&5
13204sed 's/^/| /' conftest.$ac_ext >&5
13205
13206charybdis_cv_c_gcc_w_bad_function_cast=no
13207fi
13208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 CFLAGS="${oldcflags}"
13210fi
13211
13212 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
13213 CWARNS="${CWARNS}-Wbad-function-cast "
13214 echo "$as_me:$LINENO: result: ok" >&5
13215echo "${ECHO_T}ok" >&6
13216 else
13217 charybdis_cv_c_gcc_w_bad_function_cast=''
13218 echo "$as_me:$LINENO: result: no" >&5
13219echo "${ECHO_T}no" >&6
13220 fi
13221 else
13222 echo "$as_me:$LINENO: result: no" >&5
13223echo "${ECHO_T}no" >&6
13224 fi
13225
13226
13227 echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
13228echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6
13229 if test "${GCC-no}" = yes
13230 then
13231 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234
13235 oldcflags="${CFLAGS-}"
13236 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243
13244#include <string.h>
13245#include <stdio.h>
13246int main(void);
13247
13248int
13249main ()
13250{
13251
b1fc1658 13252 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13253
13254 ;
13255 return 0;
13256}
13257_ACEOF
13258rm -f conftest.$ac_objext
13259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13260 (eval $ac_compile) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 charybdis_cv_c_gcc_w_unused=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285charybdis_cv_c_gcc_w_unused=no
13286fi
13287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 CFLAGS="${oldcflags}"
13289fi
13290
13291 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13292 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13293 echo "$as_me:$LINENO: result: ok" >&5
13294echo "${ECHO_T}ok" >&6
13295 else
13296 charybdis_cv_c_gcc_w_unused=''
13297 echo "$as_me:$LINENO: result: no" >&5
13298echo "${ECHO_T}no" >&6
13299 fi
13300 else
13301 echo "$as_me:$LINENO: result: no" >&5
13302echo "${ECHO_T}no" >&6
13303 fi
13304
13305
13306 echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13307echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6
13308 if test "${GCC-no}" = yes
13309 then
13310 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13312else
13313
13314 oldcflags="${CFLAGS-}"
13315 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13316 cat >conftest.$ac_ext <<_ACEOF
13317/* confdefs.h. */
13318_ACEOF
13319cat confdefs.h >>conftest.$ac_ext
13320cat >>conftest.$ac_ext <<_ACEOF
13321/* end confdefs.h. */
13322
13323#include <string.h>
13324#include <stdio.h>
13325int main(void);
13326
13327int
13328main ()
13329{
13330
b1fc1658 13331 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13332
13333 ;
13334 return 0;
13335}
13336_ACEOF
13337rm -f conftest.$ac_objext
13338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13339 (eval $ac_compile) 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -z "$ac_c_werror_flag"
13347 || test ! -s conftest.err'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest.$ac_objext'
13354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13355 (eval $ac_try) 2>&5
13356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 charybdis_cv_c_gcc_w_redundant_decls=yes
13360else
13361 echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
13364charybdis_cv_c_gcc_w_redundant_decls=no
13365fi
13366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13367 CFLAGS="${oldcflags}"
13368fi
13369
13370 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13371 CWARNS="${CWARNS}-Wredundant-decls "
13372 echo "$as_me:$LINENO: result: ok" >&5
13373echo "${ECHO_T}ok" >&6
13374 else
13375 charybdis_cv_c_gcc_w_redundant_decls=''
13376 echo "$as_me:$LINENO: result: no" >&5
13377echo "${ECHO_T}no" >&6
13378 fi
13379 else
13380 echo "$as_me:$LINENO: result: no" >&5
13381echo "${ECHO_T}no" >&6
13382 fi
13383
13384
13385 echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13386echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6
13387 if test "${GCC-no}" = yes
13388 then
13389 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392
13393 oldcflags="${CFLAGS-}"
13394 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13395 cat >conftest.$ac_ext <<_ACEOF
13396/* confdefs.h. */
13397_ACEOF
13398cat confdefs.h >>conftest.$ac_ext
13399cat >>conftest.$ac_ext <<_ACEOF
13400/* end confdefs.h. */
13401
13402#include <string.h>
13403#include <stdio.h>
13404int main(void);
13405
13406int
13407main ()
13408{
13409
b1fc1658 13410 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13411
13412 ;
13413 return 0;
13414}
13415_ACEOF
13416rm -f conftest.$ac_objext
13417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag"
13426 || test ! -s conftest.err'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest.$ac_objext'
13433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434 (eval $ac_try) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); }; }; then
13438 charybdis_cv_c_gcc_w_float_equal=yes
13439else
13440 echo "$as_me: failed program was:" >&5
13441sed 's/^/| /' conftest.$ac_ext >&5
13442
13443charybdis_cv_c_gcc_w_float_equal=no
13444fi
13445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13446 CFLAGS="${oldcflags}"
13447fi
13448
13449 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13450 CWARNS="${CWARNS}-Wfloat-equal "
13451 echo "$as_me:$LINENO: result: ok" >&5
13452echo "${ECHO_T}ok" >&6
13453 else
13454 charybdis_cv_c_gcc_w_float_equal=''
13455 echo "$as_me:$LINENO: result: no" >&5
13456echo "${ECHO_T}no" >&6
13457 fi
13458 else
13459 echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461 fi
13462
13463
13464 echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13465echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6
13466 if test "${GCC-no}" = yes
13467 then
13468 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13470else
13471
13472 oldcflags="${CFLAGS-}"
13473 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13474 cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480
13481#include <string.h>
13482#include <stdio.h>
13483int main(void);
13484
13485int
13486main ()
13487{
13488
b1fc1658 13489 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13490
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495rm -f conftest.$ac_objext
13496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13497 (eval $ac_compile) 2>conftest.er1
13498 ac_status=$?
13499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
13504 { ac_try='test -z "$ac_c_werror_flag"
13505 || test ! -s conftest.err'
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 charybdis_cv_c_gcc_w_format=yes
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522charybdis_cv_c_gcc_w_format=no
13523fi
13524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525 CFLAGS="${oldcflags}"
13526fi
13527
13528 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13529 CWARNS="${CWARNS}-Wformat=2 "
13530 echo "$as_me:$LINENO: result: ok" >&5
13531echo "${ECHO_T}ok" >&6
13532 else
13533 charybdis_cv_c_gcc_w_format=''
13534 echo "$as_me:$LINENO: result: no" >&5
13535echo "${ECHO_T}no" >&6
13536 fi
13537 else
13538 echo "$as_me:$LINENO: result: no" >&5
13539echo "${ECHO_T}no" >&6
13540 fi
13541
13542
13543 echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13544echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6
13545 if test "${GCC-no}" = yes
13546 then
13547 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549else
13550
13551 oldcflags="${CFLAGS-}"
13552 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13553 cat >conftest.$ac_ext <<_ACEOF
13554/* confdefs.h. */
13555_ACEOF
13556cat confdefs.h >>conftest.$ac_ext
13557cat >>conftest.$ac_ext <<_ACEOF
13558/* end confdefs.h. */
13559
13560#include <string.h>
13561#include <stdio.h>
13562int main(void);
13563
13564int
13565main ()
13566{
13567
b1fc1658 13568 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13569
13570 ;
13571 return 0;
13572}
13573_ACEOF
13574rm -f conftest.$ac_objext
13575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>conftest.er1
13577 ac_status=$?
13578 grep -v '^ *+' conftest.er1 >conftest.err
13579 rm -f conftest.er1
13580 cat conftest.err >&5
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); } &&
13583 { ac_try='test -z "$ac_c_werror_flag"
13584 || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest.$ac_objext'
13591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13593 ac_status=$?
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13596 charybdis_cv_c_gcc_pedantic=yes
13597else
13598 echo "$as_me: failed program was:" >&5
13599sed 's/^/| /' conftest.$ac_ext >&5
13600
13601charybdis_cv_c_gcc_pedantic=no
13602fi
13603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604 CFLAGS="${oldcflags}"
13605fi
13606
13607 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13608 CWARNS="${CWARNS}-pedantic "
13609 echo "$as_me:$LINENO: result: ok" >&5
13610echo "${ECHO_T}ok" >&6
13611 else
13612 charybdis_cv_c_gcc_pedantic=''
13613 echo "$as_me:$LINENO: result: no" >&5
13614echo "${ECHO_T}no" >&6
13615 fi
13616 else
13617 echo "$as_me:$LINENO: result: no" >&5
13618echo "${ECHO_T}no" >&6
13619 fi
13620
13621
13622IRC_CFLAGS="$CFLAGS"
13623
13624fi;
13625
13626if test "$shared_modules" = no; then
13627 DYNLINK_C=""
13628 MOD_TARGET="libmodules.a"
13629 MODULES_LIBS="../modules/libmodules.a"
13630 SEDOBJ=""
13631
13632cat >>confdefs.h <<\_ACEOF
13633#define STATIC_MODULES 1
13634_ACEOF
13635
13636 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13637echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13638fi
13639
13640if test "$shared_modules" = yes; then
13641
13642 echo "$as_me:$LINENO: checking for nlist" >&5
13643echo $ECHO_N "checking for nlist... $ECHO_C" >&6
13644if test "${ac_cv_func_nlist+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646else
13647 cat >conftest.$ac_ext <<_ACEOF
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653/* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13655#define nlist innocuous_nlist
13656
13657/* System header to define __stub macros and hopefully few prototypes,
13658 which can conflict with char nlist (); below.
13659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13660 <limits.h> exists even on freestanding compilers. */
13661
13662#ifdef __STDC__
13663# include <limits.h>
13664#else
13665# include <assert.h>
13666#endif
13667
13668#undef nlist
13669
13670/* Override any gcc2 internal prototype to avoid an error. */
13671#ifdef __cplusplus
13672extern "C"
13673{
13674#endif
13675/* We use char because int might match the return type of a gcc2
13676 builtin and then its argument prototype would still apply. */
13677char nlist ();
13678/* The GNU C library defines this for functions which it implements
13679 to always fail with ENOSYS. Some functions are actually named
13680 something starting with __ and the normal name is an alias. */
13681#if defined (__stub_nlist) || defined (__stub___nlist)
13682choke me
13683#else
13684char (*f) () = nlist;
13685#endif
13686#ifdef __cplusplus
13687}
13688#endif
13689
13690int
13691main ()
13692{
13693return f != nlist;
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext conftest$ac_exeext
13699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700 (eval $ac_link) 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -z "$ac_c_werror_flag"
13708 || test ! -s conftest.err'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716 (eval $ac_try) 2>&5
13717 ac_status=$?
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); }; }; then
13720 ac_cv_func_nlist=yes
13721else
13722 echo "$as_me: failed program was:" >&5
13723sed 's/^/| /' conftest.$ac_ext >&5
13724
13725ac_cv_func_nlist=no
13726fi
13727rm -f conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729fi
13730echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13731echo "${ECHO_T}$ac_cv_func_nlist" >&6
13732if test $ac_cv_func_nlist = yes; then
13733 :
13734else
13735 echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13736echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6
13737if test "${ac_cv_lib_dl_nlist+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740 ac_check_lib_save_LIBS=$LIBS
13741LIBS="-ldl $LIBS"
13742cat >conftest.$ac_ext <<_ACEOF
13743/* confdefs.h. */
13744_ACEOF
13745cat confdefs.h >>conftest.$ac_ext
13746cat >>conftest.$ac_ext <<_ACEOF
13747/* end confdefs.h. */
13748
13749/* Override any gcc2 internal prototype to avoid an error. */
13750#ifdef __cplusplus
13751extern "C"
13752#endif
13753/* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13755char nlist ();
13756int
13757main ()
13758{
13759nlist ();
13760 ;
13761 return 0;
13762}
13763_ACEOF
13764rm -f conftest.$ac_objext conftest$ac_exeext
13765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>conftest.er1
13767 ac_status=$?
13768 grep -v '^ *+' conftest.er1 >conftest.err
13769 rm -f conftest.er1
13770 cat conftest.err >&5
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } &&
13773 { ac_try='test -z "$ac_c_werror_flag"
13774 || test ! -s conftest.err'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; } &&
13780 { ac_try='test -s conftest$ac_exeext'
13781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13783 ac_status=$?
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 ac_cv_lib_dl_nlist=yes
13787else
13788 echo "$as_me: failed program was:" >&5
13789sed 's/^/| /' conftest.$ac_ext >&5
13790
13791ac_cv_lib_dl_nlist=no
13792fi
13793rm -f conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13795LIBS=$ac_check_lib_save_LIBS
13796fi
13797echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13798echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6
13799if test $ac_cv_lib_dl_nlist = yes; then
13800 nlist_lib="-ldl"
13801else
13802 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13803echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
13804if test "${ac_cv_lib_elf_nlist+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 ac_check_lib_save_LIBS=$LIBS
13808LIBS="-lelf $LIBS"
13809cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
13814/* end confdefs.h. */
13815
13816/* Override any gcc2 internal prototype to avoid an error. */
13817#ifdef __cplusplus
13818extern "C"
13819#endif
13820/* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822char nlist ();
13823int
13824main ()
13825{
13826nlist ();
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext conftest$ac_exeext
13832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13833 (eval $ac_link) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest$ac_exeext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_lib_elf_nlist=yes
13854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858ac_cv_lib_elf_nlist=no
13859fi
13860rm -f conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
13862LIBS=$ac_check_lib_save_LIBS
13863fi
13864echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13865echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
13866if test $ac_cv_lib_elf_nlist = yes; then
13867 nlist_lib="-lelf"
13868fi
13869
13870
13871fi
13872
13873
13874fi
13875
13876
13877 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13878 echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13879echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
13880if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882fi
13883echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13884echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
13885else
13886 # Is the header compilable?
13887echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13888echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6
13889cat >conftest.$ac_ext <<_ACEOF
13890/* confdefs.h. */
13891_ACEOF
13892cat confdefs.h >>conftest.$ac_ext
13893cat >>conftest.$ac_ext <<_ACEOF
13894/* end confdefs.h. */
13895$ac_includes_default
13896#include <libelf/nlist.h>
13897_ACEOF
13898rm -f conftest.$ac_objext
13899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13900 (eval $ac_compile) 2>conftest.er1
13901 ac_status=$?
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_c_werror_flag"
13908 || test ! -s conftest.err'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try='test -s conftest.$ac_objext'
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_header_compiler=yes
13921else
13922 echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
13924
13925ac_header_compiler=no
13926fi
13927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13929echo "${ECHO_T}$ac_header_compiler" >&6
13930
13931# Is the header present?
13932echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13933echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6
13934cat >conftest.$ac_ext <<_ACEOF
13935/* confdefs.h. */
13936_ACEOF
13937cat confdefs.h >>conftest.$ac_ext
13938cat >>conftest.$ac_ext <<_ACEOF
13939/* end confdefs.h. */
13940#include <libelf/nlist.h>
13941_ACEOF
13942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev/null; then
13950 if test -s conftest.err; then
13951 ac_cpp_err=$ac_c_preproc_warn_flag
13952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13953 else
13954 ac_cpp_err=
13955 fi
13956else
13957 ac_cpp_err=yes
13958fi
13959if test -z "$ac_cpp_err"; then
13960 ac_header_preproc=yes
13961else
13962 echo "$as_me: failed program was:" >&5
13963sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_header_preproc=no
13966fi
13967rm -f conftest.err conftest.$ac_ext
13968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13969echo "${ECHO_T}$ac_header_preproc" >&6
13970
13971# So? What about this header?
13972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13973 yes:no: )
13974 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13975echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13977echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13978 ac_header_preproc=yes
13979 ;;
13980 no:yes:* )
13981 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13982echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13984echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13986echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13988echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13990echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13992echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13993 (
13994 cat <<\_ASBOX
13995## ------------------------------------ ##
13996## Report this to the charybdis lists. ##
13997## ------------------------------------ ##
13998_ASBOX
13999 ) |
14000 sed "s/^/$as_me: WARNING: /" >&2
14001 ;;
14002esac
14003echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
14004echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
14005if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007else
14008 ac_cv_header_libelf_nlist_h=$ac_header_preproc
14009fi
14010echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
14011echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
14012
14013fi
14014if test $ac_cv_header_libelf_nlist_h = yes; then
14015 nlist_h="libelf/nlist.h"
14016fi
14017
14018
14019 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14020 echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14021echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6
14022if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024fi
14025echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14026echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6
14027else
14028 # Is the header compilable?
14029echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
14030echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6
14031cat >conftest.$ac_ext <<_ACEOF
14032/* confdefs.h. */
14033_ACEOF
14034cat confdefs.h >>conftest.$ac_ext
14035cat >>conftest.$ac_ext <<_ACEOF
14036/* end confdefs.h. */
14037$ac_includes_default
14038#include <elf/nlist.h>
14039_ACEOF
14040rm -f conftest.$ac_objext
14041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_header_compiler=yes
14063else
14064 echo "$as_me: failed program was:" >&5
14065sed 's/^/| /' conftest.$ac_ext >&5
14066
14067ac_header_compiler=no
14068fi
14069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14071echo "${ECHO_T}$ac_header_compiler" >&6
14072
14073# Is the header present?
14074echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
14075echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6
14076cat >conftest.$ac_ext <<_ACEOF
14077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
14082#include <elf/nlist.h>
14083_ACEOF
14084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14086 ac_status=$?
14087 grep -v '^ *+' conftest.er1 >conftest.err
14088 rm -f conftest.er1
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } >/dev/null; then
14092 if test -s conftest.err; then
14093 ac_cpp_err=$ac_c_preproc_warn_flag
14094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14095 else
14096 ac_cpp_err=
14097 fi
14098else
14099 ac_cpp_err=yes
14100fi
14101if test -z "$ac_cpp_err"; then
14102 ac_header_preproc=yes
14103else
14104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ac_header_preproc=no
14108fi
14109rm -f conftest.err conftest.$ac_ext
14110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14111echo "${ECHO_T}$ac_header_preproc" >&6
14112
14113# So? What about this header?
14114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14115 yes:no: )
14116 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14117echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14118 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
14119echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
14120 ac_header_preproc=yes
14121 ;;
14122 no:yes:* )
14123 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
14124echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
14126echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
14128echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14130echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
14132echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
14134echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
14135 (
14136 cat <<\_ASBOX
14137## ------------------------------------ ##
14138## Report this to the charybdis lists. ##
14139## ------------------------------------ ##
14140_ASBOX
14141 ) |
14142 sed "s/^/$as_me: WARNING: /" >&2
14143 ;;
14144esac
14145echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14146echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6
14147if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 ac_cv_header_elf_nlist_h=$ac_header_preproc
14151fi
14152echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14153echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6
14154
14155fi
14156if test $ac_cv_header_elf_nlist_h = yes; then
14157 nlist_h="elf/nlist.h"
14158fi
14159
14160
14161 if test "${ac_cv_header_nlist_h+set}" = set; then
14162 echo "$as_me:$LINENO: checking for nlist.h" >&5
14163echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
14164if test "${ac_cv_header_nlist_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166fi
14167echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14168echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
14169else
14170 # Is the header compilable?
14171echo "$as_me:$LINENO: checking nlist.h usability" >&5
14172echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
14173cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179$ac_includes_default
14180#include <nlist.h>
14181_ACEOF
14182rm -f conftest.$ac_objext
14183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184 (eval $ac_compile) 2>conftest.er1
14185 ac_status=$?
14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest.$ac_objext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 ac_header_compiler=yes
14205else
14206 echo "$as_me: failed program was:" >&5
14207sed 's/^/| /' conftest.$ac_ext >&5
14208
14209ac_header_compiler=no
14210fi
14211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14212echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14213echo "${ECHO_T}$ac_header_compiler" >&6
14214
14215# Is the header present?
14216echo "$as_me:$LINENO: checking nlist.h presence" >&5
14217echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
14218cat >conftest.$ac_ext <<_ACEOF
14219/* confdefs.h. */
14220_ACEOF
14221cat confdefs.h >>conftest.$ac_ext
14222cat >>conftest.$ac_ext <<_ACEOF
14223/* end confdefs.h. */
14224#include <nlist.h>
14225_ACEOF
14226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } >/dev/null; then
14234 if test -s conftest.err; then
14235 ac_cpp_err=$ac_c_preproc_warn_flag
14236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14237 else
14238 ac_cpp_err=
14239 fi
14240else
14241 ac_cpp_err=yes
14242fi
14243if test -z "$ac_cpp_err"; then
14244 ac_header_preproc=yes
14245else
14246 echo "$as_me: failed program was:" >&5
14247sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 ac_header_preproc=no
14250fi
14251rm -f conftest.err conftest.$ac_ext
14252echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14253echo "${ECHO_T}$ac_header_preproc" >&6
14254
14255# So? What about this header?
14256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14257 yes:no: )
14258 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14259echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
14261echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
14262 ac_header_preproc=yes
14263 ;;
14264 no:yes:* )
14265 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
14266echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
14267 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
14268echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14270echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
14271 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14272echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14273 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
14274echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
14275 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
14276echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
14277 (
14278 cat <<\_ASBOX
14279## ------------------------------------ ##
14280## Report this to the charybdis lists. ##
14281## ------------------------------------ ##
14282_ASBOX
14283 ) |
14284 sed "s/^/$as_me: WARNING: /" >&2
14285 ;;
14286esac
14287echo "$as_me:$LINENO: checking for nlist.h" >&5
14288echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
14289if test "${ac_cv_header_nlist_h+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291else
14292 ac_cv_header_nlist_h=$ac_header_preproc
14293fi
14294echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14295echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
14296
14297fi
14298if test $ac_cv_header_nlist_h = yes; then
14299 nlist_h="nlist.h"
14300fi
14301
14302
14303 if test x"$nlist_h" = "x"; then
14304
14305cat >>confdefs.h <<_ACEOF
14306#define SYMBOL_PREFIX ""
14307_ACEOF
14308
14309 else
14310 echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
14311echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6
14312 if test "${symbol_underscores+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314else
14315
14316cat << EOF > conftest.c
14317#include <$nlist_h>
14318#include <stdio.h>
14319#include <stdlib.h>
14320void _modinit(void);
14321int main(int argc, char *argv[]) {
14322 int i;
14323 struct nlist nl[5];
14324
14325 /* fill the names in this way, so it'll work almost everywhere */
14326 nl[0].n_name = "_modinit";
14327 nl[1].n_name = "__modinit";
14328 nl[2].n_name = "___modinit";
14329 nl[3].n_name = "____modinit";
14330 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14331
14332 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14333 for(i = 0; i < 4; i++) {
14334 if(nl[i].n_value != NULL)
14335 {
14336 int j;
14337 for(j = 0; j < i; j++)
14338 printf("_");
14339 exit(i);
14340 }
14341 }
14342 exit(-1);
14343}
14344void _modinit(void) { return; }
14345EOF
14346 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14347 symbol_underscores=`./conftest conftest`
14348 echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14349echo "${ECHO_T}$symbol_underscores" >&6
14350 $RM -f conftest conftest.c
14351
14352fi
14353
14354
14355cat >>confdefs.h <<_ACEOF
14356#define SYMBOL_PREFIX "${symbol_underscores}"
14357_ACEOF
14358
14359 fi
14360fi
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375if test "$prefix" = "NONE"; then
14376
14377cat >>confdefs.h <<_ACEOF
14378#define IRCD_PREFIX "$ac_default_prefix"
14379_ACEOF
14380
14381
14382else
14383
14384
14385 prefix=`echo $prefix | sed 's/\/$//'`
14386
14387cat >>confdefs.h <<_ACEOF
14388#define IRCD_PREFIX "$prefix"
14389_ACEOF
14390
14391
14392fi
14393
14394 ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14395
14396
14397cat >confcache <<\_ACEOF
14398# This file is a shell script that caches the results of configure
14399# tests run on this system so they can be shared between configure
14400# scripts and configure runs, see configure's option --config-cache.
14401# It is not useful on other systems. If it contains results you don't
14402# want to keep, you may remove or edit it.
14403#
14404# config.status only pays attention to the cache file if you give it
14405# the --recheck option to rerun configure.
14406#
14407# `ac_cv_env_foo' variables (set or unset) will be overridden when
14408# loading this file, other *unset* `ac_cv_foo' will be assigned the
14409# following values.
14410
14411_ACEOF
14412
14413# The following way of writing the cache mishandles newlines in values,
14414# but we know of no workaround that is simple, portable, and efficient.
14415# So, don't put newlines in cache variables' values.
14416# Ultrix sh set writes to stderr and can't be redirected directly,
14417# and sets the high bit in the cache file unless we assign to the vars.
14418{
14419 (set) 2>&1 |
14420 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14421 *ac_space=\ *)
14422 # `set' does not quote correctly, so add quotes (double-quote
14423 # substitution turns \\\\ into \\, and sed turns \\ into \).
14424 sed -n \
14425 "s/'/'\\\\''/g;
14426 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14427 ;;
14428 *)
14429 # `set' quotes correctly as required by POSIX, so do not add quotes.
14430 sed -n \
14431 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14432 ;;
14433 esac;
14434} |
14435 sed '
14436 t clear
14437 : clear
14438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14439 t end
14440 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14441 : end' >>confcache
14442if diff $cache_file confcache >/dev/null 2>&1; then :; else
14443 if test -w $cache_file; then
14444 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14445 cat confcache >$cache_file
14446 else
14447 echo "not updating unwritable cache $cache_file"
14448 fi
14449fi
14450rm -f confcache
14451
14452test "x$prefix" = xNONE && prefix=$ac_default_prefix
14453# Let make expand exec_prefix.
14454test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14455
14456# VPATH may cause trouble with some makes, so we remove $(srcdir),
14457# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14458# trailing colons and then remove the whole line if VPATH becomes empty
14459# (actually we leave an empty line to preserve line numbers).
14460if test "x$srcdir" = x.; then
14461 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14462s/:*\$(srcdir):*/:/;
14463s/:*\${srcdir}:*/:/;
14464s/:*@srcdir@:*/:/;
14465s/^\([^=]*=[ ]*\):*/\1/;
14466s/:*$//;
14467s/^[^=]*=[ ]*$//;
14468}'
14469fi
14470
14471DEFS=-DHAVE_CONFIG_H
14472
14473ac_libobjs=
14474ac_ltlibobjs=
14475for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14476 # 1. Remove the extension, and $U if already installed.
14477 ac_i=`echo "$ac_i" |
14478 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14479 # 2. Add them.
14480 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14481 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14482done
14483LIBOBJS=$ac_libobjs
14484
14485LTLIBOBJS=$ac_ltlibobjs
14486
14487
14488
14489: ${CONFIG_STATUS=./config.status}
14490ac_clean_files_save=$ac_clean_files
14491ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14492{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14493echo "$as_me: creating $CONFIG_STATUS" >&6;}
14494cat >$CONFIG_STATUS <<_ACEOF
14495#! $SHELL
14496# Generated by $as_me.
14497# Run this file to recreate the current configuration.
14498# Compiler output produced by configure, useful for debugging
14499# configure, is in config.log if it exists.
14500
14501debug=false
14502ac_cs_recheck=false
14503ac_cs_silent=false
14504SHELL=\${CONFIG_SHELL-$SHELL}
14505_ACEOF
14506
14507cat >>$CONFIG_STATUS <<\_ACEOF
14508## --------------------- ##
14509## M4sh Initialization. ##
14510## --------------------- ##
14511
14512# Be Bourne compatible
14513if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14514 emulate sh
14515 NULLCMD=:
14516 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14517 # is contrary to our usage. Disable this feature.
14518 alias -g '${1+"$@"}'='"$@"'
14519elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14520 set -o posix
14521fi
14522DUALCASE=1; export DUALCASE # for MKS sh
14523
14524# Support unset when possible.
14525if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14526 as_unset=unset
14527else
14528 as_unset=false
14529fi
14530
14531
14532# Work around bugs in pre-3.0 UWIN ksh.
14533$as_unset ENV MAIL MAILPATH
14534PS1='$ '
14535PS2='> '
14536PS4='+ '
14537
14538# NLS nuisances.
14539for as_var in \
14540 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14541 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14542 LC_TELEPHONE LC_TIME
14543do
14544 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14545 eval $as_var=C; export $as_var
14546 else
14547 $as_unset $as_var
14548 fi
14549done
14550
14551# Required to use basename.
14552if expr a : '\(a\)' >/dev/null 2>&1; then
14553 as_expr=expr
14554else
14555 as_expr=false
14556fi
14557
14558if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14559 as_basename=basename
14560else
14561 as_basename=false
14562fi
14563
14564
14565# Name of the executable.
14566as_me=`$as_basename "$0" ||
14567$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14568 X"$0" : 'X\(//\)$' \| \
14569 X"$0" : 'X\(/\)$' \| \
14570 . : '\(.\)' 2>/dev/null ||
14571echo X/"$0" |
14572 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14573 /^X\/\(\/\/\)$/{ s//\1/; q; }
14574 /^X\/\(\/\).*/{ s//\1/; q; }
14575 s/.*/./; q'`
14576
14577
14578# PATH needs CR, and LINENO needs CR and PATH.
14579# Avoid depending upon Character Ranges.
14580as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14581as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14582as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14583as_cr_digits='0123456789'
14584as_cr_alnum=$as_cr_Letters$as_cr_digits
14585
14586# The user is always right.
14587if test "${PATH_SEPARATOR+set}" != set; then
14588 echo "#! /bin/sh" >conf$$.sh
14589 echo "exit 0" >>conf$$.sh
14590 chmod +x conf$$.sh
14591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14592 PATH_SEPARATOR=';'
14593 else
14594 PATH_SEPARATOR=:
14595 fi
14596 rm -f conf$$.sh
14597fi
14598
14599
14600 as_lineno_1=$LINENO
14601 as_lineno_2=$LINENO
14602 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14603 test "x$as_lineno_1" != "x$as_lineno_2" &&
14604 test "x$as_lineno_3" = "x$as_lineno_2" || {
14605 # Find who we are. Look in the path if we contain no path at all
14606 # relative or not.
14607 case $0 in
14608 *[\\/]* ) as_myself=$0 ;;
14609 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610for as_dir in $PATH
14611do
14612 IFS=$as_save_IFS
14613 test -z "$as_dir" && as_dir=.
14614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14615done
14616
14617 ;;
14618 esac
14619 # We did not find ourselves, most probably we were run as `sh COMMAND'
14620 # in which case we are not to be found in the path.
14621 if test "x$as_myself" = x; then
14622 as_myself=$0
14623 fi
14624 if test ! -f "$as_myself"; then
14625 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14626echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14627 { (exit 1); exit 1; }; }
14628 fi
14629 case $CONFIG_SHELL in
14630 '')
14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14633do
14634 IFS=$as_save_IFS
14635 test -z "$as_dir" && as_dir=.
14636 for as_base in sh bash ksh sh5; do
14637 case $as_dir in
14638 /*)
14639 if ("$as_dir/$as_base" -c '
14640 as_lineno_1=$LINENO
14641 as_lineno_2=$LINENO
14642 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14643 test "x$as_lineno_1" != "x$as_lineno_2" &&
14644 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14645 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14646 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14647 CONFIG_SHELL=$as_dir/$as_base
14648 export CONFIG_SHELL
14649 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14650 fi;;
14651 esac
14652 done
14653done
14654;;
14655 esac
14656
14657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14658 # uniformly replaced by the line number. The first 'sed' inserts a
14659 # line-number line before each line; the second 'sed' does the real
14660 # work. The second script uses 'N' to pair each line-number line
14661 # with the numbered line, and appends trailing '-' during
14662 # substitution so that $LINENO is not a special case at line end.
14663 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14664 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14665 sed '=' <$as_myself |
14666 sed '
14667 N
14668 s,$,-,
14669 : loop
14670 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14671 t loop
14672 s,-$,,
14673 s,^['$as_cr_digits']*\n,,
14674 ' >$as_me.lineno &&
14675 chmod +x $as_me.lineno ||
14676 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14677echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14678 { (exit 1); exit 1; }; }
14679
14680 # Don't try to exec as it changes $[0], causing all sort of problems
14681 # (the dirname of $[0] is not the place where we might find the
14682 # original and so on. Autoconf is especially sensible to this).
14683 . ./$as_me.lineno
14684 # Exit status is that of the last command.
14685 exit
14686}
14687
14688
14689case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14690 *c*,-n*) ECHO_N= ECHO_C='
14691' ECHO_T=' ' ;;
14692 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14693 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14694esac
14695
14696if expr a : '\(a\)' >/dev/null 2>&1; then
14697 as_expr=expr
14698else
14699 as_expr=false
14700fi
14701
14702rm -f conf$$ conf$$.exe conf$$.file
14703echo >conf$$.file
14704if ln -s conf$$.file conf$$ 2>/dev/null; then
14705 # We could just check for DJGPP; but this test a) works b) is more generic
14706 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14707 if test -f conf$$.exe; then
14708 # Don't use ln at all; we don't have any links
14709 as_ln_s='cp -p'
14710 else
14711 as_ln_s='ln -s'
14712 fi
14713elif ln conf$$.file conf$$ 2>/dev/null; then
14714 as_ln_s=ln
14715else
14716 as_ln_s='cp -p'
14717fi
14718rm -f conf$$ conf$$.exe conf$$.file
14719
14720if mkdir -p . 2>/dev/null; then
14721 as_mkdir_p=:
14722else
14723 test -d ./-p && rmdir ./-p
14724 as_mkdir_p=false
14725fi
14726
14727as_executable_p="test -f"
14728
14729# Sed expression to map a string onto a valid CPP name.
14730as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14731
14732# Sed expression to map a string onto a valid variable name.
14733as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14734
14735
14736# IFS
14737# We need space, tab and new line, in precisely that order.
14738as_nl='
14739'
14740IFS=" $as_nl"
14741
14742# CDPATH.
14743$as_unset CDPATH
14744
14745exec 6>&1
14746
14747# Open the log real soon, to keep \$[0] and so on meaningful, and to
14748# report actual input values of CONFIG_FILES etc. instead of their
14749# values after options handling. Logging --version etc. is OK.
14750exec 5>>config.log
14751{
14752 echo
14753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14754## Running $as_me. ##
14755_ASBOX
14756} >&5
14757cat >&5 <<_CSEOF
14758
b1fc1658 14759This file was extended by charybdis $as_me 2.2.0, which was
212380e3 14760generated by GNU Autoconf 2.59. Invocation command line was
14761
14762 CONFIG_FILES = $CONFIG_FILES
14763 CONFIG_HEADERS = $CONFIG_HEADERS
14764 CONFIG_LINKS = $CONFIG_LINKS
14765 CONFIG_COMMANDS = $CONFIG_COMMANDS
14766 $ $0 $@
14767
14768_CSEOF
14769echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14770echo >&5
14771_ACEOF
14772
14773# Files that config.status was made for.
14774if test -n "$ac_config_files"; then
14775 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14776fi
14777
14778if test -n "$ac_config_headers"; then
14779 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14780fi
14781
14782if test -n "$ac_config_links"; then
14783 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14784fi
14785
14786if test -n "$ac_config_commands"; then
14787 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14788fi
14789
14790cat >>$CONFIG_STATUS <<\_ACEOF
14791
14792ac_cs_usage="\
14793\`$as_me' instantiates files from templates according to the
14794current configuration.
14795
14796Usage: $0 [OPTIONS] [FILE]...
14797
14798 -h, --help print this help, then exit
14799 -V, --version print version number, then exit
14800 -q, --quiet do not print progress messages
14801 -d, --debug don't remove temporary files
14802 --recheck update $as_me by reconfiguring in the same conditions
14803 --file=FILE[:TEMPLATE]
14804 instantiate the configuration file FILE
14805 --header=FILE[:TEMPLATE]
14806 instantiate the configuration header FILE
14807
14808Configuration files:
14809$config_files
14810
14811Configuration headers:
14812$config_headers
14813
14814Report bugs to <bug-autoconf@gnu.org>."
14815_ACEOF
14816
14817cat >>$CONFIG_STATUS <<_ACEOF
14818ac_cs_version="\\
b1fc1658 14819charybdis config.status 2.2.0
212380e3 14820configured by $0, generated by GNU Autoconf 2.59,
14821 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14822
14823Copyright (C) 2003 Free Software Foundation, Inc.
14824This config.status script is free software; the Free Software Foundation
14825gives unlimited permission to copy, distribute and modify it."
14826srcdir=$srcdir
14827INSTALL="$INSTALL"
14828_ACEOF
14829
14830cat >>$CONFIG_STATUS <<\_ACEOF
14831# If no file are specified by the user, then we need to provide default
14832# value. By we need to know if files were specified by the user.
14833ac_need_defaults=:
14834while test $# != 0
14835do
14836 case $1 in
14837 --*=*)
14838 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14839 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14840 ac_shift=:
14841 ;;
14842 -*)
14843 ac_option=$1
14844 ac_optarg=$2
14845 ac_shift=shift
14846 ;;
14847 *) # This is not an option, so the user has probably given explicit
14848 # arguments.
14849 ac_option=$1
14850 ac_need_defaults=false;;
14851 esac
14852
14853 case $ac_option in
14854 # Handling of the options.
14855_ACEOF
14856cat >>$CONFIG_STATUS <<\_ACEOF
14857 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14858 ac_cs_recheck=: ;;
14859 --version | --vers* | -V )
14860 echo "$ac_cs_version"; exit 0 ;;
14861 --he | --h)
14862 # Conflict between --help and --header
14863 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14864Try \`$0 --help' for more information." >&5
14865echo "$as_me: error: ambiguous option: $1
14866Try \`$0 --help' for more information." >&2;}
14867 { (exit 1); exit 1; }; };;
14868 --help | --hel | -h )
14869 echo "$ac_cs_usage"; exit 0 ;;
14870 --debug | --d* | -d )
14871 debug=: ;;
14872 --file | --fil | --fi | --f )
14873 $ac_shift
14874 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14875 ac_need_defaults=false;;
14876 --header | --heade | --head | --hea )
14877 $ac_shift
14878 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14879 ac_need_defaults=false;;
14880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14882 ac_cs_silent=: ;;
14883
14884 # This is an error.
14885 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14886Try \`$0 --help' for more information." >&5
14887echo "$as_me: error: unrecognized option: $1
14888Try \`$0 --help' for more information." >&2;}
14889 { (exit 1); exit 1; }; } ;;
14890
14891 *) ac_config_targets="$ac_config_targets $1" ;;
14892
14893 esac
14894 shift
14895done
14896
14897ac_configure_extra_args=
14898
14899if $ac_cs_silent; then
14900 exec 6>/dev/null
14901 ac_configure_extra_args="$ac_configure_extra_args --silent"
14902fi
14903
14904_ACEOF
14905cat >>$CONFIG_STATUS <<_ACEOF
14906if \$ac_cs_recheck; then
14907 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14908 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14909fi
14910
14911_ACEOF
14912
14913
14914
14915
14916
14917cat >>$CONFIG_STATUS <<\_ACEOF
14918for ac_config_target in $ac_config_targets
14919do
14920 case "$ac_config_target" in
14921 # Handling of arguments.
14922 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14923 "libcharybdis/Makefile" ) CONFIG_FILES="$CONFIG_FILES libcharybdis/Makefile" ;;
14924 "servlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14925 "extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14926 "unsupported/Makefile" ) CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14927 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14928 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14929 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14930 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14931 "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14932 "include/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14933 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14934echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14935 { (exit 1); exit 1; }; };;
14936 esac
14937done
14938
14939# If the user did not use the arguments to specify the items to instantiate,
14940# then the envvar interface is used. Set only those that are not.
14941# We use the long form for the default assignment because of an extremely
14942# bizarre bug on SunOS 4.1.3.
14943if $ac_need_defaults; then
14944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14946fi
14947
14948# Have a temporary directory for convenience. Make it in the build tree
14949# simply because there is no reason to put it here, and in addition,
14950# creating and moving files from /tmp can sometimes cause problems.
14951# Create a temporary directory, and hook for its removal unless debugging.
14952$debug ||
14953{
14954 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14955 trap '{ (exit 1); exit 1; }' 1 2 13 15
14956}
14957
14958# Create a (secure) tmp directory for tmp files.
14959
14960{
14961 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14962 test -n "$tmp" && test -d "$tmp"
14963} ||
14964{
14965 tmp=./confstat$$-$RANDOM
14966 (umask 077 && mkdir $tmp)
14967} ||
14968{
14969 echo "$me: cannot create a temporary directory in ." >&2
14970 { (exit 1); exit 1; }
14971}
14972
14973_ACEOF
14974
14975cat >>$CONFIG_STATUS <<_ACEOF
14976
14977#
14978# CONFIG_FILES section.
14979#
14980
14981# No need to generate the scripts if there are no CONFIG_FILES.
14982# This happens for instance when ./config.status config.h
14983if test -n "\$CONFIG_FILES"; then
14984 # Protect against being on the right side of a sed subst in config.status.
14985 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14986 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14987s,@SHELL@,$SHELL,;t t
14988s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14989s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14990s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14991s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14992s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14993s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14994s,@exec_prefix@,$exec_prefix,;t t
14995s,@prefix@,$prefix,;t t
14996s,@program_transform_name@,$program_transform_name,;t t
14997s,@bindir@,$bindir,;t t
14998s,@sbindir@,$sbindir,;t t
14999s,@libexecdir@,$libexecdir,;t t
15000s,@datadir@,$datadir,;t t
15001s,@sysconfdir@,$sysconfdir,;t t
15002s,@sharedstatedir@,$sharedstatedir,;t t
15003s,@localstatedir@,$localstatedir,;t t
15004s,@libdir@,$libdir,;t t
15005s,@includedir@,$includedir,;t t
15006s,@oldincludedir@,$oldincludedir,;t t
15007s,@infodir@,$infodir,;t t
15008s,@mandir@,$mandir,;t t
15009s,@build_alias@,$build_alias,;t t
15010s,@host_alias@,$host_alias,;t t
15011s,@target_alias@,$target_alias,;t t
15012s,@DEFS@,$DEFS,;t t
15013s,@ECHO_C@,$ECHO_C,;t t
15014s,@ECHO_N@,$ECHO_N,;t t
15015s,@ECHO_T@,$ECHO_T,;t t
15016s,@LIBS@,$LIBS,;t t
15017s,@CC@,$CC,;t t
15018s,@CFLAGS@,$CFLAGS,;t t
15019s,@LDFLAGS@,$LDFLAGS,;t t
15020s,@CPPFLAGS@,$CPPFLAGS,;t t
15021s,@ac_ct_CC@,$ac_ct_CC,;t t
15022s,@EXEEXT@,$EXEEXT,;t t
15023s,@OBJEXT@,$OBJEXT,;t t
15024s,@MKDEP@,$MKDEP,;t t
15025s,@MAKEDEPEND@,$MAKEDEPEND,;t t
15026s,@STDOUT@,$STDOUT,;t t
15027s,@CPP@,$CPP,;t t
15028s,@EGREP@,$EGREP,;t t
15029s,@SET_MAKE@,$SET_MAKE,;t t
15030s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15031s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15032s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15033s,@RM@,$RM,;t t
15034s,@CP@,$CP,;t t
15035s,@MV@,$MV,;t t
15036s,@LN@,$LN,;t t
15037s,@SED@,$SED,;t t
15038s,@AR@,$AR,;t t
15039s,@LD@,$LD,;t t
15040s,@RANLIB@,$RANLIB,;t t
15041s,@TOUCH@,$TOUCH,;t t
15042s,@YACC@,$YACC,;t t
15043s,@LEX@,$LEX,;t t
15044s,@LEXLIB@,$LEXLIB,;t t
15045s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15046s,@CRYPT_LIB@,$CRYPT_LIB,;t t
15047s,@VICONF@,$VICONF,;t t
15048s,@ALLOCA@,$ALLOCA,;t t
15049s,@ENCSPEED@,$ENCSPEED,;t t
15050s,@ZLIB_LD@,$ZLIB_LD,;t t
15051s,@ETC_DIR@,$ETC_DIR,;t t
15052s,@confdir@,$confdir,;t t
15053s,@LOG_DIR@,$LOG_DIR,;t t
15054s,@logdir@,$logdir,;t t
15055s,@HELP_DIR@,$HELP_DIR,;t t
15056s,@helpdir@,$helpdir,;t t
15057s,@MODULE_DIR@,$MODULE_DIR,;t t
15058s,@moduledir@,$moduledir,;t t
15059s,@SELECT_TYPE@,$SELECT_TYPE,;t t
15060s,@FNVHASH_S@,$FNVHASH_S,;t t
15061s,@MODULES_LIBS@,$MODULES_LIBS,;t t
15062s,@MOD_TARGET@,$MOD_TARGET,;t t
15063s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
15064s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
15065s,@SSL_LIBS@,$SSL_LIBS,;t t
15066s,@PICFLAGS@,$PICFLAGS,;t t
15067s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
15068s,@SEDOBJ@,$SEDOBJ,;t t
15069s,@LIBOBJS@,$LIBOBJS,;t t
15070s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15071CEOF
15072
15073_ACEOF
15074
15075 cat >>$CONFIG_STATUS <<\_ACEOF
15076 # Split the substitutions into bite-sized pieces for seds with
15077 # small command number limits, like on Digital OSF/1 and HP-UX.
15078 ac_max_sed_lines=48
15079 ac_sed_frag=1 # Number of current file.
15080 ac_beg=1 # First line for current file.
15081 ac_end=$ac_max_sed_lines # Line after last line for current file.
15082 ac_more_lines=:
15083 ac_sed_cmds=
15084 while $ac_more_lines; do
15085 if test $ac_beg -gt 1; then
15086 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15087 else
15088 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15089 fi
15090 if test ! -s $tmp/subs.frag; then
15091 ac_more_lines=false
15092 else
15093 # The purpose of the label and of the branching condition is to
15094 # speed up the sed processing (if there are no `@' at all, there
15095 # is no need to browse any of the substitutions).
15096 # These are the two extra sed commands mentioned above.
15097 (echo ':t
15098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15099 if test -z "$ac_sed_cmds"; then
15100 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15101 else
15102 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15103 fi
15104 ac_sed_frag=`expr $ac_sed_frag + 1`
15105 ac_beg=$ac_end
15106 ac_end=`expr $ac_end + $ac_max_sed_lines`
15107 fi
15108 done
15109 if test -z "$ac_sed_cmds"; then
15110 ac_sed_cmds=cat
15111 fi
15112fi # test -n "$CONFIG_FILES"
15113
15114_ACEOF
15115cat >>$CONFIG_STATUS <<\_ACEOF
15116for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15118 case $ac_file in
15119 - | *:- | *:-:* ) # input from stdin
15120 cat >$tmp/stdin
15121 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15122 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15123 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15125 * ) ac_file_in=$ac_file.in ;;
15126 esac
15127
15128 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15129 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15130$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15131 X"$ac_file" : 'X\(//\)[^/]' \| \
15132 X"$ac_file" : 'X\(//\)$' \| \
15133 X"$ac_file" : 'X\(/\)' \| \
15134 . : '\(.\)' 2>/dev/null ||
15135echo X"$ac_file" |
15136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15137 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15138 /^X\(\/\/\)$/{ s//\1/; q; }
15139 /^X\(\/\).*/{ s//\1/; q; }
15140 s/.*/./; q'`
15141 { if $as_mkdir_p; then
15142 mkdir -p "$ac_dir"
15143 else
15144 as_dir="$ac_dir"
15145 as_dirs=
15146 while test ! -d "$as_dir"; do
15147 as_dirs="$as_dir $as_dirs"
15148 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15149$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15150 X"$as_dir" : 'X\(//\)[^/]' \| \
15151 X"$as_dir" : 'X\(//\)$' \| \
15152 X"$as_dir" : 'X\(/\)' \| \
15153 . : '\(.\)' 2>/dev/null ||
15154echo X"$as_dir" |
15155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15157 /^X\(\/\/\)$/{ s//\1/; q; }
15158 /^X\(\/\).*/{ s//\1/; q; }
15159 s/.*/./; q'`
15160 done
15161 test ! -n "$as_dirs" || mkdir $as_dirs
15162 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15163echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15164 { (exit 1); exit 1; }; }; }
15165
15166 ac_builddir=.
15167
15168if test "$ac_dir" != .; then
15169 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15170 # A "../" for each directory in $ac_dir_suffix.
15171 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15172else
15173 ac_dir_suffix= ac_top_builddir=
15174fi
15175
15176case $srcdir in
15177 .) # No --srcdir option. We are building in place.
15178 ac_srcdir=.
15179 if test -z "$ac_top_builddir"; then
15180 ac_top_srcdir=.
15181 else
15182 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15183 fi ;;
15184 [\\/]* | ?:[\\/]* ) # Absolute path.
15185 ac_srcdir=$srcdir$ac_dir_suffix;
15186 ac_top_srcdir=$srcdir ;;
15187 *) # Relative path.
15188 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15189 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15190esac
15191
15192# Do not use `cd foo && pwd` to compute absolute paths, because
15193# the directories may not exist.
15194case `pwd` in
15195.) ac_abs_builddir="$ac_dir";;
15196*)
15197 case "$ac_dir" in
15198 .) ac_abs_builddir=`pwd`;;
15199 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15200 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15201 esac;;
15202esac
15203case $ac_abs_builddir in
15204.) ac_abs_top_builddir=${ac_top_builddir}.;;
15205*)
15206 case ${ac_top_builddir}. in
15207 .) ac_abs_top_builddir=$ac_abs_builddir;;
15208 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15209 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15210 esac;;
15211esac
15212case $ac_abs_builddir in
15213.) ac_abs_srcdir=$ac_srcdir;;
15214*)
15215 case $ac_srcdir in
15216 .) ac_abs_srcdir=$ac_abs_builddir;;
15217 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15218 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15219 esac;;
15220esac
15221case $ac_abs_builddir in
15222.) ac_abs_top_srcdir=$ac_top_srcdir;;
15223*)
15224 case $ac_top_srcdir in
15225 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15226 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15227 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15228 esac;;
15229esac
15230
15231
15232 case $INSTALL in
15233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15234 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15235 esac
15236
15237 if test x"$ac_file" != x-; then
15238 { echo "$as_me:$LINENO: creating $ac_file" >&5
15239echo "$as_me: creating $ac_file" >&6;}
15240 rm -f "$ac_file"
15241 fi
15242 # Let's still pretend it is `configure' which instantiates (i.e., don't
15243 # use $as_me), people would be surprised to read:
15244 # /* config.h. Generated by config.status. */
15245 if test x"$ac_file" = x-; then
15246 configure_input=
15247 else
15248 configure_input="$ac_file. "
15249 fi
15250 configure_input=$configure_input"Generated from `echo $ac_file_in |
15251 sed 's,.*/,,'` by configure."
15252
15253 # First look for the input files in the build tree, otherwise in the
15254 # src tree.
15255 ac_file_inputs=`IFS=:
15256 for f in $ac_file_in; do
15257 case $f in
15258 -) echo $tmp/stdin ;;
15259 [\\/$]*)
15260 # Absolute (can't be DOS-style, as IFS=:)
15261 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15262echo "$as_me: error: cannot find input file: $f" >&2;}
15263 { (exit 1); exit 1; }; }
15264 echo "$f";;
15265 *) # Relative
15266 if test -f "$f"; then
15267 # Build tree
15268 echo "$f"
15269 elif test -f "$srcdir/$f"; then
15270 # Source tree
15271 echo "$srcdir/$f"
15272 else
15273 # /dev/null tree
15274 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15275echo "$as_me: error: cannot find input file: $f" >&2;}
15276 { (exit 1); exit 1; }; }
15277 fi;;
15278 esac
15279 done` || { (exit 1); exit 1; }
15280_ACEOF
15281cat >>$CONFIG_STATUS <<_ACEOF
15282 sed "$ac_vpsub
15283$extrasub
15284_ACEOF
15285cat >>$CONFIG_STATUS <<\_ACEOF
15286:t
15287/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15288s,@configure_input@,$configure_input,;t t
15289s,@srcdir@,$ac_srcdir,;t t
15290s,@abs_srcdir@,$ac_abs_srcdir,;t t
15291s,@top_srcdir@,$ac_top_srcdir,;t t
15292s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15293s,@builddir@,$ac_builddir,;t t
15294s,@abs_builddir@,$ac_abs_builddir,;t t
15295s,@top_builddir@,$ac_top_builddir,;t t
15296s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15297s,@INSTALL@,$ac_INSTALL,;t t
15298" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15299 rm -f $tmp/stdin
15300 if test x"$ac_file" != x-; then
15301 mv $tmp/out $ac_file
15302 else
15303 cat $tmp/out
15304 rm -f $tmp/out
15305 fi
15306
15307done
15308_ACEOF
15309cat >>$CONFIG_STATUS <<\_ACEOF
15310
15311#
15312# CONFIG_HEADER section.
15313#
15314
15315# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15316# NAME is the cpp macro being defined and VALUE is the value it is being given.
15317#
15318# ac_d sets the value in "#define NAME VALUE" lines.
15319ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15320ac_dB='[ ].*$,\1#\2'
15321ac_dC=' '
15322ac_dD=',;t'
15323# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15324ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15325ac_uB='$,\1#\2define\3'
15326ac_uC=' '
15327ac_uD=',;t'
15328
15329for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15330 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15331 case $ac_file in
15332 - | *:- | *:-:* ) # input from stdin
15333 cat >$tmp/stdin
15334 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15335 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15336 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15338 * ) ac_file_in=$ac_file.in ;;
15339 esac
15340
15341 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15342echo "$as_me: creating $ac_file" >&6;}
15343
15344 # First look for the input files in the build tree, otherwise in the
15345 # src tree.
15346 ac_file_inputs=`IFS=:
15347 for f in $ac_file_in; do
15348 case $f in
15349 -) echo $tmp/stdin ;;
15350 [\\/$]*)
15351 # Absolute (can't be DOS-style, as IFS=:)
15352 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15353echo "$as_me: error: cannot find input file: $f" >&2;}
15354 { (exit 1); exit 1; }; }
15355 # Do quote $f, to prevent DOS paths from being IFS'd.
15356 echo "$f";;
15357 *) # Relative
15358 if test -f "$f"; then
15359 # Build tree
15360 echo "$f"
15361 elif test -f "$srcdir/$f"; then
15362 # Source tree
15363 echo "$srcdir/$f"
15364 else
15365 # /dev/null tree
15366 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15367echo "$as_me: error: cannot find input file: $f" >&2;}
15368 { (exit 1); exit 1; }; }
15369 fi;;
15370 esac
15371 done` || { (exit 1); exit 1; }
15372 # Remove the trailing spaces.
15373 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15374
15375_ACEOF
15376
15377# Transform confdefs.h into two sed scripts, `conftest.defines' and
15378# `conftest.undefs', that substitutes the proper values into
15379# config.h.in to produce config.h. The first handles `#define'
15380# templates, and the second `#undef' templates.
15381# And first: Protect against being on the right side of a sed subst in
15382# config.status. Protect against being in an unquoted here document
15383# in config.status.
15384rm -f conftest.defines conftest.undefs
15385# Using a here document instead of a string reduces the quoting nightmare.
15386# Putting comments in sed scripts is not portable.
15387#
15388# `end' is used to avoid that the second main sed command (meant for
15389# 0-ary CPP macros) applies to n-ary macro definitions.
15390# See the Autoconf documentation for `clear'.
15391cat >confdef2sed.sed <<\_ACEOF
15392s/[\\&,]/\\&/g
15393s,[\\$`],\\&,g
15394t clear
15395: clear
15396s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15397t end
15398s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15399: end
15400_ACEOF
15401# If some macros were called several times there might be several times
15402# the same #defines, which is useless. Nevertheless, we may not want to
15403# sort them, since we want the *last* AC-DEFINE to be honored.
15404uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15405sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15406rm -f confdef2sed.sed
15407
15408# This sed command replaces #undef with comments. This is necessary, for
15409# example, in the case of _POSIX_SOURCE, which is predefined and required
15410# on some systems where configure will not decide to define it.
15411cat >>conftest.undefs <<\_ACEOF
15412s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15413_ACEOF
15414
15415# Break up conftest.defines because some shells have a limit on the size
15416# of here documents, and old seds have small limits too (100 cmds).
15417echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15418echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15419echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15420echo ' :' >>$CONFIG_STATUS
15421rm -f conftest.tail
15422while grep . conftest.defines >/dev/null
15423do
15424 # Write a limited-size here document to $tmp/defines.sed.
15425 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15426 # Speed up: don't consider the non `#define' lines.
15427 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15428 # Work around the forget-to-reset-the-flag bug.
15429 echo 't clr' >>$CONFIG_STATUS
15430 echo ': clr' >>$CONFIG_STATUS
15431 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15432 echo 'CEOF
15433 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15434 rm -f $tmp/in
15435 mv $tmp/out $tmp/in
15436' >>$CONFIG_STATUS
15437 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15438 rm -f conftest.defines
15439 mv conftest.tail conftest.defines
15440done
15441rm -f conftest.defines
15442echo ' fi # grep' >>$CONFIG_STATUS
15443echo >>$CONFIG_STATUS
15444
15445# Break up conftest.undefs because some shells have a limit on the size
15446# of here documents, and old seds have small limits too (100 cmds).
15447echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15448rm -f conftest.tail
15449while grep . conftest.undefs >/dev/null
15450do
15451 # Write a limited-size here document to $tmp/undefs.sed.
15452 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15453 # Speed up: don't consider the non `#undef'
15454 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15455 # Work around the forget-to-reset-the-flag bug.
15456 echo 't clr' >>$CONFIG_STATUS
15457 echo ': clr' >>$CONFIG_STATUS
15458 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15459 echo 'CEOF
15460 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15461 rm -f $tmp/in
15462 mv $tmp/out $tmp/in
15463' >>$CONFIG_STATUS
15464 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15465 rm -f conftest.undefs
15466 mv conftest.tail conftest.undefs
15467done
15468rm -f conftest.undefs
15469
15470cat >>$CONFIG_STATUS <<\_ACEOF
15471 # Let's still pretend it is `configure' which instantiates (i.e., don't
15472 # use $as_me), people would be surprised to read:
15473 # /* config.h. Generated by config.status. */
15474 if test x"$ac_file" = x-; then
15475 echo "/* Generated by configure. */" >$tmp/config.h
15476 else
15477 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15478 fi
15479 cat $tmp/in >>$tmp/config.h
15480 rm -f $tmp/in
15481 if test x"$ac_file" != x-; then
15482 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15483 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15484echo "$as_me: $ac_file is unchanged" >&6;}
15485 else
15486 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15487$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15488 X"$ac_file" : 'X\(//\)[^/]' \| \
15489 X"$ac_file" : 'X\(//\)$' \| \
15490 X"$ac_file" : 'X\(/\)' \| \
15491 . : '\(.\)' 2>/dev/null ||
15492echo X"$ac_file" |
15493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15495 /^X\(\/\/\)$/{ s//\1/; q; }
15496 /^X\(\/\).*/{ s//\1/; q; }
15497 s/.*/./; q'`
15498 { if $as_mkdir_p; then
15499 mkdir -p "$ac_dir"
15500 else
15501 as_dir="$ac_dir"
15502 as_dirs=
15503 while test ! -d "$as_dir"; do
15504 as_dirs="$as_dir $as_dirs"
15505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15507 X"$as_dir" : 'X\(//\)[^/]' \| \
15508 X"$as_dir" : 'X\(//\)$' \| \
15509 X"$as_dir" : 'X\(/\)' \| \
15510 . : '\(.\)' 2>/dev/null ||
15511echo X"$as_dir" |
15512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15514 /^X\(\/\/\)$/{ s//\1/; q; }
15515 /^X\(\/\).*/{ s//\1/; q; }
15516 s/.*/./; q'`
15517 done
15518 test ! -n "$as_dirs" || mkdir $as_dirs
15519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15520echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15521 { (exit 1); exit 1; }; }; }
15522
15523 rm -f $ac_file
15524 mv $tmp/config.h $ac_file
15525 fi
15526 else
15527 cat $tmp/config.h
15528 rm -f $tmp/config.h
15529 fi
15530done
15531_ACEOF
15532
15533cat >>$CONFIG_STATUS <<\_ACEOF
15534
15535{ (exit 0); exit 0; }
15536_ACEOF
15537chmod +x $CONFIG_STATUS
15538ac_clean_files=$ac_clean_files_save
15539
15540
15541# configure is writing to config.log, and then calls config.status.
15542# config.status does its own redirection, appending to config.log.
15543# Unfortunately, on DOS this fails, as config.log is still kept open
15544# by configure, so config.status won't be able to write to it; its
15545# output is simply discarded. So we exec the FD to /dev/null,
15546# effectively closing config.log, so it can be properly (re)opened and
15547# appended to by config.status. When coming back to configure, we
15548# need to make the FD available again.
15549if test "$no_create" != yes; then
15550 ac_cs_success=:
15551 ac_config_status_args=
15552 test "$silent" = yes &&
15553 ac_config_status_args="$ac_config_status_args --quiet"
15554 exec 5>/dev/null
15555 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15556 exec 5>>config.log
15557 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15558 # would make configure fail if this is the last instruction.
15559 $ac_cs_success || { (exit 1); exit 1; }
15560fi
15561
15562
15563if test "$cf_openssl_version_ok" = yes; then
15564 openssl="yes"
15565else
15566 openssl="no"
15567fi
15568
15569if test "$shared_modules" = yes; then
15570 modules=shared
15571else
15572 modules=static
15573fi
15574
15575echo "
15576Configuration:
15577 Install directory : $prefix
15578
15579 Ziplinks : $zlib
15580 OpenSSL : $openssl
15581 Modules : $modules
15582 IPv6 support : $have_v6
15583 Socket Engine : $SELECT_TYPE
15584 Small network : $small_net
15585 Block allocator : $balloc
15586 ASM hashing code : $ricer_hashing
15587
15588 Nickname length : $NICKLEN
15589 Topic length : $TOPICLEN
15590
15591Use make to compile Charybdis, then make install to install it.
15592"