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