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