]> jfr.im git - irc/rqf/shadowircd.git/blame_incremental - configure
privset example: Add a privset for local bots like BOPM and TCMs.
[irc/rqf/shadowircd.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for charybdis 3.1.
4#
5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
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
53fi
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
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
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
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
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
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'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
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
161fi
162
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}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
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=
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=.
228 case $as_dir in
229 /*)
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(
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
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" || {
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
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.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
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
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465}
466
467
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';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
507 as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
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
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
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
553
554exec 7<&0 </dev/null 6>&1
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
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='charybdis'
576PACKAGE_TARNAME='charybdis'
577PACKAGE_VERSION='3.1'
578PACKAGE_STRING='charybdis 3.1'
579PACKAGE_BUGREPORT=''
580
581ac_default_prefix=$HOME/ircd
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
585#ifdef HAVE_SYS_TYPES_H
586# include <sys/types.h>
587#endif
588#ifdef HAVE_SYS_STAT_H
589# include <sys/stat.h>
590#endif
591#ifdef STDC_HEADERS
592# include <stdlib.h>
593# include <stddef.h>
594#else
595# ifdef HAVE_STDLIB_H
596# include <stdlib.h>
597# endif
598#endif
599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601# include <memory.h>
602# endif
603# include <string.h>
604#endif
605#ifdef HAVE_STRINGS_H
606# include <strings.h>
607#endif
608#ifdef HAVE_INTTYPES_H
609# include <inttypes.h>
610#endif
611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
615# include <unistd.h>
616#endif"
617
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
662subdirs
663MKDEP
664MAKEDEPEND
665STDOUT
666CPP
667GREP
668EGREP
669SET_MAKE
670INSTALL_PROGRAM
671INSTALL_SCRIPT
672INSTALL_DATA
673RM
674CP
675MV
676LN
677SED
678AR
679LD
680RANLIB
681TOUCH
682YACC
683YFLAGS
684LEX
685LEX_OUTPUT_ROOT
686LEXLIB
687CRYPT_LIB
688VICONF
689ALLOCA
690ENCSPEED
691ZLIB_LD
692ETC_DIR
693confdir
694LOG_DIR
695logdir
696HELP_DIR
697helpdir
698MODULE_DIR
699moduledir
700SELECT_TYPE
701MODULES_LIBS
702MOD_TARGET
703SSL_SRCS_ENABLE
704SSL_INCLUDES
705SSL_LIBS
706PICFLAGS
707IRC_CFLAGS
708SEDOBJ
709LIBOBJS
710LTLIBOBJS'
711ac_subst_files=''
712 ac_precious_vars='build_alias
713host_alias
714target_alias
715CC
716CFLAGS
717LDFLAGS
718LIBS
719CPPFLAGS
720CPP
721YACC
722YFLAGS'
723ac_subdirs_all='libratbox'
724
725# Initialize some variables set by options.
726ac_init_help=
727ac_init_version=false
728# The variables have the same names as the options, with
729# dashes changed to underlines.
730cache_file=/dev/null
731exec_prefix=NONE
732no_create=
733no_recursion=
734prefix=NONE
735program_prefix=NONE
736program_suffix=NONE
737program_transform_name=s,x,x,
738silent=
739site=
740srcdir=
741verbose=
742x_includes=NONE
743x_libraries=NONE
744
745# Installation directory options.
746# These are left unexpanded so users can "make install exec_prefix=/foo"
747# and all the variables that are supposed to be based on exec_prefix
748# by default will actually change.
749# Use braces instead of parens because sh, perl, etc. also accept them.
750# (The list follows the same order as the GNU Coding Standards.)
751bindir='${exec_prefix}/bin'
752sbindir='${exec_prefix}/sbin'
753libexecdir='${exec_prefix}/libexec'
754datarootdir='${prefix}/share'
755datadir='${datarootdir}'
756sysconfdir='${prefix}/etc'
757sharedstatedir='${prefix}/com'
758localstatedir='${prefix}/var'
759includedir='${prefix}/include'
760oldincludedir='/usr/include'
761docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762infodir='${datarootdir}/info'
763htmldir='${docdir}'
764dvidir='${docdir}'
765pdfdir='${docdir}'
766psdir='${docdir}'
767libdir='${exec_prefix}/lib'
768localedir='${datarootdir}/locale'
769mandir='${datarootdir}/man'
770
771ac_prev=
772ac_dashdash=
773for ac_option
774do
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\$ac_option
778 ac_prev=
779 continue
780 fi
781
782 case $ac_option in
783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 *) ac_optarg=yes ;;
785 esac
786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
792
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 bindir=$ac_optarg ;;
797
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
802
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
809
810 --config-cache | -C)
811 cache_file=config.cache ;;
812
813 -datadir | --datadir | --datadi | --datad)
814 ac_prev=datadir ;;
815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 datadir=$ac_optarg ;;
817
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
824
825 -disable-* | --disable-*)
826 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
829 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
830 { (exit 1); exit 1; }; }
831 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
832 eval enable_$ac_feature=no ;;
833
834 -docdir | --docdir | --docdi | --doc | --do)
835 ac_prev=docdir ;;
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837 docdir=$ac_optarg ;;
838
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 ac_prev=dvidir ;;
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842 dvidir=$ac_optarg ;;
843
844 -enable-* | --enable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=\$ac_optarg ;;
852
853 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855 | --exec | --exe | --ex)
856 ac_prev=exec_prefix ;;
857 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859 | --exec=* | --exe=* | --ex=*)
860 exec_prefix=$ac_optarg ;;
861
862 -gas | --gas | --ga | --g)
863 # Obsolete; use --with-gas.
864 with_gas=yes ;;
865
866 -help | --help | --hel | --he | -h)
867 ac_init_help=long ;;
868 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869 ac_init_help=recursive ;;
870 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871 ac_init_help=short ;;
872
873 -host | --host | --hos | --ho)
874 ac_prev=host_alias ;;
875 -host=* | --host=* | --hos=* | --ho=*)
876 host_alias=$ac_optarg ;;
877
878 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 ac_prev=htmldir ;;
880 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 | --ht=*)
882 htmldir=$ac_optarg ;;
883
884 -includedir | --includedir | --includedi | --included | --include \
885 | --includ | --inclu | --incl | --inc)
886 ac_prev=includedir ;;
887 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888 | --includ=* | --inclu=* | --incl=* | --inc=*)
889 includedir=$ac_optarg ;;
890
891 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 ac_prev=infodir ;;
893 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894 infodir=$ac_optarg ;;
895
896 -libdir | --libdir | --libdi | --libd)
897 ac_prev=libdir ;;
898 -libdir=* | --libdir=* | --libdi=* | --libd=*)
899 libdir=$ac_optarg ;;
900
901 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902 | --libexe | --libex | --libe)
903 ac_prev=libexecdir ;;
904 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905 | --libexe=* | --libex=* | --libe=*)
906 libexecdir=$ac_optarg ;;
907
908 -localedir | --localedir | --localedi | --localed | --locale)
909 ac_prev=localedir ;;
910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911 localedir=$ac_optarg ;;
912
913 -localstatedir | --localstatedir | --localstatedi | --localstated \
914 | --localstate | --localstat | --localsta | --localst | --locals)
915 ac_prev=localstatedir ;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918 localstatedir=$ac_optarg ;;
919
920 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 ac_prev=mandir ;;
922 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923 mandir=$ac_optarg ;;
924
925 -nfp | --nfp | --nf)
926 # Obsolete; use --without-fp.
927 with_fp=no ;;
928
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c | -n)
931 no_create=yes ;;
932
933 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
935 no_recursion=yes ;;
936
937 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939 | --oldin | --oldi | --old | --ol | --o)
940 ac_prev=oldincludedir ;;
941 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944 oldincludedir=$ac_optarg ;;
945
946 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 ac_prev=prefix ;;
948 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
949 prefix=$ac_optarg ;;
950
951 -program-prefix | --program-prefix | --program-prefi | --program-pref \
952 | --program-pre | --program-pr | --program-p)
953 ac_prev=program_prefix ;;
954 -program-prefix=* | --program-prefix=* | --program-prefi=* \
955 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956 program_prefix=$ac_optarg ;;
957
958 -program-suffix | --program-suffix | --program-suffi | --program-suff \
959 | --program-suf | --program-su | --program-s)
960 ac_prev=program_suffix ;;
961 -program-suffix=* | --program-suffix=* | --program-suffi=* \
962 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963 program_suffix=$ac_optarg ;;
964
965 -program-transform-name | --program-transform-name \
966 | --program-transform-nam | --program-transform-na \
967 | --program-transform-n | --program-transform- \
968 | --program-transform | --program-transfor \
969 | --program-transfo | --program-transf \
970 | --program-trans | --program-tran \
971 | --progr-tra | --program-tr | --program-t)
972 ac_prev=program_transform_name ;;
973 -program-transform-name=* | --program-transform-name=* \
974 | --program-transform-nam=* | --program-transform-na=* \
975 | --program-transform-n=* | --program-transform-=* \
976 | --program-transform=* | --program-transfor=* \
977 | --program-transfo=* | --program-transf=* \
978 | --program-trans=* | --program-tran=* \
979 | --progr-tra=* | --program-tr=* | --program-t=*)
980 program_transform_name=$ac_optarg ;;
981
982 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 ac_prev=pdfdir ;;
984 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
985 pdfdir=$ac_optarg ;;
986
987 -psdir | --psdir | --psdi | --psd | --ps)
988 ac_prev=psdir ;;
989 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
990 psdir=$ac_optarg ;;
991
992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993 | -silent | --silent | --silen | --sile | --sil)
994 silent=yes ;;
995
996 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 ac_prev=sbindir ;;
998 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 | --sbi=* | --sb=*)
1000 sbindir=$ac_optarg ;;
1001
1002 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004 | --sharedst | --shareds | --shared | --share | --shar \
1005 | --sha | --sh)
1006 ac_prev=sharedstatedir ;;
1007 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 | --sha=* | --sh=*)
1011 sharedstatedir=$ac_optarg ;;
1012
1013 -site | --site | --sit)
1014 ac_prev=site ;;
1015 -site=* | --site=* | --sit=*)
1016 site=$ac_optarg ;;
1017
1018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 ac_prev=srcdir ;;
1020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021 srcdir=$ac_optarg ;;
1022
1023 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024 | --syscon | --sysco | --sysc | --sys | --sy)
1025 ac_prev=sysconfdir ;;
1026 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028 sysconfdir=$ac_optarg ;;
1029
1030 -target | --target | --targe | --targ | --tar | --ta | --t)
1031 ac_prev=target_alias ;;
1032 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033 target_alias=$ac_optarg ;;
1034
1035 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1036 verbose=yes ;;
1037
1038 -version | --version | --versio | --versi | --vers | -V)
1039 ac_init_version=: ;;
1040
1041 -with-* | --with-*)
1042 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=\$ac_optarg ;;
1049
1050 -without-* | --without-*)
1051 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_$ac_package=no ;;
1058
1059 --x)
1060 # Obsolete; use --with-x.
1061 with_x=yes ;;
1062
1063 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064 | --x-incl | --x-inc | --x-in | --x-i)
1065 ac_prev=x_includes ;;
1066 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068 x_includes=$ac_optarg ;;
1069
1070 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1071 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072 ac_prev=x_libraries ;;
1073 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075 x_libraries=$ac_optarg ;;
1076
1077 -*) { echo "$as_me: error: unrecognized option: $ac_option
1078Try \`$0 --help' for more information." >&2
1079 { (exit 1); exit 1; }; }
1080 ;;
1081
1082 *=*)
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1087 { (exit 1); exit 1; }; }
1088 eval $ac_envvar=\$ac_optarg
1089 export $ac_envvar ;;
1090
1091 *)
1092 # FIXME: should be removed in autoconf 3.0.
1093 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 ;;
1098
1099 esac
1100done
1101
1102if test -n "$ac_prev"; then
1103 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1104 { echo "$as_me: error: missing argument to $ac_option" >&2
1105 { (exit 1); exit 1; }; }
1106fi
1107
1108# Be sure to have absolute directory names.
1109for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112 libdir localedir mandir
1113do
1114 eval ac_val=\$$ac_var
1115 case $ac_val in
1116 [\\/$]* | ?:[\\/]* ) continue;;
1117 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1118 esac
1119 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1120 { (exit 1); exit 1; }; }
1121done
1122
1123# There might be people who depend on the old broken behavior: `$host'
1124# used to hold the argument of --host etc.
1125# FIXME: To remove some day.
1126build=$build_alias
1127host=$host_alias
1128target=$target_alias
1129
1130# FIXME: To remove some day.
1131if test "x$host_alias" != x; then
1132 if test "x$build_alias" = x; then
1133 cross_compiling=maybe
1134 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1135 If a cross compiler is detected then cross compile mode will be used." >&2
1136 elif test "x$build_alias" != "x$host_alias"; then
1137 cross_compiling=yes
1138 fi
1139fi
1140
1141ac_tool_prefix=
1142test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144test "$silent" = yes && exec 6>/dev/null
1145
1146
1147ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148ac_ls_di=`ls -di .` &&
1149ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 { echo "$as_me: error: Working directory cannot be determined" >&2
1151 { (exit 1); exit 1; }; }
1152test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153 { echo "$as_me: error: pwd does not report name of working directory" >&2
1154 { (exit 1); exit 1; }; }
1155
1156
1157# Find the source files, if location was not specified.
1158if test -z "$srcdir"; then
1159 ac_srcdir_defaulted=yes
1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir=`$as_dirname -- "$0" ||
1162$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163 X"$0" : 'X\(//\)[^/]' \| \
1164 X"$0" : 'X\(//\)$' \| \
1165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166echo X"$0" |
1167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\/\)[^/].*/{
1172 s//\1/
1173 q
1174 }
1175 /^X\(\/\/\)$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\).*/{
1180 s//\1/
1181 q
1182 }
1183 s/.*/./; q'`
1184 srcdir=$ac_confdir
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 srcdir=..
1187 fi
1188else
1189 ac_srcdir_defaulted=no
1190fi
1191if test ! -r "$srcdir/$ac_unique_file"; then
1192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1193 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1194 { (exit 1); exit 1; }; }
1195fi
1196ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197ac_abs_confdir=`(
1198 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1199 { (exit 1); exit 1; }; }
1200 pwd)`
1201# When building in place, set srcdir=.
1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204fi
1205# Remove unnecessary trailing slashes from srcdir.
1206# Double slashes in file names in object file debugging info
1207# mess up M-x gdb in Emacs.
1208case $srcdir in
1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210esac
1211for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216done
1217
1218#
1219# Report the --help message.
1220#
1221if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225\`configure' configures charybdis 3.1 to adapt to many kinds of systems.
1226
1227Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232Defaults for the options are specified in brackets.
1233
1234Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
1245Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249 [PREFIX]
1250
1251By default, \`make install' will install all the files in
1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254for instance \`--prefix=\$HOME'.
1255
1256For better control, use the options below.
1257
1258Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1278_ACEOF
1279
1280 cat <<\_ACEOF
1281_ACEOF
1282fi
1283
1284if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of charybdis 3.1:";;
1287 esac
1288 cat <<\_ACEOF
1289
1290Optional Features:
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --enable-ipv6 Enable IPv6 support
1294 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1295 --disable-openssl Disable OpenSSL support.
1296 --disable-zlib Disable ziplinks support
1297 --enable-ports Force solaris I/O ports subsystem usage.
1298 --enable-poll Force poll() usage.
1299 --enable-select Force select() usage.
1300 --enable-kqueue Force kqueue() usage.
1301 --enable-epoll Force sys_epoll usage (Linux only).
1302 --enable-assert Enable assert(). Choose between soft(warnings) and
1303 hard(aborts the daemon)
1304 --enable-iodebug Enable IO Debugging hooks
1305 --enable-profile Enable profiling
1306 --disable-balloc Disable the block allocator.
1307 --enable-small-net Enable small network support.
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)
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>
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>
1330 CPP C preprocessor
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.
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
1341ac_status=$?
1342fi
1343
1344if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347 test -d "$ac_dir" || continue
1348 ac_builddir=.
1349
1350case "$ac_dir" in
1351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352*)
1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
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
1365
1366case $srcdir in
1367 .) # We are building in place.
1368 ac_srcdir=.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1379esac
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
1390 else
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1394 done
1395fi
1396
1397test -n "$ac_init_help" && exit $ac_status
1398if $ac_init_version; then
1399 cat <<\_ACEOF
1400charybdis configure 3.1
1401generated by GNU Autoconf 2.61
1402
1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407
1408$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
1409_ACEOF
1410 exit
1411fi
1412cat >config.log <<_ACEOF
1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
1416It was created by charybdis $as_me 3.1, which was
1417generated by GNU Autoconf 2.61. Invocation command line was
1418
1419 $ $0 $@
1420
1421_ACEOF
1422exec 5>>config.log
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`
1441/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
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
1455IFS=$as_save_IFS
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=
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 ;;
1487 *\'*)
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
1509 ac_configure_args="$ac_configure_args '$ac_arg'"
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.
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.
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,
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
1549 (set) 2>&1 |
1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
1552 sed -n \
1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1555 ;; #(
1556 *)
1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1558 ;;
1559 esac |
1560 sort
1561)
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
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'\''"
1577 done | sort
1578 echo
1579
1580 if test -n "$ac_subst_files"; then
1581 cat <<\_ASBOX
1582## ------------------- ##
1583## File substitutions. ##
1584## ------------------- ##
1585_ASBOX
1586 echo
1587 for ac_var in $ac_subst_files
1588 do
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'\''"
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
1605 cat confdefs.h
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
1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1614 exit $exit_status
1615' 0
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.
1622rm -f -r conftest* confdefs.h
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.
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"
1660fi
1661shift
1662for ac_site_file
1663do
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
1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
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
1692for ac_var in $ac_precious_vars; do
1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1694 eval ac_new_set=\$ac_env_${ac_var}_set
1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1696 eval ac_new_val=\$ac_env_${ac_var}_value
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
1721 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
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
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
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
1767
1768
1769
1770ac_config_headers="$ac_config_headers include/setup.h"
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
1791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1812IFS=$as_save_IFS
1813
1814fi
1815fi
1816CC=$ac_cv_prog_CC
1817if test -n "$CC"; then
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819echo "${ECHO_T}$CC" >&6; }
1820else
1821 { echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6; }
1823fi
1824
1825
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
1831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1852IFS=$as_save_IFS
1853
1854fi
1855fi
1856ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857if test -n "$ac_ct_CC"; then
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859echo "${ECHO_T}$ac_ct_CC" >&6; }
1860else
1861 { echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6; }
1863fi
1864
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
1880else
1881 CC="$ac_cv_prog_CC"
1882fi
1883
1884if test -z "$CC"; then
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.
1887set dummy ${ac_tool_prefix}cc; ac_word=$2
1888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1909IFS=$as_save_IFS
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6; }
1917else
1918 { echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6; }
1920fi
1921
1922
1923 fi
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
1928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
1954IFS=$as_save_IFS
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
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6; }
1974else
1975 { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
1977fi
1978
1979
1980fi
1981if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog in cl.exe
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
1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2008IFS=$as_save_IFS
2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
2016else
2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
2019fi
2020
2021
2022 test -n "$CC" && break
2023 done
2024fi
2025if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl.exe
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
2031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
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
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
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
2052IFS=$as_save_IFS
2053
2054fi
2055fi
2056ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057if test -n "$ac_ct_CC"; then
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059echo "${ECHO_T}$ac_ct_CC" >&6; }
2060else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
2063fi
2064
2065
2066 test -n "$ac_ct_CC" && break
2067done
2068
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
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.
2096echo "$as_me:$LINENO: checking for C compiler version" >&5
2097ac_compiler=`set X $ac_compile; echo $2`
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
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
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
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
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
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.
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; }
2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
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
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
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 ''
2187do
2188 test -f "$ac_file" || continue
2189 case $ac_file in
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2191 ;;
2192 [ab].out )
2193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* )
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.
2206 break;;
2207 * )
2208 break;;
2209 esac
2210done
2211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
2213else
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
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
2231
2232# Check that the compiler produces executables we can run. If not, either
2233# the compiler is broken, or we cross compile.
2234{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
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'
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
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
2264{ echo "$as_me:$LINENO: result: yes" >&5
2265echo "${ECHO_T}yes" >&6; }
2266
2267rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268ac_clean_files=$ac_clean_files_save
2269# Check that the compiler produces executables we can run. If not, either
2270# the compiler is broken, or we cross compile.
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
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
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
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
2310{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6; }
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
2316{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
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
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
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
2349 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
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
2368{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6; }
2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
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; }
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
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
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
2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
2412 ac_compiler_gnu=yes
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418fi
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
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
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
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
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
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
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
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
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
2547 ac_cv_prog_cc_g=yes
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552
2553fi
2554
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
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
2563fi
2564{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
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
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
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586 ac_cv_prog_cc_c89=no
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
2620 as 'x'. The following induces an error, until -std is added to get
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
2623 that's true only with -std. */
2624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2625
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
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
2645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2647do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
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
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
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
2667else
2668 echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671
2672fi
2673
2674rm -f core conftest.err conftest.$ac_objext
2675 test "x$ac_cv_prog_cc_c89" != "xno" && break
2676done
2677rm -f conftest.$ac_ext
2678CC=$ac_save_CC
2679
2680fi
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; } ;;
2689 *)
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; } ;;
2693esac
2694
2695
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
2711ac_aux_dir=
2712for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713 if test -f "$ac_dir/install-sh"; then
2714 ac_aux_dir=$ac_dir
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2716 break
2717 elif test -f "$ac_dir/install.sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install.sh -c"
2720 break
2721 elif test -f "$ac_dir/shtool"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/shtool install -c"
2724 break
2725 fi
2726done
2727if test -z "$ac_aux_dir"; then
2728 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2729echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2730 { (exit 1); exit 1; }; }
2731fi
2732
2733# These three variables are undocumented and unsupported,
2734# and are intended to be withdrawn in a future Autoconf release.
2735# They can cause serious problems if a builder's source tree is in a directory
2736# whose full name contains unusual characters.
2737ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740
2741
2742subdirs="$subdirs libratbox"
2743
2744
2745
2746if test "$ac_cv_c_compiler_gnu" != yes; then
2747
2748SGS=no
2749{ echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2750echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; }
2751case `$CC -version 2>&1` in
2752*TenDRA*)
2753 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2754echo "${ECHO_T}yes, TenDRA" >&6; }
2755 IRC_CFLAGS=""
2756 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2757 SGS=yes
2758 TenDRA=yes
2759;;
2760*MIPSpro*)
2761 { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2762echo "${ECHO_T}yes, MIPSpro" >&6; }
2763 MIPSpro=yes
2764 SGS=yes
2765;;
2766*)
2767 { echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6; }
2769 TenDRA=no
2770 MIPSpro=no
2771;;
2772esac
2773
2774{ echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2775echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; }
2776case `$CC -V 2>&1` in
2777*Sun*WorkShop* | *Forte*Developer*)
2778 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2779echo "${ECHO_T}Sun Workshop/Forte" >&6; }
2780 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2781 SunWorkShop=yes
2782 SGS=yes
2783;;
2784*Tru64*)
2785 { echo "$as_me:$LINENO: result: Tru64 cc" >&5
2786echo "${ECHO_T}Tru64 cc" >&6; }
2787 IRC_CFLAGS="-O2"
2788 CPPFLAGS="-I/usr/local/include"
2789 Tru=yes
2790;;
2791*HP*ANSI*)
2792 { echo "$as_me:$LINENO: result: HPUX cc" >&5
2793echo "${ECHO_T}HPUX cc" >&6; }
2794 HPUX=yes
2795 IRC_CFLAGS="+e"
2796;;
2797*)
2798 { echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6; }
2800;;
2801esac
2802
2803fi
2804
2805{ echo "$as_me:$LINENO: checking uname -s for Solaris, AIX or HPUX" >&5
2806echo $ECHO_N "checking uname -s for Solaris, AIX or HPUX... $ECHO_C" >&6; }
2807OSNAME=`uname -s`
2808case "$OSNAME" in
2809 HP-UX*)
2810
2811 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2812 { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2813echo "${ECHO_T}assuming old HPUX with its own cc" >&6; }
2814 IRC_CFLAGS="$IRC_CFLAGS +e"
2815 HPUX=yes
2816 else
2817 { echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2818echo "${ECHO_T}already using newer HPUX" >&6; }
2819 fi
2820 ;;
2821 SunOS*)
2822 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2823echo "${ECHO_T}SunOS or Solaris" >&6; }
2824
2825cat >>confdefs.h <<\_ACEOF
2826#define __EXTENSIONS__ 1
2827_ACEOF
2828
2829 SUN=yes
2830 ;;
2831 AIX*)
2832 { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2833echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; }
2834 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2835 ;;
2836 *)
2837 { echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6; }
2839 ;;
2840esac
2841
2842if test "$ac_cv_c_compiler_gnu" = yes; then
2843 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2844echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
2845
2846 case `$CC -v 2>&1 | tail -n 1` in
2847 *Apple*)
2848 { echo "$as_me:$LINENO: result: yes" >&5
2849echo "${ECHO_T}yes" >&6; }
2850 AppleGCC=yes
2851 ;;
2852 *)
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855 AppleGCC=no
2856 ;;
2857 esac
2858
2859 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
2860fi
2861
2862if test "$ac_cv_prog_cc_g" = yes; then
2863 if test "$Tru" = yes; then
2864 IRC_CFLAGS="$IRC_CFLAGS -g3"
2865 else
2866 IRC_CFLAGS="$IRC_CFLAGS -g"
2867 fi
2868fi
2869
2870{ echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2871echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
2872if test "$SGS" = "yes"; then
2873 { echo "$as_me:$LINENO: result: yes" >&5
2874echo "${ECHO_T}yes" >&6; }
2875else
2876 { echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6; }
2878fi
2879
2880# Extract the first word of "mkdep", so it can be a program name with args.
2881set dummy mkdep; ac_word=$2
2882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884if test "${ac_cv_path_MKDEP+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 case $MKDEP in
2888 [\\/]* | ?:[\\/]*)
2889 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2890 ;;
2891 *)
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
2905IFS=$as_save_IFS
2906
2907 ;;
2908esac
2909fi
2910MKDEP=$ac_cv_path_MKDEP
2911if test -n "$MKDEP"; then
2912 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2913echo "${ECHO_T}$MKDEP" >&6; }
2914else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6; }
2917fi
2918
2919
2920# Extract the first word of "makedepend", so it can be a program name with args.
2921set dummy makedepend; ac_word=$2
2922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927 case $MAKEDEPEND in
2928 [\\/]* | ?:[\\/]*)
2929 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2930 ;;
2931 *)
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945IFS=$as_save_IFS
2946
2947 ;;
2948esac
2949fi
2950MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2951if test -n "$MAKEDEPEND"; then
2952 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2953echo "${ECHO_T}$MAKEDEPEND" >&6; }
2954else
2955 { echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6; }
2957fi
2958
2959
2960
2961{ echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2962echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
2963
2964STDOUT="> .depend"
2965
2966if test "$ac_cv_c_compiler_gnu" = yes; then
2967 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2968echo "${ECHO_T}gcc -MM" >&6; }
2969 MKDEP="$CC -MM"
2970elif test ! -z "$MKDEP"; then
2971 { echo "$as_me:$LINENO: result: mkdep" >&5
2972echo "${ECHO_T}mkdep" >&6; }
2973
2974 if test -z "$Tru"; then
2975 STDOUT=""
2976 else
2977 STDOUT=" 2> /dev/null"
2978 fi
2979elif test "$SunWorkShop" = yes; then
2980 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2981echo "${ECHO_T}$CC -xM" >&6; }
2982 MKDEP="$CC -xM"
2983 STDOUT="> .depend 2> /dev/null"
2984elif test ! -z "$MAKEDEPEND"; then
2985 { echo "$as_me:$LINENO: result: makedepend" >&5
2986echo "${ECHO_T}makedepend" >&6; }
2987 MKDEP="$MAKEDEPEND -f-"
2988else
2989 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2990echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
2991 MKDEP=":"
2992fi
2993
2994
2995
2996
2997{ echo "$as_me:$LINENO: checking for /dev/null" >&5
2998echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
2999if test -c /dev/null ; then
3000
3001cat >>confdefs.h <<\_ACEOF
3002#define PATH_DEVNULL "/dev/null"
3003_ACEOF
3004
3005 { echo "$as_me:$LINENO: result: yes" >&5
3006echo "${ECHO_T}yes" >&6; }
3007else
3008
3009cat >>confdefs.h <<\_ACEOF
3010#define PATH_DEVNULL "devnull.log"
3011_ACEOF
3012
3013 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
3014echo "${ECHO_T}no - using devnull.log" >&6; }
3015fi
3016
3017if test ! -z "$CFLAGS"; then
3018 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3019fi
3020
3021
3022{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3023echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3024if test "${ac_cv_search_strerror+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 ac_func_search_save_LIBS=$LIBS
3028cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034
3035/* Override any GCC internal prototype to avoid an error.
3036 Use char because int might match the return type of a GCC
3037 builtin and then its argument prototype would still apply. */
3038#ifdef __cplusplus
3039extern "C"
3040#endif
3041char strerror ();
3042int
3043main ()
3044{
3045return strerror ();
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050for ac_lib in '' cposix; do
3051 if test -z "$ac_lib"; then
3052 ac_res="none required"
3053 else
3054 ac_res=-l$ac_lib
3055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3056 fi
3057 rm -f conftest.$ac_objext conftest$ac_exeext
3058if { (ac_try="$ac_link"
3059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_link") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest$ac_exeext &&
3074 $as_test_x conftest$ac_exeext; then
3075 ac_cv_search_strerror=$ac_res
3076else
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080
3081fi
3082
3083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3084 conftest$ac_exeext
3085 if test "${ac_cv_search_strerror+set}" = set; then
3086 break
3087fi
3088done
3089if test "${ac_cv_search_strerror+set}" = set; then
3090 :
3091else
3092 ac_cv_search_strerror=no
3093fi
3094rm conftest.$ac_ext
3095LIBS=$ac_func_search_save_LIBS
3096fi
3097{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3098echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3099ac_res=$ac_cv_search_strerror
3100if test "$ac_res" != no; then
3101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3102
3103fi
3104
3105{ echo "$as_me:$LINENO: checking for inline" >&5
3106echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3107if test "${ac_cv_c_inline+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110 ac_cv_c_inline=no
3111for ac_kw in inline __inline__ __inline; do
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118#ifndef __cplusplus
3119typedef int foo_t;
3120static $ac_kw foo_t static_foo () {return 0; }
3121$ac_kw foo_t foo () {return 0; }
3122#endif
3123
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_c_inline=$ac_kw
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147
3148fi
3149
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 test "$ac_cv_c_inline" != no && break
3152done
3153
3154fi
3155{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3157
3158
3159case $ac_cv_c_inline in
3160 inline | yes) ;;
3161 *)
3162 case $ac_cv_c_inline in
3163 no) ac_val=;;
3164 *) ac_val=$ac_cv_c_inline;;
3165 esac
3166 cat >>confdefs.h <<_ACEOF
3167#ifndef __cplusplus
3168#define inline $ac_val
3169#endif
3170_ACEOF
3171 ;;
3172esac
3173
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3180echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3181# On Suns, sometimes $CPP names a directory.
3182if test -n "$CPP" && test -d "$CPP"; then
3183 CPP=
3184fi
3185if test -z "$CPP"; then
3186 if test "${ac_cv_prog_CPP+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189 # Double quotes because CPP needs to be expanded
3190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3191 do
3192 ac_preproc_ok=false
3193for ac_c_preproc_warn_flag in '' yes
3194do
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
3199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207#ifdef __STDC__
3208# include <limits.h>
3209#else
3210# include <assert.h>
3211#endif
3212 Syntax error
3213_ACEOF
3214if { (ac_try="$ac_cpp conftest.$ac_ext"
3215case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } >/dev/null && {
3227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 }; then
3230 :
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 # Broken: fails on valid input.
3236continue
3237fi
3238
3239rm -f conftest.err conftest.$ac_ext
3240
3241 # OK, works on sane cases. Now check whether nonexistent headers
3242 # can be detected and how.
3243 cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249#include <ac_nonexistent.h>
3250_ACEOF
3251if { (ac_try="$ac_cpp conftest.$ac_ext"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
3256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } >/dev/null && {
3264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 }; then
3267 # Broken: success on invalid input.
3268continue
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 # Passes both tests.
3274ac_preproc_ok=:
3275break
3276fi
3277
3278rm -f conftest.err conftest.$ac_ext
3279
3280done
3281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3282rm -f conftest.err conftest.$ac_ext
3283if $ac_preproc_ok; then
3284 break
3285fi
3286
3287 done
3288 ac_cv_prog_CPP=$CPP
3289
3290fi
3291 CPP=$ac_cv_prog_CPP
3292else
3293 ac_cv_prog_CPP=$CPP
3294fi
3295{ echo "$as_me:$LINENO: result: $CPP" >&5
3296echo "${ECHO_T}$CPP" >&6; }
3297ac_preproc_ok=false
3298for ac_c_preproc_warn_flag in '' yes
3299do
3300 # Use a header file that comes with gcc, so configuring glibc
3301 # with a fresh cross-compiler works.
3302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3303 # <limits.h> exists even on freestanding compilers.
3304 # On the NeXT, cc -E runs the code through the compiler's parser,
3305 # not just through cpp. "Syntax error" is here to catch this case.
3306 cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312#ifdef __STDC__
3313# include <limits.h>
3314#else
3315# include <assert.h>
3316#endif
3317 Syntax error
3318_ACEOF
3319if { (ac_try="$ac_cpp conftest.$ac_ext"
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } >/dev/null && {
3332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 }; then
3335 :
3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 # Broken: fails on valid input.
3341continue
3342fi
3343
3344rm -f conftest.err conftest.$ac_ext
3345
3346 # OK, works on sane cases. Now check whether nonexistent headers
3347 # can be detected and how.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#include <ac_nonexistent.h>
3355_ACEOF
3356if { (ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null && {
3369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3371 }; then
3372 # Broken: success on invalid input.
3373continue
3374else
3375 echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 # Passes both tests.
3379ac_preproc_ok=:
3380break
3381fi
3382
3383rm -f conftest.err conftest.$ac_ext
3384
3385done
3386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3387rm -f conftest.err conftest.$ac_ext
3388if $ac_preproc_ok; then
3389 :
3390else
3391 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3392See \`config.log' for more details." >&5
3393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3394See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }
3396fi
3397
3398ac_ext=c
3399ac_cpp='$CPP $CPPFLAGS'
3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403
3404
3405{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3406echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3407if test "${ac_cv_path_GREP+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 # Extract the first word of "grep ggrep" to use in msg output
3411if test -z "$GREP"; then
3412set dummy grep ggrep; ac_prog_name=$2
3413if test "${ac_cv_path_GREP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 ac_path_GREP_found=false
3417# Loop through the user's path and test for each of PROGNAME-LIST
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_prog in grep ggrep; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3426 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3427 # Check for GNU ac_path_GREP and select it if it is found.
3428 # Check for GNU $ac_path_GREP
3429case `"$ac_path_GREP" --version 2>&1` in
3430*GNU*)
3431 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3432*)
3433 ac_count=0
3434 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3435 while :
3436 do
3437 cat "conftest.in" "conftest.in" >"conftest.tmp"
3438 mv "conftest.tmp" "conftest.in"
3439 cp "conftest.in" "conftest.nl"
3440 echo 'GREP' >> "conftest.nl"
3441 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3443 ac_count=`expr $ac_count + 1`
3444 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3445 # Best one so far, save it but keep looking for a better one
3446 ac_cv_path_GREP="$ac_path_GREP"
3447 ac_path_GREP_max=$ac_count
3448 fi
3449 # 10*(2^10) chars as input seems more than enough
3450 test $ac_count -gt 10 && break
3451 done
3452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3453esac
3454
3455
3456 $ac_path_GREP_found && break 3
3457 done
3458done
3459
3460done
3461IFS=$as_save_IFS
3462
3463
3464fi
3465
3466GREP="$ac_cv_path_GREP"
3467if test -z "$GREP"; then
3468 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3469echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3470 { (exit 1); exit 1; }; }
3471fi
3472
3473else
3474 ac_cv_path_GREP=$GREP
3475fi
3476
3477
3478fi
3479{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3480echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3481 GREP="$ac_cv_path_GREP"
3482
3483
3484{ echo "$as_me:$LINENO: checking for egrep" >&5
3485echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3486if test "${ac_cv_path_EGREP+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3490 then ac_cv_path_EGREP="$GREP -E"
3491 else
3492 # Extract the first word of "egrep" to use in msg output
3493if test -z "$EGREP"; then
3494set dummy egrep; ac_prog_name=$2
3495if test "${ac_cv_path_EGREP+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 ac_path_EGREP_found=false
3499# Loop through the user's path and test for each of PROGNAME-LIST
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_prog in egrep; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3508 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3509 # Check for GNU ac_path_EGREP and select it if it is found.
3510 # Check for GNU $ac_path_EGREP
3511case `"$ac_path_EGREP" --version 2>&1` in
3512*GNU*)
3513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3514*)
3515 ac_count=0
3516 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3517 while :
3518 do
3519 cat "conftest.in" "conftest.in" >"conftest.tmp"
3520 mv "conftest.tmp" "conftest.in"
3521 cp "conftest.in" "conftest.nl"
3522 echo 'EGREP' >> "conftest.nl"
3523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3525 ac_count=`expr $ac_count + 1`
3526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3527 # Best one so far, save it but keep looking for a better one
3528 ac_cv_path_EGREP="$ac_path_EGREP"
3529 ac_path_EGREP_max=$ac_count
3530 fi
3531 # 10*(2^10) chars as input seems more than enough
3532 test $ac_count -gt 10 && break
3533 done
3534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3535esac
3536
3537
3538 $ac_path_EGREP_found && break 3
3539 done
3540done
3541
3542done
3543IFS=$as_save_IFS
3544
3545
3546fi
3547
3548EGREP="$ac_cv_path_EGREP"
3549if test -z "$EGREP"; then
3550 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3551echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3552 { (exit 1); exit 1; }; }
3553fi
3554
3555else
3556 ac_cv_path_EGREP=$EGREP
3557fi
3558
3559
3560 fi
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3563echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3564 EGREP="$ac_cv_path_EGREP"
3565
3566
3567if test $ac_cv_c_compiler_gnu = yes; then
3568 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3569echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3570if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 ac_pattern="Autoconf.*'x'"
3574 cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h. */
3580#include <sgtty.h>
3581Autoconf TIOCGETP
3582_ACEOF
3583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3585 ac_cv_prog_gcc_traditional=yes
3586else
3587 ac_cv_prog_gcc_traditional=no
3588fi
3589rm -f conftest*
3590
3591
3592 if test $ac_cv_prog_gcc_traditional = no; then
3593 cat >conftest.$ac_ext <<_ACEOF
3594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
3599#include <termio.h>
3600Autoconf TCGETA
3601_ACEOF
3602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3604 ac_cv_prog_gcc_traditional=yes
3605fi
3606rm -f conftest*
3607
3608 fi
3609fi
3610{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3611echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3612 if test $ac_cv_prog_gcc_traditional = yes; then
3613 CC="$CC -traditional"
3614 fi
3615fi
3616
3617{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3618echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3619set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3620if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 cat >conftest.make <<\_ACEOF
3624SHELL = /bin/sh
3625all:
3626 @echo '@@@%%%=$(MAKE)=@@@%%%'
3627_ACEOF
3628# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3629case `${MAKE-make} -f conftest.make 2>/dev/null` in
3630 *@@@%%%=?*=@@@%%%*)
3631 eval ac_cv_prog_make_${ac_make}_set=yes;;
3632 *)
3633 eval ac_cv_prog_make_${ac_make}_set=no;;
3634esac
3635rm -f conftest.make
3636fi
3637if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3638 { echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6; }
3640 SET_MAKE=
3641else
3642 { echo "$as_me:$LINENO: result: no" >&5
3643echo "${ECHO_T}no" >&6; }
3644 SET_MAKE="MAKE=${MAKE-make}"
3645fi
3646
3647# Find a good install program. We prefer a C program (faster),
3648# so one script is as good as another. But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3662if test -z "$INSTALL"; then
3663if test "${ac_cv_path_install+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 # Account for people who put trailing slashes in PATH elements.
3672case $as_dir/ in
3673 ./ | .// | /cC/* | \
3674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3676 /usr/ucb/* ) ;;
3677 *)
3678 # OSF1 and SCO ODT 3.0 have their own names for install.
3679 # Don't use installbsd from OSF since it installs stuff as root
3680 # by default.
3681 for ac_prog in ginstall scoinst install; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684 if test $ac_prog = install &&
3685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # AIX install. It has an incompatible calling convention.
3687 :
3688 elif test $ac_prog = install &&
3689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # program-specific install script used by HP pwplus--don't use.
3691 :
3692 else
3693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3694 break 3
3695 fi
3696 fi
3697 done
3698 done
3699 ;;
3700esac
3701done
3702IFS=$as_save_IFS
3703
3704
3705fi
3706 if test "${ac_cv_path_install+set}" = set; then
3707 INSTALL=$ac_cv_path_install
3708 else
3709 # As a last resort, use the slow shell script. Don't cache a
3710 # value for INSTALL within a source directory, because that will
3711 # break other packages using the cache if that directory is
3712 # removed, or if the value is a relative name.
3713 INSTALL=$ac_install_sh
3714 fi
3715fi
3716{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3717echo "${ECHO_T}$INSTALL" >&6; }
3718
3719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720# It thinks the first close brace ends the variable substitution.
3721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3722
3723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3724
3725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726
3727# Extract the first word of "rm", so it can be a program name with args.
3728set dummy rm; ac_word=$2
3729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3731if test "${ac_cv_path_RM+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 case $RM in
3735 [\\/]* | ?:[\\/]*)
3736 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3737 ;;
3738 *)
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750done
3751done
3752IFS=$as_save_IFS
3753
3754 ;;
3755esac
3756fi
3757RM=$ac_cv_path_RM
3758if test -n "$RM"; then
3759 { echo "$as_me:$LINENO: result: $RM" >&5
3760echo "${ECHO_T}$RM" >&6; }
3761else
3762 { echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6; }
3764fi
3765
3766
3767# Extract the first word of "cp", so it can be a program name with args.
3768set dummy cp; ac_word=$2
3769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3771if test "${ac_cv_path_CP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 case $CP in
3775 [\\/]* | ?:[\\/]*)
3776 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3777 ;;
3778 *)
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3789 fi
3790done
3791done
3792IFS=$as_save_IFS
3793
3794 ;;
3795esac
3796fi
3797CP=$ac_cv_path_CP
3798if test -n "$CP"; then
3799 { echo "$as_me:$LINENO: result: $CP" >&5
3800echo "${ECHO_T}$CP" >&6; }
3801else
3802 { echo "$as_me:$LINENO: result: no" >&5
3803echo "${ECHO_T}no" >&6; }
3804fi
3805
3806
3807# Extract the first word of "mv", so it can be a program name with args.
3808set dummy mv; ac_word=$2
3809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3811if test "${ac_cv_path_MV+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 case $MV in
3815 [\\/]* | ?:[\\/]*)
3816 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3817 ;;
3818 *)
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3826 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830done
3831done
3832IFS=$as_save_IFS
3833
3834 ;;
3835esac
3836fi
3837MV=$ac_cv_path_MV
3838if test -n "$MV"; then
3839 { echo "$as_me:$LINENO: result: $MV" >&5
3840echo "${ECHO_T}$MV" >&6; }
3841else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6; }
3844fi
3845
3846
3847# Extract the first word of "ln", so it can be a program name with args.
3848set dummy ln; ac_word=$2
3849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3851if test "${ac_cv_path_LN+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 case $LN in
3855 [\\/]* | ?:[\\/]*)
3856 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3857 ;;
3858 *)
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871done
3872IFS=$as_save_IFS
3873
3874 ;;
3875esac
3876fi
3877LN=$ac_cv_path_LN
3878if test -n "$LN"; then
3879 { echo "$as_me:$LINENO: result: $LN" >&5
3880echo "${ECHO_T}$LN" >&6; }
3881else
3882 { echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6; }
3884fi
3885
3886
3887# Extract the first word of "sed", so it can be a program name with args.
3888set dummy sed; ac_word=$2
3889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3891if test "${ac_cv_path_SED+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 case $SED in
3895 [\\/]* | ?:[\\/]*)
3896 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3897 ;;
3898 *)
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911done
3912IFS=$as_save_IFS
3913
3914 ;;
3915esac
3916fi
3917SED=$ac_cv_path_SED
3918if test -n "$SED"; then
3919 { echo "$as_me:$LINENO: result: $SED" >&5
3920echo "${ECHO_T}$SED" >&6; }
3921else
3922 { echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6; }
3924fi
3925
3926
3927# Extract the first word of "ar", so it can be a program name with args.
3928set dummy ar; ac_word=$2
3929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3931if test "${ac_cv_path_AR+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 case $AR in
3935 [\\/]* | ?:[\\/]*)
3936 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3937 ;;
3938 *)
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951done
3952IFS=$as_save_IFS
3953
3954 ;;
3955esac
3956fi
3957AR=$ac_cv_path_AR
3958if test -n "$AR"; then
3959 { echo "$as_me:$LINENO: result: $AR" >&5
3960echo "${ECHO_T}$AR" >&6; }
3961else
3962 { echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6; }
3964fi
3965
3966
3967# Extract the first word of "ld", so it can be a program name with args.
3968set dummy ld; ac_word=$2
3969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3971if test "${ac_cv_path_LD+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 case $LD in
3975 [\\/]* | ?:[\\/]*)
3976 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3977 ;;
3978 *)
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991done
3992IFS=$as_save_IFS
3993
3994 ;;
3995esac
3996fi
3997LD=$ac_cv_path_LD
3998if test -n "$LD"; then
3999 { echo "$as_me:$LINENO: result: $LD" >&5
4000echo "${ECHO_T}$LD" >&6; }
4001else
4002 { echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6; }
4004fi
4005
4006
4007# Extract the first word of "ranlib", so it can be a program name with args.
4008set dummy ranlib; ac_word=$2
4009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4011if test "${ac_cv_path_RANLIB+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014 case $RANLIB in
4015 [\\/]* | ?:[\\/]*)
4016 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4017 ;;
4018 *)
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030done
4031done
4032IFS=$as_save_IFS
4033
4034 ;;
4035esac
4036fi
4037RANLIB=$ac_cv_path_RANLIB
4038if test -n "$RANLIB"; then
4039 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4040echo "${ECHO_T}$RANLIB" >&6; }
4041else
4042 { echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6; }
4044fi
4045
4046
4047# Extract the first word of "touch", so it can be a program name with args.
4048set dummy touch; ac_word=$2
4049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051if test "${ac_cv_path_TOUCH+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054 case $TOUCH in
4055 [\\/]* | ?:[\\/]*)
4056 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4057 ;;
4058 *)
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070done
4071done
4072IFS=$as_save_IFS
4073
4074 ;;
4075esac
4076fi
4077TOUCH=$ac_cv_path_TOUCH
4078if test -n "$TOUCH"; then
4079 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4080echo "${ECHO_T}$TOUCH" >&6; }
4081else
4082 { echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6; }
4084fi
4085
4086
4087
4088for ac_prog in 'bison -y' byacc
4089do
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091set dummy $ac_prog; ac_word=$2
4092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4094if test "${ac_cv_prog_YACC+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 if test -n "$YACC"; then
4098 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_YACC="$ac_prog"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111done
4112done
4113IFS=$as_save_IFS
4114
4115fi
4116fi
4117YACC=$ac_cv_prog_YACC
4118if test -n "$YACC"; then
4119 { echo "$as_me:$LINENO: result: $YACC" >&5
4120echo "${ECHO_T}$YACC" >&6; }
4121else
4122 { echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6; }
4124fi
4125
4126
4127 test -n "$YACC" && break
4128done
4129test -n "$YACC" || YACC="yacc"
4130
4131
4132if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4133 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4134echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4135 { (exit 1); exit 1; }; }
4136fi
4137
4138for ac_prog in flex lex
4139do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141set dummy $ac_prog; ac_word=$2
4142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4144if test "${ac_cv_prog_LEX+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 if test -n "$LEX"; then
4148 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_LEX="$ac_prog"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161done
4162done
4163IFS=$as_save_IFS
4164
4165fi
4166fi
4167LEX=$ac_cv_prog_LEX
4168if test -n "$LEX"; then
4169 { echo "$as_me:$LINENO: result: $LEX" >&5
4170echo "${ECHO_T}$LEX" >&6; }
4171else
4172 { echo "$as_me:$LINENO: result: no" >&5
4173echo "${ECHO_T}no" >&6; }
4174fi
4175
4176
4177 test -n "$LEX" && break
4178done
4179test -n "$LEX" || LEX=":"
4180
4181if test "x$LEX" != "x:"; then
4182 cat >conftest.l <<_ACEOF
4183%%
4184a { ECHO; }
4185b { REJECT; }
4186c { yymore (); }
4187d { yyless (1); }
4188e { yyless (input () != 0); }
4189f { unput (yytext[0]); }
4190. { BEGIN INITIAL; }
4191%%
4192#ifdef YYTEXT_POINTER
4193extern char *yytext;
4194#endif
4195int
4196main (void)
4197{
4198 return ! yylex () + ! yywrap ();
4199}
4200_ACEOF
4201{ (ac_try="$LEX conftest.l"
4202case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$LEX conftest.l") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }
4211{ echo "$as_me:$LINENO: checking lex output file root" >&5
4212echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4213if test "${ac_cv_prog_lex_root+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216
4217if test -f lex.yy.c; then
4218 ac_cv_prog_lex_root=lex.yy
4219elif test -f lexyy.c; then
4220 ac_cv_prog_lex_root=lexyy
4221else
4222 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4223echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4224 { (exit 1); exit 1; }; }
4225fi
4226fi
4227{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4228echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4229LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4230
4231if test -z "${LEXLIB+set}"; then
4232 { echo "$as_me:$LINENO: checking lex library" >&5
4233echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4234if test "${ac_cv_lib_lex+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237
4238 ac_save_LIBS=$LIBS
4239 ac_cv_lib_lex='none needed'
4240 for ac_lib in '' -lfl -ll; do
4241 LIBS="$ac_lib $ac_save_LIBS"
4242 cat >conftest.$ac_ext <<_ACEOF
4243`cat $LEX_OUTPUT_ROOT.c`
4244_ACEOF
4245rm -f conftest.$ac_objext conftest$ac_exeext
4246if { (ac_try="$ac_link"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_link") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && {
4259 test -z "$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4261 } && test -s conftest$ac_exeext &&
4262 $as_test_x conftest$ac_exeext; then
4263 ac_cv_lib_lex=$ac_lib
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
4268
4269fi
4270
4271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4272 conftest$ac_exeext conftest.$ac_ext
4273 test "$ac_cv_lib_lex" != 'none needed' && break
4274 done
4275 LIBS=$ac_save_LIBS
4276
4277fi
4278{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4279echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4280 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4281fi
4282
4283
4284{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4285echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4286if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 # POSIX says lex can declare yytext either as a pointer or an array; the
4290# default is implementation-dependent. Figure out which it is, since
4291# not all implementations provide the %pointer and %array declarations.
4292ac_cv_prog_lex_yytext_pointer=no
4293ac_save_LIBS=$LIBS
4294LIBS="$LEXLIB $ac_save_LIBS"
4295cat >conftest.$ac_ext <<_ACEOF
4296#define YYTEXT_POINTER 1
4297`cat $LEX_OUTPUT_ROOT.c`
4298_ACEOF
4299rm -f conftest.$ac_objext conftest$ac_exeext
4300if { (ac_try="$ac_link"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && {
4313 test -z "$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4315 } && test -s conftest$ac_exeext &&
4316 $as_test_x conftest$ac_exeext; then
4317 ac_cv_prog_lex_yytext_pointer=yes
4318else
4319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322
4323fi
4324
4325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4326 conftest$ac_exeext conftest.$ac_ext
4327LIBS=$ac_save_LIBS
4328
4329fi
4330{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4331echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4332if test $ac_cv_prog_lex_yytext_pointer = yes; then
4333
4334cat >>confdefs.h <<\_ACEOF
4335#define YYTEXT_POINTER 1
4336_ACEOF
4337
4338fi
4339rm -f conftest.l $LEX_OUTPUT_ROOT.c
4340
4341fi
4342
4343if test "$LEX" = ":"; then
4344 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4345echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4346 { (exit 1); exit 1; }; }
4347fi
4348
4349if test "$libexecdir" = '${exec_prefix}/libexec' &&
4350 test "$localstatedir" = '${prefix}/var'; then
4351 libexecdir='${bindir}'
4352 localstatedir='${prefix}'
4353fi
4354
4355{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4356echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4357if test "${ac_cv_header_stdc+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <stdlib.h>
4367#include <stdarg.h>
4368#include <string.h>
4369#include <float.h>
4370
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379rm -f conftest.$ac_objext
4380if { (ac_try="$ac_compile"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_compile") 2>conftest.er1
4387 ac_status=$?
4388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
4396 ac_cv_header_stdc=yes
4397else
4398 echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 ac_cv_header_stdc=no
4402fi
4403
4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405
4406if test $ac_cv_header_stdc = yes; then
4407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4408 cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
4414#include <string.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "memchr" >/dev/null 2>&1; then
4419 :
4420else
4421 ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4429 cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435#include <stdlib.h>
4436
4437_ACEOF
4438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 $EGREP "free" >/dev/null 2>&1; then
4440 :
4441else
4442 ac_cv_header_stdc=no
4443fi
4444rm -f conftest*
4445
4446fi
4447
4448if test $ac_cv_header_stdc = yes; then
4449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4450 if test "$cross_compiling" = yes; then
4451 :
4452else
4453 cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h. */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h. */
4459#include <ctype.h>
4460#include <stdlib.h>
4461#if ((' ' & 0x0FF) == 0x020)
4462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4464#else
4465# define ISLOWER(c) \
4466 (('a' <= (c) && (c) <= 'i') \
4467 || ('j' <= (c) && (c) <= 'r') \
4468 || ('s' <= (c) && (c) <= 'z'))
4469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4470#endif
4471
4472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473int
4474main ()
4475{
4476 int i;
4477 for (i = 0; i < 256; i++)
4478 if (XOR (islower (i), ISLOWER (i))
4479 || toupper (i) != TOUPPER (i))
4480 return 2;
4481 return 0;
4482}
4483_ACEOF
4484rm -f conftest$ac_exeext
4485if { (ac_try="$ac_link"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_link") 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 :
4505else
4506 echo "$as_me: program exited with status $ac_status" >&5
4507echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510( exit $ac_status )
4511ac_cv_header_stdc=no
4512fi
4513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514fi
4515
4516
4517fi
4518fi
4519{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4520echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4521if test $ac_cv_header_stdc = yes; then
4522
4523cat >>confdefs.h <<\_ACEOF
4524#define STDC_HEADERS 1
4525_ACEOF
4526
4527fi
4528
4529
4530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4541 inttypes.h stdint.h unistd.h
4542do
4543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 cat >conftest.$ac_ext <<_ACEOF
4550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
4555$ac_includes_default
4556
4557#include <$ac_header>
4558_ACEOF
4559rm -f conftest.$ac_objext
4560if { (ac_try="$ac_compile"
4561case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564esac
4565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 eval "$as_ac_Header=yes"
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 eval "$as_ac_Header=no"
4582fi
4583
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586ac_res=`eval echo '${'$as_ac_Header'}'`
4587 { echo "$as_me:$LINENO: result: $ac_res" >&5
4588echo "${ECHO_T}$ac_res" >&6; }
4589if test `eval echo '${'$as_ac_Header'}'` = yes; then
4590 cat >>confdefs.h <<_ACEOF
4591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592_ACEOF
4593
4594fi
4595
4596done
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610for 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
4611do
4612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618fi
4619ac_res=`eval echo '${'$as_ac_Header'}'`
4620 { echo "$as_me:$LINENO: result: $ac_res" >&5
4621echo "${ECHO_T}$ac_res" >&6; }
4622else
4623 # Is the header compilable?
4624{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4626cat >conftest.$ac_ext <<_ACEOF
4627/* confdefs.h. */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h. */
4632$ac_includes_default
4633#include <$ac_header>
4634_ACEOF
4635rm -f conftest.$ac_objext
4636if { (ac_try="$ac_compile"
4637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 ac_header_compiler=yes
4653else
4654 echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 ac_header_compiler=no
4658fi
4659
4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4662echo "${ECHO_T}$ac_header_compiler" >&6; }
4663
4664# Is the header present?
4665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4667cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
4673#include <$ac_header>
4674_ACEOF
4675if { (ac_try="$ac_cpp conftest.$ac_ext"
4676case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679esac
4680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } >/dev/null && {
4688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4689 test ! -s conftest.err
4690 }; then
4691 ac_header_preproc=yes
4692else
4693 echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_header_preproc=no
4697fi
4698
4699rm -f conftest.err conftest.$ac_ext
4700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4701echo "${ECHO_T}$ac_header_preproc" >&6; }
4702
4703# So? What about this header?
4704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4705 yes:no: )
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4710 ac_header_preproc=yes
4711 ;;
4712 no:yes:* )
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4725
4726 ;;
4727esac
4728{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 eval "$as_ac_Header=\$ac_header_preproc"
4734fi
4735ac_res=`eval echo '${'$as_ac_Header'}'`
4736 { echo "$as_me:$LINENO: result: $ac_res" >&5
4737echo "${ECHO_T}$ac_res" >&6; }
4738
4739fi
4740if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741 cat >>confdefs.h <<_ACEOF
4742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743_ACEOF
4744
4745fi
4746
4747done
4748
4749
4750
4751{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4752echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4753if test "${ac_cv_c_const+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756 cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
4762
4763int
4764main ()
4765{
4766/* FIXME: Include the comments suggested by Paul. */
4767#ifndef __cplusplus
4768 /* Ultrix mips cc rejects this. */
4769 typedef int charset[2];
4770 const charset cs;
4771 /* SunOS 4.1.1 cc rejects this. */
4772 char const *const *pcpcc;
4773 char **ppc;
4774 /* NEC SVR4.0.2 mips cc rejects this. */
4775 struct point {int x, y;};
4776 static struct point const zero = {0,0};
4777 /* AIX XL C 1.02.0.0 rejects this.
4778 It does not let you subtract one const X* pointer from another in
4779 an arm of an if-expression whose if-part is not a constant
4780 expression */
4781 const char *g = "string";
4782 pcpcc = &g + (g ? g-g : 0);
4783 /* HPUX 7.0 cc rejects these. */
4784 ++pcpcc;
4785 ppc = (char**) pcpcc;
4786 pcpcc = (char const *const *) ppc;
4787 { /* SCO 3.2v4 cc rejects this. */
4788 char *t;
4789 char const *s = 0 ? (char *) 0 : (char const *) 0;
4790
4791 *t++ = 0;
4792 if (s) return 0;
4793 }
4794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4795 int x[] = {25, 17};
4796 const int *foo = &x[0];
4797 ++foo;
4798 }
4799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4800 typedef const int *iptr;
4801 iptr p = 0;
4802 ++p;
4803 }
4804 { /* AIX XL C 1.02.0.0 rejects this saying
4805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4806 struct s { int j; const int *ap[3]; };
4807 struct s *b; b->j = 5;
4808 }
4809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4810 const int foo = 10;
4811 if (!foo) return 0;
4812 }
4813 return !cs[0] && !zero.x;
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (ac_try="$ac_compile"
4822case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825esac
4826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4837 ac_cv_c_const=yes
4838else
4839 echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_cv_c_const=no
4843fi
4844
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4848echo "${ECHO_T}$ac_cv_c_const" >&6; }
4849if test $ac_cv_c_const = no; then
4850
4851cat >>confdefs.h <<\_ACEOF
4852#define const
4853_ACEOF
4854
4855fi
4856
4857if test "$ac_cv_header_machine_endian_h" = "no" ; then
4858 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4859echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4860if test "${ac_cv_c_bigendian+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 # See if sys/param.h defines the BYTE_ORDER macro.
4864cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#include <sys/types.h>
4871#include <sys/param.h>
4872
4873int
4874main ()
4875{
4876#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4877 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4878 bogus endian macros
4879#endif
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext
4886if { (ac_try="$ac_compile"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 # It does; now see whether it defined to BIG_ENDIAN or not.
4903cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
4909#include <sys/types.h>
4910#include <sys/param.h>
4911
4912int
4913main ()
4914{
4915#if BYTE_ORDER != BIG_ENDIAN
4916 not big endian
4917#endif
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923rm -f conftest.$ac_objext
4924if { (ac_try="$ac_compile"
4925case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928esac
4929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4940 ac_cv_c_bigendian=yes
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_cv_c_bigendian=no
4946fi
4947
4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949else
4950 echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 # It does not; compile a test program.
4954if test "$cross_compiling" = yes; then
4955 # try to guess the endianness by grepping values into an object file
4956 ac_cv_c_bigendian=unknown
4957 cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
4963short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4964short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4965void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4966short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4967short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4968void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4969int
4970main ()
4971{
4972 _ascii (); _ebcdic ();
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4995 ac_cv_c_bigendian=yes
4996fi
4997if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4998 if test "$ac_cv_c_bigendian" = unknown; then
4999 ac_cv_c_bigendian=no
5000 else
5001 # finding both strings is unlikely to happen, but who knows?
5002 ac_cv_c_bigendian=unknown
5003 fi
5004fi
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009
5010fi
5011
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013else
5014 cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h. */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h. */
5020$ac_includes_default
5021int
5022main ()
5023{
5024
5025 /* Are we little or big endian? From Harbison&Steele. */
5026 union
5027 {
5028 long int l;
5029 char c[sizeof (long int)];
5030 } u;
5031 u.l = 1;
5032 return u.c[sizeof (long int) - 1] == 1;
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038rm -f conftest$ac_exeext
5039if { (ac_try="$ac_link"
5040case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_link") 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5049 { (case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052esac
5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_try") 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_cv_c_bigendian=no
5059else
5060 echo "$as_me: program exited with status $ac_status" >&5
5061echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064( exit $ac_status )
5065ac_cv_c_bigendian=yes
5066fi
5067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5068fi
5069
5070
5071fi
5072
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074fi
5075{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5076echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5077case $ac_cv_c_bigendian in
5078 yes)
5079
5080cat >>confdefs.h <<\_ACEOF
5081#define WORDS_BIGENDIAN 1
5082_ACEOF
5083 ;;
5084 no)
5085 ;;
5086 *)
5087 { { echo "$as_me:$LINENO: error: unknown endianness
5088presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5089echo "$as_me: error: unknown endianness
5090presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092esac
5093
5094fi
5095{ echo "$as_me:$LINENO: checking for pid_t" >&5
5096echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5097if test "${ac_cv_type_pid_t+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h. */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h. */
5106$ac_includes_default
5107typedef pid_t ac__type_new_;
5108int
5109main ()
5110{
5111if ((ac__type_new_ *) 0)
5112 return 0;
5113if (sizeof (ac__type_new_))
5114 return 0;
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_type_pid_t=yes
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_type_pid_t=no
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5147echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5148if test $ac_cv_type_pid_t = yes; then
5149 :
5150else
5151
5152cat >>confdefs.h <<_ACEOF
5153#define pid_t int
5154_ACEOF
5155
5156fi
5157
5158{ echo "$as_me:$LINENO: checking for size_t" >&5
5159echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5160if test "${ac_cv_type_size_t+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163 cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
5169$ac_includes_default
5170typedef size_t ac__type_new_;
5171int
5172main ()
5173{
5174if ((ac__type_new_ *) 0)
5175 return 0;
5176if (sizeof (ac__type_new_))
5177 return 0;
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (ac_try="$ac_compile"
5184case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187esac
5188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189 (eval "$ac_compile") 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && {
5196 test -z "$ac_c_werror_flag" ||
5197 test ! -s conftest.err
5198 } && test -s conftest.$ac_objext; then
5199 ac_cv_type_size_t=yes
5200else
5201 echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ac_cv_type_size_t=no
5205fi
5206
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208fi
5209{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5210echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5211if test $ac_cv_type_size_t = yes; then
5212 :
5213else
5214
5215cat >>confdefs.h <<_ACEOF
5216#define size_t unsigned int
5217_ACEOF
5218
5219fi
5220
5221{ echo "$as_me:$LINENO: checking for short" >&5
5222echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5223if test "${ac_cv_type_short+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
5232$ac_includes_default
5233typedef short ac__type_new_;
5234int
5235main ()
5236{
5237if ((ac__type_new_ *) 0)
5238 return 0;
5239if (sizeof (ac__type_new_))
5240 return 0;
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245rm -f conftest.$ac_objext
5246if { (ac_try="$ac_compile"
5247case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_type_short=yes
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_cv_type_short=no
5268fi
5269
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271fi
5272{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5273echo "${ECHO_T}$ac_cv_type_short" >&6; }
5274
5275# The cast to long int works around a bug in the HP C Compiler
5276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278# This bug is HP SR number 8606223364.
5279{ echo "$as_me:$LINENO: checking size of short" >&5
5280echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5281if test "${ac_cv_sizeof_short+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 if test "$cross_compiling" = yes; then
5285 # Depending upon the size, compute the lo and hi bounds.
5286cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292$ac_includes_default
5293 typedef short ac__type_sizeof_;
5294int
5295main ()
5296{
5297static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5298test_array [0] = 0
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (ac_try="$ac_compile"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest.$ac_objext; then
5321 ac_lo=0 ac_mid=0
5322 while :; do
5323 cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h. */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h. */
5329$ac_includes_default
5330 typedef short ac__type_sizeof_;
5331int
5332main ()
5333{
5334static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5335test_array [0] = 0
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346esac
5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && {
5355 test -z "$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5357 } && test -s conftest.$ac_objext; then
5358 ac_hi=$ac_mid; break
5359else
5360 echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 ac_lo=`expr $ac_mid + 1`
5364 if test $ac_lo -le $ac_mid; then
5365 ac_lo= ac_hi=
5366 break
5367 fi
5368 ac_mid=`expr 2 '*' $ac_mid + 1`
5369fi
5370
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 done
5373else
5374 echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 cat >conftest.$ac_ext <<_ACEOF
5378/* confdefs.h. */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h. */
5383$ac_includes_default
5384 typedef short ac__type_sizeof_;
5385int
5386main ()
5387{
5388static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5389test_array [0] = 0
5390
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext
5396if { (ac_try="$ac_compile"
5397case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_hi=-1 ac_mid=-1
5413 while :; do
5414 cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420$ac_includes_default
5421 typedef short ac__type_sizeof_;
5422int
5423main ()
5424{
5425static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5426test_array [0] = 0
5427
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (ac_try="$ac_compile"
5434case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437esac
5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_lo=$ac_mid; break
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_hi=`expr '(' $ac_mid ')' - 1`
5455 if test $ac_mid -le $ac_hi; then
5456 ac_lo= ac_hi=
5457 break
5458 fi
5459 ac_mid=`expr 2 '*' $ac_mid`
5460fi
5461
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 done
5464else
5465 echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_lo= ac_hi=
5469fi
5470
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475# Binary search between lo and hi bounds.
5476while test "x$ac_lo" != "x$ac_hi"; do
5477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5478 cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484$ac_includes_default
5485 typedef short ac__type_sizeof_;
5486int
5487main ()
5488{
5489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5490test_array [0] = 0
5491
5492 ;
5493 return 0;
5494}
5495_ACEOF
5496rm -f conftest.$ac_objext
5497if { (ac_try="$ac_compile"
5498case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_hi=$ac_mid
5514else
5515 echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518 ac_lo=`expr '(' $ac_mid ')' + 1`
5519fi
5520
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522done
5523case $ac_lo in
5524?*) ac_cv_sizeof_short=$ac_lo;;
5525'') if test "$ac_cv_type_short" = yes; then
5526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5527See \`config.log' for more details." >&5
5528echo "$as_me: error: cannot compute sizeof (short)
5529See \`config.log' for more details." >&2;}
5530 { (exit 77); exit 77; }; }
5531 else
5532 ac_cv_sizeof_short=0
5533 fi ;;
5534esac
5535else
5536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h. */
5542$ac_includes_default
5543 typedef short ac__type_sizeof_;
5544static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5545static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5546#include <stdio.h>
5547#include <stdlib.h>
5548int
5549main ()
5550{
5551
5552 FILE *f = fopen ("conftest.val", "w");
5553 if (! f)
5554 return 1;
5555 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5556 {
5557 long int i = longval ();
5558 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5559 return 1;
5560 fprintf (f, "%ld\n", i);
5561 }
5562 else
5563 {
5564 unsigned long int i = ulongval ();
5565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5566 return 1;
5567 fprintf (f, "%lu\n", i);
5568 }
5569 return ferror (f) || fclose (f) != 0;
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575rm -f conftest$ac_exeext
5576if { (ac_try="$ac_link"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_link") 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5586 { (case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_try") 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_sizeof_short=`cat conftest.val`
5596else
5597 echo "$as_me: program exited with status $ac_status" >&5
5598echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
5601( exit $ac_status )
5602if test "$ac_cv_type_short" = yes; then
5603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5604See \`config.log' for more details." >&5
5605echo "$as_me: error: cannot compute sizeof (short)
5606See \`config.log' for more details." >&2;}
5607 { (exit 77); exit 77; }; }
5608 else
5609 ac_cv_sizeof_short=0
5610 fi
5611fi
5612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613fi
5614rm -f conftest.val
5615fi
5616{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5617echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5618
5619
5620
5621cat >>confdefs.h <<_ACEOF
5622#define SIZEOF_SHORT $ac_cv_sizeof_short
5623_ACEOF
5624
5625
5626{ echo "$as_me:$LINENO: checking for int" >&5
5627echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5628if test "${ac_cv_type_int+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637$ac_includes_default
5638typedef int ac__type_new_;
5639int
5640main ()
5641{
5642if ((ac__type_new_ *) 0)
5643 return 0;
5644if (sizeof (ac__type_new_))
5645 return 0;
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650rm -f conftest.$ac_objext
5651if { (ac_try="$ac_compile"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_type_int=yes
5668else
5669 echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_cv_type_int=no
5673fi
5674
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5678echo "${ECHO_T}$ac_cv_type_int" >&6; }
5679
5680# The cast to long int works around a bug in the HP C Compiler
5681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683# This bug is HP SR number 8606223364.
5684{ echo "$as_me:$LINENO: checking size of int" >&5
5685echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5686if test "${ac_cv_sizeof_int+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689 if test "$cross_compiling" = yes; then
5690 # Depending upon the size, compute the lo and hi bounds.
5691cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h. */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h. */
5697$ac_includes_default
5698 typedef int ac__type_sizeof_;
5699int
5700main ()
5701{
5702static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5703test_array [0] = 0
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (ac_try="$ac_compile"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_lo=0 ac_mid=0
5727 while :; do
5728 cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734$ac_includes_default
5735 typedef int ac__type_sizeof_;
5736int
5737main ()
5738{
5739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5740test_array [0] = 0
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext
5747if { (ac_try="$ac_compile"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 ac_hi=$ac_mid; break
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_lo=`expr $ac_mid + 1`
5769 if test $ac_lo -le $ac_mid; then
5770 ac_lo= ac_hi=
5771 break
5772 fi
5773 ac_mid=`expr 2 '*' $ac_mid + 1`
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778else
5779 echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788$ac_includes_default
5789 typedef int ac__type_sizeof_;
5790int
5791main ()
5792{
5793static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5794test_array [0] = 0
5795
5796 ;
5797 return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (ac_try="$ac_compile"
5802case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_hi=-1 ac_mid=-1
5818 while :; do
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
5825$ac_includes_default
5826 typedef int ac__type_sizeof_;
5827int
5828main ()
5829{
5830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5831test_array [0] = 0
5832
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837rm -f conftest.$ac_objext
5838if { (ac_try="$ac_compile"
5839case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_compile") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest.$ac_objext; then
5854 ac_lo=$ac_mid; break
5855else
5856 echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 ac_hi=`expr '(' $ac_mid ')' - 1`
5860 if test $ac_mid -le $ac_hi; then
5861 ac_lo= ac_hi=
5862 break
5863 fi
5864 ac_mid=`expr 2 '*' $ac_mid`
5865fi
5866
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 done
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_lo= ac_hi=
5874fi
5875
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877fi
5878
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880# Binary search between lo and hi bounds.
5881while test "x$ac_lo" != "x$ac_hi"; do
5882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889$ac_includes_default
5890 typedef int ac__type_sizeof_;
5891int
5892main ()
5893{
5894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5895test_array [0] = 0
5896
5897 ;
5898 return 0;
5899}
5900_ACEOF
5901rm -f conftest.$ac_objext
5902if { (ac_try="$ac_compile"
5903case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906esac
5907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_hi=$ac_mid
5919else
5920 echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_lo=`expr '(' $ac_mid ')' + 1`
5924fi
5925
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927done
5928case $ac_lo in
5929?*) ac_cv_sizeof_int=$ac_lo;;
5930'') if test "$ac_cv_type_int" = yes; then
5931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5932See \`config.log' for more details." >&5
5933echo "$as_me: error: cannot compute sizeof (int)
5934See \`config.log' for more details." >&2;}
5935 { (exit 77); exit 77; }; }
5936 else
5937 ac_cv_sizeof_int=0
5938 fi ;;
5939esac
5940else
5941 cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
5947$ac_includes_default
5948 typedef int ac__type_sizeof_;
5949static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5950static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5951#include <stdio.h>
5952#include <stdlib.h>
5953int
5954main ()
5955{
5956
5957 FILE *f = fopen ("conftest.val", "w");
5958 if (! f)
5959 return 1;
5960 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5961 {
5962 long int i = longval ();
5963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5964 return 1;
5965 fprintf (f, "%ld\n", i);
5966 }
5967 else
5968 {
5969 unsigned long int i = ulongval ();
5970 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5971 return 1;
5972 fprintf (f, "%lu\n", i);
5973 }
5974 return ferror (f) || fclose (f) != 0;
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest$ac_exeext
5981if { (ac_try="$ac_link"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_link") 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994esac
5995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_sizeof_int=`cat conftest.val`
6001else
6002 echo "$as_me: program exited with status $ac_status" >&5
6003echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006( exit $ac_status )
6007if test "$ac_cv_type_int" = yes; then
6008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6009See \`config.log' for more details." >&5
6010echo "$as_me: error: cannot compute sizeof (int)
6011See \`config.log' for more details." >&2;}
6012 { (exit 77); exit 77; }; }
6013 else
6014 ac_cv_sizeof_int=0
6015 fi
6016fi
6017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6018fi
6019rm -f conftest.val
6020fi
6021{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6022echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6023
6024
6025
6026cat >>confdefs.h <<_ACEOF
6027#define SIZEOF_INT $ac_cv_sizeof_int
6028_ACEOF
6029
6030
6031{ echo "$as_me:$LINENO: checking for long" >&5
6032echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6033if test "${ac_cv_type_long+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042$ac_includes_default
6043typedef long ac__type_new_;
6044int
6045main ()
6046{
6047if ((ac__type_new_ *) 0)
6048 return 0;
6049if (sizeof (ac__type_new_))
6050 return 0;
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (ac_try="$ac_compile"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.$ac_objext; then
6072 ac_cv_type_long=yes
6073else
6074 echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_cv_type_long=no
6078fi
6079
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6083echo "${ECHO_T}$ac_cv_type_long" >&6; }
6084
6085# The cast to long int works around a bug in the HP C Compiler
6086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6088# This bug is HP SR number 8606223364.
6089{ echo "$as_me:$LINENO: checking size of long" >&5
6090echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6091if test "${ac_cv_sizeof_long+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 if test "$cross_compiling" = yes; then
6095 # Depending upon the size, compute the lo and hi bounds.
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102$ac_includes_default
6103 typedef long ac__type_sizeof_;
6104int
6105main ()
6106{
6107static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6108test_array [0] = 0
6109
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext
6115if { (ac_try="$ac_compile"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compile") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest.$ac_objext; then
6131 ac_lo=0 ac_mid=0
6132 while :; do
6133 cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h. */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h. */
6139$ac_includes_default
6140 typedef long ac__type_sizeof_;
6141int
6142main ()
6143{
6144static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6145test_array [0] = 0
6146
6147 ;
6148 return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext
6152if { (ac_try="$ac_compile"
6153case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_hi=$ac_mid; break
6169else
6170 echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_lo=`expr $ac_mid + 1`
6174 if test $ac_lo -le $ac_mid; then
6175 ac_lo= ac_hi=
6176 break
6177 fi
6178 ac_mid=`expr 2 '*' $ac_mid + 1`
6179fi
6180
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 done
6183else
6184 echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
6193$ac_includes_default
6194 typedef long ac__type_sizeof_;
6195int
6196main ()
6197{
6198static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6199test_array [0] = 0
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205rm -f conftest.$ac_objext
6206if { (ac_try="$ac_compile"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 ac_hi=-1 ac_mid=-1
6223 while :; do
6224 cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
6230$ac_includes_default
6231 typedef long ac__type_sizeof_;
6232int
6233main ()
6234{
6235static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6236test_array [0] = 0
6237
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest.$ac_objext; then
6259 ac_lo=$ac_mid; break
6260else
6261 echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 ac_hi=`expr '(' $ac_mid ')' - 1`
6265 if test $ac_mid -le $ac_hi; then
6266 ac_lo= ac_hi=
6267 break
6268 fi
6269 ac_mid=`expr 2 '*' $ac_mid`
6270fi
6271
6272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 done
6274else
6275 echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_lo= ac_hi=
6279fi
6280
6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285# Binary search between lo and hi bounds.
6286while test "x$ac_lo" != "x$ac_hi"; do
6287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6288 cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h. */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h. */
6294$ac_includes_default
6295 typedef long ac__type_sizeof_;
6296int
6297main ()
6298{
6299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6300test_array [0] = 0
6301
6302 ;
6303 return 0;
6304}
6305_ACEOF
6306rm -f conftest.$ac_objext
6307if { (ac_try="$ac_compile"
6308case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_hi=$ac_mid
6324else
6325 echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_lo=`expr '(' $ac_mid ')' + 1`
6329fi
6330
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332done
6333case $ac_lo in
6334?*) ac_cv_sizeof_long=$ac_lo;;
6335'') if test "$ac_cv_type_long" = yes; then
6336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6337See \`config.log' for more details." >&5
6338echo "$as_me: error: cannot compute sizeof (long)
6339See \`config.log' for more details." >&2;}
6340 { (exit 77); exit 77; }; }
6341 else
6342 ac_cv_sizeof_long=0
6343 fi ;;
6344esac
6345else
6346 cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h. */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h. */
6352$ac_includes_default
6353 typedef long ac__type_sizeof_;
6354static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6355static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6356#include <stdio.h>
6357#include <stdlib.h>
6358int
6359main ()
6360{
6361
6362 FILE *f = fopen ("conftest.val", "w");
6363 if (! f)
6364 return 1;
6365 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6366 {
6367 long int i = longval ();
6368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6369 return 1;
6370 fprintf (f, "%ld\n", i);
6371 }
6372 else
6373 {
6374 unsigned long int i = ulongval ();
6375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6376 return 1;
6377 fprintf (f, "%lu\n", i);
6378 }
6379 return ferror (f) || fclose (f) != 0;
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385rm -f conftest$ac_exeext
6386if { (ac_try="$ac_link"
6387case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390esac
6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_link") 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_cv_sizeof_long=`cat conftest.val`
6406else
6407 echo "$as_me: program exited with status $ac_status" >&5
6408echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411( exit $ac_status )
6412if test "$ac_cv_type_long" = yes; then
6413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6414See \`config.log' for more details." >&5
6415echo "$as_me: error: cannot compute sizeof (long)
6416See \`config.log' for more details." >&2;}
6417 { (exit 77); exit 77; }; }
6418 else
6419 ac_cv_sizeof_long=0
6420 fi
6421fi
6422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6423fi
6424rm -f conftest.val
6425fi
6426{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6427echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6428
6429
6430
6431cat >>confdefs.h <<_ACEOF
6432#define SIZEOF_LONG $ac_cv_sizeof_long
6433_ACEOF
6434
6435
6436{ echo "$as_me:$LINENO: checking for long long" >&5
6437echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6438if test "${ac_cv_type_long_long+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447$ac_includes_default
6448typedef long long ac__type_new_;
6449int
6450main ()
6451{
6452if ((ac__type_new_ *) 0)
6453 return 0;
6454if (sizeof (ac__type_new_))
6455 return 0;
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (ac_try="$ac_compile"
6462case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_compile") 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } && {
6474 test -z "$ac_c_werror_flag" ||
6475 test ! -s conftest.err
6476 } && test -s conftest.$ac_objext; then
6477 ac_cv_type_long_long=yes
6478else
6479 echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_type_long_long=no
6483fi
6484
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486fi
6487{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6488echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6489
6490# The cast to long int works around a bug in the HP C Compiler
6491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6493# This bug is HP SR number 8606223364.
6494{ echo "$as_me:$LINENO: checking size of long long" >&5
6495echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6496if test "${ac_cv_sizeof_long_long+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499 if test "$cross_compiling" = yes; then
6500 # Depending upon the size, compute the lo and hi bounds.
6501cat >conftest.$ac_ext <<_ACEOF
6502/* confdefs.h. */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h. */
6507$ac_includes_default
6508 typedef long long ac__type_sizeof_;
6509int
6510main ()
6511{
6512static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6513test_array [0] = 0
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext
6520if { (ac_try="$ac_compile"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_lo=0 ac_mid=0
6537 while :; do
6538 cat >conftest.$ac_ext <<_ACEOF
6539/* confdefs.h. */
6540_ACEOF
6541cat confdefs.h >>conftest.$ac_ext
6542cat >>conftest.$ac_ext <<_ACEOF
6543/* end confdefs.h. */
6544$ac_includes_default
6545 typedef long long ac__type_sizeof_;
6546int
6547main ()
6548{
6549static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6550test_array [0] = 0
6551
6552 ;
6553 return 0;
6554}
6555_ACEOF
6556rm -f conftest.$ac_objext
6557if { (ac_try="$ac_compile"
6558case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_hi=$ac_mid; break
6574else
6575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_lo=`expr $ac_mid + 1`
6579 if test $ac_lo -le $ac_mid; then
6580 ac_lo= ac_hi=
6581 break
6582 fi
6583 ac_mid=`expr 2 '*' $ac_mid + 1`
6584fi
6585
6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 done
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
6598$ac_includes_default
6599 typedef long long ac__type_sizeof_;
6600int
6601main ()
6602{
6603static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6604test_array [0] = 0
6605
6606 ;
6607 return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext
6611if { (ac_try="$ac_compile"
6612case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615esac
6616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6627 ac_hi=-1 ac_mid=-1
6628 while :; do
6629 cat >conftest.$ac_ext <<_ACEOF
6630/* confdefs.h. */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */
6635$ac_includes_default
6636 typedef long long ac__type_sizeof_;
6637int
6638main ()
6639{
6640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6641test_array [0] = 0
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (ac_try="$ac_compile"
6649case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_lo=$ac_mid; break
6665else
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_hi=`expr '(' $ac_mid ')' - 1`
6670 if test $ac_mid -le $ac_hi; then
6671 ac_lo= ac_hi=
6672 break
6673 fi
6674 ac_mid=`expr 2 '*' $ac_mid`
6675fi
6676
6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 done
6679else
6680 echo "$as_me: failed program was:" >&5
6681sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 ac_lo= ac_hi=
6684fi
6685
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690# Binary search between lo and hi bounds.
6691while test "x$ac_lo" != "x$ac_hi"; do
6692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6693 cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699$ac_includes_default
6700 typedef long long ac__type_sizeof_;
6701int
6702main ()
6703{
6704static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6705test_array [0] = 0
6706
6707 ;
6708 return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (ac_try="$ac_compile"
6713case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716esac
6717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_hi=$ac_mid
6729else
6730 echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_lo=`expr '(' $ac_mid ')' + 1`
6734fi
6735
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737done
6738case $ac_lo in
6739?*) ac_cv_sizeof_long_long=$ac_lo;;
6740'') if test "$ac_cv_type_long_long" = yes; then
6741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6742See \`config.log' for more details." >&5
6743echo "$as_me: error: cannot compute sizeof (long long)
6744See \`config.log' for more details." >&2;}
6745 { (exit 77); exit 77; }; }
6746 else
6747 ac_cv_sizeof_long_long=0
6748 fi ;;
6749esac
6750else
6751 cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h. */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h. */
6757$ac_includes_default
6758 typedef long long ac__type_sizeof_;
6759static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6760static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6761#include <stdio.h>
6762#include <stdlib.h>
6763int
6764main ()
6765{
6766
6767 FILE *f = fopen ("conftest.val", "w");
6768 if (! f)
6769 return 1;
6770 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6771 {
6772 long int i = longval ();
6773 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6774 return 1;
6775 fprintf (f, "%ld\n", i);
6776 }
6777 else
6778 {
6779 unsigned long int i = ulongval ();
6780 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6781 return 1;
6782 fprintf (f, "%lu\n", i);
6783 }
6784 return ferror (f) || fclose (f) != 0;
6785
6786 ;
6787 return 0;
6788}
6789_ACEOF
6790rm -f conftest$ac_exeext
6791if { (ac_try="$ac_link"
6792case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795esac
6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_link") 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6801 { (case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
6805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_try") 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_sizeof_long_long=`cat conftest.val`
6811else
6812 echo "$as_me: program exited with status $ac_status" >&5
6813echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816( exit $ac_status )
6817if test "$ac_cv_type_long_long" = yes; then
6818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6819See \`config.log' for more details." >&5
6820echo "$as_me: error: cannot compute sizeof (long long)
6821See \`config.log' for more details." >&2;}
6822 { (exit 77); exit 77; }; }
6823 else
6824 ac_cv_sizeof_long_long=0
6825 fi
6826fi
6827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6828fi
6829rm -f conftest.val
6830fi
6831{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6832echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6833
6834
6835
6836cat >>confdefs.h <<_ACEOF
6837#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6838_ACEOF
6839
6840
6841
6842
6843{ echo "$as_me:$LINENO: checking for library containing socket" >&5
6844echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6845if test "${ac_cv_search_socket+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 ac_func_search_save_LIBS=$LIBS
6849cat >conftest.$ac_ext <<_ACEOF
6850/* confdefs.h. */
6851_ACEOF
6852cat confdefs.h >>conftest.$ac_ext
6853cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h. */
6855
6856/* Override any GCC internal prototype to avoid an error.
6857 Use char because int might match the return type of a GCC
6858 builtin and then its argument prototype would still apply. */
6859#ifdef __cplusplus
6860extern "C"
6861#endif
6862char socket ();
6863int
6864main ()
6865{
6866return socket ();
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871for ac_lib in '' socket; do
6872 if test -z "$ac_lib"; then
6873 ac_res="none required"
6874 else
6875 ac_res=-l$ac_lib
6876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6877 fi
6878 rm -f conftest.$ac_objext conftest$ac_exeext
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>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && {
6892 test -z "$ac_c_werror_flag" ||
6893 test ! -s conftest.err
6894 } && test -s conftest$ac_exeext &&
6895 $as_test_x conftest$ac_exeext; then
6896 ac_cv_search_socket=$ac_res
6897else
6898 echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901
6902fi
6903
6904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6905 conftest$ac_exeext
6906 if test "${ac_cv_search_socket+set}" = set; then
6907 break
6908fi
6909done
6910if test "${ac_cv_search_socket+set}" = set; then
6911 :
6912else
6913 ac_cv_search_socket=no
6914fi
6915rm conftest.$ac_ext
6916LIBS=$ac_func_search_save_LIBS
6917fi
6918{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6919echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6920ac_res=$ac_cv_search_socket
6921if test "$ac_res" != no; then
6922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6923
6924else
6925 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6926echo "$as_me: error: You have no socket()! Aborting." >&2;}
6927 { (exit 1); exit 1; }; }
6928fi
6929
6930
6931if test x"$SUN" = xyes; then
6932 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6933echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
6934if test "${ac_cv_search_inet_ntoa+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 ac_func_search_save_LIBS=$LIBS
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
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. */
6948#ifdef __cplusplus
6949extern "C"
6950#endif
6951char inet_ntoa ();
6952int
6953main ()
6954{
6955return inet_ntoa ();
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960for ac_lib in '' nsl; 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
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
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_inet_ntoa=$ac_res
6986else
6987 echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990
6991fi
6992
6993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6994 conftest$ac_exeext
6995 if test "${ac_cv_search_inet_ntoa+set}" = set; then
6996 break
6997fi
6998done
6999if test "${ac_cv_search_inet_ntoa+set}" = set; then
7000 :
7001else
7002 ac_cv_search_inet_ntoa=no
7003fi
7004rm conftest.$ac_ext
7005LIBS=$ac_func_search_save_LIBS
7006fi
7007{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7008echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7009ac_res=$ac_cv_search_inet_ntoa
7010if test "$ac_res" != no; then
7011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7012
7013else
7014 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7015echo "$as_me: error: libnsl not found! Aborting." >&2;}
7016 { (exit 1); exit 1; }; }
7017fi
7018
7019fi
7020
7021{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7022echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7023if test "${ac_cv_type_socklen_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032#include <sys/types.h>
7033#include <sys/socket.h>
7034
7035typedef socklen_t ac__type_new_;
7036int
7037main ()
7038{
7039if ((ac__type_new_ *) 0)
7040 return 0;
7041if (sizeof (ac__type_new_))
7042 return 0;
7043 ;
7044 return 0;
7045}
7046_ACEOF
7047rm -f conftest.$ac_objext
7048if { (ac_try="$ac_compile"
7049case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052esac
7053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_cv_type_socklen_t=yes
7065else
7066 echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_cv_type_socklen_t=no
7070fi
7071
7072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073fi
7074{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7075echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7076if test $ac_cv_type_socklen_t = yes; then
7077 :
7078else
7079
7080cat >>confdefs.h <<\_ACEOF
7081#define socklen_t unsigned int
7082_ACEOF
7083
7084fi
7085
7086
7087# Check whether --enable-ipv6 was given.
7088if test "${enable_ipv6+set}" = set; then
7089 enableval=$enable_ipv6; ipv6=$enableval
7090else
7091 ipv6=no
7092fi
7093
7094
7095{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
7096echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7097if test "${ac_cv_search_crypt+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 ac_func_search_save_LIBS=$LIBS
7101cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h. */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h. */
7107
7108/* Override any GCC internal prototype to avoid an error.
7109 Use char because int might match the return type of a GCC
7110 builtin and then its argument prototype would still apply. */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
7114char crypt ();
7115int
7116main ()
7117{
7118return crypt ();
7119 ;
7120 return 0;
7121}
7122_ACEOF
7123for ac_lib in '' crypt descrypt; do
7124 if test -z "$ac_lib"; then
7125 ac_res="none required"
7126 else
7127 ac_res=-l$ac_lib
7128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7129 fi
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131if { (ac_try="$ac_link"
7132case "(($ac_try" in
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7135esac
7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_link") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest$ac_exeext &&
7147 $as_test_x conftest$ac_exeext; then
7148 ac_cv_search_crypt=$ac_res
7149else
7150 echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153
7154fi
7155
7156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7157 conftest$ac_exeext
7158 if test "${ac_cv_search_crypt+set}" = set; then
7159 break
7160fi
7161done
7162if test "${ac_cv_search_crypt+set}" = set; then
7163 :
7164else
7165 ac_cv_search_crypt=no
7166fi
7167rm conftest.$ac_ext
7168LIBS=$ac_func_search_save_LIBS
7169fi
7170{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7171echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7172ac_res=$ac_cv_search_crypt
7173if test "$ac_res" != no; then
7174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7175
7176fi
7177
7178
7179CRYPT_LIB=$ac_cv_search_crypt
7180
7181if test "$CRYPT_LIB" = "none required"; then
7182 unset CRYPT_LIB
7183elif test "$CRYPT_LIB" = no; then
7184 unset CRYPT_LIB
7185fi
7186
7187
7188
7189if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7190 VICONF=viconf
7191 else
7192 VICONF=""
7193fi
7194
7195
7196
7197{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7198echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7199if test "${gcc_cv_header_string+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202
7203 cat >conftest.$ac_ext <<_ACEOF
7204#include <string.h>
7205 #include <strings.h>
7206_ACEOF
7207rm -f conftest.$ac_objext
7208if { (ac_try="$ac_compile"
7209case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212esac
7213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7224 gcc_cv_header_string=yes
7225else
7226 echo "$as_me: failed program was:" >&5
7227sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 gcc_cv_header_string=no
7230fi
7231
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233
7234fi
7235{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7236echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7237
7238if test "$gcc_cv_header_string" = "yes"; then
7239
7240cat >>confdefs.h <<\_ACEOF
7241#define STRING_WITH_STRINGS 1
7242_ACEOF
7243
7244fi
7245
7246{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7247echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7248if test "${ac_cv_c_bigendian+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 # See if sys/param.h defines the BYTE_ORDER macro.
7252cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
7258#include <sys/types.h>
7259#include <sys/param.h>
7260
7261int
7262main ()
7263{
7264#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7265 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7266 bogus endian macros
7267#endif
7268
7269 ;
7270 return 0;
7271}
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (ac_try="$ac_compile"
7275case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278esac
7279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 # It does; now see whether it defined to BIG_ENDIAN or not.
7291cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297#include <sys/types.h>
7298#include <sys/param.h>
7299
7300int
7301main ()
7302{
7303#if BYTE_ORDER != BIG_ENDIAN
7304 not big endian
7305#endif
7306
7307 ;
7308 return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_cv_c_bigendian=yes
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_cv_c_bigendian=no
7334fi
7335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337else
7338 echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 # It does not; compile a test program.
7342if test "$cross_compiling" = yes; then
7343 # try to guess the endianness by grepping values into an object file
7344 ac_cv_c_bigendian=unknown
7345 cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h. */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h. */
7351short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7352short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7353void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7354short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7355short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7356void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7357int
7358main ()
7359{
7360 _ascii (); _ebcdic ();
7361 ;
7362 return 0;
7363}
7364_ACEOF
7365rm -f conftest.$ac_objext
7366if { (ac_try="$ac_compile"
7367case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7383 ac_cv_c_bigendian=yes
7384fi
7385if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7386 if test "$ac_cv_c_bigendian" = unknown; then
7387 ac_cv_c_bigendian=no
7388 else
7389 # finding both strings is unlikely to happen, but who knows?
7390 ac_cv_c_bigendian=unknown
7391 fi
7392fi
7393else
7394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397
7398fi
7399
7400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401else
7402 cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408$ac_includes_default
7409int
7410main ()
7411{
7412
7413 /* Are we little or big endian? From Harbison&Steele. */
7414 union
7415 {
7416 long int l;
7417 char c[sizeof (long int)];
7418 } u;
7419 u.l = 1;
7420 return u.c[sizeof (long int) - 1] == 1;
7421
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426rm -f conftest$ac_exeext
7427if { (ac_try="$ac_link"
7428case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431esac
7432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_link") 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7437 { (case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440esac
7441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_try") 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_c_bigendian=no
7447else
7448 echo "$as_me: program exited with status $ac_status" >&5
7449echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452( exit $ac_status )
7453ac_cv_c_bigendian=yes
7454fi
7455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7456fi
7457
7458
7459fi
7460
7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462fi
7463{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7464echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7465case $ac_cv_c_bigendian in
7466 yes)
7467
7468cat >>confdefs.h <<\_ACEOF
7469#define WORDS_BIGENDIAN 1
7470_ACEOF
7471 ;;
7472 no)
7473 ;;
7474 *)
7475 { { echo "$as_me:$LINENO: error: unknown endianness
7476presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7477echo "$as_me: error: unknown endianness
7478presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7479 { (exit 1); exit 1; }; } ;;
7480esac
7481
7482
7483if test "${ac_cv_header_stdarg_h+set}" = set; then
7484 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7485echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7486if test "${ac_cv_header_stdarg_h+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488fi
7489{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7490echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7491else
7492 # Is the header compilable?
7493{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7494echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7495cat >conftest.$ac_ext <<_ACEOF
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501$ac_includes_default
7502#include <stdarg.h>
7503_ACEOF
7504rm -f conftest.$ac_objext
7505if { (ac_try="$ac_compile"
7506case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_header_compiler=yes
7522else
7523 echo "$as_me: failed program was:" >&5
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ac_header_compiler=no
7527fi
7528
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531echo "${ECHO_T}$ac_header_compiler" >&6; }
7532
7533# Is the header present?
7534{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7535echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7536cat >conftest.$ac_ext <<_ACEOF
7537/* confdefs.h. */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */
7542#include <stdarg.h>
7543_ACEOF
7544if { (ac_try="$ac_cpp conftest.$ac_ext"
7545case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 }; then
7560 ac_header_preproc=yes
7561else
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ac_header_preproc=no
7566fi
7567
7568rm -f conftest.err conftest.$ac_ext
7569{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570echo "${ECHO_T}$ac_header_preproc" >&6; }
7571
7572# So? What about this header?
7573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7574 yes:no: )
7575 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7576echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7578echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7579 ac_header_preproc=yes
7580 ;;
7581 no:yes:* )
7582 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7583echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7585echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7587echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7589echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7591echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7593echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7594
7595 ;;
7596esac
7597{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7598echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7599if test "${ac_cv_header_stdarg_h+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602 ac_cv_header_stdarg_h=$ac_header_preproc
7603fi
7604{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7605echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7606
7607fi
7608if test $ac_cv_header_stdarg_h = yes; then
7609 :
7610else
7611 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&5
7612echo "$as_me: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&2;}
7613 { (exit 1); exit 1; }; }
7614fi
7615
7616
7617
7618
7619if test "$ac_cv_c_compiler_gnu" = yes; then
7620
7621{ echo "$as_me:$LINENO: checking for strlcpy" >&5
7622echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7623save_CFLAGS=$CFLAGS
7624CFLAGS="$CFLAGS -Wimplicit -Werror"
7625
7626cat >conftest.$ac_ext <<_ACEOF
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
7632#include <string.h>
7633 #include <stdlib.h>
7634int
7635main ()
7636{
7637char *a = malloc(6);
7638 strlcpy(a, "hello", 6);
7639
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644rm -f conftest.$ac_objext conftest$ac_exeext
7645if { (ac_try="$ac_link"
7646case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649esac
7650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_link") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest$ac_exeext &&
7661 $as_test_x conftest$ac_exeext; then
7662 { echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6; }
7664
7665cat >>confdefs.h <<\_ACEOF
7666#define HAVE_STRLCPY 1
7667_ACEOF
7668
7669else
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 { echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6; }
7675
7676fi
7677
7678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7679 conftest$ac_exeext conftest.$ac_ext
7680
7681{ echo "$as_me:$LINENO: checking for strlcat" >&5
7682echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
7683cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
7689#include <string.h>
7690 #include <stdlib.h>
7691int
7692main ()
7693{
7694char *a = malloc(6);
7695 a[0] = '\0';
7696 strlcat(a, "hello", 6);
7697
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext conftest$ac_exeext
7703if { (ac_try="$ac_link"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_link") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest$ac_exeext &&
7719 $as_test_x conftest$ac_exeext; then
7720 { echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6; }
7722
7723cat >>confdefs.h <<\_ACEOF
7724#define HAVE_STRLCAT 1
7725_ACEOF
7726
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 { echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6; }
7733
7734fi
7735
7736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7737 conftest$ac_exeext conftest.$ac_ext
7738
7739CFLAGS=$save_CFLAGS
7740
7741else
7742
7743
7744
7745
7746for ac_func in strlcat strlcpy
7747do
7748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753else
7754 cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h. */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h. */
7760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7762#define $ac_func innocuous_$ac_func
7763
7764/* System header to define __stub macros and hopefully few prototypes,
7765 which can conflict with char $ac_func (); below.
7766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7767 <limits.h> exists even on freestanding compilers. */
7768
7769#ifdef __STDC__
7770# include <limits.h>
7771#else
7772# include <assert.h>
7773#endif
7774
7775#undef $ac_func
7776
7777/* Override any GCC internal prototype to avoid an error.
7778 Use char because int might match the return type of a GCC
7779 builtin and then its argument prototype would still apply. */
7780#ifdef __cplusplus
7781extern "C"
7782#endif
7783char $ac_func ();
7784/* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787#if defined __stub_$ac_func || defined __stub___$ac_func
7788choke me
7789#endif
7790
7791int
7792main ()
7793{
7794return $ac_func ();
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext conftest$ac_exeext
7800if { (ac_try="$ac_link"
7801case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_link") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest$ac_exeext &&
7816 $as_test_x conftest$ac_exeext; then
7817 eval "$as_ac_var=yes"
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 eval "$as_ac_var=no"
7823fi
7824
7825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7826 conftest$ac_exeext conftest.$ac_ext
7827fi
7828ac_res=`eval echo '${'$as_ac_var'}'`
7829 { echo "$as_me:$LINENO: result: $ac_res" >&5
7830echo "${ECHO_T}$ac_res" >&6; }
7831if test `eval echo '${'$as_ac_var'}'` = yes; then
7832 cat >>confdefs.h <<_ACEOF
7833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7834_ACEOF
7835
7836fi
7837done
7838
7839
7840fi
7841
7842{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
7843echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
7844if test "${ac_cv_type_u_int32_t+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853$ac_includes_default
7854typedef u_int32_t ac__type_new_;
7855int
7856main ()
7857{
7858if ((ac__type_new_ *) 0)
7859 return 0;
7860if (sizeof (ac__type_new_))
7861 return 0;
7862 ;
7863 return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext
7867if { (ac_try="$ac_compile"
7868case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 ac_cv_type_u_int32_t=yes
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_cv_type_u_int32_t=no
7889fi
7890
7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892fi
7893{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7894echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
7895if test $ac_cv_type_u_int32_t = yes; then
7896 :
7897else
7898
7899 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7900echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7901if test "${ac_cv_type_uint32_t+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904 cat >conftest.$ac_ext <<_ACEOF
7905/* confdefs.h. */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
7909/* end confdefs.h. */
7910$ac_includes_default
7911typedef uint32_t ac__type_new_;
7912int
7913main ()
7914{
7915if ((ac__type_new_ *) 0)
7916 return 0;
7917if (sizeof (ac__type_new_))
7918 return 0;
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext
7924if { (ac_try="$ac_compile"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7940 ac_cv_type_uint32_t=yes
7941else
7942 echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ac_cv_type_uint32_t=no
7946fi
7947
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi
7950{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7951echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7952if test $ac_cv_type_uint32_t = yes; then
7953
7954
7955cat >>confdefs.h <<\_ACEOF
7956#define u_int32_t uint32_t
7957_ACEOF
7958
7959
7960else
7961
7962 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
7963echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
7964
7965cat >>confdefs.h <<\_ACEOF
7966#define u_int32_t unsigned long int
7967_ACEOF
7968
7969
7970fi
7971
7972
7973fi
7974
7975
7976{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
7977echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
7978if test "${ac_cv_type_u_int16_t+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981 cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987$ac_includes_default
7988typedef u_int16_t ac__type_new_;
7989int
7990main ()
7991{
7992if ((ac__type_new_ *) 0)
7993 return 0;
7994if (sizeof (ac__type_new_))
7995 return 0;
7996 ;
7997 return 0;
7998}
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_type_u_int16_t=yes
8018else
8019 echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_type_u_int16_t=no
8023fi
8024
8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026fi
8027{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8028echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8029if test $ac_cv_type_u_int16_t = yes; then
8030 :
8031else
8032
8033 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8034echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8035if test "${ac_cv_type_uint16_t+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038 cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h. */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h. */
8044$ac_includes_default
8045typedef uint16_t ac__type_new_;
8046int
8047main ()
8048{
8049if ((ac__type_new_ *) 0)
8050 return 0;
8051if (sizeof (ac__type_new_))
8052 return 0;
8053 ;
8054 return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext
8058if { (ac_try="$ac_compile"
8059case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_cv_type_uint16_t=yes
8075else
8076 echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_cv_type_uint16_t=no
8080fi
8081
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8085echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8086if test $ac_cv_type_uint16_t = yes; then
8087
8088
8089cat >>confdefs.h <<\_ACEOF
8090#define u_int16_t uint16_t
8091_ACEOF
8092
8093
8094else
8095
8096 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8097echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8098
8099cat >>confdefs.h <<\_ACEOF
8100#define u_int16_t unsigned short int
8101_ACEOF
8102
8103
8104fi
8105
8106
8107fi
8108
8109
8110{ echo "$as_me:$LINENO: checking for in_port_t" >&5
8111echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8112if test "${ac_cv_type_in_port_t+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121#include <sys/types.h>
8122#include <netinet/in.h>
8123
8124typedef in_port_t ac__type_new_;
8125int
8126main ()
8127{
8128if ((ac__type_new_ *) 0)
8129 return 0;
8130if (sizeof (ac__type_new_))
8131 return 0;
8132 ;
8133 return 0;
8134}
8135_ACEOF
8136rm -f conftest.$ac_objext
8137if { (ac_try="$ac_compile"
8138case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141esac
8142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_compile") 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } && {
8150 test -z "$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8152 } && test -s conftest.$ac_objext; then
8153 ac_cv_type_in_port_t=yes
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_cv_type_in_port_t=no
8159fi
8160
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162fi
8163{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8164echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8165if test $ac_cv_type_in_port_t = yes; then
8166 :
8167else
8168
8169cat >>confdefs.h <<\_ACEOF
8170#define in_port_t u_int16_t
8171_ACEOF
8172
8173fi
8174
8175
8176{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
8177echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8178if test "${ac_cv_type_sa_family_t+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
8187#include <sys/types.h>
8188#include <sys/socket.h>
8189
8190typedef sa_family_t ac__type_new_;
8191int
8192main ()
8193{
8194if ((ac__type_new_ *) 0)
8195 return 0;
8196if (sizeof (ac__type_new_))
8197 return 0;
8198 ;
8199 return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (ac_try="$ac_compile"
8204case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 ac_cv_type_sa_family_t=yes
8220else
8221 echo "$as_me: failed program was:" >&5
8222sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 ac_cv_type_sa_family_t=no
8225fi
8226
8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228fi
8229{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8230echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8231if test $ac_cv_type_sa_family_t = yes; then
8232 :
8233else
8234
8235cat >>confdefs.h <<\_ACEOF
8236#define sa_family_t u_int16_t
8237_ACEOF
8238
8239fi
8240
8241
8242{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
8243echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8244if test "${ac_cv_type_uintptr_t+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246else
8247 cat >conftest.$ac_ext <<_ACEOF
8248/* confdefs.h. */
8249_ACEOF
8250cat confdefs.h >>conftest.$ac_ext
8251cat >>conftest.$ac_ext <<_ACEOF
8252/* end confdefs.h. */
8253$ac_includes_default
8254typedef uintptr_t ac__type_new_;
8255int
8256main ()
8257{
8258if ((ac__type_new_ *) 0)
8259 return 0;
8260if (sizeof (ac__type_new_))
8261 return 0;
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266rm -f conftest.$ac_objext
8267if { (ac_try="$ac_compile"
8268case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271esac
8272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_cv_type_uintptr_t=yes
8284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 ac_cv_type_uintptr_t=no
8289fi
8290
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8294echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8295if test $ac_cv_type_uintptr_t = yes; then
8296
8297cat >>confdefs.h <<_ACEOF
8298#define HAVE_UINTPTR_T 1
8299_ACEOF
8300
8301
8302fi
8303
8304
8305
8306
8307
8308
8309
8310
8311for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8312do
8313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8314{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319 cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h. */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h. */
8325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8327#define $ac_func innocuous_$ac_func
8328
8329/* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char $ac_func (); below.
8331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 <limits.h> exists even on freestanding compilers. */
8333
8334#ifdef __STDC__
8335# include <limits.h>
8336#else
8337# include <assert.h>
8338#endif
8339
8340#undef $ac_func
8341
8342/* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8345#ifdef __cplusplus
8346extern "C"
8347#endif
8348char $ac_func ();
8349/* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352#if defined __stub_$ac_func || defined __stub___$ac_func
8353choke me
8354#endif
8355
8356int
8357main ()
8358{
8359return $ac_func ();
8360 ;
8361 return 0;
8362}
8363_ACEOF
8364rm -f conftest.$ac_objext conftest$ac_exeext
8365if { (ac_try="$ac_link"
8366case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_link") 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } && {
8378 test -z "$ac_c_werror_flag" ||
8379 test ! -s conftest.err
8380 } && test -s conftest$ac_exeext &&
8381 $as_test_x conftest$ac_exeext; then
8382 eval "$as_ac_var=yes"
8383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 eval "$as_ac_var=no"
8388fi
8389
8390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8391 conftest$ac_exeext conftest.$ac_ext
8392fi
8393ac_res=`eval echo '${'$as_ac_var'}'`
8394 { echo "$as_me:$LINENO: result: $ac_res" >&5
8395echo "${ECHO_T}$ac_res" >&6; }
8396if test `eval echo '${'$as_ac_var'}'` = yes; then
8397 cat >>confdefs.h <<_ACEOF
8398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8399_ACEOF
8400
8401fi
8402done
8403
8404
8405# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8406# for constant arguments. Useless!
8407{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
8408echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8409if test "${ac_cv_working_alloca_h+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
8418#include <alloca.h>
8419int
8420main ()
8421{
8422char *p = (char *) alloca (2 * sizeof (int));
8423 if (p) return 0;
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (ac_try="$ac_link"
8430case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest$ac_exeext &&
8445 $as_test_x conftest$ac_exeext; then
8446 ac_cv_working_alloca_h=yes
8447else
8448 echo "$as_me: failed program was:" >&5
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_cv_working_alloca_h=no
8452fi
8453
8454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455 conftest$ac_exeext conftest.$ac_ext
8456fi
8457{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8458echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8459if test $ac_cv_working_alloca_h = yes; then
8460
8461cat >>confdefs.h <<\_ACEOF
8462#define HAVE_ALLOCA_H 1
8463_ACEOF
8464
8465fi
8466
8467{ echo "$as_me:$LINENO: checking for alloca" >&5
8468echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8469if test "${ac_cv_func_alloca_works+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472 cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478#ifdef __GNUC__
8479# define alloca __builtin_alloca
8480#else
8481# ifdef _MSC_VER
8482# include <malloc.h>
8483# define alloca _alloca
8484# else
8485# ifdef HAVE_ALLOCA_H
8486# include <alloca.h>
8487# else
8488# ifdef _AIX
8489 #pragma alloca
8490# else
8491# ifndef alloca /* predefined by HP cc +Olibcalls */
8492char *alloca ();
8493# endif
8494# endif
8495# endif
8496# endif
8497#endif
8498
8499int
8500main ()
8501{
8502char *p = (char *) alloca (1);
8503 if (p) return 0;
8504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
8509if { (ac_try="$ac_link"
8510case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_link") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest$ac_exeext &&
8525 $as_test_x conftest$ac_exeext; then
8526 ac_cv_func_alloca_works=yes
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_func_alloca_works=no
8532fi
8533
8534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8535 conftest$ac_exeext conftest.$ac_ext
8536fi
8537{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8538echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8539
8540if test $ac_cv_func_alloca_works = yes; then
8541
8542cat >>confdefs.h <<\_ACEOF
8543#define HAVE_ALLOCA 1
8544_ACEOF
8545
8546else
8547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8548# that cause trouble. Some versions do not even contain alloca or
8549# contain a buggy version. If you still want to use their alloca,
8550# use ar to extract alloca.o from them instead of compiling alloca.c.
8551
8552ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8553
8554cat >>confdefs.h <<\_ACEOF
8555#define C_ALLOCA 1
8556_ACEOF
8557
8558
8559{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8560echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8561if test "${ac_cv_os_cray+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563else
8564 cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570#if defined CRAY && ! defined CRAY2
8571webecray
8572#else
8573wenotbecray
8574#endif
8575
8576_ACEOF
8577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "webecray" >/dev/null 2>&1; then
8579 ac_cv_os_cray=yes
8580else
8581 ac_cv_os_cray=no
8582fi
8583rm -f conftest*
8584
8585fi
8586{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8587echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8588if test $ac_cv_os_cray = yes; then
8589 for ac_func in _getb67 GETB67 getb67; do
8590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8591{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
8602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604#define $ac_func innocuous_$ac_func
8605
8606/* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
8610
8611#ifdef __STDC__
8612# include <limits.h>
8613#else
8614# include <assert.h>
8615#endif
8616
8617#undef $ac_func
8618
8619/* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
8622#ifdef __cplusplus
8623extern "C"
8624#endif
8625char $ac_func ();
8626/* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629#if defined __stub_$ac_func || defined __stub___$ac_func
8630choke me
8631#endif
8632
8633int
8634main ()
8635{
8636return $ac_func ();
8637 ;
8638 return 0;
8639}
8640_ACEOF
8641rm -f conftest.$ac_objext conftest$ac_exeext
8642if { (ac_try="$ac_link"
8643case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest$ac_exeext &&
8658 $as_test_x conftest$ac_exeext; then
8659 eval "$as_ac_var=yes"
8660else
8661 echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 eval "$as_ac_var=no"
8665fi
8666
8667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668 conftest$ac_exeext conftest.$ac_ext
8669fi
8670ac_res=`eval echo '${'$as_ac_var'}'`
8671 { echo "$as_me:$LINENO: result: $ac_res" >&5
8672echo "${ECHO_T}$ac_res" >&6; }
8673if test `eval echo '${'$as_ac_var'}'` = yes; then
8674
8675cat >>confdefs.h <<_ACEOF
8676#define CRAY_STACKSEG_END $ac_func
8677_ACEOF
8678
8679 break
8680fi
8681
8682 done
8683fi
8684
8685{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8686echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8687if test "${ac_cv_c_stack_direction+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 if test "$cross_compiling" = yes; then
8691 ac_cv_c_stack_direction=0
8692else
8693 cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699$ac_includes_default
8700int
8701find_stack_direction ()
8702{
8703 static char *addr = 0;
8704 auto char dummy;
8705 if (addr == 0)
8706 {
8707 addr = &dummy;
8708 return find_stack_direction ();
8709 }
8710 else
8711 return (&dummy > addr) ? 1 : -1;
8712}
8713
8714int
8715main ()
8716{
8717 return find_stack_direction () < 0;
8718}
8719_ACEOF
8720rm -f conftest$ac_exeext
8721if { (ac_try="$ac_link"
8722case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_link") 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_c_stack_direction=1
8741else
8742 echo "$as_me: program exited with status $ac_status" >&5
8743echo "$as_me: failed program was:" >&5
8744sed 's/^/| /' conftest.$ac_ext >&5
8745
8746( exit $ac_status )
8747ac_cv_c_stack_direction=-1
8748fi
8749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8750fi
8751
8752
8753fi
8754{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8755echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8756
8757cat >>confdefs.h <<_ACEOF
8758#define STACK_DIRECTION $ac_cv_c_stack_direction
8759_ACEOF
8760
8761
8762fi
8763
8764
8765
8766{ echo "$as_me:$LINENO: checking for nanosleep" >&5
8767echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
8768if test "${ac_cv_func_nanosleep+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
8771 cat >conftest.$ac_ext <<_ACEOF
8772/* confdefs.h. */
8773_ACEOF
8774cat confdefs.h >>conftest.$ac_ext
8775cat >>conftest.$ac_ext <<_ACEOF
8776/* end confdefs.h. */
8777/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8779#define nanosleep innocuous_nanosleep
8780
8781/* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char nanosleep (); below.
8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784 <limits.h> exists even on freestanding compilers. */
8785
8786#ifdef __STDC__
8787# include <limits.h>
8788#else
8789# include <assert.h>
8790#endif
8791
8792#undef nanosleep
8793
8794/* Override any GCC internal prototype to avoid an error.
8795 Use char because int might match the return type of a GCC
8796 builtin and then its argument prototype would still apply. */
8797#ifdef __cplusplus
8798extern "C"
8799#endif
8800char nanosleep ();
8801/* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804#if defined __stub_nanosleep || defined __stub___nanosleep
8805choke me
8806#endif
8807
8808int
8809main ()
8810{
8811return nanosleep ();
8812 ;
8813 return 0;
8814}
8815_ACEOF
8816rm -f conftest.$ac_objext conftest$ac_exeext
8817if { (ac_try="$ac_link"
8818case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821esac
8822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_link") 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && {
8830 test -z "$ac_c_werror_flag" ||
8831 test ! -s conftest.err
8832 } && test -s conftest$ac_exeext &&
8833 $as_test_x conftest$ac_exeext; then
8834 ac_cv_func_nanosleep=yes
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_func_nanosleep=no
8840fi
8841
8842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8843 conftest$ac_exeext conftest.$ac_ext
8844fi
8845{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8846echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
8847if test $ac_cv_func_nanosleep = yes; then
8848 :
8849else
8850 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8851echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
8852if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 ac_check_lib_save_LIBS=$LIBS
8856LIBS="-lrt $LIBS"
8857cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863
8864/* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867#ifdef __cplusplus
8868extern "C"
8869#endif
8870char nanosleep ();
8871int
8872main ()
8873{
8874return nanosleep ();
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879rm -f conftest.$ac_objext conftest$ac_exeext
8880if { (ac_try="$ac_link"
8881case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_link") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest$ac_exeext &&
8896 $as_test_x conftest$ac_exeext; then
8897 ac_cv_lib_rt_nanosleep=yes
8898else
8899 echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_cv_lib_rt_nanosleep=no
8903fi
8904
8905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8906 conftest$ac_exeext conftest.$ac_ext
8907LIBS=$ac_check_lib_save_LIBS
8908fi
8909{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
8910echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
8911if test $ac_cv_lib_rt_nanosleep = yes; then
8912 LIBS="${LIBS} -lrt"
8913else
8914 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
8915echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
8916if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918else
8919 ac_check_lib_save_LIBS=$LIBS
8920LIBS="-lposix4 $LIBS"
8921cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
8927
8928/* Override any GCC internal prototype to avoid an error.
8929 Use char because int might match the return type of a GCC
8930 builtin and then its argument prototype would still apply. */
8931#ifdef __cplusplus
8932extern "C"
8933#endif
8934char nanosleep ();
8935int
8936main ()
8937{
8938return nanosleep ();
8939 ;
8940 return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (ac_try="$ac_link"
8945case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8948esac
8949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950 (eval "$ac_link") 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && {
8957 test -z "$ac_c_werror_flag" ||
8958 test ! -s conftest.err
8959 } && test -s conftest$ac_exeext &&
8960 $as_test_x conftest$ac_exeext; then
8961 ac_cv_lib_posix4_nanosleep=yes
8962else
8963 echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966 ac_cv_lib_posix4_nanosleep=no
8967fi
8968
8969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8970 conftest$ac_exeext conftest.$ac_ext
8971LIBS=$ac_check_lib_save_LIBS
8972fi
8973{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
8974echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
8975if test $ac_cv_lib_posix4_nanosleep = yes; then
8976 LIBS="${LIBS} -lposix4"
8977
8978fi
8979
8980fi
8981
8982fi
8983
8984if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
8985then
8986 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
8987echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
8988else
8989
8990cat >>confdefs.h <<\_ACEOF
8991#define HAVE_NANOSLEEP 1
8992_ACEOF
8993
8994fi
8995
8996{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
8997echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
8998# Check whether --enable-openssl was given.
8999if test "${enable_openssl+set}" = set; then
9000 enableval=$enable_openssl; cf_enable_openssl=$enableval
9001else
9002 cf_enable_openssl="auto"
9003fi
9004
9005
9006if test "$cf_enable_openssl" != "no" ; then
9007 cf_openssl_basedir=""
9008 if test "$cf_enable_openssl" != "auto" &&
9009 test "$cf_enable_openssl" != "yes" ; then
9010 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9011 else
9012 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9013 /usr/local/openssl ; do
9014 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9015 cf_openssl_basedir="${dirs}"
9016 break
9017 fi
9018 done
9019 unset dirs
9020 fi
9021 if test ! -z "$cf_openssl_basedir"; then
9022 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9023 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9024 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9025 else
9026 cf_openssl_basedir=""
9027 fi
9028 else
9029 if test -f "/usr/include/openssl/opensslv.h" ; then
9030 cf_openssl_basedir="/usr"
9031 fi
9032 fi
9033
9034 if test ! -z "$cf_openssl_basedir"; then
9035 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9036echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9037 cf_enable_openssl="yes"
9038 else
9039 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9040echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9041 cf_enable_openssl="no"
9042 fi
9043 unset cf_openssl_basedir
9044else
9045 { echo "$as_me:$LINENO: result: disabled" >&5
9046echo "${ECHO_T}disabled" >&6; }
9047fi
9048
9049save_CPPFLAGS="$CPPFLAGS"
9050CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9051save_LIBS="$LIBS"
9052LIBS="$LIBS $SSL_LIBS"
9053if test "$cf_enable_openssl" != no; then
9054 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9055echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9056 if test "$cross_compiling" = yes; then
9057 cf_openssl_version_ok=no
9058else
9059 cat >conftest.$ac_ext <<_ACEOF
9060/* confdefs.h. */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
9064/* end confdefs.h. */
9065#include <openssl/opensslv.h>
9066 #include <stdlib.h>
9067int
9068main ()
9069{
9070if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9071 exit(0); else exit(1);
9072 ;
9073 return 0;
9074}
9075_ACEOF
9076rm -f conftest$ac_exeext
9077if { (ac_try="$ac_link"
9078case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_link") 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 cf_openssl_version_ok=yes
9097else
9098 echo "$as_me: program exited with status $ac_status" >&5
9099echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102( exit $ac_status )
9103cf_openssl_version_ok=no
9104fi
9105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9106fi
9107
9108
9109
9110 if test "$cf_openssl_version_ok" = yes; then
9111 { echo "$as_me:$LINENO: result: found" >&5
9112echo "${ECHO_T}found" >&6; }
9113
9114 ENCSPEED=encspeed
9115
9116
9117 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9118
9119{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9120echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9121if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123else
9124 ac_check_lib_save_LIBS=$LIBS
9125LIBS="-lcrypto $LIBS"
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
9132
9133/* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
9135 builtin and then its argument prototype would still apply. */
9136#ifdef __cplusplus
9137extern "C"
9138#endif
9139char RSA_free ();
9140int
9141main ()
9142{
9143return RSA_free ();
9144 ;
9145 return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext conftest$ac_exeext
9149if { (ac_try="$ac_link"
9150case "(($ac_try" in
9151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152 *) ac_try_echo=$ac_try;;
9153esac
9154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155 (eval "$ac_link") 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } && {
9162 test -z "$ac_c_werror_flag" ||
9163 test ! -s conftest.err
9164 } && test -s conftest$ac_exeext &&
9165 $as_test_x conftest$ac_exeext; then
9166 ac_cv_lib_crypto_RSA_free=yes
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_lib_crypto_RSA_free=no
9172fi
9173
9174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9175 conftest$ac_exeext conftest.$ac_ext
9176LIBS=$ac_check_lib_save_LIBS
9177fi
9178{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9179echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9180if test $ac_cv_lib_crypto_RSA_free = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182#define HAVE_LIBCRYPTO 1
9183_ACEOF
9184
9185 LIBS="-lcrypto $LIBS"
9186
9187fi
9188
9189 SSL_LIBS="$SSL_LIBS -lcrypto"
9190 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9191 else
9192 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9193echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9194 fi
9195fi
9196
9197CPPFLAGS="$save_CPPFLAGS"
9198LIBS="$save_LIBS"
9199
9200
9201
9202
9203
9204# Check whether --with-zlib-path was given.
9205if test "${with_zlib_path+set}" = set; then
9206 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9207fi
9208
9209
9210# Check whether --enable-zlib was given.
9211if test "${enable_zlib+set}" = set; then
9212 enableval=$enable_zlib; zlib=$enableval
9213else
9214 zlib=yes
9215fi
9216
9217
9218if test "$zlib" = yes; then
9219
9220if test "${ac_cv_header_zlib_h+set}" = set; then
9221 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9222echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9223if test "${ac_cv_header_zlib_h+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225fi
9226{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9227echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9228else
9229 # Is the header compilable?
9230{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
9231echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238$ac_includes_default
9239#include <zlib.h>
9240_ACEOF
9241rm -f conftest.$ac_objext
9242if { (ac_try="$ac_compile"
9243case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246esac
9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_header_compiler=yes
9259else
9260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_header_compiler=no
9264fi
9265
9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9268echo "${ECHO_T}$ac_header_compiler" >&6; }
9269
9270# Is the header present?
9271{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
9272echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9273cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
9279#include <zlib.h>
9280_ACEOF
9281if { (ac_try="$ac_cpp conftest.$ac_ext"
9282case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } >/dev/null && {
9294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 }; then
9297 ac_header_preproc=yes
9298else
9299 echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_header_preproc=no
9303fi
9304
9305rm -f conftest.err conftest.$ac_ext
9306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9307echo "${ECHO_T}$ac_header_preproc" >&6; }
9308
9309# So? What about this header?
9310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9311 yes:no: )
9312 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9313echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9315echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9316 ac_header_preproc=yes
9317 ;;
9318 no:yes:* )
9319 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9320echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9322echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9324echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9326echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9328echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9330echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9331
9332 ;;
9333esac
9334{ echo "$as_me:$LINENO: checking for zlib.h" >&5
9335echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9336if test "${ac_cv_header_zlib_h+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 ac_cv_header_zlib_h=$ac_header_preproc
9340fi
9341{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9342echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9343
9344fi
9345if test $ac_cv_header_zlib_h = yes; then
9346
9347 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9348echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9349if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352 ac_check_lib_save_LIBS=$LIBS
9353LIBS="-lz $LIBS"
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h. */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h. */
9360
9361/* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364#ifdef __cplusplus
9365extern "C"
9366#endif
9367char zlibVersion ();
9368int
9369main ()
9370{
9371return zlibVersion ();
9372 ;
9373 return 0;
9374}
9375_ACEOF
9376rm -f conftest.$ac_objext conftest$ac_exeext
9377if { (ac_try="$ac_link"
9378case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381esac
9382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_link") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest$ac_exeext &&
9393 $as_test_x conftest$ac_exeext; then
9394 ac_cv_lib_z_zlibVersion=yes
9395else
9396 echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_cv_lib_z_zlibVersion=no
9400fi
9401
9402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403 conftest$ac_exeext conftest.$ac_ext
9404LIBS=$ac_check_lib_save_LIBS
9405fi
9406{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9407echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9408if test $ac_cv_lib_z_zlibVersion = yes; then
9409
9410 ZLIB_LD=-lz
9411
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define HAVE_LIBZ 1
9415_ACEOF
9416
9417
9418else
9419 zlib=no
9420fi
9421
9422
9423else
9424 zlib=no
9425fi
9426
9427
9428
9429fi
9430
9431
9432# Check whether --enable-ports was given.
9433if test "${enable_ports+set}" = set; then
9434 enableval=$enable_ports; if test $enableval = yes; then
9435 SELECT_TYPE_EXPLICIT="ports"
9436 else
9437 use_ports=no
9438 fi
9439
9440fi
9441
9442
9443# Check whether --enable-poll was given.
9444if test "${enable_poll+set}" = set; then
9445 enableval=$enable_poll; if test $enableval = yes; then
9446 SELECT_TYPE_EXPLICIT="poll"
9447 else
9448 use_poll=no
9449 fi
9450
9451fi
9452
9453
9454# Check whether --enable-select was given.
9455if test "${enable_select+set}" = set; then
9456 enableval=$enable_select; if test $enableval = yes; then
9457 SELECT_TYPE_EXPLICIT="select"
9458 else
9459 use_select=no
9460 fi
9461
9462fi
9463
9464
9465# Check whether --enable-kqueue was given.
9466if test "${enable_kqueue+set}" = set; then
9467 enableval=$enable_kqueue; if test $enableval = yes; then
9468 SELECT_TYPE_EXPLICIT="kqueue"
9469 else
9470 use_kqueue=no
9471 fi
9472
9473fi
9474
9475
9476# Check whether --enable-epoll was given.
9477if test "${enable_epoll+set}" = set; then
9478 enableval=$enable_epoll; if test $enableval = yes; then
9479 SELECT_TYPE_EXPLICIT="epoll"
9480
9481for ac_func in epoll_ctl
9482do
9483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497#define $ac_func innocuous_$ac_func
9498
9499/* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char $ac_func (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9503
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
9509
9510#undef $ac_func
9511
9512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518char $ac_func ();
9519/* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
9522#if defined __stub_$ac_func || defined __stub___$ac_func
9523choke me
9524#endif
9525
9526int
9527main ()
9528{
9529return $ac_func ();
9530 ;
9531 return 0;
9532}
9533_ACEOF
9534rm -f conftest.$ac_objext conftest$ac_exeext
9535if { (ac_try="$ac_link"
9536case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539esac
9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest$ac_exeext &&
9551 $as_test_x conftest$ac_exeext; then
9552 eval "$as_ac_var=yes"
9553else
9554 echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 eval "$as_ac_var=no"
9558fi
9559
9560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561 conftest$ac_exeext conftest.$ac_ext
9562fi
9563ac_res=`eval echo '${'$as_ac_var'}'`
9564 { echo "$as_me:$LINENO: result: $ac_res" >&5
9565echo "${ECHO_T}$ac_res" >&6; }
9566if test `eval echo '${'$as_ac_var'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569_ACEOF
9570 haveepoll=yes
9571else
9572 haveepoll=no
9573fi
9574done
9575
9576 else
9577 use_epoll=no
9578 fi
9579
9580fi
9581
9582
9583
9584{ echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9585echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
9586
9587# Check whether --with-confdir was given.
9588if test "${with_confdir+set}" = set; then
9589 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9590 { echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6; }
9592
9593 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9595 ac_define_dir=`eval echo $confdir`
9596 ac_define_dir=`eval echo $ac_define_dir`
9597 ETC_DIR="$ac_define_dir"
9598
9599
9600cat >>confdefs.h <<_ACEOF
9601#define ETC_DIR "$ac_define_dir"
9602_ACEOF
9603
9604
9605
9606
9607 confdir=`(
9608 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9609 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9610 eval echo \""$confdir"\"
9611 )`
9612
9613
9614else
9615 confdir='${prefix}/etc'
9616 { echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6; }
9618
9619 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9621 ac_define_dir=`eval echo $confdir`
9622 ac_define_dir=`eval echo $ac_define_dir`
9623 ETC_DIR="$ac_define_dir"
9624
9625
9626cat >>confdefs.h <<_ACEOF
9627#define ETC_DIR "$ac_define_dir"
9628_ACEOF
9629
9630
9631
9632
9633 confdir=`(
9634 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9635 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9636 eval echo \""$confdir"\"
9637 )`
9638
9639
9640
9641fi
9642
9643
9644
9645{ echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9646echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
9647
9648# Check whether --with-logdir was given.
9649if test "${with_logdir+set}" = set; then
9650 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9651 { echo "$as_me:$LINENO: result: yes" >&5
9652echo "${ECHO_T}yes" >&6; }
9653
9654 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9656 ac_define_dir=`eval echo $logdir`
9657 ac_define_dir=`eval echo $ac_define_dir`
9658 LOG_DIR="$ac_define_dir"
9659
9660
9661cat >>confdefs.h <<_ACEOF
9662#define LOG_DIR "$ac_define_dir"
9663_ACEOF
9664
9665
9666
9667
9668 logdir=`(
9669 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9670 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9671 eval echo \""$logdir"\"
9672 )`
9673
9674
9675else
9676 logdir='${prefix}/logs'
9677 { echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6; }
9679
9680 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9682 ac_define_dir=`eval echo $logdir`
9683 ac_define_dir=`eval echo $ac_define_dir`
9684 LOG_DIR="$ac_define_dir"
9685
9686
9687cat >>confdefs.h <<_ACEOF
9688#define LOG_DIR "$ac_define_dir"
9689_ACEOF
9690
9691
9692
9693
9694 logdir=`(
9695 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9696 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9697 eval echo \""$logdir"\"
9698 )`
9699
9700
9701
9702fi
9703
9704
9705
9706{ echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9707echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
9708
9709# Check whether --with-helpdir was given.
9710if test "${with_helpdir+set}" = set; then
9711 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
9712 { echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6; }
9714
9715 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9717 ac_define_dir=`eval echo $helpdir`
9718 ac_define_dir=`eval echo $ac_define_dir`
9719 HELP_DIR="$ac_define_dir"
9720
9721
9722cat >>confdefs.h <<_ACEOF
9723#define HELP_DIR "$ac_define_dir"
9724_ACEOF
9725
9726
9727
9728
9729 helpdir=`(
9730 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9731 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9732 eval echo \""$helpdir"\"
9733 )`
9734
9735
9736else
9737 helpdir='${prefix}/help'
9738 { echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6; }
9740
9741 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9743 ac_define_dir=`eval echo $helpdir`
9744 ac_define_dir=`eval echo $ac_define_dir`
9745 HELP_DIR="$ac_define_dir"
9746
9747
9748cat >>confdefs.h <<_ACEOF
9749#define HELP_DIR "$ac_define_dir"
9750_ACEOF
9751
9752
9753
9754
9755 helpdir=`(
9756 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9757 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9758 eval echo \""$helpdir"\"
9759 )`
9760
9761
9762
9763fi
9764
9765
9766
9767{ echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9768echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
9769
9770# Check whether --with-moduledir was given.
9771if test "${with_moduledir+set}" = set; then
9772 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
9773 { echo "$as_me:$LINENO: result: yes" >&5
9774echo "${ECHO_T}yes" >&6; }
9775
9776 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9778 ac_define_dir=`eval echo $moduledir`
9779 ac_define_dir=`eval echo $ac_define_dir`
9780 MODULE_DIR="$ac_define_dir"
9781
9782
9783cat >>confdefs.h <<_ACEOF
9784#define MODULE_DIR "$ac_define_dir"
9785_ACEOF
9786
9787
9788
9789
9790 moduledir=`(
9791 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9792 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9793 eval echo \""$moduledir"\"
9794 )`
9795
9796
9797else
9798 moduledir='${prefix}/modules'
9799 { echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6; }
9801
9802 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9804 ac_define_dir=`eval echo $moduledir`
9805 ac_define_dir=`eval echo $ac_define_dir`
9806 MODULE_DIR="$ac_define_dir"
9807
9808
9809cat >>confdefs.h <<_ACEOF
9810#define MODULE_DIR "$ac_define_dir"
9811_ACEOF
9812
9813
9814
9815
9816 moduledir=`(
9817 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9818 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9819 eval echo \""$moduledir"\"
9820 )`
9821
9822
9823
9824fi
9825
9826
9827if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9828 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
9829 echo "Forcing $SELECT_TYPE to be enabled"
9830else
9831
9832if test ! "x$use_ports" = "xno"; then
9833
9834for ac_func in port_getn
9835do
9836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850#define $ac_func innocuous_$ac_func
9851
9852/* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char $ac_func (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9856
9857#ifdef __STDC__
9858# include <limits.h>
9859#else
9860# include <assert.h>
9861#endif
9862
9863#undef $ac_func
9864
9865/* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9868#ifdef __cplusplus
9869extern "C"
9870#endif
9871char $ac_func ();
9872/* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875#if defined __stub_$ac_func || defined __stub___$ac_func
9876choke me
9877#endif
9878
9879int
9880main ()
9881{
9882return $ac_func ();
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
9888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 eval "$as_ac_var=yes"
9906else
9907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 eval "$as_ac_var=no"
9911fi
9912
9913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9915fi
9916ac_res=`eval echo '${'$as_ac_var'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918echo "${ECHO_T}$ac_res" >&6; }
9919if test `eval echo '${'$as_ac_var'}'` = yes; then
9920 cat >>confdefs.h <<_ACEOF
9921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9922_ACEOF
9923 haveports=yes
9924else
9925 haveports=no
9926fi
9927done
9928
9929 if test "x$haveports" = "xyes" ; then
9930 SELECT_TYPE="ports"
9931 fi
9932fi
9933
9934if test ! "x$use_select" = "xno"; then
9935
9936for ac_func in select
9937do
9938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 cat >conftest.$ac_ext <<_ACEOF
9945/* confdefs.h. */
9946_ACEOF
9947cat confdefs.h >>conftest.$ac_ext
9948cat >>conftest.$ac_ext <<_ACEOF
9949/* end confdefs.h. */
9950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952#define $ac_func innocuous_$ac_func
9953
9954/* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char $ac_func (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
9958
9959#ifdef __STDC__
9960# include <limits.h>
9961#else
9962# include <assert.h>
9963#endif
9964
9965#undef $ac_func
9966
9967/* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970#ifdef __cplusplus
9971extern "C"
9972#endif
9973char $ac_func ();
9974/* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977#if defined __stub_$ac_func || defined __stub___$ac_func
9978choke me
9979#endif
9980
9981int
9982main ()
9983{
9984return $ac_func ();
9985 ;
9986 return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext conftest$ac_exeext
9990if { (ac_try="$ac_link"
9991case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest$ac_exeext &&
10006 $as_test_x conftest$ac_exeext; then
10007 eval "$as_ac_var=yes"
10008else
10009 echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
10012 eval "$as_ac_var=no"
10013fi
10014
10015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10017fi
10018ac_res=`eval echo '${'$as_ac_var'}'`
10019 { echo "$as_me:$LINENO: result: $ac_res" >&5
10020echo "${ECHO_T}$ac_res" >&6; }
10021if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024_ACEOF
10025 haveselect=yes
10026else
10027 haveselect=no
10028fi
10029done
10030
10031 if test "x$haveselect" = "xyes" ; then
10032 SELECT_TYPE="select"
10033 fi
10034fi
10035
10036if test ! "x$use_poll" = "xno"; then
10037
10038for ac_func in poll
10039do
10040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045else
10046 cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h. */
10048_ACEOF
10049cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h. */
10052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054#define $ac_func innocuous_$ac_func
10055
10056/* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char $ac_func (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10060
10061#ifdef __STDC__
10062# include <limits.h>
10063#else
10064# include <assert.h>
10065#endif
10066
10067#undef $ac_func
10068
10069/* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10072#ifdef __cplusplus
10073extern "C"
10074#endif
10075char $ac_func ();
10076/* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079#if defined __stub_$ac_func || defined __stub___$ac_func
10080choke me
10081#endif
10082
10083int
10084main ()
10085{
10086return $ac_func ();
10087 ;
10088 return 0;
10089}
10090_ACEOF
10091rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (ac_try="$ac_link"
10093case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest$ac_exeext &&
10108 $as_test_x conftest$ac_exeext; then
10109 eval "$as_ac_var=yes"
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 eval "$as_ac_var=no"
10115fi
10116
10117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10119fi
10120ac_res=`eval echo '${'$as_ac_var'}'`
10121 { echo "$as_me:$LINENO: result: $ac_res" >&5
10122echo "${ECHO_T}$ac_res" >&6; }
10123if test `eval echo '${'$as_ac_var'}'` = yes; then
10124 cat >>confdefs.h <<_ACEOF
10125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10126_ACEOF
10127 havepoll=yes
10128else
10129 havepoll=no
10130fi
10131done
10132
10133 if test "x$havepoll" = "xyes" ; then
10134 SELECT_TYPE="poll"
10135 fi
10136fi
10137
10138if test ! "x$use_kqueue" = "xno"; then
10139
10140for ac_func in kevent
10141do
10142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h. */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h. */
10154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10156#define $ac_func innocuous_$ac_func
10157
10158/* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char $ac_func (); below.
10160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10161 <limits.h> exists even on freestanding compilers. */
10162
10163#ifdef __STDC__
10164# include <limits.h>
10165#else
10166# include <assert.h>
10167#endif
10168
10169#undef $ac_func
10170
10171/* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10174#ifdef __cplusplus
10175extern "C"
10176#endif
10177char $ac_func ();
10178/* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181#if defined __stub_$ac_func || defined __stub___$ac_func
10182choke me
10183#endif
10184
10185int
10186main ()
10187{
10188return $ac_func ();
10189 ;
10190 return 0;
10191}
10192_ACEOF
10193rm -f conftest.$ac_objext conftest$ac_exeext
10194if { (ac_try="$ac_link"
10195case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext &&
10210 $as_test_x conftest$ac_exeext; then
10211 eval "$as_ac_var=yes"
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 eval "$as_ac_var=no"
10217fi
10218
10219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10220 conftest$ac_exeext conftest.$ac_ext
10221fi
10222ac_res=`eval echo '${'$as_ac_var'}'`
10223 { echo "$as_me:$LINENO: result: $ac_res" >&5
10224echo "${ECHO_T}$ac_res" >&6; }
10225if test `eval echo '${'$as_ac_var'}'` = yes; then
10226 cat >>confdefs.h <<_ACEOF
10227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10228_ACEOF
10229 havekqueue=yes
10230else
10231 havekqueue=no
10232fi
10233done
10234
10235 if test "x$havekqueue" = "xyes" ; then
10236 SELECT_TYPE="kqueue"
10237 fi
10238fi
10239
10240if test ! "x$use_epoll" = "xno"; then
10241
10242for ac_func in epoll_ctl
10243do
10244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10245{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10247if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 cat >conftest.$ac_ext <<_ACEOF
10251/* confdefs.h. */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h. */
10256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10258#define $ac_func innocuous_$ac_func
10259
10260/* System header to define __stub macros and hopefully few prototypes,
10261 which can conflict with char $ac_func (); below.
10262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263 <limits.h> exists even on freestanding compilers. */
10264
10265#ifdef __STDC__
10266# include <limits.h>
10267#else
10268# include <assert.h>
10269#endif
10270
10271#undef $ac_func
10272
10273/* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276#ifdef __cplusplus
10277extern "C"
10278#endif
10279char $ac_func ();
10280/* The GNU C library defines this for functions which it implements
10281 to always fail with ENOSYS. Some functions are actually named
10282 something starting with __ and the normal name is an alias. */
10283#if defined __stub_$ac_func || defined __stub___$ac_func
10284choke me
10285#endif
10286
10287int
10288main ()
10289{
10290return $ac_func ();
10291 ;
10292 return 0;
10293}
10294_ACEOF
10295rm -f conftest.$ac_objext conftest$ac_exeext
10296if { (ac_try="$ac_link"
10297case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10300esac
10301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest$ac_exeext &&
10312 $as_test_x conftest$ac_exeext; then
10313 eval "$as_ac_var=yes"
10314else
10315 echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 eval "$as_ac_var=no"
10319fi
10320
10321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10322 conftest$ac_exeext conftest.$ac_ext
10323fi
10324ac_res=`eval echo '${'$as_ac_var'}'`
10325 { echo "$as_me:$LINENO: result: $ac_res" >&5
10326echo "${ECHO_T}$ac_res" >&6; }
10327if test `eval echo '${'$as_ac_var'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10330_ACEOF
10331 haveepoll=yes
10332else
10333 haveepoll=no
10334fi
10335done
10336
10337 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10338 if test "x$haveepoll" = "xyes" ; then
10339 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10340echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10341 if test "$cross_compiling" = yes; then
10342 { echo "$as_me:$LINENO: result: no" >&5
10343echo "${ECHO_T}no" >&6; }
10344else
10345 cat >conftest.$ac_ext <<_ACEOF
10346/* confdefs.h. */
10347_ACEOF
10348cat confdefs.h >>conftest.$ac_ext
10349cat >>conftest.$ac_ext <<_ACEOF
10350/* end confdefs.h. */
10351#include <stdint.h>
10352#include <sys/param.h>
10353#include <sys/types.h>
10354#include <sys/epoll.h>
10355#include <sys/syscall.h>
10356#include <unistd.h>
10357
10358int
10359main(int argc, char **argv)
10360{
10361 int epfd;
10362
10363 epfd = epoll_create(256);
10364 return (epfd == -1 ? 1 : 0);
10365}
10366_ACEOF
10367rm -f conftest$ac_exeext
10368if { (ac_try="$ac_link"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_link") 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 { echo "$as_me:$LINENO: result: yes" >&5
10388echo "${ECHO_T}yes" >&6; }
10389
10390cat >>confdefs.h <<\_ACEOF
10391#define HAVE_EPOLL 1
10392_ACEOF
10393
10394 SELECT_TYPE="epoll"
10395else
10396 echo "$as_me: program exited with status $ac_status" >&5
10397echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
10400( exit $ac_status )
10401{ echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6; }
10403fi
10404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10405fi
10406
10407
10408 fi
10409 fi
10410
10411haveepollsyscall=no
10412
10413if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10414 if test "x$haveepoll" = "xno" ; then
10415 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10416echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10417 if test "$cross_compiling" = yes; then
10418 { echo "$as_me:$LINENO: result: no" >&5
10419echo "${ECHO_T}no" >&6; }
10420else
10421 cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427#include <stdint.h>
10428#include <sys/param.h>
10429#include <sys/types.h>
10430#include <sys/epoll.h>
10431#include <sys/syscall.h>
10432#include <unistd.h>
10433
10434int
10435epoll_create(int size)
10436{
10437 return (syscall(__NR_epoll_create, size));
10438}
10439
10440int
10441main(int argc, char **argv)
10442{
10443 int epfd;
10444
10445 epfd = epoll_create(256);
10446 exit (epfd == -1 ? 1 : 0);
10447}
10448_ACEOF
10449rm -f conftest$ac_exeext
10450if { (ac_try="$ac_link"
10451case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 { echo "$as_me:$LINENO: result: yes" >&5
10470echo "${ECHO_T}yes" >&6; }
10471
10472cat >>confdefs.h <<\_ACEOF
10473#define HAVE_EPOLL 1
10474_ACEOF
10475
10476 SELECT_TYPE="epoll"
10477else
10478 echo "$as_me: program exited with status $ac_status" >&5
10479echo "$as_me: failed program was:" >&5
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
10482( exit $ac_status )
10483{ echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6; }
10485fi
10486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10487fi
10488
10489
10490 fi
10491fi
10492
10493fi
10494
10495fi
10496
10497if test -z "$SELECT_TYPE"; then
10498 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10499echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10500 { (exit 1); exit 1; }; }
10501fi
10502
10503echo "Using $SELECT_TYPE for select loop."
10504
10505
10506cat >>confdefs.h <<_ACEOF
10507#define SELECT_TYPE "$SELECT_TYPE"
10508_ACEOF
10509
10510
10511
10512
10513
10514# Check whether --enable-assert was given.
10515if test "${enable_assert+set}" = set; then
10516 enableval=$enable_assert; assert=$enableval
10517else
10518 assert=no
10519fi
10520
10521
10522if test "$assert" = no; then
10523
10524cat >>confdefs.h <<\_ACEOF
10525#define NDEBUG 1
10526_ACEOF
10527
10528elif test "$assert" = soft; then
10529
10530cat >>confdefs.h <<\_ACEOF
10531#define SOFT_ASSERT 1
10532_ACEOF
10533
10534
10535cat >>confdefs.h <<\_ACEOF
10536#define NDEBUG 1
10537_ACEOF
10538
10539elif test "$assert" = yes; then
10540 assert = "hard";
10541fi
10542
10543{ echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10544echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10545# Check whether --enable-iodebug was given.
10546if test "${enable_iodebug+set}" = set; then
10547 enableval=$enable_iodebug; iodebug=$enableval
10548else
10549 iodebug=no
10550fi
10551
10552
10553if test "$iodebug" = yes; then
10554
10555cat >>confdefs.h <<\_ACEOF
10556#define USE_IODEBUG_HOOKS 1
10557_ACEOF
10558
10559 { echo "$as_me:$LINENO: result: yes" >&5
10560echo "${ECHO_T}yes" >&6; }
10561else
10562 { echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6; }
10564fi
10565
10566
10567{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10568echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10569# Check whether --enable-profile was given.
10570if test "${enable_profile+set}" = set; then
10571 enableval=$enable_profile; profile=$enableval
10572else
10573 profile=no
10574fi
10575
10576
10577if test "$profile" = yes; then
10578 if test "$ac_cv_c_compiler_gnu" = yes; then
10579 IRC_CFLAGS="$IRC_CFLAGS -pg"
10580 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10581echo "${ECHO_T}yes, adding -pg" >&6; }
10582
10583cat >>confdefs.h <<\_ACEOF
10584#define CHARYBDIS_PROFILE 1
10585_ACEOF
10586
10587 else
10588 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10589echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
10590 fi
10591else
10592 { echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6; }
10594fi
10595
10596# Check whether --enable-balloc was given.
10597if test "${enable_balloc+set}" = set; then
10598 enableval=$enable_balloc; balloc=$enableval
10599else
10600 balloc=yes
10601fi
10602
10603
10604if test "$balloc" = no; then
10605
10606cat >>confdefs.h <<\_ACEOF
10607#define NOBALLOC 1
10608_ACEOF
10609
10610fi
10611
10612# Check whether --enable-small-net was given.
10613if test "${enable_small_net+set}" = set; then
10614 enableval=$enable_small_net; small_net=$enableval
10615else
10616 small_net=no
10617fi
10618
10619
10620if test "$small_net" = yes; then
10621
10622cat >>confdefs.h <<\_ACEOF
10623#define NICKNAMEHISTORYLENGTH 1500
10624_ACEOF
10625
10626
10627cat >>confdefs.h <<\_ACEOF
10628#define CHANNEL_HEAP_SIZE 256
10629_ACEOF
10630
10631
10632cat >>confdefs.h <<\_ACEOF
10633#define BAN_HEAP_SIZE 128
10634_ACEOF
10635
10636
10637cat >>confdefs.h <<\_ACEOF
10638#define CLIENT_HEAP_SIZE 256
10639_ACEOF
10640
10641
10642cat >>confdefs.h <<\_ACEOF
10643#define LCLIENT_HEAP_SIZE 128
10644_ACEOF
10645
10646
10647cat >>confdefs.h <<\_ACEOF
10648#define PCLIENT_HEAP_SIZE 32
10649_ACEOF
10650
10651
10652cat >>confdefs.h <<\_ACEOF
10653#define USER_HEAP_SIZE 128
10654_ACEOF
10655
10656
10657cat >>confdefs.h <<\_ACEOF
10658#define DNODE_HEAP_SIZE 256
10659_ACEOF
10660
10661
10662cat >>confdefs.h <<\_ACEOF
10663#define TOPIC_HEAP_SIZE 256
10664_ACEOF
10665
10666
10667cat >>confdefs.h <<\_ACEOF
10668#define LINEBUF_HEAP_SIZE 128
10669_ACEOF
10670
10671
10672cat >>confdefs.h <<\_ACEOF
10673#define MEMBER_HEAP_SIZE 256
10674_ACEOF
10675
10676
10677cat >>confdefs.h <<\_ACEOF
10678#define ND_HEAP_SIZE 128
10679_ACEOF
10680
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define CONFITEM_HEAP_SIZE 128
10684_ACEOF
10685
10686
10687cat >>confdefs.h <<\_ACEOF
10688#define MONITOR_HEAP_SIZE 128
10689_ACEOF
10690
10691
10692cat >>confdefs.h <<\_ACEOF
10693#define FD_HEAP_SIZE 128
10694_ACEOF
10695
10696
10697cat >>confdefs.h <<\_ACEOF
10698#define AWAY_HEAP_SIZE 128
10699_ACEOF
10700
10701else
10702
10703cat >>confdefs.h <<\_ACEOF
10704#define NICKNAMEHISTORYLENGTH 15000
10705_ACEOF
10706
10707
10708cat >>confdefs.h <<\_ACEOF
10709#define CHANNEL_HEAP_SIZE 8192
10710_ACEOF
10711
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define BAN_HEAP_SIZE 4096
10715_ACEOF
10716
10717
10718cat >>confdefs.h <<\_ACEOF
10719#define CLIENT_HEAP_SIZE 8192
10720_ACEOF
10721
10722
10723cat >>confdefs.h <<\_ACEOF
10724#define LCLIENT_HEAP_SIZE 1024
10725_ACEOF
10726
10727
10728cat >>confdefs.h <<\_ACEOF
10729#define PCLIENT_HEAP_SIZE 256
10730_ACEOF
10731
10732
10733cat >>confdefs.h <<\_ACEOF
10734#define USER_HEAP_SIZE 8192
10735_ACEOF
10736
10737
10738cat >>confdefs.h <<\_ACEOF
10739#define DNODE_HEAP_SIZE 8192
10740_ACEOF
10741
10742
10743cat >>confdefs.h <<\_ACEOF
10744#define TOPIC_HEAP_SIZE 4096
10745_ACEOF
10746
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define LINEBUF_HEAP_SIZE 2048
10750_ACEOF
10751
10752
10753cat >>confdefs.h <<\_ACEOF
10754#define MEMBER_HEAP_SIZE 32768
10755_ACEOF
10756
10757
10758cat >>confdefs.h <<\_ACEOF
10759#define ND_HEAP_SIZE 512
10760_ACEOF
10761
10762
10763cat >>confdefs.h <<\_ACEOF
10764#define CONFITEM_HEAP_SIZE 256
10765_ACEOF
10766
10767
10768cat >>confdefs.h <<\_ACEOF
10769#define MONITOR_HEAP_SIZE 1024
10770_ACEOF
10771
10772
10773cat >>confdefs.h <<\_ACEOF
10774#define FD_HEAP_SIZE 1024
10775_ACEOF
10776
10777
10778cat >>confdefs.h <<\_ACEOF
10779#define AWAY_HEAP_SIZE 512
10780_ACEOF
10781
10782fi
10783
10784
10785# Check whether --with-nicklen was given.
10786if test "${with_nicklen+set}" = set; then
10787 withval=$with_nicklen;
10788 if test $withval -ge 50; then
10789 NICKLEN=50
10790 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
10791echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
10792 else
10793 NICKLEN="$withval"
10794 fi
10795
10796else
10797 NICKLEN=15
10798fi
10799
10800
10801
10802# Check whether --with-topiclen was given.
10803if test "${with_topiclen+set}" = set; then
10804 withval=$with_topiclen;
10805 if test $withval -ge 390; then
10806 TOPICLEN=390
10807 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
10808echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
10809 else
10810 TOPICLEN=$withval
10811 fi
10812
10813else
10814 TOPICLEN=390
10815fi
10816
10817
10818
10819cat >>confdefs.h <<_ACEOF
10820#define TOPICLEN ${TOPICLEN}
10821_ACEOF
10822
10823
10824cat >>confdefs.h <<_ACEOF
10825#define NICKLEN (${NICKLEN}+1)
10826_ACEOF
10827
10828
10829shared_modules="yes"
10830if test "$shared_modules" = yes; then
10831 if test "$CC" = tcc -a "$TenDRA" = "no"; then
10832 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
10833echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
10834 shared_modules="no"
10835 fi
10836fi
10837
10838if test "$shared_modules" = yes; then
10839 DYNLINK_C=dynlink.c
10840
10841for ac_header in dlfcn.h
10842do
10843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849fi
10850ac_res=`eval echo '${'$as_ac_Header'}'`
10851 { echo "$as_me:$LINENO: result: $ac_res" >&5
10852echo "${ECHO_T}$ac_res" >&6; }
10853else
10854 # Is the header compilable?
10855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10857cat >conftest.$ac_ext <<_ACEOF
10858/* confdefs.h. */
10859_ACEOF
10860cat confdefs.h >>conftest.$ac_ext
10861cat >>conftest.$ac_ext <<_ACEOF
10862/* end confdefs.h. */
10863$ac_includes_default
10864#include <$ac_header>
10865_ACEOF
10866rm -f conftest.$ac_objext
10867if { (ac_try="$ac_compile"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest.$ac_objext; then
10883 ac_header_compiler=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_header_compiler=no
10889fi
10890
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10893echo "${ECHO_T}$ac_header_compiler" >&6; }
10894
10895# Is the header present?
10896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10898cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10904#include <$ac_header>
10905_ACEOF
10906if { (ac_try="$ac_cpp conftest.$ac_ext"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } >/dev/null && {
10919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10920 test ! -s conftest.err
10921 }; then
10922 ac_header_preproc=yes
10923else
10924 echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927 ac_header_preproc=no
10928fi
10929
10930rm -f conftest.err conftest.$ac_ext
10931{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10932echo "${ECHO_T}$ac_header_preproc" >&6; }
10933
10934# So? What about this header?
10935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10936 yes:no: )
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10941 ac_header_preproc=yes
10942 ;;
10943 no:yes:* )
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10956
10957 ;;
10958esac
10959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 eval "$as_ac_Header=\$ac_header_preproc"
10965fi
10966ac_res=`eval echo '${'$as_ac_Header'}'`
10967 { echo "$as_me:$LINENO: result: $ac_res" >&5
10968echo "${ECHO_T}$ac_res" >&6; }
10969
10970fi
10971if test `eval echo '${'$as_ac_Header'}'` = yes; then
10972 cat >>confdefs.h <<_ACEOF
10973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10974_ACEOF
10975
10976fi
10977
10978done
10979
10980 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10981echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
10982if test "${ac_cv_search_shl_load+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984else
10985 ac_func_search_save_LIBS=$LIBS
10986cat >conftest.$ac_ext <<_ACEOF
10987/* confdefs.h. */
10988_ACEOF
10989cat confdefs.h >>conftest.$ac_ext
10990cat >>conftest.$ac_ext <<_ACEOF
10991/* end confdefs.h. */
10992
10993/* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
10996#ifdef __cplusplus
10997extern "C"
10998#endif
10999char shl_load ();
11000int
11001main ()
11002{
11003return shl_load ();
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008for ac_lib in '' dld; do
11009 if test -z "$ac_lib"; then
11010 ac_res="none required"
11011 else
11012 ac_res=-l$ac_lib
11013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11014 fi
11015 rm -f conftest.$ac_objext conftest$ac_exeext
11016if { (ac_try="$ac_link"
11017case "(($ac_try" in
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11022 (eval "$ac_link") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest$ac_exeext &&
11032 $as_test_x conftest$ac_exeext; then
11033 ac_cv_search_shl_load=$ac_res
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
11038
11039fi
11040
11041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11042 conftest$ac_exeext
11043 if test "${ac_cv_search_shl_load+set}" = set; then
11044 break
11045fi
11046done
11047if test "${ac_cv_search_shl_load+set}" = set; then
11048 :
11049else
11050 ac_cv_search_shl_load=no
11051fi
11052rm conftest.$ac_ext
11053LIBS=$ac_func_search_save_LIBS
11054fi
11055{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11056echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11057ac_res=$ac_cv_search_shl_load
11058if test "$ac_res" != no; then
11059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11060
11061
11062cat >>confdefs.h <<\_ACEOF
11063#define HAVE_SHL_LOAD 1
11064_ACEOF
11065
11066 SUFFIX=".sl"
11067 MOD_TARGET=hpux_shared
11068 SEDOBJ="s/\.o/.sl/g"
11069
11070else
11071
11072 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11073echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11074if test "${ac_cv_search_dlopen+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076else
11077 ac_func_search_save_LIBS=$LIBS
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085/* Override any GCC internal prototype to avoid an error.
11086 Use char because int might match the return type of a GCC
11087 builtin and then its argument prototype would still apply. */
11088#ifdef __cplusplus
11089extern "C"
11090#endif
11091char dlopen ();
11092int
11093main ()
11094{
11095return dlopen ();
11096 ;
11097 return 0;
11098}
11099_ACEOF
11100for ac_lib in '' dl c_r; do
11101 if test -z "$ac_lib"; then
11102 ac_res="none required"
11103 else
11104 ac_res=-l$ac_lib
11105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11106 fi
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108if { (ac_try="$ac_link"
11109case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112esac
11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_link") 2>conftest.er1
11115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest$ac_exeext &&
11124 $as_test_x conftest$ac_exeext; then
11125 ac_cv_search_dlopen=$ac_res
11126else
11127 echo "$as_me: failed program was:" >&5
11128sed 's/^/| /' conftest.$ac_ext >&5
11129
11130
11131fi
11132
11133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11134 conftest$ac_exeext
11135 if test "${ac_cv_search_dlopen+set}" = set; then
11136 break
11137fi
11138done
11139if test "${ac_cv_search_dlopen+set}" = set; then
11140 :
11141else
11142 ac_cv_search_dlopen=no
11143fi
11144rm conftest.$ac_ext
11145LIBS=$ac_func_search_save_LIBS
11146fi
11147{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11148echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11149ac_res=$ac_cv_search_dlopen
11150if test "$ac_res" != no; then
11151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11152
11153
11154cat >>confdefs.h <<\_ACEOF
11155#define HAVE_DLOPEN 1
11156_ACEOF
11157
11158 SUFFIX=".so"
11159 MOD_TARGET=shared_modules
11160 SEDOBJ="s/\.o/.so/g"
11161 if test "$AppleGCC" = yes; then
11162
11163for ac_header in mach-o/dyld.h
11164do
11165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171fi
11172ac_res=`eval echo '${'$as_ac_Header'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174echo "${ECHO_T}$ac_res" >&6; }
11175else
11176 # Is the header compilable?
11177{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11178echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11179cat >conftest.$ac_ext <<_ACEOF
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
11184/* end confdefs.h. */
11185$ac_includes_default
11186#include <$ac_header>
11187_ACEOF
11188rm -f conftest.$ac_objext
11189if { (ac_try="$ac_compile"
11190case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_compile") 2>conftest.er1
11196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest.$ac_objext; then
11205 ac_header_compiler=yes
11206else
11207 echo "$as_me: failed program was:" >&5
11208sed 's/^/| /' conftest.$ac_ext >&5
11209
11210 ac_header_compiler=no
11211fi
11212
11213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11215echo "${ECHO_T}$ac_header_compiler" >&6; }
11216
11217# Is the header present?
11218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11220cat >conftest.$ac_ext <<_ACEOF
11221/* confdefs.h. */
11222_ACEOF
11223cat confdefs.h >>conftest.$ac_ext
11224cat >>conftest.$ac_ext <<_ACEOF
11225/* end confdefs.h. */
11226#include <$ac_header>
11227_ACEOF
11228if { (ac_try="$ac_cpp conftest.$ac_ext"
11229case "(($ac_try" in
11230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11231 *) ac_try_echo=$ac_try;;
11232esac
11233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } >/dev/null && {
11241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11243 }; then
11244 ac_header_preproc=yes
11245else
11246 echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 ac_header_preproc=no
11250fi
11251
11252rm -f conftest.err conftest.$ac_ext
11253{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11254echo "${ECHO_T}$ac_header_preproc" >&6; }
11255
11256# So? What about this header?
11257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11258 yes:no: )
11259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11263 ac_header_preproc=yes
11264 ;;
11265 no:yes:* )
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11278
11279 ;;
11280esac
11281{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11285else
11286 eval "$as_ac_Header=\$ac_header_preproc"
11287fi
11288ac_res=`eval echo '${'$as_ac_Header'}'`
11289 { echo "$as_me:$LINENO: result: $ac_res" >&5
11290echo "${ECHO_T}$ac_res" >&6; }
11291
11292fi
11293if test `eval echo '${'$as_ac_Header'}'` = yes; then
11294 cat >>confdefs.h <<_ACEOF
11295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11296_ACEOF
11297
11298fi
11299
11300done
11301
11302 fi
11303 { echo "$as_me:$LINENO: checking for dlsym" >&5
11304echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11305if test "${ac_cv_func_dlsym+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308 cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
11314/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316#define dlsym innocuous_dlsym
11317
11318/* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char dlsym (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11322
11323#ifdef __STDC__
11324# include <limits.h>
11325#else
11326# include <assert.h>
11327#endif
11328
11329#undef dlsym
11330
11331/* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11334#ifdef __cplusplus
11335extern "C"
11336#endif
11337char dlsym ();
11338/* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341#if defined __stub_dlsym || defined __stub___dlsym
11342choke me
11343#endif
11344
11345int
11346main ()
11347{
11348return dlsym ();
11349 ;
11350 return 0;
11351}
11352_ACEOF
11353rm -f conftest.$ac_objext conftest$ac_exeext
11354if { (ac_try="$ac_link"
11355case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358esac
11359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_link") 2>conftest.er1
11361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext &&
11370 $as_test_x conftest$ac_exeext; then
11371 ac_cv_func_dlsym=yes
11372else
11373 echo "$as_me: failed program was:" >&5
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
11376 ac_cv_func_dlsym=no
11377fi
11378
11379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11380 conftest$ac_exeext conftest.$ac_ext
11381fi
11382{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11383echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11384if test $ac_cv_func_dlsym = yes; then
11385 :
11386else
11387
11388 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11389echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11390 shared_modules=no
11391
11392fi
11393
11394
11395for ac_func in dlfunc
11396do
11397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11398{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11400if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11411#define $ac_func innocuous_$ac_func
11412
11413/* System header to define __stub macros and hopefully few prototypes,
11414 which can conflict with char $ac_func (); below.
11415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11416 <limits.h> exists even on freestanding compilers. */
11417
11418#ifdef __STDC__
11419# include <limits.h>
11420#else
11421# include <assert.h>
11422#endif
11423
11424#undef $ac_func
11425
11426/* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429#ifdef __cplusplus
11430extern "C"
11431#endif
11432char $ac_func ();
11433/* The GNU C library defines this for functions which it implements
11434 to always fail with ENOSYS. Some functions are actually named
11435 something starting with __ and the normal name is an alias. */
11436#if defined __stub_$ac_func || defined __stub___$ac_func
11437choke me
11438#endif
11439
11440int
11441main ()
11442{
11443return $ac_func ();
11444 ;
11445 return 0;
11446}
11447_ACEOF
11448rm -f conftest.$ac_objext conftest$ac_exeext
11449if { (ac_try="$ac_link"
11450case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext &&
11465 $as_test_x conftest$ac_exeext; then
11466 eval "$as_ac_var=yes"
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 eval "$as_ac_var=no"
11472fi
11473
11474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475 conftest$ac_exeext conftest.$ac_ext
11476fi
11477ac_res=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479echo "${ECHO_T}$ac_res" >&6; }
11480if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h <<_ACEOF
11482#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11483_ACEOF
11484
11485fi
11486done
11487
11488
11489else
11490
11491 shared_modules=no
11492
11493fi
11494
11495
11496fi
11497
11498fi
11499
11500
11501cat >>confdefs.h <<_ACEOF
11502#define SHARED_SUFFIX "$SUFFIX"
11503_ACEOF
11504
11505
11506if test "$shared_modules" = yes; then
11507 # The GNU linker requires the -export-dynamic option to make
11508 # all symbols visible in the dynamic symbol table.
11509 hold_ldflags=$LDFLAGS
11510 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11511echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
11512 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11513 cat >conftest.$ac_ext <<_ACEOF
11514/* confdefs.h. */
11515_ACEOF
11516cat confdefs.h >>conftest.$ac_ext
11517cat >>conftest.$ac_ext <<_ACEOF
11518/* end confdefs.h. */
11519
11520int
11521main ()
11522{
11523int i;
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext conftest$ac_exeext
11529if { (ac_try="$ac_link"
11530case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533esac
11534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_link") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_c_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest$ac_exeext &&
11545 $as_test_x conftest$ac_exeext; then
11546 found=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551 found=no
11552fi
11553
11554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11555 conftest$ac_exeext conftest.$ac_ext
11556 LDFLAGS=$hold_ldflags
11557
11558 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11559 found="no, IRIX ld uses -B,dynamic"
11560 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11561 fi
11562
11563 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11564 found="no, AIX ld uses -G -brtl"
11565 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11566 fi
11567
11568 { echo "$as_me:$LINENO: result: $found" >&5
11569echo "${ECHO_T}$found" >&6; }
11570
11571 if test "$found" = yes; then
11572 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11573 fi
11574
11575 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11576echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
11577 if test "$SGS" = "yes"; then
11578 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11579echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
11580 PICFLAGS="-KPIC -DPIC -G"
11581 fi
11582
11583 if test "$AppleGCC" = "yes"; then
11584 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11585echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
11586 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11587 fi
11588 if test "$HPUX" = "yes" -a "$CC" != gcc; then
11589 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11590echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
11591 PICFLAGS="+z -r -q -n -c"
11592 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11593echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
11594
11595 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
11596 { echo "$as_me:$LINENO: result: no" >&5
11597echo "${ECHO_T}no" >&6; }
11598 else
11599 { echo "$as_me:$LINENO: result: yes" >&5
11600echo "${ECHO_T}yes" >&6; }
11601 PICFLAGS="$PICFLAGS +ESfic"
11602 fi
11603
11604 LDFLAGS="${LDFLAGS} -Wl,-E"
11605 fi
11606 if test "$Tru" = yes -a "$CC" != gcc; then
11607 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11608echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
11609 PICFLAGS="-shared -expect_unresolved '*' "
11610 LDFLAGS="-call_shared"
11611 fi
11612 if test -z "$PICFLAGS"; then
11613 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11614 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11615echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
11616 PICFLAGS="-fPIC -DPIC -shared"
11617 else
11618 { echo "$as_me:$LINENO: result: no" >&5
11619echo "${ECHO_T}no" >&6; }
11620 shared_modules=no
11621 fi
11622 fi
11623fi
11624
11625# rpath, for finding libratbox.so at run time
11626hold_ldflags=$LDFLAGS
11627{ echo "$as_me:$LINENO: checking for the ld -rpath flag" >&5
11628echo $ECHO_N "checking for the ld -rpath flag... $ECHO_C" >&6; }
11629LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
11630cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636
11637int
11638main ()
11639{
11640int i;
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest.$ac_objext conftest$ac_exeext
11646if { (ac_try="$ac_link"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext &&
11662 $as_test_x conftest$ac_exeext; then
11663 found=yes
11664else
11665 echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 found=no
11669fi
11670
11671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672 conftest$ac_exeext conftest.$ac_ext
11673LDFLAGS=$hold_ldflags
11674{ echo "$as_me:$LINENO: result: $found" >&5
11675echo "${ECHO_T}$found" >&6; }
11676if test "$found" = yes; then
11677 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
11678fi
11679
11680# This must be down here, or it will mess up checks like the ones
11681# for -Wl,-export-dynamic
11682# -- jilles
11683CWARNS=""
11684# Check whether --enable-warnings was given.
11685if test "${enable_warnings+set}" = set; then
11686 enableval=$enable_warnings;
11687IRC_CFLAGS="$IRC_CFLAGS -O0"
11688CFLAGS="$IRC_CFLAGS"
11689
11690
11691 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11692echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
11693 if test "${GCC-no}" = yes
11694 then
11695 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697else
11698
11699 oldcflags="${CFLAGS-}"
11700 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11701 cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h. */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h. */
11707
11708#include <string.h>
11709#include <stdio.h>
11710int main(void);
11711
11712int
11713main ()
11714{
11715
11716 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11717
11718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext
11723if { (ac_try="$ac_compile"
11724case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_compile") 2>conftest.er1
11730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); } && {
11736 test -z "$ac_c_werror_flag" ||
11737 test ! -s conftest.err
11738 } && test -s conftest.$ac_objext; then
11739 charybdis_cv_c_gcc_w_all=yes
11740else
11741 echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 charybdis_cv_c_gcc_w_all=no
11745fi
11746
11747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11748 CFLAGS="${oldcflags}"
11749fi
11750
11751 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
11752 CWARNS="${CWARNS}-Wall "
11753 { echo "$as_me:$LINENO: result: ok" >&5
11754echo "${ECHO_T}ok" >&6; }
11755 else
11756 charybdis_cv_c_gcc_w_all=''
11757 { echo "$as_me:$LINENO: result: no" >&5
11758echo "${ECHO_T}no" >&6; }
11759 fi
11760 else
11761 { echo "$as_me:$LINENO: result: no" >&5
11762echo "${ECHO_T}no" >&6; }
11763 fi
11764
11765
11766 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
11767echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
11768 if test "${GCC-no}" = yes
11769 then
11770 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773
11774 oldcflags="${CFLAGS-}"
11775 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
11776 cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
11782
11783#include <string.h>
11784#include <stdio.h>
11785int main(void);
11786
11787int
11788main ()
11789{
11790
11791 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11792
11793 ;
11794 return 0;
11795}
11796_ACEOF
11797rm -f conftest.$ac_objext
11798if { (ac_try="$ac_compile"
11799case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_compile") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest.$ac_objext; then
11814 charybdis_cv_c_gcc_w_pointer_arith=yes
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819 charybdis_cv_c_gcc_w_pointer_arith=no
11820fi
11821
11822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 CFLAGS="${oldcflags}"
11824fi
11825
11826 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
11827 CWARNS="${CWARNS}-Wpointer-arith "
11828 { echo "$as_me:$LINENO: result: ok" >&5
11829echo "${ECHO_T}ok" >&6; }
11830 else
11831 charybdis_cv_c_gcc_w_pointer_arith=''
11832 { echo "$as_me:$LINENO: result: no" >&5
11833echo "${ECHO_T}no" >&6; }
11834 fi
11835 else
11836 { echo "$as_me:$LINENO: result: no" >&5
11837echo "${ECHO_T}no" >&6; }
11838 fi
11839
11840
11841 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
11842echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
11843 if test "${GCC-no}" = yes
11844 then
11845 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
11846 echo $ECHO_N "(cached) $ECHO_C" >&6
11847else
11848
11849 oldcflags="${CFLAGS-}"
11850 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857
11858#include <string.h>
11859#include <stdio.h>
11860int main(void);
11861
11862int
11863main ()
11864{
11865
11866 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11867
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest.$ac_objext
11873if { (ac_try="$ac_compile"
11874case "(($ac_try" in
11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11877esac
11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_compile") 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && {
11886 test -z "$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11888 } && test -s conftest.$ac_objext; then
11889 charybdis_cv_c_gcc_w_implicit=yes
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894 charybdis_cv_c_gcc_w_implicit=no
11895fi
11896
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 CFLAGS="${oldcflags}"
11899fi
11900
11901 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
11902 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
11903 { echo "$as_me:$LINENO: result: ok" >&5
11904echo "${ECHO_T}ok" >&6; }
11905 else
11906 charybdis_cv_c_gcc_w_implicit=''
11907 { echo "$as_me:$LINENO: result: no" >&5
11908echo "${ECHO_T}no" >&6; }
11909 fi
11910 else
11911 { echo "$as_me:$LINENO: result: no" >&5
11912echo "${ECHO_T}no" >&6; }
11913 fi
11914
11915
11916 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
11917echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
11918 if test "${GCC-no}" = yes
11919 then
11920 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922else
11923
11924 oldcflags="${CFLAGS-}"
11925 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
11926 cat >conftest.$ac_ext <<_ACEOF
11927/* confdefs.h. */
11928_ACEOF
11929cat confdefs.h >>conftest.$ac_ext
11930cat >>conftest.$ac_ext <<_ACEOF
11931/* end confdefs.h. */
11932
11933#include <string.h>
11934#include <stdio.h>
11935int main(void);
11936
11937int
11938main ()
11939{
11940
11941 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11942
11943 ;
11944 return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext
11948if { (ac_try="$ac_compile"
11949case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952esac
11953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_compile") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest.$ac_objext; then
11964 charybdis_cv_c_gcc_w_cast_align=yes
11965else
11966 echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 charybdis_cv_c_gcc_w_cast_align=no
11970fi
11971
11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11973 CFLAGS="${oldcflags}"
11974fi
11975
11976 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
11977 CWARNS="${CWARNS}-Wcast-align "
11978 { echo "$as_me:$LINENO: result: ok" >&5
11979echo "${ECHO_T}ok" >&6; }
11980 else
11981 charybdis_cv_c_gcc_w_cast_align=''
11982 { echo "$as_me:$LINENO: result: no" >&5
11983echo "${ECHO_T}no" >&6; }
11984 fi
11985 else
11986 { echo "$as_me:$LINENO: result: no" >&5
11987echo "${ECHO_T}no" >&6; }
11988 fi
11989
11990
11991 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
11992echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
11993 if test "${GCC-no}" = yes
11994 then
11995 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997else
11998
11999 oldcflags="${CFLAGS-}"
12000 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12001 cat >conftest.$ac_ext <<_ACEOF
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
12007
12008#include <string.h>
12009#include <stdio.h>
12010int main(void);
12011
12012int
12013main ()
12014{
12015
12016 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12017
12018 ;
12019 return 0;
12020}
12021_ACEOF
12022rm -f conftest.$ac_objext
12023if { (ac_try="$ac_compile"
12024case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
12039 charybdis_cv_c_gcc_w_cast_qual=yes
12040else
12041 echo "$as_me: failed program was:" >&5
12042sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 charybdis_cv_c_gcc_w_cast_qual=no
12045fi
12046
12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 CFLAGS="${oldcflags}"
12049fi
12050
12051 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12052 CWARNS="${CWARNS}-Wcast-qual "
12053 { echo "$as_me:$LINENO: result: ok" >&5
12054echo "${ECHO_T}ok" >&6; }
12055 else
12056 charybdis_cv_c_gcc_w_cast_qual=''
12057 { echo "$as_me:$LINENO: result: no" >&5
12058echo "${ECHO_T}no" >&6; }
12059 fi
12060 else
12061 { echo "$as_me:$LINENO: result: no" >&5
12062echo "${ECHO_T}no" >&6; }
12063 fi
12064
12065
12066 { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5
12067echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; }
12068 if test "${GCC-no}" = yes
12069 then
12070 if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then
12071 echo $ECHO_N "(cached) $ECHO_C" >&6
12072else
12073
12074 oldcflags="${CFLAGS-}"
12075 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082
12083#include <string.h>
12084#include <stdio.h>
12085int main(void);
12086
12087int
12088main ()
12089{
12090
12091 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12092
12093 ;
12094 return 0;
12095}
12096_ACEOF
12097rm -f conftest.$ac_objext
12098if { (ac_try="$ac_compile"
12099case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102esac
12103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_compile") 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } && {
12111 test -z "$ac_c_werror_flag" ||
12112 test ! -s conftest.err
12113 } && test -s conftest.$ac_objext; then
12114 charybdis_cv_c_gcc_w_write_strings=yes
12115else
12116 echo "$as_me: failed program was:" >&5
12117sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 charybdis_cv_c_gcc_w_write_strings=no
12120fi
12121
12122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 CFLAGS="${oldcflags}"
12124fi
12125
12126 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
12127 CWARNS="${CWARNS}-Wwrite-strings "
12128 { echo "$as_me:$LINENO: result: ok" >&5
12129echo "${ECHO_T}ok" >&6; }
12130 else
12131 charybdis_cv_c_gcc_w_write_strings=''
12132 { echo "$as_me:$LINENO: result: no" >&5
12133echo "${ECHO_T}no" >&6; }
12134 fi
12135 else
12136 { echo "$as_me:$LINENO: result: no" >&5
12137echo "${ECHO_T}no" >&6; }
12138 fi
12139
12140
12141 { echo "$as_me:$LINENO: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
12142echo $ECHO_N "checking GCC flag(s) -Werror-implicit-function-declaration... $ECHO_C" >&6; }
12143 if test "${GCC-no}" = yes
12144 then
12145 if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12147else
12148
12149 oldcflags="${CFLAGS-}"
12150 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
12151 cat >conftest.$ac_ext <<_ACEOF
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
12157
12158#include <string.h>
12159#include <stdio.h>
12160int main(void);
12161
12162int
12163main ()
12164{
12165
12166 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12167
12168 ;
12169 return 0;
12170}
12171_ACEOF
12172rm -f conftest.$ac_objext
12173if { (ac_try="$ac_compile"
12174case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_compile") 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } && {
12186 test -z "$ac_c_werror_flag" ||
12187 test ! -s conftest.err
12188 } && test -s conftest.$ac_objext; then
12189 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
12195fi
12196
12197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 CFLAGS="${oldcflags}"
12199fi
12200
12201 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
12202 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
12203 { echo "$as_me:$LINENO: result: ok" >&5
12204echo "${ECHO_T}ok" >&6; }
12205 else
12206 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
12207 { echo "$as_me:$LINENO: result: no" >&5
12208echo "${ECHO_T}no" >&6; }
12209 fi
12210 else
12211 { echo "$as_me:$LINENO: result: no" >&5
12212echo "${ECHO_T}no" >&6; }
12213 fi
12214
12215
12216 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12217echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12218 if test "${GCC-no}" = yes
12219 then
12220 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12222else
12223
12224 oldcflags="${CFLAGS-}"
12225 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12226 cat >conftest.$ac_ext <<_ACEOF
12227/* confdefs.h. */
12228_ACEOF
12229cat confdefs.h >>conftest.$ac_ext
12230cat >>conftest.$ac_ext <<_ACEOF
12231/* end confdefs.h. */
12232
12233#include <string.h>
12234#include <stdio.h>
12235int main(void);
12236
12237int
12238main ()
12239{
12240
12241 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12242
12243 ;
12244 return 0;
12245}
12246_ACEOF
12247rm -f conftest.$ac_objext
12248if { (ac_try="$ac_compile"
12249case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252esac
12253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_compile") 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest.$ac_objext; then
12264 charybdis_cv_c_gcc_prototypes=yes
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269 charybdis_cv_c_gcc_prototypes=no
12270fi
12271
12272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12273 CFLAGS="${oldcflags}"
12274fi
12275
12276 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12277 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12278 { echo "$as_me:$LINENO: result: ok" >&5
12279echo "${ECHO_T}ok" >&6; }
12280 else
12281 charybdis_cv_c_gcc_prototypes=''
12282 { echo "$as_me:$LINENO: result: no" >&5
12283echo "${ECHO_T}no" >&6; }
12284 fi
12285 else
12286 { echo "$as_me:$LINENO: result: no" >&5
12287echo "${ECHO_T}no" >&6; }
12288 fi
12289
12290
12291 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12292echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12293 if test "${GCC-no}" = yes
12294 then
12295 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297else
12298
12299 oldcflags="${CFLAGS-}"
12300 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12301 cat >conftest.$ac_ext <<_ACEOF
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
12307
12308#include <string.h>
12309#include <stdio.h>
12310int main(void);
12311
12312int
12313main ()
12314{
12315
12316 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12317
12318 ;
12319 return 0;
12320}
12321_ACEOF
12322rm -f conftest.$ac_objext
12323if { (ac_try="$ac_compile"
12324case "(($ac_try" in
12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12327esac
12328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12330 ac_status=$?
12331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 charybdis_cv_c_gcc_parenthesis=yes
12340else
12341 echo "$as_me: failed program was:" >&5
12342sed 's/^/| /' conftest.$ac_ext >&5
12343
12344 charybdis_cv_c_gcc_parenthesis=no
12345fi
12346
12347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 CFLAGS="${oldcflags}"
12349fi
12350
12351 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12352 CWARNS="${CWARNS}-Wparenthesis "
12353 { echo "$as_me:$LINENO: result: ok" >&5
12354echo "${ECHO_T}ok" >&6; }
12355 else
12356 charybdis_cv_c_gcc_parenthesis=''
12357 { echo "$as_me:$LINENO: result: no" >&5
12358echo "${ECHO_T}no" >&6; }
12359 fi
12360 else
12361 { echo "$as_me:$LINENO: result: no" >&5
12362echo "${ECHO_T}no" >&6; }
12363 fi
12364
12365
12366 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12367echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12368 if test "${GCC-no}" = yes
12369 then
12370 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
12373
12374 oldcflags="${CFLAGS-}"
12375 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12376 cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382
12383#include <string.h>
12384#include <stdio.h>
12385int main(void);
12386
12387int
12388main ()
12389{
12390
12391 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12392
12393 ;
12394 return 0;
12395}
12396_ACEOF
12397rm -f conftest.$ac_objext
12398if { (ac_try="$ac_compile"
12399case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402esac
12403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_compile") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest.$ac_objext; then
12414 charybdis_cv_c_gcc_w=yes
12415else
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 charybdis_cv_c_gcc_w=no
12420fi
12421
12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12423 CFLAGS="${oldcflags}"
12424fi
12425
12426 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12427 CWARNS="${CWARNS}-W -Wno-unused "
12428 { echo "$as_me:$LINENO: result: ok" >&5
12429echo "${ECHO_T}ok" >&6; }
12430 else
12431 charybdis_cv_c_gcc_w=''
12432 { echo "$as_me:$LINENO: result: no" >&5
12433echo "${ECHO_T}no" >&6; }
12434 fi
12435 else
12436 { echo "$as_me:$LINENO: result: no" >&5
12437echo "${ECHO_T}no" >&6; }
12438 fi
12439
12440
12441 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12442echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12443 if test "${GCC-no}" = yes
12444 then
12445 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447else
12448
12449 oldcflags="${CFLAGS-}"
12450 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12451 cat >conftest.$ac_ext <<_ACEOF
12452/* confdefs.h. */
12453_ACEOF
12454cat confdefs.h >>conftest.$ac_ext
12455cat >>conftest.$ac_ext <<_ACEOF
12456/* end confdefs.h. */
12457
12458#include <string.h>
12459#include <stdio.h>
12460int main(void);
12461
12462int
12463main ()
12464{
12465
12466 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12467
12468 ;
12469 return 0;
12470}
12471_ACEOF
12472rm -f conftest.$ac_objext
12473if { (ac_try="$ac_compile"
12474case "(($ac_try" in
12475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12476 *) ac_try_echo=$ac_try;;
12477esac
12478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12479 (eval "$ac_compile") 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } && {
12486 test -z "$ac_c_werror_flag" ||
12487 test ! -s conftest.err
12488 } && test -s conftest.$ac_objext; then
12489 charybdis_cv_c_gcc_w_extra=yes
12490else
12491 echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 charybdis_cv_c_gcc_w_extra=no
12495fi
12496
12497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 CFLAGS="${oldcflags}"
12499fi
12500
12501 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12502 CWARNS="${CWARNS}-Wextra "
12503 { echo "$as_me:$LINENO: result: ok" >&5
12504echo "${ECHO_T}ok" >&6; }
12505 else
12506 charybdis_cv_c_gcc_w_extra=''
12507 { echo "$as_me:$LINENO: result: no" >&5
12508echo "${ECHO_T}no" >&6; }
12509 fi
12510 else
12511 { echo "$as_me:$LINENO: result: no" >&5
12512echo "${ECHO_T}no" >&6; }
12513 fi
12514
12515
12516 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12517echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12518 if test "${GCC-no}" = yes
12519 then
12520 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
12522else
12523
12524 oldcflags="${CFLAGS-}"
12525 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12526 cat >conftest.$ac_ext <<_ACEOF
12527/* confdefs.h. */
12528_ACEOF
12529cat confdefs.h >>conftest.$ac_ext
12530cat >>conftest.$ac_ext <<_ACEOF
12531/* end confdefs.h. */
12532
12533#include <string.h>
12534#include <stdio.h>
12535int main(void);
12536
12537int
12538main ()
12539{
12540
12541 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12542
12543 ;
12544 return 0;
12545}
12546_ACEOF
12547rm -f conftest.$ac_objext
12548if { (ac_try="$ac_compile"
12549case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12552esac
12553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_compile") 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest.$ac_objext; then
12564 charybdis_cv_c_gcc_w_shadow=yes
12565else
12566 echo "$as_me: failed program was:" >&5
12567sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 charybdis_cv_c_gcc_w_shadow=no
12570fi
12571
12572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 CFLAGS="${oldcflags}"
12574fi
12575
12576 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12577 CWARNS="${CWARNS}-Wshadow "
12578 { echo "$as_me:$LINENO: result: ok" >&5
12579echo "${ECHO_T}ok" >&6; }
12580 else
12581 charybdis_cv_c_gcc_w_shadow=''
12582 { echo "$as_me:$LINENO: result: no" >&5
12583echo "${ECHO_T}no" >&6; }
12584 fi
12585 else
12586 { echo "$as_me:$LINENO: result: no" >&5
12587echo "${ECHO_T}no" >&6; }
12588 fi
12589
12590
12591 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12592echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12593 if test "${GCC-no}" = yes
12594 then
12595 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598
12599 oldcflags="${CFLAGS-}"
12600 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12601 cat >conftest.$ac_ext <<_ACEOF
12602/* confdefs.h. */
12603_ACEOF
12604cat confdefs.h >>conftest.$ac_ext
12605cat >>conftest.$ac_ext <<_ACEOF
12606/* end confdefs.h. */
12607
12608#include <string.h>
12609#include <stdio.h>
12610int main(void);
12611
12612int
12613main ()
12614{
12615
12616 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12617
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext
12623if { (ac_try="$ac_compile"
12624case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627esac
12628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_compile") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest.$ac_objext; then
12639 charybdis_cv_c_gcc_w_missing_noreturn=yes
12640else
12641 echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
12644 charybdis_cv_c_gcc_w_missing_noreturn=no
12645fi
12646
12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 CFLAGS="${oldcflags}"
12649fi
12650
12651 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12652 CWARNS="${CWARNS}-Wmissing-noreturn "
12653 { echo "$as_me:$LINENO: result: ok" >&5
12654echo "${ECHO_T}ok" >&6; }
12655 else
12656 charybdis_cv_c_gcc_w_missing_noreturn=''
12657 { echo "$as_me:$LINENO: result: no" >&5
12658echo "${ECHO_T}no" >&6; }
12659 fi
12660 else
12661 { echo "$as_me:$LINENO: result: no" >&5
12662echo "${ECHO_T}no" >&6; }
12663 fi
12664
12665
12666 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12667echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12668 if test "${GCC-no}" = yes
12669 then
12670 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673
12674 oldcflags="${CFLAGS-}"
12675 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682
12683#include <string.h>
12684#include <stdio.h>
12685int main(void);
12686
12687int
12688main ()
12689{
12690
12691 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12692
12693 ;
12694 return 0;
12695}
12696_ACEOF
12697rm -f conftest.$ac_objext
12698if { (ac_try="$ac_compile"
12699case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12702esac
12703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_compile") 2>conftest.er1
12705 ac_status=$?
12706 grep -v '^ *+' conftest.er1 >conftest.err
12707 rm -f conftest.er1
12708 cat conftest.err >&5
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); } && {
12711 test -z "$ac_c_werror_flag" ||
12712 test ! -s conftest.err
12713 } && test -s conftest.$ac_objext; then
12714 charybdis_cv_c_gcc_w_undef=yes
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
12719 charybdis_cv_c_gcc_w_undef=no
12720fi
12721
12722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 CFLAGS="${oldcflags}"
12724fi
12725
12726 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12727 CWARNS="${CWARNS}-Wundef "
12728 { echo "$as_me:$LINENO: result: ok" >&5
12729echo "${ECHO_T}ok" >&6; }
12730 else
12731 charybdis_cv_c_gcc_w_undef=''
12732 { echo "$as_me:$LINENO: result: no" >&5
12733echo "${ECHO_T}no" >&6; }
12734 fi
12735 else
12736 { echo "$as_me:$LINENO: result: no" >&5
12737echo "${ECHO_T}no" >&6; }
12738 fi
12739
12740
12741 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12742echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
12743 if test "${GCC-no}" = yes
12744 then
12745 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748
12749 oldcflags="${CFLAGS-}"
12750 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12751 cat >conftest.$ac_ext <<_ACEOF
12752/* confdefs.h. */
12753_ACEOF
12754cat confdefs.h >>conftest.$ac_ext
12755cat >>conftest.$ac_ext <<_ACEOF
12756/* end confdefs.h. */
12757
12758#include <string.h>
12759#include <stdio.h>
12760int main(void);
12761
12762int
12763main ()
12764{
12765
12766 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12767
12768 ;
12769 return 0;
12770}
12771_ACEOF
12772rm -f conftest.$ac_objext
12773if { (ac_try="$ac_compile"
12774case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_compile") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest.$ac_objext; then
12789 charybdis_cv_c_gcc_w_packed=yes
12790else
12791 echo "$as_me: failed program was:" >&5
12792sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 charybdis_cv_c_gcc_w_packed=no
12795fi
12796
12797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 CFLAGS="${oldcflags}"
12799fi
12800
12801 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12802 CWARNS="${CWARNS}-Wpacked "
12803 { echo "$as_me:$LINENO: result: ok" >&5
12804echo "${ECHO_T}ok" >&6; }
12805 else
12806 charybdis_cv_c_gcc_w_packed=''
12807 { echo "$as_me:$LINENO: result: no" >&5
12808echo "${ECHO_T}no" >&6; }
12809 fi
12810 else
12811 { echo "$as_me:$LINENO: result: no" >&5
12812echo "${ECHO_T}no" >&6; }
12813 fi
12814
12815
12816 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12817echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
12818 if test "${GCC-no}" = yes
12819 then
12820 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12822else
12823
12824 oldcflags="${CFLAGS-}"
12825 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12826 cat >conftest.$ac_ext <<_ACEOF
12827/* confdefs.h. */
12828_ACEOF
12829cat confdefs.h >>conftest.$ac_ext
12830cat >>conftest.$ac_ext <<_ACEOF
12831/* end confdefs.h. */
12832
12833#include <string.h>
12834#include <stdio.h>
12835int main(void);
12836
12837int
12838main ()
12839{
12840
12841 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12842
12843 ;
12844 return 0;
12845}
12846_ACEOF
12847rm -f conftest.$ac_objext
12848if { (ac_try="$ac_compile"
12849case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12852esac
12853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12854 (eval "$ac_compile") 2>conftest.er1
12855 ac_status=$?
12856 grep -v '^ *+' conftest.er1 >conftest.err
12857 rm -f conftest.er1
12858 cat conftest.err >&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); } && {
12861 test -z "$ac_c_werror_flag" ||
12862 test ! -s conftest.err
12863 } && test -s conftest.$ac_objext; then
12864 charybdis_cv_c_gcc_w_nested_externs=yes
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 charybdis_cv_c_gcc_w_nested_externs=no
12870fi
12871
12872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 CFLAGS="${oldcflags}"
12874fi
12875
12876 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12877 CWARNS="${CWARNS}-Wnested-externs "
12878 { echo "$as_me:$LINENO: result: ok" >&5
12879echo "${ECHO_T}ok" >&6; }
12880 else
12881 charybdis_cv_c_gcc_w_nested_externs=''
12882 { echo "$as_me:$LINENO: result: no" >&5
12883echo "${ECHO_T}no" >&6; }
12884 fi
12885 else
12886 { echo "$as_me:$LINENO: result: no" >&5
12887echo "${ECHO_T}no" >&6; }
12888 fi
12889
12890
12891 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
12892echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
12893 if test "${GCC-no}" = yes
12894 then
12895 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897else
12898
12899 oldcflags="${CFLAGS-}"
12900 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
12901 cat >conftest.$ac_ext <<_ACEOF
12902/* confdefs.h. */
12903_ACEOF
12904cat confdefs.h >>conftest.$ac_ext
12905cat >>conftest.$ac_ext <<_ACEOF
12906/* end confdefs.h. */
12907
12908#include <string.h>
12909#include <stdio.h>
12910int main(void);
12911
12912int
12913main ()
12914{
12915
12916 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12917
12918 ;
12919 return 0;
12920}
12921_ACEOF
12922rm -f conftest.$ac_objext
12923if { (ac_try="$ac_compile"
12924case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927esac
12928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_compile") 2>conftest.er1
12930 ac_status=$?
12931 grep -v '^ *+' conftest.er1 >conftest.err
12932 rm -f conftest.er1
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest.$ac_objext; then
12939 charybdis_cv_c_gcc_w_bad_function_cast=yes
12940else
12941 echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944 charybdis_cv_c_gcc_w_bad_function_cast=no
12945fi
12946
12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 CFLAGS="${oldcflags}"
12949fi
12950
12951 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
12952 CWARNS="${CWARNS}-Wbad-function-cast "
12953 { echo "$as_me:$LINENO: result: ok" >&5
12954echo "${ECHO_T}ok" >&6; }
12955 else
12956 charybdis_cv_c_gcc_w_bad_function_cast=''
12957 { echo "$as_me:$LINENO: result: no" >&5
12958echo "${ECHO_T}no" >&6; }
12959 fi
12960 else
12961 { echo "$as_me:$LINENO: result: no" >&5
12962echo "${ECHO_T}no" >&6; }
12963 fi
12964
12965
12966 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
12967echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
12968 if test "${GCC-no}" = yes
12969 then
12970 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972else
12973
12974 oldcflags="${CFLAGS-}"
12975 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
12976 cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982
12983#include <string.h>
12984#include <stdio.h>
12985int main(void);
12986
12987int
12988main ()
12989{
12990
12991 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12992
12993 ;
12994 return 0;
12995}
12996_ACEOF
12997rm -f conftest.$ac_objext
12998if { (ac_try="$ac_compile"
12999case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_compile") 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest.$ac_objext; then
13014 charybdis_cv_c_gcc_w_unused=yes
13015else
13016 echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
13019 charybdis_cv_c_gcc_w_unused=no
13020fi
13021
13022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023 CFLAGS="${oldcflags}"
13024fi
13025
13026 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13027 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13028 { echo "$as_me:$LINENO: result: ok" >&5
13029echo "${ECHO_T}ok" >&6; }
13030 else
13031 charybdis_cv_c_gcc_w_unused=''
13032 { echo "$as_me:$LINENO: result: no" >&5
13033echo "${ECHO_T}no" >&6; }
13034 fi
13035 else
13036 { echo "$as_me:$LINENO: result: no" >&5
13037echo "${ECHO_T}no" >&6; }
13038 fi
13039
13040
13041 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13042echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
13043 if test "${GCC-no}" = yes
13044 then
13045 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047else
13048
13049 oldcflags="${CFLAGS-}"
13050 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13051 cat >conftest.$ac_ext <<_ACEOF
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
13057
13058#include <string.h>
13059#include <stdio.h>
13060int main(void);
13061
13062int
13063main ()
13064{
13065
13066 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13067
13068 ;
13069 return 0;
13070}
13071_ACEOF
13072rm -f conftest.$ac_objext
13073if { (ac_try="$ac_compile"
13074case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_compile") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } && {
13086 test -z "$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13088 } && test -s conftest.$ac_objext; then
13089 charybdis_cv_c_gcc_w_redundant_decls=yes
13090else
13091 echo "$as_me: failed program was:" >&5
13092sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 charybdis_cv_c_gcc_w_redundant_decls=no
13095fi
13096
13097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 CFLAGS="${oldcflags}"
13099fi
13100
13101 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13102 CWARNS="${CWARNS}-Wredundant-decls "
13103 { echo "$as_me:$LINENO: result: ok" >&5
13104echo "${ECHO_T}ok" >&6; }
13105 else
13106 charybdis_cv_c_gcc_w_redundant_decls=''
13107 { echo "$as_me:$LINENO: result: no" >&5
13108echo "${ECHO_T}no" >&6; }
13109 fi
13110 else
13111 { echo "$as_me:$LINENO: result: no" >&5
13112echo "${ECHO_T}no" >&6; }
13113 fi
13114
13115
13116 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13117echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13118 if test "${GCC-no}" = yes
13119 then
13120 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122else
13123
13124 oldcflags="${CFLAGS-}"
13125 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13126 cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132
13133#include <string.h>
13134#include <stdio.h>
13135int main(void);
13136
13137int
13138main ()
13139{
13140
13141 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13142
13143 ;
13144 return 0;
13145}
13146_ACEOF
13147rm -f conftest.$ac_objext
13148if { (ac_try="$ac_compile"
13149case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13152esac
13153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compile") 2>conftest.er1
13155 ac_status=$?
13156 grep -v '^ *+' conftest.er1 >conftest.err
13157 rm -f conftest.er1
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest.$ac_objext; then
13164 charybdis_cv_c_gcc_w_float_equal=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 charybdis_cv_c_gcc_w_float_equal=no
13170fi
13171
13172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13173 CFLAGS="${oldcflags}"
13174fi
13175
13176 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13177 CWARNS="${CWARNS}-Wfloat-equal "
13178 { echo "$as_me:$LINENO: result: ok" >&5
13179echo "${ECHO_T}ok" >&6; }
13180 else
13181 charybdis_cv_c_gcc_w_float_equal=''
13182 { echo "$as_me:$LINENO: result: no" >&5
13183echo "${ECHO_T}no" >&6; }
13184 fi
13185 else
13186 { echo "$as_me:$LINENO: result: no" >&5
13187echo "${ECHO_T}no" >&6; }
13188 fi
13189
13190
13191 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5
13192echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; }
13193 if test "${GCC-no}" = yes
13194 then
13195 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13197else
13198
13199 oldcflags="${CFLAGS-}"
13200 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror"
13201 cat >conftest.$ac_ext <<_ACEOF
13202/* confdefs.h. */
13203_ACEOF
13204cat confdefs.h >>conftest.$ac_ext
13205cat >>conftest.$ac_ext <<_ACEOF
13206/* end confdefs.h. */
13207
13208#include <string.h>
13209#include <stdio.h>
13210int main(void);
13211
13212int
13213main ()
13214{
13215
13216 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13217
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222rm -f conftest.$ac_objext
13223if { (ac_try="$ac_compile"
13224case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
13228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_compile") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest.$ac_objext; then
13239 charybdis_cv_c_gcc_w_format=yes
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 charybdis_cv_c_gcc_w_format=no
13245fi
13246
13247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 CFLAGS="${oldcflags}"
13249fi
13250
13251 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13252 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security "
13253 { echo "$as_me:$LINENO: result: ok" >&5
13254echo "${ECHO_T}ok" >&6; }
13255 else
13256 charybdis_cv_c_gcc_w_format=''
13257 { echo "$as_me:$LINENO: result: no" >&5
13258echo "${ECHO_T}no" >&6; }
13259 fi
13260 else
13261 { echo "$as_me:$LINENO: result: no" >&5
13262echo "${ECHO_T}no" >&6; }
13263 fi
13264
13265
13266 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13267echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13268 if test "${GCC-no}" = yes
13269 then
13270 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273
13274 oldcflags="${CFLAGS-}"
13275 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13276 cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
13282
13283#include <string.h>
13284#include <stdio.h>
13285int main(void);
13286
13287int
13288main ()
13289{
13290
13291 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13292
13293 ;
13294 return 0;
13295}
13296_ACEOF
13297rm -f conftest.$ac_objext
13298if { (ac_try="$ac_compile"
13299case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13302esac
13303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_compile") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest.$ac_objext; then
13314 charybdis_cv_c_gcc_pedantic=yes
13315else
13316 echo "$as_me: failed program was:" >&5
13317sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 charybdis_cv_c_gcc_pedantic=no
13320fi
13321
13322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 CFLAGS="${oldcflags}"
13324fi
13325
13326 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13327 CWARNS="${CWARNS}-pedantic "
13328 { echo "$as_me:$LINENO: result: ok" >&5
13329echo "${ECHO_T}ok" >&6; }
13330 else
13331 charybdis_cv_c_gcc_pedantic=''
13332 { echo "$as_me:$LINENO: result: no" >&5
13333echo "${ECHO_T}no" >&6; }
13334 fi
13335 else
13336 { echo "$as_me:$LINENO: result: no" >&5
13337echo "${ECHO_T}no" >&6; }
13338 fi
13339
13340
13341IRC_CFLAGS="$CFLAGS"
13342
13343fi
13344
13345
13346if test "$shared_modules" = no; then
13347 DYNLINK_C=""
13348 MOD_TARGET="libmodules.a"
13349 MODULES_LIBS="../modules/libmodules.a"
13350 SEDOBJ=""
13351
13352cat >>confdefs.h <<\_ACEOF
13353#define STATIC_MODULES 1
13354_ACEOF
13355
13356 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13357echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13358fi
13359
13360if test "$shared_modules" = yes; then
13361
13362 { echo "$as_me:$LINENO: checking for nlist" >&5
13363echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13364if test "${ac_cv_func_nlist+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366else
13367 cat >conftest.$ac_ext <<_ACEOF
13368/* confdefs.h. */
13369_ACEOF
13370cat confdefs.h >>conftest.$ac_ext
13371cat >>conftest.$ac_ext <<_ACEOF
13372/* end confdefs.h. */
13373/* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13375#define nlist innocuous_nlist
13376
13377/* System header to define __stub macros and hopefully few prototypes,
13378 which can conflict with char nlist (); below.
13379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13380 <limits.h> exists even on freestanding compilers. */
13381
13382#ifdef __STDC__
13383# include <limits.h>
13384#else
13385# include <assert.h>
13386#endif
13387
13388#undef nlist
13389
13390/* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13393#ifdef __cplusplus
13394extern "C"
13395#endif
13396char nlist ();
13397/* The GNU C library defines this for functions which it implements
13398 to always fail with ENOSYS. Some functions are actually named
13399 something starting with __ and the normal name is an alias. */
13400#if defined __stub_nlist || defined __stub___nlist
13401choke me
13402#endif
13403
13404int
13405main ()
13406{
13407return nlist ();
13408 ;
13409 return 0;
13410}
13411_ACEOF
13412rm -f conftest.$ac_objext conftest$ac_exeext
13413if { (ac_try="$ac_link"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest$ac_exeext &&
13429 $as_test_x conftest$ac_exeext; then
13430 ac_cv_func_nlist=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_cv_func_nlist=no
13436fi
13437
13438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 conftest$ac_exeext conftest.$ac_ext
13440fi
13441{ echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13442echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13443if test $ac_cv_func_nlist = yes; then
13444 :
13445else
13446 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13447echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13448if test "${ac_cv_lib_dl_nlist+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450else
13451 ac_check_lib_save_LIBS=$LIBS
13452LIBS="-ldl $LIBS"
13453cat >conftest.$ac_ext <<_ACEOF
13454/* confdefs.h. */
13455_ACEOF
13456cat confdefs.h >>conftest.$ac_ext
13457cat >>conftest.$ac_ext <<_ACEOF
13458/* end confdefs.h. */
13459
13460/* Override any GCC internal prototype to avoid an error.
13461 Use char because int might match the return type of a GCC
13462 builtin and then its argument prototype would still apply. */
13463#ifdef __cplusplus
13464extern "C"
13465#endif
13466char nlist ();
13467int
13468main ()
13469{
13470return nlist ();
13471 ;
13472 return 0;
13473}
13474_ACEOF
13475rm -f conftest.$ac_objext conftest$ac_exeext
13476if { (ac_try="$ac_link"
13477case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480esac
13481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_link") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest$ac_exeext &&
13492 $as_test_x conftest$ac_exeext; then
13493 ac_cv_lib_dl_nlist=yes
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ac_cv_lib_dl_nlist=no
13499fi
13500
13501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502 conftest$ac_exeext conftest.$ac_ext
13503LIBS=$ac_check_lib_save_LIBS
13504fi
13505{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13506echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13507if test $ac_cv_lib_dl_nlist = yes; then
13508 nlist_lib="-ldl"
13509else
13510 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13511echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13512if test "${ac_cv_lib_elf_nlist+set}" = set; then
13513 echo $ECHO_N "(cached) $ECHO_C" >&6
13514else
13515 ac_check_lib_save_LIBS=$LIBS
13516LIBS="-lelf $LIBS"
13517cat >conftest.$ac_ext <<_ACEOF
13518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h. */
13523
13524/* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
13527#ifdef __cplusplus
13528extern "C"
13529#endif
13530char nlist ();
13531int
13532main ()
13533{
13534return nlist ();
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext conftest$ac_exeext
13540if { (ac_try="$ac_link"
13541case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544esac
13545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_link") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest$ac_exeext &&
13556 $as_test_x conftest$ac_exeext; then
13557 ac_cv_lib_elf_nlist=yes
13558else
13559 echo "$as_me: failed program was:" >&5
13560sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 ac_cv_lib_elf_nlist=no
13563fi
13564
13565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13566 conftest$ac_exeext conftest.$ac_ext
13567LIBS=$ac_check_lib_save_LIBS
13568fi
13569{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13570echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13571if test $ac_cv_lib_elf_nlist = yes; then
13572 nlist_lib="-lelf"
13573fi
13574
13575
13576fi
13577
13578
13579fi
13580
13581
13582 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13583 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13584echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13585if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587fi
13588{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13589echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13590else
13591 # Is the header compilable?
13592{ echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13593echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13594cat >conftest.$ac_ext <<_ACEOF
13595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
13600$ac_includes_default
13601#include <libelf/nlist.h>
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (ac_try="$ac_compile"
13605case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608esac
13609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_compile") 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } && {
13617 test -z "$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13619 } && test -s conftest.$ac_objext; then
13620 ac_header_compiler=yes
13621else
13622 echo "$as_me: failed program was:" >&5
13623sed 's/^/| /' conftest.$ac_ext >&5
13624
13625 ac_header_compiler=no
13626fi
13627
13628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13630echo "${ECHO_T}$ac_header_compiler" >&6; }
13631
13632# Is the header present?
13633{ echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13634echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13635cat >conftest.$ac_ext <<_ACEOF
13636/* confdefs.h. */
13637_ACEOF
13638cat confdefs.h >>conftest.$ac_ext
13639cat >>conftest.$ac_ext <<_ACEOF
13640/* end confdefs.h. */
13641#include <libelf/nlist.h>
13642_ACEOF
13643if { (ac_try="$ac_cpp conftest.$ac_ext"
13644case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647esac
13648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13650 ac_status=$?
13651 grep -v '^ *+' conftest.er1 >conftest.err
13652 rm -f conftest.er1
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } >/dev/null && {
13656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 }; then
13659 ac_header_preproc=yes
13660else
13661 echo "$as_me: failed program was:" >&5
13662sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 ac_header_preproc=no
13665fi
13666
13667rm -f conftest.err conftest.$ac_ext
13668{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13669echo "${ECHO_T}$ac_header_preproc" >&6; }
13670
13671# So? What about this header?
13672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13673 yes:no: )
13674 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13675echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13676 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13677echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13678 ac_header_preproc=yes
13679 ;;
13680 no:yes:* )
13681 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13682echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13683 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13684echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13685 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13686echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13687 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13688echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13689 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13690echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13692echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13693
13694 ;;
13695esac
13696{ echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13697echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13698if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700else
13701 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13702fi
13703{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13704echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13705
13706fi
13707if test $ac_cv_header_libelf_nlist_h = yes; then
13708 nlist_h="libelf/nlist.h"
13709fi
13710
13711
13712 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13713 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13714echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13715if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13717fi
13718{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13719echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13720else
13721 # Is the header compilable?
13722{ echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13723echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
13724cat >conftest.$ac_ext <<_ACEOF
13725/* confdefs.h. */
13726_ACEOF
13727cat confdefs.h >>conftest.$ac_ext
13728cat >>conftest.$ac_ext <<_ACEOF
13729/* end confdefs.h. */
13730$ac_includes_default
13731#include <elf/nlist.h>
13732_ACEOF
13733rm -f conftest.$ac_objext
13734if { (ac_try="$ac_compile"
13735case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738esac
13739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_compile") 2>conftest.er1
13741 ac_status=$?
13742 grep -v '^ *+' conftest.er1 >conftest.err
13743 rm -f conftest.er1
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } && {
13747 test -z "$ac_c_werror_flag" ||
13748 test ! -s conftest.err
13749 } && test -s conftest.$ac_objext; then
13750 ac_header_compiler=yes
13751else
13752 echo "$as_me: failed program was:" >&5
13753sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 ac_header_compiler=no
13756fi
13757
13758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13760echo "${ECHO_T}$ac_header_compiler" >&6; }
13761
13762# Is the header present?
13763{ echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13764echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
13765cat >conftest.$ac_ext <<_ACEOF
13766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
13771#include <elf/nlist.h>
13772_ACEOF
13773if { (ac_try="$ac_cpp conftest.$ac_ext"
13774case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13777esac
13778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13780 ac_status=$?
13781 grep -v '^ *+' conftest.er1 >conftest.err
13782 rm -f conftest.er1
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } >/dev/null && {
13786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13787 test ! -s conftest.err
13788 }; then
13789 ac_header_preproc=yes
13790else
13791 echo "$as_me: failed program was:" >&5
13792sed 's/^/| /' conftest.$ac_ext >&5
13793
13794 ac_header_preproc=no
13795fi
13796
13797rm -f conftest.err conftest.$ac_ext
13798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13799echo "${ECHO_T}$ac_header_preproc" >&6; }
13800
13801# So? What about this header?
13802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13803 yes:no: )
13804 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13805echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13807echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13808 ac_header_preproc=yes
13809 ;;
13810 no:yes:* )
13811 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13812echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13814echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13816echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13818echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13820echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13822echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
13823
13824 ;;
13825esac
13826{ echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13827echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13828if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 ac_cv_header_elf_nlist_h=$ac_header_preproc
13832fi
13833{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13834echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13835
13836fi
13837if test $ac_cv_header_elf_nlist_h = yes; then
13838 nlist_h="elf/nlist.h"
13839fi
13840
13841
13842 if test "${ac_cv_header_nlist_h+set}" = set; then
13843 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13844echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13845if test "${ac_cv_header_nlist_h+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13847fi
13848{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13849echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13850else
13851 # Is the header compilable?
13852{ echo "$as_me:$LINENO: checking nlist.h usability" >&5
13853echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
13854cat >conftest.$ac_ext <<_ACEOF
13855/* confdefs.h. */
13856_ACEOF
13857cat confdefs.h >>conftest.$ac_ext
13858cat >>conftest.$ac_ext <<_ACEOF
13859/* end confdefs.h. */
13860$ac_includes_default
13861#include <nlist.h>
13862_ACEOF
13863rm -f conftest.$ac_objext
13864if { (ac_try="$ac_compile"
13865case "(($ac_try" in
13866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13868esac
13869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_compile") 2>conftest.er1
13871 ac_status=$?
13872 grep -v '^ *+' conftest.er1 >conftest.err
13873 rm -f conftest.er1
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest.$ac_objext; then
13880 ac_header_compiler=yes
13881else
13882 echo "$as_me: failed program was:" >&5
13883sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_header_compiler=no
13886fi
13887
13888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13890echo "${ECHO_T}$ac_header_compiler" >&6; }
13891
13892# Is the header present?
13893{ echo "$as_me:$LINENO: checking nlist.h presence" >&5
13894echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
13895cat >conftest.$ac_ext <<_ACEOF
13896/* confdefs.h. */
13897_ACEOF
13898cat confdefs.h >>conftest.$ac_ext
13899cat >>conftest.$ac_ext <<_ACEOF
13900/* end confdefs.h. */
13901#include <nlist.h>
13902_ACEOF
13903if { (ac_try="$ac_cpp conftest.$ac_ext"
13904case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906 *) ac_try_echo=$ac_try;;
13907esac
13908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } >/dev/null && {
13916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 }; then
13919 ac_header_preproc=yes
13920else
13921 echo "$as_me: failed program was:" >&5
13922sed 's/^/| /' conftest.$ac_ext >&5
13923
13924 ac_header_preproc=no
13925fi
13926
13927rm -f conftest.err conftest.$ac_ext
13928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13929echo "${ECHO_T}$ac_header_preproc" >&6; }
13930
13931# So? What about this header?
13932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13933 yes:no: )
13934 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13935echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
13937echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
13938 ac_header_preproc=yes
13939 ;;
13940 no:yes:* )
13941 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
13942echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
13944echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
13946echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13948echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
13950echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
13952echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
13953
13954 ;;
13955esac
13956{ echo "$as_me:$LINENO: checking for nlist.h" >&5
13957echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13958if test "${ac_cv_header_nlist_h+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960else
13961 ac_cv_header_nlist_h=$ac_header_preproc
13962fi
13963{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13964echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13965
13966fi
13967if test $ac_cv_header_nlist_h = yes; then
13968 nlist_h="nlist.h"
13969fi
13970
13971
13972 if test x"$nlist_h" = "x"; then
13973
13974cat >>confdefs.h <<_ACEOF
13975#define SYMBOL_PREFIX ""
13976_ACEOF
13977
13978 else
13979 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
13980echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
13981 if test "${symbol_underscores+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984
13985cat << EOF > conftest.c
13986#include <$nlist_h>
13987#include <stdio.h>
13988#include <stdlib.h>
13989void _modinit(void);
13990int main(int argc, char *argv[]) {
13991 int i;
13992 struct nlist nl[5];
13993
13994 /* fill the names in this way, so it'll work almost everywhere */
13995 nl[0].n_name = "_modinit";
13996 nl[1].n_name = "__modinit";
13997 nl[2].n_name = "___modinit";
13998 nl[3].n_name = "____modinit";
13999 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14000
14001 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14002 for(i = 0; i < 4; i++) {
14003 if(nl[i].n_value != NULL)
14004 {
14005 int j;
14006 for(j = 0; j < i; j++)
14007 printf("_");
14008 exit(i);
14009 }
14010 }
14011 exit(-1);
14012}
14013void _modinit(void) { return; }
14014EOF
14015 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14016 symbol_underscores=`./conftest conftest`
14017 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14018echo "${ECHO_T}$symbol_underscores" >&6; }
14019 $RM -f conftest conftest.c
14020
14021fi
14022
14023
14024cat >>confdefs.h <<_ACEOF
14025#define SYMBOL_PREFIX "${symbol_underscores}"
14026_ACEOF
14027
14028 fi
14029fi
14030
14031IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046if test "$prefix" = "NONE"; then
14047
14048cat >>confdefs.h <<_ACEOF
14049#define IRCD_PREFIX "$ac_default_prefix"
14050_ACEOF
14051
14052
14053else
14054
14055
14056 prefix=`echo $prefix | sed 's/\/$//'`
14057
14058cat >>confdefs.h <<_ACEOF
14059#define IRCD_PREFIX "$prefix"
14060_ACEOF
14061
14062
14063fi
14064
14065ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14066
14067
14068cat >confcache <<\_ACEOF
14069# This file is a shell script that caches the results of configure
14070# tests run on this system so they can be shared between configure
14071# scripts and configure runs, see configure's option --config-cache.
14072# It is not useful on other systems. If it contains results you don't
14073# want to keep, you may remove or edit it.
14074#
14075# config.status only pays attention to the cache file if you give it
14076# the --recheck option to rerun configure.
14077#
14078# `ac_cv_env_foo' variables (set or unset) will be overridden when
14079# loading this file, other *unset* `ac_cv_foo' will be assigned the
14080# following values.
14081
14082_ACEOF
14083
14084# The following way of writing the cache mishandles newlines in values,
14085# but we know of no workaround that is simple, portable, and efficient.
14086# So, we kill variables containing newlines.
14087# Ultrix sh set writes to stderr and can't be redirected directly,
14088# and sets the high bit in the cache file unless we assign to the vars.
14089(
14090 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14091 eval ac_val=\$$ac_var
14092 case $ac_val in #(
14093 *${as_nl}*)
14094 case $ac_var in #(
14095 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14096echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14097 esac
14098 case $ac_var in #(
14099 _ | IFS | as_nl) ;; #(
14100 *) $as_unset $ac_var ;;
14101 esac ;;
14102 esac
14103 done
14104
14105 (set) 2>&1 |
14106 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14107 *${as_nl}ac_space=\ *)
14108 # `set' does not quote correctly, so add quotes (double-quote
14109 # substitution turns \\\\ into \\, and sed turns \\ into \).
14110 sed -n \
14111 "s/'/'\\\\''/g;
14112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14113 ;; #(
14114 *)
14115 # `set' quotes correctly as required by POSIX, so do not add quotes.
14116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14117 ;;
14118 esac |
14119 sort
14120) |
14121 sed '
14122 /^ac_cv_env_/b end
14123 t clear
14124 :clear
14125 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14126 t end
14127 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14128 :end' >>confcache
14129if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14130 if test -w "$cache_file"; then
14131 test "x$cache_file" != "x/dev/null" &&
14132 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14133echo "$as_me: updating cache $cache_file" >&6;}
14134 cat confcache >$cache_file
14135 else
14136 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14137echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14138 fi
14139fi
14140rm -f confcache
14141
14142test "x$prefix" = xNONE && prefix=$ac_default_prefix
14143# Let make expand exec_prefix.
14144test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14145
14146DEFS=-DHAVE_CONFIG_H
14147
14148ac_libobjs=
14149ac_ltlibobjs=
14150for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14151 # 1. Remove the extension, and $U if already installed.
14152 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14153 ac_i=`echo "$ac_i" | sed "$ac_script"`
14154 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14155 # will be set to the directory where LIBOBJS objects are built.
14156 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14157 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14158done
14159LIBOBJS=$ac_libobjs
14160
14161LTLIBOBJS=$ac_ltlibobjs
14162
14163
14164
14165: ${CONFIG_STATUS=./config.status}
14166ac_clean_files_save=$ac_clean_files
14167ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14168{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14169echo "$as_me: creating $CONFIG_STATUS" >&6;}
14170cat >$CONFIG_STATUS <<_ACEOF
14171#! $SHELL
14172# Generated by $as_me.
14173# Run this file to recreate the current configuration.
14174# Compiler output produced by configure, useful for debugging
14175# configure, is in config.log if it exists.
14176
14177debug=false
14178ac_cs_recheck=false
14179ac_cs_silent=false
14180SHELL=\${CONFIG_SHELL-$SHELL}
14181_ACEOF
14182
14183cat >>$CONFIG_STATUS <<\_ACEOF
14184## --------------------- ##
14185## M4sh Initialization. ##
14186## --------------------- ##
14187
14188# Be more Bourne compatible
14189DUALCASE=1; export DUALCASE # for MKS sh
14190if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14191 emulate sh
14192 NULLCMD=:
14193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14194 # is contrary to our usage. Disable this feature.
14195 alias -g '${1+"$@"}'='"$@"'
14196 setopt NO_GLOB_SUBST
14197else
14198 case `(set -o) 2>/dev/null` in
14199 *posix*) set -o posix ;;
14200esac
14201
14202fi
14203
14204
14205
14206
14207# PATH needs CR
14208# Avoid depending upon Character Ranges.
14209as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14210as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14211as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14212as_cr_digits='0123456789'
14213as_cr_alnum=$as_cr_Letters$as_cr_digits
14214
14215# The user is always right.
14216if test "${PATH_SEPARATOR+set}" != set; then
14217 echo "#! /bin/sh" >conf$$.sh
14218 echo "exit 0" >>conf$$.sh
14219 chmod +x conf$$.sh
14220 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14221 PATH_SEPARATOR=';'
14222 else
14223 PATH_SEPARATOR=:
14224 fi
14225 rm -f conf$$.sh
14226fi
14227
14228# Support unset when possible.
14229if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14230 as_unset=unset
14231else
14232 as_unset=false
14233fi
14234
14235
14236# IFS
14237# We need space, tab and new line, in precisely that order. Quoting is
14238# there to prevent editors from complaining about space-tab.
14239# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14240# splitting by setting IFS to empty value.)
14241as_nl='
14242'
14243IFS=" "" $as_nl"
14244
14245# Find who we are. Look in the path if we contain no directory separator.
14246case $0 in
14247 *[\\/]* ) as_myself=$0 ;;
14248 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14254done
14255IFS=$as_save_IFS
14256
14257 ;;
14258esac
14259# We did not find ourselves, most probably we were run as `sh COMMAND'
14260# in which case we are not to be found in the path.
14261if test "x$as_myself" = x; then
14262 as_myself=$0
14263fi
14264if test ! -f "$as_myself"; then
14265 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14266 { (exit 1); exit 1; }
14267fi
14268
14269# Work around bugs in pre-3.0 UWIN ksh.
14270for as_var in ENV MAIL MAILPATH
14271do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14272done
14273PS1='$ '
14274PS2='> '
14275PS4='+ '
14276
14277# NLS nuisances.
14278for as_var in \
14279 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14280 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14281 LC_TELEPHONE LC_TIME
14282do
14283 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14284 eval $as_var=C; export $as_var
14285 else
14286 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14287 fi
14288done
14289
14290# Required to use basename.
14291if expr a : '\(a\)' >/dev/null 2>&1 &&
14292 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14293 as_expr=expr
14294else
14295 as_expr=false
14296fi
14297
14298if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14299 as_basename=basename
14300else
14301 as_basename=false
14302fi
14303
14304
14305# Name of the executable.
14306as_me=`$as_basename -- "$0" ||
14307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14308 X"$0" : 'X\(//\)$' \| \
14309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14310echo X/"$0" |
14311 sed '/^.*\/\([^/][^/]*\)\/*$/{
14312 s//\1/
14313 q
14314 }
14315 /^X\/\(\/\/\)$/{
14316 s//\1/
14317 q
14318 }
14319 /^X\/\(\/\).*/{
14320 s//\1/
14321 q
14322 }
14323 s/.*/./; q'`
14324
14325# CDPATH.
14326$as_unset CDPATH
14327
14328
14329
14330 as_lineno_1=$LINENO
14331 as_lineno_2=$LINENO
14332 test "x$as_lineno_1" != "x$as_lineno_2" &&
14333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14334
14335 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14336 # uniformly replaced by the line number. The first 'sed' inserts a
14337 # line-number line after each line using $LINENO; the second 'sed'
14338 # does the real work. The second script uses 'N' to pair each
14339 # line-number line with the line containing $LINENO, and appends
14340 # trailing '-' during substitution so that $LINENO is not a special
14341 # case at line end.
14342 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14343 # scripts with optimization help from Paolo Bonzini. Blame Lee
14344 # E. McMahon (1931-1989) for sed's syntax. :-)
14345 sed -n '
14346 p
14347 /[$]LINENO/=
14348 ' <$as_myself |
14349 sed '
14350 s/[$]LINENO.*/&-/
14351 t lineno
14352 b
14353 :lineno
14354 N
14355 :loop
14356 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14357 t loop
14358 s/-\n.*//
14359 ' >$as_me.lineno &&
14360 chmod +x "$as_me.lineno" ||
14361 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14362 { (exit 1); exit 1; }; }
14363
14364 # Don't try to exec as it changes $[0], causing all sort of problems
14365 # (the dirname of $[0] is not the place where we might find the
14366 # original and so on. Autoconf is especially sensitive to this).
14367 . "./$as_me.lineno"
14368 # Exit status is that of the last command.
14369 exit
14370}
14371
14372
14373if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14374 as_dirname=dirname
14375else
14376 as_dirname=false
14377fi
14378
14379ECHO_C= ECHO_N= ECHO_T=
14380case `echo -n x` in
14381-n*)
14382 case `echo 'x\c'` in
14383 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14384 *) ECHO_C='\c';;
14385 esac;;
14386*)
14387 ECHO_N='-n';;
14388esac
14389
14390if expr a : '\(a\)' >/dev/null 2>&1 &&
14391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14392 as_expr=expr
14393else
14394 as_expr=false
14395fi
14396
14397rm -f conf$$ conf$$.exe conf$$.file
14398if test -d conf$$.dir; then
14399 rm -f conf$$.dir/conf$$.file
14400else
14401 rm -f conf$$.dir
14402 mkdir conf$$.dir
14403fi
14404echo >conf$$.file
14405if ln -s conf$$.file conf$$ 2>/dev/null; then
14406 as_ln_s='ln -s'
14407 # ... but there are two gotchas:
14408 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14409 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14410 # In both cases, we have to default to `cp -p'.
14411 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14412 as_ln_s='cp -p'
14413elif ln conf$$.file conf$$ 2>/dev/null; then
14414 as_ln_s=ln
14415else
14416 as_ln_s='cp -p'
14417fi
14418rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14419rmdir conf$$.dir 2>/dev/null
14420
14421if mkdir -p . 2>/dev/null; then
14422 as_mkdir_p=:
14423else
14424 test -d ./-p && rmdir ./-p
14425 as_mkdir_p=false
14426fi
14427
14428if test -x / >/dev/null 2>&1; then
14429 as_test_x='test -x'
14430else
14431 if ls -dL / >/dev/null 2>&1; then
14432 as_ls_L_option=L
14433 else
14434 as_ls_L_option=
14435 fi
14436 as_test_x='
14437 eval sh -c '\''
14438 if test -d "$1"; then
14439 test -d "$1/.";
14440 else
14441 case $1 in
14442 -*)set "./$1";;
14443 esac;
14444 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14445 ???[sx]*):;;*)false;;esac;fi
14446 '\'' sh
14447 '
14448fi
14449as_executable_p=$as_test_x
14450
14451# Sed expression to map a string onto a valid CPP name.
14452as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14453
14454# Sed expression to map a string onto a valid variable name.
14455as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14456
14457
14458exec 6>&1
14459
14460# Save the log message, to keep $[0] and so on meaningful, and to
14461# report actual input values of CONFIG_FILES etc. instead of their
14462# values after options handling.
14463ac_log="
14464This file was extended by charybdis $as_me 3.1, which was
14465generated by GNU Autoconf 2.61. Invocation command line was
14466
14467 CONFIG_FILES = $CONFIG_FILES
14468 CONFIG_HEADERS = $CONFIG_HEADERS
14469 CONFIG_LINKS = $CONFIG_LINKS
14470 CONFIG_COMMANDS = $CONFIG_COMMANDS
14471 $ $0 $@
14472
14473on `(hostname || uname -n) 2>/dev/null | sed 1q`
14474"
14475
14476_ACEOF
14477
14478cat >>$CONFIG_STATUS <<_ACEOF
14479# Files that config.status was made for.
14480config_files="$ac_config_files"
14481config_headers="$ac_config_headers"
14482
14483_ACEOF
14484
14485cat >>$CONFIG_STATUS <<\_ACEOF
14486ac_cs_usage="\
14487\`$as_me' instantiates files from templates according to the
14488current configuration.
14489
14490Usage: $0 [OPTIONS] [FILE]...
14491
14492 -h, --help print this help, then exit
14493 -V, --version print version number and configuration settings, then exit
14494 -q, --quiet do not print progress messages
14495 -d, --debug don't remove temporary files
14496 --recheck update $as_me by reconfiguring in the same conditions
14497 --file=FILE[:TEMPLATE]
14498 instantiate the configuration file FILE
14499 --header=FILE[:TEMPLATE]
14500 instantiate the configuration header FILE
14501
14502Configuration files:
14503$config_files
14504
14505Configuration headers:
14506$config_headers
14507
14508Report bugs to <bug-autoconf@gnu.org>."
14509
14510_ACEOF
14511cat >>$CONFIG_STATUS <<_ACEOF
14512ac_cs_version="\\
14513charybdis config.status 3.1
14514configured by $0, generated by GNU Autoconf 2.61,
14515 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14516
14517Copyright (C) 2006 Free Software Foundation, Inc.
14518This config.status script is free software; the Free Software Foundation
14519gives unlimited permission to copy, distribute and modify it."
14520
14521ac_pwd='$ac_pwd'
14522srcdir='$srcdir'
14523INSTALL='$INSTALL'
14524_ACEOF
14525
14526cat >>$CONFIG_STATUS <<\_ACEOF
14527# If no file are specified by the user, then we need to provide default
14528# value. By we need to know if files were specified by the user.
14529ac_need_defaults=:
14530while test $# != 0
14531do
14532 case $1 in
14533 --*=*)
14534 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14536 ac_shift=:
14537 ;;
14538 *)
14539 ac_option=$1
14540 ac_optarg=$2
14541 ac_shift=shift
14542 ;;
14543 esac
14544
14545 case $ac_option in
14546 # Handling of the options.
14547 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14548 ac_cs_recheck=: ;;
14549 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14550 echo "$ac_cs_version"; exit ;;
14551 --debug | --debu | --deb | --de | --d | -d )
14552 debug=: ;;
14553 --file | --fil | --fi | --f )
14554 $ac_shift
14555 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14556 ac_need_defaults=false;;
14557 --header | --heade | --head | --hea )
14558 $ac_shift
14559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14560 ac_need_defaults=false;;
14561 --he | --h)
14562 # Conflict between --help and --header
14563 { echo "$as_me: error: ambiguous option: $1
14564Try \`$0 --help' for more information." >&2
14565 { (exit 1); exit 1; }; };;
14566 --help | --hel | -h )
14567 echo "$ac_cs_usage"; exit ;;
14568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14569 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14570 ac_cs_silent=: ;;
14571
14572 # This is an error.
14573 -*) { echo "$as_me: error: unrecognized option: $1
14574Try \`$0 --help' for more information." >&2
14575 { (exit 1); exit 1; }; } ;;
14576
14577 *) ac_config_targets="$ac_config_targets $1"
14578 ac_need_defaults=false ;;
14579
14580 esac
14581 shift
14582done
14583
14584ac_configure_extra_args=
14585
14586if $ac_cs_silent; then
14587 exec 6>/dev/null
14588 ac_configure_extra_args="$ac_configure_extra_args --silent"
14589fi
14590
14591_ACEOF
14592cat >>$CONFIG_STATUS <<_ACEOF
14593if \$ac_cs_recheck; then
14594 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14595 CONFIG_SHELL=$SHELL
14596 export CONFIG_SHELL
14597 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14598fi
14599
14600_ACEOF
14601cat >>$CONFIG_STATUS <<\_ACEOF
14602exec 5>>config.log
14603{
14604 echo
14605 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14606## Running $as_me. ##
14607_ASBOX
14608 echo "$ac_log"
14609} >&5
14610
14611_ACEOF
14612cat >>$CONFIG_STATUS <<_ACEOF
14613_ACEOF
14614
14615cat >>$CONFIG_STATUS <<\_ACEOF
14616
14617# Handling of arguments.
14618for ac_config_target in $ac_config_targets
14619do
14620 case $ac_config_target in
14621 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14623 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/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
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
14638
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
14649# simply because there is no reason against having it here, and in addition,
14650# creating and moving files from /tmp can sometimes cause problems.
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'.
14654$debug ||
14655{
14656 tmp=
14657 trap 'exit_status=$?
14658 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14659' 0
14660 trap '{ (exit 1); exit 1; }' 1 2 13 15
14661}
14662# Create a (secure) tmp directory for tmp files.
14663
14664{
14665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14666 test -n "$tmp" && test -d "$tmp"
14667} ||
14668{
14669 tmp=./conf$$-$RANDOM
14670 (umask 077 && mkdir "$tmp")
14671} ||
14672{
14673 echo "$me: cannot create a temporary directory in ." >&2
14674 { (exit 1); exit 1; }
14675}
14676
14677#
14678# Set up the sed scripts for CONFIG_FILES section.
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
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
14736subdirs!$subdirs$ac_delim
14737MKDEP!$MKDEP$ac_delim
14738MAKEDEPEND!$MAKEDEPEND$ac_delim
14739STDOUT!$STDOUT$ac_delim
14740CPP!$CPP$ac_delim
14741GREP!$GREP$ac_delim
14742EGREP!$EGREP$ac_delim
14743SET_MAKE!$SET_MAKE$ac_delim
14744INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14745INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14746INSTALL_DATA!$INSTALL_DATA$ac_delim
14747RM!$RM$ac_delim
14748CP!$CP$ac_delim
14749MV!$MV$ac_delim
14750LN!$LN$ac_delim
14751SED!$SED$ac_delim
14752AR!$AR$ac_delim
14753LD!$LD$ac_delim
14754RANLIB!$RANLIB$ac_delim
14755TOUCH!$TOUCH$ac_delim
14756YACC!$YACC$ac_delim
14757YFLAGS!$YFLAGS$ac_delim
14758LEX!$LEX$ac_delim
14759LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14760LEXLIB!$LEXLIB$ac_delim
14761CRYPT_LIB!$CRYPT_LIB$ac_delim
14762VICONF!$VICONF$ac_delim
14763ALLOCA!$ALLOCA$ac_delim
14764ENCSPEED!$ENCSPEED$ac_delim
14765ZLIB_LD!$ZLIB_LD$ac_delim
14766ETC_DIR!$ETC_DIR$ac_delim
14767confdir!$confdir$ac_delim
14768LOG_DIR!$LOG_DIR$ac_delim
14769logdir!$logdir$ac_delim
14770HELP_DIR!$HELP_DIR$ac_delim
14771helpdir!$helpdir$ac_delim
14772MODULE_DIR!$MODULE_DIR$ac_delim
14773moduledir!$moduledir$ac_delim
14774SELECT_TYPE!$SELECT_TYPE$ac_delim
14775MODULES_LIBS!$MODULES_LIBS$ac_delim
14776MOD_TARGET!$MOD_TARGET$ac_delim
14777SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14778SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14779SSL_LIBS!$SSL_LIBS$ac_delim
14780PICFLAGS!$PICFLAGS$ac_delim
14781IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14782SEDOBJ!$SEDOBJ$ac_delim
14783LIBOBJS!$LIBOBJS$ac_delim
14784LTLIBOBJS!$LTLIBOBJS$ac_delim
14785_ACEOF
14786
14787 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
14788 break
14789 elif $ac_last_try; then
14790 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14791echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14792 { (exit 1); exit 1; }; }
14793 else
14794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14795 fi
14796done
14797
14798ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14799if test -n "$ac_eof"; then
14800 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14801 ac_eof=`expr $ac_eof + 1`
14802fi
14803
14804cat >>$CONFIG_STATUS <<_ACEOF
14805cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14806/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14807_ACEOF
14808sed '
14809s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14810s/^/s,@/; s/!/@,|#_!!_#|/
14811:n
14812t n
14813s/'"$ac_delim"'$/,g/; t
14814s/$/\\/; p
14815N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14816' >>$CONFIG_STATUS <conf$$subs.sed
14817rm -f conf$$subs.sed
14818cat >>$CONFIG_STATUS <<_ACEOF
14819:end
14820s/|#_!!_#|//g
14821CEOF$ac_eof
14822_ACEOF
14823
14824
14825# VPATH may cause trouble with some makes, so we remove $(srcdir),
14826# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14827# trailing colons and then remove the whole line if VPATH becomes empty
14828# (actually we leave an empty line to preserve line numbers).
14829if test "x$srcdir" = x.; then
14830 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14831s/:*\$(srcdir):*/:/
14832s/:*\${srcdir}:*/:/
14833s/:*@srcdir@:*/:/
14834s/^\([^=]*=[ ]*\):*/\1/
14835s/:*$//
14836s/^[^=]*=[ ]*$//
14837}'
14838fi
14839
14840cat >>$CONFIG_STATUS <<\_ACEOF
14841fi # test -n "$CONFIG_FILES"
14842
14843
14844for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14845do
14846 case $ac_tag in
14847 :[FHLC]) ac_mode=$ac_tag; continue;;
14848 esac
14849 case $ac_mode$ac_tag in
14850 :[FHL]*:*);;
14851 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14852echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14853 { (exit 1); exit 1; }; };;
14854 :[FH]-) ac_tag=-:-;;
14855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14856 esac
14857 ac_save_IFS=$IFS
14858 IFS=:
14859 set x $ac_tag
14860 IFS=$ac_save_IFS
14861 shift
14862 ac_file=$1
14863 shift
14864
14865 case $ac_mode in
14866 :L) ac_source=$1;;
14867 :[FH])
14868 ac_file_inputs=
14869 for ac_f
14870 do
14871 case $ac_f in
14872 -) ac_f="$tmp/stdin";;
14873 *) # Look for the file first in the build tree, then in the source tree
14874 # (if the path is not absolute). The absolute path cannot be DOS-style,
14875 # because $ac_f cannot contain `:'.
14876 test -f "$ac_f" ||
14877 case $ac_f in
14878 [\\/$]*) false;;
14879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14880 esac ||
14881 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14882echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14883 { (exit 1); exit 1; }; };;
14884 esac
14885 ac_file_inputs="$ac_file_inputs $ac_f"
14886 done
14887
14888 # Let's still pretend it is `configure' which instantiates (i.e., don't
14889 # use $as_me), people would be surprised to read:
14890 # /* config.h. Generated by config.status. */
14891 configure_input="Generated from "`IFS=:
14892 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14893 if test x"$ac_file" != x-; then
14894 configure_input="$ac_file. $configure_input"
14895 { echo "$as_me:$LINENO: creating $ac_file" >&5
14896echo "$as_me: creating $ac_file" >&6;}
14897 fi
14898
14899 case $ac_tag in
14900 *:-:* | *:-) cat >"$tmp/stdin";;
14901 esac
14902 ;;
14903 esac
14904
14905 ac_dir=`$as_dirname -- "$ac_file" ||
14906$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14907 X"$ac_file" : 'X\(//\)[^/]' \| \
14908 X"$ac_file" : 'X\(//\)$' \| \
14909 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14910echo X"$ac_file" |
14911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14912 s//\1/
14913 q
14914 }
14915 /^X\(\/\/\)[^/].*/{
14916 s//\1/
14917 q
14918 }
14919 /^X\(\/\/\)$/{
14920 s//\1/
14921 q
14922 }
14923 /^X\(\/\).*/{
14924 s//\1/
14925 q
14926 }
14927 s/.*/./; q'`
14928 { as_dir="$ac_dir"
14929 case $as_dir in #(
14930 -*) as_dir=./$as_dir;;
14931 esac
14932 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14933 as_dirs=
14934 while :; do
14935 case $as_dir in #(
14936 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14937 *) as_qdir=$as_dir;;
14938 esac
14939 as_dirs="'$as_qdir' $as_dirs"
14940 as_dir=`$as_dirname -- "$as_dir" ||
14941$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14942 X"$as_dir" : 'X\(//\)[^/]' \| \
14943 X"$as_dir" : 'X\(//\)$' \| \
14944 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14945echo X"$as_dir" |
14946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\(\/\/\)[^/].*/{
14951 s//\1/
14952 q
14953 }
14954 /^X\(\/\/\)$/{
14955 s//\1/
14956 q
14957 }
14958 /^X\(\/\).*/{
14959 s//\1/
14960 q
14961 }
14962 s/.*/./; q'`
14963 test -d "$as_dir" && break
14964 done
14965 test -z "$as_dirs" || eval "mkdir $as_dirs"
14966 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14967echo "$as_me: error: cannot create directory $as_dir" >&2;}
14968 { (exit 1); exit 1; }; }; }
14969 ac_builddir=.
14970
14971case "$ac_dir" in
14972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14973*)
14974 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14975 # A ".." for each directory in $ac_dir_suffix.
14976 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14977 case $ac_top_builddir_sub in
14978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14980 esac ;;
14981esac
14982ac_abs_top_builddir=$ac_pwd
14983ac_abs_builddir=$ac_pwd$ac_dir_suffix
14984# for backward compatibility:
14985ac_top_builddir=$ac_top_build_prefix
14986
14987case $srcdir in
14988 .) # We are building in place.
14989 ac_srcdir=.
14990 ac_top_srcdir=$ac_top_builddir_sub
14991 ac_abs_top_srcdir=$ac_pwd ;;
14992 [\\/]* | ?:[\\/]* ) # Absolute name.
14993 ac_srcdir=$srcdir$ac_dir_suffix;
14994 ac_top_srcdir=$srcdir
14995 ac_abs_top_srcdir=$srcdir ;;
14996 *) # Relative name.
14997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14998 ac_top_srcdir=$ac_top_build_prefix$srcdir
14999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15000esac
15001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15002
15003
15004 case $ac_mode in
15005 :F)
15006 #
15007 # CONFIG_FILE
15008 #
15009
15010 case $INSTALL in
15011 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15012 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15013 esac
15014_ACEOF
15015
15016cat >>$CONFIG_STATUS <<\_ACEOF
15017# If the template does not know about datarootdir, expand it.
15018# FIXME: This hack should be removed a few years after 2.60.
15019ac_datarootdir_hack=; ac_datarootdir_seen=
15020
15021case `sed -n '/datarootdir/ {
15022 p
15023 q
15024}
15025/@datadir@/p
15026/@docdir@/p
15027/@infodir@/p
15028/@localedir@/p
15029/@mandir@/p
15030' $ac_file_inputs` in
15031*datarootdir*) ac_datarootdir_seen=yes;;
15032*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15033 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15034echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15035_ACEOF
15036cat >>$CONFIG_STATUS <<_ACEOF
15037 ac_datarootdir_hack='
15038 s&@datadir@&$datadir&g
15039 s&@docdir@&$docdir&g
15040 s&@infodir@&$infodir&g
15041 s&@localedir@&$localedir&g
15042 s&@mandir@&$mandir&g
15043 s&\\\${datarootdir}&$datarootdir&g' ;;
15044esac
15045_ACEOF
15046
15047# Neutralize VPATH when `$srcdir' = `.'.
15048# Shell code in configure.ac might set extrasub.
15049# FIXME: do we really want to maintain this feature?
15050cat >>$CONFIG_STATUS <<_ACEOF
15051 sed "$ac_vpsub
15052$extrasub
15053_ACEOF
15054cat >>$CONFIG_STATUS <<\_ACEOF
15055:t
15056/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15057s&@configure_input@&$configure_input&;t t
15058s&@top_builddir@&$ac_top_builddir_sub&;t t
15059s&@srcdir@&$ac_srcdir&;t t
15060s&@abs_srcdir@&$ac_abs_srcdir&;t t
15061s&@top_srcdir@&$ac_top_srcdir&;t t
15062s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15063s&@builddir@&$ac_builddir&;t t
15064s&@abs_builddir@&$ac_abs_builddir&;t t
15065s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15066s&@INSTALL@&$ac_INSTALL&;t t
15067$ac_datarootdir_hack
15068" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15069
15070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15073 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15074which seems to be undefined. Please make sure it is defined." >&5
15075echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15076which seems to be undefined. Please make sure it is defined." >&2;}
15077
15078 rm -f "$tmp/stdin"
15079 case $ac_file in
15080 -) cat "$tmp/out"; rm -f "$tmp/out";;
15081 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15082 esac
15083 ;;
15084 :H)
15085 #
15086 # CONFIG_HEADER
15087 #
15088_ACEOF
15089
15090# Transform confdefs.h into a sed script `conftest.defines', that
15091# substitutes the proper values into config.h.in to produce config.h.
15092rm -f conftest.defines conftest.tail
15093# First, append a space to every undef/define line, to ease matching.
15094echo 's/$/ /' >conftest.defines
15095# Then, protect against being on the right side of a sed subst, or in
15096# an unquoted here document, in config.status. If some macros were
15097# called several times there might be several #defines for the same
15098# symbol, which is useless. But do not sort them, since the last
15099# AC_DEFINE must be honored.
15100ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15101# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15102# NAME is the cpp macro being defined, VALUE is the value it is being given.
15103# PARAMS is the parameter list in the macro definition--in most cases, it's
15104# just an empty string.
15105ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15106ac_dB='\\)[ (].*,\\1define\\2'
15107ac_dC=' '
15108ac_dD=' ,'
15109
15110uniq confdefs.h |
15111 sed -n '
15112 t rset
15113 :rset
15114 s/^[ ]*#[ ]*define[ ][ ]*//
15115 t ok
15116 d
15117 :ok
15118 s/[\\&,]/\\&/g
15119 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15120 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15121 ' >>conftest.defines
15122
15123# Remove the space that was appended to ease matching.
15124# Then replace #undef with comments. This is necessary, for
15125# example, in the case of _POSIX_SOURCE, which is predefined and required
15126# on some systems where configure will not decide to define it.
15127# (The regexp can be short, since the line contains either #define or #undef.)
15128echo 's/ $//
15129s,^[ #]*u.*,/* & */,' >>conftest.defines
15130
15131# Break up conftest.defines:
15132ac_max_sed_lines=50
15133
15134# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15135# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15136# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15137# et cetera.
15138ac_in='$ac_file_inputs'
15139ac_out='"$tmp/out1"'
15140ac_nxt='"$tmp/out2"'
15141
15142while :
15143do
15144 # Write a here document:
15145 cat >>$CONFIG_STATUS <<_ACEOF
15146 # First, check the format of the line:
15147 cat >"\$tmp/defines.sed" <<\\CEOF
15148/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15149/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15150b
15151:def
15152_ACEOF
15153 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15154 echo 'CEOF
15155 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15156 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15157 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15158 grep . conftest.tail >/dev/null || break
15159 rm -f conftest.defines
15160 mv conftest.tail conftest.defines
15161done
15162rm -f conftest.defines conftest.tail
15163
15164echo "ac_result=$ac_in" >>$CONFIG_STATUS
15165cat >>$CONFIG_STATUS <<\_ACEOF
15166 if test x"$ac_file" != x-; then
15167 echo "/* $configure_input */" >"$tmp/config.h"
15168 cat "$ac_result" >>"$tmp/config.h"
15169 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15170 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15171echo "$as_me: $ac_file is unchanged" >&6;}
15172 else
15173 rm -f $ac_file
15174 mv "$tmp/config.h" $ac_file
15175 fi
15176 else
15177 echo "/* $configure_input */"
15178 cat "$ac_result"
15179 fi
15180 rm -f "$tmp/out12"
15181 ;;
15182
15183
15184 esac
15185
15186done # for ac_tag
15187
15188
15189{ (exit 0); exit 0; }
15190_ACEOF
15191chmod +x $CONFIG_STATUS
15192ac_clean_files=$ac_clean_files_save
15193
15194
15195# configure is writing to config.log, and then calls config.status.
15196# config.status does its own redirection, appending to config.log.
15197# Unfortunately, on DOS this fails, as config.log is still kept open
15198# by configure, so config.status won't be able to write to it; its
15199# output is simply discarded. So we exec the FD to /dev/null,
15200# effectively closing config.log, so it can be properly (re)opened and
15201# appended to by config.status. When coming back to configure, we
15202# need to make the FD available again.
15203if test "$no_create" != yes; then
15204 ac_cs_success=:
15205 ac_config_status_args=
15206 test "$silent" = yes &&
15207 ac_config_status_args="$ac_config_status_args --quiet"
15208 exec 5>/dev/null
15209 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15210 exec 5>>config.log
15211 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15212 # would make configure fail if this is the last instruction.
15213 $ac_cs_success || { (exit 1); exit 1; }
15214fi
15215
15216#
15217# CONFIG_SUBDIRS section.
15218#
15219if test "$no_recursion" != yes; then
15220
15221 # Remove --cache-file and --srcdir arguments so they do not pile up.
15222 ac_sub_configure_args=
15223 ac_prev=
15224 eval "set x $ac_configure_args"
15225 shift
15226 for ac_arg
15227 do
15228 if test -n "$ac_prev"; then
15229 ac_prev=
15230 continue
15231 fi
15232 case $ac_arg in
15233 -cache-file | --cache-file | --cache-fil | --cache-fi \
15234 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15235 ac_prev=cache_file ;;
15236 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15237 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15238 | --c=*)
15239 ;;
15240 --config-cache | -C)
15241 ;;
15242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15243 ac_prev=srcdir ;;
15244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15245 ;;
15246 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15247 ac_prev=prefix ;;
15248 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15249 ;;
15250 *)
15251 case $ac_arg in
15252 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15253 esac
15254 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15255 esac
15256 done
15257
15258 # Always prepend --prefix to ensure using the same prefix
15259 # in subdir configurations.
15260 ac_arg="--prefix=$prefix"
15261 case $ac_arg in
15262 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15263 esac
15264 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15265
15266 # Pass --silent
15267 if test "$silent" = yes; then
15268 ac_sub_configure_args="--silent $ac_sub_configure_args"
15269 fi
15270
15271 ac_popdir=`pwd`
15272 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15273
15274 # Do not complain, so a configure script can configure whichever
15275 # parts of a large source tree are present.
15276 test -d "$srcdir/$ac_dir" || continue
15277
15278 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15279 echo "$as_me:$LINENO: $ac_msg" >&5
15280 echo "$ac_msg" >&6
15281 { as_dir="$ac_dir"
15282 case $as_dir in #(
15283 -*) as_dir=./$as_dir;;
15284 esac
15285 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15286 as_dirs=
15287 while :; do
15288 case $as_dir in #(
15289 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15290 *) as_qdir=$as_dir;;
15291 esac
15292 as_dirs="'$as_qdir' $as_dirs"
15293 as_dir=`$as_dirname -- "$as_dir" ||
15294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15295 X"$as_dir" : 'X\(//\)[^/]' \| \
15296 X"$as_dir" : 'X\(//\)$' \| \
15297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15298echo X"$as_dir" |
15299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15300 s//\1/
15301 q
15302 }
15303 /^X\(\/\/\)[^/].*/{
15304 s//\1/
15305 q
15306 }
15307 /^X\(\/\/\)$/{
15308 s//\1/
15309 q
15310 }
15311 /^X\(\/\).*/{
15312 s//\1/
15313 q
15314 }
15315 s/.*/./; q'`
15316 test -d "$as_dir" && break
15317 done
15318 test -z "$as_dirs" || eval "mkdir $as_dirs"
15319 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15320echo "$as_me: error: cannot create directory $as_dir" >&2;}
15321 { (exit 1); exit 1; }; }; }
15322 ac_builddir=.
15323
15324case "$ac_dir" in
15325.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15326*)
15327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15328 # A ".." for each directory in $ac_dir_suffix.
15329 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15330 case $ac_top_builddir_sub in
15331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15333 esac ;;
15334esac
15335ac_abs_top_builddir=$ac_pwd
15336ac_abs_builddir=$ac_pwd$ac_dir_suffix
15337# for backward compatibility:
15338ac_top_builddir=$ac_top_build_prefix
15339
15340case $srcdir in
15341 .) # We are building in place.
15342 ac_srcdir=.
15343 ac_top_srcdir=$ac_top_builddir_sub
15344 ac_abs_top_srcdir=$ac_pwd ;;
15345 [\\/]* | ?:[\\/]* ) # Absolute name.
15346 ac_srcdir=$srcdir$ac_dir_suffix;
15347 ac_top_srcdir=$srcdir
15348 ac_abs_top_srcdir=$srcdir ;;
15349 *) # Relative name.
15350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15351 ac_top_srcdir=$ac_top_build_prefix$srcdir
15352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15353esac
15354ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15355
15356
15357 cd "$ac_dir"
15358
15359 # Check for guested configure; otherwise get Cygnus style configure.
15360 if test -f "$ac_srcdir/configure.gnu"; then
15361 ac_sub_configure=$ac_srcdir/configure.gnu
15362 elif test -f "$ac_srcdir/configure"; then
15363 ac_sub_configure=$ac_srcdir/configure
15364 elif test -f "$ac_srcdir/configure.in"; then
15365 # This should be Cygnus configure.
15366 ac_sub_configure=$ac_aux_dir/configure
15367 else
15368 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15369echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15370 ac_sub_configure=
15371 fi
15372
15373 # The recursion is here.
15374 if test -n "$ac_sub_configure"; then
15375 # Make the cache file name correct relative to the subdirectory.
15376 case $cache_file in
15377 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15378 *) # Relative name.
15379 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15380 esac
15381
15382 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15383echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15384 # The eval makes quoting arguments work.
15385 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15386 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15387 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15388echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15389 { (exit 1); exit 1; }; }
15390 fi
15391
15392 cd "$ac_popdir"
15393 done
15394fi
15395
15396
15397if test "$cf_openssl_version_ok" = yes; then
15398 openssl="yes"
15399else
15400 openssl="no"
15401fi
15402
15403if test "$shared_modules" = yes; then
15404 modules=shared
15405else
15406 modules=static
15407fi
15408
15409echo "
15410Configuration:
15411 Install directory : $prefix
15412
15413 Ziplinks : $zlib
15414 OpenSSL : $openssl
15415 Socket Engine : $SELECT_TYPE
15416 Small network : $small_net
15417 Block allocator : $balloc
15418
15419 Nickname length : $NICKLEN
15420 Topic length : $TOPICLEN
15421
15422Use (g)make to compile Charybdis, then (g)make install to install it.
15423"