]> jfr.im git - irc/rqf/shadowircd.git/blob - configure
away stuff from ratbox3
[irc/rqf/shadowircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for charybdis 2.3.0.
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if 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
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
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.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
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.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if 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; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for 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
109 do
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
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo 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
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$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 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
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
234 done
235 IFS=$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
242 if 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
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
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
263 if 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
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $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
338 fi
339
340 fi
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+"$@"}
350 fi
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; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$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
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `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';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if 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'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
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 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_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.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 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.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='charybdis'
576 PACKAGE_TARNAME='charybdis'
577 PACKAGE_VERSION='2.3.0'
578 PACKAGE_STRING='charybdis 2.3.0'
579 PACKAGE_BUGREPORT=''
580
581 ac_default_prefix=$HOME/ircd
582 # Factoring default headers for most tests.
583 ac_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
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 CC
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 subdirs
663 MKDEP
664 MAKEDEPEND
665 STDOUT
666 CPP
667 GREP
668 EGREP
669 SET_MAKE
670 INSTALL_PROGRAM
671 INSTALL_SCRIPT
672 INSTALL_DATA
673 RM
674 CP
675 MV
676 LN
677 SED
678 AR
679 LD
680 RANLIB
681 TOUCH
682 YACC
683 YFLAGS
684 LEX
685 LEX_OUTPUT_ROOT
686 LEXLIB
687 CRYPT_LIB
688 VICONF
689 ALLOCA
690 ENCSPEED
691 ZLIB_LD
692 ETC_DIR
693 confdir
694 LOG_DIR
695 logdir
696 HELP_DIR
697 helpdir
698 MODULE_DIR
699 moduledir
700 SELECT_TYPE
701 MODULES_LIBS
702 MOD_TARGET
703 SSL_SRCS_ENABLE
704 SSL_INCLUDES
705 SSL_LIBS
706 PICFLAGS
707 IRC_CFLAGS
708 SEDOBJ
709 LIBOBJS
710 LTLIBOBJS'
711 ac_subst_files=''
712 ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CPP
721 YACC
722 YFLAGS'
723 ac_subdirs_all='libratbox'
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
730 cache_file=/dev/null
731 exec_prefix=NONE
732 no_create=
733 no_recursion=
734 prefix=NONE
735 program_prefix=NONE
736 program_suffix=NONE
737 program_transform_name=s,x,x,
738 silent=
739 site=
740 srcdir=
741 verbose=
742 x_includes=NONE
743 x_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.)
751 bindir='${exec_prefix}/bin'
752 sbindir='${exec_prefix}/sbin'
753 libexecdir='${exec_prefix}/libexec'
754 datarootdir='${prefix}/share'
755 datadir='${datarootdir}'
756 sysconfdir='${prefix}/etc'
757 sharedstatedir='${prefix}/com'
758 localstatedir='${prefix}/var'
759 includedir='${prefix}/include'
760 oldincludedir='/usr/include'
761 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir='${datarootdir}/info'
763 htmldir='${docdir}'
764 dvidir='${docdir}'
765 pdfdir='${docdir}'
766 psdir='${docdir}'
767 libdir='${exec_prefix}/lib'
768 localedir='${datarootdir}/locale'
769 mandir='${datarootdir}/man'
770
771 ac_prev=
772 ac_dashdash=
773 for ac_option
774 do
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
1078 Try \`$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
1100 done
1101
1102 if 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; }; }
1106 fi
1107
1108 # Be sure to have absolute directory names.
1109 for 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
1113 do
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; }; }
1121 done
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.
1126 build=$build_alias
1127 host=$host_alias
1128 target=$target_alias
1129
1130 # FIXME: To remove some day.
1131 if 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
1139 fi
1140
1141 ac_tool_prefix=
1142 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144 test "$silent" = yes && exec 6>/dev/null
1145
1146
1147 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148 ac_ls_di=`ls -di .` &&
1149 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 { echo "$as_me: error: Working directory cannot be determined" >&2
1151 { (exit 1); exit 1; }; }
1152 test "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.
1158 if 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 ||
1166 echo 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
1188 else
1189 ac_srcdir_defaulted=no
1190 fi
1191 if 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; }; }
1195 fi
1196 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 ac_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=.
1202 if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204 fi
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.
1208 case $srcdir in
1209 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 esac
1211 for 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}
1216 done
1217
1218 #
1219 # Report the --help message.
1220 #
1221 if 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 2.3.0 to adapt to many kinds of systems.
1226
1227 Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230 VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232 Defaults for the options are specified in brackets.
1233
1234 Configuration:
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
1245 Installation 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
1251 By default, \`make install' will install all the files in
1252 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254 for instance \`--prefix=\$HOME'.
1255
1256 For better control, use the options below.
1257
1258 Fine 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
1282 fi
1283
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of charybdis 2.3.0:";;
1287 esac
1288 cat <<\_ACEOF
1289
1290 Optional 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
1310 Optional 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
1322 Some 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
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1339
1340 _ACEOF
1341 ac_status=$?
1342 fi
1343
1344 if 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
1350 case "$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 ;;
1360 esac
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1365
1366 case $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 ;;
1379 esac
1380 ac_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
1395 fi
1396
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1399 cat <<\_ACEOF
1400 charybdis configure 2.3.0
1401 generated by GNU Autoconf 2.61
1402
1403 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1404 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives 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
1411 fi
1412 cat >config.log <<_ACEOF
1413 This file contains any messages produced by compilers while
1414 running configure, to aid debugging if configure makes a mistake.
1415
1416 It was created by charybdis $as_me 2.3.0, which was
1417 generated by GNU Autoconf 2.61. Invocation command line was
1418
1419 $ $0 $@
1420
1421 _ACEOF
1422 exec 5>>config.log
1423 {
1424 cat <<_ASUNAME
1425 ## --------- ##
1426 ## Platform. ##
1427 ## --------- ##
1428
1429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433 uname -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
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 echo "PATH: $as_dir"
1454 done
1455 IFS=$as_save_IFS
1456
1457 } >&5
1458
1459 cat >&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.
1474 ac_configure_args=
1475 ac_configure_args0=
1476 ac_configure_args1=
1477 ac_must_keep_next=false
1478 for ac_pass in 1 2
1479 do
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
1513 done
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.
1522 trap '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
1541 echo "$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
1616 for ac_signal in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618 done
1619 ac_signal=0
1620
1621 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1622 rm -f -r conftest* confdefs.h
1623
1624 # Predefined preprocessor variables.
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_NAME "$PACKAGE_NAME"
1628 _ACEOF
1629
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1638 _ACEOF
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_STRING "$PACKAGE_STRING"
1643 _ACEOF
1644
1645
1646 cat >>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.
1653 if test -n "$CONFIG_SITE"; then
1654 set x "$CONFIG_SITE"
1655 elif test "x$prefix" != xNONE; then
1656 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1657 else
1658 set x "$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
1660 fi
1661 shift
1662 for ac_site_file
1663 do
1664 if test -r "$ac_site_file"; then
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666 echo "$as_me: loading site script $ac_site_file" >&6;}
1667 sed 's/^/| /' "$ac_site_file" >&5
1668 . "$ac_site_file"
1669 fi
1670 done
1671
1672 if 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
1677 echo "$as_me: loading cache $cache_file" >&6;}
1678 case $cache_file in
1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
1681 esac
1682 fi
1683 else
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685 echo "$as_me: creating cache $cache_file" >&6;}
1686 >$cache_file
1687 fi
1688
1689 # Check that the precious variables saved in the cache have kept the same
1690 # value.
1691 ac_cache_corrupted=false
1692 for 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
1700 echo "$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
1704 echo "$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
1710 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712 echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714 echo "$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
1729 done
1730 if $ac_cache_corrupted; then
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732 echo "$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
1734 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1735 { (exit 1); exit 1; }; }
1736 fi
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
1762 ac_ext=c
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767
1768
1769
1770 ac_config_headers="$ac_config_headers include/setup.h"
1771
1772
1773
1774
1775
1776 cat >>confdefs.h <<\_ACEOF
1777 #define _GNU_SOURCE 1
1778 _ACEOF
1779
1780
1781
1782 OLD_CFLAGS="$CFLAGS"
1783 ac_ext=c
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 if 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.
1790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
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
1810 done
1811 done
1812 IFS=$as_save_IFS
1813
1814 fi
1815 fi
1816 CC=$ac_cv_prog_CC
1817 if test -n "$CC"; then
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6; }
1820 else
1821 { echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6; }
1823 fi
1824
1825
1826 fi
1827 if 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.
1830 set dummy gcc; ac_word=$2
1831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
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
1850 done
1851 done
1852 IFS=$as_save_IFS
1853
1854 fi
1855 fi
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6; }
1860 else
1861 { echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6; }
1863 fi
1864
1865 if test "x$ac_ct_CC" = x; then
1866 CC=""
1867 else
1868 case $cross_compiling:$ac_tool_warned in
1869 yes:)
1870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871 whose name does not start with the host triplet. If you think this
1872 configuration is useful to you, please write to autoconf@gnu.org." >&5
1873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874 whose name does not start with the host triplet. If you think this
1875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876 ac_tool_warned=yes ;;
1877 esac
1878 CC=$ac_ct_CC
1879 fi
1880 else
1881 CC="$ac_cv_prog_CC"
1882 fi
1883
1884 if 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.
1887 set dummy ${ac_tool_prefix}cc; ac_word=$2
1888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
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
1907 done
1908 done
1909 IFS=$as_save_IFS
1910
1911 fi
1912 fi
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6; }
1917 else
1918 { echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6; }
1920 fi
1921
1922
1923 fi
1924 fi
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 else
1936 ac_prog_rejected=no
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
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
1952 done
1953 done
1954 IFS=$as_save_IFS
1955
1956 if 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
1967 fi
1968 fi
1969 fi
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6; }
1974 else
1975 { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1977 fi
1978
1979
1980 fi
1981 if 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.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
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
2006 done
2007 done
2008 IFS=$as_save_IFS
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6; }
2016 else
2017 { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2019 fi
2020
2021
2022 test -n "$CC" && break
2023 done
2024 fi
2025 if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl.exe
2028 do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy $ac_prog; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
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
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 fi
2055 fi
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6; }
2060 else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2063 fi
2064
2065
2066 test -n "$ac_ct_CC" && break
2067 done
2068
2069 if test "x$ac_ct_CC" = x; then
2070 CC=""
2071 else
2072 case $cross_compiling:$ac_tool_warned in
2073 yes:)
2074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&5
2077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2080 ac_tool_warned=yes ;;
2081 esac
2082 CC=$ac_ct_CC
2083 fi
2084 fi
2085
2086 fi
2087
2088
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2094
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler=`set X $ac_compile; echo $2`
2098 { (ac_try="$ac_compiler --version >&5"
2099 case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "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"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "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"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval "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
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2135
2136 int
2137 main ()
2138 {
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 ac_clean_files_save=$ac_clean_files
2145 ac_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
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_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.
2156 ac_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.
2161 ac_rmfiles=
2162 for ac_file in $ac_files
2163 do
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
2168 done
2169 rm -f $ac_rmfiles
2170
2171 if { (ac_try="$ac_link_default"
2172 case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175 esac
2176 eval "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.
2186 for ac_file in $ac_files ''
2187 do
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
2210 done
2211 test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
2213 else
2214 ac_file=''
2215 fi
2216
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2219 if test -z "$ac_file"; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2228 fi
2229
2230 ac_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
2235 echo $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.
2238 if 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;;
2243 esac
2244 eval "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.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 fi
2263 fi
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_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
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2275
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2279 case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282 esac
2283 eval "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'.
2292 for 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
2300 done
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327
2328 int
2329 main ()
2330 {
2331
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try="$ac_compile"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "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
2354 done
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2364 fi
2365
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367 fi
2368 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2383
2384 int
2385 main ()
2386 {
2387 #ifndef __GNUC__
2388 choke me
2389 #endif
2390
2391 ;
2392 return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2397 case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "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
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418 fi
2419
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423 fi
2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
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
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444
2445 int
2446 main ()
2447 {
2448
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2455 case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "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
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 CFLAGS=""
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482
2483 int
2484 main ()
2485 {
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2493 case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496 esac
2497 eval "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 :
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed '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
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521
2522 int
2523 main ()
2524 {
2525
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (ac_try="$ac_compile"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "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
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552
2553 fi
2554
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 fi
2557
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 fi
2560
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2563 fi
2564 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2566 if test "$ac_test_CFLAGS" = set; then
2567 CFLAGS=$ac_save_CFLAGS
2568 elif 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
2574 else
2575 if test "$GCC" = yes; then
2576 CFLAGS="-O2"
2577 else
2578 CFLAGS=
2579 fi
2580 fi
2581 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2582 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_cc_c89+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 ac_cv_prog_cc_c89=no
2587 ac_save_CC=$CC
2588 cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h. */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>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. */
2599 struct buf { int x; };
2600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601 static char *e (p, i)
2602 char **p;
2603 int i;
2604 {
2605 return p[i];
2606 }
2607 static 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. */
2624 int 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'
2629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2630
2631 int test (int i, double x);
2632 struct s1 {int (*f) (int a);};
2633 struct s2 {int (*f) (double a);};
2634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2635 int argc;
2636 char **argv;
2637 int
2638 main ()
2639 {
2640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2647 do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
2650 if { (ac_try="$ac_compile"
2651 case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "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
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671
2672 fi
2673
2674 rm -f core conftest.err conftest.$ac_objext
2675 test "x$ac_cv_prog_cc_c89" != "xno" && break
2676 done
2677 rm -f conftest.$ac_ext
2678 CC=$ac_save_CC
2679
2680 fi
2681 # AC_CACHE_VAL
2682 case "x$ac_cv_prog_cc_c89" in
2683 x)
2684 { echo "$as_me:$LINENO: result: none needed" >&5
2685 echo "${ECHO_T}none needed" >&6; } ;;
2686 xno)
2687 { echo "$as_me:$LINENO: result: unsupported" >&5
2688 echo "${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
2692 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2693 esac
2694
2695
2696 ac_ext=c
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708
2709 CFLAGS="$OLD_CFLAGS"
2710
2711 ac_aux_dir=
2712 for 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
2726 done
2727 if test -z "$ac_aux_dir"; then
2728 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2729 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2730 { (exit 1); exit 1; }; }
2731 fi
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.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740
2741
2742 subdirs="$subdirs libratbox"
2743
2744
2745
2746 if test "$ac_cv_c_compiler_gnu" != yes; then
2747
2748 SGS=no
2749 { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2750 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; }
2751 case `$CC -version 2>&1` in
2752 *TenDRA*)
2753 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2754 echo "${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
2762 echo "${ECHO_T}yes, MIPSpro" >&6; }
2763 MIPSpro=yes
2764 SGS=yes
2765 ;;
2766 *)
2767 { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2769 TenDRA=no
2770 MIPSpro=no
2771 ;;
2772 esac
2773
2774 { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2775 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; }
2776 case `$CC -V 2>&1` in
2777 *Sun*WorkShop* | *Forte*Developer*)
2778 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2779 echo "${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
2786 echo "${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
2793 echo "${ECHO_T}HPUX cc" >&6; }
2794 HPUX=yes
2795 IRC_CFLAGS="+e"
2796 ;;
2797 *)
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 ;;
2801 esac
2802
2803 fi
2804
2805 { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2806 echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; }
2807 OSNAME=`uname -s`
2808 case "$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
2813 echo "${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
2818 echo "${ECHO_T}already using newer HPUX" >&6; }
2819 fi
2820 ;;
2821 CYGWIN*)
2822 { echo "$as_me:$LINENO: result: Cygwin" >&5
2823 echo "${ECHO_T}Cygwin" >&6; }
2824 CYGWIN=yes
2825 ;;
2826 SunOS*)
2827 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2828 echo "${ECHO_T}SunOS or Solaris" >&6; }
2829
2830 cat >>confdefs.h <<\_ACEOF
2831 #define __EXTENSIONS__ 1
2832 _ACEOF
2833
2834 SUN=yes
2835 ;;
2836 AIX*)
2837 { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2838 echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; }
2839 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2840 ;;
2841 *)
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 ;;
2845 esac
2846
2847 if test "$ac_cv_c_compiler_gnu" = yes; then
2848 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2849 echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
2850
2851 case `$CC -v 2>&1 | tail -n 1` in
2852 *Apple*)
2853 { echo "$as_me:$LINENO: result: yes" >&5
2854 echo "${ECHO_T}yes" >&6; }
2855 AppleGCC=yes
2856 ;;
2857 *)
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2860 AppleGCC=no
2861 ;;
2862 esac
2863
2864 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2865 fi
2866
2867 if test "$ac_cv_prog_cc_g" = yes; then
2868 if test "$Tru" = yes; then
2869 IRC_CFLAGS="$IRC_CFLAGS -g3"
2870 else
2871 IRC_CFLAGS="$IRC_CFLAGS -g"
2872 fi
2873 fi
2874
2875 { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2876 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
2877 if test "$SGS" = "yes"; then
2878 { echo "$as_me:$LINENO: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6; }
2880 else
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885 # Extract the first word of "mkdep", so it can be a program name with args.
2886 set dummy mkdep; ac_word=$2
2887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2889 if test "${ac_cv_path_MKDEP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 case $MKDEP in
2893 [\\/]* | ?:[\\/]*)
2894 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2895 ;;
2896 *)
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 ;;
2913 esac
2914 fi
2915 MKDEP=$ac_cv_path_MKDEP
2916 if test -n "$MKDEP"; then
2917 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2918 echo "${ECHO_T}$MKDEP" >&6; }
2919 else
2920 { echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6; }
2922 fi
2923
2924
2925 # Extract the first word of "makedepend", so it can be a program name with args.
2926 set dummy makedepend; ac_word=$2
2927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 case $MAKEDEPEND in
2933 [\\/]* | ?:[\\/]*)
2934 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2935 ;;
2936 *)
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 ;;
2953 esac
2954 fi
2955 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2956 if test -n "$MAKEDEPEND"; then
2957 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2958 echo "${ECHO_T}$MAKEDEPEND" >&6; }
2959 else
2960 { echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6; }
2962 fi
2963
2964
2965
2966 { echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2967 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
2968
2969 STDOUT="> .depend"
2970
2971 if test "$ac_cv_c_compiler_gnu" = yes; then
2972 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2973 echo "${ECHO_T}gcc -MM" >&6; }
2974 MKDEP="$CC -MM"
2975 elif test ! -z "$MKDEP"; then
2976 { echo "$as_me:$LINENO: result: mkdep" >&5
2977 echo "${ECHO_T}mkdep" >&6; }
2978
2979 if test -z "$Tru"; then
2980 STDOUT=""
2981 else
2982 STDOUT=" 2> /dev/null"
2983 fi
2984 elif test "$SunWorkShop" = yes; then
2985 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2986 echo "${ECHO_T}$CC -xM" >&6; }
2987 MKDEP="$CC -xM"
2988 STDOUT="> .depend 2> /dev/null"
2989 elif test ! -z "$MAKEDEPEND"; then
2990 { echo "$as_me:$LINENO: result: makedepend" >&5
2991 echo "${ECHO_T}makedepend" >&6; }
2992 MKDEP="$MAKEDEPEND -f-"
2993 else
2994 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2995 echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
2996 MKDEP=":"
2997 fi
2998
2999
3000
3001
3002 { echo "$as_me:$LINENO: checking for /dev/null" >&5
3003 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
3004 if test -c /dev/null ; then
3005
3006 cat >>confdefs.h <<\_ACEOF
3007 #define PATH_DEVNULL "/dev/null"
3008 _ACEOF
3009
3010 { echo "$as_me:$LINENO: result: yes" >&5
3011 echo "${ECHO_T}yes" >&6; }
3012 else
3013
3014 cat >>confdefs.h <<\_ACEOF
3015 #define PATH_DEVNULL "devnull.log"
3016 _ACEOF
3017
3018 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
3019 echo "${ECHO_T}no - using devnull.log" >&6; }
3020 fi
3021
3022 if test ! -z "$CFLAGS"; then
3023 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3024 fi
3025
3026
3027 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3028 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3029 if test "${ac_cv_search_strerror+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 ac_func_search_save_LIBS=$LIBS
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039
3040 /* Override any GCC internal prototype to avoid an error.
3041 Use char because int might match the return type of a GCC
3042 builtin and then its argument prototype would still apply. */
3043 #ifdef __cplusplus
3044 extern "C"
3045 #endif
3046 char strerror ();
3047 int
3048 main ()
3049 {
3050 return strerror ();
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 for ac_lib in '' cposix; do
3056 if test -z "$ac_lib"; then
3057 ac_res="none required"
3058 else
3059 ac_res=-l$ac_lib
3060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3061 fi
3062 rm -f conftest.$ac_objext conftest$ac_exeext
3063 if { (ac_try="$ac_link"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_link") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest$ac_exeext &&
3079 $as_test_x conftest$ac_exeext; then
3080 ac_cv_search_strerror=$ac_res
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085
3086 fi
3087
3088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3089 conftest$ac_exeext
3090 if test "${ac_cv_search_strerror+set}" = set; then
3091 break
3092 fi
3093 done
3094 if test "${ac_cv_search_strerror+set}" = set; then
3095 :
3096 else
3097 ac_cv_search_strerror=no
3098 fi
3099 rm conftest.$ac_ext
3100 LIBS=$ac_func_search_save_LIBS
3101 fi
3102 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3103 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3104 ac_res=$ac_cv_search_strerror
3105 if test "$ac_res" != no; then
3106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3107
3108 fi
3109
3110 { echo "$as_me:$LINENO: checking for inline" >&5
3111 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3112 if test "${ac_cv_c_inline+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 ac_cv_c_inline=no
3116 for ac_kw in inline __inline__ __inline; do
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 #ifndef __cplusplus
3124 typedef int foo_t;
3125 static $ac_kw foo_t static_foo () {return 0; }
3126 $ac_kw foo_t foo () {return 0; }
3127 #endif
3128
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_cv_c_inline=$ac_kw
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 test "$ac_cv_c_inline" != no && break
3157 done
3158
3159 fi
3160 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3161 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3162
3163
3164 case $ac_cv_c_inline in
3165 inline | yes) ;;
3166 *)
3167 case $ac_cv_c_inline in
3168 no) ac_val=;;
3169 *) ac_val=$ac_cv_c_inline;;
3170 esac
3171 cat >>confdefs.h <<_ACEOF
3172 #ifndef __cplusplus
3173 #define inline $ac_val
3174 #endif
3175 _ACEOF
3176 ;;
3177 esac
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3185 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3188 CPP=
3189 fi
3190 if test -z "$CPP"; then
3191 if test "${ac_cv_prog_CPP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 # Double quotes because CPP needs to be expanded
3195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3196 do
3197 ac_preproc_ok=false
3198 for ac_c_preproc_warn_flag in '' yes
3199 do
3200 # Use a header file that comes with gcc, so configuring glibc
3201 # with a fresh cross-compiler works.
3202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203 # <limits.h> exists even on freestanding compilers.
3204 # On the NeXT, cc -E runs the code through the compiler's parser,
3205 # not just through cpp. "Syntax error" is here to catch this case.
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #ifdef __STDC__
3213 # include <limits.h>
3214 #else
3215 # include <assert.h>
3216 #endif
3217 Syntax error
3218 _ACEOF
3219 if { (ac_try="$ac_cpp conftest.$ac_ext"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } >/dev/null && {
3232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 }; then
3235 :
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 # Broken: fails on valid input.
3241 continue
3242 fi
3243
3244 rm -f conftest.err conftest.$ac_ext
3245
3246 # OK, works on sane cases. Now check whether nonexistent headers
3247 # can be detected and how.
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254 #include <ac_nonexistent.h>
3255 _ACEOF
3256 if { (ac_try="$ac_cpp conftest.$ac_ext"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 }; then
3272 # Broken: success on invalid input.
3273 continue
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Passes both tests.
3279 ac_preproc_ok=:
3280 break
3281 fi
3282
3283 rm -f conftest.err conftest.$ac_ext
3284
3285 done
3286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287 rm -f conftest.err conftest.$ac_ext
3288 if $ac_preproc_ok; then
3289 break
3290 fi
3291
3292 done
3293 ac_cv_prog_CPP=$CPP
3294
3295 fi
3296 CPP=$ac_cv_prog_CPP
3297 else
3298 ac_cv_prog_CPP=$CPP
3299 fi
3300 { echo "$as_me:$LINENO: result: $CPP" >&5
3301 echo "${ECHO_T}$CPP" >&6; }
3302 ac_preproc_ok=false
3303 for ac_c_preproc_warn_flag in '' yes
3304 do
3305 # Use a header file that comes with gcc, so configuring glibc
3306 # with a fresh cross-compiler works.
3307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308 # <limits.h> exists even on freestanding compilers.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp. "Syntax error" is here to catch this case.
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #ifdef __STDC__
3318 # include <limits.h>
3319 #else
3320 # include <assert.h>
3321 #endif
3322 Syntax error
3323 _ACEOF
3324 if { (ac_try="$ac_cpp conftest.$ac_ext"
3325 case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null && {
3337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 }; then
3340 :
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 # Broken: fails on valid input.
3346 continue
3347 fi
3348
3349 rm -f conftest.err conftest.$ac_ext
3350
3351 # OK, works on sane cases. Now check whether nonexistent headers
3352 # can be detected and how.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include <ac_nonexistent.h>
3360 _ACEOF
3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3377 # Broken: success on invalid input.
3378 continue
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3386 fi
3387
3388 rm -f conftest.err conftest.$ac_ext
3389
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then
3394 :
3395 else
3396 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3401 fi
3402
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
3410 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3411 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3412 if test "${ac_cv_path_GREP+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 # Extract the first word of "grep ggrep" to use in msg output
3416 if test -z "$GREP"; then
3417 set dummy grep ggrep; ac_prog_name=$2
3418 if test "${ac_cv_path_GREP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 ac_path_GREP_found=false
3422 # Loop through the user's path and test for each of PROGNAME-LIST
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3425 do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_prog in grep ggrep; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3431 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3432 # Check for GNU ac_path_GREP and select it if it is found.
3433 # Check for GNU $ac_path_GREP
3434 case `"$ac_path_GREP" --version 2>&1` in
3435 *GNU*)
3436 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3437 *)
3438 ac_count=0
3439 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3440 while :
3441 do
3442 cat "conftest.in" "conftest.in" >"conftest.tmp"
3443 mv "conftest.tmp" "conftest.in"
3444 cp "conftest.in" "conftest.nl"
3445 echo 'GREP' >> "conftest.nl"
3446 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3448 ac_count=`expr $ac_count + 1`
3449 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3450 # Best one so far, save it but keep looking for a better one
3451 ac_cv_path_GREP="$ac_path_GREP"
3452 ac_path_GREP_max=$ac_count
3453 fi
3454 # 10*(2^10) chars as input seems more than enough
3455 test $ac_count -gt 10 && break
3456 done
3457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3458 esac
3459
3460
3461 $ac_path_GREP_found && break 3
3462 done
3463 done
3464
3465 done
3466 IFS=$as_save_IFS
3467
3468
3469 fi
3470
3471 GREP="$ac_cv_path_GREP"
3472 if test -z "$GREP"; then
3473 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3474 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3475 { (exit 1); exit 1; }; }
3476 fi
3477
3478 else
3479 ac_cv_path_GREP=$GREP
3480 fi
3481
3482
3483 fi
3484 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3485 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3486 GREP="$ac_cv_path_GREP"
3487
3488
3489 { echo "$as_me:$LINENO: checking for egrep" >&5
3490 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3491 if test "${ac_cv_path_EGREP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3495 then ac_cv_path_EGREP="$GREP -E"
3496 else
3497 # Extract the first word of "egrep" to use in msg output
3498 if test -z "$EGREP"; then
3499 set dummy egrep; ac_prog_name=$2
3500 if test "${ac_cv_path_EGREP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 ac_path_EGREP_found=false
3504 # Loop through the user's path and test for each of PROGNAME-LIST
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_prog in egrep; do
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3513 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3514 # Check for GNU ac_path_EGREP and select it if it is found.
3515 # Check for GNU $ac_path_EGREP
3516 case `"$ac_path_EGREP" --version 2>&1` in
3517 *GNU*)
3518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3519 *)
3520 ac_count=0
3521 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3522 while :
3523 do
3524 cat "conftest.in" "conftest.in" >"conftest.tmp"
3525 mv "conftest.tmp" "conftest.in"
3526 cp "conftest.in" "conftest.nl"
3527 echo 'EGREP' >> "conftest.nl"
3528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3530 ac_count=`expr $ac_count + 1`
3531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3532 # Best one so far, save it but keep looking for a better one
3533 ac_cv_path_EGREP="$ac_path_EGREP"
3534 ac_path_EGREP_max=$ac_count
3535 fi
3536 # 10*(2^10) chars as input seems more than enough
3537 test $ac_count -gt 10 && break
3538 done
3539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3540 esac
3541
3542
3543 $ac_path_EGREP_found && break 3
3544 done
3545 done
3546
3547 done
3548 IFS=$as_save_IFS
3549
3550
3551 fi
3552
3553 EGREP="$ac_cv_path_EGREP"
3554 if test -z "$EGREP"; then
3555 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3556 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3557 { (exit 1); exit 1; }; }
3558 fi
3559
3560 else
3561 ac_cv_path_EGREP=$EGREP
3562 fi
3563
3564
3565 fi
3566 fi
3567 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3568 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3569 EGREP="$ac_cv_path_EGREP"
3570
3571
3572 if test $ac_cv_c_compiler_gnu = yes; then
3573 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3574 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 ac_pattern="Autoconf.*'x'"
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <sgtty.h>
3586 Autoconf TIOCGETP
3587 _ACEOF
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3590 ac_cv_prog_gcc_traditional=yes
3591 else
3592 ac_cv_prog_gcc_traditional=no
3593 fi
3594 rm -f conftest*
3595
3596
3597 if test $ac_cv_prog_gcc_traditional = no; then
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <termio.h>
3605 Autoconf TCGETA
3606 _ACEOF
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3609 ac_cv_prog_gcc_traditional=yes
3610 fi
3611 rm -f conftest*
3612
3613 fi
3614 fi
3615 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3616 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3617 if test $ac_cv_prog_gcc_traditional = yes; then
3618 CC="$CC -traditional"
3619 fi
3620 fi
3621
3622 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3623 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3624 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3625 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 cat >conftest.make <<\_ACEOF
3629 SHELL = /bin/sh
3630 all:
3631 @echo '@@@%%%=$(MAKE)=@@@%%%'
3632 _ACEOF
3633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3634 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3635 *@@@%%%=?*=@@@%%%*)
3636 eval ac_cv_prog_make_${ac_make}_set=yes;;
3637 *)
3638 eval ac_cv_prog_make_${ac_make}_set=no;;
3639 esac
3640 rm -f conftest.make
3641 fi
3642 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 SET_MAKE=
3646 else
3647 { echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6; }
3649 SET_MAKE="MAKE=${MAKE-make}"
3650 fi
3651
3652 # Find a good install program. We prefer a C program (faster),
3653 # so one script is as good as another. But avoid the broken or
3654 # incompatible versions:
3655 # SysV /etc/install, /usr/sbin/install
3656 # SunOS /usr/etc/install
3657 # IRIX /sbin/install
3658 # AIX /bin/install
3659 # AmigaOS /C/install, which installs bootblocks on floppy discs
3660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663 # OS/2's system install, which has a completely different semantic
3664 # ./install, which can be erroneously created by make from ./install.sh.
3665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3667 if test -z "$INSTALL"; then
3668 if test "${ac_cv_path_install+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 # Account for people who put trailing slashes in PATH elements.
3677 case $as_dir/ in
3678 ./ | .// | /cC/* | \
3679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3681 /usr/ucb/* ) ;;
3682 *)
3683 # OSF1 and SCO ODT 3.0 have their own names for install.
3684 # Don't use installbsd from OSF since it installs stuff as root
3685 # by default.
3686 for ac_prog in ginstall scoinst install; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3689 if test $ac_prog = install &&
3690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # AIX install. It has an incompatible calling convention.
3692 :
3693 elif test $ac_prog = install &&
3694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # program-specific install script used by HP pwplus--don't use.
3696 :
3697 else
3698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3699 break 3
3700 fi
3701 fi
3702 done
3703 done
3704 ;;
3705 esac
3706 done
3707 IFS=$as_save_IFS
3708
3709
3710 fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3713 else
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL=$ac_install_sh
3719 fi
3720 fi
3721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3722 echo "${ECHO_T}$INSTALL" >&6; }
3723
3724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725 # It thinks the first close brace ends the variable substitution.
3726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3727
3728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3729
3730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
3732 # Extract the first word of "rm", so it can be a program name with args.
3733 set dummy rm; ac_word=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_RM+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 case $RM in
3740 [\\/]* | ?:[\\/]*)
3741 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3742 ;;
3743 *)
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755 done
3756 done
3757 IFS=$as_save_IFS
3758
3759 ;;
3760 esac
3761 fi
3762 RM=$ac_cv_path_RM
3763 if test -n "$RM"; then
3764 { echo "$as_me:$LINENO: result: $RM" >&5
3765 echo "${ECHO_T}$RM" >&6; }
3766 else
3767 { echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; }
3769 fi
3770
3771
3772 # Extract the first word of "cp", so it can be a program name with args.
3773 set dummy cp; ac_word=$2
3774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3776 if test "${ac_cv_path_CP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 case $CP in
3780 [\\/]* | ?:[\\/]*)
3781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3782 ;;
3783 *)
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 ;;
3800 esac
3801 fi
3802 CP=$ac_cv_path_CP
3803 if test -n "$CP"; then
3804 { echo "$as_me:$LINENO: result: $CP" >&5
3805 echo "${ECHO_T}$CP" >&6; }
3806 else
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3809 fi
3810
3811
3812 # Extract the first word of "mv", so it can be a program name with args.
3813 set dummy mv; ac_word=$2
3814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3816 if test "${ac_cv_path_MV+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 case $MV in
3820 [\\/]* | ?:[\\/]*)
3821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3822 ;;
3823 *)
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3826 do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837 IFS=$as_save_IFS
3838
3839 ;;
3840 esac
3841 fi
3842 MV=$ac_cv_path_MV
3843 if test -n "$MV"; then
3844 { echo "$as_me:$LINENO: result: $MV" >&5
3845 echo "${ECHO_T}$MV" >&6; }
3846 else
3847 { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3849 fi
3850
3851
3852 # Extract the first word of "ln", so it can be a program name with args.
3853 set dummy ln; ac_word=$2
3854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_LN+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 case $LN in
3860 [\\/]* | ?:[\\/]*)
3861 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3862 ;;
3863 *)
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 ;;
3880 esac
3881 fi
3882 LN=$ac_cv_path_LN
3883 if test -n "$LN"; then
3884 { echo "$as_me:$LINENO: result: $LN" >&5
3885 echo "${ECHO_T}$LN" >&6; }
3886 else
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3889 fi
3890
3891
3892 # Extract the first word of "sed", so it can be a program name with args.
3893 set dummy sed; ac_word=$2
3894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_SED+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 case $SED in
3900 [\\/]* | ?:[\\/]*)
3901 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3902 ;;
3903 *)
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 ;;
3920 esac
3921 fi
3922 SED=$ac_cv_path_SED
3923 if test -n "$SED"; then
3924 { echo "$as_me:$LINENO: result: $SED" >&5
3925 echo "${ECHO_T}$SED" >&6; }
3926 else
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3929 fi
3930
3931
3932 # Extract the first word of "ar", so it can be a program name with args.
3933 set dummy ar; ac_word=$2
3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_AR+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 case $AR in
3940 [\\/]* | ?:[\\/]*)
3941 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3942 ;;
3943 *)
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 ;;
3960 esac
3961 fi
3962 AR=$ac_cv_path_AR
3963 if test -n "$AR"; then
3964 { echo "$as_me:$LINENO: result: $AR" >&5
3965 echo "${ECHO_T}$AR" >&6; }
3966 else
3967 { echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6; }
3969 fi
3970
3971
3972 # Extract the first word of "ld", so it can be a program name with args.
3973 set dummy ld; ac_word=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_path_LD+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 case $LD in
3980 [\\/]* | ?:[\\/]*)
3981 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3982 ;;
3983 *)
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 ;;
4000 esac
4001 fi
4002 LD=$ac_cv_path_LD
4003 if test -n "$LD"; then
4004 { echo "$as_me:$LINENO: result: $LD" >&5
4005 echo "${ECHO_T}$LD" >&6; }
4006 else
4007 { echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6; }
4009 fi
4010
4011
4012 # Extract the first word of "ranlib", so it can be a program name with args.
4013 set dummy ranlib; ac_word=$2
4014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_RANLIB+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 case $RANLIB in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4022 ;;
4023 *)
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 ;;
4040 esac
4041 fi
4042 RANLIB=$ac_cv_path_RANLIB
4043 if test -n "$RANLIB"; then
4044 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4045 echo "${ECHO_T}$RANLIB" >&6; }
4046 else
4047 { echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6; }
4049 fi
4050
4051
4052 # Extract the first word of "touch", so it can be a program name with args.
4053 set dummy touch; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_path_TOUCH+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 case $TOUCH in
4060 [\\/]* | ?:[\\/]*)
4061 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4062 ;;
4063 *)
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079 ;;
4080 esac
4081 fi
4082 TOUCH=$ac_cv_path_TOUCH
4083 if test -n "$TOUCH"; then
4084 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4085 echo "${ECHO_T}$TOUCH" >&6; }
4086 else
4087 { echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6; }
4089 fi
4090
4091
4092
4093 for ac_prog in 'bison -y' byacc
4094 do
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4099 if test "${ac_cv_prog_YACC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 if test -n "$YACC"; then
4103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_YACC="$ac_prog"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 YACC=$ac_cv_prog_YACC
4123 if test -n "$YACC"; then
4124 { echo "$as_me:$LINENO: result: $YACC" >&5
4125 echo "${ECHO_T}$YACC" >&6; }
4126 else
4127 { echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6; }
4129 fi
4130
4131
4132 test -n "$YACC" && break
4133 done
4134 test -n "$YACC" || YACC="yacc"
4135
4136
4137 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4138 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4139 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4140 { (exit 1); exit 1; }; }
4141 fi
4142
4143 for ac_prog in flex lex
4144 do
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_LEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$LEX"; then
4153 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_LEX="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 LEX=$ac_cv_prog_LEX
4173 if test -n "$LEX"; then
4174 { echo "$as_me:$LINENO: result: $LEX" >&5
4175 echo "${ECHO_T}$LEX" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4179 fi
4180
4181
4182 test -n "$LEX" && break
4183 done
4184 test -n "$LEX" || LEX=":"
4185
4186 if test "x$LEX" != "x:"; then
4187 cat >conftest.l <<_ACEOF
4188 %%
4189 a { ECHO; }
4190 b { REJECT; }
4191 c { yymore (); }
4192 d { yyless (1); }
4193 e { yyless (input () != 0); }
4194 f { unput (yytext[0]); }
4195 . { BEGIN INITIAL; }
4196 %%
4197 #ifdef YYTEXT_POINTER
4198 extern char *yytext;
4199 #endif
4200 int
4201 main (void)
4202 {
4203 return ! yylex () + ! yywrap ();
4204 }
4205 _ACEOF
4206 { (ac_try="$LEX conftest.l"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$LEX conftest.l") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }
4216 { echo "$as_me:$LINENO: checking lex output file root" >&5
4217 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4218 if test "${ac_cv_prog_lex_root+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221
4222 if test -f lex.yy.c; then
4223 ac_cv_prog_lex_root=lex.yy
4224 elif test -f lexyy.c; then
4225 ac_cv_prog_lex_root=lexyy
4226 else
4227 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4228 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4229 { (exit 1); exit 1; }; }
4230 fi
4231 fi
4232 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4233 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4234 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4235
4236 if test -z "${LEXLIB+set}"; then
4237 { echo "$as_me:$LINENO: checking lex library" >&5
4238 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4239 if test "${ac_cv_lib_lex+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242
4243 ac_save_LIBS=$LIBS
4244 ac_cv_lib_lex='none needed'
4245 for ac_lib in '' -lfl -ll; do
4246 LIBS="$ac_lib $ac_save_LIBS"
4247 cat >conftest.$ac_ext <<_ACEOF
4248 `cat $LEX_OUTPUT_ROOT.c`
4249 _ACEOF
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (ac_try="$ac_link"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } && {
4264 test -z "$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest$ac_exeext &&
4267 $as_test_x conftest$ac_exeext; then
4268 ac_cv_lib_lex=$ac_lib
4269 else
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273
4274 fi
4275
4276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4277 conftest$ac_exeext conftest.$ac_ext
4278 test "$ac_cv_lib_lex" != 'none needed' && break
4279 done
4280 LIBS=$ac_save_LIBS
4281
4282 fi
4283 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4284 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4285 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4286 fi
4287
4288
4289 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4290 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4291 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 # POSIX says lex can declare yytext either as a pointer or an array; the
4295 # default is implementation-dependent. Figure out which it is, since
4296 # not all implementations provide the %pointer and %array declarations.
4297 ac_cv_prog_lex_yytext_pointer=no
4298 ac_save_LIBS=$LIBS
4299 LIBS="$LEXLIB $ac_save_LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 #define YYTEXT_POINTER 1
4302 `cat $LEX_OUTPUT_ROOT.c`
4303 _ACEOF
4304 rm -f conftest.$ac_objext conftest$ac_exeext
4305 if { (ac_try="$ac_link"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest$ac_exeext &&
4321 $as_test_x conftest$ac_exeext; then
4322 ac_cv_prog_lex_yytext_pointer=yes
4323 else
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327
4328 fi
4329
4330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4331 conftest$ac_exeext conftest.$ac_ext
4332 LIBS=$ac_save_LIBS
4333
4334 fi
4335 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4336 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4337 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4338
4339 cat >>confdefs.h <<\_ACEOF
4340 #define YYTEXT_POINTER 1
4341 _ACEOF
4342
4343 fi
4344 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4345
4346 fi
4347
4348 if test "$LEX" = ":"; then
4349 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4350 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4351 { (exit 1); exit 1; }; }
4352 fi
4353
4354 if test "$libexecdir" = '${exec_prefix}/libexec' &&
4355 test "$localstatedir" = '${prefix}/var'; then
4356 libexecdir='${bindir}'
4357 localstatedir='${prefix}'
4358 fi
4359
4360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4362 if test "${ac_cv_header_stdc+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <stdlib.h>
4372 #include <stdarg.h>
4373 #include <string.h>
4374 #include <float.h>
4375
4376 int
4377 main ()
4378 {
4379
4380 ;
4381 return 0;
4382 }
4383 _ACEOF
4384 rm -f conftest.$ac_objext
4385 if { (ac_try="$ac_compile"
4386 case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_compile") 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest.$ac_objext; then
4401 ac_cv_header_stdc=yes
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ac_cv_header_stdc=no
4407 fi
4408
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410
4411 if test $ac_cv_header_stdc = yes; then
4412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 #include <string.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "memchr" >/dev/null 2>&1; then
4424 :
4425 else
4426 ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #include <stdlib.h>
4441
4442 _ACEOF
4443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4444 $EGREP "free" >/dev/null 2>&1; then
4445 :
4446 else
4447 ac_cv_header_stdc=no
4448 fi
4449 rm -f conftest*
4450
4451 fi
4452
4453 if test $ac_cv_header_stdc = yes; then
4454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4455 if test "$cross_compiling" = yes; then
4456 :
4457 else
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <ctype.h>
4465 #include <stdlib.h>
4466 #if ((' ' & 0x0FF) == 0x020)
4467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4469 #else
4470 # define ISLOWER(c) \
4471 (('a' <= (c) && (c) <= 'i') \
4472 || ('j' <= (c) && (c) <= 'r') \
4473 || ('s' <= (c) && (c) <= 'z'))
4474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4475 #endif
4476
4477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4478 int
4479 main ()
4480 {
4481 int i;
4482 for (i = 0; i < 256; i++)
4483 if (XOR (islower (i), ISLOWER (i))
4484 || toupper (i) != TOUPPER (i))
4485 return 2;
4486 return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest$ac_exeext
4490 if { (ac_try="$ac_link"
4491 case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_link") 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4500 { (case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_try") 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 :
4510 else
4511 echo "$as_me: program exited with status $ac_status" >&5
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ( exit $ac_status )
4516 ac_cv_header_stdc=no
4517 fi
4518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4519 fi
4520
4521
4522 fi
4523 fi
4524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4526 if test $ac_cv_header_stdc = yes; then
4527
4528 cat >>confdefs.h <<\_ACEOF
4529 #define STDC_HEADERS 1
4530 _ACEOF
4531
4532 fi
4533
4534
4535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4546 inttypes.h stdint.h unistd.h
4547 do
4548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4561
4562 #include <$ac_header>
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (ac_try="$ac_compile"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
4581 eval "$as_ac_Header=yes"
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 eval "$as_ac_Header=no"
4587 fi
4588
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 fi
4591 ac_res=`eval echo '${'$as_ac_Header'}'`
4592 { echo "$as_me:$LINENO: result: $ac_res" >&5
4593 echo "${ECHO_T}$ac_res" >&6; }
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<_ACEOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4598
4599 fi
4600
4601 done
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
4616 do
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 fi
4624 ac_res=`eval echo '${'$as_ac_Header'}'`
4625 { echo "$as_me:$LINENO: result: $ac_res" >&5
4626 echo "${ECHO_T}$ac_res" >&6; }
4627 else
4628 # Is the header compilable?
4629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4638 #include <$ac_header>
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 ac_header_compiler=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_header_compiler=no
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4667 echo "${ECHO_T}$ac_header_compiler" >&6; }
4668
4669 # Is the header present?
4670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <$ac_header>
4679 _ACEOF
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 }; then
4696 ac_header_preproc=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_header_preproc=no
4702 fi
4703
4704 rm -f conftest.err conftest.$ac_ext
4705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6; }
4707
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4710 yes:no: )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc=yes
4716 ;;
4717 no:yes:* )
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4730
4731 ;;
4732 esac
4733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739 fi
4740 ac_res=`eval echo '${'$as_ac_Header'}'`
4741 { echo "$as_me:$LINENO: result: $ac_res" >&5
4742 echo "${ECHO_T}$ac_res" >&6; }
4743
4744 fi
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748 _ACEOF
4749
4750 fi
4751
4752 done
4753
4754
4755
4756 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4758 if test "${ac_cv_c_const+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767
4768 int
4769 main ()
4770 {
4771 /* FIXME: Include the comments suggested by Paul. */
4772 #ifndef __cplusplus
4773 /* Ultrix mips cc rejects this. */
4774 typedef int charset[2];
4775 const charset cs;
4776 /* SunOS 4.1.1 cc rejects this. */
4777 char const *const *pcpcc;
4778 char **ppc;
4779 /* NEC SVR4.0.2 mips cc rejects this. */
4780 struct point {int x, y;};
4781 static struct point const zero = {0,0};
4782 /* AIX XL C 1.02.0.0 rejects this.
4783 It does not let you subtract one const X* pointer from another in
4784 an arm of an if-expression whose if-part is not a constant
4785 expression */
4786 const char *g = "string";
4787 pcpcc = &g + (g ? g-g : 0);
4788 /* HPUX 7.0 cc rejects these. */
4789 ++pcpcc;
4790 ppc = (char**) pcpcc;
4791 pcpcc = (char const *const *) ppc;
4792 { /* SCO 3.2v4 cc rejects this. */
4793 char *t;
4794 char const *s = 0 ? (char *) 0 : (char const *) 0;
4795
4796 *t++ = 0;
4797 if (s) return 0;
4798 }
4799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4800 int x[] = {25, 17};
4801 const int *foo = &x[0];
4802 ++foo;
4803 }
4804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4805 typedef const int *iptr;
4806 iptr p = 0;
4807 ++p;
4808 }
4809 { /* AIX XL C 1.02.0.0 rejects this saying
4810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4811 struct s { int j; const int *ap[3]; };
4812 struct s *b; b->j = 5;
4813 }
4814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4815 const int foo = 10;
4816 if (!foo) return 0;
4817 }
4818 return !cs[0] && !zero.x;
4819 #endif
4820
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compile") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
4842 ac_cv_c_const=yes
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_cv_c_const=no
4848 fi
4849
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4853 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4854 if test $ac_cv_c_const = no; then
4855
4856 cat >>confdefs.h <<\_ACEOF
4857 #define const
4858 _ACEOF
4859
4860 fi
4861
4862 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4863 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4864 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4865 if test "${ac_cv_c_bigendian+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 # See if sys/param.h defines the BYTE_ORDER macro.
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 #include <sys/types.h>
4876 #include <sys/param.h>
4877
4878 int
4879 main ()
4880 {
4881 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4882 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4883 bogus endian macros
4884 #endif
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (ac_try="$ac_compile"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4907 # It does; now see whether it defined to BIG_ENDIAN or not.
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <sys/types.h>
4915 #include <sys/param.h>
4916
4917 int
4918 main ()
4919 {
4920 #if BYTE_ORDER != BIG_ENDIAN
4921 not big endian
4922 #endif
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (ac_try="$ac_compile"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 ac_cv_c_bigendian=yes
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 ac_cv_c_bigendian=no
4951 fi
4952
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # It does not; compile a test program.
4959 if test "$cross_compiling" = yes; then
4960 # try to guess the endianness by grepping values into an object file
4961 ac_cv_c_bigendian=unknown
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4969 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4970 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4971 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4972 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4973 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4974 int
4975 main ()
4976 {
4977 _ascii (); _ebcdic ();
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (ac_try="$ac_compile"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_compile") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest.$ac_objext; then
4999 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5000 ac_cv_c_bigendian=yes
5001 fi
5002 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5003 if test "$ac_cv_c_bigendian" = unknown; then
5004 ac_cv_c_bigendian=no
5005 else
5006 # finding both strings is unlikely to happen, but who knows?
5007 ac_cv_c_bigendian=unknown
5008 fi
5009 fi
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 else
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 int
5027 main ()
5028 {
5029
5030 /* Are we little or big endian? From Harbison&Steele. */
5031 union
5032 {
5033 long int l;
5034 char c[sizeof (long int)];
5035 } u;
5036 u.l = 1;
5037 return u.c[sizeof (long int) - 1] == 1;
5038
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 rm -f conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054 { (case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_c_bigendian=no
5064 else
5065 echo "$as_me: program exited with status $ac_status" >&5
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 ( exit $ac_status )
5070 ac_cv_c_bigendian=yes
5071 fi
5072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5073 fi
5074
5075
5076 fi
5077
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 fi
5080 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5081 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5082 case $ac_cv_c_bigendian in
5083 yes)
5084
5085 cat >>confdefs.h <<\_ACEOF
5086 #define WORDS_BIGENDIAN 1
5087 _ACEOF
5088 ;;
5089 no)
5090 ;;
5091 *)
5092 { { echo "$as_me:$LINENO: error: unknown endianness
5093 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5094 echo "$as_me: error: unknown endianness
5095 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac
5098
5099 fi
5100 { echo "$as_me:$LINENO: checking for pid_t" >&5
5101 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5102 if test "${ac_cv_type_pid_t+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 typedef pid_t ac__type_new_;
5113 int
5114 main ()
5115 {
5116 if ((ac__type_new_ *) 0)
5117 return 0;
5118 if (sizeof (ac__type_new_))
5119 return 0;
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
5141 ac_cv_type_pid_t=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_cv_type_pid_t=no
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5153 if test $ac_cv_type_pid_t = yes; then
5154 :
5155 else
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define pid_t int
5159 _ACEOF
5160
5161 fi
5162
5163 { echo "$as_me:$LINENO: checking for size_t" >&5
5164 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5165 if test "${ac_cv_type_size_t+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 typedef size_t ac__type_new_;
5176 int
5177 main ()
5178 {
5179 if ((ac__type_new_ *) 0)
5180 return 0;
5181 if (sizeof (ac__type_new_))
5182 return 0;
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5204 ac_cv_type_size_t=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_type_size_t=no
5210 fi
5211
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5215 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5216 if test $ac_cv_type_size_t = yes; then
5217 :
5218 else
5219
5220 cat >>confdefs.h <<_ACEOF
5221 #define size_t unsigned int
5222 _ACEOF
5223
5224 fi
5225
5226 { echo "$as_me:$LINENO: checking for short" >&5
5227 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5228 if test "${ac_cv_type_short+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5238 typedef short ac__type_new_;
5239 int
5240 main ()
5241 {
5242 if ((ac__type_new_ *) 0)
5243 return 0;
5244 if (sizeof (ac__type_new_))
5245 return 0;
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5267 ac_cv_type_short=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_cv_type_short=no
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5278 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5279
5280 # The cast to long int works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 { echo "$as_me:$LINENO: checking size of short" >&5
5285 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5286 if test "${ac_cv_sizeof_short+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 if test "$cross_compiling" = yes; then
5290 # Depending upon the size, compute the lo and hi bounds.
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 typedef short ac__type_sizeof_;
5299 int
5300 main ()
5301 {
5302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5303 test_array [0] = 0
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5326 ac_lo=0 ac_mid=0
5327 while :; do
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 typedef short ac__type_sizeof_;
5336 int
5337 main ()
5338 {
5339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5340 test_array [0] = 0
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 ac_hi=$ac_mid; break
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_lo=`expr $ac_mid + 1`
5369 if test $ac_lo -le $ac_mid; then
5370 ac_lo= ac_hi=
5371 break
5372 fi
5373 ac_mid=`expr 2 '*' $ac_mid + 1`
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 done
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 typedef short ac__type_sizeof_;
5390 int
5391 main ()
5392 {
5393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5394 test_array [0] = 0
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_hi=-1 ac_mid=-1
5418 while :; do
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5426 typedef short ac__type_sizeof_;
5427 int
5428 main ()
5429 {
5430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5431 test_array [0] = 0
5432
5433 ;
5434 return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
5454 ac_lo=$ac_mid; break
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_hi=`expr '(' $ac_mid ')' - 1`
5460 if test $ac_mid -le $ac_hi; then
5461 ac_lo= ac_hi=
5462 break
5463 fi
5464 ac_mid=`expr 2 '*' $ac_mid`
5465 fi
5466
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 done
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_lo= ac_hi=
5474 fi
5475
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 # Binary search between lo and hi bounds.
5481 while test "x$ac_lo" != "x$ac_hi"; do
5482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 typedef short ac__type_sizeof_;
5491 int
5492 main ()
5493 {
5494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5495 test_array [0] = 0
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_hi=$ac_mid
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_lo=`expr '(' $ac_mid ')' + 1`
5524 fi
5525
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 done
5528 case $ac_lo in
5529 ?*) ac_cv_sizeof_short=$ac_lo;;
5530 '') if test "$ac_cv_type_short" = yes; then
5531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5532 See \`config.log' for more details." >&5
5533 echo "$as_me: error: cannot compute sizeof (short)
5534 See \`config.log' for more details." >&2;}
5535 { (exit 77); exit 77; }; }
5536 else
5537 ac_cv_sizeof_short=0
5538 fi ;;
5539 esac
5540 else
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5548 typedef short ac__type_sizeof_;
5549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5551 #include <stdio.h>
5552 #include <stdlib.h>
5553 int
5554 main ()
5555 {
5556
5557 FILE *f = fopen ("conftest.val", "w");
5558 if (! f)
5559 return 1;
5560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5561 {
5562 long int i = longval ();
5563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5564 return 1;
5565 fprintf (f, "%ld\n", i);
5566 }
5567 else
5568 {
5569 unsigned long int i = ulongval ();
5570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5571 return 1;
5572 fprintf (f, "%lu\n", i);
5573 }
5574 return ferror (f) || fclose (f) != 0;
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest$ac_exeext
5581 if { (ac_try="$ac_link"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_link") 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_sizeof_short=`cat conftest.val`
5601 else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ( exit $ac_status )
5607 if test "$ac_cv_type_short" = yes; then
5608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5609 See \`config.log' for more details." >&5
5610 echo "$as_me: error: cannot compute sizeof (short)
5611 See \`config.log' for more details." >&2;}
5612 { (exit 77); exit 77; }; }
5613 else
5614 ac_cv_sizeof_short=0
5615 fi
5616 fi
5617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 fi
5619 rm -f conftest.val
5620 fi
5621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5622 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5623
5624
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define SIZEOF_SHORT $ac_cv_sizeof_short
5628 _ACEOF
5629
5630
5631 { echo "$as_me:$LINENO: checking for int" >&5
5632 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5633 if test "${ac_cv_type_int+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5643 typedef int ac__type_new_;
5644 int
5645 main ()
5646 {
5647 if ((ac__type_new_ *) 0)
5648 return 0;
5649 if (sizeof (ac__type_new_))
5650 return 0;
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_type_int=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_cv_type_int=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5683 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5684
5685 # The cast to long int works around a bug in the HP C Compiler
5686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5688 # This bug is HP SR number 8606223364.
5689 { echo "$as_me:$LINENO: checking size of int" >&5
5690 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5691 if test "${ac_cv_sizeof_int+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5703 typedef int ac__type_sizeof_;
5704 int
5705 main ()
5706 {
5707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5708 test_array [0] = 0
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5716 case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
5731 ac_lo=0 ac_mid=0
5732 while :; do
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 typedef int ac__type_sizeof_;
5741 int
5742 main ()
5743 {
5744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5745 test_array [0] = 0
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_hi=$ac_mid; break
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_lo=`expr $ac_mid + 1`
5774 if test $ac_lo -le $ac_mid; then
5775 ac_lo= ac_hi=
5776 break
5777 fi
5778 ac_mid=`expr 2 '*' $ac_mid + 1`
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 done
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 typedef int ac__type_sizeof_;
5795 int
5796 main ()
5797 {
5798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5799 test_array [0] = 0
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compile") 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } && {
5819 test -z "$ac_c_werror_flag" ||
5820 test ! -s conftest.err
5821 } && test -s conftest.$ac_objext; then
5822 ac_hi=-1 ac_mid=-1
5823 while :; do
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5831 typedef int ac__type_sizeof_;
5832 int
5833 main ()
5834 {
5835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5836 test_array [0] = 0
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 ac_lo=$ac_mid; break
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_hi=`expr '(' $ac_mid ')' - 1`
5865 if test $ac_mid -le $ac_hi; then
5866 ac_lo= ac_hi=
5867 break
5868 fi
5869 ac_mid=`expr 2 '*' $ac_mid`
5870 fi
5871
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 done
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 ac_lo= ac_hi=
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5895 typedef int ac__type_sizeof_;
5896 int
5897 main ()
5898 {
5899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5900 test_array [0] = 0
5901
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5923 ac_hi=$ac_mid
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ac_lo=`expr '(' $ac_mid ')' + 1`
5929 fi
5930
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 done
5933 case $ac_lo in
5934 ?*) ac_cv_sizeof_int=$ac_lo;;
5935 '') if test "$ac_cv_type_int" = yes; then
5936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5937 See \`config.log' for more details." >&5
5938 echo "$as_me: error: cannot compute sizeof (int)
5939 See \`config.log' for more details." >&2;}
5940 { (exit 77); exit 77; }; }
5941 else
5942 ac_cv_sizeof_int=0
5943 fi ;;
5944 esac
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 $ac_includes_default
5953 typedef int ac__type_sizeof_;
5954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5956 #include <stdio.h>
5957 #include <stdlib.h>
5958 int
5959 main ()
5960 {
5961
5962 FILE *f = fopen ("conftest.val", "w");
5963 if (! f)
5964 return 1;
5965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5966 {
5967 long int i = longval ();
5968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5969 return 1;
5970 fprintf (f, "%ld\n", i);
5971 }
5972 else
5973 {
5974 unsigned long int i = ulongval ();
5975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5976 return 1;
5977 fprintf (f, "%lu\n", i);
5978 }
5979 return ferror (f) || fclose (f) != 0;
5980
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest$ac_exeext
5986 if { (ac_try="$ac_link"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_link") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_int=`cat conftest.val`
6006 else
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ( exit $ac_status )
6012 if test "$ac_cv_type_int" = yes; then
6013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6014 See \`config.log' for more details." >&5
6015 echo "$as_me: error: cannot compute sizeof (int)
6016 See \`config.log' for more details." >&2;}
6017 { (exit 77); exit 77; }; }
6018 else
6019 ac_cv_sizeof_int=0
6020 fi
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 rm -f conftest.val
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6027 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6028
6029
6030
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF_INT $ac_cv_sizeof_int
6033 _ACEOF
6034
6035
6036 { echo "$as_me:$LINENO: checking for long" >&5
6037 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6038 if test "${ac_cv_type_long+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 typedef long ac__type_new_;
6049 int
6050 main ()
6051 {
6052 if ((ac__type_new_ *) 0)
6053 return 0;
6054 if (sizeof (ac__type_new_))
6055 return 0;
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
6077 ac_cv_type_long=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_cv_type_long=no
6083 fi
6084
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 fi
6087 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6088 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6089
6090 # The cast to long int works around a bug in the HP C Compiler
6091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093 # This bug is HP SR number 8606223364.
6094 { echo "$as_me:$LINENO: checking size of long" >&5
6095 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6096 if test "${ac_cv_sizeof_long+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 if test "$cross_compiling" = yes; then
6100 # Depending upon the size, compute the lo and hi bounds.
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6108 typedef long ac__type_sizeof_;
6109 int
6110 main ()
6111 {
6112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6113 test_array [0] = 0
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (ac_try="$ac_compile"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6136 ac_lo=0 ac_mid=0
6137 while :; do
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6145 typedef long ac__type_sizeof_;
6146 int
6147 main ()
6148 {
6149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6150 test_array [0] = 0
6151
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
6173 ac_hi=$ac_mid; break
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ac_lo=`expr $ac_mid + 1`
6179 if test $ac_lo -le $ac_mid; then
6180 ac_lo= ac_hi=
6181 break
6182 fi
6183 ac_mid=`expr 2 '*' $ac_mid + 1`
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 done
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6199 typedef long ac__type_sizeof_;
6200 int
6201 main ()
6202 {
6203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6204 test_array [0] = 0
6205
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (ac_try="$ac_compile"
6212 case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_hi=-1 ac_mid=-1
6228 while :; do
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 typedef long ac__type_sizeof_;
6237 int
6238 main ()
6239 {
6240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6241 test_array [0] = 0
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest.$ac_objext; then
6264 ac_lo=$ac_mid; break
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_hi=`expr '(' $ac_mid ')' - 1`
6270 if test $ac_mid -le $ac_hi; then
6271 ac_lo= ac_hi=
6272 break
6273 fi
6274 ac_mid=`expr 2 '*' $ac_mid`
6275 fi
6276
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 done
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_lo= ac_hi=
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 fi
6288
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 # Binary search between lo and hi bounds.
6291 while test "x$ac_lo" != "x$ac_hi"; do
6292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 typedef long ac__type_sizeof_;
6301 int
6302 main ()
6303 {
6304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6305 test_array [0] = 0
6306
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_hi=$ac_mid
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_lo=`expr '(' $ac_mid ')' + 1`
6334 fi
6335
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 done
6338 case $ac_lo in
6339 ?*) ac_cv_sizeof_long=$ac_lo;;
6340 '') if test "$ac_cv_type_long" = yes; then
6341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6342 See \`config.log' for more details." >&5
6343 echo "$as_me: error: cannot compute sizeof (long)
6344 See \`config.log' for more details." >&2;}
6345 { (exit 77); exit 77; }; }
6346 else
6347 ac_cv_sizeof_long=0
6348 fi ;;
6349 esac
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 typedef long ac__type_sizeof_;
6359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6361 #include <stdio.h>
6362 #include <stdlib.h>
6363 int
6364 main ()
6365 {
6366
6367 FILE *f = fopen ("conftest.val", "w");
6368 if (! f)
6369 return 1;
6370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6371 {
6372 long int i = longval ();
6373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6374 return 1;
6375 fprintf (f, "%ld\n", i);
6376 }
6377 else
6378 {
6379 unsigned long int i = ulongval ();
6380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6381 return 1;
6382 fprintf (f, "%lu\n", i);
6383 }
6384 return ferror (f) || fclose (f) != 0;
6385
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest$ac_exeext
6391 if { (ac_try="$ac_link"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_link") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_sizeof_long=`cat conftest.val`
6411 else
6412 echo "$as_me: program exited with status $ac_status" >&5
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ( exit $ac_status )
6417 if test "$ac_cv_type_long" = yes; then
6418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6419 See \`config.log' for more details." >&5
6420 echo "$as_me: error: cannot compute sizeof (long)
6421 See \`config.log' for more details." >&2;}
6422 { (exit 77); exit 77; }; }
6423 else
6424 ac_cv_sizeof_long=0
6425 fi
6426 fi
6427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 rm -f conftest.val
6430 fi
6431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6432 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6433
6434
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define SIZEOF_LONG $ac_cv_sizeof_long
6438 _ACEOF
6439
6440
6441 { echo "$as_me:$LINENO: checking for long long" >&5
6442 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6443 if test "${ac_cv_type_long_long+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 $ac_includes_default
6453 typedef long long ac__type_new_;
6454 int
6455 main ()
6456 {
6457 if ((ac__type_new_ *) 0)
6458 return 0;
6459 if (sizeof (ac__type_new_))
6460 return 0;
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 ac_cv_type_long_long=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 ac_cv_type_long_long=no
6488 fi
6489
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6493 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6494
6495 # The cast to long int works around a bug in the HP C Compiler
6496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6498 # This bug is HP SR number 8606223364.
6499 { echo "$as_me:$LINENO: checking size of long long" >&5
6500 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6501 if test "${ac_cv_sizeof_long_long+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 if test "$cross_compiling" = yes; then
6505 # Depending upon the size, compute the lo and hi bounds.
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_includes_default
6513 typedef long long ac__type_sizeof_;
6514 int
6515 main ()
6516 {
6517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6518 test_array [0] = 0
6519
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 ac_lo=0 ac_mid=0
6542 while :; do
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 typedef long long ac__type_sizeof_;
6551 int
6552 main ()
6553 {
6554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6555 test_array [0] = 0
6556
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_hi=$ac_mid; break
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_lo=`expr $ac_mid + 1`
6584 if test $ac_lo -le $ac_mid; then
6585 ac_lo= ac_hi=
6586 break
6587 fi
6588 ac_mid=`expr 2 '*' $ac_mid + 1`
6589 fi
6590
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 done
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6604 typedef long long ac__type_sizeof_;
6605 int
6606 main ()
6607 {
6608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6609 test_array [0] = 0
6610
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (ac_try="$ac_compile"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
6632 ac_hi=-1 ac_mid=-1
6633 while :; do
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6641 typedef long long ac__type_sizeof_;
6642 int
6643 main ()
6644 {
6645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6646 test_array [0] = 0
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (ac_try="$ac_compile"
6654 case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657 esac
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_compile") 2>conftest.er1
6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.$ac_objext; then
6669 ac_lo=$ac_mid; break
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 ac_hi=`expr '(' $ac_mid ')' - 1`
6675 if test $ac_mid -le $ac_hi; then
6676 ac_lo= ac_hi=
6677 break
6678 fi
6679 ac_mid=`expr 2 '*' $ac_mid`
6680 fi
6681
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 done
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_lo= ac_hi=
6689 fi
6690
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 # Binary search between lo and hi bounds.
6696 while test "x$ac_lo" != "x$ac_hi"; do
6697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef long long ac__type_sizeof_;
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6710 test_array [0] = 0
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 ac_hi=$ac_mid
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_lo=`expr '(' $ac_mid ')' + 1`
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 done
6743 case $ac_lo in
6744 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6745 '') if test "$ac_cv_type_long_long" = yes; then
6746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6747 See \`config.log' for more details." >&5
6748 echo "$as_me: error: cannot compute sizeof (long long)
6749 See \`config.log' for more details." >&2;}
6750 { (exit 77); exit 77; }; }
6751 else
6752 ac_cv_sizeof_long_long=0
6753 fi ;;
6754 esac
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 typedef long long ac__type_sizeof_;
6764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6766 #include <stdio.h>
6767 #include <stdlib.h>
6768 int
6769 main ()
6770 {
6771
6772 FILE *f = fopen ("conftest.val", "w");
6773 if (! f)
6774 return 1;
6775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6776 {
6777 long int i = longval ();
6778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6779 return 1;
6780 fprintf (f, "%ld\n", i);
6781 }
6782 else
6783 {
6784 unsigned long int i = ulongval ();
6785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6786 return 1;
6787 fprintf (f, "%lu\n", i);
6788 }
6789 return ferror (f) || fclose (f) != 0;
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6806 { (case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_try") 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_sizeof_long_long=`cat conftest.val`
6816 else
6817 echo "$as_me: program exited with status $ac_status" >&5
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ( exit $ac_status )
6822 if test "$ac_cv_type_long_long" = yes; then
6823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6824 See \`config.log' for more details." >&5
6825 echo "$as_me: error: cannot compute sizeof (long long)
6826 See \`config.log' for more details." >&2;}
6827 { (exit 77); exit 77; }; }
6828 else
6829 ac_cv_sizeof_long_long=0
6830 fi
6831 fi
6832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 rm -f conftest.val
6835 fi
6836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6837 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6838
6839
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6843 _ACEOF
6844
6845
6846
6847
6848 { echo "$as_me:$LINENO: checking the system's memory page size" >&5
6849 echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; }
6850 pagesize="no"
6851 if test "$cross_compiling" = yes; then
6852 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6853 See \`config.log' for more details." >&5
6854 echo "$as_me: error: cannot run test program while cross compiling
6855 See \`config.log' for more details." >&2;}
6856 { (exit 1); exit 1; }; }
6857 else
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h. */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6864
6865 #include <stdio.h>
6866 #if HAVE_UNISTD_H
6867 # include <unistd.h>
6868 #endif
6869
6870 int main(void) {
6871 FILE *fp = fopen("conftest.malloc", "w");
6872
6873 if (fp != NULL) {
6874 fprintf(fp, "%d\n", getpagesize());
6875 fclose(fp);
6876 } else
6877 exit(1);
6878 exit(0);
6879 }
6880 _ACEOF
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_link") 2>&5
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6892 { (case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_try") 2>&5
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901
6902 if test -f "conftest.malloc" ; then
6903 pagesize=`cat conftest.malloc`
6904 fi
6905
6906 else
6907 echo "$as_me: program exited with status $ac_status" >&5
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 fi
6912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6913 fi
6914
6915
6916 if test "$pagesize" != "no" ; then
6917 { echo "$as_me:$LINENO: result: $pagesize" >&5
6918 echo "${ECHO_T}$pagesize" >&6; }
6919 else
6920 if test "$ac_cv_sizeof_int" = "4" ; then
6921 pagesize=4096
6922 else
6923 pagesize=8192
6924 fi
6925 { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6926 echo "${ECHO_T}$pagesize (guessing)" >&6; }
6927 fi
6928
6929 cat >>confdefs.h <<_ACEOF
6930 #define MALLOC_PAGESIZE $pagesize
6931 _ACEOF
6932
6933
6934
6935 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6936 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6937 if test "${ac_cv_search_socket+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940 ac_func_search_save_LIBS=$LIBS
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947
6948 /* Override any GCC internal prototype to avoid an error.
6949 Use char because int might match the return type of a GCC
6950 builtin and then its argument prototype would still apply. */
6951 #ifdef __cplusplus
6952 extern "C"
6953 #endif
6954 char socket ();
6955 int
6956 main ()
6957 {
6958 return socket ();
6959 ;
6960 return 0;
6961 }
6962 _ACEOF
6963 for ac_lib in '' socket; do
6964 if test -z "$ac_lib"; then
6965 ac_res="none required"
6966 else
6967 ac_res=-l$ac_lib
6968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6969 fi
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (ac_try="$ac_link"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_link") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest$ac_exeext &&
6987 $as_test_x conftest$ac_exeext; then
6988 ac_cv_search_socket=$ac_res
6989 else
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6992
6993
6994 fi
6995
6996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6997 conftest$ac_exeext
6998 if test "${ac_cv_search_socket+set}" = set; then
6999 break
7000 fi
7001 done
7002 if test "${ac_cv_search_socket+set}" = set; then
7003 :
7004 else
7005 ac_cv_search_socket=no
7006 fi
7007 rm conftest.$ac_ext
7008 LIBS=$ac_func_search_save_LIBS
7009 fi
7010 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7011 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7012 ac_res=$ac_cv_search_socket
7013 if test "$ac_res" != no; then
7014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7015
7016 else
7017 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
7018 echo "$as_me: error: You have no socket()! Aborting." >&2;}
7019 { (exit 1); exit 1; }; }
7020 fi
7021
7022
7023 if test x"$SUN" = xyes; then
7024 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7025 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7026 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 else
7029 ac_func_search_save_LIBS=$LIBS
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7036
7037 /* Override any GCC internal prototype to avoid an error.
7038 Use char because int might match the return type of a GCC
7039 builtin and then its argument prototype would still apply. */
7040 #ifdef __cplusplus
7041 extern "C"
7042 #endif
7043 char inet_ntoa ();
7044 int
7045 main ()
7046 {
7047 return inet_ntoa ();
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 for ac_lib in '' nsl; do
7053 if test -z "$ac_lib"; then
7054 ac_res="none required"
7055 else
7056 ac_res=-l$ac_lib
7057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7058 fi
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (ac_try="$ac_link"
7061 case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064 esac
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_link") 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest$ac_exeext &&
7076 $as_test_x conftest$ac_exeext; then
7077 ac_cv_search_inet_ntoa=$ac_res
7078 else
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082
7083 fi
7084
7085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7086 conftest$ac_exeext
7087 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7088 break
7089 fi
7090 done
7091 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7092 :
7093 else
7094 ac_cv_search_inet_ntoa=no
7095 fi
7096 rm conftest.$ac_ext
7097 LIBS=$ac_func_search_save_LIBS
7098 fi
7099 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7100 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7101 ac_res=$ac_cv_search_inet_ntoa
7102 if test "$ac_res" != no; then
7103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7104
7105 else
7106 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7107 echo "$as_me: error: libnsl not found! Aborting." >&2;}
7108 { (exit 1); exit 1; }; }
7109 fi
7110
7111 fi
7112
7113 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7114 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7115 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <sys/socket.h>
7126
7127
7128 int
7129 main ()
7130 {
7131 static struct sockaddr ac_aggr;
7132 if (ac_aggr.sa_len)
7133 return 0;
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7140 case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143 esac
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_cv_member_struct_sockaddr_sa_len=yes
7156 else
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160 cat >conftest.$ac_ext <<_ACEOF
7161 /* confdefs.h. */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 #include <sys/types.h>
7167 #include <sys/socket.h>
7168
7169
7170 int
7171 main ()
7172 {
7173 static struct sockaddr ac_aggr;
7174 if (sizeof ac_aggr.sa_len)
7175 return 0;
7176 ;
7177 return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_member_struct_sockaddr_sa_len=yes
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_cv_member_struct_sockaddr_sa_len=no
7203 fi
7204
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7209 fi
7210 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7211 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
7212 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7213
7214 cat >>confdefs.h <<\_ACEOF
7215 #define SOCKADDR_IN_HAS_LEN 1
7216 _ACEOF
7217
7218 fi
7219
7220
7221 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7222 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7223 if test "${ac_cv_type_socklen_t+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226 cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h. */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 #include <sys/types.h>
7233 #include <sys/socket.h>
7234
7235 typedef socklen_t ac__type_new_;
7236 int
7237 main ()
7238 {
7239 if ((ac__type_new_ *) 0)
7240 return 0;
7241 if (sizeof (ac__type_new_))
7242 return 0;
7243 ;
7244 return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 ac_cv_type_socklen_t=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_type_socklen_t=no
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7275 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7276 if test $ac_cv_type_socklen_t = yes; then
7277 :
7278 else
7279
7280 cat >>confdefs.h <<\_ACEOF
7281 #define socklen_t unsigned int
7282 _ACEOF
7283
7284 fi
7285
7286
7287 # Check whether --enable-ipv6 was given.
7288 if test "${enable_ipv6+set}" = set; then
7289 enableval=$enable_ipv6; ipv6=$enableval
7290 else
7291 ipv6=no
7292 fi
7293
7294
7295 if test $ipv6 != yes; then
7296 have_v6="no"
7297 else
7298 { echo "$as_me:$LINENO: checking for core IPv6 support" >&5
7299 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
7300
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #define IN_AUTOCONF
7308 #include <sys/types.h>
7309 #include <sys/socket.h>
7310 #include <netinet/in.h>
7311 int
7312 main ()
7313 {
7314 struct sockaddr_in6 s;
7315 s.sin6_family = 0;
7316
7317 ;
7318 return 0;
7319 }
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7323 case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7338
7339 if test "$CYGWIN" = "yes"; then
7340 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7341 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
7342 have_v6=no
7343 else
7344 have_v6=yes
7345
7346 cat >>confdefs.h <<\_ACEOF
7347 #define IPV6 1
7348 _ACEOF
7349
7350 { echo "$as_me:$LINENO: result: yes" >&5
7351 echo "${ECHO_T}yes" >&6; }
7352 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7353 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360 #define IN_AUTOCONF
7361 #include <sys/types.h>
7362 #include <sys/socket.h>
7363 #include <netinet/in.h>
7364 int
7365 main ()
7366 {
7367 struct in6_addr a = in6addr_any;
7368
7369 ;
7370 return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext
7374 if { (ac_try="$ac_compile"
7375 case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7378 esac
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_compile") 2>conftest.er1
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest.$ac_objext; then
7390 { echo "$as_me:$LINENO: result: yes" >&5
7391 echo "${ECHO_T}yes" >&6; }
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396
7397 { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7399
7400 cat >>confdefs.h <<\_ACEOF
7401 #define NO_IN6ADDR_ANY 1
7402 _ACEOF
7403
7404 inet_misc=1
7405
7406
7407 fi
7408
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7410 fi
7411
7412 else
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7415
7416 { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7418 have_v6="no"
7419 fi
7420
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 fi
7423
7424 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7425 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7426 if test "${ac_cv_search_crypt+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429 ac_func_search_save_LIBS=$LIBS
7430 cat >conftest.$ac_ext <<_ACEOF
7431 /* confdefs.h. */
7432 _ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7436
7437 /* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7440 #ifdef __cplusplus
7441 extern "C"
7442 #endif
7443 char crypt ();
7444 int
7445 main ()
7446 {
7447 return crypt ();
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 for ac_lib in '' crypt descrypt; do
7453 if test -z "$ac_lib"; then
7454 ac_res="none required"
7455 else
7456 ac_res=-l$ac_lib
7457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7458 fi
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (ac_try="$ac_link"
7461 case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_link") 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest$ac_exeext &&
7476 $as_test_x conftest$ac_exeext; then
7477 ac_cv_search_crypt=$ac_res
7478 else
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7481
7482
7483 fi
7484
7485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7486 conftest$ac_exeext
7487 if test "${ac_cv_search_crypt+set}" = set; then
7488 break
7489 fi
7490 done
7491 if test "${ac_cv_search_crypt+set}" = set; then
7492 :
7493 else
7494 ac_cv_search_crypt=no
7495 fi
7496 rm conftest.$ac_ext
7497 LIBS=$ac_func_search_save_LIBS
7498 fi
7499 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7500 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7501 ac_res=$ac_cv_search_crypt
7502 if test "$ac_res" != no; then
7503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7504
7505 fi
7506
7507
7508 CRYPT_LIB=$ac_cv_search_crypt
7509
7510 if test "$CRYPT_LIB" = "none required"; then
7511 unset CRYPT_LIB
7512 elif test "$CRYPT_LIB" = no; then
7513 unset CRYPT_LIB
7514 fi
7515
7516
7517
7518 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7519 VICONF=viconf
7520 else
7521 VICONF=""
7522 fi
7523
7524
7525
7526 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7527 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7528 if test "${gcc_cv_header_string+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 else
7531
7532 cat >conftest.$ac_ext <<_ACEOF
7533 #include <string.h>
7534 #include <strings.h>
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
7553 gcc_cv_header_string=yes
7554 else
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7557
7558 gcc_cv_header_string=no
7559 fi
7560
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562
7563 fi
7564 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7565 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7566
7567 if test "$gcc_cv_header_string" = "yes"; then
7568
7569 cat >>confdefs.h <<\_ACEOF
7570 #define STRING_WITH_STRINGS 1
7571 _ACEOF
7572
7573 fi
7574
7575 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7576 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7577 if test "${ac_cv_c_bigendian+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580 # See if sys/param.h defines the BYTE_ORDER macro.
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7588 #include <sys/param.h>
7589
7590 int
7591 main ()
7592 {
7593 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7594 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7595 bogus endian macros
7596 #endif
7597
7598 ;
7599 return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext
7603 if { (ac_try="$ac_compile"
7604 case "(($ac_try" in
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7607 esac
7608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7609 (eval "$ac_compile") 2>conftest.er1
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } && {
7616 test -z "$ac_c_werror_flag" ||
7617 test ! -s conftest.err
7618 } && test -s conftest.$ac_objext; then
7619 # It does; now see whether it defined to BIG_ENDIAN or not.
7620 cat >conftest.$ac_ext <<_ACEOF
7621 /* confdefs.h. */
7622 _ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <sys/types.h>
7627 #include <sys/param.h>
7628
7629 int
7630 main ()
7631 {
7632 #if BYTE_ORDER != BIG_ENDIAN
7633 not big endian
7634 #endif
7635
7636 ;
7637 return 0;
7638 }
7639 _ACEOF
7640 rm -f conftest.$ac_objext
7641 if { (ac_try="$ac_compile"
7642 case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
7657 ac_cv_c_bigendian=yes
7658 else
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662 ac_cv_c_bigendian=no
7663 fi
7664
7665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 else
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 # It does not; compile a test program.
7671 if test "$cross_compiling" = yes; then
7672 # try to guess the endianness by grepping values into an object file
7673 ac_cv_c_bigendian=unknown
7674 cat >conftest.$ac_ext <<_ACEOF
7675 /* confdefs.h. */
7676 _ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7681 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7682 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7683 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7684 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7685 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7686 int
7687 main ()
7688 {
7689 _ascii (); _ebcdic ();
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 rm -f conftest.$ac_objext
7695 if { (ac_try="$ac_compile"
7696 case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699 esac
7700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701 (eval "$ac_compile") 2>conftest.er1
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest.$ac_objext; then
7711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7712 ac_cv_c_bigendian=yes
7713 fi
7714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7715 if test "$ac_cv_c_bigendian" = unknown; then
7716 ac_cv_c_bigendian=no
7717 else
7718 # finding both strings is unlikely to happen, but who knows?
7719 ac_cv_c_bigendian=unknown
7720 fi
7721 fi
7722 else
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726
7727 fi
7728
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7730 else
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7738 int
7739 main ()
7740 {
7741
7742 /* Are we little or big endian? From Harbison&Steele. */
7743 union
7744 {
7745 long int l;
7746 char c[sizeof (long int)];
7747 } u;
7748 u.l = 1;
7749 return u.c[sizeof (long int) - 1] == 1;
7750
7751 ;
7752 return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_link") 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7766 { (case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769 esac
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_try") 2>&5
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_c_bigendian=no
7776 else
7777 echo "$as_me: program exited with status $ac_status" >&5
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7780
7781 ( exit $ac_status )
7782 ac_cv_c_bigendian=yes
7783 fi
7784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7785 fi
7786
7787
7788 fi
7789
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7794 case $ac_cv_c_bigendian in
7795 yes)
7796
7797 cat >>confdefs.h <<\_ACEOF
7798 #define WORDS_BIGENDIAN 1
7799 _ACEOF
7800 ;;
7801 no)
7802 ;;
7803 *)
7804 { { echo "$as_me:$LINENO: error: unknown endianness
7805 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7806 echo "$as_me: error: unknown endianness
7807 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7808 { (exit 1); exit 1; }; } ;;
7809 esac
7810
7811
7812 if test "${ac_cv_header_stdarg_h+set}" = set; then
7813 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7814 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7815 if test "${ac_cv_header_stdarg_h+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 fi
7818 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7819 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7820 else
7821 # Is the header compilable?
7822 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7823 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h. */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 $ac_includes_default
7831 #include <stdarg.h>
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (ac_try="$ac_compile"
7835 case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838 esac
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_compile") 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } && {
7847 test -z "$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 } && test -s conftest.$ac_objext; then
7850 ac_header_compiler=yes
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_header_compiler=no
7856 fi
7857
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7860 echo "${ECHO_T}$ac_header_compiler" >&6; }
7861
7862 # Is the header present?
7863 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7864 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h. */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 #include <stdarg.h>
7872 _ACEOF
7873 if { (ac_try="$ac_cpp conftest.$ac_ext"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } >/dev/null && {
7886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 }; then
7889 ac_header_preproc=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_header_preproc=no
7895 fi
7896
7897 rm -f conftest.err conftest.$ac_ext
7898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7899 echo "${ECHO_T}$ac_header_preproc" >&6; }
7900
7901 # So? What about this header?
7902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7903 yes:no: )
7904 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7905 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7907 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7908 ac_header_preproc=yes
7909 ;;
7910 no:yes:* )
7911 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7912 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7914 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7916 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7918 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7920 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7922 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7923
7924 ;;
7925 esac
7926 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7927 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7928 if test "${ac_cv_header_stdarg_h+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 ac_cv_header_stdarg_h=$ac_header_preproc
7932 fi
7933 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7934 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7935
7936 fi
7937 if test $ac_cv_header_stdarg_h = yes; then
7938 :
7939 else
7940 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7941 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7942 { (exit 1); exit 1; }; }
7943 fi
7944
7945
7946
7947
7948 if test "$ac_cv_c_compiler_gnu" = yes; then
7949
7950 { echo "$as_me:$LINENO: checking for strlcpy" >&5
7951 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7952 save_CFLAGS=$CFLAGS
7953 CFLAGS="$CFLAGS -Wimplicit -Werror"
7954
7955 cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h. */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 #include <string.h>
7962 #include <stdlib.h>
7963 int
7964 main ()
7965 {
7966 char *a = malloc(6);
7967 strlcpy(a, "hello", 6);
7968
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7975 case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest$ac_exeext &&
7990 $as_test_x conftest$ac_exeext; then
7991 { echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6; }
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define HAVE_STRLCPY 1
7996 _ACEOF
7997
7998 else
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8001
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8004
8005 fi
8006
8007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8008 conftest$ac_exeext conftest.$ac_ext
8009
8010 { echo "$as_me:$LINENO: checking for strlcat" >&5
8011 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 #include <string.h>
8019 #include <stdlib.h>
8020 int
8021 main ()
8022 {
8023 char *a = malloc(6);
8024 a[0] = '\0';
8025 strlcat(a, "hello", 6);
8026
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest$ac_exeext &&
8048 $as_test_x conftest$ac_exeext; then
8049 { echo "$as_me:$LINENO: result: yes" >&5
8050 echo "${ECHO_T}yes" >&6; }
8051
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_STRLCAT 1
8054 _ACEOF
8055
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 { echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6; }
8062
8063 fi
8064
8065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8066 conftest$ac_exeext conftest.$ac_ext
8067
8068 CFLAGS=$save_CFLAGS
8069
8070 else
8071
8072
8073
8074
8075 for ac_func in strlcat strlcpy
8076 do
8077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 else
8083 cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h. */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8091 #define $ac_func innocuous_$ac_func
8092
8093 /* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below.
8095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096 <limits.h> exists even on freestanding compilers. */
8097
8098 #ifdef __STDC__
8099 # include <limits.h>
8100 #else
8101 # include <assert.h>
8102 #endif
8103
8104 #undef $ac_func
8105
8106 /* Override any GCC internal prototype to avoid an error.
8107 Use char because int might match the return type of a GCC
8108 builtin and then its argument prototype would still apply. */
8109 #ifdef __cplusplus
8110 extern "C"
8111 #endif
8112 char $ac_func ();
8113 /* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116 #if defined __stub_$ac_func || defined __stub___$ac_func
8117 choke me
8118 #endif
8119
8120 int
8121 main ()
8122 {
8123 return $ac_func ();
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8130 case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133 esac
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_link") 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest$ac_exeext &&
8145 $as_test_x conftest$ac_exeext; then
8146 eval "$as_ac_var=yes"
8147 else
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8150
8151 eval "$as_ac_var=no"
8152 fi
8153
8154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8155 conftest$ac_exeext conftest.$ac_ext
8156 fi
8157 ac_res=`eval echo '${'$as_ac_var'}'`
8158 { echo "$as_me:$LINENO: result: $ac_res" >&5
8159 echo "${ECHO_T}$ac_res" >&6; }
8160 if test `eval echo '${'$as_ac_var'}'` = yes; then
8161 cat >>confdefs.h <<_ACEOF
8162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8163 _ACEOF
8164
8165 fi
8166 done
8167
8168
8169 fi
8170
8171 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
8172 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
8173 if test "${ac_cv_type_u_int32_t+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176 cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h. */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 typedef u_int32_t ac__type_new_;
8184 int
8185 main ()
8186 {
8187 if ((ac__type_new_ *) 0)
8188 return 0;
8189 if (sizeof (ac__type_new_))
8190 return 0;
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.$ac_objext; then
8212 ac_cv_type_u_int32_t=yes
8213 else
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 ac_cv_type_u_int32_t=no
8218 fi
8219
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 fi
8222 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8223 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
8224 if test $ac_cv_type_u_int32_t = yes; then
8225 :
8226 else
8227
8228 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8229 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8230 if test "${ac_cv_type_uint32_t+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 typedef uint32_t ac__type_new_;
8241 int
8242 main ()
8243 {
8244 if ((ac__type_new_ *) 0)
8245 return 0;
8246 if (sizeof (ac__type_new_))
8247 return 0;
8248 ;
8249 return 0;
8250 }
8251 _ACEOF
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8254 case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_type_uint32_t=yes
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_cv_type_uint32_t=no
8275 fi
8276
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 fi
8279 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8280 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8281 if test $ac_cv_type_uint32_t = yes; then
8282
8283
8284 cat >>confdefs.h <<\_ACEOF
8285 #define u_int32_t uint32_t
8286 _ACEOF
8287
8288
8289 else
8290
8291 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8292 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define u_int32_t unsigned long int
8296 _ACEOF
8297
8298
8299 fi
8300
8301
8302 fi
8303
8304
8305 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
8306 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
8307 if test "${ac_cv_type_u_int16_t+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8317 typedef u_int16_t ac__type_new_;
8318 int
8319 main ()
8320 {
8321 if ((ac__type_new_ *) 0)
8322 return 0;
8323 if (sizeof (ac__type_new_))
8324 return 0;
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8331 case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_type_u_int16_t=yes
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8350
8351 ac_cv_type_u_int16_t=no
8352 fi
8353
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355 fi
8356 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8357 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8358 if test $ac_cv_type_u_int16_t = yes; then
8359 :
8360 else
8361
8362 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8363 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8364 if test "${ac_cv_type_uint16_t+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h. */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 typedef uint16_t ac__type_new_;
8375 int
8376 main ()
8377 {
8378 if ((ac__type_new_ *) 0)
8379 return 0;
8380 if (sizeof (ac__type_new_))
8381 return 0;
8382 ;
8383 return 0;
8384 }
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8388 case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391 esac
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } && {
8400 test -z "$ac_c_werror_flag" ||
8401 test ! -s conftest.err
8402 } && test -s conftest.$ac_objext; then
8403 ac_cv_type_uint16_t=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_type_uint16_t=no
8409 fi
8410
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412 fi
8413 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8414 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8415 if test $ac_cv_type_uint16_t = yes; then
8416
8417
8418 cat >>confdefs.h <<\_ACEOF
8419 #define u_int16_t uint16_t
8420 _ACEOF
8421
8422
8423 else
8424
8425 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8426 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8427
8428 cat >>confdefs.h <<\_ACEOF
8429 #define u_int16_t unsigned short int
8430 _ACEOF
8431
8432
8433 fi
8434
8435
8436 fi
8437
8438
8439 { echo "$as_me:$LINENO: checking for in_port_t" >&5
8440 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8441 if test "${ac_cv_type_in_port_t+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 else
8444 cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h. */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <sys/types.h>
8451 #include <netinet/in.h>
8452
8453 typedef in_port_t ac__type_new_;
8454 int
8455 main ()
8456 {
8457 if ((ac__type_new_ *) 0)
8458 return 0;
8459 if (sizeof (ac__type_new_))
8460 return 0;
8461 ;
8462 return 0;
8463 }
8464 _ACEOF
8465 rm -f conftest.$ac_objext
8466 if { (ac_try="$ac_compile"
8467 case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470 esac
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_compile") 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } && {
8479 test -z "$ac_c_werror_flag" ||
8480 test ! -s conftest.err
8481 } && test -s conftest.$ac_objext; then
8482 ac_cv_type_in_port_t=yes
8483 else
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ac_cv_type_in_port_t=no
8488 fi
8489
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 fi
8492 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8493 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8494 if test $ac_cv_type_in_port_t = yes; then
8495 :
8496 else
8497
8498 cat >>confdefs.h <<\_ACEOF
8499 #define in_port_t u_int16_t
8500 _ACEOF
8501
8502 fi
8503
8504
8505 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
8506 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8507 if test "${ac_cv_type_sa_family_t+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h. */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 #include <sys/types.h>
8517 #include <sys/socket.h>
8518
8519 typedef sa_family_t ac__type_new_;
8520 int
8521 main ()
8522 {
8523 if ((ac__type_new_ *) 0)
8524 return 0;
8525 if (sizeof (ac__type_new_))
8526 return 0;
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8533 case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_cv_type_sa_family_t=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_cv_type_sa_family_t=no
8554 fi
8555
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
8558 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8559 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8560 if test $ac_cv_type_sa_family_t = yes; then
8561 :
8562 else
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define sa_family_t u_int16_t
8566 _ACEOF
8567
8568 fi
8569
8570
8571 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8572 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8573 if test "${ac_cv_type_uintptr_t+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576 cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h. */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 typedef uintptr_t ac__type_new_;
8584 int
8585 main ()
8586 {
8587 if ((ac__type_new_ *) 0)
8588 return 0;
8589 if (sizeof (ac__type_new_))
8590 return 0;
8591 ;
8592 return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8597 case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_compile") 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } && {
8609 test -z "$ac_c_werror_flag" ||
8610 test ! -s conftest.err
8611 } && test -s conftest.$ac_objext; then
8612 ac_cv_type_uintptr_t=yes
8613 else
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617 ac_cv_type_uintptr_t=no
8618 fi
8619
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 fi
8622 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8623 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8624 if test $ac_cv_type_uintptr_t = yes; then
8625
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_UINTPTR_T 1
8628 _ACEOF
8629
8630
8631 fi
8632
8633
8634
8635
8636
8637
8638
8639
8640 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8641 do
8642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648 cat >conftest.$ac_ext <<_ACEOF
8649 /* confdefs.h. */
8650 _ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8656 #define $ac_func innocuous_$ac_func
8657
8658 /* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char $ac_func (); below.
8660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 <limits.h> exists even on freestanding compilers. */
8662
8663 #ifdef __STDC__
8664 # include <limits.h>
8665 #else
8666 # include <assert.h>
8667 #endif
8668
8669 #undef $ac_func
8670
8671 /* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
8674 #ifdef __cplusplus
8675 extern "C"
8676 #endif
8677 char $ac_func ();
8678 /* The GNU C library defines this for functions which it implements
8679 to always fail with ENOSYS. Some functions are actually named
8680 something starting with __ and the normal name is an alias. */
8681 #if defined __stub_$ac_func || defined __stub___$ac_func
8682 choke me
8683 #endif
8684
8685 int
8686 main ()
8687 {
8688 return $ac_func ();
8689 ;
8690 return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext &&
8710 $as_test_x conftest$ac_exeext; then
8711 eval "$as_ac_var=yes"
8712 else
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 eval "$as_ac_var=no"
8717 fi
8718
8719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8720 conftest$ac_exeext conftest.$ac_ext
8721 fi
8722 ac_res=`eval echo '${'$as_ac_var'}'`
8723 { echo "$as_me:$LINENO: result: $ac_res" >&5
8724 echo "${ECHO_T}$ac_res" >&6; }
8725 if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8728 _ACEOF
8729
8730 fi
8731 done
8732
8733
8734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8735 # for constant arguments. Useless!
8736 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8737 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8738 if test "${ac_cv_working_alloca_h+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h. */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 #include <alloca.h>
8748 int
8749 main ()
8750 {
8751 char *p = (char *) alloca (2 * sizeof (int));
8752 if (p) return 0;
8753 ;
8754 return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
8759 case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_link") 2>conftest.er1
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest$ac_exeext &&
8774 $as_test_x conftest$ac_exeext; then
8775 ac_cv_working_alloca_h=yes
8776 else
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780 ac_cv_working_alloca_h=no
8781 fi
8782
8783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8784 conftest$ac_exeext conftest.$ac_ext
8785 fi
8786 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8787 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8788 if test $ac_cv_working_alloca_h = yes; then
8789
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_ALLOCA_H 1
8792 _ACEOF
8793
8794 fi
8795
8796 { echo "$as_me:$LINENO: checking for alloca" >&5
8797 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8798 if test "${ac_cv_func_alloca_works+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801 cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 #ifdef __GNUC__
8808 # define alloca __builtin_alloca
8809 #else
8810 # ifdef _MSC_VER
8811 # include <malloc.h>
8812 # define alloca _alloca
8813 # else
8814 # ifdef HAVE_ALLOCA_H
8815 # include <alloca.h>
8816 # else
8817 # ifdef _AIX
8818 #pragma alloca
8819 # else
8820 # ifndef alloca /* predefined by HP cc +Olibcalls */
8821 char *alloca ();
8822 # endif
8823 # endif
8824 # endif
8825 # endif
8826 #endif
8827
8828 int
8829 main ()
8830 {
8831 char *p = (char *) alloca (1);
8832 if (p) return 0;
8833 ;
8834 return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (ac_try="$ac_link"
8839 case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_link") 2>conftest.er1
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest$ac_exeext &&
8854 $as_test_x conftest$ac_exeext; then
8855 ac_cv_func_alloca_works=yes
8856 else
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860 ac_cv_func_alloca_works=no
8861 fi
8862
8863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8864 conftest$ac_exeext conftest.$ac_ext
8865 fi
8866 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8867 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8868
8869 if test $ac_cv_func_alloca_works = yes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_ALLOCA 1
8873 _ACEOF
8874
8875 else
8876 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8877 # that cause trouble. Some versions do not even contain alloca or
8878 # contain a buggy version. If you still want to use their alloca,
8879 # use ar to extract alloca.o from them instead of compiling alloca.c.
8880
8881 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8882
8883 cat >>confdefs.h <<\_ACEOF
8884 #define C_ALLOCA 1
8885 _ACEOF
8886
8887
8888 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8889 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8890 if test "${ac_cv_os_cray+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h. */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #if defined CRAY && ! defined CRAY2
8900 webecray
8901 #else
8902 wenotbecray
8903 #endif
8904
8905 _ACEOF
8906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8907 $EGREP "webecray" >/dev/null 2>&1; then
8908 ac_cv_os_cray=yes
8909 else
8910 ac_cv_os_cray=no
8911 fi
8912 rm -f conftest*
8913
8914 fi
8915 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8916 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8917 if test $ac_cv_os_cray = yes; then
8918 for ac_func in _getb67 GETB67 getb67; do
8919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h. */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8933 #define $ac_func innocuous_$ac_func
8934
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8939
8940 #ifdef __STDC__
8941 # include <limits.h>
8942 #else
8943 # include <assert.h>
8944 #endif
8945
8946 #undef $ac_func
8947
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char $ac_func ();
8955 /* The GNU C library defines this for functions which it implements
8956 to always fail with ENOSYS. Some functions are actually named
8957 something starting with __ and the normal name is an alias. */
8958 #if defined __stub_$ac_func || defined __stub___$ac_func
8959 choke me
8960 #endif
8961
8962 int
8963 main ()
8964 {
8965 return $ac_func ();
8966 ;
8967 return 0;
8968 }
8969 _ACEOF
8970 rm -f conftest.$ac_objext conftest$ac_exeext
8971 if { (ac_try="$ac_link"
8972 case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_link") 2>conftest.er1
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext &&
8987 $as_test_x conftest$ac_exeext; then
8988 eval "$as_ac_var=yes"
8989 else
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 eval "$as_ac_var=no"
8994 fi
8995
8996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8997 conftest$ac_exeext conftest.$ac_ext
8998 fi
8999 ac_res=`eval echo '${'$as_ac_var'}'`
9000 { echo "$as_me:$LINENO: result: $ac_res" >&5
9001 echo "${ECHO_T}$ac_res" >&6; }
9002 if test `eval echo '${'$as_ac_var'}'` = yes; then
9003
9004 cat >>confdefs.h <<_ACEOF
9005 #define CRAY_STACKSEG_END $ac_func
9006 _ACEOF
9007
9008 break
9009 fi
9010
9011 done
9012 fi
9013
9014 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9015 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9016 if test "${ac_cv_c_stack_direction+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018 else
9019 if test "$cross_compiling" = yes; then
9020 ac_cv_c_stack_direction=0
9021 else
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9028 $ac_includes_default
9029 int
9030 find_stack_direction ()
9031 {
9032 static char *addr = 0;
9033 auto char dummy;
9034 if (addr == 0)
9035 {
9036 addr = &dummy;
9037 return find_stack_direction ();
9038 }
9039 else
9040 return (&dummy > addr) ? 1 : -1;
9041 }
9042
9043 int
9044 main ()
9045 {
9046 return find_stack_direction () < 0;
9047 }
9048 _ACEOF
9049 rm -f conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9051 case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054 esac
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_link") 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063 esac
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_c_stack_direction=1
9070 else
9071 echo "$as_me: program exited with status $ac_status" >&5
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ( exit $ac_status )
9076 ac_cv_c_stack_direction=-1
9077 fi
9078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9079 fi
9080
9081
9082 fi
9083 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9084 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9085
9086 cat >>confdefs.h <<_ACEOF
9087 #define STACK_DIRECTION $ac_cv_c_stack_direction
9088 _ACEOF
9089
9090
9091 fi
9092
9093
9094
9095 { echo "$as_me:$LINENO: checking for nanosleep" >&5
9096 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
9097 if test "${ac_cv_func_nanosleep+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100 cat >conftest.$ac_ext <<_ACEOF
9101 /* confdefs.h. */
9102 _ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
9107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9108 #define nanosleep innocuous_nanosleep
9109
9110 /* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char nanosleep (); below.
9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113 <limits.h> exists even on freestanding compilers. */
9114
9115 #ifdef __STDC__
9116 # include <limits.h>
9117 #else
9118 # include <assert.h>
9119 #endif
9120
9121 #undef nanosleep
9122
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char nanosleep ();
9130 /* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
9133 #if defined __stub_nanosleep || defined __stub___nanosleep
9134 choke me
9135 #endif
9136
9137 int
9138 main ()
9139 {
9140 return nanosleep ();
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest$ac_exeext &&
9162 $as_test_x conftest$ac_exeext; then
9163 ac_cv_func_nanosleep=yes
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 ac_cv_func_nanosleep=no
9169 fi
9170
9171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9172 conftest$ac_exeext conftest.$ac_ext
9173 fi
9174 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
9175 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
9176 if test $ac_cv_func_nanosleep = yes; then
9177 :
9178 else
9179 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9180 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
9181 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184 ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lrt $LIBS"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196 #ifdef __cplusplus
9197 extern "C"
9198 #endif
9199 char nanosleep ();
9200 int
9201 main ()
9202 {
9203 return nanosleep ();
9204 ;
9205 return 0;
9206 }
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (ac_try="$ac_link"
9210 case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_link") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest$ac_exeext &&
9225 $as_test_x conftest$ac_exeext; then
9226 ac_cv_lib_rt_nanosleep=yes
9227 else
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_cv_lib_rt_nanosleep=no
9232 fi
9233
9234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9237 fi
9238 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9239 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9240 if test $ac_cv_lib_rt_nanosleep = yes; then
9241 LIBS="${LIBS} -lrt"
9242 else
9243 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9244 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
9245 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 ac_check_lib_save_LIBS=$LIBS
9249 LIBS="-lposix4 $LIBS"
9250 cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h. */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9256
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char nanosleep ();
9264 int
9265 main ()
9266 {
9267 return nanosleep ();
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9274 case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest$ac_exeext &&
9289 $as_test_x conftest$ac_exeext; then
9290 ac_cv_lib_posix4_nanosleep=yes
9291 else
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_cv_lib_posix4_nanosleep=no
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9299 conftest$ac_exeext conftest.$ac_ext
9300 LIBS=$ac_check_lib_save_LIBS
9301 fi
9302 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9303 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9304 if test $ac_cv_lib_posix4_nanosleep = yes; then
9305 LIBS="${LIBS} -lposix4"
9306
9307 fi
9308
9309 fi
9310
9311 fi
9312
9313 if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
9314 then
9315 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9316 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
9317 else
9318
9319 cat >>confdefs.h <<\_ACEOF
9320 #define HAVE_NANOSLEEP 1
9321 _ACEOF
9322
9323 fi
9324
9325 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
9326 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9327 # Check whether --enable-openssl was given.
9328 if test "${enable_openssl+set}" = set; then
9329 enableval=$enable_openssl; cf_enable_openssl=$enableval
9330 else
9331 cf_enable_openssl="auto"
9332 fi
9333
9334
9335 if test "$cf_enable_openssl" != "no" ; then
9336 cf_openssl_basedir=""
9337 if test "$cf_enable_openssl" != "auto" &&
9338 test "$cf_enable_openssl" != "yes" ; then
9339 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9340 else
9341 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9342 /usr/local/openssl ; do
9343 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9344 cf_openssl_basedir="${dirs}"
9345 break
9346 fi
9347 done
9348 unset dirs
9349 fi
9350 if test ! -z "$cf_openssl_basedir"; then
9351 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9352 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9353 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9354 else
9355 cf_openssl_basedir=""
9356 fi
9357 else
9358 if test -f "/usr/include/openssl/opensslv.h" ; then
9359 cf_openssl_basedir="/usr"
9360 fi
9361 fi
9362
9363 if test ! -z "$cf_openssl_basedir"; then
9364 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9365 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9366 cf_enable_openssl="yes"
9367 else
9368 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9369 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9370 cf_enable_openssl="no"
9371 fi
9372 unset cf_openssl_basedir
9373 else
9374 { echo "$as_me:$LINENO: result: disabled" >&5
9375 echo "${ECHO_T}disabled" >&6; }
9376 fi
9377
9378 save_CPPFLAGS="$CPPFLAGS"
9379 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9380 save_LIBS="$LIBS"
9381 LIBS="$LIBS $SSL_LIBS"
9382 if test "$cf_enable_openssl" != no; then
9383 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9384 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9385 if test "$cross_compiling" = yes; then
9386 cf_openssl_version_ok=no
9387 else
9388 cat >conftest.$ac_ext <<_ACEOF
9389 /* confdefs.h. */
9390 _ACEOF
9391 cat confdefs.h >>conftest.$ac_ext
9392 cat >>conftest.$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 #include <openssl/opensslv.h>
9395 #include <stdlib.h>
9396 int
9397 main ()
9398 {
9399 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9400 exit(0); else exit(1);
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416 { (case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_try") 2>&5
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 cf_openssl_version_ok=yes
9426 else
9427 echo "$as_me: program exited with status $ac_status" >&5
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431 ( exit $ac_status )
9432 cf_openssl_version_ok=no
9433 fi
9434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9435 fi
9436
9437
9438
9439 if test "$cf_openssl_version_ok" = yes; then
9440 { echo "$as_me:$LINENO: result: found" >&5
9441 echo "${ECHO_T}found" >&6; }
9442
9443 ENCSPEED=encspeed
9444
9445
9446 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9447
9448 { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9449 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9450 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453 ac_check_lib_save_LIBS=$LIBS
9454 LIBS="-lcrypto $LIBS"
9455 cat >conftest.$ac_ext <<_ACEOF
9456 /* confdefs.h. */
9457 _ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461
9462 /* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9465 #ifdef __cplusplus
9466 extern "C"
9467 #endif
9468 char RSA_free ();
9469 int
9470 main ()
9471 {
9472 return RSA_free ();
9473 ;
9474 return 0;
9475 }
9476 _ACEOF
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (ac_try="$ac_link"
9479 case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482 esac
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest$ac_exeext &&
9494 $as_test_x conftest$ac_exeext; then
9495 ac_cv_lib_crypto_RSA_free=yes
9496 else
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ac_cv_lib_crypto_RSA_free=no
9501 fi
9502
9503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9504 conftest$ac_exeext conftest.$ac_ext
9505 LIBS=$ac_check_lib_save_LIBS
9506 fi
9507 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9508 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9509 if test $ac_cv_lib_crypto_RSA_free = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_LIBCRYPTO 1
9512 _ACEOF
9513
9514 LIBS="-lcrypto $LIBS"
9515
9516 fi
9517
9518 SSL_LIBS="$SSL_LIBS -lcrypto"
9519 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9520 else
9521 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9522 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9523 fi
9524 fi
9525
9526 CPPFLAGS="$save_CPPFLAGS"
9527 LIBS="$save_LIBS"
9528
9529
9530
9531
9532
9533 # Check whether --with-zlib-path was given.
9534 if test "${with_zlib_path+set}" = set; then
9535 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9536 fi
9537
9538
9539 # Check whether --enable-zlib was given.
9540 if test "${enable_zlib+set}" = set; then
9541 enableval=$enable_zlib; zlib=$enableval
9542 else
9543 zlib=yes
9544 fi
9545
9546
9547 if test "$zlib" = yes; then
9548
9549 if test "${ac_cv_header_zlib_h+set}" = set; then
9550 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9551 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9552 if test "${ac_cv_header_zlib_h+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 fi
9555 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9556 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9557 else
9558 # Is the header compilable?
9559 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
9560 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9561 cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h. */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9568 #include <zlib.h>
9569 _ACEOF
9570 rm -f conftest.$ac_objext
9571 if { (ac_try="$ac_compile"
9572 case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_compile") 2>conftest.er1
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.$ac_objext; then
9587 ac_header_compiler=yes
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 ac_header_compiler=no
9593 fi
9594
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9597 echo "${ECHO_T}$ac_header_compiler" >&6; }
9598
9599 # Is the header present?
9600 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
9601 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9602 cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h. */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 #include <zlib.h>
9609 _ACEOF
9610 if { (ac_try="$ac_cpp conftest.$ac_ext"
9611 case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614 esac
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } >/dev/null && {
9623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 }; then
9626 ac_header_preproc=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_header_preproc=no
9632 fi
9633
9634 rm -f conftest.err conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9636 echo "${ECHO_T}$ac_header_preproc" >&6; }
9637
9638 # So? What about this header?
9639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9640 yes:no: )
9641 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9642 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9644 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9645 ac_header_preproc=yes
9646 ;;
9647 no:yes:* )
9648 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9649 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9651 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9653 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9655 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9659 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9660
9661 ;;
9662 esac
9663 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9664 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9665 if test "${ac_cv_header_zlib_h+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 else
9668 ac_cv_header_zlib_h=$ac_header_preproc
9669 fi
9670 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9671 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9672
9673 fi
9674 if test $ac_cv_header_zlib_h = yes; then
9675
9676 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9677 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9678 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 else
9681 ac_check_lib_save_LIBS=$LIBS
9682 LIBS="-lz $LIBS"
9683 cat >conftest.$ac_ext <<_ACEOF
9684 /* confdefs.h. */
9685 _ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9693 #ifdef __cplusplus
9694 extern "C"
9695 #endif
9696 char zlibVersion ();
9697 int
9698 main ()
9699 {
9700 return zlibVersion ();
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
9723 ac_cv_lib_z_zlibVersion=yes
9724 else
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_cv_lib_z_zlibVersion=no
9729 fi
9730
9731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9732 conftest$ac_exeext conftest.$ac_ext
9733 LIBS=$ac_check_lib_save_LIBS
9734 fi
9735 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9736 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9737 if test $ac_cv_lib_z_zlibVersion = yes; then
9738
9739 ZLIB_LD=-lz
9740
9741
9742 cat >>confdefs.h <<\_ACEOF
9743 #define HAVE_LIBZ 1
9744 _ACEOF
9745
9746
9747 else
9748 zlib=no
9749 fi
9750
9751
9752 else
9753 zlib=no
9754 fi
9755
9756
9757
9758 fi
9759
9760
9761 # Check whether --enable-ports was given.
9762 if test "${enable_ports+set}" = set; then
9763 enableval=$enable_ports; if test $enableval = yes; then
9764 SELECT_TYPE_EXPLICIT="ports"
9765 else
9766 use_ports=no
9767 fi
9768
9769 fi
9770
9771
9772 # Check whether --enable-poll was given.
9773 if test "${enable_poll+set}" = set; then
9774 enableval=$enable_poll; if test $enableval = yes; then
9775 SELECT_TYPE_EXPLICIT="poll"
9776 else
9777 use_poll=no
9778 fi
9779
9780 fi
9781
9782
9783 # Check whether --enable-select was given.
9784 if test "${enable_select+set}" = set; then
9785 enableval=$enable_select; if test $enableval = yes; then
9786 SELECT_TYPE_EXPLICIT="select"
9787 else
9788 use_select=no
9789 fi
9790
9791 fi
9792
9793
9794 # Check whether --enable-kqueue was given.
9795 if test "${enable_kqueue+set}" = set; then
9796 enableval=$enable_kqueue; if test $enableval = yes; then
9797 SELECT_TYPE_EXPLICIT="kqueue"
9798 else
9799 use_kqueue=no
9800 fi
9801
9802 fi
9803
9804
9805 # Check whether --enable-epoll was given.
9806 if test "${enable_epoll+set}" = set; then
9807 enableval=$enable_epoll; if test $enableval = yes; then
9808 SELECT_TYPE_EXPLICIT="epoll"
9809
9810 for ac_func in epoll_ctl
9811 do
9812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h. */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9826 #define $ac_func innocuous_$ac_func
9827
9828 /* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func (); below.
9830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831 <limits.h> exists even on freestanding compilers. */
9832
9833 #ifdef __STDC__
9834 # include <limits.h>
9835 #else
9836 # include <assert.h>
9837 #endif
9838
9839 #undef $ac_func
9840
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 char $ac_func ();
9848 /* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851 #if defined __stub_$ac_func || defined __stub___$ac_func
9852 choke me
9853 #endif
9854
9855 int
9856 main ()
9857 {
9858 return $ac_func ();
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest$ac_exeext &&
9880 $as_test_x conftest$ac_exeext; then
9881 eval "$as_ac_var=yes"
9882 else
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 eval "$as_ac_var=no"
9887 fi
9888
9889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9890 conftest$ac_exeext conftest.$ac_ext
9891 fi
9892 ac_res=`eval echo '${'$as_ac_var'}'`
9893 { echo "$as_me:$LINENO: result: $ac_res" >&5
9894 echo "${ECHO_T}$ac_res" >&6; }
9895 if test `eval echo '${'$as_ac_var'}'` = yes; then
9896 cat >>confdefs.h <<_ACEOF
9897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9898 _ACEOF
9899 haveepoll=yes
9900 else
9901 haveepoll=no
9902 fi
9903 done
9904
9905 else
9906 use_epoll=no
9907 fi
9908
9909 fi
9910
9911
9912
9913 { echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9914 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
9915
9916 # Check whether --with-confdir was given.
9917 if test "${with_confdir+set}" = set; then
9918 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9919 { echo "$as_me:$LINENO: result: yes" >&5
9920 echo "${ECHO_T}yes" >&6; }
9921
9922 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9924 ac_define_dir=`eval echo $confdir`
9925 ac_define_dir=`eval echo $ac_define_dir`
9926 ETC_DIR="$ac_define_dir"
9927
9928
9929 cat >>confdefs.h <<_ACEOF
9930 #define ETC_DIR "$ac_define_dir"
9931 _ACEOF
9932
9933
9934
9935
9936 confdir=`(
9937 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9938 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9939 eval echo \""$confdir"\"
9940 )`
9941
9942
9943 else
9944 confdir='${prefix}/etc'
9945 { echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6; }
9947
9948 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9950 ac_define_dir=`eval echo $confdir`
9951 ac_define_dir=`eval echo $ac_define_dir`
9952 ETC_DIR="$ac_define_dir"
9953
9954
9955 cat >>confdefs.h <<_ACEOF
9956 #define ETC_DIR "$ac_define_dir"
9957 _ACEOF
9958
9959
9960
9961
9962 confdir=`(
9963 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9964 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9965 eval echo \""$confdir"\"
9966 )`
9967
9968
9969
9970 fi
9971
9972
9973
9974 { echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9975 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
9976
9977 # Check whether --with-logdir was given.
9978 if test "${with_logdir+set}" = set; then
9979 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9980 { echo "$as_me:$LINENO: result: yes" >&5
9981 echo "${ECHO_T}yes" >&6; }
9982
9983 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9985 ac_define_dir=`eval echo $logdir`
9986 ac_define_dir=`eval echo $ac_define_dir`
9987 LOG_DIR="$ac_define_dir"
9988
9989
9990 cat >>confdefs.h <<_ACEOF
9991 #define LOG_DIR "$ac_define_dir"
9992 _ACEOF
9993
9994
9995
9996
9997 logdir=`(
9998 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9999 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10000 eval echo \""$logdir"\"
10001 )`
10002
10003
10004 else
10005 logdir='${prefix}/logs'
10006 { echo "$as_me:$LINENO: result: no" >&5
10007 echo "${ECHO_T}no" >&6; }
10008
10009 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10011 ac_define_dir=`eval echo $logdir`
10012 ac_define_dir=`eval echo $ac_define_dir`
10013 LOG_DIR="$ac_define_dir"
10014
10015
10016 cat >>confdefs.h <<_ACEOF
10017 #define LOG_DIR "$ac_define_dir"
10018 _ACEOF
10019
10020
10021
10022
10023 logdir=`(
10024 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10025 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10026 eval echo \""$logdir"\"
10027 )`
10028
10029
10030
10031 fi
10032
10033
10034
10035 { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
10036 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
10037
10038 # Check whether --with-helpdir was given.
10039 if test "${with_helpdir+set}" = set; then
10040 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
10041 { echo "$as_me:$LINENO: result: yes" >&5
10042 echo "${ECHO_T}yes" >&6; }
10043
10044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10046 ac_define_dir=`eval echo $helpdir`
10047 ac_define_dir=`eval echo $ac_define_dir`
10048 HELP_DIR="$ac_define_dir"
10049
10050
10051 cat >>confdefs.h <<_ACEOF
10052 #define HELP_DIR "$ac_define_dir"
10053 _ACEOF
10054
10055
10056
10057
10058 helpdir=`(
10059 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10060 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10061 eval echo \""$helpdir"\"
10062 )`
10063
10064
10065 else
10066 helpdir='${prefix}/help'
10067 { echo "$as_me:$LINENO: result: no" >&5
10068 echo "${ECHO_T}no" >&6; }
10069
10070 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10072 ac_define_dir=`eval echo $helpdir`
10073 ac_define_dir=`eval echo $ac_define_dir`
10074 HELP_DIR="$ac_define_dir"
10075
10076
10077 cat >>confdefs.h <<_ACEOF
10078 #define HELP_DIR "$ac_define_dir"
10079 _ACEOF
10080
10081
10082
10083
10084 helpdir=`(
10085 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10086 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10087 eval echo \""$helpdir"\"
10088 )`
10089
10090
10091
10092 fi
10093
10094
10095
10096 { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
10097 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
10098
10099 # Check whether --with-moduledir was given.
10100 if test "${with_moduledir+set}" = set; then
10101 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
10102 { echo "$as_me:$LINENO: result: yes" >&5
10103 echo "${ECHO_T}yes" >&6; }
10104
10105 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10107 ac_define_dir=`eval echo $moduledir`
10108 ac_define_dir=`eval echo $ac_define_dir`
10109 MODULE_DIR="$ac_define_dir"
10110
10111
10112 cat >>confdefs.h <<_ACEOF
10113 #define MODULE_DIR "$ac_define_dir"
10114 _ACEOF
10115
10116
10117
10118
10119 moduledir=`(
10120 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10121 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10122 eval echo \""$moduledir"\"
10123 )`
10124
10125
10126 else
10127 moduledir='${prefix}/modules'
10128 { echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6; }
10130
10131 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10133 ac_define_dir=`eval echo $moduledir`
10134 ac_define_dir=`eval echo $ac_define_dir`
10135 MODULE_DIR="$ac_define_dir"
10136
10137
10138 cat >>confdefs.h <<_ACEOF
10139 #define MODULE_DIR "$ac_define_dir"
10140 _ACEOF
10141
10142
10143
10144
10145 moduledir=`(
10146 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10147 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10148 eval echo \""$moduledir"\"
10149 )`
10150
10151
10152
10153 fi
10154
10155
10156 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
10157 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
10158 echo "Forcing $SELECT_TYPE to be enabled"
10159 else
10160
10161 if test ! "x$use_ports" = "xno"; then
10162
10163 for ac_func in port_getn
10164 do
10165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179 #define $ac_func innocuous_$ac_func
10180
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
10185
10186 #ifdef __STDC__
10187 # include <limits.h>
10188 #else
10189 # include <assert.h>
10190 #endif
10191
10192 #undef $ac_func
10193
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10197 #ifdef __cplusplus
10198 extern "C"
10199 #endif
10200 char $ac_func ();
10201 /* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204 #if defined __stub_$ac_func || defined __stub___$ac_func
10205 choke me
10206 #endif
10207
10208 int
10209 main ()
10210 {
10211 return $ac_func ();
10212 ;
10213 return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext &&
10233 $as_test_x conftest$ac_exeext; then
10234 eval "$as_ac_var=yes"
10235 else
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 eval "$as_ac_var=no"
10240 fi
10241
10242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10243 conftest$ac_exeext conftest.$ac_ext
10244 fi
10245 ac_res=`eval echo '${'$as_ac_var'}'`
10246 { echo "$as_me:$LINENO: result: $ac_res" >&5
10247 echo "${ECHO_T}$ac_res" >&6; }
10248 if test `eval echo '${'$as_ac_var'}'` = yes; then
10249 cat >>confdefs.h <<_ACEOF
10250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10251 _ACEOF
10252 haveports=yes
10253 else
10254 haveports=no
10255 fi
10256 done
10257
10258 if test "x$haveports" = "xyes" ; then
10259 SELECT_TYPE="ports"
10260 fi
10261 fi
10262
10263 if test ! "x$use_select" = "xno"; then
10264
10265 for ac_func in select
10266 do
10267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273 cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h. */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define $ac_func innocuous_$ac_func
10282
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10287
10288 #ifdef __STDC__
10289 # include <limits.h>
10290 #else
10291 # include <assert.h>
10292 #endif
10293
10294 #undef $ac_func
10295
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10299 #ifdef __cplusplus
10300 extern "C"
10301 #endif
10302 char $ac_func ();
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_$ac_func || defined __stub___$ac_func
10307 choke me
10308 #endif
10309
10310 int
10311 main ()
10312 {
10313 return $ac_func ();
10314 ;
10315 return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext &&
10335 $as_test_x conftest$ac_exeext; then
10336 eval "$as_ac_var=yes"
10337 else
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341 eval "$as_ac_var=no"
10342 fi
10343
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10346 fi
10347 ac_res=`eval echo '${'$as_ac_var'}'`
10348 { echo "$as_me:$LINENO: result: $ac_res" >&5
10349 echo "${ECHO_T}$ac_res" >&6; }
10350 if test `eval echo '${'$as_ac_var'}'` = yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10353 _ACEOF
10354 haveselect=yes
10355 else
10356 haveselect=no
10357 fi
10358 done
10359
10360 if test "x$haveselect" = "xyes" ; then
10361 SELECT_TYPE="select"
10362 fi
10363 fi
10364
10365 if test ! "x$use_poll" = "xno"; then
10366
10367 for ac_func in poll
10368 do
10369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define $ac_func innocuous_$ac_func
10384
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char $ac_func (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10389
10390 #ifdef __STDC__
10391 # include <limits.h>
10392 #else
10393 # include <assert.h>
10394 #endif
10395
10396 #undef $ac_func
10397
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char $ac_func ();
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_$ac_func || defined __stub___$ac_func
10409 choke me
10410 #endif
10411
10412 int
10413 main ()
10414 {
10415 return $ac_func ();
10416 ;
10417 return 0;
10418 }
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425 esac
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext &&
10437 $as_test_x conftest$ac_exeext; then
10438 eval "$as_ac_var=yes"
10439 else
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 eval "$as_ac_var=no"
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10448 fi
10449 ac_res=`eval echo '${'$as_ac_var'}'`
10450 { echo "$as_me:$LINENO: result: $ac_res" >&5
10451 echo "${ECHO_T}$ac_res" >&6; }
10452 if test `eval echo '${'$as_ac_var'}'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455 _ACEOF
10456 havepoll=yes
10457 else
10458 havepoll=no
10459 fi
10460 done
10461
10462 if test "x$havepoll" = "xyes" ; then
10463 SELECT_TYPE="poll"
10464 fi
10465 fi
10466
10467 if test ! "x$use_kqueue" = "xno"; then
10468
10469 for ac_func in kevent
10470 do
10471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 else
10477 cat >conftest.$ac_ext <<_ACEOF
10478 /* confdefs.h. */
10479 _ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10485 #define $ac_func innocuous_$ac_func
10486
10487 /* System header to define __stub macros and hopefully few prototypes,
10488 which can conflict with char $ac_func (); below.
10489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10490 <limits.h> exists even on freestanding compilers. */
10491
10492 #ifdef __STDC__
10493 # include <limits.h>
10494 #else
10495 # include <assert.h>
10496 #endif
10497
10498 #undef $ac_func
10499
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10503 #ifdef __cplusplus
10504 extern "C"
10505 #endif
10506 char $ac_func ();
10507 /* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510 #if defined __stub_$ac_func || defined __stub___$ac_func
10511 choke me
10512 #endif
10513
10514 int
10515 main ()
10516 {
10517 return $ac_func ();
10518 ;
10519 return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_link") 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext &&
10539 $as_test_x conftest$ac_exeext; then
10540 eval "$as_ac_var=yes"
10541 else
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 eval "$as_ac_var=no"
10546 fi
10547
10548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549 conftest$ac_exeext conftest.$ac_ext
10550 fi
10551 ac_res=`eval echo '${'$as_ac_var'}'`
10552 { echo "$as_me:$LINENO: result: $ac_res" >&5
10553 echo "${ECHO_T}$ac_res" >&6; }
10554 if test `eval echo '${'$as_ac_var'}'` = yes; then
10555 cat >>confdefs.h <<_ACEOF
10556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10557 _ACEOF
10558 havekqueue=yes
10559 else
10560 havekqueue=no
10561 fi
10562 done
10563
10564 if test "x$havekqueue" = "xyes" ; then
10565 SELECT_TYPE="kqueue"
10566 fi
10567 fi
10568
10569 if test ! "x$use_epoll" = "xno"; then
10570
10571 for ac_func in epoll_ctl
10572 do
10573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10587 #define $ac_func innocuous_$ac_func
10588
10589 /* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char $ac_func (); below.
10591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10592 <limits.h> exists even on freestanding compilers. */
10593
10594 #ifdef __STDC__
10595 # include <limits.h>
10596 #else
10597 # include <assert.h>
10598 #endif
10599
10600 #undef $ac_func
10601
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10605 #ifdef __cplusplus
10606 extern "C"
10607 #endif
10608 char $ac_func ();
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined __stub_$ac_func || defined __stub___$ac_func
10613 choke me
10614 #endif
10615
10616 int
10617 main ()
10618 {
10619 return $ac_func ();
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest$ac_exeext &&
10641 $as_test_x conftest$ac_exeext; then
10642 eval "$as_ac_var=yes"
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647 eval "$as_ac_var=no"
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651 conftest$ac_exeext conftest.$ac_ext
10652 fi
10653 ac_res=`eval echo '${'$as_ac_var'}'`
10654 { echo "$as_me:$LINENO: result: $ac_res" >&5
10655 echo "${ECHO_T}$ac_res" >&6; }
10656 if test `eval echo '${'$as_ac_var'}'` = yes; then
10657 cat >>confdefs.h <<_ACEOF
10658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10659 _ACEOF
10660 haveepoll=yes
10661 else
10662 haveepoll=no
10663 fi
10664 done
10665
10666 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10667 if test "x$haveepoll" = "xyes" ; then
10668 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10669 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10670 if test "$cross_compiling" = yes; then
10671 { echo "$as_me:$LINENO: result: no" >&5
10672 echo "${ECHO_T}no" >&6; }
10673 else
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <stdint.h>
10681 #include <sys/param.h>
10682 #include <sys/types.h>
10683 #include <sys/epoll.h>
10684 #include <sys/syscall.h>
10685 #include <unistd.h>
10686
10687 int
10688 main(int argc, char **argv)
10689 {
10690 int epfd;
10691
10692 epfd = epoll_create(256);
10693 return (epfd == -1 ? 1 : 0);
10694 }
10695 _ACEOF
10696 rm -f conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_link") 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 { echo "$as_me:$LINENO: result: yes" >&5
10717 echo "${ECHO_T}yes" >&6; }
10718
10719 cat >>confdefs.h <<\_ACEOF
10720 #define HAVE_EPOLL 1
10721 _ACEOF
10722
10723 SELECT_TYPE="epoll"
10724 else
10725 echo "$as_me: program exited with status $ac_status" >&5
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ( exit $ac_status )
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10732 fi
10733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10734 fi
10735
10736
10737 fi
10738 fi
10739
10740 haveepollsyscall=no
10741
10742 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10743 if test "x$haveepoll" = "xno" ; then
10744 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10745 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10746 if test "$cross_compiling" = yes; then
10747 { echo "$as_me:$LINENO: result: no" >&5
10748 echo "${ECHO_T}no" >&6; }
10749 else
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <stdint.h>
10757 #include <sys/param.h>
10758 #include <sys/types.h>
10759 #include <sys/epoll.h>
10760 #include <sys/syscall.h>
10761 #include <unistd.h>
10762
10763 int
10764 epoll_create(int size)
10765 {
10766 return (syscall(__NR_epoll_create, size));
10767 }
10768
10769 int
10770 main(int argc, char **argv)
10771 {
10772 int epfd;
10773
10774 epfd = epoll_create(256);
10775 exit (epfd == -1 ? 1 : 0);
10776 }
10777 _ACEOF
10778 rm -f conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783 esac
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>&5
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 { echo "$as_me:$LINENO: result: yes" >&5
10799 echo "${ECHO_T}yes" >&6; }
10800
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_EPOLL 1
10803 _ACEOF
10804
10805 SELECT_TYPE="epoll"
10806 else
10807 echo "$as_me: program exited with status $ac_status" >&5
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 ( exit $ac_status )
10812 { echo "$as_me:$LINENO: result: no" >&5
10813 echo "${ECHO_T}no" >&6; }
10814 fi
10815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10816 fi
10817
10818
10819 fi
10820 fi
10821
10822 fi
10823
10824 fi
10825
10826 if test -z "$SELECT_TYPE"; then
10827 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10828 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10829 { (exit 1); exit 1; }; }
10830 fi
10831
10832 echo "Using $SELECT_TYPE for select loop."
10833
10834
10835 cat >>confdefs.h <<_ACEOF
10836 #define SELECT_TYPE "$SELECT_TYPE"
10837 _ACEOF
10838
10839
10840
10841
10842
10843 # Check whether --enable-assert was given.
10844 if test "${enable_assert+set}" = set; then
10845 enableval=$enable_assert; assert=$enableval
10846 else
10847 assert=no
10848 fi
10849
10850
10851 if test "$assert" = no; then
10852
10853 cat >>confdefs.h <<\_ACEOF
10854 #define NDEBUG 1
10855 _ACEOF
10856
10857 elif test "$assert" = soft; then
10858
10859 cat >>confdefs.h <<\_ACEOF
10860 #define SOFT_ASSERT 1
10861 _ACEOF
10862
10863
10864 cat >>confdefs.h <<\_ACEOF
10865 #define NDEBUG 1
10866 _ACEOF
10867
10868 elif test "$assert" = yes; then
10869 assert = "hard";
10870 fi
10871
10872 { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10873 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10874 # Check whether --enable-iodebug was given.
10875 if test "${enable_iodebug+set}" = set; then
10876 enableval=$enable_iodebug; iodebug=$enableval
10877 else
10878 iodebug=no
10879 fi
10880
10881
10882 if test "$iodebug" = yes; then
10883
10884 cat >>confdefs.h <<\_ACEOF
10885 #define USE_IODEBUG_HOOKS 1
10886 _ACEOF
10887
10888 { echo "$as_me:$LINENO: result: yes" >&5
10889 echo "${ECHO_T}yes" >&6; }
10890 else
10891 { echo "$as_me:$LINENO: result: no" >&5
10892 echo "${ECHO_T}no" >&6; }
10893 fi
10894
10895
10896 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10897 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10898 # Check whether --enable-profile was given.
10899 if test "${enable_profile+set}" = set; then
10900 enableval=$enable_profile; profile=$enableval
10901 else
10902 profile=no
10903 fi
10904
10905
10906 if test "$profile" = yes; then
10907 if test "$ac_cv_c_compiler_gnu" = yes; then
10908 IRC_CFLAGS="$IRC_CFLAGS -pg"
10909 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10910 echo "${ECHO_T}yes, adding -pg" >&6; }
10911
10912 cat >>confdefs.h <<\_ACEOF
10913 #define CHARYBDIS_PROFILE 1
10914 _ACEOF
10915
10916 else
10917 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10918 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
10919 fi
10920 else
10921 { echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6; }
10923 fi
10924
10925 # Check whether --enable-balloc was given.
10926 if test "${enable_balloc+set}" = set; then
10927 enableval=$enable_balloc; balloc=$enableval
10928 else
10929 balloc=yes
10930 fi
10931
10932
10933 if test "$balloc" = no; then
10934
10935 cat >>confdefs.h <<\_ACEOF
10936 #define NOBALLOC 1
10937 _ACEOF
10938
10939 fi
10940
10941 # Check whether --enable-small-net was given.
10942 if test "${enable_small_net+set}" = set; then
10943 enableval=$enable_small_net; small_net=$enableval
10944 else
10945 small_net=no
10946 fi
10947
10948
10949 if test "$small_net" = yes; then
10950
10951 cat >>confdefs.h <<\_ACEOF
10952 #define NICKNAMEHISTORYLENGTH 1500
10953 _ACEOF
10954
10955
10956 cat >>confdefs.h <<\_ACEOF
10957 #define CHANNEL_HEAP_SIZE 256
10958 _ACEOF
10959
10960
10961 cat >>confdefs.h <<\_ACEOF
10962 #define BAN_HEAP_SIZE 128
10963 _ACEOF
10964
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 #define CLIENT_HEAP_SIZE 256
10968 _ACEOF
10969
10970
10971 cat >>confdefs.h <<\_ACEOF
10972 #define LCLIENT_HEAP_SIZE 128
10973 _ACEOF
10974
10975
10976 cat >>confdefs.h <<\_ACEOF
10977 #define PCLIENT_HEAP_SIZE 32
10978 _ACEOF
10979
10980
10981 cat >>confdefs.h <<\_ACEOF
10982 #define USER_HEAP_SIZE 128
10983 _ACEOF
10984
10985
10986 cat >>confdefs.h <<\_ACEOF
10987 #define DNODE_HEAP_SIZE 256
10988 _ACEOF
10989
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define TOPIC_HEAP_SIZE 256
10993 _ACEOF
10994
10995
10996 cat >>confdefs.h <<\_ACEOF
10997 #define LINEBUF_HEAP_SIZE 128
10998 _ACEOF
10999
11000
11001 cat >>confdefs.h <<\_ACEOF
11002 #define MEMBER_HEAP_SIZE 256
11003 _ACEOF
11004
11005
11006 cat >>confdefs.h <<\_ACEOF
11007 #define ND_HEAP_SIZE 128
11008 _ACEOF
11009
11010
11011 cat >>confdefs.h <<\_ACEOF
11012 #define CONFITEM_HEAP_SIZE 128
11013 _ACEOF
11014
11015
11016 cat >>confdefs.h <<\_ACEOF
11017 #define MONITOR_HEAP_SIZE 128
11018 _ACEOF
11019
11020 else
11021
11022 cat >>confdefs.h <<\_ACEOF
11023 #define NICKNAMEHISTORYLENGTH 15000
11024 _ACEOF
11025
11026
11027 cat >>confdefs.h <<\_ACEOF
11028 #define CHANNEL_HEAP_SIZE 8192
11029 _ACEOF
11030
11031
11032 cat >>confdefs.h <<\_ACEOF
11033 #define BAN_HEAP_SIZE 4096
11034 _ACEOF
11035
11036
11037 cat >>confdefs.h <<\_ACEOF
11038 #define CLIENT_HEAP_SIZE 8192
11039 _ACEOF
11040
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define LCLIENT_HEAP_SIZE 1024
11044 _ACEOF
11045
11046
11047 cat >>confdefs.h <<\_ACEOF
11048 #define PCLIENT_HEAP_SIZE 256
11049 _ACEOF
11050
11051
11052 cat >>confdefs.h <<\_ACEOF
11053 #define USER_HEAP_SIZE 8192
11054 _ACEOF
11055
11056
11057 cat >>confdefs.h <<\_ACEOF
11058 #define DNODE_HEAP_SIZE 8192
11059 _ACEOF
11060
11061
11062 cat >>confdefs.h <<\_ACEOF
11063 #define TOPIC_HEAP_SIZE 4096
11064 _ACEOF
11065
11066
11067 cat >>confdefs.h <<\_ACEOF
11068 #define LINEBUF_HEAP_SIZE 2048
11069 _ACEOF
11070
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define MEMBER_HEAP_SIZE 32768
11074 _ACEOF
11075
11076
11077 cat >>confdefs.h <<\_ACEOF
11078 #define ND_HEAP_SIZE 512
11079 _ACEOF
11080
11081
11082 cat >>confdefs.h <<\_ACEOF
11083 #define CONFITEM_HEAP_SIZE 256
11084 _ACEOF
11085
11086
11087 cat >>confdefs.h <<\_ACEOF
11088 #define MONITOR_HEAP_SIZE 1024
11089 _ACEOF
11090
11091 fi
11092
11093
11094 # Check whether --with-nicklen was given.
11095 if test "${with_nicklen+set}" = set; then
11096 withval=$with_nicklen;
11097 if test $withval -ge 50; then
11098 NICKLEN=50
11099 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
11100 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11101 else
11102 NICKLEN="$withval"
11103 fi
11104
11105 else
11106 NICKLEN=15
11107 fi
11108
11109
11110
11111 # Check whether --with-topiclen was given.
11112 if test "${with_topiclen+set}" = set; then
11113 withval=$with_topiclen;
11114 if test $withval -ge 390; then
11115 TOPICLEN=390
11116 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11117 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11118 else
11119 TOPICLEN=$withval
11120 fi
11121
11122 else
11123 TOPICLEN=390
11124 fi
11125
11126
11127
11128 cat >>confdefs.h <<_ACEOF
11129 #define TOPICLEN ${TOPICLEN}
11130 _ACEOF
11131
11132
11133 cat >>confdefs.h <<_ACEOF
11134 #define NICKLEN (${NICKLEN}+1)
11135 _ACEOF
11136
11137
11138 shared_modules="yes"
11139 if test "$shared_modules" = yes; then
11140
11141 if test "$CYGWIN" = yes; then
11142 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11143 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11144 shared_modules="no"
11145 fi
11146
11147 if test "$CC" = tcc -a "$TenDRA" = "no"; then
11148 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11149 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11150 shared_modules="no"
11151 fi
11152 fi
11153
11154 if test "$shared_modules" = yes; then
11155 DYNLINK_C=dynlink.c
11156
11157 for ac_header in dlfcn.h
11158 do
11159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11164 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 fi
11166 ac_res=`eval echo '${'$as_ac_Header'}'`
11167 { echo "$as_me:$LINENO: result: $ac_res" >&5
11168 echo "${ECHO_T}$ac_res" >&6; }
11169 else
11170 # Is the header compilable?
11171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 $ac_includes_default
11180 #include <$ac_header>
11181 _ACEOF
11182 rm -f conftest.$ac_objext
11183 if { (ac_try="$ac_compile"
11184 case "(($ac_try" in
11185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11186 *) ac_try_echo=$ac_try;;
11187 esac
11188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11189 (eval "$ac_compile") 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } && {
11196 test -z "$ac_c_werror_flag" ||
11197 test ! -s conftest.err
11198 } && test -s conftest.$ac_objext; then
11199 ac_header_compiler=yes
11200 else
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11203
11204 ac_header_compiler=no
11205 fi
11206
11207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11209 echo "${ECHO_T}$ac_header_compiler" >&6; }
11210
11211 # Is the header present?
11212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h. */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 #include <$ac_header>
11221 _ACEOF
11222 if { (ac_try="$ac_cpp conftest.$ac_ext"
11223 case "(($ac_try" in
11224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11225 *) ac_try_echo=$ac_try;;
11226 esac
11227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11229 ac_status=$?
11230 grep -v '^ *+' conftest.er1 >conftest.err
11231 rm -f conftest.er1
11232 cat conftest.err >&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } >/dev/null && {
11235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11236 test ! -s conftest.err
11237 }; then
11238 ac_header_preproc=yes
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 ac_header_preproc=no
11244 fi
11245
11246 rm -f conftest.err conftest.$ac_ext
11247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11248 echo "${ECHO_T}$ac_header_preproc" >&6; }
11249
11250 # So? What about this header?
11251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11252 yes:no: )
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11257 ac_header_preproc=yes
11258 ;;
11259 no:yes:* )
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11272
11273 ;;
11274 esac
11275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280 eval "$as_ac_Header=\$ac_header_preproc"
11281 fi
11282 ac_res=`eval echo '${'$as_ac_Header'}'`
11283 { echo "$as_me:$LINENO: result: $ac_res" >&5
11284 echo "${ECHO_T}$ac_res" >&6; }
11285
11286 fi
11287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11288 cat >>confdefs.h <<_ACEOF
11289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11290 _ACEOF
11291
11292 fi
11293
11294 done
11295
11296 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11297 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
11298 if test "${ac_cv_search_shl_load+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 else
11301 ac_func_search_save_LIBS=$LIBS
11302 cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h. */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char shl_load ();
11316 int
11317 main ()
11318 {
11319 return shl_load ();
11320 ;
11321 return 0;
11322 }
11323 _ACEOF
11324 for ac_lib in '' dld; do
11325 if test -z "$ac_lib"; then
11326 ac_res="none required"
11327 else
11328 ac_res=-l$ac_lib
11329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11330 fi
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (ac_try="$ac_link"
11333 case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335 *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338 (eval "$ac_link") 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } && {
11345 test -z "$ac_c_werror_flag" ||
11346 test ! -s conftest.err
11347 } && test -s conftest$ac_exeext &&
11348 $as_test_x conftest$ac_exeext; then
11349 ac_cv_search_shl_load=$ac_res
11350 else
11351 echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11353
11354
11355 fi
11356
11357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11358 conftest$ac_exeext
11359 if test "${ac_cv_search_shl_load+set}" = set; then
11360 break
11361 fi
11362 done
11363 if test "${ac_cv_search_shl_load+set}" = set; then
11364 :
11365 else
11366 ac_cv_search_shl_load=no
11367 fi
11368 rm conftest.$ac_ext
11369 LIBS=$ac_func_search_save_LIBS
11370 fi
11371 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11372 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11373 ac_res=$ac_cv_search_shl_load
11374 if test "$ac_res" != no; then
11375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11376
11377
11378 cat >>confdefs.h <<\_ACEOF
11379 #define HAVE_SHL_LOAD 1
11380 _ACEOF
11381
11382 SUFFIX=".sl"
11383 MOD_TARGET=hpux_shared
11384 SEDOBJ="s/\.o/.sl/g"
11385
11386 else
11387
11388 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11389 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11390 if test "${ac_cv_search_dlopen+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393 ac_func_search_save_LIBS=$LIBS
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char dlopen ();
11408 int
11409 main ()
11410 {
11411 return dlopen ();
11412 ;
11413 return 0;
11414 }
11415 _ACEOF
11416 for ac_lib in '' dl c_r; do
11417 if test -z "$ac_lib"; then
11418 ac_res="none required"
11419 else
11420 ac_res=-l$ac_lib
11421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11422 fi
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_link") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest$ac_exeext &&
11440 $as_test_x conftest$ac_exeext; then
11441 ac_cv_search_dlopen=$ac_res
11442 else
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446
11447 fi
11448
11449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11450 conftest$ac_exeext
11451 if test "${ac_cv_search_dlopen+set}" = set; then
11452 break
11453 fi
11454 done
11455 if test "${ac_cv_search_dlopen+set}" = set; then
11456 :
11457 else
11458 ac_cv_search_dlopen=no
11459 fi
11460 rm conftest.$ac_ext
11461 LIBS=$ac_func_search_save_LIBS
11462 fi
11463 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11464 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11465 ac_res=$ac_cv_search_dlopen
11466 if test "$ac_res" != no; then
11467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11468
11469
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_DLOPEN 1
11472 _ACEOF
11473
11474 SUFFIX=".so"
11475 MOD_TARGET=shared_modules
11476 SEDOBJ="s/\.o/.so/g"
11477 if test "$AppleGCC" = yes; then
11478
11479 for ac_header in mach-o/dyld.h
11480 do
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 fi
11488 ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 else
11492 # Is the header compilable?
11493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h. */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 $ac_includes_default
11502 #include <$ac_header>
11503 _ACEOF
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 ac_header_compiler=yes
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11525
11526 ac_header_compiler=no
11527 fi
11528
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11532
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null && {
11557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 }; then
11560 ac_header_preproc=yes
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_header_preproc=no
11566 fi
11567
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11571
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574 yes:no: )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11580 ;;
11581 no:yes:* )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11594
11595 ;;
11596 esac
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 eval "$as_ac_Header=\$ac_header_preproc"
11603 fi
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11607
11608 fi
11609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11612 _ACEOF
11613
11614 fi
11615
11616 done
11617
11618 fi
11619 { echo "$as_me:$LINENO: checking for dlsym" >&5
11620 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11621 if test "${ac_cv_func_dlsym+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624 cat >conftest.$ac_ext <<_ACEOF
11625 /* confdefs.h. */
11626 _ACEOF
11627 cat confdefs.h >>conftest.$ac_ext
11628 cat >>conftest.$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11632 #define dlsym innocuous_dlsym
11633
11634 /* System header to define __stub macros and hopefully few prototypes,
11635 which can conflict with char dlsym (); below.
11636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11637 <limits.h> exists even on freestanding compilers. */
11638
11639 #ifdef __STDC__
11640 # include <limits.h>
11641 #else
11642 # include <assert.h>
11643 #endif
11644
11645 #undef dlsym
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dlsym ();
11654 /* The GNU C library defines this for functions which it implements
11655 to always fail with ENOSYS. Some functions are actually named
11656 something starting with __ and the normal name is an alias. */
11657 #if defined __stub_dlsym || defined __stub___dlsym
11658 choke me
11659 #endif
11660
11661 int
11662 main ()
11663 {
11664 return dlsym ();
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (ac_try="$ac_link"
11671 case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_link") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } && {
11683 test -z "$ac_c_werror_flag" ||
11684 test ! -s conftest.err
11685 } && test -s conftest$ac_exeext &&
11686 $as_test_x conftest$ac_exeext; then
11687 ac_cv_func_dlsym=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11691
11692 ac_cv_func_dlsym=no
11693 fi
11694
11695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11696 conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11699 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11700 if test $ac_cv_func_dlsym = yes; then
11701 :
11702 else
11703
11704 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11705 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11706 shared_modules=no
11707
11708 fi
11709
11710
11711 for ac_func in dlfunc
11712 do
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 else
11719 cat >conftest.$ac_ext <<_ACEOF
11720 /* confdefs.h. */
11721 _ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11727 #define $ac_func innocuous_$ac_func
11728
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char $ac_func (); below.
11731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732 <limits.h> exists even on freestanding compilers. */
11733
11734 #ifdef __STDC__
11735 # include <limits.h>
11736 #else
11737 # include <assert.h>
11738 #endif
11739
11740 #undef $ac_func
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char $ac_func ();
11749 /* The GNU C library defines this for functions which it implements
11750 to always fail with ENOSYS. Some functions are actually named
11751 something starting with __ and the normal name is an alias. */
11752 #if defined __stub_$ac_func || defined __stub___$ac_func
11753 choke me
11754 #endif
11755
11756 int
11757 main ()
11758 {
11759 return $ac_func ();
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_link") 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && {
11778 test -z "$ac_c_werror_flag" ||
11779 test ! -s conftest.err
11780 } && test -s conftest$ac_exeext &&
11781 $as_test_x conftest$ac_exeext; then
11782 eval "$as_ac_var=yes"
11783 else
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787 eval "$as_ac_var=no"
11788 fi
11789
11790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11791 conftest$ac_exeext conftest.$ac_ext
11792 fi
11793 ac_res=`eval echo '${'$as_ac_var'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800
11801 fi
11802 done
11803
11804
11805 else
11806
11807 shared_modules=no
11808
11809 fi
11810
11811
11812 fi
11813
11814 fi
11815
11816
11817 cat >>confdefs.h <<_ACEOF
11818 #define SHARED_SUFFIX "$SUFFIX"
11819 _ACEOF
11820
11821
11822 if test "$shared_modules" = yes; then
11823 # The GNU linker requires the -export-dynamic option to make
11824 # all symbols visible in the dynamic symbol table.
11825 hold_ldflags=$LDFLAGS
11826 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11827 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
11828 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h. */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835
11836 int
11837 main ()
11838 {
11839 int i;
11840 ;
11841 return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (ac_try="$ac_link"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851 (eval "$ac_link") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest$ac_exeext &&
11861 $as_test_x conftest$ac_exeext; then
11862 found=yes
11863 else
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 found=no
11868 fi
11869
11870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11871 conftest$ac_exeext conftest.$ac_ext
11872 LDFLAGS=$hold_ldflags
11873
11874 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11875 found="no, IRIX ld uses -B,dynamic"
11876 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11877 fi
11878
11879 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11880 found="no, AIX ld uses -G -brtl"
11881 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11882 fi
11883
11884 { echo "$as_me:$LINENO: result: $found" >&5
11885 echo "${ECHO_T}$found" >&6; }
11886
11887 if test "$found" = yes; then
11888 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11889 fi
11890
11891 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11892 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
11893 if test "$SGS" = "yes"; then
11894 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11895 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
11896 PICFLAGS="-KPIC -DPIC -G"
11897 fi
11898
11899 if test "$AppleGCC" = "yes"; then
11900 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11901 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
11902 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11903 fi
11904 if test "$HPUX" = "yes" -a "$CC" != gcc; then
11905 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11906 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
11907 PICFLAGS="+z -r -q -n -c"
11908 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11909 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
11910
11911 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
11912 { echo "$as_me:$LINENO: result: no" >&5
11913 echo "${ECHO_T}no" >&6; }
11914 else
11915 { echo "$as_me:$LINENO: result: yes" >&5
11916 echo "${ECHO_T}yes" >&6; }
11917 PICFLAGS="$PICFLAGS +ESfic"
11918 fi
11919
11920 LDFLAGS="${LDFLAGS} -Wl,-E"
11921 fi
11922 if test "$Tru" = yes -a "$CC" != gcc; then
11923 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11924 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
11925 PICFLAGS="-shared -expect_unresolved '*' "
11926 LDFLAGS="-call_shared"
11927 fi
11928 if test -z "$PICFLAGS"; then
11929 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11930 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11931 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
11932 PICFLAGS="-fPIC -DPIC -shared"
11933 else
11934 { echo "$as_me:$LINENO: result: no" >&5
11935 echo "${ECHO_T}no" >&6; }
11936 shared_modules=no
11937 fi
11938 fi
11939 fi
11940
11941 # This must be down here, or it will mess up checks like the ones
11942 # for -Wl,-export-dynamic
11943 # -- jilles
11944 # Check whether --enable-warnings was given.
11945 if test "${enable_warnings+set}" = set; then
11946 enableval=$enable_warnings;
11947 IRC_CFLAGS="$IRC_CFLAGS -O0"
11948 CFLAGS="$IRC_CFLAGS"
11949
11950
11951 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11952 echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
11953 if test "${GCC-no}" = yes
11954 then
11955 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 else
11958
11959 oldcflags="${CFLAGS-}"
11960 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11967
11968 #include <string.h>
11969 #include <stdio.h>
11970 int main(void);
11971
11972 int
11973 main ()
11974 {
11975
11976 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11977
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (ac_try="$ac_compile"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
11999 charybdis_cv_c_gcc_w_all=yes
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 charybdis_cv_c_gcc_w_all=no
12005 fi
12006
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12008 CFLAGS="${oldcflags}"
12009 fi
12010
12011 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
12012 CWARNS="${CWARNS}-Wall "
12013 { echo "$as_me:$LINENO: result: ok" >&5
12014 echo "${ECHO_T}ok" >&6; }
12015 else
12016 charybdis_cv_c_gcc_w_all=''
12017 { echo "$as_me:$LINENO: result: no" >&5
12018 echo "${ECHO_T}no" >&6; }
12019 fi
12020 else
12021 { echo "$as_me:$LINENO: result: no" >&5
12022 echo "${ECHO_T}no" >&6; }
12023 fi
12024
12025
12026 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12027 echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
12028 if test "${GCC-no}" = yes
12029 then
12030 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033
12034 oldcflags="${CFLAGS-}"
12035 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12036 cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h. */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042
12043 #include <string.h>
12044 #include <stdio.h>
12045 int main(void);
12046
12047 int
12048 main ()
12049 {
12050
12051 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12052
12053 ;
12054 return 0;
12055 }
12056 _ACEOF
12057 rm -f conftest.$ac_objext
12058 if { (ac_try="$ac_compile"
12059 case "(($ac_try" in
12060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12061 *) ac_try_echo=$ac_try;;
12062 esac
12063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12064 (eval "$ac_compile") 2>conftest.er1
12065 ac_status=$?
12066 grep -v '^ *+' conftest.er1 >conftest.err
12067 rm -f conftest.er1
12068 cat conftest.err >&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && {
12071 test -z "$ac_c_werror_flag" ||
12072 test ! -s conftest.err
12073 } && test -s conftest.$ac_objext; then
12074 charybdis_cv_c_gcc_w_pointer_arith=yes
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 charybdis_cv_c_gcc_w_pointer_arith=no
12080 fi
12081
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083 CFLAGS="${oldcflags}"
12084 fi
12085
12086 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
12087 CWARNS="${CWARNS}-Wpointer-arith "
12088 { echo "$as_me:$LINENO: result: ok" >&5
12089 echo "${ECHO_T}ok" >&6; }
12090 else
12091 charybdis_cv_c_gcc_w_pointer_arith=''
12092 { echo "$as_me:$LINENO: result: no" >&5
12093 echo "${ECHO_T}no" >&6; }
12094 fi
12095 else
12096 { echo "$as_me:$LINENO: result: no" >&5
12097 echo "${ECHO_T}no" >&6; }
12098 fi
12099
12100
12101 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12102 echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
12103 if test "${GCC-no}" = yes
12104 then
12105 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108
12109 oldcflags="${CFLAGS-}"
12110 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h. */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117
12118 #include <string.h>
12119 #include <stdio.h>
12120 int main(void);
12121
12122 int
12123 main ()
12124 {
12125
12126 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12127
12128 ;
12129 return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext
12133 if { (ac_try="$ac_compile"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_compile") 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } && {
12146 test -z "$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 } && test -s conftest.$ac_objext; then
12149 charybdis_cv_c_gcc_w_implicit=yes
12150 else
12151 echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 charybdis_cv_c_gcc_w_implicit=no
12155 fi
12156
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 CFLAGS="${oldcflags}"
12159 fi
12160
12161 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
12162 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
12163 { echo "$as_me:$LINENO: result: ok" >&5
12164 echo "${ECHO_T}ok" >&6; }
12165 else
12166 charybdis_cv_c_gcc_w_implicit=''
12167 { echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6; }
12169 fi
12170 else
12171 { echo "$as_me:$LINENO: result: no" >&5
12172 echo "${ECHO_T}no" >&6; }
12173 fi
12174
12175
12176 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12177 echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
12178 if test "${GCC-no}" = yes
12179 then
12180 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12181 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183
12184 oldcflags="${CFLAGS-}"
12185 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192
12193 #include <string.h>
12194 #include <stdio.h>
12195 int main(void);
12196
12197 int
12198 main ()
12199 {
12200
12201 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12202
12203 ;
12204 return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext
12208 if { (ac_try="$ac_compile"
12209 case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_compile") 2>conftest.er1
12215 ac_status=$?
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } && {
12221 test -z "$ac_c_werror_flag" ||
12222 test ! -s conftest.err
12223 } && test -s conftest.$ac_objext; then
12224 charybdis_cv_c_gcc_w_cast_align=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229 charybdis_cv_c_gcc_w_cast_align=no
12230 fi
12231
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 CFLAGS="${oldcflags}"
12234 fi
12235
12236 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
12237 CWARNS="${CWARNS}-Wcast-align "
12238 { echo "$as_me:$LINENO: result: ok" >&5
12239 echo "${ECHO_T}ok" >&6; }
12240 else
12241 charybdis_cv_c_gcc_w_cast_align=''
12242 { echo "$as_me:$LINENO: result: no" >&5
12243 echo "${ECHO_T}no" >&6; }
12244 fi
12245 else
12246 { echo "$as_me:$LINENO: result: no" >&5
12247 echo "${ECHO_T}no" >&6; }
12248 fi
12249
12250
12251 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12252 echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
12253 if test "${GCC-no}" = yes
12254 then
12255 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 else
12258
12259 oldcflags="${CFLAGS-}"
12260 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12261 cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h. */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h. */
12267
12268 #include <string.h>
12269 #include <stdio.h>
12270 int main(void);
12271
12272 int
12273 main ()
12274 {
12275
12276 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12277
12278 ;
12279 return 0;
12280 }
12281 _ACEOF
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.$ac_objext; then
12299 charybdis_cv_c_gcc_w_cast_qual=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 charybdis_cv_c_gcc_w_cast_qual=no
12305 fi
12306
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 CFLAGS="${oldcflags}"
12309 fi
12310
12311 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12312 CWARNS="${CWARNS}-Wcast-qual "
12313 { echo "$as_me:$LINENO: result: ok" >&5
12314 echo "${ECHO_T}ok" >&6; }
12315 else
12316 charybdis_cv_c_gcc_w_cast_qual=''
12317 { echo "$as_me:$LINENO: result: no" >&5
12318 echo "${ECHO_T}no" >&6; }
12319 fi
12320 else
12321 { echo "$as_me:$LINENO: result: no" >&5
12322 echo "${ECHO_T}no" >&6; }
12323 fi
12324
12325
12326 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12327 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12328 if test "${GCC-no}" = yes
12329 then
12330 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 else
12333
12334 oldcflags="${CFLAGS-}"
12335 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342
12343 #include <string.h>
12344 #include <stdio.h>
12345 int main(void);
12346
12347 int
12348 main ()
12349 {
12350
12351 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12352
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (ac_try="$ac_compile"
12359 case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
12374 charybdis_cv_c_gcc_prototypes=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 charybdis_cv_c_gcc_prototypes=no
12380 fi
12381
12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12383 CFLAGS="${oldcflags}"
12384 fi
12385
12386 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12387 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12388 { echo "$as_me:$LINENO: result: ok" >&5
12389 echo "${ECHO_T}ok" >&6; }
12390 else
12391 charybdis_cv_c_gcc_prototypes=''
12392 { echo "$as_me:$LINENO: result: no" >&5
12393 echo "${ECHO_T}no" >&6; }
12394 fi
12395 else
12396 { echo "$as_me:$LINENO: result: no" >&5
12397 echo "${ECHO_T}no" >&6; }
12398 fi
12399
12400
12401 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12402 echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12403 if test "${GCC-no}" = yes
12404 then
12405 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 else
12408
12409 oldcflags="${CFLAGS-}"
12410 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h. */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417
12418 #include <string.h>
12419 #include <stdio.h>
12420 int main(void);
12421
12422 int
12423 main ()
12424 {
12425
12426 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12427
12428 ;
12429 return 0;
12430 }
12431 _ACEOF
12432 rm -f conftest.$ac_objext
12433 if { (ac_try="$ac_compile"
12434 case "(($ac_try" in
12435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12436 *) ac_try_echo=$ac_try;;
12437 esac
12438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12439 (eval "$ac_compile") 2>conftest.er1
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest.$ac_objext; then
12449 charybdis_cv_c_gcc_parenthesis=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 charybdis_cv_c_gcc_parenthesis=no
12455 fi
12456
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 CFLAGS="${oldcflags}"
12459 fi
12460
12461 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12462 CWARNS="${CWARNS}-Wparenthesis "
12463 { echo "$as_me:$LINENO: result: ok" >&5
12464 echo "${ECHO_T}ok" >&6; }
12465 else
12466 charybdis_cv_c_gcc_parenthesis=''
12467 { echo "$as_me:$LINENO: result: no" >&5
12468 echo "${ECHO_T}no" >&6; }
12469 fi
12470 else
12471 { echo "$as_me:$LINENO: result: no" >&5
12472 echo "${ECHO_T}no" >&6; }
12473 fi
12474
12475
12476 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12477 echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12478 if test "${GCC-no}" = yes
12479 then
12480 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482 else
12483
12484 oldcflags="${CFLAGS-}"
12485 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12486 cat >conftest.$ac_ext <<_ACEOF
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492
12493 #include <string.h>
12494 #include <stdio.h>
12495 int main(void);
12496
12497 int
12498 main ()
12499 {
12500
12501 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12502
12503 ;
12504 return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext
12508 if { (ac_try="$ac_compile"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_compile") 2>conftest.er1
12515 ac_status=$?
12516 grep -v '^ *+' conftest.er1 >conftest.err
12517 rm -f conftest.er1
12518 cat conftest.err >&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
12524 charybdis_cv_c_gcc_w=yes
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 charybdis_cv_c_gcc_w=no
12530 fi
12531
12532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12533 CFLAGS="${oldcflags}"
12534 fi
12535
12536 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12537 CWARNS="${CWARNS}-W -Wno-unused "
12538 { echo "$as_me:$LINENO: result: ok" >&5
12539 echo "${ECHO_T}ok" >&6; }
12540 else
12541 charybdis_cv_c_gcc_w=''
12542 { echo "$as_me:$LINENO: result: no" >&5
12543 echo "${ECHO_T}no" >&6; }
12544 fi
12545 else
12546 { echo "$as_me:$LINENO: result: no" >&5
12547 echo "${ECHO_T}no" >&6; }
12548 fi
12549
12550
12551 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12552 echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12553 if test "${GCC-no}" = yes
12554 then
12555 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 else
12558
12559 oldcflags="${CFLAGS-}"
12560 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h. */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567
12568 #include <string.h>
12569 #include <stdio.h>
12570 int main(void);
12571
12572 int
12573 main ()
12574 {
12575
12576 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12577
12578 ;
12579 return 0;
12580 }
12581 _ACEOF
12582 rm -f conftest.$ac_objext
12583 if { (ac_try="$ac_compile"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_compile") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } && {
12596 test -z "$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 } && test -s conftest.$ac_objext; then
12599 charybdis_cv_c_gcc_w_extra=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12603
12604 charybdis_cv_c_gcc_w_extra=no
12605 fi
12606
12607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 CFLAGS="${oldcflags}"
12609 fi
12610
12611 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12612 CWARNS="${CWARNS}-Wextra "
12613 { echo "$as_me:$LINENO: result: ok" >&5
12614 echo "${ECHO_T}ok" >&6; }
12615 else
12616 charybdis_cv_c_gcc_w_extra=''
12617 { echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6; }
12619 fi
12620 else
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12623 fi
12624
12625
12626 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12627 echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12628 if test "${GCC-no}" = yes
12629 then
12630 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633
12634 oldcflags="${CFLAGS-}"
12635 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642
12643 #include <string.h>
12644 #include <stdio.h>
12645 int main(void);
12646
12647 int
12648 main ()
12649 {
12650
12651 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12652
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 rm -f conftest.$ac_objext
12658 if { (ac_try="$ac_compile"
12659 case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12662 esac
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_compile") 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } && {
12671 test -z "$ac_c_werror_flag" ||
12672 test ! -s conftest.err
12673 } && test -s conftest.$ac_objext; then
12674 charybdis_cv_c_gcc_w_shadow=yes
12675 else
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12678
12679 charybdis_cv_c_gcc_w_shadow=no
12680 fi
12681
12682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12683 CFLAGS="${oldcflags}"
12684 fi
12685
12686 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12687 CWARNS="${CWARNS}-Wshadow "
12688 { echo "$as_me:$LINENO: result: ok" >&5
12689 echo "${ECHO_T}ok" >&6; }
12690 else
12691 charybdis_cv_c_gcc_w_shadow=''
12692 { echo "$as_me:$LINENO: result: no" >&5
12693 echo "${ECHO_T}no" >&6; }
12694 fi
12695 else
12696 { echo "$as_me:$LINENO: result: no" >&5
12697 echo "${ECHO_T}no" >&6; }
12698 fi
12699
12700
12701 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12702 echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12703 if test "${GCC-no}" = yes
12704 then
12705 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12706 echo $ECHO_N "(cached) $ECHO_C" >&6
12707 else
12708
12709 oldcflags="${CFLAGS-}"
12710 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717
12718 #include <string.h>
12719 #include <stdio.h>
12720 int main(void);
12721
12722 int
12723 main ()
12724 {
12725
12726 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12727
12728 ;
12729 return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (ac_try="$ac_compile"
12734 case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737 esac
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_compile") 2>conftest.er1
12740 ac_status=$?
12741 grep -v '^ *+' conftest.er1 >conftest.err
12742 rm -f conftest.er1
12743 cat conftest.err >&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && {
12746 test -z "$ac_c_werror_flag" ||
12747 test ! -s conftest.err
12748 } && test -s conftest.$ac_objext; then
12749 charybdis_cv_c_gcc_w_missing_noreturn=yes
12750 else
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 charybdis_cv_c_gcc_w_missing_noreturn=no
12755 fi
12756
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 CFLAGS="${oldcflags}"
12759 fi
12760
12761 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12762 CWARNS="${CWARNS}-Wmissing-noreturn "
12763 { echo "$as_me:$LINENO: result: ok" >&5
12764 echo "${ECHO_T}ok" >&6; }
12765 else
12766 charybdis_cv_c_gcc_w_missing_noreturn=''
12767 { echo "$as_me:$LINENO: result: no" >&5
12768 echo "${ECHO_T}no" >&6; }
12769 fi
12770 else
12771 { echo "$as_me:$LINENO: result: no" >&5
12772 echo "${ECHO_T}no" >&6; }
12773 fi
12774
12775
12776 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12777 echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12778 if test "${GCC-no}" = yes
12779 then
12780 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783
12784 oldcflags="${CFLAGS-}"
12785 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h. */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792
12793 #include <string.h>
12794 #include <stdio.h>
12795 int main(void);
12796
12797 int
12798 main ()
12799 {
12800
12801 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12802
12803 ;
12804 return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext
12808 if { (ac_try="$ac_compile"
12809 case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_compile") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest.$ac_objext; then
12824 charybdis_cv_c_gcc_w_undef=yes
12825 else
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 charybdis_cv_c_gcc_w_undef=no
12830 fi
12831
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 CFLAGS="${oldcflags}"
12834 fi
12835
12836 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12837 CWARNS="${CWARNS}-Wundef "
12838 { echo "$as_me:$LINENO: result: ok" >&5
12839 echo "${ECHO_T}ok" >&6; }
12840 else
12841 charybdis_cv_c_gcc_w_undef=''
12842 { echo "$as_me:$LINENO: result: no" >&5
12843 echo "${ECHO_T}no" >&6; }
12844 fi
12845 else
12846 { echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6; }
12848 fi
12849
12850
12851 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12852 echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
12853 if test "${GCC-no}" = yes
12854 then
12855 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 else
12858
12859 oldcflags="${CFLAGS-}"
12860 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12861 cat >conftest.$ac_ext <<_ACEOF
12862 /* confdefs.h. */
12863 _ACEOF
12864 cat confdefs.h >>conftest.$ac_ext
12865 cat >>conftest.$ac_ext <<_ACEOF
12866 /* end confdefs.h. */
12867
12868 #include <string.h>
12869 #include <stdio.h>
12870 int main(void);
12871
12872 int
12873 main ()
12874 {
12875
12876 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_compile") 2>conftest.er1
12890 ac_status=$?
12891 grep -v '^ *+' conftest.er1 >conftest.err
12892 rm -f conftest.er1
12893 cat conftest.err >&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } && {
12896 test -z "$ac_c_werror_flag" ||
12897 test ! -s conftest.err
12898 } && test -s conftest.$ac_objext; then
12899 charybdis_cv_c_gcc_w_packed=yes
12900 else
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904 charybdis_cv_c_gcc_w_packed=no
12905 fi
12906
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908 CFLAGS="${oldcflags}"
12909 fi
12910
12911 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12912 CWARNS="${CWARNS}-Wpacked "
12913 { echo "$as_me:$LINENO: result: ok" >&5
12914 echo "${ECHO_T}ok" >&6; }
12915 else
12916 charybdis_cv_c_gcc_w_packed=''
12917 { echo "$as_me:$LINENO: result: no" >&5
12918 echo "${ECHO_T}no" >&6; }
12919 fi
12920 else
12921 { echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6; }
12923 fi
12924
12925
12926 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12927 echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
12928 if test "${GCC-no}" = yes
12929 then
12930 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 else
12933
12934 oldcflags="${CFLAGS-}"
12935 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942
12943 #include <string.h>
12944 #include <stdio.h>
12945 int main(void);
12946
12947 int
12948 main ()
12949 {
12950
12951 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12952
12953 ;
12954 return 0;
12955 }
12956 _ACEOF
12957 rm -f conftest.$ac_objext
12958 if { (ac_try="$ac_compile"
12959 case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_compile") 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } && {
12971 test -z "$ac_c_werror_flag" ||
12972 test ! -s conftest.err
12973 } && test -s conftest.$ac_objext; then
12974 charybdis_cv_c_gcc_w_nested_externs=yes
12975 else
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12978
12979 charybdis_cv_c_gcc_w_nested_externs=no
12980 fi
12981
12982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12983 CFLAGS="${oldcflags}"
12984 fi
12985
12986 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12987 CWARNS="${CWARNS}-Wnested-externs "
12988 { echo "$as_me:$LINENO: result: ok" >&5
12989 echo "${ECHO_T}ok" >&6; }
12990 else
12991 charybdis_cv_c_gcc_w_nested_externs=''
12992 { echo "$as_me:$LINENO: result: no" >&5
12993 echo "${ECHO_T}no" >&6; }
12994 fi
12995 else
12996 { echo "$as_me:$LINENO: result: no" >&5
12997 echo "${ECHO_T}no" >&6; }
12998 fi
12999
13000
13001 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13002 echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
13003 if test "${GCC-no}" = yes
13004 then
13005 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008
13009 oldcflags="${CFLAGS-}"
13010 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017
13018 #include <string.h>
13019 #include <stdio.h>
13020 int main(void);
13021
13022 int
13023 main ()
13024 {
13025
13026 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13027
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 rm -f conftest.$ac_objext
13033 if { (ac_try="$ac_compile"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_compile") 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest.$ac_objext; then
13049 charybdis_cv_c_gcc_w_bad_function_cast=yes
13050 else
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13053
13054 charybdis_cv_c_gcc_w_bad_function_cast=no
13055 fi
13056
13057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 CFLAGS="${oldcflags}"
13059 fi
13060
13061 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
13062 CWARNS="${CWARNS}-Wbad-function-cast "
13063 { echo "$as_me:$LINENO: result: ok" >&5
13064 echo "${ECHO_T}ok" >&6; }
13065 else
13066 charybdis_cv_c_gcc_w_bad_function_cast=''
13067 { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13069 fi
13070 else
13071 { echo "$as_me:$LINENO: result: no" >&5
13072 echo "${ECHO_T}no" >&6; }
13073 fi
13074
13075
13076 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
13077 echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
13078 if test "${GCC-no}" = yes
13079 then
13080 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083
13084 oldcflags="${CFLAGS-}"
13085 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h. */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092
13093 #include <string.h>
13094 #include <stdio.h>
13095 int main(void);
13096
13097 int
13098 main ()
13099 {
13100
13101 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13102
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 rm -f conftest.$ac_objext
13108 if { (ac_try="$ac_compile"
13109 case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13112 esac
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_compile") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } && {
13121 test -z "$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13123 } && test -s conftest.$ac_objext; then
13124 charybdis_cv_c_gcc_w_unused=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 charybdis_cv_c_gcc_w_unused=no
13130 fi
13131
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 CFLAGS="${oldcflags}"
13134 fi
13135
13136 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13137 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13138 { echo "$as_me:$LINENO: result: ok" >&5
13139 echo "${ECHO_T}ok" >&6; }
13140 else
13141 charybdis_cv_c_gcc_w_unused=''
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13144 fi
13145 else
13146 { echo "$as_me:$LINENO: result: no" >&5
13147 echo "${ECHO_T}no" >&6; }
13148 fi
13149
13150
13151 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13152 echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
13153 if test "${GCC-no}" = yes
13154 then
13155 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158
13159 oldcflags="${CFLAGS-}"
13160 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13161 cat >conftest.$ac_ext <<_ACEOF
13162 /* confdefs.h. */
13163 _ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167
13168 #include <string.h>
13169 #include <stdio.h>
13170 int main(void);
13171
13172 int
13173 main ()
13174 {
13175
13176 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13177
13178 ;
13179 return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (ac_try="$ac_compile"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_compile") 2>conftest.er1
13190 ac_status=$?
13191 grep -v '^ *+' conftest.er1 >conftest.err
13192 rm -f conftest.er1
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } && {
13196 test -z "$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13198 } && test -s conftest.$ac_objext; then
13199 charybdis_cv_c_gcc_w_redundant_decls=yes
13200 else
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204 charybdis_cv_c_gcc_w_redundant_decls=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 CFLAGS="${oldcflags}"
13209 fi
13210
13211 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13212 CWARNS="${CWARNS}-Wredundant-decls "
13213 { echo "$as_me:$LINENO: result: ok" >&5
13214 echo "${ECHO_T}ok" >&6; }
13215 else
13216 charybdis_cv_c_gcc_w_redundant_decls=''
13217 { echo "$as_me:$LINENO: result: no" >&5
13218 echo "${ECHO_T}no" >&6; }
13219 fi
13220 else
13221 { echo "$as_me:$LINENO: result: no" >&5
13222 echo "${ECHO_T}no" >&6; }
13223 fi
13224
13225
13226 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13227 echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13228 if test "${GCC-no}" = yes
13229 then
13230 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233
13234 oldcflags="${CFLAGS-}"
13235 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242
13243 #include <string.h>
13244 #include <stdio.h>
13245 int main(void);
13246
13247 int
13248 main ()
13249 {
13250
13251 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13252
13253 ;
13254 return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (ac_try="$ac_compile"
13259 case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
13265 ac_status=$?
13266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } && {
13271 test -z "$ac_c_werror_flag" ||
13272 test ! -s conftest.err
13273 } && test -s conftest.$ac_objext; then
13274 charybdis_cv_c_gcc_w_float_equal=yes
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 charybdis_cv_c_gcc_w_float_equal=no
13280 fi
13281
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 CFLAGS="${oldcflags}"
13284 fi
13285
13286 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13287 CWARNS="${CWARNS}-Wfloat-equal "
13288 { echo "$as_me:$LINENO: result: ok" >&5
13289 echo "${ECHO_T}ok" >&6; }
13290 else
13291 charybdis_cv_c_gcc_w_float_equal=''
13292 { echo "$as_me:$LINENO: result: no" >&5
13293 echo "${ECHO_T}no" >&6; }
13294 fi
13295 else
13296 { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13298 fi
13299
13300
13301 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13302 echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; }
13303 if test "${GCC-no}" = yes
13304 then
13305 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308
13309 oldcflags="${CFLAGS-}"
13310 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317
13318 #include <string.h>
13319 #include <stdio.h>
13320 int main(void);
13321
13322 int
13323 main ()
13324 {
13325
13326 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13327
13328 ;
13329 return 0;
13330 }
13331 _ACEOF
13332 rm -f conftest.$ac_objext
13333 if { (ac_try="$ac_compile"
13334 case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337 esac
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_compile") 2>conftest.er1
13340 ac_status=$?
13341 grep -v '^ *+' conftest.er1 >conftest.err
13342 rm -f conftest.er1
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } && {
13346 test -z "$ac_c_werror_flag" ||
13347 test ! -s conftest.err
13348 } && test -s conftest.$ac_objext; then
13349 charybdis_cv_c_gcc_w_format=yes
13350 else
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354 charybdis_cv_c_gcc_w_format=no
13355 fi
13356
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 CFLAGS="${oldcflags}"
13359 fi
13360
13361 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13362 CWARNS="${CWARNS}-Wformat=2 "
13363 { echo "$as_me:$LINENO: result: ok" >&5
13364 echo "${ECHO_T}ok" >&6; }
13365 else
13366 charybdis_cv_c_gcc_w_format=''
13367 { echo "$as_me:$LINENO: result: no" >&5
13368 echo "${ECHO_T}no" >&6; }
13369 fi
13370 else
13371 { echo "$as_me:$LINENO: result: no" >&5
13372 echo "${ECHO_T}no" >&6; }
13373 fi
13374
13375
13376 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13377 echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13378 if test "${GCC-no}" = yes
13379 then
13380 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383
13384 oldcflags="${CFLAGS-}"
13385 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13386 cat >conftest.$ac_ext <<_ACEOF
13387 /* confdefs.h. */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392
13393 #include <string.h>
13394 #include <stdio.h>
13395 int main(void);
13396
13397 int
13398 main ()
13399 {
13400
13401 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13402
13403 ;
13404 return 0;
13405 }
13406 _ACEOF
13407 rm -f conftest.$ac_objext
13408 if { (ac_try="$ac_compile"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_compile") 2>conftest.er1
13415 ac_status=$?
13416 grep -v '^ *+' conftest.er1 >conftest.err
13417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest.$ac_objext; then
13424 charybdis_cv_c_gcc_pedantic=yes
13425 else
13426 echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429 charybdis_cv_c_gcc_pedantic=no
13430 fi
13431
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 CFLAGS="${oldcflags}"
13434 fi
13435
13436 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13437 CWARNS="${CWARNS}-pedantic "
13438 { echo "$as_me:$LINENO: result: ok" >&5
13439 echo "${ECHO_T}ok" >&6; }
13440 else
13441 charybdis_cv_c_gcc_pedantic=''
13442 { echo "$as_me:$LINENO: result: no" >&5
13443 echo "${ECHO_T}no" >&6; }
13444 fi
13445 else
13446 { echo "$as_me:$LINENO: result: no" >&5
13447 echo "${ECHO_T}no" >&6; }
13448 fi
13449
13450
13451 IRC_CFLAGS="$CFLAGS"
13452
13453 fi
13454
13455
13456 if test "$shared_modules" = no; then
13457 DYNLINK_C=""
13458 MOD_TARGET="libmodules.a"
13459 MODULES_LIBS="../modules/libmodules.a"
13460 SEDOBJ=""
13461
13462 cat >>confdefs.h <<\_ACEOF
13463 #define STATIC_MODULES 1
13464 _ACEOF
13465
13466 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13467 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13468 fi
13469
13470 if test "$shared_modules" = yes; then
13471
13472 { echo "$as_me:$LINENO: checking for nlist" >&5
13473 echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13474 if test "${ac_cv_func_nlist+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477 cat >conftest.$ac_ext <<_ACEOF
13478 /* confdefs.h. */
13479 _ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13485 #define nlist innocuous_nlist
13486
13487 /* System header to define __stub macros and hopefully few prototypes,
13488 which can conflict with char nlist (); below.
13489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13490 <limits.h> exists even on freestanding compilers. */
13491
13492 #ifdef __STDC__
13493 # include <limits.h>
13494 #else
13495 # include <assert.h>
13496 #endif
13497
13498 #undef nlist
13499
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13503 #ifdef __cplusplus
13504 extern "C"
13505 #endif
13506 char nlist ();
13507 /* The GNU C library defines this for functions which it implements
13508 to always fail with ENOSYS. Some functions are actually named
13509 something starting with __ and the normal name is an alias. */
13510 #if defined __stub_nlist || defined __stub___nlist
13511 choke me
13512 #endif
13513
13514 int
13515 main ()
13516 {
13517 return nlist ();
13518 ;
13519 return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (ac_try="$ac_link"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529 (eval "$ac_link") 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } && {
13536 test -z "$ac_c_werror_flag" ||
13537 test ! -s conftest.err
13538 } && test -s conftest$ac_exeext &&
13539 $as_test_x conftest$ac_exeext; then
13540 ac_cv_func_nlist=yes
13541 else
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 ac_cv_func_nlist=no
13546 fi
13547
13548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13549 conftest$ac_exeext conftest.$ac_ext
13550 fi
13551 { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13552 echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13553 if test $ac_cv_func_nlist = yes; then
13554 :
13555 else
13556 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13557 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13558 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-ldl $LIBS"
13563 cat >conftest.$ac_ext <<_ACEOF
13564 /* confdefs.h. */
13565 _ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13573 #ifdef __cplusplus
13574 extern "C"
13575 #endif
13576 char nlist ();
13577 int
13578 main ()
13579 {
13580 return nlist ();
13581 ;
13582 return 0;
13583 }
13584 _ACEOF
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13590 esac
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13593 ac_status=$?
13594 grep -v '^ *+' conftest.er1 >conftest.err
13595 rm -f conftest.er1
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest$ac_exeext &&
13602 $as_test_x conftest$ac_exeext; then
13603 ac_cv_lib_dl_nlist=yes
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_cv_lib_dl_nlist=no
13609 fi
13610
13611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13612 conftest$ac_exeext conftest.$ac_ext
13613 LIBS=$ac_check_lib_save_LIBS
13614 fi
13615 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13616 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13617 if test $ac_cv_lib_dl_nlist = yes; then
13618 nlist_lib="-ldl"
13619 else
13620 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13621 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13622 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 else
13625 ac_check_lib_save_LIBS=$LIBS
13626 LIBS="-lelf $LIBS"
13627 cat >conftest.$ac_ext <<_ACEOF
13628 /* confdefs.h. */
13629 _ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633
13634 /* Override any GCC internal prototype to avoid an error.
13635 Use char because int might match the return type of a GCC
13636 builtin and then its argument prototype would still apply. */
13637 #ifdef __cplusplus
13638 extern "C"
13639 #endif
13640 char nlist ();
13641 int
13642 main ()
13643 {
13644 return nlist ();
13645 ;
13646 return 0;
13647 }
13648 _ACEOF
13649 rm -f conftest.$ac_objext conftest$ac_exeext
13650 if { (ac_try="$ac_link"
13651 case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654 esac
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_link") 2>conftest.er1
13657 ac_status=$?
13658 grep -v '^ *+' conftest.er1 >conftest.err
13659 rm -f conftest.er1
13660 cat conftest.err >&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } && {
13663 test -z "$ac_c_werror_flag" ||
13664 test ! -s conftest.err
13665 } && test -s conftest$ac_exeext &&
13666 $as_test_x conftest$ac_exeext; then
13667 ac_cv_lib_elf_nlist=yes
13668 else
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_cv_lib_elf_nlist=no
13673 fi
13674
13675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13676 conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13678 fi
13679 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13680 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13681 if test $ac_cv_lib_elf_nlist = yes; then
13682 nlist_lib="-lelf"
13683 fi
13684
13685
13686 fi
13687
13688
13689 fi
13690
13691
13692 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13693 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13694 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13695 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697 fi
13698 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13699 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13700 else
13701 # Is the header compilable?
13702 { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13703 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h. */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 $ac_includes_default
13711 #include <libelf/nlist.h>
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (ac_try="$ac_compile"
13715 case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_compile") 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } && {
13727 test -z "$ac_c_werror_flag" ||
13728 test ! -s conftest.err
13729 } && test -s conftest.$ac_objext; then
13730 ac_header_compiler=yes
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 ac_header_compiler=no
13736 fi
13737
13738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13740 echo "${ECHO_T}$ac_header_compiler" >&6; }
13741
13742 # Is the header present?
13743 { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13744 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13745 cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h. */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 #include <libelf/nlist.h>
13752 _ACEOF
13753 if { (ac_try="$ac_cpp conftest.$ac_ext"
13754 case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757 esac
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } >/dev/null && {
13766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13767 test ! -s conftest.err
13768 }; then
13769 ac_header_preproc=yes
13770 else
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774 ac_header_preproc=no
13775 fi
13776
13777 rm -f conftest.err conftest.$ac_ext
13778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779 echo "${ECHO_T}$ac_header_preproc" >&6; }
13780
13781 # So? What about this header?
13782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13783 yes:no: )
13784 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13785 echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13787 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13788 ac_header_preproc=yes
13789 ;;
13790 no:yes:* )
13791 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13792 echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13793 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13794 echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13796 echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13798 echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13800 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13802 echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13803
13804 ;;
13805 esac
13806 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13807 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13808 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13812 fi
13813 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13814 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13815
13816 fi
13817 if test $ac_cv_header_libelf_nlist_h = yes; then
13818 nlist_h="libelf/nlist.h"
13819 fi
13820
13821
13822 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13823 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13824 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13825 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 fi
13828 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13829 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13830 else
13831 # Is the header compilable?
13832 { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13833 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
13834 cat >conftest.$ac_ext <<_ACEOF
13835 /* confdefs.h. */
13836 _ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13840 $ac_includes_default
13841 #include <elf/nlist.h>
13842 _ACEOF
13843 rm -f conftest.$ac_objext
13844 if { (ac_try="$ac_compile"
13845 case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_compile") 2>conftest.er1
13851 ac_status=$?
13852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } && {
13857 test -z "$ac_c_werror_flag" ||
13858 test ! -s conftest.err
13859 } && test -s conftest.$ac_objext; then
13860 ac_header_compiler=yes
13861 else
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865 ac_header_compiler=no
13866 fi
13867
13868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13870 echo "${ECHO_T}$ac_header_compiler" >&6; }
13871
13872 # Is the header present?
13873 { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13874 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
13875 cat >conftest.$ac_ext <<_ACEOF
13876 /* confdefs.h. */
13877 _ACEOF
13878 cat confdefs.h >>conftest.$ac_ext
13879 cat >>conftest.$ac_ext <<_ACEOF
13880 /* end confdefs.h. */
13881 #include <elf/nlist.h>
13882 _ACEOF
13883 if { (ac_try="$ac_cpp conftest.$ac_ext"
13884 case "(($ac_try" in
13885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13886 *) ac_try_echo=$ac_try;;
13887 esac
13888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } >/dev/null && {
13896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 }; then
13899 ac_header_preproc=yes
13900 else
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_header_preproc=no
13905 fi
13906
13907 rm -f conftest.err conftest.$ac_ext
13908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13909 echo "${ECHO_T}$ac_header_preproc" >&6; }
13910
13911 # So? What about this header?
13912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13913 yes:no: )
13914 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13915 echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13917 echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13918 ac_header_preproc=yes
13919 ;;
13920 no:yes:* )
13921 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13922 echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13923 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13924 echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13925 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13926 echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13928 echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13930 echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13932 echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
13933
13934 ;;
13935 esac
13936 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13937 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13938 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941 ac_cv_header_elf_nlist_h=$ac_header_preproc
13942 fi
13943 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13944 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13945
13946 fi
13947 if test $ac_cv_header_elf_nlist_h = yes; then
13948 nlist_h="elf/nlist.h"
13949 fi
13950
13951
13952 if test "${ac_cv_header_nlist_h+set}" = set; then
13953 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13954 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13955 if test "${ac_cv_header_nlist_h+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957 fi
13958 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13959 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13960 else
13961 # Is the header compilable?
13962 { echo "$as_me:$LINENO: checking nlist.h usability" >&5
13963 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 $ac_includes_default
13971 #include <nlist.h>
13972 _ACEOF
13973 rm -f conftest.$ac_objext
13974 if { (ac_try="$ac_compile"
13975 case "(($ac_try" in
13976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977 *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980 (eval "$ac_compile") 2>conftest.er1
13981 ac_status=$?
13982 grep -v '^ *+' conftest.er1 >conftest.err
13983 rm -f conftest.er1
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } && {
13987 test -z "$ac_c_werror_flag" ||
13988 test ! -s conftest.err
13989 } && test -s conftest.$ac_objext; then
13990 ac_header_compiler=yes
13991 else
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_header_compiler=no
13996 fi
13997
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14000 echo "${ECHO_T}$ac_header_compiler" >&6; }
14001
14002 # Is the header present?
14003 { echo "$as_me:$LINENO: checking nlist.h presence" >&5
14004 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
14005 cat >conftest.$ac_ext <<_ACEOF
14006 /* confdefs.h. */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 #include <nlist.h>
14012 _ACEOF
14013 if { (ac_try="$ac_cpp conftest.$ac_ext"
14014 case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017 esac
14018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } >/dev/null && {
14026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14027 test ! -s conftest.err
14028 }; then
14029 ac_header_preproc=yes
14030 else
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034 ac_header_preproc=no
14035 fi
14036
14037 rm -f conftest.err conftest.$ac_ext
14038 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14039 echo "${ECHO_T}$ac_header_preproc" >&6; }
14040
14041 # So? What about this header?
14042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14043 yes:no: )
14044 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14045 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
14047 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
14048 ac_header_preproc=yes
14049 ;;
14050 no:yes:* )
14051 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
14052 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
14054 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14056 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14058 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
14060 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
14061 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
14062 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
14063
14064 ;;
14065 esac
14066 { echo "$as_me:$LINENO: checking for nlist.h" >&5
14067 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
14068 if test "${ac_cv_header_nlist_h+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071 ac_cv_header_nlist_h=$ac_header_preproc
14072 fi
14073 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14074 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
14075
14076 fi
14077 if test $ac_cv_header_nlist_h = yes; then
14078 nlist_h="nlist.h"
14079 fi
14080
14081
14082 if test x"$nlist_h" = "x"; then
14083
14084 cat >>confdefs.h <<_ACEOF
14085 #define SYMBOL_PREFIX ""
14086 _ACEOF
14087
14088 else
14089 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
14090 echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
14091 if test "${symbol_underscores+set}" = set; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094
14095 cat << EOF > conftest.c
14096 #include <$nlist_h>
14097 #include <stdio.h>
14098 #include <stdlib.h>
14099 void _modinit(void);
14100 int main(int argc, char *argv[]) {
14101 int i;
14102 struct nlist nl[5];
14103
14104 /* fill the names in this way, so it'll work almost everywhere */
14105 nl[0].n_name = "_modinit";
14106 nl[1].n_name = "__modinit";
14107 nl[2].n_name = "___modinit";
14108 nl[3].n_name = "____modinit";
14109 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14110
14111 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14112 for(i = 0; i < 4; i++) {
14113 if(nl[i].n_value != NULL)
14114 {
14115 int j;
14116 for(j = 0; j < i; j++)
14117 printf("_");
14118 exit(i);
14119 }
14120 }
14121 exit(-1);
14122 }
14123 void _modinit(void) { return; }
14124 EOF
14125 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14126 symbol_underscores=`./conftest conftest`
14127 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14128 echo "${ECHO_T}$symbol_underscores" >&6; }
14129 $RM -f conftest conftest.c
14130
14131 fi
14132
14133
14134 cat >>confdefs.h <<_ACEOF
14135 #define SYMBOL_PREFIX "${symbol_underscores}"
14136 _ACEOF
14137
14138 fi
14139 fi
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154 if test "$prefix" = "NONE"; then
14155
14156 cat >>confdefs.h <<_ACEOF
14157 #define IRCD_PREFIX "$ac_default_prefix"
14158 _ACEOF
14159
14160
14161 else
14162
14163
14164 prefix=`echo $prefix | sed 's/\/$//'`
14165
14166 cat >>confdefs.h <<_ACEOF
14167 #define IRCD_PREFIX "$prefix"
14168 _ACEOF
14169
14170
14171 fi
14172
14173 ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14174
14175
14176 cat >confcache <<\_ACEOF
14177 # This file is a shell script that caches the results of configure
14178 # tests run on this system so they can be shared between configure
14179 # scripts and configure runs, see configure's option --config-cache.
14180 # It is not useful on other systems. If it contains results you don't
14181 # want to keep, you may remove or edit it.
14182 #
14183 # config.status only pays attention to the cache file if you give it
14184 # the --recheck option to rerun configure.
14185 #
14186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14188 # following values.
14189
14190 _ACEOF
14191
14192 # The following way of writing the cache mishandles newlines in values,
14193 # but we know of no workaround that is simple, portable, and efficient.
14194 # So, we kill variables containing newlines.
14195 # Ultrix sh set writes to stderr and can't be redirected directly,
14196 # and sets the high bit in the cache file unless we assign to the vars.
14197 (
14198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14199 eval ac_val=\$$ac_var
14200 case $ac_val in #(
14201 *${as_nl}*)
14202 case $ac_var in #(
14203 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14204 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14205 esac
14206 case $ac_var in #(
14207 _ | IFS | as_nl) ;; #(
14208 *) $as_unset $ac_var ;;
14209 esac ;;
14210 esac
14211 done
14212
14213 (set) 2>&1 |
14214 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14215 *${as_nl}ac_space=\ *)
14216 # `set' does not quote correctly, so add quotes (double-quote
14217 # substitution turns \\\\ into \\, and sed turns \\ into \).
14218 sed -n \
14219 "s/'/'\\\\''/g;
14220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14221 ;; #(
14222 *)
14223 # `set' quotes correctly as required by POSIX, so do not add quotes.
14224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14225 ;;
14226 esac |
14227 sort
14228 ) |
14229 sed '
14230 /^ac_cv_env_/b end
14231 t clear
14232 :clear
14233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14234 t end
14235 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14236 :end' >>confcache
14237 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14238 if test -w "$cache_file"; then
14239 test "x$cache_file" != "x/dev/null" &&
14240 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14241 echo "$as_me: updating cache $cache_file" >&6;}
14242 cat confcache >$cache_file
14243 else
14244 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14245 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14246 fi
14247 fi
14248 rm -f confcache
14249
14250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14251 # Let make expand exec_prefix.
14252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14253
14254 DEFS=-DHAVE_CONFIG_H
14255
14256 ac_libobjs=
14257 ac_ltlibobjs=
14258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14259 # 1. Remove the extension, and $U if already installed.
14260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14261 ac_i=`echo "$ac_i" | sed "$ac_script"`
14262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14263 # will be set to the directory where LIBOBJS objects are built.
14264 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14265 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14266 done
14267 LIBOBJS=$ac_libobjs
14268
14269 LTLIBOBJS=$ac_ltlibobjs
14270
14271
14272
14273 : ${CONFIG_STATUS=./config.status}
14274 ac_clean_files_save=$ac_clean_files
14275 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14276 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14277 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14278 cat >$CONFIG_STATUS <<_ACEOF
14279 #! $SHELL
14280 # Generated by $as_me.
14281 # Run this file to recreate the current configuration.
14282 # Compiler output produced by configure, useful for debugging
14283 # configure, is in config.log if it exists.
14284
14285 debug=false
14286 ac_cs_recheck=false
14287 ac_cs_silent=false
14288 SHELL=\${CONFIG_SHELL-$SHELL}
14289 _ACEOF
14290
14291 cat >>$CONFIG_STATUS <<\_ACEOF
14292 ## --------------------- ##
14293 ## M4sh Initialization. ##
14294 ## --------------------- ##
14295
14296 # Be more Bourne compatible
14297 DUALCASE=1; export DUALCASE # for MKS sh
14298 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14299 emulate sh
14300 NULLCMD=:
14301 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14302 # is contrary to our usage. Disable this feature.
14303 alias -g '${1+"$@"}'='"$@"'
14304 setopt NO_GLOB_SUBST
14305 else
14306 case `(set -o) 2>/dev/null` in
14307 *posix*) set -o posix ;;
14308 esac
14309
14310 fi
14311
14312
14313
14314
14315 # PATH needs CR
14316 # Avoid depending upon Character Ranges.
14317 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14318 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14319 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14320 as_cr_digits='0123456789'
14321 as_cr_alnum=$as_cr_Letters$as_cr_digits
14322
14323 # The user is always right.
14324 if test "${PATH_SEPARATOR+set}" != set; then
14325 echo "#! /bin/sh" >conf$$.sh
14326 echo "exit 0" >>conf$$.sh
14327 chmod +x conf$$.sh
14328 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14329 PATH_SEPARATOR=';'
14330 else
14331 PATH_SEPARATOR=:
14332 fi
14333 rm -f conf$$.sh
14334 fi
14335
14336 # Support unset when possible.
14337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14338 as_unset=unset
14339 else
14340 as_unset=false
14341 fi
14342
14343
14344 # IFS
14345 # We need space, tab and new line, in precisely that order. Quoting is
14346 # there to prevent editors from complaining about space-tab.
14347 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14348 # splitting by setting IFS to empty value.)
14349 as_nl='
14350 '
14351 IFS=" "" $as_nl"
14352
14353 # Find who we are. Look in the path if we contain no directory separator.
14354 case $0 in
14355 *[\\/]* ) as_myself=$0 ;;
14356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357 for as_dir in $PATH
14358 do
14359 IFS=$as_save_IFS
14360 test -z "$as_dir" && as_dir=.
14361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14362 done
14363 IFS=$as_save_IFS
14364
14365 ;;
14366 esac
14367 # We did not find ourselves, most probably we were run as `sh COMMAND'
14368 # in which case we are not to be found in the path.
14369 if test "x$as_myself" = x; then
14370 as_myself=$0
14371 fi
14372 if test ! -f "$as_myself"; then
14373 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14374 { (exit 1); exit 1; }
14375 fi
14376
14377 # Work around bugs in pre-3.0 UWIN ksh.
14378 for as_var in ENV MAIL MAILPATH
14379 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14380 done
14381 PS1='$ '
14382 PS2='> '
14383 PS4='+ '
14384
14385 # NLS nuisances.
14386 for as_var in \
14387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14389 LC_TELEPHONE LC_TIME
14390 do
14391 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14392 eval $as_var=C; export $as_var
14393 else
14394 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14395 fi
14396 done
14397
14398 # Required to use basename.
14399 if expr a : '\(a\)' >/dev/null 2>&1 &&
14400 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14401 as_expr=expr
14402 else
14403 as_expr=false
14404 fi
14405
14406 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14407 as_basename=basename
14408 else
14409 as_basename=false
14410 fi
14411
14412
14413 # Name of the executable.
14414 as_me=`$as_basename -- "$0" ||
14415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14416 X"$0" : 'X\(//\)$' \| \
14417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14418 echo X/"$0" |
14419 sed '/^.*\/\([^/][^/]*\)\/*$/{
14420 s//\1/
14421 q
14422 }
14423 /^X\/\(\/\/\)$/{
14424 s//\1/
14425 q
14426 }
14427 /^X\/\(\/\).*/{
14428 s//\1/
14429 q
14430 }
14431 s/.*/./; q'`
14432
14433 # CDPATH.
14434 $as_unset CDPATH
14435
14436
14437
14438 as_lineno_1=$LINENO
14439 as_lineno_2=$LINENO
14440 test "x$as_lineno_1" != "x$as_lineno_2" &&
14441 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14442
14443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14444 # uniformly replaced by the line number. The first 'sed' inserts a
14445 # line-number line after each line using $LINENO; the second 'sed'
14446 # does the real work. The second script uses 'N' to pair each
14447 # line-number line with the line containing $LINENO, and appends
14448 # trailing '-' during substitution so that $LINENO is not a special
14449 # case at line end.
14450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14451 # scripts with optimization help from Paolo Bonzini. Blame Lee
14452 # E. McMahon (1931-1989) for sed's syntax. :-)
14453 sed -n '
14454 p
14455 /[$]LINENO/=
14456 ' <$as_myself |
14457 sed '
14458 s/[$]LINENO.*/&-/
14459 t lineno
14460 b
14461 :lineno
14462 N
14463 :loop
14464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14465 t loop
14466 s/-\n.*//
14467 ' >$as_me.lineno &&
14468 chmod +x "$as_me.lineno" ||
14469 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14470 { (exit 1); exit 1; }; }
14471
14472 # Don't try to exec as it changes $[0], causing all sort of problems
14473 # (the dirname of $[0] is not the place where we might find the
14474 # original and so on. Autoconf is especially sensitive to this).
14475 . "./$as_me.lineno"
14476 # Exit status is that of the last command.
14477 exit
14478 }
14479
14480
14481 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14482 as_dirname=dirname
14483 else
14484 as_dirname=false
14485 fi
14486
14487 ECHO_C= ECHO_N= ECHO_T=
14488 case `echo -n x` in
14489 -n*)
14490 case `echo 'x\c'` in
14491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14492 *) ECHO_C='\c';;
14493 esac;;
14494 *)
14495 ECHO_N='-n';;
14496 esac
14497
14498 if expr a : '\(a\)' >/dev/null 2>&1 &&
14499 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14500 as_expr=expr
14501 else
14502 as_expr=false
14503 fi
14504
14505 rm -f conf$$ conf$$.exe conf$$.file
14506 if test -d conf$$.dir; then
14507 rm -f conf$$.dir/conf$$.file
14508 else
14509 rm -f conf$$.dir
14510 mkdir conf$$.dir
14511 fi
14512 echo >conf$$.file
14513 if ln -s conf$$.file conf$$ 2>/dev/null; then
14514 as_ln_s='ln -s'
14515 # ... but there are two gotchas:
14516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14518 # In both cases, we have to default to `cp -p'.
14519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14520 as_ln_s='cp -p'
14521 elif ln conf$$.file conf$$ 2>/dev/null; then
14522 as_ln_s=ln
14523 else
14524 as_ln_s='cp -p'
14525 fi
14526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14527 rmdir conf$$.dir 2>/dev/null
14528
14529 if mkdir -p . 2>/dev/null; then
14530 as_mkdir_p=:
14531 else
14532 test -d ./-p && rmdir ./-p
14533 as_mkdir_p=false
14534 fi
14535
14536 if test -x / >/dev/null 2>&1; then
14537 as_test_x='test -x'
14538 else
14539 if ls -dL / >/dev/null 2>&1; then
14540 as_ls_L_option=L
14541 else
14542 as_ls_L_option=
14543 fi
14544 as_test_x='
14545 eval sh -c '\''
14546 if test -d "$1"; then
14547 test -d "$1/.";
14548 else
14549 case $1 in
14550 -*)set "./$1";;
14551 esac;
14552 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14553 ???[sx]*):;;*)false;;esac;fi
14554 '\'' sh
14555 '
14556 fi
14557 as_executable_p=$as_test_x
14558
14559 # Sed expression to map a string onto a valid CPP name.
14560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14561
14562 # Sed expression to map a string onto a valid variable name.
14563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14564
14565
14566 exec 6>&1
14567
14568 # Save the log message, to keep $[0] and so on meaningful, and to
14569 # report actual input values of CONFIG_FILES etc. instead of their
14570 # values after options handling.
14571 ac_log="
14572 This file was extended by charybdis $as_me 2.3.0, which was
14573 generated by GNU Autoconf 2.61. Invocation command line was
14574
14575 CONFIG_FILES = $CONFIG_FILES
14576 CONFIG_HEADERS = $CONFIG_HEADERS
14577 CONFIG_LINKS = $CONFIG_LINKS
14578 CONFIG_COMMANDS = $CONFIG_COMMANDS
14579 $ $0 $@
14580
14581 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14582 "
14583
14584 _ACEOF
14585
14586 cat >>$CONFIG_STATUS <<_ACEOF
14587 # Files that config.status was made for.
14588 config_files="$ac_config_files"
14589 config_headers="$ac_config_headers"
14590
14591 _ACEOF
14592
14593 cat >>$CONFIG_STATUS <<\_ACEOF
14594 ac_cs_usage="\
14595 \`$as_me' instantiates files from templates according to the
14596 current configuration.
14597
14598 Usage: $0 [OPTIONS] [FILE]...
14599
14600 -h, --help print this help, then exit
14601 -V, --version print version number and configuration settings, then exit
14602 -q, --quiet do not print progress messages
14603 -d, --debug don't remove temporary files
14604 --recheck update $as_me by reconfiguring in the same conditions
14605 --file=FILE[:TEMPLATE]
14606 instantiate the configuration file FILE
14607 --header=FILE[:TEMPLATE]
14608 instantiate the configuration header FILE
14609
14610 Configuration files:
14611 $config_files
14612
14613 Configuration headers:
14614 $config_headers
14615
14616 Report bugs to <bug-autoconf@gnu.org>."
14617
14618 _ACEOF
14619 cat >>$CONFIG_STATUS <<_ACEOF
14620 ac_cs_version="\\
14621 charybdis config.status 2.3.0
14622 configured by $0, generated by GNU Autoconf 2.61,
14623 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14624
14625 Copyright (C) 2006 Free Software Foundation, Inc.
14626 This config.status script is free software; the Free Software Foundation
14627 gives unlimited permission to copy, distribute and modify it."
14628
14629 ac_pwd='$ac_pwd'
14630 srcdir='$srcdir'
14631 INSTALL='$INSTALL'
14632 _ACEOF
14633
14634 cat >>$CONFIG_STATUS <<\_ACEOF
14635 # If no file are specified by the user, then we need to provide default
14636 # value. By we need to know if files were specified by the user.
14637 ac_need_defaults=:
14638 while test $# != 0
14639 do
14640 case $1 in
14641 --*=*)
14642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14644 ac_shift=:
14645 ;;
14646 *)
14647 ac_option=$1
14648 ac_optarg=$2
14649 ac_shift=shift
14650 ;;
14651 esac
14652
14653 case $ac_option in
14654 # Handling of the options.
14655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14656 ac_cs_recheck=: ;;
14657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14658 echo "$ac_cs_version"; exit ;;
14659 --debug | --debu | --deb | --de | --d | -d )
14660 debug=: ;;
14661 --file | --fil | --fi | --f )
14662 $ac_shift
14663 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14664 ac_need_defaults=false;;
14665 --header | --heade | --head | --hea )
14666 $ac_shift
14667 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14668 ac_need_defaults=false;;
14669 --he | --h)
14670 # Conflict between --help and --header
14671 { echo "$as_me: error: ambiguous option: $1
14672 Try \`$0 --help' for more information." >&2
14673 { (exit 1); exit 1; }; };;
14674 --help | --hel | -h )
14675 echo "$ac_cs_usage"; exit ;;
14676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14677 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14678 ac_cs_silent=: ;;
14679
14680 # This is an error.
14681 -*) { echo "$as_me: error: unrecognized option: $1
14682 Try \`$0 --help' for more information." >&2
14683 { (exit 1); exit 1; }; } ;;
14684
14685 *) ac_config_targets="$ac_config_targets $1"
14686 ac_need_defaults=false ;;
14687
14688 esac
14689 shift
14690 done
14691
14692 ac_configure_extra_args=
14693
14694 if $ac_cs_silent; then
14695 exec 6>/dev/null
14696 ac_configure_extra_args="$ac_configure_extra_args --silent"
14697 fi
14698
14699 _ACEOF
14700 cat >>$CONFIG_STATUS <<_ACEOF
14701 if \$ac_cs_recheck; then
14702 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14703 CONFIG_SHELL=$SHELL
14704 export CONFIG_SHELL
14705 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14706 fi
14707
14708 _ACEOF
14709 cat >>$CONFIG_STATUS <<\_ACEOF
14710 exec 5>>config.log
14711 {
14712 echo
14713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14714 ## Running $as_me. ##
14715 _ASBOX
14716 echo "$ac_log"
14717 } >&5
14718
14719 _ACEOF
14720 cat >>$CONFIG_STATUS <<_ACEOF
14721 _ACEOF
14722
14723 cat >>$CONFIG_STATUS <<\_ACEOF
14724
14725 # Handling of arguments.
14726 for ac_config_target in $ac_config_targets
14727 do
14728 case $ac_config_target in
14729 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14730 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14731 "libcharybdis/Makefile") CONFIG_FILES="$CONFIG_FILES libcharybdis/Makefile" ;;
14732 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14733 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14734 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14735 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14736 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14737 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14738 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14739 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14740
14741 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14742 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14743 { (exit 1); exit 1; }; };;
14744 esac
14745 done
14746
14747
14748 # If the user did not use the arguments to specify the items to instantiate,
14749 # then the envvar interface is used. Set only those that are not.
14750 # We use the long form for the default assignment because of an extremely
14751 # bizarre bug on SunOS 4.1.3.
14752 if $ac_need_defaults; then
14753 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14754 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14755 fi
14756
14757 # Have a temporary directory for convenience. Make it in the build tree
14758 # simply because there is no reason against having it here, and in addition,
14759 # creating and moving files from /tmp can sometimes cause problems.
14760 # Hook for its removal unless debugging.
14761 # Note that there is a small window in which the directory will not be cleaned:
14762 # after its creation but before its name has been assigned to `$tmp'.
14763 $debug ||
14764 {
14765 tmp=
14766 trap 'exit_status=$?
14767 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14768 ' 0
14769 trap '{ (exit 1); exit 1; }' 1 2 13 15
14770 }
14771 # Create a (secure) tmp directory for tmp files.
14772
14773 {
14774 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14775 test -n "$tmp" && test -d "$tmp"
14776 } ||
14777 {
14778 tmp=./conf$$-$RANDOM
14779 (umask 077 && mkdir "$tmp")
14780 } ||
14781 {
14782 echo "$me: cannot create a temporary directory in ." >&2
14783 { (exit 1); exit 1; }
14784 }
14785
14786 #
14787 # Set up the sed scripts for CONFIG_FILES section.
14788 #
14789
14790 # No need to generate the scripts if there are no CONFIG_FILES.
14791 # This happens for instance when ./config.status config.h
14792 if test -n "$CONFIG_FILES"; then
14793
14794 _ACEOF
14795
14796
14797
14798 ac_delim='%!_!# '
14799 for ac_last_try in false false false false false :; do
14800 cat >conf$$subs.sed <<_ACEOF
14801 SHELL!$SHELL$ac_delim
14802 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14803 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14804 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14805 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14806 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14807 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14808 exec_prefix!$exec_prefix$ac_delim
14809 prefix!$prefix$ac_delim
14810 program_transform_name!$program_transform_name$ac_delim
14811 bindir!$bindir$ac_delim
14812 sbindir!$sbindir$ac_delim
14813 libexecdir!$libexecdir$ac_delim
14814 datarootdir!$datarootdir$ac_delim
14815 datadir!$datadir$ac_delim
14816 sysconfdir!$sysconfdir$ac_delim
14817 sharedstatedir!$sharedstatedir$ac_delim
14818 localstatedir!$localstatedir$ac_delim
14819 includedir!$includedir$ac_delim
14820 oldincludedir!$oldincludedir$ac_delim
14821 docdir!$docdir$ac_delim
14822 infodir!$infodir$ac_delim
14823 htmldir!$htmldir$ac_delim
14824 dvidir!$dvidir$ac_delim
14825 pdfdir!$pdfdir$ac_delim
14826 psdir!$psdir$ac_delim
14827 libdir!$libdir$ac_delim
14828 localedir!$localedir$ac_delim
14829 mandir!$mandir$ac_delim
14830 DEFS!$DEFS$ac_delim
14831 ECHO_C!$ECHO_C$ac_delim
14832 ECHO_N!$ECHO_N$ac_delim
14833 ECHO_T!$ECHO_T$ac_delim
14834 LIBS!$LIBS$ac_delim
14835 build_alias!$build_alias$ac_delim
14836 host_alias!$host_alias$ac_delim
14837 target_alias!$target_alias$ac_delim
14838 CC!$CC$ac_delim
14839 CFLAGS!$CFLAGS$ac_delim
14840 LDFLAGS!$LDFLAGS$ac_delim
14841 CPPFLAGS!$CPPFLAGS$ac_delim
14842 ac_ct_CC!$ac_ct_CC$ac_delim
14843 EXEEXT!$EXEEXT$ac_delim
14844 OBJEXT!$OBJEXT$ac_delim
14845 subdirs!$subdirs$ac_delim
14846 MKDEP!$MKDEP$ac_delim
14847 MAKEDEPEND!$MAKEDEPEND$ac_delim
14848 STDOUT!$STDOUT$ac_delim
14849 CPP!$CPP$ac_delim
14850 GREP!$GREP$ac_delim
14851 EGREP!$EGREP$ac_delim
14852 SET_MAKE!$SET_MAKE$ac_delim
14853 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14854 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14855 INSTALL_DATA!$INSTALL_DATA$ac_delim
14856 RM!$RM$ac_delim
14857 CP!$CP$ac_delim
14858 MV!$MV$ac_delim
14859 LN!$LN$ac_delim
14860 SED!$SED$ac_delim
14861 AR!$AR$ac_delim
14862 LD!$LD$ac_delim
14863 RANLIB!$RANLIB$ac_delim
14864 TOUCH!$TOUCH$ac_delim
14865 YACC!$YACC$ac_delim
14866 YFLAGS!$YFLAGS$ac_delim
14867 LEX!$LEX$ac_delim
14868 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14869 LEXLIB!$LEXLIB$ac_delim
14870 CRYPT_LIB!$CRYPT_LIB$ac_delim
14871 VICONF!$VICONF$ac_delim
14872 ALLOCA!$ALLOCA$ac_delim
14873 ENCSPEED!$ENCSPEED$ac_delim
14874 ZLIB_LD!$ZLIB_LD$ac_delim
14875 ETC_DIR!$ETC_DIR$ac_delim
14876 confdir!$confdir$ac_delim
14877 LOG_DIR!$LOG_DIR$ac_delim
14878 logdir!$logdir$ac_delim
14879 HELP_DIR!$HELP_DIR$ac_delim
14880 helpdir!$helpdir$ac_delim
14881 MODULE_DIR!$MODULE_DIR$ac_delim
14882 moduledir!$moduledir$ac_delim
14883 SELECT_TYPE!$SELECT_TYPE$ac_delim
14884 MODULES_LIBS!$MODULES_LIBS$ac_delim
14885 MOD_TARGET!$MOD_TARGET$ac_delim
14886 SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14887 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14888 SSL_LIBS!$SSL_LIBS$ac_delim
14889 PICFLAGS!$PICFLAGS$ac_delim
14890 IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14891 SEDOBJ!$SEDOBJ$ac_delim
14892 LIBOBJS!$LIBOBJS$ac_delim
14893 LTLIBOBJS!$LTLIBOBJS$ac_delim
14894 _ACEOF
14895
14896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
14897 break
14898 elif $ac_last_try; then
14899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14901 { (exit 1); exit 1; }; }
14902 else
14903 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14904 fi
14905 done
14906
14907 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14908 if test -n "$ac_eof"; then
14909 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14910 ac_eof=`expr $ac_eof + 1`
14911 fi
14912
14913 cat >>$CONFIG_STATUS <<_ACEOF
14914 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14916 _ACEOF
14917 sed '
14918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14919 s/^/s,@/; s/!/@,|#_!!_#|/
14920 :n
14921 t n
14922 s/'"$ac_delim"'$/,g/; t
14923 s/$/\\/; p
14924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14925 ' >>$CONFIG_STATUS <conf$$subs.sed
14926 rm -f conf$$subs.sed
14927 cat >>$CONFIG_STATUS <<_ACEOF
14928 :end
14929 s/|#_!!_#|//g
14930 CEOF$ac_eof
14931 _ACEOF
14932
14933
14934 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14935 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14936 # trailing colons and then remove the whole line if VPATH becomes empty
14937 # (actually we leave an empty line to preserve line numbers).
14938 if test "x$srcdir" = x.; then
14939 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14940 s/:*\$(srcdir):*/:/
14941 s/:*\${srcdir}:*/:/
14942 s/:*@srcdir@:*/:/
14943 s/^\([^=]*=[ ]*\):*/\1/
14944 s/:*$//
14945 s/^[^=]*=[ ]*$//
14946 }'
14947 fi
14948
14949 cat >>$CONFIG_STATUS <<\_ACEOF
14950 fi # test -n "$CONFIG_FILES"
14951
14952
14953 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14954 do
14955 case $ac_tag in
14956 :[FHLC]) ac_mode=$ac_tag; continue;;
14957 esac
14958 case $ac_mode$ac_tag in
14959 :[FHL]*:*);;
14960 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14961 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14962 { (exit 1); exit 1; }; };;
14963 :[FH]-) ac_tag=-:-;;
14964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14965 esac
14966 ac_save_IFS=$IFS
14967 IFS=:
14968 set x $ac_tag
14969 IFS=$ac_save_IFS
14970 shift
14971 ac_file=$1
14972 shift
14973
14974 case $ac_mode in
14975 :L) ac_source=$1;;
14976 :[FH])
14977 ac_file_inputs=
14978 for ac_f
14979 do
14980 case $ac_f in
14981 -) ac_f="$tmp/stdin";;
14982 *) # Look for the file first in the build tree, then in the source tree
14983 # (if the path is not absolute). The absolute path cannot be DOS-style,
14984 # because $ac_f cannot contain `:'.
14985 test -f "$ac_f" ||
14986 case $ac_f in
14987 [\\/$]*) false;;
14988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14989 esac ||
14990 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14991 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14992 { (exit 1); exit 1; }; };;
14993 esac
14994 ac_file_inputs="$ac_file_inputs $ac_f"
14995 done
14996
14997 # Let's still pretend it is `configure' which instantiates (i.e., don't
14998 # use $as_me), people would be surprised to read:
14999 # /* config.h. Generated by config.status. */
15000 configure_input="Generated from "`IFS=:
15001 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15002 if test x"$ac_file" != x-; then
15003 configure_input="$ac_file. $configure_input"
15004 { echo "$as_me:$LINENO: creating $ac_file" >&5
15005 echo "$as_me: creating $ac_file" >&6;}
15006 fi
15007
15008 case $ac_tag in
15009 *:-:* | *:-) cat >"$tmp/stdin";;
15010 esac
15011 ;;
15012 esac
15013
15014 ac_dir=`$as_dirname -- "$ac_file" ||
15015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15016 X"$ac_file" : 'X\(//\)[^/]' \| \
15017 X"$ac_file" : 'X\(//\)$' \| \
15018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15019 echo X"$ac_file" |
15020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15021 s//\1/
15022 q
15023 }
15024 /^X\(\/\/\)[^/].*/{
15025 s//\1/
15026 q
15027 }
15028 /^X\(\/\/\)$/{
15029 s//\1/
15030 q
15031 }
15032 /^X\(\/\).*/{
15033 s//\1/
15034 q
15035 }
15036 s/.*/./; q'`
15037 { as_dir="$ac_dir"
15038 case $as_dir in #(
15039 -*) as_dir=./$as_dir;;
15040 esac
15041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15042 as_dirs=
15043 while :; do
15044 case $as_dir in #(
15045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15046 *) as_qdir=$as_dir;;
15047 esac
15048 as_dirs="'$as_qdir' $as_dirs"
15049 as_dir=`$as_dirname -- "$as_dir" ||
15050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15051 X"$as_dir" : 'X\(//\)[^/]' \| \
15052 X"$as_dir" : 'X\(//\)$' \| \
15053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15054 echo X"$as_dir" |
15055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15056 s//\1/
15057 q
15058 }
15059 /^X\(\/\/\)[^/].*/{
15060 s//\1/
15061 q
15062 }
15063 /^X\(\/\/\)$/{
15064 s//\1/
15065 q
15066 }
15067 /^X\(\/\).*/{
15068 s//\1/
15069 q
15070 }
15071 s/.*/./; q'`
15072 test -d "$as_dir" && break
15073 done
15074 test -z "$as_dirs" || eval "mkdir $as_dirs"
15075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15076 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15077 { (exit 1); exit 1; }; }; }
15078 ac_builddir=.
15079
15080 case "$ac_dir" in
15081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15082 *)
15083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15084 # A ".." for each directory in $ac_dir_suffix.
15085 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15086 case $ac_top_builddir_sub in
15087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15089 esac ;;
15090 esac
15091 ac_abs_top_builddir=$ac_pwd
15092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15093 # for backward compatibility:
15094 ac_top_builddir=$ac_top_build_prefix
15095
15096 case $srcdir in
15097 .) # We are building in place.
15098 ac_srcdir=.
15099 ac_top_srcdir=$ac_top_builddir_sub
15100 ac_abs_top_srcdir=$ac_pwd ;;
15101 [\\/]* | ?:[\\/]* ) # Absolute name.
15102 ac_srcdir=$srcdir$ac_dir_suffix;
15103 ac_top_srcdir=$srcdir
15104 ac_abs_top_srcdir=$srcdir ;;
15105 *) # Relative name.
15106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15107 ac_top_srcdir=$ac_top_build_prefix$srcdir
15108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15109 esac
15110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15111
15112
15113 case $ac_mode in
15114 :F)
15115 #
15116 # CONFIG_FILE
15117 #
15118
15119 case $INSTALL in
15120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15122 esac
15123 _ACEOF
15124
15125 cat >>$CONFIG_STATUS <<\_ACEOF
15126 # If the template does not know about datarootdir, expand it.
15127 # FIXME: This hack should be removed a few years after 2.60.
15128 ac_datarootdir_hack=; ac_datarootdir_seen=
15129
15130 case `sed -n '/datarootdir/ {
15131 p
15132 q
15133 }
15134 /@datadir@/p
15135 /@docdir@/p
15136 /@infodir@/p
15137 /@localedir@/p
15138 /@mandir@/p
15139 ' $ac_file_inputs` in
15140 *datarootdir*) ac_datarootdir_seen=yes;;
15141 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15142 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15143 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15144 _ACEOF
15145 cat >>$CONFIG_STATUS <<_ACEOF
15146 ac_datarootdir_hack='
15147 s&@datadir@&$datadir&g
15148 s&@docdir@&$docdir&g
15149 s&@infodir@&$infodir&g
15150 s&@localedir@&$localedir&g
15151 s&@mandir@&$mandir&g
15152 s&\\\${datarootdir}&$datarootdir&g' ;;
15153 esac
15154 _ACEOF
15155
15156 # Neutralize VPATH when `$srcdir' = `.'.
15157 # Shell code in configure.ac might set extrasub.
15158 # FIXME: do we really want to maintain this feature?
15159 cat >>$CONFIG_STATUS <<_ACEOF
15160 sed "$ac_vpsub
15161 $extrasub
15162 _ACEOF
15163 cat >>$CONFIG_STATUS <<\_ACEOF
15164 :t
15165 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15166 s&@configure_input@&$configure_input&;t t
15167 s&@top_builddir@&$ac_top_builddir_sub&;t t
15168 s&@srcdir@&$ac_srcdir&;t t
15169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15170 s&@top_srcdir@&$ac_top_srcdir&;t t
15171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15172 s&@builddir@&$ac_builddir&;t t
15173 s&@abs_builddir@&$ac_abs_builddir&;t t
15174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15175 s&@INSTALL@&$ac_INSTALL&;t t
15176 $ac_datarootdir_hack
15177 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15178
15179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15180 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15181 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15182 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15183 which seems to be undefined. Please make sure it is defined." >&5
15184 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15185 which seems to be undefined. Please make sure it is defined." >&2;}
15186
15187 rm -f "$tmp/stdin"
15188 case $ac_file in
15189 -) cat "$tmp/out"; rm -f "$tmp/out";;
15190 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15191 esac
15192 ;;
15193 :H)
15194 #
15195 # CONFIG_HEADER
15196 #
15197 _ACEOF
15198
15199 # Transform confdefs.h into a sed script `conftest.defines', that
15200 # substitutes the proper values into config.h.in to produce config.h.
15201 rm -f conftest.defines conftest.tail
15202 # First, append a space to every undef/define line, to ease matching.
15203 echo 's/$/ /' >conftest.defines
15204 # Then, protect against being on the right side of a sed subst, or in
15205 # an unquoted here document, in config.status. If some macros were
15206 # called several times there might be several #defines for the same
15207 # symbol, which is useless. But do not sort them, since the last
15208 # AC_DEFINE must be honored.
15209 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15210 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15211 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15212 # PARAMS is the parameter list in the macro definition--in most cases, it's
15213 # just an empty string.
15214 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15215 ac_dB='\\)[ (].*,\\1define\\2'
15216 ac_dC=' '
15217 ac_dD=' ,'
15218
15219 uniq confdefs.h |
15220 sed -n '
15221 t rset
15222 :rset
15223 s/^[ ]*#[ ]*define[ ][ ]*//
15224 t ok
15225 d
15226 :ok
15227 s/[\\&,]/\\&/g
15228 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15229 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15230 ' >>conftest.defines
15231
15232 # Remove the space that was appended to ease matching.
15233 # Then replace #undef with comments. This is necessary, for
15234 # example, in the case of _POSIX_SOURCE, which is predefined and required
15235 # on some systems where configure will not decide to define it.
15236 # (The regexp can be short, since the line contains either #define or #undef.)
15237 echo 's/ $//
15238 s,^[ #]*u.*,/* & */,' >>conftest.defines
15239
15240 # Break up conftest.defines:
15241 ac_max_sed_lines=50
15242
15243 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15244 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15245 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15246 # et cetera.
15247 ac_in='$ac_file_inputs'
15248 ac_out='"$tmp/out1"'
15249 ac_nxt='"$tmp/out2"'
15250
15251 while :
15252 do
15253 # Write a here document:
15254 cat >>$CONFIG_STATUS <<_ACEOF
15255 # First, check the format of the line:
15256 cat >"\$tmp/defines.sed" <<\\CEOF
15257 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15258 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15259 b
15260 :def
15261 _ACEOF
15262 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15263 echo 'CEOF
15264 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15265 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15266 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15267 grep . conftest.tail >/dev/null || break
15268 rm -f conftest.defines
15269 mv conftest.tail conftest.defines
15270 done
15271 rm -f conftest.defines conftest.tail
15272
15273 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15274 cat >>$CONFIG_STATUS <<\_ACEOF
15275 if test x"$ac_file" != x-; then
15276 echo "/* $configure_input */" >"$tmp/config.h"
15277 cat "$ac_result" >>"$tmp/config.h"
15278 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15279 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15280 echo "$as_me: $ac_file is unchanged" >&6;}
15281 else
15282 rm -f $ac_file
15283 mv "$tmp/config.h" $ac_file
15284 fi
15285 else
15286 echo "/* $configure_input */"
15287 cat "$ac_result"
15288 fi
15289 rm -f "$tmp/out12"
15290 ;;
15291
15292
15293 esac
15294
15295 done # for ac_tag
15296
15297
15298 { (exit 0); exit 0; }
15299 _ACEOF
15300 chmod +x $CONFIG_STATUS
15301 ac_clean_files=$ac_clean_files_save
15302
15303
15304 # configure is writing to config.log, and then calls config.status.
15305 # config.status does its own redirection, appending to config.log.
15306 # Unfortunately, on DOS this fails, as config.log is still kept open
15307 # by configure, so config.status won't be able to write to it; its
15308 # output is simply discarded. So we exec the FD to /dev/null,
15309 # effectively closing config.log, so it can be properly (re)opened and
15310 # appended to by config.status. When coming back to configure, we
15311 # need to make the FD available again.
15312 if test "$no_create" != yes; then
15313 ac_cs_success=:
15314 ac_config_status_args=
15315 test "$silent" = yes &&
15316 ac_config_status_args="$ac_config_status_args --quiet"
15317 exec 5>/dev/null
15318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15319 exec 5>>config.log
15320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15321 # would make configure fail if this is the last instruction.
15322 $ac_cs_success || { (exit 1); exit 1; }
15323 fi
15324
15325 #
15326 # CONFIG_SUBDIRS section.
15327 #
15328 if test "$no_recursion" != yes; then
15329
15330 # Remove --cache-file and --srcdir arguments so they do not pile up.
15331 ac_sub_configure_args=
15332 ac_prev=
15333 eval "set x $ac_configure_args"
15334 shift
15335 for ac_arg
15336 do
15337 if test -n "$ac_prev"; then
15338 ac_prev=
15339 continue
15340 fi
15341 case $ac_arg in
15342 -cache-file | --cache-file | --cache-fil | --cache-fi \
15343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15344 ac_prev=cache_file ;;
15345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15347 | --c=*)
15348 ;;
15349 --config-cache | -C)
15350 ;;
15351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15352 ac_prev=srcdir ;;
15353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15354 ;;
15355 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15356 ac_prev=prefix ;;
15357 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15358 ;;
15359 *)
15360 case $ac_arg in
15361 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15362 esac
15363 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15364 esac
15365 done
15366
15367 # Always prepend --prefix to ensure using the same prefix
15368 # in subdir configurations.
15369 ac_arg="--prefix=$prefix"
15370 case $ac_arg in
15371 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15372 esac
15373 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15374
15375 # Pass --silent
15376 if test "$silent" = yes; then
15377 ac_sub_configure_args="--silent $ac_sub_configure_args"
15378 fi
15379
15380 ac_popdir=`pwd`
15381 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15382
15383 # Do not complain, so a configure script can configure whichever
15384 # parts of a large source tree are present.
15385 test -d "$srcdir/$ac_dir" || continue
15386
15387 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15388 echo "$as_me:$LINENO: $ac_msg" >&5
15389 echo "$ac_msg" >&6
15390 { as_dir="$ac_dir"
15391 case $as_dir in #(
15392 -*) as_dir=./$as_dir;;
15393 esac
15394 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15395 as_dirs=
15396 while :; do
15397 case $as_dir in #(
15398 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15399 *) as_qdir=$as_dir;;
15400 esac
15401 as_dirs="'$as_qdir' $as_dirs"
15402 as_dir=`$as_dirname -- "$as_dir" ||
15403 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15404 X"$as_dir" : 'X\(//\)[^/]' \| \
15405 X"$as_dir" : 'X\(//\)$' \| \
15406 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15407 echo X"$as_dir" |
15408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15409 s//\1/
15410 q
15411 }
15412 /^X\(\/\/\)[^/].*/{
15413 s//\1/
15414 q
15415 }
15416 /^X\(\/\/\)$/{
15417 s//\1/
15418 q
15419 }
15420 /^X\(\/\).*/{
15421 s//\1/
15422 q
15423 }
15424 s/.*/./; q'`
15425 test -d "$as_dir" && break
15426 done
15427 test -z "$as_dirs" || eval "mkdir $as_dirs"
15428 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15429 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15430 { (exit 1); exit 1; }; }; }
15431 ac_builddir=.
15432
15433 case "$ac_dir" in
15434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15435 *)
15436 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15437 # A ".." for each directory in $ac_dir_suffix.
15438 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15439 case $ac_top_builddir_sub in
15440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15442 esac ;;
15443 esac
15444 ac_abs_top_builddir=$ac_pwd
15445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15446 # for backward compatibility:
15447 ac_top_builddir=$ac_top_build_prefix
15448
15449 case $srcdir in
15450 .) # We are building in place.
15451 ac_srcdir=.
15452 ac_top_srcdir=$ac_top_builddir_sub
15453 ac_abs_top_srcdir=$ac_pwd ;;
15454 [\\/]* | ?:[\\/]* ) # Absolute name.
15455 ac_srcdir=$srcdir$ac_dir_suffix;
15456 ac_top_srcdir=$srcdir
15457 ac_abs_top_srcdir=$srcdir ;;
15458 *) # Relative name.
15459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15460 ac_top_srcdir=$ac_top_build_prefix$srcdir
15461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15462 esac
15463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15464
15465
15466 cd "$ac_dir"
15467
15468 # Check for guested configure; otherwise get Cygnus style configure.
15469 if test -f "$ac_srcdir/configure.gnu"; then
15470 ac_sub_configure=$ac_srcdir/configure.gnu
15471 elif test -f "$ac_srcdir/configure"; then
15472 ac_sub_configure=$ac_srcdir/configure
15473 elif test -f "$ac_srcdir/configure.in"; then
15474 # This should be Cygnus configure.
15475 ac_sub_configure=$ac_aux_dir/configure
15476 else
15477 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15478 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15479 ac_sub_configure=
15480 fi
15481
15482 # The recursion is here.
15483 if test -n "$ac_sub_configure"; then
15484 # Make the cache file name correct relative to the subdirectory.
15485 case $cache_file in
15486 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15487 *) # Relative name.
15488 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15489 esac
15490
15491 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15492 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15493 # The eval makes quoting arguments work.
15494 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15495 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15496 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15497 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15498 { (exit 1); exit 1; }; }
15499 fi
15500
15501 cd "$ac_popdir"
15502 done
15503 fi
15504
15505
15506 if test "$cf_openssl_version_ok" = yes; then
15507 openssl="yes"
15508 else
15509 openssl="no"
15510 fi
15511
15512 if test "$shared_modules" = yes; then
15513 modules=shared
15514 else
15515 modules=static
15516 fi
15517
15518 echo "
15519 Configuration:
15520 Install directory : $prefix
15521
15522 Ziplinks : $zlib
15523 OpenSSL : $openssl
15524 IPv6 support : $have_v6
15525 Socket Engine : $SELECT_TYPE
15526 Small network : $small_net
15527 Block allocator : $balloc
15528
15529 Nickname length : $NICKLEN
15530 Topic length : $TOPICLEN
15531
15532 Use make to compile Charybdis, then make install to install it.
15533 "