]> jfr.im git - solanum.git/blob - configure
'monitor s' output does not end with RPL_ENDOFMONLIST.
[solanum.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for charybdis 3.3.0.
4 #
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
245 fi
246 exit 1
247 fi
248 fi
249 fi
250 SHELL=${CONFIG_SHELL-/bin/sh}
251 export SHELL
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE= GREP_OPTIONS=
254 unset CLICOLOR_FORCE GREP_OPTIONS
255
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
259 # as_fn_unset VAR
260 # ---------------
261 # Portably unset VAR.
262 as_fn_unset ()
263 {
264 { eval $1=; unset $1;}
265 }
266 as_unset=as_fn_unset
267
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
271 as_fn_set_status ()
272 {
273 return $1
274 } # as_fn_set_status
275
276 # as_fn_exit STATUS
277 # -----------------
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 as_fn_exit ()
280 {
281 set +e
282 as_fn_set_status $1
283 exit $1
284 } # as_fn_exit
285
286 # as_fn_mkdir_p
287 # -------------
288 # Create "$as_dir" as a directory, including parents if necessary.
289 as_fn_mkdir_p ()
290 {
291
292 case $as_dir in #(
293 -*) as_dir=./$as_dir;;
294 esac
295 test -d "$as_dir" || eval $as_mkdir_p || {
296 as_dirs=
297 while :; do
298 case $as_dir in #(
299 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 *) as_qdir=$as_dir;;
301 esac
302 as_dirs="'$as_qdir' $as_dirs"
303 as_dir=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)[^/].*/{
314 s//\1/
315 q
316 }
317 /^X\(\/\/\)$/{
318 s//\1/
319 q
320 }
321 /^X\(\/\).*/{
322 s//\1/
323 q
324 }
325 s/.*/./; q'`
326 test -d "$as_dir" && break
327 done
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330
331
332 } # as_fn_mkdir_p
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
338 # implementations.
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
340 eval 'as_fn_append ()
341 {
342 eval $1+=\$2
343 }'
344 else
345 as_fn_append ()
346 {
347 eval $1=\$$1\$2
348 }
349 fi # as_fn_append
350
351 # as_fn_arith ARG...
352 # ------------------
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 eval 'as_fn_arith ()
358 {
359 as_val=$(( $* ))
360 }'
361 else
362 as_fn_arith ()
363 {
364 as_val=`expr "$@" || test $? -eq 1`
365 }
366 fi # as_fn_arith
367
368
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
374 as_fn_error ()
375 {
376 as_status=$1; test $as_status -eq 0 && as_status=1
377 if test "$4"; then
378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
380 fi
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit $as_status
383 } # as_fn_error
384
385 if expr a : '\(a\)' >/dev/null 2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 as_expr=expr
388 else
389 as_expr=false
390 fi
391
392 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 as_basename=basename
394 else
395 as_basename=false
396 fi
397
398 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_dirname=dirname
400 else
401 as_dirname=false
402 fi
403
404 as_me=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
408 $as_echo X/"$0" |
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\/\)$/{
414 s//\1/
415 q
416 }
417 /^X\/\(\/\).*/{
418 s//\1/
419 q
420 }
421 s/.*/./; q'`
422
423 # Avoid depending upon Character Ranges.
424 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits='0123456789'
428 as_cr_alnum=$as_cr_Letters$as_cr_digits
429
430
431 as_lineno_1=$LINENO as_lineno_1a=$LINENO
432 as_lineno_2=$LINENO as_lineno_2a=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
440 sed '
441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
445 N
446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448 t loop
449 s/-\n.*//
450 ' >$as_me.lineno &&
451 chmod +x "$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
457 . "./$as_me.lineno"
458 # Exit status is that of the last command.
459 exit
460 }
461
462 ECHO_C= ECHO_N= ECHO_T=
463 case `echo -n x` in #(((((
464 -n*)
465 case `echo 'xy\c'` in
466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
467 xy) ECHO_C='\c';;
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
469 ECHO_T=' ';;
470 esac;;
471 *)
472 ECHO_N='-n';;
473 esac
474
475 rm -f conf$$ conf$$.exe conf$$.file
476 if test -d conf$$.dir; then
477 rm -f conf$$.dir/conf$$.file
478 else
479 rm -f conf$$.dir
480 mkdir conf$$.dir 2>/dev/null
481 fi
482 if (echo >conf$$.file) 2>/dev/null; then
483 if ln -s conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s='ln -s'
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
491 elif ln conf$$.file conf$$ 2>/dev/null; then
492 as_ln_s=ln
493 else
494 as_ln_s='cp -p'
495 fi
496 else
497 as_ln_s='cp -p'
498 fi
499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500 rmdir conf$$.dir 2>/dev/null
501
502 if mkdir -p . 2>/dev/null; then
503 as_mkdir_p='mkdir -p "$as_dir"'
504 else
505 test -d ./-p && rmdir ./-p
506 as_mkdir_p=false
507 fi
508
509 if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
511 else
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
529 fi
530 as_executable_p=$as_test_x
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='charybdis'
561 PACKAGE_TARNAME='charybdis'
562 PACKAGE_VERSION='3.3.0'
563 PACKAGE_STRING='charybdis 3.3.0'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_default_prefix=$HOME/ircd
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 enable_option_checking=no
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 SEDOBJ
608 IRC_CFLAGS
609 PICFLAGS
610 SSL_LIBS
611 SSL_INCLUDES
612 SSL_SRCS_ENABLE
613 MOD_TARGET
614 MODULES_LIBS
615 SELECT_TYPE
616 moduledir
617 MODULE_DIR
618 helpdir
619 HELP_DIR
620 logdir
621 LOG_DIR
622 confdir
623 ETC_DIR
624 ZLIB_LD
625 ENCSPEED
626 ALLOCA
627 VICONF
628 CRYPT_LIB
629 LEXLIB
630 LEX_OUTPUT_ROOT
631 LEX
632 YFLAGS
633 YACC
634 TOUCH
635 RANLIB
636 LD
637 AR
638 SED
639 LN
640 MV
641 CP
642 RM
643 INSTALL_DATA
644 INSTALL_SCRIPT
645 INSTALL_PROGRAM
646 SET_MAKE
647 STDOUT
648 MAKEDEPEND
649 MKDEP
650 subdirs
651 EGREP
652 GREP
653 CPP
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_ipv6
703 enable_openssl
704 with_zlib_path
705 enable_zlib
706 enable_ports
707 enable_poll
708 enable_select
709 enable_kqueue
710 enable_epoll
711 with_confdir
712 with_logdir
713 with_helpdir
714 with_moduledir
715 with_custom_branding
716 with_custom_version
717 enable_assert
718 enable_iodebug
719 enable_profile
720 enable_balloc
721 enable_small_net
722 with_nicklen
723 with_topiclen
724 enable_warnings
725 '
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP
735 YACC
736 YFLAGS'
737 ac_subdirs_all='libratbox'
738
739 # Initialize some variables set by options.
740 ac_init_help=
741 ac_init_version=false
742 ac_unrecognized_opts=
743 ac_unrecognized_sep=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
746 cache_file=/dev/null
747 exec_prefix=NONE
748 no_create=
749 no_recursion=
750 prefix=NONE
751 program_prefix=NONE
752 program_suffix=NONE
753 program_transform_name=s,x,x,
754 silent=
755 site=
756 srcdir=
757 verbose=
758 x_includes=NONE
759 x_libraries=NONE
760
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir='${exec_prefix}/bin'
768 sbindir='${exec_prefix}/sbin'
769 libexecdir='${exec_prefix}/libexec'
770 datarootdir='${prefix}/share'
771 datadir='${datarootdir}'
772 sysconfdir='${prefix}/etc'
773 sharedstatedir='${prefix}/com'
774 localstatedir='${prefix}/var'
775 includedir='${prefix}/include'
776 oldincludedir='/usr/include'
777 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
778 infodir='${datarootdir}/info'
779 htmldir='${docdir}'
780 dvidir='${docdir}'
781 pdfdir='${docdir}'
782 psdir='${docdir}'
783 libdir='${exec_prefix}/lib'
784 localedir='${datarootdir}/locale'
785 mandir='${datarootdir}/man'
786
787 ac_prev=
788 ac_dashdash=
789 for ac_option
790 do
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\$ac_option
794 ac_prev=
795 continue
796 fi
797
798 case $ac_option in
799 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 *=) ac_optarg= ;;
801 *) ac_optarg=yes ;;
802 esac
803
804 # Accept the important Cygnus configure options, so we can diagnose typos.
805
806 case $ac_dashdash$ac_option in
807 --)
808 ac_dashdash=yes ;;
809
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
814
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
819
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
826
827 --config-cache | -C)
828 cache_file=config.cache ;;
829
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
834
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
841
842 -disable-* | --disable-*)
843 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846 as_fn_error $? "invalid feature name: $ac_useropt"
847 ac_useropt_orig=$ac_useropt
848 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
850 *"
851 "enable_$ac_useropt"
852 "*) ;;
853 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep=', ';;
855 esac
856 eval enable_$ac_useropt=no ;;
857
858 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;;
862
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;;
867
868 -enable-* | --enable-*)
869 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 as_fn_error $? "invalid feature name: $ac_useropt"
873 ac_useropt_orig=$ac_useropt
874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
876 *"
877 "enable_$ac_useropt"
878 "*) ;;
879 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep=', ';;
881 esac
882 eval enable_$ac_useropt=\$ac_optarg ;;
883
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev=exec_prefix ;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix=$ac_optarg ;;
892
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
895 with_gas=yes ;;
896
897 -help | --help | --hel | --he | -h)
898 ac_init_help=long ;;
899 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900 ac_init_help=recursive ;;
901 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902 ac_init_help=short ;;
903
904 -host | --host | --hos | --ho)
905 ac_prev=host_alias ;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias=$ac_optarg ;;
908
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 ac_prev=htmldir ;;
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 | --ht=*)
913 htmldir=$ac_optarg ;;
914
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev=includedir ;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir=$ac_optarg ;;
921
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 ac_prev=infodir ;;
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir=$ac_optarg ;;
926
927 -libdir | --libdir | --libdi | --libd)
928 ac_prev=libdir ;;
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
930 libdir=$ac_optarg ;;
931
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev=libexecdir ;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir=$ac_optarg ;;
938
939 -localedir | --localedir | --localedi | --localed | --locale)
940 ac_prev=localedir ;;
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir=$ac_optarg ;;
943
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev=localstatedir ;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir=$ac_optarg ;;
950
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 ac_prev=mandir ;;
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954 mandir=$ac_optarg ;;
955
956 -nfp | --nfp | --nf)
957 # Obsolete; use --without-fp.
958 with_fp=no ;;
959
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
962 no_create=yes ;;
963
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966 no_recursion=yes ;;
967
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev=oldincludedir ;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir=$ac_optarg ;;
976
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 ac_prev=prefix ;;
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980 prefix=$ac_optarg ;;
981
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev=program_prefix ;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix=$ac_optarg ;;
988
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev=program_suffix ;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix=$ac_optarg ;;
995
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev=program_transform_name ;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name=$ac_optarg ;;
1012
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 ac_prev=pdfdir ;;
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir=$ac_optarg ;;
1017
1018 -psdir | --psdir | --psdi | --psd | --ps)
1019 ac_prev=psdir ;;
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021 psdir=$ac_optarg ;;
1022
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1025 silent=yes ;;
1026
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 ac_prev=sbindir ;;
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 | --sbi=* | --sb=*)
1031 sbindir=$ac_optarg ;;
1032
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1036 | --sha | --sh)
1037 ac_prev=sharedstatedir ;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 | --sha=* | --sh=*)
1042 sharedstatedir=$ac_optarg ;;
1043
1044 -site | --site | --sit)
1045 ac_prev=site ;;
1046 -site=* | --site=* | --sit=*)
1047 site=$ac_optarg ;;
1048
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 ac_prev=srcdir ;;
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir=$ac_optarg ;;
1053
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev=sysconfdir ;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir=$ac_optarg ;;
1060
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev=target_alias ;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias=$ac_optarg ;;
1065
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067 verbose=yes ;;
1068
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version=: ;;
1071
1072 -with-* | --with-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid package name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1080 *"
1081 "with_$ac_useropt"
1082 "*) ;;
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1085 esac
1086 eval with_$ac_useropt=\$ac_optarg ;;
1087
1088 -without-* | --without-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097 "with_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval with_$ac_useropt=no ;;
1103
1104 --x)
1105 # Obsolete; use --with-x.
1106 with_x=yes ;;
1107
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev=x_includes ;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes=$ac_optarg ;;
1114
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev=x_libraries ;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries=$ac_optarg ;;
1121
1122 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information"
1124 ;;
1125
1126 *=*)
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1132 esac
1133 eval $ac_envvar=\$ac_optarg
1134 export $ac_envvar ;;
1135
1136 *)
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1142 ;;
1143
1144 esac
1145 done
1146
1147 if test -n "$ac_prev"; then
1148 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error $? "missing argument to $ac_option"
1150 fi
1151
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1154 no) ;;
1155 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157 esac
1158 fi
1159
1160 # Check all directory arguments for consistency.
1161 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1165 do
1166 eval ac_val=\$$ac_var
1167 # Remove trailing slashes.
1168 case $ac_val in
1169 */ )
1170 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\$ac_val;;
1172 esac
1173 # Be sure to have absolute directory names.
1174 case $ac_val in
1175 [\\/$]* | ?:[\\/]* ) continue;;
1176 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 esac
1178 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1179 done
1180
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1184 build=$build_alias
1185 host=$host_alias
1186 target=$target_alias
1187
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used" >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1195 cross_compiling=yes
1196 fi
1197 fi
1198
1199 ac_tool_prefix=
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202 test "$silent" = yes && exec 6>/dev/null
1203
1204
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $? "working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $? "pwd does not report name of working directory"
1211
1212
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
1240 srcdir=$ac_confdir
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 srcdir=..
1243 fi
1244 else
1245 ac_srcdir_defaulted=no
1246 fi
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1250 fi
1251 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254 pwd)`
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 srcdir=.
1258 fi
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1262 case $srcdir in
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 esac
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270 done
1271
1272 #
1273 # Report the --help message.
1274 #
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1278 cat <<_ACEOF
1279 \`configure' configures charybdis 3.3.0 to adapt to many kinds of systems.
1280
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1285
1286 Defaults for the options are specified in brackets.
1287
1288 Configuration:
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 [PREFIX]
1304
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1309
1310 For better control, use the options below.
1311
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1332 _ACEOF
1333
1334 cat <<\_ACEOF
1335 _ACEOF
1336 fi
1337
1338 if test -n "$ac_init_help"; then
1339 case $ac_init_help in
1340 short | recursive ) echo "Configuration of charybdis 3.3.0:";;
1341 esac
1342 cat <<\_ACEOF
1343
1344 Optional Features:
1345 --disable-option-checking ignore unrecognized --enable/--with options
1346 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1347 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1348 --enable-ipv6 Enable IPv6 support
1349 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1350 --disable-openssl Disable OpenSSL support.
1351 --disable-zlib Disable ziplinks support
1352 --enable-ports Force solaris I/O ports subsystem usage.
1353 --enable-poll Force poll() usage.
1354 --enable-select Force select() usage.
1355 --enable-kqueue Force kqueue() usage.
1356 --enable-epoll Force sys_epoll usage (Linux only).
1357 --enable-assert Enable assert(). Choose between soft(warnings) and
1358 hard(aborts the daemon)
1359 --enable-iodebug Enable IO Debugging hooks
1360 --enable-profile Enable profiling
1361 --disable-balloc Disable the block allocator.
1362 --enable-small-net Enable small network support.
1363 --enable-warnings Enable all sorts of warnings for debugging.
1364
1365 Optional Packages:
1366 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1368 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1369 --with-confdir=DIR Directory to install config files.
1370 --with-logdir=DIR Directory where to write logfiles.
1371 --with-helpdir=DIR Directory to install help files.
1372 --with-moduledir=DIR Directory to install modules.
1373 --with-custom-branding=NAME
1374 Custom branding name.
1375 --with-custom-version=NAME
1376 Custom version branding.
1377 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
1378 31, max 50)
1379 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1380 390)
1381
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 CPP C preprocessor
1391 YACC The `Yet Another Compiler Compiler' implementation to use.
1392 Defaults to the first program found out of: `bison -y', `byacc',
1393 `yacc'.
1394 YFLAGS The list of arguments that will be passed by default to $YACC.
1395 This script will default YFLAGS to the empty string to avoid a
1396 default value of `-d' given by some make applications.
1397
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1400
1401 Report bugs to the package provider.
1402 _ACEOF
1403 ac_status=$?
1404 fi
1405
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1413
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *)
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1429
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1459 fi
1460
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 charybdis configure 3.3.0
1465 generated by GNU Autoconf 2.68
1466
1467 Copyright (C) 2010 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470
1471 $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
1472 _ACEOF
1473 exit
1474 fi
1475
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1479
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1484 {
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1510
1511 ac_retval=1
1512 fi
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1515
1516 } # ac_fn_c_try_compile
1517
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_cpp ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } > conftest.i && {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 }; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_cpp
1554
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1559 # accordingly.
1560 ac_fn_c_check_header_mongrel ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if eval \${$3+:} false; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if eval \${$3+:} false; then :
1567 $as_echo_n "(cached) " >&6
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 else
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1578 $4
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1583 else
1584 ac_header_compiler=no
1585 fi
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1589
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1599 else
1600 ac_header_preproc=no
1601 fi
1602 rm -f conftest.err conftest.i conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1605
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608 yes:no: )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 ;;
1614 no:yes:* )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 ;;
1626 esac
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 eval "$3=\$ac_header_compiler"
1633 fi
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 fi
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640 } # ac_fn_c_check_header_mongrel
1641
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1646 ac_fn_c_try_run ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=$ac_status
1677 fi
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
1682 } # ac_fn_c_try_run
1683
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1689 {
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 eval "$3=yes"
1703 else
1704 eval "$3=no"
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 fi
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713 } # ac_fn_c_check_header_compile
1714
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1719 {
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_link
1760
1761 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1762 # -------------------------------------------
1763 # Tests whether TYPE exists after having included INCLUDES, setting cache
1764 # variable VAR accordingly.
1765 ac_fn_c_check_type ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 eval "$3=no"
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 int
1778 main ()
1779 {
1780 if (sizeof ($2))
1781 return 0;
1782 ;
1783 return 0;
1784 }
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1789 $4
1790 int
1791 main ()
1792 {
1793 if (sizeof (($2)))
1794 return 0;
1795 ;
1796 return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800
1801 else
1802 eval "$3=yes"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813 } # ac_fn_c_check_type
1814
1815 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1816 # --------------------------------------------
1817 # Tries to find the compile-time value of EXPR in a program that includes
1818 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1819 # computed
1820 ac_fn_c_compute_int ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if test "$cross_compiling" = yes; then
1824 # Depending upon the size, compute the lo and hi bounds.
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 $4
1828 int
1829 main ()
1830 {
1831 static int test_array [1 - 2 * !(($2) >= 0)];
1832 test_array [0] = 0
1833
1834 ;
1835 return 0;
1836 }
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 ac_lo=0 ac_mid=0
1840 while :; do
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 int
1845 main ()
1846 {
1847 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1848 test_array [0] = 0
1849
1850 ;
1851 return 0;
1852 }
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_hi=$ac_mid; break
1856 else
1857 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1858 if test $ac_lo -le $ac_mid; then
1859 ac_lo= ac_hi=
1860 break
1861 fi
1862 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 done
1866 else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 int
1871 main ()
1872 {
1873 static int test_array [1 - 2 * !(($2) < 0)];
1874 test_array [0] = 0
1875
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 ac_hi=-1 ac_mid=-1
1882 while :; do
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 $4
1886 int
1887 main ()
1888 {
1889 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1890 test_array [0] = 0
1891
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_lo=$ac_mid; break
1898 else
1899 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1900 if test $ac_mid -le $ac_hi; then
1901 ac_lo= ac_hi=
1902 break
1903 fi
1904 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 done
1908 else
1909 ac_lo= ac_hi=
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 fi
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 # Binary search between lo and hi bounds.
1915 while test "x$ac_lo" != "x$ac_hi"; do
1916 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1924 test_array [0] = 0
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_hi=$ac_mid
1932 else
1933 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 done
1937 case $ac_lo in #((
1938 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1939 '') ac_retval=1 ;;
1940 esac
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 static long int longval () { return $2; }
1946 static unsigned long int ulongval () { return $2; }
1947 #include <stdio.h>
1948 #include <stdlib.h>
1949 int
1950 main ()
1951 {
1952
1953 FILE *f = fopen ("conftest.val", "w");
1954 if (! f)
1955 return 1;
1956 if (($2) < 0)
1957 {
1958 long int i = longval ();
1959 if (i != ($2))
1960 return 1;
1961 fprintf (f, "%ld", i);
1962 }
1963 else
1964 {
1965 unsigned long int i = ulongval ();
1966 if (i != ($2))
1967 return 1;
1968 fprintf (f, "%lu", i);
1969 }
1970 /* Do not output a trailing newline, as this causes \r\n confusion
1971 on some platforms. */
1972 return ferror (f) || fclose (f) != 0;
1973
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_run "$LINENO"; then :
1979 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1980 else
1981 ac_retval=1
1982 fi
1983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1984 conftest.$ac_objext conftest.beam conftest.$ac_ext
1985 rm -f conftest.val
1986
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
1991 } # ac_fn_c_compute_int
1992
1993 # ac_fn_c_check_func LINENO FUNC VAR
1994 # ----------------------------------
1995 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1996 ac_fn_c_check_func ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2008 #define $2 innocuous_$2
2009
2010 /* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $2 (); below.
2012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2013 <limits.h> exists even on freestanding compilers. */
2014
2015 #ifdef __STDC__
2016 # include <limits.h>
2017 #else
2018 # include <assert.h>
2019 #endif
2020
2021 #undef $2
2022
2023 /* Override any GCC internal prototype to avoid an error.
2024 Use char because int might match the return type of a GCC
2025 builtin and then its argument prototype would still apply. */
2026 #ifdef __cplusplus
2027 extern "C"
2028 #endif
2029 char $2 ();
2030 /* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033 #if defined __stub_$2 || defined __stub___$2
2034 choke me
2035 #endif
2036
2037 int
2038 main ()
2039 {
2040 return $2 ();
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_link "$LINENO"; then :
2046 eval "$3=yes"
2047 else
2048 eval "$3=no"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext \
2051 conftest$ac_exeext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_func
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2062
2063 It was created by charybdis $as_me 3.3.0, which was
2064 generated by GNU Autoconf 2.68. Invocation command line was
2065
2066 $ $0 $@
2067
2068 _ACEOF
2069 exec 5>>config.log
2070 {
2071 cat <<_ASUNAME
2072 ## --------- ##
2073 ## Platform. ##
2074 ## --------- ##
2075
2076 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2077 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2078 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2079 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2080 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2081
2082 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2083 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2084
2085 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2086 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2087 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2088 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2089 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2090 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2091 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2092
2093 _ASUNAME
2094
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2101 done
2102 IFS=$as_save_IFS
2103
2104 } >&5
2105
2106 cat >&5 <<_ACEOF
2107
2108
2109 ## ----------- ##
2110 ## Core tests. ##
2111 ## ----------- ##
2112
2113 _ACEOF
2114
2115
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2121 ac_configure_args=
2122 ac_configure_args0=
2123 ac_configure_args1=
2124 ac_must_keep_next=false
2125 for ac_pass in 1 2
2126 do
2127 for ac_arg
2128 do
2129 case $ac_arg in
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2133 continue ;;
2134 *\'*)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2136 esac
2137 case $ac_pass in
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2139 2)
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2143 else
2144 case $ac_arg in
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2151 esac
2152 ;;
2153 -* ) ac_must_keep_next=true ;;
2154 esac
2155 fi
2156 as_fn_append ac_configure_args " '$ac_arg'"
2157 ;;
2158 esac
2159 done
2160 done
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2163
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2171 {
2172 echo
2173
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2177 echo
2178 # The following way of writing the cache mishandles newlines in values,
2179 (
2180 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2181 eval ac_val=\$$ac_var
2182 case $ac_val in #(
2183 *${as_nl}*)
2184 case $ac_var in #(
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2187 esac
2188 case $ac_var in #(
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2192 esac ;;
2193 esac
2194 done
2195 (set) 2>&1 |
2196 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2198 sed -n \
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2201 ;; #(
2202 *)
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2204 ;;
2205 esac |
2206 sort
2207 )
2208 echo
2209
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2213 echo
2214 for ac_var in $ac_subst_vars
2215 do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2219 esac
2220 $as_echo "$ac_var='\''$ac_val'\''"
2221 done | sort
2222 echo
2223
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2228 echo
2229 for ac_var in $ac_subst_files
2230 do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 esac
2235 $as_echo "$ac_var='\''$ac_val'\''"
2236 done | sort
2237 echo
2238 fi
2239
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2242 ## confdefs.h. ##
2243 ## ----------- ##"
2244 echo
2245 cat confdefs.h
2246 echo
2247 fi
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2251 } >&5
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2254 exit $exit_status
2255 ' 0
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2258 done
2259 ac_signal=0
2260
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2263
2264 $as_echo "/* confdefs.h */" > confdefs.h
2265
2266 # Predefined preprocessor variables.
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2278 _ACEOF
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2282 _ACEOF
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2290 _ACEOF
2291
2292
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2295 ac_site_file1=NONE
2296 ac_site_file2=NONE
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2303 esac
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2307 else
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2310 fi
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2312 do
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2318 . "$ac_site_file" \
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site script $ac_site_file
2322 See \`config.log' for more details" "$LINENO" 5; }
2323 fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2332 case $cache_file in
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2335 esac
2336 fi
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2340 >$cache_file
2341 fi
2342
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2352 set,)
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2356 ,set)
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2358 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2360 ,);;
2361 *)
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x $ac_old_val`
2365 ac_new_val_w=`echo x $ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2369 ac_cache_corrupted=:
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2379 fi;;
2380 esac
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2383 case $ac_new_val in
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2386 esac
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2390 esac
2391 fi
2392 done
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2399 fi
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2403
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409
2410
2411
2412 ac_config_headers="$ac_config_headers include/setup.h"
2413
2414
2415
2416
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if ${ac_cv_prog_CC+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2453 $as_echo "$CC" >&6; }
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456 $as_echo "no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2493 $as_echo "$ac_ct_CC" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506 ac_tool_warned=yes ;;
2507 esac
2508 CC=$ac_ct_CC
2509 fi
2510 else
2511 CC="$ac_cv_prog_CC"
2512 fi
2513
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}cc; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_CC+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="${ac_tool_prefix}cc"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537 done
2538 done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 CC=$ac_cv_prog_CC
2544 if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2547 else
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552
2553 fi
2554 fi
2555 if test -z "$CC"; then
2556 # Extract the first word of "cc", so it can be a program name with args.
2557 set dummy cc; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_CC+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562 else
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 else
2566 ac_prog_rejected=no
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2569 do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2575 ac_prog_rejected=yes
2576 continue
2577 fi
2578 ac_cv_prog_CC="cc"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 if test $ac_prog_rejected = yes; then
2587 # We found a bogon in the path, so make sure we never use it.
2588 set dummy $ac_cv_prog_CC
2589 shift
2590 if test $# != 0; then
2591 # We chose a different compiler from the bogus one.
2592 # However, it has the same basename, so the bogon will be chosen
2593 # first if we set CC to just the basename; use the full file name.
2594 shift
2595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2596 fi
2597 fi
2598 fi
2599 fi
2600 CC=$ac_cv_prog_CC
2601 if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2607 fi
2608
2609
2610 fi
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 for ac_prog in cl.exe
2614 do
2615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 break 2
2635 fi
2636 done
2637 done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 CC=$ac_cv_prog_CC
2643 if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651
2652 test -n "$CC" && break
2653 done
2654 fi
2655 if test -z "$CC"; then
2656 ac_ct_CC=$CC
2657 for ac_prog in cl.exe
2658 do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2665 else
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_ac_ct_CC="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2690 else
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 fi
2694
2695
2696 test -n "$ac_ct_CC" && break
2697 done
2698
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703 yes:)
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708 CC=$ac_ct_CC
2709 fi
2710 fi
2711
2712 fi
2713
2714
2715 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 as_fn_error $? "no acceptable C compiler found in \$PATH
2718 See \`config.log' for more details" "$LINENO" 5; }
2719
2720 # Provide some information about the compiler.
2721 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2722 set X $ac_compile
2723 ac_compiler=$2
2724 for ac_option in --version -v -V -qversion; do
2725 { { ac_try="$ac_compiler $ac_option >&5"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731 $as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2733 ac_status=$?
2734 if test -s conftest.err; then
2735 sed '10a\
2736 ... rest of stderr output deleted ...
2737 10q' conftest.err >conftest.er1
2738 cat conftest.er1 >&5
2739 fi
2740 rm -f conftest.er1 conftest.err
2741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742 test $ac_status = 0; }
2743 done
2744
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2747
2748 int
2749 main ()
2750 {
2751
2752 ;
2753 return 0;
2754 }
2755 _ACEOF
2756 ac_clean_files_save=$ac_clean_files
2757 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2758 # Try to create an executable without -o first, disregard a.out.
2759 # It will help us diagnose broken compilers, and finding out an intuition
2760 # of exeext.
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2762 $as_echo_n "checking whether the C compiler works... " >&6; }
2763 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2764
2765 # The possible output files:
2766 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2767
2768 ac_rmfiles=
2769 for ac_file in $ac_files
2770 do
2771 case $ac_file in
2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2773 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 esac
2775 done
2776 rm -f $ac_rmfiles
2777
2778 if { { ac_try="$ac_link_default"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784 $as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_link_default") 2>&5
2786 ac_status=$?
2787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788 test $ac_status = 0; }; then :
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2793 # Autoconf.
2794 for ac_file in $ac_files ''
2795 do
2796 test -f "$ac_file" || continue
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2799 ;;
2800 [ab].out )
2801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
2804 *.* )
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
2814 break;;
2815 * )
2816 break;;
2817 esac
2818 done
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
2821 else
2822 ac_file=''
2823 fi
2824 if test -z "$ac_file"; then :
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 $as_echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error 77 "C compiler cannot create executables
2833 See \`config.log' for more details" "$LINENO" 5; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 $as_echo "yes" >&6; }
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839 $as_echo_n "checking for C compiler default output file name... " >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2841 $as_echo "$ac_file" >&6; }
2842 ac_exeext=$ac_cv_exeext
2843
2844 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2845 ac_clean_files=$ac_clean_files_save
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2847 $as_echo_n "checking for suffix of executables... " >&6; }
2848 if { { ac_try="$ac_link"
2849 case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852 esac
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_link") 2>&5
2856 ac_status=$?
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2861 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 # `rm'.
2863 for ac_file in conftest.exe conftest conftest.*; do
2864 test -f "$ac_file" || continue
2865 case $ac_file in
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2868 break;;
2869 * ) break;;
2870 esac
2871 done
2872 else
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details" "$LINENO" 5; }
2877 fi
2878 rm -f conftest conftest$ac_cv_exeext
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2880 $as_echo "$ac_cv_exeext" >&6; }
2881
2882 rm -f conftest.$ac_ext
2883 EXEEXT=$ac_cv_exeext
2884 ac_exeext=$EXEEXT
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2887 #include <stdio.h>
2888 int
2889 main ()
2890 {
2891 FILE *f = fopen ("conftest.out", "w");
2892 return ferror (f) || fclose (f) != 0;
2893
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 ac_clean_files="$ac_clean_files conftest.out"
2899 # Check that the compiler produces executables we can run. If not, either
2900 # the compiler is broken, or we cross compile.
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2902 $as_echo_n "checking whether we are cross compiling... " >&6; }
2903 if test "$cross_compiling" != yes; then
2904 { { ac_try="$ac_link"
2905 case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908 esac
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2912 ac_status=$?
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }
2915 if { ac_try='./conftest$ac_cv_exeext'
2916 { { case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_try") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; }; then
2926 cross_compiling=no
2927 else
2928 if test "$cross_compiling" = maybe; then
2929 cross_compiling=yes
2930 else
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $? "cannot run C compiled programs.
2934 If you meant to cross compile, use \`--host'.
2935 See \`config.log' for more details" "$LINENO" 5; }
2936 fi
2937 fi
2938 fi
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2940 $as_echo "$cross_compiling" >&6; }
2941
2942 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2943 ac_clean_files=$ac_clean_files_save
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2945 $as_echo_n "checking for suffix of object files... " >&6; }
2946 if ${ac_cv_objext+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2951
2952 int
2953 main ()
2954 {
2955
2956 ;
2957 return 0;
2958 }
2959 _ACEOF
2960 rm -f conftest.o conftest.obj
2961 if { { ac_try="$ac_compile"
2962 case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_compile") 2>&5
2969 ac_status=$?
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
2972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
2974 case $ac_file in
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2977 break;;
2978 esac
2979 done
2980 else
2981 $as_echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error $? "cannot compute suffix of object files: cannot compile
2987 See \`config.log' for more details" "$LINENO" 5; }
2988 fi
2989 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2992 $as_echo "$ac_cv_objext" >&6; }
2993 OBJEXT=$ac_cv_objext
2994 ac_objext=$OBJEXT
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2996 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2997 if ${ac_cv_c_compiler_gnu+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002
3003 int
3004 main ()
3005 {
3006 #ifndef __GNUC__
3007 choke me
3008 #endif
3009
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 if ac_fn_c_try_compile "$LINENO"; then :
3015 ac_compiler_gnu=yes
3016 else
3017 ac_compiler_gnu=no
3018 fi
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3021
3022 fi
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3024 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3025 if test $ac_compiler_gnu = yes; then
3026 GCC=yes
3027 else
3028 GCC=
3029 fi
3030 ac_test_CFLAGS=${CFLAGS+set}
3031 ac_save_CFLAGS=$CFLAGS
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3033 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3034 if ${ac_cv_prog_cc_g+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 ac_save_c_werror_flag=$ac_c_werror_flag
3038 ac_c_werror_flag=yes
3039 ac_cv_prog_cc_g=no
3040 CFLAGS="-g"
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3043
3044 int
3045 main ()
3046 {
3047
3048 ;
3049 return 0;
3050 }
3051 _ACEOF
3052 if ac_fn_c_try_compile "$LINENO"; then :
3053 ac_cv_prog_cc_g=yes
3054 else
3055 CFLAGS=""
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3058
3059 int
3060 main ()
3061 {
3062
3063 ;
3064 return 0;
3065 }
3066 _ACEOF
3067 if ac_fn_c_try_compile "$LINENO"; then :
3068
3069 else
3070 ac_c_werror_flag=$ac_save_c_werror_flag
3071 CFLAGS="-g"
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 if ac_fn_c_try_compile "$LINENO"; then :
3084 ac_cv_prog_cc_g=yes
3085 fi
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 fi
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 fi
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_c_werror_flag=$ac_save_c_werror_flag
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3094 $as_echo "$ac_cv_prog_cc_g" >&6; }
3095 if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS=$ac_save_CFLAGS
3097 elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3099 CFLAGS="-g -O2"
3100 else
3101 CFLAGS="-g"
3102 fi
3103 else
3104 if test "$GCC" = yes; then
3105 CFLAGS="-O2"
3106 else
3107 CFLAGS=
3108 fi
3109 fi
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3112 if ${ac_cv_prog_cc_c89+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 ac_cv_prog_cc_c89=no
3116 ac_save_CC=$CC
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3119 #include <stdarg.h>
3120 #include <stdio.h>
3121 #include <sys/types.h>
3122 #include <sys/stat.h>
3123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3124 struct buf { int x; };
3125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3126 static char *e (p, i)
3127 char **p;
3128 int i;
3129 {
3130 return p[i];
3131 }
3132 static char *f (char * (*g) (char **, int), char **p, ...)
3133 {
3134 char *s;
3135 va_list v;
3136 va_start (v,p);
3137 s = g (p, va_arg (v,int));
3138 va_end (v);
3139 return s;
3140 }
3141
3142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3143 function prototypes and stuff, but not '\xHH' hex character constants.
3144 These don't provoke an error unfortunately, instead are silently treated
3145 as 'x'. The following induces an error, until -std is added to get
3146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3147 array size at least. It's necessary to write '\x00'==0 to get something
3148 that's true only with -std. */
3149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3150
3151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3152 inside strings and character constants. */
3153 #define FOO(x) 'x'
3154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3155
3156 int test (int i, double x);
3157 struct s1 {int (*f) (int a);};
3158 struct s2 {int (*f) (double a);};
3159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3160 int argc;
3161 char **argv;
3162 int
3163 main ()
3164 {
3165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3166 ;
3167 return 0;
3168 }
3169 _ACEOF
3170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3172 do
3173 CC="$ac_save_CC $ac_arg"
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_c89=$ac_arg
3176 fi
3177 rm -f core conftest.err conftest.$ac_objext
3178 test "x$ac_cv_prog_cc_c89" != "xno" && break
3179 done
3180 rm -f conftest.$ac_ext
3181 CC=$ac_save_CC
3182
3183 fi
3184 # AC_CACHE_VAL
3185 case "x$ac_cv_prog_cc_c89" in
3186 x)
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3188 $as_echo "none needed" >&6; } ;;
3189 xno)
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3191 $as_echo "unsupported" >&6; } ;;
3192 *)
3193 CC="$CC $ac_cv_prog_cc_c89"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3196 esac
3197 if test "x$ac_cv_prog_cc_c89" != xno; then :
3198
3199 fi
3200
3201 ac_ext=c
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
3207
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3215 # On Suns, sometimes $CPP names a directory.
3216 if test -n "$CPP" && test -d "$CPP"; then
3217 CPP=
3218 fi
3219 if test -z "$CPP"; then
3220 if ${ac_cv_prog_CPP+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 # Double quotes because CPP needs to be expanded
3224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 do
3226 ac_preproc_ok=false
3227 for ac_c_preproc_warn_flag in '' yes
3228 do
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error" is here to catch this case.
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3237 #ifdef __STDC__
3238 # include <limits.h>
3239 #else
3240 # include <assert.h>
3241 #endif
3242 Syntax error
3243 _ACEOF
3244 if ac_fn_c_try_cpp "$LINENO"; then :
3245
3246 else
3247 # Broken: fails on valid input.
3248 continue
3249 fi
3250 rm -f conftest.err conftest.i conftest.$ac_ext
3251
3252 # OK, works on sane cases. Now check whether nonexistent headers
3253 # can be detected and how.
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256 #include <ac_nonexistent.h>
3257 _ACEOF
3258 if ac_fn_c_try_cpp "$LINENO"; then :
3259 # Broken: success on invalid input.
3260 continue
3261 else
3262 # Passes both tests.
3263 ac_preproc_ok=:
3264 break
3265 fi
3266 rm -f conftest.err conftest.i conftest.$ac_ext
3267
3268 done
3269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270 rm -f conftest.i conftest.err conftest.$ac_ext
3271 if $ac_preproc_ok; then :
3272 break
3273 fi
3274
3275 done
3276 ac_cv_prog_CPP=$CPP
3277
3278 fi
3279 CPP=$ac_cv_prog_CPP
3280 else
3281 ac_cv_prog_CPP=$CPP
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3284 $as_echo "$CPP" >&6; }
3285 ac_preproc_ok=false
3286 for ac_c_preproc_warn_flag in '' yes
3287 do
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301 Syntax error
3302 _ACEOF
3303 if ac_fn_c_try_cpp "$LINENO"; then :
3304
3305 else
3306 # Broken: fails on valid input.
3307 continue
3308 fi
3309 rm -f conftest.err conftest.i conftest.$ac_ext
3310
3311 # OK, works on sane cases. Now check whether nonexistent headers
3312 # can be detected and how.
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <ac_nonexistent.h>
3316 _ACEOF
3317 if ac_fn_c_try_cpp "$LINENO"; then :
3318 # Broken: success on invalid input.
3319 continue
3320 else
3321 # Passes both tests.
3322 ac_preproc_ok=:
3323 break
3324 fi
3325 rm -f conftest.err conftest.i conftest.$ac_ext
3326
3327 done
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.i conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then :
3331
3332 else
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3336 See \`config.log' for more details" "$LINENO" 5; }
3337 fi
3338
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344
3345
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3348 if ${ac_cv_path_GREP+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -z "$GREP"; then
3352 ac_path_GREP_found=false
3353 # Loop through the user's path and test for each of PROGNAME-LIST
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_prog in grep ggrep; do
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3363 # Check for GNU ac_path_GREP and select it if it is found.
3364 # Check for GNU $ac_path_GREP
3365 case `"$ac_path_GREP" --version 2>&1` in
3366 *GNU*)
3367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3368 *)
3369 ac_count=0
3370 $as_echo_n 0123456789 >"conftest.in"
3371 while :
3372 do
3373 cat "conftest.in" "conftest.in" >"conftest.tmp"
3374 mv "conftest.tmp" "conftest.in"
3375 cp "conftest.in" "conftest.nl"
3376 $as_echo 'GREP' >> "conftest.nl"
3377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3379 as_fn_arith $ac_count + 1 && ac_count=$as_val
3380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3381 # Best one so far, save it but keep looking for a better one
3382 ac_cv_path_GREP="$ac_path_GREP"
3383 ac_path_GREP_max=$ac_count
3384 fi
3385 # 10*(2^10) chars as input seems more than enough
3386 test $ac_count -gt 10 && break
3387 done
3388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3389 esac
3390
3391 $ac_path_GREP_found && break 3
3392 done
3393 done
3394 done
3395 IFS=$as_save_IFS
3396 if test -z "$ac_cv_path_GREP"; then
3397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3398 fi
3399 else
3400 ac_cv_path_GREP=$GREP
3401 fi
3402
3403 fi
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3405 $as_echo "$ac_cv_path_GREP" >&6; }
3406 GREP="$ac_cv_path_GREP"
3407
3408
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3410 $as_echo_n "checking for egrep... " >&6; }
3411 if ${ac_cv_path_EGREP+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3415 then ac_cv_path_EGREP="$GREP -E"
3416 else
3417 if test -z "$EGREP"; then
3418 ac_path_EGREP_found=false
3419 # Loop through the user's path and test for each of PROGNAME-LIST
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_prog in egrep; do
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3428 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3429 # Check for GNU ac_path_EGREP and select it if it is found.
3430 # Check for GNU $ac_path_EGREP
3431 case `"$ac_path_EGREP" --version 2>&1` in
3432 *GNU*)
3433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3434 *)
3435 ac_count=0
3436 $as_echo_n 0123456789 >"conftest.in"
3437 while :
3438 do
3439 cat "conftest.in" "conftest.in" >"conftest.tmp"
3440 mv "conftest.tmp" "conftest.in"
3441 cp "conftest.in" "conftest.nl"
3442 $as_echo 'EGREP' >> "conftest.nl"
3443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3445 as_fn_arith $ac_count + 1 && ac_count=$as_val
3446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3447 # Best one so far, save it but keep looking for a better one
3448 ac_cv_path_EGREP="$ac_path_EGREP"
3449 ac_path_EGREP_max=$ac_count
3450 fi
3451 # 10*(2^10) chars as input seems more than enough
3452 test $ac_count -gt 10 && break
3453 done
3454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3455 esac
3456
3457 $ac_path_EGREP_found && break 3
3458 done
3459 done
3460 done
3461 IFS=$as_save_IFS
3462 if test -z "$ac_cv_path_EGREP"; then
3463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3464 fi
3465 else
3466 ac_cv_path_EGREP=$EGREP
3467 fi
3468
3469 fi
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3472 $as_echo "$ac_cv_path_EGREP" >&6; }
3473 EGREP="$ac_cv_path_EGREP"
3474
3475
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3477 $as_echo_n "checking for ANSI C header files... " >&6; }
3478 if ${ac_cv_header_stdc+:} false; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdlib.h>
3484 #include <stdarg.h>
3485 #include <string.h>
3486 #include <float.h>
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_header_stdc=yes
3498 else
3499 ac_cv_header_stdc=no
3500 fi
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502
3503 if test $ac_cv_header_stdc = yes; then
3504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3507 #include <string.h>
3508
3509 _ACEOF
3510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 $EGREP "memchr" >/dev/null 2>&1; then :
3512
3513 else
3514 ac_cv_header_stdc=no
3515 fi
3516 rm -f conftest*
3517
3518 fi
3519
3520 if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524 #include <stdlib.h>
3525
3526 _ACEOF
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "free" >/dev/null 2>&1; then :
3529
3530 else
3531 ac_cv_header_stdc=no
3532 fi
3533 rm -f conftest*
3534
3535 fi
3536
3537 if test $ac_cv_header_stdc = yes; then
3538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3539 if test "$cross_compiling" = yes; then :
3540 :
3541 else
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 #include <ctype.h>
3545 #include <stdlib.h>
3546 #if ((' ' & 0x0FF) == 0x020)
3547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3549 #else
3550 # define ISLOWER(c) \
3551 (('a' <= (c) && (c) <= 'i') \
3552 || ('j' <= (c) && (c) <= 'r') \
3553 || ('s' <= (c) && (c) <= 'z'))
3554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3555 #endif
3556
3557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3558 int
3559 main ()
3560 {
3561 int i;
3562 for (i = 0; i < 256; i++)
3563 if (XOR (islower (i), ISLOWER (i))
3564 || toupper (i) != TOUPPER (i))
3565 return 2;
3566 return 0;
3567 }
3568 _ACEOF
3569 if ac_fn_c_try_run "$LINENO"; then :
3570
3571 else
3572 ac_cv_header_stdc=no
3573 fi
3574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3575 conftest.$ac_objext conftest.beam conftest.$ac_ext
3576 fi
3577
3578 fi
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3581 $as_echo "$ac_cv_header_stdc" >&6; }
3582 if test $ac_cv_header_stdc = yes; then
3583
3584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3585
3586 fi
3587
3588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3590 inttypes.h stdint.h unistd.h
3591 do :
3592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3593 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3594 "
3595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3596 cat >>confdefs.h <<_ACEOF
3597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598 _ACEOF
3599
3600 fi
3601
3602 done
3603
3604
3605
3606 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3607 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3608 MINIX=yes
3609 else
3610 MINIX=
3611 fi
3612
3613
3614 if test "$MINIX" = yes; then
3615
3616 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3617
3618
3619 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3620
3621
3622 $as_echo "#define _MINIX 1" >>confdefs.h
3623
3624 fi
3625
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3628 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3629 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3634
3635 # define __EXTENSIONS__ 1
3636 $ac_includes_default
3637 int
3638 main ()
3639 {
3640
3641 ;
3642 return 0;
3643 }
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_safe_to_define___extensions__=yes
3647 else
3648 ac_cv_safe_to_define___extensions__=no
3649 fi
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3653 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3654 test $ac_cv_safe_to_define___extensions__ = yes &&
3655 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3656
3657 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3658
3659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3660
3661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3662
3663 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3664
3665
3666
3667
3668 OLD_CFLAGS="$CFLAGS"
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 fi
3713 if test -z "$ac_cv_prog_CC"; then
3714 ac_ct_CC=$CC
3715 # Extract the first word of "gcc", so it can be a program name with args.
3716 set dummy gcc; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -n "$ac_ct_CC"; then
3723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3724 else
3725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 for as_dir in $PATH
3727 do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_prog_ac_ct_CC="gcc"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738 IFS=$as_save_IFS
3739
3740 fi
3741 fi
3742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743 if test -n "$ac_ct_CC"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745 $as_echo "$ac_ct_CC" >&6; }
3746 else
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3749 fi
3750
3751 if test "x$ac_ct_CC" = x; then
3752 CC=""
3753 else
3754 case $cross_compiling:$ac_tool_warned in
3755 yes:)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned=yes ;;
3759 esac
3760 CC=$ac_ct_CC
3761 fi
3762 else
3763 CC="$ac_cv_prog_CC"
3764 fi
3765
3766 if test -z "$CC"; then
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}cc; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if ${ac_cv_prog_CC+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 if test -n "$CC"; then
3776 ac_cv_prog_CC="$CC" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_CC="${ac_tool_prefix}cc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3788 fi
3789 done
3790 done
3791 IFS=$as_save_IFS
3792
3793 fi
3794 fi
3795 CC=$ac_cv_prog_CC
3796 if test -n "$CC"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 $as_echo "$CC" >&6; }
3799 else
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3802 fi
3803
3804
3805 fi
3806 fi
3807 if test -z "$CC"; then
3808 # Extract the first word of "cc", so it can be a program name with args.
3809 set dummy cc; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817 else
3818 ac_prog_rejected=no
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3827 ac_prog_rejected=yes
3828 continue
3829 fi
3830 ac_cv_prog_CC="cc"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834 done
3835 done
3836 IFS=$as_save_IFS
3837
3838 if test $ac_prog_rejected = yes; then
3839 # We found a bogon in the path, so make sure we never use it.
3840 set dummy $ac_cv_prog_CC
3841 shift
3842 if test $# != 0; then
3843 # We chose a different compiler from the bogus one.
3844 # However, it has the same basename, so the bogon will be chosen
3845 # first if we set CC to just the basename; use the full file name.
3846 shift
3847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3848 fi
3849 fi
3850 fi
3851 fi
3852 CC=$ac_cv_prog_CC
3853 if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 $as_echo "$CC" >&6; }
3856 else
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3859 fi
3860
3861
3862 fi
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 for ac_prog in cl.exe
3866 do
3867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_CC+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 if test -n "$CC"; then
3875 ac_cv_prog_CC="$CC" # Let the user override the test.
3876 else
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 for as_dir in $PATH
3879 do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3886 break 2
3887 fi
3888 done
3889 done
3890 IFS=$as_save_IFS
3891
3892 fi
3893 fi
3894 CC=$ac_cv_prog_CC
3895 if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3898 else
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3901 fi
3902
3903
3904 test -n "$CC" && break
3905 done
3906 fi
3907 if test -z "$CC"; then
3908 ac_ct_CC=$CC
3909 for ac_prog in cl.exe
3910 do
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy $ac_prog; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -n "$ac_ct_CC"; then
3919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_ac_ct_CC="$ac_prog"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 break 2
3931 fi
3932 done
3933 done
3934 IFS=$as_save_IFS
3935
3936 fi
3937 fi
3938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939 if test -n "$ac_ct_CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941 $as_echo "$ac_ct_CC" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 fi
3946
3947
3948 test -n "$ac_ct_CC" && break
3949 done
3950
3951 if test "x$ac_ct_CC" = x; then
3952 CC=""
3953 else
3954 case $cross_compiling:$ac_tool_warned in
3955 yes:)
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958 ac_tool_warned=yes ;;
3959 esac
3960 CC=$ac_ct_CC
3961 fi
3962 fi
3963
3964 fi
3965
3966
3967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $? "no acceptable C compiler found in \$PATH
3970 See \`config.log' for more details" "$LINENO" 5; }
3971
3972 # Provide some information about the compiler.
3973 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3974 set X $ac_compile
3975 ac_compiler=$2
3976 for ac_option in --version -v -V -qversion; do
3977 { { ac_try="$ac_compiler $ac_option >&5"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3985 ac_status=$?
3986 if test -s conftest.err; then
3987 sed '10a\
3988 ... rest of stderr output deleted ...
3989 10q' conftest.err >conftest.er1
3990 cat conftest.er1 >&5
3991 fi
3992 rm -f conftest.er1 conftest.err
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }
3995 done
3996
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if ${ac_cv_c_compiler_gnu+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main ()
4007 {
4008 #ifndef __GNUC__
4009 choke me
4010 #endif
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017 ac_compiler_gnu=yes
4018 else
4019 ac_compiler_gnu=no
4020 fi
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4028 GCC=yes
4029 else
4030 GCC=
4031 fi
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if ${ac_cv_prog_cc_g+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4041 ac_cv_prog_cc_g=no
4042 CFLAGS="-g"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045
4046 int
4047 main ()
4048 {
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_g=yes
4056 else
4057 CFLAGS=""
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060
4061 int
4062 main ()
4063 {
4064
4065 ;
4066 return 0;
4067 }
4068 _ACEOF
4069 if ac_fn_c_try_compile "$LINENO"; then :
4070
4071 else
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main ()
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_cv_prog_cc_g=yes
4087 fi
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 fi
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4101 CFLAGS="-g -O2"
4102 else
4103 CFLAGS="-g"
4104 fi
4105 else
4106 if test "$GCC" = yes; then
4107 CFLAGS="-O2"
4108 else
4109 CFLAGS=
4110 fi
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if ${ac_cv_prog_cc_c89+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 ac_cv_prog_cc_c89=no
4118 ac_save_CC=$CC
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #include <stdarg.h>
4122 #include <stdio.h>
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4129 char **p;
4130 int i;
4131 {
4132 return p[i];
4133 }
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4135 {
4136 char *s;
4137 va_list v;
4138 va_start (v,p);
4139 s = g (p, va_arg (v,int));
4140 va_end (v);
4141 return s;
4142 }
4143
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4152
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4155 #define FOO(x) 'x'
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4157
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 int argc;
4163 char **argv;
4164 int
4165 main ()
4166 {
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4174 do
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4181 done
4182 rm -f conftest.$ac_ext
4183 CC=$ac_save_CC
4184
4185 fi
4186 # AC_CACHE_VAL
4187 case "x$ac_cv_prog_cc_c89" in
4188 x)
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4194 *)
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4198 esac
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4200
4201 fi
4202
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208
4209 ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214
4215
4216 CFLAGS="$OLD_CFLAGS"
4217
4218 ac_aux_dir=
4219 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4220 if test -f "$ac_dir/install-sh"; then
4221 ac_aux_dir=$ac_dir
4222 ac_install_sh="$ac_aux_dir/install-sh -c"
4223 break
4224 elif test -f "$ac_dir/install.sh"; then
4225 ac_aux_dir=$ac_dir
4226 ac_install_sh="$ac_aux_dir/install.sh -c"
4227 break
4228 elif test -f "$ac_dir/shtool"; then
4229 ac_aux_dir=$ac_dir
4230 ac_install_sh="$ac_aux_dir/shtool install -c"
4231 break
4232 fi
4233 done
4234 if test -z "$ac_aux_dir"; then
4235 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4236 fi
4237
4238 # These three variables are undocumented and unsupported,
4239 # and are intended to be withdrawn in a future Autoconf release.
4240 # They can cause serious problems if a builder's source tree is in a directory
4241 # whose full name contains unusual characters.
4242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4245
4246
4247
4248
4249 subdirs="$subdirs libratbox"
4250
4251
4252
4253 if test "$ac_cv_c_compiler_gnu" != yes; then
4254
4255 SGS=no
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4257 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4258 case `$CC -version 2>&1` in
4259 *TenDRA*)
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4261 $as_echo "yes, TenDRA" >&6; }
4262 IRC_CFLAGS=""
4263 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4264 SGS=yes
4265 TenDRA=yes
4266 ;;
4267 *MIPSpro*)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4269 $as_echo "yes, MIPSpro" >&6; }
4270 MIPSpro=yes
4271 SGS=yes
4272 ;;
4273 *)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4276 TenDRA=no
4277 MIPSpro=no
4278 ;;
4279 esac
4280
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4282 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4283 case `$CC -V 2>&1` in
4284 *Sun*WorkShop* | *Forte*Developer*)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4286 $as_echo "Sun Workshop/Forte" >&6; }
4287 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4288 SunWorkShop=yes
4289 SGS=yes
4290 ;;
4291 *Tru64*)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4293 $as_echo "Tru64 cc" >&6; }
4294 IRC_CFLAGS="-O2"
4295 CPPFLAGS="-I/usr/local/include"
4296 Tru=yes
4297 ;;
4298 *HP*ANSI*)
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4300 $as_echo "HPUX cc" >&6; }
4301 HPUX=yes
4302 IRC_CFLAGS="+e"
4303 ;;
4304 *)
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4307 ;;
4308 esac
4309
4310 fi
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4313 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4314 OSNAME=`uname -s`
4315 case "$OSNAME" in
4316 HP-UX*)
4317
4318 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4320 $as_echo "assuming old HPUX with its own cc" >&6; }
4321 IRC_CFLAGS="$IRC_CFLAGS +e"
4322 HPUX=yes
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4325 $as_echo "already using newer HPUX" >&6; }
4326 fi
4327 ;;
4328 SunOS*)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4330 $as_echo "SunOS or Solaris" >&6; }
4331
4332 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4333
4334 SUN=yes
4335 ;;
4336 AIX*)
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4338 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4339 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4340 ;;
4341 *)
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4344 ;;
4345 esac
4346
4347 if test "$ac_cv_c_compiler_gnu" = yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4349 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4350
4351 case `$CC -v 2>&1 | tail -n 1` in
4352 *Apple*)
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4355 AppleGCC=yes
4356 ;;
4357 *)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 AppleGCC=no
4361 ;;
4362 esac
4363
4364 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4365 fi
4366
4367 if test "$ac_cv_prog_cc_g" = yes; then
4368 if test "$Tru" = yes; then
4369 IRC_CFLAGS="$IRC_CFLAGS -g3"
4370 else
4371 IRC_CFLAGS="$IRC_CFLAGS -g"
4372 fi
4373 fi
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4376 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4377 if test "$SGS" = "yes"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385 # Extract the first word of "mkdep", so it can be a program name with args.
4386 set dummy mkdep; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_path_MKDEP+:} false; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 case $MKDEP in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4395 ;;
4396 *)
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 ;;
4413 esac
4414 fi
4415 MKDEP=$ac_cv_path_MKDEP
4416 if test -n "$MKDEP"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4418 $as_echo "$MKDEP" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423
4424
4425 # Extract the first word of "makedepend", so it can be a program name with args.
4426 set dummy makedepend; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 case $MAKEDEPEND in
4433 [\\/]* | ?:[\\/]*)
4434 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4435 ;;
4436 *)
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452 ;;
4453 esac
4454 fi
4455 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4456 if test -n "$MAKEDEPEND"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4458 $as_echo "$MAKEDEPEND" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4462 fi
4463
4464
4465
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4467 $as_echo_n "checking how to generate dependency info... " >&6; }
4468
4469 STDOUT="> .depend"
4470
4471 if test "$ac_cv_c_compiler_gnu" = yes; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4473 $as_echo "gcc -MM" >&6; }
4474 MKDEP="$CC -MM"
4475 elif test ! -z "$MKDEP"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4477 $as_echo "mkdep" >&6; }
4478
4479 if test -z "$Tru"; then
4480 STDOUT=""
4481 else
4482 STDOUT=" 2> /dev/null"
4483 fi
4484 elif test "$SunWorkShop" = yes; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4486 $as_echo "$CC -xM" >&6; }
4487 MKDEP="$CC -xM"
4488 STDOUT="> .depend 2> /dev/null"
4489 elif test ! -z "$MAKEDEPEND"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4491 $as_echo "makedepend" >&6; }
4492 MKDEP="$MAKEDEPEND -f-"
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4495 $as_echo "nothing suitable.. forget it!" >&6; }
4496 MKDEP=":"
4497 fi
4498
4499
4500
4501
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4503 $as_echo_n "checking for /dev/null... " >&6; }
4504 if test -c /dev/null ; then
4505
4506 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509 $as_echo "yes" >&6; }
4510 else
4511
4512 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4513
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4515 $as_echo "no - using devnull.log" >&6; }
4516 fi
4517
4518 if test ! -z "$CFLAGS"; then
4519 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4520 fi
4521
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4523 $as_echo_n "checking for library containing strerror... " >&6; }
4524 if ${ac_cv_search_strerror+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 ac_func_search_save_LIBS=$LIBS
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4530
4531 /* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4534 #ifdef __cplusplus
4535 extern "C"
4536 #endif
4537 char strerror ();
4538 int
4539 main ()
4540 {
4541 return strerror ();
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 for ac_lib in '' cposix; do
4547 if test -z "$ac_lib"; then
4548 ac_res="none required"
4549 else
4550 ac_res=-l$ac_lib
4551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4552 fi
4553 if ac_fn_c_try_link "$LINENO"; then :
4554 ac_cv_search_strerror=$ac_res
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext \
4557 conftest$ac_exeext
4558 if ${ac_cv_search_strerror+:} false; then :
4559 break
4560 fi
4561 done
4562 if ${ac_cv_search_strerror+:} false; then :
4563
4564 else
4565 ac_cv_search_strerror=no
4566 fi
4567 rm conftest.$ac_ext
4568 LIBS=$ac_func_search_save_LIBS
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4571 $as_echo "$ac_cv_search_strerror" >&6; }
4572 ac_res=$ac_cv_search_strerror
4573 if test "$ac_res" != no; then :
4574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4575
4576 fi
4577
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4579 $as_echo_n "checking for inline... " >&6; }
4580 if ${ac_cv_c_inline+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 ac_cv_c_inline=no
4584 for ac_kw in inline __inline__ __inline; do
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4587 #ifndef __cplusplus
4588 typedef int foo_t;
4589 static $ac_kw foo_t static_foo () {return 0; }
4590 $ac_kw foo_t foo () {return 0; }
4591 #endif
4592
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_cv_c_inline=$ac_kw
4596 fi
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 test "$ac_cv_c_inline" != no && break
4599 done
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4603 $as_echo "$ac_cv_c_inline" >&6; }
4604
4605 case $ac_cv_c_inline in
4606 inline | yes) ;;
4607 *)
4608 case $ac_cv_c_inline in
4609 no) ac_val=;;
4610 *) ac_val=$ac_cv_c_inline;;
4611 esac
4612 cat >>confdefs.h <<_ACEOF
4613 #ifndef __cplusplus
4614 #define inline $ac_val
4615 #endif
4616 _ACEOF
4617 ;;
4618 esac
4619
4620 if test $ac_cv_c_compiler_gnu = yes; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4622 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4623 if ${ac_cv_prog_gcc_traditional+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 ac_pattern="Autoconf.*'x'"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <sgtty.h>
4630 Autoconf TIOCGETP
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4634 ac_cv_prog_gcc_traditional=yes
4635 else
4636 ac_cv_prog_gcc_traditional=no
4637 fi
4638 rm -f conftest*
4639
4640
4641 if test $ac_cv_prog_gcc_traditional = no; then
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <termio.h>
4645 Autoconf TCGETA
4646 _ACEOF
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4649 ac_cv_prog_gcc_traditional=yes
4650 fi
4651 rm -f conftest*
4652
4653 fi
4654 fi
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4656 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4657 if test $ac_cv_prog_gcc_traditional = yes; then
4658 CC="$CC -traditional"
4659 fi
4660 fi
4661
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4663 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4664 set x ${MAKE-make}
4665 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4666 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 cat >conftest.make <<\_ACEOF
4670 SHELL = /bin/sh
4671 all:
4672 @echo '@@@%%%=$(MAKE)=@@@%%%'
4673 _ACEOF
4674 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4675 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4676 *@@@%%%=?*=@@@%%%*)
4677 eval ac_cv_prog_make_${ac_make}_set=yes;;
4678 *)
4679 eval ac_cv_prog_make_${ac_make}_set=no;;
4680 esac
4681 rm -f conftest.make
4682 fi
4683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 $as_echo "yes" >&6; }
4686 SET_MAKE=
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 SET_MAKE="MAKE=${MAKE-make}"
4691 fi
4692
4693 # Find a good install program. We prefer a C program (faster),
4694 # so one script is as good as another. But avoid the broken or
4695 # incompatible versions:
4696 # SysV /etc/install, /usr/sbin/install
4697 # SunOS /usr/etc/install
4698 # IRIX /sbin/install
4699 # AIX /bin/install
4700 # AmigaOS /C/install, which installs bootblocks on floppy discs
4701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4704 # OS/2's system install, which has a completely different semantic
4705 # ./install, which can be erroneously created by make from ./install.sh.
4706 # Reject install programs that cannot install multiple files.
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4709 if test -z "$INSTALL"; then
4710 if ${ac_cv_path_install+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 # Account for people who put trailing slashes in PATH elements.
4719 case $as_dir/ in #((
4720 ./ | .// | /[cC]/* | \
4721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4723 /usr/ucb/* ) ;;
4724 *)
4725 # OSF1 and SCO ODT 3.0 have their own names for install.
4726 # Don't use installbsd from OSF since it installs stuff as root
4727 # by default.
4728 for ac_prog in ginstall scoinst install; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4731 if test $ac_prog = install &&
4732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4733 # AIX install. It has an incompatible calling convention.
4734 :
4735 elif test $ac_prog = install &&
4736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4737 # program-specific install script used by HP pwplus--don't use.
4738 :
4739 else
4740 rm -rf conftest.one conftest.two conftest.dir
4741 echo one > conftest.one
4742 echo two > conftest.two
4743 mkdir conftest.dir
4744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4745 test -s conftest.one && test -s conftest.two &&
4746 test -s conftest.dir/conftest.one &&
4747 test -s conftest.dir/conftest.two
4748 then
4749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4750 break 3
4751 fi
4752 fi
4753 fi
4754 done
4755 done
4756 ;;
4757 esac
4758
4759 done
4760 IFS=$as_save_IFS
4761
4762 rm -rf conftest.one conftest.two conftest.dir
4763
4764 fi
4765 if test "${ac_cv_path_install+set}" = set; then
4766 INSTALL=$ac_cv_path_install
4767 else
4768 # As a last resort, use the slow shell script. Don't cache a
4769 # value for INSTALL within a source directory, because that will
4770 # break other packages using the cache if that directory is
4771 # removed, or if the value is a relative name.
4772 INSTALL=$ac_install_sh
4773 fi
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4776 $as_echo "$INSTALL" >&6; }
4777
4778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4779 # It thinks the first close brace ends the variable substitution.
4780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4781
4782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4783
4784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4785
4786 # Extract the first word of "rm", so it can be a program name with args.
4787 set dummy rm; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_RM+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 case $RM in
4794 [\\/]* | ?:[\\/]*)
4795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4796 ;;
4797 *)
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH
4800 do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 break 2
4808 fi
4809 done
4810 done
4811 IFS=$as_save_IFS
4812
4813 ;;
4814 esac
4815 fi
4816 RM=$ac_cv_path_RM
4817 if test -n "$RM"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4819 $as_echo "$RM" >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826 # Extract the first word of "cp", so it can be a program name with args.
4827 set dummy cp; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_path_CP+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 case $CP in
4834 [\\/]* | ?:[\\/]*)
4835 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4836 ;;
4837 *)
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849 done
4850 done
4851 IFS=$as_save_IFS
4852
4853 ;;
4854 esac
4855 fi
4856 CP=$ac_cv_path_CP
4857 if test -n "$CP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4859 $as_echo "$CP" >&6; }
4860 else
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864
4865
4866 # Extract the first word of "mv", so it can be a program name with args.
4867 set dummy mv; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_path_MV+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 case $MV in
4874 [\\/]* | ?:[\\/]*)
4875 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4876 ;;
4877 *)
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 ;;
4894 esac
4895 fi
4896 MV=$ac_cv_path_MV
4897 if test -n "$MV"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4899 $as_echo "$MV" >&6; }
4900 else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4903 fi
4904
4905
4906 # Extract the first word of "ln", so it can be a program name with args.
4907 set dummy ln; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_LN+:} false; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 case $LN in
4914 [\\/]* | ?:[\\/]*)
4915 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4916 ;;
4917 *)
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4928 fi
4929 done
4930 done
4931 IFS=$as_save_IFS
4932
4933 ;;
4934 esac
4935 fi
4936 LN=$ac_cv_path_LN
4937 if test -n "$LN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4939 $as_echo "$LN" >&6; }
4940 else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946 # Extract the first word of "sed", so it can be a program name with args.
4947 set dummy sed; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_SED+:} false; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 case $SED in
4954 [\\/]* | ?:[\\/]*)
4955 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4956 ;;
4957 *)
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967 break 2
4968 fi
4969 done
4970 done
4971 IFS=$as_save_IFS
4972
4973 ;;
4974 esac
4975 fi
4976 SED=$ac_cv_path_SED
4977 if test -n "$SED"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4979 $as_echo "$SED" >&6; }
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986 # Extract the first word of "ar", so it can be a program name with args.
4987 set dummy ar; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_AR+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 case $AR in
4994 [\\/]* | ?:[\\/]*)
4995 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4996 ;;
4997 *)
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 ;;
5014 esac
5015 fi
5016 AR=$ac_cv_path_AR
5017 if test -n "$AR"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5019 $as_echo "$AR" >&6; }
5020 else
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024
5025
5026 # Extract the first word of "ld", so it can be a program name with args.
5027 set dummy ld; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_LD+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 case $LD in
5034 [\\/]* | ?:[\\/]*)
5035 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5036 ;;
5037 *)
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 for as_dir in $PATH
5040 do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049 done
5050 done
5051 IFS=$as_save_IFS
5052
5053 ;;
5054 esac
5055 fi
5056 LD=$ac_cv_path_LD
5057 if test -n "$LD"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5059 $as_echo "$LD" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5063 fi
5064
5065
5066 # Extract the first word of "ranlib", so it can be a program name with args.
5067 set dummy ranlib; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_RANLIB+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 case $RANLIB in
5074 [\\/]* | ?:[\\/]*)
5075 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5076 ;;
5077 *)
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093 ;;
5094 esac
5095 fi
5096 RANLIB=$ac_cv_path_RANLIB
5097 if test -n "$RANLIB"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5099 $as_echo "$RANLIB" >&6; }
5100 else
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105
5106 # Extract the first word of "touch", so it can be a program name with args.
5107 set dummy touch; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_path_TOUCH+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 case $TOUCH in
5114 [\\/]* | ?:[\\/]*)
5115 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5116 ;;
5117 *)
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 ;;
5134 esac
5135 fi
5136 TOUCH=$ac_cv_path_TOUCH
5137 if test -n "$TOUCH"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5139 $as_echo "$TOUCH" >&6; }
5140 else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5143 fi
5144
5145
5146
5147 for ac_prog in 'bison -y' byacc
5148 do
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_YACC+:} false; then :
5154 $as_echo_n "(cached) " >&6
5155 else
5156 if test -n "$YACC"; then
5157 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5158 else
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 for as_dir in $PATH
5161 do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_YACC="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
5170 done
5171 done
5172 IFS=$as_save_IFS
5173
5174 fi
5175 fi
5176 YACC=$ac_cv_prog_YACC
5177 if test -n "$YACC"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5179 $as_echo "$YACC" >&6; }
5180 else
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5183 fi
5184
5185
5186 test -n "$YACC" && break
5187 done
5188 test -n "$YACC" || YACC="yacc"
5189
5190
5191 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
5192 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5193 fi
5194
5195 for ac_prog in flex lex
5196 do
5197 # Extract the first word of "$ac_prog", so it can be a program name with args.
5198 set dummy $ac_prog; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_LEX+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$LEX"; then
5205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_LEX="$ac_prog"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 LEX=$ac_cv_prog_LEX
5225 if test -n "$LEX"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5227 $as_echo "$LEX" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 test -n "$LEX" && break
5235 done
5236 test -n "$LEX" || LEX=":"
5237
5238 if test "x$LEX" != "x:"; then
5239 cat >conftest.l <<_ACEOF
5240 %%
5241 a { ECHO; }
5242 b { REJECT; }
5243 c { yymore (); }
5244 d { yyless (1); }
5245 e { yyless (input () != 0); }
5246 f { unput (yytext[0]); }
5247 . { BEGIN INITIAL; }
5248 %%
5249 #ifdef YYTEXT_POINTER
5250 extern char *yytext;
5251 #endif
5252 int
5253 main (void)
5254 {
5255 return ! yylex () + ! yywrap ();
5256 }
5257 _ACEOF
5258 { { ac_try="$LEX conftest.l"
5259 case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5264 $as_echo "$ac_try_echo"; } >&5
5265 (eval "$LEX conftest.l") 2>&5
5266 ac_status=$?
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5270 $as_echo_n "checking lex output file root... " >&6; }
5271 if ${ac_cv_prog_lex_root+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274
5275 if test -f lex.yy.c; then
5276 ac_cv_prog_lex_root=lex.yy
5277 elif test -f lexyy.c; then
5278 ac_cv_prog_lex_root=lexyy
5279 else
5280 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5281 fi
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5284 $as_echo "$ac_cv_prog_lex_root" >&6; }
5285 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5286
5287 if test -z "${LEXLIB+set}"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5289 $as_echo_n "checking lex library... " >&6; }
5290 if ${ac_cv_lib_lex+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293
5294 ac_save_LIBS=$LIBS
5295 ac_cv_lib_lex='none needed'
5296 for ac_lib in '' -lfl -ll; do
5297 LIBS="$ac_lib $ac_save_LIBS"
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 `cat $LEX_OUTPUT_ROOT.c`
5301 _ACEOF
5302 if ac_fn_c_try_link "$LINENO"; then :
5303 ac_cv_lib_lex=$ac_lib
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
5307 test "$ac_cv_lib_lex" != 'none needed' && break
5308 done
5309 LIBS=$ac_save_LIBS
5310
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5313 $as_echo "$ac_cv_lib_lex" >&6; }
5314 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5315 fi
5316
5317
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5319 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5320 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 # POSIX says lex can declare yytext either as a pointer or an array; the
5324 # default is implementation-dependent. Figure out which it is, since
5325 # not all implementations provide the %pointer and %array declarations.
5326 ac_cv_prog_lex_yytext_pointer=no
5327 ac_save_LIBS=$LIBS
5328 LIBS="$LEXLIB $ac_save_LIBS"
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5331
5332 #define YYTEXT_POINTER 1
5333 `cat $LEX_OUTPUT_ROOT.c`
5334 _ACEOF
5335 if ac_fn_c_try_link "$LINENO"; then :
5336 ac_cv_prog_lex_yytext_pointer=yes
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340 LIBS=$ac_save_LIBS
5341
5342 fi
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5344 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5345 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5346
5347 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5348
5349 fi
5350 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5351
5352 fi
5353
5354 if test "$LEX" = ":"; then
5355 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5356 fi
5357
5358 if test "$libexecdir" = '${exec_prefix}/libexec' &&
5359 test "$localstatedir" = '${prefix}/var'; then
5360 libexecdir='${bindir}'
5361 localstatedir='${prefix}'
5362 fi
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5365 $as_echo_n "checking for ANSI C header files... " >&6; }
5366 if ${ac_cv_header_stdc+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371 #include <stdlib.h>
5372 #include <stdarg.h>
5373 #include <string.h>
5374 #include <float.h>
5375
5376 int
5377 main ()
5378 {
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 ac_cv_header_stdc=yes
5386 else
5387 ac_cv_header_stdc=no
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390
5391 if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <string.h>
5396
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev/null 2>&1; then :
5400
5401 else
5402 ac_cv_header_stdc=no
5403 fi
5404 rm -f conftest*
5405
5406 fi
5407
5408 if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <stdlib.h>
5413
5414 _ACEOF
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev/null 2>&1; then :
5417
5418 else
5419 ac_cv_header_stdc=no
5420 fi
5421 rm -f conftest*
5422
5423 fi
5424
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then :
5428 :
5429 else
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 #include <ctype.h>
5433 #include <stdlib.h>
5434 #if ((' ' & 0x0FF) == 0x020)
5435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5437 #else
5438 # define ISLOWER(c) \
5439 (('a' <= (c) && (c) <= 'i') \
5440 || ('j' <= (c) && (c) <= 'r') \
5441 || ('s' <= (c) && (c) <= 'z'))
5442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5443 #endif
5444
5445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5446 int
5447 main ()
5448 {
5449 int i;
5450 for (i = 0; i < 256; i++)
5451 if (XOR (islower (i), ISLOWER (i))
5452 || toupper (i) != TOUPPER (i))
5453 return 2;
5454 return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_run "$LINENO"; then :
5458
5459 else
5460 ac_cv_header_stdc=no
5461 fi
5462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5463 conftest.$ac_objext conftest.beam conftest.$ac_ext
5464 fi
5465
5466 fi
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5469 $as_echo "$ac_cv_header_stdc" >&6; }
5470 if test $ac_cv_header_stdc = yes; then
5471
5472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5473
5474 fi
5475
5476
5477 for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
5478 do :
5479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5482 cat >>confdefs.h <<_ACEOF
5483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5484 _ACEOF
5485
5486 fi
5487
5488 done
5489
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5493 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5494 if ${ac_cv_c_const+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499
5500 int
5501 main ()
5502 {
5503 /* FIXME: Include the comments suggested by Paul. */
5504 #ifndef __cplusplus
5505 /* Ultrix mips cc rejects this. */
5506 typedef int charset[2];
5507 const charset cs;
5508 /* SunOS 4.1.1 cc rejects this. */
5509 char const *const *pcpcc;
5510 char **ppc;
5511 /* NEC SVR4.0.2 mips cc rejects this. */
5512 struct point {int x, y;};
5513 static struct point const zero = {0,0};
5514 /* AIX XL C 1.02.0.0 rejects this.
5515 It does not let you subtract one const X* pointer from another in
5516 an arm of an if-expression whose if-part is not a constant
5517 expression */
5518 const char *g = "string";
5519 pcpcc = &g + (g ? g-g : 0);
5520 /* HPUX 7.0 cc rejects these. */
5521 ++pcpcc;
5522 ppc = (char**) pcpcc;
5523 pcpcc = (char const *const *) ppc;
5524 { /* SCO 3.2v4 cc rejects this. */
5525 char *t;
5526 char const *s = 0 ? (char *) 0 : (char const *) 0;
5527
5528 *t++ = 0;
5529 if (s) return 0;
5530 }
5531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5532 int x[] = {25, 17};
5533 const int *foo = &x[0];
5534 ++foo;
5535 }
5536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5537 typedef const int *iptr;
5538 iptr p = 0;
5539 ++p;
5540 }
5541 { /* AIX XL C 1.02.0.0 rejects this saying
5542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5543 struct s { int j; const int *ap[3]; };
5544 struct s *b; b->j = 5;
5545 }
5546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5547 const int foo = 10;
5548 if (!foo) return 0;
5549 }
5550 return !cs[0] && !zero.x;
5551 #endif
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_compile "$LINENO"; then :
5558 ac_cv_c_const=yes
5559 else
5560 ac_cv_c_const=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 fi
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5565 $as_echo "$ac_cv_c_const" >&6; }
5566 if test $ac_cv_c_const = no; then
5567
5568 $as_echo "#define const /**/" >>confdefs.h
5569
5570 fi
5571
5572 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5574 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5575 if ${ac_cv_c_bigendian+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 ac_cv_c_bigendian=unknown
5579 # See if we're dealing with a universal compiler.
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #ifndef __APPLE_CC__
5583 not a universal capable compiler
5584 #endif
5585 typedef int dummy;
5586
5587 _ACEOF
5588 if ac_fn_c_try_compile "$LINENO"; then :
5589
5590 # Check for potential -arch flags. It is not universal unless
5591 # there are at least two -arch flags with different values.
5592 ac_arch=
5593 ac_prev=
5594 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5595 if test -n "$ac_prev"; then
5596 case $ac_word in
5597 i?86 | x86_64 | ppc | ppc64)
5598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5599 ac_arch=$ac_word
5600 else
5601 ac_cv_c_bigendian=universal
5602 break
5603 fi
5604 ;;
5605 esac
5606 ac_prev=
5607 elif test "x$ac_word" = "x-arch"; then
5608 ac_prev=arch
5609 fi
5610 done
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 if test $ac_cv_c_bigendian = unknown; then
5614 # See if sys/param.h defines the BYTE_ORDER macro.
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <sys/types.h>
5618 #include <sys/param.h>
5619
5620 int
5621 main ()
5622 {
5623 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5625 && LITTLE_ENDIAN)
5626 bogus endian macros
5627 #endif
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 # It does; now see whether it defined to BIG_ENDIAN or not.
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 #include <sys/param.h>
5639
5640 int
5641 main ()
5642 {
5643 #if BYTE_ORDER != BIG_ENDIAN
5644 not big endian
5645 #endif
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_compile "$LINENO"; then :
5652 ac_cv_c_bigendian=yes
5653 else
5654 ac_cv_c_bigendian=no
5655 fi
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 fi
5660 if test $ac_cv_c_bigendian = unknown; then
5661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5664 #include <limits.h>
5665
5666 int
5667 main ()
5668 {
5669 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5670 bogus endian macros
5671 #endif
5672
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"; then :
5678 # It does; now see whether it defined to _BIG_ENDIAN or not.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <limits.h>
5682
5683 int
5684 main ()
5685 {
5686 #ifndef _BIG_ENDIAN
5687 not big endian
5688 #endif
5689
5690 ;
5691 return 0;
5692 }
5693 _ACEOF
5694 if ac_fn_c_try_compile "$LINENO"; then :
5695 ac_cv_c_bigendian=yes
5696 else
5697 ac_cv_c_bigendian=no
5698 fi
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 fi
5703 if test $ac_cv_c_bigendian = unknown; then
5704 # Compile a test program.
5705 if test "$cross_compiling" = yes; then :
5706 # Try to guess by grepping values from an object file.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 short int ascii_mm[] =
5710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5711 short int ascii_ii[] =
5712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5713 int use_ascii (int i) {
5714 return ascii_mm[i] + ascii_ii[i];
5715 }
5716 short int ebcdic_ii[] =
5717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5718 short int ebcdic_mm[] =
5719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5720 int use_ebcdic (int i) {
5721 return ebcdic_mm[i] + ebcdic_ii[i];
5722 }
5723 extern int foo;
5724
5725 int
5726 main ()
5727 {
5728 return use_ascii (foo) == use_ebcdic (foo);
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5735 ac_cv_c_bigendian=yes
5736 fi
5737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5738 if test "$ac_cv_c_bigendian" = unknown; then
5739 ac_cv_c_bigendian=no
5740 else
5741 # finding both strings is unlikely to happen, but who knows?
5742 ac_cv_c_bigendian=unknown
5743 fi
5744 fi
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 else
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754
5755 /* Are we little or big endian? From Harbison&Steele. */
5756 union
5757 {
5758 long int l;
5759 char c[sizeof (long int)];
5760 } u;
5761 u.l = 1;
5762 return u.c[sizeof (long int) - 1] == 1;
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_run "$LINENO"; then :
5769 ac_cv_c_bigendian=no
5770 else
5771 ac_cv_c_bigendian=yes
5772 fi
5773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5775 fi
5776
5777 fi
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5780 $as_echo "$ac_cv_c_bigendian" >&6; }
5781 case $ac_cv_c_bigendian in #(
5782 yes)
5783 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5784 ;; #(
5785 no)
5786 ;; #(
5787 universal)
5788
5789 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5790
5791 ;; #(
5792 *)
5793 as_fn_error $? "unknown endianness
5794 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5795 esac
5796
5797 fi
5798 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5799 if test "x$ac_cv_type_pid_t" = xyes; then :
5800
5801 else
5802
5803 cat >>confdefs.h <<_ACEOF
5804 #define pid_t int
5805 _ACEOF
5806
5807 fi
5808
5809 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5810 if test "x$ac_cv_type_size_t" = xyes; then :
5811
5812 else
5813
5814 cat >>confdefs.h <<_ACEOF
5815 #define size_t unsigned int
5816 _ACEOF
5817
5818 fi
5819
5820 # The cast to long int works around a bug in the HP C Compiler
5821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823 # This bug is HP SR number 8606223364.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5825 $as_echo_n "checking size of short... " >&6; }
5826 if ${ac_cv_sizeof_short+:} false; then :
5827 $as_echo_n "(cached) " >&6
5828 else
5829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5830
5831 else
5832 if test "$ac_cv_type_short" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 as_fn_error 77 "cannot compute sizeof (short)
5836 See \`config.log' for more details" "$LINENO" 5; }
5837 else
5838 ac_cv_sizeof_short=0
5839 fi
5840 fi
5841
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5844 $as_echo "$ac_cv_sizeof_short" >&6; }
5845
5846
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define SIZEOF_SHORT $ac_cv_sizeof_short
5850 _ACEOF
5851
5852
5853 # The cast to long int works around a bug in the HP C Compiler
5854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5856 # This bug is HP SR number 8606223364.
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5858 $as_echo_n "checking size of int... " >&6; }
5859 if ${ac_cv_sizeof_int+:} false; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5863
5864 else
5865 if test "$ac_cv_type_int" = yes; then
5866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5868 as_fn_error 77 "cannot compute sizeof (int)
5869 See \`config.log' for more details" "$LINENO" 5; }
5870 else
5871 ac_cv_sizeof_int=0
5872 fi
5873 fi
5874
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5877 $as_echo "$ac_cv_sizeof_int" >&6; }
5878
5879
5880
5881 cat >>confdefs.h <<_ACEOF
5882 #define SIZEOF_INT $ac_cv_sizeof_int
5883 _ACEOF
5884
5885
5886 # The cast to long int works around a bug in the HP C Compiler
5887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5889 # This bug is HP SR number 8606223364.
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5891 $as_echo_n "checking size of long... " >&6; }
5892 if ${ac_cv_sizeof_long+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5896
5897 else
5898 if test "$ac_cv_type_long" = yes; then
5899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5901 as_fn_error 77 "cannot compute sizeof (long)
5902 See \`config.log' for more details" "$LINENO" 5; }
5903 else
5904 ac_cv_sizeof_long=0
5905 fi
5906 fi
5907
5908 fi
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5910 $as_echo "$ac_cv_sizeof_long" >&6; }
5911
5912
5913
5914 cat >>confdefs.h <<_ACEOF
5915 #define SIZEOF_LONG $ac_cv_sizeof_long
5916 _ACEOF
5917
5918
5919 # The cast to long int works around a bug in the HP C Compiler
5920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5922 # This bug is HP SR number 8606223364.
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5924 $as_echo_n "checking size of long long... " >&6; }
5925 if ${ac_cv_sizeof_long_long+:} false; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5929
5930 else
5931 if test "$ac_cv_type_long_long" = yes; then
5932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5934 as_fn_error 77 "cannot compute sizeof (long long)
5935 See \`config.log' for more details" "$LINENO" 5; }
5936 else
5937 ac_cv_sizeof_long_long=0
5938 fi
5939 fi
5940
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5943 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5944
5945
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5949 _ACEOF
5950
5951
5952
5953
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5955 $as_echo_n "checking for library containing socket... " >&6; }
5956 if ${ac_cv_search_socket+:} false; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 ac_func_search_save_LIBS=$LIBS
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962
5963 /* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5966 #ifdef __cplusplus
5967 extern "C"
5968 #endif
5969 char socket ();
5970 int
5971 main ()
5972 {
5973 return socket ();
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 for ac_lib in '' socket; do
5979 if test -z "$ac_lib"; then
5980 ac_res="none required"
5981 else
5982 ac_res=-l$ac_lib
5983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5984 fi
5985 if ac_fn_c_try_link "$LINENO"; then :
5986 ac_cv_search_socket=$ac_res
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext
5990 if ${ac_cv_search_socket+:} false; then :
5991 break
5992 fi
5993 done
5994 if ${ac_cv_search_socket+:} false; then :
5995
5996 else
5997 ac_cv_search_socket=no
5998 fi
5999 rm conftest.$ac_ext
6000 LIBS=$ac_func_search_save_LIBS
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6003 $as_echo "$ac_cv_search_socket" >&6; }
6004 ac_res=$ac_cv_search_socket
6005 if test "$ac_res" != no; then :
6006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6007
6008 else
6009 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
6010 fi
6011
6012
6013 if test x"$SUN" = xyes; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6015 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6016 if ${ac_cv_search_inet_ntoa+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 else
6019 ac_func_search_save_LIBS=$LIBS
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022
6023 /* Override any GCC internal prototype to avoid an error.
6024 Use char because int might match the return type of a GCC
6025 builtin and then its argument prototype would still apply. */
6026 #ifdef __cplusplus
6027 extern "C"
6028 #endif
6029 char inet_ntoa ();
6030 int
6031 main ()
6032 {
6033 return inet_ntoa ();
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 for ac_lib in '' nsl; do
6039 if test -z "$ac_lib"; then
6040 ac_res="none required"
6041 else
6042 ac_res=-l$ac_lib
6043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6044 fi
6045 if ac_fn_c_try_link "$LINENO"; then :
6046 ac_cv_search_inet_ntoa=$ac_res
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext
6050 if ${ac_cv_search_inet_ntoa+:} false; then :
6051 break
6052 fi
6053 done
6054 if ${ac_cv_search_inet_ntoa+:} false; then :
6055
6056 else
6057 ac_cv_search_inet_ntoa=no
6058 fi
6059 rm conftest.$ac_ext
6060 LIBS=$ac_func_search_save_LIBS
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6063 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6064 ac_res=$ac_cv_search_inet_ntoa
6065 if test "$ac_res" != no; then :
6066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6067
6068 else
6069 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
6070 fi
6071
6072 fi
6073
6074 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6075 #include <sys/socket.h>
6076 "
6077 if test "x$ac_cv_type_socklen_t" = xyes; then :
6078
6079 else
6080
6081 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6082
6083 fi
6084
6085
6086 # Check whether --enable-ipv6 was given.
6087 if test "${enable_ipv6+set}" = set; then :
6088 enableval=$enable_ipv6; ipv6=$enableval
6089 else
6090 ipv6=no
6091 fi
6092
6093
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6095 $as_echo_n "checking for library containing crypt... " >&6; }
6096 if ${ac_cv_search_crypt+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 ac_func_search_save_LIBS=$LIBS
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6106 #ifdef __cplusplus
6107 extern "C"
6108 #endif
6109 char crypt ();
6110 int
6111 main ()
6112 {
6113 return crypt ();
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 for ac_lib in '' crypt descrypt; do
6119 if test -z "$ac_lib"; then
6120 ac_res="none required"
6121 else
6122 ac_res=-l$ac_lib
6123 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6124 fi
6125 if ac_fn_c_try_link "$LINENO"; then :
6126 ac_cv_search_crypt=$ac_res
6127 fi
6128 rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext
6130 if ${ac_cv_search_crypt+:} false; then :
6131 break
6132 fi
6133 done
6134 if ${ac_cv_search_crypt+:} false; then :
6135
6136 else
6137 ac_cv_search_crypt=no
6138 fi
6139 rm conftest.$ac_ext
6140 LIBS=$ac_func_search_save_LIBS
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6143 $as_echo "$ac_cv_search_crypt" >&6; }
6144 ac_res=$ac_cv_search_crypt
6145 if test "$ac_res" != no; then :
6146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6147
6148 fi
6149
6150
6151 CRYPT_LIB=$ac_cv_search_crypt
6152
6153 if test "$CRYPT_LIB" = "none required"; then
6154 unset CRYPT_LIB
6155 elif test "$CRYPT_LIB" = no; then
6156 unset CRYPT_LIB
6157 fi
6158
6159
6160
6161 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6162 VICONF=viconf
6163 else
6164 VICONF=""
6165 fi
6166
6167
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6170 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6171 if ${gcc_cv_header_string+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 #include <string.h>
6178 #include <strings.h>
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 gcc_cv_header_string=yes
6182 else
6183 gcc_cv_header_string=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186
6187 fi
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6189 $as_echo "$gcc_cv_header_string" >&6; }
6190
6191 if test "$gcc_cv_header_string" = "yes"; then
6192
6193 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6194
6195 fi
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6198 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6199 if ${ac_cv_c_bigendian+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 ac_cv_c_bigendian=unknown
6203 # See if we're dealing with a universal compiler.
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #ifndef __APPLE_CC__
6207 not a universal capable compiler
6208 #endif
6209 typedef int dummy;
6210
6211 _ACEOF
6212 if ac_fn_c_try_compile "$LINENO"; then :
6213
6214 # Check for potential -arch flags. It is not universal unless
6215 # there are at least two -arch flags with different values.
6216 ac_arch=
6217 ac_prev=
6218 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6219 if test -n "$ac_prev"; then
6220 case $ac_word in
6221 i?86 | x86_64 | ppc | ppc64)
6222 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6223 ac_arch=$ac_word
6224 else
6225 ac_cv_c_bigendian=universal
6226 break
6227 fi
6228 ;;
6229 esac
6230 ac_prev=
6231 elif test "x$ac_word" = "x-arch"; then
6232 ac_prev=arch
6233 fi
6234 done
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 if test $ac_cv_c_bigendian = unknown; then
6238 # See if sys/param.h defines the BYTE_ORDER macro.
6239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 #include <sys/types.h>
6242 #include <sys/param.h>
6243
6244 int
6245 main ()
6246 {
6247 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6248 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6249 && LITTLE_ENDIAN)
6250 bogus endian macros
6251 #endif
6252
6253 ;
6254 return 0;
6255 }
6256 _ACEOF
6257 if ac_fn_c_try_compile "$LINENO"; then :
6258 # It does; now see whether it defined to BIG_ENDIAN or not.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <sys/types.h>
6262 #include <sys/param.h>
6263
6264 int
6265 main ()
6266 {
6267 #if BYTE_ORDER != BIG_ENDIAN
6268 not big endian
6269 #endif
6270
6271 ;
6272 return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_c_try_compile "$LINENO"; then :
6276 ac_cv_c_bigendian=yes
6277 else
6278 ac_cv_c_bigendian=no
6279 fi
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6283 fi
6284 if test $ac_cv_c_bigendian = unknown; then
6285 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <limits.h>
6289
6290 int
6291 main ()
6292 {
6293 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6294 bogus endian macros
6295 #endif
6296
6297 ;
6298 return 0;
6299 }
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 # It does; now see whether it defined to _BIG_ENDIAN or not.
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 #include <limits.h>
6306
6307 int
6308 main ()
6309 {
6310 #ifndef _BIG_ENDIAN
6311 not big endian
6312 #endif
6313
6314 ;
6315 return 0;
6316 }
6317 _ACEOF
6318 if ac_fn_c_try_compile "$LINENO"; then :
6319 ac_cv_c_bigendian=yes
6320 else
6321 ac_cv_c_bigendian=no
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 fi
6327 if test $ac_cv_c_bigendian = unknown; then
6328 # Compile a test program.
6329 if test "$cross_compiling" = yes; then :
6330 # Try to guess by grepping values from an object file.
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 short int ascii_mm[] =
6334 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6335 short int ascii_ii[] =
6336 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6337 int use_ascii (int i) {
6338 return ascii_mm[i] + ascii_ii[i];
6339 }
6340 short int ebcdic_ii[] =
6341 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6342 short int ebcdic_mm[] =
6343 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6344 int use_ebcdic (int i) {
6345 return ebcdic_mm[i] + ebcdic_ii[i];
6346 }
6347 extern int foo;
6348
6349 int
6350 main ()
6351 {
6352 return use_ascii (foo) == use_ebcdic (foo);
6353 ;
6354 return 0;
6355 }
6356 _ACEOF
6357 if ac_fn_c_try_compile "$LINENO"; then :
6358 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6359 ac_cv_c_bigendian=yes
6360 fi
6361 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6362 if test "$ac_cv_c_bigendian" = unknown; then
6363 ac_cv_c_bigendian=no
6364 else
6365 # finding both strings is unlikely to happen, but who knows?
6366 ac_cv_c_bigendian=unknown
6367 fi
6368 fi
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 else
6372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 int
6376 main ()
6377 {
6378
6379 /* Are we little or big endian? From Harbison&Steele. */
6380 union
6381 {
6382 long int l;
6383 char c[sizeof (long int)];
6384 } u;
6385 u.l = 1;
6386 return u.c[sizeof (long int) - 1] == 1;
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_run "$LINENO"; then :
6393 ac_cv_c_bigendian=no
6394 else
6395 ac_cv_c_bigendian=yes
6396 fi
6397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6398 conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 fi
6400
6401 fi
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6404 $as_echo "$ac_cv_c_bigendian" >&6; }
6405 case $ac_cv_c_bigendian in #(
6406 yes)
6407 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6408 ;; #(
6409 no)
6410 ;; #(
6411 universal)
6412
6413 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6414
6415 ;; #(
6416 *)
6417 as_fn_error $? "unknown endianness
6418 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6419 esac
6420
6421
6422 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_stdarg_h" = xyes; then :
6424
6425 else
6426 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6427 fi
6428
6429
6430
6431
6432 if test "$ac_cv_c_compiler_gnu" = yes; then
6433
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6435 $as_echo_n "checking for strlcpy... " >&6; }
6436 save_CFLAGS=$CFLAGS
6437 CFLAGS="$CFLAGS -Wimplicit -Werror"
6438
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441 #include <string.h>
6442 #include <stdlib.h>
6443 int
6444 main ()
6445 {
6446 char *a = malloc(6);
6447 strlcpy(a, "hello", 6);
6448
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_link "$LINENO"; then :
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 $as_echo "yes" >&6; }
6456
6457 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6458
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6468 $as_echo_n "checking for strlcat... " >&6; }
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6471 #include <string.h>
6472 #include <stdlib.h>
6473 int
6474 main ()
6475 {
6476 char *a = malloc(6);
6477 a[0] = '\0';
6478 strlcat(a, "hello", 6);
6479
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_c_try_link "$LINENO"; then :
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486 $as_echo "yes" >&6; }
6487
6488 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6489
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext \
6496 conftest$ac_exeext conftest.$ac_ext
6497
6498 CFLAGS=$save_CFLAGS
6499
6500 else
6501
6502
6503 for ac_func in strlcat strlcpy
6504 do :
6505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6506 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6507 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6508 cat >>confdefs.h <<_ACEOF
6509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6510 _ACEOF
6511
6512 fi
6513 done
6514
6515
6516 fi
6517
6518 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6519 if test "x$ac_cv_type_u_int32_t" = xyes; then :
6520
6521 else
6522
6523 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6524 if test "x$ac_cv_type_uint32_t" = xyes; then :
6525
6526
6527 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6528
6529
6530 else
6531
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6533 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6534
6535 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6536
6537
6538 fi
6539
6540
6541 fi
6542
6543
6544 ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6545 if test "x$ac_cv_type_u_int16_t" = xyes; then :
6546
6547 else
6548
6549 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6550 if test "x$ac_cv_type_uint16_t" = xyes; then :
6551
6552
6553 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6554
6555
6556 else
6557
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6559 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6560
6561 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6562
6563
6564 fi
6565
6566
6567 fi
6568
6569
6570 ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6571 #include <netinet/in.h>
6572 "
6573 if test "x$ac_cv_type_in_port_t" = xyes; then :
6574
6575 else
6576
6577 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6578
6579 fi
6580
6581
6582 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6583 #include <sys/socket.h>
6584 "
6585 if test "x$ac_cv_type_sa_family_t" = xyes; then :
6586
6587 else
6588
6589 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6590
6591 fi
6592
6593
6594 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6595 if test "x$ac_cv_type_uintptr_t" = xyes; then :
6596
6597 cat >>confdefs.h <<_ACEOF
6598 #define HAVE_UINTPTR_T 1
6599 _ACEOF
6600
6601
6602 fi
6603
6604
6605 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6606 do :
6607 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6612 _ACEOF
6613
6614 fi
6615 done
6616
6617
6618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6619 # for constant arguments. Useless!
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6621 $as_echo_n "checking for working alloca.h... " >&6; }
6622 if ${ac_cv_working_alloca_h+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624 else
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627 #include <alloca.h>
6628 int
6629 main ()
6630 {
6631 char *p = (char *) alloca (2 * sizeof (int));
6632 if (p) return 0;
6633 ;
6634 return 0;
6635 }
6636 _ACEOF
6637 if ac_fn_c_try_link "$LINENO"; then :
6638 ac_cv_working_alloca_h=yes
6639 else
6640 ac_cv_working_alloca_h=no
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644 fi
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6646 $as_echo "$ac_cv_working_alloca_h" >&6; }
6647 if test $ac_cv_working_alloca_h = yes; then
6648
6649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6650
6651 fi
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6654 $as_echo_n "checking for alloca... " >&6; }
6655 if ${ac_cv_func_alloca_works+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6660 #ifdef __GNUC__
6661 # define alloca __builtin_alloca
6662 #else
6663 # ifdef _MSC_VER
6664 # include <malloc.h>
6665 # define alloca _alloca
6666 # else
6667 # ifdef HAVE_ALLOCA_H
6668 # include <alloca.h>
6669 # else
6670 # ifdef _AIX
6671 #pragma alloca
6672 # else
6673 # ifndef alloca /* predefined by HP cc +Olibcalls */
6674 void *alloca (size_t);
6675 # endif
6676 # endif
6677 # endif
6678 # endif
6679 #endif
6680
6681 int
6682 main ()
6683 {
6684 char *p = (char *) alloca (1);
6685 if (p) return 0;
6686 ;
6687 return 0;
6688 }
6689 _ACEOF
6690 if ac_fn_c_try_link "$LINENO"; then :
6691 ac_cv_func_alloca_works=yes
6692 else
6693 ac_cv_func_alloca_works=no
6694 fi
6695 rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6697 fi
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6699 $as_echo "$ac_cv_func_alloca_works" >&6; }
6700
6701 if test $ac_cv_func_alloca_works = yes; then
6702
6703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6704
6705 else
6706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6707 # that cause trouble. Some versions do not even contain alloca or
6708 # contain a buggy version. If you still want to use their alloca,
6709 # use ar to extract alloca.o from them instead of compiling alloca.c.
6710
6711 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6712
6713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6714
6715
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6718 if ${ac_cv_os_cray+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 #if defined CRAY && ! defined CRAY2
6724 webecray
6725 #else
6726 wenotbecray
6727 #endif
6728
6729 _ACEOF
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "webecray" >/dev/null 2>&1; then :
6732 ac_cv_os_cray=yes
6733 else
6734 ac_cv_os_cray=no
6735 fi
6736 rm -f conftest*
6737
6738 fi
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6740 $as_echo "$ac_cv_os_cray" >&6; }
6741 if test $ac_cv_os_cray = yes; then
6742 for ac_func in _getb67 GETB67 getb67; do
6743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6745 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6746
6747 cat >>confdefs.h <<_ACEOF
6748 #define CRAY_STACKSEG_END $ac_func
6749 _ACEOF
6750
6751 break
6752 fi
6753
6754 done
6755 fi
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6758 $as_echo_n "checking stack direction for C alloca... " >&6; }
6759 if ${ac_cv_c_stack_direction+:} false; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 if test "$cross_compiling" = yes; then :
6763 ac_cv_c_stack_direction=0
6764 else
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 $ac_includes_default
6768 int
6769 find_stack_direction ()
6770 {
6771 static char *addr = 0;
6772 auto char dummy;
6773 if (addr == 0)
6774 {
6775 addr = &dummy;
6776 return find_stack_direction ();
6777 }
6778 else
6779 return (&dummy > addr) ? 1 : -1;
6780 }
6781
6782 int
6783 main ()
6784 {
6785 return find_stack_direction () < 0;
6786 }
6787 _ACEOF
6788 if ac_fn_c_try_run "$LINENO"; then :
6789 ac_cv_c_stack_direction=1
6790 else
6791 ac_cv_c_stack_direction=-1
6792 fi
6793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6794 conftest.$ac_objext conftest.beam conftest.$ac_ext
6795 fi
6796
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6799 $as_echo "$ac_cv_c_stack_direction" >&6; }
6800 cat >>confdefs.h <<_ACEOF
6801 #define STACK_DIRECTION $ac_cv_c_stack_direction
6802 _ACEOF
6803
6804
6805 fi
6806
6807
6808
6809 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6810 if test "x$ac_cv_func_nanosleep" = xyes; then :
6811
6812 else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6814 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6815 if ${ac_cv_lib_rt_nanosleep+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 ac_check_lib_save_LIBS=$LIBS
6819 LIBS="-lrt $LIBS"
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822
6823 /* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
6826 #ifdef __cplusplus
6827 extern "C"
6828 #endif
6829 char nanosleep ();
6830 int
6831 main ()
6832 {
6833 return nanosleep ();
6834 ;
6835 return 0;
6836 }
6837 _ACEOF
6838 if ac_fn_c_try_link "$LINENO"; then :
6839 ac_cv_lib_rt_nanosleep=yes
6840 else
6841 ac_cv_lib_rt_nanosleep=no
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext \
6844 conftest$ac_exeext conftest.$ac_ext
6845 LIBS=$ac_check_lib_save_LIBS
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6848 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6849 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
6850 LIBS="${LIBS} -lrt"
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6853 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6854 if ${ac_cv_lib_posix4_nanosleep+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 ac_check_lib_save_LIBS=$LIBS
6858 LIBS="-lposix4 $LIBS"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861
6862 /* Override any GCC internal prototype to avoid an error.
6863 Use char because int might match the return type of a GCC
6864 builtin and then its argument prototype would still apply. */
6865 #ifdef __cplusplus
6866 extern "C"
6867 #endif
6868 char nanosleep ();
6869 int
6870 main ()
6871 {
6872 return nanosleep ();
6873 ;
6874 return 0;
6875 }
6876 _ACEOF
6877 if ac_fn_c_try_link "$LINENO"; then :
6878 ac_cv_lib_posix4_nanosleep=yes
6879 else
6880 ac_cv_lib_posix4_nanosleep=no
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext \
6883 conftest$ac_exeext conftest.$ac_ext
6884 LIBS=$ac_check_lib_save_LIBS
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6887 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6888 if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
6889 LIBS="${LIBS} -lposix4"
6890
6891 fi
6892
6893 fi
6894
6895 fi
6896
6897 if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
6898 then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6900 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6901 else
6902
6903 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6904
6905 fi
6906
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6908 $as_echo_n "checking for OpenSSL... " >&6; }
6909 # Check whether --enable-openssl was given.
6910 if test "${enable_openssl+set}" = set; then :
6911 enableval=$enable_openssl; cf_enable_openssl=$enableval
6912 else
6913 cf_enable_openssl="auto"
6914 fi
6915
6916
6917 if test "$cf_enable_openssl" != "no" ; then
6918 cf_openssl_basedir=""
6919 if test "$cf_enable_openssl" != "auto" &&
6920 test "$cf_enable_openssl" != "yes" ; then
6921 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6922 else
6923 for dirs in /usr/local/ssl /usr/pkg /usr/local \
6924 /usr/local/openssl ; do
6925 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6926 cf_openssl_basedir="${dirs}"
6927 break
6928 fi
6929 done
6930 unset dirs
6931 fi
6932 if test ! -z "$cf_openssl_basedir"; then
6933 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6934 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
6935 SSL_LIBS="-L${cf_openssl_basedir}/lib"
6936 else
6937 cf_openssl_basedir=""
6938 fi
6939 else
6940 if test -f "/usr/include/openssl/opensslv.h" ; then
6941 cf_openssl_basedir="/usr"
6942 fi
6943 fi
6944
6945 if test ! -z "$cf_openssl_basedir"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6947 $as_echo "$cf_openssl_basedir" >&6; }
6948 cf_enable_openssl="yes"
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6951 $as_echo "not found. Specify a correct path?" >&6; }
6952 cf_enable_openssl="no"
6953 fi
6954 unset cf_openssl_basedir
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6957 $as_echo "disabled" >&6; }
6958 fi
6959
6960 save_CPPFLAGS="$CPPFLAGS"
6961 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
6962 save_LIBS="$LIBS"
6963 LIBS="$LIBS $SSL_LIBS"
6964 if test "$cf_enable_openssl" != no; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6966 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6967 if test "$cross_compiling" = yes; then :
6968 cf_openssl_version_ok=no
6969 else
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <openssl/opensslv.h>
6973 #include <stdlib.h>
6974 int
6975 main ()
6976 {
6977 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6978 exit(0); else exit(1);
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 if ac_fn_c_try_run "$LINENO"; then :
6984 cf_openssl_version_ok=yes
6985 else
6986 cf_openssl_version_ok=no
6987 fi
6988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6989 conftest.$ac_objext conftest.beam conftest.$ac_ext
6990 fi
6991
6992
6993 if test "$cf_openssl_version_ok" = yes; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6995 $as_echo "found" >&6; }
6996
6997 ENCSPEED=encspeed
6998
6999
7000 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7002 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
7003 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 ac_check_lib_save_LIBS=$LIBS
7007 LIBS="-lcrypto $LIBS"
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010
7011 /* Override any GCC internal prototype to avoid an error.
7012 Use char because int might match the return type of a GCC
7013 builtin and then its argument prototype would still apply. */
7014 #ifdef __cplusplus
7015 extern "C"
7016 #endif
7017 char RSA_free ();
7018 int
7019 main ()
7020 {
7021 return RSA_free ();
7022 ;
7023 return 0;
7024 }
7025 _ACEOF
7026 if ac_fn_c_try_link "$LINENO"; then :
7027 ac_cv_lib_crypto_RSA_free=yes
7028 else
7029 ac_cv_lib_crypto_RSA_free=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext \
7032 conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7036 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7037 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
7038 cat >>confdefs.h <<_ACEOF
7039 #define HAVE_LIBCRYPTO 1
7040 _ACEOF
7041
7042 LIBS="-lcrypto $LIBS"
7043
7044 fi
7045
7046 SSL_LIBS="$SSL_LIBS -lcrypto"
7047 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7050 $as_echo "no - OpenSSL support disabled" >&6; }
7051 fi
7052 fi
7053
7054 CPPFLAGS="$save_CPPFLAGS"
7055 LIBS="$save_LIBS"
7056
7057
7058
7059
7060
7061 # Check whether --with-zlib-path was given.
7062 if test "${with_zlib_path+set}" = set; then :
7063 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7064 fi
7065
7066
7067 # Check whether --enable-zlib was given.
7068 if test "${enable_zlib+set}" = set; then :
7069 enableval=$enable_zlib; zlib=$enableval
7070 else
7071 zlib=yes
7072 fi
7073
7074
7075 if test "$zlib" = yes; then
7076
7077 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7078 if test "x$ac_cv_header_zlib_h" = xyes; then :
7079
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7081 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7082 if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 ac_check_lib_save_LIBS=$LIBS
7086 LIBS="-lz $LIBS"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7093 #ifdef __cplusplus
7094 extern "C"
7095 #endif
7096 char zlibVersion ();
7097 int
7098 main ()
7099 {
7100 return zlibVersion ();
7101 ;
7102 return 0;
7103 }
7104 _ACEOF
7105 if ac_fn_c_try_link "$LINENO"; then :
7106 ac_cv_lib_z_zlibVersion=yes
7107 else
7108 ac_cv_lib_z_zlibVersion=no
7109 fi
7110 rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7112 LIBS=$ac_check_lib_save_LIBS
7113 fi
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7115 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7116 if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
7117
7118 ZLIB_LD=-lz
7119
7120
7121 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7122
7123
7124 else
7125 zlib=no
7126 fi
7127
7128
7129 else
7130 zlib=no
7131 fi
7132
7133
7134
7135 fi
7136
7137
7138 # Check whether --enable-ports was given.
7139 if test "${enable_ports+set}" = set; then :
7140 enableval=$enable_ports; if test $enableval = yes; then
7141 SELECT_TYPE_EXPLICIT="ports"
7142 else
7143 use_ports=no
7144 fi
7145
7146 fi
7147
7148
7149 # Check whether --enable-poll was given.
7150 if test "${enable_poll+set}" = set; then :
7151 enableval=$enable_poll; if test $enableval = yes; then
7152 SELECT_TYPE_EXPLICIT="poll"
7153 else
7154 use_poll=no
7155 fi
7156
7157 fi
7158
7159
7160 # Check whether --enable-select was given.
7161 if test "${enable_select+set}" = set; then :
7162 enableval=$enable_select; if test $enableval = yes; then
7163 SELECT_TYPE_EXPLICIT="select"
7164 else
7165 use_select=no
7166 fi
7167
7168 fi
7169
7170
7171 # Check whether --enable-kqueue was given.
7172 if test "${enable_kqueue+set}" = set; then :
7173 enableval=$enable_kqueue; if test $enableval = yes; then
7174 SELECT_TYPE_EXPLICIT="kqueue"
7175 else
7176 use_kqueue=no
7177 fi
7178
7179 fi
7180
7181
7182 # Check whether --enable-epoll was given.
7183 if test "${enable_epoll+set}" = set; then :
7184 enableval=$enable_epoll; if test $enableval = yes; then
7185 SELECT_TYPE_EXPLICIT="epoll"
7186 for ac_func in epoll_ctl
7187 do :
7188 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7189 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
7190 cat >>confdefs.h <<_ACEOF
7191 #define HAVE_EPOLL_CTL 1
7192 _ACEOF
7193 haveepoll=yes
7194 else
7195 haveepoll=no
7196 fi
7197 done
7198
7199 else
7200 use_epoll=no
7201 fi
7202
7203 fi
7204
7205
7206
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7208 $as_echo_n "checking whether to modify confdir... " >&6; }
7209
7210 # Check whether --with-confdir was given.
7211 if test "${with_confdir+set}" = set; then :
7212 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7214 $as_echo "yes" >&6; }
7215
7216 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7217 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7218 ac_define_dir=`eval echo $confdir`
7219 ac_define_dir=`eval echo $ac_define_dir`
7220 ETC_DIR="$ac_define_dir"
7221
7222
7223 cat >>confdefs.h <<_ACEOF
7224 #define ETC_DIR "$ac_define_dir"
7225 _ACEOF
7226
7227
7228
7229
7230 confdir=`(
7231 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7232 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7233 eval echo \""$confdir"\"
7234 )`
7235
7236
7237 else
7238 confdir='${prefix}/etc'
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241
7242 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7243 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7244 ac_define_dir=`eval echo $confdir`
7245 ac_define_dir=`eval echo $ac_define_dir`
7246 ETC_DIR="$ac_define_dir"
7247
7248
7249 cat >>confdefs.h <<_ACEOF
7250 #define ETC_DIR "$ac_define_dir"
7251 _ACEOF
7252
7253
7254
7255
7256 confdir=`(
7257 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7258 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7259 eval echo \""$confdir"\"
7260 )`
7261
7262
7263
7264 fi
7265
7266
7267
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7269 $as_echo_n "checking whether to modify logdir... " >&6; }
7270
7271 # Check whether --with-logdir was given.
7272 if test "${with_logdir+set}" = set; then :
7273 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275 $as_echo "yes" >&6; }
7276
7277 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7278 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7279 ac_define_dir=`eval echo $logdir`
7280 ac_define_dir=`eval echo $ac_define_dir`
7281 LOG_DIR="$ac_define_dir"
7282
7283
7284 cat >>confdefs.h <<_ACEOF
7285 #define LOG_DIR "$ac_define_dir"
7286 _ACEOF
7287
7288
7289
7290
7291 logdir=`(
7292 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7293 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7294 eval echo \""$logdir"\"
7295 )`
7296
7297
7298 else
7299 logdir='${prefix}/logs'
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302
7303 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7305 ac_define_dir=`eval echo $logdir`
7306 ac_define_dir=`eval echo $ac_define_dir`
7307 LOG_DIR="$ac_define_dir"
7308
7309
7310 cat >>confdefs.h <<_ACEOF
7311 #define LOG_DIR "$ac_define_dir"
7312 _ACEOF
7313
7314
7315
7316
7317 logdir=`(
7318 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7319 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7320 eval echo \""$logdir"\"
7321 )`
7322
7323
7324
7325 fi
7326
7327
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7330 $as_echo_n "checking whether to modify helpdir... " >&6; }
7331
7332 # Check whether --with-helpdir was given.
7333 if test "${with_helpdir+set}" = set; then :
7334 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7336 $as_echo "yes" >&6; }
7337
7338 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7339 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7340 ac_define_dir=`eval echo $helpdir`
7341 ac_define_dir=`eval echo $ac_define_dir`
7342 HELP_DIR="$ac_define_dir"
7343
7344
7345 cat >>confdefs.h <<_ACEOF
7346 #define HELP_DIR "$ac_define_dir"
7347 _ACEOF
7348
7349
7350
7351
7352 helpdir=`(
7353 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7354 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7355 eval echo \""$helpdir"\"
7356 )`
7357
7358
7359 else
7360 helpdir='${prefix}/help'
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363
7364 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7365 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7366 ac_define_dir=`eval echo $helpdir`
7367 ac_define_dir=`eval echo $ac_define_dir`
7368 HELP_DIR="$ac_define_dir"
7369
7370
7371 cat >>confdefs.h <<_ACEOF
7372 #define HELP_DIR "$ac_define_dir"
7373 _ACEOF
7374
7375
7376
7377
7378 helpdir=`(
7379 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7380 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7381 eval echo \""$helpdir"\"
7382 )`
7383
7384
7385
7386 fi
7387
7388
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7391 $as_echo_n "checking whether to modify moduledir... " >&6; }
7392
7393 # Check whether --with-moduledir was given.
7394 if test "${with_moduledir+set}" = set; then :
7395 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7397 $as_echo "yes" >&6; }
7398
7399 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7401 ac_define_dir=`eval echo $moduledir`
7402 ac_define_dir=`eval echo $ac_define_dir`
7403 MODULE_DIR="$ac_define_dir"
7404
7405
7406 cat >>confdefs.h <<_ACEOF
7407 #define MODULE_DIR "$ac_define_dir"
7408 _ACEOF
7409
7410
7411
7412
7413 moduledir=`(
7414 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7415 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7416 eval echo \""$moduledir"\"
7417 )`
7418
7419
7420 else
7421 moduledir='${prefix}/modules'
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424
7425 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7426 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7427 ac_define_dir=`eval echo $moduledir`
7428 ac_define_dir=`eval echo $ac_define_dir`
7429 MODULE_DIR="$ac_define_dir"
7430
7431
7432 cat >>confdefs.h <<_ACEOF
7433 #define MODULE_DIR "$ac_define_dir"
7434 _ACEOF
7435
7436
7437
7438
7439 moduledir=`(
7440 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7441 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7442 eval echo \""$moduledir"\"
7443 )`
7444
7445
7446
7447 fi
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7452 $as_echo_n "checking whether custom branding is requested... " >&6; }
7453
7454 # Check whether --with-custom-branding was given.
7455 if test "${with_custom_branding+set}" = set; then :
7456 withval=$with_custom_branding; BRANDING_NAME=$withval
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7458 $as_echo "yes" >&6; }
7459 else
7460 BRANDING_NAME=$PACKAGE_NAME
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463
7464 fi
7465
7466
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7468 $as_echo_n "checking whether a custom version is requested... " >&6; }
7469
7470 # Check whether --with-custom-version was given.
7471 if test "${with_custom_version+set}" = set; then :
7472 withval=$with_custom_version; BRANDING_VERSION=$withval
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7475 else
7476 BRANDING_VERSION=$PACKAGE_VERSION
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479
7480 fi
7481
7482
7483
7484 cat >>confdefs.h <<_ACEOF
7485 #define BRANDING_NAME "$BRANDING_NAME"
7486 _ACEOF
7487
7488
7489 cat >>confdefs.h <<_ACEOF
7490 #define BRANDING_VERSION "$BRANDING_VERSION"
7491 _ACEOF
7492
7493
7494 if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7495
7496 $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7497
7498 fi
7499
7500 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7501 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7502 echo "Forcing $SELECT_TYPE to be enabled"
7503 else
7504
7505 if test ! "x$use_ports" = "xno"; then
7506 for ac_func in port_getn
7507 do :
7508 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
7509 if test "x$ac_cv_func_port_getn" = xyes; then :
7510 cat >>confdefs.h <<_ACEOF
7511 #define HAVE_PORT_GETN 1
7512 _ACEOF
7513 haveports=yes
7514 else
7515 haveports=no
7516 fi
7517 done
7518
7519 if test "x$haveports" = "xyes" ; then
7520 SELECT_TYPE="ports"
7521 fi
7522 fi
7523
7524 if test ! "x$use_select" = "xno"; then
7525 for ac_func in select
7526 do :
7527 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
7528 if test "x$ac_cv_func_select" = xyes; then :
7529 cat >>confdefs.h <<_ACEOF
7530 #define HAVE_SELECT 1
7531 _ACEOF
7532 haveselect=yes
7533 else
7534 haveselect=no
7535 fi
7536 done
7537
7538 if test "x$haveselect" = "xyes" ; then
7539 SELECT_TYPE="select"
7540 fi
7541 fi
7542
7543 if test ! "x$use_poll" = "xno"; then
7544 for ac_func in poll
7545 do :
7546 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7547 if test "x$ac_cv_func_poll" = xyes; then :
7548 cat >>confdefs.h <<_ACEOF
7549 #define HAVE_POLL 1
7550 _ACEOF
7551 havepoll=yes
7552 else
7553 havepoll=no
7554 fi
7555 done
7556
7557 if test "x$havepoll" = "xyes" ; then
7558 SELECT_TYPE="poll"
7559 fi
7560 fi
7561
7562 if test ! "x$use_kqueue" = "xno"; then
7563 for ac_func in kevent
7564 do :
7565 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
7566 if test "x$ac_cv_func_kevent" = xyes; then :
7567 cat >>confdefs.h <<_ACEOF
7568 #define HAVE_KEVENT 1
7569 _ACEOF
7570 havekqueue=yes
7571 else
7572 havekqueue=no
7573 fi
7574 done
7575
7576 if test "x$havekqueue" = "xyes" ; then
7577 SELECT_TYPE="kqueue"
7578 fi
7579 fi
7580
7581 if test ! "x$use_epoll" = "xno"; then
7582 for ac_func in epoll_ctl
7583 do :
7584 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7585 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
7586 cat >>confdefs.h <<_ACEOF
7587 #define HAVE_EPOLL_CTL 1
7588 _ACEOF
7589 haveepoll=yes
7590 else
7591 haveepoll=no
7592 fi
7593 done
7594
7595 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7596 if test "x$haveepoll" = "xyes" ; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7598 $as_echo_n "checking for epoll support in kernel... " >&6; }
7599 if test "$cross_compiling" = yes; then :
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 else
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 #include <stdint.h>
7606 #include <sys/param.h>
7607 #include <sys/types.h>
7608 #include <sys/epoll.h>
7609 #include <sys/syscall.h>
7610 #include <unistd.h>
7611
7612 int
7613 main(int argc, char **argv)
7614 {
7615 int epfd;
7616
7617 epfd = epoll_create(256);
7618 return (epfd == -1 ? 1 : 0);
7619 }
7620 _ACEOF
7621 if ac_fn_c_try_run "$LINENO"; then :
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7623 $as_echo "yes" >&6; }
7624
7625 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7626
7627 SELECT_TYPE="epoll"
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7633 conftest.$ac_objext conftest.beam conftest.$ac_ext
7634 fi
7635
7636 fi
7637 fi
7638
7639 haveepollsyscall=no
7640
7641 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7642 if test "x$haveepoll" = "xno" ; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7644 $as_echo_n "checking for epoll system call... " >&6; }
7645 if test "$cross_compiling" = yes; then :
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 else
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7651 #include <stdint.h>
7652 #include <sys/param.h>
7653 #include <sys/types.h>
7654 #include <sys/epoll.h>
7655 #include <sys/syscall.h>
7656 #include <unistd.h>
7657
7658 int
7659 epoll_create(int size)
7660 {
7661 return (syscall(__NR_epoll_create, size));
7662 }
7663
7664 int
7665 main(int argc, char **argv)
7666 {
7667 int epfd;
7668
7669 epfd = epoll_create(256);
7670 exit (epfd == -1 ? 1 : 0);
7671 }
7672 _ACEOF
7673 if ac_fn_c_try_run "$LINENO"; then :
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675 $as_echo "yes" >&6; }
7676
7677 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7678
7679 SELECT_TYPE="epoll"
7680 else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683 fi
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685 conftest.$ac_objext conftest.beam conftest.$ac_ext
7686 fi
7687
7688 fi
7689 fi
7690
7691 fi
7692
7693 fi
7694
7695 if test -z "$SELECT_TYPE"; then
7696 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
7697 fi
7698
7699 echo "Using $SELECT_TYPE for select loop."
7700
7701
7702 cat >>confdefs.h <<_ACEOF
7703 #define SELECT_TYPE "$SELECT_TYPE"
7704 _ACEOF
7705
7706
7707
7708
7709
7710 # Check whether --enable-assert was given.
7711 if test "${enable_assert+set}" = set; then :
7712 enableval=$enable_assert; assert=$enableval
7713 else
7714 assert=no
7715 fi
7716
7717
7718 if test "$assert" = no; then
7719
7720 $as_echo "#define NDEBUG 1" >>confdefs.h
7721
7722 elif test "$assert" = soft; then
7723
7724 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7725
7726
7727 $as_echo "#define NDEBUG 1" >>confdefs.h
7728
7729 elif test "$assert" = yes; then
7730 assert = "hard";
7731 fi
7732
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7734 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7735 # Check whether --enable-iodebug was given.
7736 if test "${enable_iodebug+set}" = set; then :
7737 enableval=$enable_iodebug; iodebug=$enableval
7738 else
7739 iodebug=no
7740 fi
7741
7742
7743 if test "$iodebug" = yes; then
7744
7745 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7746
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7748 $as_echo "yes" >&6; }
7749 else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752 fi
7753
7754
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7756 $as_echo_n "checking if you want to do a profile build... " >&6; }
7757 # Check whether --enable-profile was given.
7758 if test "${enable_profile+set}" = set; then :
7759 enableval=$enable_profile; profile=$enableval
7760 else
7761 profile=no
7762 fi
7763
7764
7765 if test "$profile" = yes; then
7766 if test "$ac_cv_c_compiler_gnu" = yes; then
7767 IRC_CFLAGS="$IRC_CFLAGS -pg"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7769 $as_echo "yes, adding -pg" >&6; }
7770
7771 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7772
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7775 $as_echo "no, profile builds only work with gcc" >&6; }
7776 fi
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782 # Check whether --enable-balloc was given.
7783 if test "${enable_balloc+set}" = set; then :
7784 enableval=$enable_balloc; balloc=$enableval
7785 else
7786 balloc=yes
7787 fi
7788
7789
7790 if test "$balloc" = no; then
7791
7792 $as_echo "#define NOBALLOC 1" >>confdefs.h
7793
7794 fi
7795
7796 # Check whether --enable-small-net was given.
7797 if test "${enable_small_net+set}" = set; then :
7798 enableval=$enable_small_net; small_net=$enableval
7799 else
7800 small_net=no
7801 fi
7802
7803
7804 if test "$small_net" = yes; then
7805
7806 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7807
7808
7809 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7810
7811
7812 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7813
7814
7815 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7816
7817
7818 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7819
7820
7821 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7822
7823
7824 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7825
7826
7827 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7828
7829
7830 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7831
7832
7833 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7834
7835
7836 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7837
7838
7839 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7840
7841
7842 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7843
7844
7845 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7846
7847
7848 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7849
7850
7851 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7852
7853 else
7854
7855 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7856
7857
7858 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7859
7860
7861 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7862
7863
7864 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7865
7866
7867 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7868
7869
7870 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7871
7872
7873 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7874
7875
7876 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7877
7878
7879 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7880
7881
7882 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7883
7884
7885 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7886
7887
7888 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7889
7890
7891 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7892
7893
7894 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7895
7896
7897 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
7898
7899
7900 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
7901
7902 fi
7903
7904
7905 # Check whether --with-nicklen was given.
7906 if test "${with_nicklen+set}" = set; then :
7907 withval=$with_nicklen;
7908 if ! expr "$withval" + 0 >/dev/null 2>&1; then
7909 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
7910 fi
7911 if test $withval -gt 50; then
7912 NICKLEN=50
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7914 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
7915 elif test $withval -lt 9; then
7916 NICKLEN=9
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
7918 $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
7919 else
7920 NICKLEN="$withval"
7921 fi
7922
7923 else
7924 NICKLEN=31
7925 fi
7926
7927
7928
7929 # Check whether --with-topiclen was given.
7930 if test "${with_topiclen+set}" = set; then :
7931 withval=$with_topiclen;
7932 if test $withval -ge 390; then
7933 TOPICLEN=390
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7935 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
7936 else
7937 TOPICLEN=$withval
7938 fi
7939
7940 else
7941 TOPICLEN=390
7942 fi
7943
7944
7945
7946 cat >>confdefs.h <<_ACEOF
7947 #define TOPICLEN ${TOPICLEN}
7948 _ACEOF
7949
7950
7951 cat >>confdefs.h <<_ACEOF
7952 #define NICKLEN (${NICKLEN}+1)
7953 _ACEOF
7954
7955
7956 shared_modules="yes"
7957 if test "$shared_modules" = yes; then
7958 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7960 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
7961 shared_modules="no"
7962 fi
7963 fi
7964
7965 if test "$shared_modules" = yes; then
7966 DYNLINK_C=dynlink.c
7967 for ac_header in dlfcn.h
7968 do :
7969 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7970 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_DLFCN_H 1
7973 _ACEOF
7974
7975 fi
7976
7977 done
7978
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7980 $as_echo_n "checking for library containing shl_load... " >&6; }
7981 if ${ac_cv_search_shl_load+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983 else
7984 ac_func_search_save_LIBS=$LIBS
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987
7988 /* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
7991 #ifdef __cplusplus
7992 extern "C"
7993 #endif
7994 char shl_load ();
7995 int
7996 main ()
7997 {
7998 return shl_load ();
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 for ac_lib in '' dld; do
8004 if test -z "$ac_lib"; then
8005 ac_res="none required"
8006 else
8007 ac_res=-l$ac_lib
8008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8009 fi
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 ac_cv_search_shl_load=$ac_res
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext
8015 if ${ac_cv_search_shl_load+:} false; then :
8016 break
8017 fi
8018 done
8019 if ${ac_cv_search_shl_load+:} false; then :
8020
8021 else
8022 ac_cv_search_shl_load=no
8023 fi
8024 rm conftest.$ac_ext
8025 LIBS=$ac_func_search_save_LIBS
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8028 $as_echo "$ac_cv_search_shl_load" >&6; }
8029 ac_res=$ac_cv_search_shl_load
8030 if test "$ac_res" != no; then :
8031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8032
8033
8034 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
8035
8036 SUFFIX=".sl"
8037 MOD_TARGET=hpux_shared
8038 SEDOBJ="s/\.o/.sl/g"
8039
8040 else
8041
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8043 $as_echo_n "checking for library containing dlopen... " >&6; }
8044 if ${ac_cv_search_dlopen+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 ac_func_search_save_LIBS=$LIBS
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8050
8051 /* Override any GCC internal prototype to avoid an error.
8052 Use char because int might match the return type of a GCC
8053 builtin and then its argument prototype would still apply. */
8054 #ifdef __cplusplus
8055 extern "C"
8056 #endif
8057 char dlopen ();
8058 int
8059 main ()
8060 {
8061 return dlopen ();
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 for ac_lib in '' dl c_r; do
8067 if test -z "$ac_lib"; then
8068 ac_res="none required"
8069 else
8070 ac_res=-l$ac_lib
8071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8072 fi
8073 if ac_fn_c_try_link "$LINENO"; then :
8074 ac_cv_search_dlopen=$ac_res
8075 fi
8076 rm -f core conftest.err conftest.$ac_objext \
8077 conftest$ac_exeext
8078 if ${ac_cv_search_dlopen+:} false; then :
8079 break
8080 fi
8081 done
8082 if ${ac_cv_search_dlopen+:} false; then :
8083
8084 else
8085 ac_cv_search_dlopen=no
8086 fi
8087 rm conftest.$ac_ext
8088 LIBS=$ac_func_search_save_LIBS
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8091 $as_echo "$ac_cv_search_dlopen" >&6; }
8092 ac_res=$ac_cv_search_dlopen
8093 if test "$ac_res" != no; then :
8094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8095
8096
8097 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8098
8099 SUFFIX=".so"
8100 MOD_TARGET=shared_modules
8101 SEDOBJ="s/\.o/.so/g"
8102 if test "$AppleGCC" = yes; then
8103 for ac_header in mach-o/dyld.h
8104 do :
8105 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8106 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
8107 cat >>confdefs.h <<_ACEOF
8108 #define HAVE_MACH_O_DYLD_H 1
8109 _ACEOF
8110
8111 fi
8112
8113 done
8114
8115 fi
8116 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
8117 if test "x$ac_cv_func_dlsym" = xyes; then :
8118
8119 else
8120
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8122 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8123 shared_modules=no
8124
8125 fi
8126
8127 for ac_func in dlfunc
8128 do :
8129 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8130 if test "x$ac_cv_func_dlfunc" = xyes; then :
8131 cat >>confdefs.h <<_ACEOF
8132 #define HAVE_DLFUNC 1
8133 _ACEOF
8134
8135 fi
8136 done
8137
8138
8139 else
8140
8141 shared_modules=no
8142
8143 fi
8144
8145
8146 fi
8147
8148 fi
8149
8150
8151 cat >>confdefs.h <<_ACEOF
8152 #define SHARED_SUFFIX "$SUFFIX"
8153 _ACEOF
8154
8155
8156 if test "$shared_modules" = yes; then
8157 # The GNU linker requires the -export-dynamic option to make
8158 # all symbols visible in the dynamic symbol table.
8159 hold_ldflags=$LDFLAGS
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8161 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8162 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8165
8166 int
8167 main ()
8168 {
8169 int i;
8170 ;
8171 return 0;
8172 }
8173 _ACEOF
8174 if ac_fn_c_try_link "$LINENO"; then :
8175 found=yes
8176 else
8177 found=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
8181 LDFLAGS=$hold_ldflags
8182
8183 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8184 found="no, IRIX ld uses -B,dynamic"
8185 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8186 fi
8187
8188 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8189 found="no, AIX ld uses -G -brtl"
8190 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8191 fi
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8194 $as_echo "$found" >&6; }
8195
8196 if test "$found" = yes; then
8197 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8198 fi
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8201 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8202 if test "$SGS" = "yes"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8204 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8205 PICFLAGS="-KPIC -DPIC -G"
8206 fi
8207
8208 if test "$AppleGCC" = "yes"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8210 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8211 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8212 fi
8213 if test "$HPUX" = "yes" -a "$CC" != gcc; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8215 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8216 PICFLAGS="+z -r -q -n -c"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8218 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8219
8220 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 else
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8225 $as_echo "yes" >&6; }
8226 PICFLAGS="$PICFLAGS +ESfic"
8227 fi
8228
8229 LDFLAGS="${LDFLAGS} -Wl,-E"
8230 fi
8231 if test "$Tru" = yes -a "$CC" != gcc; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8233 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8234 PICFLAGS="-shared -expect_unresolved '*' "
8235 LDFLAGS="-call_shared"
8236 fi
8237 if test -z "$PICFLAGS"; then
8238 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8240 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8241 PICFLAGS="-fPIC -DPIC -shared"
8242 else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8245 shared_modules=no
8246 fi
8247 fi
8248 fi
8249
8250 # rpath, for finding libratbox.so at run time
8251 hold_ldflags=$LDFLAGS
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8253 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8254 LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257
8258 int
8259 main ()
8260 {
8261 int i;
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_c_try_link "$LINENO"; then :
8267 found=yes
8268 else
8269 found=no
8270 fi
8271 rm -f core conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8273 LDFLAGS=$hold_ldflags
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8275 $as_echo "$found" >&6; }
8276 if test "$found" = yes; then
8277 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8278 fi
8279
8280 # This must be down here, or it will mess up checks like the ones
8281 # for -Wl,-export-dynamic
8282 # -- jilles
8283 CWARNS=""
8284 # Check whether --enable-warnings was given.
8285 if test "${enable_warnings+set}" = set; then :
8286 enableval=$enable_warnings;
8287 IRC_CFLAGS="$IRC_CFLAGS -O0"
8288 CFLAGS="$IRC_CFLAGS"
8289
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8292 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8293 if test "${GCC-no}" = yes
8294 then
8295 if ${charybdis_cv_c_gcc_w_all+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298
8299 oldcflags="${CFLAGS-}"
8300 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
8301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8303
8304 #include <string.h>
8305 #include <stdio.h>
8306 int main(void);
8307
8308 int
8309 main ()
8310 {
8311
8312 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8313
8314 ;
8315 return 0;
8316 }
8317 _ACEOF
8318 if ac_fn_c_try_compile "$LINENO"; then :
8319 charybdis_cv_c_gcc_w_all=yes
8320 else
8321 charybdis_cv_c_gcc_w_all=no
8322 fi
8323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 CFLAGS="${oldcflags}"
8325 fi
8326
8327 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8328 CWARNS="${CWARNS}-Wall "
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8330 $as_echo "ok" >&6; }
8331 else
8332 charybdis_cv_c_gcc_w_all=''
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8339 fi
8340
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8343 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8344 if test "${GCC-no}" = yes
8345 then
8346 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349
8350 oldcflags="${CFLAGS-}"
8351 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8354
8355 #include <string.h>
8356 #include <stdio.h>
8357 int main(void);
8358
8359 int
8360 main ()
8361 {
8362
8363 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8364
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_compile "$LINENO"; then :
8370 charybdis_cv_c_gcc_w_pointer_arith=yes
8371 else
8372 charybdis_cv_c_gcc_w_pointer_arith=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 CFLAGS="${oldcflags}"
8376 fi
8377
8378 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8379 CWARNS="${CWARNS}-Wpointer-arith "
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8381 $as_echo "ok" >&6; }
8382 else
8383 charybdis_cv_c_gcc_w_pointer_arith=''
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387 else
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8394 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8395 if test "${GCC-no}" = yes
8396 then
8397 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400
8401 oldcflags="${CFLAGS-}"
8402 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405
8406 #include <string.h>
8407 #include <stdio.h>
8408 int main(void);
8409
8410 int
8411 main ()
8412 {
8413
8414 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8415
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_compile "$LINENO"; then :
8421 charybdis_cv_c_gcc_w_implicit=yes
8422 else
8423 charybdis_cv_c_gcc_w_implicit=no
8424 fi
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 CFLAGS="${oldcflags}"
8427 fi
8428
8429 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8430 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8432 $as_echo "ok" >&6; }
8433 else
8434 charybdis_cv_c_gcc_w_implicit=''
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8437 fi
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8445 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8446 if test "${GCC-no}" = yes
8447 then
8448 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451
8452 oldcflags="${CFLAGS-}"
8453 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8456
8457 #include <string.h>
8458 #include <stdio.h>
8459 int main(void);
8460
8461 int
8462 main ()
8463 {
8464
8465 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_compile "$LINENO"; then :
8472 charybdis_cv_c_gcc_w_cast_align=yes
8473 else
8474 charybdis_cv_c_gcc_w_cast_align=no
8475 fi
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477 CFLAGS="${oldcflags}"
8478 fi
8479
8480 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8481 CWARNS="${CWARNS}-Wcast-align "
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8483 $as_echo "ok" >&6; }
8484 else
8485 charybdis_cv_c_gcc_w_cast_align=''
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489 else
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8492 fi
8493
8494
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8496 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8497 if test "${GCC-no}" = yes
8498 then
8499 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8502
8503 oldcflags="${CFLAGS-}"
8504 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507
8508 #include <string.h>
8509 #include <stdio.h>
8510 int main(void);
8511
8512 int
8513 main ()
8514 {
8515
8516 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8517
8518 ;
8519 return 0;
8520 }
8521 _ACEOF
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523 charybdis_cv_c_gcc_w_cast_qual=yes
8524 else
8525 charybdis_cv_c_gcc_w_cast_qual=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 CFLAGS="${oldcflags}"
8529 fi
8530
8531 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8532 CWARNS="${CWARNS}-Wcast-qual "
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8534 $as_echo "ok" >&6; }
8535 else
8536 charybdis_cv_c_gcc_w_cast_qual=''
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8547 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8548 if test "${GCC-no}" = yes
8549 then
8550 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553
8554 oldcflags="${CFLAGS-}"
8555 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8558
8559 #include <string.h>
8560 #include <stdio.h>
8561 int main(void);
8562
8563 int
8564 main ()
8565 {
8566
8567 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8568
8569 ;
8570 return 0;
8571 }
8572 _ACEOF
8573 if ac_fn_c_try_compile "$LINENO"; then :
8574 charybdis_cv_c_gcc_w_write_strings=yes
8575 else
8576 charybdis_cv_c_gcc_w_write_strings=no
8577 fi
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 CFLAGS="${oldcflags}"
8580 fi
8581
8582 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
8583 CWARNS="${CWARNS}-Wwrite-strings "
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8585 $as_echo "ok" >&6; }
8586 else
8587 charybdis_cv_c_gcc_w_write_strings=''
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8590 fi
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8598 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8599 if test "${GCC-no}" = yes
8600 then
8601 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604
8605 oldcflags="${CFLAGS-}"
8606 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8609
8610 #include <string.h>
8611 #include <stdio.h>
8612 int main(void);
8613
8614 int
8615 main ()
8616 {
8617
8618 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8619
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8626 else
8627 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
8628 fi
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 CFLAGS="${oldcflags}"
8631 fi
8632
8633 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8634 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8636 $as_echo "ok" >&6; }
8637 else
8638 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8641 fi
8642 else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8645 fi
8646
8647
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8649 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8650 if test "${GCC-no}" = yes
8651 then
8652 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655
8656 oldcflags="${CFLAGS-}"
8657 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660
8661 #include <string.h>
8662 #include <stdio.h>
8663 int main(void);
8664
8665 int
8666 main ()
8667 {
8668
8669 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8670
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 charybdis_cv_c_gcc_prototypes=yes
8677 else
8678 charybdis_cv_c_gcc_prototypes=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 CFLAGS="${oldcflags}"
8682 fi
8683
8684 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8685 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8687 $as_echo "ok" >&6; }
8688 else
8689 charybdis_cv_c_gcc_prototypes=''
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 fi
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8700 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8701 if test "${GCC-no}" = yes
8702 then
8703 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706
8707 oldcflags="${CFLAGS-}"
8708 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8711
8712 #include <string.h>
8713 #include <stdio.h>
8714 int main(void);
8715
8716 int
8717 main ()
8718 {
8719
8720 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8721
8722 ;
8723 return 0;
8724 }
8725 _ACEOF
8726 if ac_fn_c_try_compile "$LINENO"; then :
8727 charybdis_cv_c_gcc_parenthesis=yes
8728 else
8729 charybdis_cv_c_gcc_parenthesis=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 CFLAGS="${oldcflags}"
8733 fi
8734
8735 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8736 CWARNS="${CWARNS}-Wparenthesis "
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8738 $as_echo "ok" >&6; }
8739 else
8740 charybdis_cv_c_gcc_parenthesis=''
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8747 fi
8748
8749
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8751 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8752 if test "${GCC-no}" = yes
8753 then
8754 if ${charybdis_cv_c_gcc_w+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757
8758 oldcflags="${CFLAGS-}"
8759 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8762
8763 #include <string.h>
8764 #include <stdio.h>
8765 int main(void);
8766
8767 int
8768 main ()
8769 {
8770
8771 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8772
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_compile "$LINENO"; then :
8778 charybdis_cv_c_gcc_w=yes
8779 else
8780 charybdis_cv_c_gcc_w=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783 CFLAGS="${oldcflags}"
8784 fi
8785
8786 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8787 CWARNS="${CWARNS}-W -Wno-unused "
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8789 $as_echo "ok" >&6; }
8790 else
8791 charybdis_cv_c_gcc_w=''
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8794 fi
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8802 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8803 if test "${GCC-no}" = yes
8804 then
8805 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808
8809 oldcflags="${CFLAGS-}"
8810 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813
8814 #include <string.h>
8815 #include <stdio.h>
8816 int main(void);
8817
8818 int
8819 main ()
8820 {
8821
8822 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 charybdis_cv_c_gcc_w_extra=yes
8830 else
8831 charybdis_cv_c_gcc_w_extra=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 CFLAGS="${oldcflags}"
8835 fi
8836
8837 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8838 CWARNS="${CWARNS}-Wextra "
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8840 $as_echo "ok" >&6; }
8841 else
8842 charybdis_cv_c_gcc_w_extra=''
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8845 fi
8846 else
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8849 fi
8850
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8853 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8854 if test "${GCC-no}" = yes
8855 then
8856 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859
8860 oldcflags="${CFLAGS-}"
8861 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8864
8865 #include <string.h>
8866 #include <stdio.h>
8867 int main(void);
8868
8869 int
8870 main ()
8871 {
8872
8873 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8874
8875 ;
8876 return 0;
8877 }
8878 _ACEOF
8879 if ac_fn_c_try_compile "$LINENO"; then :
8880 charybdis_cv_c_gcc_w_shadow=yes
8881 else
8882 charybdis_cv_c_gcc_w_shadow=no
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 CFLAGS="${oldcflags}"
8886 fi
8887
8888 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8889 CWARNS="${CWARNS}-Wshadow "
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8891 $as_echo "ok" >&6; }
8892 else
8893 charybdis_cv_c_gcc_w_shadow=''
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896 fi
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8900 fi
8901
8902
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8904 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
8905 if test "${GCC-no}" = yes
8906 then
8907 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910
8911 oldcflags="${CFLAGS-}"
8912 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8915
8916 #include <string.h>
8917 #include <stdio.h>
8918 int main(void);
8919
8920 int
8921 main ()
8922 {
8923
8924 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8925
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_compile "$LINENO"; then :
8931 charybdis_cv_c_gcc_w_missing_noreturn=yes
8932 else
8933 charybdis_cv_c_gcc_w_missing_noreturn=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 CFLAGS="${oldcflags}"
8937 fi
8938
8939 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
8940 CWARNS="${CWARNS}-Wmissing-noreturn "
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8942 $as_echo "ok" >&6; }
8943 else
8944 charybdis_cv_c_gcc_w_missing_noreturn=''
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8947 fi
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8951 fi
8952
8953
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8955 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8956 if test "${GCC-no}" = yes
8957 then
8958 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961
8962 oldcflags="${CFLAGS-}"
8963 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8966
8967 #include <string.h>
8968 #include <stdio.h>
8969 int main(void);
8970
8971 int
8972 main ()
8973 {
8974
8975 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8976
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_compile "$LINENO"; then :
8982 charybdis_cv_c_gcc_w_undef=yes
8983 else
8984 charybdis_cv_c_gcc_w_undef=no
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 CFLAGS="${oldcflags}"
8988 fi
8989
8990 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
8991 CWARNS="${CWARNS}-Wundef "
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8993 $as_echo "ok" >&6; }
8994 else
8995 charybdis_cv_c_gcc_w_undef=''
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
8998 fi
8999 else
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9002 fi
9003
9004
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9006 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
9007 if test "${GCC-no}" = yes
9008 then
9009 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012
9013 oldcflags="${CFLAGS-}"
9014 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017
9018 #include <string.h>
9019 #include <stdio.h>
9020 int main(void);
9021
9022 int
9023 main ()
9024 {
9025
9026 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9027
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_compile "$LINENO"; then :
9033 charybdis_cv_c_gcc_w_packed=yes
9034 else
9035 charybdis_cv_c_gcc_w_packed=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 CFLAGS="${oldcflags}"
9039 fi
9040
9041 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9042 CWARNS="${CWARNS}-Wpacked "
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9044 $as_echo "ok" >&6; }
9045 else
9046 charybdis_cv_c_gcc_w_packed=''
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9049 fi
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9053 fi
9054
9055
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9057 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9058 if test "${GCC-no}" = yes
9059 then
9060 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063
9064 oldcflags="${CFLAGS-}"
9065 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068
9069 #include <string.h>
9070 #include <stdio.h>
9071 int main(void);
9072
9073 int
9074 main ()
9075 {
9076
9077 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9078
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_compile "$LINENO"; then :
9084 charybdis_cv_c_gcc_w_nested_externs=yes
9085 else
9086 charybdis_cv_c_gcc_w_nested_externs=no
9087 fi
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 CFLAGS="${oldcflags}"
9090 fi
9091
9092 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9093 CWARNS="${CWARNS}-Wnested-externs "
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9095 $as_echo "ok" >&6; }
9096 else
9097 charybdis_cv_c_gcc_w_nested_externs=''
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9100 fi
9101 else
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9104 fi
9105
9106
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9108 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9109 if test "${GCC-no}" = yes
9110 then
9111 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114
9115 oldcflags="${CFLAGS-}"
9116 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119
9120 #include <string.h>
9121 #include <stdio.h>
9122 int main(void);
9123
9124 int
9125 main ()
9126 {
9127
9128 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9129
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 if ac_fn_c_try_compile "$LINENO"; then :
9135 charybdis_cv_c_gcc_w_unused=yes
9136 else
9137 charybdis_cv_c_gcc_w_unused=no
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 CFLAGS="${oldcflags}"
9141 fi
9142
9143 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9144 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9146 $as_echo "ok" >&6; }
9147 else
9148 charybdis_cv_c_gcc_w_unused=''
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9151 fi
9152 else
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156
9157
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9159 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9160 if test "${GCC-no}" = yes
9161 then
9162 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165
9166 oldcflags="${CFLAGS-}"
9167 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9170
9171 #include <string.h>
9172 #include <stdio.h>
9173 int main(void);
9174
9175 int
9176 main ()
9177 {
9178
9179 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9180
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 if ac_fn_c_try_compile "$LINENO"; then :
9186 charybdis_cv_c_gcc_w_redundant_decls=yes
9187 else
9188 charybdis_cv_c_gcc_w_redundant_decls=no
9189 fi
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191 CFLAGS="${oldcflags}"
9192 fi
9193
9194 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9195 CWARNS="${CWARNS}-Wredundant-decls "
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9197 $as_echo "ok" >&6; }
9198 else
9199 charybdis_cv_c_gcc_w_redundant_decls=''
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9202 fi
9203 else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9206 fi
9207
9208
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9210 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9211 if test "${GCC-no}" = yes
9212 then
9213 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216
9217 oldcflags="${CFLAGS-}"
9218 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9221
9222 #include <string.h>
9223 #include <stdio.h>
9224 int main(void);
9225
9226 int
9227 main ()
9228 {
9229
9230 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9231
9232 ;
9233 return 0;
9234 }
9235 _ACEOF
9236 if ac_fn_c_try_compile "$LINENO"; then :
9237 charybdis_cv_c_gcc_w_float_equal=yes
9238 else
9239 charybdis_cv_c_gcc_w_float_equal=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9242 CFLAGS="${oldcflags}"
9243 fi
9244
9245 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9246 CWARNS="${CWARNS}-Wfloat-equal "
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9248 $as_echo "ok" >&6; }
9249 else
9250 charybdis_cv_c_gcc_w_float_equal=''
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9253 fi
9254 else
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9257 fi
9258
9259
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9261 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9262 if test "${GCC-no}" = yes
9263 then
9264 if ${charybdis_cv_c_gcc_w_format+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267
9268 oldcflags="${CFLAGS-}"
9269 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272
9273 #include <string.h>
9274 #include <stdio.h>
9275 int main(void);
9276
9277 int
9278 main ()
9279 {
9280
9281 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9282
9283 ;
9284 return 0;
9285 }
9286 _ACEOF
9287 if ac_fn_c_try_compile "$LINENO"; then :
9288 charybdis_cv_c_gcc_w_format=yes
9289 else
9290 charybdis_cv_c_gcc_w_format=no
9291 fi
9292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9293 CFLAGS="${oldcflags}"
9294 fi
9295
9296 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9297 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9299 $as_echo "ok" >&6; }
9300 else
9301 charybdis_cv_c_gcc_w_format=''
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9304 fi
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; }
9308 fi
9309
9310
9311 IRC_CFLAGS="$CFLAGS"
9312
9313 fi
9314
9315
9316 if test "$shared_modules" = no; then
9317 DYNLINK_C=""
9318 MOD_TARGET="libmodules.a"
9319 MODULES_LIBS="../modules/libmodules.a"
9320 SEDOBJ=""
9321
9322 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9325 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9326 fi
9327
9328 if test "$shared_modules" = yes; then
9329
9330 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
9331 if test "x$ac_cv_func_nlist" = xyes; then :
9332
9333 else
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9335 $as_echo_n "checking for nlist in -ldl... " >&6; }
9336 if ${ac_cv_lib_dl_nlist+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 ac_check_lib_save_LIBS=$LIBS
9340 LIBS="-ldl $LIBS"
9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343
9344 /* Override any GCC internal prototype to avoid an error.
9345 Use char because int might match the return type of a GCC
9346 builtin and then its argument prototype would still apply. */
9347 #ifdef __cplusplus
9348 extern "C"
9349 #endif
9350 char nlist ();
9351 int
9352 main ()
9353 {
9354 return nlist ();
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_link "$LINENO"; then :
9360 ac_cv_lib_dl_nlist=yes
9361 else
9362 ac_cv_lib_dl_nlist=no
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9367 fi
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9369 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9370 if test "x$ac_cv_lib_dl_nlist" = xyes; then :
9371 nlist_lib="-ldl"
9372 else
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9374 $as_echo_n "checking for nlist in -lelf... " >&6; }
9375 if ${ac_cv_lib_elf_nlist+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 ac_check_lib_save_LIBS=$LIBS
9379 LIBS="-lelf $LIBS"
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9382
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char nlist ();
9390 int
9391 main ()
9392 {
9393 return nlist ();
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"; then :
9399 ac_cv_lib_elf_nlist=yes
9400 else
9401 ac_cv_lib_elf_nlist=no
9402 fi
9403 rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9408 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9409 if test "x$ac_cv_lib_elf_nlist" = xyes; then :
9410 nlist_lib="-lelf"
9411 fi
9412
9413
9414 fi
9415
9416
9417 fi
9418
9419
9420 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9421 if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
9422 nlist_h="libelf/nlist.h"
9423 fi
9424
9425
9426 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9427 if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
9428 nlist_h="elf/nlist.h"
9429 fi
9430
9431
9432 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9433 if test "x$ac_cv_header_nlist_h" = xyes; then :
9434 nlist_h="nlist.h"
9435 fi
9436
9437
9438 if test x"$nlist_h" = "x"; then
9439
9440 cat >>confdefs.h <<_ACEOF
9441 #define SYMBOL_PREFIX ""
9442 _ACEOF
9443
9444 else
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9446 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9447 if ${symbol_underscores+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450
9451 cat << EOF > conftest.c
9452 #include <$nlist_h>
9453 #include <stdio.h>
9454 #include <stdlib.h>
9455 void _modinit(void);
9456 int main(int argc, char *argv[]) {
9457 int i;
9458 struct nlist nl[5];
9459
9460 /* fill the names in this way, so it'll work almost everywhere */
9461 nl[0].n_name = "_modinit";
9462 nl[1].n_name = "__modinit";
9463 nl[2].n_name = "___modinit";
9464 nl[3].n_name = "____modinit";
9465 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9466
9467 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9468 for(i = 0; i < 4; i++) {
9469 if(nl[i].n_value != NULL)
9470 {
9471 int j;
9472 for(j = 0; j < i; j++)
9473 printf("_");
9474 exit(i);
9475 }
9476 }
9477 exit(-1);
9478 }
9479 void _modinit(void) { return; }
9480 EOF
9481 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9482 symbol_underscores=`./conftest conftest`
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9484 $as_echo "$symbol_underscores" >&6; }
9485 $RM -f conftest conftest.c
9486
9487 fi
9488
9489
9490 cat >>confdefs.h <<_ACEOF
9491 #define SYMBOL_PREFIX "${symbol_underscores}"
9492 _ACEOF
9493
9494 fi
9495 fi
9496
9497 IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512 if test "$prefix" = "NONE"; then
9513
9514 cat >>confdefs.h <<_ACEOF
9515 #define IRCD_PREFIX "$ac_default_prefix"
9516 _ACEOF
9517
9518
9519 else
9520
9521
9522 prefix=`echo $prefix | sed 's/\/$//'`
9523
9524 cat >>confdefs.h <<_ACEOF
9525 #define IRCD_PREFIX "$prefix"
9526 _ACEOF
9527
9528
9529 fi
9530
9531 ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
9532
9533
9534 cat >confcache <<\_ACEOF
9535 # This file is a shell script that caches the results of configure
9536 # tests run on this system so they can be shared between configure
9537 # scripts and configure runs, see configure's option --config-cache.
9538 # It is not useful on other systems. If it contains results you don't
9539 # want to keep, you may remove or edit it.
9540 #
9541 # config.status only pays attention to the cache file if you give it
9542 # the --recheck option to rerun configure.
9543 #
9544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9546 # following values.
9547
9548 _ACEOF
9549
9550 # The following way of writing the cache mishandles newlines in values,
9551 # but we know of no workaround that is simple, portable, and efficient.
9552 # So, we kill variables containing newlines.
9553 # Ultrix sh set writes to stderr and can't be redirected directly,
9554 # and sets the high bit in the cache file unless we assign to the vars.
9555 (
9556 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9557 eval ac_val=\$$ac_var
9558 case $ac_val in #(
9559 *${as_nl}*)
9560 case $ac_var in #(
9561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9563 esac
9564 case $ac_var in #(
9565 _ | IFS | as_nl) ;; #(
9566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9567 *) { eval $ac_var=; unset $ac_var;} ;;
9568 esac ;;
9569 esac
9570 done
9571
9572 (set) 2>&1 |
9573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9574 *${as_nl}ac_space=\ *)
9575 # `set' does not quote correctly, so add quotes: double-quote
9576 # substitution turns \\\\ into \\, and sed turns \\ into \.
9577 sed -n \
9578 "s/'/'\\\\''/g;
9579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9580 ;; #(
9581 *)
9582 # `set' quotes correctly as required by POSIX, so do not add quotes.
9583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9584 ;;
9585 esac |
9586 sort
9587 ) |
9588 sed '
9589 /^ac_cv_env_/b end
9590 t clear
9591 :clear
9592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9593 t end
9594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9595 :end' >>confcache
9596 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9597 if test -w "$cache_file"; then
9598 if test "x$cache_file" != "x/dev/null"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9600 $as_echo "$as_me: updating cache $cache_file" >&6;}
9601 if test ! -f "$cache_file" || test -h "$cache_file"; then
9602 cat confcache >"$cache_file"
9603 else
9604 case $cache_file in #(
9605 */* | ?:*)
9606 mv -f confcache "$cache_file"$$ &&
9607 mv -f "$cache_file"$$ "$cache_file" ;; #(
9608 *)
9609 mv -f confcache "$cache_file" ;;
9610 esac
9611 fi
9612 fi
9613 else
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9615 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9616 fi
9617 fi
9618 rm -f confcache
9619
9620 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9621 # Let make expand exec_prefix.
9622 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9623
9624 DEFS=-DHAVE_CONFIG_H
9625
9626 ac_libobjs=
9627 ac_ltlibobjs=
9628 U=
9629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9630 # 1. Remove the extension, and $U if already installed.
9631 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9632 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9634 # will be set to the directory where LIBOBJS objects are built.
9635 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9636 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9637 done
9638 LIBOBJS=$ac_libobjs
9639
9640 LTLIBOBJS=$ac_ltlibobjs
9641
9642
9643
9644
9645
9646 : "${CONFIG_STATUS=./config.status}"
9647 ac_write_fail=0
9648 ac_clean_files_save=$ac_clean_files
9649 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9651 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9652 as_write_fail=0
9653 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9654 #! $SHELL
9655 # Generated by $as_me.
9656 # Run this file to recreate the current configuration.
9657 # Compiler output produced by configure, useful for debugging
9658 # configure, is in config.log if it exists.
9659
9660 debug=false
9661 ac_cs_recheck=false
9662 ac_cs_silent=false
9663
9664 SHELL=\${CONFIG_SHELL-$SHELL}
9665 export SHELL
9666 _ASEOF
9667 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9668 ## -------------------- ##
9669 ## M4sh Initialization. ##
9670 ## -------------------- ##
9671
9672 # Be more Bourne compatible
9673 DUALCASE=1; export DUALCASE # for MKS sh
9674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9675 emulate sh
9676 NULLCMD=:
9677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9678 # is contrary to our usage. Disable this feature.
9679 alias -g '${1+"$@"}'='"$@"'
9680 setopt NO_GLOB_SUBST
9681 else
9682 case `(set -o) 2>/dev/null` in #(
9683 *posix*) :
9684 set -o posix ;; #(
9685 *) :
9686 ;;
9687 esac
9688 fi
9689
9690
9691 as_nl='
9692 '
9693 export as_nl
9694 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9695 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9696 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9697 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9698 # Prefer a ksh shell builtin over an external printf program on Solaris,
9699 # but without wasting forks for bash or zsh.
9700 if test -z "$BASH_VERSION$ZSH_VERSION" \
9701 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9702 as_echo='print -r --'
9703 as_echo_n='print -rn --'
9704 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9705 as_echo='printf %s\n'
9706 as_echo_n='printf %s'
9707 else
9708 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9709 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9710 as_echo_n='/usr/ucb/echo -n'
9711 else
9712 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9713 as_echo_n_body='eval
9714 arg=$1;
9715 case $arg in #(
9716 *"$as_nl"*)
9717 expr "X$arg" : "X\\(.*\\)$as_nl";
9718 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9719 esac;
9720 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9721 '
9722 export as_echo_n_body
9723 as_echo_n='sh -c $as_echo_n_body as_echo'
9724 fi
9725 export as_echo_body
9726 as_echo='sh -c $as_echo_body as_echo'
9727 fi
9728
9729 # The user is always right.
9730 if test "${PATH_SEPARATOR+set}" != set; then
9731 PATH_SEPARATOR=:
9732 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9733 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9734 PATH_SEPARATOR=';'
9735 }
9736 fi
9737
9738
9739 # IFS
9740 # We need space, tab and new line, in precisely that order. Quoting is
9741 # there to prevent editors from complaining about space-tab.
9742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9743 # splitting by setting IFS to empty value.)
9744 IFS=" "" $as_nl"
9745
9746 # Find who we are. Look in the path if we contain no directory separator.
9747 as_myself=
9748 case $0 in #((
9749 *[\\/]* ) as_myself=$0 ;;
9750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9751 for as_dir in $PATH
9752 do
9753 IFS=$as_save_IFS
9754 test -z "$as_dir" && as_dir=.
9755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9756 done
9757 IFS=$as_save_IFS
9758
9759 ;;
9760 esac
9761 # We did not find ourselves, most probably we were run as `sh COMMAND'
9762 # in which case we are not to be found in the path.
9763 if test "x$as_myself" = x; then
9764 as_myself=$0
9765 fi
9766 if test ! -f "$as_myself"; then
9767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9768 exit 1
9769 fi
9770
9771 # Unset variables that we do not need and which cause bugs (e.g. in
9772 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9773 # suppresses any "Segmentation fault" message there. '((' could
9774 # trigger a bug in pdksh 5.2.14.
9775 for as_var in BASH_ENV ENV MAIL MAILPATH
9776 do eval test x\${$as_var+set} = xset \
9777 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9778 done
9779 PS1='$ '
9780 PS2='> '
9781 PS4='+ '
9782
9783 # NLS nuisances.
9784 LC_ALL=C
9785 export LC_ALL
9786 LANGUAGE=C
9787 export LANGUAGE
9788
9789 # CDPATH.
9790 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9791
9792
9793 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9794 # ----------------------------------------
9795 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9796 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9797 # script with STATUS, using 1 if that was 0.
9798 as_fn_error ()
9799 {
9800 as_status=$1; test $as_status -eq 0 && as_status=1
9801 if test "$4"; then
9802 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9804 fi
9805 $as_echo "$as_me: error: $2" >&2
9806 as_fn_exit $as_status
9807 } # as_fn_error
9808
9809
9810 # as_fn_set_status STATUS
9811 # -----------------------
9812 # Set $? to STATUS, without forking.
9813 as_fn_set_status ()
9814 {
9815 return $1
9816 } # as_fn_set_status
9817
9818 # as_fn_exit STATUS
9819 # -----------------
9820 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9821 as_fn_exit ()
9822 {
9823 set +e
9824 as_fn_set_status $1
9825 exit $1
9826 } # as_fn_exit
9827
9828 # as_fn_unset VAR
9829 # ---------------
9830 # Portably unset VAR.
9831 as_fn_unset ()
9832 {
9833 { eval $1=; unset $1;}
9834 }
9835 as_unset=as_fn_unset
9836 # as_fn_append VAR VALUE
9837 # ----------------------
9838 # Append the text in VALUE to the end of the definition contained in VAR. Take
9839 # advantage of any shell optimizations that allow amortized linear growth over
9840 # repeated appends, instead of the typical quadratic growth present in naive
9841 # implementations.
9842 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9843 eval 'as_fn_append ()
9844 {
9845 eval $1+=\$2
9846 }'
9847 else
9848 as_fn_append ()
9849 {
9850 eval $1=\$$1\$2
9851 }
9852 fi # as_fn_append
9853
9854 # as_fn_arith ARG...
9855 # ------------------
9856 # Perform arithmetic evaluation on the ARGs, and store the result in the
9857 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9858 # must be portable across $(()) and expr.
9859 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9860 eval 'as_fn_arith ()
9861 {
9862 as_val=$(( $* ))
9863 }'
9864 else
9865 as_fn_arith ()
9866 {
9867 as_val=`expr "$@" || test $? -eq 1`
9868 }
9869 fi # as_fn_arith
9870
9871
9872 if expr a : '\(a\)' >/dev/null 2>&1 &&
9873 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9874 as_expr=expr
9875 else
9876 as_expr=false
9877 fi
9878
9879 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9880 as_basename=basename
9881 else
9882 as_basename=false
9883 fi
9884
9885 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9886 as_dirname=dirname
9887 else
9888 as_dirname=false
9889 fi
9890
9891 as_me=`$as_basename -- "$0" ||
9892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9893 X"$0" : 'X\(//\)$' \| \
9894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9895 $as_echo X/"$0" |
9896 sed '/^.*\/\([^/][^/]*\)\/*$/{
9897 s//\1/
9898 q
9899 }
9900 /^X\/\(\/\/\)$/{
9901 s//\1/
9902 q
9903 }
9904 /^X\/\(\/\).*/{
9905 s//\1/
9906 q
9907 }
9908 s/.*/./; q'`
9909
9910 # Avoid depending upon Character Ranges.
9911 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9912 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9913 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9914 as_cr_digits='0123456789'
9915 as_cr_alnum=$as_cr_Letters$as_cr_digits
9916
9917 ECHO_C= ECHO_N= ECHO_T=
9918 case `echo -n x` in #(((((
9919 -n*)
9920 case `echo 'xy\c'` in
9921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9922 xy) ECHO_C='\c';;
9923 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9924 ECHO_T=' ';;
9925 esac;;
9926 *)
9927 ECHO_N='-n';;
9928 esac
9929
9930 rm -f conf$$ conf$$.exe conf$$.file
9931 if test -d conf$$.dir; then
9932 rm -f conf$$.dir/conf$$.file
9933 else
9934 rm -f conf$$.dir
9935 mkdir conf$$.dir 2>/dev/null
9936 fi
9937 if (echo >conf$$.file) 2>/dev/null; then
9938 if ln -s conf$$.file conf$$ 2>/dev/null; then
9939 as_ln_s='ln -s'
9940 # ... but there are two gotchas:
9941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9943 # In both cases, we have to default to `cp -p'.
9944 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9945 as_ln_s='cp -p'
9946 elif ln conf$$.file conf$$ 2>/dev/null; then
9947 as_ln_s=ln
9948 else
9949 as_ln_s='cp -p'
9950 fi
9951 else
9952 as_ln_s='cp -p'
9953 fi
9954 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9955 rmdir conf$$.dir 2>/dev/null
9956
9957
9958 # as_fn_mkdir_p
9959 # -------------
9960 # Create "$as_dir" as a directory, including parents if necessary.
9961 as_fn_mkdir_p ()
9962 {
9963
9964 case $as_dir in #(
9965 -*) as_dir=./$as_dir;;
9966 esac
9967 test -d "$as_dir" || eval $as_mkdir_p || {
9968 as_dirs=
9969 while :; do
9970 case $as_dir in #(
9971 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9972 *) as_qdir=$as_dir;;
9973 esac
9974 as_dirs="'$as_qdir' $as_dirs"
9975 as_dir=`$as_dirname -- "$as_dir" ||
9976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9977 X"$as_dir" : 'X\(//\)[^/]' \| \
9978 X"$as_dir" : 'X\(//\)$' \| \
9979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9980 $as_echo X"$as_dir" |
9981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9982 s//\1/
9983 q
9984 }
9985 /^X\(\/\/\)[^/].*/{
9986 s//\1/
9987 q
9988 }
9989 /^X\(\/\/\)$/{
9990 s//\1/
9991 q
9992 }
9993 /^X\(\/\).*/{
9994 s//\1/
9995 q
9996 }
9997 s/.*/./; q'`
9998 test -d "$as_dir" && break
9999 done
10000 test -z "$as_dirs" || eval "mkdir $as_dirs"
10001 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10002
10003
10004 } # as_fn_mkdir_p
10005 if mkdir -p . 2>/dev/null; then
10006 as_mkdir_p='mkdir -p "$as_dir"'
10007 else
10008 test -d ./-p && rmdir ./-p
10009 as_mkdir_p=false
10010 fi
10011
10012 if test -x / >/dev/null 2>&1; then
10013 as_test_x='test -x'
10014 else
10015 if ls -dL / >/dev/null 2>&1; then
10016 as_ls_L_option=L
10017 else
10018 as_ls_L_option=
10019 fi
10020 as_test_x='
10021 eval sh -c '\''
10022 if test -d "$1"; then
10023 test -d "$1/.";
10024 else
10025 case $1 in #(
10026 -*)set "./$1";;
10027 esac;
10028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10029 ???[sx]*):;;*)false;;esac;fi
10030 '\'' sh
10031 '
10032 fi
10033 as_executable_p=$as_test_x
10034
10035 # Sed expression to map a string onto a valid CPP name.
10036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10037
10038 # Sed expression to map a string onto a valid variable name.
10039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10040
10041
10042 exec 6>&1
10043 ## ----------------------------------- ##
10044 ## Main body of $CONFIG_STATUS script. ##
10045 ## ----------------------------------- ##
10046 _ASEOF
10047 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10048
10049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10050 # Save the log message, to keep $0 and so on meaningful, and to
10051 # report actual input values of CONFIG_FILES etc. instead of their
10052 # values after options handling.
10053 ac_log="
10054 This file was extended by charybdis $as_me 3.3.0, which was
10055 generated by GNU Autoconf 2.68. Invocation command line was
10056
10057 CONFIG_FILES = $CONFIG_FILES
10058 CONFIG_HEADERS = $CONFIG_HEADERS
10059 CONFIG_LINKS = $CONFIG_LINKS
10060 CONFIG_COMMANDS = $CONFIG_COMMANDS
10061 $ $0 $@
10062
10063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10064 "
10065
10066 _ACEOF
10067
10068 case $ac_config_files in *"
10069 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10070 esac
10071
10072 case $ac_config_headers in *"
10073 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10074 esac
10075
10076
10077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10078 # Files that config.status was made for.
10079 config_files="$ac_config_files"
10080 config_headers="$ac_config_headers"
10081
10082 _ACEOF
10083
10084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10085 ac_cs_usage="\
10086 \`$as_me' instantiates files and other configuration actions
10087 from templates according to the current configuration. Unless the files
10088 and actions are specified as TAGs, all are instantiated by default.
10089
10090 Usage: $0 [OPTION]... [TAG]...
10091
10092 -h, --help print this help, then exit
10093 -V, --version print version number and configuration settings, then exit
10094 --config print configuration, then exit
10095 -q, --quiet, --silent
10096 do not print progress messages
10097 -d, --debug don't remove temporary files
10098 --recheck update $as_me by reconfiguring in the same conditions
10099 --file=FILE[:TEMPLATE]
10100 instantiate the configuration file FILE
10101 --header=FILE[:TEMPLATE]
10102 instantiate the configuration header FILE
10103
10104 Configuration files:
10105 $config_files
10106
10107 Configuration headers:
10108 $config_headers
10109
10110 Report bugs to the package provider."
10111
10112 _ACEOF
10113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10114 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10115 ac_cs_version="\\
10116 charybdis config.status 3.3.0
10117 configured by $0, generated by GNU Autoconf 2.68,
10118 with options \\"\$ac_cs_config\\"
10119
10120 Copyright (C) 2010 Free Software Foundation, Inc.
10121 This config.status script is free software; the Free Software Foundation
10122 gives unlimited permission to copy, distribute and modify it."
10123
10124 ac_pwd='$ac_pwd'
10125 srcdir='$srcdir'
10126 INSTALL='$INSTALL'
10127 test -n "\$AWK" || AWK=awk
10128 _ACEOF
10129
10130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10131 # The default lists apply if the user does not specify any file.
10132 ac_need_defaults=:
10133 while test $# != 0
10134 do
10135 case $1 in
10136 --*=?*)
10137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10139 ac_shift=:
10140 ;;
10141 --*=)
10142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10143 ac_optarg=
10144 ac_shift=:
10145 ;;
10146 *)
10147 ac_option=$1
10148 ac_optarg=$2
10149 ac_shift=shift
10150 ;;
10151 esac
10152
10153 case $ac_option in
10154 # Handling of the options.
10155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10156 ac_cs_recheck=: ;;
10157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10158 $as_echo "$ac_cs_version"; exit ;;
10159 --config | --confi | --conf | --con | --co | --c )
10160 $as_echo "$ac_cs_config"; exit ;;
10161 --debug | --debu | --deb | --de | --d | -d )
10162 debug=: ;;
10163 --file | --fil | --fi | --f )
10164 $ac_shift
10165 case $ac_optarg in
10166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10167 '') as_fn_error $? "missing file argument" ;;
10168 esac
10169 as_fn_append CONFIG_FILES " '$ac_optarg'"
10170 ac_need_defaults=false;;
10171 --header | --heade | --head | --hea )
10172 $ac_shift
10173 case $ac_optarg in
10174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10175 esac
10176 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10177 ac_need_defaults=false;;
10178 --he | --h)
10179 # Conflict between --help and --header
10180 as_fn_error $? "ambiguous option: \`$1'
10181 Try \`$0 --help' for more information.";;
10182 --help | --hel | -h )
10183 $as_echo "$ac_cs_usage"; exit ;;
10184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10186 ac_cs_silent=: ;;
10187
10188 # This is an error.
10189 -*) as_fn_error $? "unrecognized option: \`$1'
10190 Try \`$0 --help' for more information." ;;
10191
10192 *) as_fn_append ac_config_targets " $1"
10193 ac_need_defaults=false ;;
10194
10195 esac
10196 shift
10197 done
10198
10199 ac_configure_extra_args=
10200
10201 if $ac_cs_silent; then
10202 exec 6>/dev/null
10203 ac_configure_extra_args="$ac_configure_extra_args --silent"
10204 fi
10205
10206 _ACEOF
10207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10208 if \$ac_cs_recheck; then
10209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10210 shift
10211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10212 CONFIG_SHELL='$SHELL'
10213 export CONFIG_SHELL
10214 exec "\$@"
10215 fi
10216
10217 _ACEOF
10218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10219 exec 5>>config.log
10220 {
10221 echo
10222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10223 ## Running $as_me. ##
10224 _ASBOX
10225 $as_echo "$ac_log"
10226 } >&5
10227
10228 _ACEOF
10229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10230 _ACEOF
10231
10232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10233
10234 # Handling of arguments.
10235 for ac_config_target in $ac_config_targets
10236 do
10237 case $ac_config_target in
10238 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10240 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
10241 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
10242 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
10243 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10244 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10245 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10246 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10247 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
10248
10249 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10250 esac
10251 done
10252
10253
10254 # If the user did not use the arguments to specify the items to instantiate,
10255 # then the envvar interface is used. Set only those that are not.
10256 # We use the long form for the default assignment because of an extremely
10257 # bizarre bug on SunOS 4.1.3.
10258 if $ac_need_defaults; then
10259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10261 fi
10262
10263 # Have a temporary directory for convenience. Make it in the build tree
10264 # simply because there is no reason against having it here, and in addition,
10265 # creating and moving files from /tmp can sometimes cause problems.
10266 # Hook for its removal unless debugging.
10267 # Note that there is a small window in which the directory will not be cleaned:
10268 # after its creation but before its name has been assigned to `$tmp'.
10269 $debug ||
10270 {
10271 tmp= ac_tmp=
10272 trap 'exit_status=$?
10273 : "${ac_tmp:=$tmp}"
10274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10275 ' 0
10276 trap 'as_fn_exit 1' 1 2 13 15
10277 }
10278 # Create a (secure) tmp directory for tmp files.
10279
10280 {
10281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10282 test -d "$tmp"
10283 } ||
10284 {
10285 tmp=./conf$$-$RANDOM
10286 (umask 077 && mkdir "$tmp")
10287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10288 ac_tmp=$tmp
10289
10290 # Set up the scripts for CONFIG_FILES section.
10291 # No need to generate them if there are no CONFIG_FILES.
10292 # This happens for instance with `./config.status config.h'.
10293 if test -n "$CONFIG_FILES"; then
10294
10295
10296 ac_cr=`echo X | tr X '\015'`
10297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10298 # But we know of no other shell where ac_cr would be empty at this
10299 # point, so we can use a bashism as a fallback.
10300 if test "x$ac_cr" = x; then
10301 eval ac_cr=\$\'\\r\'
10302 fi
10303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10305 ac_cs_awk_cr='\\r'
10306 else
10307 ac_cs_awk_cr=$ac_cr
10308 fi
10309
10310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10311 _ACEOF
10312
10313
10314 {
10315 echo "cat >conf$$subs.awk <<_ACEOF" &&
10316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10317 echo "_ACEOF"
10318 } >conf$$subs.sh ||
10319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10321 ac_delim='%!_!# '
10322 for ac_last_try in false false false false false :; do
10323 . ./conf$$subs.sh ||
10324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10325
10326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10327 if test $ac_delim_n = $ac_delim_num; then
10328 break
10329 elif $ac_last_try; then
10330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10331 else
10332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10333 fi
10334 done
10335 rm -f conf$$subs.sh
10336
10337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10339 _ACEOF
10340 sed -n '
10341 h
10342 s/^/S["/; s/!.*/"]=/
10343 p
10344 g
10345 s/^[^!]*!//
10346 :repl
10347 t repl
10348 s/'"$ac_delim"'$//
10349 t delim
10350 :nl
10351 h
10352 s/\(.\{148\}\)..*/\1/
10353 t more1
10354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10355 p
10356 n
10357 b repl
10358 :more1
10359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10360 p
10361 g
10362 s/.\{148\}//
10363 t nl
10364 :delim
10365 h
10366 s/\(.\{148\}\)..*/\1/
10367 t more2
10368 s/["\\]/\\&/g; s/^/"/; s/$/"/
10369 p
10370 b
10371 :more2
10372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10373 p
10374 g
10375 s/.\{148\}//
10376 t delim
10377 ' <conf$$subs.awk | sed '
10378 /^[^""]/{
10379 N
10380 s/\n//
10381 }
10382 ' >>$CONFIG_STATUS || ac_write_fail=1
10383 rm -f conf$$subs.awk
10384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10385 _ACAWK
10386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10387 for (key in S) S_is_set[key] = 1
10388 FS = "\a"
10389
10390 }
10391 {
10392 line = $ 0
10393 nfields = split(line, field, "@")
10394 substed = 0
10395 len = length(field[1])
10396 for (i = 2; i < nfields; i++) {
10397 key = field[i]
10398 keylen = length(key)
10399 if (S_is_set[key]) {
10400 value = S[key]
10401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10402 len += length(value) + length(field[++i])
10403 substed = 1
10404 } else
10405 len += 1 + keylen
10406 }
10407
10408 print line
10409 }
10410
10411 _ACAWK
10412 _ACEOF
10413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10416 else
10417 cat
10418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10420 _ACEOF
10421
10422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10424 # trailing colons and then remove the whole line if VPATH becomes empty
10425 # (actually we leave an empty line to preserve line numbers).
10426 if test "x$srcdir" = x.; then
10427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10428 h
10429 s///
10430 s/^/:/
10431 s/[ ]*$/:/
10432 s/:\$(srcdir):/:/g
10433 s/:\${srcdir}:/:/g
10434 s/:@srcdir@:/:/g
10435 s/^:*//
10436 s/:*$//
10437 x
10438 s/\(=[ ]*\).*/\1/
10439 G
10440 s/\n//
10441 s/^[^=]*=[ ]*$//
10442 }'
10443 fi
10444
10445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10446 fi # test -n "$CONFIG_FILES"
10447
10448 # Set up the scripts for CONFIG_HEADERS section.
10449 # No need to generate them if there are no CONFIG_HEADERS.
10450 # This happens for instance with `./config.status Makefile'.
10451 if test -n "$CONFIG_HEADERS"; then
10452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10453 BEGIN {
10454 _ACEOF
10455
10456 # Transform confdefs.h into an awk script `defines.awk', embedded as
10457 # here-document in config.status, that substitutes the proper values into
10458 # config.h.in to produce config.h.
10459
10460 # Create a delimiter string that does not exist in confdefs.h, to ease
10461 # handling of long lines.
10462 ac_delim='%!_!# '
10463 for ac_last_try in false false :; do
10464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10465 if test -z "$ac_tt"; then
10466 break
10467 elif $ac_last_try; then
10468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10469 else
10470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10471 fi
10472 done
10473
10474 # For the awk script, D is an array of macro values keyed by name,
10475 # likewise P contains macro parameters if any. Preserve backslash
10476 # newline sequences.
10477
10478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10479 sed -n '
10480 s/.\{148\}/&'"$ac_delim"'/g
10481 t rset
10482 :rset
10483 s/^[ ]*#[ ]*define[ ][ ]*/ /
10484 t def
10485 d
10486 :def
10487 s/\\$//
10488 t bsnl
10489 s/["\\]/\\&/g
10490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10491 D["\1"]=" \3"/p
10492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10493 d
10494 :bsnl
10495 s/["\\]/\\&/g
10496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10497 D["\1"]=" \3\\\\\\n"\\/p
10498 t cont
10499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10500 t cont
10501 d
10502 :cont
10503 n
10504 s/.\{148\}/&'"$ac_delim"'/g
10505 t clear
10506 :clear
10507 s/\\$//
10508 t bsnlc
10509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10510 d
10511 :bsnlc
10512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10513 b cont
10514 ' <confdefs.h | sed '
10515 s/'"$ac_delim"'/"\\\
10516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10517
10518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10519 for (key in D) D_is_set[key] = 1
10520 FS = "\a"
10521 }
10522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10523 line = \$ 0
10524 split(line, arg, " ")
10525 if (arg[1] == "#") {
10526 defundef = arg[2]
10527 mac1 = arg[3]
10528 } else {
10529 defundef = substr(arg[1], 2)
10530 mac1 = arg[2]
10531 }
10532 split(mac1, mac2, "(") #)
10533 macro = mac2[1]
10534 prefix = substr(line, 1, index(line, defundef) - 1)
10535 if (D_is_set[macro]) {
10536 # Preserve the white space surrounding the "#".
10537 print prefix "define", macro P[macro] D[macro]
10538 next
10539 } else {
10540 # Replace #undef with comments. This is necessary, for example,
10541 # in the case of _POSIX_SOURCE, which is predefined and required
10542 # on some systems where configure will not decide to define it.
10543 if (defundef == "undef") {
10544 print "/*", prefix defundef, macro, "*/"
10545 next
10546 }
10547 }
10548 }
10549 { print }
10550 _ACAWK
10551 _ACEOF
10552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10554 fi # test -n "$CONFIG_HEADERS"
10555
10556
10557 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10558 shift
10559 for ac_tag
10560 do
10561 case $ac_tag in
10562 :[FHLC]) ac_mode=$ac_tag; continue;;
10563 esac
10564 case $ac_mode$ac_tag in
10565 :[FHL]*:*);;
10566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10567 :[FH]-) ac_tag=-:-;;
10568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10569 esac
10570 ac_save_IFS=$IFS
10571 IFS=:
10572 set x $ac_tag
10573 IFS=$ac_save_IFS
10574 shift
10575 ac_file=$1
10576 shift
10577
10578 case $ac_mode in
10579 :L) ac_source=$1;;
10580 :[FH])
10581 ac_file_inputs=
10582 for ac_f
10583 do
10584 case $ac_f in
10585 -) ac_f="$ac_tmp/stdin";;
10586 *) # Look for the file first in the build tree, then in the source tree
10587 # (if the path is not absolute). The absolute path cannot be DOS-style,
10588 # because $ac_f cannot contain `:'.
10589 test -f "$ac_f" ||
10590 case $ac_f in
10591 [\\/$]*) false;;
10592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10593 esac ||
10594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10595 esac
10596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10597 as_fn_append ac_file_inputs " '$ac_f'"
10598 done
10599
10600 # Let's still pretend it is `configure' which instantiates (i.e., don't
10601 # use $as_me), people would be surprised to read:
10602 # /* config.h. Generated by config.status. */
10603 configure_input='Generated from '`
10604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10605 `' by configure.'
10606 if test x"$ac_file" != x-; then
10607 configure_input="$ac_file. $configure_input"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10609 $as_echo "$as_me: creating $ac_file" >&6;}
10610 fi
10611 # Neutralize special characters interpreted by sed in replacement strings.
10612 case $configure_input in #(
10613 *\&* | *\|* | *\\* )
10614 ac_sed_conf_input=`$as_echo "$configure_input" |
10615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10616 *) ac_sed_conf_input=$configure_input;;
10617 esac
10618
10619 case $ac_tag in
10620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10622 esac
10623 ;;
10624 esac
10625
10626 ac_dir=`$as_dirname -- "$ac_file" ||
10627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10628 X"$ac_file" : 'X\(//\)[^/]' \| \
10629 X"$ac_file" : 'X\(//\)$' \| \
10630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10631 $as_echo X"$ac_file" |
10632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10633 s//\1/
10634 q
10635 }
10636 /^X\(\/\/\)[^/].*/{
10637 s//\1/
10638 q
10639 }
10640 /^X\(\/\/\)$/{
10641 s//\1/
10642 q
10643 }
10644 /^X\(\/\).*/{
10645 s//\1/
10646 q
10647 }
10648 s/.*/./; q'`
10649 as_dir="$ac_dir"; as_fn_mkdir_p
10650 ac_builddir=.
10651
10652 case "$ac_dir" in
10653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10654 *)
10655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10656 # A ".." for each directory in $ac_dir_suffix.
10657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10658 case $ac_top_builddir_sub in
10659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10661 esac ;;
10662 esac
10663 ac_abs_top_builddir=$ac_pwd
10664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10665 # for backward compatibility:
10666 ac_top_builddir=$ac_top_build_prefix
10667
10668 case $srcdir in
10669 .) # We are building in place.
10670 ac_srcdir=.
10671 ac_top_srcdir=$ac_top_builddir_sub
10672 ac_abs_top_srcdir=$ac_pwd ;;
10673 [\\/]* | ?:[\\/]* ) # Absolute name.
10674 ac_srcdir=$srcdir$ac_dir_suffix;
10675 ac_top_srcdir=$srcdir
10676 ac_abs_top_srcdir=$srcdir ;;
10677 *) # Relative name.
10678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10679 ac_top_srcdir=$ac_top_build_prefix$srcdir
10680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10681 esac
10682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10683
10684
10685 case $ac_mode in
10686 :F)
10687 #
10688 # CONFIG_FILE
10689 #
10690
10691 case $INSTALL in
10692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10694 esac
10695 _ACEOF
10696
10697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10698 # If the template does not know about datarootdir, expand it.
10699 # FIXME: This hack should be removed a few years after 2.60.
10700 ac_datarootdir_hack=; ac_datarootdir_seen=
10701 ac_sed_dataroot='
10702 /datarootdir/ {
10703 p
10704 q
10705 }
10706 /@datadir@/p
10707 /@docdir@/p
10708 /@infodir@/p
10709 /@localedir@/p
10710 /@mandir@/p'
10711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10712 *datarootdir*) ac_datarootdir_seen=yes;;
10713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10715 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10716 _ACEOF
10717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10718 ac_datarootdir_hack='
10719 s&@datadir@&$datadir&g
10720 s&@docdir@&$docdir&g
10721 s&@infodir@&$infodir&g
10722 s&@localedir@&$localedir&g
10723 s&@mandir@&$mandir&g
10724 s&\\\${datarootdir}&$datarootdir&g' ;;
10725 esac
10726 _ACEOF
10727
10728 # Neutralize VPATH when `$srcdir' = `.'.
10729 # Shell code in configure.ac might set extrasub.
10730 # FIXME: do we really want to maintain this feature?
10731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10732 ac_sed_extra="$ac_vpsub
10733 $extrasub
10734 _ACEOF
10735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10736 :t
10737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10738 s|@configure_input@|$ac_sed_conf_input|;t t
10739 s&@top_builddir@&$ac_top_builddir_sub&;t t
10740 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10741 s&@srcdir@&$ac_srcdir&;t t
10742 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10743 s&@top_srcdir@&$ac_top_srcdir&;t t
10744 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10745 s&@builddir@&$ac_builddir&;t t
10746 s&@abs_builddir@&$ac_abs_builddir&;t t
10747 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10748 s&@INSTALL@&$ac_INSTALL&;t t
10749 $ac_datarootdir_hack
10750 "
10751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10752 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10753
10754 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10755 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10756 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10757 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10759 which seems to be undefined. Please make sure it is defined" >&5
10760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10761 which seems to be undefined. Please make sure it is defined" >&2;}
10762
10763 rm -f "$ac_tmp/stdin"
10764 case $ac_file in
10765 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10766 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10767 esac \
10768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10769 ;;
10770 :H)
10771 #
10772 # CONFIG_HEADER
10773 #
10774 if test x"$ac_file" != x-; then
10775 {
10776 $as_echo "/* $configure_input */" \
10777 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10778 } >"$ac_tmp/config.h" \
10779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10780 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10782 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10783 else
10784 rm -f "$ac_file"
10785 mv "$ac_tmp/config.h" "$ac_file" \
10786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10787 fi
10788 else
10789 $as_echo "/* $configure_input */" \
10790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10791 || as_fn_error $? "could not create -" "$LINENO" 5
10792 fi
10793 ;;
10794
10795
10796 esac
10797
10798 done # for ac_tag
10799
10800
10801 as_fn_exit 0
10802 _ACEOF
10803 ac_clean_files=$ac_clean_files_save
10804
10805 test $ac_write_fail = 0 ||
10806 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10807
10808
10809 # configure is writing to config.log, and then calls config.status.
10810 # config.status does its own redirection, appending to config.log.
10811 # Unfortunately, on DOS this fails, as config.log is still kept open
10812 # by configure, so config.status won't be able to write to it; its
10813 # output is simply discarded. So we exec the FD to /dev/null,
10814 # effectively closing config.log, so it can be properly (re)opened and
10815 # appended to by config.status. When coming back to configure, we
10816 # need to make the FD available again.
10817 if test "$no_create" != yes; then
10818 ac_cs_success=:
10819 ac_config_status_args=
10820 test "$silent" = yes &&
10821 ac_config_status_args="$ac_config_status_args --quiet"
10822 exec 5>/dev/null
10823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10824 exec 5>>config.log
10825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10826 # would make configure fail if this is the last instruction.
10827 $ac_cs_success || as_fn_exit 1
10828 fi
10829
10830 #
10831 # CONFIG_SUBDIRS section.
10832 #
10833 if test "$no_recursion" != yes; then
10834
10835 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10836 # so they do not pile up.
10837 ac_sub_configure_args=
10838 ac_prev=
10839 eval "set x $ac_configure_args"
10840 shift
10841 for ac_arg
10842 do
10843 if test -n "$ac_prev"; then
10844 ac_prev=
10845 continue
10846 fi
10847 case $ac_arg in
10848 -cache-file | --cache-file | --cache-fil | --cache-fi \
10849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10850 ac_prev=cache_file ;;
10851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10853 | --c=*)
10854 ;;
10855 --config-cache | -C)
10856 ;;
10857 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10858 ac_prev=srcdir ;;
10859 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10860 ;;
10861 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10862 ac_prev=prefix ;;
10863 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10864 ;;
10865 --disable-option-checking)
10866 ;;
10867 *)
10868 case $ac_arg in
10869 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10870 esac
10871 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10872 esac
10873 done
10874
10875 # Always prepend --prefix to ensure using the same prefix
10876 # in subdir configurations.
10877 ac_arg="--prefix=$prefix"
10878 case $ac_arg in
10879 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10880 esac
10881 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10882
10883 # Pass --silent
10884 if test "$silent" = yes; then
10885 ac_sub_configure_args="--silent $ac_sub_configure_args"
10886 fi
10887
10888 # Always prepend --disable-option-checking to silence warnings, since
10889 # different subdirs can have different --enable and --with options.
10890 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10891
10892 ac_popdir=`pwd`
10893 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10894
10895 # Do not complain, so a configure script can configure whichever
10896 # parts of a large source tree are present.
10897 test -d "$srcdir/$ac_dir" || continue
10898
10899 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10901 $as_echo "$ac_msg" >&6
10902 as_dir="$ac_dir"; as_fn_mkdir_p
10903 ac_builddir=.
10904
10905 case "$ac_dir" in
10906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10907 *)
10908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10909 # A ".." for each directory in $ac_dir_suffix.
10910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10911 case $ac_top_builddir_sub in
10912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10914 esac ;;
10915 esac
10916 ac_abs_top_builddir=$ac_pwd
10917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10918 # for backward compatibility:
10919 ac_top_builddir=$ac_top_build_prefix
10920
10921 case $srcdir in
10922 .) # We are building in place.
10923 ac_srcdir=.
10924 ac_top_srcdir=$ac_top_builddir_sub
10925 ac_abs_top_srcdir=$ac_pwd ;;
10926 [\\/]* | ?:[\\/]* ) # Absolute name.
10927 ac_srcdir=$srcdir$ac_dir_suffix;
10928 ac_top_srcdir=$srcdir
10929 ac_abs_top_srcdir=$srcdir ;;
10930 *) # Relative name.
10931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10932 ac_top_srcdir=$ac_top_build_prefix$srcdir
10933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10934 esac
10935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10936
10937
10938 cd "$ac_dir"
10939
10940 # Check for guested configure; otherwise get Cygnus style configure.
10941 if test -f "$ac_srcdir/configure.gnu"; then
10942 ac_sub_configure=$ac_srcdir/configure.gnu
10943 elif test -f "$ac_srcdir/configure"; then
10944 ac_sub_configure=$ac_srcdir/configure
10945 elif test -f "$ac_srcdir/configure.in"; then
10946 # This should be Cygnus configure.
10947 ac_sub_configure=$ac_aux_dir/configure
10948 else
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10950 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10951 ac_sub_configure=
10952 fi
10953
10954 # The recursion is here.
10955 if test -n "$ac_sub_configure"; then
10956 # Make the cache file name correct relative to the subdirectory.
10957 case $cache_file in
10958 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10959 *) # Relative name.
10960 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10961 esac
10962
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10964 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10965 # The eval makes quoting arguments work.
10966 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10967 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10968 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10969 fi
10970
10971 cd "$ac_popdir"
10972 done
10973 fi
10974 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10976 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10977 fi
10978
10979
10980 if test "$cf_openssl_version_ok" = yes; then
10981 openssl="yes"
10982 else
10983 openssl="no"
10984 fi
10985
10986 if test "$shared_modules" = yes; then
10987 modules=shared
10988 else
10989 modules=static
10990 fi
10991
10992 echo "
10993 Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
10994 Install directory : $prefix
10995
10996 Ziplinks : $zlib
10997 OpenSSL : $openssl
10998 Socket Engine : $SELECT_TYPE
10999 Small network : $small_net
11000 Block allocator : $balloc
11001
11002 Nickname length : $NICKLEN
11003 Topic length : $TOPICLEN
11004
11005 Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
11006 "