]> jfr.im git - irc/rqf/shadowircd.git/blob - configure
[svn] Don't show the UID if a TS6 server sends a kick with
[irc/rqf/shadowircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for charybdis 2.2.0.
4 #
5 # $Id: configure 3165 2007-01-26 16:52:29Z jilles $
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
15 if 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+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for 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
45 do
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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo 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.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if 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
99 fi
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
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `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= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if 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
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_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.
233 as_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.
238 as_nl='
239 '
240 IFS=" $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.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${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.
270 PACKAGE_NAME='charybdis'
271 PACKAGE_TARNAME='charybdis'
272 PACKAGE_VERSION='2.2.0'
273 PACKAGE_STRING='charybdis 2.2.0'
274 PACKAGE_BUGREPORT=''
275
276 ac_default_prefix=$HOME/ircd
277 # Factoring default headers for most tests.
278 ac_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
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_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.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
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
629 Try \`$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
652 done
653
654 if 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; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
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
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
674 do
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
681 done
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.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if 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
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if 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 ||
717 echo 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
727 else
728 ac_srcdir_defaulted=no
729 fi
730 if 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
738 fi
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; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if 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
783 \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
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
806 Installation 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
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine 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
836 fi
837
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of charybdis 2.2.0:";;
841 esac
842 cat <<\_ACEOF
843
844 Optional 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
867 Optional 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
881 Some 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
890 Use these variables to override the choices made by `configure' or to help
891 it to find libraries and programs with nonstandard names/locations.
892
893 _ACEOF
894 fi
895
896 if 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
903 if 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'`
907 else
908 ac_dir_suffix= ac_top_builddir=
909 fi
910
911 case $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 ;;
925 esac
926
927 # Do not use `cd foo && pwd` to compute absolute paths, because
928 # the directories may not exist.
929 case `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;;
937 esac
938 case $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;;
946 esac
947 case $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;;
955 esac
956 case $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;;
964 esac
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
983 fi
984
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
987 cat <<\_ACEOF
988 charybdis configure 2.2.0
989 generated by GNU Autoconf 2.59
990
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
994
995 $Id: configure 3165 2007-01-26 16:52:29Z jilles $
996 _ACEOF
997 exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by charybdis $as_me 2.2.0, which was
1005 generated by GNU Autoconf 2.59. Invocation command line was
1006
1007 $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -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`
1028 hostinfo = `(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
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038 IFS=$as_save_IFS
1039 test -z "$as_dir" && as_dir=.
1040 echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&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.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
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
1102 done
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.
1111 trap '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
1185 for ac_signal in 1 2 13 15; do
1186 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>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.
1224 if 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
1230 fi
1231 for 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
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235 sed 's/^/| /' "$ac_site_file" >&5
1236 . "$ac_site_file"
1237 fi
1238 done
1239
1240 if 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
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246 case $cache_file in
1247 [\\/]* | ?:[\\/]* ) . $cache_file;;
1248 *) . ./$cache_file;;
1249 esac
1250 fi
1251 else
1252 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254 >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for 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
1269 echo "$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
1273 echo "$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
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1281 echo "$as_me: former value: $ac_old_val" >&2;}
1282 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1283 echo "$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
1299 done
1300 if $ac_cache_corrupted; then
1301 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$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
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305 { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_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
1347 cat >>confdefs.h <<\_ACEOF
1348 #define _GNU_SOURCE 1
1349 _ACEOF
1350
1351
1352
1353 OLD_CFLAGS="$CFLAGS"
1354 ac_ext=c
1355 ac_cpp='$CPP $CPPFLAGS'
1356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1359 if 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.
1361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1362 echo "$as_me:$LINENO: checking for $ac_word" >&5
1363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1364 if test "${ac_cv_prog_CC+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 if test -n "$CC"; then
1368 ac_cv_prog_CC="$CC" # Let the user override the test.
1369 else
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
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
1381 done
1382 done
1383
1384 fi
1385 fi
1386 CC=$ac_cv_prog_CC
1387 if test -n "$CC"; then
1388 echo "$as_me:$LINENO: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1390 else
1391 echo "$as_me:$LINENO: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1393 fi
1394
1395 fi
1396 if 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.
1399 set dummy gcc; ac_word=$2
1400 echo "$as_me:$LINENO: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405 if test -n "$ac_ct_CC"; then
1406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1407 else
1408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 for as_dir in $PATH
1410 do
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
1419 done
1420 done
1421
1422 fi
1423 fi
1424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1425 if test -n "$ac_ct_CC"; then
1426 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1427 echo "${ECHO_T}$ac_ct_CC" >&6
1428 else
1429 echo "$as_me:$LINENO: result: no" >&5
1430 echo "${ECHO_T}no" >&6
1431 fi
1432
1433 CC=$ac_ct_CC
1434 else
1435 CC="$ac_cv_prog_CC"
1436 fi
1437
1438 if 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.
1441 set dummy ${ac_tool_prefix}cc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
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
1461 done
1462 done
1463
1464 fi
1465 fi
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471 echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 fi
1476 if 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.
1479 set dummy cc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
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
1499 done
1500 done
1501
1502 fi
1503 fi
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 CC=$ac_ct_CC
1514 else
1515 CC="$ac_cv_prog_CC"
1516 fi
1517
1518 fi
1519 if test -z "$CC"; then
1520 # Extract the first word of "cc", so it can be a program name with args.
1521 set dummy cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 ac_prog_rejected=no
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
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
1546 done
1547 done
1548
1549 if 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
1560 fi
1561 fi
1562 fi
1563 CC=$ac_cv_prog_CC
1564 if test -n "$CC"; then
1565 echo "$as_me:$LINENO: result: $CC" >&5
1566 echo "${ECHO_T}$CC" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1570 fi
1571
1572 fi
1573 if 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.
1578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1579 echo "$as_me:$LINENO: checking for $ac_word" >&5
1580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581 if test "${ac_cv_prog_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 else
1584 if test -n "$CC"; then
1585 ac_cv_prog_CC="$CC" # Let the user override the test.
1586 else
1587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 for as_dir in $PATH
1589 do
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
1598 done
1599 done
1600
1601 fi
1602 fi
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612 test -n "$CC" && break
1613 done
1614 fi
1615 if test -z "$CC"; then
1616 ac_ct_CC=$CC
1617 for ac_prog in cl
1618 do
1619 # Extract the first word of "$ac_prog", so it can be a program name with args.
1620 set dummy $ac_prog; ac_word=$2
1621 echo "$as_me:$LINENO: checking for $ac_word" >&5
1622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626 if test -n "$ac_ct_CC"; then
1627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1628 else
1629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 for as_dir in $PATH
1631 do
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
1640 done
1641 done
1642
1643 fi
1644 fi
1645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1646 if test -n "$ac_ct_CC"; then
1647 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1648 echo "${ECHO_T}$ac_ct_CC" >&6
1649 else
1650 echo "$as_me:$LINENO: result: no" >&5
1651 echo "${ECHO_T}no" >&6
1652 fi
1653
1654 test -n "$ac_ct_CC" && break
1655 done
1656
1657 CC=$ac_ct_CC
1658 fi
1659
1660 fi
1661
1662
1663 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1664 See \`config.log' for more details." >&5
1665 echo "$as_me: error: no acceptable C compiler found in \$PATH
1666 See \`config.log' for more details." >&2;}
1667 { (exit 1); exit 1; }; }
1668
1669 # Provide some information about the compiler.
1670 echo "$as_me:$LINENO:" \
1671 "checking for C compiler version" >&5
1672 ac_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
1689 cat >conftest.$ac_ext <<_ACEOF
1690 /* confdefs.h. */
1691 _ACEOF
1692 cat confdefs.h >>conftest.$ac_ext
1693 cat >>conftest.$ac_ext <<_ACEOF
1694 /* end confdefs.h. */
1695
1696 int
1697 main ()
1698 {
1699
1700 ;
1701 return 0;
1702 }
1703 _ACEOF
1704 ac_clean_files_save=$ac_clean_files
1705 ac_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.
1709 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1710 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1711 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1712 if { (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.
1723 ac_cv_exeext=
1724 # b.out is created by i960 compilers.
1725 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1726 do
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
1748 done
1749 else
1750 echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1754 See \`config.log' for more details." >&5
1755 echo "$as_me: error: C compiler cannot create executables
1756 See \`config.log' for more details." >&2;}
1757 { (exit 77); exit 77; }; }
1758 fi
1759
1760 ac_exeext=$ac_cv_exeext
1761 echo "$as_me:$LINENO: result: $ac_file" >&5
1762 echo "${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.
1766 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1767 echo $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.
1770 if 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.
1783 If you meant to cross compile, use \`--host'.
1784 See \`config.log' for more details." >&5
1785 echo "$as_me: error: cannot run C compiled programs.
1786 If you meant to cross compile, use \`--host'.
1787 See \`config.log' for more details." >&2;}
1788 { (exit 1); exit 1; }; }
1789 fi
1790 fi
1791 fi
1792 echo "$as_me:$LINENO: result: yes" >&5
1793 echo "${ECHO_T}yes" >&6
1794
1795 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1796 ac_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.
1799 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1800 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1801 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1802 echo "${ECHO_T}$cross_compiling" >&6
1803
1804 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1805 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1806 if { (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'.
1815 for 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
1824 done
1825 else
1826 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1827 See \`config.log' for more details." >&5
1828 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1829 See \`config.log' for more details." >&2;}
1830 { (exit 1); exit 1; }; }
1831 fi
1832
1833 rm -f conftest$ac_cv_exeext
1834 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1835 echo "${ECHO_T}$ac_cv_exeext" >&6
1836
1837 rm -f conftest.$ac_ext
1838 EXEEXT=$ac_cv_exeext
1839 ac_exeext=$EXEEXT
1840 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1841 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1842 if test "${ac_cv_objext+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 else
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1851
1852 int
1853 main ()
1854 {
1855
1856 ;
1857 return 0;
1858 }
1859 _ACEOF
1860 rm -f conftest.o conftest.obj
1861 if { (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
1872 done
1873 else
1874 echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }
1882 fi
1883
1884 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1885 fi
1886 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1887 echo "${ECHO_T}$ac_cv_objext" >&6
1888 OBJEXT=$ac_cv_objext
1889 ac_objext=$OBJEXT
1890 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1891 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1892 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 cat >conftest.$ac_ext <<_ACEOF
1896 /* confdefs.h. */
1897 _ACEOF
1898 cat confdefs.h >>conftest.$ac_ext
1899 cat >>conftest.$ac_ext <<_ACEOF
1900 /* end confdefs.h. */
1901
1902 int
1903 main ()
1904 {
1905 #ifndef __GNUC__
1906 choke me
1907 #endif
1908
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 rm -f conftest.$ac_objext
1914 if { (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
1936 else
1937 echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 ac_compiler_gnu=no
1941 fi
1942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1943 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1944
1945 fi
1946 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1947 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948 GCC=`test $ac_compiler_gnu = yes && echo yes`
1949 ac_test_CFLAGS=${CFLAGS+set}
1950 ac_save_CFLAGS=$CFLAGS
1951 CFLAGS="-g"
1952 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1953 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954 if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 cat >conftest.$ac_ext <<_ACEOF
1958 /* confdefs.h. */
1959 _ACEOF
1960 cat confdefs.h >>conftest.$ac_ext
1961 cat >>conftest.$ac_ext <<_ACEOF
1962 /* end confdefs.h. */
1963
1964 int
1965 main ()
1966 {
1967
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 rm -f conftest.$ac_objext
1973 if { (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
1995 else
1996 echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999 ac_cv_prog_cc_g=no
2000 fi
2001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2002 fi
2003 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2004 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2005 if test "$ac_test_CFLAGS" = set; then
2006 CFLAGS=$ac_save_CFLAGS
2007 elif 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
2013 else
2014 if test "$GCC" = yes; then
2015 CFLAGS="-O2"
2016 else
2017 CFLAGS=
2018 fi
2019 fi
2020 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2021 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2022 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 ac_cv_prog_cc_stdc=no
2026 ac_save_CC=$CC
2027 cat >conftest.$ac_ext <<_ACEOF
2028 /* confdefs.h. */
2029 _ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>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. */
2038 struct buf { int x; };
2039 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2040 static char *e (p, i)
2041 char **p;
2042 int i;
2043 {
2044 return p[i];
2045 }
2046 static 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. */
2063 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2064
2065 int test (int i, double x);
2066 struct s1 {int (*f) (int a);};
2067 struct s2 {int (*f) (double a);};
2068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2069 int argc;
2070 char **argv;
2071 int
2072 main ()
2073 {
2074 return 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__
2086 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2087 do
2088 CC="$ac_save_CC $ac_arg"
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2092 ac_status=$?
2093 grep -v '^ *+' conftest.er1 >conftest.err
2094 rm -f conftest.er1
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag"
2099 || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 (eval $ac_try) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2111 ac_cv_prog_cc_stdc=$ac_arg
2112 break
2113 else
2114 echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2116
2117 fi
2118 rm -f conftest.err conftest.$ac_objext
2119 done
2120 rm -f conftest.$ac_ext conftest.$ac_objext
2121 CC=$ac_save_CC
2122
2123 fi
2124
2125 case "x$ac_cv_prog_cc_stdc" in
2126 x|xno)
2127 echo "$as_me:$LINENO: result: none needed" >&5
2128 echo "${ECHO_T}none needed" >&6 ;;
2129 *)
2130 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2131 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2132 CC="$CC $ac_cv_prog_cc_stdc" ;;
2133 esac
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.
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #ifndef __cplusplus
2141 choke me
2142 #endif
2143 _ACEOF
2144 rm -f conftest.$ac_objext
2145 if { (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);'
2173 do
2174 cat >conftest.$ac_ext <<_ACEOF
2175 /* confdefs.h. */
2176 _ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h. */
2180 $ac_declaration
2181 #include <stdlib.h>
2182 int
2183 main ()
2184 {
2185 exit (42);
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 rm -f conftest.$ac_objext
2191 if { (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 :
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 continue
2218 fi
2219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 cat >conftest.$ac_ext <<_ACEOF
2221 /* confdefs.h. */
2222 _ACEOF
2223 cat confdefs.h >>conftest.$ac_ext
2224 cat >>conftest.$ac_ext <<_ACEOF
2225 /* end confdefs.h. */
2226 $ac_declaration
2227 int
2228 main ()
2229 {
2230 exit (42);
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 rm -f conftest.$ac_objext
2236 if { (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
2258 else
2259 echo "$as_me: failed program was:" >&5
2260 sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 fi
2263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2264 done
2265 rm -f conftest*
2266 if test -n "$ac_declaration"; then
2267 echo '#ifdef __cplusplus' >>confdefs.h
2268 echo $ac_declaration >>confdefs.h
2269 echo '#endif' >>confdefs.h
2270 fi
2271
2272 else
2273 echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2275
2276 fi
2277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 ac_ext=c
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284 ac_ext=c
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291 CFLAGS="$OLD_CFLAGS"
2292
2293
2294 if test "$ac_cv_c_compiler_gnu" != yes; then
2295
2296 SGS=no
2297 echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2298 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6
2299 case `$CC -version 2>&1` in
2300 *TenDRA*)
2301 echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2302 echo "${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
2310 echo "${ECHO_T}yes, MIPSpro" >&6
2311 MIPSpro=yes
2312 SGS=yes
2313 ;;
2314 *)
2315 echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6
2317 TenDRA=no
2318 MIPSpro=no
2319 ;;
2320 esac
2321
2322 echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2323 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6
2324 case `$CC -V 2>&1` in
2325 *Sun*WorkShop* | *Forte*Developer*)
2326 echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2327 echo "${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
2334 echo "${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
2341 echo "${ECHO_T}HPUX cc" >&6
2342 HPUX=yes
2343 IRC_CFLAGS="+e"
2344 ;;
2345 *)
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 ;;
2349 esac
2350
2351 fi
2352
2353 echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2354 echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6
2355 OSNAME=`uname -s`
2356 case "$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
2361 echo "${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
2366 echo "${ECHO_T}already using newer HPUX" >&6
2367 fi
2368 ;;
2369 CYGWIN*)
2370 echo "$as_me:$LINENO: result: Cygwin" >&5
2371 echo "${ECHO_T}Cygwin" >&6
2372 CYGWIN=yes
2373 ;;
2374 SunOS*)
2375 echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2376 echo "${ECHO_T}SunOS or Solaris" >&6
2377
2378 cat >>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
2386 echo "${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
2391 echo "${ECHO_T}no" >&6
2392 ;;
2393 esac
2394
2395 if test "$ac_cv_c_compiler_gnu" = yes; then
2396 echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2397 echo $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
2402 echo "${ECHO_T}yes" >&6
2403 AppleGCC=yes
2404 ;;
2405 *)
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 AppleGCC=no
2409 ;;
2410 esac
2411
2412 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2413 fi
2414
2415 if 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
2421 fi
2422
2423 echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2424 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6
2425 if test "$SGS" = "yes"; then
2426 echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6
2428 else
2429 echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6
2431 fi
2432
2433 # Extract the first word of "mkdep", so it can be a program name with args.
2434 set dummy mkdep; ac_word=$2
2435 echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2437 if test "${ac_cv_path_MKDEP+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 else
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
2446 for as_dir in $PATH
2447 do
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
2456 done
2457 done
2458
2459 ;;
2460 esac
2461 fi
2462 MKDEP=$ac_cv_path_MKDEP
2463
2464 if test -n "$MKDEP"; then
2465 echo "$as_me:$LINENO: result: $MKDEP" >&5
2466 echo "${ECHO_T}$MKDEP" >&6
2467 else
2468 echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2470 fi
2471
2472 # Extract the first word of "makedepend", so it can be a program name with args.
2473 set dummy makedepend; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
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
2485 for as_dir in $PATH
2486 do
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
2495 done
2496 done
2497
2498 ;;
2499 esac
2500 fi
2501 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2502
2503 if test -n "$MAKEDEPEND"; then
2504 echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2505 echo "${ECHO_T}$MAKEDEPEND" >&6
2506 else
2507 echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6
2509 fi
2510
2511
2512 echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2513 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6
2514
2515 STDOUT="> .depend"
2516
2517 if test "$ac_cv_c_compiler_gnu" = yes; then
2518 echo "$as_me:$LINENO: result: gcc -MM" >&5
2519 echo "${ECHO_T}gcc -MM" >&6
2520 MKDEP="$CC -MM"
2521 elif test ! -z "$MKDEP"; then
2522 echo "$as_me:$LINENO: result: mkdep" >&5
2523 echo "${ECHO_T}mkdep" >&6
2524
2525 if test -z "$Tru"; then
2526 STDOUT=""
2527 else
2528 STDOUT=" 2> /dev/null"
2529 fi
2530 elif test "$SunWorkShop" = yes; then
2531 echo "$as_me:$LINENO: result: $CC -xM" >&5
2532 echo "${ECHO_T}$CC -xM" >&6
2533 MKDEP="$CC -xM"
2534 STDOUT="> .depend 2> /dev/null"
2535 elif test ! -z "$MAKEDEPEND"; then
2536 echo "$as_me:$LINENO: result: makedepend" >&5
2537 echo "${ECHO_T}makedepend" >&6
2538 MKDEP="$MAKEDEPEND -f-"
2539 else
2540 echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2541 echo "${ECHO_T}nothing suitable.. forget it!" >&6
2542 MKDEP=":"
2543 fi
2544
2545
2546
2547
2548 echo "$as_me:$LINENO: checking for /dev/null" >&5
2549 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6
2550 if test -c /dev/null ; then
2551
2552 cat >>confdefs.h <<\_ACEOF
2553 #define PATH_DEVNULL "/dev/null"
2554 _ACEOF
2555
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2558 else
2559
2560 cat >>confdefs.h <<\_ACEOF
2561 #define PATH_DEVNULL "devnull.log"
2562 _ACEOF
2563
2564 echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2565 echo "${ECHO_T}no - using devnull.log" >&6
2566 fi
2567
2568 if test ! -z "$CFLAGS"; then
2569 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2570 fi
2571
2572
2573 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2574 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2575 if test "${ac_cv_search_strerror+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 ac_func_search_save_LIBS=$LIBS
2579 ac_cv_search_strerror=no
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2586
2587 /* Override any gcc2 internal prototype to avoid an error. */
2588 #ifdef __cplusplus
2589 extern "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. */
2593 char strerror ();
2594 int
2595 main ()
2596 {
2597 strerror ();
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.$ac_objext conftest$ac_exeext
2603 if { (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"
2625 else
2626 echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 fi
2630 rm -f conftest.err conftest.$ac_objext \
2631 conftest$ac_exeext conftest.$ac_ext
2632 if 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
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2641
2642 /* Override any gcc2 internal prototype to avoid an error. */
2643 #ifdef __cplusplus
2644 extern "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. */
2648 char strerror ();
2649 int
2650 main ()
2651 {
2652 strerror ();
2653 ;
2654 return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext conftest$ac_exeext
2658 if { (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"
2680 break
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 fi
2686 rm -f conftest.err conftest.$ac_objext \
2687 conftest$ac_exeext conftest.$ac_ext
2688 done
2689 fi
2690 LIBS=$ac_func_search_save_LIBS
2691 fi
2692 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2693 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2694 if test "$ac_cv_search_strerror" != no; then
2695 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2696
2697 fi
2698
2699 echo "$as_me:$LINENO: checking for inline" >&5
2700 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2701 if test "${ac_cv_c_inline+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 ac_cv_c_inline=no
2705 for ac_kw in inline __inline__ __inline; do
2706 cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h. */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2712 #ifndef __cplusplus
2713 typedef int foo_t;
2714 static $ac_kw foo_t static_foo () {return 0; }
2715 $ac_kw foo_t foo () {return 0; }
2716 #endif
2717
2718 _ACEOF
2719 rm -f conftest.$ac_objext
2720 if { (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
2742 else
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748 done
2749
2750 fi
2751 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2752 echo "${ECHO_T}$ac_cv_c_inline" >&6
2753
2754
2755 case $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 ;;
2768 esac
2769
2770 ac_ext=c
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2776 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2777 # On Suns, sometimes $CPP names a directory.
2778 if test -n "$CPP" && test -d "$CPP"; then
2779 CPP=
2780 fi
2781 if test -z "$CPP"; then
2782 if test "${ac_cv_prog_CPP+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
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
2789 for ac_c_preproc_warn_flag in '' yes
2790 do
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
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>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
2810 if { (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
2824 else
2825 ac_cpp_err=yes
2826 fi
2827 if test -z "$ac_cpp_err"; then
2828 :
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 # Broken: fails on valid input.
2834 continue
2835 fi
2836 rm -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
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <ac_nonexistent.h>
2847 _ACEOF
2848 if { (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
2862 else
2863 ac_cpp_err=yes
2864 fi
2865 if test -z "$ac_cpp_err"; then
2866 # Broken: success on invalid input.
2867 continue
2868 else
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 # Passes both tests.
2873 ac_preproc_ok=:
2874 break
2875 fi
2876 rm -f conftest.err conftest.$ac_ext
2877
2878 done
2879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880 rm -f conftest.err conftest.$ac_ext
2881 if $ac_preproc_ok; then
2882 break
2883 fi
2884
2885 done
2886 ac_cv_prog_CPP=$CPP
2887
2888 fi
2889 CPP=$ac_cv_prog_CPP
2890 else
2891 ac_cv_prog_CPP=$CPP
2892 fi
2893 echo "$as_me:$LINENO: result: $CPP" >&5
2894 echo "${ECHO_T}$CPP" >&6
2895 ac_preproc_ok=false
2896 for ac_c_preproc_warn_flag in '' yes
2897 do
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
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>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
2917 if { (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
2931 else
2932 ac_cpp_err=yes
2933 fi
2934 if test -z "$ac_cpp_err"; then
2935 :
2936 else
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2939
2940 # Broken: fails on valid input.
2941 continue
2942 fi
2943 rm -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
2950 cat confdefs.h >>conftest.$ac_ext
2951 cat >>conftest.$ac_ext <<_ACEOF
2952 /* end confdefs.h. */
2953 #include <ac_nonexistent.h>
2954 _ACEOF
2955 if { (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
2969 else
2970 ac_cpp_err=yes
2971 fi
2972 if test -z "$ac_cpp_err"; then
2973 # Broken: success on invalid input.
2974 continue
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979 # Passes both tests.
2980 ac_preproc_ok=:
2981 break
2982 fi
2983 rm -f conftest.err conftest.$ac_ext
2984
2985 done
2986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2987 rm -f conftest.err conftest.$ac_ext
2988 if $ac_preproc_ok; then
2989 :
2990 else
2991 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2994 See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2996 fi
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005 echo "$as_me:$LINENO: checking for egrep" >&5
3006 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3007 if test "${ac_cv_prog_egrep+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
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
3014 fi
3015 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3016 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3017 EGREP=$ac_cv_prog_egrep
3018
3019
3020 if test $ac_cv_c_compiler_gnu = yes; then
3021 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3022 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3023 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 ac_pattern="Autoconf.*'x'"
3027 cat >conftest.$ac_ext <<_ACEOF
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033 #include <sgtty.h>
3034 Autoconf TIOCGETP
3035 _ACEOF
3036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3037 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3038 ac_cv_prog_gcc_traditional=yes
3039 else
3040 ac_cv_prog_gcc_traditional=no
3041 fi
3042 rm -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
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052 #include <termio.h>
3053 Autoconf TCGETA
3054 _ACEOF
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3057 ac_cv_prog_gcc_traditional=yes
3058 fi
3059 rm -f conftest*
3060
3061 fi
3062 fi
3063 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3064 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3065 if test $ac_cv_prog_gcc_traditional = yes; then
3066 CC="$CC -traditional"
3067 fi
3068 fi
3069
3070 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3072 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3073 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076 cat >conftest.make <<\_ACEOF
3077 all:
3078 @echo 'ac_maketemp="$(MAKE)"'
3079 _ACEOF
3080 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3081 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3082 if test -n "$ac_maketemp"; then
3083 eval ac_cv_prog_make_${ac_make}_set=yes
3084 else
3085 eval ac_cv_prog_make_${ac_make}_set=no
3086 fi
3087 rm -f conftest.make
3088 fi
3089 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3090 echo "$as_me:$LINENO: result: yes" >&5
3091 echo "${ECHO_T}yes" >&6
3092 SET_MAKE=
3093 else
3094 echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3096 SET_MAKE="MAKE=${MAKE-make}"
3097 fi
3098
3099 ac_aux_dir=
3100 for 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
3114 done
3115 if test -z "$ac_aux_dir"; then
3116 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3117 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3118 { (exit 1); exit 1; }; }
3119 fi
3120 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3121 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3122 ac_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.
3137 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3138 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3139 if test -z "$INSTALL"; then
3140 if test "${ac_cv_path_install+set}" = set; then
3141 echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 # Account for people who put trailing slashes in PATH elements.
3149 case $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 ;;
3177 esac
3178 done
3179
3180
3181 fi
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
3191 fi
3192 echo "$as_me:$LINENO: result: $INSTALL" >&5
3193 echo "${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.
3197 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3198
3199 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3200
3201 test -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.
3204 set dummy rm; ac_word=$2
3205 echo "$as_me:$LINENO: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_path_RM+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 else
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
3216 for as_dir in $PATH
3217 do
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
3226 done
3227 done
3228
3229 ;;
3230 esac
3231 fi
3232 RM=$ac_cv_path_RM
3233
3234 if test -n "$RM"; then
3235 echo "$as_me:$LINENO: result: $RM" >&5
3236 echo "${ECHO_T}$RM" >&6
3237 else
3238 echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6
3240 fi
3241
3242 # Extract the first word of "cp", so it can be a program name with args.
3243 set dummy cp; ac_word=$2
3244 echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246 if test "${ac_cv_path_CP+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
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
3255 for as_dir in $PATH
3256 do
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
3265 done
3266 done
3267
3268 ;;
3269 esac
3270 fi
3271 CP=$ac_cv_path_CP
3272
3273 if test -n "$CP"; then
3274 echo "$as_me:$LINENO: result: $CP" >&5
3275 echo "${ECHO_T}$CP" >&6
3276 else
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 fi
3280
3281 # Extract the first word of "mv", so it can be a program name with args.
3282 set dummy mv; ac_word=$2
3283 echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285 if test "${ac_cv_path_MV+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
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
3294 for as_dir in $PATH
3295 do
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
3304 done
3305 done
3306
3307 ;;
3308 esac
3309 fi
3310 MV=$ac_cv_path_MV
3311
3312 if test -n "$MV"; then
3313 echo "$as_me:$LINENO: result: $MV" >&5
3314 echo "${ECHO_T}$MV" >&6
3315 else
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3318 fi
3319
3320 # Extract the first word of "ln", so it can be a program name with args.
3321 set dummy ln; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_path_LN+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
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
3333 for as_dir in $PATH
3334 do
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
3343 done
3344 done
3345
3346 ;;
3347 esac
3348 fi
3349 LN=$ac_cv_path_LN
3350
3351 if test -n "$LN"; then
3352 echo "$as_me:$LINENO: result: $LN" >&5
3353 echo "${ECHO_T}$LN" >&6
3354 else
3355 echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3357 fi
3358
3359 # Extract the first word of "sed", so it can be a program name with args.
3360 set dummy sed; ac_word=$2
3361 echo "$as_me:$LINENO: checking for $ac_word" >&5
3362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3363 if test "${ac_cv_path_SED+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 else
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
3372 for as_dir in $PATH
3373 do
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
3382 done
3383 done
3384
3385 ;;
3386 esac
3387 fi
3388 SED=$ac_cv_path_SED
3389
3390 if test -n "$SED"; then
3391 echo "$as_me:$LINENO: result: $SED" >&5
3392 echo "${ECHO_T}$SED" >&6
3393 else
3394 echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396 fi
3397
3398 # Extract the first word of "ar", so it can be a program name with args.
3399 set dummy ar; ac_word=$2
3400 echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3402 if test "${ac_cv_path_AR+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
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
3411 for as_dir in $PATH
3412 do
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
3421 done
3422 done
3423
3424 ;;
3425 esac
3426 fi
3427 AR=$ac_cv_path_AR
3428
3429 if test -n "$AR"; then
3430 echo "$as_me:$LINENO: result: $AR" >&5
3431 echo "${ECHO_T}$AR" >&6
3432 else
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 fi
3436
3437 # Extract the first word of "ld", so it can be a program name with args.
3438 set dummy ld; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_path_LD+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
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
3450 for as_dir in $PATH
3451 do
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
3460 done
3461 done
3462
3463 ;;
3464 esac
3465 fi
3466 LD=$ac_cv_path_LD
3467
3468 if test -n "$LD"; then
3469 echo "$as_me:$LINENO: result: $LD" >&5
3470 echo "${ECHO_T}$LD" >&6
3471 else
3472 echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6
3474 fi
3475
3476 # Extract the first word of "ranlib", so it can be a program name with args.
3477 set dummy ranlib; ac_word=$2
3478 echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480 if test "${ac_cv_path_RANLIB+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
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
3489 for as_dir in $PATH
3490 do
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
3499 done
3500 done
3501
3502 ;;
3503 esac
3504 fi
3505 RANLIB=$ac_cv_path_RANLIB
3506
3507 if test -n "$RANLIB"; then
3508 echo "$as_me:$LINENO: result: $RANLIB" >&5
3509 echo "${ECHO_T}$RANLIB" >&6
3510 else
3511 echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3513 fi
3514
3515 # Extract the first word of "touch", so it can be a program name with args.
3516 set dummy touch; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_path_TOUCH+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
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
3528 for as_dir in $PATH
3529 do
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
3538 done
3539 done
3540
3541 ;;
3542 esac
3543 fi
3544 TOUCH=$ac_cv_path_TOUCH
3545
3546 if test -n "$TOUCH"; then
3547 echo "$as_me:$LINENO: result: $TOUCH" >&5
3548 echo "${ECHO_T}$TOUCH" >&6
3549 else
3550 echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3552 fi
3553
3554
3555 for ac_prog in 'bison -y' byacc
3556 do
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy $ac_prog; ac_word=$2
3559 echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3561 if test "${ac_cv_prog_YACC+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 if test -n "$YACC"; then
3565 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
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
3578 done
3579 done
3580
3581 fi
3582 fi
3583 YACC=$ac_cv_prog_YACC
3584 if test -n "$YACC"; then
3585 echo "$as_me:$LINENO: result: $YACC" >&5
3586 echo "${ECHO_T}$YACC" >&6
3587 else
3588 echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590 fi
3591
3592 test -n "$YACC" && break
3593 done
3594 test -n "$YACC" || YACC="yacc"
3595
3596
3597 if 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
3599 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
3600 { (exit 1); exit 1; }; }
3601 fi
3602
3603 for ac_prog in flex lex
3604 do
3605 # Extract the first word of "$ac_prog", so it can be a program name with args.
3606 set dummy $ac_prog; ac_word=$2
3607 echo "$as_me:$LINENO: checking for $ac_word" >&5
3608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3609 if test "${ac_cv_prog_LEX+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 if test -n "$LEX"; then
3613 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
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
3626 done
3627 done
3628
3629 fi
3630 fi
3631 LEX=$ac_cv_prog_LEX
3632 if test -n "$LEX"; then
3633 echo "$as_me:$LINENO: result: $LEX" >&5
3634 echo "${ECHO_T}$LEX" >&6
3635 else
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3638 fi
3639
3640 test -n "$LEX" && break
3641 done
3642 test -n "$LEX" || LEX=":"
3643
3644 if test -z "$LEXLIB"
3645 then
3646 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3647 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3648 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651 ac_check_lib_save_LIBS=$LIBS
3652 LIBS="-lfl $LIBS"
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h. */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3659
3660 /* Override any gcc2 internal prototype to avoid an error. */
3661 #ifdef __cplusplus
3662 extern "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. */
3666 char yywrap ();
3667 int
3668 main ()
3669 {
3670 yywrap ();
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.$ac_objext conftest$ac_exeext
3676 if { (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
3698 else
3699 echo "$as_me: failed program was:" >&5
3700 sed 's/^/| /' conftest.$ac_ext >&5
3701
3702 ac_cv_lib_fl_yywrap=no
3703 fi
3704 rm -f conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext conftest.$ac_ext
3706 LIBS=$ac_check_lib_save_LIBS
3707 fi
3708 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3709 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3710 if test $ac_cv_lib_fl_yywrap = yes; then
3711 LEXLIB="-lfl"
3712 else
3713 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3714 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3715 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 ac_check_lib_save_LIBS=$LIBS
3719 LIBS="-ll $LIBS"
3720 cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h. */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726
3727 /* Override any gcc2 internal prototype to avoid an error. */
3728 #ifdef __cplusplus
3729 extern "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. */
3733 char yywrap ();
3734 int
3735 main ()
3736 {
3737 yywrap ();
3738 ;
3739 return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.$ac_objext conftest$ac_exeext
3743 if { (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
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 ac_cv_lib_l_yywrap=no
3770 fi
3771 rm -f conftest.err conftest.$ac_objext \
3772 conftest$ac_exeext conftest.$ac_ext
3773 LIBS=$ac_check_lib_save_LIBS
3774 fi
3775 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3776 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3777 if test $ac_cv_lib_l_yywrap = yes; then
3778 LEXLIB="-ll"
3779 fi
3780
3781 fi
3782
3783 fi
3784
3785 if test "x$LEX" != "x:"; then
3786 echo "$as_me:$LINENO: checking lex output file root" >&5
3787 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3788 if test "${ac_cv_prog_lex_root+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
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.
3793 cat >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); }
3802 if test -f lex.yy.c; then
3803 ac_cv_prog_lex_root=lex.yy
3804 elif test -f lexyy.c; then
3805 ac_cv_prog_lex_root=lexyy
3806 else
3807 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3808 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3809 { (exit 1); exit 1; }; }
3810 fi
3811 fi
3812 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3813 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3814 rm -f conftest.l
3815 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3816
3817 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3818 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3819 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
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.
3825 ac_cv_prog_lex_yytext_pointer=no
3826 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3827 ac_save_LIBS=$LIBS
3828 LIBS="$LIBS $LEXLIB"
3829 cat >conftest.$ac_ext <<_ACEOF
3830 `cat $LEX_OUTPUT_ROOT.c`
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (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
3855 else
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3858
3859 fi
3860 rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_save_LIBS
3863 rm -f "${LEX_OUTPUT_ROOT}.c"
3864
3865 fi
3866 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3867 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3868 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3869
3870 cat >>confdefs.h <<\_ACEOF
3871 #define YYTEXT_POINTER 1
3872 _ACEOF
3873
3874 fi
3875
3876 fi
3877
3878 if test "$LEX" = ":"; then
3879 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
3880 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
3881 { (exit 1); exit 1; }; }
3882 fi
3883
3884 if test "$libexecdir" = '${exec_prefix}/libexec' &&
3885 test "$localstatedir" = '${prefix}/var'; then
3886 libexecdir='${bindir}'
3887 localstatedir='${prefix}'
3888 fi
3889
3890 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3891 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3892 if test "${ac_cv_header_stdc+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 cat >conftest.$ac_ext <<_ACEOF
3896 /* confdefs.h. */
3897 _ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>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
3906 int
3907 main ()
3908 {
3909
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (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
3937 else
3938 echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_cv_header_stdc=no
3942 fi
3943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3944
3945 if 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
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <string.h>
3954
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 $EGREP "memchr" >/dev/null 2>&1; then
3958 :
3959 else
3960 ac_cv_header_stdc=no
3961 fi
3962 rm -f conftest*
3963
3964 fi
3965
3966 if 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
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3974 #include <stdlib.h>
3975
3976 _ACEOF
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "free" >/dev/null 2>&1; then
3979 :
3980 else
3981 ac_cv_header_stdc=no
3982 fi
3983 rm -f conftest*
3984
3985 fi
3986
3987 if 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 :
3991 else
3992 cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h. */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>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)))
4011 int
4012 main ()
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
4022 rm -f conftest$ac_exeext
4023 if { (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 :
4034 else
4035 echo "$as_me: program exited with status $ac_status" >&5
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 ( exit $ac_status )
4040 ac_cv_header_stdc=no
4041 fi
4042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 fi
4045 fi
4046 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4047 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4048 if test $ac_cv_header_stdc = yes; then
4049
4050 cat >>confdefs.h <<\_ACEOF
4051 #define STDC_HEADERS 1
4052 _ACEOF
4053
4054 fi
4055
4056
4057 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4068 inttypes.h stdint.h unistd.h
4069 do
4070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4071 echo "$as_me:$LINENO: checking for $ac_header" >&5
4072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076 cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h. */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4083
4084 #include <$ac_header>
4085 _ACEOF
4086 rm -f conftest.$ac_objext
4087 if { (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"
4109 else
4110 echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113 eval "$as_ac_Header=no"
4114 fi
4115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4116 fi
4117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4119 if 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
4124 fi
4125
4126 done
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140 for 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
4141 do
4142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4144 echo "$as_me:$LINENO: checking for $ac_header" >&5
4145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 fi
4149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4151 else
4152 # Is the header compilable?
4153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 $ac_includes_default
4162 #include <$ac_header>
4163 _ACEOF
4164 rm -f conftest.$ac_objext
4165 if { (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
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 ac_header_compiler=no
4192 fi
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4195 echo "${ECHO_T}$ac_header_compiler" >&6
4196
4197 # Is the header present?
4198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <$ac_header>
4207 _ACEOF
4208 if { (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
4222 else
4223 ac_cpp_err=yes
4224 fi
4225 if test -z "$ac_cpp_err"; then
4226 ac_header_preproc=yes
4227 else
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 ac_header_preproc=no
4232 fi
4233 rm -f conftest.err conftest.$ac_ext
4234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4235 echo "${ECHO_T}$ac_header_preproc" >&6
4236
4237 # So? What about this header?
4238 case $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
4241 echo "$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
4243 echo "$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
4248 echo "$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
4250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4252 echo "$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
4254 echo "$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
4256 echo "$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
4258 echo "$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 ;;
4268 esac
4269 echo "$as_me:$LINENO: checking for $ac_header" >&5
4270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 eval "$as_ac_Header=\$ac_header_preproc"
4275 fi
4276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4278
4279 fi
4280 if 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
4285 fi
4286
4287 done
4288
4289
4290
4291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4293 if test "${ac_cv_c_const+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302
4303 int
4304 main ()
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
4357 rm -f conftest.$ac_objext
4358 if { (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
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 ac_cv_c_const=no
4385 fi
4386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4387 fi
4388 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4389 echo "${ECHO_T}$ac_cv_c_const" >&6
4390 if test $ac_cv_c_const = no; then
4391
4392 cat >>confdefs.h <<\_ACEOF
4393 #define const
4394 _ACEOF
4395
4396 fi
4397
4398 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4399 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4400 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4401 if test "${ac_cv_c_bigendian+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 # See if sys/param.h defines the BYTE_ORDER macro.
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 #include <sys/types.h>
4412 #include <sys/param.h>
4413
4414 int
4415 main ()
4416 {
4417 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4418 bogus endian macros
4419 #endif
4420
4421 ;
4422 return 0;
4423 }
4424 _ACEOF
4425 rm -f conftest.$ac_objext
4426 if { (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.
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h. */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4454 #include <sys/types.h>
4455 #include <sys/param.h>
4456
4457 int
4458 main ()
4459 {
4460 #if BYTE_ORDER != BIG_ENDIAN
4461 not big endian
4462 #endif
4463
4464 ;
4465 return 0;
4466 }
4467 _ACEOF
4468 rm -f conftest.$ac_objext
4469 if { (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
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 ac_cv_c_bigendian=no
4496 fi
4497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 # It does not; compile a test program.
4503 if 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
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4513 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4514 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4515 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4516 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4517 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4518 int
4519 main ()
4520 {
4521 _ascii (); _ebcdic ();
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (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
4550 fi
4551 if 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
4558 fi
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563 fi
4564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4565 else
4566 cat >conftest.$ac_ext <<_ACEOF
4567 /* confdefs.h. */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 int
4573 main ()
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
4585 rm -f conftest$ac_exeext
4586 if { (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
4597 else
4598 echo "$as_me: program exited with status $ac_status" >&5
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ( exit $ac_status )
4603 ac_cv_c_bigendian=yes
4604 fi
4605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 fi
4608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 fi
4610 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4611 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4612 case $ac_cv_c_bigendian in
4613 yes)
4614
4615 cat >>confdefs.h <<\_ACEOF
4616 #define WORDS_BIGENDIAN 1
4617 _ACEOF
4618 ;;
4619 no)
4620 ;;
4621 *)
4622 { { echo "$as_me:$LINENO: error: unknown endianness
4623 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4624 echo "$as_me: error: unknown endianness
4625 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4626 { (exit 1); exit 1; }; } ;;
4627 esac
4628
4629 fi
4630 echo "$as_me:$LINENO: checking for pid_t" >&5
4631 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4632 if test "${ac_cv_type_pid_t+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 $ac_includes_default
4642 int
4643 main ()
4644 {
4645 if ((pid_t *) 0)
4646 return 0;
4647 if (sizeof (pid_t))
4648 return 0;
4649 ;
4650 return 0;
4651 }
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (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
4676 else
4677 echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680 ac_cv_type_pid_t=no
4681 fi
4682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683 fi
4684 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4685 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4686 if test $ac_cv_type_pid_t = yes; then
4687 :
4688 else
4689
4690 cat >>confdefs.h <<_ACEOF
4691 #define pid_t int
4692 _ACEOF
4693
4694 fi
4695
4696 echo "$as_me:$LINENO: checking for size_t" >&5
4697 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4698 if test "${ac_cv_type_size_t+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 $ac_includes_default
4708 int
4709 main ()
4710 {
4711 if ((size_t *) 0)
4712 return 0;
4713 if (sizeof (size_t))
4714 return 0;
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 rm -f conftest.$ac_objext
4720 if { (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
4742 else
4743 echo "$as_me: failed program was:" >&5
4744 sed 's/^/| /' conftest.$ac_ext >&5
4745
4746 ac_cv_type_size_t=no
4747 fi
4748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4751 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4752 if test $ac_cv_type_size_t = yes; then
4753 :
4754 else
4755
4756 cat >>confdefs.h <<_ACEOF
4757 #define size_t unsigned
4758 _ACEOF
4759
4760 fi
4761
4762 echo "$as_me:$LINENO: checking for short" >&5
4763 echo $ECHO_N "checking for short... $ECHO_C" >&6
4764 if test "${ac_cv_type_short+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_includes_default
4774 int
4775 main ()
4776 {
4777 if ((short *) 0)
4778 return 0;
4779 if (sizeof (short))
4780 return 0;
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (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
4808 else
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812 ac_cv_type_short=no
4813 fi
4814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4817 echo "${ECHO_T}$ac_cv_type_short" >&6
4818
4819 echo "$as_me:$LINENO: checking size of short" >&5
4820 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4821 if test "${ac_cv_sizeof_short+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
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.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 $ac_includes_default
4838 int
4839 main ()
4840 {
4841 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4842 test_array [0] = 0
4843
4844 ;
4845 return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (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
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 $ac_includes_default
4879 int
4880 main ()
4881 {
4882 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4883 test_array [0] = 0
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (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
4912 else
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4915
4916 ac_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`
4922 fi
4923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4924 done
4925 else
4926 echo "$as_me: failed program was:" >&5
4927 sed 's/^/| /' conftest.$ac_ext >&5
4928
4929 cat >conftest.$ac_ext <<_ACEOF
4930 /* confdefs.h. */
4931 _ACEOF
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4935 $ac_includes_default
4936 int
4937 main ()
4938 {
4939 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4940 test_array [0] = 0
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 rm -f conftest.$ac_objext
4947 if { (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
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 $ac_includes_default
4977 int
4978 main ()
4979 {
4980 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4981 test_array [0] = 0
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 rm -f conftest.$ac_objext
4988 if { (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
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_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`
5020 fi
5021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5022 done
5023 else
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027 ac_lo= ac_hi=
5028 fi
5029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5030 fi
5031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5032 # Binary search between lo and hi bounds.
5033 while 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
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042 int
5043 main ()
5044 {
5045 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5046 test_array [0] = 0
5047
5048 ;
5049 return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (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
5075 else
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 ac_lo=`expr '(' $ac_mid ')' + 1`
5080 fi
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 done
5083 case $ac_lo in
5084 ?*) ac_cv_sizeof_short=$ac_lo;;
5085 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5086 See \`config.log' for more details." >&5
5087 echo "$as_me: error: cannot compute sizeof (short), 77
5088 See \`config.log' for more details." >&2;}
5089 { (exit 1); exit 1; }; } ;;
5090 esac
5091 else
5092 if test "$cross_compiling" = yes; then
5093 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5094 See \`config.log' for more details." >&5
5095 echo "$as_me: error: cannot run test program while cross compiling
5096 See \`config.log' for more details." >&2;}
5097 { (exit 1); exit 1; }; }
5098 else
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106 long longval () { return (long) (sizeof (short)); }
5107 unsigned long ulongval () { return (long) (sizeof (short)); }
5108 #include <stdio.h>
5109 #include <stdlib.h>
5110 int
5111 main ()
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
5137 rm -f conftest$ac_exeext
5138 if { (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`
5149 else
5150 echo "$as_me: program exited with status $ac_status" >&5
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154 ( exit $ac_status )
5155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5156 See \`config.log' for more details." >&5
5157 echo "$as_me: error: cannot compute sizeof (short), 77
5158 See \`config.log' for more details." >&2;}
5159 { (exit 1); exit 1; }; }
5160 fi
5161 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5162 fi
5163 fi
5164 rm -f conftest.val
5165 else
5166 ac_cv_sizeof_short=0
5167 fi
5168 fi
5169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5170 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5171 cat >>confdefs.h <<_ACEOF
5172 #define SIZEOF_SHORT $ac_cv_sizeof_short
5173 _ACEOF
5174
5175
5176 echo "$as_me:$LINENO: checking for int" >&5
5177 echo $ECHO_N "checking for int... $ECHO_C" >&6
5178 if test "${ac_cv_type_int+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_includes_default
5188 int
5189 main ()
5190 {
5191 if ((int *) 0)
5192 return 0;
5193 if (sizeof (int))
5194 return 0;
5195 ;
5196 return 0;
5197 }
5198 _ACEOF
5199 rm -f conftest.$ac_objext
5200 if { (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
5222 else
5223 echo "$as_me: failed program was:" >&5
5224 sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 ac_cv_type_int=no
5227 fi
5228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5229 fi
5230 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5231 echo "${ECHO_T}$ac_cv_type_int" >&6
5232
5233 echo "$as_me:$LINENO: checking size of int" >&5
5234 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5235 if test "${ac_cv_sizeof_int+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
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.
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251 $ac_includes_default
5252 int
5253 main ()
5254 {
5255 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5256 test_array [0] = 0
5257
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (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
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 $ac_includes_default
5293 int
5294 main ()
5295 {
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5297 test_array [0] = 0
5298
5299 ;
5300 return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (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
5326 else
5327 echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 ac_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`
5336 fi
5337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5338 done
5339 else
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 cat >conftest.$ac_ext <<_ACEOF
5344 /* confdefs.h. */
5345 _ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 $ac_includes_default
5350 int
5351 main ()
5352 {
5353 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5354 test_array [0] = 0
5355
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (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
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5391 int
5392 main ()
5393 {
5394 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5395 test_array [0] = 0
5396
5397 ;
5398 return 0;
5399 }
5400 _ACEOF
5401 rm -f conftest.$ac_objext
5402 if { (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
5424 else
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_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`
5434 fi
5435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5436 done
5437 else
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441 ac_lo= ac_hi=
5442 fi
5443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5446 # Binary search between lo and hi bounds.
5447 while 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
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455 $ac_includes_default
5456 int
5457 main ()
5458 {
5459 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5460 test_array [0] = 0
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (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
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_lo=`expr '(' $ac_mid ')' + 1`
5494 fi
5495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5496 done
5497 case $ac_lo in
5498 ?*) ac_cv_sizeof_int=$ac_lo;;
5499 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5500 See \`config.log' for more details." >&5
5501 echo "$as_me: error: cannot compute sizeof (int), 77
5502 See \`config.log' for more details." >&2;}
5503 { (exit 1); exit 1; }; } ;;
5504 esac
5505 else
5506 if test "$cross_compiling" = yes; then
5507 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5508 See \`config.log' for more details." >&5
5509 echo "$as_me: error: cannot run test program while cross compiling
5510 See \`config.log' for more details." >&2;}
5511 { (exit 1); exit 1; }; }
5512 else
5513 cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h. */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 $ac_includes_default
5520 long longval () { return (long) (sizeof (int)); }
5521 unsigned long ulongval () { return (long) (sizeof (int)); }
5522 #include <stdio.h>
5523 #include <stdlib.h>
5524 int
5525 main ()
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
5551 rm -f conftest$ac_exeext
5552 if { (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`
5563 else
5564 echo "$as_me: program exited with status $ac_status" >&5
5565 echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5567
5568 ( exit $ac_status )
5569 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5570 See \`config.log' for more details." >&5
5571 echo "$as_me: error: cannot compute sizeof (int), 77
5572 See \`config.log' for more details." >&2;}
5573 { (exit 1); exit 1; }; }
5574 fi
5575 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5576 fi
5577 fi
5578 rm -f conftest.val
5579 else
5580 ac_cv_sizeof_int=0
5581 fi
5582 fi
5583 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5584 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5585 cat >>confdefs.h <<_ACEOF
5586 #define SIZEOF_INT $ac_cv_sizeof_int
5587 _ACEOF
5588
5589
5590 echo "$as_me:$LINENO: checking for long" >&5
5591 echo $ECHO_N "checking for long... $ECHO_C" >&6
5592 if test "${ac_cv_type_long+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 $ac_includes_default
5602 int
5603 main ()
5604 {
5605 if ((long *) 0)
5606 return 0;
5607 if (sizeof (long))
5608 return 0;
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (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
5636 else
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 ac_cv_type_long=no
5641 fi
5642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5645 echo "${ECHO_T}$ac_cv_type_long" >&6
5646
5647 echo "$as_me:$LINENO: checking size of long" >&5
5648 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5649 if test "${ac_cv_sizeof_long+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
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.
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 $ac_includes_default
5666 int
5667 main ()
5668 {
5669 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5670 test_array [0] = 0
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (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
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 $ac_includes_default
5707 int
5708 main ()
5709 {
5710 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5711 test_array [0] = 0
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (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
5740 else
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744 ac_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`
5750 fi
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 done
5753 else
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5763 $ac_includes_default
5764 int
5765 main ()
5766 {
5767 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5768 test_array [0] = 0
5769
5770 ;
5771 return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (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
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5809 test_array [0] = 0
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (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
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_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`
5848 fi
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850 done
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_lo= ac_hi=
5856 fi
5857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5860 # Binary search between lo and hi bounds.
5861 while 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
5866 cat confdefs.h >>conftest.$ac_ext
5867 cat >>conftest.$ac_ext <<_ACEOF
5868 /* end confdefs.h. */
5869 $ac_includes_default
5870 int
5871 main ()
5872 {
5873 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5874 test_array [0] = 0
5875
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 rm -f conftest.$ac_objext
5881 if { (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
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_lo=`expr '(' $ac_mid ')' + 1`
5908 fi
5909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910 done
5911 case $ac_lo in
5912 ?*) ac_cv_sizeof_long=$ac_lo;;
5913 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5914 See \`config.log' for more details." >&5
5915 echo "$as_me: error: cannot compute sizeof (long), 77
5916 See \`config.log' for more details." >&2;}
5917 { (exit 1); exit 1; }; } ;;
5918 esac
5919 else
5920 if test "$cross_compiling" = yes; then
5921 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5922 See \`config.log' for more details." >&5
5923 echo "$as_me: error: cannot run test program while cross compiling
5924 See \`config.log' for more details." >&2;}
5925 { (exit 1); exit 1; }; }
5926 else
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 long longval () { return (long) (sizeof (long)); }
5935 unsigned long ulongval () { return (long) (sizeof (long)); }
5936 #include <stdio.h>
5937 #include <stdlib.h>
5938 int
5939 main ()
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
5965 rm -f conftest$ac_exeext
5966 if { (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`
5977 else
5978 echo "$as_me: program exited with status $ac_status" >&5
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982 ( exit $ac_status )
5983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5984 See \`config.log' for more details." >&5
5985 echo "$as_me: error: cannot compute sizeof (long), 77
5986 See \`config.log' for more details." >&2;}
5987 { (exit 1); exit 1; }; }
5988 fi
5989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5990 fi
5991 fi
5992 rm -f conftest.val
5993 else
5994 ac_cv_sizeof_long=0
5995 fi
5996 fi
5997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5998 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5999 cat >>confdefs.h <<_ACEOF
6000 #define SIZEOF_LONG $ac_cv_sizeof_long
6001 _ACEOF
6002
6003
6004 echo "$as_me:$LINENO: checking for long long" >&5
6005 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6006 if test "${ac_cv_type_long_long+set}" = set; then
6007 echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009 cat >conftest.$ac_ext <<_ACEOF
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6016 int
6017 main ()
6018 {
6019 if ((long long *) 0)
6020 return 0;
6021 if (sizeof (long long))
6022 return 0;
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (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
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6053
6054 ac_cv_type_long_long=no
6055 fi
6056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6059 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6060
6061 echo "$as_me:$LINENO: checking size of long long" >&5
6062 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6063 if test "${ac_cv_sizeof_long_long+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
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.
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 $ac_includes_default
6080 int
6081 main ()
6082 {
6083 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6084 test_array [0] = 0
6085
6086 ;
6087 return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext
6091 if { (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
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */
6120 $ac_includes_default
6121 int
6122 main ()
6123 {
6124 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6125 test_array [0] = 0
6126
6127 ;
6128 return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (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
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_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`
6164 fi
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6166 done
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 $ac_includes_default
6178 int
6179 main ()
6180 {
6181 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6182 test_array [0] = 0
6183
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (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
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 $ac_includes_default
6219 int
6220 main ()
6221 {
6222 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6223 test_array [0] = 0
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (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
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_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`
6262 fi
6263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264 done
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_lo= ac_hi=
6270 fi
6271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6272 fi
6273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274 # Binary search between lo and hi bounds.
6275 while 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
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 $ac_includes_default
6284 int
6285 main ()
6286 {
6287 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6288 test_array [0] = 0
6289
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (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
6317 else
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ac_lo=`expr '(' $ac_mid ')' + 1`
6322 fi
6323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324 done
6325 case $ac_lo in
6326 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6328 See \`config.log' for more details." >&5
6329 echo "$as_me: error: cannot compute sizeof (long long), 77
6330 See \`config.log' for more details." >&2;}
6331 { (exit 1); exit 1; }; } ;;
6332 esac
6333 else
6334 if test "$cross_compiling" = yes; then
6335 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot run test program while cross compiling
6338 See \`config.log' for more details." >&2;}
6339 { (exit 1); exit 1; }; }
6340 else
6341 cat >conftest.$ac_ext <<_ACEOF
6342 /* confdefs.h. */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h. */
6347 $ac_includes_default
6348 long longval () { return (long) (sizeof (long long)); }
6349 unsigned long ulongval () { return (long) (sizeof (long long)); }
6350 #include <stdio.h>
6351 #include <stdlib.h>
6352 int
6353 main ()
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
6379 rm -f conftest$ac_exeext
6380 if { (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`
6391 else
6392 echo "$as_me: program exited with status $ac_status" >&5
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ( exit $ac_status )
6397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6398 See \`config.log' for more details." >&5
6399 echo "$as_me: error: cannot compute sizeof (long long), 77
6400 See \`config.log' for more details." >&2;}
6401 { (exit 1); exit 1; }; }
6402 fi
6403 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6404 fi
6405 fi
6406 rm -f conftest.val
6407 else
6408 ac_cv_sizeof_long_long=0
6409 fi
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6412 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6413 cat >>confdefs.h <<_ACEOF
6414 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6415 _ACEOF
6416
6417
6418
6419
6420 echo "$as_me:$LINENO: checking the system's memory page size" >&5
6421 echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6
6422 pagesize="no"
6423 if test "$cross_compiling" = yes; then
6424 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6425 See \`config.log' for more details." >&5
6426 echo "$as_me: error: cannot run test program while cross compiling
6427 See \`config.log' for more details." >&2;}
6428 { (exit 1); exit 1; }; }
6429 else
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>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
6442 int 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
6453 rm -f conftest$ac_exeext
6454 if { (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
6465 if test -f "conftest.malloc" ; then
6466 pagesize=`cat conftest.malloc`
6467 fi
6468
6469 else
6470 echo "$as_me: program exited with status $ac_status" >&5
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 fi
6475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6476 fi
6477 if test "$pagesize" != "no" ; then
6478 echo "$as_me:$LINENO: result: $pagesize" >&5
6479 echo "${ECHO_T}$pagesize" >&6
6480 else
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
6487 echo "${ECHO_T}$pagesize (guessing)" >&6
6488 fi
6489
6490 cat >>confdefs.h <<_ACEOF
6491 #define MALLOC_PAGESIZE $pagesize
6492 _ACEOF
6493
6494
6495
6496 echo "$as_me:$LINENO: checking for library containing socket" >&5
6497 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
6498 if test "${ac_cv_search_socket+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501 ac_func_search_save_LIBS=$LIBS
6502 ac_cv_search_socket=no
6503 cat >conftest.$ac_ext <<_ACEOF
6504 /* confdefs.h. */
6505 _ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 #ifdef __cplusplus
6512 extern "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. */
6516 char socket ();
6517 int
6518 main ()
6519 {
6520 socket ();
6521 ;
6522 return 0;
6523 }
6524 _ACEOF
6525 rm -f conftest.$ac_objext conftest$ac_exeext
6526 if { (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"
6548 else
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 fi
6553 rm -f conftest.err conftest.$ac_objext \
6554 conftest$ac_exeext conftest.$ac_ext
6555 if 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
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564
6565 /* Override any gcc2 internal prototype to avoid an error. */
6566 #ifdef __cplusplus
6567 extern "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. */
6571 char socket ();
6572 int
6573 main ()
6574 {
6575 socket ();
6576 ;
6577 return 0;
6578 }
6579 _ACEOF
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (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"
6603 break
6604 else
6605 echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6607
6608 fi
6609 rm -f conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6611 done
6612 fi
6613 LIBS=$ac_func_search_save_LIBS
6614 fi
6615 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6616 echo "${ECHO_T}$ac_cv_search_socket" >&6
6617 if test "$ac_cv_search_socket" != no; then
6618 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
6619
6620 else
6621 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6622 echo "$as_me: error: You have no socket()! Aborting." >&2;}
6623 { (exit 1); exit 1; }; }
6624 fi
6625
6626
6627 if test x"$SUN" = xyes; then
6628 echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6629 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6
6630 if test "${ac_cv_search_inet_ntoa+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 ac_func_search_save_LIBS=$LIBS
6634 ac_cv_search_inet_ntoa=no
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 #ifdef __cplusplus
6644 extern "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. */
6648 char inet_ntoa ();
6649 int
6650 main ()
6651 {
6652 inet_ntoa ();
6653 ;
6654 return 0;
6655 }
6656 _ACEOF
6657 rm -f conftest.$ac_objext conftest$ac_exeext
6658 if { (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"
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 fi
6685 rm -f conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
6687 if 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
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696
6697 /* Override any gcc2 internal prototype to avoid an error. */
6698 #ifdef __cplusplus
6699 extern "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. */
6703 char inet_ntoa ();
6704 int
6705 main ()
6706 {
6707 inet_ntoa ();
6708 ;
6709 return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (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"
6735 break
6736 else
6737 echo "$as_me: failed program was:" >&5
6738 sed 's/^/| /' conftest.$ac_ext >&5
6739
6740 fi
6741 rm -f conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
6743 done
6744 fi
6745 LIBS=$ac_func_search_save_LIBS
6746 fi
6747 echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
6748 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6
6749 if 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
6752 else
6753 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
6754 echo "$as_me: error: libnsl not found! Aborting." >&2;}
6755 { (exit 1); exit 1; }; }
6756 fi
6757
6758 fi
6759
6760 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
6761 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
6762 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <sys/types.h>
6772 #include <sys/socket.h>
6773
6774
6775 int
6776 main ()
6777 {
6778 static struct sockaddr ac_aggr;
6779 if (ac_aggr.sa_len)
6780 return 0;
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (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
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6817 /* end confdefs.h. */
6818 #include <sys/types.h>
6819 #include <sys/socket.h>
6820
6821
6822 int
6823 main ()
6824 {
6825 static struct sockaddr ac_aggr;
6826 if (sizeof ac_aggr.sa_len)
6827 return 0;
6828 ;
6829 return 0;
6830 }
6831 _ACEOF
6832 rm -f conftest.$ac_objext
6833 if { (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
6855 else
6856 echo "$as_me: failed program was:" >&5
6857 sed 's/^/| /' conftest.$ac_ext >&5
6858
6859 ac_cv_member_struct_sockaddr_sa_len=no
6860 fi
6861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6862 fi
6863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6864 fi
6865 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
6866 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
6867 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
6868
6869 cat >>confdefs.h <<\_ACEOF
6870 #define SOCKADDR_IN_HAS_LEN 1
6871 _ACEOF
6872
6873 fi
6874
6875
6876 echo "$as_me:$LINENO: checking for socklen_t" >&5
6877 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
6878 if test "${ac_cv_type_socklen_t+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6888 #include <sys/socket.h>
6889
6890 int
6891 main ()
6892 {
6893 if ((socklen_t *) 0)
6894 return 0;
6895 if (sizeof (socklen_t))
6896 return 0;
6897 ;
6898 return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (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
6924 else
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ac_cv_type_socklen_t=no
6929 fi
6930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
6933 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
6934 if test $ac_cv_type_socklen_t = yes; then
6935 :
6936 else
6937
6938 cat >>confdefs.h <<\_ACEOF
6939 #define socklen_t unsigned int
6940 _ACEOF
6941
6942 fi
6943
6944
6945 # Check whether --enable-ipv6 or --disable-ipv6 was given.
6946 if test "${enable_ipv6+set}" = set; then
6947 enableval="$enable_ipv6"
6948 ipv6=$enableval
6949 else
6950 ipv6=no
6951 fi;
6952
6953 if test $ipv6 != yes; then
6954 have_v6="no"
6955 else
6956 echo "$as_me:$LINENO: checking for core IPv6 support" >&5
6957 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6
6958
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>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>
6969 int
6970 main ()
6971 {
6972 struct sockaddr_in6 s;
6973 s.sin6_family = 0;
6974
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (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
7004 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6
7005 have_v6=no
7006 else
7007 have_v6=yes
7008
7009 cat >>confdefs.h <<\_ACEOF
7010 #define IPV6 1
7011 _ACEOF
7012
7013 echo "$as_me:$LINENO: result: yes" >&5
7014 echo "${ECHO_T}yes" >&6
7015 echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7016 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6
7017 cat >conftest.$ac_ext <<_ACEOF
7018 /* confdefs.h. */
7019 _ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>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>
7027 int
7028 main ()
7029 {
7030 struct in6_addr a = in6addr_any;
7031
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (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
7059 echo "${ECHO_T}yes" >&6
7060 else
7061 echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7063
7064
7065 echo "$as_me:$LINENO: result: no" >&5
7066 echo "${ECHO_T}no" >&6
7067
7068 cat >>confdefs.h <<\_ACEOF
7069 #define NO_IN6ADDR_ANY 1
7070 _ACEOF
7071
7072 inet_misc=1
7073
7074
7075 fi
7076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7077 fi
7078
7079 else
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7082
7083 echo "$as_me:$LINENO: result: no" >&5
7084 echo "${ECHO_T}no" >&6
7085 have_v6="no"
7086 fi
7087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7088 fi
7089
7090 echo "$as_me:$LINENO: checking for library containing crypt" >&5
7091 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
7092 if test "${ac_cv_search_crypt+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 ac_func_search_save_LIBS=$LIBS
7096 ac_cv_search_crypt=no
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h. */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h. */
7103
7104 /* Override any gcc2 internal prototype to avoid an error. */
7105 #ifdef __cplusplus
7106 extern "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. */
7110 char crypt ();
7111 int
7112 main ()
7113 {
7114 crypt ();
7115 ;
7116 return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (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"
7142 else
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 fi
7147 rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7149 if 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
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7158
7159 /* Override any gcc2 internal prototype to avoid an error. */
7160 #ifdef __cplusplus
7161 extern "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. */
7165 char crypt ();
7166 int
7167 main ()
7168 {
7169 crypt ();
7170 ;
7171 return 0;
7172 }
7173 _ACEOF
7174 rm -f conftest.$ac_objext conftest$ac_exeext
7175 if { (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"
7197 break
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 fi
7203 rm -f conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 done
7206 fi
7207 LIBS=$ac_func_search_save_LIBS
7208 fi
7209 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7210 echo "${ECHO_T}$ac_cv_search_crypt" >&6
7211 if test "$ac_cv_search_crypt" != no; then
7212 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
7213
7214 fi
7215
7216
7217 CRYPT_LIB=$ac_cv_search_crypt
7218
7219 if test "$CRYPT_LIB" = "none required"; then
7220 unset CRYPT_LIB
7221 elif test "$CRYPT_LIB" = no; then
7222 unset CRYPT_LIB
7223 fi
7224
7225
7226
7227 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7228 VICONF=viconf
7229 else
7230 VICONF=""
7231 fi
7232
7233
7234
7235 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7236 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7237 if test "${gcc_cv_header_string+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #include <string.h>
7243 #include <strings.h>
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (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
7268 else
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7271
7272 gcc_cv_header_string=no
7273 fi
7274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276 fi
7277 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7278 echo "${ECHO_T}$gcc_cv_header_string" >&6
7279
7280 if test "$gcc_cv_header_string" = "yes"; then
7281
7282 cat >>confdefs.h <<\_ACEOF
7283 #define STRING_WITH_STRINGS 1
7284 _ACEOF
7285
7286 fi
7287
7288 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7289 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7290 if test "${ac_cv_c_bigendian+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 # See if sys/param.h defines the BYTE_ORDER macro.
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <sys/types.h>
7301 #include <sys/param.h>
7302
7303 int
7304 main ()
7305 {
7306 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7307 bogus endian macros
7308 #endif
7309
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (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.
7337 cat >conftest.$ac_ext <<_ACEOF
7338 /* confdefs.h. */
7339 _ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7343 #include <sys/types.h>
7344 #include <sys/param.h>
7345
7346 int
7347 main ()
7348 {
7349 #if BYTE_ORDER != BIG_ENDIAN
7350 not big endian
7351 #endif
7352
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 rm -f conftest.$ac_objext
7358 if { (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
7380 else
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_cv_c_bigendian=no
7385 fi
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387 else
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7390
7391 # It does not; compile a test program.
7392 if 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
7398 cat confdefs.h >>conftest.$ac_ext
7399 cat >>conftest.$ac_ext <<_ACEOF
7400 /* end confdefs.h. */
7401 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7402 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7403 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7404 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7405 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7406 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7407 int
7408 main ()
7409 {
7410 _ascii (); _ebcdic ();
7411 ;
7412 return 0;
7413 }
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (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
7439 fi
7440 if 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
7447 fi
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 fi
7453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 else
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461 int
7462 main ()
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
7474 rm -f conftest$ac_exeext
7475 if { (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
7486 else
7487 echo "$as_me: program exited with status $ac_status" >&5
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ( exit $ac_status )
7492 ac_cv_c_bigendian=yes
7493 fi
7494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 fi
7497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7498 fi
7499 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7500 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7501 case $ac_cv_c_bigendian in
7502 yes)
7503
7504 cat >>confdefs.h <<\_ACEOF
7505 #define WORDS_BIGENDIAN 1
7506 _ACEOF
7507 ;;
7508 no)
7509 ;;
7510 *)
7511 { { echo "$as_me:$LINENO: error: unknown endianness
7512 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7513 echo "$as_me: error: unknown endianness
7514 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7515 { (exit 1); exit 1; }; } ;;
7516 esac
7517
7518
7519 if test "${ac_cv_header_stdarg_h+set}" = set; then
7520 echo "$as_me:$LINENO: checking for stdarg.h" >&5
7521 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7522 if test "${ac_cv_header_stdarg_h+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524 fi
7525 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7526 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7527 else
7528 # Is the header compilable?
7529 echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7530 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 $ac_includes_default
7538 #include <stdarg.h>
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (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
7563 else
7564 echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 ac_header_compiler=no
7568 fi
7569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7571 echo "${ECHO_T}$ac_header_compiler" >&6
7572
7573 # Is the header present?
7574 echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7575 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6
7576 cat >conftest.$ac_ext <<_ACEOF
7577 /* confdefs.h. */
7578 _ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <stdarg.h>
7583 _ACEOF
7584 if { (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
7598 else
7599 ac_cpp_err=yes
7600 fi
7601 if test -z "$ac_cpp_err"; then
7602 ac_header_preproc=yes
7603 else
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.$ac_ext >&5
7606
7607 ac_header_preproc=no
7608 fi
7609 rm -f conftest.err conftest.$ac_ext
7610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7611 echo "${ECHO_T}$ac_header_preproc" >&6
7612
7613 # So? What about this header?
7614 case $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
7617 echo "$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
7619 echo "$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
7624 echo "$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
7626 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7628 echo "$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
7630 echo "$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
7632 echo "$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
7634 echo "$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 ;;
7644 esac
7645 echo "$as_me:$LINENO: checking for stdarg.h" >&5
7646 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6
7647 if test "${ac_cv_header_stdarg_h+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 else
7650 ac_cv_header_stdarg_h=$ac_header_preproc
7651 fi
7652 echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7653 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6
7654
7655 fi
7656 if test $ac_cv_header_stdarg_h = yes; then
7657 :
7658 else
7659 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7660 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7661 { (exit 1); exit 1; }; }
7662 fi
7663
7664
7665
7666
7667 if test "$ac_cv_c_compiler_gnu" = yes; then
7668
7669 echo "$as_me:$LINENO: checking for strlcpy" >&5
7670 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
7671 save_CFLAGS=$CFLAGS
7672 CFLAGS="$CFLAGS -Wimplicit -Werror"
7673
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 #include <string.h>
7681 #include <stdlib.h>
7682 int
7683 main ()
7684 {
7685 char *a = malloc(6);
7686 strlcpy(a, "hello", 6);
7687
7688 ;
7689 return 0;
7690 }
7691 _ACEOF
7692 rm -f conftest.$ac_objext conftest$ac_exeext
7693 if { (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
7715 echo "${ECHO_T}yes" >&6
7716
7717 cat >>confdefs.h <<\_ACEOF
7718 #define HAVE_STRLCPY 1
7719 _ACEOF
7720
7721 else
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7724
7725 echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7727
7728 fi
7729 rm -f conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
7731
7732 echo "$as_me:$LINENO: checking for strlcat" >&5
7733 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7735 /* confdefs.h. */
7736 _ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 #include <string.h>
7741 #include <stdlib.h>
7742 int
7743 main ()
7744 {
7745 char *a = malloc(6);
7746 a[0] = '\0';
7747 strlcat(a, "hello", 6);
7748
7749 ;
7750 return 0;
7751 }
7752 _ACEOF
7753 rm -f conftest.$ac_objext conftest$ac_exeext
7754 if { (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
7776 echo "${ECHO_T}yes" >&6
7777
7778 cat >>confdefs.h <<\_ACEOF
7779 #define HAVE_STRLCAT 1
7780 _ACEOF
7781
7782 else
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6
7788
7789 fi
7790 rm -f conftest.err conftest.$ac_objext \
7791 conftest$ac_exeext conftest.$ac_ext
7792
7793 CFLAGS=$save_CFLAGS
7794
7795 else
7796
7797
7798
7799
7800 for ac_func in strlcat strlcpy
7801 do
7802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7803 echo "$as_me:$LINENO: checking for $ac_func" >&5
7804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7805 if eval "test \"\${$as_ac_var+set}\" = set"; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808 cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h. */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>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
7833 extern "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. */
7838 char $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)
7843 choke me
7844 #else
7845 char (*f) () = $ac_func;
7846 #endif
7847 #ifdef __cplusplus
7848 }
7849 #endif
7850
7851 int
7852 main ()
7853 {
7854 return f != $ac_func;
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (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"
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 eval "$as_ac_var=no"
7887 fi
7888 rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7890 fi
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7893 if 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
7898 fi
7899 done
7900
7901
7902 fi
7903
7904 echo "$as_me:$LINENO: checking for u_int32_t" >&5
7905 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
7906 if test "${ac_cv_type_u_int32_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 int
7917 main ()
7918 {
7919 if ((u_int32_t *) 0)
7920 return 0;
7921 if (sizeof (u_int32_t))
7922 return 0;
7923 ;
7924 return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (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
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 ac_cv_type_u_int32_t=no
7955 fi
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 fi
7958 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7959 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
7960 if test $ac_cv_type_u_int32_t = yes; then
7961 :
7962 else
7963
7964 echo "$as_me:$LINENO: checking for uint32_t" >&5
7965 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7966 if test "${ac_cv_type_uint32_t+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 $ac_includes_default
7976 int
7977 main ()
7978 {
7979 if ((uint32_t *) 0)
7980 return 0;
7981 if (sizeof (uint32_t))
7982 return 0;
7983 ;
7984 return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (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
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014 ac_cv_type_uint32_t=no
8015 fi
8016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8019 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
8020 if test $ac_cv_type_uint32_t = yes; then
8021
8022
8023 cat >>confdefs.h <<\_ACEOF
8024 #define u_int32_t uint32_t
8025 _ACEOF
8026
8027
8028 else
8029
8030 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8031 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8032
8033 cat >>confdefs.h <<\_ACEOF
8034 #define u_int32_t unsigned long int
8035 _ACEOF
8036
8037
8038 fi
8039
8040
8041 fi
8042
8043
8044 echo "$as_me:$LINENO: checking for u_int16_t" >&5
8045 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
8046 if test "${ac_cv_type_u_int16_t+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h. */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8055 $ac_includes_default
8056 int
8057 main ()
8058 {
8059 if ((u_int16_t *) 0)
8060 return 0;
8061 if (sizeof (u_int16_t))
8062 return 0;
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (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
8090 else
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8093
8094 ac_cv_type_u_int16_t=no
8095 fi
8096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8099 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
8100 if test $ac_cv_type_u_int16_t = yes; then
8101 :
8102 else
8103
8104 echo "$as_me:$LINENO: checking for uint16_t" >&5
8105 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
8106 if test "${ac_cv_type_uint16_t+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109 cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h. */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 int
8117 main ()
8118 {
8119 if ((uint16_t *) 0)
8120 return 0;
8121 if (sizeof (uint16_t))
8122 return 0;
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 rm -f conftest.$ac_objext
8128 if { (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
8150 else
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 ac_cv_type_uint16_t=no
8155 fi
8156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8159 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
8160 if test $ac_cv_type_uint16_t = yes; then
8161
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define u_int16_t uint16_t
8165 _ACEOF
8166
8167
8168 else
8169
8170 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8171 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8172
8173 cat >>confdefs.h <<\_ACEOF
8174 #define u_int16_t unsigned short int
8175 _ACEOF
8176
8177
8178 fi
8179
8180
8181 fi
8182
8183
8184 echo "$as_me:$LINENO: checking for in_port_t" >&5
8185 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6
8186 if test "${ac_cv_type_in_port_t+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 #include <sys/types.h>
8196 #include <netinet/in.h>
8197
8198 int
8199 main ()
8200 {
8201 if ((in_port_t *) 0)
8202 return 0;
8203 if (sizeof (in_port_t))
8204 return 0;
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext
8210 if { (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
8232 else
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 ac_cv_type_in_port_t=no
8237 fi
8238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8239 fi
8240 echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8241 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6
8242 if test $ac_cv_type_in_port_t = yes; then
8243 :
8244 else
8245
8246 cat >>confdefs.h <<\_ACEOF
8247 #define in_port_t u_int16_t
8248 _ACEOF
8249
8250 fi
8251
8252
8253 echo "$as_me:$LINENO: checking for sa_family_t" >&5
8254 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
8255 if test "${ac_cv_type_sa_family_t+set}" = set; then
8256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264 #include <sys/types.h>
8265 #include <sys/socket.h>
8266
8267 int
8268 main ()
8269 {
8270 if ((sa_family_t *) 0)
8271 return 0;
8272 if (sizeof (sa_family_t))
8273 return 0;
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (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
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305 ac_cv_type_sa_family_t=no
8306 fi
8307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8310 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
8311 if test $ac_cv_type_sa_family_t = yes; then
8312 :
8313 else
8314
8315 cat >>confdefs.h <<\_ACEOF
8316 #define sa_family_t u_int16_t
8317 _ACEOF
8318
8319 fi
8320
8321
8322 echo "$as_me:$LINENO: checking for uintptr_t" >&5
8323 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
8324 if test "${ac_cv_type_uintptr_t+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327 cat >conftest.$ac_ext <<_ACEOF
8328 /* confdefs.h. */
8329 _ACEOF
8330 cat confdefs.h >>conftest.$ac_ext
8331 cat >>conftest.$ac_ext <<_ACEOF
8332 /* end confdefs.h. */
8333 $ac_includes_default
8334 int
8335 main ()
8336 {
8337 if ((uintptr_t *) 0)
8338 return 0;
8339 if (sizeof (uintptr_t))
8340 return 0;
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (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
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372 ac_cv_type_uintptr_t=no
8373 fi
8374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8377 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
8378 if test $ac_cv_type_uintptr_t = yes; then
8379
8380 cat >>confdefs.h <<_ACEOF
8381 #define HAVE_UINTPTR_T 1
8382 _ACEOF
8383
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392
8393
8394 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8395 do
8396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8397 echo "$as_me:$LINENO: checking for $ac_func" >&5
8398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8399 if eval "test \"\${$as_ac_var+set}\" = set"; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402 cat >conftest.$ac_ext <<_ACEOF
8403 /* confdefs.h. */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>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
8427 extern "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. */
8432 char $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)
8437 choke me
8438 #else
8439 char (*f) () = $ac_func;
8440 #endif
8441 #ifdef __cplusplus
8442 }
8443 #endif
8444
8445 int
8446 main ()
8447 {
8448 return f != $ac_func;
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (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"
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 eval "$as_ac_var=no"
8481 fi
8482 rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
8484 fi
8485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8487 if 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
8492 fi
8493 done
8494
8495
8496 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8497 # for constant arguments. Useless!
8498 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8499 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8500 if test "${ac_cv_working_alloca_h+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h. */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 #include <alloca.h>
8510 int
8511 main ()
8512 {
8513 char *p = (char *) alloca (2 * sizeof (int));
8514 ;
8515 return 0;
8516 }
8517 _ACEOF
8518 rm -f conftest.$ac_objext conftest$ac_exeext
8519 if { (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
8541 else
8542 echo "$as_me: failed program was:" >&5
8543 sed 's/^/| /' conftest.$ac_ext >&5
8544
8545 ac_cv_working_alloca_h=no
8546 fi
8547 rm -f conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 fi
8550 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8551 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8552 if test $ac_cv_working_alloca_h = yes; then
8553
8554 cat >>confdefs.h <<\_ACEOF
8555 #define HAVE_ALLOCA_H 1
8556 _ACEOF
8557
8558 fi
8559
8560 echo "$as_me:$LINENO: checking for alloca" >&5
8561 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8562 if test "${ac_cv_func_alloca_works+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>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 */
8585 char *alloca ();
8586 # endif
8587 # endif
8588 # endif
8589 # endif
8590 #endif
8591
8592 int
8593 main ()
8594 {
8595 char *p = (char *) alloca (1);
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_func_alloca_works=yes
8623 else
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 ac_cv_func_alloca_works=no
8628 fi
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 fi
8632 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8633 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8634
8635 if test $ac_cv_func_alloca_works = yes; then
8636
8637 cat >>confdefs.h <<\_ACEOF
8638 #define HAVE_ALLOCA 1
8639 _ACEOF
8640
8641 else
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
8647 ALLOCA=alloca.$ac_objext
8648
8649 cat >>confdefs.h <<\_ACEOF
8650 #define C_ALLOCA 1
8651 _ACEOF
8652
8653
8654 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8655 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8656 if test "${ac_cv_os_cray+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h. */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 #if defined(CRAY) && ! defined(CRAY2)
8666 webecray
8667 #else
8668 wenotbecray
8669 #endif
8670
8671 _ACEOF
8672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8673 $EGREP "webecray" >/dev/null 2>&1; then
8674 ac_cv_os_cray=yes
8675 else
8676 ac_cv_os_cray=no
8677 fi
8678 rm -f conftest*
8679
8680 fi
8681 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8682 echo "${ECHO_T}$ac_cv_os_cray" >&6
8683 if 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`
8686 echo "$as_me:$LINENO: checking for $ac_func" >&5
8687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8688 if eval "test \"\${$as_ac_var+set}\" = set"; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>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
8716 extern "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. */
8721 char $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)
8726 choke me
8727 #else
8728 char (*f) () = $ac_func;
8729 #endif
8730 #ifdef __cplusplus
8731 }
8732 #endif
8733
8734 int
8735 main ()
8736 {
8737 return f != $ac_func;
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (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"
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 eval "$as_ac_var=no"
8770 fi
8771 rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8773 fi
8774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8776 if test `eval echo '${'$as_ac_var'}'` = yes; then
8777
8778 cat >>confdefs.h <<_ACEOF
8779 #define CRAY_STACKSEG_END $ac_func
8780 _ACEOF
8781
8782 break
8783 fi
8784
8785 done
8786 fi
8787
8788 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8789 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8790 if test "${ac_cv_c_stack_direction+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 if test "$cross_compiling" = yes; then
8794 ac_cv_c_stack_direction=0
8795 else
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h. */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 int
8803 find_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
8816 int
8817 main ()
8818 {
8819 exit (find_stack_direction () < 0);
8820 }
8821 _ACEOF
8822 rm -f conftest$ac_exeext
8823 if { (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
8834 else
8835 echo "$as_me: program exited with status $ac_status" >&5
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ( exit $ac_status )
8840 ac_cv_c_stack_direction=-1
8841 fi
8842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8843 fi
8844 fi
8845 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8846 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8847
8848 cat >>confdefs.h <<_ACEOF
8849 #define STACK_DIRECTION $ac_cv_c_stack_direction
8850 _ACEOF
8851
8852
8853 fi
8854
8855
8856
8857 echo "$as_me:$LINENO: checking for nanosleep" >&5
8858 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
8859 if test "${ac_cv_func_nanosleep+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>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
8887 extern "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. */
8892 char 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)
8897 choke me
8898 #else
8899 char (*f) () = nanosleep;
8900 #endif
8901 #ifdef __cplusplus
8902 }
8903 #endif
8904
8905 int
8906 main ()
8907 {
8908 return f != nanosleep;
8909 ;
8910 return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (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
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 ac_cv_func_nanosleep=no
8941 fi
8942 rm -f conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944 fi
8945 echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8946 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6
8947 if test $ac_cv_func_nanosleep = yes; then
8948 :
8949 else
8950 echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8951 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
8952 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955 ac_check_lib_save_LIBS=$LIBS
8956 LIBS="-lrt $LIBS"
8957 cat >conftest.$ac_ext <<_ACEOF
8958 /* confdefs.h. */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h. */
8963
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 #ifdef __cplusplus
8966 extern "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. */
8970 char nanosleep ();
8971 int
8972 main ()
8973 {
8974 nanosleep ();
8975 ;
8976 return 0;
8977 }
8978 _ACEOF
8979 rm -f conftest.$ac_objext conftest$ac_exeext
8980 if { (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
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 ac_cv_lib_rt_nanosleep=no
9007 fi
9008 rm -f conftest.err conftest.$ac_objext \
9009 conftest$ac_exeext conftest.$ac_ext
9010 LIBS=$ac_check_lib_save_LIBS
9011 fi
9012 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9013 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
9014 if test $ac_cv_lib_rt_nanosleep = yes; then
9015 LIBS="${LIBS} -lrt"
9016 else
9017 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9018 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
9019 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-lposix4 $LIBS"
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h. */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h. */
9030
9031 /* Override any gcc2 internal prototype to avoid an error. */
9032 #ifdef __cplusplus
9033 extern "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. */
9037 char nanosleep ();
9038 int
9039 main ()
9040 {
9041 nanosleep ();
9042 ;
9043 return 0;
9044 }
9045 _ACEOF
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (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
9069 else
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 ac_cv_lib_posix4_nanosleep=no
9074 fi
9075 rm -f conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9078 fi
9079 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9080 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
9081 if test $ac_cv_lib_posix4_nanosleep = yes; then
9082 LIBS="${LIBS} -lposix4"
9083
9084 fi
9085
9086 fi
9087
9088 fi
9089
9090 if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
9091 then
9092 echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9093 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6
9094 else
9095
9096 cat >>confdefs.h <<\_ACEOF
9097 #define HAVE_NANOSLEEP 1
9098 _ACEOF
9099
9100 fi
9101
9102 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9103 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9104 # Check whether --enable-openssl or --disable-openssl was given.
9105 if test "${enable_openssl+set}" = set; then
9106 enableval="$enable_openssl"
9107 cf_enable_openssl=$enableval
9108 else
9109 cf_enable_openssl="auto"
9110 fi;
9111
9112 if 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
9142 echo "${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
9146 echo "${ECHO_T}not found. Specify a correct path?" >&6
9147 cf_enable_openssl="no"
9148 fi
9149 unset cf_openssl_basedir
9150 else
9151 echo "$as_me:$LINENO: result: disabled" >&5
9152 echo "${ECHO_T}disabled" >&6
9153 fi
9154
9155 save_CPPFLAGS="$CPPFLAGS"
9156 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9157 save_LIBS="$LIBS"
9158 LIBS="$LIBS $SSL_LIBS"
9159 if test "$cf_enable_openssl" != no; then
9160 echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9161 echo $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
9164 else
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include <openssl/opensslv.h>
9172 #include <stdlib.h>
9173 int
9174 main ()
9175 {
9176 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9177 exit(0); else exit(1);
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest$ac_exeext
9183 if { (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
9194 else
9195 echo "$as_me: program exited with status $ac_status" >&5
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 ( exit $ac_status )
9200 cf_openssl_version_ok=no
9201 fi
9202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9203 fi
9204
9205 if test "$cf_openssl_version_ok" = yes; then
9206 echo "$as_me:$LINENO: result: found" >&5
9207 echo "${ECHO_T}found" >&6
9208
9209 ENCSPEED=encspeed
9210
9211
9212 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9213
9214 echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9215 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6
9216 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 else
9219 ac_check_lib_save_LIBS=$LIBS
9220 LIBS="-lcrypto $LIBS"
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227
9228 /* Override any gcc2 internal prototype to avoid an error. */
9229 #ifdef __cplusplus
9230 extern "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. */
9234 char RSA_free ();
9235 int
9236 main ()
9237 {
9238 RSA_free ();
9239 ;
9240 return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (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
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_cv_lib_crypto_RSA_free=no
9271 fi
9272 rm -f conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9275 fi
9276 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9277 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6
9278 if 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
9285 fi
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
9291 echo "${ECHO_T}no - OpenSSL support disabled" >&6
9292 fi
9293 fi
9294
9295 CPPFLAGS="$save_CPPFLAGS"
9296 LIBS="$save_LIBS"
9297
9298
9299
9300
9301
9302 # Check whether --with-zlib-path or --without-zlib-path was given.
9303 if test "${with_zlib_path+set}" = set; then
9304 withval="$with_zlib_path"
9305 LIBS="$LIBS -L$withval"
9306 fi;
9307
9308 # Check whether --enable-zlib or --disable-zlib was given.
9309 if test "${enable_zlib+set}" = set; then
9310 enableval="$enable_zlib"
9311 zlib=$enableval
9312 else
9313 zlib=yes
9314 fi;
9315
9316 if test "$zlib" = yes; then
9317
9318 if test "${ac_cv_header_zlib_h+set}" = set; then
9319 echo "$as_me:$LINENO: checking for zlib.h" >&5
9320 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9321 if test "${ac_cv_header_zlib_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 fi
9324 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9325 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9326 else
9327 # Is the header compilable?
9328 echo "$as_me:$LINENO: checking zlib.h usability" >&5
9329 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h. */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h. */
9336 $ac_includes_default
9337 #include <zlib.h>
9338 _ACEOF
9339 rm -f conftest.$ac_objext
9340 if { (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
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366 ac_header_compiler=no
9367 fi
9368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9370 echo "${ECHO_T}$ac_header_compiler" >&6
9371
9372 # Is the header present?
9373 echo "$as_me:$LINENO: checking zlib.h presence" >&5
9374 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 #include <zlib.h>
9382 _ACEOF
9383 if { (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
9397 else
9398 ac_cpp_err=yes
9399 fi
9400 if test -z "$ac_cpp_err"; then
9401 ac_header_preproc=yes
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 ac_header_preproc=no
9407 fi
9408 rm -f conftest.err conftest.$ac_ext
9409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410 echo "${ECHO_T}$ac_header_preproc" >&6
9411
9412 # So? What about this header?
9413 case $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
9416 echo "$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
9418 echo "$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
9423 echo "$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
9425 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9427 echo "$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
9429 echo "$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
9431 echo "$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
9433 echo "$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 ;;
9443 esac
9444 echo "$as_me:$LINENO: checking for zlib.h" >&5
9445 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
9446 if test "${ac_cv_header_zlib_h+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 ac_cv_header_zlib_h=$ac_header_preproc
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
9453
9454 fi
9455 if test $ac_cv_header_zlib_h = yes; then
9456
9457 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9458 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
9459 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462 ac_check_lib_save_LIBS=$LIBS
9463 LIBS="-lz $LIBS"
9464 cat >conftest.$ac_ext <<_ACEOF
9465 /* confdefs.h. */
9466 _ACEOF
9467 cat confdefs.h >>conftest.$ac_ext
9468 cat >>conftest.$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9470
9471 /* Override any gcc2 internal prototype to avoid an error. */
9472 #ifdef __cplusplus
9473 extern "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. */
9477 char zlibVersion ();
9478 int
9479 main ()
9480 {
9481 zlibVersion ();
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext conftest$ac_exeext
9487 if { (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
9509 else
9510 echo "$as_me: failed program was:" >&5
9511 sed 's/^/| /' conftest.$ac_ext >&5
9512
9513 ac_cv_lib_z_zlibVersion=no
9514 fi
9515 rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 LIBS=$ac_check_lib_save_LIBS
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9520 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
9521 if test $ac_cv_lib_z_zlibVersion = yes; then
9522
9523 ZLIB_LD=-lz
9524
9525
9526 cat >>confdefs.h <<\_ACEOF
9527 #define HAVE_LIBZ 1
9528 _ACEOF
9529
9530
9531 else
9532 zlib=no
9533 fi
9534
9535
9536 else
9537 zlib=no
9538 fi
9539
9540
9541
9542 fi
9543
9544
9545 # Check whether --enable-poll or --disable-poll was given.
9546 if 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
9554 fi;
9555
9556 # Check whether --enable-select or --disable-select was given.
9557 if 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
9565 fi;
9566
9567 # Check whether --enable-kqueue or --disable-kqueue was given.
9568 if 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
9576 fi;
9577
9578 # Check whether --enable-devpoll or --disable-devpoll was given.
9579 if test "${enable_devpoll+set}" = set; then
9580 enableval="$enable_devpoll"
9581 if test $enableval = yes; then
9582 SELECT_TYPE_EXPLICIT="devpoll"
9583
9584
9585 for ac_header in sys/devpoll.h devpoll.h
9586 do
9587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9589 echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 fi
9594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9596 else
9597 # Is the header compilable?
9598 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9600 cat >conftest.$ac_ext <<_ACEOF
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $ac_includes_default
9607 #include <$ac_header>
9608 _ACEOF
9609 rm -f conftest.$ac_objext
9610 if { (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
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636 ac_header_compiler=no
9637 fi
9638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9640 echo "${ECHO_T}$ac_header_compiler" >&6
9641
9642 # Is the header present?
9643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 #include <$ac_header>
9652 _ACEOF
9653 if { (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
9667 else
9668 ac_cpp_err=yes
9669 fi
9670 if test -z "$ac_cpp_err"; then
9671 ac_header_preproc=yes
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 ac_header_preproc=no
9677 fi
9678 rm -f conftest.err conftest.$ac_ext
9679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680 echo "${ECHO_T}$ac_header_preproc" >&6
9681
9682 # So? What about this header?
9683 case $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
9686 echo "$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
9688 echo "$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
9693 echo "$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
9695 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9697 echo "$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
9699 echo "$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
9701 echo "$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
9703 echo "$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 ;;
9713 esac
9714 echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 else
9719 eval "$as_ac_Header=\$ac_header_preproc"
9720 fi
9721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723
9724 fi
9725 if 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
9730 fi
9731
9732 done
9733
9734 else
9735 use_devpoll=no;
9736 fi
9737
9738 fi;
9739
9740 # Check whether --enable-epoll or --disable-epoll was given.
9741 if 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
9749 fi;
9750
9751
9752 echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9753 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6
9754
9755 # Check whether --with-confdir or --without-confdir was given.
9756 if test "${with_confdir+set}" = set; then
9757 withval="$with_confdir"
9758 confdir=`echo $withval | sed 's/\/$//'`
9759 echo "$as_me:$LINENO: result: yes" >&5
9760 echo "${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
9769 cat >>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
9783 else
9784 confdir='${prefix}/etc'
9785 echo "$as_me:$LINENO: result: no" >&5
9786 echo "${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
9795 cat >>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
9810 fi;
9811
9812
9813 echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9814 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6
9815
9816 # Check whether --with-logdir or --without-logdir was given.
9817 if test "${with_logdir+set}" = set; then
9818 withval="$with_logdir"
9819 logdir=`echo $withval | sed 's/\/$//'`
9820 echo "$as_me:$LINENO: result: yes" >&5
9821 echo "${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
9830 cat >>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
9844 else
9845 logdir='${prefix}/logs'
9846 echo "$as_me:$LINENO: result: no" >&5
9847 echo "${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
9856 cat >>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
9871 fi;
9872
9873
9874 echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9875 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6
9876
9877 # Check whether --with-helpdir or --without-helpdir was given.
9878 if test "${with_helpdir+set}" = set; then
9879 withval="$with_helpdir"
9880 helpdir=`echo $withval | sed 's/\/$//'`
9881 echo "$as_me:$LINENO: result: yes" >&5
9882 echo "${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
9891 cat >>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
9905 else
9906 helpdir='${prefix}/help'
9907 echo "$as_me:$LINENO: result: no" >&5
9908 echo "${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
9917 cat >>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
9932 fi;
9933
9934
9935 echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9936 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6
9937
9938 # Check whether --with-moduledir or --without-moduledir was given.
9939 if test "${with_moduledir+set}" = set; then
9940 withval="$with_moduledir"
9941 moduledir=`echo $withval | sed 's/\/$//'`
9942 echo "$as_me:$LINENO: result: yes" >&5
9943 echo "${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
9952 cat >>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
9966 else
9967 moduledir='${prefix}/modules'
9968 echo "$as_me:$LINENO: result: no" >&5
9969 echo "${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
9978 cat >>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
9993 fi;
9994
9995 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9996 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
9997 echo "Forcing $SELECT_TYPE to be enabled"
9998 else
9999
10000 if test ! "x$use_select" = "xno"; then
10001
10002 for ac_func in select
10003 do
10004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_func" >&5
10006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>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
10035 extern "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. */
10040 char $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)
10045 choke me
10046 #else
10047 char (*f) () = $ac_func;
10048 #endif
10049 #ifdef __cplusplus
10050 }
10051 #endif
10052
10053 int
10054 main ()
10055 {
10056 return f != $ac_func;
10057 ;
10058 return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (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"
10084 else
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 eval "$as_ac_var=no"
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 fi
10093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10095 if 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
10100 else
10101 haveselect=no
10102 fi
10103 done
10104
10105 if test "x$haveselect" = "xyes" ; then
10106 SELECT_TYPE="select"
10107 fi
10108 fi
10109
10110 if test ! "x$use_poll" = "xno"; then
10111
10112 for ac_func in poll
10113 do
10114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10115 echo "$as_me:$LINENO: checking for $ac_func" >&5
10116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10117 if eval "test \"\${$as_ac_var+set}\" = set"; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 cat >conftest.$ac_ext <<_ACEOF
10121 /* confdefs.h. */
10122 _ACEOF
10123 cat confdefs.h >>conftest.$ac_ext
10124 cat >>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
10145 extern "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. */
10150 char $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)
10155 choke me
10156 #else
10157 char (*f) () = $ac_func;
10158 #endif
10159 #ifdef __cplusplus
10160 }
10161 #endif
10162
10163 int
10164 main ()
10165 {
10166 return f != $ac_func;
10167 ;
10168 return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (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"
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 eval "$as_ac_var=no"
10199 fi
10200 rm -f conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 fi
10203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10205 if 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
10210 else
10211 havepoll=no
10212 fi
10213 done
10214
10215 if test "x$havepoll" = "xyes" ; then
10216 SELECT_TYPE="poll"
10217 fi
10218 fi
10219
10220 if test ! "x$use_devpoll" = "xno"; then
10221 echo "$as_me:$LINENO: checking for /dev/poll" >&5
10222 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
10223 if test -c "/dev/poll"; then
10224 echo "$as_me:$LINENO: result: yes" >&5
10225 echo "${ECHO_T}yes" >&6
10226
10227
10228 for ac_header in devpoll.h sys/devpoll.h
10229 do
10230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10232 echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236 fi
10237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10239 else
10240 # Is the header compilable?
10241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249 $ac_includes_default
10250 #include <$ac_header>
10251 _ACEOF
10252 rm -f conftest.$ac_objext
10253 if { (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
10275 else
10276 echo "$as_me: failed program was:" >&5
10277 sed 's/^/| /' conftest.$ac_ext >&5
10278
10279 ac_header_compiler=no
10280 fi
10281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10283 echo "${ECHO_T}$ac_header_compiler" >&6
10284
10285 # Is the header present?
10286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10288 cat >conftest.$ac_ext <<_ACEOF
10289 /* confdefs.h. */
10290 _ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 #include <$ac_header>
10295 _ACEOF
10296 if { (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
10310 else
10311 ac_cpp_err=yes
10312 fi
10313 if test -z "$ac_cpp_err"; then
10314 ac_header_preproc=yes
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10318
10319 ac_header_preproc=no
10320 fi
10321 rm -f conftest.err conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10323 echo "${ECHO_T}$ac_header_preproc" >&6
10324
10325 # So? What about this header?
10326 case $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
10329 echo "$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
10331 echo "$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
10336 echo "$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
10338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10340 echo "$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
10342 echo "$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
10344 echo "$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
10346 echo "$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 ;;
10356 esac
10357 echo "$as_me:$LINENO: checking for $ac_header" >&5
10358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362 eval "$as_ac_Header=\$ac_header_preproc"
10363 fi
10364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10366
10367 fi
10368 if 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
10373 fi
10374
10375 done
10376
10377 SELECT_TYPE="devpoll"
10378 else
10379 echo "$as_me:$LINENO: result: no" >&5
10380 echo "${ECHO_T}no" >&6
10381 fi
10382 fi
10383
10384 if test ! "x$use_kqueue" = "xno"; then
10385
10386 for ac_func in kevent
10387 do
10388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10389 echo "$as_me:$LINENO: checking for $ac_func" >&5
10390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10391 if eval "test \"\${$as_ac_var+set}\" = set"; then
10392 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 else
10394 cat >conftest.$ac_ext <<_ACEOF
10395 /* confdefs.h. */
10396 _ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>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
10419 extern "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. */
10424 char $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)
10429 choke me
10430 #else
10431 char (*f) () = $ac_func;
10432 #endif
10433 #ifdef __cplusplus
10434 }
10435 #endif
10436
10437 int
10438 main ()
10439 {
10440 return f != $ac_func;
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (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"
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 eval "$as_ac_var=no"
10473 fi
10474 rm -f conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 fi
10477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10479 if 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
10484 else
10485 havekqueue=no
10486 fi
10487 done
10488
10489 if test "x$havekqueue" = "xyes" ; then
10490 SELECT_TYPE="kqueue"
10491 fi
10492 fi
10493
10494 if test ! "x$use_epoll" = "xno"; then
10495
10496 for ac_func in epoll_ctl
10497 do
10498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10499 echo "$as_me:$LINENO: checking for $ac_func" >&5
10500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10501 if eval "test \"\${$as_ac_var+set}\" = set"; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h. */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>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
10529 extern "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. */
10534 char $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)
10539 choke me
10540 #else
10541 char (*f) () = $ac_func;
10542 #endif
10543 #ifdef __cplusplus
10544 }
10545 #endif
10546
10547 int
10548 main ()
10549 {
10550 return f != $ac_func;
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (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"
10578 else
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10581
10582 eval "$as_ac_var=no"
10583 fi
10584 rm -f conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 fi
10587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10589 if 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
10594 else
10595 haveepoll=no
10596 fi
10597 done
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
10602 echo $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
10605 echo "${ECHO_T}no" >&6
10606 else
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>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
10620 int
10621 main(int argc, char **argv)
10622 {
10623 int epfd;
10624
10625 epfd = epoll_create(256);
10626 exit (epfd == -1 ? 1 : 0);
10627 }
10628 _ACEOF
10629 rm -f conftest$ac_exeext
10630 if { (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
10641 echo "${ECHO_T}yes" >&6
10642
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_EPOLL 1
10645 _ACEOF
10646
10647 SELECT_TYPE="epoll"
10648 else
10649 echo "$as_me: program exited with status $ac_status" >&5
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ( exit $ac_status )
10654 echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6
10656 fi
10657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10658 fi
10659 fi
10660 fi
10661
10662 haveepollsyscall=no
10663
10664 if 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
10667 echo $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
10670 echo "${ECHO_T}no" >&6
10671 else
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>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
10685 int
10686 epoll_create(int size)
10687 {
10688 return (syscall(__NR_epoll_create, size));
10689 }
10690
10691 int
10692 main(int argc, char **argv)
10693 {
10694 int epfd;
10695
10696 epfd = epoll_create(256);
10697 exit (epfd == -1 ? 1 : 0);
10698 }
10699 _ACEOF
10700 rm -f conftest$ac_exeext
10701 if { (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
10712 echo "${ECHO_T}yes" >&6
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_EPOLL 1
10716 _ACEOF
10717
10718 SELECT_TYPE="epoll"
10719 else
10720 echo "$as_me: program exited with status $ac_status" >&5
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ( exit $ac_status )
10725 echo "$as_me:$LINENO: result: no" >&5
10726 echo "${ECHO_T}no" >&6
10727 fi
10728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10729 fi
10730 fi
10731 fi
10732
10733 fi
10734
10735 fi
10736
10737 if test -z "$SELECT_TYPE"; then
10738 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10739 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10740 { (exit 1); exit 1; }; }
10741 fi
10742
10743 echo "Using $SELECT_TYPE for select loop."
10744
10745
10746 cat >>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.
10755 if test "${enable_assert+set}" = set; then
10756 enableval="$enable_assert"
10757 assert=$enableval
10758 else
10759 assert=no
10760 fi;
10761
10762 if test "$assert" = no; then
10763
10764 cat >>confdefs.h <<\_ACEOF
10765 #define NDEBUG 1
10766 _ACEOF
10767
10768 elif test "$assert" = soft; then
10769
10770 cat >>confdefs.h <<\_ACEOF
10771 #define SOFT_ASSERT 1
10772 _ACEOF
10773
10774
10775 cat >>confdefs.h <<\_ACEOF
10776 #define NDEBUG 1
10777 _ACEOF
10778
10779 elif test "$assert" = yes; then
10780 assert = "hard";
10781 fi
10782
10783 echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10784 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6
10785 # Check whether --enable-iodebug or --disable-iodebug was given.
10786 if test "${enable_iodebug+set}" = set; then
10787 enableval="$enable_iodebug"
10788 iodebug=$enableval
10789 else
10790 iodebug=no
10791 fi;
10792
10793 if test "$iodebug" = yes; then
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define USE_IODEBUG_HOOKS 1
10797 _ACEOF
10798
10799 echo "$as_me:$LINENO: result: yes" >&5
10800 echo "${ECHO_T}yes" >&6
10801 else
10802 echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10804 fi
10805
10806
10807 echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10808 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6
10809 # Check whether --enable-profile or --disable-profile was given.
10810 if test "${enable_profile+set}" = set; then
10811 enableval="$enable_profile"
10812 profile=$enableval
10813 else
10814 profile=no
10815 fi;
10816
10817 if 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
10821 echo "${ECHO_T}yes, adding -pg" >&6
10822
10823 cat >>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
10829 echo "${ECHO_T}no, profile builds only work with gcc" >&6
10830 fi
10831 else
10832 echo "$as_me:$LINENO: result: no" >&5
10833 echo "${ECHO_T}no" >&6
10834 fi
10835
10836 # Check whether --enable-balloc or --disable-balloc was given.
10837 if test "${enable_balloc+set}" = set; then
10838 enableval="$enable_balloc"
10839 balloc=$enableval
10840 else
10841 balloc=yes
10842 fi;
10843
10844 if test "$balloc" = no; then
10845
10846 cat >>confdefs.h <<\_ACEOF
10847 #define NOBALLOC 1
10848 _ACEOF
10849
10850 fi
10851
10852 # Check whether --enable-ricer-hashing or --disable-ricer-hashing was given.
10853 if test "${enable_ricer_hashing+set}" = set; then
10854 enableval="$enable_ricer_hashing"
10855 ricer_hashing=$enableval
10856 else
10857 ricer_hashing=no
10858 fi;
10859
10860 FNVHASH_S=""
10861
10862 if test "$ricer_hashing" = "yes"; then
10863
10864 cat >>confdefs.h <<\_ACEOF
10865 #define RICER_HASHING 1
10866 _ACEOF
10867
10868 FNVHASH_S="fnvhash.s"
10869 fi
10870
10871
10872
10873 # Check whether --enable-small-net or --disable-small-net was given.
10874 if test "${enable_small_net+set}" = set; then
10875 enableval="$enable_small_net"
10876 small_net=$enableval
10877 else
10878 small_net=no
10879 fi;
10880
10881 if test "$small_net" = yes; then
10882
10883 cat >>confdefs.h <<\_ACEOF
10884 #define NICKNAMEHISTORYLENGTH 1500
10885 _ACEOF
10886
10887
10888 cat >>confdefs.h <<\_ACEOF
10889 #define CHANNEL_HEAP_SIZE 256
10890 _ACEOF
10891
10892
10893 cat >>confdefs.h <<\_ACEOF
10894 #define BAN_HEAP_SIZE 128
10895 _ACEOF
10896
10897
10898 cat >>confdefs.h <<\_ACEOF
10899 #define CLIENT_HEAP_SIZE 256
10900 _ACEOF
10901
10902
10903 cat >>confdefs.h <<\_ACEOF
10904 #define LCLIENT_HEAP_SIZE 128
10905 _ACEOF
10906
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define PCLIENT_HEAP_SIZE 32
10910 _ACEOF
10911
10912
10913 cat >>confdefs.h <<\_ACEOF
10914 #define USER_HEAP_SIZE 128
10915 _ACEOF
10916
10917
10918 cat >>confdefs.h <<\_ACEOF
10919 #define DNODE_HEAP_SIZE 256
10920 _ACEOF
10921
10922
10923 cat >>confdefs.h <<\_ACEOF
10924 #define TOPIC_HEAP_SIZE 256
10925 _ACEOF
10926
10927
10928 cat >>confdefs.h <<\_ACEOF
10929 #define LINEBUF_HEAP_SIZE 128
10930 _ACEOF
10931
10932
10933 cat >>confdefs.h <<\_ACEOF
10934 #define MEMBER_HEAP_SIZE 256
10935 _ACEOF
10936
10937
10938 cat >>confdefs.h <<\_ACEOF
10939 #define ND_HEAP_SIZE 128
10940 _ACEOF
10941
10942
10943 cat >>confdefs.h <<\_ACEOF
10944 #define CONFITEM_HEAP_SIZE 128
10945 _ACEOF
10946
10947
10948 cat >>confdefs.h <<\_ACEOF
10949 #define MONITOR_HEAP_SIZE 128
10950 _ACEOF
10951
10952 else
10953
10954 cat >>confdefs.h <<\_ACEOF
10955 #define NICKNAMEHISTORYLENGTH 15000
10956 _ACEOF
10957
10958
10959 cat >>confdefs.h <<\_ACEOF
10960 #define CHANNEL_HEAP_SIZE 8192
10961 _ACEOF
10962
10963
10964 cat >>confdefs.h <<\_ACEOF
10965 #define BAN_HEAP_SIZE 4096
10966 _ACEOF
10967
10968
10969 cat >>confdefs.h <<\_ACEOF
10970 #define CLIENT_HEAP_SIZE 8192
10971 _ACEOF
10972
10973
10974 cat >>confdefs.h <<\_ACEOF
10975 #define LCLIENT_HEAP_SIZE 1024
10976 _ACEOF
10977
10978
10979 cat >>confdefs.h <<\_ACEOF
10980 #define PCLIENT_HEAP_SIZE 256
10981 _ACEOF
10982
10983
10984 cat >>confdefs.h <<\_ACEOF
10985 #define USER_HEAP_SIZE 8192
10986 _ACEOF
10987
10988
10989 cat >>confdefs.h <<\_ACEOF
10990 #define DNODE_HEAP_SIZE 8192
10991 _ACEOF
10992
10993
10994 cat >>confdefs.h <<\_ACEOF
10995 #define TOPIC_HEAP_SIZE 4096
10996 _ACEOF
10997
10998
10999 cat >>confdefs.h <<\_ACEOF
11000 #define LINEBUF_HEAP_SIZE 2048
11001 _ACEOF
11002
11003
11004 cat >>confdefs.h <<\_ACEOF
11005 #define MEMBER_HEAP_SIZE 32768
11006 _ACEOF
11007
11008
11009 cat >>confdefs.h <<\_ACEOF
11010 #define ND_HEAP_SIZE 512
11011 _ACEOF
11012
11013
11014 cat >>confdefs.h <<\_ACEOF
11015 #define CONFITEM_HEAP_SIZE 256
11016 _ACEOF
11017
11018
11019 cat >>confdefs.h <<\_ACEOF
11020 #define MONITOR_HEAP_SIZE 1024
11021 _ACEOF
11022
11023 fi
11024
11025
11026 # Check whether --with-nicklen or --without-nicklen was given.
11027 if 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
11033 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11034 else
11035 NICKLEN="$withval"
11036 fi
11037
11038 else
11039 NICKLEN=15
11040 fi;
11041
11042
11043 # Check whether --with-topiclen or --without-topiclen was given.
11044 if 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
11050 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11051 else
11052 TOPICLEN=$withval
11053 fi
11054
11055 else
11056 TOPICLEN=390
11057 fi;
11058
11059
11060 # Check whether --with-maxclients or --without-maxclients was given.
11061 if test "${with_maxclients+set}" = set; then
11062 withval="$with_maxclients"
11063 MAX_CLIENTS="$withval"
11064 else
11065 MAX_CLIENTS=3000
11066 fi;
11067
11068
11069 if test "$MAX_CLIENTS" = yes; then
11070 MAX_CLIENTS=3000
11071 fi
11072
11073 if test $MAX_CLIENTS -gt 65536; then
11074 MAX_CLIENTS=65536
11075 { echo "$as_me:$LINENO: WARNING: Max connections cannot be larger than 65536!" >&5
11076 echo "$as_me: WARNING: Max connections cannot be larger than 65536!" >&2;}
11077 fi
11078
11079
11080 cat >>confdefs.h <<_ACEOF
11081 #define TOPICLEN ${TOPICLEN}
11082 _ACEOF
11083
11084
11085 cat >>confdefs.h <<_ACEOF
11086 #define NICKLEN (${NICKLEN}+1)
11087 _ACEOF
11088
11089
11090 cat >>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.
11096 if test "${enable_shared_modules+set}" = set; then
11097 enableval="$enable_shared_modules"
11098 shared_modules=$enableval
11099 else
11100 shared_modules="yes"
11101 fi;
11102
11103 if 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
11107 echo "$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
11113 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11114 shared_modules="no"
11115 fi
11116 fi
11117
11118 if test "$shared_modules" = yes; then
11119 DYNLINK_C=dynlink.c
11120
11121 for ac_header in dlfcn.h
11122 do
11123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11125 echo "$as_me:$LINENO: checking for $ac_header" >&5
11126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 fi
11130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11132 else
11133 # Is the header compilable?
11134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h. */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (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
11168 else
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ac_header_compiler=no
11173 fi
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11176 echo "${ECHO_T}$ac_header_compiler" >&6
11177
11178 # Is the header present?
11179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 #include <$ac_header>
11188 _ACEOF
11189 if { (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
11203 else
11204 ac_cpp_err=yes
11205 fi
11206 if test -z "$ac_cpp_err"; then
11207 ac_header_preproc=yes
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 ac_header_preproc=no
11213 fi
11214 rm -f conftest.err conftest.$ac_ext
11215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11216 echo "${ECHO_T}$ac_header_preproc" >&6
11217
11218 # So? What about this header?
11219 case $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
11222 echo "$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
11224 echo "$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
11229 echo "$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
11231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11233 echo "$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
11235 echo "$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
11237 echo "$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
11239 echo "$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 ;;
11249 esac
11250 echo "$as_me:$LINENO: checking for $ac_header" >&5
11251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 eval "$as_ac_Header=\$ac_header_preproc"
11256 fi
11257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11259
11260 fi
11261 if 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
11266 fi
11267
11268 done
11269
11270 echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11271 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6
11272 if test "${ac_cv_search_shl_load+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274 else
11275 ac_func_search_save_LIBS=$LIBS
11276 ac_cv_search_shl_load=no
11277 cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h. */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11283
11284 /* Override any gcc2 internal prototype to avoid an error. */
11285 #ifdef __cplusplus
11286 extern "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. */
11290 char shl_load ();
11291 int
11292 main ()
11293 {
11294 shl_load ();
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (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"
11322 else
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 fi
11327 rm -f conftest.err conftest.$ac_objext \
11328 conftest$ac_exeext conftest.$ac_ext
11329 if 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
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11338
11339 /* Override any gcc2 internal prototype to avoid an error. */
11340 #ifdef __cplusplus
11341 extern "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. */
11345 char shl_load ();
11346 int
11347 main ()
11348 {
11349 shl_load ();
11350 ;
11351 return 0;
11352 }
11353 _ACEOF
11354 rm -f conftest.$ac_objext conftest$ac_exeext
11355 if { (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"
11377 break
11378 else
11379 echo "$as_me: failed program was:" >&5
11380 sed 's/^/| /' conftest.$ac_ext >&5
11381
11382 fi
11383 rm -f conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385 done
11386 fi
11387 LIBS=$ac_func_search_save_LIBS
11388 fi
11389 echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11390 echo "${ECHO_T}$ac_cv_search_shl_load" >&6
11391 if 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
11395 cat >>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
11403 else
11404
11405 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11406 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
11407 if test "${ac_cv_search_dlopen+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 ac_func_search_save_LIBS=$LIBS
11411 ac_cv_search_dlopen=no
11412 cat >conftest.$ac_ext <<_ACEOF
11413 /* confdefs.h. */
11414 _ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418
11419 /* Override any gcc2 internal prototype to avoid an error. */
11420 #ifdef __cplusplus
11421 extern "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. */
11425 char dlopen ();
11426 int
11427 main ()
11428 {
11429 dlopen ();
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (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"
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 fi
11462 rm -f conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
11464 if 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
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473
11474 /* Override any gcc2 internal prototype to avoid an error. */
11475 #ifdef __cplusplus
11476 extern "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. */
11480 char dlopen ();
11481 int
11482 main ()
11483 {
11484 dlopen ();
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 rm -f conftest.$ac_objext conftest$ac_exeext
11490 if { (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"
11512 break
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 fi
11518 rm -f conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 done
11521 fi
11522 LIBS=$ac_func_search_save_LIBS
11523 fi
11524 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11525 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
11526 if test "$ac_cv_search_dlopen" != no; then
11527 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
11528
11529
11530 cat >>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
11539 for ac_header in mach-o/dyld.h
11540 do
11541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11543 echo "$as_me:$LINENO: checking for $ac_header" >&5
11544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 fi
11548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11550 else
11551 # Is the header compilable?
11552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h. */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h. */
11560 $ac_includes_default
11561 #include <$ac_header>
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (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
11586 else
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_header_compiler=no
11591 fi
11592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11594 echo "${ECHO_T}$ac_header_compiler" >&6
11595
11596 # Is the header present?
11597 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 #include <$ac_header>
11606 _ACEOF
11607 if { (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
11621 else
11622 ac_cpp_err=yes
11623 fi
11624 if test -z "$ac_cpp_err"; then
11625 ac_header_preproc=yes
11626 else
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_header_preproc=no
11631 fi
11632 rm -f conftest.err conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11634 echo "${ECHO_T}$ac_header_preproc" >&6
11635
11636 # So? What about this header?
11637 case $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
11640 echo "$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
11642 echo "$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
11647 echo "$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
11649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11651 echo "$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
11653 echo "$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
11655 echo "$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
11657 echo "$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 ;;
11667 esac
11668 echo "$as_me:$LINENO: checking for $ac_header" >&5
11669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 else
11673 eval "$as_ac_Header=\$ac_header_preproc"
11674 fi
11675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11677
11678 fi
11679 if 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
11684 fi
11685
11686 done
11687
11688 fi
11689 echo "$as_me:$LINENO: checking for dlsym" >&5
11690 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
11691 if test "${ac_cv_func_dlsym+set}" = set; then
11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 else
11694 cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h. */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>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
11719 extern "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. */
11724 char 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)
11729 choke me
11730 #else
11731 char (*f) () = dlsym;
11732 #endif
11733 #ifdef __cplusplus
11734 }
11735 #endif
11736
11737 int
11738 main ()
11739 {
11740 return f != dlsym;
11741 ;
11742 return 0;
11743 }
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (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
11768 else
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772 ac_cv_func_dlsym=no
11773 fi
11774 rm -f conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 fi
11777 echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11778 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
11779 if test $ac_cv_func_dlsym = yes; then
11780 :
11781 else
11782
11783 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11784 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11785 shared_modules=no
11786
11787 fi
11788
11789
11790 for ac_func in dlfunc
11791 do
11792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793 echo "$as_me:$LINENO: checking for $ac_func" >&5
11794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11795 if eval "test \"\${$as_ac_var+set}\" = set"; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798 cat >conftest.$ac_ext <<_ACEOF
11799 /* confdefs.h. */
11800 _ACEOF
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>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
11823 extern "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. */
11828 char $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)
11833 choke me
11834 #else
11835 char (*f) () = $ac_func;
11836 #endif
11837 #ifdef __cplusplus
11838 }
11839 #endif
11840
11841 int
11842 main ()
11843 {
11844 return f != $ac_func;
11845 ;
11846 return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext conftest$ac_exeext
11850 if { (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"
11872 else
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 eval "$as_ac_var=no"
11877 fi
11878 rm -f conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 fi
11881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11883 if 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
11888 fi
11889 done
11890
11891
11892 else
11893
11894 shared_modules=no
11895
11896 fi
11897
11898
11899 fi
11900
11901 fi
11902
11903
11904 cat >>confdefs.h <<_ACEOF
11905 #define SHARED_SUFFIX "$SUFFIX"
11906 _ACEOF
11907
11908
11909 if 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
11914 echo $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
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922
11923 int
11924 main ()
11925 {
11926 int i;
11927 ;
11928 return 0;
11929 }
11930 _ACEOF
11931 rm -f conftest.$ac_objext conftest$ac_exeext
11932 if { (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
11954 else
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958 found=no
11959 fi
11960 rm -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
11975 echo "${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
11982 echo $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
11985 echo "${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
11991 echo "${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
11996 echo "${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
11999 echo $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
12003 echo "${ECHO_T}no" >&6
12004 else
12005 echo "$as_me:$LINENO: result: yes" >&5
12006 echo "${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
12014 echo "${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
12021 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6
12022 PICFLAGS="-fPIC -DPIC -shared"
12023 else
12024 echo "$as_me:$LINENO: result: no" >&5
12025 echo "${ECHO_T}no" >&6
12026 shared_modules=no
12027 fi
12028 fi
12029 fi
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.
12035 if test "${enable_warnings+set}" = set; then
12036 enableval="$enable_warnings"
12037
12038 IRC_CFLAGS="$IRC_CFLAGS -O0"
12039 CFLAGS="$IRC_CFLAGS"
12040
12041
12042 echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
12043 echo $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
12048 else
12049
12050 oldcflags="${CFLAGS-}"
12051 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12058
12059 #include <string.h>
12060 #include <stdio.h>
12061 int main(void);
12062
12063 int
12064 main ()
12065 {
12066
12067 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12068
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (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
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 charybdis_cv_c_gcc_w_all=no
12101 fi
12102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12103 CFLAGS="${oldcflags}"
12104 fi
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
12109 echo "${ECHO_T}ok" >&6
12110 else
12111 charybdis_cv_c_gcc_w_all=''
12112 echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6
12114 fi
12115 else
12116 echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6
12118 fi
12119
12120
12121 echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12122 echo $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
12127 else
12128
12129 oldcflags="${CFLAGS-}"
12130 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12131 cat >conftest.$ac_ext <<_ACEOF
12132 /* confdefs.h. */
12133 _ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137
12138 #include <string.h>
12139 #include <stdio.h>
12140 int main(void);
12141
12142 int
12143 main ()
12144 {
12145
12146 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12147
12148 ;
12149 return 0;
12150 }
12151 _ACEOF
12152 rm -f conftest.$ac_objext
12153 if { (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
12175 else
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 charybdis_cv_c_gcc_w_pointer_arith=no
12180 fi
12181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12182 CFLAGS="${oldcflags}"
12183 fi
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
12188 echo "${ECHO_T}ok" >&6
12189 else
12190 charybdis_cv_c_gcc_w_pointer_arith=''
12191 echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6
12193 fi
12194 else
12195 echo "$as_me:$LINENO: result: no" >&5
12196 echo "${ECHO_T}no" >&6
12197 fi
12198
12199
12200 echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12201 echo $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
12206 else
12207
12208 oldcflags="${CFLAGS-}"
12209 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216
12217 #include <string.h>
12218 #include <stdio.h>
12219 int main(void);
12220
12221 int
12222 main ()
12223 {
12224
12225 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12226
12227 ;
12228 return 0;
12229 }
12230 _ACEOF
12231 rm -f conftest.$ac_objext
12232 if { (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
12254 else
12255 echo "$as_me: failed program was:" >&5
12256 sed 's/^/| /' conftest.$ac_ext >&5
12257
12258 charybdis_cv_c_gcc_w_implicit=no
12259 fi
12260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12261 CFLAGS="${oldcflags}"
12262 fi
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
12267 echo "${ECHO_T}ok" >&6
12268 else
12269 charybdis_cv_c_gcc_w_implicit=''
12270 echo "$as_me:$LINENO: result: no" >&5
12271 echo "${ECHO_T}no" >&6
12272 fi
12273 else
12274 echo "$as_me:$LINENO: result: no" >&5
12275 echo "${ECHO_T}no" >&6
12276 fi
12277
12278
12279 echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12280 echo $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
12285 else
12286
12287 oldcflags="${CFLAGS-}"
12288 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12289 cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h. */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295
12296 #include <string.h>
12297 #include <stdio.h>
12298 int main(void);
12299
12300 int
12301 main ()
12302 {
12303
12304 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12305
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (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
12333 else
12334 echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 charybdis_cv_c_gcc_w_cast_align=no
12338 fi
12339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 CFLAGS="${oldcflags}"
12341 fi
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
12346 echo "${ECHO_T}ok" >&6
12347 else
12348 charybdis_cv_c_gcc_w_cast_align=''
12349 echo "$as_me:$LINENO: result: no" >&5
12350 echo "${ECHO_T}no" >&6
12351 fi
12352 else
12353 echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6
12355 fi
12356
12357
12358 echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12359 echo $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
12364 else
12365
12366 oldcflags="${CFLAGS-}"
12367 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12368 cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374
12375 #include <string.h>
12376 #include <stdio.h>
12377 int main(void);
12378
12379 int
12380 main ()
12381 {
12382
12383 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12384
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext
12390 if { (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
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 charybdis_cv_c_gcc_w_cast_qual=no
12417 fi
12418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12419 CFLAGS="${oldcflags}"
12420 fi
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
12425 echo "${ECHO_T}ok" >&6
12426 else
12427 charybdis_cv_c_gcc_w_cast_qual=''
12428 echo "$as_me:$LINENO: result: no" >&5
12429 echo "${ECHO_T}no" >&6
12430 fi
12431 else
12432 echo "$as_me:$LINENO: result: no" >&5
12433 echo "${ECHO_T}no" >&6
12434 fi
12435
12436
12437 echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12438 echo $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
12443 else
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
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453
12454 #include <string.h>
12455 #include <stdio.h>
12456 int main(void);
12457
12458 int
12459 main ()
12460 {
12461
12462 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12463
12464 ;
12465 return 0;
12466 }
12467 _ACEOF
12468 rm -f conftest.$ac_objext
12469 if { (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
12491 else
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12494
12495 charybdis_cv_c_gcc_prototypes=no
12496 fi
12497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12498 CFLAGS="${oldcflags}"
12499 fi
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
12504 echo "${ECHO_T}ok" >&6
12505 else
12506 charybdis_cv_c_gcc_prototypes=''
12507 echo "$as_me:$LINENO: result: no" >&5
12508 echo "${ECHO_T}no" >&6
12509 fi
12510 else
12511 echo "$as_me:$LINENO: result: no" >&5
12512 echo "${ECHO_T}no" >&6
12513 fi
12514
12515
12516 echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12517 echo $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
12522 else
12523
12524 oldcflags="${CFLAGS-}"
12525 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12526 cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h. */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532
12533 #include <string.h>
12534 #include <stdio.h>
12535 int main(void);
12536
12537 int
12538 main ()
12539 {
12540
12541 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12542
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (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
12570 else
12571 echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 charybdis_cv_c_gcc_parenthesis=no
12575 fi
12576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577 CFLAGS="${oldcflags}"
12578 fi
12579
12580 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12581 CWARNS="${CWARNS}-Wparenthesis "
12582 echo "$as_me:$LINENO: result: ok" >&5
12583 echo "${ECHO_T}ok" >&6
12584 else
12585 charybdis_cv_c_gcc_parenthesis=''
12586 echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6
12588 fi
12589 else
12590 echo "$as_me:$LINENO: result: no" >&5
12591 echo "${ECHO_T}no" >&6
12592 fi
12593
12594
12595 echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12596 echo $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
12601 else
12602
12603 oldcflags="${CFLAGS-}"
12604 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12605 cat >conftest.$ac_ext <<_ACEOF
12606 /* confdefs.h. */
12607 _ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12611
12612 #include <string.h>
12613 #include <stdio.h>
12614 int main(void);
12615
12616 int
12617 main ()
12618 {
12619
12620 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12621
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext
12627 if { (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
12649 else
12650 echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 charybdis_cv_c_gcc_w=no
12654 fi
12655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12656 CFLAGS="${oldcflags}"
12657 fi
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
12662 echo "${ECHO_T}ok" >&6
12663 else
12664 charybdis_cv_c_gcc_w=''
12665 echo "$as_me:$LINENO: result: no" >&5
12666 echo "${ECHO_T}no" >&6
12667 fi
12668 else
12669 echo "$as_me:$LINENO: result: no" >&5
12670 echo "${ECHO_T}no" >&6
12671 fi
12672
12673
12674 echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12675 echo $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
12680 else
12681
12682 oldcflags="${CFLAGS-}"
12683 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h. */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12690
12691 #include <string.h>
12692 #include <stdio.h>
12693 int main(void);
12694
12695 int
12696 main ()
12697 {
12698
12699 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12700
12701 ;
12702 return 0;
12703 }
12704 _ACEOF
12705 rm -f conftest.$ac_objext
12706 if { (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
12728 else
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 charybdis_cv_c_gcc_w_extra=no
12733 fi
12734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12735 CFLAGS="${oldcflags}"
12736 fi
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
12741 echo "${ECHO_T}ok" >&6
12742 else
12743 charybdis_cv_c_gcc_w_extra=''
12744 echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6
12746 fi
12747 else
12748 echo "$as_me:$LINENO: result: no" >&5
12749 echo "${ECHO_T}no" >&6
12750 fi
12751
12752
12753 echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12754 echo $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
12759 else
12760
12761 oldcflags="${CFLAGS-}"
12762 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769
12770 #include <string.h>
12771 #include <stdio.h>
12772 int main(void);
12773
12774 int
12775 main ()
12776 {
12777
12778 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12779
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (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
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 charybdis_cv_c_gcc_w_shadow=no
12812 fi
12813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814 CFLAGS="${oldcflags}"
12815 fi
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
12820 echo "${ECHO_T}ok" >&6
12821 else
12822 charybdis_cv_c_gcc_w_shadow=''
12823 echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6
12825 fi
12826 else
12827 echo "$as_me:$LINENO: result: no" >&5
12828 echo "${ECHO_T}no" >&6
12829 fi
12830
12831
12832 echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12833 echo $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
12838 else
12839
12840 oldcflags="${CFLAGS-}"
12841 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848
12849 #include <string.h>
12850 #include <stdio.h>
12851 int main(void);
12852
12853 int
12854 main ()
12855 {
12856
12857 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12858
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 rm -f conftest.$ac_objext
12864 if { (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
12886 else
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 charybdis_cv_c_gcc_w_missing_noreturn=no
12891 fi
12892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12893 CFLAGS="${oldcflags}"
12894 fi
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
12899 echo "${ECHO_T}ok" >&6
12900 else
12901 charybdis_cv_c_gcc_w_missing_noreturn=''
12902 echo "$as_me:$LINENO: result: no" >&5
12903 echo "${ECHO_T}no" >&6
12904 fi
12905 else
12906 echo "$as_me:$LINENO: result: no" >&5
12907 echo "${ECHO_T}no" >&6
12908 fi
12909
12910
12911 echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12912 echo $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
12917 else
12918
12919 oldcflags="${CFLAGS-}"
12920 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h. */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927
12928 #include <string.h>
12929 #include <stdio.h>
12930 int main(void);
12931
12932 int
12933 main ()
12934 {
12935
12936 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12937
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 rm -f conftest.$ac_objext
12943 if { (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
12965 else
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969 charybdis_cv_c_gcc_w_undef=no
12970 fi
12971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12972 CFLAGS="${oldcflags}"
12973 fi
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
12978 echo "${ECHO_T}ok" >&6
12979 else
12980 charybdis_cv_c_gcc_w_undef=''
12981 echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6
12983 fi
12984 else
12985 echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6
12987 fi
12988
12989
12990 echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12991 echo $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
12996 else
12997
12998 oldcflags="${CFLAGS-}"
12999 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006
13007 #include <string.h>
13008 #include <stdio.h>
13009 int main(void);
13010
13011 int
13012 main ()
13013 {
13014
13015 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13016
13017 ;
13018 return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext
13022 if { (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
13044 else
13045 echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.$ac_ext >&5
13047
13048 charybdis_cv_c_gcc_w_packed=no
13049 fi
13050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13051 CFLAGS="${oldcflags}"
13052 fi
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
13057 echo "${ECHO_T}ok" >&6
13058 else
13059 charybdis_cv_c_gcc_w_packed=''
13060 echo "$as_me:$LINENO: result: no" >&5
13061 echo "${ECHO_T}no" >&6
13062 fi
13063 else
13064 echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6
13066 fi
13067
13068
13069 echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
13070 echo $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
13075 else
13076
13077 oldcflags="${CFLAGS-}"
13078 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
13079 cat >conftest.$ac_ext <<_ACEOF
13080 /* confdefs.h. */
13081 _ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085
13086 #include <string.h>
13087 #include <stdio.h>
13088 int main(void);
13089
13090 int
13091 main ()
13092 {
13093
13094 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13095
13096 ;
13097 return 0;
13098 }
13099 _ACEOF
13100 rm -f conftest.$ac_objext
13101 if { (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
13123 else
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13126
13127 charybdis_cv_c_gcc_w_nested_externs=no
13128 fi
13129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13130 CFLAGS="${oldcflags}"
13131 fi
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
13136 echo "${ECHO_T}ok" >&6
13137 else
13138 charybdis_cv_c_gcc_w_nested_externs=''
13139 echo "$as_me:$LINENO: result: no" >&5
13140 echo "${ECHO_T}no" >&6
13141 fi
13142 else
13143 echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6
13145 fi
13146
13147
13148 echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13149 echo $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
13154 else
13155
13156 oldcflags="${CFLAGS-}"
13157 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h. */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164
13165 #include <string.h>
13166 #include <stdio.h>
13167 int main(void);
13168
13169 int
13170 main ()
13171 {
13172
13173 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13174
13175 ;
13176 return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (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
13202 else
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206 charybdis_cv_c_gcc_w_bad_function_cast=no
13207 fi
13208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13209 CFLAGS="${oldcflags}"
13210 fi
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
13215 echo "${ECHO_T}ok" >&6
13216 else
13217 charybdis_cv_c_gcc_w_bad_function_cast=''
13218 echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6
13220 fi
13221 else
13222 echo "$as_me:$LINENO: result: no" >&5
13223 echo "${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
13228 echo $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
13233 else
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
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243
13244 #include <string.h>
13245 #include <stdio.h>
13246 int main(void);
13247
13248 int
13249 main ()
13250 {
13251
13252 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13253
13254 ;
13255 return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (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
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 charybdis_cv_c_gcc_w_unused=no
13286 fi
13287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13288 CFLAGS="${oldcflags}"
13289 fi
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
13294 echo "${ECHO_T}ok" >&6
13295 else
13296 charybdis_cv_c_gcc_w_unused=''
13297 echo "$as_me:$LINENO: result: no" >&5
13298 echo "${ECHO_T}no" >&6
13299 fi
13300 else
13301 echo "$as_me:$LINENO: result: no" >&5
13302 echo "${ECHO_T}no" >&6
13303 fi
13304
13305
13306 echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13307 echo $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
13312 else
13313
13314 oldcflags="${CFLAGS-}"
13315 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13316 cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h. */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322
13323 #include <string.h>
13324 #include <stdio.h>
13325 int main(void);
13326
13327 int
13328 main ()
13329 {
13330
13331 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13332
13333 ;
13334 return 0;
13335 }
13336 _ACEOF
13337 rm -f conftest.$ac_objext
13338 if { (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
13360 else
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364 charybdis_cv_c_gcc_w_redundant_decls=no
13365 fi
13366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13367 CFLAGS="${oldcflags}"
13368 fi
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
13373 echo "${ECHO_T}ok" >&6
13374 else
13375 charybdis_cv_c_gcc_w_redundant_decls=''
13376 echo "$as_me:$LINENO: result: no" >&5
13377 echo "${ECHO_T}no" >&6
13378 fi
13379 else
13380 echo "$as_me:$LINENO: result: no" >&5
13381 echo "${ECHO_T}no" >&6
13382 fi
13383
13384
13385 echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13386 echo $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
13391 else
13392
13393 oldcflags="${CFLAGS-}"
13394 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h. */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13401
13402 #include <string.h>
13403 #include <stdio.h>
13404 int main(void);
13405
13406 int
13407 main ()
13408 {
13409
13410 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13411
13412 ;
13413 return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (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
13439 else
13440 echo "$as_me: failed program was:" >&5
13441 sed 's/^/| /' conftest.$ac_ext >&5
13442
13443 charybdis_cv_c_gcc_w_float_equal=no
13444 fi
13445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13446 CFLAGS="${oldcflags}"
13447 fi
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
13452 echo "${ECHO_T}ok" >&6
13453 else
13454 charybdis_cv_c_gcc_w_float_equal=''
13455 echo "$as_me:$LINENO: result: no" >&5
13456 echo "${ECHO_T}no" >&6
13457 fi
13458 else
13459 echo "$as_me:$LINENO: result: no" >&5
13460 echo "${ECHO_T}no" >&6
13461 fi
13462
13463
13464 echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13465 echo $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
13470 else
13471
13472 oldcflags="${CFLAGS-}"
13473 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13474 cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h. */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480
13481 #include <string.h>
13482 #include <stdio.h>
13483 int main(void);
13484
13485 int
13486 main ()
13487 {
13488
13489 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13490
13491 ;
13492 return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext
13496 if { (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
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 charybdis_cv_c_gcc_w_format=no
13523 fi
13524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13525 CFLAGS="${oldcflags}"
13526 fi
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
13531 echo "${ECHO_T}ok" >&6
13532 else
13533 charybdis_cv_c_gcc_w_format=''
13534 echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13536 fi
13537 else
13538 echo "$as_me:$LINENO: result: no" >&5
13539 echo "${ECHO_T}no" >&6
13540 fi
13541
13542
13543 echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13544 echo $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
13549 else
13550
13551 oldcflags="${CFLAGS-}"
13552 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559
13560 #include <string.h>
13561 #include <stdio.h>
13562 int main(void);
13563
13564 int
13565 main ()
13566 {
13567
13568 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13569
13570 ;
13571 return 0;
13572 }
13573 _ACEOF
13574 rm -f conftest.$ac_objext
13575 if { (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
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13600
13601 charybdis_cv_c_gcc_pedantic=no
13602 fi
13603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13604 CFLAGS="${oldcflags}"
13605 fi
13606
13607 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13608 CWARNS="${CWARNS}-pedantic "
13609 echo "$as_me:$LINENO: result: ok" >&5
13610 echo "${ECHO_T}ok" >&6
13611 else
13612 charybdis_cv_c_gcc_pedantic=''
13613 echo "$as_me:$LINENO: result: no" >&5
13614 echo "${ECHO_T}no" >&6
13615 fi
13616 else
13617 echo "$as_me:$LINENO: result: no" >&5
13618 echo "${ECHO_T}no" >&6
13619 fi
13620
13621
13622 IRC_CFLAGS="$CFLAGS"
13623
13624 fi;
13625
13626 if test "$shared_modules" = no; then
13627 DYNLINK_C=""
13628 MOD_TARGET="libmodules.a"
13629 MODULES_LIBS="../modules/libmodules.a"
13630 SEDOBJ=""
13631
13632 cat >>confdefs.h <<\_ACEOF
13633 #define STATIC_MODULES 1
13634 _ACEOF
13635
13636 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13637 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13638 fi
13639
13640 if test "$shared_modules" = yes; then
13641
13642 echo "$as_me:$LINENO: checking for nlist" >&5
13643 echo $ECHO_N "checking for nlist... $ECHO_C" >&6
13644 if test "${ac_cv_func_nlist+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647 cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h. */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>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
13672 extern "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. */
13677 char 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)
13682 choke me
13683 #else
13684 char (*f) () = nlist;
13685 #endif
13686 #ifdef __cplusplus
13687 }
13688 #endif
13689
13690 int
13691 main ()
13692 {
13693 return f != nlist;
13694 ;
13695 return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext conftest$ac_exeext
13699 if { (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
13721 else
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13724
13725 ac_cv_func_nlist=no
13726 fi
13727 rm -f conftest.err conftest.$ac_objext \
13728 conftest$ac_exeext conftest.$ac_ext
13729 fi
13730 echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13731 echo "${ECHO_T}$ac_cv_func_nlist" >&6
13732 if test $ac_cv_func_nlist = yes; then
13733 :
13734 else
13735 echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13736 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6
13737 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740 ac_check_lib_save_LIBS=$LIBS
13741 LIBS="-ldl $LIBS"
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748
13749 /* Override any gcc2 internal prototype to avoid an error. */
13750 #ifdef __cplusplus
13751 extern "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. */
13755 char nlist ();
13756 int
13757 main ()
13758 {
13759 nlist ();
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (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
13787 else
13788 echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791 ac_cv_lib_dl_nlist=no
13792 fi
13793 rm -f conftest.err conftest.$ac_objext \
13794 conftest$ac_exeext conftest.$ac_ext
13795 LIBS=$ac_check_lib_save_LIBS
13796 fi
13797 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13798 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6
13799 if test $ac_cv_lib_dl_nlist = yes; then
13800 nlist_lib="-ldl"
13801 else
13802 echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13803 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6
13804 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807 ac_check_lib_save_LIBS=$LIBS
13808 LIBS="-lelf $LIBS"
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h. */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815
13816 /* Override any gcc2 internal prototype to avoid an error. */
13817 #ifdef __cplusplus
13818 extern "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. */
13822 char nlist ();
13823 int
13824 main ()
13825 {
13826 nlist ();
13827 ;
13828 return 0;
13829 }
13830 _ACEOF
13831 rm -f conftest.$ac_objext conftest$ac_exeext
13832 if { (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
13854 else
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ac_cv_lib_elf_nlist=no
13859 fi
13860 rm -f conftest.err conftest.$ac_objext \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13863 fi
13864 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13865 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6
13866 if test $ac_cv_lib_elf_nlist = yes; then
13867 nlist_lib="-lelf"
13868 fi
13869
13870
13871 fi
13872
13873
13874 fi
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
13879 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
13880 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882 fi
13883 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
13885 else
13886 # Is the header compilable?
13887 echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13888 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6
13889 cat >conftest.$ac_ext <<_ACEOF
13890 /* confdefs.h. */
13891 _ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 $ac_includes_default
13896 #include <libelf/nlist.h>
13897 _ACEOF
13898 rm -f conftest.$ac_objext
13899 if { (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
13921 else
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13924
13925 ac_header_compiler=no
13926 fi
13927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13929 echo "${ECHO_T}$ac_header_compiler" >&6
13930
13931 # Is the header present?
13932 echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13933 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 #include <libelf/nlist.h>
13941 _ACEOF
13942 if { (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
13956 else
13957 ac_cpp_err=yes
13958 fi
13959 if test -z "$ac_cpp_err"; then
13960 ac_header_preproc=yes
13961 else
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ac_header_preproc=no
13966 fi
13967 rm -f conftest.err conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13969 echo "${ECHO_T}$ac_header_preproc" >&6
13970
13971 # So? What about this header?
13972 case $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
13975 echo "$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
13977 echo "$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
13982 echo "$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
13984 echo "$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
13986 echo "$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
13988 echo "$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
13990 echo "$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
13992 echo "$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 ;;
14002 esac
14003 echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
14004 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6
14005 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
14006 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008 ac_cv_header_libelf_nlist_h=$ac_header_preproc
14009 fi
14010 echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
14011 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6
14012
14013 fi
14014 if test $ac_cv_header_libelf_nlist_h = yes; then
14015 nlist_h="libelf/nlist.h"
14016 fi
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
14021 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6
14022 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 fi
14025 echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6
14027 else
14028 # Is the header compilable?
14029 echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
14030 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <elf/nlist.h>
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (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
14063 else
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_header_compiler=no
14068 fi
14069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14071 echo "${ECHO_T}$ac_header_compiler" >&6
14072
14073 # Is the header present?
14074 echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
14075 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h. */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 #include <elf/nlist.h>
14083 _ACEOF
14084 if { (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
14098 else
14099 ac_cpp_err=yes
14100 fi
14101 if test -z "$ac_cpp_err"; then
14102 ac_header_preproc=yes
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ac_header_preproc=no
14108 fi
14109 rm -f conftest.err conftest.$ac_ext
14110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14111 echo "${ECHO_T}$ac_header_preproc" >&6
14112
14113 # So? What about this header?
14114 case $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
14117 echo "$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
14119 echo "$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
14124 echo "$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
14126 echo "$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
14128 echo "$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
14130 echo "$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
14132 echo "$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
14134 echo "$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 ;;
14144 esac
14145 echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14146 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6
14147 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150 ac_cv_header_elf_nlist_h=$ac_header_preproc
14151 fi
14152 echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14153 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6
14154
14155 fi
14156 if test $ac_cv_header_elf_nlist_h = yes; then
14157 nlist_h="elf/nlist.h"
14158 fi
14159
14160
14161 if test "${ac_cv_header_nlist_h+set}" = set; then
14162 echo "$as_me:$LINENO: checking for nlist.h" >&5
14163 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
14164 if test "${ac_cv_header_nlist_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 fi
14167 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
14169 else
14170 # Is the header compilable?
14171 echo "$as_me:$LINENO: checking nlist.h usability" >&5
14172 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
14173 cat >conftest.$ac_ext <<_ACEOF
14174 /* confdefs.h. */
14175 _ACEOF
14176 cat confdefs.h >>conftest.$ac_ext
14177 cat >>conftest.$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 #include <nlist.h>
14181 _ACEOF
14182 rm -f conftest.$ac_objext
14183 if { (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
14205 else
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 ac_header_compiler=no
14210 fi
14211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14212 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14213 echo "${ECHO_T}$ac_header_compiler" >&6
14214
14215 # Is the header present?
14216 echo "$as_me:$LINENO: checking nlist.h presence" >&5
14217 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 #include <nlist.h>
14225 _ACEOF
14226 if { (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
14240 else
14241 ac_cpp_err=yes
14242 fi
14243 if test -z "$ac_cpp_err"; then
14244 ac_header_preproc=yes
14245 else
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 ac_header_preproc=no
14250 fi
14251 rm -f conftest.err conftest.$ac_ext
14252 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14253 echo "${ECHO_T}$ac_header_preproc" >&6
14254
14255 # So? What about this header?
14256 case $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
14259 echo "$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
14261 echo "$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
14266 echo "$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
14268 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14269 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14270 echo "$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
14272 echo "$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
14274 echo "$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
14276 echo "$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 ;;
14286 esac
14287 echo "$as_me:$LINENO: checking for nlist.h" >&5
14288 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
14289 if test "${ac_cv_header_nlist_h+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292 ac_cv_header_nlist_h=$ac_header_preproc
14293 fi
14294 echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
14296
14297 fi
14298 if test $ac_cv_header_nlist_h = yes; then
14299 nlist_h="nlist.h"
14300 fi
14301
14302
14303 if test x"$nlist_h" = "x"; then
14304
14305 cat >>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
14311 echo $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
14314 else
14315
14316 cat << EOF > conftest.c
14317 #include <$nlist_h>
14318 #include <stdio.h>
14319 #include <stdlib.h>
14320 void _modinit(void);
14321 int 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 }
14344 void _modinit(void) { return; }
14345 EOF
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
14349 echo "${ECHO_T}$symbol_underscores" >&6
14350 $RM -f conftest conftest.c
14351
14352 fi
14353
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define SYMBOL_PREFIX "${symbol_underscores}"
14357 _ACEOF
14358
14359 fi
14360 fi
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375 if test "$prefix" = "NONE"; then
14376
14377 cat >>confdefs.h <<_ACEOF
14378 #define IRCD_PREFIX "$ac_default_prefix"
14379 _ACEOF
14380
14381
14382 else
14383
14384
14385 prefix=`echo $prefix | sed 's/\/$//'`
14386
14387 cat >>confdefs.h <<_ACEOF
14388 #define IRCD_PREFIX "$prefix"
14389 _ACEOF
14390
14391
14392 fi
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
14397 cat >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
14442 if 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
14449 fi
14450 rm -f confcache
14451
14452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14453 # Let make expand exec_prefix.
14454 test "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).
14460 if test "x$srcdir" = x.; then
14461 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14462 s/:*\$(srcdir):*/:/;
14463 s/:*\${srcdir}:*/:/;
14464 s/:*@srcdir@:*/:/;
14465 s/^\([^=]*=[ ]*\):*/\1/;
14466 s/:*$//;
14467 s/^[^=]*=[ ]*$//;
14468 }'
14469 fi
14470
14471 DEFS=-DHAVE_CONFIG_H
14472
14473 ac_libobjs=
14474 ac_ltlibobjs=
14475 for 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'
14482 done
14483 LIBOBJS=$ac_libobjs
14484
14485 LTLIBOBJS=$ac_ltlibobjs
14486
14487
14488
14489 : ${CONFIG_STATUS=./config.status}
14490 ac_clean_files_save=$ac_clean_files
14491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14494 cat >$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
14501 debug=false
14502 ac_cs_recheck=false
14503 ac_cs_silent=false
14504 SHELL=\${CONFIG_SHELL-$SHELL}
14505 _ACEOF
14506
14507 cat >>$CONFIG_STATUS <<\_ACEOF
14508 ## --------------------- ##
14509 ## M4sh Initialization. ##
14510 ## --------------------- ##
14511
14512 # Be Bourne compatible
14513 if 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+"$@"}'='"$@"'
14519 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14520 set -o posix
14521 fi
14522 DUALCASE=1; export DUALCASE # for MKS sh
14523
14524 # Support unset when possible.
14525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14526 as_unset=unset
14527 else
14528 as_unset=false
14529 fi
14530
14531
14532 # Work around bugs in pre-3.0 UWIN ksh.
14533 $as_unset ENV MAIL MAILPATH
14534 PS1='$ '
14535 PS2='> '
14536 PS4='+ '
14537
14538 # NLS nuisances.
14539 for 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
14543 do
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
14549 done
14550
14551 # Required to use basename.
14552 if expr a : '\(a\)' >/dev/null 2>&1; then
14553 as_expr=expr
14554 else
14555 as_expr=false
14556 fi
14557
14558 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14559 as_basename=basename
14560 else
14561 as_basename=false
14562 fi
14563
14564
14565 # Name of the executable.
14566 as_me=`$as_basename "$0" ||
14567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14568 X"$0" : 'X\(//\)$' \| \
14569 X"$0" : 'X\(/\)$' \| \
14570 . : '\(.\)' 2>/dev/null ||
14571 echo 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.
14580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14583 as_cr_digits='0123456789'
14584 as_cr_alnum=$as_cr_Letters$as_cr_digits
14585
14586 # The user is always right.
14587 if 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
14597 fi
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
14610 for as_dir in $PATH
14611 do
14612 IFS=$as_save_IFS
14613 test -z "$as_dir" && as_dir=.
14614 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14615 done
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
14626 echo "$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
14632 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14633 do
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
14653 done
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
14677 echo "$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
14689 case `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= ;;
14694 esac
14695
14696 if expr a : '\(a\)' >/dev/null 2>&1; then
14697 as_expr=expr
14698 else
14699 as_expr=false
14700 fi
14701
14702 rm -f conf$$ conf$$.exe conf$$.file
14703 echo >conf$$.file
14704 if 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
14713 elif ln conf$$.file conf$$ 2>/dev/null; then
14714 as_ln_s=ln
14715 else
14716 as_ln_s='cp -p'
14717 fi
14718 rm -f conf$$ conf$$.exe conf$$.file
14719
14720 if mkdir -p . 2>/dev/null; then
14721 as_mkdir_p=:
14722 else
14723 test -d ./-p && rmdir ./-p
14724 as_mkdir_p=false
14725 fi
14726
14727 as_executable_p="test -f"
14728
14729 # Sed expression to map a string onto a valid CPP name.
14730 as_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.
14733 as_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.
14738 as_nl='
14739 '
14740 IFS=" $as_nl"
14741
14742 # CDPATH.
14743 $as_unset CDPATH
14744
14745 exec 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.
14750 exec 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
14757 cat >&5 <<_CSEOF
14758
14759 This file was extended by charybdis $as_me 2.2.0, which was
14760 generated 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
14769 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14770 echo >&5
14771 _ACEOF
14772
14773 # Files that config.status was made for.
14774 if test -n "$ac_config_files"; then
14775 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14776 fi
14777
14778 if test -n "$ac_config_headers"; then
14779 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14780 fi
14781
14782 if test -n "$ac_config_links"; then
14783 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14784 fi
14785
14786 if test -n "$ac_config_commands"; then
14787 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14788 fi
14789
14790 cat >>$CONFIG_STATUS <<\_ACEOF
14791
14792 ac_cs_usage="\
14793 \`$as_me' instantiates files from templates according to the
14794 current configuration.
14795
14796 Usage: $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
14808 Configuration files:
14809 $config_files
14810
14811 Configuration headers:
14812 $config_headers
14813
14814 Report bugs to <bug-autoconf@gnu.org>."
14815 _ACEOF
14816
14817 cat >>$CONFIG_STATUS <<_ACEOF
14818 ac_cs_version="\\
14819 charybdis config.status 2.2.0
14820 configured by $0, generated by GNU Autoconf 2.59,
14821 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14822
14823 Copyright (C) 2003 Free Software Foundation, Inc.
14824 This config.status script is free software; the Free Software Foundation
14825 gives unlimited permission to copy, distribute and modify it."
14826 srcdir=$srcdir
14827 INSTALL="$INSTALL"
14828 _ACEOF
14829
14830 cat >>$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.
14833 ac_need_defaults=:
14834 while test $# != 0
14835 do
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
14856 cat >>$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
14864 Try \`$0 --help' for more information." >&5
14865 echo "$as_me: error: ambiguous option: $1
14866 Try \`$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
14886 Try \`$0 --help' for more information." >&5
14887 echo "$as_me: error: unrecognized option: $1
14888 Try \`$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
14895 done
14896
14897 ac_configure_extra_args=
14898
14899 if $ac_cs_silent; then
14900 exec 6>/dev/null
14901 ac_configure_extra_args="$ac_configure_extra_args --silent"
14902 fi
14903
14904 _ACEOF
14905 cat >>$CONFIG_STATUS <<_ACEOF
14906 if \$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
14909 fi
14910
14911 _ACEOF
14912
14913
14914
14915
14916
14917 cat >>$CONFIG_STATUS <<\_ACEOF
14918 for ac_config_target in $ac_config_targets
14919 do
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
14934 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14935 { (exit 1); exit 1; }; };;
14936 esac
14937 done
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.
14943 if $ac_need_defaults; then
14944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14946 fi
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
14975 cat >>$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
14983 if 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
14987 s,@SHELL@,$SHELL,;t t
14988 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14989 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14990 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14991 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14992 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14993 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14994 s,@exec_prefix@,$exec_prefix,;t t
14995 s,@prefix@,$prefix,;t t
14996 s,@program_transform_name@,$program_transform_name,;t t
14997 s,@bindir@,$bindir,;t t
14998 s,@sbindir@,$sbindir,;t t
14999 s,@libexecdir@,$libexecdir,;t t
15000 s,@datadir@,$datadir,;t t
15001 s,@sysconfdir@,$sysconfdir,;t t
15002 s,@sharedstatedir@,$sharedstatedir,;t t
15003 s,@localstatedir@,$localstatedir,;t t
15004 s,@libdir@,$libdir,;t t
15005 s,@includedir@,$includedir,;t t
15006 s,@oldincludedir@,$oldincludedir,;t t
15007 s,@infodir@,$infodir,;t t
15008 s,@mandir@,$mandir,;t t
15009 s,@build_alias@,$build_alias,;t t
15010 s,@host_alias@,$host_alias,;t t
15011 s,@target_alias@,$target_alias,;t t
15012 s,@DEFS@,$DEFS,;t t
15013 s,@ECHO_C@,$ECHO_C,;t t
15014 s,@ECHO_N@,$ECHO_N,;t t
15015 s,@ECHO_T@,$ECHO_T,;t t
15016 s,@LIBS@,$LIBS,;t t
15017 s,@CC@,$CC,;t t
15018 s,@CFLAGS@,$CFLAGS,;t t
15019 s,@LDFLAGS@,$LDFLAGS,;t t
15020 s,@CPPFLAGS@,$CPPFLAGS,;t t
15021 s,@ac_ct_CC@,$ac_ct_CC,;t t
15022 s,@EXEEXT@,$EXEEXT,;t t
15023 s,@OBJEXT@,$OBJEXT,;t t
15024 s,@MKDEP@,$MKDEP,;t t
15025 s,@MAKEDEPEND@,$MAKEDEPEND,;t t
15026 s,@STDOUT@,$STDOUT,;t t
15027 s,@CPP@,$CPP,;t t
15028 s,@EGREP@,$EGREP,;t t
15029 s,@SET_MAKE@,$SET_MAKE,;t t
15030 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15031 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15032 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15033 s,@RM@,$RM,;t t
15034 s,@CP@,$CP,;t t
15035 s,@MV@,$MV,;t t
15036 s,@LN@,$LN,;t t
15037 s,@SED@,$SED,;t t
15038 s,@AR@,$AR,;t t
15039 s,@LD@,$LD,;t t
15040 s,@RANLIB@,$RANLIB,;t t
15041 s,@TOUCH@,$TOUCH,;t t
15042 s,@YACC@,$YACC,;t t
15043 s,@LEX@,$LEX,;t t
15044 s,@LEXLIB@,$LEXLIB,;t t
15045 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
15046 s,@CRYPT_LIB@,$CRYPT_LIB,;t t
15047 s,@VICONF@,$VICONF,;t t
15048 s,@ALLOCA@,$ALLOCA,;t t
15049 s,@ENCSPEED@,$ENCSPEED,;t t
15050 s,@ZLIB_LD@,$ZLIB_LD,;t t
15051 s,@ETC_DIR@,$ETC_DIR,;t t
15052 s,@confdir@,$confdir,;t t
15053 s,@LOG_DIR@,$LOG_DIR,;t t
15054 s,@logdir@,$logdir,;t t
15055 s,@HELP_DIR@,$HELP_DIR,;t t
15056 s,@helpdir@,$helpdir,;t t
15057 s,@MODULE_DIR@,$MODULE_DIR,;t t
15058 s,@moduledir@,$moduledir,;t t
15059 s,@SELECT_TYPE@,$SELECT_TYPE,;t t
15060 s,@FNVHASH_S@,$FNVHASH_S,;t t
15061 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
15062 s,@MOD_TARGET@,$MOD_TARGET,;t t
15063 s,@SSL_SRCS_ENABLE@,$SSL_SRCS_ENABLE,;t t
15064 s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
15065 s,@SSL_LIBS@,$SSL_LIBS,;t t
15066 s,@PICFLAGS@,$PICFLAGS,;t t
15067 s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
15068 s,@SEDOBJ@,$SEDOBJ,;t t
15069 s,@LIBOBJS@,$LIBOBJS,;t t
15070 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15071 CEOF
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
15112 fi # test -n "$CONFIG_FILES"
15113
15114 _ACEOF
15115 cat >>$CONFIG_STATUS <<\_ACEOF
15116 for 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 ||
15135 echo 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 ||
15154 echo 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
15163 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15164 { (exit 1); exit 1; }; }; }
15165
15166 ac_builddir=.
15167
15168 if 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'`
15172 else
15173 ac_dir_suffix= ac_top_builddir=
15174 fi
15175
15176 case $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 ;;
15190 esac
15191
15192 # Do not use `cd foo && pwd` to compute absolute paths, because
15193 # the directories may not exist.
15194 case `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;;
15202 esac
15203 case $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;;
15211 esac
15212 case $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;;
15220 esac
15221 case $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;;
15229 esac
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
15239 echo "$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
15262 echo "$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
15275 echo "$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
15281 cat >>$CONFIG_STATUS <<_ACEOF
15282 sed "$ac_vpsub
15283 $extrasub
15284 _ACEOF
15285 cat >>$CONFIG_STATUS <<\_ACEOF
15286 :t
15287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15288 s,@configure_input@,$configure_input,;t t
15289 s,@srcdir@,$ac_srcdir,;t t
15290 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15291 s,@top_srcdir@,$ac_top_srcdir,;t t
15292 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15293 s,@builddir@,$ac_builddir,;t t
15294 s,@abs_builddir@,$ac_abs_builddir,;t t
15295 s,@top_builddir@,$ac_top_builddir,;t t
15296 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15297 s,@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
15307 done
15308 _ACEOF
15309 cat >>$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.
15319 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15320 ac_dB='[ ].*$,\1#\2'
15321 ac_dC=' '
15322 ac_dD=',;t'
15323 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15324 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15325 ac_uB='$,\1#\2define\3'
15326 ac_uC=' '
15327 ac_uD=',;t'
15328
15329 for 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
15342 echo "$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
15353 echo "$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
15367 echo "$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.
15384 rm -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'.
15391 cat >confdef2sed.sed <<\_ACEOF
15392 s/[\\&,]/\\&/g
15393 s,[\\$`],\\&,g
15394 t clear
15395 : clear
15396 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15397 t end
15398 s,^[ ]*#[ ]*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.
15404 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15405 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15406 rm -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.
15411 cat >>conftest.undefs <<\_ACEOF
15412 s,^[ ]*#[ ]*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).
15417 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15418 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15419 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15420 echo ' :' >>$CONFIG_STATUS
15421 rm -f conftest.tail
15422 while grep . conftest.defines >/dev/null
15423 do
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
15440 done
15441 rm -f conftest.defines
15442 echo ' fi # grep' >>$CONFIG_STATUS
15443 echo >>$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).
15447 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15448 rm -f conftest.tail
15449 while grep . conftest.undefs >/dev/null
15450 do
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
15467 done
15468 rm -f conftest.undefs
15469
15470 cat >>$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
15484 echo "$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 ||
15492 echo 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 ||
15511 echo 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
15520 echo "$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
15530 done
15531 _ACEOF
15532
15533 cat >>$CONFIG_STATUS <<\_ACEOF
15534
15535 { (exit 0); exit 0; }
15536 _ACEOF
15537 chmod +x $CONFIG_STATUS
15538 ac_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.
15549 if 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; }
15560 fi
15561
15562
15563 if test "$cf_openssl_version_ok" = yes; then
15564 openssl="yes"
15565 else
15566 openssl="no"
15567 fi
15568
15569 if test "$shared_modules" = yes; then
15570 modules=shared
15571 else
15572 modules=static
15573 fi
15574
15575 echo "
15576 Configuration:
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
15591 Use make to compile Charybdis, then make install to install it.
15592 "