ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/configure
Revision: 875
Committed: Tue Oct 23 11:40:09 2007 UTC (16 years, 5 months ago) by michael
File size: 325404 byte(s)
Log Message:
- Fix some compile warnings with gcc 4.2.2
- Update configure.ac

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for ircd-hybrid 7.2.4.
4 #
5 # $Id$
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='ircd-hybrid'
576 PACKAGE_TARNAME='ircd-hybrid'
577 PACKAGE_VERSION='7.2.4'
578 PACKAGE_STRING='ircd-hybrid 7.2.4'
579 PACKAGE_BUGREPORT=''
580
581 ac_default_prefix=/usr/local/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 MKDEP
663 MAKEDEPEND
664 STDOUT
665 CPP
666 GREP
667 EGREP
668 SET_MAKE
669 INSTALL_PROGRAM
670 INSTALL_SCRIPT
671 INSTALL_DATA
672 RM
673 CP
674 MV
675 LN
676 SED
677 AR
678 LD
679 TEST
680 INET_MISC
681 CRYPT_C
682 CRYPT_LIB
683 SNPRINTF_C
684 ENCSPEED
685 ZLIB_LD
686 SELECT_TYPE
687 CLOBBER
688 BALLOC_C
689 EXAMPLE_CONF
690 MODULES_LIBS
691 MOD_TARGET
692 SSL_SRCS_ENABLE
693 SSL_INCLUDES
694 SSL_LIBS
695 PICFLAGS
696 IRC_CFLAGS
697 SEDOBJ
698 DYNLINK_C
699 LIBOBJS
700 LTLIBOBJS'
701 ac_subst_files=''
702 ac_precious_vars='build_alias
703 host_alias
704 target_alias
705 CC
706 CFLAGS
707 LDFLAGS
708 LIBS
709 CPPFLAGS
710 CPP'
711
712
713 # Initialize some variables set by options.
714 ac_init_help=
715 ac_init_version=false
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
718 cache_file=/dev/null
719 exec_prefix=NONE
720 no_create=
721 no_recursion=
722 prefix=NONE
723 program_prefix=NONE
724 program_suffix=NONE
725 program_transform_name=s,x,x,
726 silent=
727 site=
728 srcdir=
729 verbose=
730 x_includes=NONE
731 x_libraries=NONE
732
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
750 infodir='${datarootdir}/info'
751 htmldir='${docdir}'
752 dvidir='${docdir}'
753 pdfdir='${docdir}'
754 psdir='${docdir}'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
758
759 ac_prev=
760 ac_dashdash=
761 for ac_option
762 do
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\$ac_option
766 ac_prev=
767 continue
768 fi
769
770 case $ac_option in
771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 *) ac_optarg=yes ;;
773 esac
774
775 # Accept the important Cygnus configure options, so we can diagnose typos.
776
777 case $ac_dashdash$ac_option in
778 --)
779 ac_dashdash=yes ;;
780
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 ac_prev=bindir ;;
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784 bindir=$ac_optarg ;;
785
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
790
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
797
798 --config-cache | -C)
799 cache_file=config.cache ;;
800
801 -datadir | --datadir | --datadi | --datad)
802 ac_prev=datadir ;;
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
805
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
812
813 -disable-* | --disable-*)
814 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
817 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818 { (exit 1); exit 1; }; }
819 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
820 eval enable_$ac_feature=no ;;
821
822 -docdir | --docdir | --docdi | --doc | --do)
823 ac_prev=docdir ;;
824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
825 docdir=$ac_optarg ;;
826
827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
828 ac_prev=dvidir ;;
829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
830 dvidir=$ac_optarg ;;
831
832 -enable-* | --enable-*)
833 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 { (exit 1); exit 1; }; }
838 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
839 eval enable_$ac_feature=\$ac_optarg ;;
840
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
849
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
852 with_gas=yes ;;
853
854 -help | --help | --hel | --he | -h)
855 ac_init_help=long ;;
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
860
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
865
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 ac_prev=htmldir ;;
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 | --ht=*)
870 htmldir=$ac_optarg ;;
871
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
878
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 ac_prev=infodir ;;
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
883
884 -libdir | --libdir | --libdi | --libd)
885 ac_prev=libdir ;;
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
887 libdir=$ac_optarg ;;
888
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
895
896 -localedir | --localedir | --localedi | --localed | --locale)
897 ac_prev=localedir ;;
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
900
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
907
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 ac_prev=mandir ;;
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
911 mandir=$ac_optarg ;;
912
913 -nfp | --nfp | --nf)
914 # Obsolete; use --without-fp.
915 with_fp=no ;;
916
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
919 no_create=yes ;;
920
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
923 no_recursion=yes ;;
924
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
933
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 ac_prev=prefix ;;
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
937 prefix=$ac_optarg ;;
938
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
945
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
952
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
969
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 ac_prev=pdfdir ;;
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
973 pdfdir=$ac_optarg ;;
974
975 -psdir | --psdir | --psdi | --psd | --ps)
976 ac_prev=psdir ;;
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
978 psdir=$ac_optarg ;;
979
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
982 silent=yes ;;
983
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 ac_prev=sbindir ;;
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 | --sbi=* | --sb=*)
988 sbindir=$ac_optarg ;;
989
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
993 | --sha | --sh)
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 | --sha=* | --sh=*)
999 sharedstatedir=$ac_optarg ;;
1000
1001 -site | --site | --sit)
1002 ac_prev=site ;;
1003 -site=* | --site=* | --sit=*)
1004 site=$ac_optarg ;;
1005
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 ac_prev=srcdir ;;
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1010
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1017
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1022
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1024 verbose=yes ;;
1025
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1028
1029 -with-* | --with-*)
1030 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1036 eval with_$ac_package=\$ac_optarg ;;
1037
1038 -without-* | --without-*)
1039 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1045 eval with_$ac_package=no ;;
1046
1047 --x)
1048 # Obsolete; use --with-x.
1049 with_x=yes ;;
1050
1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 | --x-incl | --x-inc | --x-in | --x-i)
1053 ac_prev=x_includes ;;
1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 x_includes=$ac_optarg ;;
1057
1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 ac_prev=x_libraries ;;
1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 x_libraries=$ac_optarg ;;
1064
1065 -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 Try \`$0 --help' for more information." >&2
1067 { (exit 1); exit 1; }; }
1068 ;;
1069
1070 *=*)
1071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075 { (exit 1); exit 1; }; }
1076 eval $ac_envvar=\$ac_optarg
1077 export $ac_envvar ;;
1078
1079 *)
1080 # FIXME: should be removed in autoconf 3.0.
1081 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1085 ;;
1086
1087 esac
1088 done
1089
1090 if test -n "$ac_prev"; then
1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 { echo "$as_me: error: missing argument to $ac_option" >&2
1093 { (exit 1); exit 1; }; }
1094 fi
1095
1096 # Be sure to have absolute directory names.
1097 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098 datadir sysconfdir sharedstatedir localstatedir includedir \
1099 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100 libdir localedir mandir
1101 do
1102 eval ac_val=\$$ac_var
1103 case $ac_val in
1104 [\\/$]* | ?:[\\/]* ) continue;;
1105 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1106 esac
1107 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108 { (exit 1); exit 1; }; }
1109 done
1110
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1114 build=$build_alias
1115 host=$host_alias
1116 target=$target_alias
1117
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x; then
1120 if test "x$build_alias" = x; then
1121 cross_compiling=maybe
1122 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123 If a cross compiler is detected then cross compile mode will be used." >&2
1124 elif test "x$build_alias" != "x$host_alias"; then
1125 cross_compiling=yes
1126 fi
1127 fi
1128
1129 ac_tool_prefix=
1130 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1131
1132 test "$silent" = yes && exec 6>/dev/null
1133
1134
1135 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di=`ls -di .` &&
1137 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138 { echo "$as_me: error: Working directory cannot be determined" >&2
1139 { (exit 1); exit 1; }; }
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141 { echo "$as_me: error: pwd does not report name of working directory" >&2
1142 { (exit 1); exit 1; }; }
1143
1144
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147 ac_srcdir_defaulted=yes
1148 # Try the directory containing this script, then the parent directory.
1149 ac_confdir=`$as_dirname -- "$0" ||
1150 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 X"$0" : 'X\(//\)[^/]' \| \
1152 X"$0" : 'X\(//\)$' \| \
1153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1154 echo X"$0" |
1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1156 s//\1/
1157 q
1158 }
1159 /^X\(\/\/\)[^/].*/{
1160 s//\1/
1161 q
1162 }
1163 /^X\(\/\/\)$/{
1164 s//\1/
1165 q
1166 }
1167 /^X\(\/\).*/{
1168 s//\1/
1169 q
1170 }
1171 s/.*/./; q'`
1172 srcdir=$ac_confdir
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1174 srcdir=..
1175 fi
1176 else
1177 ac_srcdir_defaulted=no
1178 fi
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182 { (exit 1); exit 1; }; }
1183 fi
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1185 ac_abs_confdir=`(
1186 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187 { (exit 1); exit 1; }; }
1188 pwd)`
1189 # When building in place, set srcdir=.
1190 if test "$ac_abs_confdir" = "$ac_pwd"; then
1191 srcdir=.
1192 fi
1193 # Remove unnecessary trailing slashes from srcdir.
1194 # Double slashes in file names in object file debugging info
1195 # mess up M-x gdb in Emacs.
1196 case $srcdir in
1197 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1198 esac
1199 for ac_var in $ac_precious_vars; do
1200 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201 eval ac_env_${ac_var}_value=\$${ac_var}
1202 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1204 done
1205
1206 #
1207 # Report the --help message.
1208 #
1209 if test "$ac_init_help" = "long"; then
1210 # Omit some internal or obsolete options to make the list less imposing.
1211 # This message is too long to be a string in the A/UX 3.1 sh.
1212 cat <<_ACEOF
1213 \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1214
1215 Usage: $0 [OPTION]... [VAR=VALUE]...
1216
1217 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 VAR=VALUE. See below for descriptions of some of the useful variables.
1219
1220 Defaults for the options are specified in brackets.
1221
1222 Configuration:
1223 -h, --help display this help and exit
1224 --help=short display options specific to this package
1225 --help=recursive display the short help of all the included packages
1226 -V, --version display version information and exit
1227 -q, --quiet, --silent do not print \`checking...' messages
1228 --cache-file=FILE cache test results in FILE [disabled]
1229 -C, --config-cache alias for \`--cache-file=config.cache'
1230 -n, --no-create do not create output files
1231 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1232
1233 Installation directories:
1234 --prefix=PREFIX install architecture-independent files in PREFIX
1235 [$ac_default_prefix]
1236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1237 [PREFIX]
1238
1239 By default, \`make install' will install all the files in
1240 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1241 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 for instance \`--prefix=\$HOME'.
1243
1244 For better control, use the options below.
1245
1246 Fine tuning of the installation directories:
1247 --bindir=DIR user executables [EPREFIX/bin]
1248 --sbindir=DIR system admin executables [EPREFIX/sbin]
1249 --libexecdir=DIR program executables [EPREFIX/libexec]
1250 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1251 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1252 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1253 --libdir=DIR object code libraries [EPREFIX/lib]
1254 --includedir=DIR C header files [PREFIX/include]
1255 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1256 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1257 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1258 --infodir=DIR info documentation [DATAROOTDIR/info]
1259 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1260 --mandir=DIR man documentation [DATAROOTDIR/man]
1261 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1262 --htmldir=DIR html documentation [DOCDIR]
1263 --dvidir=DIR dvi documentation [DOCDIR]
1264 --pdfdir=DIR pdf documentation [DOCDIR]
1265 --psdir=DIR ps documentation [DOCDIR]
1266 _ACEOF
1267
1268 cat <<\_ACEOF
1269 _ACEOF
1270 fi
1271
1272 if test -n "$ac_init_help"; then
1273 case $ac_init_help in
1274 short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1275 esac
1276 cat <<\_ACEOF
1277
1278 Optional Features:
1279 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1280 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1281 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1282 --disable-openssl Disable OpenSSL support.
1283 --disable-zlib Disable ziplinks support
1284 --enable-poll Force poll() usage.
1285 --enable-select Force select() usage.
1286 --enable-kqueue Force kqueue() usage.
1287 --enable-devpoll Force usage of /dev/poll.
1288 --enable-rtsigio Enable SIGIO with RT Signals (Linux only)
1289 --enable-epoll Enable Linux epoll support.
1290 --enable-clobber Don't preserve old binaries on make install
1291 --enable-assert Enable assert().
1292 --enable-profile Enable profiling
1293 --enable-efence Enable ElectricFence (memory debugger).
1294 --disable-block-alloc Disable the block allocator (Only useful with
1295 ElectricFence)
1296 --enable-warnings Enable all sorts of warnings for debugging.
1297 --enable-small-net Enable small network support.
1298 --enable-efnet For IRCDs running on EFnet.
1299 --disable-gline-voting Disable G-line voting.
1300 --enable-halfops Enable halfops support.
1301 --enable-syslog="EVENTS"
1302 Enable syslog for events: kill, squit, connect,
1303 users, oper, space separated in quotes (default:
1304 disabled)
1305 --disable-shared-modules
1306 Disable shared modules.
1307
1308 Optional Packages:
1309 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1310 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1311 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1312 --with-syslog-facility=LOG
1313 Define the log facility to use with ircd's syslog
1314 output (default LOG_LOCAL4)
1315 --with-nicklen=LENGTH Set the nick length to LENGTH (default 9)
1316 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max
1317 390)
1318
1319 Some influential environment variables:
1320 CC C compiler command
1321 CFLAGS C compiler flags
1322 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1323 nonstandard directory <lib dir>
1324 LIBS libraries to pass to the linker, e.g. -l<library>
1325 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326 you have headers in a nonstandard directory <include dir>
1327 CPP C preprocessor
1328
1329 Use these variables to override the choices made by `configure' or to help
1330 it to find libraries and programs with nonstandard names/locations.
1331
1332 _ACEOF
1333 ac_status=$?
1334 fi
1335
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" || continue
1340 ac_builddir=.
1341
1342 case "$ac_dir" in
1343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1344 *)
1345 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1346 # A ".." for each directory in $ac_dir_suffix.
1347 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1348 case $ac_top_builddir_sub in
1349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351 esac ;;
1352 esac
1353 ac_abs_top_builddir=$ac_pwd
1354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1355 # for backward compatibility:
1356 ac_top_builddir=$ac_top_build_prefix
1357
1358 case $srcdir in
1359 .) # We are building in place.
1360 ac_srcdir=.
1361 ac_top_srcdir=$ac_top_builddir_sub
1362 ac_abs_top_srcdir=$ac_pwd ;;
1363 [\\/]* | ?:[\\/]* ) # Absolute name.
1364 ac_srcdir=$srcdir$ac_dir_suffix;
1365 ac_top_srcdir=$srcdir
1366 ac_abs_top_srcdir=$srcdir ;;
1367 *) # Relative name.
1368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1369 ac_top_srcdir=$ac_top_build_prefix$srcdir
1370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1371 esac
1372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1373
1374 cd "$ac_dir" || { ac_status=$?; continue; }
1375 # Check for guested configure.
1376 if test -f "$ac_srcdir/configure.gnu"; then
1377 echo &&
1378 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1379 elif test -f "$ac_srcdir/configure"; then
1380 echo &&
1381 $SHELL "$ac_srcdir/configure" --help=recursive
1382 else
1383 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1384 fi || ac_status=$?
1385 cd "$ac_pwd" || { ac_status=$?; break; }
1386 done
1387 fi
1388
1389 test -n "$ac_init_help" && exit $ac_status
1390 if $ac_init_version; then
1391 cat <<\_ACEOF
1392 ircd-hybrid configure 7.2.4
1393 generated by GNU Autoconf 2.61
1394
1395 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1396 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1399
1400 $Id$
1401 _ACEOF
1402 exit
1403 fi
1404 cat >config.log <<_ACEOF
1405 This file contains any messages produced by compilers while
1406 running configure, to aid debugging if configure makes a mistake.
1407
1408 It was created by ircd-hybrid $as_me 7.2.4, which was
1409 generated by GNU Autoconf 2.61. Invocation command line was
1410
1411 $ $0 $@
1412
1413 _ACEOF
1414 exec 5>>config.log
1415 {
1416 cat <<_ASUNAME
1417 ## --------- ##
1418 ## Platform. ##
1419 ## --------- ##
1420
1421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1426
1427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1428 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1429
1430 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1431 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1433 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1434 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1435 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1436 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1437
1438 _ASUNAME
1439
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 echo "PATH: $as_dir"
1446 done
1447 IFS=$as_save_IFS
1448
1449 } >&5
1450
1451 cat >&5 <<_ACEOF
1452
1453
1454 ## ----------- ##
1455 ## Core tests. ##
1456 ## ----------- ##
1457
1458 _ACEOF
1459
1460
1461 # Keep a trace of the command line.
1462 # Strip out --no-create and --no-recursion so they do not pile up.
1463 # Strip out --silent because we don't want to record it for future runs.
1464 # Also quote any args containing shell meta-characters.
1465 # Make two passes to allow for proper duplicate-argument suppression.
1466 ac_configure_args=
1467 ac_configure_args0=
1468 ac_configure_args1=
1469 ac_must_keep_next=false
1470 for ac_pass in 1 2
1471 do
1472 for ac_arg
1473 do
1474 case $ac_arg in
1475 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477 | -silent | --silent | --silen | --sile | --sil)
1478 continue ;;
1479 *\'*)
1480 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 esac
1482 case $ac_pass in
1483 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1484 2)
1485 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1486 if test $ac_must_keep_next = true; then
1487 ac_must_keep_next=false # Got value, back to normal.
1488 else
1489 case $ac_arg in
1490 *=* | --config-cache | -C | -disable-* | --disable-* \
1491 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1492 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1493 | -with-* | --with-* | -without-* | --without-* | --x)
1494 case "$ac_configure_args0 " in
1495 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1496 esac
1497 ;;
1498 -* ) ac_must_keep_next=true ;;
1499 esac
1500 fi
1501 ac_configure_args="$ac_configure_args '$ac_arg'"
1502 ;;
1503 esac
1504 done
1505 done
1506 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1507 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1508
1509 # When interrupted or exit'd, cleanup temporary files, and complete
1510 # config.log. We remove comments because anyway the quotes in there
1511 # would cause problems or look ugly.
1512 # WARNING: Use '\'' to represent an apostrophe within the trap.
1513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1514 trap 'exit_status=$?
1515 # Save into config.log some information that might help in debugging.
1516 {
1517 echo
1518
1519 cat <<\_ASBOX
1520 ## ---------------- ##
1521 ## Cache variables. ##
1522 ## ---------------- ##
1523 _ASBOX
1524 echo
1525 # The following way of writing the cache mishandles newlines in values,
1526 (
1527 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1528 eval ac_val=\$$ac_var
1529 case $ac_val in #(
1530 *${as_nl}*)
1531 case $ac_var in #(
1532 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1533 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1534 esac
1535 case $ac_var in #(
1536 _ | IFS | as_nl) ;; #(
1537 *) $as_unset $ac_var ;;
1538 esac ;;
1539 esac
1540 done
1541 (set) 2>&1 |
1542 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1543 *${as_nl}ac_space=\ *)
1544 sed -n \
1545 "s/'\''/'\''\\\\'\'''\''/g;
1546 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1547 ;; #(
1548 *)
1549 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1550 ;;
1551 esac |
1552 sort
1553 )
1554 echo
1555
1556 cat <<\_ASBOX
1557 ## ----------------- ##
1558 ## Output variables. ##
1559 ## ----------------- ##
1560 _ASBOX
1561 echo
1562 for ac_var in $ac_subst_vars
1563 do
1564 eval ac_val=\$$ac_var
1565 case $ac_val in
1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1567 esac
1568 echo "$ac_var='\''$ac_val'\''"
1569 done | sort
1570 echo
1571
1572 if test -n "$ac_subst_files"; then
1573 cat <<\_ASBOX
1574 ## ------------------- ##
1575 ## File substitutions. ##
1576 ## ------------------- ##
1577 _ASBOX
1578 echo
1579 for ac_var in $ac_subst_files
1580 do
1581 eval ac_val=\$$ac_var
1582 case $ac_val in
1583 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584 esac
1585 echo "$ac_var='\''$ac_val'\''"
1586 done | sort
1587 echo
1588 fi
1589
1590 if test -s confdefs.h; then
1591 cat <<\_ASBOX
1592 ## ----------- ##
1593 ## confdefs.h. ##
1594 ## ----------- ##
1595 _ASBOX
1596 echo
1597 cat confdefs.h
1598 echo
1599 fi
1600 test "$ac_signal" != 0 &&
1601 echo "$as_me: caught signal $ac_signal"
1602 echo "$as_me: exit $exit_status"
1603 } >&5
1604 rm -f core *.core core.conftest.* &&
1605 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1606 exit $exit_status
1607 ' 0
1608 for ac_signal in 1 2 13 15; do
1609 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1610 done
1611 ac_signal=0
1612
1613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1614 rm -f -r conftest* confdefs.h
1615
1616 # Predefined preprocessor variables.
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_NAME "$PACKAGE_NAME"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_STRING "$PACKAGE_STRING"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1640 _ACEOF
1641
1642
1643 # Let the site file select an alternate cache file if it wants to.
1644 # Prefer explicitly selected file to automatically selected ones.
1645 if test -n "$CONFIG_SITE"; then
1646 set x "$CONFIG_SITE"
1647 elif test "x$prefix" != xNONE; then
1648 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1649 else
1650 set x "$ac_default_prefix/share/config.site" \
1651 "$ac_default_prefix/etc/config.site"
1652 fi
1653 shift
1654 for ac_site_file
1655 do
1656 if test -r "$ac_site_file"; then
1657 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1658 echo "$as_me: loading site script $ac_site_file" >&6;}
1659 sed 's/^/| /' "$ac_site_file" >&5
1660 . "$ac_site_file"
1661 fi
1662 done
1663
1664 if test -r "$cache_file"; then
1665 # Some versions of bash will fail to source /dev/null (special
1666 # files actually), so we avoid doing that.
1667 if test -f "$cache_file"; then
1668 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1669 echo "$as_me: loading cache $cache_file" >&6;}
1670 case $cache_file in
1671 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1672 *) . "./$cache_file";;
1673 esac
1674 fi
1675 else
1676 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1677 echo "$as_me: creating cache $cache_file" >&6;}
1678 >$cache_file
1679 fi
1680
1681 # Check that the precious variables saved in the cache have kept the same
1682 # value.
1683 ac_cache_corrupted=false
1684 for ac_var in $ac_precious_vars; do
1685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1686 eval ac_new_set=\$ac_env_${ac_var}_set
1687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1688 eval ac_new_val=\$ac_env_${ac_var}_value
1689 case $ac_old_set,$ac_new_set in
1690 set,)
1691 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1692 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1693 ac_cache_corrupted=: ;;
1694 ,set)
1695 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1696 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1697 ac_cache_corrupted=: ;;
1698 ,);;
1699 *)
1700 if test "x$ac_old_val" != "x$ac_new_val"; then
1701 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1702 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1704 echo "$as_me: former value: $ac_old_val" >&2;}
1705 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1706 echo "$as_me: current value: $ac_new_val" >&2;}
1707 ac_cache_corrupted=:
1708 fi;;
1709 esac
1710 # Pass precious variables to config.status.
1711 if test "$ac_new_set" = set; then
1712 case $ac_new_val in
1713 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1714 *) ac_arg=$ac_var=$ac_new_val ;;
1715 esac
1716 case " $ac_configure_args " in
1717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1718 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1719 esac
1720 fi
1721 done
1722 if $ac_cache_corrupted; then
1723 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1724 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1725 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1726 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1727 { (exit 1); exit 1; }; }
1728 fi
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754 ac_ext=c
1755 ac_cpp='$CPP $CPPFLAGS'
1756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1759
1760
1761
1762 ac_config_headers="$ac_config_headers include/setup.h"
1763
1764
1765
1766
1767
1768 cat >>confdefs.h <<\_ACEOF
1769 #define _GNU_SOURCE 1
1770 _ACEOF
1771
1772
1773
1774 OLD_CFLAGS="$CFLAGS"
1775 ac_ext=c
1776 ac_cpp='$CPP $CPPFLAGS'
1777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780 if test -n "$ac_tool_prefix"; then
1781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1785 if test "${ac_cv_prog_CC+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788 if test -n "$CC"; then
1789 ac_cv_prog_CC="$CC" # Let the user override the test.
1790 else
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 for ac_exec_ext in '' $ac_executable_extensions; do
1797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 break 2
1801 fi
1802 done
1803 done
1804 IFS=$as_save_IFS
1805
1806 fi
1807 fi
1808 CC=$ac_cv_prog_CC
1809 if test -n "$CC"; then
1810 { echo "$as_me:$LINENO: result: $CC" >&5
1811 echo "${ECHO_T}$CC" >&6; }
1812 else
1813 { echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6; }
1815 fi
1816
1817
1818 fi
1819 if test -z "$ac_cv_prog_CC"; then
1820 ac_ct_CC=$CC
1821 # Extract the first word of "gcc", so it can be a program name with args.
1822 set dummy gcc; ac_word=$2
1823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1826 echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828 if test -n "$ac_ct_CC"; then
1829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834 IFS=$as_save_IFS
1835 test -z "$as_dir" && as_dir=.
1836 for ac_exec_ext in '' $ac_executable_extensions; do
1837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1838 ac_cv_prog_ac_ct_CC="gcc"
1839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840 break 2
1841 fi
1842 done
1843 done
1844 IFS=$as_save_IFS
1845
1846 fi
1847 fi
1848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1849 if test -n "$ac_ct_CC"; then
1850 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1851 echo "${ECHO_T}$ac_ct_CC" >&6; }
1852 else
1853 { echo "$as_me:$LINENO: result: no" >&5
1854 echo "${ECHO_T}no" >&6; }
1855 fi
1856
1857 if test "x$ac_ct_CC" = x; then
1858 CC=""
1859 else
1860 case $cross_compiling:$ac_tool_warned in
1861 yes:)
1862 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1863 whose name does not start with the host triplet. If you think this
1864 configuration is useful to you, please write to autoconf@gnu.org." >&5
1865 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1866 whose name does not start with the host triplet. If you think this
1867 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1868 ac_tool_warned=yes ;;
1869 esac
1870 CC=$ac_ct_CC
1871 fi
1872 else
1873 CC="$ac_cv_prog_CC"
1874 fi
1875
1876 if test -z "$CC"; then
1877 if test -n "$ac_tool_prefix"; then
1878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1879 set dummy ${ac_tool_prefix}cc; ac_word=$2
1880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891 IFS=$as_save_IFS
1892 test -z "$as_dir" && as_dir=.
1893 for ac_exec_ext in '' $ac_executable_extensions; do
1894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1895 ac_cv_prog_CC="${ac_tool_prefix}cc"
1896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 break 2
1898 fi
1899 done
1900 done
1901 IFS=$as_save_IFS
1902
1903 fi
1904 fi
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907 { echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6; }
1909 else
1910 { echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6; }
1912 fi
1913
1914
1915 fi
1916 fi
1917 if test -z "$CC"; then
1918 # Extract the first word of "cc", so it can be a program name with args.
1919 set dummy cc; ac_word=$2
1920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1922 if test "${ac_cv_prog_CC+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 if test -n "$CC"; then
1926 ac_cv_prog_CC="$CC" # Let the user override the test.
1927 else
1928 ac_prog_rejected=no
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932 IFS=$as_save_IFS
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1937 ac_prog_rejected=yes
1938 continue
1939 fi
1940 ac_cv_prog_CC="cc"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1942 break 2
1943 fi
1944 done
1945 done
1946 IFS=$as_save_IFS
1947
1948 if test $ac_prog_rejected = yes; then
1949 # We found a bogon in the path, so make sure we never use it.
1950 set dummy $ac_cv_prog_CC
1951 shift
1952 if test $# != 0; then
1953 # We chose a different compiler from the bogus one.
1954 # However, it has the same basename, so the bogon will be chosen
1955 # first if we set CC to just the basename; use the full file name.
1956 shift
1957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1958 fi
1959 fi
1960 fi
1961 fi
1962 CC=$ac_cv_prog_CC
1963 if test -n "$CC"; then
1964 { echo "$as_me:$LINENO: result: $CC" >&5
1965 echo "${ECHO_T}$CC" >&6; }
1966 else
1967 { echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6; }
1969 fi
1970
1971
1972 fi
1973 if test -z "$CC"; then
1974 if test -n "$ac_tool_prefix"; then
1975 for ac_prog in cl.exe
1976 do
1977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$CC"; then
1985 ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998 done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006 { echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6; }
2008 else
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2011 fi
2012
2013
2014 test -n "$CC" && break
2015 done
2016 fi
2017 if test -z "$CC"; then
2018 ac_ct_CC=$CC
2019 for ac_prog in cl.exe
2020 do
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$ac_ct_CC"; then
2029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_ac_ct_CC="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2041 fi
2042 done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047 fi
2048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2049 if test -n "$ac_ct_CC"; then
2050 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2051 echo "${ECHO_T}$ac_ct_CC" >&6; }
2052 else
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2055 fi
2056
2057
2058 test -n "$ac_ct_CC" && break
2059 done
2060
2061 if test "x$ac_ct_CC" = x; then
2062 CC=""
2063 else
2064 case $cross_compiling:$ac_tool_warned in
2065 yes:)
2066 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&5
2069 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2070 whose name does not start with the host triplet. If you think this
2071 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2072 ac_tool_warned=yes ;;
2073 esac
2074 CC=$ac_ct_CC
2075 fi
2076 fi
2077
2078 fi
2079
2080
2081 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2082 See \`config.log' for more details." >&5
2083 echo "$as_me: error: no acceptable C compiler found in \$PATH
2084 See \`config.log' for more details." >&2;}
2085 { (exit 1); exit 1; }; }
2086
2087 # Provide some information about the compiler.
2088 echo "$as_me:$LINENO: checking for C compiler version" >&5
2089 ac_compiler=`set X $ac_compile; echo $2`
2090 { (ac_try="$ac_compiler --version >&5"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler --version >&5") 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (ac_try="$ac_compiler -v >&5"
2101 case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104 esac
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -v >&5") 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (ac_try="$ac_compiler -V >&5"
2111 case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler -V >&5") 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120
2121 cat >conftest.$ac_ext <<_ACEOF
2122 /* confdefs.h. */
2123 _ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2127
2128 int
2129 main ()
2130 {
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2140 # of exeext.
2141 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2142 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 #
2145 # List of possible output files, starting from the most likely.
2146 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2147 # only as a last resort. b.out is created by i960 compilers.
2148 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2149 #
2150 # The IRIX 6 linker writes into existing files which may not be
2151 # executable, retaining their permissions. Remove them first so a
2152 # subsequent execution test works.
2153 ac_rmfiles=
2154 for ac_file in $ac_files
2155 do
2156 case $ac_file in
2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2158 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2159 esac
2160 done
2161 rm -f $ac_rmfiles
2162
2163 if { (ac_try="$ac_link_default"
2164 case "(($ac_try" in
2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166 *) ac_try_echo=$ac_try;;
2167 esac
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169 (eval "$ac_link_default") 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2174 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2175 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2176 # so that the user can short-circuit this test for compilers unknown to
2177 # Autoconf.
2178 for ac_file in $ac_files ''
2179 do
2180 test -f "$ac_file" || continue
2181 case $ac_file in
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2183 ;;
2184 [ab].out )
2185 # We found the default executable, but exeext='' is most
2186 # certainly right.
2187 break;;
2188 *.* )
2189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2190 then :; else
2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2192 fi
2193 # We set ac_cv_exeext here because the later test for it is not
2194 # safe: cross compilers may not add the suffix if given an `-o'
2195 # argument, so we may need to know it at that point already.
2196 # Even if this section looks crufty: it has the advantage of
2197 # actually working.
2198 break;;
2199 * )
2200 break;;
2201 esac
2202 done
2203 test "$ac_cv_exeext" = no && ac_cv_exeext=
2204
2205 else
2206 ac_file=''
2207 fi
2208
2209 { echo "$as_me:$LINENO: result: $ac_file" >&5
2210 echo "${ECHO_T}$ac_file" >&6; }
2211 if test -z "$ac_file"; then
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: C compiler cannot create executables
2218 See \`config.log' for more details." >&2;}
2219 { (exit 77); exit 77; }; }
2220 fi
2221
2222 ac_exeext=$ac_cv_exeext
2223
2224 # Check that the compiler produces executables we can run. If not, either
2225 # the compiler is broken, or we cross compile.
2226 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2227 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2228 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2229 # If not cross compiling, check that we can run a simple program.
2230 if test "$cross_compiling" != yes; then
2231 if { ac_try='./$ac_file'
2232 { (case "(($ac_try" in
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2235 esac
2236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2237 (eval "$ac_try") 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 cross_compiling=no
2242 else
2243 if test "$cross_compiling" = maybe; then
2244 cross_compiling=yes
2245 else
2246 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2247 If you meant to cross compile, use \`--host'.
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot run C compiled programs.
2250 If you meant to cross compile, use \`--host'.
2251 See \`config.log' for more details." >&2;}
2252 { (exit 1); exit 1; }; }
2253 fi
2254 fi
2255 fi
2256 { echo "$as_me:$LINENO: result: yes" >&5
2257 echo "${ECHO_T}yes" >&6; }
2258
2259 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2260 ac_clean_files=$ac_clean_files_save
2261 # Check that the compiler produces executables we can run. If not, either
2262 # the compiler is broken, or we cross compile.
2263 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2264 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2265 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2266 echo "${ECHO_T}$cross_compiling" >&6; }
2267
2268 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2269 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2270 if { (ac_try="$ac_link"
2271 case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274 esac
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_link") 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; then
2280 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2281 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2282 # work properly (i.e., refer to `conftest.exe'), while it won't with
2283 # `rm'.
2284 for ac_file in conftest.exe conftest conftest.*; do
2285 test -f "$ac_file" || continue
2286 case $ac_file in
2287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2288 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 break;;
2290 * ) break;;
2291 esac
2292 done
2293 else
2294 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&5
2296 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&2;}
2298 { (exit 1); exit 1; }; }
2299 fi
2300
2301 rm -f conftest$ac_cv_exeext
2302 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2303 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2304
2305 rm -f conftest.$ac_ext
2306 EXEEXT=$ac_cv_exeext
2307 ac_exeext=$EXEEXT
2308 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2309 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2310 if test "${ac_cv_objext+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h. */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h. */
2319
2320 int
2321 main ()
2322 {
2323
2324 ;
2325 return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.o conftest.obj
2329 if { (ac_try="$ac_compile"
2330 case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333 esac
2334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2335 (eval "$ac_compile") 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; then
2339 for ac_file in conftest.o conftest.obj conftest.*; do
2340 test -f "$ac_file" || continue;
2341 case $ac_file in
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2343 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344 break;;
2345 esac
2346 done
2347 else
2348 echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2352 See \`config.log' for more details." >&5
2353 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&2;}
2355 { (exit 1); exit 1; }; }
2356 fi
2357
2358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2359 fi
2360 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2361 echo "${ECHO_T}$ac_cv_objext" >&6; }
2362 OBJEXT=$ac_cv_objext
2363 ac_objext=$OBJEXT
2364 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2365 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2366 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375
2376 int
2377 main ()
2378 {
2379 #ifndef __GNUC__
2380 choke me
2381 #endif
2382
2383 ;
2384 return 0;
2385 }
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (ac_try="$ac_compile"
2389 case "(($ac_try" in
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2392 esac
2393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2394 (eval "$ac_compile") 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest.$ac_objext; then
2404 ac_compiler_gnu=yes
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_compiler_gnu=no
2410 fi
2411
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2414
2415 fi
2416 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2421 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2422 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2423 if test "${ac_cv_prog_cc_g+set}" = set; then
2424 echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426 ac_save_c_werror_flag=$ac_c_werror_flag
2427 ac_c_werror_flag=yes
2428 ac_cv_prog_cc_g=no
2429 CFLAGS="-g"
2430 cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h. */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2436
2437 int
2438 main ()
2439 {
2440
2441 ;
2442 return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (ac_try="$ac_compile"
2447 case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_compile") 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } && {
2459 test -z "$ac_c_werror_flag" ||
2460 test ! -s conftest.err
2461 } && test -s conftest.$ac_objext; then
2462 ac_cv_prog_cc_g=yes
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 CFLAGS=""
2468 cat >conftest.$ac_ext <<_ACEOF
2469 /* confdefs.h. */
2470 _ACEOF
2471 cat confdefs.h >>conftest.$ac_ext
2472 cat >>conftest.$ac_ext <<_ACEOF
2473 /* end confdefs.h. */
2474
2475 int
2476 main ()
2477 {
2478
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 rm -f conftest.$ac_objext
2484 if { (ac_try="$ac_compile"
2485 case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_compile") 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } && {
2497 test -z "$ac_c_werror_flag" ||
2498 test ! -s conftest.err
2499 } && test -s conftest.$ac_objext; then
2500 :
2501 else
2502 echo "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_c_werror_flag=$ac_save_c_werror_flag
2506 CFLAGS="-g"
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2513
2514 int
2515 main ()
2516 {
2517
2518 ;
2519 return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (ac_try="$ac_compile"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_compile") 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && {
2536 test -z "$ac_c_werror_flag" ||
2537 test ! -s conftest.err
2538 } && test -s conftest.$ac_objext; then
2539 ac_cv_prog_cc_g=yes
2540 else
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544
2545 fi
2546
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548 fi
2549
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 fi
2552
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_c_werror_flag=$ac_save_c_werror_flag
2555 fi
2556 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2557 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2558 if test "$ac_test_CFLAGS" = set; then
2559 CFLAGS=$ac_save_CFLAGS
2560 elif test $ac_cv_prog_cc_g = yes; then
2561 if test "$GCC" = yes; then
2562 CFLAGS="-g -O2"
2563 else
2564 CFLAGS="-g"
2565 fi
2566 else
2567 if test "$GCC" = yes; then
2568 CFLAGS="-O2"
2569 else
2570 CFLAGS=
2571 fi
2572 fi
2573 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2574 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_cc_c89+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 ac_cv_prog_cc_c89=no
2579 ac_save_CC=$CC
2580 cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h. */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2586 #include <stdarg.h>
2587 #include <stdio.h>
2588 #include <sys/types.h>
2589 #include <sys/stat.h>
2590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2591 struct buf { int x; };
2592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2593 static char *e (p, i)
2594 char **p;
2595 int i;
2596 {
2597 return p[i];
2598 }
2599 static char *f (char * (*g) (char **, int), char **p, ...)
2600 {
2601 char *s;
2602 va_list v;
2603 va_start (v,p);
2604 s = g (p, va_arg (v,int));
2605 va_end (v);
2606 return s;
2607 }
2608
2609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2610 function prototypes and stuff, but not '\xHH' hex character constants.
2611 These don't provoke an error unfortunately, instead are silently treated
2612 as 'x'. The following induces an error, until -std is added to get
2613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2614 array size at least. It's necessary to write '\x00'==0 to get something
2615 that's true only with -std. */
2616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2617
2618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2619 inside strings and character constants. */
2620 #define FOO(x) 'x'
2621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2622
2623 int test (int i, double x);
2624 struct s1 {int (*f) (int a);};
2625 struct s2 {int (*f) (double a);};
2626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2627 int argc;
2628 char **argv;
2629 int
2630 main ()
2631 {
2632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2639 do
2640 CC="$ac_save_CC $ac_arg"
2641 rm -f conftest.$ac_objext
2642 if { (ac_try="$ac_compile"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
2658 ac_cv_prog_cc_c89=$ac_arg
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663
2664 fi
2665
2666 rm -f core conftest.err conftest.$ac_objext
2667 test "x$ac_cv_prog_cc_c89" != "xno" && break
2668 done
2669 rm -f conftest.$ac_ext
2670 CC=$ac_save_CC
2671
2672 fi
2673 # AC_CACHE_VAL
2674 case "x$ac_cv_prog_cc_c89" in
2675 x)
2676 { echo "$as_me:$LINENO: result: none needed" >&5
2677 echo "${ECHO_T}none needed" >&6; } ;;
2678 xno)
2679 { echo "$as_me:$LINENO: result: unsupported" >&5
2680 echo "${ECHO_T}unsupported" >&6; } ;;
2681 *)
2682 CC="$CC $ac_cv_prog_cc_c89"
2683 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2684 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2685 esac
2686
2687
2688 ac_ext=c
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2693
2694 ac_ext=c
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700
2701 CFLAGS="$OLD_CFLAGS"
2702
2703
2704 if test "$ac_cv_c_compiler_gnu" != yes; then
2705
2706 SGS=no
2707 { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2708 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; }
2709 case `$CC -version 2>&1` in
2710 *TenDRA*)
2711 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2712 echo "${ECHO_T}yes, TenDRA" >&6; }
2713 IRC_CFLAGS=""
2714 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem"
2715 SGS=yes
2716 TenDRA=yes
2717 ;;
2718 *MIPSpro*)
2719 { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2720 echo "${ECHO_T}yes, MIPSpro" >&6; }
2721 MIPSpro=yes
2722 SGS=yes
2723 ;;
2724 *)
2725 { echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6; }
2727 TenDRA=no
2728 MIPSpro=no
2729 ;;
2730 esac
2731
2732 { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2733 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; }
2734 case `$CC -V 2>&1` in
2735 *Sun*WorkShop* | *Forte*Developer* | *Sun*C*)
2736 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2737 echo "${ECHO_T}Sun Workshop/Forte" >&6; }
2738 IRC_CFLAGS="-xO3 -xdepend -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2739 SunWorkShop=yes
2740 SGS=yes
2741 ;;
2742 *Tru64*)
2743 { echo "$as_me:$LINENO: result: Tru64 cc" >&5
2744 echo "${ECHO_T}Tru64 cc" >&6; }
2745 IRC_CFLAGS=""
2746 CPPFLAGS="-I/usr/local/include"
2747 Tru=yes
2748 ;;
2749 *HP*ANSI*)
2750 { echo "$as_me:$LINENO: result: HPUX cc" >&5
2751 echo "${ECHO_T}HPUX cc" >&6; }
2752 HPUX=yes
2753 IRC_CFLAGS="+e"
2754 ;;
2755 *)
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 ;;
2759 esac
2760
2761 fi
2762
2763 { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5
2764 echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6; }
2765 case `uname -s` in
2766 HP-UX*)
2767
2768 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2769 { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2770 echo "${ECHO_T}assuming old HPUX with its own cc" >&6; }
2771 IRC_CFLAGS="$IRC_CFLAGS +e"
2772 HPUX=yes
2773 else
2774 { echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2775 echo "${ECHO_T}already using newer HPUX" >&6; }
2776 fi
2777 ;;
2778 CYGWIN*)
2779 { echo "$as_me:$LINENO: result: Cygwin" >&5
2780 echo "${ECHO_T}Cygwin" >&6; }
2781 CYGWIN=yes
2782 ;;
2783 SunOS*)
2784 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2785 echo "${ECHO_T}SunOS or Solaris" >&6; }
2786
2787 cat >>confdefs.h <<\_ACEOF
2788 #define __EXTENSIONS__ 1
2789 _ACEOF
2790
2791 ;;
2792 *)
2793 { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2795 ;;
2796 esac
2797
2798 if test "$ac_cv_c_compiler_gnu" = yes; then
2799 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2800 echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
2801
2802 if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then
2803 AppleGCC=yes
2804 else
2805 AppleGCC=no
2806 fi
2807
2808 { echo "$as_me:$LINENO: result: $AppleGCC" >&5
2809 echo "${ECHO_T}$AppleGCC" >&6; }
2810
2811 IRC_CFLAGS="$IRC_CFLAGS -Wall -O2"
2812 fi
2813
2814 if test "$ac_cv_prog_cc_g" = yes; then
2815 if test "$Tru" = yes; then
2816 IRC_CFLAGS="$IRC_CFLAGS -g3"
2817 else
2818 IRC_CFLAGS="$IRC_CFLAGS -g"
2819 fi
2820 fi
2821
2822 { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2823 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
2824 if test "$SGS" = "yes"; then
2825 { echo "$as_me:$LINENO: result: yes" >&5
2826 echo "${ECHO_T}yes" >&6; }
2827 else
2828 { echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6; }
2830 fi
2831
2832 # Extract the first word of "mkdep", so it can be a program name with args.
2833 set dummy mkdep; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_path_MKDEP+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839 case $MKDEP in
2840 [\\/]* | ?:[\\/]*)
2841 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2842 ;;
2843 *)
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 ;;
2860 esac
2861 fi
2862 MKDEP=$ac_cv_path_MKDEP
2863 if test -n "$MKDEP"; then
2864 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2865 echo "${ECHO_T}$MKDEP" >&6; }
2866 else
2867 { echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6; }
2869 fi
2870
2871
2872 # Extract the first word of "makedepend", so it can be a program name with args.
2873 set dummy makedepend; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 case $MAKEDEPEND in
2880 [\\/]* | ?:[\\/]*)
2881 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2882 ;;
2883 *)
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895 done
2896 done
2897 IFS=$as_save_IFS
2898
2899 ;;
2900 esac
2901 fi
2902 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2903 if test -n "$MAKEDEPEND"; then
2904 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2905 echo "${ECHO_T}$MAKEDEPEND" >&6; }
2906 else
2907 { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912
2913 { echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2914 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
2915
2916 STDOUT="> .depend"
2917
2918 if test "$ac_cv_c_compiler_gnu" = yes; then
2919 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2920 echo "${ECHO_T}gcc -MM" >&6; }
2921 MKDEP="$CC -MM"
2922 elif test ! -z "$MKDEP"; then
2923 { echo "$as_me:$LINENO: result: mkdep" >&5
2924 echo "${ECHO_T}mkdep" >&6; }
2925
2926 if test -z "$Tru"; then
2927 STDOUT=""
2928 else
2929 STDOUT=" 2> /dev/null"
2930 fi
2931 elif test "$SunWorkShop" = yes; then
2932 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2933 echo "${ECHO_T}$CC -xM" >&6; }
2934 MKDEP="$CC -xM"
2935 STDOUT="> .depend 2> /dev/null"
2936 elif test ! -z "$MAKEDEPEND"; then
2937 { echo "$as_me:$LINENO: result: makedepend" >&5
2938 echo "${ECHO_T}makedepend" >&6; }
2939 MKDEP="$MAKEDEPEND -f-"
2940 else
2941 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2942 echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
2943 MKDEP=":"
2944 fi
2945
2946
2947
2948
2949 { echo "$as_me:$LINENO: checking for /dev/null" >&5
2950 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
2951 if test -c /dev/null ; then
2952
2953 cat >>confdefs.h <<\_ACEOF
2954 #define PATH_DEVNULL "/dev/null"
2955 _ACEOF
2956
2957 { echo "$as_me:$LINENO: result: yes" >&5
2958 echo "${ECHO_T}yes" >&6; }
2959 else
2960
2961 cat >>confdefs.h <<\_ACEOF
2962 #define PATH_DEVNULL "devnull.log"
2963 _ACEOF
2964
2965 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
2966 echo "${ECHO_T}no - using devnull.log" >&6; }
2967 fi
2968
2969 if test ! -z "$CFLAGS"; then
2970 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2971 fi
2972
2973
2974 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
2975 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
2976 if test "${ac_cv_search_strerror+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 ac_func_search_save_LIBS=$LIBS
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2986
2987 /* Override any GCC internal prototype to avoid an error.
2988 Use char because int might match the return type of a GCC
2989 builtin and then its argument prototype would still apply. */
2990 #ifdef __cplusplus
2991 extern "C"
2992 #endif
2993 char strerror ();
2994 int
2995 main ()
2996 {
2997 return strerror ();
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 for ac_lib in '' cposix; do
3003 if test -z "$ac_lib"; then
3004 ac_res="none required"
3005 else
3006 ac_res=-l$ac_lib
3007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3008 fi
3009 rm -f conftest.$ac_objext conftest$ac_exeext
3010 if { (ac_try="$ac_link"
3011 case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3014 esac
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_link") 2>conftest.er1
3017 ac_status=$?
3018 grep -v '^ *+' conftest.er1 >conftest.err
3019 rm -f conftest.er1
3020 cat conftest.err >&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); } && {
3023 test -z "$ac_c_werror_flag" ||
3024 test ! -s conftest.err
3025 } && test -s conftest$ac_exeext &&
3026 $as_test_x conftest$ac_exeext; then
3027 ac_cv_search_strerror=$ac_res
3028 else
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032
3033 fi
3034
3035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3036 conftest$ac_exeext
3037 if test "${ac_cv_search_strerror+set}" = set; then
3038 break
3039 fi
3040 done
3041 if test "${ac_cv_search_strerror+set}" = set; then
3042 :
3043 else
3044 ac_cv_search_strerror=no
3045 fi
3046 rm conftest.$ac_ext
3047 LIBS=$ac_func_search_save_LIBS
3048 fi
3049 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3050 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3051 ac_res=$ac_cv_search_strerror
3052 if test "$ac_res" != no; then
3053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3054
3055 fi
3056
3057 { echo "$as_me:$LINENO: checking for inline" >&5
3058 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3059 if test "${ac_cv_c_inline+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062 ac_cv_c_inline=no
3063 for ac_kw in inline __inline__ __inline; do
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 #ifndef __cplusplus
3071 typedef int foo_t;
3072 static $ac_kw foo_t static_foo () {return 0; }
3073 $ac_kw foo_t foo () {return 0; }
3074 #endif
3075
3076 _ACEOF
3077 rm -f conftest.$ac_objext
3078 if { (ac_try="$ac_compile"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
3094 ac_cv_c_inline=$ac_kw
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099
3100 fi
3101
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 test "$ac_cv_c_inline" != no && break
3104 done
3105
3106 fi
3107 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3108 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3109
3110
3111 case $ac_cv_c_inline in
3112 inline | yes) ;;
3113 *)
3114 case $ac_cv_c_inline in
3115 no) ac_val=;;
3116 *) ac_val=$ac_cv_c_inline;;
3117 esac
3118 cat >>confdefs.h <<_ACEOF
3119 #ifndef __cplusplus
3120 #define inline $ac_val
3121 #endif
3122 _ACEOF
3123 ;;
3124 esac
3125
3126 ac_ext=c
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3131 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3132 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3133 # On Suns, sometimes $CPP names a directory.
3134 if test -n "$CPP" && test -d "$CPP"; then
3135 CPP=
3136 fi
3137 if test -z "$CPP"; then
3138 if test "${ac_cv_prog_CPP+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141 # Double quotes because CPP needs to be expanded
3142 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3143 do
3144 ac_preproc_ok=false
3145 for ac_c_preproc_warn_flag in '' yes
3146 do
3147 # Use a header file that comes with gcc, so configuring glibc
3148 # with a fresh cross-compiler works.
3149 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3150 # <limits.h> exists even on freestanding compilers.
3151 # On the NeXT, cc -E runs the code through the compiler's parser,
3152 # not just through cpp. "Syntax error" is here to catch this case.
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #ifdef __STDC__
3160 # include <limits.h>
3161 #else
3162 # include <assert.h>
3163 #endif
3164 Syntax error
3165 _ACEOF
3166 if { (ac_try="$ac_cpp conftest.$ac_ext"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null && {
3179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3180 test ! -s conftest.err
3181 }; then
3182 :
3183 else
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 # Broken: fails on valid input.
3188 continue
3189 fi
3190
3191 rm -f conftest.err conftest.$ac_ext
3192
3193 # OK, works on sane cases. Now check whether nonexistent headers
3194 # can be detected and how.
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201 #include <ac_nonexistent.h>
3202 _ACEOF
3203 if { (ac_try="$ac_cpp conftest.$ac_ext"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } >/dev/null && {
3216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3217 test ! -s conftest.err
3218 }; then
3219 # Broken: success on invalid input.
3220 continue
3221 else
3222 echo "$as_me: failed program was:" >&5
3223 sed 's/^/| /' conftest.$ac_ext >&5
3224
3225 # Passes both tests.
3226 ac_preproc_ok=:
3227 break
3228 fi
3229
3230 rm -f conftest.err conftest.$ac_ext
3231
3232 done
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234 rm -f conftest.err conftest.$ac_ext
3235 if $ac_preproc_ok; then
3236 break
3237 fi
3238
3239 done
3240 ac_cv_prog_CPP=$CPP
3241
3242 fi
3243 CPP=$ac_cv_prog_CPP
3244 else
3245 ac_cv_prog_CPP=$CPP
3246 fi
3247 { echo "$as_me:$LINENO: result: $CPP" >&5
3248 echo "${ECHO_T}$CPP" >&6; }
3249 ac_preproc_ok=false
3250 for ac_c_preproc_warn_flag in '' yes
3251 do
3252 # Use a header file that comes with gcc, so configuring glibc
3253 # with a fresh cross-compiler works.
3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3255 # <limits.h> exists even on freestanding compilers.
3256 # On the NeXT, cc -E runs the code through the compiler's parser,
3257 # not just through cpp. "Syntax error" is here to catch this case.
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h. */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 #ifdef __STDC__
3265 # include <limits.h>
3266 #else
3267 # include <assert.h>
3268 #endif
3269 Syntax error
3270 _ACEOF
3271 if { (ac_try="$ac_cpp conftest.$ac_ext"
3272 case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275 esac
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } >/dev/null && {
3284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3285 test ! -s conftest.err
3286 }; then
3287 :
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 # Broken: fails on valid input.
3293 continue
3294 fi
3295
3296 rm -f conftest.err conftest.$ac_ext
3297
3298 # OK, works on sane cases. Now check whether nonexistent headers
3299 # can be detected and how.
3300 cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h. */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h. */
3306 #include <ac_nonexistent.h>
3307 _ACEOF
3308 if { (ac_try="$ac_cpp conftest.$ac_ext"
3309 case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315 ac_status=$?
3316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } >/dev/null && {
3321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 }; then
3324 # Broken: success on invalid input.
3325 continue
3326 else
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330 # Passes both tests.
3331 ac_preproc_ok=:
3332 break
3333 fi
3334
3335 rm -f conftest.err conftest.$ac_ext
3336
3337 done
3338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3339 rm -f conftest.err conftest.$ac_ext
3340 if $ac_preproc_ok; then
3341 :
3342 else
3343 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3344 See \`config.log' for more details." >&5
3345 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3346 See \`config.log' for more details." >&2;}
3347 { (exit 1); exit 1; }; }
3348 fi
3349
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356
3357 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3358 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3359 if test "${ac_cv_path_GREP+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 # Extract the first word of "grep ggrep" to use in msg output
3363 if test -z "$GREP"; then
3364 set dummy grep ggrep; ac_prog_name=$2
3365 if test "${ac_cv_path_GREP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368 ac_path_GREP_found=false
3369 # Loop through the user's path and test for each of PROGNAME-LIST
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_prog in grep ggrep; do
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3378 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3379 # Check for GNU ac_path_GREP and select it if it is found.
3380 # Check for GNU $ac_path_GREP
3381 case `"$ac_path_GREP" --version 2>&1` in
3382 *GNU*)
3383 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3384 *)
3385 ac_count=0
3386 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3387 while :
3388 do
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
3390 mv "conftest.tmp" "conftest.in"
3391 cp "conftest.in" "conftest.nl"
3392 echo 'GREP' >> "conftest.nl"
3393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3395 ac_count=`expr $ac_count + 1`
3396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3397 # Best one so far, save it but keep looking for a better one
3398 ac_cv_path_GREP="$ac_path_GREP"
3399 ac_path_GREP_max=$ac_count
3400 fi
3401 # 10*(2^10) chars as input seems more than enough
3402 test $ac_count -gt 10 && break
3403 done
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3405 esac
3406
3407
3408 $ac_path_GREP_found && break 3
3409 done
3410 done
3411
3412 done
3413 IFS=$as_save_IFS
3414
3415
3416 fi
3417
3418 GREP="$ac_cv_path_GREP"
3419 if test -z "$GREP"; then
3420 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3421 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3422 { (exit 1); exit 1; }; }
3423 fi
3424
3425 else
3426 ac_cv_path_GREP=$GREP
3427 fi
3428
3429
3430 fi
3431 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3432 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3433 GREP="$ac_cv_path_GREP"
3434
3435
3436 { echo "$as_me:$LINENO: checking for egrep" >&5
3437 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3438 if test "${ac_cv_path_EGREP+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3442 then ac_cv_path_EGREP="$GREP -E"
3443 else
3444 # Extract the first word of "egrep" to use in msg output
3445 if test -z "$EGREP"; then
3446 set dummy egrep; ac_prog_name=$2
3447 if test "${ac_cv_path_EGREP+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 ac_path_EGREP_found=false
3451 # Loop through the user's path and test for each of PROGNAME-LIST
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3454 do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_prog in egrep; do
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3460 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3461 # Check for GNU ac_path_EGREP and select it if it is found.
3462 # Check for GNU $ac_path_EGREP
3463 case `"$ac_path_EGREP" --version 2>&1` in
3464 *GNU*)
3465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3466 *)
3467 ac_count=0
3468 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3469 while :
3470 do
3471 cat "conftest.in" "conftest.in" >"conftest.tmp"
3472 mv "conftest.tmp" "conftest.in"
3473 cp "conftest.in" "conftest.nl"
3474 echo 'EGREP' >> "conftest.nl"
3475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3477 ac_count=`expr $ac_count + 1`
3478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3479 # Best one so far, save it but keep looking for a better one
3480 ac_cv_path_EGREP="$ac_path_EGREP"
3481 ac_path_EGREP_max=$ac_count
3482 fi
3483 # 10*(2^10) chars as input seems more than enough
3484 test $ac_count -gt 10 && break
3485 done
3486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3487 esac
3488
3489
3490 $ac_path_EGREP_found && break 3
3491 done
3492 done
3493
3494 done
3495 IFS=$as_save_IFS
3496
3497
3498 fi
3499
3500 EGREP="$ac_cv_path_EGREP"
3501 if test -z "$EGREP"; then
3502 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3503 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3504 { (exit 1); exit 1; }; }
3505 fi
3506
3507 else
3508 ac_cv_path_EGREP=$EGREP
3509 fi
3510
3511
3512 fi
3513 fi
3514 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3515 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3516 EGREP="$ac_cv_path_EGREP"
3517
3518
3519 if test $ac_cv_c_compiler_gnu = yes; then
3520 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3521 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 ac_pattern="Autoconf.*'x'"
3526 cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h. */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3532 #include <sgtty.h>
3533 Autoconf TIOCGETP
3534 _ACEOF
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3537 ac_cv_prog_gcc_traditional=yes
3538 else
3539 ac_cv_prog_gcc_traditional=no
3540 fi
3541 rm -f conftest*
3542
3543
3544 if test $ac_cv_prog_gcc_traditional = no; then
3545 cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include <termio.h>
3552 Autoconf TCGETA
3553 _ACEOF
3554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3555 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3556 ac_cv_prog_gcc_traditional=yes
3557 fi
3558 rm -f conftest*
3559
3560 fi
3561 fi
3562 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3563 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3564 if test $ac_cv_prog_gcc_traditional = yes; then
3565 CC="$CC -traditional"
3566 fi
3567 fi
3568
3569 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3570 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3571 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3572 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574 else
3575 cat >conftest.make <<\_ACEOF
3576 SHELL = /bin/sh
3577 all:
3578 @echo '@@@%%%=$(MAKE)=@@@%%%'
3579 _ACEOF
3580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3582 *@@@%%%=?*=@@@%%%*)
3583 eval ac_cv_prog_make_${ac_make}_set=yes;;
3584 *)
3585 eval ac_cv_prog_make_${ac_make}_set=no;;
3586 esac
3587 rm -f conftest.make
3588 fi
3589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3590 { echo "$as_me:$LINENO: result: yes" >&5
3591 echo "${ECHO_T}yes" >&6; }
3592 SET_MAKE=
3593 else
3594 { echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6; }
3596 SET_MAKE="MAKE=${MAKE-make}"
3597 fi
3598
3599 ac_aux_dir=
3600 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3601 if test -f "$ac_dir/install-sh"; then
3602 ac_aux_dir=$ac_dir
3603 ac_install_sh="$ac_aux_dir/install-sh -c"
3604 break
3605 elif test -f "$ac_dir/install.sh"; then
3606 ac_aux_dir=$ac_dir
3607 ac_install_sh="$ac_aux_dir/install.sh -c"
3608 break
3609 elif test -f "$ac_dir/shtool"; then
3610 ac_aux_dir=$ac_dir
3611 ac_install_sh="$ac_aux_dir/shtool install -c"
3612 break
3613 fi
3614 done
3615 if test -z "$ac_aux_dir"; then
3616 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3617 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3618 { (exit 1); exit 1; }; }
3619 fi
3620
3621 # These three variables are undocumented and unsupported,
3622 # and are intended to be withdrawn in a future Autoconf release.
3623 # They can cause serious problems if a builder's source tree is in a directory
3624 # whose full name contains unusual characters.
3625 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3626 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3627 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3628
3629
3630 # Find a good install program. We prefer a C program (faster),
3631 # so one script is as good as another. But avoid the broken or
3632 # incompatible versions:
3633 # SysV /etc/install, /usr/sbin/install
3634 # SunOS /usr/etc/install
3635 # IRIX /sbin/install
3636 # AIX /bin/install
3637 # AmigaOS /C/install, which installs bootblocks on floppy discs
3638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3641 # OS/2's system install, which has a completely different semantic
3642 # ./install, which can be erroneously created by make from ./install.sh.
3643 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3644 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3645 if test -z "$INSTALL"; then
3646 if test "${ac_cv_path_install+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 # Account for people who put trailing slashes in PATH elements.
3655 case $as_dir/ in
3656 ./ | .// | /cC/* | \
3657 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3658 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3659 /usr/ucb/* ) ;;
3660 *)
3661 # OSF1 and SCO ODT 3.0 have their own names for install.
3662 # Don't use installbsd from OSF since it installs stuff as root
3663 # by default.
3664 for ac_prog in ginstall scoinst install; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3667 if test $ac_prog = install &&
3668 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3669 # AIX install. It has an incompatible calling convention.
3670 :
3671 elif test $ac_prog = install &&
3672 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3673 # program-specific install script used by HP pwplus--don't use.
3674 :
3675 else
3676 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3677 break 3
3678 fi
3679 fi
3680 done
3681 done
3682 ;;
3683 esac
3684 done
3685 IFS=$as_save_IFS
3686
3687
3688 fi
3689 if test "${ac_cv_path_install+set}" = set; then
3690 INSTALL=$ac_cv_path_install
3691 else
3692 # As a last resort, use the slow shell script. Don't cache a
3693 # value for INSTALL within a source directory, because that will
3694 # break other packages using the cache if that directory is
3695 # removed, or if the value is a relative name.
3696 INSTALL=$ac_install_sh
3697 fi
3698 fi
3699 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3700 echo "${ECHO_T}$INSTALL" >&6; }
3701
3702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3703 # It thinks the first close brace ends the variable substitution.
3704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3705
3706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3707
3708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3709
3710 # Extract the first word of "rm", so it can be a program name with args.
3711 set dummy rm; ac_word=$2
3712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3714 if test "${ac_cv_path_RM+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 case $RM in
3718 [\\/]* | ?:[\\/]*)
3719 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3720 ;;
3721 *)
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3732 fi
3733 done
3734 done
3735 IFS=$as_save_IFS
3736
3737 ;;
3738 esac
3739 fi
3740 RM=$ac_cv_path_RM
3741 if test -n "$RM"; then
3742 { echo "$as_me:$LINENO: result: $RM" >&5
3743 echo "${ECHO_T}$RM" >&6; }
3744 else
3745 { echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6; }
3747 fi
3748
3749
3750 # Extract the first word of "cp", so it can be a program name with args.
3751 set dummy cp; ac_word=$2
3752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3754 if test "${ac_cv_path_CP+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 case $CP in
3758 [\\/]* | ?:[\\/]*)
3759 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3760 ;;
3761 *)
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 ;;
3778 esac
3779 fi
3780 CP=$ac_cv_path_CP
3781 if test -n "$CP"; then
3782 { echo "$as_me:$LINENO: result: $CP" >&5
3783 echo "${ECHO_T}$CP" >&6; }
3784 else
3785 { echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6; }
3787 fi
3788
3789
3790 # Extract the first word of "mv", so it can be a program name with args.
3791 set dummy mv; ac_word=$2
3792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3794 if test "${ac_cv_path_MV+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 case $MV in
3798 [\\/]* | ?:[\\/]*)
3799 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3800 ;;
3801 *)
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813 done
3814 done
3815 IFS=$as_save_IFS
3816
3817 ;;
3818 esac
3819 fi
3820 MV=$ac_cv_path_MV
3821 if test -n "$MV"; then
3822 { echo "$as_me:$LINENO: result: $MV" >&5
3823 echo "${ECHO_T}$MV" >&6; }
3824 else
3825 { echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6; }
3827 fi
3828
3829
3830 # Extract the first word of "ln", so it can be a program name with args.
3831 set dummy ln; ac_word=$2
3832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3834 if test "${ac_cv_path_LN+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 case $LN in
3838 [\\/]* | ?:[\\/]*)
3839 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3840 ;;
3841 *)
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 ;;
3858 esac
3859 fi
3860 LN=$ac_cv_path_LN
3861 if test -n "$LN"; then
3862 { echo "$as_me:$LINENO: result: $LN" >&5
3863 echo "${ECHO_T}$LN" >&6; }
3864 else
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3867 fi
3868
3869
3870 # Extract the first word of "sed", so it can be a program name with args.
3871 set dummy sed; ac_word=$2
3872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3874 if test "${ac_cv_path_SED+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 case $SED in
3878 [\\/]* | ?:[\\/]*)
3879 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3880 ;;
3881 *)
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 ;;
3898 esac
3899 fi
3900 SED=$ac_cv_path_SED
3901 if test -n "$SED"; then
3902 { echo "$as_me:$LINENO: result: $SED" >&5
3903 echo "${ECHO_T}$SED" >&6; }
3904 else
3905 { echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6; }
3907 fi
3908
3909
3910 # Extract the first word of "ar", so it can be a program name with args.
3911 set dummy ar; ac_word=$2
3912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3914 if test "${ac_cv_path_AR+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 case $AR in
3918 [\\/]* | ?:[\\/]*)
3919 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3920 ;;
3921 *)
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3936
3937 ;;
3938 esac
3939 fi
3940 AR=$ac_cv_path_AR
3941 if test -n "$AR"; then
3942 { echo "$as_me:$LINENO: result: $AR" >&5
3943 echo "${ECHO_T}$AR" >&6; }
3944 else
3945 { echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6; }
3947 fi
3948
3949
3950 # Extract the first word of "ld", so it can be a program name with args.
3951 set dummy ld; ac_word=$2
3952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_LD+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 case $LD in
3958 [\\/]* | ?:[\\/]*)
3959 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3960 ;;
3961 *)
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3969 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973 done
3974 done
3975 IFS=$as_save_IFS
3976
3977 ;;
3978 esac
3979 fi
3980 LD=$ac_cv_path_LD
3981 if test -n "$LD"; then
3982 { echo "$as_me:$LINENO: result: $LD" >&5
3983 echo "${ECHO_T}$LD" >&6; }
3984 else
3985 { echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6; }
3987 fi
3988
3989
3990 # Extract the first word of "test", so it can be a program name with args.
3991 set dummy test; ac_word=$2
3992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3994 if test "${ac_cv_path_TEST+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 case $TEST in
3998 [\\/]* | ?:[\\/]*)
3999 ac_cv_path_TEST="$TEST" # Let the user override the test with a path.
4000 ;;
4001 *)
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009 ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext"
4010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test"
4018 ;;
4019 esac
4020 fi
4021 TEST=$ac_cv_path_TEST
4022 if test -n "$TEST"; then
4023 { echo "$as_me:$LINENO: result: $TEST" >&5
4024 echo "${ECHO_T}$TEST" >&6; }
4025 else
4026 { echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6; }
4028 fi
4029
4030
4031
4032 if test "$libexecdir" = '${exec_prefix}/libexec' &&
4033 test "$localstatedir" = '${prefix}/var'; then
4034 libexecdir='${bindir}'
4035 localstatedir='${prefix}'
4036 fi
4037
4038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4040 if test "${ac_cv_header_stdc+set}" = set; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049 #include <stdlib.h>
4050 #include <stdarg.h>
4051 #include <string.h>
4052 #include <float.h>
4053
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4064 case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067 esac
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4070 ac_status=$?
4071 grep -v '^ *+' conftest.er1 >conftest.err
4072 rm -f conftest.er1
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } && {
4076 test -z "$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4078 } && test -s conftest.$ac_objext; then
4079 ac_cv_header_stdc=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 ac_cv_header_stdc=no
4085 fi
4086
4087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088
4089 if test $ac_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <string.h>
4098
4099 _ACEOF
4100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4101 $EGREP "memchr" >/dev/null 2>&1; then
4102 :
4103 else
4104 ac_cv_header_stdc=no
4105 fi
4106 rm -f conftest*
4107
4108 fi
4109
4110 if test $ac_cv_header_stdc = yes; then
4111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4112 cat >conftest.$ac_ext <<_ACEOF
4113 /* confdefs.h. */
4114 _ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <stdlib.h>
4119
4120 _ACEOF
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "free" >/dev/null 2>&1; then
4123 :
4124 else
4125 ac_cv_header_stdc=no
4126 fi
4127 rm -f conftest*
4128
4129 fi
4130
4131 if test $ac_cv_header_stdc = yes; then
4132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4133 if test "$cross_compiling" = yes; then
4134 :
4135 else
4136 cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h. */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <ctype.h>
4143 #include <stdlib.h>
4144 #if ((' ' & 0x0FF) == 0x020)
4145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4147 #else
4148 # define ISLOWER(c) \
4149 (('a' <= (c) && (c) <= 'i') \
4150 || ('j' <= (c) && (c) <= 'r') \
4151 || ('s' <= (c) && (c) <= 'z'))
4152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4153 #endif
4154
4155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4156 int
4157 main ()
4158 {
4159 int i;
4160 for (i = 0; i < 256; i++)
4161 if (XOR (islower (i), ISLOWER (i))
4162 || toupper (i) != TOUPPER (i))
4163 return 2;
4164 return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest$ac_exeext
4168 if { (ac_try="$ac_link"
4169 case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_link") 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4178 { (case "(($ac_try" in
4179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180 *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183 (eval "$ac_try") 2>&5
4184 ac_status=$?
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 :
4188 else
4189 echo "$as_me: program exited with status $ac_status" >&5
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4192
4193 ( exit $ac_status )
4194 ac_cv_header_stdc=no
4195 fi
4196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4197 fi
4198
4199
4200 fi
4201 fi
4202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4204 if test $ac_cv_header_stdc = yes; then
4205
4206 cat >>confdefs.h <<\_ACEOF
4207 #define STDC_HEADERS 1
4208 _ACEOF
4209
4210 fi
4211
4212
4213 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4224 inttypes.h stdint.h unistd.h
4225 do
4226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233 /* confdefs.h. */
4234 _ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4238 $ac_includes_default
4239
4240 #include <$ac_header>
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && {
4256 test -z "$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 } && test -s conftest.$ac_objext; then
4259 eval "$as_ac_Header=yes"
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 eval "$as_ac_Header=no"
4265 fi
4266
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268 fi
4269 ac_res=`eval echo '${'$as_ac_Header'}'`
4270 { echo "$as_me:$LINENO: result: $ac_res" >&5
4271 echo "${ECHO_T}$ac_res" >&6; }
4272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4273 cat >>confdefs.h <<_ACEOF
4274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4275 _ACEOF
4276
4277 fi
4278
4279 done
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h
4295 do
4296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 fi
4303 ac_res=`eval echo '${'$as_ac_Header'}'`
4304 { echo "$as_me:$LINENO: result: $ac_res" >&5
4305 echo "${ECHO_T}$ac_res" >&6; }
4306 else
4307 # Is the header compilable?
4308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316 $ac_includes_default
4317 #include <$ac_header>
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (ac_try="$ac_compile"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_compile") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest.$ac_objext; then
4336 ac_header_compiler=yes
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ac_header_compiler=no
4342 fi
4343
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4346 echo "${ECHO_T}$ac_header_compiler" >&6; }
4347
4348 # Is the header present?
4349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <$ac_header>
4358 _ACEOF
4359 if { (ac_try="$ac_cpp conftest.$ac_ext"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } >/dev/null && {
4372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 }; then
4375 ac_header_preproc=yes
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 ac_header_preproc=no
4381 fi
4382
4383 rm -f conftest.err conftest.$ac_ext
4384 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4385 echo "${ECHO_T}$ac_header_preproc" >&6; }
4386
4387 # So? What about this header?
4388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4389 yes:no: )
4390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4394 ac_header_preproc=yes
4395 ;;
4396 no:yes:* )
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4409
4410 ;;
4411 esac
4412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 eval "$as_ac_Header=\$ac_header_preproc"
4418 fi
4419 ac_res=`eval echo '${'$as_ac_Header'}'`
4420 { echo "$as_me:$LINENO: result: $ac_res" >&5
4421 echo "${ECHO_T}$ac_res" >&6; }
4422
4423 fi
4424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4425 cat >>confdefs.h <<_ACEOF
4426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4427 _ACEOF
4428
4429 fi
4430
4431 done
4432
4433
4434
4435 { echo "$as_me:$LINENO: checking for library containing socket" >&5
4436 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
4437 if test "${ac_cv_search_socket+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 else
4440 ac_func_search_save_LIBS=$LIBS
4441 cat >conftest.$ac_ext <<_ACEOF
4442 /* confdefs.h. */
4443 _ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447
4448 /* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 char socket ();
4455 int
4456 main ()
4457 {
4458 return socket ();
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 for ac_lib in '' socket; do
4464 if test -z "$ac_lib"; then
4465 ac_res="none required"
4466 else
4467 ac_res=-l$ac_lib
4468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4469 fi
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4472 case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_link") 2>conftest.er1
4478 ac_status=$?
4479 grep -v '^ *+' conftest.er1 >conftest.err
4480 rm -f conftest.er1
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_c_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest$ac_exeext &&
4487 $as_test_x conftest$ac_exeext; then
4488 ac_cv_search_socket=$ac_res
4489 else
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497 conftest$ac_exeext
4498 if test "${ac_cv_search_socket+set}" = set; then
4499 break
4500 fi
4501 done
4502 if test "${ac_cv_search_socket+set}" = set; then
4503 :
4504 else
4505 ac_cv_search_socket=no
4506 fi
4507 rm conftest.$ac_ext
4508 LIBS=$ac_func_search_save_LIBS
4509 fi
4510 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4511 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
4512 ac_res=$ac_cv_search_socket
4513 if test "$ac_res" != no; then
4514 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4515
4516 else
4517 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
4518 echo "$as_me: error: You have no socket()! Aborting." >&2;}
4519 { (exit 1); exit 1; }; }
4520 fi
4521
4522
4523 { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
4524 echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
4525 if test "${ac_cv_search_inet_aton+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 ac_func_search_save_LIBS=$LIBS
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char inet_aton ();
4543 int
4544 main ()
4545 {
4546 return inet_aton ();
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 for ac_lib in '' resolv; do
4552 if test -z "$ac_lib"; then
4553 ac_res="none required"
4554 else
4555 ac_res=-l$ac_lib
4556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4557 fi
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (ac_try="$ac_link"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_link") 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } && {
4572 test -z "$ac_c_werror_flag" ||
4573 test ! -s conftest.err
4574 } && test -s conftest$ac_exeext &&
4575 $as_test_x conftest$ac_exeext; then
4576 ac_cv_search_inet_aton=$ac_res
4577 else
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581
4582 fi
4583
4584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4585 conftest$ac_exeext
4586 if test "${ac_cv_search_inet_aton+set}" = set; then
4587 break
4588 fi
4589 done
4590 if test "${ac_cv_search_inet_aton+set}" = set; then
4591 :
4592 else
4593 ac_cv_search_inet_aton=no
4594 fi
4595 rm conftest.$ac_ext
4596 LIBS=$ac_func_search_save_LIBS
4597 fi
4598 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
4599 echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
4600 ac_res=$ac_cv_search_inet_aton
4601 if test "$ac_res" != no; then
4602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4603
4604 else
4605 inet_misc=1;
4606 cat >>confdefs.h <<\_ACEOF
4607 #define NO_INET_ATON 1
4608 _ACEOF
4609
4610 fi
4611
4612 { echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
4613 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6; }
4614 if test "${ac_cv_search_inet_pton+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617 ac_func_search_save_LIBS=$LIBS
4618 cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h. */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h. */
4624
4625 /* Override any GCC internal prototype to avoid an error.
4626 Use char because int might match the return type of a GCC
4627 builtin and then its argument prototype would still apply. */
4628 #ifdef __cplusplus
4629 extern "C"
4630 #endif
4631 char inet_pton ();
4632 int
4633 main ()
4634 {
4635 return inet_pton ();
4636 ;
4637 return 0;
4638 }
4639 _ACEOF
4640 for ac_lib in '' resolv nsl; do
4641 if test -z "$ac_lib"; then
4642 ac_res="none required"
4643 else
4644 ac_res=-l$ac_lib
4645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4646 fi
4647 rm -f conftest.$ac_objext conftest$ac_exeext
4648 if { (ac_try="$ac_link"
4649 case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652 esac
4653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_link") 2>conftest.er1
4655 ac_status=$?
4656 grep -v '^ *+' conftest.er1 >conftest.err
4657 rm -f conftest.er1
4658 cat conftest.err >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); } && {
4661 test -z "$ac_c_werror_flag" ||
4662 test ! -s conftest.err
4663 } && test -s conftest$ac_exeext &&
4664 $as_test_x conftest$ac_exeext; then
4665 ac_cv_search_inet_pton=$ac_res
4666 else
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670
4671 fi
4672
4673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4674 conftest$ac_exeext
4675 if test "${ac_cv_search_inet_pton+set}" = set; then
4676 break
4677 fi
4678 done
4679 if test "${ac_cv_search_inet_pton+set}" = set; then
4680 :
4681 else
4682 ac_cv_search_inet_pton=no
4683 fi
4684 rm conftest.$ac_ext
4685 LIBS=$ac_func_search_save_LIBS
4686 fi
4687 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
4688 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6; }
4689 ac_res=$ac_cv_search_inet_pton
4690 if test "$ac_res" != no; then
4691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4692
4693 else
4694 inet_misc=1;
4695 cat >>confdefs.h <<\_ACEOF
4696 #define NO_INET_PTON 1
4697 _ACEOF
4698
4699 fi
4700
4701 { echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
4702 echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; }
4703 if test "${ac_cv_search_inet_ntop+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 ac_func_search_save_LIBS=$LIBS
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713
4714 /* Override any GCC internal prototype to avoid an error.
4715 Use char because int might match the return type of a GCC
4716 builtin and then its argument prototype would still apply. */
4717 #ifdef __cplusplus
4718 extern "C"
4719 #endif
4720 char inet_ntop ();
4721 int
4722 main ()
4723 {
4724 return inet_ntop ();
4725 ;
4726 return 0;
4727 }
4728 _ACEOF
4729 for ac_lib in '' resolv nsl; do
4730 if test -z "$ac_lib"; then
4731 ac_res="none required"
4732 else
4733 ac_res=-l$ac_lib
4734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4735 fi
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (ac_try="$ac_link"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_link") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest$ac_exeext &&
4753 $as_test_x conftest$ac_exeext; then
4754 ac_cv_search_inet_ntop=$ac_res
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759
4760 fi
4761
4762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4763 conftest$ac_exeext
4764 if test "${ac_cv_search_inet_ntop+set}" = set; then
4765 break
4766 fi
4767 done
4768 if test "${ac_cv_search_inet_ntop+set}" = set; then
4769 :
4770 else
4771 ac_cv_search_inet_ntop=no
4772 fi
4773 rm conftest.$ac_ext
4774 LIBS=$ac_func_search_save_LIBS
4775 fi
4776 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
4777 echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; }
4778 ac_res=$ac_cv_search_inet_ntop
4779 if test "$ac_res" != no; then
4780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4781
4782 else
4783 inet_misc=1;
4784 cat >>confdefs.h <<\_ACEOF
4785 #define NO_INET_NTOP 1
4786 _ACEOF
4787
4788 fi
4789
4790
4791 if test "$inet_misc" = 1; then
4792 INET_MISC=inet_misc.c
4793
4794 fi
4795
4796 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
4797 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
4798 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #include <sys/types.h>
4808 #include <sys/socket.h>
4809
4810
4811 typedef struct sockaddr_storage ac__type_new_;
4812 int
4813 main ()
4814 {
4815 if ((ac__type_new_ *) 0)
4816 return 0;
4817 if (sizeof (ac__type_new_))
4818 return 0;
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 rm -f conftest.$ac_objext
4824 if { (ac_try="$ac_compile"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.$ac_objext; then
4840 ac_cv_type_struct_sockaddr_storage=yes
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 ac_cv_type_struct_sockaddr_storage=no
4846 fi
4847
4848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 fi
4850 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
4851 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
4852 if test $ac_cv_type_struct_sockaddr_storage = yes; then
4853
4854 cat >>confdefs.h <<_ACEOF
4855 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
4856 _ACEOF
4857
4858
4859 fi
4860
4861
4862 if test "$ac_cv_type_struct_sockaddr_storage" = no; then
4863 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
4864 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
4865 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 $ac_includes_default
4875 int
4876 main ()
4877 {
4878 static struct sockaddr_in ac_aggr;
4879 if (ac_aggr.sin_len)
4880 return 0;
4881 ;
4882 return 0;
4883 }
4884 _ACEOF
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4887 case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890 esac
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 ac_cv_member_struct_sockaddr_in_sin_len=yes
4903 else
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 cat >conftest.$ac_ext <<_ACEOF
4908 /* confdefs.h. */
4909 _ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4914 int
4915 main ()
4916 {
4917 static struct sockaddr_in ac_aggr;
4918 if (sizeof ac_aggr.sin_len)
4919 return 0;
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 ac_cv_member_struct_sockaddr_in_sin_len=yes
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4945
4946 ac_cv_member_struct_sockaddr_in_sin_len=no
4947 fi
4948
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 fi
4951
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
4955 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
4956 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
4957
4958 cat >>confdefs.h <<\_ACEOF
4959 #define SOCKADDR_IN_HAS_LEN 1
4960 _ACEOF
4961
4962 fi
4963
4964 fi
4965
4966 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
4967 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
4968 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 cat >conftest.$ac_ext <<_ACEOF
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4977 #include <netdb.h>
4978
4979 typedef struct addrinfo ac__type_new_;
4980 int
4981 main ()
4982 {
4983 if ((ac__type_new_ *) 0)
4984 return 0;
4985 if (sizeof (ac__type_new_))
4986 return 0;
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext
4992 if { (ac_try="$ac_compile"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_compile") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5008 ac_cv_type_struct_addrinfo=yes
5009 else
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 ac_cv_type_struct_addrinfo=no
5014 fi
5015
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
5019 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
5020 if test $ac_cv_type_struct_addrinfo = yes; then
5021
5022 cat >>confdefs.h <<_ACEOF
5023 #define HAVE_STRUCT_ADDRINFO 1
5024 _ACEOF
5025
5026
5027 fi
5028
5029
5030 { echo "$as_me:$LINENO: checking for socklen_t" >&5
5031 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5032 if test "${ac_cv_type_socklen_t+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 #include <sys/types.h>
5042 #include <sys/socket.h>
5043
5044 typedef socklen_t ac__type_new_;
5045 int
5046 main ()
5047 {
5048 if ((ac__type_new_ *) 0)
5049 return 0;
5050 if (sizeof (ac__type_new_))
5051 return 0;
5052 ;
5053 return 0;
5054 }
5055 _ACEOF
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5058 case "(($ac_try" in
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5061 esac
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5073 ac_cv_type_socklen_t=yes
5074 else
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 ac_cv_type_socklen_t=no
5079 fi
5080
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
5084 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
5085 if test $ac_cv_type_socklen_t = yes; then
5086 :
5087 else
5088
5089 cat >>confdefs.h <<\_ACEOF
5090 #define socklen_t unsigned int
5091 _ACEOF
5092
5093 fi
5094
5095
5096 if test -z "$Tru"; then
5097
5098 { echo "$as_me:$LINENO: checking for broken glibc with __ss_family" >&5
5099 echo $ECHO_N "checking for broken glibc with __ss_family... $ECHO_C" >&6; }
5100 cat >conftest.$ac_ext <<_ACEOF
5101 /* confdefs.h. */
5102 _ACEOF
5103 cat confdefs.h >>conftest.$ac_ext
5104 cat >>conftest.$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <sys/types.h>
5107 #include <sys/socket.h>
5108 int
5109 main ()
5110 {
5111 struct sockaddr_storage s; s.__ss_family = AF_INET;
5112 ;
5113 return 0;
5114 }
5115 _ACEOF
5116 rm -f conftest.$ac_objext
5117 if { (ac_try="$ac_compile"
5118 case "(($ac_try" in
5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5120 *) ac_try_echo=$ac_try;;
5121 esac
5122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5123 (eval "$ac_compile") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } && {
5130 test -z "$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 } && test -s conftest.$ac_objext; then
5133
5134 { echo "$as_me:$LINENO: result: yes" >&5
5135 echo "${ECHO_T}yes" >&6; }
5136
5137 cat >>confdefs.h <<\_ACEOF
5138 #define ss_family __ss_family
5139 _ACEOF
5140
5141
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5148 fi
5149
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151
5152 fi
5153
5154 { echo "$as_me:$LINENO: checking for core IPv6 support" >&5
5155 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
5156
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163 #define IN_AUTOCONF
5164 #include "include/stdinc.h"
5165 int
5166 main ()
5167 {
5168 struct sockaddr_in6 s;
5169 struct sockaddr_storage t;
5170 s.sin6_family = 0;
5171
5172 ;
5173 return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5178 case "(($ac_try" in
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5184 ac_status=$?
5185 grep -v '^ *+' conftest.er1 >conftest.err
5186 rm -f conftest.er1
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5193
5194 if test "$CYGWIN" = "yes"; then
5195 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
5196 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
5197 have_v6=no
5198 else
5199 have_v6=yes
5200
5201 cat >>confdefs.h <<\_ACEOF
5202 #define IPV6 1
5203 _ACEOF
5204
5205 { echo "$as_me:$LINENO: result: yes" >&5
5206 echo "${ECHO_T}yes" >&6; }
5207 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
5208 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215 #define IN_AUTOCONF
5216 #include "include/stdinc.h"
5217 int
5218 main ()
5219 {
5220 struct in6_addr a = in6addr_any;
5221
5222 ;
5223 return 0;
5224 }
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (ac_try="$ac_compile"
5228 case "(($ac_try" in
5229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230 *) ac_try_echo=$ac_try;;
5231 esac
5232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5233 (eval "$ac_compile") 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } && {
5240 test -z "$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 } && test -s conftest.$ac_objext; then
5243 { echo "$as_me:$LINENO: result: yes" >&5
5244 echo "${ECHO_T}yes" >&6; }
5245 else
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252
5253 cat >>confdefs.h <<\_ACEOF
5254 #define NO_IN6ADDR_ANY 1
5255 _ACEOF
5256
5257 inet_misc=1
5258
5259
5260 fi
5261
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5271 have_v6="no"
5272 fi
5273
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275
5276 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
5277 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
5278 if test "${ac_cv_search_crypt+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 ac_func_search_save_LIBS=$LIBS
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288
5289 /* Override any GCC internal prototype to avoid an error.
5290 Use char because int might match the return type of a GCC
5291 builtin and then its argument prototype would still apply. */
5292 #ifdef __cplusplus
5293 extern "C"
5294 #endif
5295 char crypt ();
5296 int
5297 main ()
5298 {
5299 return crypt ();
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 for ac_lib in '' crypt descrypt; do
5305 if test -z "$ac_lib"; then
5306 ac_res="none required"
5307 else
5308 ac_res=-l$ac_lib
5309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5310 fi
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (ac_try="$ac_link"
5313 case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316 esac
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_link") 2>conftest.er1
5319 ac_status=$?
5320 grep -v '^ *+' conftest.er1 >conftest.err
5321 rm -f conftest.er1
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest$ac_exeext &&
5328 $as_test_x conftest$ac_exeext; then
5329 ac_cv_search_crypt=$ac_res
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334
5335 fi
5336
5337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5338 conftest$ac_exeext
5339 if test "${ac_cv_search_crypt+set}" = set; then
5340 break
5341 fi
5342 done
5343 if test "${ac_cv_search_crypt+set}" = set; then
5344 :
5345 else
5346 ac_cv_search_crypt=no
5347 fi
5348 rm conftest.$ac_ext
5349 LIBS=$ac_func_search_save_LIBS
5350 fi
5351 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
5352 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
5353 ac_res=$ac_cv_search_crypt
5354 if test "$ac_res" != no; then
5355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5356
5357 fi
5358
5359
5360 CRYPT_LIB=$ac_cv_search_crypt
5361
5362 if test "$CRYPT_LIB" = "none required"; then
5363 unset CRYPT_LIB
5364 elif test "$CRYPT_LIB" = no; then
5365 CRYPT_C=crypt.c
5366 unset CRYPT_LIB
5367 fi
5368
5369
5370
5371
5372 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
5373 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
5374 if test "${gcc_cv_header_string+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #include <string.h>
5380 #include <strings.h>
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_c_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 gcc_cv_header_string=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 gcc_cv_header_string=no
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408
5409 fi
5410 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
5411 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
5412
5413 if test "$gcc_cv_header_string" = "yes"; then
5414
5415 cat >>confdefs.h <<\_ACEOF
5416 #define STRING_WITH_STRINGS 1
5417 _ACEOF
5418
5419 fi
5420
5421 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5422 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
5423 if test "${ac_cv_c_bigendian+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 # See if sys/param.h defines the BYTE_ORDER macro.
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 #include <sys/types.h>
5434 #include <sys/param.h>
5435
5436 int
5437 main ()
5438 {
5439 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
5440 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
5441 bogus endian macros
5442 #endif
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 rm -f conftest.$ac_objext
5449 if { (ac_try="$ac_compile"
5450 case "(($ac_try" in
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5453 esac
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_compile") 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && {
5462 test -z "$ac_c_werror_flag" ||
5463 test ! -s conftest.err
5464 } && test -s conftest.$ac_objext; then
5465 # It does; now see whether it defined to BIG_ENDIAN or not.
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 #include <sys/types.h>
5473 #include <sys/param.h>
5474
5475 int
5476 main ()
5477 {
5478 #if BYTE_ORDER != BIG_ENDIAN
5479 not big endian
5480 #endif
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext
5487 if { (ac_try="$ac_compile"
5488 case "(($ac_try" in
5489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5491 esac
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5494 ac_status=$?
5495 grep -v '^ *+' conftest.er1 >conftest.err
5496 rm -f conftest.er1
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_c_bigendian=yes
5504 else
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_cv_c_bigendian=no
5509 fi
5510
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 else
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 # It does not; compile a test program.
5517 if test "$cross_compiling" = yes; then
5518 # try to guess the endianness by grepping values into an object file
5519 ac_cv_c_bigendian=unknown
5520 cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5527 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5528 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5529 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5530 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5531 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5532 int
5533 main ()
5534 {
5535 _ascii (); _ebcdic ();
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (ac_try="$ac_compile"
5542 case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545 esac
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_compile") 2>conftest.er1
5548 ac_status=$?
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && {
5554 test -z "$ac_c_werror_flag" ||
5555 test ! -s conftest.err
5556 } && test -s conftest.$ac_objext; then
5557 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5558 ac_cv_c_bigendian=yes
5559 fi
5560 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5561 if test "$ac_cv_c_bigendian" = unknown; then
5562 ac_cv_c_bigendian=no
5563 else
5564 # finding both strings is unlikely to happen, but who knows?
5565 ac_cv_c_bigendian=unknown
5566 fi
5567 fi
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572
5573 fi
5574
5575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 else
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 int
5585 main ()
5586 {
5587
5588 /* Are we little or big endian? From Harbison&Steele. */
5589 union
5590 {
5591 long int l;
5592 char c[sizeof (long int)];
5593 } u;
5594 u.l = 1;
5595 return u.c[sizeof (long int) - 1] == 1;
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest$ac_exeext
5602 if { (ac_try="$ac_link"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_link") 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5612 { (case "(($ac_try" in
5613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614 *) ac_try_echo=$ac_try;;
5615 esac
5616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5617 (eval "$ac_try") 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 ac_cv_c_bigendian=no
5622 else
5623 echo "$as_me: program exited with status $ac_status" >&5
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ( exit $ac_status )
5628 ac_cv_c_bigendian=yes
5629 fi
5630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5631 fi
5632
5633
5634 fi
5635
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637 fi
5638 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5639 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5640 case $ac_cv_c_bigendian in
5641 yes)
5642
5643 cat >>confdefs.h <<\_ACEOF
5644 #define WORDS_BIGENDIAN 1
5645 _ACEOF
5646 ;;
5647 no)
5648 ;;
5649 *)
5650 { { echo "$as_me:$LINENO: error: unknown endianness
5651 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5652 echo "$as_me: error: unknown endianness
5653 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5654 { (exit 1); exit 1; }; } ;;
5655 esac
5656
5657
5658 if test "${ac_cv_header_stdarg_h+set}" = set; then
5659 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
5660 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
5661 if test "${ac_cv_header_stdarg_h+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 fi
5664 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5665 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
5666 else
5667 # Is the header compilable?
5668 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
5669 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
5670 cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h. */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h. */
5676 $ac_includes_default
5677 #include <stdarg.h>
5678 _ACEOF
5679 rm -f conftest.$ac_objext
5680 if { (ac_try="$ac_compile"
5681 case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_header_compiler=yes
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701 ac_header_compiler=no
5702 fi
5703
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5706 echo "${ECHO_T}$ac_header_compiler" >&6; }
5707
5708 # Is the header present?
5709 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
5710 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <stdarg.h>
5718 _ACEOF
5719 if { (ac_try="$ac_cpp conftest.$ac_ext"
5720 case "(($ac_try" in
5721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5723 esac
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } >/dev/null && {
5732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 }; then
5735 ac_header_preproc=yes
5736 else
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740 ac_header_preproc=no
5741 fi
5742
5743 rm -f conftest.err conftest.$ac_ext
5744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5745 echo "${ECHO_T}$ac_header_preproc" >&6; }
5746
5747 # So? What about this header?
5748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5749 yes:no: )
5750 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
5751 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5752 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
5753 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
5754 ac_header_preproc=yes
5755 ;;
5756 no:yes:* )
5757 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
5758 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
5759 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
5760 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
5761 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
5762 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
5763 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
5764 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
5766 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
5767 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
5768 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
5769
5770 ;;
5771 esac
5772 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
5773 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
5774 if test "${ac_cv_header_stdarg_h+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777 ac_cv_header_stdarg_h=$ac_header_preproc
5778 fi
5779 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
5780 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
5781
5782 fi
5783 if test $ac_cv_header_stdarg_h = yes; then
5784 :
5785 else
5786 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&5
5787 echo "$as_me: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&2;}
5788 { (exit 1); exit 1; }; }
5789 fi
5790
5791
5792
5793
5794 if test "$ac_cv_c_compiler_gnu" = yes; then
5795
5796 { echo "$as_me:$LINENO: checking for strlcpy" >&5
5797 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
5798 save_CFLAGS=$CFLAGS
5799 CFLAGS="$CFLAGS -Wimplicit -Werror"
5800
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h. */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h. */
5807 #include <string.h>
5808 #include <stdlib.h>
5809 int
5810 main ()
5811 {
5812 char *a = malloc(6), *b = strdup("hello");
5813 strlcpy(a, b, 6);
5814
5815 ;
5816 return 0;
5817 }
5818 _ACEOF
5819 rm -f conftest.$ac_objext conftest$ac_exeext
5820 if { (ac_try="$ac_link"
5821 case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824 esac
5825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_link") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); } && {
5833 test -z "$ac_c_werror_flag" ||
5834 test ! -s conftest.err
5835 } && test -s conftest$ac_exeext &&
5836 $as_test_x conftest$ac_exeext; then
5837 { echo "$as_me:$LINENO: result: yes" >&5
5838 echo "${ECHO_T}yes" >&6; }
5839
5840 cat >>confdefs.h <<\_ACEOF
5841 #define HAVE_STRLCPY 1
5842 _ACEOF
5843
5844 else
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 { echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6; }
5850
5851 fi
5852
5853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5854 conftest$ac_exeext conftest.$ac_ext
5855
5856 { echo "$as_me:$LINENO: checking for strlcat" >&5
5857 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <string.h>
5865 #include <stdlib.h>
5866 int
5867 main ()
5868 {
5869 char *a = malloc(6), *b = strdup("hello");
5870 strlcat(a, b, 6);
5871
5872 ;
5873 return 0;
5874 }
5875 _ACEOF
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (ac_try="$ac_link"
5878 case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881 esac
5882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_link") 2>conftest.er1
5884 ac_status=$?
5885 grep -v '^ *+' conftest.er1 >conftest.err
5886 rm -f conftest.er1
5887 cat conftest.err >&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); } && {
5890 test -z "$ac_c_werror_flag" ||
5891 test ! -s conftest.err
5892 } && test -s conftest$ac_exeext &&
5893 $as_test_x conftest$ac_exeext; then
5894 { echo "$as_me:$LINENO: result: yes" >&5
5895 echo "${ECHO_T}yes" >&6; }
5896
5897 cat >>confdefs.h <<\_ACEOF
5898 #define HAVE_STRLCAT 1
5899 _ACEOF
5900
5901 else
5902 echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905 { echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6; }
5907
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5911 conftest$ac_exeext conftest.$ac_ext
5912
5913 CFLAGS=$save_CFLAGS
5914
5915 else
5916
5917
5918
5919
5920 for ac_func in strlcat strlcpy
5921 do
5922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5936 #define $ac_func innocuous_$ac_func
5937
5938 /* System header to define __stub macros and hopefully few prototypes,
5939 which can conflict with char $ac_func (); below.
5940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5941 <limits.h> exists even on freestanding compilers. */
5942
5943 #ifdef __STDC__
5944 # include <limits.h>
5945 #else
5946 # include <assert.h>
5947 #endif
5948
5949 #undef $ac_func
5950
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 char $ac_func ();
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined __stub_$ac_func || defined __stub___$ac_func
5962 choke me
5963 #endif
5964
5965 int
5966 main ()
5967 {
5968 return $ac_func ();
5969 ;
5970 return 0;
5971 }
5972 _ACEOF
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (ac_try="$ac_link"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_link") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } && {
5987 test -z "$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 } && test -s conftest$ac_exeext &&
5990 $as_test_x conftest$ac_exeext; then
5991 eval "$as_ac_var=yes"
5992 else
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 eval "$as_ac_var=no"
5997 fi
5998
5999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6000 conftest$ac_exeext conftest.$ac_ext
6001 fi
6002 ac_res=`eval echo '${'$as_ac_var'}'`
6003 { echo "$as_me:$LINENO: result: $ac_res" >&5
6004 echo "${ECHO_T}$ac_res" >&6; }
6005 if test `eval echo '${'$as_ac_var'}'` = yes; then
6006 cat >>confdefs.h <<_ACEOF
6007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6008 _ACEOF
6009
6010 fi
6011 done
6012
6013
6014 fi
6015
6016 { echo "$as_me:$LINENO: checking for int64_t" >&5
6017 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6018 if test "${ac_cv_type_int64_t+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 $ac_includes_default
6028 typedef int64_t ac__type_new_;
6029 int
6030 main ()
6031 {
6032 if ((ac__type_new_ *) 0)
6033 return 0;
6034 if (sizeof (ac__type_new_))
6035 return 0;
6036 ;
6037 return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_type_int64_t=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_cv_type_int64_t=no
6063 fi
6064
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 fi
6067 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6068 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6069
6070 # The cast to long int works around a bug in the HP C Compiler
6071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6073 # This bug is HP SR number 8606223364.
6074 { echo "$as_me:$LINENO: checking size of int64_t" >&5
6075 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
6076 if test "${ac_cv_sizeof_int64_t+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079 if test "$cross_compiling" = yes; then
6080 # Depending upon the size, compute the lo and hi bounds.
6081 cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h. */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h. */
6087 $ac_includes_default
6088 typedef int64_t ac__type_sizeof_;
6089 int
6090 main ()
6091 {
6092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6093 test_array [0] = 0
6094
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6101 case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compile") 2>conftest.er1
6107 ac_status=$?
6108 grep -v '^ *+' conftest.er1 >conftest.err
6109 rm -f conftest.er1
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && {
6113 test -z "$ac_c_werror_flag" ||
6114 test ! -s conftest.err
6115 } && test -s conftest.$ac_objext; then
6116 ac_lo=0 ac_mid=0
6117 while :; do
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 $ac_includes_default
6125 typedef int64_t ac__type_sizeof_;
6126 int
6127 main ()
6128 {
6129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6130 test_array [0] = 0
6131
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6153 ac_hi=$ac_mid; break
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_lo=`expr $ac_mid + 1`
6159 if test $ac_lo -le $ac_mid; then
6160 ac_lo= ac_hi=
6161 break
6162 fi
6163 ac_mid=`expr 2 '*' $ac_mid + 1`
6164 fi
6165
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 done
6168 else
6169 echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 cat >conftest.$ac_ext <<_ACEOF
6173 /* confdefs.h. */
6174 _ACEOF
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6178 $ac_includes_default
6179 typedef int64_t ac__type_sizeof_;
6180 int
6181 main ()
6182 {
6183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6184 test_array [0] = 0
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_compile") 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.$ac_objext; then
6207 ac_hi=-1 ac_mid=-1
6208 while :; do
6209 cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6215 $ac_includes_default
6216 typedef int64_t ac__type_sizeof_;
6217 int
6218 main ()
6219 {
6220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6221 test_array [0] = 0
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 rm -f conftest.$ac_objext
6228 if { (ac_try="$ac_compile"
6229 case "(($ac_try" in
6230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6231 *) ac_try_echo=$ac_try;;
6232 esac
6233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6234 (eval "$ac_compile") 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } && {
6241 test -z "$ac_c_werror_flag" ||
6242 test ! -s conftest.err
6243 } && test -s conftest.$ac_objext; then
6244 ac_lo=$ac_mid; break
6245 else
6246 echo "$as_me: failed program was:" >&5
6247 sed 's/^/| /' conftest.$ac_ext >&5
6248
6249 ac_hi=`expr '(' $ac_mid ')' - 1`
6250 if test $ac_mid -le $ac_hi; then
6251 ac_lo= ac_hi=
6252 break
6253 fi
6254 ac_mid=`expr 2 '*' $ac_mid`
6255 fi
6256
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 done
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 ac_lo= ac_hi=
6264 fi
6265
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 fi
6268
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 # Binary search between lo and hi bounds.
6271 while test "x$ac_lo" != "x$ac_hi"; do
6272 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 $ac_includes_default
6280 typedef int64_t ac__type_sizeof_;
6281 int
6282 main ()
6283 {
6284 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6285 test_array [0] = 0
6286
6287 ;
6288 return 0;
6289 }
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.$ac_objext; then
6308 ac_hi=$ac_mid
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 ac_lo=`expr '(' $ac_mid ')' + 1`
6314 fi
6315
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 done
6318 case $ac_lo in
6319 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
6320 '') if test "$ac_cv_type_int64_t" = yes; then
6321 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
6322 See \`config.log' for more details." >&5
6323 echo "$as_me: error: cannot compute sizeof (int64_t)
6324 See \`config.log' for more details." >&2;}
6325 { (exit 77); exit 77; }; }
6326 else
6327 ac_cv_sizeof_int64_t=0
6328 fi ;;
6329 esac
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6338 typedef int64_t ac__type_sizeof_;
6339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6341 #include <stdio.h>
6342 #include <stdlib.h>
6343 int
6344 main ()
6345 {
6346
6347 FILE *f = fopen ("conftest.val", "w");
6348 if (! f)
6349 return 1;
6350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6351 {
6352 long int i = longval ();
6353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6354 return 1;
6355 fprintf (f, "%ld\n", i);
6356 }
6357 else
6358 {
6359 unsigned long int i = ulongval ();
6360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6361 return 1;
6362 fprintf (f, "%lu\n", i);
6363 }
6364 return ferror (f) || fclose (f) != 0;
6365
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest$ac_exeext
6371 if { (ac_try="$ac_link"
6372 case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375 esac
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_link") 2>&5
6378 ac_status=$?
6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6381 { (case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_try") 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_sizeof_int64_t=`cat conftest.val`
6391 else
6392 echo "$as_me: program exited with status $ac_status" >&5
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396 ( exit $ac_status )
6397 if test "$ac_cv_type_int64_t" = yes; then
6398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
6399 See \`config.log' for more details." >&5
6400 echo "$as_me: error: cannot compute sizeof (int64_t)
6401 See \`config.log' for more details." >&2;}
6402 { (exit 77); exit 77; }; }
6403 else
6404 ac_cv_sizeof_int64_t=0
6405 fi
6406 fi
6407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 rm -f conftest.val
6410 fi
6411 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
6412 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
6413
6414
6415
6416 cat >>confdefs.h <<_ACEOF
6417 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
6418 _ACEOF
6419
6420
6421 { echo "$as_me:$LINENO: checking for long long" >&5
6422 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6423 if test "${ac_cv_type_long_long+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6433 typedef long long ac__type_new_;
6434 int
6435 main ()
6436 {
6437 if ((ac__type_new_ *) 0)
6438 return 0;
6439 if (sizeof (ac__type_new_))
6440 return 0;
6441 ;
6442 return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 ac_cv_type_long_long=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ac_cv_type_long_long=no
6468 fi
6469
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 fi
6472 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6473 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6474
6475 # The cast to long int works around a bug in the HP C Compiler
6476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6478 # This bug is HP SR number 8606223364.
6479 { echo "$as_me:$LINENO: checking size of long long" >&5
6480 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6481 if test "${ac_cv_sizeof_long_long+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 if test "$cross_compiling" = yes; then
6485 # Depending upon the size, compute the lo and hi bounds.
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 $ac_includes_default
6493 typedef long long ac__type_sizeof_;
6494 int
6495 main ()
6496 {
6497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6498 test_array [0] = 0
6499
6500 ;
6501 return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6506 case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 ac_lo=0 ac_mid=0
6522 while :; do
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6530 typedef long long ac__type_sizeof_;
6531 int
6532 main ()
6533 {
6534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6535 test_array [0] = 0
6536
6537 ;
6538 return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6543 case "(($ac_try" in
6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545 *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548 (eval "$ac_compile") 2>conftest.er1
6549 ac_status=$?
6550 grep -v '^ *+' conftest.er1 >conftest.err
6551 rm -f conftest.er1
6552 cat conftest.err >&5
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); } && {
6555 test -z "$ac_c_werror_flag" ||
6556 test ! -s conftest.err
6557 } && test -s conftest.$ac_objext; then
6558 ac_hi=$ac_mid; break
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563 ac_lo=`expr $ac_mid + 1`
6564 if test $ac_lo -le $ac_mid; then
6565 ac_lo= ac_hi=
6566 break
6567 fi
6568 ac_mid=`expr 2 '*' $ac_mid + 1`
6569 fi
6570
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 done
6573 else
6574 echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6584 typedef long long ac__type_sizeof_;
6585 int
6586 main ()
6587 {
6588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6589 test_array [0] = 0
6590
6591 ;
6592 return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest.$ac_objext; then
6612 ac_hi=-1 ac_mid=-1
6613 while :; do
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 $ac_includes_default
6621 typedef long long ac__type_sizeof_;
6622 int
6623 main ()
6624 {
6625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6626 test_array [0] = 0
6627
6628 ;
6629 return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest.$ac_objext
6633 if { (ac_try="$ac_compile"
6634 case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637 esac
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 ac_lo=$ac_mid; break
6650 else
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6653
6654 ac_hi=`expr '(' $ac_mid ')' - 1`
6655 if test $ac_mid -le $ac_hi; then
6656 ac_lo= ac_hi=
6657 break
6658 fi
6659 ac_mid=`expr 2 '*' $ac_mid`
6660 fi
6661
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 done
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ac_lo= ac_hi=
6669 fi
6670
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6672 fi
6673
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675 # Binary search between lo and hi bounds.
6676 while test "x$ac_lo" != "x$ac_hi"; do
6677 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 $ac_includes_default
6685 typedef long long ac__type_sizeof_;
6686 int
6687 main ()
6688 {
6689 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6690 test_array [0] = 0
6691
6692 ;
6693 return 0;
6694 }
6695 _ACEOF
6696 rm -f conftest.$ac_objext
6697 if { (ac_try="$ac_compile"
6698 case "(($ac_try" in
6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6700 *) ac_try_echo=$ac_try;;
6701 esac
6702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6703 (eval "$ac_compile") 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } && {
6710 test -z "$ac_c_werror_flag" ||
6711 test ! -s conftest.err
6712 } && test -s conftest.$ac_objext; then
6713 ac_hi=$ac_mid
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_lo=`expr '(' $ac_mid ')' + 1`
6719 fi
6720
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 done
6723 case $ac_lo in
6724 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6725 '') if test "$ac_cv_type_long_long" = yes; then
6726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6727 See \`config.log' for more details." >&5
6728 echo "$as_me: error: cannot compute sizeof (long long)
6729 See \`config.log' for more details." >&2;}
6730 { (exit 77); exit 77; }; }
6731 else
6732 ac_cv_sizeof_long_long=0
6733 fi ;;
6734 esac
6735 else
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6743 typedef long long ac__type_sizeof_;
6744 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6745 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6746 #include <stdio.h>
6747 #include <stdlib.h>
6748 int
6749 main ()
6750 {
6751
6752 FILE *f = fopen ("conftest.val", "w");
6753 if (! f)
6754 return 1;
6755 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6756 {
6757 long int i = longval ();
6758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6759 return 1;
6760 fprintf (f, "%ld\n", i);
6761 }
6762 else
6763 {
6764 unsigned long int i = ulongval ();
6765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6766 return 1;
6767 fprintf (f, "%lu\n", i);
6768 }
6769 return ferror (f) || fclose (f) != 0;
6770
6771 ;
6772 return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_link") 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6786 { (case "(($ac_try" in
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6789 esac
6790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6791 (eval "$ac_try") 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_sizeof_long_long=`cat conftest.val`
6796 else
6797 echo "$as_me: program exited with status $ac_status" >&5
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ( exit $ac_status )
6802 if test "$ac_cv_type_long_long" = yes; then
6803 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6804 See \`config.log' for more details." >&5
6805 echo "$as_me: error: cannot compute sizeof (long long)
6806 See \`config.log' for more details." >&2;}
6807 { (exit 77); exit 77; }; }
6808 else
6809 ac_cv_sizeof_long_long=0
6810 fi
6811 fi
6812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6813 fi
6814 rm -f conftest.val
6815 fi
6816 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6817 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6818
6819
6820
6821 cat >>confdefs.h <<_ACEOF
6822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6823 _ACEOF
6824
6825
6826
6827 if test "$ac_cv_sizeof_int64_t" = 8; then
6828 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6829 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6830 if test "${ac_cv_type_uint64_t+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h. */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6840 typedef uint64_t ac__type_new_;
6841 int
6842 main ()
6843 {
6844 if ((ac__type_new_ *) 0)
6845 return 0;
6846 if (sizeof (ac__type_new_))
6847 return 0;
6848 ;
6849 return 0;
6850 }
6851 _ACEOF
6852 rm -f conftest.$ac_objext
6853 if { (ac_try="$ac_compile"
6854 case "(($ac_try" in
6855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6856 *) ac_try_echo=$ac_try;;
6857 esac
6858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6859 (eval "$ac_compile") 2>conftest.er1
6860 ac_status=$?
6861 grep -v '^ *+' conftest.er1 >conftest.err
6862 rm -f conftest.er1
6863 cat conftest.err >&5
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); } && {
6866 test -z "$ac_c_werror_flag" ||
6867 test ! -s conftest.err
6868 } && test -s conftest.$ac_objext; then
6869 ac_cv_type_uint64_t=yes
6870 else
6871 echo "$as_me: failed program was:" >&5
6872 sed 's/^/| /' conftest.$ac_ext >&5
6873
6874 ac_cv_type_uint64_t=no
6875 fi
6876
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 fi
6879 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6880 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6881
6882 { echo "$as_me:$LINENO: checking for int64_t" >&5
6883 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
6884 if test "${ac_cv_type_int64_t+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887 cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h. */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h. */
6893 $ac_includes_default
6894 typedef int64_t ac__type_new_;
6895 int
6896 main ()
6897 {
6898 if ((ac__type_new_ *) 0)
6899 return 0;
6900 if (sizeof (ac__type_new_))
6901 return 0;
6902 ;
6903 return 0;
6904 }
6905 _ACEOF
6906 rm -f conftest.$ac_objext
6907 if { (ac_try="$ac_compile"
6908 case "(($ac_try" in
6909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910 *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913 (eval "$ac_compile") 2>conftest.er1
6914 ac_status=$?
6915 grep -v '^ *+' conftest.er1 >conftest.err
6916 rm -f conftest.er1
6917 cat conftest.err >&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && {
6920 test -z "$ac_c_werror_flag" ||
6921 test ! -s conftest.err
6922 } && test -s conftest.$ac_objext; then
6923 ac_cv_type_int64_t=yes
6924 else
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928 ac_cv_type_int64_t=no
6929 fi
6930
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 fi
6933 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
6934 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
6935
6936 elif test "$ac_cv_sizeof_long_long" = 8; then
6937 { echo "$as_me:$LINENO: checking for uint64_t" >&5
6938 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
6939 if test "${ac_cv_type_uint64_t+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 /* confdefs.h. */
6944 _ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6948 $ac_includes_default
6949 typedef uint64_t ac__type_new_;
6950 int
6951 main ()
6952 {
6953 if ((ac__type_new_ *) 0)
6954 return 0;
6955 if (sizeof (ac__type_new_))
6956 return 0;
6957 ;
6958 return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext
6962 if { (ac_try="$ac_compile"
6963 case "(($ac_try" in
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6969 ac_status=$?
6970 grep -v '^ *+' conftest.er1 >conftest.err
6971 rm -f conftest.er1
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_type_uint64_t=yes
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 ac_cv_type_uint64_t=no
6984 fi
6985
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 fi
6988 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6989 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
6990 if test $ac_cv_type_uint64_t = yes; then
6991 :
6992 else
6993
6994 cat >>confdefs.h <<_ACEOF
6995 #define uint64_t unsigned long long
6996 _ACEOF
6997
6998 fi
6999
7000 { echo "$as_me:$LINENO: checking for int64_t" >&5
7001 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7002 if test "${ac_cv_type_int64_t+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011 $ac_includes_default
7012 typedef int64_t ac__type_new_;
7013 int
7014 main ()
7015 {
7016 if ((ac__type_new_ *) 0)
7017 return 0;
7018 if (sizeof (ac__type_new_))
7019 return 0;
7020 ;
7021 return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest.$ac_objext
7025 if { (ac_try="$ac_compile"
7026 case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029 esac
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 (eval "$ac_compile") 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } && {
7038 test -z "$ac_c_werror_flag" ||
7039 test ! -s conftest.err
7040 } && test -s conftest.$ac_objext; then
7041 ac_cv_type_int64_t=yes
7042 else
7043 echo "$as_me: failed program was:" >&5
7044 sed 's/^/| /' conftest.$ac_ext >&5
7045
7046 ac_cv_type_int64_t=no
7047 fi
7048
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 fi
7051 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7052 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7053 if test $ac_cv_type_int64_t = yes; then
7054 :
7055 else
7056
7057 cat >>confdefs.h <<_ACEOF
7058 #define int64_t long long
7059 _ACEOF
7060
7061 fi
7062
7063 else
7064 { { echo "$as_me:$LINENO: error: Your system doesn't appear to have 64 bit integers. Aborting." >&5
7065 echo "$as_me: error: Your system doesn't appear to have 64 bit integers. Aborting." >&2;}
7066 { (exit 1); exit 1; }; }
7067 fi
7068
7069 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
7070 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
7071 if test "${ac_cv_type_u_int32_t+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h. */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 $ac_includes_default
7081 typedef u_int32_t ac__type_new_;
7082 int
7083 main ()
7084 {
7085 if ((ac__type_new_ *) 0)
7086 return 0;
7087 if (sizeof (ac__type_new_))
7088 return 0;
7089 ;
7090 return 0;
7091 }
7092 _ACEOF
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7095 case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7098 esac
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_compile") 2>conftest.er1
7101 ac_status=$?
7102 grep -v '^ *+' conftest.er1 >conftest.err
7103 rm -f conftest.er1
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && {
7107 test -z "$ac_c_werror_flag" ||
7108 test ! -s conftest.err
7109 } && test -s conftest.$ac_objext; then
7110 ac_cv_type_u_int32_t=yes
7111 else
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 ac_cv_type_u_int32_t=no
7116 fi
7117
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 fi
7120 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7121 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
7122 if test $ac_cv_type_u_int32_t = yes; then
7123 :
7124 else
7125
7126 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7127 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7128 if test "${ac_cv_type_uint32_t+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131 cat >conftest.$ac_ext <<_ACEOF
7132 /* confdefs.h. */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 $ac_includes_default
7138 typedef uint32_t ac__type_new_;
7139 int
7140 main ()
7141 {
7142 if ((ac__type_new_ *) 0)
7143 return 0;
7144 if (sizeof (ac__type_new_))
7145 return 0;
7146 ;
7147 return 0;
7148 }
7149 _ACEOF
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7152 case "(($ac_try" in
7153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154 *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157 (eval "$ac_compile") 2>conftest.er1
7158 ac_status=$?
7159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); } && {
7164 test -z "$ac_c_werror_flag" ||
7165 test ! -s conftest.err
7166 } && test -s conftest.$ac_objext; then
7167 ac_cv_type_uint32_t=yes
7168 else
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 ac_cv_type_uint32_t=no
7173 fi
7174
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7178 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7179 if test $ac_cv_type_uint32_t = yes; then
7180
7181
7182 cat >>confdefs.h <<\_ACEOF
7183 #define u_int32_t uint32_t
7184 _ACEOF
7185
7186
7187 else
7188
7189 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
7190 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
7191
7192 cat >>confdefs.h <<\_ACEOF
7193 #define u_int32_t unsigned long int
7194 _ACEOF
7195
7196
7197 fi
7198
7199
7200 fi
7201
7202
7203 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
7204 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
7205 if test "${ac_cv_type_u_int16_t+set}" = set; then
7206 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 else
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7215 typedef u_int16_t ac__type_new_;
7216 int
7217 main ()
7218 {
7219 if ((ac__type_new_ *) 0)
7220 return 0;
7221 if (sizeof (ac__type_new_))
7222 return 0;
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7229 case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232 esac
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.$ac_objext; then
7244 ac_cv_type_u_int16_t=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7248
7249 ac_cv_type_u_int16_t=no
7250 fi
7251
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 fi
7254 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
7255 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
7256 if test $ac_cv_type_u_int16_t = yes; then
7257 :
7258 else
7259
7260 { echo "$as_me:$LINENO: checking for uint16_t" >&5
7261 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7262 if test "${ac_cv_type_uint16_t+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 $ac_includes_default
7272 typedef uint16_t ac__type_new_;
7273 int
7274 main ()
7275 {
7276 if ((ac__type_new_ *) 0)
7277 return 0;
7278 if (sizeof (ac__type_new_))
7279 return 0;
7280 ;
7281 return 0;
7282 }
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7292 ac_status=$?
7293 grep -v '^ *+' conftest.er1 >conftest.err
7294 rm -f conftest.er1
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7301 ac_cv_type_uint16_t=yes
7302 else
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 ac_cv_type_uint16_t=no
7307 fi
7308
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 fi
7311 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7312 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
7313 if test $ac_cv_type_uint16_t = yes; then
7314
7315
7316 cat >>confdefs.h <<\_ACEOF
7317 #define u_int16_t uint16_t
7318 _ACEOF
7319
7320
7321 else
7322
7323 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
7324 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
7325
7326 cat >>confdefs.h <<\_ACEOF
7327 #define u_int16_t unsigned short int
7328 _ACEOF
7329
7330
7331 fi
7332
7333
7334 fi
7335
7336
7337 { echo "$as_me:$LINENO: checking for in_port_t" >&5
7338 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
7339 if test "${ac_cv_type_in_port_t+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342 cat >conftest.$ac_ext <<_ACEOF
7343 /* confdefs.h. */
7344 _ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 #include <sys/types.h>
7349 #include <netinet/in.h>
7350
7351 typedef in_port_t ac__type_new_;
7352 int
7353 main ()
7354 {
7355 if ((ac__type_new_ *) 0)
7356 return 0;
7357 if (sizeof (ac__type_new_))
7358 return 0;
7359 ;
7360 return 0;
7361 }
7362 _ACEOF
7363 rm -f conftest.$ac_objext
7364 if { (ac_try="$ac_compile"
7365 case "(($ac_try" in
7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7368 esac
7369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7370 (eval "$ac_compile") 2>conftest.er1
7371 ac_status=$?
7372 grep -v '^ *+' conftest.er1 >conftest.err
7373 rm -f conftest.er1
7374 cat conftest.err >&5
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); } && {
7377 test -z "$ac_c_werror_flag" ||
7378 test ! -s conftest.err
7379 } && test -s conftest.$ac_objext; then
7380 ac_cv_type_in_port_t=yes
7381 else
7382 echo "$as_me: failed program was:" >&5
7383 sed 's/^/| /' conftest.$ac_ext >&5
7384
7385 ac_cv_type_in_port_t=no
7386 fi
7387
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 fi
7390 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
7391 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
7392 if test $ac_cv_type_in_port_t = yes; then
7393 :
7394 else
7395
7396 cat >>confdefs.h <<\_ACEOF
7397 #define in_port_t u_int16_t
7398 _ACEOF
7399
7400 fi
7401
7402
7403 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
7404 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
7405 if test "${ac_cv_type_sa_family_t+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408 cat >conftest.$ac_ext <<_ACEOF
7409 /* confdefs.h. */
7410 _ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #include <sys/types.h>
7415 #include <sys/socket.h>
7416
7417 typedef sa_family_t ac__type_new_;
7418 int
7419 main ()
7420 {
7421 if ((ac__type_new_ *) 0)
7422 return 0;
7423 if (sizeof (ac__type_new_))
7424 return 0;
7425 ;
7426 return 0;
7427 }
7428 _ACEOF
7429 rm -f conftest.$ac_objext
7430 if { (ac_try="$ac_compile"
7431 case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434 esac
7435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_compile") 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } && {
7443 test -z "$ac_c_werror_flag" ||
7444 test ! -s conftest.err
7445 } && test -s conftest.$ac_objext; then
7446 ac_cv_type_sa_family_t=yes
7447 else
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 ac_cv_type_sa_family_t=no
7452 fi
7453
7454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 fi
7456 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
7457 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
7458 if test $ac_cv_type_sa_family_t = yes; then
7459 :
7460 else
7461
7462 cat >>confdefs.h <<\_ACEOF
7463 #define sa_family_t u_int16_t
7464 _ACEOF
7465
7466 fi
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478 for ac_func in socketpair basename mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep
7479 do
7480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7494 #define $ac_func innocuous_$ac_func
7495
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char $ac_func (); below.
7498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499 <limits.h> exists even on freestanding compilers. */
7500
7501 #ifdef __STDC__
7502 # include <limits.h>
7503 #else
7504 # include <assert.h>
7505 #endif
7506
7507 #undef $ac_func
7508
7509 /* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7512 #ifdef __cplusplus
7513 extern "C"
7514 #endif
7515 char $ac_func ();
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined __stub_$ac_func || defined __stub___$ac_func
7520 choke me
7521 #endif
7522
7523 int
7524 main ()
7525 {
7526 return $ac_func ();
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 rm -f conftest.$ac_objext conftest$ac_exeext
7532 if { (ac_try="$ac_link"
7533 case "(($ac_try" in
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7536 esac
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_link") 2>conftest.er1
7539 ac_status=$?
7540 grep -v '^ *+' conftest.er1 >conftest.err
7541 rm -f conftest.er1
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest$ac_exeext &&
7548 $as_test_x conftest$ac_exeext; then
7549 eval "$as_ac_var=yes"
7550 else
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7553
7554 eval "$as_ac_var=no"
7555 fi
7556
7557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7558 conftest$ac_exeext conftest.$ac_ext
7559 fi
7560 ac_res=`eval echo '${'$as_ac_var'}'`
7561 { echo "$as_me:$LINENO: result: $ac_res" >&5
7562 echo "${ECHO_T}$ac_res" >&6; }
7563 if test `eval echo '${'$as_ac_var'}'` = yes; then
7564 cat >>confdefs.h <<_ACEOF
7565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7566 _ACEOF
7567
7568 fi
7569 done
7570
7571
7572 if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then
7573 SNPRINTF_C="snprintf.c"
7574 fi
7575
7576
7577
7578
7579 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
7580 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
7581 # Check whether --enable-openssl was given.
7582 if test "${enable_openssl+set}" = set; then
7583 enableval=$enable_openssl; cf_enable_openssl=$enableval
7584 else
7585 cf_enable_openssl="auto"
7586 fi
7587
7588
7589 if test "$cf_enable_openssl" != "no" ; then
7590 cf_openssl_basedir=""
7591 if test "$cf_enable_openssl" != "auto" &&
7592 test "$cf_enable_openssl" != "yes" ; then
7593 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7594 else
7595 for dirs in /usr/local/ssl /usr/pkg /usr/local \
7596 /usr/local/openssl /usr/sfw; do
7597 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7598 cf_openssl_basedir="${dirs}"
7599 break
7600 fi
7601 done
7602 unset dirs
7603 fi
7604 if test ! -z "$cf_openssl_basedir"; then
7605 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7606 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7607 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7608 else
7609 cf_openssl_basedir=""
7610 fi
7611 else
7612 if test -f "/usr/include/openssl/opensslv.h" ; then
7613 cf_openssl_basedir="/usr"
7614 fi
7615 fi
7616
7617 if test ! -z "$cf_openssl_basedir"; then
7618 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
7619 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
7620 cf_enable_openssl="yes"
7621 else
7622 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
7623 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
7624 cf_enable_openssl="no"
7625 fi
7626 unset cf_openssl_basedir
7627 else
7628 { echo "$as_me:$LINENO: result: disabled" >&5
7629 echo "${ECHO_T}disabled" >&6; }
7630 fi
7631
7632 save_CPPFLAGS="$CPPFLAGS"
7633 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7634 save_LIBS="$LIBS"
7635 LIBS="$LIBS $SSL_LIBS"
7636 if test "$cf_enable_openssl" != no; then
7637 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
7638 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
7639 if test "$cross_compiling" = yes; then
7640 cf_openssl_version_ok=no
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <openssl/opensslv.h>
7649 #include <stdlib.h>
7650 int
7651 main ()
7652 {
7653 if (OPENSSL_VERSION_NUMBER >= 0x00906000)
7654 exit(0); else exit(1);
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest$ac_exeext
7660 if { (ac_try="$ac_link"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7670 { (case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673 esac
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_try") 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 cf_openssl_version_ok=yes
7680 else
7681 echo "$as_me: program exited with status $ac_status" >&5
7682 echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7684
7685 ( exit $ac_status )
7686 cf_openssl_version_ok=no
7687 fi
7688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7689 fi
7690
7691
7692
7693 if test "$cf_openssl_version_ok" = yes; then
7694 { echo "$as_me:$LINENO: result: found" >&5
7695 echo "${ECHO_T}found" >&6; }
7696
7697 ENCSPEED=encspeed
7698
7699
7700 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7701
7702 { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
7703 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
7704 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 ac_check_lib_save_LIBS=$LIBS
7708 LIBS="-lcrypto $LIBS"
7709 cat >conftest.$ac_ext <<_ACEOF
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715
7716 /* Override any GCC internal prototype to avoid an error.
7717 Use char because int might match the return type of a GCC
7718 builtin and then its argument prototype would still apply. */
7719 #ifdef __cplusplus
7720 extern "C"
7721 #endif
7722 char RSA_free ();
7723 int
7724 main ()
7725 {
7726 return RSA_free ();
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_link") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_c_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest$ac_exeext &&
7748 $as_test_x conftest$ac_exeext; then
7749 ac_cv_lib_crypto_RSA_free=yes
7750 else
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7753
7754 ac_cv_lib_crypto_RSA_free=no
7755 fi
7756
7757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7760 fi
7761 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
7762 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
7763 if test $ac_cv_lib_crypto_RSA_free = yes; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define HAVE_LIBCRYPTO 1
7766 _ACEOF
7767
7768 LIBS="-lcrypto $LIBS"
7769
7770 fi
7771
7772 if test "$ac_cv_lib_crypto_RSA_free" = yes; then
7773 LIBS="$LIBS -lcrypto"
7774 cf_openssl_ciphers=''
7775
7776 for ac_func in EVP_bf_cfb
7777 do
7778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h. */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h. */
7790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7792 #define $ac_func innocuous_$ac_func
7793
7794 /* System header to define __stub macros and hopefully few prototypes,
7795 which can conflict with char $ac_func (); below.
7796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7797 <limits.h> exists even on freestanding compilers. */
7798
7799 #ifdef __STDC__
7800 # include <limits.h>
7801 #else
7802 # include <assert.h>
7803 #endif
7804
7805 #undef $ac_func
7806
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7810 #ifdef __cplusplus
7811 extern "C"
7812 #endif
7813 char $ac_func ();
7814 /* The GNU C library defines this for functions which it implements
7815 to always fail with ENOSYS. Some functions are actually named
7816 something starting with __ and the normal name is an alias. */
7817 #if defined __stub_$ac_func || defined __stub___$ac_func
7818 choke me
7819 #endif
7820
7821 int
7822 main ()
7823 {
7824 return $ac_func ();
7825 ;
7826 return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext conftest$ac_exeext
7830 if { (ac_try="$ac_link"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_link") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest$ac_exeext &&
7846 $as_test_x conftest$ac_exeext; then
7847 eval "$as_ac_var=yes"
7848 else
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852 eval "$as_ac_var=no"
7853 fi
7854
7855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7856 conftest$ac_exeext conftest.$ac_ext
7857 fi
7858 ac_res=`eval echo '${'$as_ac_var'}'`
7859 { echo "$as_me:$LINENO: result: $ac_res" >&5
7860 echo "${ECHO_T}$ac_res" >&6; }
7861 if test `eval echo '${'$as_ac_var'}'` = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7864 _ACEOF
7865 cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 "
7866 fi
7867 done
7868
7869
7870 for ac_func in EVP_cast5_cfb
7871 do
7872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7886 #define $ac_func innocuous_$ac_func
7887
7888 /* System header to define __stub macros and hopefully few prototypes,
7889 which can conflict with char $ac_func (); below.
7890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7891 <limits.h> exists even on freestanding compilers. */
7892
7893 #ifdef __STDC__
7894 # include <limits.h>
7895 #else
7896 # include <assert.h>
7897 #endif
7898
7899 #undef $ac_func
7900
7901 /* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7904 #ifdef __cplusplus
7905 extern "C"
7906 #endif
7907 char $ac_func ();
7908 /* The GNU C library defines this for functions which it implements
7909 to always fail with ENOSYS. Some functions are actually named
7910 something starting with __ and the normal name is an alias. */
7911 #if defined __stub_$ac_func || defined __stub___$ac_func
7912 choke me
7913 #endif
7914
7915 int
7916 main ()
7917 {
7918 return $ac_func ();
7919 ;
7920 return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7925 case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest$ac_exeext &&
7940 $as_test_x conftest$ac_exeext; then
7941 eval "$as_ac_var=yes"
7942 else
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7945
7946 eval "$as_ac_var=no"
7947 fi
7948
7949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950 conftest$ac_exeext conftest.$ac_ext
7951 fi
7952 ac_res=`eval echo '${'$as_ac_var'}'`
7953 { echo "$as_me:$LINENO: result: $ac_res" >&5
7954 echo "${ECHO_T}$ac_res" >&6; }
7955 if test `eval echo '${'$as_ac_var'}'` = yes; then
7956 cat >>confdefs.h <<_ACEOF
7957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7958 _ACEOF
7959 cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 "
7960 fi
7961 done
7962
7963
7964 for ac_func in EVP_idea_cfb
7965 do
7966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7980 #define $ac_func innocuous_$ac_func
7981
7982 /* System header to define __stub macros and hopefully few prototypes,
7983 which can conflict with char $ac_func (); below.
7984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985 <limits.h> exists even on freestanding compilers. */
7986
7987 #ifdef __STDC__
7988 # include <limits.h>
7989 #else
7990 # include <assert.h>
7991 #endif
7992
7993 #undef $ac_func
7994
7995 /* Override any GCC internal prototype to avoid an error.
7996 Use char because int might match the return type of a GCC
7997 builtin and then its argument prototype would still apply. */
7998 #ifdef __cplusplus
7999 extern "C"
8000 #endif
8001 char $ac_func ();
8002 /* The GNU C library defines this for functions which it implements
8003 to always fail with ENOSYS. Some functions are actually named
8004 something starting with __ and the normal name is an alias. */
8005 #if defined __stub_$ac_func || defined __stub___$ac_func
8006 choke me
8007 #endif
8008
8009 int
8010 main ()
8011 {
8012 return $ac_func ();
8013 ;
8014 return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext conftest$ac_exeext
8018 if { (ac_try="$ac_link"
8019 case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022 esac
8023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_link") 2>conftest.er1
8025 ac_status=$?
8026 grep -v '^ *+' conftest.er1 >conftest.err
8027 rm -f conftest.er1
8028 cat conftest.err >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); } && {
8031 test -z "$ac_c_werror_flag" ||
8032 test ! -s conftest.err
8033 } && test -s conftest$ac_exeext &&
8034 $as_test_x conftest$ac_exeext; then
8035 eval "$as_ac_var=yes"
8036 else
8037 echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 eval "$as_ac_var=no"
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8044 conftest$ac_exeext conftest.$ac_ext
8045 fi
8046 ac_res=`eval echo '${'$as_ac_var'}'`
8047 { echo "$as_me:$LINENO: result: $ac_res" >&5
8048 echo "${ECHO_T}$ac_res" >&6; }
8049 if test `eval echo '${'$as_ac_var'}'` = yes; then
8050 cat >>confdefs.h <<_ACEOF
8051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8052 _ACEOF
8053 cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 "
8054 fi
8055 done
8056
8057
8058 for ac_func in EVP_rc5_32_12_16_cfb
8059 do
8060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066 cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h. */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8074 #define $ac_func innocuous_$ac_func
8075
8076 /* System header to define __stub macros and hopefully few prototypes,
8077 which can conflict with char $ac_func (); below.
8078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079 <limits.h> exists even on freestanding compilers. */
8080
8081 #ifdef __STDC__
8082 # include <limits.h>
8083 #else
8084 # include <assert.h>
8085 #endif
8086
8087 #undef $ac_func
8088
8089 /* Override any GCC internal prototype to avoid an error.
8090 Use char because int might match the return type of a GCC
8091 builtin and then its argument prototype would still apply. */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 char $ac_func ();
8096 /* The GNU C library defines this for functions which it implements
8097 to always fail with ENOSYS. Some functions are actually named
8098 something starting with __ and the normal name is an alias. */
8099 #if defined __stub_$ac_func || defined __stub___$ac_func
8100 choke me
8101 #endif
8102
8103 int
8104 main ()
8105 {
8106 return $ac_func ();
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (ac_try="$ac_link"
8113 case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest$ac_exeext &&
8128 $as_test_x conftest$ac_exeext; then
8129 eval "$as_ac_var=yes"
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134 eval "$as_ac_var=no"
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8138 conftest$ac_exeext conftest.$ac_ext
8139 fi
8140 ac_res=`eval echo '${'$as_ac_var'}'`
8141 { echo "$as_me:$LINENO: result: $ac_res" >&5
8142 echo "${ECHO_T}$ac_res" >&6; }
8143 if test `eval echo '${'$as_ac_var'}'` = yes; then
8144 cat >>confdefs.h <<_ACEOF
8145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8146 _ACEOF
8147 cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 "
8148 fi
8149 done
8150
8151
8152 for ac_func in EVP_des_ede3_cfb
8153 do
8154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 else
8160 cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h. */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8168 #define $ac_func innocuous_$ac_func
8169
8170 /* System header to define __stub macros and hopefully few prototypes,
8171 which can conflict with char $ac_func (); below.
8172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8173 <limits.h> exists even on freestanding compilers. */
8174
8175 #ifdef __STDC__
8176 # include <limits.h>
8177 #else
8178 # include <assert.h>
8179 #endif
8180
8181 #undef $ac_func
8182
8183 /* Override any GCC internal prototype to avoid an error.
8184 Use char because int might match the return type of a GCC
8185 builtin and then its argument prototype would still apply. */
8186 #ifdef __cplusplus
8187 extern "C"
8188 #endif
8189 char $ac_func ();
8190 /* The GNU C library defines this for functions which it implements
8191 to always fail with ENOSYS. Some functions are actually named
8192 something starting with __ and the normal name is an alias. */
8193 #if defined __stub_$ac_func || defined __stub___$ac_func
8194 choke me
8195 #endif
8196
8197 int
8198 main ()
8199 {
8200 return $ac_func ();
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext conftest$ac_exeext
8206 if { (ac_try="$ac_link"
8207 case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210 esac
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_link") 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest$ac_exeext &&
8222 $as_test_x conftest$ac_exeext; then
8223 eval "$as_ac_var=yes"
8224 else
8225 echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 eval "$as_ac_var=no"
8229 fi
8230
8231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8232 conftest$ac_exeext conftest.$ac_ext
8233 fi
8234 ac_res=`eval echo '${'$as_ac_var'}'`
8235 { echo "$as_me:$LINENO: result: $ac_res" >&5
8236 echo "${ECHO_T}$ac_res" >&6; }
8237 if test `eval echo '${'$as_ac_var'}'` = yes; then
8238 cat >>confdefs.h <<_ACEOF
8239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8240 _ACEOF
8241 cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 "
8242 fi
8243 done
8244
8245
8246 for ac_func in EVP_des_cfb
8247 do
8248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h. */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8262 #define $ac_func innocuous_$ac_func
8263
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8268
8269 #ifdef __STDC__
8270 # include <limits.h>
8271 #else
8272 # include <assert.h>
8273 #endif
8274
8275 #undef $ac_func
8276
8277 /* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
8280 #ifdef __cplusplus
8281 extern "C"
8282 #endif
8283 char $ac_func ();
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined __stub_$ac_func || defined __stub___$ac_func
8288 choke me
8289 #endif
8290
8291 int
8292 main ()
8293 {
8294 return $ac_func ();
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8301 case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_link") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest$ac_exeext &&
8316 $as_test_x conftest$ac_exeext; then
8317 eval "$as_ac_var=yes"
8318 else
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 eval "$as_ac_var=no"
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8326 conftest$ac_exeext conftest.$ac_ext
8327 fi
8328 ac_res=`eval echo '${'$as_ac_var'}'`
8329 { echo "$as_me:$LINENO: result: $ac_res" >&5
8330 echo "${ECHO_T}$ac_res" >&6; }
8331 if test `eval echo '${'$as_ac_var'}'` = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334 _ACEOF
8335 cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 "
8336 fi
8337 done
8338
8339 fi
8340 SSL_LIBS="$SSL_LIBS -lssl -lcrypto"
8341 SSL_SRCS_ENABLE='$(SSL_SRCS)'
8342 else
8343 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
8344 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
8345 fi
8346 fi
8347
8348 CPPFLAGS="$save_CPPFLAGS"
8349 LIBS="$save_LIBS"
8350
8351
8352
8353
8354 # Check whether --with-zlib-path was given.
8355 if test "${with_zlib_path+set}" = set; then
8356 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
8357 fi
8358
8359
8360 # Check whether --enable-zlib was given.
8361 if test "${enable_zlib+set}" = set; then
8362 enableval=$enable_zlib; zlib=$enableval
8363 else
8364 zlib=yes
8365 fi
8366
8367
8368 if test "$zlib" = yes; then
8369
8370 if test "${ac_cv_header_zlib_h+set}" = set; then
8371 { echo "$as_me:$LINENO: checking for zlib.h" >&5
8372 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
8373 if test "${ac_cv_header_zlib_h+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 fi
8376 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8377 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
8378 else
8379 # Is the header compilable?
8380 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
8381 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h. */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8388 $ac_includes_default
8389 #include <zlib.h>
8390 _ACEOF
8391 rm -f conftest.$ac_objext
8392 if { (ac_try="$ac_compile"
8393 case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396 esac
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest.$ac_objext; then
8408 ac_header_compiler=yes
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413 ac_header_compiler=no
8414 fi
8415
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8418 echo "${ECHO_T}$ac_header_compiler" >&6; }
8419
8420 # Is the header present?
8421 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
8422 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h. */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 #include <zlib.h>
8430 _ACEOF
8431 if { (ac_try="$ac_cpp conftest.$ac_ext"
8432 case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } >/dev/null && {
8444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 }; then
8447 ac_header_preproc=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_header_preproc=no
8453 fi
8454
8455 rm -f conftest.err conftest.$ac_ext
8456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8457 echo "${ECHO_T}$ac_header_preproc" >&6; }
8458
8459 # So? What about this header?
8460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8461 yes:no: )
8462 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8463 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
8465 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
8466 ac_header_preproc=yes
8467 ;;
8468 no:yes:* )
8469 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
8470 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
8471 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
8472 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
8473 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
8474 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
8475 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
8476 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
8477 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
8478 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
8480 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
8481
8482 ;;
8483 esac
8484 { echo "$as_me:$LINENO: checking for zlib.h" >&5
8485 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
8486 if test "${ac_cv_header_zlib_h+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 else
8489 ac_cv_header_zlib_h=$ac_header_preproc
8490 fi
8491 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
8492 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
8493
8494 fi
8495 if test $ac_cv_header_zlib_h = yes; then
8496
8497 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
8498 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
8499 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502 ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-lz $LIBS"
8504 cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h. */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h. */
8510
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 char zlibVersion ();
8518 int
8519 main ()
8520 {
8521 return zlibVersion ();
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext conftest$ac_exeext
8527 if { (ac_try="$ac_link"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_link") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest$ac_exeext &&
8543 $as_test_x conftest$ac_exeext; then
8544 ac_cv_lib_z_zlibVersion=yes
8545 else
8546 echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 ac_cv_lib_z_zlibVersion=no
8550 fi
8551
8552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8555 fi
8556 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
8557 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
8558 if test $ac_cv_lib_z_zlibVersion = yes; then
8559
8560 ZLIB_LD=-lz
8561
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_LIBZ 1
8565 _ACEOF
8566
8567
8568 else
8569 zlib=no
8570 fi
8571
8572
8573 else
8574 zlib=no
8575 fi
8576
8577
8578
8579 fi
8580
8581
8582 # Check whether --enable-poll was given.
8583 if test "${enable_poll+set}" = set; then
8584 enableval=$enable_poll; SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled"
8585 fi
8586
8587
8588 # Check whether --enable-select was given.
8589 if test "${enable_select+set}" = set; then
8590 enableval=$enable_select; SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled"
8591 fi
8592
8593
8594 # Check whether --enable-kqueue was given.
8595 if test "${enable_kqueue+set}" = set; then
8596 enableval=$enable_kqueue; SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled"
8597 fi
8598
8599
8600 # Check whether --enable-devpoll was given.
8601 if test "${enable_devpoll+set}" = set; then
8602 enableval=$enable_devpoll; SELECT_TYPE_EXPLICIT="devpoll"
8603 echo "Forcing /dev/poll to be enabled"
8604
8605
8606 for ac_header in sys/devpoll.h devpoll.h
8607 do
8608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 fi
8615 ac_res=`eval echo '${'$as_ac_Header'}'`
8616 { echo "$as_me:$LINENO: result: $ac_res" >&5
8617 echo "${ECHO_T}$ac_res" >&6; }
8618 else
8619 # Is the header compilable?
8620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 #include <$ac_header>
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_header_compiler=yes
8649 else
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_header_compiler=no
8654 fi
8655
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8658 echo "${ECHO_T}$ac_header_compiler" >&6; }
8659
8660 # Is the header present?
8661 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8663 cat >conftest.$ac_ext <<_ACEOF
8664 /* confdefs.h. */
8665 _ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 #include <$ac_header>
8670 _ACEOF
8671 if { (ac_try="$ac_cpp conftest.$ac_ext"
8672 case "(($ac_try" in
8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8674 *) ac_try_echo=$ac_try;;
8675 esac
8676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev/null && {
8684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8685 test ! -s conftest.err
8686 }; then
8687 ac_header_preproc=yes
8688 else
8689 echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 ac_header_preproc=no
8693 fi
8694
8695 rm -f conftest.err conftest.$ac_ext
8696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8697 echo "${ECHO_T}$ac_header_preproc" >&6; }
8698
8699 # So? What about this header?
8700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8701 yes:no: )
8702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8706 ac_header_preproc=yes
8707 ;;
8708 no:yes:* )
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8721
8722 ;;
8723 esac
8724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729 eval "$as_ac_Header=\$ac_header_preproc"
8730 fi
8731 ac_res=`eval echo '${'$as_ac_Header'}'`
8732 { echo "$as_me:$LINENO: result: $ac_res" >&5
8733 echo "${ECHO_T}$ac_res" >&6; }
8734
8735 fi
8736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8739 _ACEOF
8740
8741 fi
8742
8743 done
8744
8745 fi
8746
8747
8748 # Check whether --enable-rtsigio was given.
8749 if test "${enable_rtsigio+set}" = set; then
8750 enableval=$enable_rtsigio; SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled"
8751 fi
8752
8753
8754 # Check whether --enable-epoll was given.
8755 if test "${enable_epoll+set}" = set; then
8756 enableval=$enable_epoll; SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled"
8757 fi
8758
8759
8760 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
8761 SELECT_TYPE="$SELECT_TYPE_EXPLICIT"
8762 else
8763
8764 { echo "$as_me:$LINENO: checking for kevent" >&5
8765 echo $ECHO_N "checking for kevent... $ECHO_C" >&6; }
8766 if test "${ac_cv_func_kevent+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h. */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
8776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8777 #define kevent innocuous_kevent
8778
8779 /* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char kevent (); below.
8781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782 <limits.h> exists even on freestanding compilers. */
8783
8784 #ifdef __STDC__
8785 # include <limits.h>
8786 #else
8787 # include <assert.h>
8788 #endif
8789
8790 #undef kevent
8791
8792 /* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
8795 #ifdef __cplusplus
8796 extern "C"
8797 #endif
8798 char kevent ();
8799 /* The GNU C library defines this for functions which it implements
8800 to always fail with ENOSYS. Some functions are actually named
8801 something starting with __ and the normal name is an alias. */
8802 #if defined __stub_kevent || defined __stub___kevent
8803 choke me
8804 #endif
8805
8806 int
8807 main ()
8808 {
8809 return kevent ();
8810 ;
8811 return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (ac_try="$ac_link"
8816 case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_link") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest$ac_exeext &&
8831 $as_test_x conftest$ac_exeext; then
8832 ac_cv_func_kevent=yes
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_func_kevent=no
8838 fi
8839
8840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8841 conftest$ac_exeext conftest.$ac_ext
8842 fi
8843 { echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
8844 echo "${ECHO_T}$ac_cv_func_kevent" >&6; }
8845 if test $ac_cv_func_kevent = yes; then
8846
8847 SELECT_TYPE="kqueue"
8848
8849 else
8850
8851 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8852 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8853 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
8854 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 fi
8857 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8858 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
8859 else
8860 # Is the header compilable?
8861 { echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
8862 echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; }
8863 cat >conftest.$ac_ext <<_ACEOF
8864 /* confdefs.h. */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h. */
8869 $ac_includes_default
8870 #include <sys/epoll.h>
8871 _ACEOF
8872 rm -f conftest.$ac_objext
8873 if { (ac_try="$ac_compile"
8874 case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877 esac
8878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_header_compiler=yes
8890 else
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 ac_header_compiler=no
8895 fi
8896
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8899 echo "${ECHO_T}$ac_header_compiler" >&6; }
8900
8901 # Is the header present?
8902 { echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
8903 echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; }
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8910 #include <sys/epoll.h>
8911 _ACEOF
8912 if { (ac_try="$ac_cpp conftest.$ac_ext"
8913 case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } >/dev/null && {
8925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8926 test ! -s conftest.err
8927 }; then
8928 ac_header_preproc=yes
8929 else
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_header_preproc=no
8934 fi
8935
8936 rm -f conftest.err conftest.$ac_ext
8937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8938 echo "${ECHO_T}$ac_header_preproc" >&6; }
8939
8940 # So? What about this header?
8941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8942 yes:no: )
8943 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
8944 echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
8946 echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
8947 ac_header_preproc=yes
8948 ;;
8949 no:yes:* )
8950 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
8951 echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
8952 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5
8953 echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;}
8954 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
8955 echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
8956 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5
8957 echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;}
8958 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
8959 echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
8961 echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
8962
8963 ;;
8964 esac
8965 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
8966 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
8967 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970 ac_cv_header_sys_epoll_h=$ac_header_preproc
8971 fi
8972 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
8973 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
8974
8975 fi
8976 if test $ac_cv_header_sys_epoll_h = yes; then
8977 HAS_EPOLL=1
8978 else
8979 HAS_EPOLL=0
8980 fi
8981
8982
8983 if test $HAS_EPOLL -eq 1; then
8984 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
8985 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
8986 if test "$cross_compiling" = yes; then
8987 { echo "$as_me:$LINENO: result: no" >&5
8988 echo "${ECHO_T}no" >&6; }
8989 HAS_EPOLL=0
8990 else
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 #include <sys/epoll.h>
8998 #include <sys/syscall.h>
8999 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
9000 #if !defined(__NR_epoll_create)
9001 #if defined(__ia64__)
9002 #define __NR_epoll_create 1243
9003 #elif defined(__x86_64__)
9004 #define __NR_epoll_create 214
9005 #elif defined(__sparc64__) || defined(__sparc__)
9006 #define __NR_epoll_create 193
9007 #elif defined(__s390__) || defined(__m68k__)
9008 #define __NR_epoll_create 249
9009 #elif defined(__ppc64__) || defined(__ppc__)
9010 #define __NR_epoll_create 236
9011 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
9012 #define __NR_epoll_create 224
9013 #elif defined(__alpha__)
9014 #define __NR_epoll_create 407
9015 #elif defined(__sh64__)
9016 #define __NR_epoll_create 282
9017 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
9018 #define __NR_epoll_create 254
9019 #else
9020 #error No system call numbers defined for epoll family.
9021 #endif
9022 #endif
9023 _syscall1(int, epoll_create, int, size)
9024 #endif
9025 main() { return epoll_create(256) == -1 ? 1 : 0; }
9026 _ACEOF
9027 rm -f conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9029 case "(($ac_try" in
9030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_link") 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9038 { (case "(($ac_try" in
9039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040 *) ac_try_echo=$ac_try;;
9041 esac
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_try") 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 { echo "$as_me:$LINENO: result: yes" >&5
9048 echo "${ECHO_T}yes" >&6; }
9049 SELECT_TYPE="epoll"
9050 else
9051 echo "$as_me: program exited with status $ac_status" >&5
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 ( exit $ac_status )
9056 { echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6; }
9058 HAS_EPOLL=0
9059 fi
9060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9061 fi
9062
9063
9064 fi
9065 if test $HAS_EPOLL -eq 0; then
9066 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
9067 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
9068 if test -c "/dev/poll"; then
9069 { echo "$as_me:$LINENO: result: yes" >&5
9070 echo "${ECHO_T}yes" >&6; }
9071
9072
9073 for ac_header in devpoll.h sys/devpoll.h
9074 do
9075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 fi
9082 ac_res=`eval echo '${'$as_ac_Header'}'`
9083 { echo "$as_me:$LINENO: result: $ac_res" >&5
9084 echo "${ECHO_T}$ac_res" >&6; }
9085 else
9086 # Is the header compilable?
9087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9095 $ac_includes_default
9096 #include <$ac_header>
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (ac_try="$ac_compile"
9100 case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_compile") 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && {
9112 test -z "$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9114 } && test -s conftest.$ac_objext; then
9115 ac_header_compiler=yes
9116 else
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120 ac_header_compiler=no
9121 fi
9122
9123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9125 echo "${ECHO_T}$ac_header_compiler" >&6; }
9126
9127 # Is the header present?
9128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9130 cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h. */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h. */
9136 #include <$ac_header>
9137 _ACEOF
9138 if { (ac_try="$ac_cpp conftest.$ac_ext"
9139 case "(($ac_try" in
9140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9141 *) ac_try_echo=$ac_try;;
9142 esac
9143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9145 ac_status=$?
9146 grep -v '^ *+' conftest.er1 >conftest.err
9147 rm -f conftest.er1
9148 cat conftest.err >&5
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); } >/dev/null && {
9151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9152 test ! -s conftest.err
9153 }; then
9154 ac_header_preproc=yes
9155 else
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 ac_header_preproc=no
9160 fi
9161
9162 rm -f conftest.err conftest.$ac_ext
9163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9164 echo "${ECHO_T}$ac_header_preproc" >&6; }
9165
9166 # So? What about this header?
9167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9168 yes:no: )
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9173 ac_header_preproc=yes
9174 ;;
9175 no:yes:* )
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9188
9189 ;;
9190 esac
9191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196 eval "$as_ac_Header=\$ac_header_preproc"
9197 fi
9198 ac_res=`eval echo '${'$as_ac_Header'}'`
9199 { echo "$as_me:$LINENO: result: $ac_res" >&5
9200 echo "${ECHO_T}$ac_res" >&6; }
9201
9202 fi
9203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9204 cat >>confdefs.h <<_ACEOF
9205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206 _ACEOF
9207
9208 fi
9209
9210 done
9211
9212 SELECT_TYPE="devpoll"
9213 else
9214 { echo "$as_me:$LINENO: result: no" >&5
9215 echo "${ECHO_T}no" >&6; }
9216 { echo "$as_me:$LINENO: checking for RT Signal IO" >&5
9217 echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6; }
9218
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 #define _GNU_SOURCE
9226 #include <fcntl.h>
9227 #ifdef F_SETSIG
9228 YUP_HAVE_F_SETSIG
9229 #endif
9230
9231 _ACEOF
9232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9233 $EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then
9234
9235 SELECT_TYPE="sigio"
9236 { echo "$as_me:$LINENO: result: yes" >&5
9237 echo "${ECHO_T}yes" >&6; }
9238
9239 else
9240
9241 { echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6; }
9243 { echo "$as_me:$LINENO: checking for poll" >&5
9244 echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
9245 if test "${ac_cv_func_poll+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
9255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9256 #define poll innocuous_poll
9257
9258 /* System header to define __stub macros and hopefully few prototypes,
9259 which can conflict with char poll (); below.
9260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9261 <limits.h> exists even on freestanding compilers. */
9262
9263 #ifdef __STDC__
9264 # include <limits.h>
9265 #else
9266 # include <assert.h>
9267 #endif
9268
9269 #undef poll
9270
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9274 #ifdef __cplusplus
9275 extern "C"
9276 #endif
9277 char poll ();
9278 /* The GNU C library defines this for functions which it implements
9279 to always fail with ENOSYS. Some functions are actually named
9280 something starting with __ and the normal name is an alias. */
9281 #if defined __stub_poll || defined __stub___poll
9282 choke me
9283 #endif
9284
9285 int
9286 main ()
9287 {
9288 return poll ();
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (ac_try="$ac_link"
9295 case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_link") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest$ac_exeext &&
9310 $as_test_x conftest$ac_exeext; then
9311 ac_cv_func_poll=yes
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_cv_func_poll=no
9317 fi
9318
9319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9320 conftest$ac_exeext conftest.$ac_ext
9321 fi
9322 { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
9323 echo "${ECHO_T}$ac_cv_func_poll" >&6; }
9324 if test $ac_cv_func_poll = yes; then
9325 SELECT_TYPE="poll"
9326 else
9327
9328 { echo "$as_me:$LINENO: checking for select" >&5
9329 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
9330 if test "${ac_cv_func_select+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 else
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h. */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 /* Define select to an innocuous variant, in case <limits.h> declares select.
9340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9341 #define select innocuous_select
9342
9343 /* System header to define __stub macros and hopefully few prototypes,
9344 which can conflict with char select (); below.
9345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9346 <limits.h> exists even on freestanding compilers. */
9347
9348 #ifdef __STDC__
9349 # include <limits.h>
9350 #else
9351 # include <assert.h>
9352 #endif
9353
9354 #undef select
9355
9356 /* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
9359 #ifdef __cplusplus
9360 extern "C"
9361 #endif
9362 char select ();
9363 /* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366 #if defined __stub_select || defined __stub___select
9367 choke me
9368 #endif
9369
9370 int
9371 main ()
9372 {
9373 return select ();
9374 ;
9375 return 0;
9376 }
9377 _ACEOF
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (ac_try="$ac_link"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext &&
9395 $as_test_x conftest$ac_exeext; then
9396 ac_cv_func_select=yes
9397 else
9398 echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401 ac_cv_func_select=no
9402 fi
9403
9404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9405 conftest$ac_exeext conftest.$ac_ext
9406 fi
9407 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
9408 echo "${ECHO_T}$ac_cv_func_select" >&6; }
9409 if test $ac_cv_func_select = yes; then
9410 SELECT_TYPE="select"
9411 else
9412 { { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5
9413 echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;}
9414 { (exit 1); exit 1; }; }
9415
9416 fi
9417
9418
9419 fi
9420
9421
9422 fi
9423 rm -f conftest*
9424
9425 fi
9426 fi
9427
9428 fi
9429
9430
9431 fi
9432
9433 echo "Using $SELECT_TYPE for select loop."
9434
9435
9436 cat >>confdefs.h <<_ACEOF
9437 #define SELECT_TYPE "$SELECT_TYPE"
9438 _ACEOF
9439
9440
9441
9442
9443
9444 # Check whether --enable-clobber was given.
9445 if test "${enable_clobber+set}" = set; then
9446 enableval=$enable_clobber; clobber=$enableval
9447 else
9448 clobber=no
9449 fi
9450
9451
9452 if test "$clobber" = yes; then
9453 CLOBBER=yes
9454
9455 fi
9456
9457 # Check whether --enable-assert was given.
9458 if test "${enable_assert+set}" = set; then
9459 enableval=$enable_assert; assert=$enableval
9460 else
9461 assert=no
9462 fi
9463
9464
9465 if test "$assert" = no; then
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define NDEBUG 1
9469 _ACEOF
9470
9471 fi
9472
9473 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
9474 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
9475 # Check whether --enable-profile was given.
9476 if test "${enable_profile+set}" = set; then
9477 enableval=$enable_profile; profile=$enableval
9478 else
9479 profile=no
9480 fi
9481
9482
9483 if test "$profile" = yes; then
9484 if test "$ac_cv_c_compiler_gnu" = yes; then
9485 IRC_CFLAGS="$IRC_CFLAGS -pg -static"
9486 { echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5
9487 echo "${ECHO_T}yes, adding -pg -static" >&6; }
9488 else
9489 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
9490 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
9491 fi
9492 else
9493 { echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6; }
9495 fi
9496
9497 { echo "$as_me:$LINENO: checking if you want ElectricFence" >&5
9498 echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6; }
9499 # Check whether --enable-efence was given.
9500 if test "${enable_efence+set}" = set; then
9501 enableval=$enable_efence;
9502 if test "$enableval" != no; then
9503 if test ! -z "$enableval" -a "$enableval" != yes; then
9504 LIBS="$LIBS -L$enableval"
9505 fi
9506
9507 { echo "$as_me:$LINENO: checking for malloc in -lefence" >&5
9508 echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6; }
9509 if test "${ac_cv_lib_efence_malloc+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512 ac_check_lib_save_LIBS=$LIBS
9513 LIBS="-lefence $LIBS"
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char malloc ();
9528 int
9529 main ()
9530 {
9531 return malloc ();
9532 ;
9533 return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9538 case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9541 esac
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_link") 2>conftest.er1
9544 ac_status=$?
9545 grep -v '^ *+' conftest.er1 >conftest.err
9546 rm -f conftest.er1
9547 cat conftest.err >&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest$ac_exeext &&
9553 $as_test_x conftest$ac_exeext; then
9554 ac_cv_lib_efence_malloc=yes
9555 else
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ac_cv_lib_efence_malloc=no
9560 fi
9561
9562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9563 conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_check_lib_save_LIBS
9565 fi
9566 { echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5
9567 echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6; }
9568 if test $ac_cv_lib_efence_malloc = yes; then
9569
9570 LIBS="$LIBS -lefence"
9571 { echo "$as_me:$LINENO: result: yes" >&5
9572 echo "${ECHO_T}yes" >&6; }
9573
9574 else
9575 { echo "$as_me:$LINENO: result: not found" >&5
9576 echo "${ECHO_T}not found" >&6; }
9577 fi
9578
9579 else
9580 { echo "$as_me:$LINENO: result: no" >&5
9581 echo "${ECHO_T}no" >&6; }
9582 fi
9583
9584 else
9585 { echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6; }
9587 fi
9588
9589
9590 { echo "$as_me:$LINENO: checking if you want the block allocator" >&5
9591 echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6; }
9592 # Check whether --enable-block-alloc was given.
9593 if test "${enable_block_alloc+set}" = set; then
9594 enableval=$enable_block_alloc; balloc=$enableval
9595 else
9596 balloc=yes
9597 fi
9598
9599
9600 if test "$balloc" = no; then
9601
9602
9603 cat >>confdefs.h <<\_ACEOF
9604 #define NOBALLOC 1
9605 _ACEOF
9606
9607 else
9608 BALLOC_C=balloc.c
9609
9610 fi
9611
9612 { echo "$as_me:$LINENO: result: $balloc" >&5
9613 echo "${ECHO_T}$balloc" >&6; }
9614
9615 # Check whether --enable-warnings was given.
9616 if test "${enable_warnings+set}" = set; then
9617 enableval=$enable_warnings; IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wextra"
9618 fi
9619
9620
9621
9622 # Check whether --enable-small-net was given.
9623 if test "${enable_small_net+set}" = set; then
9624 enableval=$enable_small_net; small_net=$enableval
9625 else
9626 small_net=no
9627 fi
9628
9629
9630 if test "$small_net" = yes; then
9631
9632 cat >>confdefs.h <<\_ACEOF
9633 #define NICKNAMEHISTORYLENGTH 1500
9634 _ACEOF
9635
9636
9637 cat >>confdefs.h <<\_ACEOF
9638 #define CHANNEL_HEAP_SIZE 256
9639 _ACEOF
9640
9641
9642 cat >>confdefs.h <<\_ACEOF
9643 #define BAN_HEAP_SIZE 128
9644 _ACEOF
9645
9646
9647 cat >>confdefs.h <<\_ACEOF
9648 #define CLIENT_HEAP_SIZE 256
9649 _ACEOF
9650
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define LCLIENT_HEAP_SIZE 128
9654 _ACEOF
9655
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define DNODE_HEAP_SIZE 256
9659 _ACEOF
9660
9661
9662 cat >>confdefs.h <<\_ACEOF
9663 #define TOPIC_HEAP_SIZE 256
9664 _ACEOF
9665
9666
9667 cat >>confdefs.h <<\_ACEOF
9668 #define DBUF_HEAP_SIZE 64
9669 _ACEOF
9670
9671 else
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define NICKNAMEHISTORYLENGTH 15000
9675 _ACEOF
9676
9677
9678 cat >>confdefs.h <<\_ACEOF
9679 #define CHANNEL_HEAP_SIZE 1024
9680 _ACEOF
9681
9682
9683 cat >>confdefs.h <<\_ACEOF
9684 #define BAN_HEAP_SIZE 1024
9685 _ACEOF
9686
9687
9688 cat >>confdefs.h <<\_ACEOF
9689 #define CLIENT_HEAP_SIZE 1024
9690 _ACEOF
9691
9692
9693 cat >>confdefs.h <<\_ACEOF
9694 #define LCLIENT_HEAP_SIZE 512
9695 _ACEOF
9696
9697
9698 cat >>confdefs.h <<\_ACEOF
9699 #define DNODE_HEAP_SIZE 2048
9700 _ACEOF
9701
9702
9703 cat >>confdefs.h <<\_ACEOF
9704 #define TOPIC_HEAP_SIZE 1024
9705 _ACEOF
9706
9707
9708 cat >>confdefs.h <<\_ACEOF
9709 #define DBUF_HEAP_SIZE 512
9710 _ACEOF
9711
9712 fi
9713
9714 # Check whether --enable-efnet was given.
9715 if test "${enable_efnet+set}" = set; then
9716 enableval=$enable_efnet; efnet=$enableval
9717 else
9718 efnet=no
9719 fi
9720
9721
9722 if test "$efnet" = yes; then
9723
9724 cat >>confdefs.h <<\_ACEOF
9725 #define EFNET 1
9726 _ACEOF
9727
9728
9729 cat >>confdefs.h <<\_ACEOF
9730 #define TS5_ONLY 1
9731 _ACEOF
9732
9733 echo "Building ircd for use with EFnet"
9734 EXAMPLE_CONF=example.efnet.conf
9735 else
9736
9737 cat >>confdefs.h <<\_ACEOF
9738 #define INVARIANTS 1
9739 _ACEOF
9740
9741 EXAMPLE_CONF=example.conf
9742 fi
9743
9744 # Check whether --enable-gline-voting was given.
9745 if test "${enable_gline_voting+set}" = set; then
9746 enableval=$enable_gline_voting; gline_voting=$enableval
9747 else
9748 gline_voting=yes
9749 fi
9750
9751
9752 if test "$gline_voting" = yes; then
9753
9754 cat >>confdefs.h <<\_ACEOF
9755 #define GLINE_VOTING 1
9756 _ACEOF
9757
9758 echo "Building ircd with G-Line voting support"
9759 fi
9760
9761 # Check whether --enable-halfops was given.
9762 if test "${enable_halfops+set}" = set; then
9763 enableval=$enable_halfops; halfops=$enableval
9764 else
9765 halfops=no
9766 fi
9767
9768
9769 if test "$halfops" = yes; then
9770
9771 cat >>confdefs.h <<\_ACEOF
9772 #define HALFOPS 1
9773 _ACEOF
9774
9775 fi
9776
9777
9778
9779 { echo "$as_me:$LINENO: checking for syslog options" >&5
9780 echo $ECHO_N "checking for syslog options... $ECHO_C" >&6; }
9781
9782 # Check whether --enable-syslog was given.
9783 if test "${enable_syslog+set}" = set; then
9784 enableval=$enable_syslog;
9785
9786 if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then
9787
9788 if test "$enableval" != no; then
9789 syslogstuff=core
9790
9791 for option in $enableval; do
9792 case "$option" in
9793 kill)
9794 syslogstuff="$syslogstuff kill"
9795
9796 cat >>confdefs.h <<\_ACEOF
9797 #define SYSLOG_KILL 1
9798 _ACEOF
9799
9800 ;;
9801 squit)
9802 syslogstuff="$syslogstuff squit"
9803
9804 cat >>confdefs.h <<\_ACEOF
9805 #define SYSLOG_SQUIT 1
9806 _ACEOF
9807
9808 ;;
9809 connect)
9810 syslogstuff="$syslogstuff connect"
9811
9812 cat >>confdefs.h <<\_ACEOF
9813 #define SYSLOG_CONNECT 1
9814 _ACEOF
9815
9816 ;;
9817 users)
9818 syslogstuff="$syslogstuff users"
9819
9820 cat >>confdefs.h <<\_ACEOF
9821 #define SYSLOG_USERS 1
9822 _ACEOF
9823
9824 ;;
9825 oper)
9826 syslogstuff="$syslogstuff oper"
9827
9828 cat >>confdefs.h <<\_ACEOF
9829 #define SYSLOG_OPER 1
9830 _ACEOF
9831
9832 ;;
9833 yes)
9834 ;;
9835 *)
9836 { echo "$as_me:$LINENO: WARNING: unknown event $option" >&5
9837 echo "$as_me: WARNING: unknown event $option" >&2;}
9838 ;;
9839 esac
9840 done
9841
9842 if test ! -z "$syslogstuff" -o "$enableval" = yes; then
9843
9844 cat >>confdefs.h <<\_ACEOF
9845 #define USE_SYSLOG 1
9846 _ACEOF
9847
9848 fi
9849 else syslogstuff=none
9850 fi
9851
9852 else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5
9853 echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;}
9854 syslogstuff=none
9855 fi
9856
9857 else
9858 syslogstuff=none
9859 fi
9860
9861
9862 { echo "$as_me:$LINENO: result: $syslogstuff" >&5
9863 echo "${ECHO_T}$syslogstuff" >&6; }
9864
9865
9866 # Check whether --with-syslog-facility was given.
9867 if test "${with_syslog_facility+set}" = set; then
9868 withval=$with_syslog_facility; facility=$withval
9869 else
9870 facility="LOG_LOCAL4"
9871 fi
9872
9873
9874 if test "$syslogstuff" != none; then
9875
9876 cat >>confdefs.h <<_ACEOF
9877 #define LOG_FACILITY $facility
9878 _ACEOF
9879
9880 fi
9881
9882
9883 # Check whether --with-nicklen was given.
9884 if test "${with_nicklen+set}" = set; then
9885 withval=$with_nicklen; NICKLEN="$withval"
9886 else
9887 NICKLEN="9"
9888 fi
9889
9890
9891
9892 # Check whether --with-topiclen was given.
9893 if test "${with_topiclen+set}" = set; then
9894 withval=$with_topiclen;
9895 if test $withval -ge 390; then
9896 TOPICLEN=390
9897 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
9898 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
9899 else
9900 TOPICLEN=$withval
9901 fi
9902
9903 else
9904 TOPICLEN=160
9905 fi
9906
9907
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define TOPICLEN ${TOPICLEN}
9911 _ACEOF
9912
9913
9914 cat >>confdefs.h <<_ACEOF
9915 #define NICKLEN (${NICKLEN}+1)
9916 _ACEOF
9917
9918
9919 # Check whether --enable-shared-modules was given.
9920 if test "${enable_shared_modules+set}" = set; then
9921 enableval=$enable_shared_modules; shared_modules=$enableval
9922 else
9923 shared_modules="yes"
9924 fi
9925
9926
9927 if test "$shared_modules" = yes; then
9928
9929 if test "$profile" = "no"; then
9930 shared_modules="yes"
9931 else
9932 { echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5
9933 echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;}
9934 shared_modules="no"
9935 fi
9936
9937 if test "$CYGWIN" = yes; then
9938 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
9939 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
9940 shared_modules="no"
9941 fi
9942
9943 if test "$CC" = tcc -a "$TenDRA" = "no"; then
9944 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
9945 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
9946 shared_modules="no"
9947 fi
9948 fi
9949
9950 if test "$shared_modules" = yes; then
9951 DYNLINK_C=dynlink.c
9952
9953 for ac_header in dlfcn.h
9954 do
9955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 fi
9962 ac_res=`eval echo '${'$as_ac_Header'}'`
9963 { echo "$as_me:$LINENO: result: $ac_res" >&5
9964 echo "${ECHO_T}$ac_res" >&6; }
9965 else
9966 # Is the header compilable?
9967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 $ac_includes_default
9976 #include <$ac_header>
9977 _ACEOF
9978 rm -f conftest.$ac_objext
9979 if { (ac_try="$ac_compile"
9980 case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_compile") 2>conftest.er1
9986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest.$ac_objext; then
9995 ac_header_compiler=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 ac_header_compiler=no
10001 fi
10002
10003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10005 echo "${ECHO_T}$ac_header_compiler" >&6; }
10006
10007 # Is the header present?
10008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10010 cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #include <$ac_header>
10017 _ACEOF
10018 if { (ac_try="$ac_cpp conftest.$ac_ext"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10025 ac_status=$?
10026 grep -v '^ *+' conftest.er1 >conftest.err
10027 rm -f conftest.er1
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } >/dev/null && {
10031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10033 }; then
10034 ac_header_preproc=yes
10035 else
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10038
10039 ac_header_preproc=no
10040 fi
10041
10042 rm -f conftest.err conftest.$ac_ext
10043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 echo "${ECHO_T}$ac_header_preproc" >&6; }
10045
10046 # So? What about this header?
10047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10048 yes:no: )
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10053 ac_header_preproc=yes
10054 ;;
10055 no:yes:* )
10056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10068
10069 ;;
10070 esac
10071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 else
10076 eval "$as_ac_Header=\$ac_header_preproc"
10077 fi
10078 ac_res=`eval echo '${'$as_ac_Header'}'`
10079 { echo "$as_me:$LINENO: result: $ac_res" >&5
10080 echo "${ECHO_T}$ac_res" >&6; }
10081
10082 fi
10083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 _ACEOF
10087
10088 fi
10089
10090 done
10091
10092 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10093 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
10094 if test "${ac_cv_search_shl_load+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 ac_func_search_save_LIBS=$LIBS
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h. */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10108 #ifdef __cplusplus
10109 extern "C"
10110 #endif
10111 char shl_load ();
10112 int
10113 main ()
10114 {
10115 return shl_load ();
10116 ;
10117 return 0;
10118 }
10119 _ACEOF
10120 for ac_lib in '' dld; do
10121 if test -z "$ac_lib"; then
10122 ac_res="none required"
10123 else
10124 ac_res=-l$ac_lib
10125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10126 fi
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10132 esac
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_link") 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } && {
10141 test -z "$ac_c_werror_flag" ||
10142 test ! -s conftest.err
10143 } && test -s conftest$ac_exeext &&
10144 $as_test_x conftest$ac_exeext; then
10145 ac_cv_search_shl_load=$ac_res
10146 else
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150
10151 fi
10152
10153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10154 conftest$ac_exeext
10155 if test "${ac_cv_search_shl_load+set}" = set; then
10156 break
10157 fi
10158 done
10159 if test "${ac_cv_search_shl_load+set}" = set; then
10160 :
10161 else
10162 ac_cv_search_shl_load=no
10163 fi
10164 rm conftest.$ac_ext
10165 LIBS=$ac_func_search_save_LIBS
10166 fi
10167 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
10168 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
10169 ac_res=$ac_cv_search_shl_load
10170 if test "$ac_res" != no; then
10171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10172
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_SHL_LOAD 1
10176 _ACEOF
10177
10178 SUFFIX=".sl"
10179 MOD_TARGET=hpux_shared
10180 SEDOBJ="s/\.o/.sl/g"
10181
10182 else
10183
10184 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10185 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
10186 if test "${ac_cv_search_dlopen+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189 ac_func_search_save_LIBS=$LIBS
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h. */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196
10197 /* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 char dlopen ();
10204 int
10205 main ()
10206 {
10207 return dlopen ();
10208 ;
10209 return 0;
10210 }
10211 _ACEOF
10212 for ac_lib in '' dl c_r; do
10213 if test -z "$ac_lib"; then
10214 ac_res="none required"
10215 else
10216 ac_res=-l$ac_lib
10217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10218 fi
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (ac_try="$ac_link"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_link") 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext &&
10236 $as_test_x conftest$ac_exeext; then
10237 ac_cv_search_dlopen=$ac_res
10238 else
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242
10243 fi
10244
10245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10246 conftest$ac_exeext
10247 if test "${ac_cv_search_dlopen+set}" = set; then
10248 break
10249 fi
10250 done
10251 if test "${ac_cv_search_dlopen+set}" = set; then
10252 :
10253 else
10254 ac_cv_search_dlopen=no
10255 fi
10256 rm conftest.$ac_ext
10257 LIBS=$ac_func_search_save_LIBS
10258 fi
10259 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10260 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
10261 ac_res=$ac_cv_search_dlopen
10262 if test "$ac_res" != no; then
10263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10264
10265
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_DLOPEN 1
10268 _ACEOF
10269
10270 SUFFIX=".so"
10271 MOD_TARGET=shared_modules
10272 SEDOBJ="s/\.o/.so/g"
10273 if test "$AppleGCC" = yes; then
10274
10275 for ac_header in mach-o/dyld.h
10276 do
10277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10282 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 fi
10284 ac_res=`eval echo '${'$as_ac_Header'}'`
10285 { echo "$as_me:$LINENO: result: $ac_res" >&5
10286 echo "${ECHO_T}$ac_res" >&6; }
10287 else
10288 # Is the header compilable?
10289 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10291 cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h. */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 $ac_includes_default
10298 #include <$ac_header>
10299 _ACEOF
10300 rm -f conftest.$ac_objext
10301 if { (ac_try="$ac_compile"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_compile") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest.$ac_objext; then
10317 ac_header_compiler=yes
10318 else
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_header_compiler=no
10323 fi
10324
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10327 echo "${ECHO_T}$ac_header_compiler" >&6; }
10328
10329 # Is the header present?
10330 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <$ac_header>
10339 _ACEOF
10340 if { (ac_try="$ac_cpp conftest.$ac_ext"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null && {
10353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 }; then
10356 ac_header_preproc=yes
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 ac_header_preproc=no
10362 fi
10363
10364 rm -f conftest.err conftest.$ac_ext
10365 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 echo "${ECHO_T}$ac_header_preproc" >&6; }
10367
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370 yes:no: )
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10376 ;;
10377 no:yes:* )
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10390
10391 ;;
10392 esac
10393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398 eval "$as_ac_Header=\$ac_header_preproc"
10399 fi
10400 ac_res=`eval echo '${'$as_ac_Header'}'`
10401 { echo "$as_me:$LINENO: result: $ac_res" >&5
10402 echo "${ECHO_T}$ac_res" >&6; }
10403
10404 fi
10405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408 _ACEOF
10409
10410 fi
10411
10412 done
10413
10414 fi
10415 { echo "$as_me:$LINENO: checking for dlsym" >&5
10416 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
10417 if test "${ac_cv_func_dlsym+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420 cat >conftest.$ac_ext <<_ACEOF
10421 /* confdefs.h. */
10422 _ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
10427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10428 #define dlsym innocuous_dlsym
10429
10430 /* System header to define __stub macros and hopefully few prototypes,
10431 which can conflict with char dlsym (); below.
10432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10433 <limits.h> exists even on freestanding compilers. */
10434
10435 #ifdef __STDC__
10436 # include <limits.h>
10437 #else
10438 # include <assert.h>
10439 #endif
10440
10441 #undef dlsym
10442
10443 /* Override any GCC internal prototype to avoid an error.
10444 Use char because int might match the return type of a GCC
10445 builtin and then its argument prototype would still apply. */
10446 #ifdef __cplusplus
10447 extern "C"
10448 #endif
10449 char dlsym ();
10450 /* The GNU C library defines this for functions which it implements
10451 to always fail with ENOSYS. Some functions are actually named
10452 something starting with __ and the normal name is an alias. */
10453 #if defined __stub_dlsym || defined __stub___dlsym
10454 choke me
10455 #endif
10456
10457 int
10458 main ()
10459 {
10460 return dlsym ();
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 rm -f conftest.$ac_objext conftest$ac_exeext
10466 if { (ac_try="$ac_link"
10467 case "(($ac_try" in
10468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469 *) ac_try_echo=$ac_try;;
10470 esac
10471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472 (eval "$ac_link") 2>conftest.er1
10473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
10477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && {
10479 test -z "$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 } && test -s conftest$ac_exeext &&
10482 $as_test_x conftest$ac_exeext; then
10483 ac_cv_func_dlsym=yes
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_cv_func_dlsym=no
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10492 conftest$ac_exeext conftest.$ac_ext
10493 fi
10494 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
10495 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
10496 if test $ac_cv_func_dlsym = yes; then
10497 :
10498 else
10499
10500 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
10501 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
10502 shared_modules=no
10503
10504 fi
10505
10506
10507
10508 for ac_func in dlfunc dlinfo
10509 do
10510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10514 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 else
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10524 #define $ac_func innocuous_$ac_func
10525
10526 /* System header to define __stub macros and hopefully few prototypes,
10527 which can conflict with char $ac_func (); below.
10528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10529 <limits.h> exists even on freestanding compilers. */
10530
10531 #ifdef __STDC__
10532 # include <limits.h>
10533 #else
10534 # include <assert.h>
10535 #endif
10536
10537 #undef $ac_func
10538
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10542 #ifdef __cplusplus
10543 extern "C"
10544 #endif
10545 char $ac_func ();
10546 /* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
10549 #if defined __stub_$ac_func || defined __stub___$ac_func
10550 choke me
10551 #endif
10552
10553 int
10554 main ()
10555 {
10556 return $ac_func ();
10557 ;
10558 return 0;
10559 }
10560 _ACEOF
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (ac_try="$ac_link"
10563 case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566 esac
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_link") 2>conftest.er1
10569 ac_status=$?
10570 grep -v '^ *+' conftest.er1 >conftest.err
10571 rm -f conftest.er1
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } && {
10575 test -z "$ac_c_werror_flag" ||
10576 test ! -s conftest.err
10577 } && test -s conftest$ac_exeext &&
10578 $as_test_x conftest$ac_exeext; then
10579 eval "$as_ac_var=yes"
10580 else
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584 eval "$as_ac_var=no"
10585 fi
10586
10587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10588 conftest$ac_exeext conftest.$ac_ext
10589 fi
10590 ac_res=`eval echo '${'$as_ac_var'}'`
10591 { echo "$as_me:$LINENO: result: $ac_res" >&5
10592 echo "${ECHO_T}$ac_res" >&6; }
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h <<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10596 _ACEOF
10597
10598 fi
10599 done
10600
10601
10602 else
10603
10604 shared_modules=no
10605
10606 fi
10607
10608
10609 fi
10610
10611 fi
10612
10613
10614 cat >>confdefs.h <<_ACEOF
10615 #define SHARED_SUFFIX "$SUFFIX"
10616 _ACEOF
10617
10618
10619 if test "$shared_modules" = yes; then
10620 # The GNU linker requires the -export-dynamic option to make
10621 # all symbols visible in the dynamic symbol table.
10622 hold_ldflags=$LDFLAGS
10623 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
10624 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
10625 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10626 cat >conftest.$ac_ext <<_ACEOF
10627 /* confdefs.h. */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632
10633 int
10634 main ()
10635 {
10636 int i;
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 rm -f conftest.$ac_objext conftest$ac_exeext
10642 if { (ac_try="$ac_link"
10643 case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_link") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest$ac_exeext &&
10658 $as_test_x conftest$ac_exeext; then
10659 found=yes
10660 else
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 found=no
10665 fi
10666
10667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10668 conftest$ac_exeext conftest.$ac_ext
10669 LDFLAGS=$hold_ldflags
10670
10671 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
10672 found="no, IRIX ld uses -B,dynamic"
10673 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
10674 fi
10675
10676 { echo "$as_me:$LINENO: result: $found" >&5
10677 echo "${ECHO_T}$found" >&6; }
10678
10679 if test "$found" = yes; then
10680 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
10681 fi
10682
10683 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
10684 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
10685 if test "$SGS" = "yes"; then
10686 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
10687 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
10688 PICFLAGS="-KPIC -DPIC -G"
10689 fi
10690
10691 if test "$AppleGCC" = "yes"; then
10692 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
10693 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
10694 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
10695 fi
10696 if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then
10697 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
10698 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
10699 PICFLAGS="+z -r -q -n -c"
10700 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
10701 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
10702
10703 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
10704 { echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6; }
10706 else
10707 { echo "$as_me:$LINENO: result: yes" >&5
10708 echo "${ECHO_T}yes" >&6; }
10709 PICFLAGS="$PICFLAGS +ESfic"
10710 fi
10711
10712 LDFLAGS="${LDFLAGS} -Wl,-E"
10713 fi
10714 if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then
10715 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
10716 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
10717 PICFLAGS="-shared -expect_unresolved '*' "
10718 LDFLAGS="-call_shared"
10719 fi
10720 if test -z "$PICFLAGS"; then
10721 if test "$ac_cv_c_compiler_gnu" = "yes"; then
10722 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
10723 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
10724 PICFLAGS="-fPIC -DPIC -shared"
10725 else
10726 { echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6; }
10728 shared_modules=no
10729 fi
10730 fi
10731 fi
10732
10733 if test "$shared_modules" = no; then
10734 DYNLINK_C=""
10735 MOD_TARGET="libmodules.a"
10736 MODULES_LIBS="../modules/libmodules.a"
10737 SEDOBJ=""
10738
10739 cat >>confdefs.h <<\_ACEOF
10740 #define STATIC_MODULES 1
10741 _ACEOF
10742
10743 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
10744 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
10745 fi
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760 if test "$prefix" = "NONE"; then
10761
10762 cat >>confdefs.h <<_ACEOF
10763 #define IRCD_PREFIX "$ac_default_prefix"
10764 _ACEOF
10765
10766
10767 else
10768
10769
10770 prefix=`echo $prefix | sed 's/\/$//'`
10771
10772 cat >>confdefs.h <<_ACEOF
10773 #define IRCD_PREFIX "$prefix"
10774 _ACEOF
10775
10776
10777 fi
10778
10779 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile lib/Makefile lib/pcre/Makefile"
10780
10781
10782 cat >confcache <<\_ACEOF
10783 # This file is a shell script that caches the results of configure
10784 # tests run on this system so they can be shared between configure
10785 # scripts and configure runs, see configure's option --config-cache.
10786 # It is not useful on other systems. If it contains results you don't
10787 # want to keep, you may remove or edit it.
10788 #
10789 # config.status only pays attention to the cache file if you give it
10790 # the --recheck option to rerun configure.
10791 #
10792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10794 # following values.
10795
10796 _ACEOF
10797
10798 # The following way of writing the cache mishandles newlines in values,
10799 # but we know of no workaround that is simple, portable, and efficient.
10800 # So, we kill variables containing newlines.
10801 # Ultrix sh set writes to stderr and can't be redirected directly,
10802 # and sets the high bit in the cache file unless we assign to the vars.
10803 (
10804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10805 eval ac_val=\$$ac_var
10806 case $ac_val in #(
10807 *${as_nl}*)
10808 case $ac_var in #(
10809 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10810 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10811 esac
10812 case $ac_var in #(
10813 _ | IFS | as_nl) ;; #(
10814 *) $as_unset $ac_var ;;
10815 esac ;;
10816 esac
10817 done
10818
10819 (set) 2>&1 |
10820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10821 *${as_nl}ac_space=\ *)
10822 # `set' does not quote correctly, so add quotes (double-quote
10823 # substitution turns \\\\ into \\, and sed turns \\ into \).
10824 sed -n \
10825 "s/'/'\\\\''/g;
10826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10827 ;; #(
10828 *)
10829 # `set' quotes correctly as required by POSIX, so do not add quotes.
10830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10831 ;;
10832 esac |
10833 sort
10834 ) |
10835 sed '
10836 /^ac_cv_env_/b end
10837 t clear
10838 :clear
10839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10840 t end
10841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10842 :end' >>confcache
10843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10844 if test -w "$cache_file"; then
10845 test "x$cache_file" != "x/dev/null" &&
10846 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10847 echo "$as_me: updating cache $cache_file" >&6;}
10848 cat confcache >$cache_file
10849 else
10850 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10851 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10852 fi
10853 fi
10854 rm -f confcache
10855
10856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10857 # Let make expand exec_prefix.
10858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10859
10860 DEFS=-DHAVE_CONFIG_H
10861
10862 ac_libobjs=
10863 ac_ltlibobjs=
10864 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10865 # 1. Remove the extension, and $U if already installed.
10866 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10867 ac_i=`echo "$ac_i" | sed "$ac_script"`
10868 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10869 # will be set to the directory where LIBOBJS objects are built.
10870 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10871 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10872 done
10873 LIBOBJS=$ac_libobjs
10874
10875 LTLIBOBJS=$ac_ltlibobjs
10876
10877
10878
10879 : ${CONFIG_STATUS=./config.status}
10880 ac_clean_files_save=$ac_clean_files
10881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10882 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10883 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10884 cat >$CONFIG_STATUS <<_ACEOF
10885 #! $SHELL
10886 # Generated by $as_me.
10887 # Run this file to recreate the current configuration.
10888 # Compiler output produced by configure, useful for debugging
10889 # configure, is in config.log if it exists.
10890
10891 debug=false
10892 ac_cs_recheck=false
10893 ac_cs_silent=false
10894 SHELL=\${CONFIG_SHELL-$SHELL}
10895 _ACEOF
10896
10897 cat >>$CONFIG_STATUS <<\_ACEOF
10898 ## --------------------- ##
10899 ## M4sh Initialization. ##
10900 ## --------------------- ##
10901
10902 # Be more Bourne compatible
10903 DUALCASE=1; export DUALCASE # for MKS sh
10904 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10905 emulate sh
10906 NULLCMD=:
10907 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10908 # is contrary to our usage. Disable this feature.
10909 alias -g '${1+"$@"}'='"$@"'
10910 setopt NO_GLOB_SUBST
10911 else
10912 case `(set -o) 2>/dev/null` in
10913 *posix*) set -o posix ;;
10914 esac
10915
10916 fi
10917
10918
10919
10920
10921 # PATH needs CR
10922 # Avoid depending upon Character Ranges.
10923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10926 as_cr_digits='0123456789'
10927 as_cr_alnum=$as_cr_Letters$as_cr_digits
10928
10929 # The user is always right.
10930 if test "${PATH_SEPARATOR+set}" != set; then
10931 echo "#! /bin/sh" >conf$$.sh
10932 echo "exit 0" >>conf$$.sh
10933 chmod +x conf$$.sh
10934 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10935 PATH_SEPARATOR=';'
10936 else
10937 PATH_SEPARATOR=:
10938 fi
10939 rm -f conf$$.sh
10940 fi
10941
10942 # Support unset when possible.
10943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10944 as_unset=unset
10945 else
10946 as_unset=false
10947 fi
10948
10949
10950 # IFS
10951 # We need space, tab and new line, in precisely that order. Quoting is
10952 # there to prevent editors from complaining about space-tab.
10953 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10954 # splitting by setting IFS to empty value.)
10955 as_nl='
10956 '
10957 IFS=" "" $as_nl"
10958
10959 # Find who we are. Look in the path if we contain no directory separator.
10960 case $0 in
10961 *[\\/]* ) as_myself=$0 ;;
10962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10964 do
10965 IFS=$as_save_IFS
10966 test -z "$as_dir" && as_dir=.
10967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10968 done
10969 IFS=$as_save_IFS
10970
10971 ;;
10972 esac
10973 # We did not find ourselves, most probably we were run as `sh COMMAND'
10974 # in which case we are not to be found in the path.
10975 if test "x$as_myself" = x; then
10976 as_myself=$0
10977 fi
10978 if test ! -f "$as_myself"; then
10979 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10980 { (exit 1); exit 1; }
10981 fi
10982
10983 # Work around bugs in pre-3.0 UWIN ksh.
10984 for as_var in ENV MAIL MAILPATH
10985 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10986 done
10987 PS1='$ '
10988 PS2='> '
10989 PS4='+ '
10990
10991 # NLS nuisances.
10992 for as_var in \
10993 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10994 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10995 LC_TELEPHONE LC_TIME
10996 do
10997 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10998 eval $as_var=C; export $as_var
10999 else
11000 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11001 fi
11002 done
11003
11004 # Required to use basename.
11005 if expr a : '\(a\)' >/dev/null 2>&1 &&
11006 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11007 as_expr=expr
11008 else
11009 as_expr=false
11010 fi
11011
11012 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11013 as_basename=basename
11014 else
11015 as_basename=false
11016 fi
11017
11018
11019 # Name of the executable.
11020 as_me=`$as_basename -- "$0" ||
11021 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11022 X"$0" : 'X\(//\)$' \| \
11023 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11024 echo X/"$0" |
11025 sed '/^.*\/\([^/][^/]*\)\/*$/{
11026 s//\1/
11027 q
11028 }
11029 /^X\/\(\/\/\)$/{
11030 s//\1/
11031 q
11032 }
11033 /^X\/\(\/\).*/{
11034 s//\1/
11035 q
11036 }
11037 s/.*/./; q'`
11038
11039 # CDPATH.
11040 $as_unset CDPATH
11041
11042
11043
11044 as_lineno_1=$LINENO
11045 as_lineno_2=$LINENO
11046 test "x$as_lineno_1" != "x$as_lineno_2" &&
11047 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11048
11049 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11050 # uniformly replaced by the line number. The first 'sed' inserts a
11051 # line-number line after each line using $LINENO; the second 'sed'
11052 # does the real work. The second script uses 'N' to pair each
11053 # line-number line with the line containing $LINENO, and appends
11054 # trailing '-' during substitution so that $LINENO is not a special
11055 # case at line end.
11056 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11057 # scripts with optimization help from Paolo Bonzini. Blame Lee
11058 # E. McMahon (1931-1989) for sed's syntax. :-)
11059 sed -n '
11060 p
11061 /[$]LINENO/=
11062 ' <$as_myself |
11063 sed '
11064 s/[$]LINENO.*/&-/
11065 t lineno
11066 b
11067 :lineno
11068 N
11069 :loop
11070 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11071 t loop
11072 s/-\n.*//
11073 ' >$as_me.lineno &&
11074 chmod +x "$as_me.lineno" ||
11075 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11076 { (exit 1); exit 1; }; }
11077
11078 # Don't try to exec as it changes $[0], causing all sort of problems
11079 # (the dirname of $[0] is not the place where we might find the
11080 # original and so on. Autoconf is especially sensitive to this).
11081 . "./$as_me.lineno"
11082 # Exit status is that of the last command.
11083 exit
11084 }
11085
11086
11087 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11088 as_dirname=dirname
11089 else
11090 as_dirname=false
11091 fi
11092
11093 ECHO_C= ECHO_N= ECHO_T=
11094 case `echo -n x` in
11095 -n*)
11096 case `echo 'x\c'` in
11097 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11098 *) ECHO_C='\c';;
11099 esac;;
11100 *)
11101 ECHO_N='-n';;
11102 esac
11103
11104 if expr a : '\(a\)' >/dev/null 2>&1 &&
11105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11106 as_expr=expr
11107 else
11108 as_expr=false
11109 fi
11110
11111 rm -f conf$$ conf$$.exe conf$$.file
11112 if test -d conf$$.dir; then
11113 rm -f conf$$.dir/conf$$.file
11114 else
11115 rm -f conf$$.dir
11116 mkdir conf$$.dir
11117 fi
11118 echo >conf$$.file
11119 if ln -s conf$$.file conf$$ 2>/dev/null; then
11120 as_ln_s='ln -s'
11121 # ... but there are two gotchas:
11122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11124 # In both cases, we have to default to `cp -p'.
11125 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11126 as_ln_s='cp -p'
11127 elif ln conf$$.file conf$$ 2>/dev/null; then
11128 as_ln_s=ln
11129 else
11130 as_ln_s='cp -p'
11131 fi
11132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11133 rmdir conf$$.dir 2>/dev/null
11134
11135 if mkdir -p . 2>/dev/null; then
11136 as_mkdir_p=:
11137 else
11138 test -d ./-p && rmdir ./-p
11139 as_mkdir_p=false
11140 fi
11141
11142 if test -x / >/dev/null 2>&1; then
11143 as_test_x='test -x'
11144 else
11145 if ls -dL / >/dev/null 2>&1; then
11146 as_ls_L_option=L
11147 else
11148 as_ls_L_option=
11149 fi
11150 as_test_x='
11151 eval sh -c '\''
11152 if test -d "$1"; then
11153 test -d "$1/.";
11154 else
11155 case $1 in
11156 -*)set "./$1";;
11157 esac;
11158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11159 ???[sx]*):;;*)false;;esac;fi
11160 '\'' sh
11161 '
11162 fi
11163 as_executable_p=$as_test_x
11164
11165 # Sed expression to map a string onto a valid CPP name.
11166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11167
11168 # Sed expression to map a string onto a valid variable name.
11169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11170
11171
11172 exec 6>&1
11173
11174 # Save the log message, to keep $[0] and so on meaningful, and to
11175 # report actual input values of CONFIG_FILES etc. instead of their
11176 # values after options handling.
11177 ac_log="
11178 This file was extended by ircd-hybrid $as_me 7.2.4, which was
11179 generated by GNU Autoconf 2.61. Invocation command line was
11180
11181 CONFIG_FILES = $CONFIG_FILES
11182 CONFIG_HEADERS = $CONFIG_HEADERS
11183 CONFIG_LINKS = $CONFIG_LINKS
11184 CONFIG_COMMANDS = $CONFIG_COMMANDS
11185 $ $0 $@
11186
11187 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11188 "
11189
11190 _ACEOF
11191
11192 cat >>$CONFIG_STATUS <<_ACEOF
11193 # Files that config.status was made for.
11194 config_files="$ac_config_files"
11195 config_headers="$ac_config_headers"
11196
11197 _ACEOF
11198
11199 cat >>$CONFIG_STATUS <<\_ACEOF
11200 ac_cs_usage="\
11201 \`$as_me' instantiates files from templates according to the
11202 current configuration.
11203
11204 Usage: $0 [OPTIONS] [FILE]...
11205
11206 -h, --help print this help, then exit
11207 -V, --version print version number and configuration settings, then exit
11208 -q, --quiet do not print progress messages
11209 -d, --debug don't remove temporary files
11210 --recheck update $as_me by reconfiguring in the same conditions
11211 --file=FILE[:TEMPLATE]
11212 instantiate the configuration file FILE
11213 --header=FILE[:TEMPLATE]
11214 instantiate the configuration header FILE
11215
11216 Configuration files:
11217 $config_files
11218
11219 Configuration headers:
11220 $config_headers
11221
11222 Report bugs to <bug-autoconf@gnu.org>."
11223
11224 _ACEOF
11225 cat >>$CONFIG_STATUS <<_ACEOF
11226 ac_cs_version="\\
11227 ircd-hybrid config.status 7.2.4
11228 configured by $0, generated by GNU Autoconf 2.61,
11229 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11230
11231 Copyright (C) 2006 Free Software Foundation, Inc.
11232 This config.status script is free software; the Free Software Foundation
11233 gives unlimited permission to copy, distribute and modify it."
11234
11235 ac_pwd='$ac_pwd'
11236 srcdir='$srcdir'
11237 INSTALL='$INSTALL'
11238 _ACEOF
11239
11240 cat >>$CONFIG_STATUS <<\_ACEOF
11241 # If no file are specified by the user, then we need to provide default
11242 # value. By we need to know if files were specified by the user.
11243 ac_need_defaults=:
11244 while test $# != 0
11245 do
11246 case $1 in
11247 --*=*)
11248 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11249 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11250 ac_shift=:
11251 ;;
11252 *)
11253 ac_option=$1
11254 ac_optarg=$2
11255 ac_shift=shift
11256 ;;
11257 esac
11258
11259 case $ac_option in
11260 # Handling of the options.
11261 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11262 ac_cs_recheck=: ;;
11263 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11264 echo "$ac_cs_version"; exit ;;
11265 --debug | --debu | --deb | --de | --d | -d )
11266 debug=: ;;
11267 --file | --fil | --fi | --f )
11268 $ac_shift
11269 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11270 ac_need_defaults=false;;
11271 --header | --heade | --head | --hea )
11272 $ac_shift
11273 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11274 ac_need_defaults=false;;
11275 --he | --h)
11276 # Conflict between --help and --header
11277 { echo "$as_me: error: ambiguous option: $1
11278 Try \`$0 --help' for more information." >&2
11279 { (exit 1); exit 1; }; };;
11280 --help | --hel | -h )
11281 echo "$ac_cs_usage"; exit ;;
11282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11283 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11284 ac_cs_silent=: ;;
11285
11286 # This is an error.
11287 -*) { echo "$as_me: error: unrecognized option: $1
11288 Try \`$0 --help' for more information." >&2
11289 { (exit 1); exit 1; }; } ;;
11290
11291 *) ac_config_targets="$ac_config_targets $1"
11292 ac_need_defaults=false ;;
11293
11294 esac
11295 shift
11296 done
11297
11298 ac_configure_extra_args=
11299
11300 if $ac_cs_silent; then
11301 exec 6>/dev/null
11302 ac_configure_extra_args="$ac_configure_extra_args --silent"
11303 fi
11304
11305 _ACEOF
11306 cat >>$CONFIG_STATUS <<_ACEOF
11307 if \$ac_cs_recheck; then
11308 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11309 CONFIG_SHELL=$SHELL
11310 export CONFIG_SHELL
11311 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11312 fi
11313
11314 _ACEOF
11315 cat >>$CONFIG_STATUS <<\_ACEOF
11316 exec 5>>config.log
11317 {
11318 echo
11319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11320 ## Running $as_me. ##
11321 _ASBOX
11322 echo "$ac_log"
11323 } >&5
11324
11325 _ACEOF
11326 cat >>$CONFIG_STATUS <<_ACEOF
11327 _ACEOF
11328
11329 cat >>$CONFIG_STATUS <<\_ACEOF
11330
11331 # Handling of arguments.
11332 for ac_config_target in $ac_config_targets
11333 do
11334 case $ac_config_target in
11335 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
11336 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11337 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
11338 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
11339 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
11340 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
11341 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11342 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
11343 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
11344 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11345 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11346 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
11347 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11348 "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
11349
11350 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11352 { (exit 1); exit 1; }; };;
11353 esac
11354 done
11355
11356
11357 # If the user did not use the arguments to specify the items to instantiate,
11358 # then the envvar interface is used. Set only those that are not.
11359 # We use the long form for the default assignment because of an extremely
11360 # bizarre bug on SunOS 4.1.3.
11361 if $ac_need_defaults; then
11362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11363 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11364 fi
11365
11366 # Have a temporary directory for convenience. Make it in the build tree
11367 # simply because there is no reason against having it here, and in addition,
11368 # creating and moving files from /tmp can sometimes cause problems.
11369 # Hook for its removal unless debugging.
11370 # Note that there is a small window in which the directory will not be cleaned:
11371 # after its creation but before its name has been assigned to `$tmp'.
11372 $debug ||
11373 {
11374 tmp=
11375 trap 'exit_status=$?
11376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11377 ' 0
11378 trap '{ (exit 1); exit 1; }' 1 2 13 15
11379 }
11380 # Create a (secure) tmp directory for tmp files.
11381
11382 {
11383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11384 test -n "$tmp" && test -d "$tmp"
11385 } ||
11386 {
11387 tmp=./conf$$-$RANDOM
11388 (umask 077 && mkdir "$tmp")
11389 } ||
11390 {
11391 echo "$me: cannot create a temporary directory in ." >&2
11392 { (exit 1); exit 1; }
11393 }
11394
11395 #
11396 # Set up the sed scripts for CONFIG_FILES section.
11397 #
11398
11399 # No need to generate the scripts if there are no CONFIG_FILES.
11400 # This happens for instance when ./config.status config.h
11401 if test -n "$CONFIG_FILES"; then
11402
11403 _ACEOF
11404
11405
11406
11407 ac_delim='%!_!# '
11408 for ac_last_try in false false false false false :; do
11409 cat >conf$$subs.sed <<_ACEOF
11410 SHELL!$SHELL$ac_delim
11411 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11412 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11413 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11414 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11415 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11416 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11417 exec_prefix!$exec_prefix$ac_delim
11418 prefix!$prefix$ac_delim
11419 program_transform_name!$program_transform_name$ac_delim
11420 bindir!$bindir$ac_delim
11421 sbindir!$sbindir$ac_delim
11422 libexecdir!$libexecdir$ac_delim
11423 datarootdir!$datarootdir$ac_delim
11424 datadir!$datadir$ac_delim
11425 sysconfdir!$sysconfdir$ac_delim
11426 sharedstatedir!$sharedstatedir$ac_delim
11427 localstatedir!$localstatedir$ac_delim
11428 includedir!$includedir$ac_delim
11429 oldincludedir!$oldincludedir$ac_delim
11430 docdir!$docdir$ac_delim
11431 infodir!$infodir$ac_delim
11432 htmldir!$htmldir$ac_delim
11433 dvidir!$dvidir$ac_delim
11434 pdfdir!$pdfdir$ac_delim
11435 psdir!$psdir$ac_delim
11436 libdir!$libdir$ac_delim
11437 localedir!$localedir$ac_delim
11438 mandir!$mandir$ac_delim
11439 DEFS!$DEFS$ac_delim
11440 ECHO_C!$ECHO_C$ac_delim
11441 ECHO_N!$ECHO_N$ac_delim
11442 ECHO_T!$ECHO_T$ac_delim
11443 LIBS!$LIBS$ac_delim
11444 build_alias!$build_alias$ac_delim
11445 host_alias!$host_alias$ac_delim
11446 target_alias!$target_alias$ac_delim
11447 CC!$CC$ac_delim
11448 CFLAGS!$CFLAGS$ac_delim
11449 LDFLAGS!$LDFLAGS$ac_delim
11450 CPPFLAGS!$CPPFLAGS$ac_delim
11451 ac_ct_CC!$ac_ct_CC$ac_delim
11452 EXEEXT!$EXEEXT$ac_delim
11453 OBJEXT!$OBJEXT$ac_delim
11454 MKDEP!$MKDEP$ac_delim
11455 MAKEDEPEND!$MAKEDEPEND$ac_delim
11456 STDOUT!$STDOUT$ac_delim
11457 CPP!$CPP$ac_delim
11458 GREP!$GREP$ac_delim
11459 EGREP!$EGREP$ac_delim
11460 SET_MAKE!$SET_MAKE$ac_delim
11461 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11462 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11463 INSTALL_DATA!$INSTALL_DATA$ac_delim
11464 RM!$RM$ac_delim
11465 CP!$CP$ac_delim
11466 MV!$MV$ac_delim
11467 LN!$LN$ac_delim
11468 SED!$SED$ac_delim
11469 AR!$AR$ac_delim
11470 LD!$LD$ac_delim
11471 TEST!$TEST$ac_delim
11472 INET_MISC!$INET_MISC$ac_delim
11473 CRYPT_C!$CRYPT_C$ac_delim
11474 CRYPT_LIB!$CRYPT_LIB$ac_delim
11475 SNPRINTF_C!$SNPRINTF_C$ac_delim
11476 ENCSPEED!$ENCSPEED$ac_delim
11477 ZLIB_LD!$ZLIB_LD$ac_delim
11478 SELECT_TYPE!$SELECT_TYPE$ac_delim
11479 CLOBBER!$CLOBBER$ac_delim
11480 BALLOC_C!$BALLOC_C$ac_delim
11481 EXAMPLE_CONF!$EXAMPLE_CONF$ac_delim
11482 MODULES_LIBS!$MODULES_LIBS$ac_delim
11483 MOD_TARGET!$MOD_TARGET$ac_delim
11484 SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
11485 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
11486 SSL_LIBS!$SSL_LIBS$ac_delim
11487 PICFLAGS!$PICFLAGS$ac_delim
11488 IRC_CFLAGS!$IRC_CFLAGS$ac_delim
11489 SEDOBJ!$SEDOBJ$ac_delim
11490 DYNLINK_C!$DYNLINK_C$ac_delim
11491 LIBOBJS!$LIBOBJS$ac_delim
11492 LTLIBOBJS!$LTLIBOBJS$ac_delim
11493 _ACEOF
11494
11495 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
11496 break
11497 elif $ac_last_try; then
11498 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11499 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11500 { (exit 1); exit 1; }; }
11501 else
11502 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11503 fi
11504 done
11505
11506 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11507 if test -n "$ac_eof"; then
11508 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11509 ac_eof=`expr $ac_eof + 1`
11510 fi
11511
11512 cat >>$CONFIG_STATUS <<_ACEOF
11513 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11514 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11515 _ACEOF
11516 sed '
11517 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11518 s/^/s,@/; s/!/@,|#_!!_#|/
11519 :n
11520 t n
11521 s/'"$ac_delim"'$/,g/; t
11522 s/$/\\/; p
11523 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11524 ' >>$CONFIG_STATUS <conf$$subs.sed
11525 rm -f conf$$subs.sed
11526 cat >>$CONFIG_STATUS <<_ACEOF
11527 :end
11528 s/|#_!!_#|//g
11529 CEOF$ac_eof
11530 _ACEOF
11531
11532
11533 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11534 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11535 # trailing colons and then remove the whole line if VPATH becomes empty
11536 # (actually we leave an empty line to preserve line numbers).
11537 if test "x$srcdir" = x.; then
11538 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11539 s/:*\$(srcdir):*/:/
11540 s/:*\${srcdir}:*/:/
11541 s/:*@srcdir@:*/:/
11542 s/^\([^=]*=[ ]*\):*/\1/
11543 s/:*$//
11544 s/^[^=]*=[ ]*$//
11545 }'
11546 fi
11547
11548 cat >>$CONFIG_STATUS <<\_ACEOF
11549 fi # test -n "$CONFIG_FILES"
11550
11551
11552 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11553 do
11554 case $ac_tag in
11555 :[FHLC]) ac_mode=$ac_tag; continue;;
11556 esac
11557 case $ac_mode$ac_tag in
11558 :[FHL]*:*);;
11559 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11560 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11561 { (exit 1); exit 1; }; };;
11562 :[FH]-) ac_tag=-:-;;
11563 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11564 esac
11565 ac_save_IFS=$IFS
11566 IFS=:
11567 set x $ac_tag
11568 IFS=$ac_save_IFS
11569 shift
11570 ac_file=$1
11571 shift
11572
11573 case $ac_mode in
11574 :L) ac_source=$1;;
11575 :[FH])
11576 ac_file_inputs=
11577 for ac_f
11578 do
11579 case $ac_f in
11580 -) ac_f="$tmp/stdin";;
11581 *) # Look for the file first in the build tree, then in the source tree
11582 # (if the path is not absolute). The absolute path cannot be DOS-style,
11583 # because $ac_f cannot contain `:'.
11584 test -f "$ac_f" ||
11585 case $ac_f in
11586 [\\/$]*) false;;
11587 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11588 esac ||
11589 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11590 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11591 { (exit 1); exit 1; }; };;
11592 esac
11593 ac_file_inputs="$ac_file_inputs $ac_f"
11594 done
11595
11596 # Let's still pretend it is `configure' which instantiates (i.e., don't
11597 # use $as_me), people would be surprised to read:
11598 # /* config.h. Generated by config.status. */
11599 configure_input="Generated from "`IFS=:
11600 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11601 if test x"$ac_file" != x-; then
11602 configure_input="$ac_file. $configure_input"
11603 { echo "$as_me:$LINENO: creating $ac_file" >&5
11604 echo "$as_me: creating $ac_file" >&6;}
11605 fi
11606
11607 case $ac_tag in
11608 *:-:* | *:-) cat >"$tmp/stdin";;
11609 esac
11610 ;;
11611 esac
11612
11613 ac_dir=`$as_dirname -- "$ac_file" ||
11614 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11615 X"$ac_file" : 'X\(//\)[^/]' \| \
11616 X"$ac_file" : 'X\(//\)$' \| \
11617 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11618 echo X"$ac_file" |
11619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11620 s//\1/
11621 q
11622 }
11623 /^X\(\/\/\)[^/].*/{
11624 s//\1/
11625 q
11626 }
11627 /^X\(\/\/\)$/{
11628 s//\1/
11629 q
11630 }
11631 /^X\(\/\).*/{
11632 s//\1/
11633 q
11634 }
11635 s/.*/./; q'`
11636 { as_dir="$ac_dir"
11637 case $as_dir in #(
11638 -*) as_dir=./$as_dir;;
11639 esac
11640 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11641 as_dirs=
11642 while :; do
11643 case $as_dir in #(
11644 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11645 *) as_qdir=$as_dir;;
11646 esac
11647 as_dirs="'$as_qdir' $as_dirs"
11648 as_dir=`$as_dirname -- "$as_dir" ||
11649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11650 X"$as_dir" : 'X\(//\)[^/]' \| \
11651 X"$as_dir" : 'X\(//\)$' \| \
11652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11653 echo X"$as_dir" |
11654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11655 s//\1/
11656 q
11657 }
11658 /^X\(\/\/\)[^/].*/{
11659 s//\1/
11660 q
11661 }
11662 /^X\(\/\/\)$/{
11663 s//\1/
11664 q
11665 }
11666 /^X\(\/\).*/{
11667 s//\1/
11668 q
11669 }
11670 s/.*/./; q'`
11671 test -d "$as_dir" && break
11672 done
11673 test -z "$as_dirs" || eval "mkdir $as_dirs"
11674 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11675 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11676 { (exit 1); exit 1; }; }; }
11677 ac_builddir=.
11678
11679 case "$ac_dir" in
11680 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11681 *)
11682 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11683 # A ".." for each directory in $ac_dir_suffix.
11684 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11685 case $ac_top_builddir_sub in
11686 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11687 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11688 esac ;;
11689 esac
11690 ac_abs_top_builddir=$ac_pwd
11691 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11692 # for backward compatibility:
11693 ac_top_builddir=$ac_top_build_prefix
11694
11695 case $srcdir in
11696 .) # We are building in place.
11697 ac_srcdir=.
11698 ac_top_srcdir=$ac_top_builddir_sub
11699 ac_abs_top_srcdir=$ac_pwd ;;
11700 [\\/]* | ?:[\\/]* ) # Absolute name.
11701 ac_srcdir=$srcdir$ac_dir_suffix;
11702 ac_top_srcdir=$srcdir
11703 ac_abs_top_srcdir=$srcdir ;;
11704 *) # Relative name.
11705 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11706 ac_top_srcdir=$ac_top_build_prefix$srcdir
11707 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11708 esac
11709 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11710
11711
11712 case $ac_mode in
11713 :F)
11714 #
11715 # CONFIG_FILE
11716 #
11717
11718 case $INSTALL in
11719 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11720 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11721 esac
11722 _ACEOF
11723
11724 cat >>$CONFIG_STATUS <<\_ACEOF
11725 # If the template does not know about datarootdir, expand it.
11726 # FIXME: This hack should be removed a few years after 2.60.
11727 ac_datarootdir_hack=; ac_datarootdir_seen=
11728
11729 case `sed -n '/datarootdir/ {
11730 p
11731 q
11732 }
11733 /@datadir@/p
11734 /@docdir@/p
11735 /@infodir@/p
11736 /@localedir@/p
11737 /@mandir@/p
11738 ' $ac_file_inputs` in
11739 *datarootdir*) ac_datarootdir_seen=yes;;
11740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11741 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11742 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11743 _ACEOF
11744 cat >>$CONFIG_STATUS <<_ACEOF
11745 ac_datarootdir_hack='
11746 s&@datadir@&$datadir&g
11747 s&@docdir@&$docdir&g
11748 s&@infodir@&$infodir&g
11749 s&@localedir@&$localedir&g
11750 s&@mandir@&$mandir&g
11751 s&\\\${datarootdir}&$datarootdir&g' ;;
11752 esac
11753 _ACEOF
11754
11755 # Neutralize VPATH when `$srcdir' = `.'.
11756 # Shell code in configure.ac might set extrasub.
11757 # FIXME: do we really want to maintain this feature?
11758 cat >>$CONFIG_STATUS <<_ACEOF
11759 sed "$ac_vpsub
11760 $extrasub
11761 _ACEOF
11762 cat >>$CONFIG_STATUS <<\_ACEOF
11763 :t
11764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11765 s&@configure_input@&$configure_input&;t t
11766 s&@top_builddir@&$ac_top_builddir_sub&;t t
11767 s&@srcdir@&$ac_srcdir&;t t
11768 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11769 s&@top_srcdir@&$ac_top_srcdir&;t t
11770 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11771 s&@builddir@&$ac_builddir&;t t
11772 s&@abs_builddir@&$ac_abs_builddir&;t t
11773 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11774 s&@INSTALL@&$ac_INSTALL&;t t
11775 $ac_datarootdir_hack
11776 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
11777
11778 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11779 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11780 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11781 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11782 which seems to be undefined. Please make sure it is defined." >&5
11783 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11784 which seems to be undefined. Please make sure it is defined." >&2;}
11785
11786 rm -f "$tmp/stdin"
11787 case $ac_file in
11788 -) cat "$tmp/out"; rm -f "$tmp/out";;
11789 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11790 esac
11791 ;;
11792 :H)
11793 #
11794 # CONFIG_HEADER
11795 #
11796 _ACEOF
11797
11798 # Transform confdefs.h into a sed script `conftest.defines', that
11799 # substitutes the proper values into config.h.in to produce config.h.
11800 rm -f conftest.defines conftest.tail
11801 # First, append a space to every undef/define line, to ease matching.
11802 echo 's/$/ /' >conftest.defines
11803 # Then, protect against being on the right side of a sed subst, or in
11804 # an unquoted here document, in config.status. If some macros were
11805 # called several times there might be several #defines for the same
11806 # symbol, which is useless. But do not sort them, since the last
11807 # AC_DEFINE must be honored.
11808 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11809 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11810 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11811 # PARAMS is the parameter list in the macro definition--in most cases, it's
11812 # just an empty string.
11813 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11814 ac_dB='\\)[ (].*,\\1define\\2'
11815 ac_dC=' '
11816 ac_dD=' ,'
11817
11818 uniq confdefs.h |
11819 sed -n '
11820 t rset
11821 :rset
11822 s/^[ ]*#[ ]*define[ ][ ]*//
11823 t ok
11824 d
11825 :ok
11826 s/[\\&,]/\\&/g
11827 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11828 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11829 ' >>conftest.defines
11830
11831 # Remove the space that was appended to ease matching.
11832 # Then replace #undef with comments. This is necessary, for
11833 # example, in the case of _POSIX_SOURCE, which is predefined and required
11834 # on some systems where configure will not decide to define it.
11835 # (The regexp can be short, since the line contains either #define or #undef.)
11836 echo 's/ $//
11837 s,^[ #]*u.*,/* & */,' >>conftest.defines
11838
11839 # Break up conftest.defines:
11840 ac_max_sed_lines=50
11841
11842 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11843 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11844 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11845 # et cetera.
11846 ac_in='$ac_file_inputs'
11847 ac_out='"$tmp/out1"'
11848 ac_nxt='"$tmp/out2"'
11849
11850 while :
11851 do
11852 # Write a here document:
11853 cat >>$CONFIG_STATUS <<_ACEOF
11854 # First, check the format of the line:
11855 cat >"\$tmp/defines.sed" <<\\CEOF
11856 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11857 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11858 b
11859 :def
11860 _ACEOF
11861 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11862 echo 'CEOF
11863 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11864 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11865 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11866 grep . conftest.tail >/dev/null || break
11867 rm -f conftest.defines
11868 mv conftest.tail conftest.defines
11869 done
11870 rm -f conftest.defines conftest.tail
11871
11872 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11873 cat >>$CONFIG_STATUS <<\_ACEOF
11874 if test x"$ac_file" != x-; then
11875 echo "/* $configure_input */" >"$tmp/config.h"
11876 cat "$ac_result" >>"$tmp/config.h"
11877 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11878 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11879 echo "$as_me: $ac_file is unchanged" >&6;}
11880 else
11881 rm -f $ac_file
11882 mv "$tmp/config.h" $ac_file
11883 fi
11884 else
11885 echo "/* $configure_input */"
11886 cat "$ac_result"
11887 fi
11888 rm -f "$tmp/out12"
11889 ;;
11890
11891
11892 esac
11893
11894 done # for ac_tag
11895
11896
11897 { (exit 0); exit 0; }
11898 _ACEOF
11899 chmod +x $CONFIG_STATUS
11900 ac_clean_files=$ac_clean_files_save
11901
11902
11903 # configure is writing to config.log, and then calls config.status.
11904 # config.status does its own redirection, appending to config.log.
11905 # Unfortunately, on DOS this fails, as config.log is still kept open
11906 # by configure, so config.status won't be able to write to it; its
11907 # output is simply discarded. So we exec the FD to /dev/null,
11908 # effectively closing config.log, so it can be properly (re)opened and
11909 # appended to by config.status. When coming back to configure, we
11910 # need to make the FD available again.
11911 if test "$no_create" != yes; then
11912 ac_cs_success=:
11913 ac_config_status_args=
11914 test "$silent" = yes &&
11915 ac_config_status_args="$ac_config_status_args --quiet"
11916 exec 5>/dev/null
11917 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11918 exec 5>>config.log
11919 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11920 # would make configure fail if this is the last instruction.
11921 $ac_cs_success || { (exit 1); exit 1; }
11922 fi
11923
11924
11925 rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend
11926
11927
11928 echo
11929 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
11930 echo
11931
11932 echo "Installing into: $prefix"
11933
11934 echo "Ziplinks ................ $zlib"
11935
11936 if test ! -z "$cf_openssl_ciphers"; then
11937 tmpresult="yes - ${cf_openssl_ciphers}"
11938 else
11939 tmpresult=no
11940 fi
11941
11942 echo "OpenSSL ................. $tmpresult"
11943
11944 if test "$shared_modules" = yes; then
11945 tmpresult=shared
11946 else
11947 tmpresult=static
11948 fi
11949
11950 echo "Modules ................. $tmpresult"
11951 echo "IPv6 support ............ $have_v6"
11952 echo "Net I/O implementation .. $SELECT_TYPE"
11953
11954 if test "$efnet" = "yes"; then
11955 tmpresult="yes (use example.efnet.conf)"
11956 else
11957 tmpresult="no (use example.conf)"
11958 fi
11959
11960 echo "EFnet server ............ $tmpresult"
11961 echo "Halfops support ......... $halfops"
11962 echo "Small network ........... $small_net"
11963 echo "G-Line voting ........... $gline_voting"
11964 echo
11965 echo "Configured limits:"
11966 echo "NICKLEN ................. $NICKLEN"
11967 echo "TOPICLEN ................ $TOPICLEN"
11968 echo

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Id Revision