]> jfr.im git - solanum.git/blame - configure
Send numeric 735 on MLOCK policy-restricted mode changes that are ignored.
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
497c263d 3# Generated by GNU Autoconf 2.64 for charybdis 3.3.
212380e3 4#
b676ea3b 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
631ef239 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
497c263d
AC
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
7083c021 10#
212380e3
AC
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
7083c021
AC
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
212380e3 16
631ef239
AC
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
7083c021 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
20 emulate sh
21 NULLCMD=:
7083c021 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
631ef239
AC
25 setopt NO_GLOB_SUBST
26else
7083c021
AC
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
631ef239 32esac
631ef239
AC
33fi
34
35
7083c021
AC
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
631ef239 56 else
7083c021
AC
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 69 fi
7083c021
AC
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
212380e3 72fi
212380e3 73
7083c021
AC
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
212380e3
AC
81fi
82
83
631ef239
AC
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
631ef239
AC
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
7083c021 92case $0 in #((
631ef239
AC
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
7083c021
AC
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
631ef239
AC
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
7083c021
AC
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
631ef239
AC
113fi
114
7083c021
AC
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 122done
212380e3
AC
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
7083c021
AC
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 186do
7083c021
AC
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 230 else
7083c021
AC
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
212380e3 235 fi
7083c021
AC
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
212380e3 374
631ef239
AC
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
377 as_expr=expr
378else
379 as_expr=false
380fi
381
631ef239 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
383 as_basename=basename
384else
385 as_basename=false
386fi
387
7083c021
AC
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
212380e3 393
631ef239 394as_me=`$as_basename -- "$0" ||
212380e3
AC
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
631ef239 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 398$as_echo X/"$0" |
631ef239
AC
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
212380e3 412
7083c021
AC
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 419
212380e3 420
7083c021
AC
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 443
7083c021
AC
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
631ef239 450}
212380e3 451
7083c021
AC
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
631ef239 464
7083c021
AC
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
631ef239 486else
7083c021 487 as_ln_s='cp -p'
631ef239 488fi
7083c021
AC
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
631ef239 491
7083c021
AC
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
631ef239
AC
497fi
498
7083c021
AC
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
631ef239 501else
7083c021
AC
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
631ef239 519fi
7083c021 520as_executable_p=$as_test_x
631ef239 521
7083c021
AC
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 524
7083c021
AC
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239
AC
527
528
497c263d 529exec 7<&0 </dev/null 6>&1
631ef239 530
7083c021
AC
531# Name of the host.
532# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
533# so uname gets run too.
534ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 535
7083c021
AC
536#
537# Initializations.
538#
539ac_default_prefix=/usr/local
540ac_clean_files=
541ac_config_libobj_dir=.
542LIBOBJS=
543cross_compiling=no
544subdirs=
545MFLAGS=
546MAKEFLAGS=
212380e3 547
212380e3
AC
548# Identity of this package.
549PACKAGE_NAME='charybdis'
550PACKAGE_TARNAME='charybdis'
497c263d
AC
551PACKAGE_VERSION='3.3'
552PACKAGE_STRING='charybdis 3.3'
212380e3 553PACKAGE_BUGREPORT=''
7083c021 554PACKAGE_URL=''
212380e3
AC
555
556ac_default_prefix=$HOME/ircd
557# Factoring default headers for most tests.
558ac_includes_default="\
559#include <stdio.h>
631ef239 560#ifdef HAVE_SYS_TYPES_H
212380e3
AC
561# include <sys/types.h>
562#endif
631ef239 563#ifdef HAVE_SYS_STAT_H
212380e3
AC
564# include <sys/stat.h>
565#endif
631ef239 566#ifdef STDC_HEADERS
212380e3
AC
567# include <stdlib.h>
568# include <stddef.h>
569#else
631ef239 570# ifdef HAVE_STDLIB_H
212380e3
AC
571# include <stdlib.h>
572# endif
573#endif
631ef239
AC
574#ifdef HAVE_STRING_H
575# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
576# include <memory.h>
577# endif
578# include <string.h>
579#endif
631ef239 580#ifdef HAVE_STRINGS_H
212380e3
AC
581# include <strings.h>
582#endif
631ef239 583#ifdef HAVE_INTTYPES_H
212380e3 584# include <inttypes.h>
212380e3 585#endif
631ef239
AC
586#ifdef HAVE_STDINT_H
587# include <stdint.h>
588#endif
589#ifdef HAVE_UNISTD_H
212380e3
AC
590# include <unistd.h>
591#endif"
592
7083c021
AC
593enable_option_checking=no
594ac_subst_vars='LTLIBOBJS
631ef239 595LIBOBJS
7083c021
AC
596SEDOBJ
597IRC_CFLAGS
598PICFLAGS
599SSL_LIBS
600SSL_INCLUDES
601SSL_SRCS_ENABLE
602MOD_TARGET
603MODULES_LIBS
604SELECT_TYPE
605moduledir
606MODULE_DIR
607helpdir
608HELP_DIR
609logdir
610LOG_DIR
611confdir
612ETC_DIR
613ZLIB_LD
614ENCSPEED
615ALLOCA
616VICONF
617CRYPT_LIB
618LEXLIB
619LEX_OUTPUT_ROOT
620LEX
621YFLAGS
622YACC
623TOUCH
624RANLIB
625LD
626AR
627SED
628LN
629MV
630CP
631RM
632INSTALL_DATA
633INSTALL_SCRIPT
634INSTALL_PROGRAM
635SET_MAKE
636STDOUT
637MAKEDEPEND
638MKDEP
639subdirs
640EGREP
641GREP
642CPP
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
650target_alias
651host_alias
652build_alias
653LIBS
654ECHO_T
655ECHO_N
656ECHO_C
657DEFS
658mandir
659localedir
660libdir
661psdir
662pdfdir
663dvidir
664htmldir
665infodir
666docdir
667oldincludedir
668includedir
669localstatedir
670sharedstatedir
671sysconfdir
672datadir
673datarootdir
674libexecdir
675sbindir
676bindir
677program_transform_name
678prefix
679exec_prefix
680PACKAGE_URL
681PACKAGE_BUGREPORT
682PACKAGE_STRING
683PACKAGE_VERSION
684PACKAGE_TARNAME
685PACKAGE_NAME
686PATH_SEPARATOR
687SHELL'
212380e3 688ac_subst_files=''
7083c021
AC
689ac_user_opts='
690enable_option_checking
691enable_ipv6
692enable_openssl
693with_zlib_path
694enable_zlib
695enable_ports
696enable_poll
697enable_select
698enable_kqueue
699enable_epoll
700with_confdir
701with_logdir
702with_helpdir
703with_moduledir
704enable_assert
705enable_iodebug
706enable_profile
707enable_balloc
708enable_small_net
709with_nicklen
710with_topiclen
711enable_warnings
712'
631ef239
AC
713 ac_precious_vars='build_alias
714host_alias
715target_alias
716CC
717CFLAGS
718LDFLAGS
719LIBS
720CPPFLAGS
721CPP
722YACC
723YFLAGS'
b676ea3b 724ac_subdirs_all='libratbox'
212380e3
AC
725
726# Initialize some variables set by options.
727ac_init_help=
728ac_init_version=false
7083c021
AC
729ac_unrecognized_opts=
730ac_unrecognized_sep=
212380e3
AC
731# The variables have the same names as the options, with
732# dashes changed to underlines.
733cache_file=/dev/null
734exec_prefix=NONE
735no_create=
736no_recursion=
737prefix=NONE
738program_prefix=NONE
739program_suffix=NONE
740program_transform_name=s,x,x,
741silent=
742site=
743srcdir=
744verbose=
745x_includes=NONE
746x_libraries=NONE
747
748# Installation directory options.
749# These are left unexpanded so users can "make install exec_prefix=/foo"
750# and all the variables that are supposed to be based on exec_prefix
751# by default will actually change.
752# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 753# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
754bindir='${exec_prefix}/bin'
755sbindir='${exec_prefix}/sbin'
756libexecdir='${exec_prefix}/libexec'
631ef239
AC
757datarootdir='${prefix}/share'
758datadir='${datarootdir}'
212380e3
AC
759sysconfdir='${prefix}/etc'
760sharedstatedir='${prefix}/com'
761localstatedir='${prefix}/var'
212380e3
AC
762includedir='${prefix}/include'
763oldincludedir='/usr/include'
631ef239
AC
764docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
765infodir='${datarootdir}/info'
766htmldir='${docdir}'
767dvidir='${docdir}'
768pdfdir='${docdir}'
769psdir='${docdir}'
770libdir='${exec_prefix}/lib'
771localedir='${datarootdir}/locale'
772mandir='${datarootdir}/man'
212380e3
AC
773
774ac_prev=
631ef239 775ac_dashdash=
212380e3
AC
776for ac_option
777do
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
631ef239 780 eval $ac_prev=\$ac_option
212380e3
AC
781 ac_prev=
782 continue
783 fi
784
631ef239
AC
785 case $ac_option in
786 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 *) ac_optarg=yes ;;
788 esac
212380e3
AC
789
790 # Accept the important Cygnus configure options, so we can diagnose typos.
791
631ef239
AC
792 case $ac_dashdash$ac_option in
793 --)
794 ac_dashdash=yes ;;
212380e3
AC
795
796 -bindir | --bindir | --bindi | --bind | --bin | --bi)
797 ac_prev=bindir ;;
798 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
799 bindir=$ac_optarg ;;
800
801 -build | --build | --buil | --bui | --bu)
802 ac_prev=build_alias ;;
803 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
804 build_alias=$ac_optarg ;;
805
806 -cache-file | --cache-file | --cache-fil | --cache-fi \
807 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
808 ac_prev=cache_file ;;
809 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
810 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
811 cache_file=$ac_optarg ;;
812
813 --config-cache | -C)
814 cache_file=config.cache ;;
815
631ef239 816 -datadir | --datadir | --datadi | --datad)
212380e3 817 ac_prev=datadir ;;
631ef239 818 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
819 datadir=$ac_optarg ;;
820
631ef239
AC
821 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
822 | --dataroo | --dataro | --datar)
823 ac_prev=datarootdir ;;
824 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
825 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
826 datarootdir=$ac_optarg ;;
827
212380e3 828 -disable-* | --disable-*)
7083c021 829 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 830 # Reject names that are not valid shell variable names.
7083c021
AC
831 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
832 as_fn_error "invalid feature name: $ac_useropt"
833 ac_useropt_orig=$ac_useropt
834 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
835 case $ac_user_opts in
836 *"
837"enable_$ac_useropt"
838"*) ;;
839 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
840 ac_unrecognized_sep=', ';;
841 esac
842 eval enable_$ac_useropt=no ;;
631ef239
AC
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
212380e3
AC
853
854 -enable-* | --enable-*)
7083c021 855 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 856 # Reject names that are not valid shell variable names.
7083c021
AC
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
862 *"
863"enable_$ac_useropt"
864"*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
869
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
878
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
882
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
889
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
894
631ef239
AC
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
900
212380e3
AC
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
907
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
912
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
917
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
924
631ef239
AC
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
929
212380e3 930 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 931 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
935 localstatedir=$ac_optarg ;;
936
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
941
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
945
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
949
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
953
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
962
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
967
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
974
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
981
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
998
631ef239
AC
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1003
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1008
212380e3
AC
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
7083c021 1059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1060 # Reject names that are not valid shell variable names.
7083c021
AC
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error "invalid package name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067"with_$ac_useropt"
1068"*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1073
1074 -without-* | --without-*)
7083c021 1075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1076 # Reject names that are not valid shell variable names.
7083c021
AC
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error "invalid package name: $ac_useropt"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083"with_$ac_useropt"
1084"*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=no ;;
212380e3
AC
1089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
7083c021
AC
1108 -*) as_fn_error "unrecognized option: \`$ac_option'
1109Try \`$0 --help' for more information."
212380e3
AC
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
7083c021
AC
1115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1118 esac
631ef239 1119 eval $ac_envvar=\$ac_optarg
212380e3
AC
1120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
7083c021 1124 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1126 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
212380e3
AC
1127 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 ;;
1129
1130 esac
1131done
1132
1133if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
7083c021 1135 as_fn_error "missing argument to $ac_option"
212380e3
AC
1136fi
1137
7083c021
AC
1138if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1140 no) ;;
1141 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1142 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 esac
1144fi
1145
1146# Check all directory arguments for consistency.
631ef239
AC
1147for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
212380e3 1151do
631ef239 1152 eval ac_val=\$$ac_var
7083c021
AC
1153 # Remove trailing slashes.
1154 case $ac_val in
1155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1158 esac
1159 # Be sure to have absolute directory names.
212380e3 1160 case $ac_val in
631ef239
AC
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1163 esac
7083c021 1164 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1165done
1166
1167# There might be people who depend on the old broken behavior: `$host'
1168# used to hold the argument of --host etc.
1169# FIXME: To remove some day.
1170build=$build_alias
1171host=$host_alias
1172target=$target_alias
1173
1174# FIXME: To remove some day.
1175if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
7083c021 1178 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
212380e3
AC
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1181 cross_compiling=yes
1182 fi
1183fi
1184
1185ac_tool_prefix=
1186test -n "$host_alias" && ac_tool_prefix=$host_alias-
1187
1188test "$silent" = yes && exec 6>/dev/null
1189
1190
631ef239
AC
1191ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192ac_ls_di=`ls -di .` &&
1193ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
7083c021 1194 as_fn_error "working directory cannot be determined"
631ef239 1195test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
7083c021 1196 as_fn_error "pwd does not report name of working directory"
631ef239
AC
1197
1198
1199# Find the source files, if location was not specified.
1200if test -z "$srcdir"; then
212380e3 1201 ac_srcdir_defaulted=yes
631ef239 1202 # Try the directory containing this script, then the parent directory.
7083c021
AC
1203 ac_confdir=`$as_dirname -- "$as_myself" ||
1204$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1205 X"$as_myself" : 'X\(//\)[^/]' \| \
1206 X"$as_myself" : 'X\(//\)$' \| \
1207 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1208$as_echo X"$as_myself" |
631ef239
AC
1209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\/\)[^/].*/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\/\)$/{
1218 s//\1/
1219 q
1220 }
1221 /^X\(\/\).*/{
1222 s//\1/
1223 q
1224 }
1225 s/.*/./; q'`
212380e3 1226 srcdir=$ac_confdir
631ef239 1227 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1228 srcdir=..
1229 fi
1230else
1231 ac_srcdir_defaulted=no
1232fi
631ef239
AC
1233if test ! -r "$srcdir/$ac_unique_file"; then
1234 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
7083c021 1235 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1236fi
631ef239
AC
1237ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1238ac_abs_confdir=`(
7083c021 1239 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
631ef239
AC
1240 pwd)`
1241# When building in place, set srcdir=.
1242if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 srcdir=.
1244fi
1245# Remove unnecessary trailing slashes from srcdir.
1246# Double slashes in file names in object file debugging info
1247# mess up M-x gdb in Emacs.
1248case $srcdir in
1249*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1250esac
1251for ac_var in $ac_precious_vars; do
1252 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_env_${ac_var}_value=\$${ac_var}
1254 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1255 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1256done
212380e3
AC
1257
1258#
1259# Report the --help message.
1260#
1261if test "$ac_init_help" = "long"; then
1262 # Omit some internal or obsolete options to make the list less imposing.
1263 # This message is too long to be a string in the A/UX 3.1 sh.
1264 cat <<_ACEOF
497c263d 1265\`configure' configures charybdis 3.3 to adapt to many kinds of systems.
212380e3
AC
1266
1267Usage: $0 [OPTION]... [VAR=VALUE]...
1268
1269To assign environment variables (e.g., CC, CFLAGS...), specify them as
1270VAR=VALUE. See below for descriptions of some of the useful variables.
1271
1272Defaults for the options are specified in brackets.
1273
1274Configuration:
1275 -h, --help display this help and exit
1276 --help=short display options specific to this package
1277 --help=recursive display the short help of all the included packages
1278 -V, --version display version information and exit
1279 -q, --quiet, --silent do not print \`checking...' messages
1280 --cache-file=FILE cache test results in FILE [disabled]
1281 -C, --config-cache alias for \`--cache-file=config.cache'
1282 -n, --no-create do not create output files
1283 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1284
212380e3
AC
1285Installation directories:
1286 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1287 [$ac_default_prefix]
212380e3 1288 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1289 [PREFIX]
212380e3
AC
1290
1291By default, \`make install' will install all the files in
1292\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1293an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1294for instance \`--prefix=\$HOME'.
1295
1296For better control, use the options below.
1297
1298Fine tuning of the installation directories:
7083c021
AC
1299 --bindir=DIR user executables [EPREFIX/bin]
1300 --sbindir=DIR system admin executables [EPREFIX/sbin]
1301 --libexecdir=DIR program executables [EPREFIX/libexec]
1302 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1303 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1304 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1305 --libdir=DIR object code libraries [EPREFIX/lib]
1306 --includedir=DIR C header files [PREFIX/include]
1307 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1308 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1309 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1310 --infodir=DIR info documentation [DATAROOTDIR/info]
1311 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1312 --mandir=DIR man documentation [DATAROOTDIR/man]
1313 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1314 --htmldir=DIR html documentation [DOCDIR]
1315 --dvidir=DIR dvi documentation [DOCDIR]
1316 --pdfdir=DIR pdf documentation [DOCDIR]
1317 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1318_ACEOF
1319
1320 cat <<\_ACEOF
1321_ACEOF
1322fi
1323
1324if test -n "$ac_init_help"; then
1325 case $ac_init_help in
497c263d 1326 short | recursive ) echo "Configuration of charybdis 3.3:";;
212380e3
AC
1327 esac
1328 cat <<\_ACEOF
1329
1330Optional Features:
7083c021 1331 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --enable-ipv6 Enable IPv6 support
631ef239 1335 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1336 --disable-openssl Disable OpenSSL support.
1337 --disable-zlib Disable ziplinks support
c1c5fdc4 1338 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1339 --enable-poll Force poll() usage.
1340 --enable-select Force select() usage.
1341 --enable-kqueue Force kqueue() usage.
212380e3
AC
1342 --enable-epoll Force sys_epoll usage (Linux only).
1343 --enable-assert Enable assert(). Choose between soft(warnings) and
1344 hard(aborts the daemon)
1345 --enable-iodebug Enable IO Debugging hooks
1346 --enable-profile Enable profiling
1347 --disable-balloc Disable the block allocator.
212380e3 1348 --enable-small-net Enable small network support.
212380e3
AC
1349 --enable-warnings Enable all sorts of warnings for debugging.
1350
1351Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1355 --with-confdir=DIR Directory to install config files.
1356 --with-logdir=DIR Directory where to write logfiles.
1357 --with-helpdir=DIR Directory to install help files.
1358 --with-moduledir=DIR Directory to install modules.
1359 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50)
1360 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1361 390)
212380e3
AC
1362
1363Some influential environment variables:
1364 CC C compiler command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1367 nonstandard directory <lib dir>
631ef239 1368 LIBS libraries to pass to the linker, e.g. -l<library>
497c263d 1369 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
631ef239 1370 you have headers in a nonstandard directory <include dir>
212380e3 1371 CPP C preprocessor
631ef239
AC
1372 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1373 the first program found out of: `bison -y', `byacc', `yacc'.
1374 YFLAGS The list of arguments that will be passed by default to $YACC.
1375 This script will default YFLAGS to the empty string to avoid a
1376 default value of `-d' given by some make applications.
212380e3
AC
1377
1378Use these variables to override the choices made by `configure' or to help
1379it to find libraries and programs with nonstandard names/locations.
1380
7083c021 1381Report bugs to the package provider.
212380e3 1382_ACEOF
631ef239 1383ac_status=$?
212380e3
AC
1384fi
1385
1386if test "$ac_init_help" = "recursive"; then
1387 # If there are subdirs, report their specific --help.
212380e3 1388 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1389 test -d "$ac_dir" ||
1390 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391 continue
212380e3
AC
1392 ac_builddir=.
1393
631ef239
AC
1394case "$ac_dir" in
1395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396*)
7083c021 1397 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1398 # A ".." for each directory in $ac_dir_suffix.
7083c021 1399 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404esac
1405ac_abs_top_builddir=$ac_pwd
1406ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407# for backward compatibility:
1408ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1409
1410case $srcdir in
631ef239 1411 .) # We are building in place.
212380e3 1412 ac_srcdir=.
631ef239
AC
1413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1416 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1423esac
631ef239
AC
1424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425
1426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
1428 if test -f "$ac_srcdir/configure.gnu"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
1432 echo &&
1433 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1434 else
7083c021 1435 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1438 done
1439fi
1440
631ef239 1441test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1442if $ac_init_version; then
1443 cat <<\_ACEOF
497c263d
AC
1444charybdis configure 3.3
1445generated by GNU Autoconf 2.64
212380e3 1446
7083c021 1447Copyright (C) 2009 Free Software Foundation, Inc.
212380e3
AC
1448This configure script is free software; the Free Software Foundation
1449gives unlimited permission to copy, distribute and modify it.
1450
b676ea3b 1451$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1452_ACEOF
631ef239 1453 exit
212380e3 1454fi
212380e3 1455
7083c021
AC
1456## ------------------------ ##
1457## Autoconf initialization. ##
1458## ------------------------ ##
212380e3 1459
7083c021
AC
1460# ac_fn_c_try_compile LINENO
1461# --------------------------
1462# Try to compile conftest.$ac_ext, and return whether this succeeded.
1463ac_fn_c_try_compile ()
1464{
1465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1466 rm -f conftest.$ac_objext
1467 if { { ac_try="$ac_compile"
1468case "(($ac_try" in
1469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1470 *) ac_try_echo=$ac_try;;
1471esac
1472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1473$as_echo "$ac_try_echo"; } >&5
1474 (eval "$ac_compile") 2>conftest.err
1475 ac_status=$?
1476 if test -s conftest.err; then
1477 grep -v '^ *+' conftest.err >conftest.er1
1478 cat conftest.er1 >&5
1479 mv -f conftest.er1 conftest.err
1480 fi
1481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1482 test $ac_status = 0; } && {
1483 test -z "$ac_c_werror_flag" ||
1484 test ! -s conftest.err
1485 } && test -s conftest.$ac_objext; then :
1486 ac_retval=0
1487else
1488 $as_echo "$as_me: failed program was:" >&5
1489sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1490
7083c021
AC
1491 ac_retval=1
1492fi
1493 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
497c263d 1494 return $ac_retval
7083c021
AC
1495
1496} # ac_fn_c_try_compile
1497
1498# ac_fn_c_try_cpp LINENO
1499# ----------------------
1500# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1501ac_fn_c_try_cpp ()
212380e3 1502{
7083c021
AC
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 if { { ac_try="$ac_cpp conftest.$ac_ext"
1505case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508esac
1509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510$as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } >/dev/null && {
1520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 }; then :
1523 ac_retval=0
1524else
1525 $as_echo "$as_me: failed program was:" >&5
1526sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1527
7083c021
AC
1528 ac_retval=1
1529fi
1530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
497c263d 1531 return $ac_retval
212380e3 1532
7083c021 1533} # ac_fn_c_try_cpp
212380e3 1534
7083c021
AC
1535# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1536# -------------------------------------------------------
1537# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1538# the include files in INCLUDES and setting the cache variable VAR
1539# accordingly.
1540ac_fn_c_check_header_mongrel ()
1541{
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545$as_echo_n "checking for $2... " >&6; }
1546if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1547 $as_echo_n "(cached) " >&6
1548fi
1549eval ac_res=\$$3
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1551$as_echo "$ac_res" >&6; }
1552else
1553 # Is the header compilable?
1554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1555$as_echo_n "checking $2 usability... " >&6; }
1556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557/* end confdefs.h. */
1558$4
1559#include <$2>
1560_ACEOF
1561if ac_fn_c_try_compile "$LINENO"; then :
1562 ac_header_compiler=yes
1563else
1564 ac_header_compiler=no
1565fi
1566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1568$as_echo "$ac_header_compiler" >&6; }
212380e3 1569
7083c021
AC
1570# Is the header present?
1571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1572$as_echo_n "checking $2 presence... " >&6; }
1573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574/* end confdefs.h. */
1575#include <$2>
1576_ACEOF
1577if ac_fn_c_try_cpp "$LINENO"; then :
1578 ac_header_preproc=yes
1579else
1580 ac_header_preproc=no
1581fi
1582rm -f conftest.err conftest.$ac_ext
1583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1584$as_echo "$ac_header_preproc" >&6; }
212380e3 1585
7083c021
AC
1586# So? What about this header?
1587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1588 yes:no: )
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1590$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1592$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1593 ;;
1594 no:yes:* )
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1596$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1598$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1600$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1602$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1604$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1605 ;;
1606esac
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608$as_echo_n "checking for $2... " >&6; }
1609if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 $as_echo_n "(cached) " >&6
1611else
1612 eval "$3=\$ac_header_compiler"
1613fi
1614eval ac_res=\$$3
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617fi
1618 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
212380e3 1619
7083c021 1620} # ac_fn_c_check_header_mongrel
212380e3 1621
7083c021
AC
1622# ac_fn_c_try_run LINENO
1623# ----------------------
1624# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1625# that executables *can* be run.
1626ac_fn_c_try_run ()
1627{
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 if { { ac_try="$ac_link"
1630case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>&5
1637 ac_status=$?
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1640 { { case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_try") 2>&5
1647 ac_status=$?
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; }; }; then :
1650 ac_retval=0
1651else
1652 $as_echo "$as_me: program exited with status $ac_status" >&5
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1655
7083c021
AC
1656 ac_retval=$ac_status
1657fi
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
497c263d 1660 return $ac_retval
212380e3 1661
7083c021 1662} # ac_fn_c_try_run
212380e3 1663
7083c021
AC
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1674 $as_echo_n "(cached) " >&6
1675else
1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h. */
1678$4
1679#include <$2>
212380e3 1680_ACEOF
7083c021
AC
1681if ac_fn_c_try_compile "$LINENO"; then :
1682 eval "$3=yes"
1683else
1684 eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
212380e3 1692
7083c021 1693} # ac_fn_c_check_header_compile
212380e3 1694
7083c021
AC
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
1722 $as_test_x conftest$ac_exeext
1723 }; then :
1724 ac_retval=0
212380e3 1725else
7083c021
AC
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1728
7083c021 1729 ac_retval=1
212380e3 1730fi
7083c021
AC
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
497c263d 1737 return $ac_retval
212380e3 1738
7083c021 1739} # ac_fn_c_try_link
212380e3 1740
7083c021
AC
1741# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1742# -------------------------------------------
1743# Tests whether TYPE exists after having included INCLUDES, setting cache
1744# variable VAR accordingly.
1745ac_fn_c_check_type ()
1746{
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749$as_echo_n "checking for $2... " >&6; }
1750if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 $as_echo_n "(cached) " >&6
212380e3 1752else
7083c021
AC
1753 eval "$3=no"
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756$4
1757int
1758main ()
1759{
1760if (sizeof ($2))
1761 return 0;
1762 ;
1763 return 0;
1764}
212380e3 1765_ACEOF
7083c021
AC
1766if ac_fn_c_try_compile "$LINENO"; then :
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1768/* end confdefs.h. */
7083c021 1769$4
212380e3
AC
1770int
1771main ()
1772{
7083c021
AC
1773if (sizeof (($2)))
1774 return 0;
212380e3
AC
1775 ;
1776 return 0;
1777}
1778_ACEOF
7083c021 1779if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1780
631ef239 1781else
7083c021 1782 eval "$3=yes"
212380e3 1783fi
7083c021 1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1785fi
7083c021 1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1787fi
7083c021
AC
1788eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
212380e3 1792
7083c021
AC
1793} # ac_fn_c_check_type
1794
1795# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1796# --------------------------------------------
1797# Tries to find the compile-time value of EXPR in a program that includes
1798# INCLUDES, setting VAR accordingly. Returns whether the value could be
1799# computed
1800ac_fn_c_compute_int ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if test "$cross_compiling" = yes; then
1804 # Depending upon the size, compute the lo and hi bounds.
1805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806/* end confdefs.h. */
1807$4
1808int
1809main ()
1810{
1811static int test_array [1 - 2 * !(($2) >= 0)];
1812test_array [0] = 0
1813
1814 ;
1815 return 0;
1816}
212380e3 1817_ACEOF
7083c021
AC
1818if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_lo=0 ac_mid=0
1820 while :; do
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1822/* end confdefs.h. */
7083c021
AC
1823$4
1824int
1825main ()
1826{
1827static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1828test_array [0] = 0
212380e3 1829
7083c021
AC
1830 ;
1831 return 0;
1832}
212380e3 1833_ACEOF
7083c021
AC
1834if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_hi=$ac_mid; break
212380e3 1836else
7083c021
AC
1837 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1838 if test $ac_lo -le $ac_mid; then
1839 ac_lo= ac_hi=
1840 break
1841 fi
1842 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1843fi
631ef239 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1845 done
1846else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h. */
1849$4
1850int
1851main ()
1852{
1853static int test_array [1 - 2 * !(($2) < 0)];
1854test_array [0] = 0
212380e3 1855
7083c021
AC
1856 ;
1857 return 0;
1858}
212380e3 1859_ACEOF
7083c021
AC
1860if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_hi=-1 ac_mid=-1
1862 while :; do
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866int
1867main ()
1868{
1869static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1870test_array [0] = 0
212380e3 1871
7083c021
AC
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_lo=$ac_mid; break
1878else
1879 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1880 if test $ac_mid -le $ac_hi; then
1881 ac_lo= ac_hi=
1882 break
1883 fi
1884 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1885fi
7083c021
AC
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 done
212380e3 1888else
7083c021
AC
1889 ac_lo= ac_hi=
1890fi
1891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892fi
1893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894# Binary search between lo and hi bounds.
1895while test "x$ac_lo" != "x$ac_hi"; do
1896 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1898/* end confdefs.h. */
7083c021
AC
1899$4
1900int
1901main ()
1902{
1903static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1904test_array [0] = 0
1905
1906 ;
1907 return 0;
1908}
212380e3 1909_ACEOF
7083c021
AC
1910if ac_fn_c_try_compile "$LINENO"; then :
1911 ac_hi=$ac_mid
212380e3 1912else
7083c021 1913 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1914fi
7083c021
AC
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916done
1917case $ac_lo in #((
1918?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1919'') ac_retval=1 ;;
1920esac
1921 else
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h. */
1924$4
1925static long int longval () { return $2; }
1926static unsigned long int ulongval () { return $2; }
1927#include <stdio.h>
1928#include <stdlib.h>
1929int
1930main ()
1931{
631ef239 1932
7083c021
AC
1933 FILE *f = fopen ("conftest.val", "w");
1934 if (! f)
1935 return 1;
1936 if (($2) < 0)
1937 {
1938 long int i = longval ();
1939 if (i != ($2))
1940 return 1;
1941 fprintf (f, "%ld", i);
1942 }
1943 else
1944 {
1945 unsigned long int i = ulongval ();
1946 if (i != ($2))
1947 return 1;
1948 fprintf (f, "%lu", i);
1949 }
1950 /* Do not output a trailing newline, as this causes \r\n confusion
1951 on some platforms. */
1952 return ferror (f) || fclose (f) != 0;
212380e3 1953
7083c021
AC
1954 ;
1955 return 0;
1956}
212380e3 1957_ACEOF
7083c021
AC
1958if ac_fn_c_try_run "$LINENO"; then :
1959 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 1960else
7083c021 1961 ac_retval=1
212380e3 1962fi
7083c021
AC
1963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1964 conftest.$ac_objext conftest.beam conftest.$ac_ext
1965rm -f conftest.val
631ef239 1966
7083c021
AC
1967 fi
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
497c263d 1969 return $ac_retval
212380e3 1970
7083c021 1971} # ac_fn_c_compute_int
212380e3 1972
7083c021
AC
1973# ac_fn_c_check_func LINENO FUNC VAR
1974# ----------------------------------
1975# Tests whether FUNC exists, setting the cache variable VAR accordingly
1976ac_fn_c_check_func ()
1977{
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
212380e3 1983else
7083c021 1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1985/* end confdefs.h. */
7083c021
AC
1986/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1988#define $2 innocuous_$2
1989
1990/* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char $2 (); below.
1992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1993 <limits.h> exists even on freestanding compilers. */
1994
212380e3
AC
1995#ifdef __STDC__
1996# include <limits.h>
1997#else
1998# include <assert.h>
1999#endif
212380e3 2000
7083c021 2001#undef $2
631ef239 2002
7083c021
AC
2003/* Override any GCC internal prototype to avoid an error.
2004 Use char because int might match the return type of a GCC
2005 builtin and then its argument prototype would still apply. */
2006#ifdef __cplusplus
2007extern "C"
2008#endif
2009char $2 ();
2010/* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013#if defined __stub_$2 || defined __stub___$2
2014choke me
2015#endif
212380e3 2016
7083c021
AC
2017int
2018main ()
2019{
2020return $2 ();
2021 ;
2022 return 0;
2023}
212380e3 2024_ACEOF
7083c021
AC
2025if ac_fn_c_try_link "$LINENO"; then :
2026 eval "$3=yes"
212380e3 2027else
7083c021
AC
2028 eval "$3=no"
2029fi
2030rm -f core conftest.err conftest.$ac_objext \
2031 conftest$ac_exeext conftest.$ac_ext
212380e3 2032fi
7083c021
AC
2033eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035$as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
631ef239 2037
7083c021
AC
2038} # ac_fn_c_check_func
2039cat >config.log <<_ACEOF
2040This file contains any messages produced by compilers while
2041running configure, to aid debugging if configure makes a mistake.
212380e3 2042
497c263d
AC
2043It was created by charybdis $as_me 3.3, which was
2044generated by GNU Autoconf 2.64. Invocation command line was
212380e3 2045
7083c021 2046 $ $0 $@
212380e3 2047
7083c021
AC
2048_ACEOF
2049exec 5>>config.log
2050{
2051cat <<_ASUNAME
2052## --------- ##
2053## Platform. ##
2054## --------- ##
2055
2056hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2057uname -m = `(uname -m) 2>/dev/null || echo unknown`
2058uname -r = `(uname -r) 2>/dev/null || echo unknown`
2059uname -s = `(uname -s) 2>/dev/null || echo unknown`
2060uname -v = `(uname -v) 2>/dev/null || echo unknown`
2061
2062/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2063/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2064
2065/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2066/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2067/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2068/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2069/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2070/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2071/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2072
2073_ASUNAME
212380e3 2074
631ef239 2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2076for as_dir in $PATH
631ef239
AC
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
7083c021 2080 $as_echo "PATH: $as_dir"
631ef239 2081 done
631ef239
AC
2082IFS=$as_save_IFS
2083
7083c021 2084} >&5
631ef239 2085
7083c021 2086cat >&5 <<_ACEOF
631ef239 2087
631ef239 2088
7083c021
AC
2089## ----------- ##
2090## Core tests. ##
2091## ----------- ##
631ef239 2092
7083c021 2093_ACEOF
631ef239
AC
2094
2095
7083c021
AC
2096# Keep a trace of the command line.
2097# Strip out --no-create and --no-recursion so they do not pile up.
2098# Strip out --silent because we don't want to record it for future runs.
2099# Also quote any args containing shell meta-characters.
2100# Make two passes to allow for proper duplicate-argument suppression.
2101ac_configure_args=
2102ac_configure_args0=
2103ac_configure_args1=
2104ac_must_keep_next=false
2105for ac_pass in 1 2
631ef239 2106do
7083c021 2107 for ac_arg
631ef239 2108 do
7083c021
AC
2109 case $ac_arg in
2110 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2112 | -silent | --silent | --silen | --sile | --sil)
2113 continue ;;
2114 *\'*)
2115 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2116 esac
2117 case $ac_pass in
2118 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2119 2)
2120 as_fn_append ac_configure_args1 " '$ac_arg'"
2121 if test $ac_must_keep_next = true; then
2122 ac_must_keep_next=false # Got value, back to normal.
2123 else
2124 case $ac_arg in
2125 *=* | --config-cache | -C | -disable-* | --disable-* \
2126 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2127 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2128 | -with-* | --with-* | -without-* | --without-* | --x)
2129 case "$ac_configure_args0 " in
2130 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2131 esac
2132 ;;
2133 -* ) ac_must_keep_next=true ;;
2134 esac
2135 fi
2136 as_fn_append ac_configure_args " '$ac_arg'"
2137 ;;
2138 esac
631ef239
AC
2139 done
2140done
7083c021
AC
2141{ ac_configure_args0=; unset ac_configure_args0;}
2142{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2143
7083c021
AC
2144# When interrupted or exit'd, cleanup temporary files, and complete
2145# config.log. We remove comments because anyway the quotes in there
2146# would cause problems or look ugly.
2147# WARNING: Use '\'' to represent an apostrophe within the trap.
2148# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2149trap 'exit_status=$?
2150 # Save into config.log some information that might help in debugging.
2151 {
2152 echo
631ef239 2153
7083c021
AC
2154 cat <<\_ASBOX
2155## ---------------- ##
2156## Cache variables. ##
2157## ---------------- ##
2158_ASBOX
2159 echo
2160 # The following way of writing the cache mishandles newlines in values,
2161(
2162 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2163 eval ac_val=\$$ac_var
2164 case $ac_val in #(
2165 *${as_nl}*)
2166 case $ac_var in #(
2167 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2168$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2169 esac
2170 case $ac_var in #(
2171 _ | IFS | as_nl) ;; #(
2172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2173 *) { eval $ac_var=; unset $ac_var;} ;;
2174 esac ;;
2175 esac
2176 done
2177 (set) 2>&1 |
2178 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2179 *${as_nl}ac_space=\ *)
2180 sed -n \
2181 "s/'\''/'\''\\\\'\'''\''/g;
2182 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2183 ;; #(
2184 *)
2185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 ;;
2187 esac |
2188 sort
2189)
2190 echo
631ef239 2191
7083c021
AC
2192 cat <<\_ASBOX
2193## ----------------- ##
2194## Output variables. ##
2195## ----------------- ##
2196_ASBOX
2197 echo
2198 for ac_var in $ac_subst_vars
2199 do
2200 eval ac_val=\$$ac_var
2201 case $ac_val in
2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203 esac
2204 $as_echo "$ac_var='\''$ac_val'\''"
2205 done | sort
2206 echo
631ef239 2207
7083c021
AC
2208 if test -n "$ac_subst_files"; then
2209 cat <<\_ASBOX
2210## ------------------- ##
2211## File substitutions. ##
2212## ------------------- ##
2213_ASBOX
2214 echo
2215 for ac_var in $ac_subst_files
2216 do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in
2219 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 esac
2221 $as_echo "$ac_var='\''$ac_val'\''"
2222 done | sort
2223 echo
2224 fi
631ef239 2225
7083c021
AC
2226 if test -s confdefs.h; then
2227 cat <<\_ASBOX
2228## ----------- ##
2229## confdefs.h. ##
2230## ----------- ##
2231_ASBOX
2232 echo
2233 cat confdefs.h
2234 echo
2235 fi
2236 test "$ac_signal" != 0 &&
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
2239 } >&5
2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242 exit $exit_status
2243' 0
2244for ac_signal in 1 2 13 15; do
2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246done
2247ac_signal=0
631ef239 2248
7083c021
AC
2249# confdefs.h avoids OS command line length limits that DEFS can exceed.
2250rm -f -r conftest* confdefs.h
631ef239 2251
7083c021 2252$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2253
7083c021 2254# Predefined preprocessor variables.
212380e3 2255
7083c021
AC
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2258_ACEOF
212380e3 2259
7083c021
AC
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2262_ACEOF
212380e3 2263
7083c021
AC
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2266_ACEOF
212380e3 2267
7083c021
AC
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_STRING "$PACKAGE_STRING"
2270_ACEOF
212380e3 2271
7083c021
AC
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274_ACEOF
212380e3 2275
7083c021
AC
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_URL "$PACKAGE_URL"
2278_ACEOF
212380e3 2279
631ef239 2280
7083c021
AC
2281# Let the site file select an alternate cache file if it wants to.
2282# Prefer an explicitly selected file to automatically selected ones.
2283ac_site_file1=NONE
2284ac_site_file2=NONE
2285if test -n "$CONFIG_SITE"; then
2286 ac_site_file1=$CONFIG_SITE
2287elif test "x$prefix" != xNONE; then
2288 ac_site_file1=$prefix/share/config.site
2289 ac_site_file2=$prefix/etc/config.site
212380e3 2290else
7083c021
AC
2291 ac_site_file1=$ac_default_prefix/share/config.site
2292 ac_site_file2=$ac_default_prefix/etc/config.site
2293fi
2294for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2295do
7083c021 2296 test "x$ac_site_file" = xNONE && continue
497c263d 2297 if test -r "$ac_site_file"; then
7083c021
AC
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2299$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2300 sed 's/^/| /' "$ac_site_file" >&5
2301 . "$ac_site_file"
212380e3
AC
2302 fi
2303done
212380e3 2304
7083c021 2305if test -r "$cache_file"; then
497c263d
AC
2306 # Some versions of bash will fail to source /dev/null (special
2307 # files actually), so we avoid doing that.
2308 if test -f "$cache_file"; then
7083c021
AC
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2310$as_echo "$as_me: loading cache $cache_file" >&6;}
2311 case $cache_file in
2312 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2313 *) . "./$cache_file";;
2314 esac
2315 fi
212380e3 2316else
7083c021
AC
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2318$as_echo "$as_me: creating cache $cache_file" >&6;}
2319 >$cache_file
212380e3
AC
2320fi
2321
7083c021
AC
2322# Check that the precious variables saved in the cache have kept the same
2323# value.
2324ac_cache_corrupted=false
2325for ac_var in $ac_precious_vars; do
2326 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2327 eval ac_new_set=\$ac_env_${ac_var}_set
2328 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2329 eval ac_new_val=\$ac_env_${ac_var}_value
2330 case $ac_old_set,$ac_new_set in
2331 set,)
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2333$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2334 ac_cache_corrupted=: ;;
2335 ,set)
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2337$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2338 ac_cache_corrupted=: ;;
2339 ,);;
2340 *)
2341 if test "x$ac_old_val" != "x$ac_new_val"; then
2342 # differences in whitespace do not lead to failure.
2343 ac_old_val_w=`echo x $ac_old_val`
2344 ac_new_val_w=`echo x $ac_new_val`
2345 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2347$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2348 ac_cache_corrupted=:
2349 else
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2351$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2352 eval $ac_var=\$ac_old_val
2353 fi
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2355$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2357$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2358 fi;;
2359 esac
2360 # Pass precious variables to config.status.
2361 if test "$ac_new_set" = set; then
2362 case $ac_new_val in
2363 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2364 *) ac_arg=$ac_var=$ac_new_val ;;
2365 esac
2366 case " $ac_configure_args " in
2367 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2368 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2369 esac
212380e3
AC
2370 fi
2371done
7083c021
AC
2372if $ac_cache_corrupted; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2376$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2377 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2378fi
7083c021
AC
2379## -------------------- ##
2380## Main body of script. ##
2381## -------------------- ##
212380e3 2382
7083c021
AC
2383ac_ext=c
2384ac_cpp='$CPP $CPPFLAGS'
2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2387ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2388
212380e3 2389
212380e3 2390
7083c021 2391ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2392
212380e3 2393
212380e3 2394
631ef239 2395
7083c021
AC
2396ac_ext=c
2397ac_cpp='$CPP $CPPFLAGS'
2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}gcc; ac_word=$2
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if test "${ac_cv_prog_CC+set}" = set; then :
2407 $as_echo_n "(cached) " >&6
212380e3 2408else
7083c021
AC
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
7083c021 2417 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2419 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2421 break 2
2422 fi
2423done
7083c021 2424 done
631ef239 2425IFS=$as_save_IFS
212380e3 2426
212380e3 2427fi
7083c021
AC
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432$as_echo "$CC" >&6; }
212380e3 2433else
7083c021
AC
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
212380e3
AC
2436fi
2437
631ef239 2438
7083c021
AC
2439fi
2440if test -z "$ac_cv_prog_CC"; then
2441 ac_ct_CC=$CC
2442 # Extract the first word of "gcc", so it can be a program name with args.
2443set dummy gcc; ac_word=$2
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
212380e3 2448else
7083c021
AC
2449 if test -n "$ac_ct_CC"; then
2450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
7083c021 2457 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2459 ac_cv_prog_ac_ct_CC="gcc"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2461 break 2
2462 fi
2463done
7083c021 2464 done
631ef239 2465IFS=$as_save_IFS
212380e3 2466
212380e3 2467fi
7083c021
AC
2468fi
2469ac_ct_CC=$ac_cv_prog_ac_ct_CC
2470if test -n "$ac_ct_CC"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2472$as_echo "$ac_ct_CC" >&6; }
212380e3 2473else
7083c021
AC
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475$as_echo "no" >&6; }
212380e3
AC
2476fi
2477
7083c021
AC
2478 if test "x$ac_ct_CC" = x; then
2479 CC=""
2480 else
2481 case $cross_compiling:$ac_tool_warned in
2482yes:)
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2485ac_tool_warned=yes ;;
2486esac
2487 CC=$ac_ct_CC
2488 fi
2489else
2490 CC="$ac_cv_prog_CC"
2491fi
631ef239 2492
7083c021
AC
2493if test -z "$CC"; then
2494 if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2496set dummy ${ac_tool_prefix}cc; ac_word=$2
2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2498$as_echo_n "checking for $ac_word... " >&6; }
2499if test "${ac_cv_prog_CC+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
212380e3 2501else
7083c021
AC
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
7083c021 2510 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2514 break 2
2515 fi
2516done
7083c021 2517 done
631ef239 2518IFS=$as_save_IFS
7083c021 2519
212380e3 2520fi
7083c021
AC
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2525$as_echo "$CC" >&6; }
212380e3 2526else
7083c021
AC
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2528$as_echo "no" >&6; }
212380e3
AC
2529fi
2530
631ef239 2531
7083c021
AC
2532 fi
2533fi
2534if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536set dummy cc; ac_word=$2
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
2539if test "${ac_cv_prog_CC+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
212380e3 2541else
7083c021
AC
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545 ac_prog_rejected=no
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
7083c021 2551 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2556 fi
2557 ac_cv_prog_CC="cc"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2559 break 2
2560 fi
2561done
7083c021 2562 done
631ef239 2563IFS=$as_save_IFS
212380e3 2564
7083c021
AC
2565if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 fi
212380e3 2576fi
7083c021
AC
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582$as_echo "$CC" >&6; }
212380e3 2583else
7083c021
AC
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585$as_echo "no" >&6; }
212380e3
AC
2586fi
2587
2588
7083c021
AC
2589fi
2590if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
2592 for ac_prog in cl.exe
2593 do
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if test "${ac_cv_prog_CC+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
212380e3 2600else
7083c021
AC
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
7083c021 2609 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2613 break 2
2614 fi
2615done
7083c021 2616 done
631ef239 2617IFS=$as_save_IFS
212380e3
AC
2618
2619fi
2620fi
7083c021
AC
2621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624$as_echo "$CC" >&6; }
212380e3 2625else
7083c021
AC
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
212380e3
AC
2628fi
2629
631ef239 2630
7083c021
AC
2631 test -n "$CC" && break
2632 done
212380e3 2633fi
7083c021
AC
2634if test -z "$CC"; then
2635 ac_ct_CC=$CC
2636 for ac_prog in cl.exe
212380e3
AC
2637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
7083c021
AC
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
212380e3 2644else
7083c021
AC
2645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3
AC
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
7083c021 2653 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083c021
AC
2655 ac_cv_prog_ac_ct_CC="$ac_prog"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2657 break 2
2658 fi
2659done
7083c021 2660 done
631ef239 2661IFS=$as_save_IFS
212380e3
AC
2662
2663fi
2664fi
7083c021
AC
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2668$as_echo "$ac_ct_CC" >&6; }
212380e3 2669else
7083c021
AC
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
212380e3
AC
2672fi
2673
631ef239 2674
7083c021 2675 test -n "$ac_ct_CC" && break
212380e3 2676done
212380e3 2677
7083c021
AC
2678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2685ac_tool_warned=yes ;;
2686esac
2687 CC=$ac_ct_CC
2688 fi
2689fi
2690
2691fi
2692
2693
2694test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696as_fn_error "no acceptable C compiler found in \$PATH
2697See \`config.log' for more details." "$LINENO" 5; }
2698
2699# Provide some information about the compiler.
2700$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2701set X $ac_compile
2702ac_compiler=$2
2703for ac_option in --version -v -V -qversion; do
2704 { { ac_try="$ac_compiler $ac_option >&5"
2705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
2709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710$as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2712 ac_status=$?
2713 if test -s conftest.err; then
2714 sed '10a\
2715... rest of stderr output deleted ...
2716 10q' conftest.err >conftest.er1
2717 cat conftest.er1 >&5
497c263d 2718 rm -f conftest.er1 conftest.err
7083c021
AC
2719 fi
2720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2721 test $ac_status = 0; }
2722done
2723
2724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725/* end confdefs.h. */
497c263d 2726#include <stdio.h>
212380e3 2727int
7083c021 2728main ()
212380e3 2729{
497c263d
AC
2730FILE *f = fopen ("conftest.out", "w");
2731 return ferror (f) || fclose (f) != 0;
7083c021
AC
2732
2733 ;
2734 return 0;
212380e3
AC
2735}
2736_ACEOF
7083c021 2737ac_clean_files_save=$ac_clean_files
497c263d 2738ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
7083c021
AC
2739# Try to create an executable without -o first, disregard a.out.
2740# It will help us diagnose broken compilers, and finding out an intuition
2741# of exeext.
497c263d
AC
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2743$as_echo_n "checking for C compiler default output file name... " >&6; }
7083c021
AC
2744ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2745
2746# The possible output files:
2747ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2748
2749ac_rmfiles=
2750for ac_file in $ac_files
2751do
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2755 esac
2756done
2757rm -f $ac_rmfiles
2758
2759if { { ac_try="$ac_link_default"
631ef239
AC
2760case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763esac
7083c021
AC
2764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765$as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_link_default") 2>&5
212380e3 2767 ac_status=$?
7083c021
AC
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; then :
2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2771# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2772# in a Makefile. We should not override ac_cv_exeext if it was cached,
2773# so that the user can short-circuit this test for compilers unknown to
2774# Autoconf.
2775for ac_file in $ac_files ''
2776do
2777 test -f "$ac_file" || continue
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2780 ;;
2781 [ab].out )
2782 # We found the default executable, but exeext='' is most
2783 # certainly right.
2784 break;;
2785 *.* )
2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2787 then :; else
2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2789 fi
2790 # We set ac_cv_exeext here because the later test for it is not
2791 # safe: cross compilers may not add the suffix if given an `-o'
2792 # argument, so we may need to know it at that point already.
2793 # Even if this section looks crufty: it has the advantage of
2794 # actually working.
2795 break;;
2796 * )
2797 break;;
2798 esac
2799done
2800test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2801
212380e3 2802else
7083c021 2803 ac_file=''
631ef239 2804fi
497c263d
AC
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2806$as_echo "$ac_file" >&6; }
7083c021 2807if test -z "$ac_file"; then :
497c263d 2808 $as_echo "$as_me: failed program was:" >&5
7083c021
AC
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
2811{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813{ as_fn_set_status 77
2814as_fn_error "C compiler cannot create executables
2815See \`config.log' for more details." "$LINENO" 5; }; }
631ef239 2816fi
7083c021 2817ac_exeext=$ac_cv_exeext
631ef239 2818
497c263d
AC
2819# Check that the compiler produces executables we can run. If not, either
2820# the compiler is broken, or we cross compile.
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2822$as_echo_n "checking whether the C compiler works... " >&6; }
2823# If not cross compiling, check that we can run a simple program.
2824if test "$cross_compiling" != yes; then
2825 if { ac_try='./$ac_file'
2826 { { case "(($ac_try" in
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2829esac
2830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831$as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_try") 2>&5
2833 ac_status=$?
2834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2835 test $ac_status = 0; }; }; then
2836 cross_compiling=no
2837 else
2838 if test "$cross_compiling" = maybe; then
2839 cross_compiling=yes
2840 else
2841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2843as_fn_error "cannot run C compiled programs.
2844If you meant to cross compile, use \`--host'.
2845See \`config.log' for more details." "$LINENO" 5; }
2846 fi
2847 fi
2848fi
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850$as_echo "yes" >&6; }
2851
2852rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
7083c021 2853ac_clean_files=$ac_clean_files_save
497c263d
AC
2854# Check that the compiler produces executables we can run. If not, either
2855# the compiler is broken, or we cross compile.
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2857$as_echo_n "checking whether we are cross compiling... " >&6; }
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2859$as_echo "$cross_compiling" >&6; }
2860
7083c021
AC
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2862$as_echo_n "checking for suffix of executables... " >&6; }
2863if { { ac_try="$ac_link"
2864case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867esac
2868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869$as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_link") 2>&5
2871 ac_status=$?
2872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2873 test $ac_status = 0; }; then :
2874 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2875# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2876# work properly (i.e., refer to `conftest.exe'), while it won't with
2877# `rm'.
2878for ac_file in conftest.exe conftest conftest.*; do
2879 test -f "$ac_file" || continue
2880 case $ac_file in
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2883 break;;
2884 * ) break;;
2885 esac
2886done
212380e3 2887else
7083c021
AC
2888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890as_fn_error "cannot compute suffix of executables: cannot compile and link
2891See \`config.log' for more details." "$LINENO" 5; }
2892fi
497c263d 2893rm -f conftest$ac_cv_exeext
7083c021
AC
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2895$as_echo "$ac_cv_exeext" >&6; }
2896
2897rm -f conftest.$ac_ext
2898EXEEXT=$ac_cv_exeext
2899ac_exeext=$EXEEXT
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2901$as_echo_n "checking for suffix of object files... " >&6; }
2902if test "${ac_cv_objext+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
212380e3 2907
7083c021
AC
2908int
2909main ()
2910{
2911
2912 ;
2913 return 0;
2914}
212380e3 2915_ACEOF
7083c021
AC
2916rm -f conftest.o conftest.obj
2917if { { ac_try="$ac_compile"
631ef239
AC
2918case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921esac
7083c021
AC
2922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2923$as_echo "$ac_try_echo"; } >&5
2924 (eval "$ac_compile") 2>&5
212380e3 2925 ac_status=$?
7083c021
AC
2926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2927 test $ac_status = 0; }; then :
2928 for ac_file in conftest.o conftest.obj conftest.*; do
2929 test -f "$ac_file" || continue;
2930 case $ac_file in
2931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2932 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2933 break;;
2934 esac
2935done
212380e3 2936else
7083c021 2937 $as_echo "$as_me: failed program was:" >&5
212380e3
AC
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
7083c021
AC
2940{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942as_fn_error "cannot compute suffix of object files: cannot compile
2943See \`config.log' for more details." "$LINENO" 5; }
2944fi
2945rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 2946fi
7083c021
AC
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2948$as_echo "$ac_cv_objext" >&6; }
2949OBJEXT=$ac_cv_objext
2950ac_objext=$OBJEXT
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2952$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2953if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955else
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957/* end confdefs.h. */
212380e3 2958
7083c021
AC
2959int
2960main ()
2961{
2962#ifndef __GNUC__
2963 choke me
2964#endif
212380e3 2965
7083c021
AC
2966 ;
2967 return 0;
2968}
2969_ACEOF
2970if ac_fn_c_try_compile "$LINENO"; then :
2971 ac_compiler_gnu=yes
2972else
2973 ac_compiler_gnu=no
212380e3 2974fi
7083c021
AC
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976ac_cv_c_compiler_gnu=$ac_compiler_gnu
2977
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2980$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2981if test $ac_compiler_gnu = yes; then
2982 GCC=yes
2983else
2984 GCC=
212380e3 2985fi
7083c021
AC
2986ac_test_CFLAGS=${CFLAGS+set}
2987ac_save_CFLAGS=$CFLAGS
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2989$as_echo_n "checking whether $CC accepts -g... " >&6; }
2990if test "${ac_cv_prog_cc_g+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2992else
2993 ac_save_c_werror_flag=$ac_c_werror_flag
2994 ac_c_werror_flag=yes
2995 ac_cv_prog_cc_g=no
2996 CFLAGS="-g"
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998/* end confdefs.h. */
212380e3 2999
7083c021
AC
3000int
3001main ()
3002{
631ef239 3003
7083c021
AC
3004 ;
3005 return 0;
3006}
212380e3 3007_ACEOF
7083c021
AC
3008if ac_fn_c_try_compile "$LINENO"; then :
3009 ac_cv_prog_cc_g=yes
212380e3 3010else
7083c021
AC
3011 CFLAGS=""
3012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3013/* end confdefs.h. */
212380e3 3014
7083c021
AC
3015int
3016main ()
3017{
631ef239 3018
7083c021
AC
3019 ;
3020 return 0;
3021}
3022_ACEOF
3023if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3024
7083c021
AC
3025else
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3027 CFLAGS="-g"
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029/* end confdefs.h. */
212380e3 3030
7083c021
AC
3031int
3032main ()
3033{
212380e3 3034
7083c021
AC
3035 ;
3036 return 0;
3037}
212380e3 3038_ACEOF
7083c021
AC
3039if ac_fn_c_try_compile "$LINENO"; then :
3040 ac_cv_prog_cc_g=yes
212380e3 3041fi
7083c021 3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3043fi
7083c021 3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3045fi
7083c021
AC
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3048fi
7083c021
AC
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3050$as_echo "$ac_cv_prog_cc_g" >&6; }
3051if test "$ac_test_CFLAGS" = set; then
3052 CFLAGS=$ac_save_CFLAGS
3053elif test $ac_cv_prog_cc_g = yes; then
3054 if test "$GCC" = yes; then
3055 CFLAGS="-g -O2"
3056 else
3057 CFLAGS="-g"
3058 fi
212380e3 3059else
7083c021
AC
3060 if test "$GCC" = yes; then
3061 CFLAGS="-O2"
3062 else
3063 CFLAGS=
3064 fi
3065fi
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3067$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3068if test "${ac_cv_prog_cc_c89+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3070else
3071 ac_cv_prog_cc_c89=no
3072ac_save_CC=$CC
3073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3074/* end confdefs.h. */
212380e3 3075#include <stdarg.h>
7083c021
AC
3076#include <stdio.h>
3077#include <sys/types.h>
3078#include <sys/stat.h>
3079/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3080struct buf { int x; };
3081FILE * (*rcsopen) (struct buf *, struct stat *, int);
3082static char *e (p, i)
3083 char **p;
3084 int i;
3085{
3086 return p[i];
3087}
3088static char *f (char * (*g) (char **, int), char **p, ...)
3089{
3090 char *s;
3091 va_list v;
3092 va_start (v,p);
3093 s = g (p, va_arg (v,int));
3094 va_end (v);
3095 return s;
3096}
3097
3098/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3099 function prototypes and stuff, but not '\xHH' hex character constants.
3100 These don't provoke an error unfortunately, instead are silently treated
3101 as 'x'. The following induces an error, until -std is added to get
3102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3103 array size at least. It's necessary to write '\x00'==0 to get something
3104 that's true only with -std. */
3105int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3106
3107/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3108 inside strings and character constants. */
3109#define FOO(x) 'x'
3110int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3111
7083c021
AC
3112int test (int i, double x);
3113struct s1 {int (*f) (int a);};
3114struct s2 {int (*f) (double a);};
3115int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3116int argc;
3117char **argv;
212380e3
AC
3118int
3119main ()
3120{
7083c021 3121return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
3122 ;
3123 return 0;
3124}
3125_ACEOF
7083c021
AC
3126for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3128do
3129 CC="$ac_save_CC $ac_arg"
3130 if ac_fn_c_try_compile "$LINENO"; then :
3131 ac_cv_prog_cc_c89=$ac_arg
3132fi
3133rm -f core conftest.err conftest.$ac_objext
3134 test "x$ac_cv_prog_cc_c89" != "xno" && break
3135done
3136rm -f conftest.$ac_ext
3137CC=$ac_save_CC
3138
3139fi
3140# AC_CACHE_VAL
3141case "x$ac_cv_prog_cc_c89" in
3142 x)
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3144$as_echo "none needed" >&6; } ;;
3145 xno)
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3147$as_echo "unsupported" >&6; } ;;
3148 *)
3149 CC="$CC $ac_cv_prog_cc_c89"
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3151$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3152esac
7083c021 3153if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3154
212380e3 3155fi
631ef239 3156
7083c021
AC
3157ac_ext=c
3158ac_cpp='$CPP $CPPFLAGS'
3159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3162
212380e3 3163
7083c021
AC
3164ac_ext=c
3165ac_cpp='$CPP $CPPFLAGS'
3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3170$as_echo_n "checking how to run the C preprocessor... " >&6; }
3171# On Suns, sometimes $CPP names a directory.
3172if test -n "$CPP" && test -d "$CPP"; then
3173 CPP=
3174fi
3175if test -z "$CPP"; then
3176 if test "${ac_cv_prog_CPP+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178else
3179 # Double quotes because CPP needs to be expanded
3180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3181 do
3182 ac_preproc_ok=false
3183for ac_c_preproc_warn_flag in '' yes
3184do
3185 # Use a header file that comes with gcc, so configuring glibc
3186 # with a fresh cross-compiler works.
3187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3188 # <limits.h> exists even on freestanding compilers.
3189 # On the NeXT, cc -E runs the code through the compiler's parser,
3190 # not just through cpp. "Syntax error" is here to catch this case.
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192/* end confdefs.h. */
3193#ifdef __STDC__
3194# include <limits.h>
3195#else
3196# include <assert.h>
3197#endif
3198 Syntax error
212380e3 3199_ACEOF
7083c021 3200if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3201
7083c021
AC
3202else
3203 # Broken: fails on valid input.
3204continue
212380e3 3205fi
7083c021 3206rm -f conftest.err conftest.$ac_ext
212380e3 3207
7083c021
AC
3208 # OK, works on sane cases. Now check whether nonexistent headers
3209 # can be detected and how.
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3211/* end confdefs.h. */
7083c021 3212#include <ac_nonexistent.h>
212380e3 3213_ACEOF
7083c021
AC
3214if ac_fn_c_try_cpp "$LINENO"; then :
3215 # Broken: success on invalid input.
3216continue
212380e3 3217else
7083c021
AC
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
212380e3 3221fi
7083c021 3222rm -f conftest.err conftest.$ac_ext
212380e3 3223
7083c021
AC
3224done
3225# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3226rm -f conftest.err conftest.$ac_ext
3227if $ac_preproc_ok; then :
3228 break
212380e3
AC
3229fi
3230
7083c021
AC
3231 done
3232 ac_cv_prog_CPP=$CPP
3233
3234fi
3235 CPP=$ac_cv_prog_CPP
212380e3 3236else
7083c021
AC
3237 ac_cv_prog_CPP=$CPP
3238fi
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3240$as_echo "$CPP" >&6; }
3241ac_preproc_ok=false
3242for ac_c_preproc_warn_flag in '' yes
3243do
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3251/* end confdefs.h. */
7083c021
AC
3252#ifdef __STDC__
3253# include <limits.h>
212380e3 3254#else
7083c021 3255# include <assert.h>
212380e3 3256#endif
7083c021 3257 Syntax error
212380e3 3258_ACEOF
7083c021 3259if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3260
7083c021
AC
3261else
3262 # Broken: fails on valid input.
3263continue
212380e3 3264fi
7083c021 3265rm -f conftest.err conftest.$ac_ext
212380e3 3266
7083c021
AC
3267 # OK, works on sane cases. Now check whether nonexistent headers
3268 # can be detected and how.
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3270/* end confdefs.h. */
7083c021 3271#include <ac_nonexistent.h>
212380e3 3272_ACEOF
7083c021
AC
3273if ac_fn_c_try_cpp "$LINENO"; then :
3274 # Broken: success on invalid input.
3275continue
212380e3 3276else
7083c021
AC
3277 # Passes both tests.
3278ac_preproc_ok=:
3279break
212380e3 3280fi
7083c021 3281rm -f conftest.err conftest.$ac_ext
212380e3
AC
3282
3283done
7083c021
AC
3284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3285rm -f conftest.err conftest.$ac_ext
3286if $ac_preproc_ok; then :
212380e3 3287
7083c021
AC
3288else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291as_fn_error "C preprocessor \"$CPP\" fails sanity check
3292See \`config.log' for more details." "$LINENO" 5; }
3293fi
212380e3 3294
7083c021
AC
3295ac_ext=c
3296ac_cpp='$CPP $CPPFLAGS'
3297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3
AC
3300
3301
7083c021
AC
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3303$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3304if test "${ac_cv_path_GREP+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
212380e3 3306else
7083c021
AC
3307 if test -z "$GREP"; then
3308 ac_path_GREP_found=false
3309 # Loop through the user's path and test for each of PROGNAME-LIST
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3312do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_prog in grep ggrep; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3318 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3319# Check for GNU ac_path_GREP and select it if it is found.
3320 # Check for GNU $ac_path_GREP
3321case `"$ac_path_GREP" --version 2>&1` in
3322*GNU*)
3323 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3324*)
3325 ac_count=0
3326 $as_echo_n 0123456789 >"conftest.in"
3327 while :
3328 do
3329 cat "conftest.in" "conftest.in" >"conftest.tmp"
3330 mv "conftest.tmp" "conftest.in"
3331 cp "conftest.in" "conftest.nl"
3332 $as_echo 'GREP' >> "conftest.nl"
3333 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335 as_fn_arith $ac_count + 1 && ac_count=$as_val
3336 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3337 # Best one so far, save it but keep looking for a better one
3338 ac_cv_path_GREP="$ac_path_GREP"
3339 ac_path_GREP_max=$ac_count
3340 fi
3341 # 10*(2^10) chars as input seems more than enough
3342 test $ac_count -gt 10 && break
3343 done
3344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3345esac
7083c021
AC
3346
3347 $ac_path_GREP_found && break 3
3348 done
3349 done
3350 done
3351IFS=$as_save_IFS
3352 if test -z "$ac_cv_path_GREP"; then
3353 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3354 fi
212380e3 3355else
7083c021
AC
3356 ac_cv_path_GREP=$GREP
3357fi
212380e3 3358
212380e3 3359fi
7083c021
AC
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3361$as_echo "$ac_cv_path_GREP" >&6; }
3362 GREP="$ac_cv_path_GREP"
631ef239 3363
212380e3 3364
7083c021
AC
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3366$as_echo_n "checking for egrep... " >&6; }
3367if test "${ac_cv_path_EGREP+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369else
3370 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3371 then ac_cv_path_EGREP="$GREP -E"
3372 else
3373 if test -z "$EGREP"; then
3374 ac_path_EGREP_found=false
3375 # Loop through the user's path and test for each of PROGNAME-LIST
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3378do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 for ac_prog in egrep; do
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3384 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3385# Check for GNU ac_path_EGREP and select it if it is found.
3386 # Check for GNU $ac_path_EGREP
3387case `"$ac_path_EGREP" --version 2>&1` in
3388*GNU*)
3389 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3390*)
3391 ac_count=0
3392 $as_echo_n 0123456789 >"conftest.in"
3393 while :
3394 do
3395 cat "conftest.in" "conftest.in" >"conftest.tmp"
3396 mv "conftest.tmp" "conftest.in"
3397 cp "conftest.in" "conftest.nl"
3398 $as_echo 'EGREP' >> "conftest.nl"
3399 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3401 as_fn_arith $ac_count + 1 && ac_count=$as_val
3402 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3403 # Best one so far, save it but keep looking for a better one
3404 ac_cv_path_EGREP="$ac_path_EGREP"
3405 ac_path_EGREP_max=$ac_count
3406 fi
3407 # 10*(2^10) chars as input seems more than enough
3408 test $ac_count -gt 10 && break
3409 done
3410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3411esac
212380e3 3412
7083c021
AC
3413 $ac_path_EGREP_found && break 3
3414 done
3415 done
3416 done
3417IFS=$as_save_IFS
3418 if test -z "$ac_cv_path_EGREP"; then
3419 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3420 fi
212380e3 3421else
7083c021 3422 ac_cv_path_EGREP=$EGREP
212380e3 3423fi
212380e3 3424
7083c021 3425 fi
212380e3 3426fi
7083c021
AC
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3428$as_echo "$ac_cv_path_EGREP" >&6; }
3429 EGREP="$ac_cv_path_EGREP"
212380e3
AC
3430
3431
7083c021
AC
3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3433$as_echo_n "checking for ANSI C header files... " >&6; }
3434if test "${ac_cv_header_stdc+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
212380e3 3436else
7083c021 3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3438/* end confdefs.h. */
7083c021
AC
3439#include <stdlib.h>
3440#include <stdarg.h>
3441#include <string.h>
3442#include <float.h>
212380e3
AC
3443
3444int
3445main ()
3446{
212380e3
AC
3447
3448 ;
3449 return 0;
3450}
3451_ACEOF
7083c021
AC
3452if ac_fn_c_try_compile "$LINENO"; then :
3453 ac_cv_header_stdc=yes
212380e3 3454else
7083c021 3455 ac_cv_header_stdc=no
212380e3 3456fi
631ef239 3457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3458
7083c021
AC
3459if test $ac_cv_header_stdc = yes; then
3460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462/* end confdefs.h. */
3463#include <string.h>
212380e3 3464
7083c021
AC
3465_ACEOF
3466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3467 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3468
212380e3 3469else
7083c021
AC
3470 ac_cv_header_stdc=no
3471fi
3472rm -f conftest*
212380e3 3473
7083c021 3474fi
212380e3 3475
7083c021
AC
3476if test $ac_cv_header_stdc = yes; then
3477 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3479/* end confdefs.h. */
7083c021 3480#include <stdlib.h>
212380e3 3481
212380e3 3482_ACEOF
7083c021
AC
3483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3484 $EGREP "free" >/dev/null 2>&1; then :
3485
212380e3 3486else
7083c021
AC
3487 ac_cv_header_stdc=no
3488fi
3489rm -f conftest*
212380e3 3490
212380e3 3491fi
631ef239 3492
7083c021
AC
3493if test $ac_cv_header_stdc = yes; then
3494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3495 if test "$cross_compiling" = yes; then :
3496 :
212380e3 3497else
7083c021 3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3499/* end confdefs.h. */
7083c021
AC
3500#include <ctype.h>
3501#include <stdlib.h>
3502#if ((' ' & 0x0FF) == 0x020)
3503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3505#else
3506# define ISLOWER(c) \
3507 (('a' <= (c) && (c) <= 'i') \
3508 || ('j' <= (c) && (c) <= 'r') \
3509 || ('s' <= (c) && (c) <= 'z'))
3510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3511#endif
3512
3513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
3514int
3515main ()
3516{
7083c021
AC
3517 int i;
3518 for (i = 0; i < 256; i++)
3519 if (XOR (islower (i), ISLOWER (i))
3520 || toupper (i) != TOUPPER (i))
3521 return 2;
212380e3
AC
3522 return 0;
3523}
3524_ACEOF
7083c021
AC
3525if ac_fn_c_try_run "$LINENO"; then :
3526
3527else
3528 ac_cv_header_stdc=no
212380e3 3529fi
7083c021
AC
3530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3531 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3532fi
212380e3 3533
7083c021
AC
3534fi
3535fi
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3537$as_echo "$ac_cv_header_stdc" >&6; }
3538if test $ac_cv_header_stdc = yes; then
3539
3540$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3541
212380e3 3542fi
631ef239 3543
7083c021
AC
3544# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3546 inttypes.h stdint.h unistd.h
3547do :
3548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3549ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3550"
3551eval as_val=\$$as_ac_Header
3552 if test "x$as_val" = x""yes; then :
3553 cat >>confdefs.h <<_ACEOF
3554#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3555_ACEOF
631ef239 3556
7083c021 3557fi
631ef239 3558
7083c021
AC
3559done
3560
3561
3562
3563 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3564if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3565 MINIX=yes
212380e3 3566else
7083c021
AC
3567 MINIX=
3568fi
3569
3570
3571 if test "$MINIX" = yes; then
3572
3573$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3574
212380e3 3575
7083c021 3576$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
3577
3578
7083c021 3579$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3580
7083c021 3581 fi
212380e3 3582
212380e3 3583
7083c021
AC
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3585$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3586if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
212380e3 3588else
7083c021 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3590/* end confdefs.h. */
7083c021
AC
3591
3592# define __EXTENSIONS__ 1
3593 $ac_includes_default
212380e3
AC
3594int
3595main ()
3596{
7083c021 3597
212380e3
AC
3598 ;
3599 return 0;
3600}
3601_ACEOF
7083c021
AC
3602if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_cv_safe_to_define___extensions__=yes
212380e3 3604else
7083c021 3605 ac_cv_safe_to_define___extensions__=no
212380e3 3606fi
631ef239 3607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3608fi
7083c021
AC
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3610$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3611 test $ac_cv_safe_to_define___extensions__ = yes &&
3612 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3613
7083c021 3614 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3615
7083c021
AC
3616 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3617
3618 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3619
3620 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3621
7083c021
AC
3622
3623
3624
3625OLD_CFLAGS="$CFLAGS"
3626ac_ext=c
3627ac_cpp='$CPP $CPPFLAGS'
3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631if test -n "$ac_tool_prefix"; then
3632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3633set dummy ${ac_tool_prefix}gcc; ac_word=$2
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635$as_echo_n "checking for $ac_word... " >&6; }
3636if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
212380e3 3638else
7083c021
AC
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3641else
7083c021
AC
3642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653done
3654 done
3655IFS=$as_save_IFS
212380e3 3656
212380e3 3657fi
212380e3 3658fi
7083c021
AC
3659CC=$ac_cv_prog_CC
3660if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662$as_echo "$CC" >&6; }
212380e3 3663else
7083c021
AC
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665$as_echo "no" >&6; }
3666fi
212380e3 3667
212380e3
AC
3668
3669fi
7083c021
AC
3670if test -z "$ac_cv_prog_CC"; then
3671 ac_ct_CC=$CC
3672 # Extract the first word of "gcc", so it can be a program name with args.
3673set dummy gcc; ac_word=$2
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675$as_echo_n "checking for $ac_word... " >&6; }
3676if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3677 $as_echo_n "(cached) " >&6
212380e3 3678else
7083c021
AC
3679 if test -n "$ac_ct_CC"; then
3680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3681else
7083c021
AC
3682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683for as_dir in $PATH
3684do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3689 ac_cv_prog_ac_ct_CC="gcc"
3690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 break 2
3692 fi
3693done
3694 done
3695IFS=$as_save_IFS
212380e3 3696
212380e3 3697fi
212380e3 3698fi
7083c021
AC
3699ac_ct_CC=$ac_cv_prog_ac_ct_CC
3700if test -n "$ac_ct_CC"; then
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3702$as_echo "$ac_ct_CC" >&6; }
212380e3 3703else
7083c021
AC
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705$as_echo "no" >&6; }
3706fi
212380e3 3707
7083c021
AC
3708 if test "x$ac_ct_CC" = x; then
3709 CC=""
3710 else
3711 case $cross_compiling:$ac_tool_warned in
3712yes:)
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3715ac_tool_warned=yes ;;
631ef239 3716esac
7083c021
AC
3717 CC=$ac_ct_CC
3718 fi
212380e3 3719else
7083c021 3720 CC="$ac_cv_prog_CC"
212380e3 3721fi
631ef239 3722
7083c021
AC
3723if test -z "$CC"; then
3724 if test -n "$ac_tool_prefix"; then
3725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3726set dummy ${ac_tool_prefix}cc; ac_word=$2
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728$as_echo_n "checking for $ac_word... " >&6; }
3729if test "${ac_cv_prog_CC+set}" = set; then :
3730 $as_echo_n "(cached) " >&6
212380e3 3731else
7083c021
AC
3732 if test -n "$CC"; then
3733 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3734else
7083c021
AC
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742 ac_cv_prog_CC="${ac_tool_prefix}cc"
3743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747 done
3748IFS=$as_save_IFS
212380e3 3749
212380e3 3750fi
7083c021
AC
3751fi
3752CC=$ac_cv_prog_CC
3753if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755$as_echo "$CC" >&6; }
212380e3 3756else
7083c021
AC
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759fi
3760
212380e3 3761
7083c021 3762 fi
212380e3 3763fi
7083c021
AC
3764if test -z "$CC"; then
3765 # Extract the first word of "cc", so it can be a program name with args.
3766set dummy cc; ac_word=$2
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3768$as_echo_n "checking for $ac_word... " >&6; }
3769if test "${ac_cv_prog_CC+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3771else
3772 if test -n "$CC"; then
3773 ac_cv_prog_CC="$CC" # Let the user override the test.
3774else
3775 ac_prog_rejected=no
3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777for as_dir in $PATH
3778do
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3784 ac_prog_rejected=yes
3785 continue
3786 fi
3787 ac_cv_prog_CC="cc"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
3790 fi
3791done
3792 done
3793IFS=$as_save_IFS
631ef239 3794
7083c021
AC
3795if test $ac_prog_rejected = yes; then
3796 # We found a bogon in the path, so make sure we never use it.
3797 set dummy $ac_cv_prog_CC
3798 shift
3799 if test $# != 0; then
3800 # We chose a different compiler from the bogus one.
3801 # However, it has the same basename, so the bogon will be chosen
3802 # first if we set CC to just the basename; use the full file name.
3803 shift
3804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3805 fi
3806fi
3807fi
3808fi
3809CC=$ac_cv_prog_CC
3810if test -n "$CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812$as_echo "$CC" >&6; }
3813else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
212380e3 3816fi
631ef239 3817
212380e3 3818
7083c021
AC
3819fi
3820if test -z "$CC"; then
3821 if test -n "$ac_tool_prefix"; then
3822 for ac_prog in cl.exe
3823 do
3824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3825set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827$as_echo_n "checking for $ac_word... " >&6; }
3828if test "${ac_cv_prog_CC+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
212380e3 3830else
7083c021
AC
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845done
3846 done
3847IFS=$as_save_IFS
212380e3 3848
212380e3 3849fi
7083c021
AC
3850fi
3851CC=$ac_cv_prog_CC
3852if test -n "$CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854$as_echo "$CC" >&6; }
212380e3 3855else
7083c021
AC
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857$as_echo "no" >&6; }
3858fi
212380e3 3859
212380e3 3860
7083c021
AC
3861 test -n "$CC" && break
3862 done
3863fi
3864if test -z "$CC"; then
3865 ac_ct_CC=$CC
3866 for ac_prog in cl.exe
3867do
3868 # Extract the first word of "$ac_prog", so it can be a program name with args.
3869set dummy $ac_prog; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
3872if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3873 $as_echo_n "(cached) " >&6
212380e3 3874else
7083c021
AC
3875 if test -n "$ac_ct_CC"; then
3876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877else
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3885 ac_cv_prog_ac_ct_CC="$ac_prog"
3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887 break 2
3888 fi
3889done
3890 done
3891IFS=$as_save_IFS
212380e3 3892
212380e3
AC
3893fi
3894fi
7083c021
AC
3895ac_ct_CC=$ac_cv_prog_ac_ct_CC
3896if test -n "$ac_ct_CC"; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3898$as_echo "$ac_ct_CC" >&6; }
3899else
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
212380e3 3902fi
631ef239
AC
3903
3904
7083c021
AC
3905 test -n "$ac_ct_CC" && break
3906done
631ef239 3907
7083c021
AC
3908 if test "x$ac_ct_CC" = x; then
3909 CC=""
3910 else
3911 case $cross_compiling:$ac_tool_warned in
3912yes:)
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3915ac_tool_warned=yes ;;
3916esac
3917 CC=$ac_ct_CC
3918 fi
3919fi
212380e3 3920
7083c021 3921fi
212380e3 3922
7083c021
AC
3923
3924test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926as_fn_error "no acceptable C compiler found in \$PATH
3927See \`config.log' for more details." "$LINENO" 5; }
3928
3929# Provide some information about the compiler.
3930$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3931set X $ac_compile
3932ac_compiler=$2
3933for ac_option in --version -v -V -qversion; do
3934 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
3935case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
7083c021
AC
3939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940$as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 3942 ac_status=$?
7083c021
AC
3943 if test -s conftest.err; then
3944 sed '10a\
3945... rest of stderr output deleted ...
3946 10q' conftest.err >conftest.er1
3947 cat conftest.er1 >&5
497c263d 3948 rm -f conftest.er1 conftest.err
7083c021
AC
3949 fi
3950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }
3952done
212380e3 3953
7083c021
AC
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3955$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3956if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
212380e3 3958else
7083c021 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3960/* end confdefs.h. */
7083c021 3961
212380e3
AC
3962int
3963main ()
3964{
7083c021
AC
3965#ifndef __GNUC__
3966 choke me
3967#endif
212380e3
AC
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
7083c021
AC
3973if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_compiler_gnu=yes
3975else
3976 ac_compiler_gnu=no
3977fi
3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979ac_cv_c_compiler_gnu=$ac_compiler_gnu
3980
3981fi
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3983$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3984if test $ac_compiler_gnu = yes; then
3985 GCC=yes
3986else
3987 GCC=
3988fi
3989ac_test_CFLAGS=${CFLAGS+set}
3990ac_save_CFLAGS=$CFLAGS
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3992$as_echo_n "checking whether $CC accepts -g... " >&6; }
3993if test "${ac_cv_prog_cc_g+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995else
3996 ac_save_c_werror_flag=$ac_c_werror_flag
3997 ac_c_werror_flag=yes
3998 ac_cv_prog_cc_g=no
3999 CFLAGS="-g"
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4001/* end confdefs.h. */
7083c021 4002
212380e3
AC
4003int
4004main ()
4005{
212380e3
AC
4006
4007 ;
4008 return 0;
4009}
4010_ACEOF
7083c021
AC
4011if ac_fn_c_try_compile "$LINENO"; then :
4012 ac_cv_prog_cc_g=yes
212380e3 4013else
7083c021
AC
4014 CFLAGS=""
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4016/* end confdefs.h. */
7083c021 4017
212380e3
AC
4018int
4019main ()
4020{
212380e3
AC
4021
4022 ;
4023 return 0;
4024}
4025_ACEOF
7083c021
AC
4026if ac_fn_c_try_compile "$LINENO"; then :
4027
4028else
4029 ac_c_werror_flag=$ac_save_c_werror_flag
4030 CFLAGS="-g"
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4032/* end confdefs.h. */
7083c021 4033
212380e3
AC
4034int
4035main ()
4036{
212380e3
AC
4037
4038 ;
4039 return 0;
4040}
4041_ACEOF
7083c021
AC
4042if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_cv_prog_cc_g=yes
212380e3 4044fi
631ef239 4045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4046fi
631ef239 4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4048fi
631ef239 4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
4050 ac_c_werror_flag=$ac_save_c_werror_flag
4051fi
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4053$as_echo "$ac_cv_prog_cc_g" >&6; }
4054if test "$ac_test_CFLAGS" = set; then
4055 CFLAGS=$ac_save_CFLAGS
4056elif test $ac_cv_prog_cc_g = yes; then
4057 if test "$GCC" = yes; then
4058 CFLAGS="-g -O2"
4059 else
4060 CFLAGS="-g"
4061 fi
4062else
4063 if test "$GCC" = yes; then
4064 CFLAGS="-O2"
4065 else
4066 CFLAGS=
4067 fi
4068fi
4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4070$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4071if test "${ac_cv_prog_cc_c89+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073else
4074 ac_cv_prog_cc_c89=no
4075ac_save_CC=$CC
4076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4077/* end confdefs.h. */
7083c021
AC
4078#include <stdarg.h>
4079#include <stdio.h>
4080#include <sys/types.h>
4081#include <sys/stat.h>
4082/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083struct buf { int x; };
4084FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085static char *e (p, i)
4086 char **p;
4087 int i;
4088{
4089 return p[i];
4090}
4091static char *f (char * (*g) (char **, int), char **p, ...)
4092{
4093 char *s;
4094 va_list v;
4095 va_start (v,p);
4096 s = g (p, va_arg (v,int));
4097 va_end (v);
4098 return s;
4099}
4100
4101/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4109
4110/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4112#define FOO(x) 'x'
4113int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4114
4115int test (int i, double x);
4116struct s1 {int (*f) (int a);};
4117struct s2 {int (*f) (double a);};
4118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4119int argc;
4120char **argv;
212380e3
AC
4121int
4122main ()
4123{
7083c021 4124return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
4125 ;
4126 return 0;
4127}
4128_ACEOF
7083c021
AC
4129for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4131do
4132 CC="$ac_save_CC $ac_arg"
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_prog_cc_c89=$ac_arg
4135fi
4136rm -f core conftest.err conftest.$ac_objext
4137 test "x$ac_cv_prog_cc_c89" != "xno" && break
4138done
4139rm -f conftest.$ac_ext
4140CC=$ac_save_CC
4141
4142fi
4143# AC_CACHE_VAL
4144case "x$ac_cv_prog_cc_c89" in
4145 x)
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4147$as_echo "none needed" >&6; } ;;
4148 xno)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4150$as_echo "unsupported" >&6; } ;;
4151 *)
4152 CC="$CC $ac_cv_prog_cc_c89"
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4154$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4155esac
7083c021 4156if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4157
212380e3 4158fi
631ef239 4159
7083c021
AC
4160ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166ac_ext=c
4167ac_cpp='$CPP $CPPFLAGS'
4168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
4172
4173CFLAGS="$OLD_CFLAGS"
4174
4175ac_aux_dir=
4176for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4177 for ac_t in install-sh install.sh shtool; do
4178 if test -f "$ac_dir/$ac_t"; then
4179 ac_aux_dir=$ac_dir
4180 ac_install_sh="$ac_aux_dir/$ac_t -c"
4181 break 2
4182 fi
4183 done
212380e3 4184done
7083c021
AC
4185if test -z "$ac_aux_dir"; then
4186 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4187fi
212380e3 4188
7083c021
AC
4189# These three variables are undocumented and unsupported,
4190# and are intended to be withdrawn in a future Autoconf release.
4191# They can cause serious problems if a builder's source tree is in a directory
4192# whose full name contains unusual characters.
4193ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4194ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4195ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
212380e3 4196
7083c021
AC
4197
4198
4199
4200subdirs="$subdirs libratbox"
4201
4202
4203
4204if test "$ac_cv_c_compiler_gnu" != yes; then
4205
4206SGS=no
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4208$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4209case `$CC -version 2>&1` in
4210*TenDRA*)
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4212$as_echo "yes, TenDRA" >&6; }
4213 IRC_CFLAGS=""
4214 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4215 SGS=yes
4216 TenDRA=yes
4217;;
4218*MIPSpro*)
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4220$as_echo "yes, MIPSpro" >&6; }
4221 MIPSpro=yes
4222 SGS=yes
4223;;
4224*)
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226$as_echo "no" >&6; }
4227 TenDRA=no
4228 MIPSpro=no
4229;;
631ef239 4230esac
7083c021
AC
4231
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4233$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4234case `$CC -V 2>&1` in
4235*Sun*WorkShop* | *Forte*Developer*)
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4237$as_echo "Sun Workshop/Forte" >&6; }
4238 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4239 SunWorkShop=yes
4240 SGS=yes
4241;;
4242*Tru64*)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4244$as_echo "Tru64 cc" >&6; }
4245 IRC_CFLAGS="-O2"
4246 CPPFLAGS="-I/usr/local/include"
4247 Tru=yes
4248;;
4249*HP*ANSI*)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4251$as_echo "HPUX cc" >&6; }
4252 HPUX=yes
4253 IRC_CFLAGS="+e"
4254;;
4255*)
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258;;
631ef239 4259esac
212380e3 4260
212380e3 4261fi
631ef239 4262
7083c021
AC
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4264$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4265OSNAME=`uname -s`
4266case "$OSNAME" in
4267 HP-UX*)
631ef239 4268
7083c021
AC
4269 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4271$as_echo "assuming old HPUX with its own cc" >&6; }
4272 IRC_CFLAGS="$IRC_CFLAGS +e"
4273 HPUX=yes
4274 else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4276$as_echo "already using newer HPUX" >&6; }
4277 fi
4278 ;;
4279 SunOS*)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4281$as_echo "SunOS or Solaris" >&6; }
212380e3 4282
7083c021 4283$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4284
7083c021
AC
4285 SUN=yes
4286 ;;
4287 AIX*)
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4289$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4290 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4291 ;;
4292 *)
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295 ;;
631ef239 4296esac
212380e3 4297
7083c021
AC
4298if test "$ac_cv_c_compiler_gnu" = yes; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4300$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4301
4302 case `$CC -v 2>&1 | tail -n 1` in
4303 *Apple*)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305$as_echo "yes" >&6; }
4306 AppleGCC=yes
4307 ;;
4308 *)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
4311 AppleGCC=no
4312 ;;
4313 esac
4314
4315 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4316fi
631ef239 4317
7083c021
AC
4318if test "$ac_cv_prog_cc_g" = yes; then
4319 if test "$Tru" = yes; then
4320 IRC_CFLAGS="$IRC_CFLAGS -g3"
4321 else
4322 IRC_CFLAGS="$IRC_CFLAGS -g"
4323 fi
212380e3 4324fi
212380e3 4325
7083c021
AC
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4327$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4328if test "$SGS" = "yes"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4330$as_echo "yes" >&6; }
212380e3 4331else
7083c021
AC
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
212380e3 4335
7083c021
AC
4336# Extract the first word of "mkdep", so it can be a program name with args.
4337set dummy mkdep; ac_word=$2
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339$as_echo_n "checking for $ac_word... " >&6; }
4340if test "${ac_cv_path_MKDEP+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342else
4343 case $MKDEP in
4344 [\\/]* | ?:[\\/]*)
4345 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4346 ;;
4347 *)
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360 done
4361IFS=$as_save_IFS
212380e3 4362
7083c021 4363 ;;
631ef239 4364esac
7083c021
AC
4365fi
4366MKDEP=$ac_cv_path_MKDEP
4367if test -n "$MKDEP"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4369$as_echo "$MKDEP" >&6; }
212380e3 4370else
7083c021
AC
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
212380e3 4373fi
631ef239 4374
7083c021
AC
4375
4376# Extract the first word of "makedepend", so it can be a program name with args.
4377set dummy makedepend; ac_word=$2
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
4380if test "${ac_cv_path_MAKEDEPEND+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382else
4383 case $MAKEDEPEND in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399done
212380e3 4400 done
7083c021
AC
4401IFS=$as_save_IFS
4402
4403 ;;
4404esac
4405fi
4406MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4407if test -n "$MAKEDEPEND"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4409$as_echo "$MAKEDEPEND" >&6; }
212380e3 4410else
7083c021
AC
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413fi
212380e3 4414
212380e3 4415
212380e3 4416
7083c021
AC
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4418$as_echo_n "checking how to generate dependency info... " >&6; }
4419
4420STDOUT="> .depend"
4421
4422if test "$ac_cv_c_compiler_gnu" = yes; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4424$as_echo "gcc -MM" >&6; }
4425 MKDEP="$CC -MM"
4426elif test ! -z "$MKDEP"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4428$as_echo "mkdep" >&6; }
4429
4430 if test -z "$Tru"; then
4431 STDOUT=""
4432 else
4433 STDOUT=" 2> /dev/null"
4434 fi
4435elif test "$SunWorkShop" = yes; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4437$as_echo "$CC -xM" >&6; }
4438 MKDEP="$CC -xM"
4439 STDOUT="> .depend 2> /dev/null"
4440elif test ! -z "$MAKEDEPEND"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4442$as_echo "makedepend" >&6; }
4443 MKDEP="$MAKEDEPEND -f-"
212380e3 4444else
7083c021
AC
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4446$as_echo "nothing suitable.. forget it!" >&6; }
4447 MKDEP=":"
212380e3 4448fi
631ef239 4449
7083c021
AC
4450
4451
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4454$as_echo_n "checking for /dev/null... " >&6; }
4455if test -c /dev/null ; then
4456
4457$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460$as_echo "yes" >&6; }
212380e3 4461else
212380e3 4462
7083c021
AC
4463$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4466$as_echo "no - using devnull.log" >&6; }
212380e3 4467fi
631ef239 4468
7083c021
AC
4469if test ! -z "$CFLAGS"; then
4470 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4471fi
631ef239 4472
7083c021
AC
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4474$as_echo_n "checking for library containing strerror... " >&6; }
4475if test "${ac_cv_search_strerror+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477else
4478 ac_func_search_save_LIBS=$LIBS
4479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4480/* end confdefs.h. */
7083c021
AC
4481
4482/* Override any GCC internal prototype to avoid an error.
4483 Use char because int might match the return type of a GCC
4484 builtin and then its argument prototype would still apply. */
4485#ifdef __cplusplus
4486extern "C"
4487#endif
4488char strerror ();
212380e3
AC
4489int
4490main ()
4491{
7083c021 4492return strerror ();
212380e3
AC
4493 ;
4494 return 0;
4495}
4496_ACEOF
7083c021
AC
4497for ac_lib in '' cposix; do
4498 if test -z "$ac_lib"; then
4499 ac_res="none required"
4500 else
4501 ac_res=-l$ac_lib
4502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4503 fi
4504 if ac_fn_c_try_link "$LINENO"; then :
4505 ac_cv_search_strerror=$ac_res
4506fi
4507rm -f core conftest.err conftest.$ac_objext \
4508 conftest$ac_exeext
4509 if test "${ac_cv_search_strerror+set}" = set; then :
4510 break
4511fi
4512done
4513if test "${ac_cv_search_strerror+set}" = set; then :
4514
212380e3 4515else
7083c021
AC
4516 ac_cv_search_strerror=no
4517fi
4518rm conftest.$ac_ext
4519LIBS=$ac_func_search_save_LIBS
4520fi
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4522$as_echo "$ac_cv_search_strerror" >&6; }
4523ac_res=$ac_cv_search_strerror
4524if test "$ac_res" != no; then :
4525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4526
212380e3 4527fi
631ef239 4528
7083c021
AC
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4530$as_echo_n "checking for inline... " >&6; }
4531if test "${ac_cv_c_inline+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
4533else
4534 ac_cv_c_inline=no
4535for ac_kw in inline __inline__ __inline; do
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538#ifndef __cplusplus
4539typedef int foo_t;
4540static $ac_kw foo_t static_foo () {return 0; }
4541$ac_kw foo_t foo () {return 0; }
4542#endif
4543
4544_ACEOF
4545if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_c_inline=$ac_kw
4547fi
631ef239 4548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 4549 test "$ac_cv_c_inline" != no && break
212380e3 4550done
7083c021
AC
4551
4552fi
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4554$as_echo "$ac_cv_c_inline" >&6; }
4555
4556case $ac_cv_c_inline in
4557 inline | yes) ;;
4558 *)
4559 case $ac_cv_c_inline in
4560 no) ac_val=;;
4561 *) ac_val=$ac_cv_c_inline;;
4562 esac
4563 cat >>confdefs.h <<_ACEOF
4564#ifndef __cplusplus
4565#define inline $ac_val
4566#endif
4567_ACEOF
4568 ;;
212380e3 4569esac
7083c021
AC
4570
4571if test $ac_cv_c_compiler_gnu = yes; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4573$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4574if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
212380e3 4576else
7083c021
AC
4577 ac_pattern="Autoconf.*'x'"
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580#include <sgtty.h>
4581Autoconf TIOCGETP
212380e3 4582_ACEOF
7083c021
AC
4583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4584 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4585 ac_cv_prog_gcc_traditional=yes
4586else
4587 ac_cv_prog_gcc_traditional=no
4588fi
4589rm -f conftest*
4590
4591
4592 if test $ac_cv_prog_gcc_traditional = no; then
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4594/* end confdefs.h. */
7083c021
AC
4595#include <termio.h>
4596Autoconf TCGETA
4597_ACEOF
4598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4600 ac_cv_prog_gcc_traditional=yes
4601fi
4602rm -f conftest*
212380e3 4603
7083c021
AC
4604 fi
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4607$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4608 if test $ac_cv_prog_gcc_traditional = yes; then
4609 CC="$CC -traditional"
4610 fi
4611fi
212380e3 4612
7083c021
AC
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4614$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4615set x ${MAKE-make}
4616ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4617if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4618 $as_echo_n "(cached) " >&6
4619else
4620 cat >conftest.make <<\_ACEOF
4621SHELL = /bin/sh
4622all:
4623 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4624_ACEOF
7083c021
AC
4625# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4626case `${MAKE-make} -f conftest.make 2>/dev/null` in
4627 *@@@%%%=?*=@@@%%%*)
4628 eval ac_cv_prog_make_${ac_make}_set=yes;;
4629 *)
4630 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4631esac
7083c021
AC
4632rm -f conftest.make
4633fi
4634if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4636$as_echo "yes" >&6; }
4637 SET_MAKE=
4638else
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640$as_echo "no" >&6; }
4641 SET_MAKE="MAKE=${MAKE-make}"
4642fi
4643
4644# Find a good install program. We prefer a C program (faster),
4645# so one script is as good as another. But avoid the broken or
4646# incompatible versions:
4647# SysV /etc/install, /usr/sbin/install
4648# SunOS /usr/etc/install
4649# IRIX /sbin/install
4650# AIX /bin/install
4651# AmigaOS /C/install, which installs bootblocks on floppy discs
4652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4655# OS/2's system install, which has a completely different semantic
4656# ./install, which can be erroneously created by make from ./install.sh.
4657# Reject install programs that cannot install multiple files.
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4659$as_echo_n "checking for a BSD-compatible install... " >&6; }
4660if test -z "$INSTALL"; then
4661if test "${ac_cv_path_install+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663else
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 # Account for people who put trailing slashes in PATH elements.
4670case $as_dir/ in #((
4671 ./ | .// | /[cC]/* | \
4672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4674 /usr/ucb/* ) ;;
4675 *)
4676 # OSF1 and SCO ODT 3.0 have their own names for install.
4677 # Don't use installbsd from OSF since it installs stuff as root
4678 # by default.
4679 for ac_prog in ginstall scoinst install; do
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4682 if test $ac_prog = install &&
4683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4684 # AIX install. It has an incompatible calling convention.
4685 :
4686 elif test $ac_prog = install &&
4687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4688 # program-specific install script used by HP pwplus--don't use.
4689 :
4690 else
4691 rm -rf conftest.one conftest.two conftest.dir
4692 echo one > conftest.one
4693 echo two > conftest.two
4694 mkdir conftest.dir
4695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4696 test -s conftest.one && test -s conftest.two &&
4697 test -s conftest.dir/conftest.one &&
4698 test -s conftest.dir/conftest.two
4699 then
4700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4701 break 3
4702 fi
4703 fi
4704 fi
4705 done
4706 done
4707 ;;
631ef239 4708esac
7083c021
AC
4709
4710 done
4711IFS=$as_save_IFS
4712
4713rm -rf conftest.one conftest.two conftest.dir
4714
4715fi
4716 if test "${ac_cv_path_install+set}" = set; then
4717 INSTALL=$ac_cv_path_install
4718 else
4719 # As a last resort, use the slow shell script. Don't cache a
4720 # value for INSTALL within a source directory, because that will
4721 # break other packages using the cache if that directory is
4722 # removed, or if the value is a relative name.
4723 INSTALL=$ac_install_sh
4724 fi
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4727$as_echo "$INSTALL" >&6; }
4728
4729# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4730# It thinks the first close brace ends the variable substitution.
4731test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4732
4733test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4734
4735test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4736
4737# Extract the first word of "rm", so it can be a program name with args.
4738set dummy rm; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if test "${ac_cv_path_RM+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
212380e3 4743else
7083c021
AC
4744 case $RM in
4745 [\\/]* | ?:[\\/]*)
4746 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4747 ;;
4748 *)
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761 done
4762IFS=$as_save_IFS
212380e3 4763
7083c021
AC
4764 ;;
4765esac
212380e3 4766fi
7083c021
AC
4767RM=$ac_cv_path_RM
4768if test -n "$RM"; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4770$as_echo "$RM" >&6; }
4771else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
212380e3 4774fi
631ef239
AC
4775
4776
7083c021
AC
4777# Extract the first word of "cp", so it can be a program name with args.
4778set dummy cp; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if test "${ac_cv_path_CP+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783else
4784 case $CP in
4785 [\\/]* | ?:[\\/]*)
4786 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4787 ;;
4788 *)
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800done
4801 done
4802IFS=$as_save_IFS
631ef239 4803
7083c021
AC
4804 ;;
4805esac
4806fi
4807CP=$ac_cv_path_CP
4808if test -n "$CP"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4810$as_echo "$CP" >&6; }
4811else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
4814fi
212380e3
AC
4815
4816
7083c021
AC
4817# Extract the first word of "mv", so it can be a program name with args.
4818set dummy mv; ac_word=$2
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820$as_echo_n "checking for $ac_word... " >&6; }
4821if test "${ac_cv_path_MV+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
212380e3 4823else
7083c021
AC
4824 case $MV in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841 done
4842IFS=$as_save_IFS
4843
4844 ;;
631ef239 4845esac
7083c021
AC
4846fi
4847MV=$ac_cv_path_MV
4848if test -n "$MV"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4850$as_echo "$MV" >&6; }
212380e3 4851else
7083c021
AC
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
212380e3 4854fi
631ef239 4855
212380e3 4856
7083c021
AC
4857# Extract the first word of "ln", so it can be a program name with args.
4858set dummy ln; ac_word=$2
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860$as_echo_n "checking for $ac_word... " >&6; }
4861if test "${ac_cv_path_LN+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
212380e3 4863else
7083c021
AC
4864 case $LN in
4865 [\\/]* | ?:[\\/]*)
4866 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4867 ;;
4868 *)
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881 done
4882IFS=$as_save_IFS
212380e3 4883
7083c021 4884 ;;
631ef239 4885esac
7083c021
AC
4886fi
4887LN=$ac_cv_path_LN
4888if test -n "$LN"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4890$as_echo "$LN" >&6; }
212380e3 4891else
7083c021
AC
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893$as_echo "no" >&6; }
212380e3 4894fi
631ef239 4895
7083c021
AC
4896
4897# Extract the first word of "sed", so it can be a program name with args.
4898set dummy sed; ac_word=$2
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4900$as_echo_n "checking for $ac_word... " >&6; }
4901if test "${ac_cv_path_SED+set}" = set; then :
4902 $as_echo_n "(cached) " >&6
4903else
4904 case $SED in
4905 [\\/]* | ?:[\\/]*)
4906 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4907 ;;
4908 *)
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
212380e3 4921 done
7083c021
AC
4922IFS=$as_save_IFS
4923
4924 ;;
4925esac
4926fi
4927SED=$ac_cv_path_SED
4928if test -n "$SED"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4930$as_echo "$SED" >&6; }
212380e3 4931else
7083c021
AC
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933$as_echo "no" >&6; }
4934fi
212380e3 4935
212380e3 4936
7083c021
AC
4937# Extract the first word of "ar", so it can be a program name with args.
4938set dummy ar; ac_word=$2
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4940$as_echo_n "checking for $ac_word... " >&6; }
4941if test "${ac_cv_path_AR+set}" = set; then :
4942 $as_echo_n "(cached) " >&6
4943else
4944 case $AR in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4947 ;;
4948 *)
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960done
4961 done
4962IFS=$as_save_IFS
212380e3 4963
7083c021 4964 ;;
631ef239 4965esac
7083c021
AC
4966fi
4967AR=$ac_cv_path_AR
4968if test -n "$AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4970$as_echo "$AR" >&6; }
212380e3 4971else
7083c021
AC
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973$as_echo "no" >&6; }
212380e3 4974fi
631ef239 4975
7083c021
AC
4976
4977# Extract the first word of "ld", so it can be a program name with args.
4978set dummy ld; ac_word=$2
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
4981if test "${ac_cv_path_LD+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
212380e3 4983else
7083c021
AC
4984 case $LD in
4985 [\\/]* | ?:[\\/]*)
4986 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4987 ;;
4988 *)
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001 done
5002IFS=$as_save_IFS
212380e3 5003
7083c021
AC
5004 ;;
5005esac
212380e3 5006fi
7083c021
AC
5007LD=$ac_cv_path_LD
5008if test -n "$LD"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5010$as_echo "$LD" >&6; }
5011else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
212380e3 5014fi
631ef239 5015
212380e3 5016
7083c021
AC
5017# Extract the first word of "ranlib", so it can be a program name with args.
5018set dummy ranlib; ac_word=$2
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5020$as_echo_n "checking for $ac_word... " >&6; }
5021if test "${ac_cv_path_RANLIB+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
212380e3 5023else
7083c021
AC
5024 case $RANLIB in
5025 [\\/]* | ?:[\\/]*)
5026 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5027 ;;
5028 *)
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041 done
5042IFS=$as_save_IFS
212380e3 5043
7083c021
AC
5044 ;;
5045esac
5046fi
5047RANLIB=$ac_cv_path_RANLIB
5048if test -n "$RANLIB"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5050$as_echo "$RANLIB" >&6; }
5051else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
212380e3 5054fi
631ef239 5055
7083c021
AC
5056
5057# Extract the first word of "touch", so it can be a program name with args.
5058set dummy touch; ac_word=$2
5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060$as_echo_n "checking for $ac_word... " >&6; }
5061if test "${ac_cv_path_TOUCH+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5063else
5064 case $TOUCH in
5065 [\\/]* | ?:[\\/]*)
5066 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5067 ;;
5068 *)
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070for as_dir in $PATH
5071do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
212380e3 5080done
7083c021
AC
5081 done
5082IFS=$as_save_IFS
5083
5084 ;;
212380e3 5085esac
7083c021
AC
5086fi
5087TOUCH=$ac_cv_path_TOUCH
5088if test -n "$TOUCH"; then
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5090$as_echo "$TOUCH" >&6; }
212380e3 5091else
7083c021
AC
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
5094fi
212380e3 5095
212380e3 5096
7083c021
AC
5097
5098for ac_prog in 'bison -y' byacc
5099do
5100 # Extract the first word of "$ac_prog", so it can be a program name with args.
5101set dummy $ac_prog; ac_word=$2
5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103$as_echo_n "checking for $ac_word... " >&6; }
5104if test "${ac_cv_prog_YACC+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
212380e3 5106else
7083c021
AC
5107 if test -n "$YACC"; then
5108 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5109else
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_YACC="$ac_prog"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122 done
5123IFS=$as_save_IFS
212380e3 5124
212380e3
AC
5125fi
5126fi
7083c021
AC
5127YACC=$ac_cv_prog_YACC
5128if test -n "$YACC"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5130$as_echo "$YACC" >&6; }
5131else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133$as_echo "no" >&6; }
212380e3 5134fi
631ef239
AC
5135
5136
7083c021
AC
5137 test -n "$YACC" && break
5138done
5139test -n "$YACC" || YACC="yacc"
212380e3
AC
5140
5141
7083c021
AC
5142if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
5143 as_fn_error "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5144fi
212380e3 5145
7083c021
AC
5146for ac_prog in flex lex
5147do
5148 # Extract the first word of "$ac_prog", so it can be a program name with args.
5149set dummy $ac_prog; ac_word=$2
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151$as_echo_n "checking for $ac_word... " >&6; }
5152if test "${ac_cv_prog_LEX+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
212380e3 5154else
7083c021
AC
5155 if test -n "$LEX"; then
5156 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5157else
7083c021
AC
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_LEX="$ac_prog"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
631ef239 5169done
7083c021
AC
5170 done
5171IFS=$as_save_IFS
631ef239 5172
7083c021
AC
5173fi
5174fi
5175LEX=$ac_cv_prog_LEX
5176if test -n "$LEX"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5178$as_echo "$LEX" >&6; }
631ef239 5179else
7083c021
AC
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }
631ef239
AC
5182fi
5183
5184
7083c021
AC
5185 test -n "$LEX" && break
5186done
5187test -n "$LEX" || LEX=":"
212380e3 5188
7083c021
AC
5189if test "x$LEX" != "x:"; then
5190 cat >conftest.l <<_ACEOF
5191%%
5192a { ECHO; }
5193b { REJECT; }
5194c { yymore (); }
5195d { yyless (1); }
5196e { yyless (input () != 0); }
5197f { unput (yytext[0]); }
5198. { BEGIN INITIAL; }
5199%%
5200#ifdef YYTEXT_POINTER
5201extern char *yytext;
212380e3 5202#endif
212380e3 5203int
7083c021 5204main (void)
212380e3 5205{
7083c021 5206 return ! yylex () + ! yywrap ();
212380e3
AC
5207}
5208_ACEOF
7083c021 5209{ { ac_try="$LEX conftest.l"
631ef239
AC
5210case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213esac
7083c021
AC
5214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215$as_echo "$ac_try_echo"; } >&5
5216 (eval "$LEX conftest.l") 2>&5
212380e3 5217 ac_status=$?
7083c021
AC
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5221$as_echo_n "checking lex output file root... " >&6; }
5222if test "${ac_cv_prog_lex_root+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
212380e3 5224else
212380e3 5225
7083c021
AC
5226if test -f lex.yy.c; then
5227 ac_cv_prog_lex_root=lex.yy
5228elif test -f lexyy.c; then
5229 ac_cv_prog_lex_root=lexyy
5230else
5231 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5232fi
5233fi
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5235$as_echo "$ac_cv_prog_lex_root" >&6; }
5236LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5237
5238if test -z "${LEXLIB+set}"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5240$as_echo_n "checking lex library... " >&6; }
5241if test "${ac_cv_lib_lex+set}" = set; then :
5242 $as_echo_n "(cached) " >&6
5243else
631ef239 5244
7083c021
AC
5245 ac_save_LIBS=$LIBS
5246 ac_cv_lib_lex='none needed'
5247 for ac_lib in '' -lfl -ll; do
5248 LIBS="$ac_lib $ac_save_LIBS"
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h. */
5251`cat $LEX_OUTPUT_ROOT.c`
5252_ACEOF
5253if ac_fn_c_try_link "$LINENO"; then :
5254 ac_cv_lib_lex=$ac_lib
212380e3 5255fi
7083c021
AC
5256rm -f core conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5258 test "$ac_cv_lib_lex" != 'none needed' && break
5259 done
5260 LIBS=$ac_save_LIBS
631ef239 5261
631ef239 5262fi
7083c021
AC
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5264$as_echo "$ac_cv_lib_lex" >&6; }
5265 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5266fi
5267
5268
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5270$as_echo_n "checking whether yytext is a pointer... " >&6; }
5271if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
631ef239 5273else
7083c021
AC
5274 # POSIX says lex can declare yytext either as a pointer or an array; the
5275# default is implementation-dependent. Figure out which it is, since
5276# not all implementations provide the %pointer and %array declarations.
5277ac_cv_prog_lex_yytext_pointer=no
5278ac_save_LIBS=$LIBS
5279LIBS="$LEXLIB $ac_save_LIBS"
5280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h. */
5282#define YYTEXT_POINTER 1
5283`cat $LEX_OUTPUT_ROOT.c`
5284_ACEOF
5285if ac_fn_c_try_link "$LINENO"; then :
5286 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5287fi
7083c021
AC
5288rm -f core conftest.err conftest.$ac_objext \
5289 conftest$ac_exeext conftest.$ac_ext
5290LIBS=$ac_save_LIBS
5291
212380e3 5292fi
7083c021
AC
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5294$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5295if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5296
7083c021
AC
5297$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5298
5299fi
5300rm -f conftest.l $LEX_OUTPUT_ROOT.c
5301
5302fi
5303
5304if test "$LEX" = ":"; then
5305 as_fn_error "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
5306fi
5307
7083c021
AC
5308if test "$libexecdir" = '${exec_prefix}/libexec' &&
5309 test "$localstatedir" = '${prefix}/var'; then
5310 libexecdir='${bindir}'
5311 localstatedir='${prefix}'
631ef239 5312fi
212380e3 5313
7083c021
AC
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5315$as_echo_n "checking for ANSI C header files... " >&6; }
5316if test "${ac_cv_header_stdc+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
212380e3 5318else
7083c021 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5320/* end confdefs.h. */
7083c021
AC
5321#include <stdlib.h>
5322#include <stdarg.h>
5323#include <string.h>
5324#include <float.h>
212380e3
AC
5325
5326int
5327main ()
5328{
7083c021 5329
212380e3
AC
5330 ;
5331 return 0;
5332}
5333_ACEOF
7083c021
AC
5334if ac_fn_c_try_compile "$LINENO"; then :
5335 ac_cv_header_stdc=yes
212380e3 5336else
7083c021 5337 ac_cv_header_stdc=no
212380e3 5338fi
631ef239 5339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5340
7083c021
AC
5341if test $ac_cv_header_stdc = yes; then
5342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h. */
5345#include <string.h>
5346
212380e3 5347_ACEOF
7083c021
AC
5348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "memchr" >/dev/null 2>&1; then :
5350
5351else
5352 ac_cv_header_stdc=no
5353fi
5354rm -f conftest*
212380e3
AC
5355
5356fi
5357
7083c021
AC
5358if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362#include <stdlib.h>
5363
5364_ACEOF
5365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5366 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5367
212380e3 5368else
7083c021 5369 ac_cv_header_stdc=no
631ef239 5370fi
7083c021 5371rm -f conftest*
631ef239 5372
7083c021 5373fi
212380e3 5374
7083c021
AC
5375if test $ac_cv_header_stdc = yes; then
5376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5377 if test "$cross_compiling" = yes; then :
5378 :
212380e3 5379else
7083c021 5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5381/* end confdefs.h. */
7083c021
AC
5382#include <ctype.h>
5383#include <stdlib.h>
5384#if ((' ' & 0x0FF) == 0x020)
5385# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5386# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5387#else
5388# define ISLOWER(c) \
5389 (('a' <= (c) && (c) <= 'i') \
5390 || ('j' <= (c) && (c) <= 'r') \
5391 || ('s' <= (c) && (c) <= 'z'))
5392# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5393#endif
7083c021
AC
5394
5395#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
5396int
5397main ()
5398{
7083c021
AC
5399 int i;
5400 for (i = 0; i < 256; i++)
5401 if (XOR (islower (i), ISLOWER (i))
5402 || toupper (i) != TOUPPER (i))
5403 return 2;
212380e3
AC
5404 return 0;
5405}
5406_ACEOF
7083c021 5407if ac_fn_c_try_run "$LINENO"; then :
212380e3 5408
7083c021
AC
5409else
5410 ac_cv_header_stdc=no
631ef239 5411fi
7083c021
AC
5412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5413 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5414fi
7083c021 5415
212380e3 5416fi
212380e3 5417fi
7083c021
AC
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5419$as_echo "$ac_cv_header_stdc" >&6; }
5420if test $ac_cv_header_stdc = yes; then
5421
5422$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
5423
5424fi
5425
5426
7083c021
AC
5427for 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
5428do :
5429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5430ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5431eval as_val=\$$as_ac_Header
5432 if test "x$as_val" = x""yes; then :
5433 cat >>confdefs.h <<_ACEOF
5434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435_ACEOF
212380e3 5436
212380e3
AC
5437fi
5438
7083c021 5439done
212380e3
AC
5440
5441
212380e3 5442
7083c021
AC
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5444$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5445if test "${ac_cv_c_const+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449/* end confdefs.h. */
212380e3 5450
7083c021
AC
5451int
5452main ()
5453{
5454/* FIXME: Include the comments suggested by Paul. */
5455#ifndef __cplusplus
5456 /* Ultrix mips cc rejects this. */
5457 typedef int charset[2];
5458 const charset cs;
5459 /* SunOS 4.1.1 cc rejects this. */
5460 char const *const *pcpcc;
5461 char **ppc;
5462 /* NEC SVR4.0.2 mips cc rejects this. */
5463 struct point {int x, y;};
5464 static struct point const zero = {0,0};
5465 /* AIX XL C 1.02.0.0 rejects this.
5466 It does not let you subtract one const X* pointer from another in
5467 an arm of an if-expression whose if-part is not a constant
5468 expression */
5469 const char *g = "string";
5470 pcpcc = &g + (g ? g-g : 0);
5471 /* HPUX 7.0 cc rejects these. */
5472 ++pcpcc;
5473 ppc = (char**) pcpcc;
5474 pcpcc = (char const *const *) ppc;
5475 { /* SCO 3.2v4 cc rejects this. */
5476 char *t;
5477 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5478
7083c021
AC
5479 *t++ = 0;
5480 if (s) return 0;
5481 }
5482 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5483 int x[] = {25, 17};
5484 const int *foo = &x[0];
5485 ++foo;
5486 }
5487 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5488 typedef const int *iptr;
5489 iptr p = 0;
5490 ++p;
5491 }
5492 { /* AIX XL C 1.02.0.0 rejects this saying
5493 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5494 struct s { int j; const int *ap[3]; };
5495 struct s *b; b->j = 5;
5496 }
5497 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5498 const int foo = 10;
5499 if (!foo) return 0;
5500 }
5501 return !cs[0] && !zero.x;
5502#endif
212380e3 5503
7083c021
AC
5504 ;
5505 return 0;
5506}
212380e3 5507_ACEOF
7083c021
AC
5508if ac_fn_c_try_compile "$LINENO"; then :
5509 ac_cv_c_const=yes
212380e3 5510else
7083c021 5511 ac_cv_c_const=no
212380e3 5512fi
631ef239 5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5514fi
7083c021
AC
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5516$as_echo "$ac_cv_c_const" >&6; }
5517if test $ac_cv_c_const = no; then
212380e3 5518
7083c021 5519$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
5520
5521fi
5522
7083c021
AC
5523if test "$ac_cv_header_machine_endian_h" = "no" ; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5525$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5526if test "${ac_cv_c_bigendian+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
212380e3 5528else
7083c021
AC
5529 ac_cv_c_bigendian=unknown
5530 # See if we're dealing with a universal compiler.
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h. */
5533#ifndef __APPLE_CC__
5534 not a universal capable compiler
5535 #endif
5536 typedef int dummy;
5537
5538_ACEOF
5539if ac_fn_c_try_compile "$LINENO"; then :
5540
5541 # Check for potential -arch flags. It is not universal unless
5542 # there are at least two -arch flags with different values.
5543 ac_arch=
5544 ac_prev=
5545 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5546 if test -n "$ac_prev"; then
5547 case $ac_word in
5548 i?86 | x86_64 | ppc | ppc64)
5549 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5550 ac_arch=$ac_word
5551 else
5552 ac_cv_c_bigendian=universal
5553 break
5554 fi
5555 ;;
5556 esac
5557 ac_prev=
5558 elif test "x$ac_word" = "x-arch"; then
5559 ac_prev=arch
5560 fi
5561 done
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 if test $ac_cv_c_bigendian = unknown; then
5565 # See if sys/param.h defines the BYTE_ORDER macro.
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5567/* end confdefs.h. */
5568#include <sys/types.h>
7083c021 5569 #include <sys/param.h>
212380e3
AC
5570
5571int
5572main ()
5573{
7083c021
AC
5574#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5575 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5576 && LITTLE_ENDIAN)
5577 bogus endian macros
5578 #endif
212380e3
AC
5579
5580 ;
5581 return 0;
5582}
5583_ACEOF
7083c021 5584if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5585 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5587/* end confdefs.h. */
5588#include <sys/types.h>
7083c021 5589 #include <sys/param.h>
212380e3
AC
5590
5591int
5592main ()
5593{
5594#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
5595 not big endian
5596 #endif
212380e3
AC
5597
5598 ;
5599 return 0;
5600}
5601_ACEOF
7083c021 5602if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
5603 ac_cv_c_bigendian=yes
5604else
7083c021 5605 ac_cv_c_bigendian=no
212380e3 5606fi
631ef239 5607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
5608fi
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 fi
5611 if test $ac_cv_c_bigendian = unknown; then
5612 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
5615#include <limits.h>
212380e3 5616
7083c021
AC
5617int
5618main ()
5619{
5620#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5621 bogus endian macros
5622 #endif
5623
5624 ;
5625 return 0;
5626}
212380e3 5627_ACEOF
7083c021
AC
5628if ac_fn_c_try_compile "$LINENO"; then :
5629 # It does; now see whether it defined to _BIG_ENDIAN or not.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5631/* end confdefs.h. */
7083c021
AC
5632#include <limits.h>
5633
212380e3
AC
5634int
5635main ()
5636{
7083c021
AC
5637#ifndef _BIG_ENDIAN
5638 not big endian
5639 #endif
5640
212380e3
AC
5641 ;
5642 return 0;
5643}
5644_ACEOF
7083c021 5645if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5646 ac_cv_c_bigendian=yes
7083c021
AC
5647else
5648 ac_cv_c_bigendian=no
212380e3 5649fi
7083c021 5650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5651fi
7083c021
AC
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 if test $ac_cv_c_bigendian = unknown; then
5655 # Compile a test program.
5656 if test "$cross_compiling" = yes; then :
5657 # Try to guess by grepping values from an object file.
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h. */
5660short int ascii_mm[] =
5661 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5662 short int ascii_ii[] =
5663 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5664 int use_ascii (int i) {
5665 return ascii_mm[i] + ascii_ii[i];
5666 }
5667 short int ebcdic_ii[] =
5668 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5669 short int ebcdic_mm[] =
5670 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5671 int use_ebcdic (int i) {
5672 return ebcdic_mm[i] + ebcdic_ii[i];
5673 }
5674 extern int foo;
631ef239 5675
7083c021
AC
5676int
5677main ()
5678{
5679return use_ascii (foo) == use_ebcdic (foo);
5680 ;
5681 return 0;
5682}
5683_ACEOF
5684if ac_fn_c_try_compile "$LINENO"; then :
5685 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5686 ac_cv_c_bigendian=yes
5687 fi
5688 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5689 if test "$ac_cv_c_bigendian" = unknown; then
5690 ac_cv_c_bigendian=no
5691 else
5692 # finding both strings is unlikely to happen, but who knows?
5693 ac_cv_c_bigendian=unknown
5694 fi
5695 fi
212380e3 5696fi
631ef239 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5698else
7083c021 5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5700/* end confdefs.h. */
631ef239 5701$ac_includes_default
212380e3
AC
5702int
5703main ()
5704{
631ef239 5705
7083c021
AC
5706 /* Are we little or big endian? From Harbison&Steele. */
5707 union
5708 {
5709 long int l;
5710 char c[sizeof (long int)];
5711 } u;
5712 u.l = 1;
5713 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
5714
5715 ;
5716 return 0;
212380e3
AC
5717}
5718_ACEOF
7083c021 5719if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
5720 ac_cv_c_bigendian=no
5721else
7083c021 5722 ac_cv_c_bigendian=yes
212380e3 5723fi
7083c021
AC
5724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5725 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5726fi
631ef239 5727
7083c021 5728 fi
212380e3 5729fi
7083c021
AC
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5731$as_echo "$ac_cv_c_bigendian" >&6; }
5732 case $ac_cv_c_bigendian in #(
5733 yes)
5734 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5735;; #(
5736 no)
5737 ;; #(
5738 universal)
5739
5740$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5741
5742 ;; #(
5743 *)
5744 as_fn_error "unknown endianness
5745 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5746 esac
631ef239 5747
212380e3 5748fi
7083c021
AC
5749ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5750if test "x$ac_cv_type_pid_t" = x""yes; then :
212380e3 5751
7083c021 5752else
212380e3 5753
7083c021
AC
5754cat >>confdefs.h <<_ACEOF
5755#define pid_t int
5756_ACEOF
212380e3 5757
212380e3 5758fi
7083c021
AC
5759
5760ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5761if test "x$ac_cv_type_size_t" = x""yes; then :
5762
212380e3 5763else
7083c021
AC
5764
5765cat >>confdefs.h <<_ACEOF
5766#define size_t unsigned int
212380e3 5767_ACEOF
7083c021
AC
5768
5769fi
5770
5771# The cast to long int works around a bug in the HP C Compiler
5772# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5773# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5774# This bug is HP SR number 8606223364.
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5776$as_echo_n "checking size of short... " >&6; }
5777if test "${ac_cv_sizeof_short+set}" = set; then :
5778 $as_echo_n "(cached) " >&6
212380e3 5779else
7083c021
AC
5780 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5781
5782else
5783 if test "$ac_cv_type_short" = yes; then
5784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5786{ as_fn_set_status 77
5787as_fn_error "cannot compute sizeof (short)
5788See \`config.log' for more details." "$LINENO" 5; }; }
5789 else
5790 ac_cv_sizeof_short=0
5791 fi
5792fi
212380e3 5793
212380e3 5794fi
7083c021
AC
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5796$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5797
212380e3 5798
7083c021
AC
5799
5800cat >>confdefs.h <<_ACEOF
5801#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5802_ACEOF
7083c021
AC
5803
5804
5805# The cast to long int works around a bug in the HP C Compiler
5806# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5807# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5808# This bug is HP SR number 8606223364.
5809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5810$as_echo_n "checking size of int... " >&6; }
5811if test "${ac_cv_sizeof_int+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813else
5814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5815
5816else
5817 if test "$ac_cv_type_int" = yes; then
5818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5820{ as_fn_set_status 77
5821as_fn_error "cannot compute sizeof (int)
5822See \`config.log' for more details." "$LINENO" 5; }; }
5823 else
5824 ac_cv_sizeof_int=0
5825 fi
5826fi
5827
5828fi
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5830$as_echo "$ac_cv_sizeof_int" >&6; }
5831
5832
5833
5834cat >>confdefs.h <<_ACEOF
5835#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 5836_ACEOF
7083c021
AC
5837
5838
5839# The cast to long int works around a bug in the HP C Compiler
5840# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5841# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5842# This bug is HP SR number 8606223364.
5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5844$as_echo_n "checking size of long... " >&6; }
5845if test "${ac_cv_sizeof_long+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
212380e3 5847else
7083c021 5848 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 5849
7083c021
AC
5850else
5851 if test "$ac_cv_type_long" = yes; then
5852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5854{ as_fn_set_status 77
5855as_fn_error "cannot compute sizeof (long)
5856See \`config.log' for more details." "$LINENO" 5; }; }
5857 else
5858 ac_cv_sizeof_long=0
5859 fi
212380e3 5860fi
631ef239 5861
7083c021
AC
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5864$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 5865
631ef239 5866
7083c021
AC
5867
5868cat >>confdefs.h <<_ACEOF
5869#define SIZEOF_LONG $ac_cv_sizeof_long
5870_ACEOF
5871
5872
5873# The cast to long int works around a bug in the HP C Compiler
5874# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5875# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5876# This bug is HP SR number 8606223364.
5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5878$as_echo_n "checking size of long long... " >&6; }
5879if test "${ac_cv_sizeof_long_long+set}" = set; then :
5880 $as_echo_n "(cached) " >&6
5881else
5882 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5883
212380e3 5884else
7083c021
AC
5885 if test "$ac_cv_type_long_long" = yes; then
5886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5888{ as_fn_set_status 77
5889as_fn_error "cannot compute sizeof (long long)
5890See \`config.log' for more details." "$LINENO" 5; }; }
5891 else
5892 ac_cv_sizeof_long_long=0
5893 fi
212380e3 5894fi
212380e3
AC
5895
5896fi
7083c021
AC
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5898$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
5899
5900
5901
7083c021
AC
5902cat >>confdefs.h <<_ACEOF
5903#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5904_ACEOF
212380e3 5905
212380e3 5906
212380e3 5907
7083c021
AC
5908
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5910$as_echo_n "checking for library containing socket... " >&6; }
5911if test "${ac_cv_search_socket+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913else
5914 ac_func_search_save_LIBS=$LIBS
5915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5916/* end confdefs.h. */
7083c021
AC
5917
5918/* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5921#ifdef __cplusplus
5922extern "C"
5923#endif
5924char socket ();
212380e3
AC
5925int
5926main ()
5927{
7083c021 5928return socket ();
212380e3
AC
5929 ;
5930 return 0;
5931}
5932_ACEOF
7083c021
AC
5933for ac_lib in '' socket; do
5934 if test -z "$ac_lib"; then
5935 ac_res="none required"
5936 else
5937 ac_res=-l$ac_lib
5938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5939 fi
5940 if ac_fn_c_try_link "$LINENO"; then :
5941 ac_cv_search_socket=$ac_res
5942fi
5943rm -f core conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext
5945 if test "${ac_cv_search_socket+set}" = set; then :
5946 break
5947fi
5948done
5949if test "${ac_cv_search_socket+set}" = set; then :
212380e3
AC
5950
5951else
7083c021
AC
5952 ac_cv_search_socket=no
5953fi
5954rm conftest.$ac_ext
5955LIBS=$ac_func_search_save_LIBS
5956fi
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5958$as_echo "$ac_cv_search_socket" >&6; }
5959ac_res=$ac_cv_search_socket
5960if test "$ac_res" != no; then :
5961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 5962
7083c021
AC
5963else
5964 as_fn_error "You have no socket()! Aborting." "$LINENO" 5
212380e3 5965fi
631ef239 5966
212380e3 5967
7083c021
AC
5968if test x"$SUN" = xyes; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5970$as_echo_n "checking for library containing inet_ntoa... " >&6; }
5971if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 ac_func_search_save_LIBS=$LIBS
5975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5976/* end confdefs.h. */
7083c021
AC
5977
5978/* Override any GCC internal prototype to avoid an error.
5979 Use char because int might match the return type of a GCC
5980 builtin and then its argument prototype would still apply. */
5981#ifdef __cplusplus
5982extern "C"
5983#endif
5984char inet_ntoa ();
212380e3
AC
5985int
5986main ()
5987{
7083c021 5988return inet_ntoa ();
212380e3
AC
5989 ;
5990 return 0;
5991}
5992_ACEOF
7083c021
AC
5993for ac_lib in '' nsl; do
5994 if test -z "$ac_lib"; then
5995 ac_res="none required"
5996 else
5997 ac_res=-l$ac_lib
5998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5999 fi
6000 if ac_fn_c_try_link "$LINENO"; then :
6001 ac_cv_search_inet_ntoa=$ac_res
6002fi
6003rm -f core conftest.err conftest.$ac_objext \
6004 conftest$ac_exeext
6005 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
6006 break
6007fi
6008done
6009if test "${ac_cv_search_inet_ntoa+set}" = set; then :
212380e3
AC
6010
6011else
7083c021
AC
6012 ac_cv_search_inet_ntoa=no
6013fi
6014rm conftest.$ac_ext
6015LIBS=$ac_func_search_save_LIBS
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6018$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6019ac_res=$ac_cv_search_inet_ntoa
6020if test "$ac_res" != no; then :
6021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6022
7083c021
AC
6023else
6024 as_fn_error "libnsl not found! Aborting." "$LINENO" 5
212380e3 6025fi
631ef239 6026
7083c021 6027fi
212380e3 6028
7083c021
AC
6029ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6030#include <sys/socket.h>
6031"
6032if test "x$ac_cv_type_socklen_t" = x""yes; then :
212380e3
AC
6033
6034else
6035
7083c021 6036$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6037
7083c021 6038fi
212380e3
AC
6039
6040
7083c021
AC
6041# Check whether --enable-ipv6 was given.
6042if test "${enable_ipv6+set}" = set; then :
6043 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6044else
7083c021
AC
6045 ipv6=no
6046fi
212380e3 6047
212380e3 6048
7083c021
AC
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6050$as_echo_n "checking for library containing crypt... " >&6; }
6051if test "${ac_cv_search_crypt+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053else
6054 ac_func_search_save_LIBS=$LIBS
6055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056/* end confdefs.h. */
212380e3 6057
631ef239
AC
6058/* Override any GCC internal prototype to avoid an error.
6059 Use char because int might match the return type of a GCC
6060 builtin and then its argument prototype would still apply. */
212380e3
AC
6061#ifdef __cplusplus
6062extern "C"
212380e3 6063#endif
7083c021 6064char crypt ();
212380e3
AC
6065int
6066main ()
6067{
7083c021 6068return crypt ();
212380e3
AC
6069 ;
6070 return 0;
6071}
6072_ACEOF
7083c021
AC
6073for ac_lib in '' crypt descrypt; do
6074 if test -z "$ac_lib"; then
6075 ac_res="none required"
6076 else
6077 ac_res=-l$ac_lib
6078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6079 fi
6080 if ac_fn_c_try_link "$LINENO"; then :
6081 ac_cv_search_crypt=$ac_res
6082fi
6083rm -f core conftest.err conftest.$ac_objext \
6084 conftest$ac_exeext
6085 if test "${ac_cv_search_crypt+set}" = set; then :
6086 break
6087fi
6088done
6089if test "${ac_cv_search_crypt+set}" = set; then :
6090
212380e3 6091else
7083c021
AC
6092 ac_cv_search_crypt=no
6093fi
6094rm conftest.$ac_ext
6095LIBS=$ac_func_search_save_LIBS
6096fi
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6098$as_echo "$ac_cv_search_crypt" >&6; }
6099ac_res=$ac_cv_search_crypt
6100if test "$ac_res" != no; then :
6101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6102
212380e3 6103fi
631ef239 6104
7083c021
AC
6105
6106CRYPT_LIB=$ac_cv_search_crypt
6107
6108if test "$CRYPT_LIB" = "none required"; then
6109 unset CRYPT_LIB
6110elif test "$CRYPT_LIB" = no; then
6111 unset CRYPT_LIB
212380e3 6112fi
7083c021
AC
6113
6114
6115
6116if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6117 VICONF=viconf
6118 else
6119 VICONF=""
6120fi
6121
6122
6123
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6125$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6126if test "${gcc_cv_header_string+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6128else
6129
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131/* end confdefs.h. */
6132#include <string.h>
6133 #include <strings.h>
212380e3 6134_ACEOF
7083c021
AC
6135if ac_fn_c_try_compile "$LINENO"; then :
6136 gcc_cv_header_string=yes
6137else
6138 gcc_cv_header_string=no
6139fi
6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6141
6142fi
7083c021
AC
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6144$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6145
7083c021
AC
6146if test "$gcc_cv_header_string" = "yes"; then
6147
6148$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6149
6150fi
212380e3 6151
7083c021
AC
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6153$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6154if test "${ac_cv_c_bigendian+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6156else
6157 ac_cv_c_bigendian=unknown
6158 # See if we're dealing with a universal compiler.
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160/* end confdefs.h. */
6161#ifndef __APPLE_CC__
6162 not a universal capable compiler
6163 #endif
6164 typedef int dummy;
6165
6166_ACEOF
6167if ac_fn_c_try_compile "$LINENO"; then :
6168
6169 # Check for potential -arch flags. It is not universal unless
6170 # there are at least two -arch flags with different values.
6171 ac_arch=
6172 ac_prev=
6173 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6174 if test -n "$ac_prev"; then
6175 case $ac_word in
6176 i?86 | x86_64 | ppc | ppc64)
6177 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6178 ac_arch=$ac_word
6179 else
6180 ac_cv_c_bigendian=universal
6181 break
6182 fi
6183 ;;
6184 esac
6185 ac_prev=
6186 elif test "x$ac_word" = "x-arch"; then
6187 ac_prev=arch
6188 fi
6189 done
212380e3 6190fi
7083c021
AC
6191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 if test $ac_cv_c_bigendian = unknown; then
6193 # See if sys/param.h defines the BYTE_ORDER macro.
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195/* end confdefs.h. */
6196#include <sys/types.h>
6197 #include <sys/param.h>
6198
6199int
6200main ()
6201{
6202#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6203 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6204 && LITTLE_ENDIAN)
6205 bogus endian macros
6206 #endif
6207
6208 ;
6209 return 0;
6210}
6211_ACEOF
6212if ac_fn_c_try_compile "$LINENO"; then :
6213 # It does; now see whether it defined to BIG_ENDIAN or not.
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h. */
6216#include <sys/types.h>
6217 #include <sys/param.h>
6218
6219int
6220main ()
6221{
6222#if BYTE_ORDER != BIG_ENDIAN
6223 not big endian
6224 #endif
212380e3 6225
7083c021
AC
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230if ac_fn_c_try_compile "$LINENO"; then :
6231 ac_cv_c_bigendian=yes
212380e3 6232else
7083c021
AC
6233 ac_cv_c_bigendian=no
6234fi
6235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 fi
6239 if test $ac_cv_c_bigendian = unknown; then
6240 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h. */
6243#include <limits.h>
6244
6245int
6246main ()
6247{
6248#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6249 bogus endian macros
6250 #endif
6251
6252 ;
6253 return 0;
6254}
212380e3 6255_ACEOF
7083c021
AC
6256if ac_fn_c_try_compile "$LINENO"; then :
6257 # It does; now see whether it defined to _BIG_ENDIAN or not.
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6259/* end confdefs.h. */
7083c021
AC
6260#include <limits.h>
6261
212380e3
AC
6262int
6263main ()
6264{
7083c021
AC
6265#ifndef _BIG_ENDIAN
6266 not big endian
6267 #endif
6268
212380e3
AC
6269 ;
6270 return 0;
6271}
6272_ACEOF
7083c021
AC
6273if ac_fn_c_try_compile "$LINENO"; then :
6274 ac_cv_c_bigendian=yes
212380e3 6275else
7083c021 6276 ac_cv_c_bigendian=no
212380e3 6277fi
631ef239 6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6279fi
7083c021
AC
6280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 fi
6282 if test $ac_cv_c_bigendian = unknown; then
6283 # Compile a test program.
6284 if test "$cross_compiling" = yes; then :
6285 # Try to guess by grepping values from an object file.
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h. */
6288short int ascii_mm[] =
6289 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6290 short int ascii_ii[] =
6291 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6292 int use_ascii (int i) {
6293 return ascii_mm[i] + ascii_ii[i];
6294 }
6295 short int ebcdic_ii[] =
6296 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6297 short int ebcdic_mm[] =
6298 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6299 int use_ebcdic (int i) {
6300 return ebcdic_mm[i] + ebcdic_ii[i];
6301 }
6302 extern int foo;
212380e3 6303
7083c021
AC
6304int
6305main ()
6306{
6307return use_ascii (foo) == use_ebcdic (foo);
6308 ;
6309 return 0;
6310}
212380e3 6311_ACEOF
7083c021
AC
6312if ac_fn_c_try_compile "$LINENO"; then :
6313 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6314 ac_cv_c_bigendian=yes
6315 fi
6316 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6317 if test "$ac_cv_c_bigendian" = unknown; then
6318 ac_cv_c_bigendian=no
6319 else
6320 # finding both strings is unlikely to happen, but who knows?
6321 ac_cv_c_bigendian=unknown
6322 fi
6323 fi
6324fi
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326else
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6328/* end confdefs.h. */
6329$ac_includes_default
6330int
6331main ()
6332{
7083c021
AC
6333
6334 /* Are we little or big endian? From Harbison&Steele. */
6335 union
6336 {
6337 long int l;
6338 char c[sizeof (long int)];
6339 } u;
6340 u.l = 1;
6341 return u.c[sizeof (long int) - 1] == 1;
6342
212380e3
AC
6343 ;
6344 return 0;
6345}
6346_ACEOF
7083c021
AC
6347if ac_fn_c_try_run "$LINENO"; then :
6348 ac_cv_c_bigendian=no
212380e3 6349else
7083c021 6350 ac_cv_c_bigendian=yes
212380e3 6351fi
7083c021
AC
6352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6353 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6354fi
212380e3 6355
7083c021
AC
6356 fi
6357fi
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6359$as_echo "$ac_cv_c_bigendian" >&6; }
6360 case $ac_cv_c_bigendian in #(
6361 yes)
6362 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6363;; #(
6364 no)
6365 ;; #(
6366 universal)
212380e3 6367
7083c021 6368$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6369
7083c021
AC
6370 ;; #(
6371 *)
6372 as_fn_error "unknown endianness
6373 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6374 esac
212380e3 6375
212380e3 6376
7083c021
AC
6377ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6378if test "x$ac_cv_header_stdarg_h" = x""yes; then :
212380e3 6379
7083c021
AC
6380else
6381 as_fn_error "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6382fi
212380e3
AC
6383
6384
212380e3
AC
6385
6386
7083c021 6387if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6388
7083c021
AC
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6390$as_echo_n "checking for strlcpy... " >&6; }
6391save_CFLAGS=$CFLAGS
6392CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6393
7083c021 6394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6395/* end confdefs.h. */
7083c021
AC
6396#include <string.h>
6397 #include <stdlib.h>
212380e3
AC
6398int
6399main ()
6400{
7083c021
AC
6401char *a = malloc(6);
6402 strlcpy(a, "hello", 6);
6403
212380e3
AC
6404 ;
6405 return 0;
6406}
6407_ACEOF
7083c021
AC
6408if ac_fn_c_try_link "$LINENO"; then :
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6410$as_echo "yes" >&6; }
212380e3 6411
7083c021 6412$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6413
212380e3 6414else
7083c021
AC
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
212380e3 6417
7083c021
AC
6418fi
6419rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6423$as_echo_n "checking for strlcat... " >&6; }
6424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6425/* end confdefs.h. */
7083c021
AC
6426#include <string.h>
6427 #include <stdlib.h>
212380e3
AC
6428int
6429main ()
6430{
7083c021
AC
6431char *a = malloc(6);
6432 a[0] = '\0';
6433 strlcat(a, "hello", 6);
6434
212380e3
AC
6435 ;
6436 return 0;
6437}
6438_ACEOF
7083c021
AC
6439if ac_fn_c_try_link "$LINENO"; then :
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6441$as_echo "yes" >&6; }
631ef239 6442
7083c021 6443$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6444
7083c021
AC
6445else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447$as_echo "no" >&6; }
212380e3 6448
7083c021
AC
6449fi
6450rm -f core conftest.err conftest.$ac_objext \
6451 conftest$ac_exeext conftest.$ac_ext
212380e3 6452
7083c021 6453CFLAGS=$save_CFLAGS
212380e3
AC
6454
6455else
6456
212380e3 6457
7083c021
AC
6458for ac_func in strlcat strlcpy
6459do :
6460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6461ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6462eval as_val=\$$as_ac_var
6463 if test "x$as_val" = x""yes; then :
6464 cat >>confdefs.h <<_ACEOF
6465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6466_ACEOF
6467
212380e3 6468fi
7083c021 6469done
212380e3
AC
6470
6471
6472fi
6473
7083c021
AC
6474ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6475if test "x$ac_cv_type_u_int32_t" = x""yes; then :
212380e3 6476
212380e3 6477else
212380e3 6478
7083c021
AC
6479 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6480if test "x$ac_cv_type_uint32_t" = x""yes; then :
212380e3 6481
631ef239 6482
7083c021 6483$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6484
212380e3 6485
7083c021 6486else
212380e3 6487
7083c021
AC
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6489$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6490
7083c021 6491$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6492
212380e3 6493
212380e3 6494fi
631ef239 6495
7083c021 6496
212380e3 6497fi
7083c021
AC
6498
6499
6500ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6501if test "x$ac_cv_type_u_int16_t" = x""yes; then :
6502
212380e3
AC
6503else
6504
7083c021
AC
6505 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6506if test "x$ac_cv_type_uint16_t" = x""yes; then :
212380e3 6507
7083c021
AC
6508
6509$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
6510
6511
212380e3 6512else
212380e3 6513
7083c021
AC
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6515$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6516
7083c021 6517$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6518
7083c021
AC
6519
6520fi
212380e3
AC
6521
6522
6523fi
6524
6525
7083c021
AC
6526ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6527#include <netinet/in.h>
6528"
6529if test "x$ac_cv_type_in_port_t" = x""yes; then :
212380e3 6530
7083c021 6531else
212380e3 6532
7083c021 6533$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6534
7083c021 6535fi
212380e3
AC
6536
6537
7083c021
AC
6538ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6539#include <sys/socket.h>
6540"
6541if test "x$ac_cv_type_sa_family_t" = x""yes; then :
212380e3 6542
212380e3 6543else
212380e3 6544
7083c021 6545$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6546
7083c021 6547fi
212380e3 6548
212380e3 6549
7083c021
AC
6550ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6551if test "x$ac_cv_type_uintptr_t" = x""yes; then :
212380e3 6552
7083c021
AC
6553cat >>confdefs.h <<_ACEOF
6554#define HAVE_UINTPTR_T 1
6555_ACEOF
212380e3 6556
631ef239 6557
212380e3 6558fi
7083c021
AC
6559
6560
6561for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6562do :
6563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6564ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6565eval as_val=\$$as_ac_var
6566 if test "x$as_val" = x""yes; then :
212380e3 6567 cat >>confdefs.h <<_ACEOF
7083c021 6568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6569_ACEOF
6570
6571fi
6572done
6573
6574
6575# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6576# for constant arguments. Useless!
7083c021
AC
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6578$as_echo_n "checking for working alloca.h... " >&6; }
6579if test "${ac_cv_working_alloca_h+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
212380e3 6581else
7083c021 6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6583/* end confdefs.h. */
6584#include <alloca.h>
6585int
6586main ()
6587{
6588char *p = (char *) alloca (2 * sizeof (int));
631ef239 6589 if (p) return 0;
212380e3
AC
6590 ;
6591 return 0;
6592}
6593_ACEOF
7083c021 6594if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6595 ac_cv_working_alloca_h=yes
6596else
7083c021 6597 ac_cv_working_alloca_h=no
212380e3 6598fi
7083c021
AC
6599rm -f core conftest.err conftest.$ac_objext \
6600 conftest$ac_exeext conftest.$ac_ext
212380e3 6601fi
7083c021
AC
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6603$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
6604if test $ac_cv_working_alloca_h = yes; then
6605
7083c021 6606$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
6607
6608fi
6609
7083c021
AC
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6611$as_echo_n "checking for alloca... " >&6; }
6612if test "${ac_cv_func_alloca_works+set}" = set; then :
6613 $as_echo_n "(cached) " >&6
212380e3 6614else
7083c021 6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6616/* end confdefs.h. */
6617#ifdef __GNUC__
6618# define alloca __builtin_alloca
6619#else
6620# ifdef _MSC_VER
6621# include <malloc.h>
6622# define alloca _alloca
6623# else
631ef239 6624# ifdef HAVE_ALLOCA_H
212380e3
AC
6625# include <alloca.h>
6626# else
6627# ifdef _AIX
6628 #pragma alloca
6629# else
6630# ifndef alloca /* predefined by HP cc +Olibcalls */
6631char *alloca ();
6632# endif
6633# endif
6634# endif
6635# endif
6636#endif
6637
6638int
6639main ()
6640{
6641char *p = (char *) alloca (1);
631ef239 6642 if (p) return 0;
212380e3
AC
6643 ;
6644 return 0;
6645}
6646_ACEOF
7083c021 6647if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6648 ac_cv_func_alloca_works=yes
6649else
7083c021 6650 ac_cv_func_alloca_works=no
212380e3 6651fi
7083c021
AC
6652rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
212380e3 6654fi
7083c021
AC
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6656$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
6657
6658if test $ac_cv_func_alloca_works = yes; then
6659
7083c021 6660$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
6661
6662else
6663 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6664# that cause trouble. Some versions do not even contain alloca or
6665# contain a buggy version. If you still want to use their alloca,
6666# use ar to extract alloca.o from them instead of compiling alloca.c.
6667
631ef239 6668ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6669
7083c021 6670$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
6671
6672
7083c021
AC
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6674$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6675if test "${ac_cv_os_cray+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
212380e3 6677else
7083c021 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6679/* end confdefs.h. */
631ef239 6680#if defined CRAY && ! defined CRAY2
212380e3
AC
6681webecray
6682#else
6683wenotbecray
6684#endif
6685
6686_ACEOF
6687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 6688 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
6689 ac_cv_os_cray=yes
6690else
6691 ac_cv_os_cray=no
6692fi
6693rm -f conftest*
6694
6695fi
7083c021
AC
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6697$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
6698if test $ac_cv_os_cray = yes; then
6699 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
6700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6701ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6702eval as_val=\$$as_ac_var
6703 if test "x$as_val" = x""yes; then :
212380e3
AC
6704
6705cat >>confdefs.h <<_ACEOF
6706#define CRAY_STACKSEG_END $ac_func
6707_ACEOF
6708
6709 break
6710fi
6711
6712 done
6713fi
6714
7083c021
AC
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6716$as_echo_n "checking stack direction for C alloca... " >&6; }
6717if test "${ac_cv_c_stack_direction+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
212380e3 6719else
7083c021 6720 if test "$cross_compiling" = yes; then :
212380e3
AC
6721 ac_cv_c_stack_direction=0
6722else
7083c021 6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6724/* end confdefs.h. */
631ef239 6725$ac_includes_default
212380e3
AC
6726int
6727find_stack_direction ()
6728{
6729 static char *addr = 0;
6730 auto char dummy;
6731 if (addr == 0)
6732 {
6733 addr = &dummy;
6734 return find_stack_direction ();
6735 }
6736 else
6737 return (&dummy > addr) ? 1 : -1;
6738}
6739
6740int
6741main ()
6742{
631ef239 6743 return find_stack_direction () < 0;
212380e3
AC
6744}
6745_ACEOF
7083c021 6746if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6747 ac_cv_c_stack_direction=1
6748else
7083c021 6749 ac_cv_c_stack_direction=-1
212380e3 6750fi
7083c021
AC
6751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6752 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6753fi
631ef239 6754
212380e3 6755fi
7083c021
AC
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6757$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
6758cat >>confdefs.h <<_ACEOF
6759#define STACK_DIRECTION $ac_cv_c_stack_direction
6760_ACEOF
6761
6762
6763fi
6764
6765
6766
7083c021
AC
6767ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6768if test "x$ac_cv_func_nanosleep" = x""yes; then :
631ef239 6769
212380e3 6770else
7083c021
AC
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6772$as_echo_n "checking for nanosleep in -lrt... " >&6; }
6773if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
6774 $as_echo_n "(cached) " >&6
212380e3
AC
6775else
6776 ac_check_lib_save_LIBS=$LIBS
6777LIBS="-lrt $LIBS"
7083c021 6778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6779/* end confdefs.h. */
6780
631ef239
AC
6781/* Override any GCC internal prototype to avoid an error.
6782 Use char because int might match the return type of a GCC
6783 builtin and then its argument prototype would still apply. */
212380e3
AC
6784#ifdef __cplusplus
6785extern "C"
6786#endif
212380e3
AC
6787char nanosleep ();
6788int
6789main ()
6790{
631ef239 6791return nanosleep ();
212380e3
AC
6792 ;
6793 return 0;
6794}
6795_ACEOF
7083c021 6796if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6797 ac_cv_lib_rt_nanosleep=yes
6798else
7083c021 6799 ac_cv_lib_rt_nanosleep=no
212380e3 6800fi
7083c021
AC
6801rm -f core conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6803LIBS=$ac_check_lib_save_LIBS
6804fi
7083c021
AC
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6806$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6807if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
212380e3
AC
6808 LIBS="${LIBS} -lrt"
6809else
7083c021
AC
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6811$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6812if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
212380e3
AC
6814else
6815 ac_check_lib_save_LIBS=$LIBS
6816LIBS="-lposix4 $LIBS"
7083c021 6817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6818/* end confdefs.h. */
6819
631ef239
AC
6820/* Override any GCC internal prototype to avoid an error.
6821 Use char because int might match the return type of a GCC
6822 builtin and then its argument prototype would still apply. */
212380e3
AC
6823#ifdef __cplusplus
6824extern "C"
6825#endif
212380e3
AC
6826char nanosleep ();
6827int
6828main ()
6829{
631ef239 6830return nanosleep ();
212380e3
AC
6831 ;
6832 return 0;
6833}
6834_ACEOF
7083c021 6835if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6836 ac_cv_lib_posix4_nanosleep=yes
6837else
7083c021 6838 ac_cv_lib_posix4_nanosleep=no
212380e3 6839fi
7083c021
AC
6840rm -f core conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6842LIBS=$ac_check_lib_save_LIBS
6843fi
7083c021
AC
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6845$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6846if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then :
212380e3
AC
6847 LIBS="${LIBS} -lposix4"
6848
6849fi
6850
6851fi
6852
6853fi
6854
6855if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
6856then
7083c021
AC
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6858$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
6859else
6860
7083c021 6861$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
6862
6863fi
6864
7083c021
AC
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6866$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 6867# Check whether --enable-openssl was given.
7083c021 6868if test "${enable_openssl+set}" = set; then :
631ef239 6869 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
6870else
6871 cf_enable_openssl="auto"
631ef239
AC
6872fi
6873
212380e3
AC
6874
6875if test "$cf_enable_openssl" != "no" ; then
6876 cf_openssl_basedir=""
6877 if test "$cf_enable_openssl" != "auto" &&
6878 test "$cf_enable_openssl" != "yes" ; then
6879 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6880 else
6881 for dirs in /usr/local/ssl /usr/pkg /usr/local \
6882 /usr/local/openssl ; do
6883 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6884 cf_openssl_basedir="${dirs}"
6885 break
6886 fi
6887 done
6888 unset dirs
6889 fi
6890 if test ! -z "$cf_openssl_basedir"; then
6891 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6892 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
6893 SSL_LIBS="-L${cf_openssl_basedir}/lib"
6894 else
6895 cf_openssl_basedir=""
6896 fi
6897 else
6898 if test -f "/usr/include/openssl/opensslv.h" ; then
6899 cf_openssl_basedir="/usr"
6900 fi
6901 fi
6902
6903 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6905$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
6906 cf_enable_openssl="yes"
6907 else
7083c021
AC
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6909$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
6910 cf_enable_openssl="no"
6911 fi
6912 unset cf_openssl_basedir
6913else
7083c021
AC
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6915$as_echo "disabled" >&6; }
212380e3
AC
6916fi
6917
6918save_CPPFLAGS="$CPPFLAGS"
6919CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
6920save_LIBS="$LIBS"
6921LIBS="$LIBS $SSL_LIBS"
6922if test "$cf_enable_openssl" != no; then
7083c021
AC
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6924$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6925 if test "$cross_compiling" = yes; then :
212380e3
AC
6926 cf_openssl_version_ok=no
6927else
7083c021 6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6929/* end confdefs.h. */
6930#include <openssl/opensslv.h>
6931 #include <stdlib.h>
6932int
6933main ()
6934{
6935if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6936 exit(0); else exit(1);
6937 ;
6938 return 0;
6939}
6940_ACEOF
7083c021 6941if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6942 cf_openssl_version_ok=yes
6943else
7083c021 6944 cf_openssl_version_ok=no
212380e3 6945fi
7083c021
AC
6946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6947 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
6948fi
6949
631ef239 6950
212380e3 6951 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6953$as_echo "found" >&6; }
212380e3
AC
6954
6955 ENCSPEED=encspeed
6956
6957
6958 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
6960$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
6961if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
212380e3
AC
6963else
6964 ac_check_lib_save_LIBS=$LIBS
6965LIBS="-lcrypto $LIBS"
7083c021 6966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6967/* end confdefs.h. */
6968
631ef239
AC
6969/* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
212380e3
AC
6972#ifdef __cplusplus
6973extern "C"
6974#endif
212380e3
AC
6975char RSA_free ();
6976int
6977main ()
6978{
631ef239 6979return RSA_free ();
212380e3
AC
6980 ;
6981 return 0;
6982}
6983_ACEOF
7083c021 6984if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6985 ac_cv_lib_crypto_RSA_free=yes
6986else
7083c021 6987 ac_cv_lib_crypto_RSA_free=no
212380e3 6988fi
7083c021
AC
6989rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6991LIBS=$ac_check_lib_save_LIBS
6992fi
7083c021
AC
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
6994$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
6995if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
212380e3
AC
6996 cat >>confdefs.h <<_ACEOF
6997#define HAVE_LIBCRYPTO 1
6998_ACEOF
6999
7000 LIBS="-lcrypto $LIBS"
7001
7002fi
7003
7004 SSL_LIBS="$SSL_LIBS -lcrypto"
7005 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7006 else
7083c021
AC
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7008$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
7009 fi
7010fi
7011
7012CPPFLAGS="$save_CPPFLAGS"
7013LIBS="$save_LIBS"
7014
7015
7016
7017
7018
631ef239 7019# Check whether --with-zlib-path was given.
7083c021 7020if test "${with_zlib_path+set}" = set; then :
631ef239
AC
7021 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7022fi
212380e3 7023
7083c021
AC
7024
7025# Check whether --enable-zlib was given.
7026if test "${enable_zlib+set}" = set; then :
7027 enableval=$enable_zlib; zlib=$enableval
212380e3 7028else
7083c021 7029 zlib=yes
212380e3 7030fi
212380e3 7031
212380e3 7032
7083c021
AC
7033if test "$zlib" = yes; then
7034
7035ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7036if test "x$ac_cv_header_zlib_h" = x""yes; then :
7037
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7039$as_echo_n "checking for zlibVersion in -lz... " >&6; }
7040if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
212380e3
AC
7042else
7043 ac_check_lib_save_LIBS=$LIBS
7044LIBS="-lz $LIBS"
7083c021 7045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7046/* end confdefs.h. */
7047
631ef239
AC
7048/* Override any GCC internal prototype to avoid an error.
7049 Use char because int might match the return type of a GCC
7050 builtin and then its argument prototype would still apply. */
212380e3
AC
7051#ifdef __cplusplus
7052extern "C"
7053#endif
212380e3
AC
7054char zlibVersion ();
7055int
7056main ()
7057{
631ef239 7058return zlibVersion ();
212380e3
AC
7059 ;
7060 return 0;
7061}
7062_ACEOF
7083c021 7063if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7064 ac_cv_lib_z_zlibVersion=yes
7065else
7083c021 7066 ac_cv_lib_z_zlibVersion=no
212380e3 7067fi
7083c021
AC
7068rm -f core conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7070LIBS=$ac_check_lib_save_LIBS
7071fi
7083c021
AC
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7073$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7074if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
212380e3
AC
7075
7076 ZLIB_LD=-lz
7077
7078
7083c021 7079$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
7080
7081
7082else
7083 zlib=no
7084fi
7085
7086
7087else
7088 zlib=no
7089fi
7090
7091
7092
7093fi
7094
7095
c1c5fdc4 7096# Check whether --enable-ports was given.
7083c021 7097if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
7098 enableval=$enable_ports; if test $enableval = yes; then
7099 SELECT_TYPE_EXPLICIT="ports"
7100 else
7101 use_ports=no
7102 fi
7103
7104fi
7105
7106
631ef239 7107# Check whether --enable-poll was given.
7083c021 7108if test "${enable_poll+set}" = set; then :
631ef239 7109 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
7110 SELECT_TYPE_EXPLICIT="poll"
7111 else
7112 use_poll=no
7113 fi
7114
631ef239
AC
7115fi
7116
212380e3 7117
631ef239 7118# Check whether --enable-select was given.
7083c021 7119if test "${enable_select+set}" = set; then :
631ef239 7120 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
7121 SELECT_TYPE_EXPLICIT="select"
7122 else
7123 use_select=no
7124 fi
7125
631ef239
AC
7126fi
7127
212380e3 7128
631ef239 7129# Check whether --enable-kqueue was given.
7083c021 7130if test "${enable_kqueue+set}" = set; then :
631ef239 7131 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
7132 SELECT_TYPE_EXPLICIT="kqueue"
7133 else
7134 use_kqueue=no
7135 fi
7136
631ef239
AC
7137fi
7138
212380e3 7139
631ef239 7140# Check whether --enable-epoll was given.
7083c021 7141if test "${enable_epoll+set}" = set; then :
631ef239 7142 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7143 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
7144 for ac_func in epoll_ctl
7145do :
7146 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7147if test "x$ac_cv_func_epoll_ctl" = x""yes; then :
3ad1a781 7148 cat >>confdefs.h <<_ACEOF
7083c021 7149#define HAVE_EPOLL_CTL 1
3ad1a781
JT
7150_ACEOF
7151 haveepoll=yes
7152else
7153 haveepoll=no
7154fi
7155done
7156
212380e3
AC
7157 else
7158 use_epoll=no
7159 fi
7160
631ef239
AC
7161fi
7162
212380e3
AC
7163
7164
7083c021
AC
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7166$as_echo_n "checking whether to modify confdir... " >&6; }
212380e3 7167
631ef239 7168# Check whether --with-confdir was given.
7083c021 7169if test "${with_confdir+set}" = set; then :
631ef239 7170 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7172$as_echo "yes" >&6; }
212380e3
AC
7173
7174 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7176 ac_define_dir=`eval echo $confdir`
7177 ac_define_dir=`eval echo $ac_define_dir`
7178 ETC_DIR="$ac_define_dir"
7179
7180
7181cat >>confdefs.h <<_ACEOF
7182#define ETC_DIR "$ac_define_dir"
7183_ACEOF
7184
7185
7186
7187
7188 confdir=`(
7189 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7190 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7191 eval echo \""$confdir"\"
7192 )`
7193
7194
7195else
7196 confdir='${prefix}/etc'
7083c021
AC
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198$as_echo "no" >&6; }
212380e3
AC
7199
7200 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7201 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7202 ac_define_dir=`eval echo $confdir`
7203 ac_define_dir=`eval echo $ac_define_dir`
7204 ETC_DIR="$ac_define_dir"
7205
7206
7207cat >>confdefs.h <<_ACEOF
7208#define ETC_DIR "$ac_define_dir"
7209_ACEOF
7210
7211
7212
7213
7214 confdir=`(
7215 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7216 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7217 eval echo \""$confdir"\"
7218 )`
7219
7220
7221
631ef239
AC
7222fi
7223
212380e3
AC
7224
7225
7083c021
AC
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7227$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7228
631ef239 7229# Check whether --with-logdir was given.
7083c021 7230if test "${with_logdir+set}" = set; then :
631ef239 7231 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7233$as_echo "yes" >&6; }
212380e3
AC
7234
7235 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7237 ac_define_dir=`eval echo $logdir`
7238 ac_define_dir=`eval echo $ac_define_dir`
7239 LOG_DIR="$ac_define_dir"
7240
7241
7242cat >>confdefs.h <<_ACEOF
7243#define LOG_DIR "$ac_define_dir"
7244_ACEOF
7245
7246
7247
7248
7249 logdir=`(
7250 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7251 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7252 eval echo \""$logdir"\"
7253 )`
7254
7255
7256else
7257 logdir='${prefix}/logs'
7083c021
AC
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
212380e3
AC
7260
7261 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7262 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7263 ac_define_dir=`eval echo $logdir`
7264 ac_define_dir=`eval echo $ac_define_dir`
7265 LOG_DIR="$ac_define_dir"
7266
7267
7268cat >>confdefs.h <<_ACEOF
7269#define LOG_DIR "$ac_define_dir"
7270_ACEOF
7271
7272
7273
7274
7275 logdir=`(
7276 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7277 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7278 eval echo \""$logdir"\"
7279 )`
7280
7281
7282
631ef239
AC
7283fi
7284
212380e3
AC
7285
7286
7083c021
AC
7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7288$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7289
631ef239 7290# Check whether --with-helpdir was given.
7083c021 7291if test "${with_helpdir+set}" = set; then :
631ef239 7292 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294$as_echo "yes" >&6; }
212380e3
AC
7295
7296 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7298 ac_define_dir=`eval echo $helpdir`
7299 ac_define_dir=`eval echo $ac_define_dir`
7300 HELP_DIR="$ac_define_dir"
7301
7302
7303cat >>confdefs.h <<_ACEOF
7304#define HELP_DIR "$ac_define_dir"
7305_ACEOF
7306
7307
7308
7309
7310 helpdir=`(
7311 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7312 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7313 eval echo \""$helpdir"\"
7314 )`
7315
7316
7317else
7318 helpdir='${prefix}/help'
7083c021
AC
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
212380e3
AC
7321
7322 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7324 ac_define_dir=`eval echo $helpdir`
7325 ac_define_dir=`eval echo $ac_define_dir`
7326 HELP_DIR="$ac_define_dir"
7327
7328
7329cat >>confdefs.h <<_ACEOF
7330#define HELP_DIR "$ac_define_dir"
7331_ACEOF
7332
7333
7334
7335
7336 helpdir=`(
7337 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7338 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7339 eval echo \""$helpdir"\"
7340 )`
7341
7342
7343
631ef239
AC
7344fi
7345
212380e3
AC
7346
7347
7083c021
AC
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7349$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7350
631ef239 7351# Check whether --with-moduledir was given.
7083c021 7352if test "${with_moduledir+set}" = set; then :
631ef239 7353 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7355$as_echo "yes" >&6; }
212380e3
AC
7356
7357 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7358 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7359 ac_define_dir=`eval echo $moduledir`
7360 ac_define_dir=`eval echo $ac_define_dir`
7361 MODULE_DIR="$ac_define_dir"
7362
7363
7364cat >>confdefs.h <<_ACEOF
7365#define MODULE_DIR "$ac_define_dir"
7366_ACEOF
7367
7368
7369
7370
7371 moduledir=`(
7372 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7373 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7374 eval echo \""$moduledir"\"
7375 )`
7376
7377
7378else
7379 moduledir='${prefix}/modules'
7083c021
AC
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
212380e3
AC
7382
7383 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7385 ac_define_dir=`eval echo $moduledir`
7386 ac_define_dir=`eval echo $ac_define_dir`
7387 MODULE_DIR="$ac_define_dir"
7388
7389
7390cat >>confdefs.h <<_ACEOF
7391#define MODULE_DIR "$ac_define_dir"
7392_ACEOF
7393
7394
7395
7396
7397 moduledir=`(
7398 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7399 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7400 eval echo \""$moduledir"\"
7401 )`
7402
7403
7404
631ef239
AC
7405fi
7406
7083c021
AC
7407
7408if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7409 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7410 echo "Forcing $SELECT_TYPE to be enabled"
7411else
7412
7413if test ! "x$use_ports" = "xno"; then
7414 for ac_func in port_getn
7415do :
7416 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
7417if test "x$ac_cv_func_port_getn" = x""yes; then :
212380e3 7418 cat >>confdefs.h <<_ACEOF
7083c021 7419#define HAVE_PORT_GETN 1
212380e3 7420_ACEOF
7083c021 7421 haveports=yes
212380e3 7422else
7083c021 7423 haveports=no
212380e3
AC
7424fi
7425done
7426
7083c021
AC
7427 if test "x$haveports" = "xyes" ; then
7428 SELECT_TYPE="ports"
212380e3
AC
7429 fi
7430fi
7431
7083c021
AC
7432if test ! "x$use_select" = "xno"; then
7433 for ac_func in select
7434do :
7435 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
7436if test "x$ac_cv_func_select" = x""yes; then :
7437 cat >>confdefs.h <<_ACEOF
7438#define HAVE_SELECT 1
212380e3 7439_ACEOF
7083c021
AC
7440 haveselect=yes
7441else
7442 haveselect=no
7443fi
7444done
212380e3 7445
7083c021
AC
7446 if test "x$haveselect" = "xyes" ; then
7447 SELECT_TYPE="select"
7448 fi
7449fi
212380e3 7450
7083c021
AC
7451if test ! "x$use_poll" = "xno"; then
7452 for ac_func in poll
7453do :
7454 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7455if test "x$ac_cv_func_poll" = x""yes; then :
7456 cat >>confdefs.h <<_ACEOF
7457#define HAVE_POLL 1
212380e3 7458_ACEOF
7083c021 7459 havepoll=yes
212380e3 7460else
7083c021 7461 havepoll=no
212380e3 7462fi
7083c021 7463done
631ef239 7464
7083c021
AC
7465 if test "x$havepoll" = "xyes" ; then
7466 SELECT_TYPE="poll"
7467 fi
212380e3 7468fi
7083c021
AC
7469
7470if test ! "x$use_kqueue" = "xno"; then
7471 for ac_func in kevent
7472do :
7473 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
7474if test "x$ac_cv_func_kevent" = x""yes; then :
212380e3 7475 cat >>confdefs.h <<_ACEOF
7083c021 7476#define HAVE_KEVENT 1
212380e3
AC
7477_ACEOF
7478 havekqueue=yes
7479else
7480 havekqueue=no
7481fi
7482done
7483
7484 if test "x$havekqueue" = "xyes" ; then
7485 SELECT_TYPE="kqueue"
7486 fi
7487fi
7488
7489if test ! "x$use_epoll" = "xno"; then
7083c021
AC
7490 for ac_func in epoll_ctl
7491do :
7492 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7493if test "x$ac_cv_func_epoll_ctl" = x""yes; then :
212380e3 7494 cat >>confdefs.h <<_ACEOF
7083c021 7495#define HAVE_EPOLL_CTL 1
212380e3
AC
7496_ACEOF
7497 haveepoll=yes
7498else
7499 haveepoll=no
7500fi
7501done
7502
7503 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7504 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7506$as_echo_n "checking for epoll support in kernel... " >&6; }
7507 if test "$cross_compiling" = yes; then :
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
212380e3 7510else
7083c021 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7512/* end confdefs.h. */
7513#include <stdint.h>
7514#include <sys/param.h>
7515#include <sys/types.h>
7516#include <sys/epoll.h>
7517#include <sys/syscall.h>
7518#include <unistd.h>
7519
7520int
7521main(int argc, char **argv)
7522{
7523 int epfd;
7524
7525 epfd = epoll_create(256);
b676ea3b 7526 return (epfd == -1 ? 1 : 0);
212380e3
AC
7527}
7528_ACEOF
7083c021
AC
7529if ac_fn_c_try_run "$LINENO"; then :
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7531$as_echo "yes" >&6; }
212380e3 7532
7083c021 7533$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7534
7535 SELECT_TYPE="epoll"
7536else
7083c021
AC
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538$as_echo "no" >&6; }
212380e3 7539fi
7083c021
AC
7540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7541 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7542fi
631ef239 7543
212380e3
AC
7544 fi
7545 fi
7546
7547haveepollsyscall=no
7548
7549if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7550 if test "x$haveepoll" = "xno" ; then
7083c021
AC
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7552$as_echo_n "checking for epoll system call... " >&6; }
7553 if test "$cross_compiling" = yes; then :
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
212380e3 7556else
7083c021 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7558/* end confdefs.h. */
7559#include <stdint.h>
7560#include <sys/param.h>
7561#include <sys/types.h>
7562#include <sys/epoll.h>
7563#include <sys/syscall.h>
7564#include <unistd.h>
7565
7566int
7567epoll_create(int size)
7568{
7569 return (syscall(__NR_epoll_create, size));
7570}
7571
7572int
7573main(int argc, char **argv)
7574{
7575 int epfd;
7576
7577 epfd = epoll_create(256);
7578 exit (epfd == -1 ? 1 : 0);
7579}
7580_ACEOF
7083c021
AC
7581if ac_fn_c_try_run "$LINENO"; then :
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7583$as_echo "yes" >&6; }
212380e3 7584
7083c021 7585$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7586
7587 SELECT_TYPE="epoll"
7588else
7083c021
AC
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590$as_echo "no" >&6; }
212380e3 7591fi
7083c021
AC
7592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7593 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7594fi
631ef239 7595
212380e3
AC
7596 fi
7597fi
7598
7599fi
7600
7601fi
7602
7603if test -z "$SELECT_TYPE"; then
7083c021 7604 as_fn_error "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
7605fi
7606
7607echo "Using $SELECT_TYPE for select loop."
7608
7609
7610cat >>confdefs.h <<_ACEOF
7611#define SELECT_TYPE "$SELECT_TYPE"
7612_ACEOF
7613
7614
7615
7616
7617
631ef239 7618# Check whether --enable-assert was given.
7083c021 7619if test "${enable_assert+set}" = set; then :
631ef239 7620 enableval=$enable_assert; assert=$enableval
212380e3
AC
7621else
7622 assert=no
631ef239
AC
7623fi
7624
212380e3
AC
7625
7626if test "$assert" = no; then
7627
7083c021 7628$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7629
7630elif test "$assert" = soft; then
7631
7083c021 7632$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
7633
7634
7083c021 7635$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7636
7637elif test "$assert" = yes; then
7638 assert = "hard";
7639fi
7640
7083c021
AC
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7642$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 7643# Check whether --enable-iodebug was given.
7083c021 7644if test "${enable_iodebug+set}" = set; then :
631ef239 7645 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
7646else
7647 iodebug=no
631ef239
AC
7648fi
7649
212380e3
AC
7650
7651if test "$iodebug" = yes; then
7652
7083c021 7653$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 7654
7083c021
AC
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7656$as_echo "yes" >&6; }
212380e3 7657else
7083c021
AC
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
212380e3
AC
7660fi
7661
7662
7083c021
AC
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7664$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 7665# Check whether --enable-profile was given.
7083c021 7666if test "${enable_profile+set}" = set; then :
631ef239 7667 enableval=$enable_profile; profile=$enableval
212380e3
AC
7668else
7669 profile=no
631ef239
AC
7670fi
7671
212380e3
AC
7672
7673if test "$profile" = yes; then
7674 if test "$ac_cv_c_compiler_gnu" = yes; then
7675 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7677$as_echo "yes, adding -pg" >&6; }
212380e3 7678
7083c021 7679$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
7680
7681 else
7083c021
AC
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7683$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
7684 fi
7685else
7083c021
AC
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687$as_echo "no" >&6; }
212380e3
AC
7688fi
7689
631ef239 7690# Check whether --enable-balloc was given.
7083c021 7691if test "${enable_balloc+set}" = set; then :
631ef239 7692 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
7693else
7694 balloc=yes
631ef239
AC
7695fi
7696
212380e3
AC
7697
7698if test "$balloc" = no; then
7699
7083c021 7700$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
7701
7702fi
7703
631ef239 7704# Check whether --enable-small-net was given.
7083c021 7705if test "${enable_small_net+set}" = set; then :
631ef239 7706 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
7707else
7708 small_net=no
631ef239
AC
7709fi
7710
212380e3
AC
7711
7712if test "$small_net" = yes; then
7713
7083c021 7714$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
7715
7716
7083c021 7717$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7718
7719
7083c021 7720$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7721
7722
7083c021 7723$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7724
7725
7083c021 7726$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7727
7728
7083c021 7729$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
7730
7731
7083c021 7732$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7733
7734
7083c021 7735$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7736
7737
7083c021 7738$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7739
7740
7083c021 7741$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7742
7743
7083c021 7744$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7745
7746
7083c021 7747$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7748
7749
7083c021 7750$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
7751
7752
7083c021 7753$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 7754
f589ec6f 7755
7083c021 7756$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
7757
7758
7083c021 7759$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 7760
212380e3
AC
7761else
7762
7083c021 7763$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
7764
7765
7083c021 7766$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7767
7768
7083c021 7769$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
7770
7771
7083c021 7772$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7773
7774
7083c021 7775$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
7776
7777
7083c021 7778$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7779
7780
7083c021 7781$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7782
7783
7083c021 7784$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
7785
7786
7083c021 7787$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
7788
7789
7083c021 7790$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
7791
7792
7083c021 7793$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
7794
7795
7083c021 7796$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
7797
7798
7083c021 7799$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
7800
7801
7083c021 7802$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 7803
f589ec6f 7804
7083c021 7805$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
7806
7807
7083c021 7808$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 7809
212380e3
AC
7810fi
7811
7812
631ef239 7813# Check whether --with-nicklen was given.
7083c021 7814if test "${with_nicklen+set}" = set; then :
631ef239 7815 withval=$with_nicklen;
aa769893 7816 if ! expr "$withval" + 0 >/dev/null 2>&1; then
7083c021 7817 as_fn_error "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 7818 fi
212380e3
AC
7819 if test $withval -ge 50; then
7820 NICKLEN=50
7083c021
AC
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7822$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
212380e3
AC
7823 else
7824 NICKLEN="$withval"
7825 fi
7826
7827else
7828 NICKLEN=15
631ef239 7829fi
212380e3
AC
7830
7831
212380e3 7832
631ef239 7833# Check whether --with-topiclen was given.
7083c021 7834if test "${with_topiclen+set}" = set; then :
631ef239 7835 withval=$with_topiclen;
212380e3
AC
7836 if test $withval -ge 390; then
7837 TOPICLEN=390
7083c021
AC
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7839$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
7840 else
7841 TOPICLEN=$withval
7842 fi
7843
7844else
7845 TOPICLEN=390
212380e3
AC
7846fi
7847
212380e3
AC
7848
7849
7850cat >>confdefs.h <<_ACEOF
7851#define TOPICLEN ${TOPICLEN}
7852_ACEOF
7853
7854
7855cat >>confdefs.h <<_ACEOF
7856#define NICKLEN (${NICKLEN}+1)
7857_ACEOF
7858
7859
b676ea3b 7860shared_modules="yes"
212380e3 7861if test "$shared_modules" = yes; then
212380e3 7862 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7864$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
7865 shared_modules="no"
7866 fi
7867fi
7868
7869if test "$shared_modules" = yes; then
7083c021
AC
7870 DYNLINK_C=dynlink.c
7871 for ac_header in dlfcn.h
7872do :
7873 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7874if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
212380e3 7875 cat >>confdefs.h <<_ACEOF
7083c021 7876#define HAVE_DLFCN_H 1
212380e3
AC
7877_ACEOF
7878
7879fi
7880
7881done
7882
7083c021
AC
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7884$as_echo_n "checking for library containing shl_load... " >&6; }
7885if test "${ac_cv_search_shl_load+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
212380e3
AC
7887else
7888 ac_func_search_save_LIBS=$LIBS
7083c021 7889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7890/* end confdefs.h. */
7891
631ef239
AC
7892/* Override any GCC internal prototype to avoid an error.
7893 Use char because int might match the return type of a GCC
7894 builtin and then its argument prototype would still apply. */
212380e3
AC
7895#ifdef __cplusplus
7896extern "C"
7897#endif
212380e3
AC
7898char shl_load ();
7899int
7900main ()
7901{
631ef239 7902return shl_load ();
212380e3
AC
7903 ;
7904 return 0;
7905}
7906_ACEOF
631ef239
AC
7907for ac_lib in '' dld; do
7908 if test -z "$ac_lib"; then
7909 ac_res="none required"
7910 else
7911 ac_res=-l$ac_lib
7912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7913 fi
7083c021 7914 if ac_fn_c_try_link "$LINENO"; then :
631ef239 7915 ac_cv_search_shl_load=$ac_res
631ef239 7916fi
7083c021
AC
7917rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext
7919 if test "${ac_cv_search_shl_load+set}" = set; then :
631ef239 7920 break
212380e3 7921fi
631ef239 7922done
7083c021
AC
7923if test "${ac_cv_search_shl_load+set}" = set; then :
7924
631ef239
AC
7925else
7926 ac_cv_search_shl_load=no
212380e3 7927fi
631ef239 7928rm conftest.$ac_ext
212380e3
AC
7929LIBS=$ac_func_search_save_LIBS
7930fi
7083c021
AC
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7932$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 7933ac_res=$ac_cv_search_shl_load
7083c021 7934if test "$ac_res" != no; then :
631ef239 7935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
7936
7937
7083c021 7938$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
7939
7940 SUFFIX=".sl"
7941 MOD_TARGET=hpux_shared
7942 SEDOBJ="s/\.o/.sl/g"
7943
7944else
7945
7083c021
AC
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7947$as_echo_n "checking for library containing dlopen... " >&6; }
7948if test "${ac_cv_search_dlopen+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
212380e3
AC
7950else
7951 ac_func_search_save_LIBS=$LIBS
7083c021 7952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7953/* end confdefs.h. */
7954
631ef239
AC
7955/* Override any GCC internal prototype to avoid an error.
7956 Use char because int might match the return type of a GCC
7957 builtin and then its argument prototype would still apply. */
212380e3
AC
7958#ifdef __cplusplus
7959extern "C"
7960#endif
212380e3
AC
7961char dlopen ();
7962int
7963main ()
7964{
631ef239 7965return dlopen ();
212380e3
AC
7966 ;
7967 return 0;
7968}
7969_ACEOF
631ef239
AC
7970for ac_lib in '' dl c_r; do
7971 if test -z "$ac_lib"; then
7972 ac_res="none required"
7973 else
7974 ac_res=-l$ac_lib
7975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7976 fi
7083c021 7977 if ac_fn_c_try_link "$LINENO"; then :
631ef239 7978 ac_cv_search_dlopen=$ac_res
631ef239 7979fi
7083c021
AC
7980rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext
7982 if test "${ac_cv_search_dlopen+set}" = set; then :
631ef239 7983 break
212380e3 7984fi
631ef239 7985done
7083c021
AC
7986if test "${ac_cv_search_dlopen+set}" = set; then :
7987
631ef239
AC
7988else
7989 ac_cv_search_dlopen=no
212380e3 7990fi
631ef239 7991rm conftest.$ac_ext
212380e3
AC
7992LIBS=$ac_func_search_save_LIBS
7993fi
7083c021
AC
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7995$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 7996ac_res=$ac_cv_search_dlopen
7083c021 7997if test "$ac_res" != no; then :
631ef239 7998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
7999
8000
7083c021 8001$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8002
8003 SUFFIX=".so"
8004 MOD_TARGET=shared_modules
8005 SEDOBJ="s/\.o/.so/g"
8006 if test "$AppleGCC" = yes; then
7083c021
AC
8007 for ac_header in mach-o/dyld.h
8008do :
8009 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8010if test "x$ac_cv_header_mach_o_dyld_h" = x""yes; then :
212380e3 8011 cat >>confdefs.h <<_ACEOF
7083c021 8012#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8013_ACEOF
8014
8015fi
8016
8017done
8018
8019 fi
7083c021
AC
8020 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
8021if test "x$ac_cv_func_dlsym" = x""yes; then :
631ef239 8022
212380e3
AC
8023else
8024
7083c021
AC
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8026$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8027 shared_modules=no
8028
8029fi
8030
7083c021
AC
8031 for ac_func in dlfunc
8032do :
8033 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8034if test "x$ac_cv_func_dlfunc" = x""yes; then :
212380e3 8035 cat >>confdefs.h <<_ACEOF
7083c021 8036#define HAVE_DLFUNC 1
212380e3
AC
8037_ACEOF
8038
8039fi
8040done
8041
8042
8043else
8044
8045 shared_modules=no
8046
8047fi
8048
8049
8050fi
8051
8052fi
8053
8054
8055cat >>confdefs.h <<_ACEOF
8056#define SHARED_SUFFIX "$SUFFIX"
8057_ACEOF
8058
8059
8060if test "$shared_modules" = yes; then
8061 # The GNU linker requires the -export-dynamic option to make
8062 # all symbols visible in the dynamic symbol table.
8063 hold_ldflags=$LDFLAGS
7083c021
AC
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8065$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8066 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8068/* end confdefs.h. */
8069
8070int
8071main ()
8072{
8073int i;
8074 ;
8075 return 0;
8076}
8077_ACEOF
7083c021 8078if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8079 found=yes
8080else
7083c021 8081 found=no
212380e3 8082fi
7083c021
AC
8083rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8085 LDFLAGS=$hold_ldflags
8086
8087 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8088 found="no, IRIX ld uses -B,dynamic"
8089 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8090 fi
8091
8092 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8093 found="no, AIX ld uses -G -brtl"
8094 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8095 fi
8096
7083c021
AC
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8098$as_echo "$found" >&6; }
212380e3
AC
8099
8100 if test "$found" = yes; then
8101 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8102 fi
8103
7083c021
AC
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8105$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8106 if test "$SGS" = "yes"; then
7083c021
AC
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8108$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8109 PICFLAGS="-KPIC -DPIC -G"
8110 fi
8111
8112 if test "$AppleGCC" = "yes"; then
7083c021
AC
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8114$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8115 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8116 fi
8117 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8119$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8120 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8122$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8123
8124 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
212380e3 8127 else
7083c021
AC
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129$as_echo "yes" >&6; }
212380e3
AC
8130 PICFLAGS="$PICFLAGS +ESfic"
8131 fi
8132
8133 LDFLAGS="${LDFLAGS} -Wl,-E"
8134 fi
8135 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8137$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8138 PICFLAGS="-shared -expect_unresolved '*' "
8139 LDFLAGS="-call_shared"
8140 fi
8141 if test -z "$PICFLAGS"; then
8142 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8144$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8145 PICFLAGS="-fPIC -DPIC -shared"
8146 else
7083c021
AC
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
212380e3
AC
8149 shared_modules=no
8150 fi
8151 fi
8152fi
8153
1a82970f
JT
8154# rpath, for finding libratbox.so at run time
8155hold_ldflags=$LDFLAGS
7083c021
AC
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8157$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8158LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8160/* end confdefs.h. */
8161
8162int
8163main ()
8164{
8165int i;
8166 ;
8167 return 0;
8168}
8169_ACEOF
7083c021 8170if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8171 found=yes
8172else
7083c021 8173 found=no
1a82970f 8174fi
7083c021
AC
8175rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
1a82970f 8177LDFLAGS=$hold_ldflags
7083c021
AC
8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8179$as_echo "$found" >&6; }
1a82970f
JT
8180if test "$found" = yes; then
8181 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8182fi
8183
212380e3
AC
8184# This must be down here, or it will mess up checks like the ones
8185# for -Wl,-export-dynamic
8186# -- jilles
d2c5159a 8187CWARNS=""
631ef239 8188# Check whether --enable-warnings was given.
7083c021 8189if test "${enable_warnings+set}" = set; then :
631ef239 8190 enableval=$enable_warnings;
212380e3
AC
8191IRC_CFLAGS="$IRC_CFLAGS -O0"
8192CFLAGS="$IRC_CFLAGS"
8193
8194
7083c021
AC
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8196$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8197 if test "${GCC-no}" = yes
8198 then
7083c021
AC
8199 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
212380e3
AC
8201else
8202
8203 oldcflags="${CFLAGS-}"
8204 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8206/* end confdefs.h. */
8207
8208#include <string.h>
8209#include <stdio.h>
8210int main(void);
8211
8212int
8213main ()
8214{
8215
b1fc1658 8216 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8217
8218 ;
8219 return 0;
8220}
8221_ACEOF
7083c021 8222if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8223 charybdis_cv_c_gcc_w_all=yes
8224else
7083c021 8225 charybdis_cv_c_gcc_w_all=no
212380e3 8226fi
631ef239 8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8228 CFLAGS="${oldcflags}"
8229fi
8230
8231 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8232 CWARNS="${CWARNS}-Wall "
7083c021
AC
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8234$as_echo "ok" >&6; }
212380e3
AC
8235 else
8236 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
212380e3
AC
8239 fi
8240 else
7083c021
AC
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8242$as_echo "no" >&6; }
212380e3
AC
8243 fi
8244
8245
7083c021
AC
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8247$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8248 if test "${GCC-no}" = yes
8249 then
7083c021
AC
8250 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then :
8251 $as_echo_n "(cached) " >&6
212380e3
AC
8252else
8253
8254 oldcflags="${CFLAGS-}"
8255 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8257/* end confdefs.h. */
8258
8259#include <string.h>
8260#include <stdio.h>
8261int main(void);
8262
8263int
8264main ()
8265{
8266
b1fc1658 8267 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8268
8269 ;
8270 return 0;
8271}
8272_ACEOF
7083c021 8273if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8274 charybdis_cv_c_gcc_w_pointer_arith=yes
8275else
7083c021 8276 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8277fi
631ef239 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8279 CFLAGS="${oldcflags}"
8280fi
8281
8282 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8283 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8285$as_echo "ok" >&6; }
212380e3
AC
8286 else
8287 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289$as_echo "no" >&6; }
212380e3
AC
8290 fi
8291 else
7083c021
AC
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
212380e3
AC
8294 fi
8295
8296
7083c021
AC
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8298$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8299 if test "${GCC-no}" = yes
8300 then
7083c021
AC
8301 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
212380e3
AC
8303else
8304
8305 oldcflags="${CFLAGS-}"
8306 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8308/* end confdefs.h. */
8309
8310#include <string.h>
8311#include <stdio.h>
8312int main(void);
8313
8314int
8315main ()
8316{
8317
b1fc1658 8318 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8319
8320 ;
8321 return 0;
8322}
8323_ACEOF
7083c021 8324if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8325 charybdis_cv_c_gcc_w_implicit=yes
8326else
7083c021 8327 charybdis_cv_c_gcc_w_implicit=no
212380e3 8328fi
631ef239 8329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8330 CFLAGS="${oldcflags}"
8331fi
8332
8333 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8334 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8336$as_echo "ok" >&6; }
212380e3
AC
8337 else
8338 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
212380e3
AC
8341 fi
8342 else
7083c021
AC
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
212380e3
AC
8345 fi
8346
8347
7083c021
AC
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8349$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8350 if test "${GCC-no}" = yes
8351 then
7083c021
AC
8352 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
212380e3
AC
8354else
8355
8356 oldcflags="${CFLAGS-}"
8357 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8359/* end confdefs.h. */
8360
8361#include <string.h>
8362#include <stdio.h>
8363int main(void);
8364
8365int
8366main ()
8367{
8368
b1fc1658 8369 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8370
8371 ;
8372 return 0;
8373}
8374_ACEOF
8375if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8376 charybdis_cv_c_gcc_w_cast_align=yes
8377else
7083c021 8378 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8379fi
631ef239 8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8381 CFLAGS="${oldcflags}"
8382fi
8383
8384 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8385 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8387$as_echo "ok" >&6; }
212380e3
AC
8388 else
8389 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
212380e3
AC
8392 fi
8393 else
7083c021
AC
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395$as_echo "no" >&6; }
212380e3
AC
8396 fi
8397
8398
7083c021
AC
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8400$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8401 if test "${GCC-no}" = yes
8402 then
7083c021
AC
8403 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
212380e3
AC
8405else
8406
8407 oldcflags="${CFLAGS-}"
8408 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8410/* end confdefs.h. */
8411
8412#include <string.h>
8413#include <stdio.h>
8414int main(void);
8415
8416int
8417main ()
8418{
8419
b1fc1658 8420 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8421
8422 ;
8423 return 0;
8424}
8425_ACEOF
7083c021 8426if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8427 charybdis_cv_c_gcc_w_cast_qual=yes
8428else
7083c021 8429 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8430fi
631ef239 8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8432 CFLAGS="${oldcflags}"
8433fi
8434
8435 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8436 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8438$as_echo "ok" >&6; }
212380e3
AC
8439 else
8440 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
212380e3
AC
8443 fi
8444 else
7083c021
AC
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
212380e3
AC
8447 fi
8448
8449
7083c021
AC
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8451$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8452 if test "${GCC-no}" = yes
8453 then
7083c021
AC
8454 if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
d2c5159a
JT
8456else
8457
8458 oldcflags="${CFLAGS-}"
8459 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8461/* end confdefs.h. */
8462
8463#include <string.h>
8464#include <stdio.h>
8465int main(void);
8466
8467int
8468main ()
8469{
8470
8471 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8472
8473 ;
8474 return 0;
8475}
8476_ACEOF
7083c021 8477if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8478 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8479else
7083c021 8480 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8481fi
d2c5159a
JT
8482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 CFLAGS="${oldcflags}"
8484fi
8485
bbe58888 8486 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8487 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8489$as_echo "ok" >&6; }
d2c5159a 8490 else
bbe58888 8491 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
bbe58888
VY
8494 fi
8495 else
7083c021
AC
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497$as_echo "no" >&6; }
bbe58888
VY
8498 fi
8499
8500
7083c021
AC
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8502$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8503 if test "${GCC-no}" = yes
8504 then
7083c021
AC
8505 if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
bbe58888
VY
8507else
8508
8509 oldcflags="${CFLAGS-}"
8510 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8512/* end confdefs.h. */
8513
8514#include <string.h>
8515#include <stdio.h>
8516int main(void);
8517
8518int
8519main ()
8520{
8521
8522 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8523
8524 ;
8525 return 0;
8526}
8527_ACEOF
7083c021 8528if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8529 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8530else
7083c021 8531 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8532fi
bbe58888
VY
8533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 CFLAGS="${oldcflags}"
8535fi
8536
8537 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8538 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8540$as_echo "ok" >&6; }
bbe58888
VY
8541 else
8542 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
d2c5159a
JT
8545 fi
8546 else
7083c021
AC
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548$as_echo "no" >&6; }
d2c5159a
JT
8549 fi
8550
8551
7083c021
AC
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8553$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
8554 if test "${GCC-no}" = yes
8555 then
7083c021
AC
8556 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
212380e3
AC
8558else
8559
8560 oldcflags="${CFLAGS-}"
8561 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8563/* end confdefs.h. */
8564
8565#include <string.h>
8566#include <stdio.h>
8567int main(void);
8568
8569int
8570main ()
8571{
8572
b1fc1658 8573 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8574
8575 ;
8576 return 0;
8577}
8578_ACEOF
7083c021 8579if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8580 charybdis_cv_c_gcc_prototypes=yes
8581else
7083c021 8582 charybdis_cv_c_gcc_prototypes=no
212380e3 8583fi
631ef239 8584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8585 CFLAGS="${oldcflags}"
8586fi
8587
8588 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8589 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8591$as_echo "ok" >&6; }
212380e3
AC
8592 else
8593 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595$as_echo "no" >&6; }
212380e3
AC
8596 fi
8597 else
7083c021
AC
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
212380e3
AC
8600 fi
8601
8602
7083c021
AC
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8604$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
8605 if test "${GCC-no}" = yes
8606 then
7083c021
AC
8607 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
212380e3
AC
8609else
8610
8611 oldcflags="${CFLAGS-}"
8612 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8614/* end confdefs.h. */
8615
8616#include <string.h>
8617#include <stdio.h>
8618int main(void);
8619
8620int
8621main ()
8622{
8623
b1fc1658 8624 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8625
8626 ;
8627 return 0;
8628}
8629_ACEOF
7083c021 8630if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8631 charybdis_cv_c_gcc_parenthesis=yes
8632else
7083c021 8633 charybdis_cv_c_gcc_parenthesis=no
212380e3 8634fi
631ef239 8635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8636 CFLAGS="${oldcflags}"
8637fi
8638
8639 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8640 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8642$as_echo "ok" >&6; }
212380e3
AC
8643 else
8644 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646$as_echo "no" >&6; }
212380e3
AC
8647 fi
8648 else
7083c021
AC
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650$as_echo "no" >&6; }
212380e3
AC
8651 fi
8652
8653
7083c021
AC
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8655$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
8656 if test "${GCC-no}" = yes
8657 then
7083c021
AC
8658 if test "${charybdis_cv_c_gcc_w+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
212380e3
AC
8660else
8661
8662 oldcflags="${CFLAGS-}"
8663 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8665/* end confdefs.h. */
8666
8667#include <string.h>
8668#include <stdio.h>
8669int main(void);
8670
8671int
8672main ()
8673{
8674
b1fc1658 8675 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8676
8677 ;
8678 return 0;
8679}
8680_ACEOF
7083c021 8681if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8682 charybdis_cv_c_gcc_w=yes
8683else
7083c021 8684 charybdis_cv_c_gcc_w=no
212380e3 8685fi
631ef239 8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8687 CFLAGS="${oldcflags}"
8688fi
8689
8690 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8691 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8693$as_echo "ok" >&6; }
212380e3
AC
8694 else
8695 charybdis_cv_c_gcc_w=''
7083c021
AC
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697$as_echo "no" >&6; }
212380e3
AC
8698 fi
8699 else
7083c021
AC
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8701$as_echo "no" >&6; }
212380e3
AC
8702 fi
8703
8704
7083c021
AC
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8706$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
8707 if test "${GCC-no}" = yes
8708 then
7083c021
AC
8709 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
212380e3
AC
8711else
8712
8713 oldcflags="${CFLAGS-}"
8714 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8716/* end confdefs.h. */
8717
8718#include <string.h>
8719#include <stdio.h>
8720int main(void);
8721
8722int
8723main ()
8724{
8725
b1fc1658 8726 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8727
8728 ;
8729 return 0;
8730}
8731_ACEOF
7083c021 8732if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8733 charybdis_cv_c_gcc_w_extra=yes
8734else
7083c021 8735 charybdis_cv_c_gcc_w_extra=no
212380e3 8736fi
631ef239 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8738 CFLAGS="${oldcflags}"
8739fi
8740
8741 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
8742 CWARNS="${CWARNS}-Wextra "
7083c021
AC
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8744$as_echo "ok" >&6; }
212380e3
AC
8745 else
8746 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8748$as_echo "no" >&6; }
212380e3
AC
8749 fi
8750 else
7083c021
AC
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
212380e3
AC
8753 fi
8754
8755
7083c021
AC
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8757$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
8758 if test "${GCC-no}" = yes
8759 then
7083c021
AC
8760 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
212380e3
AC
8762else
8763
8764 oldcflags="${CFLAGS-}"
8765 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8767/* end confdefs.h. */
8768
8769#include <string.h>
8770#include <stdio.h>
8771int main(void);
8772
8773int
8774main ()
8775{
8776
b1fc1658 8777 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8778
8779 ;
8780 return 0;
8781}
8782_ACEOF
7083c021 8783if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8784 charybdis_cv_c_gcc_w_shadow=yes
8785else
7083c021 8786 charybdis_cv_c_gcc_w_shadow=no
212380e3 8787fi
631ef239 8788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8789 CFLAGS="${oldcflags}"
8790fi
8791
8792 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
8793 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8795$as_echo "ok" >&6; }
212380e3
AC
8796 else
8797 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799$as_echo "no" >&6; }
212380e3
AC
8800 fi
8801 else
7083c021
AC
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8803$as_echo "no" >&6; }
212380e3
AC
8804 fi
8805
8806
7083c021
AC
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8808$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
8809 if test "${GCC-no}" = yes
8810 then
7083c021
AC
8811 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then :
8812 $as_echo_n "(cached) " >&6
212380e3
AC
8813else
8814
8815 oldcflags="${CFLAGS-}"
8816 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8818/* end confdefs.h. */
8819
8820#include <string.h>
8821#include <stdio.h>
8822int main(void);
8823
8824int
8825main ()
8826{
8827
b1fc1658 8828 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8829
8830 ;
8831 return 0;
8832}
8833_ACEOF
7083c021 8834if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8835 charybdis_cv_c_gcc_w_missing_noreturn=yes
8836else
7083c021 8837 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 8838fi
631ef239 8839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8840 CFLAGS="${oldcflags}"
8841fi
8842
8843 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
8844 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8846$as_echo "ok" >&6; }
212380e3
AC
8847 else
8848 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850$as_echo "no" >&6; }
212380e3
AC
8851 fi
8852 else
7083c021
AC
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854$as_echo "no" >&6; }
212380e3
AC
8855 fi
8856
8857
7083c021
AC
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8859$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
8860 if test "${GCC-no}" = yes
8861 then
7083c021
AC
8862 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
212380e3
AC
8864else
8865
8866 oldcflags="${CFLAGS-}"
8867 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8869/* end confdefs.h. */
8870
8871#include <string.h>
8872#include <stdio.h>
8873int main(void);
8874
8875int
8876main ()
8877{
8878
b1fc1658 8879 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8880
8881 ;
8882 return 0;
8883}
8884_ACEOF
7083c021 8885if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8886 charybdis_cv_c_gcc_w_undef=yes
8887else
7083c021 8888 charybdis_cv_c_gcc_w_undef=no
212380e3 8889fi
631ef239 8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8891 CFLAGS="${oldcflags}"
8892fi
8893
8894 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
8895 CWARNS="${CWARNS}-Wundef "
7083c021
AC
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8897$as_echo "ok" >&6; }
212380e3
AC
8898 else
8899 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901$as_echo "no" >&6; }
212380e3
AC
8902 fi
8903 else
7083c021
AC
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905$as_echo "no" >&6; }
212380e3
AC
8906 fi
8907
8908
7083c021
AC
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
8910$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
8911 if test "${GCC-no}" = yes
8912 then
7083c021
AC
8913 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
212380e3
AC
8915else
8916
8917 oldcflags="${CFLAGS-}"
8918 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8920/* end confdefs.h. */
8921
8922#include <string.h>
8923#include <stdio.h>
8924int main(void);
8925
8926int
8927main ()
8928{
8929
b1fc1658 8930 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
7083c021 8936if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8937 charybdis_cv_c_gcc_w_packed=yes
8938else
7083c021 8939 charybdis_cv_c_gcc_w_packed=no
212380e3 8940fi
631ef239 8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8942 CFLAGS="${oldcflags}"
8943fi
8944
8945 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
8946 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8948$as_echo "ok" >&6; }
212380e3
AC
8949 else
8950 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
212380e3
AC
8953 fi
8954 else
7083c021
AC
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8956$as_echo "no" >&6; }
212380e3
AC
8957 fi
8958
8959
7083c021
AC
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
8961$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
8962 if test "${GCC-no}" = yes
8963 then
7083c021
AC
8964 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
212380e3
AC
8966else
8967
8968 oldcflags="${CFLAGS-}"
8969 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8971/* end confdefs.h. */
8972
8973#include <string.h>
8974#include <stdio.h>
8975int main(void);
8976
8977int
8978main ()
8979{
8980
b1fc1658 8981 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8982
8983 ;
8984 return 0;
8985}
8986_ACEOF
7083c021 8987if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8988 charybdis_cv_c_gcc_w_nested_externs=yes
8989else
7083c021 8990 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 8991fi
631ef239 8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8993 CFLAGS="${oldcflags}"
8994fi
8995
8996 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
8997 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8999$as_echo "ok" >&6; }
212380e3
AC
9000 else
9001 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
212380e3
AC
9004 fi
9005 else
7083c021
AC
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007$as_echo "no" >&6; }
212380e3
AC
9008 fi
9009
9010
7083c021
AC
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9012$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9013 if test "${GCC-no}" = yes
9014 then
7083c021
AC
9015 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
212380e3
AC
9017else
9018
9019 oldcflags="${CFLAGS-}"
9020 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9022/* end confdefs.h. */
9023
9024#include <string.h>
9025#include <stdio.h>
9026int main(void);
9027
9028int
9029main ()
9030{
9031
b1fc1658 9032 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9033
9034 ;
9035 return 0;
9036}
9037_ACEOF
7083c021 9038if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9039 charybdis_cv_c_gcc_w_unused=yes
9040else
7083c021 9041 charybdis_cv_c_gcc_w_unused=no
212380e3 9042fi
631ef239 9043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9044 CFLAGS="${oldcflags}"
9045fi
9046
9047 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9048 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9050$as_echo "ok" >&6; }
212380e3
AC
9051 else
9052 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054$as_echo "no" >&6; }
212380e3
AC
9055 fi
9056 else
7083c021
AC
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058$as_echo "no" >&6; }
212380e3
AC
9059 fi
9060
9061
7083c021
AC
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9063$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9064 if test "${GCC-no}" = yes
9065 then
7083c021
AC
9066 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
212380e3
AC
9068else
9069
9070 oldcflags="${CFLAGS-}"
9071 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9073/* end confdefs.h. */
9074
9075#include <string.h>
9076#include <stdio.h>
9077int main(void);
9078
9079int
9080main ()
9081{
9082
b1fc1658 9083 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9084
9085 ;
9086 return 0;
9087}
9088_ACEOF
7083c021 9089if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9090 charybdis_cv_c_gcc_w_redundant_decls=yes
9091else
7083c021 9092 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9093fi
631ef239 9094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9095 CFLAGS="${oldcflags}"
9096fi
9097
9098 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9099 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9101$as_echo "ok" >&6; }
212380e3
AC
9102 else
9103 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105$as_echo "no" >&6; }
212380e3
AC
9106 fi
9107 else
7083c021
AC
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109$as_echo "no" >&6; }
212380e3
AC
9110 fi
9111
9112
7083c021
AC
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9114$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9115 if test "${GCC-no}" = yes
9116 then
7083c021
AC
9117 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
212380e3
AC
9119else
9120
9121 oldcflags="${CFLAGS-}"
9122 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9124/* end confdefs.h. */
9125
9126#include <string.h>
9127#include <stdio.h>
9128int main(void);
9129
9130int
9131main ()
9132{
9133
b1fc1658 9134 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9135
9136 ;
9137 return 0;
9138}
9139_ACEOF
7083c021 9140if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9141 charybdis_cv_c_gcc_w_float_equal=yes
9142else
7083c021 9143 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9144fi
631ef239 9145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9146 CFLAGS="${oldcflags}"
9147fi
9148
9149 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9150 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9152$as_echo "ok" >&6; }
212380e3
AC
9153 else
9154 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156$as_echo "no" >&6; }
212380e3
AC
9157 fi
9158 else
7083c021
AC
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160$as_echo "no" >&6; }
212380e3
AC
9161 fi
9162
9163
7083c021
AC
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9165$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9166 if test "${GCC-no}" = yes
9167 then
7083c021
AC
9168 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
212380e3
AC
9170else
9171
9172 oldcflags="${CFLAGS-}"
4a584d41 9173 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9175/* end confdefs.h. */
9176
9177#include <string.h>
9178#include <stdio.h>
9179int main(void);
9180
9181int
9182main ()
9183{
7083c021
AC
9184
9185 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9186
212380e3
AC
9187 ;
9188 return 0;
9189}
9190_ACEOF
7083c021
AC
9191if ac_fn_c_try_compile "$LINENO"; then :
9192 charybdis_cv_c_gcc_w_format=yes
212380e3 9193else
7083c021
AC
9194 charybdis_cv_c_gcc_w_format=no
9195fi
9196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9197 CFLAGS="${oldcflags}"
9198fi
9199
9200 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9201 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9203$as_echo "ok" >&6; }
9204 else
9205 charybdis_cv_c_gcc_w_format=''
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9207$as_echo "no" >&6; }
9208 fi
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211$as_echo "no" >&6; }
9212 fi
9213
9214
9215IRC_CFLAGS="$CFLAGS"
212380e3 9216
212380e3 9217fi
631ef239 9218
7083c021
AC
9219
9220if test "$shared_modules" = no; then
9221 DYNLINK_C=""
9222 MOD_TARGET="libmodules.a"
9223 MODULES_LIBS="../modules/libmodules.a"
9224 SEDOBJ=""
9225
9226$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9227
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9229$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9230fi
7083c021
AC
9231
9232if test "$shared_modules" = yes; then
9233
9234 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
9235if test "x$ac_cv_func_nlist" = x""yes; then :
9236
212380e3 9237else
7083c021
AC
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9239$as_echo_n "checking for nlist in -ldl... " >&6; }
9240if test "${ac_cv_lib_dl_nlist+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
212380e3
AC
9242else
9243 ac_check_lib_save_LIBS=$LIBS
9244LIBS="-ldl $LIBS"
7083c021 9245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9246/* end confdefs.h. */
9247
631ef239
AC
9248/* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
212380e3
AC
9251#ifdef __cplusplus
9252extern "C"
9253#endif
212380e3
AC
9254char nlist ();
9255int
9256main ()
9257{
631ef239 9258return nlist ();
212380e3
AC
9259 ;
9260 return 0;
9261}
9262_ACEOF
7083c021 9263if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9264 ac_cv_lib_dl_nlist=yes
9265else
7083c021 9266 ac_cv_lib_dl_nlist=no
212380e3 9267fi
7083c021
AC
9268rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9270LIBS=$ac_check_lib_save_LIBS
9271fi
7083c021
AC
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9273$as_echo "$ac_cv_lib_dl_nlist" >&6; }
9274if test "x$ac_cv_lib_dl_nlist" = x""yes; then :
212380e3
AC
9275 nlist_lib="-ldl"
9276else
7083c021
AC
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9278$as_echo_n "checking for nlist in -lelf... " >&6; }
9279if test "${ac_cv_lib_elf_nlist+set}" = set; then :
9280 $as_echo_n "(cached) " >&6
212380e3
AC
9281else
9282 ac_check_lib_save_LIBS=$LIBS
9283LIBS="-lelf $LIBS"
7083c021 9284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9285/* end confdefs.h. */
9286
631ef239
AC
9287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
212380e3
AC
9290#ifdef __cplusplus
9291extern "C"
9292#endif
212380e3
AC
9293char nlist ();
9294int
9295main ()
9296{
631ef239 9297return nlist ();
212380e3
AC
9298 ;
9299 return 0;
9300}
9301_ACEOF
7083c021 9302if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9303 ac_cv_lib_elf_nlist=yes
9304else
7083c021 9305 ac_cv_lib_elf_nlist=no
212380e3 9306fi
7083c021
AC
9307rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9309LIBS=$ac_check_lib_save_LIBS
9310fi
7083c021
AC
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9312$as_echo "$ac_cv_lib_elf_nlist" >&6; }
9313if test "x$ac_cv_lib_elf_nlist" = x""yes; then :
212380e3
AC
9314 nlist_lib="-lelf"
9315fi
9316
9317
9318fi
9319
9320
9321fi
9322
9323
7083c021
AC
9324 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9325if test "x$ac_cv_header_libelf_nlist_h" = x""yes; then :
212380e3
AC
9326 nlist_h="libelf/nlist.h"
9327fi
9328
9329
7083c021
AC
9330 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9331if test "x$ac_cv_header_elf_nlist_h" = x""yes; then :
212380e3
AC
9332 nlist_h="elf/nlist.h"
9333fi
9334
9335
7083c021
AC
9336 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9337if test "x$ac_cv_header_nlist_h" = x""yes; then :
212380e3
AC
9338 nlist_h="nlist.h"
9339fi
9340
9341
9342 if test x"$nlist_h" = "x"; then
9343
9344cat >>confdefs.h <<_ACEOF
9345#define SYMBOL_PREFIX ""
9346_ACEOF
9347
9348 else
7083c021
AC
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9350$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9351 if test "${symbol_underscores+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
212380e3
AC
9353else
9354
9355cat << EOF > conftest.c
9356#include <$nlist_h>
9357#include <stdio.h>
9358#include <stdlib.h>
9359void _modinit(void);
9360int main(int argc, char *argv[]) {
9361 int i;
9362 struct nlist nl[5];
9363
9364 /* fill the names in this way, so it'll work almost everywhere */
9365 nl[0].n_name = "_modinit";
9366 nl[1].n_name = "__modinit";
9367 nl[2].n_name = "___modinit";
9368 nl[3].n_name = "____modinit";
9369 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9370
9371 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9372 for(i = 0; i < 4; i++) {
9373 if(nl[i].n_value != NULL)
9374 {
9375 int j;
9376 for(j = 0; j < i; j++)
9377 printf("_");
9378 exit(i);
9379 }
9380 }
9381 exit(-1);
9382}
9383void _modinit(void) { return; }
9384EOF
9385 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9386 symbol_underscores=`./conftest conftest`
7083c021
AC
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9388$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9389 $RM -f conftest conftest.c
9390
9391fi
9392
9393
9394cat >>confdefs.h <<_ACEOF
9395#define SYMBOL_PREFIX "${symbol_underscores}"
9396_ACEOF
9397
9398 fi
9399fi
9400
d2c5159a
JT
9401IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9402
212380e3
AC
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416if test "$prefix" = "NONE"; then
9417
9418cat >>confdefs.h <<_ACEOF
9419#define IRCD_PREFIX "$ac_default_prefix"
9420_ACEOF
9421
9422
9423else
9424
9425
9426 prefix=`echo $prefix | sed 's/\/$//'`
9427
9428cat >>confdefs.h <<_ACEOF
9429#define IRCD_PREFIX "$prefix"
9430_ACEOF
9431
9432
9433fi
9434
7083c021 9435ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
212380e3
AC
9436
9437
9438cat >confcache <<\_ACEOF
9439# This file is a shell script that caches the results of configure
9440# tests run on this system so they can be shared between configure
9441# scripts and configure runs, see configure's option --config-cache.
9442# It is not useful on other systems. If it contains results you don't
9443# want to keep, you may remove or edit it.
9444#
9445# config.status only pays attention to the cache file if you give it
9446# the --recheck option to rerun configure.
9447#
9448# `ac_cv_env_foo' variables (set or unset) will be overridden when
9449# loading this file, other *unset* `ac_cv_foo' will be assigned the
9450# following values.
9451
9452_ACEOF
9453
9454# The following way of writing the cache mishandles newlines in values,
9455# but we know of no workaround that is simple, portable, and efficient.
631ef239 9456# So, we kill variables containing newlines.
212380e3
AC
9457# Ultrix sh set writes to stderr and can't be redirected directly,
9458# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9459(
9460 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9461 eval ac_val=\$$ac_var
9462 case $ac_val in #(
9463 *${as_nl}*)
9464 case $ac_var in #(
7083c021
AC
9465 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9466$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9467 esac
9468 case $ac_var in #(
9469 _ | IFS | as_nl) ;; #(
7083c021
AC
9470 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9471 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9472 esac ;;
9473 esac
9474 done
9475
212380e3 9476 (set) 2>&1 |
631ef239
AC
9477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9478 *${as_nl}ac_space=\ *)
7083c021
AC
9479 # `set' does not quote correctly, so add quotes: double-quote
9480 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9481 sed -n \
9482 "s/'/'\\\\''/g;
9483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9484 ;; #(
212380e3
AC
9485 *)
9486 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9488 ;;
631ef239
AC
9489 esac |
9490 sort
9491) |
212380e3 9492 sed '
631ef239 9493 /^ac_cv_env_/b end
212380e3 9494 t clear
631ef239 9495 :clear
212380e3
AC
9496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9497 t end
631ef239
AC
9498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9499 :end' >>confcache
9500if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9501 if test -w "$cache_file"; then
9502 test "x$cache_file" != "x/dev/null" &&
7083c021
AC
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9504$as_echo "$as_me: updating cache $cache_file" >&6;}
212380e3
AC
9505 cat confcache >$cache_file
9506 else
7083c021
AC
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9508$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9509 fi
9510fi
9511rm -f confcache
9512
9513test "x$prefix" = xNONE && prefix=$ac_default_prefix
9514# Let make expand exec_prefix.
9515test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9516
212380e3
AC
9517DEFS=-DHAVE_CONFIG_H
9518
9519ac_libobjs=
9520ac_ltlibobjs=
9521for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9522 # 1. Remove the extension, and $U if already installed.
631ef239 9523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9526 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9529done
9530LIBOBJS=$ac_libobjs
9531
9532LTLIBOBJS=$ac_ltlibobjs
9533
9534
9535
7083c021
AC
9536
9537
212380e3 9538: ${CONFIG_STATUS=./config.status}
7083c021 9539ac_write_fail=0
212380e3
AC
9540ac_clean_files_save=$ac_clean_files
9541ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9543$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9544as_write_fail=0
9545cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
9546#! $SHELL
9547# Generated by $as_me.
9548# Run this file to recreate the current configuration.
9549# Compiler output produced by configure, useful for debugging
9550# configure, is in config.log if it exists.
9551
9552debug=false
9553ac_cs_recheck=false
9554ac_cs_silent=false
212380e3 9555
7083c021
AC
9556SHELL=\${CONFIG_SHELL-$SHELL}
9557export SHELL
9558_ASEOF
9559cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9560## -------------------- ##
9561## M4sh Initialization. ##
9562## -------------------- ##
212380e3 9563
631ef239
AC
9564# Be more Bourne compatible
9565DUALCASE=1; export DUALCASE # for MKS sh
7083c021 9566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
9567 emulate sh
9568 NULLCMD=:
7083c021 9569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
9570 # is contrary to our usage. Disable this feature.
9571 alias -g '${1+"$@"}'='"$@"'
631ef239 9572 setopt NO_GLOB_SUBST
212380e3 9573else
7083c021
AC
9574 case `(set -o) 2>/dev/null` in #(
9575 *posix*) :
9576 set -o posix ;; #(
9577 *) :
9578 ;;
631ef239 9579esac
212380e3
AC
9580fi
9581
9582
7083c021
AC
9583as_nl='
9584'
9585export as_nl
9586# Printing a long string crashes Solaris 7 /usr/bin/printf.
9587as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9590# Prefer a ksh shell builtin over an external printf program on Solaris,
9591# but without wasting forks for bash or zsh.
9592if test -z "$BASH_VERSION$ZSH_VERSION" \
9593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9594 as_echo='print -r --'
9595 as_echo_n='print -rn --'
9596elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9597 as_echo='printf %s\n'
9598 as_echo_n='printf %s'
9599else
9600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9602 as_echo_n='/usr/ucb/echo -n'
631ef239 9603 else
7083c021
AC
9604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9605 as_echo_n_body='eval
9606 arg=$1;
9607 case $arg in #(
9608 *"$as_nl"*)
9609 expr "X$arg" : "X\\(.*\\)$as_nl";
9610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9611 esac;
9612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9613 '
9614 export as_echo_n_body
9615 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 9616 fi
7083c021
AC
9617 export as_echo_body
9618 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
9619fi
9620
7083c021
AC
9621# The user is always right.
9622if test "${PATH_SEPARATOR+set}" != set; then
9623 PATH_SEPARATOR=:
9624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9626 PATH_SEPARATOR=';'
9627 }
631ef239
AC
9628fi
9629
9630
9631# IFS
9632# We need space, tab and new line, in precisely that order. Quoting is
9633# there to prevent editors from complaining about space-tab.
9634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9635# splitting by setting IFS to empty value.)
631ef239
AC
9636IFS=" "" $as_nl"
9637
9638# Find who we are. Look in the path if we contain no directory separator.
7083c021 9639case $0 in #((
631ef239
AC
9640 *[\\/]* ) as_myself=$0 ;;
9641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
7083c021
AC
9646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9647 done
631ef239
AC
9648IFS=$as_save_IFS
9649
9650 ;;
9651esac
9652# We did not find ourselves, most probably we were run as `sh COMMAND'
9653# in which case we are not to be found in the path.
9654if test "x$as_myself" = x; then
9655 as_myself=$0
9656fi
9657if test ! -f "$as_myself"; then
7083c021
AC
9658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9659 exit 1
631ef239
AC
9660fi
9661
7083c021
AC
9662# Unset variables that we do not need and which cause bugs (e.g. in
9663# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9664# suppresses any "Segmentation fault" message there. '((' could
9665# trigger a bug in pdksh 5.2.14.
9666for as_var in BASH_ENV ENV MAIL MAILPATH
9667do eval test x\${$as_var+set} = xset \
9668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 9669done
212380e3
AC
9670PS1='$ '
9671PS2='> '
9672PS4='+ '
9673
7083c021
AC
9674# NLS nuisances.
9675LC_ALL=C
9676export LC_ALL
9677LANGUAGE=C
9678export LANGUAGE
9679
9680# CDPATH.
9681(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9682
9683
9684# as_fn_error ERROR [LINENO LOG_FD]
9685# ---------------------------------
9686# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9687# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9688# script with status $?, using 1 if that was 0.
9689as_fn_error ()
9690{
9691 as_status=$?; test $as_status -eq 0 && as_status=1
9692 if test "$3"; then
9693 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
212380e3 9695 fi
7083c021
AC
9696 $as_echo "$as_me: error: $1" >&2
9697 as_fn_exit $as_status
9698} # as_fn_error
9699
9700
9701# as_fn_set_status STATUS
9702# -----------------------
9703# Set $? to STATUS, without forking.
9704as_fn_set_status ()
9705{
9706 return $1
9707} # as_fn_set_status
9708
9709# as_fn_exit STATUS
9710# -----------------
9711# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9712as_fn_exit ()
9713{
9714 set +e
9715 as_fn_set_status $1
9716 exit $1
9717} # as_fn_exit
9718
9719# as_fn_unset VAR
9720# ---------------
9721# Portably unset VAR.
9722as_fn_unset ()
9723{
9724 { eval $1=; unset $1;}
9725}
9726as_unset=as_fn_unset
9727# as_fn_append VAR VALUE
9728# ----------------------
9729# Append the text in VALUE to the end of the definition contained in VAR. Take
9730# advantage of any shell optimizations that allow amortized linear growth over
9731# repeated appends, instead of the typical quadratic growth present in naive
9732# implementations.
9733if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9734 eval 'as_fn_append ()
9735 {
9736 eval $1+=\$2
9737 }'
9738else
9739 as_fn_append ()
9740 {
9741 eval $1=\$$1\$2
9742 }
9743fi # as_fn_append
9744
9745# as_fn_arith ARG...
9746# ------------------
9747# Perform arithmetic evaluation on the ARGs, and store the result in the
9748# global $as_val. Take advantage of shells that can avoid forks. The arguments
9749# must be portable across $(()) and expr.
9750if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9751 eval 'as_fn_arith ()
9752 {
9753 as_val=$(( $* ))
9754 }'
9755else
9756 as_fn_arith ()
9757 {
9758 as_val=`expr "$@" || test $? -eq 1`
9759 }
9760fi # as_fn_arith
9761
212380e3 9762
631ef239
AC
9763if expr a : '\(a\)' >/dev/null 2>&1 &&
9764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
9765 as_expr=expr
9766else
9767 as_expr=false
9768fi
9769
631ef239 9770if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
9771 as_basename=basename
9772else
9773 as_basename=false
9774fi
9775
7083c021
AC
9776if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9777 as_dirname=dirname
9778else
9779 as_dirname=false
9780fi
212380e3 9781
631ef239 9782as_me=`$as_basename -- "$0" ||
212380e3
AC
9783$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9784 X"$0" : 'X\(//\)$' \| \
631ef239 9785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 9786$as_echo X/"$0" |
631ef239
AC
9787 sed '/^.*\/\([^/][^/]*\)\/*$/{
9788 s//\1/
9789 q
9790 }
9791 /^X\/\(\/\/\)$/{
9792 s//\1/
9793 q
9794 }
9795 /^X\/\(\/\).*/{
9796 s//\1/
9797 q
9798 }
9799 s/.*/./; q'`
212380e3 9800
7083c021
AC
9801# Avoid depending upon Character Ranges.
9802as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9803as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9804as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9805as_cr_digits='0123456789'
9806as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
9807
9808ECHO_C= ECHO_N= ECHO_T=
7083c021 9809case `echo -n x` in #(((((
631ef239 9810-n*)
7083c021 9811 case `echo 'xy\c'` in
631ef239 9812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
9813 xy) ECHO_C='\c';;
9814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9815 ECHO_T=' ';;
631ef239
AC
9816 esac;;
9817*)
9818 ECHO_N='-n';;
212380e3
AC
9819esac
9820
212380e3 9821rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
9822if test -d conf$$.dir; then
9823 rm -f conf$$.dir/conf$$.file
9824else
9825 rm -f conf$$.dir
7083c021
AC
9826 mkdir conf$$.dir 2>/dev/null
9827fi
9828if (echo >conf$$.file) 2>/dev/null; then
9829 if ln -s conf$$.file conf$$ 2>/dev/null; then
9830 as_ln_s='ln -s'
9831 # ... but there are two gotchas:
9832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9834 # In both cases, we have to default to `cp -p'.
9835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9836 as_ln_s='cp -p'
9837 elif ln conf$$.file conf$$ 2>/dev/null; then
9838 as_ln_s=ln
9839 else
212380e3 9840 as_ln_s='cp -p'
7083c021 9841 fi
212380e3
AC
9842else
9843 as_ln_s='cp -p'
9844fi
631ef239
AC
9845rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9846rmdir conf$$.dir 2>/dev/null
212380e3 9847
7083c021
AC
9848
9849# as_fn_mkdir_p
9850# -------------
9851# Create "$as_dir" as a directory, including parents if necessary.
9852as_fn_mkdir_p ()
9853{
9854
9855 case $as_dir in #(
9856 -*) as_dir=./$as_dir;;
9857 esac
9858 test -d "$as_dir" || eval $as_mkdir_p || {
9859 as_dirs=
9860 while :; do
9861 case $as_dir in #(
9862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9863 *) as_qdir=$as_dir;;
9864 esac
9865 as_dirs="'$as_qdir' $as_dirs"
9866 as_dir=`$as_dirname -- "$as_dir" ||
9867$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9868 X"$as_dir" : 'X\(//\)[^/]' \| \
9869 X"$as_dir" : 'X\(//\)$' \| \
9870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9871$as_echo X"$as_dir" |
9872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9873 s//\1/
9874 q
9875 }
9876 /^X\(\/\/\)[^/].*/{
9877 s//\1/
9878 q
9879 }
9880 /^X\(\/\/\)$/{
9881 s//\1/
9882 q
9883 }
9884 /^X\(\/\).*/{
9885 s//\1/
9886 q
9887 }
9888 s/.*/./; q'`
9889 test -d "$as_dir" && break
9890 done
9891 test -z "$as_dirs" || eval "mkdir $as_dirs"
9892 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9893
9894
9895} # as_fn_mkdir_p
212380e3 9896if mkdir -p . 2>/dev/null; then
7083c021 9897 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
9898else
9899 test -d ./-p && rmdir ./-p
9900 as_mkdir_p=false
9901fi
9902
631ef239
AC
9903if test -x / >/dev/null 2>&1; then
9904 as_test_x='test -x'
9905else
9906 if ls -dL / >/dev/null 2>&1; then
9907 as_ls_L_option=L
9908 else
9909 as_ls_L_option=
9910 fi
9911 as_test_x='
9912 eval sh -c '\''
9913 if test -d "$1"; then
7083c021 9914 test -d "$1/.";
631ef239 9915 else
7083c021
AC
9916 case $1 in #(
9917 -*)set "./$1";;
631ef239 9918 esac;
7083c021 9919 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
631ef239
AC
9920 ???[sx]*):;;*)false;;esac;fi
9921 '\'' sh
9922 '
9923fi
9924as_executable_p=$as_test_x
212380e3
AC
9925
9926# Sed expression to map a string onto a valid CPP name.
9927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9928
9929# Sed expression to map a string onto a valid variable name.
9930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9931
9932
212380e3 9933exec 6>&1
7083c021
AC
9934## ----------------------------------- ##
9935## Main body of $CONFIG_STATUS script. ##
9936## ----------------------------------- ##
9937_ASEOF
9938test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 9939
7083c021
AC
9940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9941# Save the log message, to keep $0 and so on meaningful, and to
212380e3 9942# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
9943# values after options handling.
9944ac_log="
497c263d
AC
9945This file was extended by charybdis $as_me 3.3, which was
9946generated by GNU Autoconf 2.64. Invocation command line was
212380e3
AC
9947
9948 CONFIG_FILES = $CONFIG_FILES
9949 CONFIG_HEADERS = $CONFIG_HEADERS
9950 CONFIG_LINKS = $CONFIG_LINKS
9951 CONFIG_COMMANDS = $CONFIG_COMMANDS
9952 $ $0 $@
9953
631ef239
AC
9954on `(hostname || uname -n) 2>/dev/null | sed 1q`
9955"
9956
212380e3
AC
9957_ACEOF
9958
7083c021
AC
9959case $ac_config_files in *"
9960"*) set x $ac_config_files; shift; ac_config_files=$*;;
9961esac
9962
9963case $ac_config_headers in *"
9964"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9965esac
9966
9967
9968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 9969# Files that config.status was made for.
631ef239
AC
9970config_files="$ac_config_files"
9971config_headers="$ac_config_headers"
212380e3 9972
631ef239 9973_ACEOF
212380e3 9974
7083c021 9975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 9976ac_cs_usage="\
7083c021
AC
9977\`$as_me' instantiates files and other configuration actions
9978from templates according to the current configuration. Unless the files
9979and actions are specified as TAGs, all are instantiated by default.
212380e3 9980
7083c021 9981Usage: $0 [OPTION]... [TAG]...
212380e3
AC
9982
9983 -h, --help print this help, then exit
631ef239 9984 -V, --version print version number and configuration settings, then exit
7083c021
AC
9985 -q, --quiet, --silent
9986 do not print progress messages
212380e3
AC
9987 -d, --debug don't remove temporary files
9988 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
9989 --file=FILE[:TEMPLATE]
9990 instantiate the configuration file FILE
9991 --header=FILE[:TEMPLATE]
9992 instantiate the configuration header FILE
212380e3
AC
9993
9994Configuration files:
9995$config_files
9996
9997Configuration headers:
9998$config_headers
9999
7083c021 10000Report bugs to the package provider."
212380e3 10001
631ef239 10002_ACEOF
7083c021 10003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10004ac_cs_version="\\
497c263d
AC
10005charybdis config.status 3.3
10006configured by $0, generated by GNU Autoconf 2.64,
10007 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
212380e3 10008
7083c021 10009Copyright (C) 2009 Free Software Foundation, Inc.
212380e3
AC
10010This config.status script is free software; the Free Software Foundation
10011gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10012
10013ac_pwd='$ac_pwd'
10014srcdir='$srcdir'
10015INSTALL='$INSTALL'
7083c021 10016test -n "\$AWK" || AWK=awk
212380e3
AC
10017_ACEOF
10018
7083c021
AC
10019cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10020# The default lists apply if the user does not specify any file.
212380e3
AC
10021ac_need_defaults=:
10022while test $# != 0
10023do
10024 case $1 in
10025 --*=*)
631ef239
AC
10026 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10027 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10028 ac_shift=:
10029 ;;
631ef239 10030 *)
212380e3
AC
10031 ac_option=$1
10032 ac_optarg=$2
10033 ac_shift=shift
10034 ;;
212380e3
AC
10035 esac
10036
10037 case $ac_option in
10038 # Handling of the options.
212380e3
AC
10039 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10040 ac_cs_recheck=: ;;
631ef239 10041 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10042 $as_echo "$ac_cs_version"; exit ;;
631ef239 10043 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10044 debug=: ;;
10045 --file | --fil | --fi | --f )
10046 $ac_shift
7083c021
AC
10047 case $ac_optarg in
10048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10049 esac
10050 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10051 ac_need_defaults=false;;
10052 --header | --heade | --head | --hea )
10053 $ac_shift
7083c021
AC
10054 case $ac_optarg in
10055 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10056 esac
10057 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10058 ac_need_defaults=false;;
631ef239
AC
10059 --he | --h)
10060 # Conflict between --help and --header
7083c021
AC
10061 as_fn_error "ambiguous option: \`$1'
10062Try \`$0 --help' for more information.";;
631ef239 10063 --help | --hel | -h )
7083c021 10064 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10066 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10067 ac_cs_silent=: ;;
10068
10069 # This is an error.
7083c021
AC
10070 -*) as_fn_error "unrecognized option: \`$1'
10071Try \`$0 --help' for more information." ;;
212380e3 10072
7083c021 10073 *) as_fn_append ac_config_targets " $1"
631ef239 10074 ac_need_defaults=false ;;
212380e3
AC
10075
10076 esac
10077 shift
10078done
10079
10080ac_configure_extra_args=
10081
10082if $ac_cs_silent; then
10083 exec 6>/dev/null
10084 ac_configure_extra_args="$ac_configure_extra_args --silent"
10085fi
10086
10087_ACEOF
7083c021 10088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10089if \$ac_cs_recheck; then
7083c021
AC
10090 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10091 shift
10092 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10093 CONFIG_SHELL='$SHELL'
631ef239 10094 export CONFIG_SHELL
7083c021 10095 exec "\$@"
212380e3
AC
10096fi
10097
10098_ACEOF
7083c021 10099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10100exec 5>>config.log
10101{
10102 echo
10103 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10104## Running $as_me. ##
10105_ASBOX
7083c021 10106 $as_echo "$ac_log"
631ef239 10107} >&5
212380e3 10108
631ef239 10109_ACEOF
7083c021 10110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10111_ACEOF
212380e3 10112
7083c021 10113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10114
10115# Handling of arguments.
212380e3
AC
10116for ac_config_target in $ac_config_targets
10117do
631ef239
AC
10118 case $ac_config_target in
10119 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10120 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10121 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10122 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239
AC
10123 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
10124 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
10125 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10126 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10127 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10128 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10129 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
10130
7083c021 10131 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10132 esac
10133done
10134
631ef239 10135
212380e3
AC
10136# If the user did not use the arguments to specify the items to instantiate,
10137# then the envvar interface is used. Set only those that are not.
10138# We use the long form for the default assignment because of an extremely
10139# bizarre bug on SunOS 4.1.3.
10140if $ac_need_defaults; then
10141 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10142 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10143fi
10144
10145# Have a temporary directory for convenience. Make it in the build tree
631ef239 10146# simply because there is no reason against having it here, and in addition,
212380e3 10147# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10148# Hook for its removal unless debugging.
10149# Note that there is a small window in which the directory will not be cleaned:
10150# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10151$debug ||
10152{
631ef239
AC
10153 tmp=
10154 trap 'exit_status=$?
10155 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10156' 0
7083c021 10157 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10158}
212380e3
AC
10159# Create a (secure) tmp directory for tmp files.
10160
10161{
631ef239 10162 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
212380e3
AC
10163 test -n "$tmp" && test -d "$tmp"
10164} ||
10165{
631ef239
AC
10166 tmp=./conf$$-$RANDOM
10167 (umask 077 && mkdir "$tmp")
7083c021 10168} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
212380e3 10169
7083c021
AC
10170# Set up the scripts for CONFIG_FILES section.
10171# No need to generate them if there are no CONFIG_FILES.
10172# This happens for instance with `./config.status config.h'.
631ef239
AC
10173if test -n "$CONFIG_FILES"; then
10174
631ef239 10175
7083c021
AC
10176ac_cr=`echo X | tr X '\015'`
10177# On cygwin, bash can eat \r inside `` if the user requested igncr.
10178# But we know of no other shell where ac_cr would be empty at this
10179# point, so we can use a bashism as a fallback.
10180if test "x$ac_cr" = x; then
10181 eval ac_cr=\$\'\\r\'
10182fi
10183ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10184if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10185 ac_cs_awk_cr='\r'
10186else
10187 ac_cs_awk_cr=$ac_cr
10188fi
10189
10190echo 'BEGIN {' >"$tmp/subs1.awk" &&
10191_ACEOF
631ef239
AC
10192
10193
7083c021
AC
10194{
10195 echo "cat >conf$$subs.awk <<_ACEOF" &&
10196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10197 echo "_ACEOF"
10198} >conf$$subs.sh ||
10199 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10200ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
631ef239
AC
10201ac_delim='%!_!# '
10202for ac_last_try in false false false false false :; do
7083c021
AC
10203 . ./conf$$subs.sh ||
10204 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
10205
10206 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10207 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10208 break
10209 elif $ac_last_try; then
7083c021 10210 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10211 else
10212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10213 fi
631ef239 10214done
7083c021
AC
10215rm -f conf$$subs.sh
10216
10217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10218cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10219_ACEOF
10220sed -n '
10221h
10222s/^/S["/; s/!.*/"]=/
10223p
10224g
10225s/^[^!]*!//
10226:repl
10227t repl
10228s/'"$ac_delim"'$//
10229t delim
10230:nl
10231h
497c263d 10232s/\(.\{148\}\).*/\1/
7083c021
AC
10233t more1
10234s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10235p
10236n
10237b repl
10238:more1
10239s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10240p
10241g
10242s/.\{148\}//
10243t nl
10244:delim
10245h
497c263d 10246s/\(.\{148\}\).*/\1/
7083c021
AC
10247t more2
10248s/["\\]/\\&/g; s/^/"/; s/$/"/
10249p
10250b
10251:more2
10252s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10253p
10254g
10255s/.\{148\}//
10256t delim
10257' <conf$$subs.awk | sed '
10258/^[^""]/{
10259 N
10260 s/\n//
10261}
10262' >>$CONFIG_STATUS || ac_write_fail=1
10263rm -f conf$$subs.awk
10264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10265_ACAWK
10266cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10267 for (key in S) S_is_set[key] = 1
10268 FS = "\a"
212380e3 10269
7083c021
AC
10270}
10271{
10272 line = $ 0
10273 nfields = split(line, field, "@")
10274 substed = 0
10275 len = length(field[1])
10276 for (i = 2; i < nfields; i++) {
10277 key = field[i]
10278 keylen = length(key)
10279 if (S_is_set[key]) {
10280 value = S[key]
10281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10282 len += length(value) + length(field[++i])
10283 substed = 1
10284 } else
10285 len += 1 + keylen
10286 }
631ef239 10287
7083c021
AC
10288 print line
10289}
10290
10291_ACAWK
631ef239 10292_ACEOF
7083c021
AC
10293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10294if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10295 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10296else
10297 cat
10298fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10299 || as_fn_error "could not setup config files machinery" "$LINENO" 5
212380e3 10300_ACEOF
631ef239 10301
631ef239
AC
10302# VPATH may cause trouble with some makes, so we remove $(srcdir),
10303# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10304# trailing colons and then remove the whole line if VPATH becomes empty
10305# (actually we leave an empty line to preserve line numbers).
10306if test "x$srcdir" = x.; then
10307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10308s/:*\$(srcdir):*/:/
10309s/:*\${srcdir}:*/:/
10310s/:*@srcdir@:*/:/
10311s/^\([^=]*=[ ]*\):*/\1/
10312s/:*$//
10313s/^[^=]*=[ ]*$//
10314}'
10315fi
10316
7083c021 10317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10318fi # test -n "$CONFIG_FILES"
10319
7083c021
AC
10320# Set up the scripts for CONFIG_HEADERS section.
10321# No need to generate them if there are no CONFIG_HEADERS.
10322# This happens for instance with `./config.status Makefile'.
10323if test -n "$CONFIG_HEADERS"; then
10324cat >"$tmp/defines.awk" <<\_ACAWK ||
10325BEGIN {
10326_ACEOF
10327
10328# Transform confdefs.h into an awk script `defines.awk', embedded as
10329# here-document in config.status, that substitutes the proper values into
10330# config.h.in to produce config.h.
10331
10332# Create a delimiter string that does not exist in confdefs.h, to ease
10333# handling of long lines.
10334ac_delim='%!_!# '
10335for ac_last_try in false false :; do
10336 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10337 if test -z "$ac_t"; then
10338 break
10339 elif $ac_last_try; then
10340 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10341 else
10342 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10343 fi
10344done
10345
10346# For the awk script, D is an array of macro values keyed by name,
10347# likewise P contains macro parameters if any. Preserve backslash
10348# newline sequences.
10349
10350ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10351sed -n '
10352s/.\{148\}/&'"$ac_delim"'/g
10353t rset
10354:rset
10355s/^[ ]*#[ ]*define[ ][ ]*/ /
10356t def
10357d
10358:def
10359s/\\$//
10360t bsnl
10361s/["\\]/\\&/g
10362s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10363D["\1"]=" \3"/p
10364s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10365d
10366:bsnl
10367s/["\\]/\\&/g
10368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10369D["\1"]=" \3\\\\\\n"\\/p
10370t cont
10371s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10372t cont
10373d
10374:cont
10375n
10376s/.\{148\}/&'"$ac_delim"'/g
10377t clear
10378:clear
10379s/\\$//
10380t bsnlc
10381s/["\\]/\\&/g; s/^/"/; s/$/"/p
10382d
10383:bsnlc
10384s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10385b cont
10386' <confdefs.h | sed '
10387s/'"$ac_delim"'/"\\\
10388"/g' >>$CONFIG_STATUS || ac_write_fail=1
10389
10390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10391 for (key in D) D_is_set[key] = 1
10392 FS = "\a"
10393}
10394/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10395 line = \$ 0
10396 split(line, arg, " ")
10397 if (arg[1] == "#") {
10398 defundef = arg[2]
10399 mac1 = arg[3]
10400 } else {
10401 defundef = substr(arg[1], 2)
10402 mac1 = arg[2]
10403 }
10404 split(mac1, mac2, "(") #)
10405 macro = mac2[1]
10406 prefix = substr(line, 1, index(line, defundef) - 1)
10407 if (D_is_set[macro]) {
10408 # Preserve the white space surrounding the "#".
10409 print prefix "define", macro P[macro] D[macro]
10410 next
10411 } else {
10412 # Replace #undef with comments. This is necessary, for example,
10413 # in the case of _POSIX_SOURCE, which is predefined and required
10414 # on some systems where configure will not decide to define it.
10415 if (defundef == "undef") {
10416 print "/*", prefix defundef, macro, "*/"
10417 next
10418 }
10419 }
10420}
10421{ print }
10422_ACAWK
10423_ACEOF
10424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10425 as_fn_error "could not setup config headers machinery" "$LINENO" 5
10426fi # test -n "$CONFIG_HEADERS"
10427
631ef239 10428
7083c021
AC
10429eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10430shift
10431for ac_tag
631ef239
AC
10432do
10433 case $ac_tag in
10434 :[FHLC]) ac_mode=$ac_tag; continue;;
10435 esac
10436 case $ac_mode$ac_tag in
10437 :[FHL]*:*);;
7083c021 10438 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10439 :[FH]-) ac_tag=-:-;;
10440 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10441 esac
631ef239
AC
10442 ac_save_IFS=$IFS
10443 IFS=:
10444 set x $ac_tag
10445 IFS=$ac_save_IFS
10446 shift
10447 ac_file=$1
10448 shift
212380e3 10449
631ef239
AC
10450 case $ac_mode in
10451 :L) ac_source=$1;;
10452 :[FH])
10453 ac_file_inputs=
10454 for ac_f
10455 do
10456 case $ac_f in
10457 -) ac_f="$tmp/stdin";;
10458 *) # Look for the file first in the build tree, then in the source tree
10459 # (if the path is not absolute). The absolute path cannot be DOS-style,
10460 # because $ac_f cannot contain `:'.
10461 test -f "$ac_f" ||
10462 case $ac_f in
10463 [\\/$]*) false;;
10464 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10465 esac ||
7083c021 10466 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10467 esac
7083c021
AC
10468 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10469 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10470 done
10471
10472 # Let's still pretend it is `configure' which instantiates (i.e., don't
10473 # use $as_me), people would be surprised to read:
10474 # /* config.h. Generated by config.status. */
7083c021
AC
10475 configure_input='Generated from '`
10476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10477 `' by configure.'
631ef239
AC
10478 if test x"$ac_file" != x-; then
10479 configure_input="$ac_file. $configure_input"
7083c021
AC
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10481$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10482 fi
7083c021
AC
10483 # Neutralize special characters interpreted by sed in replacement strings.
10484 case $configure_input in #(
10485 *\&* | *\|* | *\\* )
10486 ac_sed_conf_input=`$as_echo "$configure_input" |
10487 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10488 *) ac_sed_conf_input=$configure_input;;
10489 esac
631ef239
AC
10490
10491 case $ac_tag in
7083c021
AC
10492 *:-:* | *:-) cat >"$tmp/stdin" \
10493 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10494 esac
10495 ;;
10496 esac
10497
10498 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10499$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10500 X"$ac_file" : 'X\(//\)[^/]' \| \
10501 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10503$as_echo X"$ac_file" |
631ef239
AC
10504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10505 s//\1/
10506 q
10507 }
10508 /^X\(\/\/\)[^/].*/{
10509 s//\1/
10510 q
10511 }
10512 /^X\(\/\/\)$/{
10513 s//\1/
10514 q
10515 }
10516 /^X\(\/\).*/{
10517 s//\1/
10518 q
10519 }
10520 s/.*/./; q'`
7083c021 10521 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
10522 ac_builddir=.
10523
631ef239
AC
10524case "$ac_dir" in
10525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10526*)
7083c021 10527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 10528 # A ".." for each directory in $ac_dir_suffix.
7083c021 10529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
10530 case $ac_top_builddir_sub in
10531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10533 esac ;;
10534esac
10535ac_abs_top_builddir=$ac_pwd
10536ac_abs_builddir=$ac_pwd$ac_dir_suffix
10537# for backward compatibility:
10538ac_top_builddir=$ac_top_build_prefix
212380e3
AC
10539
10540case $srcdir in
631ef239 10541 .) # We are building in place.
212380e3 10542 ac_srcdir=.
631ef239
AC
10543 ac_top_srcdir=$ac_top_builddir_sub
10544 ac_abs_top_srcdir=$ac_pwd ;;
10545 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 10546 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
10547 ac_top_srcdir=$srcdir
10548 ac_abs_top_srcdir=$srcdir ;;
10549 *) # Relative name.
10550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10551 ac_top_srcdir=$ac_top_build_prefix$srcdir
10552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 10553esac
631ef239 10554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 10555
212380e3 10556
631ef239
AC
10557 case $ac_mode in
10558 :F)
10559 #
10560 # CONFIG_FILE
10561 #
212380e3
AC
10562
10563 case $INSTALL in
10564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 10565 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 10566 esac
631ef239 10567_ACEOF
212380e3 10568
7083c021 10569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10570# If the template does not know about datarootdir, expand it.
10571# FIXME: This hack should be removed a few years after 2.60.
10572ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
10573ac_sed_dataroot='
10574/datarootdir/ {
631ef239
AC
10575 p
10576 q
10577}
10578/@datadir@/p
10579/@docdir@/p
10580/@infodir@/p
10581/@localedir@/p
7083c021
AC
10582/@mandir@/p'
10583case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
10584*datarootdir*) ac_datarootdir_seen=yes;;
10585*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10587$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 10588_ACEOF
7083c021 10589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
10590 ac_datarootdir_hack='
10591 s&@datadir@&$datadir&g
10592 s&@docdir@&$docdir&g
10593 s&@infodir@&$infodir&g
10594 s&@localedir@&$localedir&g
10595 s&@mandir@&$mandir&g
7083c021 10596 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 10597esac
212380e3 10598_ACEOF
631ef239
AC
10599
10600# Neutralize VPATH when `$srcdir' = `.'.
10601# Shell code in configure.ac might set extrasub.
10602# FIXME: do we really want to maintain this feature?
7083c021
AC
10603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10604ac_sed_extra="$ac_vpsub
212380e3
AC
10605$extrasub
10606_ACEOF
7083c021 10607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
10608:t
10609/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 10610s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 10611s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 10612s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
10613s&@srcdir@&$ac_srcdir&;t t
10614s&@abs_srcdir@&$ac_abs_srcdir&;t t
10615s&@top_srcdir@&$ac_top_srcdir&;t t
10616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10617s&@builddir@&$ac_builddir&;t t
10618s&@abs_builddir@&$ac_abs_builddir&;t t
10619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10620s&@INSTALL@&$ac_INSTALL&;t t
10621$ac_datarootdir_hack
7083c021
AC
10622"
10623eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10624 || as_fn_error "could not create $ac_file" "$LINENO" 5
631ef239
AC
10625
10626test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10627 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10628 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7083c021 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
631ef239 10630which seems to be undefined. Please make sure it is defined." >&5
7083c021 10631$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
631ef239
AC
10632which seems to be undefined. Please make sure it is defined." >&2;}
10633
10634 rm -f "$tmp/stdin"
212380e3 10635 case $ac_file in
7083c021
AC
10636 -) cat "$tmp/out" && rm -f "$tmp/out";;
10637 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10638 esac \
10639 || as_fn_error "could not create $ac_file" "$LINENO" 5
631ef239
AC
10640 ;;
10641 :H)
10642 #
10643 # CONFIG_HEADER
10644 #
212380e3 10645 if test x"$ac_file" != x-; then
7083c021
AC
10646 {
10647 $as_echo "/* $configure_input */" \
10648 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10649 } >"$tmp/config.h" \
10650 || as_fn_error "could not create $ac_file" "$LINENO" 5
10651 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10653$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 10654 else
7083c021
AC
10655 rm -f "$ac_file"
10656 mv "$tmp/config.h" "$ac_file" \
10657 || as_fn_error "could not create $ac_file" "$LINENO" 5
212380e3
AC
10658 fi
10659 else
7083c021
AC
10660 $as_echo "/* $configure_input */" \
10661 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10662 || as_fn_error "could not create -" "$LINENO" 5
212380e3 10663 fi
631ef239
AC
10664 ;;
10665
10666
10667 esac
10668
10669done # for ac_tag
212380e3 10670
212380e3 10671
7083c021 10672as_fn_exit 0
212380e3 10673_ACEOF
212380e3
AC
10674ac_clean_files=$ac_clean_files_save
10675
7083c021
AC
10676test $ac_write_fail = 0 ||
10677 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10678
212380e3
AC
10679
10680# configure is writing to config.log, and then calls config.status.
10681# config.status does its own redirection, appending to config.log.
10682# Unfortunately, on DOS this fails, as config.log is still kept open
10683# by configure, so config.status won't be able to write to it; its
10684# output is simply discarded. So we exec the FD to /dev/null,
10685# effectively closing config.log, so it can be properly (re)opened and
10686# appended to by config.status. When coming back to configure, we
10687# need to make the FD available again.
10688if test "$no_create" != yes; then
10689 ac_cs_success=:
10690 ac_config_status_args=
10691 test "$silent" = yes &&
10692 ac_config_status_args="$ac_config_status_args --quiet"
10693 exec 5>/dev/null
10694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10695 exec 5>>config.log
10696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10697 # would make configure fail if this is the last instruction.
7083c021 10698 $ac_cs_success || as_fn_exit $?
212380e3
AC
10699fi
10700
b676ea3b
AC
10701#
10702# CONFIG_SUBDIRS section.
10703#
10704if test "$no_recursion" != yes; then
10705
7083c021
AC
10706 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10707 # so they do not pile up.
b676ea3b
AC
10708 ac_sub_configure_args=
10709 ac_prev=
10710 eval "set x $ac_configure_args"
10711 shift
10712 for ac_arg
10713 do
10714 if test -n "$ac_prev"; then
10715 ac_prev=
10716 continue
10717 fi
10718 case $ac_arg in
10719 -cache-file | --cache-file | --cache-fil | --cache-fi \
10720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10721 ac_prev=cache_file ;;
10722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10724 | --c=*)
10725 ;;
10726 --config-cache | -C)
10727 ;;
10728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10729 ac_prev=srcdir ;;
10730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10731 ;;
10732 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10733 ac_prev=prefix ;;
10734 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10735 ;;
7083c021
AC
10736 --disable-option-checking)
10737 ;;
b676ea3b
AC
10738 *)
10739 case $ac_arg in
7083c021 10740 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b 10741 esac
7083c021 10742 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
b676ea3b
AC
10743 esac
10744 done
10745
10746 # Always prepend --prefix to ensure using the same prefix
10747 # in subdir configurations.
10748 ac_arg="--prefix=$prefix"
10749 case $ac_arg in
7083c021 10750 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b
AC
10751 esac
10752 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10753
10754 # Pass --silent
10755 if test "$silent" = yes; then
10756 ac_sub_configure_args="--silent $ac_sub_configure_args"
10757 fi
10758
7083c021
AC
10759 # Always prepend --disable-option-checking to silence warnings, since
10760 # different subdirs can have different --enable and --with options.
10761 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10762
b676ea3b
AC
10763 ac_popdir=`pwd`
10764 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10765
10766 # Do not complain, so a configure script can configure whichever
10767 # parts of a large source tree are present.
10768 test -d "$srcdir/$ac_dir" || continue
10769
10770 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7083c021
AC
10771 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10772 $as_echo "$ac_msg" >&6
10773 as_dir="$ac_dir"; as_fn_mkdir_p
b676ea3b
AC
10774 ac_builddir=.
10775
10776case "$ac_dir" in
10777.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10778*)
7083c021 10779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b676ea3b 10780 # A ".." for each directory in $ac_dir_suffix.
7083c021 10781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b676ea3b
AC
10782 case $ac_top_builddir_sub in
10783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10785 esac ;;
10786esac
10787ac_abs_top_builddir=$ac_pwd
10788ac_abs_builddir=$ac_pwd$ac_dir_suffix
10789# for backward compatibility:
10790ac_top_builddir=$ac_top_build_prefix
10791
10792case $srcdir in
10793 .) # We are building in place.
10794 ac_srcdir=.
10795 ac_top_srcdir=$ac_top_builddir_sub
10796 ac_abs_top_srcdir=$ac_pwd ;;
10797 [\\/]* | ?:[\\/]* ) # Absolute name.
10798 ac_srcdir=$srcdir$ac_dir_suffix;
10799 ac_top_srcdir=$srcdir
10800 ac_abs_top_srcdir=$srcdir ;;
10801 *) # Relative name.
10802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10803 ac_top_srcdir=$ac_top_build_prefix$srcdir
10804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10805esac
10806ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10807
10808
10809 cd "$ac_dir"
10810
10811 # Check for guested configure; otherwise get Cygnus style configure.
10812 if test -f "$ac_srcdir/configure.gnu"; then
10813 ac_sub_configure=$ac_srcdir/configure.gnu
10814 elif test -f "$ac_srcdir/configure"; then
10815 ac_sub_configure=$ac_srcdir/configure
10816 elif test -f "$ac_srcdir/configure.in"; then
10817 # This should be Cygnus configure.
10818 ac_sub_configure=$ac_aux_dir/configure
10819 else
7083c021
AC
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10821$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
b676ea3b
AC
10822 ac_sub_configure=
10823 fi
10824
10825 # The recursion is here.
10826 if test -n "$ac_sub_configure"; then
10827 # Make the cache file name correct relative to the subdirectory.
10828 case $cache_file in
10829 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10830 *) # Relative name.
10831 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10832 esac
10833
7083c021
AC
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10835$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
b676ea3b
AC
10836 # The eval makes quoting arguments work.
10837 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10838 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
7083c021 10839 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
b676ea3b
AC
10840 fi
10841
10842 cd "$ac_popdir"
10843 done
10844fi
7083c021
AC
10845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10847$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10848fi
b676ea3b 10849
212380e3
AC
10850
10851if test "$cf_openssl_version_ok" = yes; then
10852 openssl="yes"
10853else
10854 openssl="no"
10855fi
10856
10857if test "$shared_modules" = yes; then
10858 modules=shared
10859else
10860 modules=static
10861fi
10862
10863echo "
10864Configuration:
10865 Install directory : $prefix
10866
10867 Ziplinks : $zlib
10868 OpenSSL : $openssl
212380e3
AC
10869 Socket Engine : $SELECT_TYPE
10870 Small network : $small_net
10871 Block allocator : $balloc
212380e3
AC
10872
10873 Nickname length : $NICKLEN
10874 Topic length : $TOPICLEN
10875
4271aa89 10876Use (g)make to compile Charybdis, then (g)make install to install it.
212380e3 10877"