]> jfr.im git - irc/rqf/shadowircd.git/blame - configure
[svn] Merge old trunk r2065,r2067:
[irc/rqf/shadowircd.git] / configure
CommitLineData
212380e3 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
631ef239 3# Generated by GNU Autoconf 2.61 for charybdis 2.2.0.
212380e3 4#
5e12fb10 5# $Id: configure 3364 2007-04-03 09:50:56Z nenolod $
212380e3 6#
631ef239 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212380e3 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
631ef239 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
212380e3 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
631ef239 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
212380e3 53fi
212380e3 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
631ef239 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
212380e3 96# Work around bugs in pre-3.0 UWIN ksh.
631ef239 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
212380e3 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
631ef239 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
212380e3 114 fi
115done
116
117# Required to use basename.
631ef239 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 120 as_expr=expr
121else
122 as_expr=false
123fi
124
631ef239 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
631ef239 133as_me=`$as_basename -- "$0" ||
212380e3 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
631ef239 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 137echo X/"$0" |
631ef239 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
212380e3 151
631ef239 152# CDPATH.
153$as_unset CDPATH
212380e3 154
212380e3 155
631ef239 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
212380e3 161fi
162
631ef239 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
212380e3 179
631ef239 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
212380e3 187
631ef239 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
212380e3 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
631ef239 228 case $as_dir in
212380e3 229 /*)
631ef239 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
212380e3 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
212380e3 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
631ef239 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
212380e3 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
631ef239 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
212380e3 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
631ef239 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
212380e3 444 sed '
631ef239 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
212380e3 449 N
631ef239 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
212380e3 452 t loop
631ef239 453 s/-\n.*//
212380e3 454 ' >$as_me.lineno &&
631ef239 455 chmod +x "$as_me.lineno" ||
212380e3 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
631ef239 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
212380e3 463 # Exit status is that of the last command.
464 exit
465}
466
467
631ef239 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
212380e3 483esac
484
631ef239 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
631ef239 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
212380e3 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
631ef239 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
212380e3 507 as_ln_s='cp -p'
212380e3 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
631ef239 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
212380e3 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
631ef239 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
212380e3 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
212380e3 553
631ef239 554exec 7<&0 </dev/null 6>&1
212380e3 555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
212380e3 561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
631ef239 565ac_clean_files=
212380e3 566ac_config_libobj_dir=.
631ef239 567LIBOBJS=
212380e3 568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
212380e3 574# Identity of this package.
575PACKAGE_NAME='charybdis'
576PACKAGE_TARNAME='charybdis'
b1fc1658 577PACKAGE_VERSION='2.2.0'
578PACKAGE_STRING='charybdis 2.2.0'
212380e3 579PACKAGE_BUGREPORT=''
580
581ac_default_prefix=$HOME/ircd
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
631ef239 585#ifdef HAVE_SYS_TYPES_H
212380e3 586# include <sys/types.h>
587#endif
631ef239 588#ifdef HAVE_SYS_STAT_H
212380e3 589# include <sys/stat.h>
590#endif
631ef239 591#ifdef STDC_HEADERS
212380e3 592# include <stdlib.h>
593# include <stddef.h>
594#else
631ef239 595# ifdef HAVE_STDLIB_H
212380e3 596# include <stdlib.h>
597# endif
598#endif
631ef239 599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3 601# include <memory.h>
602# endif
603# include <string.h>
604#endif
631ef239 605#ifdef HAVE_STRINGS_H
212380e3 606# include <strings.h>
607#endif
631ef239 608#ifdef HAVE_INTTYPES_H
212380e3 609# include <inttypes.h>
212380e3 610#endif
631ef239 611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
212380e3 615# include <unistd.h>
616#endif"
617
631ef239 618ac_subst_vars='SHELL
619PATH_SEPARATOR
620PACKAGE_NAME
621PACKAGE_TARNAME
622PACKAGE_VERSION
623PACKAGE_STRING
624PACKAGE_BUGREPORT
625exec_prefix
626prefix
627program_transform_name
628bindir
629sbindir
630libexecdir
631datarootdir
632datadir
633sysconfdir
634sharedstatedir
635localstatedir
636includedir
637oldincludedir
638docdir
639infodir
640htmldir
641dvidir
642pdfdir
643psdir
644libdir
645localedir
646mandir
647DEFS
648ECHO_C
649ECHO_N
650ECHO_T
651LIBS
652build_alias
653host_alias
654target_alias
655CC
656CFLAGS
657LDFLAGS
658CPPFLAGS
659ac_ct_CC
660EXEEXT
661OBJEXT
662MKDEP
663MAKEDEPEND
664STDOUT
665CPP
666GREP
667EGREP
668SET_MAKE
669INSTALL_PROGRAM
670INSTALL_SCRIPT
671INSTALL_DATA
672RM
673CP
674MV
675LN
676SED
677AR
678LD
679RANLIB
680TOUCH
681YACC
682YFLAGS
683LEX
684LEX_OUTPUT_ROOT
685LEXLIB
686CRYPT_LIB
687VICONF
688ALLOCA
689ENCSPEED
690ZLIB_LD
691ETC_DIR
692confdir
693LOG_DIR
694logdir
695HELP_DIR
696helpdir
697MODULE_DIR
698moduledir
699SELECT_TYPE
631ef239 700MODULES_LIBS
701MOD_TARGET
702SSL_SRCS_ENABLE
703SSL_INCLUDES
704SSL_LIBS
705PICFLAGS
706IRC_CFLAGS
707SEDOBJ
708LIBOBJS
709LTLIBOBJS'
212380e3 710ac_subst_files=''
631ef239 711 ac_precious_vars='build_alias
712host_alias
713target_alias
714CC
715CFLAGS
716LDFLAGS
717LIBS
718CPPFLAGS
719CPP
720YACC
721YFLAGS'
722
212380e3 723
724# Initialize some variables set by options.
725ac_init_help=
726ac_init_version=false
727# The variables have the same names as the options, with
728# dashes changed to underlines.
729cache_file=/dev/null
730exec_prefix=NONE
731no_create=
732no_recursion=
733prefix=NONE
734program_prefix=NONE
735program_suffix=NONE
736program_transform_name=s,x,x,
737silent=
738site=
739srcdir=
740verbose=
741x_includes=NONE
742x_libraries=NONE
743
744# Installation directory options.
745# These are left unexpanded so users can "make install exec_prefix=/foo"
746# and all the variables that are supposed to be based on exec_prefix
747# by default will actually change.
748# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 749# (The list follows the same order as the GNU Coding Standards.)
212380e3 750bindir='${exec_prefix}/bin'
751sbindir='${exec_prefix}/sbin'
752libexecdir='${exec_prefix}/libexec'
631ef239 753datarootdir='${prefix}/share'
754datadir='${datarootdir}'
212380e3 755sysconfdir='${prefix}/etc'
756sharedstatedir='${prefix}/com'
757localstatedir='${prefix}/var'
212380e3 758includedir='${prefix}/include'
759oldincludedir='/usr/include'
631ef239 760docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761infodir='${datarootdir}/info'
762htmldir='${docdir}'
763dvidir='${docdir}'
764pdfdir='${docdir}'
765psdir='${docdir}'
766libdir='${exec_prefix}/lib'
767localedir='${datarootdir}/locale'
768mandir='${datarootdir}/man'
212380e3 769
770ac_prev=
631ef239 771ac_dashdash=
212380e3 772for ac_option
773do
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
631ef239 776 eval $ac_prev=\$ac_option
212380e3 777 ac_prev=
778 continue
779 fi
780
631ef239 781 case $ac_option in
782 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *) ac_optarg=yes ;;
784 esac
212380e3 785
786 # Accept the important Cygnus configure options, so we can diagnose typos.
787
631ef239 788 case $ac_dashdash$ac_option in
789 --)
790 ac_dashdash=yes ;;
212380e3 791
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 ac_prev=bindir ;;
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 bindir=$ac_optarg ;;
796
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
801
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
808
809 --config-cache | -C)
810 cache_file=config.cache ;;
811
631ef239 812 -datadir | --datadir | --datadi | --datad)
212380e3 813 ac_prev=datadir ;;
631ef239 814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3 815 datadir=$ac_optarg ;;
816
631ef239 817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
823
212380e3 824 -disable-* | --disable-*)
825 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
631ef239 827 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 828 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829 { (exit 1); exit 1; }; }
631ef239 830 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
831 eval enable_$ac_feature=no ;;
832
833 -docdir | --docdir | --docdi | --doc | --do)
834 ac_prev=docdir ;;
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
836 docdir=$ac_optarg ;;
837
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
839 ac_prev=dvidir ;;
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
841 dvidir=$ac_optarg ;;
212380e3 842
843 -enable-* | --enable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
631ef239 846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
631ef239 849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=\$ac_optarg ;;
212380e3 851
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev=exec_prefix ;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix=$ac_optarg ;;
860
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
863 with_gas=yes ;;
864
865 -help | --help | --hel | --he | -h)
866 ac_init_help=long ;;
867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868 ac_init_help=recursive ;;
869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870 ac_init_help=short ;;
871
872 -host | --host | --hos | --ho)
873 ac_prev=host_alias ;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias=$ac_optarg ;;
876
631ef239 877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
878 ac_prev=htmldir ;;
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
880 | --ht=*)
881 htmldir=$ac_optarg ;;
882
212380e3 883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev=includedir ;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir=$ac_optarg ;;
889
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
891 ac_prev=infodir ;;
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir=$ac_optarg ;;
894
895 -libdir | --libdir | --libdi | --libd)
896 ac_prev=libdir ;;
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
898 libdir=$ac_optarg ;;
899
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev=libexecdir ;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir=$ac_optarg ;;
906
631ef239 907 -localedir | --localedir | --localedi | --localed | --locale)
908 ac_prev=localedir ;;
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir=$ac_optarg ;;
911
212380e3 912 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 913 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3 914 ac_prev=localstatedir ;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3 917 localstatedir=$ac_optarg ;;
918
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
920 ac_prev=mandir ;;
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922 mandir=$ac_optarg ;;
923
924 -nfp | --nfp | --nf)
925 # Obsolete; use --without-fp.
926 with_fp=no ;;
927
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
930 no_create=yes ;;
931
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
934 no_recursion=yes ;;
935
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev=oldincludedir ;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir=$ac_optarg ;;
944
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
946 ac_prev=prefix ;;
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
948 prefix=$ac_optarg ;;
949
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev=program_prefix ;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix=$ac_optarg ;;
956
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev=program_suffix ;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix=$ac_optarg ;;
963
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev=program_transform_name ;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name=$ac_optarg ;;
980
631ef239 981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
982 ac_prev=pdfdir ;;
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
984 pdfdir=$ac_optarg ;;
985
986 -psdir | --psdir | --psdi | --psd | --ps)
987 ac_prev=psdir ;;
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
989 psdir=$ac_optarg ;;
990
212380e3 991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
993 silent=yes ;;
994
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
996 ac_prev=sbindir ;;
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
998 | --sbi=* | --sb=*)
999 sbindir=$ac_optarg ;;
1000
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1004 | --sha | --sh)
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1009 | --sha=* | --sh=*)
1010 sharedstatedir=$ac_optarg ;;
1011
1012 -site | --site | --sit)
1013 ac_prev=site ;;
1014 -site=* | --site=* | --sit=*)
1015 site=$ac_optarg ;;
1016
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1018 ac_prev=srcdir ;;
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1021
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1028
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1033
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1035 verbose=yes ;;
1036
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1039
1040 -with-* | --with-*)
1041 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
631ef239 1043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 1044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
631ef239 1046 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_$ac_package=\$ac_optarg ;;
212380e3 1048
1049 -without-* | --without-*)
1050 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
631ef239 1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
631ef239 1055 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_$ac_package=no ;;
212380e3 1057
1058 --x)
1059 # Obsolete; use --with-x.
1060 with_x=yes ;;
1061
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev=x_includes ;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes=$ac_optarg ;;
1068
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev=x_libraries ;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries=$ac_optarg ;;
1075
1076 -*) { echo "$as_me: error: unrecognized option: $ac_option
1077Try \`$0 --help' for more information." >&2
1078 { (exit 1); exit 1; }; }
1079 ;;
1080
1081 *=*)
1082 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1085 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086 { (exit 1); exit 1; }; }
631ef239 1087 eval $ac_envvar=\$ac_optarg
212380e3 1088 export $ac_envvar ;;
1089
1090 *)
1091 # FIXME: should be removed in autoconf 3.0.
1092 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096 ;;
1097
1098 esac
1099done
1100
1101if test -n "$ac_prev"; then
1102 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1103 { echo "$as_me: error: missing argument to $ac_option" >&2
1104 { (exit 1); exit 1; }; }
1105fi
1106
631ef239 1107# Be sure to have absolute directory names.
1108for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
212380e3 1112do
631ef239 1113 eval ac_val=\$$ac_var
212380e3 1114 case $ac_val in
631ef239 1115 [\\/$]* | ?:[\\/]* ) continue;;
1116 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1117 esac
631ef239 1118 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119 { (exit 1); exit 1; }; }
212380e3 1120done
1121
1122# There might be people who depend on the old broken behavior: `$host'
1123# used to hold the argument of --host etc.
1124# FIXME: To remove some day.
1125build=$build_alias
1126host=$host_alias
1127target=$target_alias
1128
1129# FIXME: To remove some day.
1130if test "x$host_alias" != x; then
1131 if test "x$build_alias" = x; then
1132 cross_compiling=maybe
1133 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1136 cross_compiling=yes
1137 fi
1138fi
1139
1140ac_tool_prefix=
1141test -n "$host_alias" && ac_tool_prefix=$host_alias-
1142
1143test "$silent" = yes && exec 6>/dev/null
1144
1145
631ef239 1146ac_pwd=`pwd` && test -n "$ac_pwd" &&
1147ac_ls_di=`ls -di .` &&
1148ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1149 { echo "$as_me: error: Working directory cannot be determined" >&2
1150 { (exit 1); exit 1; }; }
1151test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 { echo "$as_me: error: pwd does not report name of working directory" >&2
1153 { (exit 1); exit 1; }; }
1154
1155
1156# Find the source files, if location was not specified.
1157if test -z "$srcdir"; then
212380e3 1158 ac_srcdir_defaulted=yes
631ef239 1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir=`$as_dirname -- "$0" ||
212380e3 1161$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$0" : 'X\(//\)[^/]' \| \
1163 X"$0" : 'X\(//\)$' \| \
631ef239 1164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 1165echo X"$0" |
631ef239 1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)[^/].*/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\/\)$/{
1175 s//\1/
1176 q
1177 }
1178 /^X\(\/\).*/{
1179 s//\1/
1180 q
1181 }
1182 s/.*/./; q'`
212380e3 1183 srcdir=$ac_confdir
631ef239 1184 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3 1185 srcdir=..
1186 fi
1187else
1188 ac_srcdir_defaulted=no
1189fi
631ef239 1190if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1192 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
212380e3 1193 { (exit 1); exit 1; }; }
212380e3 1194fi
631ef239 1195ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1196ac_abs_confdir=`(
1197 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
212380e3 1198 { (exit 1); exit 1; }; }
631ef239 1199 pwd)`
1200# When building in place, set srcdir=.
1201if test "$ac_abs_confdir" = "$ac_pwd"; then
1202 srcdir=.
1203fi
1204# Remove unnecessary trailing slashes from srcdir.
1205# Double slashes in file names in object file debugging info
1206# mess up M-x gdb in Emacs.
1207case $srcdir in
1208*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1209esac
1210for ac_var in $ac_precious_vars; do
1211 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1212 eval ac_env_${ac_var}_value=\$${ac_var}
1213 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215done
212380e3 1216
1217#
1218# Report the --help message.
1219#
1220if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1223 cat <<_ACEOF
b1fc1658 1224\`configure' configures charybdis 2.2.0 to adapt to many kinds of systems.
212380e3 1225
1226Usage: $0 [OPTION]... [VAR=VALUE]...
1227
1228To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229VAR=VALUE. See below for descriptions of some of the useful variables.
1230
1231Defaults for the options are specified in brackets.
1232
1233Configuration:
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1243
212380e3 1244Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1248 [PREFIX]
1249
1250By default, \`make install' will install all the files in
1251\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253for instance \`--prefix=\$HOME'.
1254
1255For better control, use the options below.
1256
1257Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
212380e3 1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
631ef239 1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
212380e3 1277_ACEOF
1278
1279 cat <<\_ACEOF
1280_ACEOF
1281fi
1282
1283if test -n "$ac_init_help"; then
1284 case $ac_init_help in
b1fc1658 1285 short | recursive ) echo "Configuration of charybdis 2.2.0:";;
212380e3 1286 esac
1287 cat <<\_ACEOF
1288
1289Optional Features:
1290 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292 --enable-ipv6 Enable IPv6 support
631ef239 1293 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3 1294 --disable-openssl Disable OpenSSL support.
1295 --disable-zlib Disable ziplinks support
1296 --enable-poll Force poll() usage.
1297 --enable-select Force select() usage.
1298 --enable-kqueue Force kqueue() usage.
212380e3 1299 --enable-epoll Force sys_epoll usage (Linux only).
1300 --enable-assert Enable assert(). Choose between soft(warnings) and
1301 hard(aborts the daemon)
1302 --enable-iodebug Enable IO Debugging hooks
1303 --enable-profile Enable profiling
1304 --disable-balloc Disable the block allocator.
212380e3 1305 --enable-small-net Enable small network support.
1306 --disable-shared-modules
1307 Disable shared modules.
1308 --enable-warnings Enable all sorts of warnings for debugging.
1309
1310Optional Packages:
1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1313 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1314 --with-confdir=DIR Directory to install config files.
1315 --with-logdir=DIR Directory where to write logfiles.
1316 --with-helpdir=DIR Directory to install help files.
1317 --with-moduledir=DIR Directory to install modules.
1318 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50)
1319 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1320 390)
212380e3 1321
1322Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
631ef239 1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
212380e3 1330 CPP C preprocessor
631ef239 1331 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1332 the first program found out of: `bison -y', `byacc', `yacc'.
1333 YFLAGS The list of arguments that will be passed by default to $YACC.
1334 This script will default YFLAGS to the empty string to avoid a
1335 default value of `-d' given by some make applications.
212380e3 1336
1337Use these variables to override the choices made by `configure' or to help
1338it to find libraries and programs with nonstandard names/locations.
1339
1340_ACEOF
631ef239 1341ac_status=$?
212380e3 1342fi
1343
1344if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
212380e3 1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
631ef239 1347 test -d "$ac_dir" || continue
212380e3 1348 ac_builddir=.
1349
631ef239 1350case "$ac_dir" in
1351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352*)
212380e3 1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
631ef239 1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 esac ;;
1360esac
1361ac_abs_top_builddir=$ac_pwd
1362ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363# for backward compatibility:
1364ac_top_builddir=$ac_top_build_prefix
212380e3 1365
1366case $srcdir in
631ef239 1367 .) # We are building in place.
212380e3 1368 ac_srcdir=.
631ef239 1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1372 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239 1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1375 *) # Relative name.
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1379esac
631ef239 1380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1390 else
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239 1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3 1394 done
1395fi
1396
631ef239 1397test -n "$ac_init_help" && exit $ac_status
212380e3 1398if $ac_init_version; then
1399 cat <<\_ACEOF
b1fc1658 1400charybdis configure 2.2.0
631ef239 1401generated by GNU Autoconf 2.61
212380e3 1402
631ef239 1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212380e3 1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407
5e12fb10 1408$Id: configure 3364 2007-04-03 09:50:56Z nenolod $
212380e3 1409_ACEOF
631ef239 1410 exit
212380e3 1411fi
631ef239 1412cat >config.log <<_ACEOF
212380e3 1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
b1fc1658 1416It was created by charybdis $as_me 2.2.0, which was
631ef239 1417generated by GNU Autoconf 2.61. Invocation command line was
212380e3 1418
1419 $ $0 $@
1420
1421_ACEOF
631ef239 1422exec 5>>config.log
212380e3 1423{
1424cat <<_ASUNAME
1425## --------- ##
1426## Platform. ##
1427## --------- ##
1428
1429hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433uname -v = `(uname -v) 2>/dev/null || echo unknown`
1434
1435/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1436/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1437
1438/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1439/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1440/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
631ef239 1441/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
212380e3 1442/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1443/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1444/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1445
1446_ASUNAME
1447
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 echo "PATH: $as_dir"
1454done
631ef239 1455IFS=$as_save_IFS
212380e3 1456
1457} >&5
1458
1459cat >&5 <<_ACEOF
1460
1461
1462## ----------- ##
1463## Core tests. ##
1464## ----------- ##
1465
1466_ACEOF
1467
1468
1469# Keep a trace of the command line.
1470# Strip out --no-create and --no-recursion so they do not pile up.
1471# Strip out --silent because we don't want to record it for future runs.
1472# Also quote any args containing shell meta-characters.
1473# Make two passes to allow for proper duplicate-argument suppression.
1474ac_configure_args=
1475ac_configure_args0=
1476ac_configure_args1=
212380e3 1477ac_must_keep_next=false
1478for ac_pass in 1 2
1479do
1480 for ac_arg
1481 do
1482 case $ac_arg in
1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485 | -silent | --silent | --silen | --sile | --sil)
1486 continue ;;
631ef239 1487 *\'*)
212380e3 1488 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 esac
1490 case $ac_pass in
1491 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1492 2)
1493 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1494 if test $ac_must_keep_next = true; then
1495 ac_must_keep_next=false # Got value, back to normal.
1496 else
1497 case $ac_arg in
1498 *=* | --config-cache | -C | -disable-* | --disable-* \
1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1501 | -with-* | --with-* | -without-* | --without-* | --x)
1502 case "$ac_configure_args0 " in
1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1504 esac
1505 ;;
1506 -* ) ac_must_keep_next=true ;;
1507 esac
1508 fi
631ef239 1509 ac_configure_args="$ac_configure_args '$ac_arg'"
212380e3 1510 ;;
1511 esac
1512 done
1513done
1514$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1515$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1516
1517# When interrupted or exit'd, cleanup temporary files, and complete
1518# config.log. We remove comments because anyway the quotes in there
1519# would cause problems or look ugly.
631ef239 1520# WARNING: Use '\'' to represent an apostrophe within the trap.
1521# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
212380e3 1522trap 'exit_status=$?
1523 # Save into config.log some information that might help in debugging.
1524 {
1525 echo
1526
1527 cat <<\_ASBOX
1528## ---------------- ##
1529## Cache variables. ##
1530## ---------------- ##
1531_ASBOX
1532 echo
1533 # The following way of writing the cache mishandles newlines in values,
631ef239 1534(
1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1536 eval ac_val=\$$ac_var
1537 case $ac_val in #(
1538 *${as_nl}*)
1539 case $ac_var in #(
1540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1541echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1542 esac
1543 case $ac_var in #(
1544 _ | IFS | as_nl) ;; #(
1545 *) $as_unset $ac_var ;;
1546 esac ;;
1547 esac
1548 done
212380e3 1549 (set) 2>&1 |
631ef239 1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
212380e3 1552 sed -n \
631ef239 1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1555 ;; #(
212380e3 1556 *)
631ef239 1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 1558 ;;
631ef239 1559 esac |
1560 sort
1561)
212380e3 1562 echo
1563
1564 cat <<\_ASBOX
1565## ----------------- ##
1566## Output variables. ##
1567## ----------------- ##
1568_ASBOX
1569 echo
1570 for ac_var in $ac_subst_vars
1571 do
631ef239 1572 eval ac_val=\$$ac_var
1573 case $ac_val in
1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575 esac
1576 echo "$ac_var='\''$ac_val'\''"
212380e3 1577 done | sort
1578 echo
1579
1580 if test -n "$ac_subst_files"; then
1581 cat <<\_ASBOX
631ef239 1582## ------------------- ##
1583## File substitutions. ##
1584## ------------------- ##
212380e3 1585_ASBOX
1586 echo
1587 for ac_var in $ac_subst_files
1588 do
631ef239 1589 eval ac_val=\$$ac_var
1590 case $ac_val in
1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1592 esac
1593 echo "$ac_var='\''$ac_val'\''"
212380e3 1594 done | sort
1595 echo
1596 fi
1597
1598 if test -s confdefs.h; then
1599 cat <<\_ASBOX
1600## ----------- ##
1601## confdefs.h. ##
1602## ----------- ##
1603_ASBOX
1604 echo
631ef239 1605 cat confdefs.h
212380e3 1606 echo
1607 fi
1608 test "$ac_signal" != 0 &&
1609 echo "$as_me: caught signal $ac_signal"
1610 echo "$as_me: exit $exit_status"
1611 } >&5
631ef239 1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
212380e3 1614 exit $exit_status
631ef239 1615' 0
212380e3 1616for ac_signal in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618done
1619ac_signal=0
1620
1621# confdefs.h avoids OS command line length limits that DEFS can exceed.
631ef239 1622rm -f -r conftest* confdefs.h
212380e3 1623
1624# Predefined preprocessor variables.
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_NAME "$PACKAGE_NAME"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_VERSION "$PACKAGE_VERSION"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_STRING "$PACKAGE_STRING"
1643_ACEOF
1644
1645
1646cat >>confdefs.h <<_ACEOF
1647#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648_ACEOF
1649
1650
1651# Let the site file select an alternate cache file if it wants to.
1652# Prefer explicitly selected file to automatically selected ones.
631ef239 1653if test -n "$CONFIG_SITE"; then
1654 set x "$CONFIG_SITE"
1655elif test "x$prefix" != xNONE; then
1656 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1657else
1658 set x "$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
212380e3 1660fi
631ef239 1661shift
1662for ac_site_file
1663do
212380e3 1664 if test -r "$ac_site_file"; then
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666echo "$as_me: loading site script $ac_site_file" >&6;}
1667 sed 's/^/| /' "$ac_site_file" >&5
1668 . "$ac_site_file"
1669 fi
1670done
1671
1672if test -r "$cache_file"; then
1673 # Some versions of bash will fail to source /dev/null (special
1674 # files actually), so we avoid doing that.
1675 if test -f "$cache_file"; then
1676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1677echo "$as_me: loading cache $cache_file" >&6;}
1678 case $cache_file in
631ef239 1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
212380e3 1681 esac
1682 fi
1683else
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685echo "$as_me: creating cache $cache_file" >&6;}
1686 >$cache_file
1687fi
1688
1689# Check that the precious variables saved in the cache have kept the same
1690# value.
1691ac_cache_corrupted=false
631ef239 1692for ac_var in $ac_precious_vars; do
212380e3 1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1694 eval ac_new_set=\$ac_env_${ac_var}_set
631ef239 1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1696 eval ac_new_val=\$ac_env_${ac_var}_value
212380e3 1697 case $ac_old_set,$ac_new_set in
1698 set,)
1699 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1700echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1701 ac_cache_corrupted=: ;;
1702 ,set)
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1704echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1705 ac_cache_corrupted=: ;;
1706 ,);;
1707 *)
1708 if test "x$ac_old_val" != "x$ac_new_val"; then
1709 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1710echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714echo "$as_me: current value: $ac_new_val" >&2;}
1715 ac_cache_corrupted=:
1716 fi;;
1717 esac
1718 # Pass precious variables to config.status.
1719 if test "$ac_new_set" = set; then
1720 case $ac_new_val in
631ef239 1721 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
212380e3 1722 *) ac_arg=$ac_var=$ac_new_val ;;
1723 esac
1724 case " $ac_configure_args " in
1725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1726 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 esac
1728 fi
1729done
1730if $ac_cache_corrupted; then
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1734echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1735 { (exit 1); exit 1; }; }
1736fi
1737
212380e3 1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
631ef239 1762ac_ext=c
1763ac_cpp='$CPP $CPPFLAGS'
1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 1767
1768
1769
631ef239 1770ac_config_headers="$ac_config_headers include/setup.h"
212380e3 1771
1772
1773
1774
1775
1776cat >>confdefs.h <<\_ACEOF
1777#define _GNU_SOURCE 1
1778_ACEOF
1779
1780
1781
1782OLD_CFLAGS="$CFLAGS"
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790set dummy ${ac_tool_prefix}gcc; ac_word=$2
631ef239 1791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 1793if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 1806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810done
1811done
631ef239 1812IFS=$as_save_IFS
212380e3 1813
1814fi
1815fi
1816CC=$ac_cv_prog_CC
1817if test -n "$CC"; then
631ef239 1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819echo "${ECHO_T}$CC" >&6; }
212380e3 1820else
631ef239 1821 { echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6; }
212380e3 1823fi
1824
631ef239 1825
212380e3 1826fi
1827if test -z "$ac_cv_prog_CC"; then
1828 ac_ct_CC=$CC
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830set dummy gcc; ac_word=$2
631ef239 1831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 1833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 1846 ac_cv_prog_ac_ct_CC="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1849 fi
1850done
1851done
631ef239 1852IFS=$as_save_IFS
212380e3 1853
1854fi
1855fi
1856ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857if test -n "$ac_ct_CC"; then
631ef239 1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859echo "${ECHO_T}$ac_ct_CC" >&6; }
212380e3 1860else
631ef239 1861 { echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6; }
212380e3 1863fi
1864
631ef239 1865 if test "x$ac_ct_CC" = x; then
1866 CC=""
1867 else
1868 case $cross_compiling:$ac_tool_warned in
1869yes:)
1870{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871whose name does not start with the host triplet. If you think this
1872configuration is useful to you, please write to autoconf@gnu.org." >&5
1873echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874whose name does not start with the host triplet. If you think this
1875configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876ac_tool_warned=yes ;;
1877esac
1878 CC=$ac_ct_CC
1879 fi
212380e3 1880else
1881 CC="$ac_cv_prog_CC"
1882fi
1883
1884if test -z "$CC"; then
631ef239 1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
212380e3 1887set dummy ${ac_tool_prefix}cc; ac_word=$2
631ef239 1888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 1890if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907done
1908done
631ef239 1909IFS=$as_save_IFS
212380e3 1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
631ef239 1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6; }
212380e3 1917else
631ef239 1918 { echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6; }
212380e3 1920fi
1921
212380e3 1922
631ef239 1923 fi
212380e3 1924fi
1925if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
631ef239 1928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 1930if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935else
1936 ac_prog_rejected=no
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1946 continue
1947 fi
1948 ac_cv_prog_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952done
1953done
631ef239 1954IFS=$as_save_IFS
212380e3 1955
1956if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy $ac_cv_prog_CC
1959 shift
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1964 shift
1965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1966 fi
1967fi
1968fi
1969fi
1970CC=$ac_cv_prog_CC
1971if test -n "$CC"; then
631ef239 1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6; }
212380e3 1974else
631ef239 1975 { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
212380e3 1977fi
1978
631ef239 1979
212380e3 1980fi
1981if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
631ef239 1983 for ac_prog in cl.exe
212380e3 1984 do
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
631ef239 1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 1989if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
631ef239 2008IFS=$as_save_IFS
212380e3 2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
631ef239 2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
212380e3 2016else
631ef239 2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
212380e3 2019fi
2020
631ef239 2021
212380e3 2022 test -n "$CC" && break
2023 done
2024fi
2025if test -z "$CC"; then
2026 ac_ct_CC=$CC
631ef239 2027 for ac_prog in cl.exe
212380e3 2028do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030set dummy $ac_prog; ac_word=$2
631ef239 2031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 2033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038else
2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 2046 ac_cv_prog_ac_ct_CC="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
2051done
631ef239 2052IFS=$as_save_IFS
212380e3 2053
2054fi
2055fi
2056ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057if test -n "$ac_ct_CC"; then
631ef239 2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059echo "${ECHO_T}$ac_ct_CC" >&6; }
212380e3 2060else
631ef239 2061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
212380e3 2063fi
2064
631ef239 2065
212380e3 2066 test -n "$ac_ct_CC" && break
2067done
2068
631ef239 2069 if test "x$ac_ct_CC" = x; then
2070 CC=""
2071 else
2072 case $cross_compiling:$ac_tool_warned in
2073yes:)
2074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&5
2077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078whose name does not start with the host triplet. If you think this
2079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2080ac_tool_warned=yes ;;
2081esac
2082 CC=$ac_ct_CC
2083 fi
212380e3 2084fi
2085
2086fi
2087
2088
2089test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: no acceptable C compiler found in \$PATH
2092See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2094
2095# Provide some information about the compiler.
631ef239 2096echo "$as_me:$LINENO: checking for C compiler version" >&5
212380e3 2097ac_compiler=`set X $ac_compile; echo $2`
631ef239 2098{ (ac_try="$ac_compiler --version >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
212380e3 2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
631ef239 2108{ (ac_try="$ac_compiler -v >&5"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
212380e3 2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
631ef239 2118{ (ac_try="$ac_compiler -V >&5"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
212380e3 2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h. */
2135
2136int
2137main ()
2138{
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144ac_clean_files_save=$ac_clean_files
2145ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146# Try to create an executable without -o first, disregard a.out.
2147# It will help us diagnose broken compilers, and finding out an intuition
2148# of exeext.
631ef239 2149{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
212380e3 2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
631ef239 2152#
2153# List of possible output files, starting from the most likely.
2154# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155# only as a last resort. b.out is created by i960 compilers.
2156ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2157#
2158# The IRIX 6 linker writes into existing files which may not be
2159# executable, retaining their permissions. Remove them first so a
2160# subsequent execution test works.
2161ac_rmfiles=
2162for ac_file in $ac_files
2163do
2164 case $ac_file in
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2167 esac
2168done
2169rm -f $ac_rmfiles
2170
2171if { (ac_try="$ac_link_default"
2172case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
2176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_link_default") 2>&5
212380e3 2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
631ef239 2181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183# in a Makefile. We should not override ac_cv_exeext if it was cached,
2184# so that the user can short-circuit this test for compilers unknown to
2185# Autoconf.
2186for ac_file in $ac_files ''
212380e3 2187do
2188 test -f "$ac_file" || continue
2189 case $ac_file in
631ef239 2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
212380e3 2191 ;;
2192 [ab].out )
2193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* )
631ef239 2197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2198 then :; else
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 fi
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2205 # actually working.
212380e3 2206 break;;
2207 * )
2208 break;;
2209 esac
2210done
631ef239 2211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
212380e3 2213else
631ef239 2214 ac_file=''
2215fi
2216
2217{ echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6; }
2219if test -z "$ac_file"; then
212380e3 2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: C compiler cannot create executables
2226See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2228fi
2229
2230ac_exeext=$ac_cv_exeext
212380e3 2231
631ef239 2232# Check that the compiler produces executables we can run. If not, either
212380e3 2233# the compiler is broken, or we cross compile.
631ef239 2234{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
212380e3 2236# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237# If not cross compiling, check that we can run a simple program.
2238if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
631ef239 2240 { (case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243esac
2244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_try") 2>&5
212380e3 2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 cross_compiling=no
2250 else
2251 if test "$cross_compiling" = maybe; then
2252 cross_compiling=yes
2253 else
2254 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255If you meant to cross compile, use \`--host'.
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: cannot run C compiled programs.
2258If you meant to cross compile, use \`--host'.
2259See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 fi
2263fi
631ef239 2264{ echo "$as_me:$LINENO: result: yes" >&5
2265echo "${ECHO_T}yes" >&6; }
212380e3 2266
2267rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268ac_clean_files=$ac_clean_files_save
631ef239 2269# Check that the compiler produces executables we can run. If not, either
212380e3 2270# the compiler is broken, or we cross compile.
631ef239 2271{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274echo "${ECHO_T}$cross_compiling" >&6; }
2275
2276{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278if { (ac_try="$ac_link"
2279case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282esac
2283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_link") 2>&5
212380e3 2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290# work properly (i.e., refer to `conftest.exe'), while it won't with
2291# `rm'.
2292for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2294 case $ac_file in
631ef239 2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
212380e3 2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
212380e3 2297 break;;
2298 * ) break;;
2299 esac
2300done
2301else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2307fi
2308
2309rm -f conftest$ac_cv_exeext
631ef239 2310{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6; }
212380e3 2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
631ef239 2316{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
212380e3 2318if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 cat >conftest.$ac_ext <<_ACEOF
2322/* confdefs.h. */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h. */
2327
2328int
2329main ()
2330{
2331
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
631ef239 2337if { (ac_try="$ac_compile"
2338case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compile") 2>&5
212380e3 2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
631ef239 2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
212380e3 2349 case $ac_file in
631ef239 2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
212380e3 2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 break;;
2353 esac
2354done
2355else
2356 echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2364fi
2365
2366rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367fi
631ef239 2368{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6; }
212380e3 2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
631ef239 2372{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
212380e3 2374if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383
2384int
2385main ()
2386{
2387#ifndef __GNUC__
2388 choke me
2389#endif
2390
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
631ef239 2396if { (ac_try="$ac_compile"
2397case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compile") 2>conftest.er1
212380e3 2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
212380e3 2412 ac_compiler_gnu=yes
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
631ef239 2417 ac_compiler_gnu=no
212380e3 2418fi
631ef239 2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
631ef239 2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
212380e3 2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
631ef239 2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
212380e3 2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
631ef239 2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2436 ac_cv_prog_cc_g=no
2437 CFLAGS="-g"
2438 cat >conftest.$ac_ext <<_ACEOF
212380e3 2439/* confdefs.h. */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
631ef239 2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
212380e3 2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 2466 (exit $ac_status); } && {
2467 test -z "$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest.$ac_objext; then
2470 ac_cv_prog_cc_g=yes
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 CFLAGS=""
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482
2483int
2484main ()
2485{
2486
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
2492if { (ac_try="$ac_compile"
2493case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496esac
2497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_compile") 2>conftest.er1
212380e3 2499 ac_status=$?
631ef239 2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
212380e3 2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 2504 (exit $ac_status); } && {
2505 test -z "$ac_c_werror_flag" ||
2506 test ! -s conftest.err
2507 } && test -s conftest.$ac_objext; then
2508 :
2509else
2510 echo "$as_me: failed program was:" >&5
2511sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 ac_c_werror_flag=$ac_save_c_werror_flag
2514 CFLAGS="-g"
2515 cat >conftest.$ac_ext <<_ACEOF
2516/* confdefs.h. */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h. */
2521
2522int
2523main ()
2524{
2525
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530rm -f conftest.$ac_objext
2531if { (ac_try="$ac_compile"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>conftest.er1
212380e3 2538 ac_status=$?
631ef239 2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
212380e3 2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
212380e3 2547 ac_cv_prog_cc_g=yes
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
631ef239 2552
2553fi
2554
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2556fi
631ef239 2557
2558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559fi
2560
2561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 2563fi
631ef239 2564{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
212380e3 2566if test "$ac_test_CFLAGS" = set; then
2567 CFLAGS=$ac_save_CFLAGS
2568elif test $ac_cv_prog_cc_g = yes; then
2569 if test "$GCC" = yes; then
2570 CFLAGS="-g -O2"
2571 else
2572 CFLAGS="-g"
2573 fi
2574else
2575 if test "$GCC" = yes; then
2576 CFLAGS="-O2"
2577 else
2578 CFLAGS=
2579 fi
2580fi
631ef239 2581{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2582echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2583if test "${ac_cv_prog_cc_c89+set}" = set; then
212380e3 2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
631ef239 2586 ac_cv_prog_cc_c89=no
212380e3 2587ac_save_CC=$CC
2588cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>conftest.$ac_ext <<_ACEOF
2593/* end confdefs.h. */
2594#include <stdarg.h>
2595#include <stdio.h>
2596#include <sys/types.h>
2597#include <sys/stat.h>
2598/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2599struct buf { int x; };
2600FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601static char *e (p, i)
2602 char **p;
2603 int i;
2604{
2605 return p[i];
2606}
2607static char *f (char * (*g) (char **, int), char **p, ...)
2608{
2609 char *s;
2610 va_list v;
2611 va_start (v,p);
2612 s = g (p, va_arg (v,int));
2613 va_end (v);
2614 return s;
2615}
2616
2617/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2618 function prototypes and stuff, but not '\xHH' hex character constants.
2619 These don't provoke an error unfortunately, instead are silently treated
631ef239 2620 as 'x'. The following induces an error, until -std is added to get
212380e3 2621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2622 array size at least. It's necessary to write '\x00'==0 to get something
631ef239 2623 that's true only with -std. */
212380e3 2624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2625
631ef239 2626/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2627 inside strings and character constants. */
2628#define FOO(x) 'x'
2629int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2630
212380e3 2631int test (int i, double x);
2632struct s1 {int (*f) (int a);};
2633struct s2 {int (*f) (double a);};
2634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2635int argc;
2636char **argv;
2637int
2638main ()
2639{
2640return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2641 ;
2642 return 0;
2643}
2644_ACEOF
631ef239 2645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
212380e3 2647do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
631ef239 2650if { (ac_try="$ac_compile"
2651case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654esac
2655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compile") 2>conftest.er1
212380e3 2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 2662 (exit $ac_status); } && {
2663 test -z "$ac_c_werror_flag" ||
2664 test ! -s conftest.err
2665 } && test -s conftest.$ac_objext; then
2666 ac_cv_prog_cc_c89=$ac_arg
212380e3 2667else
2668 echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
631ef239 2671
212380e3 2672fi
631ef239 2673
2674rm -f core conftest.err conftest.$ac_objext
2675 test "x$ac_cv_prog_cc_c89" != "xno" && break
212380e3 2676done
631ef239 2677rm -f conftest.$ac_ext
212380e3 2678CC=$ac_save_CC
2679
2680fi
631ef239 2681# AC_CACHE_VAL
2682case "x$ac_cv_prog_cc_c89" in
2683 x)
2684 { echo "$as_me:$LINENO: result: none needed" >&5
2685echo "${ECHO_T}none needed" >&6; } ;;
2686 xno)
2687 { echo "$as_me:$LINENO: result: unsupported" >&5
2688echo "${ECHO_T}unsupported" >&6; } ;;
212380e3 2689 *)
631ef239 2690 CC="$CC $ac_cv_prog_cc_c89"
2691 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2692echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
212380e3 2693esac
2694
212380e3 2695
212380e3 2696ac_ext=c
2697ac_cpp='$CPP $CPPFLAGS'
2698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701
2702ac_ext=c
2703ac_cpp='$CPP $CPPFLAGS'
2704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708
2709CFLAGS="$OLD_CFLAGS"
2710
2711
2712if test "$ac_cv_c_compiler_gnu" != yes; then
2713
2714SGS=no
631ef239 2715{ echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2716echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; }
212380e3 2717case `$CC -version 2>&1` in
2718*TenDRA*)
631ef239 2719 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2720echo "${ECHO_T}yes, TenDRA" >&6; }
212380e3 2721 IRC_CFLAGS=""
2722 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2723 SGS=yes
2724 TenDRA=yes
2725;;
2726*MIPSpro*)
631ef239 2727 { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2728echo "${ECHO_T}yes, MIPSpro" >&6; }
212380e3 2729 MIPSpro=yes
2730 SGS=yes
2731;;
2732*)
631ef239 2733 { echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6; }
212380e3 2735 TenDRA=no
2736 MIPSpro=no
2737;;
2738esac
2739
631ef239 2740{ echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2741echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; }
212380e3 2742case `$CC -V 2>&1` in
2743*Sun*WorkShop* | *Forte*Developer*)
631ef239 2744 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2745echo "${ECHO_T}Sun Workshop/Forte" >&6; }
212380e3 2746 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2747 SunWorkShop=yes
2748 SGS=yes
2749;;
2750*Tru64*)
631ef239 2751 { echo "$as_me:$LINENO: result: Tru64 cc" >&5
2752echo "${ECHO_T}Tru64 cc" >&6; }
212380e3 2753 IRC_CFLAGS="-O2"
2754 CPPFLAGS="-I/usr/local/include"
2755 Tru=yes
2756;;
2757*HP*ANSI*)
631ef239 2758 { echo "$as_me:$LINENO: result: HPUX cc" >&5
2759echo "${ECHO_T}HPUX cc" >&6; }
212380e3 2760 HPUX=yes
2761 IRC_CFLAGS="+e"
2762;;
2763*)
631ef239 2764 { echo "$as_me:$LINENO: result: no" >&5
2765echo "${ECHO_T}no" >&6; }
212380e3 2766;;
2767esac
2768
2769fi
2770
631ef239 2771{ echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2772echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; }
212380e3 2773OSNAME=`uname -s`
2774case "$OSNAME" in
2775 HP-UX*)
2776
2777 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
631ef239 2778 { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2779echo "${ECHO_T}assuming old HPUX with its own cc" >&6; }
212380e3 2780 IRC_CFLAGS="$IRC_CFLAGS +e"
2781 HPUX=yes
2782 else
631ef239 2783 { echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2784echo "${ECHO_T}already using newer HPUX" >&6; }
212380e3 2785 fi
2786 ;;
2787 CYGWIN*)
631ef239 2788 { echo "$as_me:$LINENO: result: Cygwin" >&5
2789echo "${ECHO_T}Cygwin" >&6; }
212380e3 2790 CYGWIN=yes
2791 ;;
2792 SunOS*)
631ef239 2793 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2794echo "${ECHO_T}SunOS or Solaris" >&6; }
212380e3 2795
2796cat >>confdefs.h <<\_ACEOF
2797#define __EXTENSIONS__ 1
2798_ACEOF
2799
2800 SUN=yes
2801 ;;
2802 AIX*)
631ef239 2803 { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2804echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; }
212380e3 2805 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2806 ;;
2807 *)
631ef239 2808 { echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6; }
212380e3 2810 ;;
2811esac
2812
2813if test "$ac_cv_c_compiler_gnu" = yes; then
631ef239 2814 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2815echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
212380e3 2816
2817 case `$CC -v 2>&1 | tail -n 1` in
2818 *Apple*)
631ef239 2819 { echo "$as_me:$LINENO: result: yes" >&5
2820echo "${ECHO_T}yes" >&6; }
212380e3 2821 AppleGCC=yes
2822 ;;
2823 *)
631ef239 2824 { echo "$as_me:$LINENO: result: no" >&5
2825echo "${ECHO_T}no" >&6; }
212380e3 2826 AppleGCC=no
2827 ;;
2828 esac
2829
2830 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2831fi
2832
2833if test "$ac_cv_prog_cc_g" = yes; then
2834 if test "$Tru" = yes; then
2835 IRC_CFLAGS="$IRC_CFLAGS -g3"
2836 else
2837 IRC_CFLAGS="$IRC_CFLAGS -g"
2838 fi
2839fi
2840
631ef239 2841{ echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2842echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
212380e3 2843if test "$SGS" = "yes"; then
631ef239 2844 { echo "$as_me:$LINENO: result: yes" >&5
2845echo "${ECHO_T}yes" >&6; }
212380e3 2846else
631ef239 2847 { echo "$as_me:$LINENO: result: no" >&5
2848echo "${ECHO_T}no" >&6; }
212380e3 2849fi
2850
2851# Extract the first word of "mkdep", so it can be a program name with args.
2852set dummy mkdep; ac_word=$2
631ef239 2853{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 2855if test "${ac_cv_path_MKDEP+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857else
2858 case $MKDEP in
2859 [\\/]* | ?:[\\/]*)
2860 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2861 ;;
2862 *)
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 2870 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874done
2875done
631ef239 2876IFS=$as_save_IFS
212380e3 2877
2878 ;;
2879esac
2880fi
2881MKDEP=$ac_cv_path_MKDEP
212380e3 2882if test -n "$MKDEP"; then
631ef239 2883 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2884echo "${ECHO_T}$MKDEP" >&6; }
212380e3 2885else
631ef239 2886 { echo "$as_me:$LINENO: result: no" >&5
2887echo "${ECHO_T}no" >&6; }
212380e3 2888fi
2889
631ef239 2890
212380e3 2891# Extract the first word of "makedepend", so it can be a program name with args.
2892set dummy makedepend; ac_word=$2
631ef239 2893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 2895if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897else
2898 case $MAKEDEPEND in
2899 [\\/]* | ?:[\\/]*)
2900 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2901 ;;
2902 *)
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 2910 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914done
2915done
631ef239 2916IFS=$as_save_IFS
212380e3 2917
2918 ;;
2919esac
2920fi
2921MAKEDEPEND=$ac_cv_path_MAKEDEPEND
212380e3 2922if test -n "$MAKEDEPEND"; then
631ef239 2923 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2924echo "${ECHO_T}$MAKEDEPEND" >&6; }
212380e3 2925else
631ef239 2926 { echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6; }
212380e3 2928fi
2929
2930
631ef239 2931
2932{ echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2933echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
212380e3 2934
2935STDOUT="> .depend"
2936
2937if test "$ac_cv_c_compiler_gnu" = yes; then
631ef239 2938 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2939echo "${ECHO_T}gcc -MM" >&6; }
212380e3 2940 MKDEP="$CC -MM"
2941elif test ! -z "$MKDEP"; then
631ef239 2942 { echo "$as_me:$LINENO: result: mkdep" >&5
2943echo "${ECHO_T}mkdep" >&6; }
212380e3 2944
2945 if test -z "$Tru"; then
2946 STDOUT=""
2947 else
2948 STDOUT=" 2> /dev/null"
2949 fi
2950elif test "$SunWorkShop" = yes; then
631ef239 2951 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2952echo "${ECHO_T}$CC -xM" >&6; }
212380e3 2953 MKDEP="$CC -xM"
2954 STDOUT="> .depend 2> /dev/null"
2955elif test ! -z "$MAKEDEPEND"; then
631ef239 2956 { echo "$as_me:$LINENO: result: makedepend" >&5
2957echo "${ECHO_T}makedepend" >&6; }
212380e3 2958 MKDEP="$MAKEDEPEND -f-"
2959else
631ef239 2960 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2961echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
212380e3 2962 MKDEP=":"
2963fi
2964
2965
2966
2967
631ef239 2968{ echo "$as_me:$LINENO: checking for /dev/null" >&5
2969echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
212380e3 2970if test -c /dev/null ; then
2971
2972cat >>confdefs.h <<\_ACEOF
2973#define PATH_DEVNULL "/dev/null"
2974_ACEOF
2975
631ef239 2976 { echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6; }
212380e3 2978else
2979
2980cat >>confdefs.h <<\_ACEOF
2981#define PATH_DEVNULL "devnull.log"
2982_ACEOF
2983
631ef239 2984 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2985echo "${ECHO_T}no - using devnull.log" >&6; }
212380e3 2986fi
2987
2988if test ! -z "$CFLAGS"; then
2989 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2990fi
2991
2992
631ef239 2993{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
2994echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
212380e3 2995if test "${ac_cv_search_strerror+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 ac_func_search_save_LIBS=$LIBS
212380e3 2999cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
3005
631ef239 3006/* Override any GCC internal prototype to avoid an error.
3007 Use char because int might match the return type of a GCC
3008 builtin and then its argument prototype would still apply. */
212380e3 3009#ifdef __cplusplus
3010extern "C"
3011#endif
212380e3 3012char strerror ();
3013int
3014main ()
3015{
631ef239 3016return strerror ();
212380e3 3017 ;
3018 return 0;
3019}
3020_ACEOF
631ef239 3021for ac_lib in '' cposix; do
3022 if test -z "$ac_lib"; then
3023 ac_res="none required"
3024 else
3025 ac_res=-l$ac_lib
3026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3027 fi
3028 rm -f conftest.$ac_objext conftest$ac_exeext
3029if { (ac_try="$ac_link"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_link") 2>conftest.er1
212380e3 3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3041 (exit $ac_status); } && {
3042 test -z "$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 } && test -s conftest$ac_exeext &&
3045 $as_test_x conftest$ac_exeext; then
3046 ac_cv_search_strerror=$ac_res
212380e3 3047else
3048 echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
212380e3 3051
631ef239 3052fi
212380e3 3053
631ef239 3054rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3055 conftest$ac_exeext
3056 if test "${ac_cv_search_strerror+set}" = set; then
3057 break
212380e3 3058fi
631ef239 3059done
3060if test "${ac_cv_search_strerror+set}" = set; then
3061 :
3062else
3063 ac_cv_search_strerror=no
212380e3 3064fi
631ef239 3065rm conftest.$ac_ext
212380e3 3066LIBS=$ac_func_search_save_LIBS
3067fi
631ef239 3068{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3069echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3070ac_res=$ac_cv_search_strerror
3071if test "$ac_res" != no; then
3072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 3073
3074fi
3075
631ef239 3076{ echo "$as_me:$LINENO: checking for inline" >&5
3077echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
212380e3 3078if test "${ac_cv_c_inline+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081 ac_cv_c_inline=no
3082for ac_kw in inline __inline__ __inline; do
3083 cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h. */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h. */
3089#ifndef __cplusplus
3090typedef int foo_t;
3091static $ac_kw foo_t static_foo () {return 0; }
3092$ac_kw foo_t foo () {return 0; }
3093#endif
3094
3095_ACEOF
3096rm -f conftest.$ac_objext
631ef239 3097if { (ac_try="$ac_compile"
3098case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101esac
3102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_compile") 2>conftest.er1
212380e3 3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_c_inline=$ac_kw
212380e3 3114else
3115 echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
631ef239 3118
212380e3 3119fi
631ef239 3120
3121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 test "$ac_cv_c_inline" != no && break
212380e3 3123done
3124
3125fi
631ef239 3126{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3127echo "${ECHO_T}$ac_cv_c_inline" >&6; }
212380e3 3128
3129
3130case $ac_cv_c_inline in
3131 inline | yes) ;;
3132 *)
3133 case $ac_cv_c_inline in
3134 no) ac_val=;;
3135 *) ac_val=$ac_cv_c_inline;;
3136 esac
3137 cat >>confdefs.h <<_ACEOF
3138#ifndef __cplusplus
3139#define inline $ac_val
3140#endif
3141_ACEOF
3142 ;;
3143esac
3144
3145ac_ext=c
3146ac_cpp='$CPP $CPPFLAGS'
3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 3150{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3151echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
212380e3 3152# On Suns, sometimes $CPP names a directory.
3153if test -n "$CPP" && test -d "$CPP"; then
3154 CPP=
3155fi
3156if test -z "$CPP"; then
3157 if test "${ac_cv_prog_CPP+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159else
3160 # Double quotes because CPP needs to be expanded
3161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3162 do
3163 ac_preproc_ok=false
3164for ac_c_preproc_warn_flag in '' yes
3165do
3166 # Use a header file that comes with gcc, so configuring glibc
3167 # with a fresh cross-compiler works.
3168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3169 # <limits.h> exists even on freestanding compilers.
3170 # On the NeXT, cc -E runs the code through the compiler's parser,
3171 # not just through cpp. "Syntax error" is here to catch this case.
3172 cat >conftest.$ac_ext <<_ACEOF
3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178#ifdef __STDC__
3179# include <limits.h>
3180#else
3181# include <assert.h>
3182#endif
3183 Syntax error
3184_ACEOF
631ef239 3185if { (ac_try="$ac_cpp conftest.$ac_ext"
3186case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3197 (exit $ac_status); } >/dev/null && {
3198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 }; then
212380e3 3201 :
3202else
3203 echo "$as_me: failed program was:" >&5
3204sed 's/^/| /' conftest.$ac_ext >&5
3205
3206 # Broken: fails on valid input.
3207continue
3208fi
631ef239 3209
212380e3 3210rm -f conftest.err conftest.$ac_ext
3211
631ef239 3212 # OK, works on sane cases. Now check whether nonexistent headers
212380e3 3213 # can be detected and how.
3214 cat >conftest.$ac_ext <<_ACEOF
3215/* confdefs.h. */
3216_ACEOF
3217cat confdefs.h >>conftest.$ac_ext
3218cat >>conftest.$ac_ext <<_ACEOF
3219/* end confdefs.h. */
3220#include <ac_nonexistent.h>
3221_ACEOF
631ef239 3222if { (ac_try="$ac_cpp conftest.$ac_ext"
3223case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3234 (exit $ac_status); } >/dev/null && {
3235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3236 test ! -s conftest.err
3237 }; then
212380e3 3238 # Broken: success on invalid input.
3239continue
3240else
3241 echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 # Passes both tests.
3245ac_preproc_ok=:
3246break
3247fi
631ef239 3248
212380e3 3249rm -f conftest.err conftest.$ac_ext
3250
3251done
3252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253rm -f conftest.err conftest.$ac_ext
3254if $ac_preproc_ok; then
3255 break
3256fi
3257
3258 done
3259 ac_cv_prog_CPP=$CPP
3260
3261fi
3262 CPP=$ac_cv_prog_CPP
3263else
3264 ac_cv_prog_CPP=$CPP
3265fi
631ef239 3266{ echo "$as_me:$LINENO: result: $CPP" >&5
3267echo "${ECHO_T}$CPP" >&6; }
212380e3 3268ac_preproc_ok=false
3269for ac_c_preproc_warn_flag in '' yes
3270do
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h. */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h. */
3283#ifdef __STDC__
3284# include <limits.h>
3285#else
3286# include <assert.h>
3287#endif
3288 Syntax error
3289_ACEOF
631ef239 3290if { (ac_try="$ac_cpp conftest.$ac_ext"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3302 (exit $ac_status); } >/dev/null && {
3303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 }; then
212380e3 3306 :
3307else
3308 echo "$as_me: failed program was:" >&5
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 # Broken: fails on valid input.
3312continue
3313fi
631ef239 3314
212380e3 3315rm -f conftest.err conftest.$ac_ext
3316
631ef239 3317 # OK, works on sane cases. Now check whether nonexistent headers
212380e3 3318 # can be detected and how.
3319 cat >conftest.$ac_ext <<_ACEOF
3320/* confdefs.h. */
3321_ACEOF
3322cat confdefs.h >>conftest.$ac_ext
3323cat >>conftest.$ac_ext <<_ACEOF
3324/* end confdefs.h. */
3325#include <ac_nonexistent.h>
3326_ACEOF
631ef239 3327if { (ac_try="$ac_cpp conftest.$ac_ext"
3328case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331esac
3332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3334 ac_status=$?
3335 grep -v '^ *+' conftest.er1 >conftest.err
3336 rm -f conftest.er1
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3339 (exit $ac_status); } >/dev/null && {
3340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 }; then
212380e3 3343 # Broken: success on invalid input.
3344continue
3345else
3346 echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 # Passes both tests.
3350ac_preproc_ok=:
3351break
3352fi
631ef239 3353
212380e3 3354rm -f conftest.err conftest.$ac_ext
3355
3356done
3357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3358rm -f conftest.err conftest.$ac_ext
3359if $ac_preproc_ok; then
3360 :
3361else
3362 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3363See \`config.log' for more details." >&5
3364echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3365See \`config.log' for more details." >&2;}
3366 { (exit 1); exit 1; }; }
3367fi
3368
3369ac_ext=c
3370ac_cpp='$CPP $CPPFLAGS'
3371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374
3375
631ef239 3376{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3377echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3378if test "${ac_cv_path_GREP+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 # Extract the first word of "grep ggrep" to use in msg output
3382if test -z "$GREP"; then
3383set dummy grep ggrep; ac_prog_name=$2
3384if test "${ac_cv_path_GREP+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387 ac_path_GREP_found=false
3388# Loop through the user's path and test for each of PROGNAME-LIST
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_prog in grep ggrep; do
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3397 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3398 # Check for GNU ac_path_GREP and select it if it is found.
3399 # Check for GNU $ac_path_GREP
3400case `"$ac_path_GREP" --version 2>&1` in
3401*GNU*)
3402 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3403*)
3404 ac_count=0
3405 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3406 while :
3407 do
3408 cat "conftest.in" "conftest.in" >"conftest.tmp"
3409 mv "conftest.tmp" "conftest.in"
3410 cp "conftest.in" "conftest.nl"
3411 echo 'GREP' >> "conftest.nl"
3412 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3414 ac_count=`expr $ac_count + 1`
3415 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3416 # Best one so far, save it but keep looking for a better one
3417 ac_cv_path_GREP="$ac_path_GREP"
3418 ac_path_GREP_max=$ac_count
3419 fi
3420 # 10*(2^10) chars as input seems more than enough
3421 test $ac_count -gt 10 && break
3422 done
3423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3424esac
3425
3426
3427 $ac_path_GREP_found && break 3
3428 done
3429done
3430
3431done
3432IFS=$as_save_IFS
3433
3434
3435fi
3436
3437GREP="$ac_cv_path_GREP"
3438if test -z "$GREP"; then
3439 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3440echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3441 { (exit 1); exit 1; }; }
3442fi
3443
3444else
3445 ac_cv_path_GREP=$GREP
3446fi
3447
3448
3449fi
3450{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3451echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3452 GREP="$ac_cv_path_GREP"
3453
3454
3455{ echo "$as_me:$LINENO: checking for egrep" >&5
3456echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3457if test "${ac_cv_path_EGREP+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3461 then ac_cv_path_EGREP="$GREP -E"
3462 else
3463 # Extract the first word of "egrep" to use in msg output
3464if test -z "$EGREP"; then
3465set dummy egrep; ac_prog_name=$2
3466if test "${ac_cv_path_EGREP+set}" = set; then
212380e3 3467 echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
631ef239 3469 ac_path_EGREP_found=false
3470# Loop through the user's path and test for each of PROGNAME-LIST
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_prog in egrep; do
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3479 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3480 # Check for GNU ac_path_EGREP and select it if it is found.
3481 # Check for GNU $ac_path_EGREP
3482case `"$ac_path_EGREP" --version 2>&1` in
3483*GNU*)
3484 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3485*)
3486 ac_count=0
3487 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3488 while :
3489 do
3490 cat "conftest.in" "conftest.in" >"conftest.tmp"
3491 mv "conftest.tmp" "conftest.in"
3492 cp "conftest.in" "conftest.nl"
3493 echo 'EGREP' >> "conftest.nl"
3494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3496 ac_count=`expr $ac_count + 1`
3497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3498 # Best one so far, save it but keep looking for a better one
3499 ac_cv_path_EGREP="$ac_path_EGREP"
3500 ac_path_EGREP_max=$ac_count
212380e3 3501 fi
631ef239 3502 # 10*(2^10) chars as input seems more than enough
3503 test $ac_count -gt 10 && break
3504 done
3505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3506esac
3507
3508
3509 $ac_path_EGREP_found && break 3
3510 done
3511done
3512
3513done
3514IFS=$as_save_IFS
3515
3516
3517fi
3518
3519EGREP="$ac_cv_path_EGREP"
3520if test -z "$EGREP"; then
3521 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3522echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3523 { (exit 1); exit 1; }; }
3524fi
3525
3526else
3527 ac_cv_path_EGREP=$EGREP
212380e3 3528fi
631ef239 3529
3530
3531 fi
3532fi
3533{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3534echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3535 EGREP="$ac_cv_path_EGREP"
212380e3 3536
3537
3538if test $ac_cv_c_compiler_gnu = yes; then
631ef239 3539 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3540echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
212380e3 3541if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543else
3544 ac_pattern="Autoconf.*'x'"
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#include <sgtty.h>
3552Autoconf TIOCGETP
3553_ACEOF
3554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3556 ac_cv_prog_gcc_traditional=yes
3557else
3558 ac_cv_prog_gcc_traditional=no
3559fi
3560rm -f conftest*
3561
3562
3563 if test $ac_cv_prog_gcc_traditional = no; then
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570#include <termio.h>
3571Autoconf TCGETA
3572_ACEOF
3573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3575 ac_cv_prog_gcc_traditional=yes
3576fi
3577rm -f conftest*
3578
3579 fi
3580fi
631ef239 3581{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3582echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
212380e3 3583 if test $ac_cv_prog_gcc_traditional = yes; then
3584 CC="$CC -traditional"
3585 fi
3586fi
3587
631ef239 3588{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3589echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3590set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3591if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3593else
3594 cat >conftest.make <<\_ACEOF
631ef239 3595SHELL = /bin/sh
212380e3 3596all:
631ef239 3597 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 3598_ACEOF
3599# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
631ef239 3600case `${MAKE-make} -f conftest.make 2>/dev/null` in
3601 *@@@%%%=?*=@@@%%%*)
3602 eval ac_cv_prog_make_${ac_make}_set=yes;;
3603 *)
3604 eval ac_cv_prog_make_${ac_make}_set=no;;
3605esac
212380e3 3606rm -f conftest.make
3607fi
631ef239 3608if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3609 { echo "$as_me:$LINENO: result: yes" >&5
3610echo "${ECHO_T}yes" >&6; }
212380e3 3611 SET_MAKE=
3612else
631ef239 3613 { echo "$as_me:$LINENO: result: no" >&5
3614echo "${ECHO_T}no" >&6; }
212380e3 3615 SET_MAKE="MAKE=${MAKE-make}"
3616fi
3617
3618ac_aux_dir=
631ef239 3619for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3620 if test -f "$ac_dir/install-sh"; then
212380e3 3621 ac_aux_dir=$ac_dir
3622 ac_install_sh="$ac_aux_dir/install-sh -c"
3623 break
631ef239 3624 elif test -f "$ac_dir/install.sh"; then
212380e3 3625 ac_aux_dir=$ac_dir
3626 ac_install_sh="$ac_aux_dir/install.sh -c"
3627 break
631ef239 3628 elif test -f "$ac_dir/shtool"; then
212380e3 3629 ac_aux_dir=$ac_dir
3630 ac_install_sh="$ac_aux_dir/shtool install -c"
3631 break
3632 fi
3633done
3634if test -z "$ac_aux_dir"; then
631ef239 3635 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3636echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
212380e3 3637 { (exit 1); exit 1; }; }
3638fi
631ef239 3639
3640# These three variables are undocumented and unsupported,
3641# and are intended to be withdrawn in a future Autoconf release.
3642# They can cause serious problems if a builder's source tree is in a directory
3643# whose full name contains unusual characters.
3644ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3645ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3646ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3647
212380e3 3648
3649# Find a good install program. We prefer a C program (faster),
3650# so one script is as good as another. But avoid the broken or
3651# incompatible versions:
3652# SysV /etc/install, /usr/sbin/install
3653# SunOS /usr/etc/install
3654# IRIX /sbin/install
3655# AIX /bin/install
3656# AmigaOS /C/install, which installs bootblocks on floppy discs
3657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3660# OS/2's system install, which has a completely different semantic
3661# ./install, which can be erroneously created by make from ./install.sh.
631ef239 3662{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3663echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
212380e3 3664if test -z "$INSTALL"; then
3665if test "${ac_cv_path_install+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669for as_dir in $PATH
3670do
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 # Account for people who put trailing slashes in PATH elements.
3674case $as_dir/ in
3675 ./ | .// | /cC/* | \
3676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3677 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3678 /usr/ucb/* ) ;;
3679 *)
3680 # OSF1 and SCO ODT 3.0 have their own names for install.
3681 # Don't use installbsd from OSF since it installs stuff as root
3682 # by default.
3683 for ac_prog in ginstall scoinst install; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3685 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
212380e3 3686 if test $ac_prog = install &&
3687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688 # AIX install. It has an incompatible calling convention.
3689 :
3690 elif test $ac_prog = install &&
3691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # program-specific install script used by HP pwplus--don't use.
3693 :
3694 else
3695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3696 break 3
3697 fi
3698 fi
3699 done
3700 done
3701 ;;
3702esac
3703done
631ef239 3704IFS=$as_save_IFS
212380e3 3705
3706
3707fi
3708 if test "${ac_cv_path_install+set}" = set; then
3709 INSTALL=$ac_cv_path_install
3710 else
631ef239 3711 # As a last resort, use the slow shell script. Don't cache a
3712 # value for INSTALL within a source directory, because that will
212380e3 3713 # break other packages using the cache if that directory is
631ef239 3714 # removed, or if the value is a relative name.
212380e3 3715 INSTALL=$ac_install_sh
3716 fi
3717fi
631ef239 3718{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3719echo "${ECHO_T}$INSTALL" >&6; }
212380e3 3720
3721# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3722# It thinks the first close brace ends the variable substitution.
3723test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3724
3725test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3726
3727test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3728
3729# Extract the first word of "rm", so it can be a program name with args.
3730set dummy rm; ac_word=$2
631ef239 3731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3733if test "${ac_cv_path_RM+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 case $RM in
3737 [\\/]* | ?:[\\/]*)
3738 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3739 ;;
3740 *)
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3748 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752done
3753done
631ef239 3754IFS=$as_save_IFS
212380e3 3755
3756 ;;
3757esac
3758fi
3759RM=$ac_cv_path_RM
212380e3 3760if test -n "$RM"; then
631ef239 3761 { echo "$as_me:$LINENO: result: $RM" >&5
3762echo "${ECHO_T}$RM" >&6; }
212380e3 3763else
631ef239 3764 { echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6; }
212380e3 3766fi
3767
631ef239 3768
212380e3 3769# Extract the first word of "cp", so it can be a program name with args.
3770set dummy cp; ac_word=$2
631ef239 3771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3773if test "${ac_cv_path_CP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776 case $CP in
3777 [\\/]* | ?:[\\/]*)
3778 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3779 ;;
3780 *)
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782for as_dir in $PATH
3783do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3788 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 break 2
3791 fi
3792done
3793done
631ef239 3794IFS=$as_save_IFS
212380e3 3795
3796 ;;
3797esac
3798fi
3799CP=$ac_cv_path_CP
212380e3 3800if test -n "$CP"; then
631ef239 3801 { echo "$as_me:$LINENO: result: $CP" >&5
3802echo "${ECHO_T}$CP" >&6; }
212380e3 3803else
631ef239 3804 { echo "$as_me:$LINENO: result: no" >&5
3805echo "${ECHO_T}no" >&6; }
212380e3 3806fi
3807
631ef239 3808
212380e3 3809# Extract the first word of "mv", so it can be a program name with args.
3810set dummy mv; ac_word=$2
631ef239 3811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3813if test "${ac_cv_path_MV+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815else
3816 case $MV in
3817 [\\/]* | ?:[\\/]*)
3818 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3819 ;;
3820 *)
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822for as_dir in $PATH
3823do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3828 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832done
3833done
631ef239 3834IFS=$as_save_IFS
212380e3 3835
3836 ;;
3837esac
3838fi
3839MV=$ac_cv_path_MV
212380e3 3840if test -n "$MV"; then
631ef239 3841 { echo "$as_me:$LINENO: result: $MV" >&5
3842echo "${ECHO_T}$MV" >&6; }
212380e3 3843else
631ef239 3844 { echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6; }
212380e3 3846fi
3847
631ef239 3848
212380e3 3849# Extract the first word of "ln", so it can be a program name with args.
3850set dummy ln; ac_word=$2
631ef239 3851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3853if test "${ac_cv_path_LN+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 case $LN in
3857 [\\/]* | ?:[\\/]*)
3858 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3859 ;;
3860 *)
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3868 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873done
631ef239 3874IFS=$as_save_IFS
212380e3 3875
3876 ;;
3877esac
3878fi
3879LN=$ac_cv_path_LN
212380e3 3880if test -n "$LN"; then
631ef239 3881 { echo "$as_me:$LINENO: result: $LN" >&5
3882echo "${ECHO_T}$LN" >&6; }
212380e3 3883else
631ef239 3884 { echo "$as_me:$LINENO: result: no" >&5
3885echo "${ECHO_T}no" >&6; }
212380e3 3886fi
3887
631ef239 3888
212380e3 3889# Extract the first word of "sed", so it can be a program name with args.
3890set dummy sed; ac_word=$2
631ef239 3891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3893if test "${ac_cv_path_SED+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896 case $SED in
3897 [\\/]* | ?:[\\/]*)
3898 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3899 ;;
3900 *)
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3908 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3911 fi
3912done
3913done
631ef239 3914IFS=$as_save_IFS
212380e3 3915
3916 ;;
3917esac
3918fi
3919SED=$ac_cv_path_SED
212380e3 3920if test -n "$SED"; then
631ef239 3921 { echo "$as_me:$LINENO: result: $SED" >&5
3922echo "${ECHO_T}$SED" >&6; }
212380e3 3923else
631ef239 3924 { echo "$as_me:$LINENO: result: no" >&5
3925echo "${ECHO_T}no" >&6; }
212380e3 3926fi
3927
631ef239 3928
212380e3 3929# Extract the first word of "ar", so it can be a program name with args.
3930set dummy ar; ac_word=$2
631ef239 3931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3933if test "${ac_cv_path_AR+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3935else
3936 case $AR in
3937 [\\/]* | ?:[\\/]*)
3938 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3939 ;;
3940 *)
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3948 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953done
631ef239 3954IFS=$as_save_IFS
212380e3 3955
3956 ;;
3957esac
3958fi
3959AR=$ac_cv_path_AR
212380e3 3960if test -n "$AR"; then
631ef239 3961 { echo "$as_me:$LINENO: result: $AR" >&5
3962echo "${ECHO_T}$AR" >&6; }
212380e3 3963else
631ef239 3964 { echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6; }
212380e3 3966fi
3967
631ef239 3968
212380e3 3969# Extract the first word of "ld", so it can be a program name with args.
3970set dummy ld; ac_word=$2
631ef239 3971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3973if test "${ac_cv_path_LD+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 case $LD in
3977 [\\/]* | ?:[\\/]*)
3978 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3979 ;;
3980 *)
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3988 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992done
3993done
631ef239 3994IFS=$as_save_IFS
212380e3 3995
3996 ;;
3997esac
3998fi
3999LD=$ac_cv_path_LD
212380e3 4000if test -n "$LD"; then
631ef239 4001 { echo "$as_me:$LINENO: result: $LD" >&5
4002echo "${ECHO_T}$LD" >&6; }
212380e3 4003else
631ef239 4004 { echo "$as_me:$LINENO: result: no" >&5
4005echo "${ECHO_T}no" >&6; }
212380e3 4006fi
4007
631ef239 4008
212380e3 4009# Extract the first word of "ranlib", so it can be a program name with args.
4010set dummy ranlib; ac_word=$2
631ef239 4011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4013if test "${ac_cv_path_RANLIB+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016 case $RANLIB in
4017 [\\/]* | ?:[\\/]*)
4018 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4019 ;;
4020 *)
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022for as_dir in $PATH
4023do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4028 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 break 2
4031 fi
4032done
4033done
631ef239 4034IFS=$as_save_IFS
212380e3 4035
4036 ;;
4037esac
4038fi
4039RANLIB=$ac_cv_path_RANLIB
212380e3 4040if test -n "$RANLIB"; then
631ef239 4041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4042echo "${ECHO_T}$RANLIB" >&6; }
212380e3 4043else
631ef239 4044 { echo "$as_me:$LINENO: result: no" >&5
4045echo "${ECHO_T}no" >&6; }
212380e3 4046fi
4047
631ef239 4048
212380e3 4049# Extract the first word of "touch", so it can be a program name with args.
4050set dummy touch; ac_word=$2
631ef239 4051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4053if test "${ac_cv_path_TOUCH+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056 case $TOUCH in
4057 [\\/]* | ?:[\\/]*)
4058 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4059 ;;
4060 *)
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4068 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073done
631ef239 4074IFS=$as_save_IFS
212380e3 4075
4076 ;;
4077esac
4078fi
4079TOUCH=$ac_cv_path_TOUCH
212380e3 4080if test -n "$TOUCH"; then
631ef239 4081 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4082echo "${ECHO_T}$TOUCH" >&6; }
212380e3 4083else
631ef239 4084 { echo "$as_me:$LINENO: result: no" >&5
4085echo "${ECHO_T}no" >&6; }
212380e3 4086fi
4087
4088
631ef239 4089
212380e3 4090for ac_prog in 'bison -y' byacc
4091do
4092 # Extract the first word of "$ac_prog", so it can be a program name with args.
4093set dummy $ac_prog; ac_word=$2
631ef239 4094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4096if test "${ac_cv_prog_YACC+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099 if test -n "$YACC"; then
4100 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4101else
4102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103for as_dir in $PATH
4104do
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4109 ac_cv_prog_YACC="$ac_prog"
4110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4112 fi
4113done
4114done
631ef239 4115IFS=$as_save_IFS
212380e3 4116
4117fi
4118fi
4119YACC=$ac_cv_prog_YACC
4120if test -n "$YACC"; then
631ef239 4121 { echo "$as_me:$LINENO: result: $YACC" >&5
4122echo "${ECHO_T}$YACC" >&6; }
212380e3 4123else
631ef239 4124 { echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6; }
212380e3 4126fi
4127
631ef239 4128
212380e3 4129 test -n "$YACC" && break
4130done
4131test -n "$YACC" || YACC="yacc"
4132
4133
4134if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4135 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4136echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4137 { (exit 1); exit 1; }; }
4138fi
4139
4140for ac_prog in flex lex
4141do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143set dummy $ac_prog; ac_word=$2
631ef239 4144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4146if test "${ac_cv_prog_LEX+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149 if test -n "$LEX"; then
4150 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4151else
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4159 ac_cv_prog_LEX="$ac_prog"
4160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163done
4164done
631ef239 4165IFS=$as_save_IFS
212380e3 4166
4167fi
4168fi
4169LEX=$ac_cv_prog_LEX
4170if test -n "$LEX"; then
631ef239 4171 { echo "$as_me:$LINENO: result: $LEX" >&5
4172echo "${ECHO_T}$LEX" >&6; }
212380e3 4173else
631ef239 4174 { echo "$as_me:$LINENO: result: no" >&5
4175echo "${ECHO_T}no" >&6; }
212380e3 4176fi
4177
631ef239 4178
212380e3 4179 test -n "$LEX" && break
4180done
4181test -n "$LEX" || LEX=":"
4182
631ef239 4183if test "x$LEX" != "x:"; then
4184 cat >conftest.l <<_ACEOF
4185%%
4186a { ECHO; }
4187b { REJECT; }
4188c { yymore (); }
4189d { yyless (1); }
4190e { yyless (input () != 0); }
4191f { unput (yytext[0]); }
4192. { BEGIN INITIAL; }
4193%%
4194#ifdef YYTEXT_POINTER
4195extern char *yytext;
212380e3 4196#endif
212380e3 4197int
631ef239 4198main (void)
212380e3 4199{
631ef239 4200 return ! yylex () + ! yywrap ();
212380e3 4201}
4202_ACEOF
631ef239 4203{ (ac_try="$LEX conftest.l"
4204case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$LEX conftest.l") 2>&5
212380e3 4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4212 (exit $ac_status); }
4213{ echo "$as_me:$LINENO: checking lex output file root" >&5
4214echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4215if test "${ac_cv_prog_lex_root+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
212380e3 4217else
212380e3 4218
631ef239 4219if test -f lex.yy.c; then
4220 ac_cv_prog_lex_root=lex.yy
4221elif test -f lexyy.c; then
4222 ac_cv_prog_lex_root=lexyy
212380e3 4223else
631ef239 4224 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4225echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4226 { (exit 1); exit 1; }; }
4227fi
4228fi
4229{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4230echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4231LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4232
4233if test -z "${LEXLIB+set}"; then
4234 { echo "$as_me:$LINENO: checking lex library" >&5
4235echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4236if test "${ac_cv_lib_lex+set}" = set; then
212380e3 4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
212380e3 4239
631ef239 4240 ac_save_LIBS=$LIBS
4241 ac_cv_lib_lex='none needed'
4242 for ac_lib in '' -lfl -ll; do
4243 LIBS="$ac_lib $ac_save_LIBS"
4244 cat >conftest.$ac_ext <<_ACEOF
4245`cat $LEX_OUTPUT_ROOT.c`
212380e3 4246_ACEOF
4247rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 4248if { (ac_try="$ac_link"
4249case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_link") 2>conftest.er1
212380e3 4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4260 (exit $ac_status); } && {
4261 test -z "$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4263 } && test -s conftest$ac_exeext &&
4264 $as_test_x conftest$ac_exeext; then
4265 ac_cv_lib_lex=$ac_lib
212380e3 4266else
4267 echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
212380e3 4270
4271fi
4272
631ef239 4273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274 conftest$ac_exeext conftest.$ac_ext
4275 test "$ac_cv_lib_lex" != 'none needed' && break
4276 done
4277 LIBS=$ac_save_LIBS
212380e3 4278
212380e3 4279fi
631ef239 4280{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4281echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4282 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
212380e3 4283fi
212380e3 4284
631ef239 4285
4286{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4287echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
212380e3 4288if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291 # POSIX says lex can declare yytext either as a pointer or an array; the
631ef239 4292# default is implementation-dependent. Figure out which it is, since
212380e3 4293# not all implementations provide the %pointer and %array declarations.
4294ac_cv_prog_lex_yytext_pointer=no
212380e3 4295ac_save_LIBS=$LIBS
631ef239 4296LIBS="$LEXLIB $ac_save_LIBS"
212380e3 4297cat >conftest.$ac_ext <<_ACEOF
631ef239 4298#define YYTEXT_POINTER 1
212380e3 4299`cat $LEX_OUTPUT_ROOT.c`
4300_ACEOF
4301rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 4302if { (ac_try="$ac_link"
4303case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306esac
4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>conftest.er1
212380e3 4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4314 (exit $ac_status); } && {
4315 test -z "$ac_c_werror_flag" ||
4316 test ! -s conftest.err
4317 } && test -s conftest$ac_exeext &&
4318 $as_test_x conftest$ac_exeext; then
212380e3 4319 ac_cv_prog_lex_yytext_pointer=yes
4320else
4321 echo "$as_me: failed program was:" >&5
4322sed 's/^/| /' conftest.$ac_ext >&5
4323
631ef239 4324
212380e3 4325fi
631ef239 4326
4327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 4328 conftest$ac_exeext conftest.$ac_ext
4329LIBS=$ac_save_LIBS
212380e3 4330
4331fi
631ef239 4332{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4333echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
212380e3 4334if test $ac_cv_prog_lex_yytext_pointer = yes; then
4335
4336cat >>confdefs.h <<\_ACEOF
4337#define YYTEXT_POINTER 1
4338_ACEOF
4339
4340fi
631ef239 4341rm -f conftest.l $LEX_OUTPUT_ROOT.c
212380e3 4342
4343fi
4344
4345if test "$LEX" = ":"; then
4346 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4347echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4348 { (exit 1); exit 1; }; }
4349fi
4350
4351if test "$libexecdir" = '${exec_prefix}/libexec' &&
4352 test "$localstatedir" = '${prefix}/var'; then
4353 libexecdir='${bindir}'
4354 localstatedir='${prefix}'
4355fi
4356
631ef239 4357{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4358echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
212380e3 4359if test "${ac_cv_header_stdc+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368#include <stdlib.h>
4369#include <stdarg.h>
4370#include <string.h>
4371#include <float.h>
4372
4373int
4374main ()
4375{
4376
4377 ;
4378 return 0;
4379}
4380_ACEOF
4381rm -f conftest.$ac_objext
631ef239 4382if { (ac_try="$ac_compile"
4383case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386esac
4387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388 (eval "$ac_compile") 2>conftest.er1
212380e3 4389 ac_status=$?
4390 grep -v '^ *+' conftest.er1 >conftest.err
4391 rm -f conftest.er1
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4394 (exit $ac_status); } && {
4395 test -z "$ac_c_werror_flag" ||
4396 test ! -s conftest.err
4397 } && test -s conftest.$ac_objext; then
212380e3 4398 ac_cv_header_stdc=yes
4399else
4400 echo "$as_me: failed program was:" >&5
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
631ef239 4403 ac_cv_header_stdc=no
212380e3 4404fi
631ef239 4405
4406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4407
4408if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
4416#include <string.h>
4417
4418_ACEOF
4419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "memchr" >/dev/null 2>&1; then
4421 :
4422else
4423 ac_cv_header_stdc=no
4424fi
4425rm -f conftest*
4426
4427fi
4428
4429if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437#include <stdlib.h>
4438
4439_ACEOF
4440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev/null 2>&1; then
4442 :
4443else
4444 ac_cv_header_stdc=no
4445fi
4446rm -f conftest*
4447
4448fi
4449
4450if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4453 :
4454else
4455 cat >conftest.$ac_ext <<_ACEOF
4456/* confdefs.h. */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h. */
4461#include <ctype.h>
631ef239 4462#include <stdlib.h>
212380e3 4463#if ((' ' & 0x0FF) == 0x020)
4464# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4465# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466#else
4467# define ISLOWER(c) \
4468 (('a' <= (c) && (c) <= 'i') \
4469 || ('j' <= (c) && (c) <= 'r') \
4470 || ('s' <= (c) && (c) <= 'z'))
4471# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4472#endif
4473
4474#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4475int
4476main ()
4477{
4478 int i;
4479 for (i = 0; i < 256; i++)
4480 if (XOR (islower (i), ISLOWER (i))
4481 || toupper (i) != TOUPPER (i))
631ef239 4482 return 2;
4483 return 0;
212380e3 4484}
4485_ACEOF
4486rm -f conftest$ac_exeext
631ef239 4487if { (ac_try="$ac_link"
4488case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491esac
4492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_link") 2>&5
212380e3 4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
212380e3 4503 ac_status=$?
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 :
4507else
4508 echo "$as_me: program exited with status $ac_status" >&5
4509echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512( exit $ac_status )
4513ac_cv_header_stdc=no
4514fi
631ef239 4515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 4516fi
631ef239 4517
4518
212380e3 4519fi
4520fi
631ef239 4521{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4522echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
212380e3 4523if test $ac_cv_header_stdc = yes; then
4524
4525cat >>confdefs.h <<\_ACEOF
4526#define STDC_HEADERS 1
4527_ACEOF
4528
4529fi
4530
4531
4532# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4543 inttypes.h stdint.h unistd.h
4544do
4545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 4546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551 cat >conftest.$ac_ext <<_ACEOF
4552/* confdefs.h. */
4553_ACEOF
4554cat confdefs.h >>conftest.$ac_ext
4555cat >>conftest.$ac_ext <<_ACEOF
4556/* end confdefs.h. */
4557$ac_includes_default
4558
4559#include <$ac_header>
4560_ACEOF
4561rm -f conftest.$ac_objext
631ef239 4562if { (ac_try="$ac_compile"
4563case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_compile") 2>conftest.er1
212380e3 4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4574 (exit $ac_status); } && {
4575 test -z "$ac_c_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest.$ac_objext; then
212380e3 4578 eval "$as_ac_Header=yes"
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
631ef239 4583 eval "$as_ac_Header=no"
212380e3 4584fi
631ef239 4585
4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4587fi
631ef239 4588ac_res=`eval echo '${'$as_ac_Header'}'`
4589 { echo "$as_me:$LINENO: result: $ac_res" >&5
4590echo "${ECHO_T}$ac_res" >&6; }
212380e3 4591if test `eval echo '${'$as_ac_Header'}'` = yes; then
4592 cat >>confdefs.h <<_ACEOF
4593#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4594_ACEOF
4595
4596fi
4597
4598done
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612for 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
4613do
4614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 4615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620fi
631ef239 4621ac_res=`eval echo '${'$as_ac_Header'}'`
4622 { echo "$as_me:$LINENO: result: $ac_res" >&5
4623echo "${ECHO_T}$ac_res" >&6; }
212380e3 4624else
4625 # Is the header compilable?
631ef239 4626{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3 4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634$ac_includes_default
4635#include <$ac_header>
4636_ACEOF
4637rm -f conftest.$ac_objext
631ef239 4638if { (ac_try="$ac_compile"
4639case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644 (eval "$ac_compile") 2>conftest.er1
212380e3 4645 ac_status=$?
4646 grep -v '^ *+' conftest.er1 >conftest.err
4647 rm -f conftest.er1
4648 cat conftest.err >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4650 (exit $ac_status); } && {
4651 test -z "$ac_c_werror_flag" ||
4652 test ! -s conftest.err
4653 } && test -s conftest.$ac_objext; then
212380e3 4654 ac_header_compiler=yes
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
631ef239 4659 ac_header_compiler=no
212380e3 4660fi
631ef239 4661
4662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4664echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 4665
4666# Is the header present?
631ef239 4667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3 4669cat >conftest.$ac_ext <<_ACEOF
4670/* confdefs.h. */
4671_ACEOF
4672cat confdefs.h >>conftest.$ac_ext
4673cat >>conftest.$ac_ext <<_ACEOF
4674/* end confdefs.h. */
4675#include <$ac_header>
4676_ACEOF
631ef239 4677if { (ac_try="$ac_cpp conftest.$ac_ext"
4678case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 }; then
212380e3 4693 ac_header_preproc=yes
4694else
4695 echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 ac_header_preproc=no
4699fi
631ef239 4700
212380e3 4701rm -f conftest.err conftest.$ac_ext
631ef239 4702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 4704
4705# So? What about this header?
4706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4707 yes:no: )
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc=yes
4713 ;;
4714 no:yes:* )
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 4727
212380e3 4728 ;;
4729esac
631ef239 4730{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 eval "$as_ac_Header=\$ac_header_preproc"
4736fi
631ef239 4737ac_res=`eval echo '${'$as_ac_Header'}'`
4738 { echo "$as_me:$LINENO: result: $ac_res" >&5
4739echo "${ECHO_T}$ac_res" >&6; }
212380e3 4740
4741fi
4742if test `eval echo '${'$as_ac_Header'}'` = yes; then
4743 cat >>confdefs.h <<_ACEOF
4744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745_ACEOF
4746
4747fi
4748
4749done
4750
4751
4752
631ef239 4753{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4754echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
212380e3 4755if test "${ac_cv_c_const+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764
4765int
4766main ()
4767{
4768/* FIXME: Include the comments suggested by Paul. */
4769#ifndef __cplusplus
4770 /* Ultrix mips cc rejects this. */
4771 typedef int charset[2];
631ef239 4772 const charset cs;
212380e3 4773 /* SunOS 4.1.1 cc rejects this. */
631ef239 4774 char const *const *pcpcc;
4775 char **ppc;
212380e3 4776 /* NEC SVR4.0.2 mips cc rejects this. */
4777 struct point {int x, y;};
4778 static struct point const zero = {0,0};
4779 /* AIX XL C 1.02.0.0 rejects this.
4780 It does not let you subtract one const X* pointer from another in
4781 an arm of an if-expression whose if-part is not a constant
4782 expression */
4783 const char *g = "string";
631ef239 4784 pcpcc = &g + (g ? g-g : 0);
212380e3 4785 /* HPUX 7.0 cc rejects these. */
631ef239 4786 ++pcpcc;
4787 ppc = (char**) pcpcc;
4788 pcpcc = (char const *const *) ppc;
212380e3 4789 { /* SCO 3.2v4 cc rejects this. */
4790 char *t;
4791 char const *s = 0 ? (char *) 0 : (char const *) 0;
4792
4793 *t++ = 0;
631ef239 4794 if (s) return 0;
212380e3 4795 }
4796 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4797 int x[] = {25, 17};
4798 const int *foo = &x[0];
4799 ++foo;
4800 }
4801 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4802 typedef const int *iptr;
4803 iptr p = 0;
4804 ++p;
4805 }
4806 { /* AIX XL C 1.02.0.0 rejects this saying
4807 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4808 struct s { int j; const int *ap[3]; };
4809 struct s *b; b->j = 5;
4810 }
4811 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4812 const int foo = 10;
631ef239 4813 if (!foo) return 0;
212380e3 4814 }
631ef239 4815 return !cs[0] && !zero.x;
212380e3 4816#endif
4817
4818 ;
4819 return 0;
4820}
4821_ACEOF
4822rm -f conftest.$ac_objext
631ef239 4823if { (ac_try="$ac_compile"
4824case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827esac
4828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_compile") 2>conftest.er1
212380e3 4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.$ac_objext; then
212380e3 4839 ac_cv_c_const=yes
4840else
4841 echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
631ef239 4844 ac_cv_c_const=no
212380e3 4845fi
631ef239 4846
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4848fi
631ef239 4849{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4850echo "${ECHO_T}$ac_cv_c_const" >&6; }
212380e3 4851if test $ac_cv_c_const = no; then
4852
4853cat >>confdefs.h <<\_ACEOF
4854#define const
4855_ACEOF
4856
4857fi
4858
4859if test "$ac_cv_header_machine_endian_h" = "no" ; then
631ef239 4860 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4861echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
212380e3 4862if test "${ac_cv_c_bigendian+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 # See if sys/param.h defines the BYTE_ORDER macro.
4866cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h. */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h. */
4872#include <sys/types.h>
4873#include <sys/param.h>
4874
4875int
4876main ()
4877{
631ef239 4878#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4879 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
212380e3 4880 bogus endian macros
4881#endif
4882
4883 ;
4884 return 0;
4885}
4886_ACEOF
4887rm -f conftest.$ac_objext
631ef239 4888if { (ac_try="$ac_compile"
4889case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892esac
4893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_compile") 2>conftest.er1
212380e3 4895 ac_status=$?
4896 grep -v '^ *+' conftest.er1 >conftest.err
4897 rm -f conftest.er1
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4900 (exit $ac_status); } && {
4901 test -z "$ac_c_werror_flag" ||
4902 test ! -s conftest.err
4903 } && test -s conftest.$ac_objext; then
212380e3 4904 # It does; now see whether it defined to BIG_ENDIAN or not.
4905cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
4911#include <sys/types.h>
4912#include <sys/param.h>
4913
4914int
4915main ()
4916{
4917#if BYTE_ORDER != BIG_ENDIAN
4918 not big endian
4919#endif
4920
4921 ;
4922 return 0;
4923}
4924_ACEOF
4925rm -f conftest.$ac_objext
631ef239 4926if { (ac_try="$ac_compile"
4927case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
212380e3 4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
212380e3 4942 ac_cv_c_bigendian=yes
4943else
4944 echo "$as_me: failed program was:" >&5
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
631ef239 4947 ac_cv_c_bigendian=no
212380e3 4948fi
631ef239 4949
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4951else
4952 echo "$as_me: failed program was:" >&5
4953sed 's/^/| /' conftest.$ac_ext >&5
4954
631ef239 4955 # It does not; compile a test program.
212380e3 4956if test "$cross_compiling" = yes; then
4957 # try to guess the endianness by grepping values into an object file
4958 ac_cv_c_bigendian=unknown
4959 cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
631ef239 4965short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4966short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
212380e3 4967void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
631ef239 4968short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4969short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
212380e3 4970void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4971int
4972main ()
4973{
4974 _ascii (); _ebcdic ();
4975 ;
4976 return 0;
4977}
4978_ACEOF
4979rm -f conftest.$ac_objext
631ef239 4980if { (ac_try="$ac_compile"
4981case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984esac
4985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986 (eval "$ac_compile") 2>conftest.er1
212380e3 4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
212380e3 4996 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4997 ac_cv_c_bigendian=yes
4998fi
4999if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5000 if test "$ac_cv_c_bigendian" = unknown; then
5001 ac_cv_c_bigendian=no
5002 else
5003 # finding both strings is unlikely to happen, but who knows?
5004 ac_cv_c_bigendian=unknown
5005 fi
5006fi
5007else
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
631ef239 5011
212380e3 5012fi
631ef239 5013
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5015else
5016 cat >conftest.$ac_ext <<_ACEOF
5017/* confdefs.h. */
5018_ACEOF
5019cat confdefs.h >>conftest.$ac_ext
5020cat >>conftest.$ac_ext <<_ACEOF
5021/* end confdefs.h. */
631ef239 5022$ac_includes_default
212380e3 5023int
5024main ()
5025{
631ef239 5026
212380e3 5027 /* Are we little or big endian? From Harbison&Steele. */
5028 union
5029 {
631ef239 5030 long int l;
5031 char c[sizeof (long int)];
212380e3 5032 } u;
5033 u.l = 1;
631ef239 5034 return u.c[sizeof (long int) - 1] == 1;
5035
5036 ;
5037 return 0;
212380e3 5038}
5039_ACEOF
5040rm -f conftest$ac_exeext
631ef239 5041if { (ac_try="$ac_link"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>&5
212380e3 5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 5051 { (case "(($ac_try" in
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5054esac
5055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5056 (eval "$ac_try") 2>&5
212380e3 5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
5060 ac_cv_c_bigendian=no
5061else
5062 echo "$as_me: program exited with status $ac_status" >&5
5063echo "$as_me: failed program was:" >&5
5064sed 's/^/| /' conftest.$ac_ext >&5
5065
5066( exit $ac_status )
5067ac_cv_c_bigendian=yes
5068fi
631ef239 5069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 5070fi
631ef239 5071
5072
212380e3 5073fi
631ef239 5074
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5076fi
631ef239 5077{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5078echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
212380e3 5079case $ac_cv_c_bigendian in
5080 yes)
5081
5082cat >>confdefs.h <<\_ACEOF
5083#define WORDS_BIGENDIAN 1
5084_ACEOF
5085 ;;
5086 no)
5087 ;;
5088 *)
5089 { { echo "$as_me:$LINENO: error: unknown endianness
5090presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5091echo "$as_me: error: unknown endianness
5092presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5093 { (exit 1); exit 1; }; } ;;
5094esac
5095
5096fi
631ef239 5097{ echo "$as_me:$LINENO: checking for pid_t" >&5
5098echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
212380e3 5099if test "${ac_cv_type_pid_t+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102 cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
5108$ac_includes_default
631ef239 5109typedef pid_t ac__type_new_;
212380e3 5110int
5111main ()
5112{
631ef239 5113if ((ac__type_new_ *) 0)
212380e3 5114 return 0;
631ef239 5115if (sizeof (ac__type_new_))
212380e3 5116 return 0;
5117 ;
5118 return 0;
5119}
5120_ACEOF
5121rm -f conftest.$ac_objext
631ef239 5122if { (ac_try="$ac_compile"
5123case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126esac
5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compile") 2>conftest.er1
212380e3 5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5134 (exit $ac_status); } && {
5135 test -z "$ac_c_werror_flag" ||
5136 test ! -s conftest.err
5137 } && test -s conftest.$ac_objext; then
212380e3 5138 ac_cv_type_pid_t=yes
5139else
5140 echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
631ef239 5143 ac_cv_type_pid_t=no
212380e3 5144fi
631ef239 5145
5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5147fi
631ef239 5148{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5149echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
212380e3 5150if test $ac_cv_type_pid_t = yes; then
5151 :
5152else
5153
5154cat >>confdefs.h <<_ACEOF
5155#define pid_t int
5156_ACEOF
5157
5158fi
5159
631ef239 5160{ echo "$as_me:$LINENO: checking for size_t" >&5
5161echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
212380e3 5162if test "${ac_cv_type_size_t+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
5171$ac_includes_default
631ef239 5172typedef size_t ac__type_new_;
212380e3 5173int
5174main ()
5175{
631ef239 5176if ((ac__type_new_ *) 0)
212380e3 5177 return 0;
631ef239 5178if (sizeof (ac__type_new_))
212380e3 5179 return 0;
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext
631ef239 5185if { (ac_try="$ac_compile"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
212380e3 5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5197 (exit $ac_status); } && {
5198 test -z "$ac_c_werror_flag" ||
5199 test ! -s conftest.err
5200 } && test -s conftest.$ac_objext; then
212380e3 5201 ac_cv_type_size_t=yes
5202else
5203 echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
631ef239 5206 ac_cv_type_size_t=no
212380e3 5207fi
631ef239 5208
5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5210fi
631ef239 5211{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5212echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
212380e3 5213if test $ac_cv_type_size_t = yes; then
5214 :
5215else
5216
5217cat >>confdefs.h <<_ACEOF
631ef239 5218#define size_t unsigned int
212380e3 5219_ACEOF
5220
5221fi
5222
631ef239 5223{ echo "$as_me:$LINENO: checking for short" >&5
5224echo $ECHO_N "checking for short... $ECHO_C" >&6; }
212380e3 5225if test "${ac_cv_type_short+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 cat >conftest.$ac_ext <<_ACEOF
5229/* confdefs.h. */
5230_ACEOF
5231cat confdefs.h >>conftest.$ac_ext
5232cat >>conftest.$ac_ext <<_ACEOF
5233/* end confdefs.h. */
5234$ac_includes_default
631ef239 5235typedef short ac__type_new_;
212380e3 5236int
5237main ()
5238{
631ef239 5239if ((ac__type_new_ *) 0)
212380e3 5240 return 0;
631ef239 5241if (sizeof (ac__type_new_))
212380e3 5242 return 0;
5243 ;
5244 return 0;
5245}
5246_ACEOF
5247rm -f conftest.$ac_objext
631ef239 5248if { (ac_try="$ac_compile"
5249case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252esac
5253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compile") 2>conftest.er1
212380e3 5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
212380e3 5264 ac_cv_type_short=yes
5265else
5266 echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
631ef239 5269 ac_cv_type_short=no
212380e3 5270fi
631ef239 5271
5272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5273fi
631ef239 5274{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5275echo "${ECHO_T}$ac_cv_type_short" >&6; }
212380e3 5276
631ef239 5277# The cast to long int works around a bug in the HP C Compiler
5278# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5279# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5280# This bug is HP SR number 8606223364.
5281{ echo "$as_me:$LINENO: checking size of short" >&5
5282echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
212380e3 5283if test "${ac_cv_sizeof_short+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
212380e3 5286 if test "$cross_compiling" = yes; then
5287 # Depending upon the size, compute the lo and hi bounds.
5288cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294$ac_includes_default
631ef239 5295 typedef short ac__type_sizeof_;
212380e3 5296int
5297main ()
5298{
631ef239 5299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 5300test_array [0] = 0
5301
5302 ;
5303 return 0;
5304}
5305_ACEOF
5306rm -f conftest.$ac_objext
631ef239 5307if { (ac_try="$ac_compile"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_compile") 2>conftest.er1
212380e3 5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.$ac_objext; then
212380e3 5323 ac_lo=0 ac_mid=0
5324 while :; do
5325 cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331$ac_includes_default
631ef239 5332 typedef short ac__type_sizeof_;
212380e3 5333int
5334main ()
5335{
631ef239 5336static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5337test_array [0] = 0
5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
5343rm -f conftest.$ac_objext
631ef239 5344if { (ac_try="$ac_compile"
5345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
212380e3 5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
212380e3 5360 ac_hi=$ac_mid; break
5361else
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
631ef239 5365 ac_lo=`expr $ac_mid + 1`
5366 if test $ac_lo -le $ac_mid; then
5367 ac_lo= ac_hi=
5368 break
5369 fi
5370 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 5371fi
631ef239 5372
5373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5374 done
5375else
5376 echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
631ef239 5379 cat >conftest.$ac_ext <<_ACEOF
212380e3 5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385$ac_includes_default
631ef239 5386 typedef short ac__type_sizeof_;
212380e3 5387int
5388main ()
5389{
631ef239 5390static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 5391test_array [0] = 0
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext
631ef239 5398if { (ac_try="$ac_compile"
5399case "(($ac_try" in
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5402esac
5403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compile") 2>conftest.er1
212380e3 5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5410 (exit $ac_status); } && {
5411 test -z "$ac_c_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest.$ac_objext; then
212380e3 5414 ac_hi=-1 ac_mid=-1
5415 while :; do
5416 cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422$ac_includes_default
631ef239 5423 typedef short ac__type_sizeof_;
212380e3 5424int
5425main ()
5426{
631ef239 5427static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 5428test_array [0] = 0
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext
631ef239 5435if { (ac_try="$ac_compile"
5436case "(($ac_try" in
5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438 *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441 (eval "$ac_compile") 2>conftest.er1
212380e3 5442 ac_status=$?
5443 grep -v '^ *+' conftest.er1 >conftest.err
5444 rm -f conftest.er1
5445 cat conftest.err >&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5447 (exit $ac_status); } && {
5448 test -z "$ac_c_werror_flag" ||
5449 test ! -s conftest.err
5450 } && test -s conftest.$ac_objext; then
212380e3 5451 ac_lo=$ac_mid; break
5452else
5453 echo "$as_me: failed program was:" >&5
5454sed 's/^/| /' conftest.$ac_ext >&5
5455
631ef239 5456 ac_hi=`expr '(' $ac_mid ')' - 1`
5457 if test $ac_mid -le $ac_hi; then
5458 ac_lo= ac_hi=
5459 break
5460 fi
5461 ac_mid=`expr 2 '*' $ac_mid`
212380e3 5462fi
631ef239 5463
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5465 done
5466else
5467 echo "$as_me: failed program was:" >&5
5468sed 's/^/| /' conftest.$ac_ext >&5
5469
631ef239 5470 ac_lo= ac_hi=
212380e3 5471fi
631ef239 5472
5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5474fi
631ef239 5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5477# Binary search between lo and hi bounds.
5478while test "x$ac_lo" != "x$ac_hi"; do
5479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5480 cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h. */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h. */
5486$ac_includes_default
631ef239 5487 typedef short ac__type_sizeof_;
212380e3 5488int
5489main ()
5490{
631ef239 5491static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5492test_array [0] = 0
5493
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498rm -f conftest.$ac_objext
631ef239 5499if { (ac_try="$ac_compile"
5500case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
5504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
212380e3 5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
212380e3 5515 ac_hi=$ac_mid
5516else
5517 echo "$as_me: failed program was:" >&5
5518sed 's/^/| /' conftest.$ac_ext >&5
5519
631ef239 5520 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 5521fi
631ef239 5522
5523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5524done
5525case $ac_lo in
5526?*) ac_cv_sizeof_short=$ac_lo;;
631ef239 5527'') if test "$ac_cv_type_short" = yes; then
5528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
212380e3 5529See \`config.log' for more details." >&5
631ef239 5530echo "$as_me: error: cannot compute sizeof (short)
212380e3 5531See \`config.log' for more details." >&2;}
631ef239 5532 { (exit 77); exit 77; }; }
5533 else
5534 ac_cv_sizeof_short=0
5535 fi ;;
212380e3 5536esac
212380e3 5537else
5538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
5544$ac_includes_default
631ef239 5545 typedef short ac__type_sizeof_;
5546static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5547static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 5548#include <stdio.h>
5549#include <stdlib.h>
5550int
5551main ()
5552{
5553
5554 FILE *f = fopen ("conftest.val", "w");
5555 if (! f)
631ef239 5556 return 1;
5557 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 5558 {
631ef239 5559 long int i = longval ();
5560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5561 return 1;
212380e3 5562 fprintf (f, "%ld\n", i);
5563 }
5564 else
5565 {
631ef239 5566 unsigned long int i = ulongval ();
5567 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5568 return 1;
212380e3 5569 fprintf (f, "%lu\n", i);
5570 }
631ef239 5571 return ferror (f) || fclose (f) != 0;
212380e3 5572
5573 ;
5574 return 0;
5575}
5576_ACEOF
5577rm -f conftest$ac_exeext
631ef239 5578if { (ac_try="$ac_link"
5579case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_link") 2>&5
212380e3 5585 ac_status=$?
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 5588 { (case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591esac
5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_try") 2>&5
212380e3 5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); }; }; then
5597 ac_cv_sizeof_short=`cat conftest.val`
5598else
5599 echo "$as_me: program exited with status $ac_status" >&5
5600echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603( exit $ac_status )
631ef239 5604if test "$ac_cv_type_short" = yes; then
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
212380e3 5606See \`config.log' for more details." >&5
631ef239 5607echo "$as_me: error: cannot compute sizeof (short)
212380e3 5608See \`config.log' for more details." >&2;}
631ef239 5609 { (exit 77); exit 77; }; }
5610 else
5611 ac_cv_sizeof_short=0
5612 fi
212380e3 5613fi
631ef239 5614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 5615fi
5616rm -f conftest.val
212380e3 5617fi
631ef239 5618{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5619echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5620
5621
5622
212380e3 5623cat >>confdefs.h <<_ACEOF
5624#define SIZEOF_SHORT $ac_cv_sizeof_short
5625_ACEOF
5626
5627
631ef239 5628{ echo "$as_me:$LINENO: checking for int" >&5
5629echo $ECHO_N "checking for int... $ECHO_C" >&6; }
212380e3 5630if test "${ac_cv_type_int+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633 cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h. */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h. */
5639$ac_includes_default
631ef239 5640typedef int ac__type_new_;
212380e3 5641int
5642main ()
5643{
631ef239 5644if ((ac__type_new_ *) 0)
212380e3 5645 return 0;
631ef239 5646if (sizeof (ac__type_new_))
212380e3 5647 return 0;
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
631ef239 5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657esac
5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
212380e3 5660 ac_status=$?
5661 grep -v '^ *+' conftest.er1 >conftest.err
5662 rm -f conftest.er1
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.$ac_objext; then
212380e3 5669 ac_cv_type_int=yes
5670else
5671 echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
631ef239 5674 ac_cv_type_int=no
212380e3 5675fi
631ef239 5676
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5678fi
631ef239 5679{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5680echo "${ECHO_T}$ac_cv_type_int" >&6; }
212380e3 5681
631ef239 5682# The cast to long int works around a bug in the HP C Compiler
5683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5685# This bug is HP SR number 8606223364.
5686{ echo "$as_me:$LINENO: checking size of int" >&5
5687echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
212380e3 5688if test "${ac_cv_sizeof_int+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
212380e3 5691 if test "$cross_compiling" = yes; then
5692 # Depending upon the size, compute the lo and hi bounds.
5693cat >conftest.$ac_ext <<_ACEOF
5694/* confdefs.h. */
5695_ACEOF
5696cat confdefs.h >>conftest.$ac_ext
5697cat >>conftest.$ac_ext <<_ACEOF
5698/* end confdefs.h. */
5699$ac_includes_default
631ef239 5700 typedef int ac__type_sizeof_;
212380e3 5701int
5702main ()
5703{
631ef239 5704static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 5705test_array [0] = 0
5706
5707 ;
5708 return 0;
5709}
5710_ACEOF
5711rm -f conftest.$ac_objext
631ef239 5712if { (ac_try="$ac_compile"
5713case "(($ac_try" in
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5716esac
5717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_compile") 2>conftest.er1
212380e3 5719 ac_status=$?
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5724 (exit $ac_status); } && {
5725 test -z "$ac_c_werror_flag" ||
5726 test ! -s conftest.err
5727 } && test -s conftest.$ac_objext; then
212380e3 5728 ac_lo=0 ac_mid=0
5729 while :; do
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736$ac_includes_default
631ef239 5737 typedef int ac__type_sizeof_;
212380e3 5738int
5739main ()
5740{
631ef239 5741static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5742test_array [0] = 0
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
631ef239 5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
212380e3 5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
212380e3 5765 ac_hi=$ac_mid; break
5766else
5767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
631ef239 5770 ac_lo=`expr $ac_mid + 1`
5771 if test $ac_lo -le $ac_mid; then
5772 ac_lo= ac_hi=
5773 break
5774 fi
5775 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 5776fi
631ef239 5777
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5779 done
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
631ef239 5784 cat >conftest.$ac_ext <<_ACEOF
212380e3 5785/* confdefs.h. */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
5789/* end confdefs.h. */
5790$ac_includes_default
631ef239 5791 typedef int ac__type_sizeof_;
212380e3 5792int
5793main ()
5794{
631ef239 5795static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 5796test_array [0] = 0
5797
5798 ;
5799 return 0;
5800}
5801_ACEOF
5802rm -f conftest.$ac_objext
631ef239 5803if { (ac_try="$ac_compile"
5804case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807esac
5808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
212380e3 5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
212380e3 5819 ac_hi=-1 ac_mid=-1
5820 while :; do
5821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827$ac_includes_default
631ef239 5828 typedef int ac__type_sizeof_;
212380e3 5829int
5830main ()
5831{
631ef239 5832static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 5833test_array [0] = 0
5834
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
631ef239 5840if { (ac_try="$ac_compile"
5841case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
212380e3 5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
212380e3 5856 ac_lo=$ac_mid; break
5857else
5858 echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
631ef239 5861 ac_hi=`expr '(' $ac_mid ')' - 1`
5862 if test $ac_mid -le $ac_hi; then
5863 ac_lo= ac_hi=
5864 break
5865 fi
5866 ac_mid=`expr 2 '*' $ac_mid`
212380e3 5867fi
631ef239 5868
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5870 done
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
631ef239 5875 ac_lo= ac_hi=
212380e3 5876fi
631ef239 5877
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5879fi
631ef239 5880
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5882# Binary search between lo and hi bounds.
5883while test "x$ac_lo" != "x$ac_hi"; do
5884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5885 cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891$ac_includes_default
631ef239 5892 typedef int ac__type_sizeof_;
212380e3 5893int
5894main ()
5895{
631ef239 5896static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5897test_array [0] = 0
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext
631ef239 5904if { (ac_try="$ac_compile"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
212380e3 5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
212380e3 5920 ac_hi=$ac_mid
5921else
5922 echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
631ef239 5925 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 5926fi
631ef239 5927
5928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5929done
5930case $ac_lo in
5931?*) ac_cv_sizeof_int=$ac_lo;;
631ef239 5932'') if test "$ac_cv_type_int" = yes; then
5933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
212380e3 5934See \`config.log' for more details." >&5
631ef239 5935echo "$as_me: error: cannot compute sizeof (int)
212380e3 5936See \`config.log' for more details." >&2;}
631ef239 5937 { (exit 77); exit 77; }; }
5938 else
5939 ac_cv_sizeof_int=0
5940 fi ;;
212380e3 5941esac
212380e3 5942else
5943 cat >conftest.$ac_ext <<_ACEOF
5944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
5949$ac_includes_default
631ef239 5950 typedef int ac__type_sizeof_;
5951static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5952static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 5953#include <stdio.h>
5954#include <stdlib.h>
5955int
5956main ()
5957{
5958
5959 FILE *f = fopen ("conftest.val", "w");
5960 if (! f)
631ef239 5961 return 1;
5962 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 5963 {
631ef239 5964 long int i = longval ();
5965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5966 return 1;
212380e3 5967 fprintf (f, "%ld\n", i);
5968 }
5969 else
5970 {
631ef239 5971 unsigned long int i = ulongval ();
5972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5973 return 1;
212380e3 5974 fprintf (f, "%lu\n", i);
5975 }
631ef239 5976 return ferror (f) || fclose (f) != 0;
212380e3 5977
5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest$ac_exeext
631ef239 5983if { (ac_try="$ac_link"
5984case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>&5
212380e3 5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
212380e3 5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_cv_sizeof_int=`cat conftest.val`
6003else
6004 echo "$as_me: program exited with status $ac_status" >&5
6005echo "$as_me: failed program was:" >&5
6006sed 's/^/| /' conftest.$ac_ext >&5
6007
6008( exit $ac_status )
631ef239 6009if test "$ac_cv_type_int" = yes; then
6010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
212380e3 6011See \`config.log' for more details." >&5
631ef239 6012echo "$as_me: error: cannot compute sizeof (int)
212380e3 6013See \`config.log' for more details." >&2;}
631ef239 6014 { (exit 77); exit 77; }; }
6015 else
6016 ac_cv_sizeof_int=0
6017 fi
212380e3 6018fi
631ef239 6019rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6020fi
6021rm -f conftest.val
212380e3 6022fi
631ef239 6023{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6024echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6025
6026
6027
212380e3 6028cat >>confdefs.h <<_ACEOF
6029#define SIZEOF_INT $ac_cv_sizeof_int
6030_ACEOF
6031
6032
631ef239 6033{ echo "$as_me:$LINENO: checking for long" >&5
6034echo $ECHO_N "checking for long... $ECHO_C" >&6; }
212380e3 6035if test "${ac_cv_type_long+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 cat >conftest.$ac_ext <<_ACEOF
6039/* confdefs.h. */
6040_ACEOF
6041cat confdefs.h >>conftest.$ac_ext
6042cat >>conftest.$ac_ext <<_ACEOF
6043/* end confdefs.h. */
6044$ac_includes_default
631ef239 6045typedef long ac__type_new_;
212380e3 6046int
6047main ()
6048{
631ef239 6049if ((ac__type_new_ *) 0)
212380e3 6050 return 0;
631ef239 6051if (sizeof (ac__type_new_))
212380e3 6052 return 0;
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057rm -f conftest.$ac_objext
631ef239 6058if { (ac_try="$ac_compile"
6059case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_compile") 2>conftest.er1
212380e3 6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest.$ac_objext; then
212380e3 6074 ac_cv_type_long=yes
6075else
6076 echo "$as_me: failed program was:" >&5
6077sed 's/^/| /' conftest.$ac_ext >&5
6078
631ef239 6079 ac_cv_type_long=no
212380e3 6080fi
631ef239 6081
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6083fi
631ef239 6084{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6085echo "${ECHO_T}$ac_cv_type_long" >&6; }
212380e3 6086
631ef239 6087# The cast to long int works around a bug in the HP C Compiler
6088# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6089# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6090# This bug is HP SR number 8606223364.
6091{ echo "$as_me:$LINENO: checking size of long" >&5
6092echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
212380e3 6093if test "${ac_cv_sizeof_long+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
212380e3 6096 if test "$cross_compiling" = yes; then
6097 # Depending upon the size, compute the lo and hi bounds.
6098cat >conftest.$ac_ext <<_ACEOF
6099/* confdefs.h. */
6100_ACEOF
6101cat confdefs.h >>conftest.$ac_ext
6102cat >>conftest.$ac_ext <<_ACEOF
6103/* end confdefs.h. */
6104$ac_includes_default
631ef239 6105 typedef long ac__type_sizeof_;
212380e3 6106int
6107main ()
6108{
631ef239 6109static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 6110test_array [0] = 0
6111
6112 ;
6113 return 0;
6114}
6115_ACEOF
6116rm -f conftest.$ac_objext
631ef239 6117if { (ac_try="$ac_compile"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6123 (eval "$ac_compile") 2>conftest.er1
212380e3 6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
212380e3 6133 ac_lo=0 ac_mid=0
6134 while :; do
6135 cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
6140/* end confdefs.h. */
6141$ac_includes_default
631ef239 6142 typedef long ac__type_sizeof_;
212380e3 6143int
6144main ()
6145{
631ef239 6146static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6147test_array [0] = 0
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext
631ef239 6154if { (ac_try="$ac_compile"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
212380e3 6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.$ac_objext; then
212380e3 6170 ac_hi=$ac_mid; break
6171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
631ef239 6175 ac_lo=`expr $ac_mid + 1`
6176 if test $ac_lo -le $ac_mid; then
6177 ac_lo= ac_hi=
6178 break
6179 fi
6180 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 6181fi
631ef239 6182
6183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6184 done
6185else
6186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
631ef239 6189 cat >conftest.$ac_ext <<_ACEOF
212380e3 6190/* confdefs.h. */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h. */
6195$ac_includes_default
631ef239 6196 typedef long ac__type_sizeof_;
212380e3 6197int
6198main ()
6199{
631ef239 6200static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 6201test_array [0] = 0
6202
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext
631ef239 6208if { (ac_try="$ac_compile"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
212380e3 6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest.$ac_objext; then
212380e3 6224 ac_hi=-1 ac_mid=-1
6225 while :; do
6226 cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h. */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h. */
6232$ac_includes_default
631ef239 6233 typedef long ac__type_sizeof_;
212380e3 6234int
6235main ()
6236{
631ef239 6237static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 6238test_array [0] = 0
6239
6240 ;
6241 return 0;
6242}
6243_ACEOF
6244rm -f conftest.$ac_objext
631ef239 6245if { (ac_try="$ac_compile"
6246case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
212380e3 6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
212380e3 6261 ac_lo=$ac_mid; break
6262else
6263 echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
631ef239 6266 ac_hi=`expr '(' $ac_mid ')' - 1`
6267 if test $ac_mid -le $ac_hi; then
6268 ac_lo= ac_hi=
6269 break
6270 fi
6271 ac_mid=`expr 2 '*' $ac_mid`
212380e3 6272fi
631ef239 6273
6274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6275 done
6276else
6277 echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
631ef239 6280 ac_lo= ac_hi=
212380e3 6281fi
631ef239 6282
6283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6284fi
631ef239 6285
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6287# Binary search between lo and hi bounds.
6288while test "x$ac_lo" != "x$ac_hi"; do
6289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6290 cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h. */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h. */
6296$ac_includes_default
631ef239 6297 typedef long ac__type_sizeof_;
212380e3 6298int
6299main ()
6300{
631ef239 6301static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6302test_array [0] = 0
6303
6304 ;
6305 return 0;
6306}
6307_ACEOF
6308rm -f conftest.$ac_objext
631ef239 6309if { (ac_try="$ac_compile"
6310case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
212380e3 6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.$ac_objext; then
212380e3 6325 ac_hi=$ac_mid
6326else
6327 echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
631ef239 6330 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 6331fi
631ef239 6332
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6334done
6335case $ac_lo in
6336?*) ac_cv_sizeof_long=$ac_lo;;
631ef239 6337'') if test "$ac_cv_type_long" = yes; then
6338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
212380e3 6339See \`config.log' for more details." >&5
631ef239 6340echo "$as_me: error: cannot compute sizeof (long)
212380e3 6341See \`config.log' for more details." >&2;}
631ef239 6342 { (exit 77); exit 77; }; }
6343 else
6344 ac_cv_sizeof_long=0
6345 fi ;;
212380e3 6346esac
212380e3 6347else
6348 cat >conftest.$ac_ext <<_ACEOF
6349/* confdefs.h. */
6350_ACEOF
6351cat confdefs.h >>conftest.$ac_ext
6352cat >>conftest.$ac_ext <<_ACEOF
6353/* end confdefs.h. */
6354$ac_includes_default
631ef239 6355 typedef long ac__type_sizeof_;
6356static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6357static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 6358#include <stdio.h>
6359#include <stdlib.h>
6360int
6361main ()
6362{
6363
6364 FILE *f = fopen ("conftest.val", "w");
6365 if (! f)
631ef239 6366 return 1;
6367 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 6368 {
631ef239 6369 long int i = longval ();
6370 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6371 return 1;
212380e3 6372 fprintf (f, "%ld\n", i);
6373 }
6374 else
6375 {
631ef239 6376 unsigned long int i = ulongval ();
6377 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6378 return 1;
212380e3 6379 fprintf (f, "%lu\n", i);
6380 }
631ef239 6381 return ferror (f) || fclose (f) != 0;
212380e3 6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
6387rm -f conftest$ac_exeext
631ef239 6388if { (ac_try="$ac_link"
6389case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392esac
6393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_link") 2>&5
212380e3 6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 6398 { (case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401esac
6402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6403 (eval "$ac_try") 2>&5
212380e3 6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_cv_sizeof_long=`cat conftest.val`
6408else
6409 echo "$as_me: program exited with status $ac_status" >&5
6410echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413( exit $ac_status )
631ef239 6414if test "$ac_cv_type_long" = yes; then
6415 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
212380e3 6416See \`config.log' for more details." >&5
631ef239 6417echo "$as_me: error: cannot compute sizeof (long)
212380e3 6418See \`config.log' for more details." >&2;}
631ef239 6419 { (exit 77); exit 77; }; }
6420 else
6421 ac_cv_sizeof_long=0
6422 fi
212380e3 6423fi
631ef239 6424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6425fi
6426rm -f conftest.val
212380e3 6427fi
631ef239 6428{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6429echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6430
6431
6432
212380e3 6433cat >>confdefs.h <<_ACEOF
6434#define SIZEOF_LONG $ac_cv_sizeof_long
6435_ACEOF
6436
6437
631ef239 6438{ echo "$as_me:$LINENO: checking for long long" >&5
6439echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
212380e3 6440if test "${ac_cv_type_long_long+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442else
6443 cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
6449$ac_includes_default
631ef239 6450typedef long long ac__type_new_;
212380e3 6451int
6452main ()
6453{
631ef239 6454if ((ac__type_new_ *) 0)
212380e3 6455 return 0;
631ef239 6456if (sizeof (ac__type_new_))
212380e3 6457 return 0;
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462rm -f conftest.$ac_objext
631ef239 6463if { (ac_try="$ac_compile"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
212380e3 6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
212380e3 6479 ac_cv_type_long_long=yes
6480else
6481 echo "$as_me: failed program was:" >&5
6482sed 's/^/| /' conftest.$ac_ext >&5
6483
631ef239 6484 ac_cv_type_long_long=no
212380e3 6485fi
631ef239 6486
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6488fi
631ef239 6489{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6490echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
212380e3 6491
631ef239 6492# The cast to long int works around a bug in the HP C Compiler
6493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6495# This bug is HP SR number 8606223364.
6496{ echo "$as_me:$LINENO: checking size of long long" >&5
6497echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
212380e3 6498if test "${ac_cv_sizeof_long_long+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500else
212380e3 6501 if test "$cross_compiling" = yes; then
6502 # Depending upon the size, compute the lo and hi bounds.
6503cat >conftest.$ac_ext <<_ACEOF
6504/* confdefs.h. */
6505_ACEOF
6506cat confdefs.h >>conftest.$ac_ext
6507cat >>conftest.$ac_ext <<_ACEOF
6508/* end confdefs.h. */
6509$ac_includes_default
631ef239 6510 typedef long long ac__type_sizeof_;
212380e3 6511int
6512main ()
6513{
631ef239 6514static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 6515test_array [0] = 0
6516
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest.$ac_objext
631ef239 6522if { (ac_try="$ac_compile"
6523case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_compile") 2>conftest.er1
212380e3 6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
212380e3 6538 ac_lo=0 ac_mid=0
6539 while :; do
6540 cat >conftest.$ac_ext <<_ACEOF
6541/* confdefs.h. */
6542_ACEOF
6543cat confdefs.h >>conftest.$ac_ext
6544cat >>conftest.$ac_ext <<_ACEOF
6545/* end confdefs.h. */
6546$ac_includes_default
631ef239 6547 typedef long long ac__type_sizeof_;
212380e3 6548int
6549main ()
6550{
631ef239 6551static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6552test_array [0] = 0
6553
6554 ;
6555 return 0;
6556}
6557_ACEOF
6558rm -f conftest.$ac_objext
631ef239 6559if { (ac_try="$ac_compile"
6560case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563esac
6564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_compile") 2>conftest.er1
212380e3 6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6571 (exit $ac_status); } && {
6572 test -z "$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.$ac_objext; then
212380e3 6575 ac_hi=$ac_mid; break
6576else
6577 echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
631ef239 6580 ac_lo=`expr $ac_mid + 1`
6581 if test $ac_lo -le $ac_mid; then
6582 ac_lo= ac_hi=
6583 break
6584 fi
6585 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 6586fi
631ef239 6587
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6589 done
6590else
6591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
6593
631ef239 6594 cat >conftest.$ac_ext <<_ACEOF
212380e3 6595/* confdefs.h. */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h. */
6600$ac_includes_default
631ef239 6601 typedef long long ac__type_sizeof_;
212380e3 6602int
6603main ()
6604{
631ef239 6605static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 6606test_array [0] = 0
6607
6608 ;
6609 return 0;
6610}
6611_ACEOF
6612rm -f conftest.$ac_objext
631ef239 6613if { (ac_try="$ac_compile"
6614case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617esac
6618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_compile") 2>conftest.er1
212380e3 6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6625 (exit $ac_status); } && {
6626 test -z "$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.$ac_objext; then
212380e3 6629 ac_hi=-1 ac_mid=-1
6630 while :; do
6631 cat >conftest.$ac_ext <<_ACEOF
6632/* confdefs.h. */
6633_ACEOF
6634cat confdefs.h >>conftest.$ac_ext
6635cat >>conftest.$ac_ext <<_ACEOF
6636/* end confdefs.h. */
6637$ac_includes_default
631ef239 6638 typedef long long ac__type_sizeof_;
212380e3 6639int
6640main ()
6641{
631ef239 6642static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 6643test_array [0] = 0
6644
6645 ;
6646 return 0;
6647}
6648_ACEOF
6649rm -f conftest.$ac_objext
631ef239 6650if { (ac_try="$ac_compile"
6651case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654esac
6655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compile") 2>conftest.er1
212380e3 6657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest.$ac_objext; then
212380e3 6666 ac_lo=$ac_mid; break
6667else
6668 echo "$as_me: failed program was:" >&5
6669sed 's/^/| /' conftest.$ac_ext >&5
6670
631ef239 6671 ac_hi=`expr '(' $ac_mid ')' - 1`
6672 if test $ac_mid -le $ac_hi; then
6673 ac_lo= ac_hi=
6674 break
6675 fi
6676 ac_mid=`expr 2 '*' $ac_mid`
212380e3 6677fi
631ef239 6678
6679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6680 done
6681else
6682 echo "$as_me: failed program was:" >&5
6683sed 's/^/| /' conftest.$ac_ext >&5
6684
631ef239 6685 ac_lo= ac_hi=
212380e3 6686fi
631ef239 6687
6688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6689fi
631ef239 6690
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6692# Binary search between lo and hi bounds.
6693while test "x$ac_lo" != "x$ac_hi"; do
6694 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6695 cat >conftest.$ac_ext <<_ACEOF
6696/* confdefs.h. */
6697_ACEOF
6698cat confdefs.h >>conftest.$ac_ext
6699cat >>conftest.$ac_ext <<_ACEOF
6700/* end confdefs.h. */
6701$ac_includes_default
631ef239 6702 typedef long long ac__type_sizeof_;
212380e3 6703int
6704main ()
6705{
631ef239 6706static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6707test_array [0] = 0
6708
6709 ;
6710 return 0;
6711}
6712_ACEOF
6713rm -f conftest.$ac_objext
631ef239 6714if { (ac_try="$ac_compile"
6715case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718esac
6719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
212380e3 6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
212380e3 6730 ac_hi=$ac_mid
6731else
6732 echo "$as_me: failed program was:" >&5
6733sed 's/^/| /' conftest.$ac_ext >&5
6734
631ef239 6735 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 6736fi
631ef239 6737
6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6739done
6740case $ac_lo in
6741?*) ac_cv_sizeof_long_long=$ac_lo;;
631ef239 6742'') if test "$ac_cv_type_long_long" = yes; then
6743 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
212380e3 6744See \`config.log' for more details." >&5
631ef239 6745echo "$as_me: error: cannot compute sizeof (long long)
212380e3 6746See \`config.log' for more details." >&2;}
631ef239 6747 { (exit 77); exit 77; }; }
6748 else
6749 ac_cv_sizeof_long_long=0
6750 fi ;;
212380e3 6751esac
212380e3 6752else
6753 cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759$ac_includes_default
631ef239 6760 typedef long long ac__type_sizeof_;
6761static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6762static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 6763#include <stdio.h>
6764#include <stdlib.h>
6765int
6766main ()
6767{
6768
6769 FILE *f = fopen ("conftest.val", "w");
6770 if (! f)
631ef239 6771 return 1;
6772 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 6773 {
631ef239 6774 long int i = longval ();
6775 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6776 return 1;
212380e3 6777 fprintf (f, "%ld\n", i);
6778 }
6779 else
6780 {
631ef239 6781 unsigned long int i = ulongval ();
6782 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6783 return 1;
212380e3 6784 fprintf (f, "%lu\n", i);
6785 }
631ef239 6786 return ferror (f) || fclose (f) != 0;
212380e3 6787
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792rm -f conftest$ac_exeext
631ef239 6793if { (ac_try="$ac_link"
6794case "(($ac_try" in
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6797esac
6798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_link") 2>&5
212380e3 6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 6803 { (case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806esac
6807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_try") 2>&5
212380e3 6809 ac_status=$?
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_sizeof_long_long=`cat conftest.val`
6813else
6814 echo "$as_me: program exited with status $ac_status" >&5
6815echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818( exit $ac_status )
631ef239 6819if test "$ac_cv_type_long_long" = yes; then
6820 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
212380e3 6821See \`config.log' for more details." >&5
631ef239 6822echo "$as_me: error: cannot compute sizeof (long long)
212380e3 6823See \`config.log' for more details." >&2;}
631ef239 6824 { (exit 77); exit 77; }; }
6825 else
6826 ac_cv_sizeof_long_long=0
6827 fi
212380e3 6828fi
631ef239 6829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6830fi
6831rm -f conftest.val
212380e3 6832fi
631ef239 6833{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6834echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6835
6836
6837
212380e3 6838cat >>confdefs.h <<_ACEOF
6839#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6840_ACEOF
6841
6842
6843
6844
631ef239 6845{ echo "$as_me:$LINENO: checking the system's memory page size" >&5
6846echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; }
212380e3 6847pagesize="no"
6848if test "$cross_compiling" = yes; then
6849 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6850See \`config.log' for more details." >&5
6851echo "$as_me: error: cannot run test program while cross compiling
6852See \`config.log' for more details." >&2;}
6853 { (exit 1); exit 1; }; }
6854else
6855 cat >conftest.$ac_ext <<_ACEOF
6856/* confdefs.h. */
6857_ACEOF
6858cat confdefs.h >>conftest.$ac_ext
6859cat >>conftest.$ac_ext <<_ACEOF
6860/* end confdefs.h. */
6861
6862#include <stdio.h>
6863#if HAVE_UNISTD_H
6864# include <unistd.h>
6865#endif
6866
6867int main(void) {
6868 FILE *fp = fopen("conftest.malloc", "w");
6869
6870 if (fp != NULL) {
6871 fprintf(fp, "%d\n", getpagesize());
6872 fclose(fp);
6873 } else
6874 exit(1);
6875 exit(0);
6876}
6877_ACEOF
6878rm -f conftest$ac_exeext
631ef239 6879if { (ac_try="$ac_link"
6880case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6883esac
6884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_link") 2>&5
212380e3 6886 ac_status=$?
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 6889 { (case "(($ac_try" in
6890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891 *) ac_try_echo=$ac_try;;
6892esac
6893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894 (eval "$ac_try") 2>&5
212380e3 6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; }; then
6898
6899if test -f "conftest.malloc" ; then
6900 pagesize=`cat conftest.malloc`
6901fi
6902
6903else
6904 echo "$as_me: program exited with status $ac_status" >&5
6905echo "$as_me: failed program was:" >&5
6906sed 's/^/| /' conftest.$ac_ext >&5
6907
6908fi
631ef239 6909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6910fi
631ef239 6911
6912
212380e3 6913if test "$pagesize" != "no" ; then
631ef239 6914 { echo "$as_me:$LINENO: result: $pagesize" >&5
6915echo "${ECHO_T}$pagesize" >&6; }
212380e3 6916else
6917 if test "$ac_cv_sizeof_int" = "4" ; then
6918 pagesize=4096
6919 else
6920 pagesize=8192
6921 fi
631ef239 6922 { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6923echo "${ECHO_T}$pagesize (guessing)" >&6; }
212380e3 6924fi
6925
6926cat >>confdefs.h <<_ACEOF
6927#define MALLOC_PAGESIZE $pagesize
6928_ACEOF
6929
6930
6931
631ef239 6932{ echo "$as_me:$LINENO: checking for library containing socket" >&5
6933echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
212380e3 6934if test "${ac_cv_search_socket+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 ac_func_search_save_LIBS=$LIBS
212380e3 6938cat >conftest.$ac_ext <<_ACEOF
6939/* confdefs.h. */
6940_ACEOF
6941cat confdefs.h >>conftest.$ac_ext
6942cat >>conftest.$ac_ext <<_ACEOF
6943/* end confdefs.h. */
6944
631ef239 6945/* Override any GCC internal prototype to avoid an error.
6946 Use char because int might match the return type of a GCC
6947 builtin and then its argument prototype would still apply. */
212380e3 6948#ifdef __cplusplus
6949extern "C"
6950#endif
212380e3 6951char socket ();
6952int
6953main ()
6954{
631ef239 6955return socket ();
212380e3 6956 ;
6957 return 0;
6958}
6959_ACEOF
631ef239 6960for ac_lib in '' socket; do
6961 if test -z "$ac_lib"; then
6962 ac_res="none required"
6963 else
6964 ac_res=-l$ac_lib
6965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6966 fi
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968if { (ac_try="$ac_link"
6969case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6972esac
6973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_link") 2>conftest.er1
212380e3 6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6980 (exit $ac_status); } && {
6981 test -z "$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest$ac_exeext &&
6984 $as_test_x conftest$ac_exeext; then
6985 ac_cv_search_socket=$ac_res
212380e3 6986else
6987 echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
631ef239 6990
212380e3 6991fi
631ef239 6992
6993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6994 conftest$ac_exeext
6995 if test "${ac_cv_search_socket+set}" = set; then
6996 break
6997fi
6998done
6999if test "${ac_cv_search_socket+set}" = set; then
7000 :
7001else
7002 ac_cv_search_socket=no
7003fi
7004rm conftest.$ac_ext
7005LIBS=$ac_func_search_save_LIBS
7006fi
7007{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7008echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7009ac_res=$ac_cv_search_socket
7010if test "$ac_res" != no; then
7011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7012
7013else
7014 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
7015echo "$as_me: error: You have no socket()! Aborting." >&2;}
7016 { (exit 1); exit 1; }; }
7017fi
7018
7019
7020if test x"$SUN" = xyes; then
7021 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7022echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7023if test "${ac_cv_search_inet_ntoa+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 ac_func_search_save_LIBS=$LIBS
7027cat >conftest.$ac_ext <<_ACEOF
212380e3 7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033
631ef239 7034/* Override any GCC internal prototype to avoid an error.
7035 Use char because int might match the return type of a GCC
7036 builtin and then its argument prototype would still apply. */
212380e3 7037#ifdef __cplusplus
7038extern "C"
7039#endif
631ef239 7040char inet_ntoa ();
212380e3 7041int
7042main ()
7043{
631ef239 7044return inet_ntoa ();
212380e3 7045 ;
7046 return 0;
7047}
7048_ACEOF
631ef239 7049for ac_lib in '' nsl; do
7050 if test -z "$ac_lib"; then
7051 ac_res="none required"
7052 else
7053 ac_res=-l$ac_lib
7054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7055 fi
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057if { (ac_try="$ac_link"
7058case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061esac
7062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_link") 2>conftest.er1
212380e3 7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest$ac_exeext &&
7073 $as_test_x conftest$ac_exeext; then
7074 ac_cv_search_inet_ntoa=$ac_res
212380e3 7075else
7076 echo "$as_me: failed program was:" >&5
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
631ef239 7079
212380e3 7080fi
631ef239 7081
7082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7083 conftest$ac_exeext
7084 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7085 break
7086fi
7087done
7088if test "${ac_cv_search_inet_ntoa+set}" = set; then
7089 :
7090else
7091 ac_cv_search_inet_ntoa=no
212380e3 7092fi
631ef239 7093rm conftest.$ac_ext
212380e3 7094LIBS=$ac_func_search_save_LIBS
7095fi
631ef239 7096{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7097echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7098ac_res=$ac_cv_search_inet_ntoa
7099if test "$ac_res" != no; then
7100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 7101
7102else
631ef239 7103 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7104echo "$as_me: error: libnsl not found! Aborting." >&2;}
212380e3 7105 { (exit 1); exit 1; }; }
7106fi
7107
631ef239 7108fi
212380e3 7109
631ef239 7110{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7111echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7112if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
212380e3 7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
631ef239 7115 cat >conftest.$ac_ext <<_ACEOF
212380e3 7116/* confdefs.h. */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h. */
631ef239 7121#include <sys/types.h>
7122#include <sys/socket.h>
7123
212380e3 7124
212380e3 7125int
7126main ()
7127{
631ef239 7128static struct sockaddr ac_aggr;
7129if (ac_aggr.sa_len)
7130return 0;
212380e3 7131 ;
7132 return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext
631ef239 7136if { (ac_try="$ac_compile"
7137case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140esac
7141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
212380e3 7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
212380e3 7152 ac_cv_member_struct_sockaddr_sa_len=yes
7153else
7154 echo "$as_me: failed program was:" >&5
7155sed 's/^/| /' conftest.$ac_ext >&5
7156
631ef239 7157 cat >conftest.$ac_ext <<_ACEOF
212380e3 7158/* confdefs.h. */
7159_ACEOF
7160cat confdefs.h >>conftest.$ac_ext
7161cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h. */
7163#include <sys/types.h>
7164#include <sys/socket.h>
7165
7166
7167int
7168main ()
7169{
7170static struct sockaddr ac_aggr;
7171if (sizeof ac_aggr.sa_len)
7172return 0;
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177rm -f conftest.$ac_objext
631ef239 7178if { (ac_try="$ac_compile"
7179case "(($ac_try" in
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7182esac
7183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
212380e3 7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
212380e3 7194 ac_cv_member_struct_sockaddr_sa_len=yes
7195else
7196 echo "$as_me: failed program was:" >&5
7197sed 's/^/| /' conftest.$ac_ext >&5
7198
631ef239 7199 ac_cv_member_struct_sockaddr_sa_len=no
212380e3 7200fi
631ef239 7201
7202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7203fi
631ef239 7204
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7206fi
631ef239 7207{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7208echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
212380e3 7209if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7210
7211cat >>confdefs.h <<\_ACEOF
7212#define SOCKADDR_IN_HAS_LEN 1
7213_ACEOF
7214
7215fi
7216
7217
631ef239 7218{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7219echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
212380e3 7220if test "${ac_cv_type_socklen_t+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
7229#include <sys/types.h>
7230#include <sys/socket.h>
7231
631ef239 7232typedef socklen_t ac__type_new_;
212380e3 7233int
7234main ()
7235{
631ef239 7236if ((ac__type_new_ *) 0)
212380e3 7237 return 0;
631ef239 7238if (sizeof (ac__type_new_))
212380e3 7239 return 0;
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244rm -f conftest.$ac_objext
631ef239 7245if { (ac_try="$ac_compile"
7246case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249esac
7250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_compile") 2>conftest.er1
212380e3 7252 ac_status=$?
7253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest.$ac_objext; then
212380e3 7261 ac_cv_type_socklen_t=yes
7262else
7263 echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
631ef239 7266 ac_cv_type_socklen_t=no
212380e3 7267fi
631ef239 7268
7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7270fi
631ef239 7271{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7272echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
212380e3 7273if test $ac_cv_type_socklen_t = yes; then
7274 :
7275else
7276
7277cat >>confdefs.h <<\_ACEOF
7278#define socklen_t unsigned int
7279_ACEOF
7280
7281fi
7282
7283
631ef239 7284# Check whether --enable-ipv6 was given.
212380e3 7285if test "${enable_ipv6+set}" = set; then
631ef239 7286 enableval=$enable_ipv6; ipv6=$enableval
212380e3 7287else
7288 ipv6=no
631ef239 7289fi
7290
212380e3 7291
7292if test $ipv6 != yes; then
7293 have_v6="no"
7294else
631ef239 7295{ echo "$as_me:$LINENO: checking for core IPv6 support" >&5
7296echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
212380e3 7297
7298cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h. */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h. */
7304#define IN_AUTOCONF
7305 #include <sys/types.h>
7306 #include <sys/socket.h>
7307 #include <netinet/in.h>
7308int
7309main ()
7310{
7311struct sockaddr_in6 s;
7312 s.sin6_family = 0;
7313
7314 ;
7315 return 0;
7316}
7317_ACEOF
7318rm -f conftest.$ac_objext
631ef239 7319if { (ac_try="$ac_compile"
7320case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323esac
7324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
212380e3 7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
212380e3 7335
7336 if test "$CYGWIN" = "yes"; then
631ef239 7337 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7338echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
212380e3 7339 have_v6=no
7340 else
7341 have_v6=yes
7342
7343cat >>confdefs.h <<\_ACEOF
7344#define IPV6 1
7345_ACEOF
7346
631ef239 7347 { echo "$as_me:$LINENO: result: yes" >&5
7348echo "${ECHO_T}yes" >&6; }
7349 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7350echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
212380e3 7351 cat >conftest.$ac_ext <<_ACEOF
7352/* confdefs.h. */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h. */
7357#define IN_AUTOCONF
7358 #include <sys/types.h>
7359 #include <sys/socket.h>
7360 #include <netinet/in.h>
7361int
7362main ()
7363{
7364struct in6_addr a = in6addr_any;
7365
7366 ;
7367 return 0;
7368}
7369_ACEOF
7370rm -f conftest.$ac_objext
631ef239 7371if { (ac_try="$ac_compile"
7372case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_compile") 2>conftest.er1
212380e3 7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.$ac_objext; then
7387 { echo "$as_me:$LINENO: result: yes" >&5
7388echo "${ECHO_T}yes" >&6; }
212380e3 7389else
7390 echo "$as_me: failed program was:" >&5
7391sed 's/^/| /' conftest.$ac_ext >&5
7392
7393
631ef239 7394 { echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6; }
212380e3 7396
7397cat >>confdefs.h <<\_ACEOF
7398#define NO_IN6ADDR_ANY 1
7399_ACEOF
7400
7401 inet_misc=1
7402
7403
7404fi
631ef239 7405
7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7407 fi
7408
7409else
7410 echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
631ef239 7413 { echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6; }
212380e3 7415have_v6="no"
7416fi
631ef239 7417
7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7419fi
7420
631ef239 7421{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
7422echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
212380e3 7423if test "${ac_cv_search_crypt+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7425else
7426 ac_func_search_save_LIBS=$LIBS
212380e3 7427cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433
631ef239 7434/* Override any GCC internal prototype to avoid an error.
7435 Use char because int might match the return type of a GCC
7436 builtin and then its argument prototype would still apply. */
212380e3 7437#ifdef __cplusplus
7438extern "C"
7439#endif
212380e3 7440char crypt ();
7441int
7442main ()
7443{
631ef239 7444return crypt ();
212380e3 7445 ;
7446 return 0;
7447}
7448_ACEOF
631ef239 7449for ac_lib in '' crypt descrypt; do
7450 if test -z "$ac_lib"; then
7451 ac_res="none required"
7452 else
7453 ac_res=-l$ac_lib
7454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7455 fi
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457if { (ac_try="$ac_link"
7458case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461esac
7462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_link") 2>conftest.er1
212380e3 7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest$ac_exeext &&
7473 $as_test_x conftest$ac_exeext; then
7474 ac_cv_search_crypt=$ac_res
212380e3 7475else
7476 echo "$as_me: failed program was:" >&5
7477sed 's/^/| /' conftest.$ac_ext >&5
7478
212380e3 7479
631ef239 7480fi
212380e3 7481
631ef239 7482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7483 conftest$ac_exeext
7484 if test "${ac_cv_search_crypt+set}" = set; then
7485 break
212380e3 7486fi
631ef239 7487done
7488if test "${ac_cv_search_crypt+set}" = set; then
7489 :
7490else
7491 ac_cv_search_crypt=no
212380e3 7492fi
631ef239 7493rm conftest.$ac_ext
212380e3 7494LIBS=$ac_func_search_save_LIBS
7495fi
631ef239 7496{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7497echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7498ac_res=$ac_cv_search_crypt
7499if test "$ac_res" != no; then
7500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 7501
7502fi
7503
7504
7505CRYPT_LIB=$ac_cv_search_crypt
7506
7507if test "$CRYPT_LIB" = "none required"; then
7508 unset CRYPT_LIB
7509elif test "$CRYPT_LIB" = no; then
7510 unset CRYPT_LIB
7511fi
7512
7513
7514
7515if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7516 VICONF=viconf
7517 else
7518 VICONF=""
7519fi
7520
7521
7522
631ef239 7523{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7524echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
212380e3 7525if test "${gcc_cv_header_string+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528
7529 cat >conftest.$ac_ext <<_ACEOF
7530#include <string.h>
7531 #include <strings.h>
7532_ACEOF
7533rm -f conftest.$ac_objext
631ef239 7534if { (ac_try="$ac_compile"
7535case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538esac
7539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
212380e3 7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
212380e3 7550 gcc_cv_header_string=yes
7551else
7552 echo "$as_me: failed program was:" >&5
7553sed 's/^/| /' conftest.$ac_ext >&5
7554
631ef239 7555 gcc_cv_header_string=no
212380e3 7556fi
631ef239 7557
7558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7559
7560fi
631ef239 7561{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7562echo "${ECHO_T}$gcc_cv_header_string" >&6; }
212380e3 7563
7564if test "$gcc_cv_header_string" = "yes"; then
7565
7566cat >>confdefs.h <<\_ACEOF
7567#define STRING_WITH_STRINGS 1
7568_ACEOF
7569
7570fi
7571
631ef239 7572{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7573echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
212380e3 7574if test "${ac_cv_c_bigendian+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576else
7577 # See if sys/param.h defines the BYTE_ORDER macro.
7578cat >conftest.$ac_ext <<_ACEOF
7579/* confdefs.h. */
7580_ACEOF
7581cat confdefs.h >>conftest.$ac_ext
7582cat >>conftest.$ac_ext <<_ACEOF
7583/* end confdefs.h. */
7584#include <sys/types.h>
7585#include <sys/param.h>
7586
7587int
7588main ()
7589{
631ef239 7590#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7591 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
212380e3 7592 bogus endian macros
7593#endif
7594
7595 ;
7596 return 0;
7597}
7598_ACEOF
7599rm -f conftest.$ac_objext
631ef239 7600if { (ac_try="$ac_compile"
7601case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604esac
7605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_compile") 2>conftest.er1
212380e3 7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.$ac_objext; then
212380e3 7616 # It does; now see whether it defined to BIG_ENDIAN or not.
7617cat >conftest.$ac_ext <<_ACEOF
7618/* confdefs.h. */
7619_ACEOF
7620cat confdefs.h >>conftest.$ac_ext
7621cat >>conftest.$ac_ext <<_ACEOF
7622/* end confdefs.h. */
7623#include <sys/types.h>
7624#include <sys/param.h>
7625
7626int
7627main ()
7628{
7629#if BYTE_ORDER != BIG_ENDIAN
7630 not big endian
7631#endif
7632
7633 ;
7634 return 0;
7635}
7636_ACEOF
7637rm -f conftest.$ac_objext
631ef239 7638if { (ac_try="$ac_compile"
7639case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642esac
7643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
212380e3 7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest.$ac_objext; then
212380e3 7654 ac_cv_c_bigendian=yes
7655else
7656 echo "$as_me: failed program was:" >&5
7657sed 's/^/| /' conftest.$ac_ext >&5
7658
631ef239 7659 ac_cv_c_bigendian=no
212380e3 7660fi
631ef239 7661
7662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7663else
7664 echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
631ef239 7667 # It does not; compile a test program.
212380e3 7668if test "$cross_compiling" = yes; then
7669 # try to guess the endianness by grepping values into an object file
7670 ac_cv_c_bigendian=unknown
7671 cat >conftest.$ac_ext <<_ACEOF
7672/* confdefs.h. */
7673_ACEOF
7674cat confdefs.h >>conftest.$ac_ext
7675cat >>conftest.$ac_ext <<_ACEOF
7676/* end confdefs.h. */
631ef239 7677short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7678short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
212380e3 7679void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
631ef239 7680short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7681short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
212380e3 7682void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7683int
7684main ()
7685{
7686 _ascii (); _ebcdic ();
7687 ;
7688 return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext
631ef239 7692if { (ac_try="$ac_compile"
7693case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
212380e3 7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
212380e3 7708 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7709 ac_cv_c_bigendian=yes
7710fi
7711if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7712 if test "$ac_cv_c_bigendian" = unknown; then
7713 ac_cv_c_bigendian=no
7714 else
7715 # finding both strings is unlikely to happen, but who knows?
7716 ac_cv_c_bigendian=unknown
7717 fi
7718fi
7719else
7720 echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
631ef239 7723
212380e3 7724fi
631ef239 7725
7726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7727else
7728 cat >conftest.$ac_ext <<_ACEOF
7729/* confdefs.h. */
7730_ACEOF
7731cat confdefs.h >>conftest.$ac_ext
7732cat >>conftest.$ac_ext <<_ACEOF
7733/* end confdefs.h. */
631ef239 7734$ac_includes_default
212380e3 7735int
7736main ()
7737{
631ef239 7738
212380e3 7739 /* Are we little or big endian? From Harbison&Steele. */
7740 union
7741 {
631ef239 7742 long int l;
7743 char c[sizeof (long int)];
212380e3 7744 } u;
7745 u.l = 1;
631ef239 7746 return u.c[sizeof (long int) - 1] == 1;
7747
7748 ;
7749 return 0;
212380e3 7750}
7751_ACEOF
7752rm -f conftest$ac_exeext
631ef239 7753if { (ac_try="$ac_link"
7754case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7757esac
7758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759 (eval "$ac_link") 2>&5
212380e3 7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 7763 { (case "(($ac_try" in
7764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7766esac
7767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_try") 2>&5
212380e3 7769 ac_status=$?
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_cv_c_bigendian=no
7773else
7774 echo "$as_me: program exited with status $ac_status" >&5
7775echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778( exit $ac_status )
7779ac_cv_c_bigendian=yes
7780fi
631ef239 7781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 7782fi
631ef239 7783
7784
212380e3 7785fi
631ef239 7786
7787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7788fi
631ef239 7789{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7790echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
212380e3 7791case $ac_cv_c_bigendian in
7792 yes)
7793
7794cat >>confdefs.h <<\_ACEOF
7795#define WORDS_BIGENDIAN 1
7796_ACEOF
7797 ;;
7798 no)
7799 ;;
7800 *)
7801 { { echo "$as_me:$LINENO: error: unknown endianness
7802presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7803echo "$as_me: error: unknown endianness
7804presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7805 { (exit 1); exit 1; }; } ;;
7806esac
7807
7808
7809if test "${ac_cv_header_stdarg_h+set}" = set; then
631ef239 7810 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7811echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
212380e3 7812if test "${ac_cv_header_stdarg_h+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814fi
631ef239 7815{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7816echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
212380e3 7817else
7818 # Is the header compilable?
631ef239 7819{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7820echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
212380e3 7821cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h. */
7823_ACEOF
7824cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h. */
7827$ac_includes_default
7828#include <stdarg.h>
7829_ACEOF
7830rm -f conftest.$ac_objext
631ef239 7831if { (ac_try="$ac_compile"
7832case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
7836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
212380e3 7838 ac_status=$?
7839 grep -v '^ *+' conftest.er1 >conftest.err
7840 rm -f conftest.er1
7841 cat conftest.err >&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.$ac_objext; then
212380e3 7847 ac_header_compiler=yes
7848else
7849 echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
631ef239 7852 ac_header_compiler=no
212380e3 7853fi
631ef239 7854
7855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7857echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 7858
7859# Is the header present?
631ef239 7860{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7861echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
212380e3 7862cat >conftest.$ac_ext <<_ACEOF
7863/* confdefs.h. */
7864_ACEOF
7865cat confdefs.h >>conftest.$ac_ext
7866cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h. */
7868#include <stdarg.h>
7869_ACEOF
631ef239 7870if { (ac_try="$ac_cpp conftest.$ac_ext"
7871case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7882 (exit $ac_status); } >/dev/null && {
7883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 }; then
212380e3 7886 ac_header_preproc=yes
7887else
7888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_header_preproc=no
7892fi
631ef239 7893
212380e3 7894rm -f conftest.err conftest.$ac_ext
631ef239 7895{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7896echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 7897
7898# So? What about this header?
7899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 yes:no: )
7901 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7902echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7904echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7905 ac_header_preproc=yes
7906 ;;
7907 no:yes:* )
7908 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7909echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7911echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7913echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7915echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7917echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7919echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
631ef239 7920
212380e3 7921 ;;
7922esac
631ef239 7923{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7924echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
212380e3 7925if test "${ac_cv_header_stdarg_h+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 ac_cv_header_stdarg_h=$ac_header_preproc
7929fi
631ef239 7930{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7931echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
212380e3 7932
7933fi
7934if test $ac_cv_header_stdarg_h = yes; then
7935 :
7936else
7937 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7938echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7939 { (exit 1); exit 1; }; }
7940fi
7941
7942
7943
7944
7945if test "$ac_cv_c_compiler_gnu" = yes; then
7946
631ef239 7947{ echo "$as_me:$LINENO: checking for strlcpy" >&5
7948echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
212380e3 7949save_CFLAGS=$CFLAGS
7950CFLAGS="$CFLAGS -Wimplicit -Werror"
7951
7952cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958#include <string.h>
7959 #include <stdlib.h>
7960int
7961main ()
7962{
7963char *a = malloc(6);
7964 strlcpy(a, "hello", 6);
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 7971if { (ac_try="$ac_link"
7972case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_link") 2>conftest.er1
212380e3 7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest$ac_exeext &&
7987 $as_test_x conftest$ac_exeext; then
7988 { echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6; }
212380e3 7990
7991cat >>confdefs.h <<\_ACEOF
7992#define HAVE_STRLCPY 1
7993_ACEOF
7994
7995else
7996 echo "$as_me: failed program was:" >&5
7997sed 's/^/| /' conftest.$ac_ext >&5
7998
631ef239 7999 { echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6; }
212380e3 8001
8002fi
631ef239 8003
8004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8005 conftest$ac_exeext conftest.$ac_ext
8006
631ef239 8007{ echo "$as_me:$LINENO: checking for strlcat" >&5
8008echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
212380e3 8009cat >conftest.$ac_ext <<_ACEOF
8010/* confdefs.h. */
8011_ACEOF
8012cat confdefs.h >>conftest.$ac_ext
8013cat >>conftest.$ac_ext <<_ACEOF
8014/* end confdefs.h. */
8015#include <string.h>
8016 #include <stdlib.h>
8017int
8018main ()
8019{
8020char *a = malloc(6);
8021 a[0] = '\0';
8022 strlcat(a, "hello", 6);
8023
8024 ;
8025 return 0;
8026}
8027_ACEOF
8028rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8029if { (ac_try="$ac_link"
8030case "(($ac_try" in
8031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032 *) ac_try_echo=$ac_try;;
8033esac
8034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
212380e3 8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest$ac_exeext &&
8045 $as_test_x conftest$ac_exeext; then
8046 { echo "$as_me:$LINENO: result: yes" >&5
8047echo "${ECHO_T}yes" >&6; }
212380e3 8048
8049cat >>confdefs.h <<\_ACEOF
8050#define HAVE_STRLCAT 1
8051_ACEOF
8052
8053else
8054 echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
631ef239 8057 { echo "$as_me:$LINENO: result: no" >&5
8058echo "${ECHO_T}no" >&6; }
212380e3 8059
8060fi
631ef239 8061
8062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8063 conftest$ac_exeext conftest.$ac_ext
8064
8065CFLAGS=$save_CFLAGS
8066
8067else
8068
8069
8070
8071
8072for ac_func in strlcat strlcpy
8073do
8074as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 8075{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8076echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8077if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079else
8080 cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h. */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h. */
8086/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8088#define $ac_func innocuous_$ac_func
8089
8090/* System header to define __stub macros and hopefully few prototypes,
8091 which can conflict with char $ac_func (); below.
8092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8093 <limits.h> exists even on freestanding compilers. */
8094
8095#ifdef __STDC__
8096# include <limits.h>
8097#else
8098# include <assert.h>
8099#endif
8100
8101#undef $ac_func
8102
631ef239 8103/* Override any GCC internal prototype to avoid an error.
8104 Use char because int might match the return type of a GCC
8105 builtin and then its argument prototype would still apply. */
212380e3 8106#ifdef __cplusplus
8107extern "C"
212380e3 8108#endif
212380e3 8109char $ac_func ();
8110/* The GNU C library defines this for functions which it implements
8111 to always fail with ENOSYS. Some functions are actually named
8112 something starting with __ and the normal name is an alias. */
631ef239 8113#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8114choke me
212380e3 8115#endif
8116
8117int
8118main ()
8119{
631ef239 8120return $ac_func ();
212380e3 8121 ;
8122 return 0;
8123}
8124_ACEOF
8125rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8126if { (ac_try="$ac_link"
8127case "(($ac_try" in
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8130esac
8131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8132 (eval "$ac_link") 2>conftest.er1
212380e3 8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest$ac_exeext &&
8142 $as_test_x conftest$ac_exeext; then
212380e3 8143 eval "$as_ac_var=yes"
8144else
8145 echo "$as_me: failed program was:" >&5
8146sed 's/^/| /' conftest.$ac_ext >&5
8147
631ef239 8148 eval "$as_ac_var=no"
212380e3 8149fi
631ef239 8150
8151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8152 conftest$ac_exeext conftest.$ac_ext
8153fi
631ef239 8154ac_res=`eval echo '${'$as_ac_var'}'`
8155 { echo "$as_me:$LINENO: result: $ac_res" >&5
8156echo "${ECHO_T}$ac_res" >&6; }
212380e3 8157if test `eval echo '${'$as_ac_var'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8160_ACEOF
8161
8162fi
8163done
8164
8165
8166fi
8167
631ef239 8168{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
8169echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
212380e3 8170if test "${ac_cv_type_u_int32_t+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173 cat >conftest.$ac_ext <<_ACEOF
8174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
8179$ac_includes_default
631ef239 8180typedef u_int32_t ac__type_new_;
212380e3 8181int
8182main ()
8183{
631ef239 8184if ((ac__type_new_ *) 0)
212380e3 8185 return 0;
631ef239 8186if (sizeof (ac__type_new_))
212380e3 8187 return 0;
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192rm -f conftest.$ac_objext
631ef239 8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
212380e3 8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
212380e3 8209 ac_cv_type_u_int32_t=yes
8210else
8211 echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
631ef239 8214 ac_cv_type_u_int32_t=no
212380e3 8215fi
631ef239 8216
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8218fi
631ef239 8219{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8220echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
212380e3 8221if test $ac_cv_type_u_int32_t = yes; then
8222 :
8223else
8224
631ef239 8225 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8226echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
212380e3 8227if test "${ac_cv_type_uint32_t+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230 cat >conftest.$ac_ext <<_ACEOF
8231/* confdefs.h. */
8232_ACEOF
8233cat confdefs.h >>conftest.$ac_ext
8234cat >>conftest.$ac_ext <<_ACEOF
8235/* end confdefs.h. */
8236$ac_includes_default
631ef239 8237typedef uint32_t ac__type_new_;
212380e3 8238int
8239main ()
8240{
631ef239 8241if ((ac__type_new_ *) 0)
212380e3 8242 return 0;
631ef239 8243if (sizeof (ac__type_new_))
212380e3 8244 return 0;
8245 ;
8246 return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext
631ef239 8250if { (ac_try="$ac_compile"
8251case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
212380e3 8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest.$ac_objext; then
212380e3 8266 ac_cv_type_uint32_t=yes
8267else
8268 echo "$as_me: failed program was:" >&5
8269sed 's/^/| /' conftest.$ac_ext >&5
8270
631ef239 8271 ac_cv_type_uint32_t=no
212380e3 8272fi
631ef239 8273
8274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8275fi
631ef239 8276{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8277echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
212380e3 8278if test $ac_cv_type_uint32_t = yes; then
8279
8280
8281cat >>confdefs.h <<\_ACEOF
8282#define u_int32_t uint32_t
8283_ACEOF
8284
8285
8286else
8287
8288 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8289echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8290
8291cat >>confdefs.h <<\_ACEOF
8292#define u_int32_t unsigned long int
8293_ACEOF
8294
8295
8296fi
8297
8298
8299fi
8300
8301
631ef239 8302{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
8303echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
212380e3 8304if test "${ac_cv_type_u_int16_t+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306else
8307 cat >conftest.$ac_ext <<_ACEOF
8308/* confdefs.h. */
8309_ACEOF
8310cat confdefs.h >>conftest.$ac_ext
8311cat >>conftest.$ac_ext <<_ACEOF
8312/* end confdefs.h. */
8313$ac_includes_default
631ef239 8314typedef u_int16_t ac__type_new_;
212380e3 8315int
8316main ()
8317{
631ef239 8318if ((ac__type_new_ *) 0)
212380e3 8319 return 0;
631ef239 8320if (sizeof (ac__type_new_))
212380e3 8321 return 0;
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326rm -f conftest.$ac_objext
631ef239 8327if { (ac_try="$ac_compile"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
212380e3 8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
212380e3 8343 ac_cv_type_u_int16_t=yes
8344else
8345 echo "$as_me: failed program was:" >&5
8346sed 's/^/| /' conftest.$ac_ext >&5
8347
631ef239 8348 ac_cv_type_u_int16_t=no
212380e3 8349fi
631ef239 8350
8351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8352fi
631ef239 8353{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8354echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
212380e3 8355if test $ac_cv_type_u_int16_t = yes; then
8356 :
8357else
8358
631ef239 8359 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8360echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
212380e3 8361if test "${ac_cv_type_uint16_t+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8363else
8364 cat >conftest.$ac_ext <<_ACEOF
8365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
8370$ac_includes_default
631ef239 8371typedef uint16_t ac__type_new_;
212380e3 8372int
8373main ()
8374{
631ef239 8375if ((ac__type_new_ *) 0)
212380e3 8376 return 0;
631ef239 8377if (sizeof (ac__type_new_))
212380e3 8378 return 0;
8379 ;
8380 return 0;
8381}
8382_ACEOF
8383rm -f conftest.$ac_objext
631ef239 8384if { (ac_try="$ac_compile"
8385case "(($ac_try" in
8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8387 *) ac_try_echo=$ac_try;;
8388esac
8389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8390 (eval "$ac_compile") 2>conftest.er1
212380e3 8391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
212380e3 8400 ac_cv_type_uint16_t=yes
8401else
8402 echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
8404
631ef239 8405 ac_cv_type_uint16_t=no
212380e3 8406fi
631ef239 8407
8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8409fi
631ef239 8410{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8411echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
212380e3 8412if test $ac_cv_type_uint16_t = yes; then
8413
8414
8415cat >>confdefs.h <<\_ACEOF
8416#define u_int16_t uint16_t
8417_ACEOF
8418
8419
8420else
8421
8422 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8423echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8424
8425cat >>confdefs.h <<\_ACEOF
8426#define u_int16_t unsigned short int
8427_ACEOF
8428
8429
8430fi
8431
8432
8433fi
8434
8435
631ef239 8436{ echo "$as_me:$LINENO: checking for in_port_t" >&5
8437echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
212380e3 8438if test "${ac_cv_type_in_port_t+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440else
8441 cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h. */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h. */
8447#include <sys/types.h>
8448#include <netinet/in.h>
8449
631ef239 8450typedef in_port_t ac__type_new_;
212380e3 8451int
8452main ()
8453{
631ef239 8454if ((ac__type_new_ *) 0)
212380e3 8455 return 0;
631ef239 8456if (sizeof (ac__type_new_))
212380e3 8457 return 0;
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext
631ef239 8463if { (ac_try="$ac_compile"
8464case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467esac
8468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
212380e3 8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
212380e3 8479 ac_cv_type_in_port_t=yes
8480else
8481 echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
631ef239 8484 ac_cv_type_in_port_t=no
212380e3 8485fi
631ef239 8486
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8488fi
631ef239 8489{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8490echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
212380e3 8491if test $ac_cv_type_in_port_t = yes; then
8492 :
8493else
8494
8495cat >>confdefs.h <<\_ACEOF
8496#define in_port_t u_int16_t
8497_ACEOF
8498
8499fi
8500
8501
631ef239 8502{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
8503echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
212380e3 8504if test "${ac_cv_type_sa_family_t+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506else
8507 cat >conftest.$ac_ext <<_ACEOF
8508/* confdefs.h. */
8509_ACEOF
8510cat confdefs.h >>conftest.$ac_ext
8511cat >>conftest.$ac_ext <<_ACEOF
8512/* end confdefs.h. */
8513#include <sys/types.h>
8514#include <sys/socket.h>
8515
631ef239 8516typedef sa_family_t ac__type_new_;
212380e3 8517int
8518main ()
8519{
631ef239 8520if ((ac__type_new_ *) 0)
212380e3 8521 return 0;
631ef239 8522if (sizeof (ac__type_new_))
212380e3 8523 return 0;
8524 ;
8525 return 0;
8526}
8527_ACEOF
8528rm -f conftest.$ac_objext
631ef239 8529if { (ac_try="$ac_compile"
8530case "(($ac_try" in
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8533esac
8534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_compile") 2>conftest.er1
212380e3 8536 ac_status=$?
8537 grep -v '^ *+' conftest.er1 >conftest.err
8538 rm -f conftest.er1
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
212380e3 8545 ac_cv_type_sa_family_t=yes
8546else
8547 echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
631ef239 8550 ac_cv_type_sa_family_t=no
212380e3 8551fi
631ef239 8552
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8554fi
631ef239 8555{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8556echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
212380e3 8557if test $ac_cv_type_sa_family_t = yes; then
8558 :
8559else
8560
8561cat >>confdefs.h <<\_ACEOF
8562#define sa_family_t u_int16_t
8563_ACEOF
8564
8565fi
8566
8567
631ef239 8568{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
8569echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
212380e3 8570if test "${ac_cv_type_uintptr_t+set}" = set; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8572else
8573 cat >conftest.$ac_ext <<_ACEOF
8574/* confdefs.h. */
8575_ACEOF
8576cat confdefs.h >>conftest.$ac_ext
8577cat >>conftest.$ac_ext <<_ACEOF
8578/* end confdefs.h. */
8579$ac_includes_default
631ef239 8580typedef uintptr_t ac__type_new_;
212380e3 8581int
8582main ()
8583{
631ef239 8584if ((ac__type_new_ *) 0)
212380e3 8585 return 0;
631ef239 8586if (sizeof (ac__type_new_))
212380e3 8587 return 0;
8588 ;
8589 return 0;
8590}
8591_ACEOF
8592rm -f conftest.$ac_objext
631ef239 8593if { (ac_try="$ac_compile"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
212380e3 8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
212380e3 8609 ac_cv_type_uintptr_t=yes
8610else
8611 echo "$as_me: failed program was:" >&5
8612sed 's/^/| /' conftest.$ac_ext >&5
8613
631ef239 8614 ac_cv_type_uintptr_t=no
212380e3 8615fi
631ef239 8616
8617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8618fi
631ef239 8619{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8620echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
212380e3 8621if test $ac_cv_type_uintptr_t = yes; then
8622
8623cat >>confdefs.h <<_ACEOF
8624#define HAVE_UINTPTR_T 1
8625_ACEOF
8626
8627
8628fi
8629
8630
8631
8632
8633
8634
8635
8636
8637for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8638do
8639as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 8640{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8641echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8642if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645 cat >conftest.$ac_ext <<_ACEOF
8646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
8651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8653#define $ac_func innocuous_$ac_func
8654
8655/* System header to define __stub macros and hopefully few prototypes,
8656 which can conflict with char $ac_func (); below.
8657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658 <limits.h> exists even on freestanding compilers. */
8659
8660#ifdef __STDC__
8661# include <limits.h>
8662#else
8663# include <assert.h>
8664#endif
8665
8666#undef $ac_func
8667
631ef239 8668/* Override any GCC internal prototype to avoid an error.
8669 Use char because int might match the return type of a GCC
8670 builtin and then its argument prototype would still apply. */
212380e3 8671#ifdef __cplusplus
8672extern "C"
212380e3 8673#endif
212380e3 8674char $ac_func ();
8675/* The GNU C library defines this for functions which it implements
8676 to always fail with ENOSYS. Some functions are actually named
8677 something starting with __ and the normal name is an alias. */
631ef239 8678#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8679choke me
212380e3 8680#endif
8681
8682int
8683main ()
8684{
631ef239 8685return $ac_func ();
212380e3 8686 ;
8687 return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8691if { (ac_try="$ac_link"
8692case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695esac
8696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697 (eval "$ac_link") 2>conftest.er1
212380e3 8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest$ac_exeext &&
8707 $as_test_x conftest$ac_exeext; then
212380e3 8708 eval "$as_ac_var=yes"
8709else
8710 echo "$as_me: failed program was:" >&5
8711sed 's/^/| /' conftest.$ac_ext >&5
8712
631ef239 8713 eval "$as_ac_var=no"
212380e3 8714fi
631ef239 8715
8716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8717 conftest$ac_exeext conftest.$ac_ext
8718fi
631ef239 8719ac_res=`eval echo '${'$as_ac_var'}'`
8720 { echo "$as_me:$LINENO: result: $ac_res" >&5
8721echo "${ECHO_T}$ac_res" >&6; }
212380e3 8722if test `eval echo '${'$as_ac_var'}'` = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8725_ACEOF
8726
8727fi
8728done
8729
8730
8731# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8732# for constant arguments. Useless!
631ef239 8733{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
8734echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
212380e3 8735if test "${ac_cv_working_alloca_h+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737else
8738 cat >conftest.$ac_ext <<_ACEOF
8739/* confdefs.h. */
8740_ACEOF
8741cat confdefs.h >>conftest.$ac_ext
8742cat >>conftest.$ac_ext <<_ACEOF
8743/* end confdefs.h. */
8744#include <alloca.h>
8745int
8746main ()
8747{
8748char *p = (char *) alloca (2 * sizeof (int));
631ef239 8749 if (p) return 0;
212380e3 8750 ;
8751 return 0;
8752}
8753_ACEOF
8754rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8755if { (ac_try="$ac_link"
8756case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759esac
8760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_link") 2>conftest.er1
212380e3 8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest$ac_exeext &&
8771 $as_test_x conftest$ac_exeext; then
212380e3 8772 ac_cv_working_alloca_h=yes
8773else
8774 echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
631ef239 8777 ac_cv_working_alloca_h=no
212380e3 8778fi
631ef239 8779
8780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8781 conftest$ac_exeext conftest.$ac_ext
8782fi
631ef239 8783{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8784echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
212380e3 8785if test $ac_cv_working_alloca_h = yes; then
8786
8787cat >>confdefs.h <<\_ACEOF
8788#define HAVE_ALLOCA_H 1
8789_ACEOF
8790
8791fi
8792
631ef239 8793{ echo "$as_me:$LINENO: checking for alloca" >&5
8794echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
212380e3 8795if test "${ac_cv_func_alloca_works+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8797else
8798 cat >conftest.$ac_ext <<_ACEOF
8799/* confdefs.h. */
8800_ACEOF
8801cat confdefs.h >>conftest.$ac_ext
8802cat >>conftest.$ac_ext <<_ACEOF
8803/* end confdefs.h. */
8804#ifdef __GNUC__
8805# define alloca __builtin_alloca
8806#else
8807# ifdef _MSC_VER
8808# include <malloc.h>
8809# define alloca _alloca
8810# else
631ef239 8811# ifdef HAVE_ALLOCA_H
212380e3 8812# include <alloca.h>
8813# else
8814# ifdef _AIX
8815 #pragma alloca
8816# else
8817# ifndef alloca /* predefined by HP cc +Olibcalls */
8818char *alloca ();
8819# endif
8820# endif
8821# endif
8822# endif
8823#endif
8824
8825int
8826main ()
8827{
8828char *p = (char *) alloca (1);
631ef239 8829 if (p) return 0;
212380e3 8830 ;
8831 return 0;
8832}
8833_ACEOF
8834rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8835if { (ac_try="$ac_link"
8836case "(($ac_try" in
8837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8838 *) ac_try_echo=$ac_try;;
8839esac
8840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_link") 2>conftest.er1
212380e3 8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8847 (exit $ac_status); } && {
8848 test -z "$ac_c_werror_flag" ||
8849 test ! -s conftest.err
8850 } && test -s conftest$ac_exeext &&
8851 $as_test_x conftest$ac_exeext; then
212380e3 8852 ac_cv_func_alloca_works=yes
8853else
8854 echo "$as_me: failed program was:" >&5
8855sed 's/^/| /' conftest.$ac_ext >&5
8856
631ef239 8857 ac_cv_func_alloca_works=no
212380e3 8858fi
631ef239 8859
8860rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8861 conftest$ac_exeext conftest.$ac_ext
8862fi
631ef239 8863{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8864echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
212380e3 8865
8866if test $ac_cv_func_alloca_works = yes; then
8867
8868cat >>confdefs.h <<\_ACEOF
8869#define HAVE_ALLOCA 1
8870_ACEOF
8871
8872else
8873 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8874# that cause trouble. Some versions do not even contain alloca or
8875# contain a buggy version. If you still want to use their alloca,
8876# use ar to extract alloca.o from them instead of compiling alloca.c.
8877
631ef239 8878ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 8879
8880cat >>confdefs.h <<\_ACEOF
8881#define C_ALLOCA 1
8882_ACEOF
8883
8884
631ef239 8885{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8886echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
212380e3 8887if test "${ac_cv_os_cray+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
8890 cat >conftest.$ac_ext <<_ACEOF
8891/* confdefs.h. */
8892_ACEOF
8893cat confdefs.h >>conftest.$ac_ext
8894cat >>conftest.$ac_ext <<_ACEOF
8895/* end confdefs.h. */
631ef239 8896#if defined CRAY && ! defined CRAY2
212380e3 8897webecray
8898#else
8899wenotbecray
8900#endif
8901
8902_ACEOF
8903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8904 $EGREP "webecray" >/dev/null 2>&1; then
8905 ac_cv_os_cray=yes
8906else
8907 ac_cv_os_cray=no
8908fi
8909rm -f conftest*
8910
8911fi
631ef239 8912{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8913echo "${ECHO_T}$ac_cv_os_cray" >&6; }
212380e3 8914if test $ac_cv_os_cray = yes; then
8915 for ac_func in _getb67 GETB67 getb67; do
8916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 8917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8921else
8922 cat >conftest.$ac_ext <<_ACEOF
8923/* confdefs.h. */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>conftest.$ac_ext <<_ACEOF
8927/* end confdefs.h. */
8928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8930#define $ac_func innocuous_$ac_func
8931
8932/* System header to define __stub macros and hopefully few prototypes,
8933 which can conflict with char $ac_func (); below.
8934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8935 <limits.h> exists even on freestanding compilers. */
8936
8937#ifdef __STDC__
8938# include <limits.h>
8939#else
8940# include <assert.h>
8941#endif
8942
8943#undef $ac_func
8944
631ef239 8945/* Override any GCC internal prototype to avoid an error.
8946 Use char because int might match the return type of a GCC
8947 builtin and then its argument prototype would still apply. */
212380e3 8948#ifdef __cplusplus
8949extern "C"
212380e3 8950#endif
212380e3 8951char $ac_func ();
8952/* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
631ef239 8955#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8956choke me
212380e3 8957#endif
8958
8959int
8960main ()
8961{
631ef239 8962return $ac_func ();
212380e3 8963 ;
8964 return 0;
8965}
8966_ACEOF
8967rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8968if { (ac_try="$ac_link"
8969case "(($ac_try" in
8970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971 *) ac_try_echo=$ac_try;;
8972esac
8973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974 (eval "$ac_link") 2>conftest.er1
212380e3 8975 ac_status=$?
8976 grep -v '^ *+' conftest.er1 >conftest.err
8977 rm -f conftest.er1
8978 cat conftest.err >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8980 (exit $ac_status); } && {
8981 test -z "$ac_c_werror_flag" ||
8982 test ! -s conftest.err
8983 } && test -s conftest$ac_exeext &&
8984 $as_test_x conftest$ac_exeext; then
212380e3 8985 eval "$as_ac_var=yes"
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
631ef239 8990 eval "$as_ac_var=no"
212380e3 8991fi
631ef239 8992
8993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8994 conftest$ac_exeext conftest.$ac_ext
8995fi
631ef239 8996ac_res=`eval echo '${'$as_ac_var'}'`
8997 { echo "$as_me:$LINENO: result: $ac_res" >&5
8998echo "${ECHO_T}$ac_res" >&6; }
212380e3 8999if test `eval echo '${'$as_ac_var'}'` = yes; then
9000
9001cat >>confdefs.h <<_ACEOF
9002#define CRAY_STACKSEG_END $ac_func
9003_ACEOF
9004
9005 break
9006fi
9007
9008 done
9009fi
9010
631ef239 9011{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9012echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
212380e3 9013if test "${ac_cv_c_stack_direction+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015else
9016 if test "$cross_compiling" = yes; then
9017 ac_cv_c_stack_direction=0
9018else
9019 cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h. */
631ef239 9025$ac_includes_default
212380e3 9026int
9027find_stack_direction ()
9028{
9029 static char *addr = 0;
9030 auto char dummy;
9031 if (addr == 0)
9032 {
9033 addr = &dummy;
9034 return find_stack_direction ();
9035 }
9036 else
9037 return (&dummy > addr) ? 1 : -1;
9038}
9039
9040int
9041main ()
9042{
631ef239 9043 return find_stack_direction () < 0;
212380e3 9044}
9045_ACEOF
9046rm -f conftest$ac_exeext
631ef239 9047if { (ac_try="$ac_link"
9048case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>&5
212380e3 9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 9057 { (case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060esac
9061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_try") 2>&5
212380e3 9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_c_stack_direction=1
9067else
9068 echo "$as_me: program exited with status $ac_status" >&5
9069echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
9072( exit $ac_status )
9073ac_cv_c_stack_direction=-1
9074fi
631ef239 9075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 9076fi
631ef239 9077
9078
212380e3 9079fi
631ef239 9080{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9081echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
212380e3 9082
9083cat >>confdefs.h <<_ACEOF
9084#define STACK_DIRECTION $ac_cv_c_stack_direction
9085_ACEOF
9086
9087
9088fi
9089
9090
9091
631ef239 9092{ echo "$as_me:$LINENO: checking for nanosleep" >&5
9093echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
212380e3 9094if test "${ac_cv_func_nanosleep+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097 cat >conftest.$ac_ext <<_ACEOF
9098/* confdefs.h. */
9099_ACEOF
9100cat confdefs.h >>conftest.$ac_ext
9101cat >>conftest.$ac_ext <<_ACEOF
9102/* end confdefs.h. */
9103/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
9104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9105#define nanosleep innocuous_nanosleep
9106
9107/* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char nanosleep (); below.
9109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9110 <limits.h> exists even on freestanding compilers. */
9111
9112#ifdef __STDC__
9113# include <limits.h>
9114#else
9115# include <assert.h>
9116#endif
9117
9118#undef nanosleep
9119
631ef239 9120/* Override any GCC internal prototype to avoid an error.
9121 Use char because int might match the return type of a GCC
9122 builtin and then its argument prototype would still apply. */
212380e3 9123#ifdef __cplusplus
9124extern "C"
212380e3 9125#endif
212380e3 9126char nanosleep ();
9127/* The GNU C library defines this for functions which it implements
9128 to always fail with ENOSYS. Some functions are actually named
9129 something starting with __ and the normal name is an alias. */
631ef239 9130#if defined __stub_nanosleep || defined __stub___nanosleep
212380e3 9131choke me
212380e3 9132#endif
9133
9134int
9135main ()
9136{
631ef239 9137return nanosleep ();
212380e3 9138 ;
9139 return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9143if { (ac_try="$ac_link"
9144case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_link") 2>conftest.er1
212380e3 9150 ac_status=$?
9151 grep -v '^ *+' conftest.er1 >conftest.err
9152 rm -f conftest.er1
9153 cat conftest.err >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9155 (exit $ac_status); } && {
9156 test -z "$ac_c_werror_flag" ||
9157 test ! -s conftest.err
9158 } && test -s conftest$ac_exeext &&
9159 $as_test_x conftest$ac_exeext; then
212380e3 9160 ac_cv_func_nanosleep=yes
9161else
9162 echo "$as_me: failed program was:" >&5
9163sed 's/^/| /' conftest.$ac_ext >&5
9164
631ef239 9165 ac_cv_func_nanosleep=no
212380e3 9166fi
631ef239 9167
9168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9169 conftest$ac_exeext conftest.$ac_ext
9170fi
631ef239 9171{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
9172echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
212380e3 9173if test $ac_cv_func_nanosleep = yes; then
9174 :
9175else
631ef239 9176 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9177echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
212380e3 9178if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180else
9181 ac_check_lib_save_LIBS=$LIBS
9182LIBS="-lrt $LIBS"
9183cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h. */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h. */
9189
631ef239 9190/* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
212380e3 9193#ifdef __cplusplus
9194extern "C"
9195#endif
212380e3 9196char nanosleep ();
9197int
9198main ()
9199{
631ef239 9200return nanosleep ();
212380e3 9201 ;
9202 return 0;
9203}
9204_ACEOF
9205rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9206if { (ac_try="$ac_link"
9207case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_link") 2>conftest.er1
212380e3 9213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9218 (exit $ac_status); } && {
9219 test -z "$ac_c_werror_flag" ||
9220 test ! -s conftest.err
9221 } && test -s conftest$ac_exeext &&
9222 $as_test_x conftest$ac_exeext; then
212380e3 9223 ac_cv_lib_rt_nanosleep=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
631ef239 9228 ac_cv_lib_rt_nanosleep=no
212380e3 9229fi
631ef239 9230
9231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9232 conftest$ac_exeext conftest.$ac_ext
9233LIBS=$ac_check_lib_save_LIBS
9234fi
631ef239 9235{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9236echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
212380e3 9237if test $ac_cv_lib_rt_nanosleep = yes; then
9238 LIBS="${LIBS} -lrt"
9239else
631ef239 9240 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9241echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
212380e3 9242if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245 ac_check_lib_save_LIBS=$LIBS
9246LIBS="-lposix4 $LIBS"
9247cat >conftest.$ac_ext <<_ACEOF
9248/* confdefs.h. */
9249_ACEOF
9250cat confdefs.h >>conftest.$ac_ext
9251cat >>conftest.$ac_ext <<_ACEOF
9252/* end confdefs.h. */
9253
631ef239 9254/* Override any GCC internal prototype to avoid an error.
9255 Use char because int might match the return type of a GCC
9256 builtin and then its argument prototype would still apply. */
212380e3 9257#ifdef __cplusplus
9258extern "C"
9259#endif
212380e3 9260char nanosleep ();
9261int
9262main ()
9263{
631ef239 9264return nanosleep ();
212380e3 9265 ;
9266 return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9270if { (ac_try="$ac_link"
9271case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274esac
9275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_link") 2>conftest.er1
212380e3 9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest$ac_exeext &&
9286 $as_test_x conftest$ac_exeext; then
212380e3 9287 ac_cv_lib_posix4_nanosleep=yes
9288else
9289 echo "$as_me: failed program was:" >&5
9290sed 's/^/| /' conftest.$ac_ext >&5
9291
631ef239 9292 ac_cv_lib_posix4_nanosleep=no
212380e3 9293fi
631ef239 9294
9295rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9296 conftest$ac_exeext conftest.$ac_ext
9297LIBS=$ac_check_lib_save_LIBS
9298fi
631ef239 9299{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9300echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
212380e3 9301if test $ac_cv_lib_posix4_nanosleep = yes; then
9302 LIBS="${LIBS} -lposix4"
9303
9304fi
9305
9306fi
9307
9308fi
9309
9310if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
9311then
631ef239 9312 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9313echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
212380e3 9314else
9315
9316cat >>confdefs.h <<\_ACEOF
9317#define HAVE_NANOSLEEP 1
9318_ACEOF
9319
9320fi
9321
631ef239 9322{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
9323echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9324# Check whether --enable-openssl was given.
212380e3 9325if test "${enable_openssl+set}" = set; then
631ef239 9326 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3 9327else
9328 cf_enable_openssl="auto"
631ef239 9329fi
9330
212380e3 9331
9332if test "$cf_enable_openssl" != "no" ; then
9333 cf_openssl_basedir=""
9334 if test "$cf_enable_openssl" != "auto" &&
9335 test "$cf_enable_openssl" != "yes" ; then
9336 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9337 else
9338 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9339 /usr/local/openssl ; do
9340 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9341 cf_openssl_basedir="${dirs}"
9342 break
9343 fi
9344 done
9345 unset dirs
9346 fi
9347 if test ! -z "$cf_openssl_basedir"; then
9348 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9349 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9350 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9351 else
9352 cf_openssl_basedir=""
9353 fi
9354 else
9355 if test -f "/usr/include/openssl/opensslv.h" ; then
9356 cf_openssl_basedir="/usr"
9357 fi
9358 fi
9359
9360 if test ! -z "$cf_openssl_basedir"; then
631ef239 9361 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9362echo "${ECHO_T}$cf_openssl_basedir" >&6; }
212380e3 9363 cf_enable_openssl="yes"
9364 else
631ef239 9365 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9366echo "${ECHO_T}not found. Specify a correct path?" >&6; }
212380e3 9367 cf_enable_openssl="no"
9368 fi
9369 unset cf_openssl_basedir
9370else
631ef239 9371 { echo "$as_me:$LINENO: result: disabled" >&5
9372echo "${ECHO_T}disabled" >&6; }
212380e3 9373fi
9374
9375save_CPPFLAGS="$CPPFLAGS"
9376CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9377save_LIBS="$LIBS"
9378LIBS="$LIBS $SSL_LIBS"
9379if test "$cf_enable_openssl" != no; then
631ef239 9380 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9381echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
212380e3 9382 if test "$cross_compiling" = yes; then
9383 cf_openssl_version_ok=no
9384else
9385 cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391#include <openssl/opensslv.h>
9392 #include <stdlib.h>
9393int
9394main ()
9395{
9396if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9397 exit(0); else exit(1);
9398 ;
9399 return 0;
9400}
9401_ACEOF
9402rm -f conftest$ac_exeext
631ef239 9403if { (ac_try="$ac_link"
9404case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407esac
9408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_link") 2>&5
212380e3 9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 9413 { (case "(($ac_try" in
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9416esac
9417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418 (eval "$ac_try") 2>&5
212380e3 9419 ac_status=$?
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); }; }; then
9422 cf_openssl_version_ok=yes
9423else
9424 echo "$as_me: program exited with status $ac_status" >&5
9425echo "$as_me: failed program was:" >&5
9426sed 's/^/| /' conftest.$ac_ext >&5
9427
9428( exit $ac_status )
9429cf_openssl_version_ok=no
9430fi
631ef239 9431rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 9432fi
9433
631ef239 9434
9435
212380e3 9436 if test "$cf_openssl_version_ok" = yes; then
631ef239 9437 { echo "$as_me:$LINENO: result: found" >&5
9438echo "${ECHO_T}found" >&6; }
212380e3 9439
9440 ENCSPEED=encspeed
9441
9442
9443 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9444
631ef239 9445{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9446echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
212380e3 9447if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449else
9450 ac_check_lib_save_LIBS=$LIBS
9451LIBS="-lcrypto $LIBS"
9452cat >conftest.$ac_ext <<_ACEOF
9453/* confdefs.h. */
9454_ACEOF
9455cat confdefs.h >>conftest.$ac_ext
9456cat >>conftest.$ac_ext <<_ACEOF
9457/* end confdefs.h. */
9458
631ef239 9459/* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
212380e3 9462#ifdef __cplusplus
9463extern "C"
9464#endif
212380e3 9465char RSA_free ();
9466int
9467main ()
9468{
631ef239 9469return RSA_free ();
212380e3 9470 ;
9471 return 0;
9472}
9473_ACEOF
9474rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9475if { (ac_try="$ac_link"
9476case "(($ac_try" in
9477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9478 *) ac_try_echo=$ac_try;;
9479esac
9480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9481 (eval "$ac_link") 2>conftest.er1
212380e3 9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9487 (exit $ac_status); } && {
9488 test -z "$ac_c_werror_flag" ||
9489 test ! -s conftest.err
9490 } && test -s conftest$ac_exeext &&
9491 $as_test_x conftest$ac_exeext; then
212380e3 9492 ac_cv_lib_crypto_RSA_free=yes
9493else
9494 echo "$as_me: failed program was:" >&5
9495sed 's/^/| /' conftest.$ac_ext >&5
9496
631ef239 9497 ac_cv_lib_crypto_RSA_free=no
212380e3 9498fi
631ef239 9499
9500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9501 conftest$ac_exeext conftest.$ac_ext
9502LIBS=$ac_check_lib_save_LIBS
9503fi
631ef239 9504{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9505echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
212380e3 9506if test $ac_cv_lib_crypto_RSA_free = yes; then
9507 cat >>confdefs.h <<_ACEOF
9508#define HAVE_LIBCRYPTO 1
9509_ACEOF
9510
9511 LIBS="-lcrypto $LIBS"
9512
9513fi
9514
9515 SSL_LIBS="$SSL_LIBS -lcrypto"
9516 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9517 else
631ef239 9518 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9519echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
212380e3 9520 fi
9521fi
9522
9523CPPFLAGS="$save_CPPFLAGS"
9524LIBS="$save_LIBS"
9525
9526
9527
9528
9529
631ef239 9530# Check whether --with-zlib-path was given.
212380e3 9531if test "${with_zlib_path+set}" = set; then
631ef239 9532 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9533fi
212380e3 9534
631ef239 9535
9536# Check whether --enable-zlib was given.
212380e3 9537if test "${enable_zlib+set}" = set; then
631ef239 9538 enableval=$enable_zlib; zlib=$enableval
212380e3 9539else
9540 zlib=yes
631ef239 9541fi
9542
212380e3 9543
9544if test "$zlib" = yes; then
9545
9546if test "${ac_cv_header_zlib_h+set}" = set; then
631ef239 9547 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9548echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
212380e3 9549if test "${ac_cv_header_zlib_h+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551fi
631ef239 9552{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9553echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
212380e3 9554else
9555 # Is the header compilable?
631ef239 9556{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
9557echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
212380e3 9558cat >conftest.$ac_ext <<_ACEOF
9559/* confdefs.h. */
9560_ACEOF
9561cat confdefs.h >>conftest.$ac_ext
9562cat >>conftest.$ac_ext <<_ACEOF
9563/* end confdefs.h. */
9564$ac_includes_default
9565#include <zlib.h>
9566_ACEOF
9567rm -f conftest.$ac_objext
631ef239 9568if { (ac_try="$ac_compile"
9569case "(($ac_try" in
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9572esac
9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_compile") 2>conftest.er1
212380e3 9575 ac_status=$?
9576 grep -v '^ *+' conftest.er1 >conftest.err
9577 rm -f conftest.er1
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest.$ac_objext; then
212380e3 9584 ac_header_compiler=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
631ef239 9589 ac_header_compiler=no
212380e3 9590fi
631ef239 9591
9592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 9595
9596# Is the header present?
631ef239 9597{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
9598echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
212380e3 9599cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605#include <zlib.h>
9606_ACEOF
631ef239 9607if { (ac_try="$ac_cpp conftest.$ac_ext"
9608case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611esac
9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 9614 ac_status=$?
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9619 (exit $ac_status); } >/dev/null && {
9620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 }; then
212380e3 9623 ac_header_preproc=yes
9624else
9625 echo "$as_me: failed program was:" >&5
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 ac_header_preproc=no
9629fi
631ef239 9630
212380e3 9631rm -f conftest.err conftest.$ac_ext
631ef239 9632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 9634
9635# So? What about this header?
9636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9637 yes:no: )
9638 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9639echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9641echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9642 ac_header_preproc=yes
9643 ;;
9644 no:yes:* )
9645 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9646echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9648echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9650echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9652echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9654echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9656echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
631ef239 9657
212380e3 9658 ;;
9659esac
631ef239 9660{ echo "$as_me:$LINENO: checking for zlib.h" >&5
9661echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
212380e3 9662if test "${ac_cv_header_zlib_h+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 ac_cv_header_zlib_h=$ac_header_preproc
9666fi
631ef239 9667{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9668echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
212380e3 9669
9670fi
9671if test $ac_cv_header_zlib_h = yes; then
9672
631ef239 9673 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9674echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
212380e3 9675if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678 ac_check_lib_save_LIBS=$LIBS
9679LIBS="-lz $LIBS"
9680cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686
631ef239 9687/* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
212380e3 9690#ifdef __cplusplus
9691extern "C"
9692#endif
212380e3 9693char zlibVersion ();
9694int
9695main ()
9696{
631ef239 9697return zlibVersion ();
212380e3 9698 ;
9699 return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9703if { (ac_try="$ac_link"
9704case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707esac
9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
212380e3 9710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest$ac_exeext &&
9719 $as_test_x conftest$ac_exeext; then
212380e3 9720 ac_cv_lib_z_zlibVersion=yes
9721else
9722 echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
631ef239 9725 ac_cv_lib_z_zlibVersion=no
212380e3 9726fi
631ef239 9727
9728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9729 conftest$ac_exeext conftest.$ac_ext
9730LIBS=$ac_check_lib_save_LIBS
9731fi
631ef239 9732{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9733echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
212380e3 9734if test $ac_cv_lib_z_zlibVersion = yes; then
9735
9736 ZLIB_LD=-lz
9737
9738
9739cat >>confdefs.h <<\_ACEOF
9740#define HAVE_LIBZ 1
9741_ACEOF
9742
9743
9744else
9745 zlib=no
9746fi
9747
9748
9749else
9750 zlib=no
9751fi
9752
9753
9754
9755fi
9756
9757
631ef239 9758# Check whether --enable-poll was given.
212380e3 9759if test "${enable_poll+set}" = set; then
631ef239 9760 enableval=$enable_poll; if test $enableval = yes; then
212380e3 9761 SELECT_TYPE_EXPLICIT="poll"
9762 else
9763 use_poll=no
9764 fi
9765
631ef239 9766fi
9767
212380e3 9768
631ef239 9769# Check whether --enable-select was given.
212380e3 9770if test "${enable_select+set}" = set; then
631ef239 9771 enableval=$enable_select; if test $enableval = yes; then
212380e3 9772 SELECT_TYPE_EXPLICIT="select"
9773 else
9774 use_select=no
9775 fi
9776
631ef239 9777fi
9778
212380e3 9779
631ef239 9780# Check whether --enable-kqueue was given.
212380e3 9781if test "${enable_kqueue+set}" = set; then
631ef239 9782 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3 9783 SELECT_TYPE_EXPLICIT="kqueue"
9784 else
9785 use_kqueue=no
9786 fi
9787
631ef239 9788fi
9789
212380e3 9790
631ef239 9791# Check whether --enable-epoll was given.
212380e3 9792if test "${enable_epoll+set}" = set; then
631ef239 9793 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 9794 SELECT_TYPE_EXPLICIT="epoll"
3ad1a781 9795
9796for ac_func in epoll_ctl
9797do
9798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 9799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3ad1a781 9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9803else
9804 cat >conftest.$ac_ext <<_ACEOF
9805/* confdefs.h. */
9806_ACEOF
9807cat confdefs.h >>conftest.$ac_ext
9808cat >>conftest.$ac_ext <<_ACEOF
9809/* end confdefs.h. */
9810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9812#define $ac_func innocuous_$ac_func
9813
9814/* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char $ac_func (); below.
9816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9817 <limits.h> exists even on freestanding compilers. */
9818
9819#ifdef __STDC__
9820# include <limits.h>
9821#else
9822# include <assert.h>
9823#endif
9824
9825#undef $ac_func
9826
631ef239 9827/* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
3ad1a781 9830#ifdef __cplusplus
9831extern "C"
3ad1a781 9832#endif
3ad1a781 9833char $ac_func ();
9834/* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
631ef239 9837#if defined __stub_$ac_func || defined __stub___$ac_func
3ad1a781 9838choke me
3ad1a781 9839#endif
9840
9841int
9842main ()
9843{
631ef239 9844return $ac_func ();
3ad1a781 9845 ;
9846 return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9850if { (ac_try="$ac_link"
9851case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854esac
9855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9856 (eval "$ac_link") 2>conftest.er1
3ad1a781 9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext &&
9866 $as_test_x conftest$ac_exeext; then
3ad1a781 9867 eval "$as_ac_var=yes"
9868else
9869 echo "$as_me: failed program was:" >&5
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
631ef239 9872 eval "$as_ac_var=no"
3ad1a781 9873fi
631ef239 9874
9875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3ad1a781 9876 conftest$ac_exeext conftest.$ac_ext
9877fi
631ef239 9878ac_res=`eval echo '${'$as_ac_var'}'`
9879 { echo "$as_me:$LINENO: result: $ac_res" >&5
9880echo "${ECHO_T}$ac_res" >&6; }
3ad1a781 9881if test `eval echo '${'$as_ac_var'}'` = yes; then
9882 cat >>confdefs.h <<_ACEOF
9883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9884_ACEOF
9885 haveepoll=yes
9886else
9887 haveepoll=no
9888fi
9889done
9890
212380e3 9891 else
9892 use_epoll=no
9893 fi
9894
631ef239 9895fi
9896
212380e3 9897
9898
631ef239 9899{ echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9900echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
212380e3 9901
631ef239 9902# Check whether --with-confdir was given.
212380e3 9903if test "${with_confdir+set}" = set; then
631ef239 9904 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9905 { echo "$as_me:$LINENO: result: yes" >&5
9906echo "${ECHO_T}yes" >&6; }
212380e3 9907
9908 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9910 ac_define_dir=`eval echo $confdir`
9911 ac_define_dir=`eval echo $ac_define_dir`
9912 ETC_DIR="$ac_define_dir"
9913
9914
9915cat >>confdefs.h <<_ACEOF
9916#define ETC_DIR "$ac_define_dir"
9917_ACEOF
9918
9919
9920
9921
9922 confdir=`(
9923 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9924 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9925 eval echo \""$confdir"\"
9926 )`
9927
9928
9929else
9930 confdir='${prefix}/etc'
631ef239 9931 { echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6; }
212380e3 9933
9934 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9936 ac_define_dir=`eval echo $confdir`
9937 ac_define_dir=`eval echo $ac_define_dir`
9938 ETC_DIR="$ac_define_dir"
9939
9940
9941cat >>confdefs.h <<_ACEOF
9942#define ETC_DIR "$ac_define_dir"
9943_ACEOF
9944
9945
9946
9947
9948 confdir=`(
9949 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9950 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9951 eval echo \""$confdir"\"
9952 )`
9953
9954
9955
631ef239 9956fi
9957
212380e3 9958
9959
631ef239 9960{ echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9961echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
212380e3 9962
631ef239 9963# Check whether --with-logdir was given.
212380e3 9964if test "${with_logdir+set}" = set; then
631ef239 9965 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9966 { echo "$as_me:$LINENO: result: yes" >&5
9967echo "${ECHO_T}yes" >&6; }
212380e3 9968
9969 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9971 ac_define_dir=`eval echo $logdir`
9972 ac_define_dir=`eval echo $ac_define_dir`
9973 LOG_DIR="$ac_define_dir"
9974
9975
9976cat >>confdefs.h <<_ACEOF
9977#define LOG_DIR "$ac_define_dir"
9978_ACEOF
9979
9980
9981
9982
9983 logdir=`(
9984 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9985 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9986 eval echo \""$logdir"\"
9987 )`
9988
9989
9990else
9991 logdir='${prefix}/logs'
631ef239 9992 { echo "$as_me:$LINENO: result: no" >&5
9993echo "${ECHO_T}no" >&6; }
212380e3 9994
9995 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9997 ac_define_dir=`eval echo $logdir`
9998 ac_define_dir=`eval echo $ac_define_dir`
9999 LOG_DIR="$ac_define_dir"
10000
10001
10002cat >>confdefs.h <<_ACEOF
10003#define LOG_DIR "$ac_define_dir"
10004_ACEOF
10005
10006
10007
10008
10009 logdir=`(
10010 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10011 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10012 eval echo \""$logdir"\"
10013 )`
10014
10015
10016
631ef239 10017fi
10018
212380e3 10019
10020
631ef239 10021{ echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
10022echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
212380e3 10023
631ef239 10024# Check whether --with-helpdir was given.
212380e3 10025if test "${with_helpdir+set}" = set; then
631ef239 10026 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
10027 { echo "$as_me:$LINENO: result: yes" >&5
10028echo "${ECHO_T}yes" >&6; }
212380e3 10029
10030 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10032 ac_define_dir=`eval echo $helpdir`
10033 ac_define_dir=`eval echo $ac_define_dir`
10034 HELP_DIR="$ac_define_dir"
10035
10036
10037cat >>confdefs.h <<_ACEOF
10038#define HELP_DIR "$ac_define_dir"
10039_ACEOF
10040
10041
10042
10043
10044 helpdir=`(
10045 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10046 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10047 eval echo \""$helpdir"\"
10048 )`
10049
10050
10051else
10052 helpdir='${prefix}/help'
631ef239 10053 { echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6; }
212380e3 10055
10056 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10058 ac_define_dir=`eval echo $helpdir`
10059 ac_define_dir=`eval echo $ac_define_dir`
10060 HELP_DIR="$ac_define_dir"
10061
10062
10063cat >>confdefs.h <<_ACEOF
10064#define HELP_DIR "$ac_define_dir"
10065_ACEOF
10066
10067
10068
10069
10070 helpdir=`(
10071 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10072 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10073 eval echo \""$helpdir"\"
10074 )`
10075
10076
10077
631ef239 10078fi
10079
212380e3 10080
10081
631ef239 10082{ echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
10083echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
212380e3 10084
631ef239 10085# Check whether --with-moduledir was given.
212380e3 10086if test "${with_moduledir+set}" = set; then
631ef239 10087 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
10088 { echo "$as_me:$LINENO: result: yes" >&5
10089echo "${ECHO_T}yes" >&6; }
212380e3 10090
10091 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10093 ac_define_dir=`eval echo $moduledir`
10094 ac_define_dir=`eval echo $ac_define_dir`
10095 MODULE_DIR="$ac_define_dir"
10096
10097
10098cat >>confdefs.h <<_ACEOF
10099#define MODULE_DIR "$ac_define_dir"
10100_ACEOF
10101
10102
10103
10104
10105 moduledir=`(
10106 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10107 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10108 eval echo \""$moduledir"\"
10109 )`
10110
10111
10112else
10113 moduledir='${prefix}/modules'
631ef239 10114 { echo "$as_me:$LINENO: result: no" >&5
10115echo "${ECHO_T}no" >&6; }
212380e3 10116
10117 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10119 ac_define_dir=`eval echo $moduledir`
10120 ac_define_dir=`eval echo $ac_define_dir`
10121 MODULE_DIR="$ac_define_dir"
10122
10123
10124cat >>confdefs.h <<_ACEOF
10125#define MODULE_DIR "$ac_define_dir"
10126_ACEOF
10127
10128
10129
10130
10131 moduledir=`(
10132 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10133 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10134 eval echo \""$moduledir"\"
10135 )`
10136
10137
10138
631ef239 10139fi
10140
212380e3 10141
10142if test ! -z "$SELECT_TYPE_EXPLICIT"; then
10143 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
10144 echo "Forcing $SELECT_TYPE to be enabled"
10145else
10146
10147if test ! "x$use_select" = "xno"; then
10148
10149for ac_func in select
10150do
10151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157 cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10165#define $ac_func innocuous_$ac_func
10166
10167/* System header to define __stub macros and hopefully few prototypes,
10168 which can conflict with char $ac_func (); below.
10169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10170 <limits.h> exists even on freestanding compilers. */
10171
10172#ifdef __STDC__
10173# include <limits.h>
10174#else
10175# include <assert.h>
10176#endif
10177
10178#undef $ac_func
10179
631ef239 10180/* Override any GCC internal prototype to avoid an error.
10181 Use char because int might match the return type of a GCC
10182 builtin and then its argument prototype would still apply. */
212380e3 10183#ifdef __cplusplus
10184extern "C"
212380e3 10185#endif
212380e3 10186char $ac_func ();
10187/* The GNU C library defines this for functions which it implements
10188 to always fail with ENOSYS. Some functions are actually named
10189 something starting with __ and the normal name is an alias. */
631ef239 10190#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10191choke me
212380e3 10192#endif
10193
10194int
10195main ()
10196{
631ef239 10197return $ac_func ();
212380e3 10198 ;
10199 return 0;
10200}
10201_ACEOF
10202rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10203if { (ac_try="$ac_link"
10204case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207esac
10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>conftest.er1
212380e3 10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest$ac_exeext &&
10219 $as_test_x conftest$ac_exeext; then
212380e3 10220 eval "$as_ac_var=yes"
10221else
10222 echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
631ef239 10225 eval "$as_ac_var=no"
212380e3 10226fi
631ef239 10227
10228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10229 conftest$ac_exeext conftest.$ac_ext
10230fi
631ef239 10231ac_res=`eval echo '${'$as_ac_var'}'`
10232 { echo "$as_me:$LINENO: result: $ac_res" >&5
10233echo "${ECHO_T}$ac_res" >&6; }
212380e3 10234if test `eval echo '${'$as_ac_var'}'` = yes; then
10235 cat >>confdefs.h <<_ACEOF
10236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10237_ACEOF
10238 haveselect=yes
10239else
10240 haveselect=no
10241fi
10242done
10243
10244 if test "x$haveselect" = "xyes" ; then
10245 SELECT_TYPE="select"
10246 fi
10247fi
10248
10249if test ! "x$use_poll" = "xno"; then
10250
10251for ac_func in poll
10252do
10253as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10254{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10255echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10256if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10258else
10259 cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h. */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h. */
10265/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10267#define $ac_func innocuous_$ac_func
10268
10269/* System header to define __stub macros and hopefully few prototypes,
10270 which can conflict with char $ac_func (); below.
10271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10272 <limits.h> exists even on freestanding compilers. */
10273
10274#ifdef __STDC__
10275# include <limits.h>
10276#else
10277# include <assert.h>
10278#endif
10279
10280#undef $ac_func
10281
631ef239 10282/* Override any GCC internal prototype to avoid an error.
10283 Use char because int might match the return type of a GCC
10284 builtin and then its argument prototype would still apply. */
212380e3 10285#ifdef __cplusplus
10286extern "C"
212380e3 10287#endif
212380e3 10288char $ac_func ();
10289/* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
631ef239 10292#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10293choke me
212380e3 10294#endif
10295
10296int
10297main ()
10298{
631ef239 10299return $ac_func ();
212380e3 10300 ;
10301 return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10305if { (ac_try="$ac_link"
10306case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309esac
10310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311 (eval "$ac_link") 2>conftest.er1
212380e3 10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext &&
10321 $as_test_x conftest$ac_exeext; then
212380e3 10322 eval "$as_ac_var=yes"
10323else
10324 echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
631ef239 10327 eval "$as_ac_var=no"
212380e3 10328fi
631ef239 10329
10330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10331 conftest$ac_exeext conftest.$ac_ext
10332fi
631ef239 10333ac_res=`eval echo '${'$as_ac_var'}'`
10334 { echo "$as_me:$LINENO: result: $ac_res" >&5
10335echo "${ECHO_T}$ac_res" >&6; }
212380e3 10336if test `eval echo '${'$as_ac_var'}'` = yes; then
10337 cat >>confdefs.h <<_ACEOF
10338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10339_ACEOF
10340 havepoll=yes
10341else
10342 havepoll=no
10343fi
10344done
10345
10346 if test "x$havepoll" = "xyes" ; then
10347 SELECT_TYPE="poll"
10348 fi
10349fi
10350
212380e3 10351if test ! "x$use_kqueue" = "xno"; then
10352
10353for ac_func in kevent
10354do
10355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10356{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 cat >conftest.$ac_ext <<_ACEOF
10362/* confdefs.h. */
10363_ACEOF
10364cat confdefs.h >>conftest.$ac_ext
10365cat >>conftest.$ac_ext <<_ACEOF
10366/* end confdefs.h. */
10367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10369#define $ac_func innocuous_$ac_func
10370
10371/* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char $ac_func (); below.
10373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374 <limits.h> exists even on freestanding compilers. */
10375
10376#ifdef __STDC__
10377# include <limits.h>
10378#else
10379# include <assert.h>
10380#endif
10381
10382#undef $ac_func
10383
631ef239 10384/* Override any GCC internal prototype to avoid an error.
10385 Use char because int might match the return type of a GCC
10386 builtin and then its argument prototype would still apply. */
212380e3 10387#ifdef __cplusplus
10388extern "C"
212380e3 10389#endif
212380e3 10390char $ac_func ();
10391/* The GNU C library defines this for functions which it implements
10392 to always fail with ENOSYS. Some functions are actually named
10393 something starting with __ and the normal name is an alias. */
631ef239 10394#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10395choke me
212380e3 10396#endif
10397
10398int
10399main ()
10400{
631ef239 10401return $ac_func ();
212380e3 10402 ;
10403 return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10407if { (ac_try="$ac_link"
10408case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411esac
10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413 (eval "$ac_link") 2>conftest.er1
212380e3 10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest$ac_exeext &&
10423 $as_test_x conftest$ac_exeext; then
212380e3 10424 eval "$as_ac_var=yes"
10425else
10426 echo "$as_me: failed program was:" >&5
10427sed 's/^/| /' conftest.$ac_ext >&5
10428
631ef239 10429 eval "$as_ac_var=no"
212380e3 10430fi
631ef239 10431
10432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10433 conftest$ac_exeext conftest.$ac_ext
10434fi
631ef239 10435ac_res=`eval echo '${'$as_ac_var'}'`
10436 { echo "$as_me:$LINENO: result: $ac_res" >&5
10437echo "${ECHO_T}$ac_res" >&6; }
212380e3 10438if test `eval echo '${'$as_ac_var'}'` = yes; then
10439 cat >>confdefs.h <<_ACEOF
10440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10441_ACEOF
10442 havekqueue=yes
10443else
10444 havekqueue=no
10445fi
10446done
10447
10448 if test "x$havekqueue" = "xyes" ; then
10449 SELECT_TYPE="kqueue"
10450 fi
10451fi
10452
10453if test ! "x$use_epoll" = "xno"; then
10454
10455for ac_func in epoll_ctl
10456do
10457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462else
10463 cat >conftest.$ac_ext <<_ACEOF
10464/* confdefs.h. */
10465_ACEOF
10466cat confdefs.h >>conftest.$ac_ext
10467cat >>conftest.$ac_ext <<_ACEOF
10468/* end confdefs.h. */
10469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10471#define $ac_func innocuous_$ac_func
10472
10473/* System header to define __stub macros and hopefully few prototypes,
10474 which can conflict with char $ac_func (); below.
10475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10476 <limits.h> exists even on freestanding compilers. */
10477
10478#ifdef __STDC__
10479# include <limits.h>
10480#else
10481# include <assert.h>
10482#endif
10483
10484#undef $ac_func
10485
631ef239 10486/* Override any GCC internal prototype to avoid an error.
10487 Use char because int might match the return type of a GCC
10488 builtin and then its argument prototype would still apply. */
212380e3 10489#ifdef __cplusplus
10490extern "C"
212380e3 10491#endif
212380e3 10492char $ac_func ();
10493/* The GNU C library defines this for functions which it implements
10494 to always fail with ENOSYS. Some functions are actually named
10495 something starting with __ and the normal name is an alias. */
631ef239 10496#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10497choke me
212380e3 10498#endif
10499
10500int
10501main ()
10502{
631ef239 10503return $ac_func ();
212380e3 10504 ;
10505 return 0;
10506}
10507_ACEOF
10508rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10509if { (ac_try="$ac_link"
10510case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
212380e3 10516 ac_status=$?
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10521 (exit $ac_status); } && {
10522 test -z "$ac_c_werror_flag" ||
10523 test ! -s conftest.err
10524 } && test -s conftest$ac_exeext &&
10525 $as_test_x conftest$ac_exeext; then
212380e3 10526 eval "$as_ac_var=yes"
10527else
10528 echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
631ef239 10531 eval "$as_ac_var=no"
212380e3 10532fi
631ef239 10533
10534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10535 conftest$ac_exeext conftest.$ac_ext
10536fi
631ef239 10537ac_res=`eval echo '${'$as_ac_var'}'`
10538 { echo "$as_me:$LINENO: result: $ac_res" >&5
10539echo "${ECHO_T}$ac_res" >&6; }
212380e3 10540if test `eval echo '${'$as_ac_var'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10543_ACEOF
10544 haveepoll=yes
10545else
10546 haveepoll=no
10547fi
10548done
10549
10550 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10551 if test "x$haveepoll" = "xyes" ; then
631ef239 10552 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10553echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
212380e3 10554 if test "$cross_compiling" = yes; then
631ef239 10555 { echo "$as_me:$LINENO: result: no" >&5
10556echo "${ECHO_T}no" >&6; }
212380e3 10557else
10558 cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h. */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h. */
10564#include <stdint.h>
10565#include <sys/param.h>
10566#include <sys/types.h>
10567#include <sys/epoll.h>
10568#include <sys/syscall.h>
10569#include <unistd.h>
10570
10571int
10572main(int argc, char **argv)
10573{
10574 int epfd;
10575
10576 epfd = epoll_create(256);
10577 exit (epfd == -1 ? 1 : 0);
10578}
10579_ACEOF
10580rm -f conftest$ac_exeext
631ef239 10581if { (ac_try="$ac_link"
10582case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10585esac
10586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_link") 2>&5
212380e3 10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594esac
10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
212380e3 10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
631ef239 10600 { echo "$as_me:$LINENO: result: yes" >&5
10601echo "${ECHO_T}yes" >&6; }
212380e3 10602
10603cat >>confdefs.h <<\_ACEOF
10604#define HAVE_EPOLL 1
10605_ACEOF
10606
10607 SELECT_TYPE="epoll"
10608else
10609 echo "$as_me: program exited with status $ac_status" >&5
10610echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
10613( exit $ac_status )
631ef239 10614{ echo "$as_me:$LINENO: result: no" >&5
10615echo "${ECHO_T}no" >&6; }
212380e3 10616fi
631ef239 10617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 10618fi
631ef239 10619
10620
212380e3 10621 fi
10622 fi
10623
10624haveepollsyscall=no
10625
10626if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10627 if test "x$haveepoll" = "xno" ; then
631ef239 10628 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10629echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
212380e3 10630 if test "$cross_compiling" = yes; then
631ef239 10631 { echo "$as_me:$LINENO: result: no" >&5
10632echo "${ECHO_T}no" >&6; }
212380e3 10633else
10634 cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h. */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h. */
10640#include <stdint.h>
10641#include <sys/param.h>
10642#include <sys/types.h>
10643#include <sys/epoll.h>
10644#include <sys/syscall.h>
10645#include <unistd.h>
10646
10647int
10648epoll_create(int size)
10649{
10650 return (syscall(__NR_epoll_create, size));
10651}
10652
10653int
10654main(int argc, char **argv)
10655{
10656 int epfd;
10657
10658 epfd = epoll_create(256);
10659 exit (epfd == -1 ? 1 : 0);
10660}
10661_ACEOF
10662rm -f conftest$ac_exeext
631ef239 10663if { (ac_try="$ac_link"
10664case "(($ac_try" in
10665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666 *) ac_try_echo=$ac_try;;
10667esac
10668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_link") 2>&5
212380e3 10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 10673 { (case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_try") 2>&5
212380e3 10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
631ef239 10682 { echo "$as_me:$LINENO: result: yes" >&5
10683echo "${ECHO_T}yes" >&6; }
212380e3 10684
10685cat >>confdefs.h <<\_ACEOF
10686#define HAVE_EPOLL 1
10687_ACEOF
10688
10689 SELECT_TYPE="epoll"
10690else
10691 echo "$as_me: program exited with status $ac_status" >&5
10692echo "$as_me: failed program was:" >&5
10693sed 's/^/| /' conftest.$ac_ext >&5
10694
10695( exit $ac_status )
631ef239 10696{ echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6; }
212380e3 10698fi
631ef239 10699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 10700fi
631ef239 10701
10702
212380e3 10703 fi
10704fi
10705
10706fi
10707
10708fi
10709
10710if test -z "$SELECT_TYPE"; then
10711 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10712echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10713 { (exit 1); exit 1; }; }
10714fi
10715
10716echo "Using $SELECT_TYPE for select loop."
10717
10718
10719cat >>confdefs.h <<_ACEOF
10720#define SELECT_TYPE "$SELECT_TYPE"
10721_ACEOF
10722
10723
10724
10725
10726
631ef239 10727# Check whether --enable-assert was given.
212380e3 10728if test "${enable_assert+set}" = set; then
631ef239 10729 enableval=$enable_assert; assert=$enableval
212380e3 10730else
10731 assert=no
631ef239 10732fi
10733
212380e3 10734
10735if test "$assert" = no; then
10736
10737cat >>confdefs.h <<\_ACEOF
10738#define NDEBUG 1
10739_ACEOF
10740
10741elif test "$assert" = soft; then
10742
10743cat >>confdefs.h <<\_ACEOF
10744#define SOFT_ASSERT 1
10745_ACEOF
10746
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define NDEBUG 1
10750_ACEOF
10751
10752elif test "$assert" = yes; then
10753 assert = "hard";
10754fi
10755
631ef239 10756{ echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10757echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10758# Check whether --enable-iodebug was given.
212380e3 10759if test "${enable_iodebug+set}" = set; then
631ef239 10760 enableval=$enable_iodebug; iodebug=$enableval
212380e3 10761else
10762 iodebug=no
631ef239 10763fi
10764
212380e3 10765
10766if test "$iodebug" = yes; then
10767
10768cat >>confdefs.h <<\_ACEOF
10769#define USE_IODEBUG_HOOKS 1
10770_ACEOF
10771
631ef239 10772 { echo "$as_me:$LINENO: result: yes" >&5
10773echo "${ECHO_T}yes" >&6; }
212380e3 10774else
631ef239 10775 { echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6; }
212380e3 10777fi
10778
10779
631ef239 10780{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10781echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10782# Check whether --enable-profile was given.
212380e3 10783if test "${enable_profile+set}" = set; then
631ef239 10784 enableval=$enable_profile; profile=$enableval
212380e3 10785else
10786 profile=no
631ef239 10787fi
10788
212380e3 10789
10790if test "$profile" = yes; then
10791 if test "$ac_cv_c_compiler_gnu" = yes; then
10792 IRC_CFLAGS="$IRC_CFLAGS -pg"
631ef239 10793 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10794echo "${ECHO_T}yes, adding -pg" >&6; }
212380e3 10795
10796cat >>confdefs.h <<\_ACEOF
10797#define CHARYBDIS_PROFILE 1
10798_ACEOF
10799
10800 else
631ef239 10801 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10802echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
212380e3 10803 fi
10804else
631ef239 10805 { echo "$as_me:$LINENO: result: no" >&5
10806echo "${ECHO_T}no" >&6; }
212380e3 10807fi
10808
631ef239 10809# Check whether --enable-balloc was given.
212380e3 10810if test "${enable_balloc+set}" = set; then
631ef239 10811 enableval=$enable_balloc; balloc=$enableval
212380e3 10812else
10813 balloc=yes
631ef239 10814fi
10815
212380e3 10816
10817if test "$balloc" = no; then
10818
10819cat >>confdefs.h <<\_ACEOF
10820#define NOBALLOC 1
10821_ACEOF
10822
10823fi
10824
631ef239 10825# Check whether --enable-small-net was given.
212380e3 10826if test "${enable_small_net+set}" = set; then
631ef239 10827 enableval=$enable_small_net; small_net=$enableval
212380e3 10828else
10829 small_net=no
631ef239 10830fi
10831
212380e3 10832
10833if test "$small_net" = yes; then
10834
10835cat >>confdefs.h <<\_ACEOF
10836#define NICKNAMEHISTORYLENGTH 1500
10837_ACEOF
10838
10839
10840cat >>confdefs.h <<\_ACEOF
10841#define CHANNEL_HEAP_SIZE 256
10842_ACEOF
10843
10844
10845cat >>confdefs.h <<\_ACEOF
10846#define BAN_HEAP_SIZE 128
10847_ACEOF
10848
10849
10850cat >>confdefs.h <<\_ACEOF
10851#define CLIENT_HEAP_SIZE 256
10852_ACEOF
10853
10854
10855cat >>confdefs.h <<\_ACEOF
10856#define LCLIENT_HEAP_SIZE 128
10857_ACEOF
10858
10859
10860cat >>confdefs.h <<\_ACEOF
10861#define PCLIENT_HEAP_SIZE 32
10862_ACEOF
10863
10864
10865cat >>confdefs.h <<\_ACEOF
10866#define USER_HEAP_SIZE 128
10867_ACEOF
10868
10869
10870cat >>confdefs.h <<\_ACEOF
10871#define DNODE_HEAP_SIZE 256
10872_ACEOF
10873
10874
10875cat >>confdefs.h <<\_ACEOF
10876#define TOPIC_HEAP_SIZE 256
10877_ACEOF
10878
10879
10880cat >>confdefs.h <<\_ACEOF
10881#define LINEBUF_HEAP_SIZE 128
10882_ACEOF
10883
10884
10885cat >>confdefs.h <<\_ACEOF
10886#define MEMBER_HEAP_SIZE 256
10887_ACEOF
10888
10889
10890cat >>confdefs.h <<\_ACEOF
10891#define ND_HEAP_SIZE 128
10892_ACEOF
10893
10894
10895cat >>confdefs.h <<\_ACEOF
10896#define CONFITEM_HEAP_SIZE 128
10897_ACEOF
10898
10899
10900cat >>confdefs.h <<\_ACEOF
10901#define MONITOR_HEAP_SIZE 128
10902_ACEOF
10903
10904else
10905
10906cat >>confdefs.h <<\_ACEOF
10907#define NICKNAMEHISTORYLENGTH 15000
10908_ACEOF
10909
10910
10911cat >>confdefs.h <<\_ACEOF
10912#define CHANNEL_HEAP_SIZE 8192
10913_ACEOF
10914
10915
10916cat >>confdefs.h <<\_ACEOF
10917#define BAN_HEAP_SIZE 4096
10918_ACEOF
10919
10920
10921cat >>confdefs.h <<\_ACEOF
10922#define CLIENT_HEAP_SIZE 8192
10923_ACEOF
10924
10925
10926cat >>confdefs.h <<\_ACEOF
10927#define LCLIENT_HEAP_SIZE 1024
10928_ACEOF
10929
10930
10931cat >>confdefs.h <<\_ACEOF
10932#define PCLIENT_HEAP_SIZE 256
10933_ACEOF
10934
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define USER_HEAP_SIZE 8192
10938_ACEOF
10939
10940
10941cat >>confdefs.h <<\_ACEOF
10942#define DNODE_HEAP_SIZE 8192
10943_ACEOF
10944
10945
10946cat >>confdefs.h <<\_ACEOF
10947#define TOPIC_HEAP_SIZE 4096
10948_ACEOF
10949
10950
10951cat >>confdefs.h <<\_ACEOF
10952#define LINEBUF_HEAP_SIZE 2048
10953_ACEOF
10954
10955
10956cat >>confdefs.h <<\_ACEOF
10957#define MEMBER_HEAP_SIZE 32768
10958_ACEOF
10959
10960
10961cat >>confdefs.h <<\_ACEOF
10962#define ND_HEAP_SIZE 512
10963_ACEOF
10964
10965
10966cat >>confdefs.h <<\_ACEOF
10967#define CONFITEM_HEAP_SIZE 256
10968_ACEOF
10969
10970
10971cat >>confdefs.h <<\_ACEOF
10972#define MONITOR_HEAP_SIZE 1024
10973_ACEOF
10974
10975fi
10976
10977
631ef239 10978# Check whether --with-nicklen was given.
212380e3 10979if test "${with_nicklen+set}" = set; then
631ef239 10980 withval=$with_nicklen;
212380e3 10981 if test $withval -ge 50; then
10982 NICKLEN=50
10983 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
10984echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
10985 else
10986 NICKLEN="$withval"
10987 fi
10988
10989else
10990 NICKLEN=15
631ef239 10991fi
212380e3 10992
10993
212380e3 10994
631ef239 10995# Check whether --with-topiclen was given.
10996if test "${with_topiclen+set}" = set; then
10997 withval=$with_topiclen;
212380e3 10998 if test $withval -ge 390; then
10999 TOPICLEN=390
11000 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11001echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11002 else
11003 TOPICLEN=$withval
11004 fi
11005
11006else
11007 TOPICLEN=390
212380e3 11008fi
11009
212380e3 11010
11011
11012cat >>confdefs.h <<_ACEOF
11013#define TOPICLEN ${TOPICLEN}
11014_ACEOF
11015
11016
11017cat >>confdefs.h <<_ACEOF
11018#define NICKLEN (${NICKLEN}+1)
11019_ACEOF
11020
11021
631ef239 11022# Check whether --enable-shared-modules was given.
212380e3 11023if test "${enable_shared_modules+set}" = set; then
631ef239 11024 enableval=$enable_shared_modules; shared_modules=$enableval
212380e3 11025else
11026 shared_modules="yes"
631ef239 11027fi
11028
212380e3 11029
11030if test "$shared_modules" = yes; then
11031
11032 if test "$CYGWIN" = yes; then
11033 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11034echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11035 shared_modules="no"
11036 fi
11037
11038 if test "$CC" = tcc -a "$TenDRA" = "no"; then
11039 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11040echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11041 shared_modules="no"
11042 fi
11043fi
11044
11045if test "$shared_modules" = yes; then
11046 DYNLINK_C=dynlink.c
11047
11048for ac_header in dlfcn.h
11049do
11050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 11051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11056fi
631ef239 11057ac_res=`eval echo '${'$as_ac_Header'}'`
11058 { echo "$as_me:$LINENO: result: $ac_res" >&5
11059echo "${ECHO_T}$ac_res" >&6; }
212380e3 11060else
11061 # Is the header compilable?
631ef239 11062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3 11064cat >conftest.$ac_ext <<_ACEOF
11065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
11070$ac_includes_default
11071#include <$ac_header>
11072_ACEOF
11073rm -f conftest.$ac_objext
631ef239 11074if { (ac_try="$ac_compile"
11075case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_compile") 2>conftest.er1
212380e3 11081 ac_status=$?
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest.$ac_objext; then
212380e3 11090 ac_header_compiler=yes
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
631ef239 11095 ac_header_compiler=no
212380e3 11096fi
631ef239 11097
11098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11100echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 11101
11102# Is the header present?
631ef239 11103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3 11105cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111#include <$ac_header>
11112_ACEOF
631ef239 11113if { (ac_try="$ac_cpp conftest.$ac_ext"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11125 (exit $ac_status); } >/dev/null && {
11126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 }; then
212380e3 11129 ac_header_preproc=yes
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133
11134 ac_header_preproc=no
11135fi
631ef239 11136
212380e3 11137rm -f conftest.err conftest.$ac_ext
631ef239 11138{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11139echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 11140
11141# So? What about this header?
11142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11143 yes:no: )
11144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11148 ac_header_preproc=yes
11149 ;;
11150 no:yes:* )
11151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 11163
212380e3 11164 ;;
11165esac
631ef239 11166{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11168if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11170else
11171 eval "$as_ac_Header=\$ac_header_preproc"
11172fi
631ef239 11173ac_res=`eval echo '${'$as_ac_Header'}'`
11174 { echo "$as_me:$LINENO: result: $ac_res" >&5
11175echo "${ECHO_T}$ac_res" >&6; }
212380e3 11176
11177fi
11178if test `eval echo '${'$as_ac_Header'}'` = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11181_ACEOF
11182
11183fi
11184
11185done
11186
631ef239 11187 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11188echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
212380e3 11189if test "${ac_cv_search_shl_load+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
11192 ac_func_search_save_LIBS=$LIBS
212380e3 11193cat >conftest.$ac_ext <<_ACEOF
11194/* confdefs.h. */
11195_ACEOF
11196cat confdefs.h >>conftest.$ac_ext
11197cat >>conftest.$ac_ext <<_ACEOF
11198/* end confdefs.h. */
11199
631ef239 11200/* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
212380e3 11203#ifdef __cplusplus
11204extern "C"
11205#endif
212380e3 11206char shl_load ();
11207int
11208main ()
11209{
631ef239 11210return shl_load ();
212380e3 11211 ;
11212 return 0;
11213}
11214_ACEOF
631ef239 11215for ac_lib in '' dld; do
11216 if test -z "$ac_lib"; then
11217 ac_res="none required"
11218 else
11219 ac_res=-l$ac_lib
11220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11221 fi
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223if { (ac_try="$ac_link"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
212380e3 11230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest$ac_exeext &&
11239 $as_test_x conftest$ac_exeext; then
11240 ac_cv_search_shl_load=$ac_res
212380e3 11241else
11242 echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
212380e3 11245
631ef239 11246fi
212380e3 11247
631ef239 11248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11249 conftest$ac_exeext
11250 if test "${ac_cv_search_shl_load+set}" = set; then
11251 break
212380e3 11252fi
631ef239 11253done
11254if test "${ac_cv_search_shl_load+set}" = set; then
11255 :
11256else
11257 ac_cv_search_shl_load=no
212380e3 11258fi
631ef239 11259rm conftest.$ac_ext
212380e3 11260LIBS=$ac_func_search_save_LIBS
11261fi
631ef239 11262{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11263echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11264ac_res=$ac_cv_search_shl_load
11265if test "$ac_res" != no; then
11266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 11267
11268
11269cat >>confdefs.h <<\_ACEOF
11270#define HAVE_SHL_LOAD 1
11271_ACEOF
11272
11273 SUFFIX=".sl"
11274 MOD_TARGET=hpux_shared
11275 SEDOBJ="s/\.o/.sl/g"
11276
11277else
11278
631ef239 11279 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11280echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
212380e3 11281if test "${ac_cv_search_dlopen+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 ac_func_search_save_LIBS=$LIBS
212380e3 11285cat >conftest.$ac_ext <<_ACEOF
11286/* confdefs.h. */
11287_ACEOF
11288cat confdefs.h >>conftest.$ac_ext
11289cat >>conftest.$ac_ext <<_ACEOF
11290/* end confdefs.h. */
11291
631ef239 11292/* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
212380e3 11295#ifdef __cplusplus
11296extern "C"
11297#endif
212380e3 11298char dlopen ();
11299int
11300main ()
11301{
631ef239 11302return dlopen ();
212380e3 11303 ;
11304 return 0;
11305}
11306_ACEOF
631ef239 11307for ac_lib in '' dl c_r; do
11308 if test -z "$ac_lib"; then
11309 ac_res="none required"
11310 else
11311 ac_res=-l$ac_lib
11312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11313 fi
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315if { (ac_try="$ac_link"
11316case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_link") 2>conftest.er1
212380e3 11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11327 (exit $ac_status); } && {
11328 test -z "$ac_c_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest$ac_exeext &&
11331 $as_test_x conftest$ac_exeext; then
11332 ac_cv_search_dlopen=$ac_res
212380e3 11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
212380e3 11337
631ef239 11338fi
212380e3 11339
631ef239 11340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11341 conftest$ac_exeext
11342 if test "${ac_cv_search_dlopen+set}" = set; then
11343 break
212380e3 11344fi
631ef239 11345done
11346if test "${ac_cv_search_dlopen+set}" = set; then
11347 :
11348else
11349 ac_cv_search_dlopen=no
212380e3 11350fi
631ef239 11351rm conftest.$ac_ext
212380e3 11352LIBS=$ac_func_search_save_LIBS
11353fi
631ef239 11354{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11355echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11356ac_res=$ac_cv_search_dlopen
11357if test "$ac_res" != no; then
11358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 11359
11360
11361cat >>confdefs.h <<\_ACEOF
11362#define HAVE_DLOPEN 1
11363_ACEOF
11364
11365 SUFFIX=".so"
11366 MOD_TARGET=shared_modules
11367 SEDOBJ="s/\.o/.so/g"
11368 if test "$AppleGCC" = yes; then
11369
11370for ac_header in mach-o/dyld.h
11371do
11372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 11373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378fi
631ef239 11379ac_res=`eval echo '${'$as_ac_Header'}'`
11380 { echo "$as_me:$LINENO: result: $ac_res" >&5
11381echo "${ECHO_T}$ac_res" >&6; }
212380e3 11382else
11383 # Is the header compilable?
631ef239 11384{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3 11386cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
11392$ac_includes_default
11393#include <$ac_header>
11394_ACEOF
11395rm -f conftest.$ac_objext
631ef239 11396if { (ac_try="$ac_compile"
11397case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_compile") 2>conftest.er1
212380e3 11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
212380e3 11412 ac_header_compiler=yes
11413else
11414 echo "$as_me: failed program was:" >&5
11415sed 's/^/| /' conftest.$ac_ext >&5
11416
631ef239 11417 ac_header_compiler=no
212380e3 11418fi
631ef239 11419
11420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 11423
11424# Is the header present?
631ef239 11425{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3 11427cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433#include <$ac_header>
11434_ACEOF
631ef239 11435if { (ac_try="$ac_cpp conftest.$ac_ext"
11436case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439esac
11440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 11442 ac_status=$?
11443 grep -v '^ *+' conftest.er1 >conftest.err
11444 rm -f conftest.er1
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11447 (exit $ac_status); } >/dev/null && {
11448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11449 test ! -s conftest.err
11450 }; then
212380e3 11451 ac_header_preproc=yes
11452else
11453 echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 ac_header_preproc=no
11457fi
631ef239 11458
212380e3 11459rm -f conftest.err conftest.$ac_ext
631ef239 11460{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11461echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 11462
11463# So? What about this header?
11464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11465 yes:no: )
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11470 ac_header_preproc=yes
11471 ;;
11472 no:yes:* )
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 11485
212380e3 11486 ;;
11487esac
631ef239 11488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493 eval "$as_ac_Header=\$ac_header_preproc"
11494fi
631ef239 11495ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497echo "${ECHO_T}$ac_res" >&6; }
212380e3 11498
11499fi
11500if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503_ACEOF
11504
11505fi
11506
11507done
11508
11509 fi
631ef239 11510 { echo "$as_me:$LINENO: checking for dlsym" >&5
11511echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
212380e3 11512if test "${ac_cv_func_dlsym+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11514else
11515 cat >conftest.$ac_ext <<_ACEOF
11516/* confdefs.h. */
11517_ACEOF
11518cat confdefs.h >>conftest.$ac_ext
11519cat >>conftest.$ac_ext <<_ACEOF
11520/* end confdefs.h. */
11521/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11523#define dlsym innocuous_dlsym
11524
11525/* System header to define __stub macros and hopefully few prototypes,
11526 which can conflict with char dlsym (); below.
11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11528 <limits.h> exists even on freestanding compilers. */
11529
11530#ifdef __STDC__
11531# include <limits.h>
11532#else
11533# include <assert.h>
11534#endif
11535
11536#undef dlsym
11537
631ef239 11538/* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
212380e3 11541#ifdef __cplusplus
11542extern "C"
212380e3 11543#endif
212380e3 11544char dlsym ();
11545/* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
631ef239 11548#if defined __stub_dlsym || defined __stub___dlsym
212380e3 11549choke me
212380e3 11550#endif
11551
11552int
11553main ()
11554{
631ef239 11555return dlsym ();
212380e3 11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 11561if { (ac_try="$ac_link"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
212380e3 11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest$ac_exeext &&
11577 $as_test_x conftest$ac_exeext; then
212380e3 11578 ac_cv_func_dlsym=yes
11579else
11580 echo "$as_me: failed program was:" >&5
11581sed 's/^/| /' conftest.$ac_ext >&5
11582
631ef239 11583 ac_cv_func_dlsym=no
212380e3 11584fi
631ef239 11585
11586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 11587 conftest$ac_exeext conftest.$ac_ext
11588fi
631ef239 11589{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11590echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
212380e3 11591if test $ac_cv_func_dlsym = yes; then
11592 :
11593else
11594
11595 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11596echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11597 shared_modules=no
11598
11599fi
11600
11601
11602for ac_func in dlfunc
11603do
11604as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 11605{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11606echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11607if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609else
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11618#define $ac_func innocuous_$ac_func
11619
11620/* System header to define __stub macros and hopefully few prototypes,
11621 which can conflict with char $ac_func (); below.
11622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11623 <limits.h> exists even on freestanding compilers. */
11624
11625#ifdef __STDC__
11626# include <limits.h>
11627#else
11628# include <assert.h>
11629#endif
11630
11631#undef $ac_func
11632
631ef239 11633/* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
212380e3 11636#ifdef __cplusplus
11637extern "C"
212380e3 11638#endif
212380e3 11639char $ac_func ();
11640/* The GNU C library defines this for functions which it implements
11641 to always fail with ENOSYS. Some functions are actually named
11642 something starting with __ and the normal name is an alias. */
631ef239 11643#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 11644choke me
212380e3 11645#endif
11646
11647int
11648main ()
11649{
631ef239 11650return $ac_func ();
212380e3 11651 ;
11652 return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 11656if { (ac_try="$ac_link"
11657case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
212380e3 11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11668 (exit $ac_status); } && {
11669 test -z "$ac_c_werror_flag" ||
11670 test ! -s conftest.err
11671 } && test -s conftest$ac_exeext &&
11672 $as_test_x conftest$ac_exeext; then
212380e3 11673 eval "$as_ac_var=yes"
11674else
11675 echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
11677
631ef239 11678 eval "$as_ac_var=no"
212380e3 11679fi
631ef239 11680
11681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 11682 conftest$ac_exeext conftest.$ac_ext
11683fi
631ef239 11684ac_res=`eval echo '${'$as_ac_var'}'`
11685 { echo "$as_me:$LINENO: result: $ac_res" >&5
11686echo "${ECHO_T}$ac_res" >&6; }
212380e3 11687if test `eval echo '${'$as_ac_var'}'` = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11690_ACEOF
11691
11692fi
11693done
11694
11695
11696else
11697
11698 shared_modules=no
11699
11700fi
11701
11702
11703fi
11704
11705fi
11706
11707
11708cat >>confdefs.h <<_ACEOF
11709#define SHARED_SUFFIX "$SUFFIX"
11710_ACEOF
11711
11712
11713if test "$shared_modules" = yes; then
11714 # The GNU linker requires the -export-dynamic option to make
11715 # all symbols visible in the dynamic symbol table.
11716 hold_ldflags=$LDFLAGS
631ef239 11717 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11718echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
212380e3 11719 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11720 cat >conftest.$ac_ext <<_ACEOF
11721/* confdefs.h. */
11722_ACEOF
11723cat confdefs.h >>conftest.$ac_ext
11724cat >>conftest.$ac_ext <<_ACEOF
11725/* end confdefs.h. */
11726
11727int
11728main ()
11729{
11730int i;
11731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 11736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
212380e3 11743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest$ac_exeext &&
11752 $as_test_x conftest$ac_exeext; then
212380e3 11753 found=yes
11754else
11755 echo "$as_me: failed program was:" >&5
11756sed 's/^/| /' conftest.$ac_ext >&5
11757
631ef239 11758 found=no
212380e3 11759fi
631ef239 11760
11761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 11762 conftest$ac_exeext conftest.$ac_ext
11763 LDFLAGS=$hold_ldflags
11764
11765 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11766 found="no, IRIX ld uses -B,dynamic"
11767 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11768 fi
11769
11770 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11771 found="no, AIX ld uses -G -brtl"
11772 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11773 fi
11774
631ef239 11775 { echo "$as_me:$LINENO: result: $found" >&5
11776echo "${ECHO_T}$found" >&6; }
212380e3 11777
11778 if test "$found" = yes; then
11779 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11780 fi
11781
631ef239 11782 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11783echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
212380e3 11784 if test "$SGS" = "yes"; then
631ef239 11785 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11786echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3 11787 PICFLAGS="-KPIC -DPIC -G"
11788 fi
11789
11790 if test "$AppleGCC" = "yes"; then
631ef239 11791 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11792echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3 11793 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11794 fi
11795 if test "$HPUX" = "yes" -a "$CC" != gcc; then
631ef239 11796 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11797echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
212380e3 11798 PICFLAGS="+z -r -q -n -c"
631ef239 11799 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11800echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
212380e3 11801
11802 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
631ef239 11803 { echo "$as_me:$LINENO: result: no" >&5
11804echo "${ECHO_T}no" >&6; }
212380e3 11805 else
631ef239 11806 { echo "$as_me:$LINENO: result: yes" >&5
11807echo "${ECHO_T}yes" >&6; }
212380e3 11808 PICFLAGS="$PICFLAGS +ESfic"
11809 fi
11810
11811 LDFLAGS="${LDFLAGS} -Wl,-E"
11812 fi
11813 if test "$Tru" = yes -a "$CC" != gcc; then
631ef239 11814 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11815echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3 11816 PICFLAGS="-shared -expect_unresolved '*' "
11817 LDFLAGS="-call_shared"
11818 fi
11819 if test -z "$PICFLAGS"; then
11820 if test "$ac_cv_c_compiler_gnu" = "yes"; then
631ef239 11821 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11822echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
212380e3 11823 PICFLAGS="-fPIC -DPIC -shared"
11824 else
631ef239 11825 { echo "$as_me:$LINENO: result: no" >&5
11826echo "${ECHO_T}no" >&6; }
212380e3 11827 shared_modules=no
11828 fi
11829 fi
11830fi
11831
11832# This must be down here, or it will mess up checks like the ones
11833# for -Wl,-export-dynamic
11834# -- jilles
631ef239 11835# Check whether --enable-warnings was given.
212380e3 11836if test "${enable_warnings+set}" = set; then
631ef239 11837 enableval=$enable_warnings;
212380e3 11838IRC_CFLAGS="$IRC_CFLAGS -O0"
11839CFLAGS="$IRC_CFLAGS"
11840
11841
631ef239 11842 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11843echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
212380e3 11844 if test "${GCC-no}" = yes
11845 then
11846 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849
11850 oldcflags="${CFLAGS-}"
11851 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11852 cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
11858
11859#include <string.h>
11860#include <stdio.h>
11861int main(void);
11862
11863int
11864main ()
11865{
11866
b1fc1658 11867 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11868
11869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext
631ef239 11874if { (ac_try="$ac_compile"
11875case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11878esac
11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_compile") 2>conftest.er1
212380e3 11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11886 (exit $ac_status); } && {
11887 test -z "$ac_c_werror_flag" ||
11888 test ! -s conftest.err
11889 } && test -s conftest.$ac_objext; then
212380e3 11890 charybdis_cv_c_gcc_w_all=yes
11891else
11892 echo "$as_me: failed program was:" >&5
11893sed 's/^/| /' conftest.$ac_ext >&5
11894
631ef239 11895 charybdis_cv_c_gcc_w_all=no
212380e3 11896fi
631ef239 11897
11898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 11899 CFLAGS="${oldcflags}"
11900fi
11901
11902 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
11903 CWARNS="${CWARNS}-Wall "
631ef239 11904 { echo "$as_me:$LINENO: result: ok" >&5
11905echo "${ECHO_T}ok" >&6; }
212380e3 11906 else
11907 charybdis_cv_c_gcc_w_all=''
631ef239 11908 { echo "$as_me:$LINENO: result: no" >&5
11909echo "${ECHO_T}no" >&6; }
212380e3 11910 fi
11911 else
631ef239 11912 { echo "$as_me:$LINENO: result: no" >&5
11913echo "${ECHO_T}no" >&6; }
212380e3 11914 fi
11915
11916
631ef239 11917 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
11918echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
212380e3 11919 if test "${GCC-no}" = yes
11920 then
11921 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924
11925 oldcflags="${CFLAGS-}"
11926 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
11927 cat >conftest.$ac_ext <<_ACEOF
11928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
11933
11934#include <string.h>
11935#include <stdio.h>
11936int main(void);
11937
11938int
11939main ()
11940{
11941
b1fc1658 11942 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11943
11944 ;
11945 return 0;
11946}
11947_ACEOF
11948rm -f conftest.$ac_objext
631ef239 11949if { (ac_try="$ac_compile"
11950case "(($ac_try" in
11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952 *) ac_try_echo=$ac_try;;
11953esac
11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955 (eval "$ac_compile") 2>conftest.er1
212380e3 11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11961 (exit $ac_status); } && {
11962 test -z "$ac_c_werror_flag" ||
11963 test ! -s conftest.err
11964 } && test -s conftest.$ac_objext; then
212380e3 11965 charybdis_cv_c_gcc_w_pointer_arith=yes
11966else
11967 echo "$as_me: failed program was:" >&5
11968sed 's/^/| /' conftest.$ac_ext >&5
11969
631ef239 11970 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 11971fi
631ef239 11972
11973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 11974 CFLAGS="${oldcflags}"
11975fi
11976
11977 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
11978 CWARNS="${CWARNS}-Wpointer-arith "
631ef239 11979 { echo "$as_me:$LINENO: result: ok" >&5
11980echo "${ECHO_T}ok" >&6; }
212380e3 11981 else
11982 charybdis_cv_c_gcc_w_pointer_arith=''
631ef239 11983 { echo "$as_me:$LINENO: result: no" >&5
11984echo "${ECHO_T}no" >&6; }
212380e3 11985 fi
11986 else
631ef239 11987 { echo "$as_me:$LINENO: result: no" >&5
11988echo "${ECHO_T}no" >&6; }
212380e3 11989 fi
11990
11991
631ef239 11992 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
11993echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
212380e3 11994 if test "${GCC-no}" = yes
11995 then
11996 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11998else
11999
12000 oldcflags="${CFLAGS-}"
12001 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12002 cat >conftest.$ac_ext <<_ACEOF
12003/* confdefs.h. */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12006cat >>conftest.$ac_ext <<_ACEOF
12007/* end confdefs.h. */
12008
12009#include <string.h>
12010#include <stdio.h>
12011int main(void);
12012
12013int
12014main ()
12015{
12016
b1fc1658 12017 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12018
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023rm -f conftest.$ac_objext
631ef239 12024if { (ac_try="$ac_compile"
12025case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_compile") 2>conftest.er1
212380e3 12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12036 (exit $ac_status); } && {
12037 test -z "$ac_c_werror_flag" ||
12038 test ! -s conftest.err
12039 } && test -s conftest.$ac_objext; then
212380e3 12040 charybdis_cv_c_gcc_w_implicit=yes
12041else
12042 echo "$as_me: failed program was:" >&5
12043sed 's/^/| /' conftest.$ac_ext >&5
12044
631ef239 12045 charybdis_cv_c_gcc_w_implicit=no
212380e3 12046fi
631ef239 12047
12048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12049 CFLAGS="${oldcflags}"
12050fi
12051
12052 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
12053 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
631ef239 12054 { echo "$as_me:$LINENO: result: ok" >&5
12055echo "${ECHO_T}ok" >&6; }
212380e3 12056 else
12057 charybdis_cv_c_gcc_w_implicit=''
631ef239 12058 { echo "$as_me:$LINENO: result: no" >&5
12059echo "${ECHO_T}no" >&6; }
212380e3 12060 fi
12061 else
631ef239 12062 { echo "$as_me:$LINENO: result: no" >&5
12063echo "${ECHO_T}no" >&6; }
212380e3 12064 fi
12065
12066
631ef239 12067 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12068echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
212380e3 12069 if test "${GCC-no}" = yes
12070 then
12071 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074
12075 oldcflags="${CFLAGS-}"
12076 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12077 cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083
12084#include <string.h>
12085#include <stdio.h>
12086int main(void);
12087
12088int
12089main ()
12090{
12091
b1fc1658 12092 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12093
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext
631ef239 12099if { (ac_try="$ac_compile"
12100case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12103esac
12104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_compile") 2>conftest.er1
212380e3 12106 ac_status=$?
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest.$ac_objext; then
212380e3 12115 charybdis_cv_c_gcc_w_cast_align=yes
12116else
12117 echo "$as_me: failed program was:" >&5
12118sed 's/^/| /' conftest.$ac_ext >&5
12119
631ef239 12120 charybdis_cv_c_gcc_w_cast_align=no
212380e3 12121fi
631ef239 12122
12123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12124 CFLAGS="${oldcflags}"
12125fi
12126
12127 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
12128 CWARNS="${CWARNS}-Wcast-align "
631ef239 12129 { echo "$as_me:$LINENO: result: ok" >&5
12130echo "${ECHO_T}ok" >&6; }
212380e3 12131 else
12132 charybdis_cv_c_gcc_w_cast_align=''
631ef239 12133 { echo "$as_me:$LINENO: result: no" >&5
12134echo "${ECHO_T}no" >&6; }
212380e3 12135 fi
12136 else
631ef239 12137 { echo "$as_me:$LINENO: result: no" >&5
12138echo "${ECHO_T}no" >&6; }
212380e3 12139 fi
12140
12141
631ef239 12142 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12143echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
212380e3 12144 if test "${GCC-no}" = yes
12145 then
12146 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148else
12149
12150 oldcflags="${CFLAGS-}"
12151 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12152 cat >conftest.$ac_ext <<_ACEOF
12153/* confdefs.h. */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h. */
12158
12159#include <string.h>
12160#include <stdio.h>
12161int main(void);
12162
12163int
12164main ()
12165{
12166
b1fc1658 12167 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12168
12169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext
631ef239 12174if { (ac_try="$ac_compile"
12175case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178esac
12179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_compile") 2>conftest.er1
212380e3 12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
212380e3 12190 charybdis_cv_c_gcc_w_cast_qual=yes
12191else
12192 echo "$as_me: failed program was:" >&5
12193sed 's/^/| /' conftest.$ac_ext >&5
12194
631ef239 12195 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 12196fi
631ef239 12197
12198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12199 CFLAGS="${oldcflags}"
12200fi
12201
12202 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12203 CWARNS="${CWARNS}-Wcast-qual "
631ef239 12204 { echo "$as_me:$LINENO: result: ok" >&5
12205echo "${ECHO_T}ok" >&6; }
212380e3 12206 else
12207 charybdis_cv_c_gcc_w_cast_qual=''
631ef239 12208 { echo "$as_me:$LINENO: result: no" >&5
12209echo "${ECHO_T}no" >&6; }
212380e3 12210 fi
12211 else
631ef239 12212 { echo "$as_me:$LINENO: result: no" >&5
12213echo "${ECHO_T}no" >&6; }
212380e3 12214 fi
12215
12216
631ef239 12217 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12218echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
212380e3 12219 if test "${GCC-no}" = yes
12220 then
12221 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224
12225 oldcflags="${CFLAGS-}"
12226 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12227 cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233
12234#include <string.h>
12235#include <stdio.h>
12236int main(void);
12237
12238int
12239main ()
12240{
12241
b1fc1658 12242 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12243
12244 ;
12245 return 0;
12246}
12247_ACEOF
12248rm -f conftest.$ac_objext
631ef239 12249if { (ac_try="$ac_compile"
12250case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_compile") 2>conftest.er1
212380e3 12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest.$ac_objext; then
212380e3 12265 charybdis_cv_c_gcc_prototypes=yes
12266else
12267 echo "$as_me: failed program was:" >&5
12268sed 's/^/| /' conftest.$ac_ext >&5
12269
631ef239 12270 charybdis_cv_c_gcc_prototypes=no
212380e3 12271fi
631ef239 12272
12273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12274 CFLAGS="${oldcflags}"
12275fi
12276
12277 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12278 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
631ef239 12279 { echo "$as_me:$LINENO: result: ok" >&5
12280echo "${ECHO_T}ok" >&6; }
212380e3 12281 else
12282 charybdis_cv_c_gcc_prototypes=''
631ef239 12283 { echo "$as_me:$LINENO: result: no" >&5
12284echo "${ECHO_T}no" >&6; }
212380e3 12285 fi
12286 else
631ef239 12287 { echo "$as_me:$LINENO: result: no" >&5
12288echo "${ECHO_T}no" >&6; }
212380e3 12289 fi
12290
12291
631ef239 12292 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12293echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
212380e3 12294 if test "${GCC-no}" = yes
12295 then
12296 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299
12300 oldcflags="${CFLAGS-}"
12301 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12302 cat >conftest.$ac_ext <<_ACEOF
12303/* confdefs.h. */
12304_ACEOF
12305cat confdefs.h >>conftest.$ac_ext
12306cat >>conftest.$ac_ext <<_ACEOF
12307/* end confdefs.h. */
12308
12309#include <string.h>
12310#include <stdio.h>
12311int main(void);
12312
12313int
12314main ()
12315{
12316
b1fc1658 12317 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12318
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext
631ef239 12324if { (ac_try="$ac_compile"
12325case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_compile") 2>conftest.er1
212380e3 12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12336 (exit $ac_status); } && {
12337 test -z "$ac_c_werror_flag" ||
12338 test ! -s conftest.err
12339 } && test -s conftest.$ac_objext; then
212380e3 12340 charybdis_cv_c_gcc_parenthesis=yes
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
631ef239 12345 charybdis_cv_c_gcc_parenthesis=no
212380e3 12346fi
631ef239 12347
12348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12349 CFLAGS="${oldcflags}"
12350fi
12351
12352 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12353 CWARNS="${CWARNS}-Wparenthesis "
631ef239 12354 { echo "$as_me:$LINENO: result: ok" >&5
12355echo "${ECHO_T}ok" >&6; }
212380e3 12356 else
12357 charybdis_cv_c_gcc_parenthesis=''
631ef239 12358 { echo "$as_me:$LINENO: result: no" >&5
12359echo "${ECHO_T}no" >&6; }
212380e3 12360 fi
12361 else
631ef239 12362 { echo "$as_me:$LINENO: result: no" >&5
12363echo "${ECHO_T}no" >&6; }
212380e3 12364 fi
12365
12366
631ef239 12367 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12368echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
212380e3 12369 if test "${GCC-no}" = yes
12370 then
12371 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374
12375 oldcflags="${CFLAGS-}"
12376 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383
12384#include <string.h>
12385#include <stdio.h>
12386int main(void);
12387
12388int
12389main ()
12390{
12391
b1fc1658 12392 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12393
12394 ;
12395 return 0;
12396}
12397_ACEOF
12398rm -f conftest.$ac_objext
631ef239 12399if { (ac_try="$ac_compile"
12400case "(($ac_try" in
12401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402 *) ac_try_echo=$ac_try;;
12403esac
12404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405 (eval "$ac_compile") 2>conftest.er1
212380e3 12406 ac_status=$?
12407 grep -v '^ *+' conftest.er1 >conftest.err
12408 rm -f conftest.er1
12409 cat conftest.err >&5
12410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest.$ac_objext; then
212380e3 12415 charybdis_cv_c_gcc_w=yes
12416else
12417 echo "$as_me: failed program was:" >&5
12418sed 's/^/| /' conftest.$ac_ext >&5
12419
631ef239 12420 charybdis_cv_c_gcc_w=no
212380e3 12421fi
631ef239 12422
12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12424 CFLAGS="${oldcflags}"
12425fi
12426
12427 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12428 CWARNS="${CWARNS}-W -Wno-unused "
631ef239 12429 { echo "$as_me:$LINENO: result: ok" >&5
12430echo "${ECHO_T}ok" >&6; }
212380e3 12431 else
12432 charybdis_cv_c_gcc_w=''
631ef239 12433 { echo "$as_me:$LINENO: result: no" >&5
12434echo "${ECHO_T}no" >&6; }
212380e3 12435 fi
12436 else
631ef239 12437 { echo "$as_me:$LINENO: result: no" >&5
12438echo "${ECHO_T}no" >&6; }
212380e3 12439 fi
12440
12441
631ef239 12442 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12443echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
212380e3 12444 if test "${GCC-no}" = yes
12445 then
12446 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449
12450 oldcflags="${CFLAGS-}"
12451 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12452 cat >conftest.$ac_ext <<_ACEOF
12453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458
12459#include <string.h>
12460#include <stdio.h>
12461int main(void);
12462
12463int
12464main ()
12465{
12466
b1fc1658 12467 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
631ef239 12474if { (ac_try="$ac_compile"
12475case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478esac
12479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_compile") 2>conftest.er1
212380e3 12481 ac_status=$?
12482 grep -v '^ *+' conftest.er1 >conftest.err
12483 rm -f conftest.er1
12484 cat conftest.err >&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12486 (exit $ac_status); } && {
12487 test -z "$ac_c_werror_flag" ||
12488 test ! -s conftest.err
12489 } && test -s conftest.$ac_objext; then
212380e3 12490 charybdis_cv_c_gcc_w_extra=yes
12491else
12492 echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
631ef239 12495 charybdis_cv_c_gcc_w_extra=no
212380e3 12496fi
631ef239 12497
12498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12499 CFLAGS="${oldcflags}"
12500fi
12501
12502 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12503 CWARNS="${CWARNS}-Wextra "
631ef239 12504 { echo "$as_me:$LINENO: result: ok" >&5
12505echo "${ECHO_T}ok" >&6; }
212380e3 12506 else
12507 charybdis_cv_c_gcc_w_extra=''
631ef239 12508 { echo "$as_me:$LINENO: result: no" >&5
12509echo "${ECHO_T}no" >&6; }
212380e3 12510 fi
12511 else
631ef239 12512 { echo "$as_me:$LINENO: result: no" >&5
12513echo "${ECHO_T}no" >&6; }
212380e3 12514 fi
12515
12516
631ef239 12517 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12518echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
212380e3 12519 if test "${GCC-no}" = yes
12520 then
12521 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524
12525 oldcflags="${CFLAGS-}"
12526 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12527 cat >conftest.$ac_ext <<_ACEOF
12528/* confdefs.h. */
12529_ACEOF
12530cat confdefs.h >>conftest.$ac_ext
12531cat >>conftest.$ac_ext <<_ACEOF
12532/* end confdefs.h. */
12533
12534#include <string.h>
12535#include <stdio.h>
12536int main(void);
12537
12538int
12539main ()
12540{
12541
b1fc1658 12542 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12543
12544 ;
12545 return 0;
12546}
12547_ACEOF
12548rm -f conftest.$ac_objext
631ef239 12549if { (ac_try="$ac_compile"
12550case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553esac
12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_compile") 2>conftest.er1
212380e3 12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest.$ac_objext; then
212380e3 12565 charybdis_cv_c_gcc_w_shadow=yes
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
631ef239 12570 charybdis_cv_c_gcc_w_shadow=no
212380e3 12571fi
631ef239 12572
12573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12574 CFLAGS="${oldcflags}"
12575fi
12576
12577 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12578 CWARNS="${CWARNS}-Wshadow "
631ef239 12579 { echo "$as_me:$LINENO: result: ok" >&5
12580echo "${ECHO_T}ok" >&6; }
212380e3 12581 else
12582 charybdis_cv_c_gcc_w_shadow=''
631ef239 12583 { echo "$as_me:$LINENO: result: no" >&5
12584echo "${ECHO_T}no" >&6; }
212380e3 12585 fi
12586 else
631ef239 12587 { echo "$as_me:$LINENO: result: no" >&5
12588echo "${ECHO_T}no" >&6; }
212380e3 12589 fi
12590
12591
631ef239 12592 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12593echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
212380e3 12594 if test "${GCC-no}" = yes
12595 then
12596 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12598else
12599
12600 oldcflags="${CFLAGS-}"
12601 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12602 cat >conftest.$ac_ext <<_ACEOF
12603/* confdefs.h. */
12604_ACEOF
12605cat confdefs.h >>conftest.$ac_ext
12606cat >>conftest.$ac_ext <<_ACEOF
12607/* end confdefs.h. */
12608
12609#include <string.h>
12610#include <stdio.h>
12611int main(void);
12612
12613int
12614main ()
12615{
12616
b1fc1658 12617 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12618
12619 ;
12620 return 0;
12621}
12622_ACEOF
12623rm -f conftest.$ac_objext
631ef239 12624if { (ac_try="$ac_compile"
12625case "(($ac_try" in
12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627 *) ac_try_echo=$ac_try;;
12628esac
12629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630 (eval "$ac_compile") 2>conftest.er1
212380e3 12631 ac_status=$?
12632 grep -v '^ *+' conftest.er1 >conftest.err
12633 rm -f conftest.er1
12634 cat conftest.err >&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest.$ac_objext; then
212380e3 12640 charybdis_cv_c_gcc_w_missing_noreturn=yes
12641else
12642 echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
631ef239 12645 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 12646fi
631ef239 12647
12648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12649 CFLAGS="${oldcflags}"
12650fi
12651
12652 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12653 CWARNS="${CWARNS}-Wmissing-noreturn "
631ef239 12654 { echo "$as_me:$LINENO: result: ok" >&5
12655echo "${ECHO_T}ok" >&6; }
212380e3 12656 else
12657 charybdis_cv_c_gcc_w_missing_noreturn=''
631ef239 12658 { echo "$as_me:$LINENO: result: no" >&5
12659echo "${ECHO_T}no" >&6; }
212380e3 12660 fi
12661 else
631ef239 12662 { echo "$as_me:$LINENO: result: no" >&5
12663echo "${ECHO_T}no" >&6; }
212380e3 12664 fi
12665
12666
631ef239 12667 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12668echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
212380e3 12669 if test "${GCC-no}" = yes
12670 then
12671 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673else
12674
12675 oldcflags="${CFLAGS-}"
12676 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12677 cat >conftest.$ac_ext <<_ACEOF
12678/* confdefs.h. */
12679_ACEOF
12680cat confdefs.h >>conftest.$ac_ext
12681cat >>conftest.$ac_ext <<_ACEOF
12682/* end confdefs.h. */
12683
12684#include <string.h>
12685#include <stdio.h>
12686int main(void);
12687
12688int
12689main ()
12690{
12691
b1fc1658 12692 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12693
12694 ;
12695 return 0;
12696}
12697_ACEOF
12698rm -f conftest.$ac_objext
631ef239 12699if { (ac_try="$ac_compile"
12700case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12703esac
12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_compile") 2>conftest.er1
212380e3 12706 ac_status=$?
12707 grep -v '^ *+' conftest.er1 >conftest.err
12708 rm -f conftest.er1
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12711 (exit $ac_status); } && {
12712 test -z "$ac_c_werror_flag" ||
12713 test ! -s conftest.err
12714 } && test -s conftest.$ac_objext; then
212380e3 12715 charybdis_cv_c_gcc_w_undef=yes
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
631ef239 12720 charybdis_cv_c_gcc_w_undef=no
212380e3 12721fi
631ef239 12722
12723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12724 CFLAGS="${oldcflags}"
12725fi
12726
12727 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12728 CWARNS="${CWARNS}-Wundef "
631ef239 12729 { echo "$as_me:$LINENO: result: ok" >&5
12730echo "${ECHO_T}ok" >&6; }
212380e3 12731 else
12732 charybdis_cv_c_gcc_w_undef=''
631ef239 12733 { echo "$as_me:$LINENO: result: no" >&5
12734echo "${ECHO_T}no" >&6; }
212380e3 12735 fi
12736 else
631ef239 12737 { echo "$as_me:$LINENO: result: no" >&5
12738echo "${ECHO_T}no" >&6; }
212380e3 12739 fi
12740
12741
631ef239 12742 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12743echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
212380e3 12744 if test "${GCC-no}" = yes
12745 then
12746 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748else
12749
12750 oldcflags="${CFLAGS-}"
12751 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12752 cat >conftest.$ac_ext <<_ACEOF
12753/* confdefs.h. */
12754_ACEOF
12755cat confdefs.h >>conftest.$ac_ext
12756cat >>conftest.$ac_ext <<_ACEOF
12757/* end confdefs.h. */
12758
12759#include <string.h>
12760#include <stdio.h>
12761int main(void);
12762
12763int
12764main ()
12765{
12766
b1fc1658 12767 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12768
12769 ;
12770 return 0;
12771}
12772_ACEOF
12773rm -f conftest.$ac_objext
631ef239 12774if { (ac_try="$ac_compile"
12775case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
212380e3 12781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12786 (exit $ac_status); } && {
12787 test -z "$ac_c_werror_flag" ||
12788 test ! -s conftest.err
12789 } && test -s conftest.$ac_objext; then
212380e3 12790 charybdis_cv_c_gcc_w_packed=yes
12791else
12792 echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
631ef239 12795 charybdis_cv_c_gcc_w_packed=no
212380e3 12796fi
631ef239 12797
12798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12799 CFLAGS="${oldcflags}"
12800fi
12801
12802 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12803 CWARNS="${CWARNS}-Wpacked "
631ef239 12804 { echo "$as_me:$LINENO: result: ok" >&5
12805echo "${ECHO_T}ok" >&6; }
212380e3 12806 else
12807 charybdis_cv_c_gcc_w_packed=''
631ef239 12808 { echo "$as_me:$LINENO: result: no" >&5
12809echo "${ECHO_T}no" >&6; }
212380e3 12810 fi
12811 else
631ef239 12812 { echo "$as_me:$LINENO: result: no" >&5
12813echo "${ECHO_T}no" >&6; }
212380e3 12814 fi
12815
12816
631ef239 12817 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12818echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
212380e3 12819 if test "${GCC-no}" = yes
12820 then
12821 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12823else
12824
12825 oldcflags="${CFLAGS-}"
12826 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12827 cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h. */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h. */
12833
12834#include <string.h>
12835#include <stdio.h>
12836int main(void);
12837
12838int
12839main ()
12840{
12841
b1fc1658 12842 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
631ef239 12849if { (ac_try="$ac_compile"
12850case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12853esac
12854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_compile") 2>conftest.er1
212380e3 12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
212380e3 12865 charybdis_cv_c_gcc_w_nested_externs=yes
12866else
12867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
631ef239 12870 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 12871fi
631ef239 12872
12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12874 CFLAGS="${oldcflags}"
12875fi
12876
12877 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12878 CWARNS="${CWARNS}-Wnested-externs "
631ef239 12879 { echo "$as_me:$LINENO: result: ok" >&5
12880echo "${ECHO_T}ok" >&6; }
212380e3 12881 else
12882 charybdis_cv_c_gcc_w_nested_externs=''
631ef239 12883 { echo "$as_me:$LINENO: result: no" >&5
12884echo "${ECHO_T}no" >&6; }
212380e3 12885 fi
12886 else
631ef239 12887 { echo "$as_me:$LINENO: result: no" >&5
12888echo "${ECHO_T}no" >&6; }
212380e3 12889 fi
12890
12891
631ef239 12892 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
12893echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
212380e3 12894 if test "${GCC-no}" = yes
12895 then
12896 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899
12900 oldcflags="${CFLAGS-}"
12901 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
12902 cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908
12909#include <string.h>
12910#include <stdio.h>
12911int main(void);
12912
12913int
12914main ()
12915{
12916
b1fc1658 12917 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12918
12919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext
631ef239 12924if { (ac_try="$ac_compile"
12925case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
12929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_compile") 2>conftest.er1
212380e3 12931 ac_status=$?
12932 grep -v '^ *+' conftest.er1 >conftest.err
12933 rm -f conftest.er1
12934 cat conftest.err >&5
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12936 (exit $ac_status); } && {
12937 test -z "$ac_c_werror_flag" ||
12938 test ! -s conftest.err
12939 } && test -s conftest.$ac_objext; then
212380e3 12940 charybdis_cv_c_gcc_w_bad_function_cast=yes
12941else
12942 echo "$as_me: failed program was:" >&5
12943sed 's/^/| /' conftest.$ac_ext >&5
12944
631ef239 12945 charybdis_cv_c_gcc_w_bad_function_cast=no
212380e3 12946fi
631ef239 12947
12948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12949 CFLAGS="${oldcflags}"
12950fi
12951
12952 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
12953 CWARNS="${CWARNS}-Wbad-function-cast "
631ef239 12954 { echo "$as_me:$LINENO: result: ok" >&5
12955echo "${ECHO_T}ok" >&6; }
212380e3 12956 else
12957 charybdis_cv_c_gcc_w_bad_function_cast=''
631ef239 12958 { echo "$as_me:$LINENO: result: no" >&5
12959echo "${ECHO_T}no" >&6; }
212380e3 12960 fi
12961 else
631ef239 12962 { echo "$as_me:$LINENO: result: no" >&5
12963echo "${ECHO_T}no" >&6; }
212380e3 12964 fi
12965
12966
631ef239 12967 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
12968echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
212380e3 12969 if test "${GCC-no}" = yes
12970 then
12971 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12973else
12974
12975 oldcflags="${CFLAGS-}"
12976 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
12977 cat >conftest.$ac_ext <<_ACEOF
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h. */
12983
12984#include <string.h>
12985#include <stdio.h>
12986int main(void);
12987
12988int
12989main ()
12990{
12991
b1fc1658 12992 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12993
12994 ;
12995 return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext
631ef239 12999if { (ac_try="$ac_compile"
13000case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_compile") 2>conftest.er1
212380e3 13006 ac_status=$?
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13011 (exit $ac_status); } && {
13012 test -z "$ac_c_werror_flag" ||
13013 test ! -s conftest.err
13014 } && test -s conftest.$ac_objext; then
212380e3 13015 charybdis_cv_c_gcc_w_unused=yes
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
631ef239 13020 charybdis_cv_c_gcc_w_unused=no
212380e3 13021fi
631ef239 13022
13023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13024 CFLAGS="${oldcflags}"
13025fi
13026
13027 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13028 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
631ef239 13029 { echo "$as_me:$LINENO: result: ok" >&5
13030echo "${ECHO_T}ok" >&6; }
212380e3 13031 else
13032 charybdis_cv_c_gcc_w_unused=''
631ef239 13033 { echo "$as_me:$LINENO: result: no" >&5
13034echo "${ECHO_T}no" >&6; }
212380e3 13035 fi
13036 else
631ef239 13037 { echo "$as_me:$LINENO: result: no" >&5
13038echo "${ECHO_T}no" >&6; }
212380e3 13039 fi
13040
13041
631ef239 13042 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13043echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
212380e3 13044 if test "${GCC-no}" = yes
13045 then
13046 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13047 echo $ECHO_N "(cached) $ECHO_C" >&6
13048else
13049
13050 oldcflags="${CFLAGS-}"
13051 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058
13059#include <string.h>
13060#include <stdio.h>
13061int main(void);
13062
13063int
13064main ()
13065{
13066
b1fc1658 13067 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13068
13069 ;
13070 return 0;
13071}
13072_ACEOF
13073rm -f conftest.$ac_objext
631ef239 13074if { (ac_try="$ac_compile"
13075case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_compile") 2>conftest.er1
212380e3 13081 ac_status=$?
13082 grep -v '^ *+' conftest.er1 >conftest.err
13083 rm -f conftest.er1
13084 cat conftest.err >&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13086 (exit $ac_status); } && {
13087 test -z "$ac_c_werror_flag" ||
13088 test ! -s conftest.err
13089 } && test -s conftest.$ac_objext; then
212380e3 13090 charybdis_cv_c_gcc_w_redundant_decls=yes
13091else
13092 echo "$as_me: failed program was:" >&5
13093sed 's/^/| /' conftest.$ac_ext >&5
13094
631ef239 13095 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 13096fi
631ef239 13097
13098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13099 CFLAGS="${oldcflags}"
13100fi
13101
13102 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13103 CWARNS="${CWARNS}-Wredundant-decls "
631ef239 13104 { echo "$as_me:$LINENO: result: ok" >&5
13105echo "${ECHO_T}ok" >&6; }
212380e3 13106 else
13107 charybdis_cv_c_gcc_w_redundant_decls=''
631ef239 13108 { echo "$as_me:$LINENO: result: no" >&5
13109echo "${ECHO_T}no" >&6; }
212380e3 13110 fi
13111 else
631ef239 13112 { echo "$as_me:$LINENO: result: no" >&5
13113echo "${ECHO_T}no" >&6; }
212380e3 13114 fi
13115
13116
631ef239 13117 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13118echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
212380e3 13119 if test "${GCC-no}" = yes
13120 then
13121 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123else
13124
13125 oldcflags="${CFLAGS-}"
13126 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13127 cat >conftest.$ac_ext <<_ACEOF
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133
13134#include <string.h>
13135#include <stdio.h>
13136int main(void);
13137
13138int
13139main ()
13140{
13141
b1fc1658 13142 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13143
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
631ef239 13149if { (ac_try="$ac_compile"
13150case "(($ac_try" in
13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13152 *) ac_try_echo=$ac_try;;
13153esac
13154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13155 (eval "$ac_compile") 2>conftest.er1
212380e3 13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.$ac_objext; then
212380e3 13165 charybdis_cv_c_gcc_w_float_equal=yes
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
631ef239 13170 charybdis_cv_c_gcc_w_float_equal=no
212380e3 13171fi
631ef239 13172
13173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13174 CFLAGS="${oldcflags}"
13175fi
13176
13177 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13178 CWARNS="${CWARNS}-Wfloat-equal "
631ef239 13179 { echo "$as_me:$LINENO: result: ok" >&5
13180echo "${ECHO_T}ok" >&6; }
212380e3 13181 else
13182 charybdis_cv_c_gcc_w_float_equal=''
631ef239 13183 { echo "$as_me:$LINENO: result: no" >&5
13184echo "${ECHO_T}no" >&6; }
212380e3 13185 fi
13186 else
631ef239 13187 { echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6; }
212380e3 13189 fi
13190
13191
631ef239 13192 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13193echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; }
212380e3 13194 if test "${GCC-no}" = yes
13195 then
13196 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
13199
13200 oldcflags="${CFLAGS-}"
13201 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13202 cat >conftest.$ac_ext <<_ACEOF
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208
13209#include <string.h>
13210#include <stdio.h>
13211int main(void);
13212
13213int
13214main ()
13215{
13216
b1fc1658 13217 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13218
13219 ;
13220 return 0;
13221}
13222_ACEOF
13223rm -f conftest.$ac_objext
631ef239 13224if { (ac_try="$ac_compile"
13225case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13228esac
13229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_compile") 2>conftest.er1
212380e3 13231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest.$ac_objext; then
212380e3 13240 charybdis_cv_c_gcc_w_format=yes
13241else
13242 echo "$as_me: failed program was:" >&5
13243sed 's/^/| /' conftest.$ac_ext >&5
13244
631ef239 13245 charybdis_cv_c_gcc_w_format=no
212380e3 13246fi
631ef239 13247
13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13249 CFLAGS="${oldcflags}"
13250fi
13251
13252 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13253 CWARNS="${CWARNS}-Wformat=2 "
631ef239 13254 { echo "$as_me:$LINENO: result: ok" >&5
13255echo "${ECHO_T}ok" >&6; }
212380e3 13256 else
13257 charybdis_cv_c_gcc_w_format=''
631ef239 13258 { echo "$as_me:$LINENO: result: no" >&5
13259echo "${ECHO_T}no" >&6; }
212380e3 13260 fi
13261 else
631ef239 13262 { echo "$as_me:$LINENO: result: no" >&5
13263echo "${ECHO_T}no" >&6; }
212380e3 13264 fi
13265
13266
631ef239 13267 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13268echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
212380e3 13269 if test "${GCC-no}" = yes
13270 then
13271 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13272 echo $ECHO_N "(cached) $ECHO_C" >&6
13273else
13274
13275 oldcflags="${CFLAGS-}"
13276 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13277 cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283
13284#include <string.h>
13285#include <stdio.h>
13286int main(void);
13287
13288int
13289main ()
13290{
13291
b1fc1658 13292 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
631ef239 13299if { (ac_try="$ac_compile"
13300case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
212380e3 13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
212380e3 13315 charybdis_cv_c_gcc_pedantic=yes
13316else
13317 echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
631ef239 13320 charybdis_cv_c_gcc_pedantic=no
212380e3 13321fi
631ef239 13322
13323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13324 CFLAGS="${oldcflags}"
13325fi
13326
13327 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13328 CWARNS="${CWARNS}-pedantic "
631ef239 13329 { echo "$as_me:$LINENO: result: ok" >&5
13330echo "${ECHO_T}ok" >&6; }
212380e3 13331 else
13332 charybdis_cv_c_gcc_pedantic=''
631ef239 13333 { echo "$as_me:$LINENO: result: no" >&5
13334echo "${ECHO_T}no" >&6; }
212380e3 13335 fi
13336 else
631ef239 13337 { echo "$as_me:$LINENO: result: no" >&5
13338echo "${ECHO_T}no" >&6; }
212380e3 13339 fi
13340
13341
13342IRC_CFLAGS="$CFLAGS"
13343
631ef239 13344fi
13345
212380e3 13346
13347if test "$shared_modules" = no; then
13348 DYNLINK_C=""
13349 MOD_TARGET="libmodules.a"
13350 MODULES_LIBS="../modules/libmodules.a"
13351 SEDOBJ=""
13352
13353cat >>confdefs.h <<\_ACEOF
13354#define STATIC_MODULES 1
13355_ACEOF
13356
13357 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13358echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13359fi
13360
13361if test "$shared_modules" = yes; then
13362
631ef239 13363 { echo "$as_me:$LINENO: checking for nlist" >&5
13364echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
212380e3 13365if test "${ac_cv_func_nlist+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
13368 cat >conftest.$ac_ext <<_ACEOF
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
13374/* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13376#define nlist innocuous_nlist
13377
13378/* System header to define __stub macros and hopefully few prototypes,
13379 which can conflict with char nlist (); below.
13380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13381 <limits.h> exists even on freestanding compilers. */
13382
13383#ifdef __STDC__
13384# include <limits.h>
13385#else
13386# include <assert.h>
13387#endif
13388
13389#undef nlist
13390
631ef239 13391/* Override any GCC internal prototype to avoid an error.
13392 Use char because int might match the return type of a GCC
13393 builtin and then its argument prototype would still apply. */
212380e3 13394#ifdef __cplusplus
13395extern "C"
212380e3 13396#endif
212380e3 13397char nlist ();
13398/* The GNU C library defines this for functions which it implements
13399 to always fail with ENOSYS. Some functions are actually named
13400 something starting with __ and the normal name is an alias. */
631ef239 13401#if defined __stub_nlist || defined __stub___nlist
212380e3 13402choke me
212380e3 13403#endif
13404
13405int
13406main ()
13407{
631ef239 13408return nlist ();
212380e3 13409 ;
13410 return 0;
13411}
13412_ACEOF
13413rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 13414if { (ac_try="$ac_link"
13415case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
212380e3 13421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest$ac_exeext &&
13430 $as_test_x conftest$ac_exeext; then
212380e3 13431 ac_cv_func_nlist=yes
13432else
13433 echo "$as_me: failed program was:" >&5
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
631ef239 13436 ac_cv_func_nlist=no
212380e3 13437fi
631ef239 13438
13439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 13440 conftest$ac_exeext conftest.$ac_ext
13441fi
631ef239 13442{ echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13443echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
212380e3 13444if test $ac_cv_func_nlist = yes; then
13445 :
13446else
631ef239 13447 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13448echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
212380e3 13449if test "${ac_cv_lib_dl_nlist+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452 ac_check_lib_save_LIBS=$LIBS
13453LIBS="-ldl $LIBS"
13454cat >conftest.$ac_ext <<_ACEOF
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
13460
631ef239 13461/* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
212380e3 13464#ifdef __cplusplus
13465extern "C"
13466#endif
212380e3 13467char nlist ();
13468int
13469main ()
13470{
631ef239 13471return nlist ();
212380e3 13472 ;
13473 return 0;
13474}
13475_ACEOF
13476rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 13477if { (ac_try="$ac_link"
13478case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
212380e3 13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13489 (exit $ac_status); } && {
13490 test -z "$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 } && test -s conftest$ac_exeext &&
13493 $as_test_x conftest$ac_exeext; then
212380e3 13494 ac_cv_lib_dl_nlist=yes
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
631ef239 13499 ac_cv_lib_dl_nlist=no
212380e3 13500fi
631ef239 13501
13502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 13503 conftest$ac_exeext conftest.$ac_ext
13504LIBS=$ac_check_lib_save_LIBS
13505fi
631ef239 13506{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13507echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
212380e3 13508if test $ac_cv_lib_dl_nlist = yes; then
13509 nlist_lib="-ldl"
13510else
631ef239 13511 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13512echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
212380e3 13513if test "${ac_cv_lib_elf_nlist+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13515else
13516 ac_check_lib_save_LIBS=$LIBS
13517LIBS="-lelf $LIBS"
13518cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
13524
631ef239 13525/* Override any GCC internal prototype to avoid an error.
13526 Use char because int might match the return type of a GCC
13527 builtin and then its argument prototype would still apply. */
212380e3 13528#ifdef __cplusplus
13529extern "C"
13530#endif
212380e3 13531char nlist ();
13532int
13533main ()
13534{
631ef239 13535return nlist ();
212380e3 13536 ;
13537 return 0;
13538}
13539_ACEOF
13540rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 13541if { (ac_try="$ac_link"
13542case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545esac
13546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_link") 2>conftest.er1
212380e3 13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest$ac_exeext &&
13557 $as_test_x conftest$ac_exeext; then
212380e3 13558 ac_cv_lib_elf_nlist=yes
13559else
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
631ef239 13563 ac_cv_lib_elf_nlist=no
212380e3 13564fi
631ef239 13565
13566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 13567 conftest$ac_exeext conftest.$ac_ext
13568LIBS=$ac_check_lib_save_LIBS
13569fi
631ef239 13570{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13571echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
212380e3 13572if test $ac_cv_lib_elf_nlist = yes; then
13573 nlist_lib="-lelf"
13574fi
13575
13576
13577fi
13578
13579
13580fi
13581
13582
13583 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
631ef239 13584 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13585echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
212380e3 13586if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588fi
631ef239 13589{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13590echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
212380e3 13591else
13592 # Is the header compilable?
631ef239 13593{ echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13594echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
212380e3 13595cat >conftest.$ac_ext <<_ACEOF
13596/* confdefs.h. */
13597_ACEOF
13598cat confdefs.h >>conftest.$ac_ext
13599cat >>conftest.$ac_ext <<_ACEOF
13600/* end confdefs.h. */
13601$ac_includes_default
13602#include <libelf/nlist.h>
13603_ACEOF
13604rm -f conftest.$ac_objext
631ef239 13605if { (ac_try="$ac_compile"
13606case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_compile") 2>conftest.er1
212380e3 13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.$ac_objext; then
212380e3 13621 ac_header_compiler=yes
13622else
13623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
631ef239 13626 ac_header_compiler=no
212380e3 13627fi
631ef239 13628
13629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 13632
13633# Is the header present?
631ef239 13634{ echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13635echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
212380e3 13636cat >conftest.$ac_ext <<_ACEOF
13637/* confdefs.h. */
13638_ACEOF
13639cat confdefs.h >>conftest.$ac_ext
13640cat >>conftest.$ac_ext <<_ACEOF
13641/* end confdefs.h. */
13642#include <libelf/nlist.h>
13643_ACEOF
631ef239 13644if { (ac_try="$ac_cpp conftest.$ac_ext"
13645case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13656 (exit $ac_status); } >/dev/null && {
13657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13659 }; then
212380e3 13660 ac_header_preproc=yes
13661else
13662 echo "$as_me: failed program was:" >&5
13663sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 ac_header_preproc=no
13666fi
631ef239 13667
212380e3 13668rm -f conftest.err conftest.$ac_ext
631ef239 13669{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13670echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 13671
13672# So? What about this header?
13673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13674 yes:no: )
13675 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13676echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13678echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13679 ac_header_preproc=yes
13680 ;;
13681 no:yes:* )
13682 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13683echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13685echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13687echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13689echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13691echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13693echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13694
212380e3 13695 ;;
13696esac
631ef239 13697{ echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13698echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
212380e3 13699if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
13702 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13703fi
631ef239 13704{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13705echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
212380e3 13706
13707fi
13708if test $ac_cv_header_libelf_nlist_h = yes; then
13709 nlist_h="libelf/nlist.h"
13710fi
13711
13712
13713 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
631ef239 13714 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13715echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
212380e3 13716if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718fi
631ef239 13719{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13720echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
212380e3 13721else
13722 # Is the header compilable?
631ef239 13723{ echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13724echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
212380e3 13725cat >conftest.$ac_ext <<_ACEOF
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
13730/* end confdefs.h. */
13731$ac_includes_default
13732#include <elf/nlist.h>
13733_ACEOF
13734rm -f conftest.$ac_objext
631ef239 13735if { (ac_try="$ac_compile"
13736case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_compile") 2>conftest.er1
212380e3 13742 ac_status=$?
13743 grep -v '^ *+' conftest.er1 >conftest.err
13744 rm -f conftest.er1
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13747 (exit $ac_status); } && {
13748 test -z "$ac_c_werror_flag" ||
13749 test ! -s conftest.err
13750 } && test -s conftest.$ac_objext; then
212380e3 13751 ac_header_compiler=yes
13752else
13753 echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
631ef239 13756 ac_header_compiler=no
212380e3 13757fi
631ef239 13758
13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13761echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 13762
13763# Is the header present?
631ef239 13764{ echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13765echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
212380e3 13766cat >conftest.$ac_ext <<_ACEOF
13767/* confdefs.h. */
13768_ACEOF
13769cat confdefs.h >>conftest.$ac_ext
13770cat >>conftest.$ac_ext <<_ACEOF
13771/* end confdefs.h. */
13772#include <elf/nlist.h>
13773_ACEOF
631ef239 13774if { (ac_try="$ac_cpp conftest.$ac_ext"
13775case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778esac
13779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 13781 ac_status=$?
13782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13786 (exit $ac_status); } >/dev/null && {
13787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13788 test ! -s conftest.err
13789 }; then
212380e3 13790 ac_header_preproc=yes
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
13795 ac_header_preproc=no
13796fi
631ef239 13797
212380e3 13798rm -f conftest.err conftest.$ac_ext
631ef239 13799{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13800echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 13801
13802# So? What about this header?
13803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13804 yes:no: )
13805 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13806echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13808echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13809 ac_header_preproc=yes
13810 ;;
13811 no:yes:* )
13812 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13813echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13814 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13815echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13816 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13817echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13819echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13821echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13823echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13824
212380e3 13825 ;;
13826esac
631ef239 13827{ echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13828echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
212380e3 13829if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831else
13832 ac_cv_header_elf_nlist_h=$ac_header_preproc
13833fi
631ef239 13834{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13835echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
212380e3 13836
13837fi
13838if test $ac_cv_header_elf_nlist_h = yes; then
13839 nlist_h="elf/nlist.h"
13840fi
13841
13842
13843 if test "${ac_cv_header_nlist_h+set}" = set; then
631ef239 13844 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13845echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
212380e3 13846if test "${ac_cv_header_nlist_h+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848fi
631ef239 13849{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13850echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
212380e3 13851else
13852 # Is the header compilable?
631ef239 13853{ echo "$as_me:$LINENO: checking nlist.h usability" >&5
13854echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
212380e3 13855cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861$ac_includes_default
13862#include <nlist.h>
13863_ACEOF
13864rm -f conftest.$ac_objext
631ef239 13865if { (ac_try="$ac_compile"
13866case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_compile") 2>conftest.er1
212380e3 13872 ac_status=$?
13873 grep -v '^ *+' conftest.er1 >conftest.err
13874 rm -f conftest.er1
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13877 (exit $ac_status); } && {
13878 test -z "$ac_c_werror_flag" ||
13879 test ! -s conftest.err
13880 } && test -s conftest.$ac_objext; then
212380e3 13881 ac_header_compiler=yes
13882else
13883 echo "$as_me: failed program was:" >&5
13884sed 's/^/| /' conftest.$ac_ext >&5
13885
631ef239 13886 ac_header_compiler=no
212380e3 13887fi
631ef239 13888
13889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13891echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 13892
13893# Is the header present?
631ef239 13894{ echo "$as_me:$LINENO: checking nlist.h presence" >&5
13895echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
212380e3 13896cat >conftest.$ac_ext <<_ACEOF
13897/* confdefs.h. */
13898_ACEOF
13899cat confdefs.h >>conftest.$ac_ext
13900cat >>conftest.$ac_ext <<_ACEOF
13901/* end confdefs.h. */
13902#include <nlist.h>
13903_ACEOF
631ef239 13904if { (ac_try="$ac_cpp conftest.$ac_ext"
13905case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 13911 ac_status=$?
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13916 (exit $ac_status); } >/dev/null && {
13917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13918 test ! -s conftest.err
13919 }; then
212380e3 13920 ac_header_preproc=yes
13921else
13922 echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
13924
13925 ac_header_preproc=no
13926fi
631ef239 13927
212380e3 13928rm -f conftest.err conftest.$ac_ext
631ef239 13929{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13930echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 13931
13932# So? What about this header?
13933case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13934 yes:no: )
13935 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13936echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
13938echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
13939 ac_header_preproc=yes
13940 ;;
13941 no:yes:* )
13942 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
13943echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
13944 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
13945echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
13946 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
13947echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13949echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
13951echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
13953echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13954
212380e3 13955 ;;
13956esac
631ef239 13957{ echo "$as_me:$LINENO: checking for nlist.h" >&5
13958echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
212380e3 13959if test "${ac_cv_header_nlist_h+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961else
13962 ac_cv_header_nlist_h=$ac_header_preproc
13963fi
631ef239 13964{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13965echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
212380e3 13966
13967fi
13968if test $ac_cv_header_nlist_h = yes; then
13969 nlist_h="nlist.h"
13970fi
13971
13972
13973 if test x"$nlist_h" = "x"; then
13974
13975cat >>confdefs.h <<_ACEOF
13976#define SYMBOL_PREFIX ""
13977_ACEOF
13978
13979 else
631ef239 13980 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
13981echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
212380e3 13982 if test "${symbol_underscores+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984else
13985
13986cat << EOF > conftest.c
13987#include <$nlist_h>
13988#include <stdio.h>
13989#include <stdlib.h>
13990void _modinit(void);
13991int main(int argc, char *argv[]) {
13992 int i;
13993 struct nlist nl[5];
13994
13995 /* fill the names in this way, so it'll work almost everywhere */
13996 nl[0].n_name = "_modinit";
13997 nl[1].n_name = "__modinit";
13998 nl[2].n_name = "___modinit";
13999 nl[3].n_name = "____modinit";
14000 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14001
14002 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14003 for(i = 0; i < 4; i++) {
14004 if(nl[i].n_value != NULL)
14005 {
14006 int j;
14007 for(j = 0; j < i; j++)
14008 printf("_");
14009 exit(i);
14010 }
14011 }
14012 exit(-1);
14013}
14014void _modinit(void) { return; }
14015EOF
14016 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14017 symbol_underscores=`./conftest conftest`
631ef239 14018 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14019echo "${ECHO_T}$symbol_underscores" >&6; }
212380e3 14020 $RM -f conftest conftest.c
14021
14022fi
14023
14024
14025cat >>confdefs.h <<_ACEOF
14026#define SYMBOL_PREFIX "${symbol_underscores}"
14027_ACEOF
14028
14029 fi
14030fi
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045if test "$prefix" = "NONE"; then
14046
14047cat >>confdefs.h <<_ACEOF
14048#define IRCD_PREFIX "$ac_default_prefix"
14049_ACEOF
14050
14051
14052else
14053
14054
14055 prefix=`echo $prefix | sed 's/\/$//'`
14056
14057cat >>confdefs.h <<_ACEOF
14058#define IRCD_PREFIX "$prefix"
14059_ACEOF
14060
14061
14062fi
14063
631ef239 14064ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
212380e3 14065
14066
14067cat >confcache <<\_ACEOF
14068# This file is a shell script that caches the results of configure
14069# tests run on this system so they can be shared between configure
14070# scripts and configure runs, see configure's option --config-cache.
14071# It is not useful on other systems. If it contains results you don't
14072# want to keep, you may remove or edit it.
14073#
14074# config.status only pays attention to the cache file if you give it
14075# the --recheck option to rerun configure.
14076#
14077# `ac_cv_env_foo' variables (set or unset) will be overridden when
14078# loading this file, other *unset* `ac_cv_foo' will be assigned the
14079# following values.
14080
14081_ACEOF
14082
14083# The following way of writing the cache mishandles newlines in values,
14084# but we know of no workaround that is simple, portable, and efficient.
631ef239 14085# So, we kill variables containing newlines.
212380e3 14086# Ultrix sh set writes to stderr and can't be redirected directly,
14087# and sets the high bit in the cache file unless we assign to the vars.
631ef239 14088(
14089 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14090 eval ac_val=\$$ac_var
14091 case $ac_val in #(
14092 *${as_nl}*)
14093 case $ac_var in #(
14094 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14095echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14096 esac
14097 case $ac_var in #(
14098 _ | IFS | as_nl) ;; #(
14099 *) $as_unset $ac_var ;;
14100 esac ;;
14101 esac
14102 done
14103
212380e3 14104 (set) 2>&1 |
631ef239 14105 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14106 *${as_nl}ac_space=\ *)
212380e3 14107 # `set' does not quote correctly, so add quotes (double-quote
14108 # substitution turns \\\\ into \\, and sed turns \\ into \).
14109 sed -n \
14110 "s/'/'\\\\''/g;
14111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 14112 ;; #(
212380e3 14113 *)
14114 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 14115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 14116 ;;
631ef239 14117 esac |
14118 sort
14119) |
212380e3 14120 sed '
631ef239 14121 /^ac_cv_env_/b end
212380e3 14122 t clear
631ef239 14123 :clear
212380e3 14124 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14125 t end
631ef239 14126 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14127 :end' >>confcache
14128if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14129 if test -w "$cache_file"; then
14130 test "x$cache_file" != "x/dev/null" &&
14131 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14132echo "$as_me: updating cache $cache_file" >&6;}
212380e3 14133 cat confcache >$cache_file
14134 else
631ef239 14135 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14136echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3 14137 fi
14138fi
14139rm -f confcache
14140
14141test "x$prefix" = xNONE && prefix=$ac_default_prefix
14142# Let make expand exec_prefix.
14143test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14144
212380e3 14145DEFS=-DHAVE_CONFIG_H
14146
14147ac_libobjs=
14148ac_ltlibobjs=
14149for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14150 # 1. Remove the extension, and $U if already installed.
631ef239 14151 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14152 ac_i=`echo "$ac_i" | sed "$ac_script"`
14153 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14154 # will be set to the directory where LIBOBJS objects are built.
14155 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14156 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3 14157done
14158LIBOBJS=$ac_libobjs
14159
14160LTLIBOBJS=$ac_ltlibobjs
14161
14162
14163
14164: ${CONFIG_STATUS=./config.status}
14165ac_clean_files_save=$ac_clean_files
14166ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14167{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14168echo "$as_me: creating $CONFIG_STATUS" >&6;}
14169cat >$CONFIG_STATUS <<_ACEOF
14170#! $SHELL
14171# Generated by $as_me.
14172# Run this file to recreate the current configuration.
14173# Compiler output produced by configure, useful for debugging
14174# configure, is in config.log if it exists.
14175
14176debug=false
14177ac_cs_recheck=false
14178ac_cs_silent=false
14179SHELL=\${CONFIG_SHELL-$SHELL}
14180_ACEOF
14181
14182cat >>$CONFIG_STATUS <<\_ACEOF
14183## --------------------- ##
14184## M4sh Initialization. ##
14185## --------------------- ##
14186
631ef239 14187# Be more Bourne compatible
14188DUALCASE=1; export DUALCASE # for MKS sh
212380e3 14189if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14190 emulate sh
14191 NULLCMD=:
14192 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14193 # is contrary to our usage. Disable this feature.
14194 alias -g '${1+"$@"}'='"$@"'
631ef239 14195 setopt NO_GLOB_SUBST
212380e3 14196else
631ef239 14197 case `(set -o) 2>/dev/null` in
14198 *posix*) set -o posix ;;
14199esac
14200
212380e3 14201fi
14202
14203
631ef239 14204
14205
14206# PATH needs CR
14207# Avoid depending upon Character Ranges.
14208as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14209as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14210as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14211as_cr_digits='0123456789'
14212as_cr_alnum=$as_cr_Letters$as_cr_digits
14213
14214# The user is always right.
14215if test "${PATH_SEPARATOR+set}" != set; then
14216 echo "#! /bin/sh" >conf$$.sh
14217 echo "exit 0" >>conf$$.sh
14218 chmod +x conf$$.sh
14219 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14220 PATH_SEPARATOR=';'
14221 else
14222 PATH_SEPARATOR=:
14223 fi
14224 rm -f conf$$.sh
14225fi
14226
14227# Support unset when possible.
14228if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14229 as_unset=unset
14230else
14231 as_unset=false
14232fi
14233
14234
14235# IFS
14236# We need space, tab and new line, in precisely that order. Quoting is
14237# there to prevent editors from complaining about space-tab.
14238# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14239# splitting by setting IFS to empty value.)
14240as_nl='
14241'
14242IFS=" "" $as_nl"
14243
14244# Find who we are. Look in the path if we contain no directory separator.
14245case $0 in
14246 *[\\/]* ) as_myself=$0 ;;
14247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248for as_dir in $PATH
14249do
14250 IFS=$as_save_IFS
14251 test -z "$as_dir" && as_dir=.
14252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14253done
14254IFS=$as_save_IFS
14255
14256 ;;
14257esac
14258# We did not find ourselves, most probably we were run as `sh COMMAND'
14259# in which case we are not to be found in the path.
14260if test "x$as_myself" = x; then
14261 as_myself=$0
14262fi
14263if test ! -f "$as_myself"; then
14264 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14265 { (exit 1); exit 1; }
14266fi
14267
212380e3 14268# Work around bugs in pre-3.0 UWIN ksh.
631ef239 14269for as_var in ENV MAIL MAILPATH
14270do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14271done
212380e3 14272PS1='$ '
14273PS2='> '
14274PS4='+ '
14275
14276# NLS nuisances.
14277for as_var in \
14278 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14279 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14280 LC_TELEPHONE LC_TIME
14281do
14282 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14283 eval $as_var=C; export $as_var
14284 else
631ef239 14285 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
212380e3 14286 fi
14287done
14288
14289# Required to use basename.
631ef239 14290if expr a : '\(a\)' >/dev/null 2>&1 &&
14291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 14292 as_expr=expr
14293else
14294 as_expr=false
14295fi
14296
631ef239 14297if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3 14298 as_basename=basename
14299else
14300 as_basename=false
14301fi
14302
14303
14304# Name of the executable.
631ef239 14305as_me=`$as_basename -- "$0" ||
212380e3 14306$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14307 X"$0" : 'X\(//\)$' \| \
631ef239 14308 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14309echo X/"$0" |
631ef239 14310 sed '/^.*\/\([^/][^/]*\)\/*$/{
14311 s//\1/
14312 q
14313 }
14314 /^X\/\(\/\/\)$/{
14315 s//\1/
14316 q
14317 }
14318 /^X\/\(\/\).*/{
14319 s//\1/
14320 q
14321 }
14322 s/.*/./; q'`
212380e3 14323
631ef239 14324# CDPATH.
14325$as_unset CDPATH
212380e3 14326
212380e3 14327
14328
14329 as_lineno_1=$LINENO
14330 as_lineno_2=$LINENO
212380e3 14331 test "x$as_lineno_1" != "x$as_lineno_2" &&
631ef239 14332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
212380e3 14333
14334 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14335 # uniformly replaced by the line number. The first 'sed' inserts a
631ef239 14336 # line-number line after each line using $LINENO; the second 'sed'
14337 # does the real work. The second script uses 'N' to pair each
14338 # line-number line with the line containing $LINENO, and appends
14339 # trailing '-' during substitution so that $LINENO is not a special
14340 # case at line end.
212380e3 14341 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
631ef239 14342 # scripts with optimization help from Paolo Bonzini. Blame Lee
14343 # E. McMahon (1931-1989) for sed's syntax. :-)
14344 sed -n '
14345 p
14346 /[$]LINENO/=
14347 ' <$as_myself |
212380e3 14348 sed '
631ef239 14349 s/[$]LINENO.*/&-/
14350 t lineno
14351 b
14352 :lineno
212380e3 14353 N
631ef239 14354 :loop
14355 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
212380e3 14356 t loop
631ef239 14357 s/-\n.*//
212380e3 14358 ' >$as_me.lineno &&
631ef239 14359 chmod +x "$as_me.lineno" ||
14360 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
212380e3 14361 { (exit 1); exit 1; }; }
14362
14363 # Don't try to exec as it changes $[0], causing all sort of problems
14364 # (the dirname of $[0] is not the place where we might find the
631ef239 14365 # original and so on. Autoconf is especially sensitive to this).
14366 . "./$as_me.lineno"
212380e3 14367 # Exit status is that of the last command.
14368 exit
14369}
14370
14371
631ef239 14372if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14373 as_dirname=dirname
14374else
14375 as_dirname=false
14376fi
14377
14378ECHO_C= ECHO_N= ECHO_T=
14379case `echo -n x` in
14380-n*)
14381 case `echo 'x\c'` in
14382 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14383 *) ECHO_C='\c';;
14384 esac;;
14385*)
14386 ECHO_N='-n';;
212380e3 14387esac
14388
631ef239 14389if expr a : '\(a\)' >/dev/null 2>&1 &&
14390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 14391 as_expr=expr
14392else
14393 as_expr=false
14394fi
14395
14396rm -f conf$$ conf$$.exe conf$$.file
631ef239 14397if test -d conf$$.dir; then
14398 rm -f conf$$.dir/conf$$.file
14399else
14400 rm -f conf$$.dir
14401 mkdir conf$$.dir
14402fi
212380e3 14403echo >conf$$.file
14404if ln -s conf$$.file conf$$ 2>/dev/null; then
631ef239 14405 as_ln_s='ln -s'
14406 # ... but there are two gotchas:
14407 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14408 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14409 # In both cases, we have to default to `cp -p'.
14410 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
212380e3 14411 as_ln_s='cp -p'
212380e3 14412elif ln conf$$.file conf$$ 2>/dev/null; then
14413 as_ln_s=ln
14414else
14415 as_ln_s='cp -p'
14416fi
631ef239 14417rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14418rmdir conf$$.dir 2>/dev/null
212380e3 14419
14420if mkdir -p . 2>/dev/null; then
14421 as_mkdir_p=:
14422else
14423 test -d ./-p && rmdir ./-p
14424 as_mkdir_p=false
14425fi
14426
631ef239 14427if test -x / >/dev/null 2>&1; then
14428 as_test_x='test -x'
14429else
14430 if ls -dL / >/dev/null 2>&1; then
14431 as_ls_L_option=L
14432 else
14433 as_ls_L_option=
14434 fi
14435 as_test_x='
14436 eval sh -c '\''
14437 if test -d "$1"; then
14438 test -d "$1/.";
14439 else
14440 case $1 in
14441 -*)set "./$1";;
14442 esac;
14443 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14444 ???[sx]*):;;*)false;;esac;fi
14445 '\'' sh
14446 '
14447fi
14448as_executable_p=$as_test_x
212380e3 14449
14450# Sed expression to map a string onto a valid CPP name.
14451as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14452
14453# Sed expression to map a string onto a valid variable name.
14454as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14455
14456
212380e3 14457exec 6>&1
14458
631ef239 14459# Save the log message, to keep $[0] and so on meaningful, and to
212380e3 14460# report actual input values of CONFIG_FILES etc. instead of their
631ef239 14461# values after options handling.
14462ac_log="
b1fc1658 14463This file was extended by charybdis $as_me 2.2.0, which was
631ef239 14464generated by GNU Autoconf 2.61. Invocation command line was
212380e3 14465
14466 CONFIG_FILES = $CONFIG_FILES
14467 CONFIG_HEADERS = $CONFIG_HEADERS
14468 CONFIG_LINKS = $CONFIG_LINKS
14469 CONFIG_COMMANDS = $CONFIG_COMMANDS
14470 $ $0 $@
14471
631ef239 14472on `(hostname || uname -n) 2>/dev/null | sed 1q`
14473"
14474
212380e3 14475_ACEOF
14476
631ef239 14477cat >>$CONFIG_STATUS <<_ACEOF
212380e3 14478# Files that config.status was made for.
631ef239 14479config_files="$ac_config_files"
14480config_headers="$ac_config_headers"
212380e3 14481
631ef239 14482_ACEOF
212380e3 14483
14484cat >>$CONFIG_STATUS <<\_ACEOF
212380e3 14485ac_cs_usage="\
14486\`$as_me' instantiates files from templates according to the
14487current configuration.
14488
14489Usage: $0 [OPTIONS] [FILE]...
14490
14491 -h, --help print this help, then exit
631ef239 14492 -V, --version print version number and configuration settings, then exit
212380e3 14493 -q, --quiet do not print progress messages
14494 -d, --debug don't remove temporary files
14495 --recheck update $as_me by reconfiguring in the same conditions
14496 --file=FILE[:TEMPLATE]
14497 instantiate the configuration file FILE
14498 --header=FILE[:TEMPLATE]
14499 instantiate the configuration header FILE
14500
14501Configuration files:
14502$config_files
14503
14504Configuration headers:
14505$config_headers
14506
14507Report bugs to <bug-autoconf@gnu.org>."
212380e3 14508
631ef239 14509_ACEOF
212380e3 14510cat >>$CONFIG_STATUS <<_ACEOF
14511ac_cs_version="\\
b1fc1658 14512charybdis config.status 2.2.0
631ef239 14513configured by $0, generated by GNU Autoconf 2.61,
14514 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
212380e3 14515
631ef239 14516Copyright (C) 2006 Free Software Foundation, Inc.
212380e3 14517This config.status script is free software; the Free Software Foundation
14518gives unlimited permission to copy, distribute and modify it."
631ef239 14519
14520ac_pwd='$ac_pwd'
14521srcdir='$srcdir'
14522INSTALL='$INSTALL'
212380e3 14523_ACEOF
14524
14525cat >>$CONFIG_STATUS <<\_ACEOF
14526# If no file are specified by the user, then we need to provide default
14527# value. By we need to know if files were specified by the user.
14528ac_need_defaults=:
14529while test $# != 0
14530do
14531 case $1 in
14532 --*=*)
631ef239 14533 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14534 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3 14535 ac_shift=:
14536 ;;
631ef239 14537 *)
212380e3 14538 ac_option=$1
14539 ac_optarg=$2
14540 ac_shift=shift
14541 ;;
212380e3 14542 esac
14543
14544 case $ac_option in
14545 # Handling of the options.
212380e3 14546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14547 ac_cs_recheck=: ;;
631ef239 14548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14549 echo "$ac_cs_version"; exit ;;
14550 --debug | --debu | --deb | --de | --d | -d )
212380e3 14551 debug=: ;;
14552 --file | --fil | --fi | --f )
14553 $ac_shift
14554 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14555 ac_need_defaults=false;;
14556 --header | --heade | --head | --hea )
14557 $ac_shift
14558 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14559 ac_need_defaults=false;;
631ef239 14560 --he | --h)
14561 # Conflict between --help and --header
14562 { echo "$as_me: error: ambiguous option: $1
14563Try \`$0 --help' for more information." >&2
14564 { (exit 1); exit 1; }; };;
14565 --help | --hel | -h )
14566 echo "$ac_cs_usage"; exit ;;
212380e3 14567 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14568 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14569 ac_cs_silent=: ;;
14570
14571 # This is an error.
631ef239 14572 -*) { echo "$as_me: error: unrecognized option: $1
14573Try \`$0 --help' for more information." >&2
212380e3 14574 { (exit 1); exit 1; }; } ;;
14575
631ef239 14576 *) ac_config_targets="$ac_config_targets $1"
14577 ac_need_defaults=false ;;
212380e3 14578
14579 esac
14580 shift
14581done
14582
14583ac_configure_extra_args=
14584
14585if $ac_cs_silent; then
14586 exec 6>/dev/null
14587 ac_configure_extra_args="$ac_configure_extra_args --silent"
14588fi
14589
14590_ACEOF
14591cat >>$CONFIG_STATUS <<_ACEOF
14592if \$ac_cs_recheck; then
631ef239 14593 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14594 CONFIG_SHELL=$SHELL
14595 export CONFIG_SHELL
14596 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
212380e3 14597fi
14598
14599_ACEOF
631ef239 14600cat >>$CONFIG_STATUS <<\_ACEOF
14601exec 5>>config.log
14602{
14603 echo
14604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14605## Running $as_me. ##
14606_ASBOX
14607 echo "$ac_log"
14608} >&5
212380e3 14609
631ef239 14610_ACEOF
14611cat >>$CONFIG_STATUS <<_ACEOF
14612_ACEOF
212380e3 14613
14614cat >>$CONFIG_STATUS <<\_ACEOF
631ef239 14615
14616# Handling of arguments.
212380e3 14617for ac_config_target in $ac_config_targets
14618do
631ef239 14619 case $ac_config_target in
14620 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14621 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14622 "libcharybdis/Makefile") CONFIG_FILES="$CONFIG_FILES libcharybdis/Makefile" ;;
14623 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14624 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14625 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14626 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14627 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14628 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14629 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14630 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14631
212380e3 14632 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14633echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14634 { (exit 1); exit 1; }; };;
14635 esac
14636done
14637
631ef239 14638
212380e3 14639# If the user did not use the arguments to specify the items to instantiate,
14640# then the envvar interface is used. Set only those that are not.
14641# We use the long form for the default assignment because of an extremely
14642# bizarre bug on SunOS 4.1.3.
14643if $ac_need_defaults; then
14644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14646fi
14647
14648# Have a temporary directory for convenience. Make it in the build tree
631ef239 14649# simply because there is no reason against having it here, and in addition,
212380e3 14650# creating and moving files from /tmp can sometimes cause problems.
631ef239 14651# Hook for its removal unless debugging.
14652# Note that there is a small window in which the directory will not be cleaned:
14653# after its creation but before its name has been assigned to `$tmp'.
212380e3 14654$debug ||
14655{
631ef239 14656 tmp=
14657 trap 'exit_status=$?
14658 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14659' 0
212380e3 14660 trap '{ (exit 1); exit 1; }' 1 2 13 15
14661}
212380e3 14662# Create a (secure) tmp directory for tmp files.
14663
14664{
631ef239 14665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
212380e3 14666 test -n "$tmp" && test -d "$tmp"
14667} ||
14668{
631ef239 14669 tmp=./conf$$-$RANDOM
14670 (umask 077 && mkdir "$tmp")
212380e3 14671} ||
14672{
14673 echo "$me: cannot create a temporary directory in ." >&2
14674 { (exit 1); exit 1; }
14675}
14676
212380e3 14677#
631ef239 14678# Set up the sed scripts for CONFIG_FILES section.
212380e3 14679#
14680
14681# No need to generate the scripts if there are no CONFIG_FILES.
14682# This happens for instance when ./config.status config.h
631ef239 14683if test -n "$CONFIG_FILES"; then
14684
14685_ACEOF
14686
14687
14688
14689ac_delim='%!_!# '
14690for ac_last_try in false false false false false :; do
14691 cat >conf$$subs.sed <<_ACEOF
14692SHELL!$SHELL$ac_delim
14693PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14694PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14695PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14696PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14697PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14698PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14699exec_prefix!$exec_prefix$ac_delim
14700prefix!$prefix$ac_delim
14701program_transform_name!$program_transform_name$ac_delim
14702bindir!$bindir$ac_delim
14703sbindir!$sbindir$ac_delim
14704libexecdir!$libexecdir$ac_delim
14705datarootdir!$datarootdir$ac_delim
14706datadir!$datadir$ac_delim
14707sysconfdir!$sysconfdir$ac_delim
14708sharedstatedir!$sharedstatedir$ac_delim
14709localstatedir!$localstatedir$ac_delim
14710includedir!$includedir$ac_delim
14711oldincludedir!$oldincludedir$ac_delim
14712docdir!$docdir$ac_delim
14713infodir!$infodir$ac_delim
14714htmldir!$htmldir$ac_delim
14715dvidir!$dvidir$ac_delim
14716pdfdir!$pdfdir$ac_delim
14717psdir!$psdir$ac_delim
14718libdir!$libdir$ac_delim
14719localedir!$localedir$ac_delim
14720mandir!$mandir$ac_delim
14721DEFS!$DEFS$ac_delim
14722ECHO_C!$ECHO_C$ac_delim
14723ECHO_N!$ECHO_N$ac_delim
14724ECHO_T!$ECHO_T$ac_delim
14725LIBS!$LIBS$ac_delim
14726build_alias!$build_alias$ac_delim
14727host_alias!$host_alias$ac_delim
14728target_alias!$target_alias$ac_delim
14729CC!$CC$ac_delim
14730CFLAGS!$CFLAGS$ac_delim
14731LDFLAGS!$LDFLAGS$ac_delim
14732CPPFLAGS!$CPPFLAGS$ac_delim
14733ac_ct_CC!$ac_ct_CC$ac_delim
14734EXEEXT!$EXEEXT$ac_delim
14735OBJEXT!$OBJEXT$ac_delim
14736MKDEP!$MKDEP$ac_delim
14737MAKEDEPEND!$MAKEDEPEND$ac_delim
14738STDOUT!$STDOUT$ac_delim
14739CPP!$CPP$ac_delim
14740GREP!$GREP$ac_delim
14741EGREP!$EGREP$ac_delim
14742SET_MAKE!$SET_MAKE$ac_delim
14743INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14744INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14745INSTALL_DATA!$INSTALL_DATA$ac_delim
14746RM!$RM$ac_delim
14747CP!$CP$ac_delim
14748MV!$MV$ac_delim
14749LN!$LN$ac_delim
14750SED!$SED$ac_delim
14751AR!$AR$ac_delim
14752LD!$LD$ac_delim
14753RANLIB!$RANLIB$ac_delim
14754TOUCH!$TOUCH$ac_delim
14755YACC!$YACC$ac_delim
14756YFLAGS!$YFLAGS$ac_delim
14757LEX!$LEX$ac_delim
14758LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14759LEXLIB!$LEXLIB$ac_delim
14760CRYPT_LIB!$CRYPT_LIB$ac_delim
14761VICONF!$VICONF$ac_delim
14762ALLOCA!$ALLOCA$ac_delim
14763ENCSPEED!$ENCSPEED$ac_delim
14764ZLIB_LD!$ZLIB_LD$ac_delim
14765ETC_DIR!$ETC_DIR$ac_delim
14766confdir!$confdir$ac_delim
14767LOG_DIR!$LOG_DIR$ac_delim
14768logdir!$logdir$ac_delim
14769HELP_DIR!$HELP_DIR$ac_delim
14770helpdir!$helpdir$ac_delim
14771MODULE_DIR!$MODULE_DIR$ac_delim
14772moduledir!$moduledir$ac_delim
14773SELECT_TYPE!$SELECT_TYPE$ac_delim
631ef239 14774MODULES_LIBS!$MODULES_LIBS$ac_delim
14775MOD_TARGET!$MOD_TARGET$ac_delim
14776SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14777SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14778SSL_LIBS!$SSL_LIBS$ac_delim
14779PICFLAGS!$PICFLAGS$ac_delim
14780IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14781SEDOBJ!$SEDOBJ$ac_delim
14782LIBOBJS!$LIBOBJS$ac_delim
14783LTLIBOBJS!$LTLIBOBJS$ac_delim
14784_ACEOF
14785
4536ee25 14786 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
631ef239 14787 break
14788 elif $ac_last_try; then
14789 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14790echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14791 { (exit 1); exit 1; }; }
14792 else
14793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 14794 fi
631ef239 14795done
212380e3 14796
631ef239 14797ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14798if test -n "$ac_eof"; then
14799 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14800 ac_eof=`expr $ac_eof + 1`
14801fi
14802
14803cat >>$CONFIG_STATUS <<_ACEOF
14804cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14806_ACEOF
14807sed '
14808s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14809s/^/s,@/; s/!/@,|#_!!_#|/
14810:n
14811t n
14812s/'"$ac_delim"'$/,g/; t
14813s/$/\\/; p
14814N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14815' >>$CONFIG_STATUS <conf$$subs.sed
14816rm -f conf$$subs.sed
14817cat >>$CONFIG_STATUS <<_ACEOF
14818:end
14819s/|#_!!_#|//g
14820CEOF$ac_eof
212380e3 14821_ACEOF
631ef239 14822
14823
14824# VPATH may cause trouble with some makes, so we remove $(srcdir),
14825# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14826# trailing colons and then remove the whole line if VPATH becomes empty
14827# (actually we leave an empty line to preserve line numbers).
14828if test "x$srcdir" = x.; then
14829 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14830s/:*\$(srcdir):*/:/
14831s/:*\${srcdir}:*/:/
14832s/:*@srcdir@:*/:/
14833s/^\([^=]*=[ ]*\):*/\1/
14834s/:*$//
14835s/^[^=]*=[ ]*$//
14836}'
14837fi
14838
212380e3 14839cat >>$CONFIG_STATUS <<\_ACEOF
631ef239 14840fi # test -n "$CONFIG_FILES"
14841
14842
14843for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14844do
14845 case $ac_tag in
14846 :[FHLC]) ac_mode=$ac_tag; continue;;
14847 esac
14848 case $ac_mode$ac_tag in
14849 :[FHL]*:*);;
14850 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14851echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14852 { (exit 1); exit 1; }; };;
14853 :[FH]-) ac_tag=-:-;;
14854 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 14855 esac
631ef239 14856 ac_save_IFS=$IFS
14857 IFS=:
14858 set x $ac_tag
14859 IFS=$ac_save_IFS
14860 shift
14861 ac_file=$1
14862 shift
212380e3 14863
631ef239 14864 case $ac_mode in
14865 :L) ac_source=$1;;
14866 :[FH])
14867 ac_file_inputs=
14868 for ac_f
14869 do
14870 case $ac_f in
14871 -) ac_f="$tmp/stdin";;
14872 *) # Look for the file first in the build tree, then in the source tree
14873 # (if the path is not absolute). The absolute path cannot be DOS-style,
14874 # because $ac_f cannot contain `:'.
14875 test -f "$ac_f" ||
14876 case $ac_f in
14877 [\\/$]*) false;;
14878 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14879 esac ||
14880 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14881echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14882 { (exit 1); exit 1; }; };;
14883 esac
14884 ac_file_inputs="$ac_file_inputs $ac_f"
14885 done
14886
14887 # Let's still pretend it is `configure' which instantiates (i.e., don't
14888 # use $as_me), people would be surprised to read:
14889 # /* config.h. Generated by config.status. */
14890 configure_input="Generated from "`IFS=:
14891 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14892 if test x"$ac_file" != x-; then
14893 configure_input="$ac_file. $configure_input"
14894 { echo "$as_me:$LINENO: creating $ac_file" >&5
14895echo "$as_me: creating $ac_file" >&6;}
14896 fi
14897
14898 case $ac_tag in
14899 *:-:* | *:-) cat >"$tmp/stdin";;
14900 esac
14901 ;;
14902 esac
14903
14904 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3 14905$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14906 X"$ac_file" : 'X\(//\)[^/]' \| \
14907 X"$ac_file" : 'X\(//\)$' \| \
631ef239 14908 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14909echo X"$ac_file" |
631ef239 14910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14911 s//\1/
14912 q
14913 }
14914 /^X\(\/\/\)[^/].*/{
14915 s//\1/
14916 q
14917 }
14918 /^X\(\/\/\)$/{
14919 s//\1/
14920 q
14921 }
14922 /^X\(\/\).*/{
14923 s//\1/
14924 q
14925 }
14926 s/.*/./; q'`
14927 { as_dir="$ac_dir"
14928 case $as_dir in #(
14929 -*) as_dir=./$as_dir;;
14930 esac
14931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
212380e3 14932 as_dirs=
631ef239 14933 while :; do
14934 case $as_dir in #(
14935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14936 *) as_qdir=$as_dir;;
14937 esac
14938 as_dirs="'$as_qdir' $as_dirs"
14939 as_dir=`$as_dirname -- "$as_dir" ||
212380e3 14940$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14941 X"$as_dir" : 'X\(//\)[^/]' \| \
14942 X"$as_dir" : 'X\(//\)$' \| \
631ef239 14943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14944echo X"$as_dir" |
631ef239 14945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14946 s//\1/
14947 q
14948 }
14949 /^X\(\/\/\)[^/].*/{
14950 s//\1/
14951 q
14952 }
14953 /^X\(\/\/\)$/{
14954 s//\1/
14955 q
14956 }
14957 /^X\(\/\).*/{
14958 s//\1/
14959 q
14960 }
14961 s/.*/./; q'`
14962 test -d "$as_dir" && break
212380e3 14963 done
631ef239 14964 test -z "$as_dirs" || eval "mkdir $as_dirs"
14965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14966echo "$as_me: error: cannot create directory $as_dir" >&2;}
212380e3 14967 { (exit 1); exit 1; }; }; }
212380e3 14968 ac_builddir=.
14969
631ef239 14970case "$ac_dir" in
14971.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14972*)
212380e3 14973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
631ef239 14974 # A ".." for each directory in $ac_dir_suffix.
14975 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14976 case $ac_top_builddir_sub in
14977 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14978 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14979 esac ;;
14980esac
14981ac_abs_top_builddir=$ac_pwd
14982ac_abs_builddir=$ac_pwd$ac_dir_suffix
14983# for backward compatibility:
14984ac_top_builddir=$ac_top_build_prefix
212380e3 14985
14986case $srcdir in
631ef239 14987 .) # We are building in place.
212380e3 14988 ac_srcdir=.
631ef239 14989 ac_top_srcdir=$ac_top_builddir_sub
14990 ac_abs_top_srcdir=$ac_pwd ;;
14991 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 14992 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239 14993 ac_top_srcdir=$srcdir
14994 ac_abs_top_srcdir=$srcdir ;;
14995 *) # Relative name.
14996 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14997 ac_top_srcdir=$ac_top_build_prefix$srcdir
14998 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 14999esac
631ef239 15000ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 15001
212380e3 15002
631ef239 15003 case $ac_mode in
15004 :F)
15005 #
15006 # CONFIG_FILE
15007 #
212380e3 15008
15009 case $INSTALL in
15010 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 15011 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 15012 esac
631ef239 15013_ACEOF
212380e3 15014
631ef239 15015cat >>$CONFIG_STATUS <<\_ACEOF
15016# If the template does not know about datarootdir, expand it.
15017# FIXME: This hack should be removed a few years after 2.60.
15018ac_datarootdir_hack=; ac_datarootdir_seen=
15019
15020case `sed -n '/datarootdir/ {
15021 p
15022 q
15023}
15024/@datadir@/p
15025/@docdir@/p
15026/@infodir@/p
15027/@localedir@/p
15028/@mandir@/p
15029' $ac_file_inputs` in
15030*datarootdir*) ac_datarootdir_seen=yes;;
15031*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15032 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15033echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15034_ACEOF
15035cat >>$CONFIG_STATUS <<_ACEOF
15036 ac_datarootdir_hack='
15037 s&@datadir@&$datadir&g
15038 s&@docdir@&$docdir&g
15039 s&@infodir@&$infodir&g
15040 s&@localedir@&$localedir&g
15041 s&@mandir@&$mandir&g
15042 s&\\\${datarootdir}&$datarootdir&g' ;;
15043esac
212380e3 15044_ACEOF
631ef239 15045
15046# Neutralize VPATH when `$srcdir' = `.'.
15047# Shell code in configure.ac might set extrasub.
15048# FIXME: do we really want to maintain this feature?
212380e3 15049cat >>$CONFIG_STATUS <<_ACEOF
15050 sed "$ac_vpsub
15051$extrasub
15052_ACEOF
15053cat >>$CONFIG_STATUS <<\_ACEOF
15054:t
15055/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
631ef239 15056s&@configure_input@&$configure_input&;t t
15057s&@top_builddir@&$ac_top_builddir_sub&;t t
15058s&@srcdir@&$ac_srcdir&;t t
15059s&@abs_srcdir@&$ac_abs_srcdir&;t t
15060s&@top_srcdir@&$ac_top_srcdir&;t t
15061s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15062s&@builddir@&$ac_builddir&;t t
15063s&@abs_builddir@&$ac_abs_builddir&;t t
15064s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15065s&@INSTALL@&$ac_INSTALL&;t t
15066$ac_datarootdir_hack
15067" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15068
15069test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15070 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15072 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15073which seems to be undefined. Please make sure it is defined." >&5
15074echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15075which seems to be undefined. Please make sure it is defined." >&2;}
15076
15077 rm -f "$tmp/stdin"
212380e3 15078 case $ac_file in
631ef239 15079 -) cat "$tmp/out"; rm -f "$tmp/out";;
15080 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
212380e3 15081 esac
631ef239 15082 ;;
15083 :H)
15084 #
15085 # CONFIG_HEADER
15086 #
15087_ACEOF
15088
15089# Transform confdefs.h into a sed script `conftest.defines', that
15090# substitutes the proper values into config.h.in to produce config.h.
15091rm -f conftest.defines conftest.tail
15092# First, append a space to every undef/define line, to ease matching.
15093echo 's/$/ /' >conftest.defines
15094# Then, protect against being on the right side of a sed subst, or in
15095# an unquoted here document, in config.status. If some macros were
15096# called several times there might be several #defines for the same
15097# symbol, which is useless. But do not sort them, since the last
15098# AC_DEFINE must be honored.
15099ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15100# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15101# NAME is the cpp macro being defined, VALUE is the value it is being given.
15102# PARAMS is the parameter list in the macro definition--in most cases, it's
15103# just an empty string.
15104ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15105ac_dB='\\)[ (].*,\\1define\\2'
15106ac_dC=' '
15107ac_dD=' ,'
15108
15109uniq confdefs.h |
15110 sed -n '
15111 t rset
15112 :rset
15113 s/^[ ]*#[ ]*define[ ][ ]*//
15114 t ok
15115 d
15116 :ok
15117 s/[\\&,]/\\&/g
15118 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15119 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15120 ' >>conftest.defines
15121
15122# Remove the space that was appended to ease matching.
15123# Then replace #undef with comments. This is necessary, for
212380e3 15124# example, in the case of _POSIX_SOURCE, which is predefined and required
15125# on some systems where configure will not decide to define it.
631ef239 15126# (The regexp can be short, since the line contains either #define or #undef.)
15127echo 's/ $//
15128s,^[ #]*u.*,/* & */,' >>conftest.defines
15129
15130# Break up conftest.defines:
15131ac_max_sed_lines=50
15132
15133# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15134# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15135# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15136# et cetera.
15137ac_in='$ac_file_inputs'
15138ac_out='"$tmp/out1"'
15139ac_nxt='"$tmp/out2"'
15140
15141while :
212380e3 15142do
631ef239 15143 # Write a here document:
15144 cat >>$CONFIG_STATUS <<_ACEOF
15145 # First, check the format of the line:
15146 cat >"\$tmp/defines.sed" <<\\CEOF
15147/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15148/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15149b
15150:def
15151_ACEOF
15152 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
212380e3 15153 echo 'CEOF
631ef239 15154 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15155 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15156 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15157 grep . conftest.tail >/dev/null || break
212380e3 15158 rm -f conftest.defines
15159 mv conftest.tail conftest.defines
15160done
631ef239 15161rm -f conftest.defines conftest.tail
212380e3 15162
631ef239 15163echo "ac_result=$ac_in" >>$CONFIG_STATUS
212380e3 15164cat >>$CONFIG_STATUS <<\_ACEOF
212380e3 15165 if test x"$ac_file" != x-; then
631ef239 15166 echo "/* $configure_input */" >"$tmp/config.h"
15167 cat "$ac_result" >>"$tmp/config.h"
15168 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
212380e3 15169 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15170echo "$as_me: $ac_file is unchanged" >&6;}
15171 else
212380e3 15172 rm -f $ac_file
631ef239 15173 mv "$tmp/config.h" $ac_file
212380e3 15174 fi
15175 else
631ef239 15176 echo "/* $configure_input */"
15177 cat "$ac_result"
212380e3 15178 fi
631ef239 15179 rm -f "$tmp/out12"
15180 ;;
15181
15182
15183 esac
15184
15185done # for ac_tag
212380e3 15186
212380e3 15187
15188{ (exit 0); exit 0; }
15189_ACEOF
15190chmod +x $CONFIG_STATUS
15191ac_clean_files=$ac_clean_files_save
15192
15193
15194# configure is writing to config.log, and then calls config.status.
15195# config.status does its own redirection, appending to config.log.
15196# Unfortunately, on DOS this fails, as config.log is still kept open
15197# by configure, so config.status won't be able to write to it; its
15198# output is simply discarded. So we exec the FD to /dev/null,
15199# effectively closing config.log, so it can be properly (re)opened and
15200# appended to by config.status. When coming back to configure, we
15201# need to make the FD available again.
15202if test "$no_create" != yes; then
15203 ac_cs_success=:
15204 ac_config_status_args=
15205 test "$silent" = yes &&
15206 ac_config_status_args="$ac_config_status_args --quiet"
15207 exec 5>/dev/null
15208 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15209 exec 5>>config.log
15210 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15211 # would make configure fail if this is the last instruction.
15212 $ac_cs_success || { (exit 1); exit 1; }
15213fi
15214
15215
15216if test "$cf_openssl_version_ok" = yes; then
15217 openssl="yes"
15218else
15219 openssl="no"
15220fi
15221
15222if test "$shared_modules" = yes; then
15223 modules=shared
15224else
15225 modules=static
15226fi
15227
15228echo "
15229Configuration:
15230 Install directory : $prefix
15231
15232 Ziplinks : $zlib
15233 OpenSSL : $openssl
15234 Modules : $modules
15235 IPv6 support : $have_v6
15236 Socket Engine : $SELECT_TYPE
15237 Small network : $small_net
15238 Block allocator : $balloc
15239 ASM hashing code : $ricer_hashing
15240
15241 Nickname length : $NICKLEN
15242 Topic length : $TOPICLEN
15243
15244Use make to compile Charybdis, then make install to install it.
15245"