]> jfr.im git - solanum.git/blame - configure
bandb: make Makefile work with BSD make again
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
2eff3833 3# Generated by GNU Autoconf 2.69 for charybdis 3.5.0-dev.
212380e3 4#
b676ea3b 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
6fb6bd15 7#
2eff3833 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
6fb6bd15 9#
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.
b6d0720c 92as_myself=
7083c021 93case $0 in #((
631ef239
AC
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
7083c021
AC
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
631ef239
AC
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
7083c021
AC
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
631ef239
AC
114fi
115
7083c021
AC
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 123done
212380e3
AC
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
7083c021
AC
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
2eff3833
JT
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
7083c021
AC
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
2eff3833
JT
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
7083c021
AC
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212380e3 213do
7083c021
AC
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
2eff3833
JT
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
7083c021
AC
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
212380e3 268 else
7083c021
AC
269 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
270$0: including any error possibly output before this
271$0: message. Then install a modern shell, or manually run
272$0: the script under such a shell if you do have one."
212380e3 273 fi
7083c021
AC
274 exit 1
275fi
276fi
277fi
278SHELL=${CONFIG_SHELL-/bin/sh}
279export SHELL
280# Unset more variables known to interfere with behavior of common tools.
281CLICOLOR_FORCE= GREP_OPTIONS=
282unset CLICOLOR_FORCE GREP_OPTIONS
283
284## --------------------- ##
285## M4sh Shell Functions. ##
286## --------------------- ##
287# as_fn_unset VAR
288# ---------------
289# Portably unset VAR.
290as_fn_unset ()
291{
292 { eval $1=; unset $1;}
293}
294as_unset=as_fn_unset
295
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
313
314# as_fn_mkdir_p
315# -------------
316# Create "$as_dir" as a directory, including parents if necessary.
317as_fn_mkdir_p ()
318{
319
320 case $as_dir in #(
321 -*) as_dir=./$as_dir;;
322 esac
323 test -d "$as_dir" || eval $as_mkdir_p || {
324 as_dirs=
325 while :; do
326 case $as_dir in #(
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 *) as_qdir=$as_dir;;
329 esac
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336$as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
338 s//\1/
339 q
340 }
341 /^X\(\/\/\)[^/].*/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\).*/{
350 s//\1/
351 q
352 }
353 s/.*/./; q'`
354 test -d "$as_dir" && break
355 done
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
358
359
360} # as_fn_mkdir_p
2eff3833
JT
361
362# as_fn_executable_p FILE
363# -----------------------
364# Test if FILE is an executable regular file.
365as_fn_executable_p ()
366{
367 test -f "$1" && test -x "$1"
368} # as_fn_executable_p
7083c021
AC
369# as_fn_append VAR VALUE
370# ----------------------
371# Append the text in VALUE to the end of the definition contained in VAR. Take
372# advantage of any shell optimizations that allow amortized linear growth over
373# repeated appends, instead of the typical quadratic growth present in naive
374# implementations.
375if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
377 {
378 eval $1+=\$2
379 }'
380else
381 as_fn_append ()
382 {
383 eval $1=\$$1\$2
384 }
385fi # as_fn_append
386
387# as_fn_arith ARG...
388# ------------------
389# Perform arithmetic evaluation on the ARGs, and store the result in the
390# global $as_val. Take advantage of shells that can avoid forks. The arguments
391# must be portable across $(()) and expr.
392if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
393 eval 'as_fn_arith ()
394 {
395 as_val=$(( $* ))
396 }'
397else
398 as_fn_arith ()
399 {
400 as_val=`expr "$@" || test $? -eq 1`
401 }
402fi # as_fn_arith
403
404
b6d0720c
AC
405# as_fn_error STATUS ERROR [LINENO LOG_FD]
406# ----------------------------------------
7083c021
AC
407# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 409# script with STATUS, using 1 if that was 0.
7083c021
AC
410as_fn_error ()
411{
b6d0720c
AC
412 as_status=$1; test $as_status -eq 0 && as_status=1
413 if test "$4"; then
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7083c021 416 fi
b6d0720c 417 $as_echo "$as_me: error: $2" >&2
7083c021
AC
418 as_fn_exit $as_status
419} # as_fn_error
212380e3 420
631ef239
AC
421if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
423 as_expr=expr
424else
425 as_expr=false
426fi
427
631ef239 428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
429 as_basename=basename
430else
431 as_basename=false
432fi
433
7083c021
AC
434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
435 as_dirname=dirname
436else
437 as_dirname=false
438fi
212380e3 439
631ef239 440as_me=`$as_basename -- "$0" ||
212380e3
AC
441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
631ef239 443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 444$as_echo X/"$0" |
631ef239
AC
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
446 s//\1/
447 q
448 }
449 /^X\/\(\/\/\)$/{
450 s//\1/
451 q
452 }
453 /^X\/\(\/\).*/{
454 s//\1/
455 q
456 }
457 s/.*/./; q'`
212380e3 458
7083c021
AC
459# Avoid depending upon Character Ranges.
460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463as_cr_digits='0123456789'
464as_cr_alnum=$as_cr_Letters$as_cr_digits
212380e3 465
212380e3 466
7083c021
AC
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
472 sed -n '
473 p
474 /[$]LINENO/=
475 ' <$as_myself |
476 sed '
477 s/[$]LINENO.*/&-/
478 t lineno
479 b
480 :lineno
481 N
482 :loop
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
484 t loop
485 s/-\n.*//
486 ' >$as_me.lineno &&
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
212380e3 489
2eff3833
JT
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
7083c021
AC
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
497 . "./$as_me.lineno"
498 # Exit status is that of the last command.
499 exit
631ef239 500}
212380e3 501
7083c021
AC
502ECHO_C= ECHO_N= ECHO_T=
503case `echo -n x` in #(((((
504-n*)
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 xy) ECHO_C='\c';;
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
509 ECHO_T=' ';;
510 esac;;
511*)
512 ECHO_N='-n';;
513esac
631ef239 514
7083c021
AC
515rm -f conf$$ conf$$.exe conf$$.file
516if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
518else
519 rm -f conf$$.dir
520 mkdir conf$$.dir 2>/dev/null
521fi
522if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 as_ln_s='ln -s'
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 528 # In both cases, we have to default to `cp -pR'.
7083c021 529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 530 as_ln_s='cp -pR'
7083c021
AC
531 elif ln conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s=ln
533 else
2eff3833 534 as_ln_s='cp -pR'
7083c021 535 fi
631ef239 536else
2eff3833 537 as_ln_s='cp -pR'
631ef239 538fi
7083c021
AC
539rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540rmdir conf$$.dir 2>/dev/null
631ef239 541
7083c021
AC
542if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
544else
545 test -d ./-p && rmdir ./-p
546 as_mkdir_p=false
631ef239
AC
547fi
548
2eff3833
JT
549as_test_x='test -x'
550as_executable_p=as_fn_executable_p
631ef239 551
7083c021
AC
552# Sed expression to map a string onto a valid CPP name.
553as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
631ef239 554
7083c021
AC
555# Sed expression to map a string onto a valid variable name.
556as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
631ef239
AC
557
558
6fb6bd15
AC
559test -n "$DJDIR" || exec 7<&0 </dev/null
560exec 6>&1
631ef239 561
7083c021 562# Name of the host.
b6d0720c 563# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
7083c021
AC
564# so uname gets run too.
565ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
631ef239 566
7083c021
AC
567#
568# Initializations.
569#
570ac_default_prefix=/usr/local
571ac_clean_files=
572ac_config_libobj_dir=.
573LIBOBJS=
574cross_compiling=no
575subdirs=
576MFLAGS=
577MAKEFLAGS=
212380e3 578
212380e3
AC
579# Identity of this package.
580PACKAGE_NAME='charybdis'
581PACKAGE_TARNAME='charybdis'
dc9aebf4
JT
582PACKAGE_VERSION='3.5.0-dev'
583PACKAGE_STRING='charybdis 3.5.0-dev'
212380e3 584PACKAGE_BUGREPORT=''
7083c021 585PACKAGE_URL=''
212380e3
AC
586
587ac_default_prefix=$HOME/ircd
588# Factoring default headers for most tests.
589ac_includes_default="\
590#include <stdio.h>
631ef239 591#ifdef HAVE_SYS_TYPES_H
212380e3
AC
592# include <sys/types.h>
593#endif
631ef239 594#ifdef HAVE_SYS_STAT_H
212380e3
AC
595# include <sys/stat.h>
596#endif
631ef239 597#ifdef STDC_HEADERS
212380e3
AC
598# include <stdlib.h>
599# include <stddef.h>
600#else
631ef239 601# ifdef HAVE_STDLIB_H
212380e3
AC
602# include <stdlib.h>
603# endif
604#endif
631ef239
AC
605#ifdef HAVE_STRING_H
606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
607# include <memory.h>
608# endif
609# include <string.h>
610#endif
631ef239 611#ifdef HAVE_STRINGS_H
212380e3
AC
612# include <strings.h>
613#endif
631ef239 614#ifdef HAVE_INTTYPES_H
212380e3 615# include <inttypes.h>
212380e3 616#endif
631ef239
AC
617#ifdef HAVE_STDINT_H
618# include <stdint.h>
619#endif
620#ifdef HAVE_UNISTD_H
212380e3
AC
621# include <unistd.h>
622#endif"
623
7083c021
AC
624enable_option_checking=no
625ac_subst_vars='LTLIBOBJS
631ef239 626LIBOBJS
7083c021
AC
627SEDOBJ
628IRC_CFLAGS
629PICFLAGS
630SSL_LIBS
631SSL_INCLUDES
632SSL_SRCS_ENABLE
633MOD_TARGET
634MODULES_LIBS
635SELECT_TYPE
9f9b7042
NPB
636PROGRAM_PREFIX
637PKGRUNDIR
7083c021
AC
638moduledir
639MODULE_DIR
640helpdir
641HELP_DIR
642logdir
643LOG_DIR
7083c021 644ETC_DIR
74ab6be0 645SQLITE_SRC
497e30a0 646SQLITE_LD
7083c021
AC
647ZLIB_LD
648ENCSPEED
649ALLOCA
650VICONF
651CRYPT_LIB
9f9b7042
NPB
652PKGLIBEXECDIR
653pkglibexecdir
654PKGLOCALSTATEDIR
655pkglocalstatedir
656pkgrundir
657rundir
658pkglibdir
7083c021
AC
659LEXLIB
660LEX_OUTPUT_ROOT
661LEX
662YFLAGS
663YACC
664TOUCH
665RANLIB
666LD
667AR
668SED
669LN
670MV
671CP
672RM
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676SET_MAKE
677STDOUT
678MAKEDEPEND
679MKDEP
680subdirs
681EGREP
682GREP
683CPP
684OBJEXT
685EXEEXT
686ac_ct_CC
687CPPFLAGS
688LDFLAGS
689CFLAGS
690CC
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
212380e3 729ac_subst_files=''
7083c021
AC
730ac_user_opts='
731enable_option_checking
9f9b7042 732enable_fhs_paths
7083c021
AC
733enable_ipv6
734enable_openssl
735with_zlib_path
736enable_zlib
497e30a0 737enable_shared_sqlite
7083c021
AC
738enable_ports
739enable_poll
740enable_select
741enable_kqueue
742enable_epoll
743with_confdir
744with_logdir
745with_helpdir
746with_moduledir
9f9b7042
NPB
747with_rundir
748with_program_prefix
b6d0720c
AC
749with_custom_branding
750with_custom_version
7083c021
AC
751enable_assert
752enable_iodebug
753enable_profile
754enable_balloc
755enable_small_net
756with_nicklen
757with_topiclen
758enable_warnings
759'
631ef239
AC
760 ac_precious_vars='build_alias
761host_alias
762target_alias
763CC
764CFLAGS
765LDFLAGS
766LIBS
767CPPFLAGS
768CPP
769YACC
770YFLAGS'
b676ea3b 771ac_subdirs_all='libratbox'
212380e3
AC
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
7083c021
AC
776ac_unrecognized_opts=
777ac_unrecognized_sep=
212380e3
AC
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 800# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
631ef239
AC
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
212380e3
AC
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
212380e3
AC
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
631ef239
AC
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
212380e3
AC
820
821ac_prev=
631ef239 822ac_dashdash=
212380e3
AC
823for ac_option
824do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
631ef239 827 eval $ac_prev=\$ac_option
212380e3
AC
828 ac_prev=
829 continue
830 fi
831
631ef239 832 case $ac_option in
b6d0720c
AC
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
631ef239 836 esac
212380e3
AC
837
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
631ef239
AC
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
212380e3
AC
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
631ef239 864 -datadir | --datadir | --datadi | --datad)
212380e3 865 ac_prev=datadir ;;
631ef239 866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
867 datadir=$ac_optarg ;;
868
631ef239
AC
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
212380e3 876 -disable-* | --disable-*)
7083c021 877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 878 # Reject names that are not valid shell variable names.
7083c021 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 880 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885"enable_$ac_useropt"
886"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
631ef239
AC
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
212380e3
AC
901
902 -enable-* | --enable-*)
7083c021 903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 904 # Reject names that are not valid shell variable names.
7083c021 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 906 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
631ef239
AC
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
212380e3
AC
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
631ef239
AC
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
212380e3 978 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 979 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
631ef239
AC
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
212380e3
AC
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1077
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1087
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1094
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1105
1106 -with-* | --with-*)
7083c021 1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1108 # Reject names that are not valid shell variable names.
7083c021 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1110 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115"with_$ac_useropt"
1116"*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1121
1122 -without-* | --without-*)
7083c021 1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1124 # Reject names that are not valid shell variable names.
7083c021 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1126 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
212380e3
AC
1137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
b6d0720c
AC
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
212380e3
AC
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
7083c021
AC
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1166 esac
631ef239 1167 eval $ac_envvar=\$ac_optarg
212380e3
AC
1168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
7083c021 1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1183 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1184fi
1185
7083c021
AC
1186if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
b6d0720c 1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1192fi
1193
1194# Check all directory arguments for consistency.
631ef239
AC
1195for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
212380e3 1199do
631ef239 1200 eval ac_val=\$$ac_var
7083c021
AC
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
212380e3 1208 case $ac_val in
631ef239
AC
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1211 esac
b6d0720c 1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
212380e3
AC
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1228 fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
631ef239
AC
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1240 as_fn_error $? "working directory cannot be determined"
631ef239 1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1242 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
212380e3 1247 ac_srcdir_defaulted=yes
631ef239 1248 # Try the directory containing this script, then the parent directory.
7083c021
AC
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
631ef239
AC
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\).*/{
1268 s//\1/
1269 q
1270 }
1271 s/.*/./; q'`
212380e3 1272 srcdir=$ac_confdir
631ef239 1273 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1274 srcdir=..
1275 fi
1276else
1277 ac_srcdir_defaulted=no
1278fi
631ef239
AC
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1282fi
631ef239
AC
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
b6d0720c 1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1286 pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
212380e3
AC
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
dc9aebf4 1311\`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems.
212380e3
AC
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE. See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
b6d0720c 1325 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330
212380e3
AC
1331Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1333 [$ac_default_prefix]
212380e3 1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1335 [PREFIX]
212380e3
AC
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
7083c021
AC
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1364_ACEOF
1365
1366 cat <<\_ACEOF
1367_ACEOF
1368fi
1369
1370if test -n "$ac_init_help"; then
1371 case $ac_init_help in
dc9aebf4 1372 short | recursive ) echo "Configuration of charybdis 3.5.0-dev:";;
212380e3
AC
1373 esac
1374 cat <<\_ACEOF
1375
1376Optional Features:
7083c021 1377 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6929cd01 1380 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1381 --enable-ipv6 Enable IPv6 support
631ef239 1382 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1383 --disable-openssl Disable OpenSSL support.
1384 --disable-zlib Disable ziplinks support
497e30a0 1385 --enable-shared-sqlite Use shared sqlite
c1c5fdc4 1386 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1387 --enable-poll Force poll() usage.
1388 --enable-select Force select() usage.
1389 --enable-kqueue Force kqueue() usage.
212380e3
AC
1390 --enable-epoll Force sys_epoll usage (Linux only).
1391 --enable-assert Enable assert(). Choose between soft(warnings) and
1392 hard(aborts the daemon)
1393 --enable-iodebug Enable IO Debugging hooks
1394 --enable-profile Enable profiling
1395 --disable-balloc Disable the block allocator.
212380e3 1396 --enable-small-net Enable small network support.
212380e3
AC
1397 --enable-warnings Enable all sorts of warnings for debugging.
1398
1399Optional Packages:
1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1402 --with-zlib-path=DIR Path to libz.so for ziplinks support.
634d4aad
NPB
1403 --with-confdir=DIR Directory to install config files [deprecated, use
1404 --sysconfdir instead].
212380e3
AC
1405 --with-logdir=DIR Directory where to write logfiles.
1406 --with-helpdir=DIR Directory to install help files.
1407 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1408 --with-rundir=DIR Directory in which to store pidfile.
1409 --with-program-prefix= If set, programs installed into PATH will be
1410 installed with names prefixed by this prefix.
b6d0720c
AC
1411 --with-custom-branding=NAME
1412 Custom branding name.
1413 --with-custom-version=NAME
1414 Custom version branding.
b583faf9 1415 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1416 31, max 50)
212380e3
AC
1417 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1418 390)
212380e3
AC
1419
1420Some influential environment variables:
1421 CC C compiler command
1422 CFLAGS C compiler flags
1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1424 nonstandard directory <lib dir>
631ef239 1425 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1427 you have headers in a nonstandard directory <include dir>
212380e3 1428 CPP C preprocessor
b6d0720c
AC
1429 YACC The `Yet Another Compiler Compiler' implementation to use.
1430 Defaults to the first program found out of: `bison -y', `byacc',
1431 `yacc'.
631ef239
AC
1432 YFLAGS The list of arguments that will be passed by default to $YACC.
1433 This script will default YFLAGS to the empty string to avoid a
1434 default value of `-d' given by some make applications.
212380e3
AC
1435
1436Use these variables to override the choices made by `configure' or to help
1437it to find libraries and programs with nonstandard names/locations.
1438
7083c021 1439Report bugs to the package provider.
212380e3 1440_ACEOF
631ef239 1441ac_status=$?
212380e3
AC
1442fi
1443
1444if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
212380e3 1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 continue
212380e3
AC
1450 ac_builddir=.
1451
631ef239
AC
1452case "$ac_dir" in
1453.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454*)
7083c021 1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1456 # A ".." for each directory in $ac_dir_suffix.
7083c021 1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461 esac ;;
1462esac
1463ac_abs_top_builddir=$ac_pwd
1464ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465# for backward compatibility:
1466ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1467
1468case $srcdir in
631ef239 1469 .) # We are building in place.
212380e3 1470 ac_srcdir=.
631ef239
AC
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1474 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1477 *) # Relative name.
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1481esac
631ef239
AC
1482ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1490 echo &&
1491 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1492 else
7083c021 1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1494 fi || ac_status=$?
1495 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1496 done
1497fi
1498
631ef239 1499test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1500if $ac_init_version; then
1501 cat <<\_ACEOF
dc9aebf4 1502charybdis configure 3.5.0-dev
2eff3833 1503generated by GNU Autoconf 2.69
212380e3 1504
2eff3833 1505Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
1506This configure script is free software; the Free Software Foundation
1507gives unlimited permission to copy, distribute and modify it.
1508
b676ea3b 1509$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1510_ACEOF
631ef239 1511 exit
212380e3 1512fi
212380e3 1513
7083c021
AC
1514## ------------------------ ##
1515## Autoconf initialization. ##
1516## ------------------------ ##
212380e3 1517
7083c021
AC
1518# ac_fn_c_try_compile LINENO
1519# --------------------------
1520# Try to compile conftest.$ac_ext, and return whether this succeeded.
1521ac_fn_c_try_compile ()
1522{
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 rm -f conftest.$ac_objext
1525 if { { ac_try="$ac_compile"
1526case "(($ac_try" in
1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1528 *) ac_try_echo=$ac_try;;
1529esac
1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1531$as_echo "$ac_try_echo"; } >&5
1532 (eval "$ac_compile") 2>conftest.err
1533 ac_status=$?
1534 if test -s conftest.err; then
1535 grep -v '^ *+' conftest.err >conftest.er1
1536 cat conftest.er1 >&5
1537 mv -f conftest.er1 conftest.err
1538 fi
1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1540 test $ac_status = 0; } && {
1541 test -z "$ac_c_werror_flag" ||
1542 test ! -s conftest.err
1543 } && test -s conftest.$ac_objext; then :
1544 ac_retval=0
1545else
1546 $as_echo "$as_me: failed program was:" >&5
1547sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1548
7083c021
AC
1549 ac_retval=1
1550fi
b6d0720c 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1552 as_fn_set_status $ac_retval
7083c021
AC
1553
1554} # ac_fn_c_try_compile
1555
1556# ac_fn_c_try_cpp LINENO
1557# ----------------------
1558# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_cpp ()
212380e3 1560{
7083c021
AC
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 if { { ac_try="$ac_cpp conftest.$ac_ext"
1563case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566esac
1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568$as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b6d0720c 1577 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 }; then :
1581 ac_retval=0
1582else
1583 $as_echo "$as_me: failed program was:" >&5
1584sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1585
7083c021
AC
1586 ac_retval=1
1587fi
b6d0720c 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1589 as_fn_set_status $ac_retval
212380e3 1590
7083c021 1591} # ac_fn_c_try_cpp
212380e3 1592
7083c021
AC
1593# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1594# -------------------------------------------------------
1595# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1596# the include files in INCLUDES and setting the cache variable VAR
1597# accordingly.
1598ac_fn_c_check_header_mongrel ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b6d0720c 1601 if eval \${$3+:} false; then :
7083c021
AC
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603$as_echo_n "checking for $2... " >&6; }
b6d0720c 1604if eval \${$3+:} false; then :
7083c021
AC
1605 $as_echo_n "(cached) " >&6
1606fi
1607eval ac_res=\$$3
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609$as_echo "$ac_res" >&6; }
1610else
1611 # Is the header compilable?
1612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1613$as_echo_n "checking $2 usability... " >&6; }
1614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1615/* end confdefs.h. */
1616$4
1617#include <$2>
1618_ACEOF
1619if ac_fn_c_try_compile "$LINENO"; then :
1620 ac_header_compiler=yes
1621else
1622 ac_header_compiler=no
1623fi
1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1626$as_echo "$ac_header_compiler" >&6; }
212380e3 1627
7083c021
AC
1628# Is the header present?
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1630$as_echo_n "checking $2 presence... " >&6; }
1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h. */
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_cpp "$LINENO"; then :
1636 ac_header_preproc=yes
1637else
1638 ac_header_preproc=no
1639fi
b6d0720c 1640rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1642$as_echo "$ac_header_preproc" >&6; }
212380e3 1643
7083c021
AC
1644# So? What about this header?
1645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1646 yes:no: )
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1648$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1651 ;;
1652 no:yes:* )
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1654$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1656$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1658$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1660$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1662$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1663 ;;
1664esac
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666$as_echo_n "checking for $2... " >&6; }
b6d0720c 1667if eval \${$3+:} false; then :
7083c021
AC
1668 $as_echo_n "(cached) " >&6
1669else
1670 eval "$3=\$ac_header_compiler"
1671fi
1672eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674$as_echo "$ac_res" >&6; }
1675fi
b6d0720c 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1677
7083c021 1678} # ac_fn_c_check_header_mongrel
212380e3 1679
7083c021
AC
1680# ac_fn_c_try_run LINENO
1681# ----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683# that executables *can* be run.
1684ac_fn_c_try_run ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701esac
1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703$as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1713
7083c021
AC
1714 ac_retval=$ac_status
1715fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1718 as_fn_set_status $ac_retval
212380e3 1719
7083c021 1720} # ac_fn_c_try_run
212380e3 1721
7083c021
AC
1722# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1723# -------------------------------------------------------
1724# Tests whether HEADER exists and can be compiled using the include files in
1725# INCLUDES, setting the cache variable VAR accordingly.
1726ac_fn_c_check_header_compile ()
1727{
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730$as_echo_n "checking for $2... " >&6; }
b6d0720c 1731if eval \${$3+:} false; then :
7083c021
AC
1732 $as_echo_n "(cached) " >&6
1733else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735/* end confdefs.h. */
1736$4
1737#include <$2>
212380e3 1738_ACEOF
7083c021
AC
1739if ac_fn_c_try_compile "$LINENO"; then :
1740 eval "$3=yes"
1741else
1742 eval "$3=no"
1743fi
1744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1745fi
1746eval ac_res=\$$3
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748$as_echo "$ac_res" >&6; }
b6d0720c 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1750
7083c021 1751} # ac_fn_c_check_header_compile
212380e3 1752
7083c021
AC
1753# ac_fn_c_try_link LINENO
1754# -----------------------
1755# Try to link conftest.$ac_ext, and return whether this succeeded.
1756ac_fn_c_try_link ()
1757{
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext conftest$ac_exeext
1760 if { { ac_try="$ac_link"
1761case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764esac
1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766$as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_link") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1773 fi
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest$ac_exeext && {
1779 test "$cross_compiling" = yes ||
2eff3833 1780 test -x conftest$ac_exeext
7083c021
AC
1781 }; then :
1782 ac_retval=0
212380e3 1783else
7083c021
AC
1784 $as_echo "$as_me: failed program was:" >&5
1785sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1786
7083c021 1787 ac_retval=1
212380e3 1788fi
7083c021
AC
1789 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1790 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1791 # interfere with the next link command; also delete a directory that is
1792 # left behind by Apple's compiler. We do this before executing the actions.
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1795 as_fn_set_status $ac_retval
212380e3 1796
7083c021 1797} # ac_fn_c_try_link
212380e3 1798
7083c021
AC
1799# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1800# -------------------------------------------
1801# Tests whether TYPE exists after having included INCLUDES, setting cache
1802# variable VAR accordingly.
1803ac_fn_c_check_type ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
b6d0720c 1808if eval \${$3+:} false; then :
7083c021 1809 $as_echo_n "(cached) " >&6
212380e3 1810else
7083c021
AC
1811 eval "$3=no"
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814$4
1815int
1816main ()
1817{
1818if (sizeof ($2))
1819 return 0;
1820 ;
1821 return 0;
1822}
212380e3 1823_ACEOF
7083c021
AC
1824if ac_fn_c_try_compile "$LINENO"; then :
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1826/* end confdefs.h. */
7083c021 1827$4
212380e3
AC
1828int
1829main ()
1830{
7083c021
AC
1831if (sizeof (($2)))
1832 return 0;
212380e3
AC
1833 ;
1834 return 0;
1835}
1836_ACEOF
7083c021 1837if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1838
631ef239 1839else
7083c021 1840 eval "$3=yes"
212380e3 1841fi
7083c021 1842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1843fi
7083c021 1844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1845fi
7083c021
AC
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
b6d0720c 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1850
7083c021
AC
1851} # ac_fn_c_check_type
1852
1853# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1854# --------------------------------------------
1855# Tries to find the compile-time value of EXPR in a program that includes
1856# INCLUDES, setting VAR accordingly. Returns whether the value could be
1857# computed
1858ac_fn_c_compute_int ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if test "$cross_compiling" = yes; then
1862 # Depending upon the size, compute the lo and hi bounds.
1863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864/* end confdefs.h. */
1865$4
1866int
1867main ()
1868{
1869static int test_array [1 - 2 * !(($2) >= 0)];
2eff3833
JT
1870test_array [0] = 0;
1871return test_array [0];
7083c021
AC
1872
1873 ;
1874 return 0;
1875}
212380e3 1876_ACEOF
7083c021
AC
1877if ac_fn_c_try_compile "$LINENO"; then :
1878 ac_lo=0 ac_mid=0
1879 while :; do
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1881/* end confdefs.h. */
7083c021
AC
1882$4
1883int
1884main ()
1885{
1886static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
1887test_array [0] = 0;
1888return test_array [0];
212380e3 1889
7083c021
AC
1890 ;
1891 return 0;
1892}
212380e3 1893_ACEOF
7083c021
AC
1894if ac_fn_c_try_compile "$LINENO"; then :
1895 ac_hi=$ac_mid; break
212380e3 1896else
7083c021
AC
1897 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1898 if test $ac_lo -le $ac_mid; then
1899 ac_lo= ac_hi=
1900 break
1901 fi
1902 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1903fi
631ef239 1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1905 done
1906else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909$4
1910int
1911main ()
1912{
1913static int test_array [1 - 2 * !(($2) < 0)];
2eff3833
JT
1914test_array [0] = 0;
1915return test_array [0];
212380e3 1916
7083c021
AC
1917 ;
1918 return 0;
1919}
212380e3 1920_ACEOF
7083c021
AC
1921if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_hi=-1 ac_mid=-1
1923 while :; do
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926$4
1927int
1928main ()
1929{
1930static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2eff3833
JT
1931test_array [0] = 0;
1932return test_array [0];
212380e3 1933
7083c021
AC
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_lo=$ac_mid; break
1940else
1941 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1942 if test $ac_mid -le $ac_hi; then
1943 ac_lo= ac_hi=
1944 break
1945 fi
1946 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1947fi
7083c021
AC
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
212380e3 1950else
7083c021
AC
1951 ac_lo= ac_hi=
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956# Binary search between lo and hi bounds.
1957while test "x$ac_lo" != "x$ac_hi"; do
1958 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1960/* end confdefs.h. */
7083c021
AC
1961$4
1962int
1963main ()
1964{
1965static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
1966test_array [0] = 0;
1967return test_array [0];
7083c021
AC
1968
1969 ;
1970 return 0;
1971}
212380e3 1972_ACEOF
7083c021
AC
1973if ac_fn_c_try_compile "$LINENO"; then :
1974 ac_hi=$ac_mid
212380e3 1975else
7083c021 1976 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1977fi
7083c021
AC
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979done
1980case $ac_lo in #((
1981?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1982'') ac_retval=1 ;;
1983esac
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988static long int longval () { return $2; }
1989static unsigned long int ulongval () { return $2; }
1990#include <stdio.h>
1991#include <stdlib.h>
1992int
1993main ()
1994{
631ef239 1995
7083c021
AC
1996 FILE *f = fopen ("conftest.val", "w");
1997 if (! f)
1998 return 1;
1999 if (($2) < 0)
2000 {
2001 long int i = longval ();
2002 if (i != ($2))
2003 return 1;
2004 fprintf (f, "%ld", i);
2005 }
2006 else
2007 {
2008 unsigned long int i = ulongval ();
2009 if (i != ($2))
2010 return 1;
2011 fprintf (f, "%lu", i);
2012 }
2013 /* Do not output a trailing newline, as this causes \r\n confusion
2014 on some platforms. */
2015 return ferror (f) || fclose (f) != 0;
212380e3 2016
7083c021
AC
2017 ;
2018 return 0;
2019}
212380e3 2020_ACEOF
7083c021
AC
2021if ac_fn_c_try_run "$LINENO"; then :
2022 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 2023else
7083c021 2024 ac_retval=1
212380e3 2025fi
7083c021
AC
2026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2027 conftest.$ac_objext conftest.beam conftest.$ac_ext
2028rm -f conftest.val
631ef239 2029
7083c021 2030 fi
b6d0720c 2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2032 as_fn_set_status $ac_retval
212380e3 2033
7083c021 2034} # ac_fn_c_compute_int
212380e3 2035
7083c021
AC
2036# ac_fn_c_check_func LINENO FUNC VAR
2037# ----------------------------------
2038# Tests whether FUNC exists, setting the cache variable VAR accordingly
2039ac_fn_c_check_func ()
2040{
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
b6d0720c 2044if eval \${$3+:} false; then :
7083c021 2045 $as_echo_n "(cached) " >&6
212380e3 2046else
7083c021 2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2048/* end confdefs.h. */
7083c021
AC
2049/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2051#define $2 innocuous_$2
2052
2053/* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $2 (); below.
2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2056 <limits.h> exists even on freestanding compilers. */
2057
212380e3
AC
2058#ifdef __STDC__
2059# include <limits.h>
2060#else
2061# include <assert.h>
2062#endif
212380e3 2063
7083c021 2064#undef $2
631ef239 2065
7083c021
AC
2066/* Override any GCC internal prototype to avoid an error.
2067 Use char because int might match the return type of a GCC
2068 builtin and then its argument prototype would still apply. */
2069#ifdef __cplusplus
2070extern "C"
2071#endif
2072char $2 ();
2073/* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076#if defined __stub_$2 || defined __stub___$2
2077choke me
2078#endif
212380e3 2079
7083c021
AC
2080int
2081main ()
2082{
2083return $2 ();
2084 ;
2085 return 0;
2086}
212380e3 2087_ACEOF
7083c021
AC
2088if ac_fn_c_try_link "$LINENO"; then :
2089 eval "$3=yes"
212380e3 2090else
7083c021
AC
2091 eval "$3=no"
2092fi
2093rm -f core conftest.err conftest.$ac_objext \
2094 conftest$ac_exeext conftest.$ac_ext
212380e3 2095fi
7083c021
AC
2096eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098$as_echo "$ac_res" >&6; }
b6d0720c 2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
631ef239 2100
7083c021
AC
2101} # ac_fn_c_check_func
2102cat >config.log <<_ACEOF
2103This file contains any messages produced by compilers while
2104running configure, to aid debugging if configure makes a mistake.
212380e3 2105
dc9aebf4 2106It was created by charybdis $as_me 3.5.0-dev, which was
2eff3833 2107generated by GNU Autoconf 2.69. Invocation command line was
212380e3 2108
7083c021 2109 $ $0 $@
212380e3 2110
7083c021
AC
2111_ACEOF
2112exec 5>>config.log
2113{
2114cat <<_ASUNAME
2115## --------- ##
2116## Platform. ##
2117## --------- ##
2118
2119hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2120uname -m = `(uname -m) 2>/dev/null || echo unknown`
2121uname -r = `(uname -r) 2>/dev/null || echo unknown`
2122uname -s = `(uname -s) 2>/dev/null || echo unknown`
2123uname -v = `(uname -v) 2>/dev/null || echo unknown`
2124
2125/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2126/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2127
2128/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2129/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2130/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2131/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2132/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2133/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2134/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2135
2136_ASUNAME
212380e3 2137
631ef239 2138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2139for as_dir in $PATH
631ef239
AC
2140do
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
7083c021 2143 $as_echo "PATH: $as_dir"
631ef239 2144 done
631ef239
AC
2145IFS=$as_save_IFS
2146
7083c021 2147} >&5
631ef239 2148
7083c021 2149cat >&5 <<_ACEOF
631ef239 2150
631ef239 2151
7083c021
AC
2152## ----------- ##
2153## Core tests. ##
2154## ----------- ##
631ef239 2155
7083c021 2156_ACEOF
631ef239
AC
2157
2158
7083c021
AC
2159# Keep a trace of the command line.
2160# Strip out --no-create and --no-recursion so they do not pile up.
2161# Strip out --silent because we don't want to record it for future runs.
2162# Also quote any args containing shell meta-characters.
2163# Make two passes to allow for proper duplicate-argument suppression.
2164ac_configure_args=
2165ac_configure_args0=
2166ac_configure_args1=
2167ac_must_keep_next=false
2168for ac_pass in 1 2
631ef239 2169do
7083c021 2170 for ac_arg
631ef239 2171 do
7083c021
AC
2172 case $ac_arg in
2173 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2175 | -silent | --silent | --silen | --sile | --sil)
2176 continue ;;
2177 *\'*)
2178 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 esac
2180 case $ac_pass in
2181 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2182 2)
2183 as_fn_append ac_configure_args1 " '$ac_arg'"
2184 if test $ac_must_keep_next = true; then
2185 ac_must_keep_next=false # Got value, back to normal.
2186 else
2187 case $ac_arg in
2188 *=* | --config-cache | -C | -disable-* | --disable-* \
2189 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2190 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2191 | -with-* | --with-* | -without-* | --without-* | --x)
2192 case "$ac_configure_args0 " in
2193 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2194 esac
2195 ;;
2196 -* ) ac_must_keep_next=true ;;
2197 esac
2198 fi
2199 as_fn_append ac_configure_args " '$ac_arg'"
2200 ;;
2201 esac
631ef239
AC
2202 done
2203done
7083c021
AC
2204{ ac_configure_args0=; unset ac_configure_args0;}
2205{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2206
7083c021
AC
2207# When interrupted or exit'd, cleanup temporary files, and complete
2208# config.log. We remove comments because anyway the quotes in there
2209# would cause problems or look ugly.
2210# WARNING: Use '\'' to represent an apostrophe within the trap.
2211# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2212trap 'exit_status=$?
2213 # Save into config.log some information that might help in debugging.
2214 {
2215 echo
631ef239 2216
b6d0720c 2217 $as_echo "## ---------------- ##
7083c021 2218## Cache variables. ##
b6d0720c 2219## ---------------- ##"
7083c021
AC
2220 echo
2221 # The following way of writing the cache mishandles newlines in values,
2222(
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2225 case $ac_val in #(
2226 *${as_nl}*)
2227 case $ac_var in #(
2228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2229$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2230 esac
2231 case $ac_var in #(
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) { eval $ac_var=; unset $ac_var;} ;;
2235 esac ;;
2236 esac
2237 done
2238 (set) 2>&1 |
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2241 sed -n \
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2244 ;; #(
2245 *)
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 ;;
2248 esac |
2249 sort
2250)
2251 echo
631ef239 2252
b6d0720c 2253 $as_echo "## ----------------- ##
7083c021 2254## Output variables. ##
b6d0720c 2255## ----------------- ##"
7083c021
AC
2256 echo
2257 for ac_var in $ac_subst_vars
2258 do
2259 eval ac_val=\$$ac_var
2260 case $ac_val in
2261 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2262 esac
2263 $as_echo "$ac_var='\''$ac_val'\''"
2264 done | sort
2265 echo
631ef239 2266
7083c021 2267 if test -n "$ac_subst_files"; then
b6d0720c 2268 $as_echo "## ------------------- ##
7083c021 2269## File substitutions. ##
b6d0720c 2270## ------------------- ##"
7083c021
AC
2271 echo
2272 for ac_var in $ac_subst_files
2273 do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2281 fi
631ef239 2282
7083c021 2283 if test -s confdefs.h; then
b6d0720c 2284 $as_echo "## ----------- ##
7083c021 2285## confdefs.h. ##
b6d0720c 2286## ----------- ##"
7083c021
AC
2287 echo
2288 cat confdefs.h
2289 echo
2290 fi
2291 test "$ac_signal" != 0 &&
2292 $as_echo "$as_me: caught signal $ac_signal"
2293 $as_echo "$as_me: exit $exit_status"
2294 } >&5
2295 rm -f core *.core core.conftest.* &&
2296 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2297 exit $exit_status
2298' 0
2299for ac_signal in 1 2 13 15; do
2300 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2301done
2302ac_signal=0
631ef239 2303
7083c021
AC
2304# confdefs.h avoids OS command line length limits that DEFS can exceed.
2305rm -f -r conftest* confdefs.h
631ef239 2306
7083c021 2307$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2308
7083c021 2309# Predefined preprocessor variables.
212380e3 2310
7083c021
AC
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2313_ACEOF
212380e3 2314
7083c021
AC
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2317_ACEOF
212380e3 2318
7083c021
AC
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2321_ACEOF
212380e3 2322
7083c021
AC
2323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_STRING "$PACKAGE_STRING"
2325_ACEOF
212380e3 2326
7083c021
AC
2327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2329_ACEOF
212380e3 2330
7083c021
AC
2331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_URL "$PACKAGE_URL"
2333_ACEOF
212380e3 2334
631ef239 2335
7083c021
AC
2336# Let the site file select an alternate cache file if it wants to.
2337# Prefer an explicitly selected file to automatically selected ones.
2338ac_site_file1=NONE
2339ac_site_file2=NONE
2340if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2341 # We do not want a PATH search for config.site.
2342 case $CONFIG_SITE in #((
2343 -*) ac_site_file1=./$CONFIG_SITE;;
2344 */*) ac_site_file1=$CONFIG_SITE;;
2345 *) ac_site_file1=./$CONFIG_SITE;;
2346 esac
7083c021
AC
2347elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
212380e3 2350else
7083c021
AC
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2353fi
2354for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2355do
7083c021 2356 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2357 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2361 . "$ac_site_file" \
2362 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2364as_fn_error $? "failed to load site script $ac_site_file
2365See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2366 fi
2367done
212380e3 2368
7083c021 2369if test -r "$cache_file"; then
6fb6bd15
AC
2370 # Some versions of bash will fail to source /dev/null (special files
2371 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2372 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2374$as_echo "$as_me: loading cache $cache_file" >&6;}
2375 case $cache_file in
2376 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2377 *) . "./$cache_file";;
2378 esac
2379 fi
212380e3 2380else
7083c021
AC
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2382$as_echo "$as_me: creating cache $cache_file" >&6;}
2383 >$cache_file
212380e3
AC
2384fi
2385
7083c021
AC
2386# Check that the precious variables saved in the cache have kept the same
2387# value.
2388ac_cache_corrupted=false
2389for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2395 set,)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,set)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,);;
2404 *)
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2422 fi;;
2423 esac
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2426 case $ac_new_val in
2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2429 esac
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2433 esac
212380e3
AC
2434 fi
2435done
7083c021
AC
2436if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2442fi
7083c021
AC
2443## -------------------- ##
2444## Main body of script. ##
2445## -------------------- ##
212380e3 2446
7083c021
AC
2447ac_ext=c
2448ac_cpp='$CPP $CPPFLAGS'
2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2452
212380e3 2453
212380e3 2454
7083c021 2455ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2456
212380e3 2457
212380e3 2458
631ef239 2459
7083c021
AC
2460ac_ext=c
2461ac_cpp='$CPP $CPPFLAGS'
2462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
2465if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2467set dummy ${ac_tool_prefix}gcc; ac_word=$2
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2470if ${ac_cv_prog_CC+:} false; then :
7083c021 2471 $as_echo_n "(cached) " >&6
212380e3 2472else
7083c021
AC
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
7083c021 2481 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2485 break 2
2486 fi
2487done
7083c021 2488 done
631ef239 2489IFS=$as_save_IFS
212380e3 2490
212380e3 2491fi
7083c021
AC
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496$as_echo "$CC" >&6; }
212380e3 2497else
7083c021
AC
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499$as_echo "no" >&6; }
212380e3
AC
2500fi
2501
631ef239 2502
7083c021
AC
2503fi
2504if test -z "$ac_cv_prog_CC"; then
2505 ac_ct_CC=$CC
2506 # Extract the first word of "gcc", so it can be a program name with args.
2507set dummy gcc; ac_word=$2
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2510if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2511 $as_echo_n "(cached) " >&6
212380e3 2512else
7083c021
AC
2513 if test -n "$ac_ct_CC"; then
2514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
7083c021 2521 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2523 ac_cv_prog_ac_ct_CC="gcc"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2525 break 2
2526 fi
2527done
7083c021 2528 done
631ef239 2529IFS=$as_save_IFS
212380e3 2530
212380e3 2531fi
7083c021
AC
2532fi
2533ac_ct_CC=$ac_cv_prog_ac_ct_CC
2534if test -n "$ac_ct_CC"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2536$as_echo "$ac_ct_CC" >&6; }
212380e3 2537else
7083c021
AC
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539$as_echo "no" >&6; }
212380e3
AC
2540fi
2541
7083c021
AC
2542 if test "x$ac_ct_CC" = x; then
2543 CC=""
2544 else
2545 case $cross_compiling:$ac_tool_warned in
2546yes:)
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549ac_tool_warned=yes ;;
2550esac
2551 CC=$ac_ct_CC
2552 fi
2553else
2554 CC="$ac_cv_prog_CC"
2555fi
631ef239 2556
7083c021
AC
2557if test -z "$CC"; then
2558 if test -n "$ac_tool_prefix"; then
2559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2560set dummy ${ac_tool_prefix}cc; ac_word=$2
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2563if ${ac_cv_prog_CC+:} false; then :
7083c021 2564 $as_echo_n "(cached) " >&6
212380e3 2565else
7083c021
AC
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
7083c021 2574 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2576 ac_cv_prog_CC="${ac_tool_prefix}cc"
2577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2578 break 2
2579 fi
2580done
7083c021 2581 done
631ef239 2582IFS=$as_save_IFS
7083c021 2583
212380e3 2584fi
7083c021
AC
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2589$as_echo "$CC" >&6; }
212380e3 2590else
7083c021
AC
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592$as_echo "no" >&6; }
212380e3
AC
2593fi
2594
631ef239 2595
7083c021
AC
2596 fi
2597fi
2598if test -z "$CC"; then
2599 # Extract the first word of "cc", so it can be a program name with args.
2600set dummy cc; ac_word=$2
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2602$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2603if ${ac_cv_prog_CC+:} false; then :
7083c021 2604 $as_echo_n "(cached) " >&6
212380e3 2605else
7083c021
AC
2606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
2608else
2609 ac_prog_rejected=no
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
7083c021 2615 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2618 ac_prog_rejected=yes
2619 continue
2620 fi
2621 ac_cv_prog_CC="cc"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2623 break 2
2624 fi
2625done
7083c021 2626 done
631ef239 2627IFS=$as_save_IFS
212380e3 2628
7083c021
AC
2629if test $ac_prog_rejected = yes; then
2630 # We found a bogon in the path, so make sure we never use it.
2631 set dummy $ac_cv_prog_CC
2632 shift
2633 if test $# != 0; then
2634 # We chose a different compiler from the bogus one.
2635 # However, it has the same basename, so the bogon will be chosen
2636 # first if we set CC to just the basename; use the full file name.
2637 shift
2638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2639 fi
212380e3 2640fi
7083c021
AC
2641fi
2642fi
2643CC=$ac_cv_prog_CC
2644if test -n "$CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2646$as_echo "$CC" >&6; }
212380e3 2647else
7083c021
AC
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
212380e3
AC
2650fi
2651
2652
7083c021
AC
2653fi
2654if test -z "$CC"; then
2655 if test -n "$ac_tool_prefix"; then
2656 for ac_prog in cl.exe
2657 do
2658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2662if ${ac_cv_prog_CC+:} false; then :
7083c021 2663 $as_echo_n "(cached) " >&6
212380e3 2664else
7083c021
AC
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
7083c021 2673 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2677 break 2
2678 fi
2679done
7083c021 2680 done
631ef239 2681IFS=$as_save_IFS
212380e3
AC
2682
2683fi
2684fi
7083c021
AC
2685CC=$ac_cv_prog_CC
2686if test -n "$CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2688$as_echo "$CC" >&6; }
212380e3 2689else
7083c021
AC
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
212380e3
AC
2692fi
2693
631ef239 2694
7083c021
AC
2695 test -n "$CC" && break
2696 done
212380e3 2697fi
7083c021
AC
2698if test -z "$CC"; then
2699 ac_ct_CC=$CC
2700 for ac_prog in cl.exe
212380e3
AC
2701do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703set dummy $ac_prog; ac_word=$2
7083c021
AC
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2706if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2707 $as_echo_n "(cached) " >&6
212380e3 2708else
7083c021
AC
2709 if test -n "$ac_ct_CC"; then
2710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3
AC
2711else
2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
7083c021 2717 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2719 ac_cv_prog_ac_ct_CC="$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2721 break 2
2722 fi
2723done
7083c021 2724 done
631ef239 2725IFS=$as_save_IFS
212380e3
AC
2726
2727fi
2728fi
7083c021
AC
2729ac_ct_CC=$ac_cv_prog_ac_ct_CC
2730if test -n "$ac_ct_CC"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2732$as_echo "$ac_ct_CC" >&6; }
212380e3 2733else
7083c021
AC
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735$as_echo "no" >&6; }
212380e3
AC
2736fi
2737
631ef239 2738
7083c021 2739 test -n "$ac_ct_CC" && break
212380e3 2740done
212380e3 2741
7083c021
AC
2742 if test "x$ac_ct_CC" = x; then
2743 CC=""
2744 else
2745 case $cross_compiling:$ac_tool_warned in
2746yes:)
2747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2749ac_tool_warned=yes ;;
2750esac
2751 CC=$ac_ct_CC
2752 fi
2753fi
2754
2755fi
2756
2757
2758test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2760as_fn_error $? "no acceptable C compiler found in \$PATH
2761See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
2762
2763# Provide some information about the compiler.
2764$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2765set X $ac_compile
2766ac_compiler=$2
2767for ac_option in --version -v -V -qversion; do
2768 { { ac_try="$ac_compiler $ac_option >&5"
2769case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2776 ac_status=$?
2777 if test -s conftest.err; then
2778 sed '10a\
2779... rest of stderr output deleted ...
2780 10q' conftest.err >conftest.er1
2781 cat conftest.er1 >&5
7083c021 2782 fi
6fb6bd15 2783 rm -f conftest.er1 conftest.err
7083c021
AC
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }
2786done
2787
2788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2789/* end confdefs.h. */
6fb6bd15 2790
212380e3 2791int
7083c021 2792main ()
212380e3 2793{
7083c021
AC
2794
2795 ;
2796 return 0;
212380e3
AC
2797}
2798_ACEOF
7083c021 2799ac_clean_files_save=$ac_clean_files
6fb6bd15 2800ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7083c021
AC
2801# Try to create an executable without -o first, disregard a.out.
2802# It will help us diagnose broken compilers, and finding out an intuition
2803# of exeext.
6fb6bd15
AC
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2805$as_echo_n "checking whether the C compiler works... " >&6; }
7083c021
AC
2806ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2807
2808# The possible output files:
2809ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2810
2811ac_rmfiles=
2812for ac_file in $ac_files
2813do
2814 case $ac_file in
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2816 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2817 esac
2818done
2819rm -f $ac_rmfiles
2820
2821if { { ac_try="$ac_link_default"
631ef239
AC
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
7083c021
AC
2826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2827$as_echo "$ac_try_echo"; } >&5
2828 (eval "$ac_link_default") 2>&5
212380e3 2829 ac_status=$?
7083c021
AC
2830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2831 test $ac_status = 0; }; then :
2832 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2833# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2834# in a Makefile. We should not override ac_cv_exeext if it was cached,
2835# so that the user can short-circuit this test for compilers unknown to
2836# Autoconf.
2837for ac_file in $ac_files ''
2838do
2839 test -f "$ac_file" || continue
2840 case $ac_file in
2841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2842 ;;
2843 [ab].out )
2844 # We found the default executable, but exeext='' is most
2845 # certainly right.
2846 break;;
2847 *.* )
2848 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2849 then :; else
2850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2851 fi
2852 # We set ac_cv_exeext here because the later test for it is not
2853 # safe: cross compilers may not add the suffix if given an `-o'
2854 # argument, so we may need to know it at that point already.
2855 # Even if this section looks crufty: it has the advantage of
2856 # actually working.
2857 break;;
2858 * )
2859 break;;
2860 esac
2861done
2862test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2863
212380e3 2864else
7083c021 2865 ac_file=''
631ef239 2866fi
7083c021 2867if test -z "$ac_file"; then :
6fb6bd15
AC
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870$as_echo "$as_me: failed program was:" >&5
7083c021
AC
2871sed 's/^/| /' conftest.$ac_ext >&5
2872
2873{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2875as_fn_error 77 "C compiler cannot create executables
2876See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2877else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2879$as_echo "yes" >&6; }
631ef239 2880fi
6fb6bd15
AC
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2882$as_echo_n "checking for C compiler default output file name... " >&6; }
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2884$as_echo "$ac_file" >&6; }
7083c021 2885ac_exeext=$ac_cv_exeext
631ef239 2886
6fb6bd15 2887rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7083c021 2888ac_clean_files=$ac_clean_files_save
7083c021
AC
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2890$as_echo_n "checking for suffix of executables... " >&6; }
2891if { { ac_try="$ac_link"
2892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
2896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897$as_echo "$ac_try_echo"; } >&5
2898 (eval "$ac_link") 2>&5
2899 ac_status=$?
2900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901 test $ac_status = 0; }; then :
2902 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2903# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2904# work properly (i.e., refer to `conftest.exe'), while it won't with
2905# `rm'.
2906for ac_file in conftest.exe conftest conftest.*; do
2907 test -f "$ac_file" || continue
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2911 break;;
2912 * ) break;;
2913 esac
2914done
212380e3 2915else
7083c021
AC
2916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2918as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details" "$LINENO" 5; }
7083c021 2920fi
6fb6bd15 2921rm -f conftest conftest$ac_cv_exeext
7083c021
AC
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2923$as_echo "$ac_cv_exeext" >&6; }
2924
2925rm -f conftest.$ac_ext
2926EXEEXT=$ac_cv_exeext
2927ac_exeext=$EXEEXT
6fb6bd15
AC
2928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929/* end confdefs.h. */
2930#include <stdio.h>
2931int
2932main ()
2933{
2934FILE *f = fopen ("conftest.out", "w");
2935 return ferror (f) || fclose (f) != 0;
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941ac_clean_files="$ac_clean_files conftest.out"
2942# Check that the compiler produces executables we can run. If not, either
2943# the compiler is broken, or we cross compile.
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2945$as_echo_n "checking whether we are cross compiling... " >&6; }
2946if test "$cross_compiling" != yes; then
2947 { { ac_try="$ac_link"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2953$as_echo "$ac_try_echo"; } >&5
2954 (eval "$ac_link") 2>&5
2955 ac_status=$?
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2958 if { ac_try='./conftest$ac_cv_exeext'
2959 { { case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962esac
2963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964$as_echo "$ac_try_echo"; } >&5
2965 (eval "$ac_try") 2>&5
2966 ac_status=$?
2967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2968 test $ac_status = 0; }; }; then
2969 cross_compiling=no
2970 else
2971 if test "$cross_compiling" = maybe; then
2972 cross_compiling=yes
2973 else
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c 2976as_fn_error $? "cannot run C compiled programs.
6fb6bd15 2977If you meant to cross compile, use \`--host'.
b6d0720c 2978See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2979 fi
2980 fi
2981fi
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2983$as_echo "$cross_compiling" >&6; }
2984
2985rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2986ac_clean_files=$ac_clean_files_save
7083c021
AC
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2988$as_echo_n "checking for suffix of object files... " >&6; }
b6d0720c 2989if ${ac_cv_objext+:} false; then :
7083c021
AC
2990 $as_echo_n "(cached) " >&6
2991else
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993/* end confdefs.h. */
212380e3 2994
7083c021
AC
2995int
2996main ()
2997{
2998
2999 ;
3000 return 0;
3001}
212380e3 3002_ACEOF
7083c021
AC
3003rm -f conftest.o conftest.obj
3004if { { ac_try="$ac_compile"
631ef239
AC
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
7083c021
AC
3009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010$as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_compile") 2>&5
212380e3 3012 ac_status=$?
7083c021
AC
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }; then :
3015 for ac_file in conftest.o conftest.obj conftest.*; do
3016 test -f "$ac_file" || continue;
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020 break;;
3021 esac
3022done
212380e3 3023else
7083c021 3024 $as_echo "$as_me: failed program was:" >&5
212380e3
AC
3025sed 's/^/| /' conftest.$ac_ext >&5
3026
7083c021
AC
3027{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3029as_fn_error $? "cannot compute suffix of object files: cannot compile
3030See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
3031fi
3032rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 3033fi
7083c021
AC
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3035$as_echo "$ac_cv_objext" >&6; }
3036OBJEXT=$ac_cv_objext
3037ac_objext=$OBJEXT
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3039$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 3040if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021
AC
3041 $as_echo_n "(cached) " >&6
3042else
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h. */
212380e3 3045
7083c021
AC
3046int
3047main ()
3048{
3049#ifndef __GNUC__
3050 choke me
3051#endif
212380e3 3052
7083c021
AC
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057if ac_fn_c_try_compile "$LINENO"; then :
3058 ac_compiler_gnu=yes
3059else
3060 ac_compiler_gnu=no
212380e3 3061fi
7083c021
AC
3062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064
3065fi
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3067$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3068if test $ac_compiler_gnu = yes; then
3069 GCC=yes
3070else
3071 GCC=
212380e3 3072fi
7083c021
AC
3073ac_test_CFLAGS=${CFLAGS+set}
3074ac_save_CFLAGS=$CFLAGS
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3076$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 3077if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
3078 $as_echo_n "(cached) " >&6
3079else
3080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3082 ac_cv_prog_cc_g=no
3083 CFLAGS="-g"
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h. */
212380e3 3086
7083c021
AC
3087int
3088main ()
3089{
631ef239 3090
7083c021
AC
3091 ;
3092 return 0;
3093}
212380e3 3094_ACEOF
7083c021
AC
3095if ac_fn_c_try_compile "$LINENO"; then :
3096 ac_cv_prog_cc_g=yes
212380e3 3097else
7083c021
AC
3098 CFLAGS=""
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100/* end confdefs.h. */
212380e3 3101
7083c021
AC
3102int
3103main ()
3104{
631ef239 3105
7083c021
AC
3106 ;
3107 return 0;
3108}
3109_ACEOF
3110if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3111
7083c021
AC
3112else
3113 ac_c_werror_flag=$ac_save_c_werror_flag
3114 CFLAGS="-g"
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116/* end confdefs.h. */
212380e3 3117
7083c021
AC
3118int
3119main ()
3120{
212380e3 3121
7083c021
AC
3122 ;
3123 return 0;
3124}
212380e3 3125_ACEOF
7083c021
AC
3126if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_cv_prog_cc_g=yes
212380e3 3128fi
7083c021 3129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3130fi
7083c021 3131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3132fi
7083c021
AC
3133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3134 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3135fi
7083c021
AC
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3137$as_echo "$ac_cv_prog_cc_g" >&6; }
3138if test "$ac_test_CFLAGS" = set; then
3139 CFLAGS=$ac_save_CFLAGS
3140elif test $ac_cv_prog_cc_g = yes; then
3141 if test "$GCC" = yes; then
3142 CFLAGS="-g -O2"
3143 else
3144 CFLAGS="-g"
3145 fi
212380e3 3146else
7083c021
AC
3147 if test "$GCC" = yes; then
3148 CFLAGS="-O2"
3149 else
3150 CFLAGS=
3151 fi
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3154$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 3155if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
3156 $as_echo_n "(cached) " >&6
3157else
3158 ac_cv_prog_cc_c89=no
3159ac_save_CC=$CC
3160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3161/* end confdefs.h. */
212380e3 3162#include <stdarg.h>
7083c021 3163#include <stdio.h>
2eff3833 3164struct stat;
7083c021
AC
3165/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166struct buf { int x; };
3167FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168static char *e (p, i)
3169 char **p;
3170 int i;
3171{
3172 return p[i];
3173}
3174static char *f (char * (*g) (char **, int), char **p, ...)
3175{
3176 char *s;
3177 va_list v;
3178 va_start (v,p);
3179 s = g (p, va_arg (v,int));
3180 va_end (v);
3181 return s;
3182}
3183
3184/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3192
3193/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3195#define FOO(x) 'x'
3196int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3197
7083c021
AC
3198int test (int i, double x);
3199struct s1 {int (*f) (int a);};
3200struct s2 {int (*f) (double a);};
3201int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3202int argc;
3203char **argv;
212380e3
AC
3204int
3205main ()
3206{
7083c021 3207return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
3208 ;
3209 return 0;
3210}
3211_ACEOF
7083c021
AC
3212for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3214do
3215 CC="$ac_save_CC $ac_arg"
3216 if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_cv_prog_cc_c89=$ac_arg
3218fi
3219rm -f core conftest.err conftest.$ac_objext
3220 test "x$ac_cv_prog_cc_c89" != "xno" && break
3221done
3222rm -f conftest.$ac_ext
3223CC=$ac_save_CC
3224
3225fi
3226# AC_CACHE_VAL
3227case "x$ac_cv_prog_cc_c89" in
3228 x)
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3230$as_echo "none needed" >&6; } ;;
3231 xno)
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3233$as_echo "unsupported" >&6; } ;;
3234 *)
3235 CC="$CC $ac_cv_prog_cc_c89"
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3237$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3238esac
7083c021 3239if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3240
212380e3 3241fi
631ef239 3242
7083c021
AC
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3248
212380e3 3249
7083c021
AC
3250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3256$as_echo_n "checking how to run the C preprocessor... " >&6; }
3257# On Suns, sometimes $CPP names a directory.
3258if test -n "$CPP" && test -d "$CPP"; then
3259 CPP=
3260fi
3261if test -z "$CPP"; then
b6d0720c 3262 if ${ac_cv_prog_CPP+:} false; then :
7083c021
AC
3263 $as_echo_n "(cached) " >&6
3264else
3265 # Double quotes because CPP needs to be expanded
3266 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3267 do
3268 ac_preproc_ok=false
3269for ac_c_preproc_warn_flag in '' yes
3270do
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278/* end confdefs.h. */
3279#ifdef __STDC__
3280# include <limits.h>
3281#else
3282# include <assert.h>
3283#endif
3284 Syntax error
212380e3 3285_ACEOF
7083c021 3286if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3287
7083c021
AC
3288else
3289 # Broken: fails on valid input.
3290continue
212380e3 3291fi
b6d0720c 3292rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3293
7083c021
AC
3294 # OK, works on sane cases. Now check whether nonexistent headers
3295 # can be detected and how.
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3297/* end confdefs.h. */
7083c021 3298#include <ac_nonexistent.h>
212380e3 3299_ACEOF
7083c021
AC
3300if ac_fn_c_try_cpp "$LINENO"; then :
3301 # Broken: success on invalid input.
3302continue
212380e3 3303else
7083c021
AC
3304 # Passes both tests.
3305ac_preproc_ok=:
3306break
212380e3 3307fi
b6d0720c 3308rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3309
7083c021
AC
3310done
3311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3312rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3313if $ac_preproc_ok; then :
3314 break
212380e3
AC
3315fi
3316
7083c021
AC
3317 done
3318 ac_cv_prog_CPP=$CPP
3319
3320fi
3321 CPP=$ac_cv_prog_CPP
212380e3 3322else
7083c021
AC
3323 ac_cv_prog_CPP=$CPP
3324fi
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3326$as_echo "$CPP" >&6; }
3327ac_preproc_ok=false
3328for ac_c_preproc_warn_flag in '' yes
3329do
3330 # Use a header file that comes with gcc, so configuring glibc
3331 # with a fresh cross-compiler works.
3332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3333 # <limits.h> exists even on freestanding compilers.
3334 # On the NeXT, cc -E runs the code through the compiler's parser,
3335 # not just through cpp. "Syntax error" is here to catch this case.
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3337/* end confdefs.h. */
7083c021
AC
3338#ifdef __STDC__
3339# include <limits.h>
212380e3 3340#else
7083c021 3341# include <assert.h>
212380e3 3342#endif
7083c021 3343 Syntax error
212380e3 3344_ACEOF
7083c021 3345if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3346
7083c021
AC
3347else
3348 # Broken: fails on valid input.
3349continue
212380e3 3350fi
b6d0720c 3351rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3352
7083c021
AC
3353 # OK, works on sane cases. Now check whether nonexistent headers
3354 # can be detected and how.
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3356/* end confdefs.h. */
7083c021 3357#include <ac_nonexistent.h>
212380e3 3358_ACEOF
7083c021
AC
3359if ac_fn_c_try_cpp "$LINENO"; then :
3360 # Broken: success on invalid input.
3361continue
212380e3 3362else
7083c021
AC
3363 # Passes both tests.
3364ac_preproc_ok=:
3365break
212380e3 3366fi
b6d0720c 3367rm -f conftest.err conftest.i conftest.$ac_ext
212380e3
AC
3368
3369done
7083c021 3370# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3371rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3372if $ac_preproc_ok; then :
212380e3 3373
7083c021
AC
3374else
3375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3377as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3378See \`config.log' for more details" "$LINENO" 5; }
7083c021 3379fi
212380e3 3380
7083c021
AC
3381ac_ext=c
3382ac_cpp='$CPP $CPPFLAGS'
3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3
AC
3386
3387
7083c021
AC
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3389$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b6d0720c 3390if ${ac_cv_path_GREP+:} false; then :
7083c021 3391 $as_echo_n "(cached) " >&6
212380e3 3392else
7083c021
AC
3393 if test -z "$GREP"; then
3394 ac_path_GREP_found=false
3395 # Loop through the user's path and test for each of PROGNAME-LIST
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3398do
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
3401 for ac_prog in grep ggrep; do
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2eff3833 3404 as_fn_executable_p "$ac_path_GREP" || continue
7083c021
AC
3405# Check for GNU ac_path_GREP and select it if it is found.
3406 # Check for GNU $ac_path_GREP
3407case `"$ac_path_GREP" --version 2>&1` in
3408*GNU*)
3409 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3410*)
3411 ac_count=0
3412 $as_echo_n 0123456789 >"conftest.in"
3413 while :
3414 do
3415 cat "conftest.in" "conftest.in" >"conftest.tmp"
3416 mv "conftest.tmp" "conftest.in"
3417 cp "conftest.in" "conftest.nl"
3418 $as_echo 'GREP' >> "conftest.nl"
3419 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3420 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3421 as_fn_arith $ac_count + 1 && ac_count=$as_val
3422 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3423 # Best one so far, save it but keep looking for a better one
3424 ac_cv_path_GREP="$ac_path_GREP"
3425 ac_path_GREP_max=$ac_count
3426 fi
3427 # 10*(2^10) chars as input seems more than enough
3428 test $ac_count -gt 10 && break
3429 done
3430 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3431esac
7083c021
AC
3432
3433 $ac_path_GREP_found && break 3
3434 done
3435 done
3436 done
3437IFS=$as_save_IFS
3438 if test -z "$ac_cv_path_GREP"; then
b6d0720c 3439 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3440 fi
212380e3 3441else
7083c021
AC
3442 ac_cv_path_GREP=$GREP
3443fi
212380e3 3444
212380e3 3445fi
7083c021
AC
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3447$as_echo "$ac_cv_path_GREP" >&6; }
3448 GREP="$ac_cv_path_GREP"
631ef239 3449
212380e3 3450
7083c021
AC
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3452$as_echo_n "checking for egrep... " >&6; }
b6d0720c 3453if ${ac_cv_path_EGREP+:} false; then :
7083c021
AC
3454 $as_echo_n "(cached) " >&6
3455else
3456 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3457 then ac_cv_path_EGREP="$GREP -E"
3458 else
3459 if test -z "$EGREP"; then
3460 ac_path_EGREP_found=false
3461 # Loop through the user's path and test for each of PROGNAME-LIST
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3464do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_prog in egrep; do
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2eff3833 3470 as_fn_executable_p "$ac_path_EGREP" || continue
7083c021
AC
3471# Check for GNU ac_path_EGREP and select it if it is found.
3472 # Check for GNU $ac_path_EGREP
3473case `"$ac_path_EGREP" --version 2>&1` in
3474*GNU*)
3475 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3476*)
3477 ac_count=0
3478 $as_echo_n 0123456789 >"conftest.in"
3479 while :
3480 do
3481 cat "conftest.in" "conftest.in" >"conftest.tmp"
3482 mv "conftest.tmp" "conftest.in"
3483 cp "conftest.in" "conftest.nl"
3484 $as_echo 'EGREP' >> "conftest.nl"
3485 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3487 as_fn_arith $ac_count + 1 && ac_count=$as_val
3488 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3489 # Best one so far, save it but keep looking for a better one
3490 ac_cv_path_EGREP="$ac_path_EGREP"
3491 ac_path_EGREP_max=$ac_count
3492 fi
3493 # 10*(2^10) chars as input seems more than enough
3494 test $ac_count -gt 10 && break
3495 done
3496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3497esac
212380e3 3498
7083c021
AC
3499 $ac_path_EGREP_found && break 3
3500 done
3501 done
3502 done
3503IFS=$as_save_IFS
3504 if test -z "$ac_cv_path_EGREP"; then
b6d0720c 3505 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3506 fi
212380e3 3507else
7083c021 3508 ac_cv_path_EGREP=$EGREP
212380e3 3509fi
212380e3 3510
7083c021 3511 fi
212380e3 3512fi
7083c021
AC
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3514$as_echo "$ac_cv_path_EGREP" >&6; }
3515 EGREP="$ac_cv_path_EGREP"
212380e3
AC
3516
3517
7083c021
AC
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3519$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 3520if ${ac_cv_header_stdc+:} false; then :
7083c021 3521 $as_echo_n "(cached) " >&6
212380e3 3522else
7083c021 3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3524/* end confdefs.h. */
7083c021
AC
3525#include <stdlib.h>
3526#include <stdarg.h>
3527#include <string.h>
3528#include <float.h>
212380e3
AC
3529
3530int
3531main ()
3532{
212380e3
AC
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
7083c021
AC
3538if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_header_stdc=yes
212380e3 3540else
7083c021 3541 ac_cv_header_stdc=no
212380e3 3542fi
631ef239 3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3544
7083c021
AC
3545if test $ac_cv_header_stdc = yes; then
3546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h. */
3549#include <string.h>
212380e3 3550
7083c021
AC
3551_ACEOF
3552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3554
212380e3 3555else
7083c021
AC
3556 ac_cv_header_stdc=no
3557fi
3558rm -f conftest*
212380e3 3559
7083c021 3560fi
212380e3 3561
7083c021
AC
3562if test $ac_cv_header_stdc = yes; then
3563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3565/* end confdefs.h. */
7083c021 3566#include <stdlib.h>
212380e3 3567
212380e3 3568_ACEOF
7083c021
AC
3569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 $EGREP "free" >/dev/null 2>&1; then :
3571
212380e3 3572else
7083c021
AC
3573 ac_cv_header_stdc=no
3574fi
3575rm -f conftest*
212380e3 3576
212380e3 3577fi
631ef239 3578
7083c021
AC
3579if test $ac_cv_header_stdc = yes; then
3580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581 if test "$cross_compiling" = yes; then :
3582 :
212380e3 3583else
7083c021 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3585/* end confdefs.h. */
7083c021
AC
3586#include <ctype.h>
3587#include <stdlib.h>
3588#if ((' ' & 0x0FF) == 0x020)
3589# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3590# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3591#else
3592# define ISLOWER(c) \
3593 (('a' <= (c) && (c) <= 'i') \
3594 || ('j' <= (c) && (c) <= 'r') \
3595 || ('s' <= (c) && (c) <= 'z'))
3596# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3597#endif
3598
3599#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
3600int
3601main ()
3602{
7083c021
AC
3603 int i;
3604 for (i = 0; i < 256; i++)
3605 if (XOR (islower (i), ISLOWER (i))
3606 || toupper (i) != TOUPPER (i))
3607 return 2;
212380e3
AC
3608 return 0;
3609}
3610_ACEOF
7083c021
AC
3611if ac_fn_c_try_run "$LINENO"; then :
3612
3613else
3614 ac_cv_header_stdc=no
212380e3 3615fi
7083c021
AC
3616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3617 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3618fi
212380e3 3619
7083c021
AC
3620fi
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3623$as_echo "$ac_cv_header_stdc" >&6; }
3624if test $ac_cv_header_stdc = yes; then
3625
3626$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3627
212380e3 3628fi
631ef239 3629
7083c021
AC
3630# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3631for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3632 inttypes.h stdint.h unistd.h
3633do :
3634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3635ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3636"
b6d0720c 3637if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
3638 cat >>confdefs.h <<_ACEOF
3639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3640_ACEOF
631ef239 3641
7083c021 3642fi
631ef239 3643
7083c021
AC
3644done
3645
3646
3647
3648 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 3649if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 3650 MINIX=yes
212380e3 3651else
7083c021
AC
3652 MINIX=
3653fi
3654
3655
3656 if test "$MINIX" = yes; then
3657
3658$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3659
212380e3 3660
7083c021 3661$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
3662
3663
7083c021 3664$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3665
7083c021 3666 fi
212380e3 3667
212380e3 3668
7083c021
AC
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3670$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 3671if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 3672 $as_echo_n "(cached) " >&6
212380e3 3673else
7083c021 3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3675/* end confdefs.h. */
7083c021 3676
2eff3833
JT
3677# define __EXTENSIONS__ 1
3678 $ac_includes_default
212380e3
AC
3679int
3680main ()
3681{
7083c021 3682
212380e3
AC
3683 ;
3684 return 0;
3685}
3686_ACEOF
7083c021
AC
3687if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_cv_safe_to_define___extensions__=yes
212380e3 3689else
7083c021 3690 ac_cv_safe_to_define___extensions__=no
212380e3 3691fi
631ef239 3692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3693fi
7083c021
AC
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3695$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3696 test $ac_cv_safe_to_define___extensions__ = yes &&
3697 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3698
7083c021 3699 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3700
7083c021
AC
3701 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3702
3703 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3704
3705 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3706
7083c021
AC
3707
3708
3709
3710OLD_CFLAGS="$CFLAGS"
3711ac_ext=c
3712ac_cpp='$CPP $CPPFLAGS'
3713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3721if ${ac_cv_prog_CC+:} false; then :
7083c021 3722 $as_echo_n "(cached) " >&6
212380e3 3723else
7083c021
AC
3724 if test -n "$CC"; then
3725 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3726else
7083c021
AC
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3734 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3737 fi
3738done
3739 done
3740IFS=$as_save_IFS
212380e3 3741
212380e3 3742fi
212380e3 3743fi
7083c021
AC
3744CC=$ac_cv_prog_CC
3745if test -n "$CC"; then
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747$as_echo "$CC" >&6; }
212380e3 3748else
7083c021
AC
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750$as_echo "no" >&6; }
3751fi
212380e3 3752
212380e3
AC
3753
3754fi
7083c021
AC
3755if test -z "$ac_cv_prog_CC"; then
3756 ac_ct_CC=$CC
3757 # Extract the first word of "gcc", so it can be a program name with args.
3758set dummy gcc; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3761if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3762 $as_echo_n "(cached) " >&6
212380e3 3763else
7083c021
AC
3764 if test -n "$ac_ct_CC"; then
3765 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3766else
7083c021
AC
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3774 ac_cv_prog_ac_ct_CC="gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779 done
3780IFS=$as_save_IFS
212380e3 3781
212380e3 3782fi
212380e3 3783fi
7083c021
AC
3784ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785if test -n "$ac_ct_CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787$as_echo "$ac_ct_CC" >&6; }
212380e3 3788else
7083c021
AC
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
212380e3 3792
7083c021
AC
3793 if test "x$ac_ct_CC" = x; then
3794 CC=""
3795 else
3796 case $cross_compiling:$ac_tool_warned in
3797yes:)
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800ac_tool_warned=yes ;;
631ef239 3801esac
7083c021
AC
3802 CC=$ac_ct_CC
3803 fi
212380e3 3804else
7083c021 3805 CC="$ac_cv_prog_CC"
212380e3 3806fi
631ef239 3807
7083c021
AC
3808if test -z "$CC"; then
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811set dummy ${ac_tool_prefix}cc; ac_word=$2
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3814if ${ac_cv_prog_CC+:} false; then :
7083c021 3815 $as_echo_n "(cached) " >&6
212380e3 3816else
7083c021
AC
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3819else
7083c021
AC
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3827 ac_cv_prog_CC="${ac_tool_prefix}cc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831done
3832 done
3833IFS=$as_save_IFS
212380e3 3834
212380e3 3835fi
7083c021
AC
3836fi
3837CC=$ac_cv_prog_CC
3838if test -n "$CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840$as_echo "$CC" >&6; }
212380e3 3841else
7083c021
AC
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843$as_echo "no" >&6; }
3844fi
3845
212380e3 3846
7083c021 3847 fi
212380e3 3848fi
7083c021
AC
3849if test -z "$CC"; then
3850 # Extract the first word of "cc", so it can be a program name with args.
3851set dummy cc; ac_word=$2
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3854if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
3855 $as_echo_n "(cached) " >&6
3856else
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859else
3860 ac_prog_rejected=no
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869 ac_prog_rejected=yes
3870 continue
3871 fi
3872 ac_cv_prog_CC="cc"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876done
3877 done
3878IFS=$as_save_IFS
631ef239 3879
7083c021
AC
3880if test $ac_prog_rejected = yes; then
3881 # We found a bogon in the path, so make sure we never use it.
3882 set dummy $ac_cv_prog_CC
3883 shift
3884 if test $# != 0; then
3885 # We chose a different compiler from the bogus one.
3886 # However, it has the same basename, so the bogon will be chosen
3887 # first if we set CC to just the basename; use the full file name.
3888 shift
3889 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3890 fi
3891fi
3892fi
3893fi
3894CC=$ac_cv_prog_CC
3895if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897$as_echo "$CC" >&6; }
3898else
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
212380e3 3901fi
631ef239 3902
212380e3 3903
7083c021
AC
3904fi
3905if test -z "$CC"; then
3906 if test -n "$ac_tool_prefix"; then
3907 for ac_prog in cl.exe
3908 do
3909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3913if ${ac_cv_prog_CC+:} false; then :
7083c021 3914 $as_echo_n "(cached) " >&6
212380e3 3915else
7083c021
AC
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918else
3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH
3921do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3926 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930done
3931 done
3932IFS=$as_save_IFS
212380e3 3933
212380e3 3934fi
7083c021
AC
3935fi
3936CC=$ac_cv_prog_CC
3937if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939$as_echo "$CC" >&6; }
212380e3 3940else
7083c021
AC
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942$as_echo "no" >&6; }
3943fi
212380e3 3944
212380e3 3945
7083c021
AC
3946 test -n "$CC" && break
3947 done
3948fi
3949if test -z "$CC"; then
3950 ac_ct_CC=$CC
3951 for ac_prog in cl.exe
3952do
3953 # Extract the first word of "$ac_prog", so it can be a program name with args.
3954set dummy $ac_prog; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3957if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3958 $as_echo_n "(cached) " >&6
212380e3 3959else
7083c021
AC
3960 if test -n "$ac_ct_CC"; then
3961 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3970 ac_cv_prog_ac_ct_CC="$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
212380e3 3977
212380e3
AC
3978fi
3979fi
7083c021
AC
3980ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981if test -n "$ac_ct_CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983$as_echo "$ac_ct_CC" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
212380e3 3987fi
631ef239
AC
3988
3989
7083c021
AC
3990 test -n "$ac_ct_CC" && break
3991done
631ef239 3992
7083c021
AC
3993 if test "x$ac_ct_CC" = x; then
3994 CC=""
3995 else
3996 case $cross_compiling:$ac_tool_warned in
3997yes:)
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000ac_tool_warned=yes ;;
4001esac
4002 CC=$ac_ct_CC
4003 fi
4004fi
212380e3 4005
7083c021 4006fi
212380e3 4007
7083c021
AC
4008
4009test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
4011as_fn_error $? "no acceptable C compiler found in \$PATH
4012See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
4013
4014# Provide some information about the compiler.
4015$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4016set X $ac_compile
4017ac_compiler=$2
4018for ac_option in --version -v -V -qversion; do
4019 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
4020case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023esac
7083c021
AC
4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025$as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 4027 ac_status=$?
7083c021
AC
4028 if test -s conftest.err; then
4029 sed '10a\
4030... rest of stderr output deleted ...
4031 10q' conftest.err >conftest.er1
4032 cat conftest.er1 >&5
7083c021 4033 fi
6fb6bd15 4034 rm -f conftest.er1 conftest.err
7083c021
AC
4035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036 test $ac_status = 0; }
4037done
212380e3 4038
7083c021
AC
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 4041if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 4042 $as_echo_n "(cached) " >&6
212380e3 4043else
7083c021 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4045/* end confdefs.h. */
7083c021 4046
212380e3
AC
4047int
4048main ()
4049{
7083c021
AC
4050#ifndef __GNUC__
4051 choke me
4052#endif
212380e3
AC
4053
4054 ;
4055 return 0;
4056}
4057_ACEOF
7083c021
AC
4058if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_compiler_gnu=yes
4060else
4061 ac_compiler_gnu=no
4062fi
4063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064ac_cv_c_compiler_gnu=$ac_compiler_gnu
4065
4066fi
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4068$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4069if test $ac_compiler_gnu = yes; then
4070 GCC=yes
4071else
4072 GCC=
4073fi
4074ac_test_CFLAGS=${CFLAGS+set}
4075ac_save_CFLAGS=$CFLAGS
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4077$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 4078if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
4079 $as_echo_n "(cached) " >&6
4080else
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4083 ac_cv_prog_cc_g=no
4084 CFLAGS="-g"
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4086/* end confdefs.h. */
7083c021 4087
212380e3
AC
4088int
4089main ()
4090{
212380e3
AC
4091
4092 ;
4093 return 0;
4094}
4095_ACEOF
7083c021
AC
4096if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_cv_prog_cc_g=yes
212380e3 4098else
7083c021
AC
4099 CFLAGS=""
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4101/* end confdefs.h. */
7083c021 4102
212380e3
AC
4103int
4104main ()
4105{
212380e3
AC
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
7083c021
AC
4111if ac_fn_c_try_compile "$LINENO"; then :
4112
4113else
4114 ac_c_werror_flag=$ac_save_c_werror_flag
4115 CFLAGS="-g"
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4117/* end confdefs.h. */
7083c021 4118
212380e3
AC
4119int
4120main ()
4121{
212380e3
AC
4122
4123 ;
4124 return 0;
4125}
4126_ACEOF
7083c021
AC
4127if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_g=yes
212380e3 4129fi
631ef239 4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4131fi
631ef239 4132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4133fi
631ef239 4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
4135 ac_c_werror_flag=$ac_save_c_werror_flag
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4138$as_echo "$ac_cv_prog_cc_g" >&6; }
4139if test "$ac_test_CFLAGS" = set; then
4140 CFLAGS=$ac_save_CFLAGS
4141elif test $ac_cv_prog_cc_g = yes; then
4142 if test "$GCC" = yes; then
4143 CFLAGS="-g -O2"
4144 else
4145 CFLAGS="-g"
4146 fi
4147else
4148 if test "$GCC" = yes; then
4149 CFLAGS="-O2"
4150 else
4151 CFLAGS=
4152 fi
4153fi
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4155$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 4156if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
4157 $as_echo_n "(cached) " >&6
4158else
4159 ac_cv_prog_cc_c89=no
4160ac_save_CC=$CC
4161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4162/* end confdefs.h. */
7083c021
AC
4163#include <stdarg.h>
4164#include <stdio.h>
2eff3833 4165struct stat;
7083c021
AC
4166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4167struct buf { int x; };
4168FILE * (*rcsopen) (struct buf *, struct stat *, int);
4169static char *e (p, i)
4170 char **p;
4171 int i;
4172{
4173 return p[i];
4174}
4175static char *f (char * (*g) (char **, int), char **p, ...)
4176{
4177 char *s;
4178 va_list v;
4179 va_start (v,p);
4180 s = g (p, va_arg (v,int));
4181 va_end (v);
4182 return s;
4183}
4184
4185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4186 function prototypes and stuff, but not '\xHH' hex character constants.
4187 These don't provoke an error unfortunately, instead are silently treated
4188 as 'x'. The following induces an error, until -std is added to get
4189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4190 array size at least. It's necessary to write '\x00'==0 to get something
4191 that's true only with -std. */
4192int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4193
4194/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4195 inside strings and character constants. */
4196#define FOO(x) 'x'
4197int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4198
4199int test (int i, double x);
4200struct s1 {int (*f) (int a);};
4201struct s2 {int (*f) (double a);};
4202int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4203int argc;
4204char **argv;
212380e3
AC
4205int
4206main ()
4207{
7083c021 4208return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
4209 ;
4210 return 0;
4211}
4212_ACEOF
7083c021
AC
4213for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4214 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4215do
4216 CC="$ac_save_CC $ac_arg"
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_c89=$ac_arg
4219fi
4220rm -f core conftest.err conftest.$ac_objext
4221 test "x$ac_cv_prog_cc_c89" != "xno" && break
4222done
4223rm -f conftest.$ac_ext
4224CC=$ac_save_CC
4225
4226fi
4227# AC_CACHE_VAL
4228case "x$ac_cv_prog_cc_c89" in
4229 x)
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231$as_echo "none needed" >&6; } ;;
4232 xno)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4234$as_echo "unsupported" >&6; } ;;
4235 *)
4236 CC="$CC $ac_cv_prog_cc_c89"
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4239esac
7083c021 4240if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4241
212380e3 4242fi
631ef239 4243
7083c021
AC
4244ac_ext=c
4245ac_cpp='$CPP $CPPFLAGS'
4246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249
4250ac_ext=c
4251ac_cpp='$CPP $CPPFLAGS'
4252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4254ac_compiler_gnu=$ac_cv_c_compiler_gnu
4255
4256
4257CFLAGS="$OLD_CFLAGS"
4258
4259ac_aux_dir=
4260for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
b6d0720c
AC
4261 if test -f "$ac_dir/install-sh"; then
4262 ac_aux_dir=$ac_dir
4263 ac_install_sh="$ac_aux_dir/install-sh -c"
4264 break
4265 elif test -f "$ac_dir/install.sh"; then
4266 ac_aux_dir=$ac_dir
4267 ac_install_sh="$ac_aux_dir/install.sh -c"
4268 break
4269 elif test -f "$ac_dir/shtool"; then
4270 ac_aux_dir=$ac_dir
4271 ac_install_sh="$ac_aux_dir/shtool install -c"
4272 break
4273 fi
212380e3 4274done
7083c021 4275if test -z "$ac_aux_dir"; then
b6d0720c 4276 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
7083c021 4277fi
212380e3 4278
7083c021
AC
4279# These three variables are undocumented and unsupported,
4280# and are intended to be withdrawn in a future Autoconf release.
4281# They can cause serious problems if a builder's source tree is in a directory
4282# whose full name contains unusual characters.
4283ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4284ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4285ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
212380e3 4286
7083c021
AC
4287
4288
4289
4290subdirs="$subdirs libratbox"
4291
4292
4293
4294if test "$ac_cv_c_compiler_gnu" != yes; then
4295
4296SGS=no
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4298$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4299case `$CC -version 2>&1` in
4300*TenDRA*)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4302$as_echo "yes, TenDRA" >&6; }
4303 IRC_CFLAGS=""
4304 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4305 SGS=yes
4306 TenDRA=yes
4307;;
4308*MIPSpro*)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4310$as_echo "yes, MIPSpro" >&6; }
4311 MIPSpro=yes
4312 SGS=yes
4313;;
4314*)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316$as_echo "no" >&6; }
4317 TenDRA=no
4318 MIPSpro=no
4319;;
631ef239 4320esac
7083c021
AC
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4323$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4324case `$CC -V 2>&1` in
4325*Sun*WorkShop* | *Forte*Developer*)
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4327$as_echo "Sun Workshop/Forte" >&6; }
4328 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4329 SunWorkShop=yes
4330 SGS=yes
4331;;
4332*Tru64*)
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4334$as_echo "Tru64 cc" >&6; }
4335 IRC_CFLAGS="-O2"
4336 CPPFLAGS="-I/usr/local/include"
4337 Tru=yes
4338;;
4339*HP*ANSI*)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4341$as_echo "HPUX cc" >&6; }
4342 HPUX=yes
4343 IRC_CFLAGS="+e"
4344;;
4345*)
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; }
4348;;
631ef239 4349esac
212380e3 4350
212380e3 4351fi
631ef239 4352
7083c021
AC
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4354$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4355OSNAME=`uname -s`
4356case "$OSNAME" in
4357 HP-UX*)
631ef239 4358
7083c021
AC
4359 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4361$as_echo "assuming old HPUX with its own cc" >&6; }
4362 IRC_CFLAGS="$IRC_CFLAGS +e"
4363 HPUX=yes
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4366$as_echo "already using newer HPUX" >&6; }
4367 fi
4368 ;;
4369 SunOS*)
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4371$as_echo "SunOS or Solaris" >&6; }
212380e3 4372
7083c021 4373$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4374
7083c021
AC
4375 SUN=yes
4376 ;;
4377 AIX*)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4379$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4380 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4381 ;;
4382 *)
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384$as_echo "no" >&6; }
4385 ;;
631ef239 4386esac
212380e3 4387
7083c021
AC
4388if test "$ac_cv_c_compiler_gnu" = yes; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4390$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4391
4392 case `$CC -v 2>&1 | tail -n 1` in
4393 *Apple*)
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4395$as_echo "yes" >&6; }
4396 AppleGCC=yes
4397 ;;
4398 *)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400$as_echo "no" >&6; }
4401 AppleGCC=no
4402 ;;
4403 esac
4404
4405 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4406fi
631ef239 4407
7083c021
AC
4408if test "$ac_cv_prog_cc_g" = yes; then
4409 if test "$Tru" = yes; then
4410 IRC_CFLAGS="$IRC_CFLAGS -g3"
4411 else
4412 IRC_CFLAGS="$IRC_CFLAGS -g"
4413 fi
212380e3 4414fi
212380e3 4415
7083c021
AC
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4417$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4418if test "$SGS" = "yes"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420$as_echo "yes" >&6; }
212380e3 4421else
7083c021
AC
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423$as_echo "no" >&6; }
4424fi
212380e3 4425
7083c021
AC
4426# Extract the first word of "mkdep", so it can be a program name with args.
4427set dummy mkdep; ac_word=$2
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4430if ${ac_cv_path_MKDEP+:} false; then :
7083c021
AC
4431 $as_echo_n "(cached) " >&6
4432else
4433 case $MKDEP in
4434 [\\/]* | ?:[\\/]*)
4435 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4436 ;;
4437 *)
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4445 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
4450 done
4451IFS=$as_save_IFS
212380e3 4452
7083c021 4453 ;;
631ef239 4454esac
7083c021
AC
4455fi
4456MKDEP=$ac_cv_path_MKDEP
4457if test -n "$MKDEP"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4459$as_echo "$MKDEP" >&6; }
212380e3 4460else
7083c021
AC
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462$as_echo "no" >&6; }
212380e3 4463fi
631ef239 4464
7083c021
AC
4465
4466# Extract the first word of "makedepend", so it can be a program name with args.
4467set dummy makedepend; ac_word=$2
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4469$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4470if ${ac_cv_path_MAKEDEPEND+:} false; then :
7083c021
AC
4471 $as_echo_n "(cached) " >&6
4472else
4473 case $MAKEDEPEND in
4474 [\\/]* | ?:[\\/]*)
4475 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4476 ;;
4477 *)
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4485 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4488 fi
4489done
212380e3 4490 done
7083c021
AC
4491IFS=$as_save_IFS
4492
4493 ;;
4494esac
4495fi
4496MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4497if test -n "$MAKEDEPEND"; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4499$as_echo "$MAKEDEPEND" >&6; }
212380e3 4500else
7083c021
AC
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502$as_echo "no" >&6; }
4503fi
212380e3 4504
212380e3 4505
212380e3 4506
7083c021
AC
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4508$as_echo_n "checking how to generate dependency info... " >&6; }
4509
4510STDOUT="> .depend"
4511
4512if test "$ac_cv_c_compiler_gnu" = yes; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4514$as_echo "gcc -MM" >&6; }
4515 MKDEP="$CC -MM"
4516elif test ! -z "$MKDEP"; then
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4518$as_echo "mkdep" >&6; }
4519
4520 if test -z "$Tru"; then
4521 STDOUT=""
4522 else
4523 STDOUT=" 2> /dev/null"
4524 fi
4525elif test "$SunWorkShop" = yes; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4527$as_echo "$CC -xM" >&6; }
4528 MKDEP="$CC -xM"
4529 STDOUT="> .depend 2> /dev/null"
4530elif test ! -z "$MAKEDEPEND"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4532$as_echo "makedepend" >&6; }
4533 MKDEP="$MAKEDEPEND -f-"
212380e3 4534else
7083c021
AC
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4536$as_echo "nothing suitable.. forget it!" >&6; }
4537 MKDEP=":"
212380e3 4538fi
631ef239 4539
7083c021
AC
4540
4541
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4544$as_echo_n "checking for /dev/null... " >&6; }
4545if test -c /dev/null ; then
4546
4547$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4548
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4550$as_echo "yes" >&6; }
212380e3 4551else
212380e3 4552
7083c021
AC
4553$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4556$as_echo "no - using devnull.log" >&6; }
212380e3 4557fi
631ef239 4558
7083c021
AC
4559if test ! -z "$CFLAGS"; then
4560 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4561fi
631ef239 4562
7083c021
AC
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4564$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 4565if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4566 $as_echo_n "(cached) " >&6
4567else
4568 ac_func_search_save_LIBS=$LIBS
4569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4570/* end confdefs.h. */
7083c021
AC
4571
4572/* Override any GCC internal prototype to avoid an error.
4573 Use char because int might match the return type of a GCC
4574 builtin and then its argument prototype would still apply. */
4575#ifdef __cplusplus
4576extern "C"
4577#endif
4578char strerror ();
212380e3
AC
4579int
4580main ()
4581{
7083c021 4582return strerror ();
212380e3
AC
4583 ;
4584 return 0;
4585}
4586_ACEOF
7083c021
AC
4587for ac_lib in '' cposix; do
4588 if test -z "$ac_lib"; then
4589 ac_res="none required"
4590 else
4591 ac_res=-l$ac_lib
4592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4593 fi
4594 if ac_fn_c_try_link "$LINENO"; then :
4595 ac_cv_search_strerror=$ac_res
4596fi
4597rm -f core conftest.err conftest.$ac_objext \
4598 conftest$ac_exeext
b6d0720c 4599 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4600 break
4601fi
4602done
b6d0720c 4603if ${ac_cv_search_strerror+:} false; then :
7083c021 4604
212380e3 4605else
7083c021
AC
4606 ac_cv_search_strerror=no
4607fi
4608rm conftest.$ac_ext
4609LIBS=$ac_func_search_save_LIBS
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4612$as_echo "$ac_cv_search_strerror" >&6; }
4613ac_res=$ac_cv_search_strerror
4614if test "$ac_res" != no; then :
4615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4616
212380e3 4617fi
631ef239 4618
7083c021
AC
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4620$as_echo_n "checking for inline... " >&6; }
b6d0720c 4621if ${ac_cv_c_inline+:} false; then :
7083c021
AC
4622 $as_echo_n "(cached) " >&6
4623else
4624 ac_cv_c_inline=no
4625for ac_kw in inline __inline__ __inline; do
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h. */
4628#ifndef __cplusplus
4629typedef int foo_t;
4630static $ac_kw foo_t static_foo () {return 0; }
4631$ac_kw foo_t foo () {return 0; }
4632#endif
4633
4634_ACEOF
4635if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_c_inline=$ac_kw
4637fi
631ef239 4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 4639 test "$ac_cv_c_inline" != no && break
212380e3 4640done
7083c021
AC
4641
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4644$as_echo "$ac_cv_c_inline" >&6; }
4645
4646case $ac_cv_c_inline in
4647 inline | yes) ;;
4648 *)
4649 case $ac_cv_c_inline in
4650 no) ac_val=;;
4651 *) ac_val=$ac_cv_c_inline;;
4652 esac
4653 cat >>confdefs.h <<_ACEOF
4654#ifndef __cplusplus
4655#define inline $ac_val
4656#endif
4657_ACEOF
4658 ;;
212380e3 4659esac
7083c021
AC
4660
4661if test $ac_cv_c_compiler_gnu = yes; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4663$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 4664if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 4665 $as_echo_n "(cached) " >&6
212380e3 4666else
7083c021
AC
4667 ac_pattern="Autoconf.*'x'"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669/* end confdefs.h. */
4670#include <sgtty.h>
4671Autoconf TIOCGETP
212380e3 4672_ACEOF
7083c021
AC
4673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4674 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4675 ac_cv_prog_gcc_traditional=yes
4676else
4677 ac_cv_prog_gcc_traditional=no
4678fi
4679rm -f conftest*
4680
4681
4682 if test $ac_cv_prog_gcc_traditional = no; then
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4684/* end confdefs.h. */
7083c021
AC
4685#include <termio.h>
4686Autoconf TCGETA
4687_ACEOF
4688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4689 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4690 ac_cv_prog_gcc_traditional=yes
4691fi
4692rm -f conftest*
212380e3 4693
7083c021
AC
4694 fi
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4697$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4698 if test $ac_cv_prog_gcc_traditional = yes; then
4699 CC="$CC -traditional"
4700 fi
4701fi
212380e3 4702
7083c021
AC
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4704$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4705set x ${MAKE-make}
4706ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 4707if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
4708 $as_echo_n "(cached) " >&6
4709else
4710 cat >conftest.make <<\_ACEOF
4711SHELL = /bin/sh
4712all:
4713 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4714_ACEOF
b6d0720c 4715# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
4716case `${MAKE-make} -f conftest.make 2>/dev/null` in
4717 *@@@%%%=?*=@@@%%%*)
4718 eval ac_cv_prog_make_${ac_make}_set=yes;;
4719 *)
4720 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4721esac
7083c021
AC
4722rm -f conftest.make
4723fi
4724if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4726$as_echo "yes" >&6; }
4727 SET_MAKE=
4728else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730$as_echo "no" >&6; }
4731 SET_MAKE="MAKE=${MAKE-make}"
4732fi
4733
4734# Find a good install program. We prefer a C program (faster),
4735# so one script is as good as another. But avoid the broken or
4736# incompatible versions:
4737# SysV /etc/install, /usr/sbin/install
4738# SunOS /usr/etc/install
4739# IRIX /sbin/install
4740# AIX /bin/install
4741# AmigaOS /C/install, which installs bootblocks on floppy discs
4742# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4743# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4744# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4745# OS/2's system install, which has a completely different semantic
4746# ./install, which can be erroneously created by make from ./install.sh.
4747# Reject install programs that cannot install multiple files.
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4749$as_echo_n "checking for a BSD-compatible install... " >&6; }
4750if test -z "$INSTALL"; then
b6d0720c 4751if ${ac_cv_path_install+:} false; then :
7083c021
AC
4752 $as_echo_n "(cached) " >&6
4753else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755for as_dir in $PATH
4756do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 # Account for people who put trailing slashes in PATH elements.
4760case $as_dir/ in #((
4761 ./ | .// | /[cC]/* | \
4762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4764 /usr/ucb/* ) ;;
4765 *)
4766 # OSF1 and SCO ODT 3.0 have their own names for install.
4767 # Don't use installbsd from OSF since it installs stuff as root
4768 # by default.
4769 for ac_prog in ginstall scoinst install; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4771 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7083c021
AC
4772 if test $ac_prog = install &&
4773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4774 # AIX install. It has an incompatible calling convention.
4775 :
4776 elif test $ac_prog = install &&
4777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4778 # program-specific install script used by HP pwplus--don't use.
4779 :
4780 else
4781 rm -rf conftest.one conftest.two conftest.dir
4782 echo one > conftest.one
4783 echo two > conftest.two
4784 mkdir conftest.dir
4785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4786 test -s conftest.one && test -s conftest.two &&
4787 test -s conftest.dir/conftest.one &&
4788 test -s conftest.dir/conftest.two
4789 then
4790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4791 break 3
4792 fi
4793 fi
4794 fi
4795 done
4796 done
4797 ;;
631ef239 4798esac
7083c021
AC
4799
4800 done
4801IFS=$as_save_IFS
4802
4803rm -rf conftest.one conftest.two conftest.dir
4804
4805fi
4806 if test "${ac_cv_path_install+set}" = set; then
4807 INSTALL=$ac_cv_path_install
4808 else
4809 # As a last resort, use the slow shell script. Don't cache a
4810 # value for INSTALL within a source directory, because that will
4811 # break other packages using the cache if that directory is
4812 # removed, or if the value is a relative name.
4813 INSTALL=$ac_install_sh
4814 fi
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4817$as_echo "$INSTALL" >&6; }
4818
4819# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4820# It thinks the first close brace ends the variable substitution.
4821test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4822
4823test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4824
4825test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4826
4827# Extract the first word of "rm", so it can be a program name with args.
4828set dummy rm; ac_word=$2
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4831if ${ac_cv_path_RM+:} false; then :
7083c021 4832 $as_echo_n "(cached) " >&6
212380e3 4833else
7083c021
AC
4834 case $RM in
4835 [\\/]* | ?:[\\/]*)
4836 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4837 ;;
4838 *)
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4846 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850done
4851 done
4852IFS=$as_save_IFS
212380e3 4853
7083c021
AC
4854 ;;
4855esac
212380e3 4856fi
7083c021
AC
4857RM=$ac_cv_path_RM
4858if test -n "$RM"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4860$as_echo "$RM" >&6; }
4861else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863$as_echo "no" >&6; }
212380e3 4864fi
631ef239
AC
4865
4866
7083c021
AC
4867# Extract the first word of "cp", so it can be a program name with args.
4868set dummy cp; ac_word=$2
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4871if ${ac_cv_path_CP+:} false; then :
7083c021
AC
4872 $as_echo_n "(cached) " >&6
4873else
4874 case $CP in
4875 [\\/]* | ?:[\\/]*)
4876 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4877 ;;
4878 *)
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4886 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4889 fi
4890done
4891 done
4892IFS=$as_save_IFS
631ef239 4893
7083c021
AC
4894 ;;
4895esac
4896fi
4897CP=$ac_cv_path_CP
4898if test -n "$CP"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4900$as_echo "$CP" >&6; }
4901else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
4904fi
212380e3
AC
4905
4906
7083c021
AC
4907# Extract the first word of "mv", so it can be a program name with args.
4908set dummy mv; ac_word=$2
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4911if ${ac_cv_path_MV+:} false; then :
7083c021 4912 $as_echo_n "(cached) " >&6
212380e3 4913else
7083c021
AC
4914 case $MV in
4915 [\\/]* | ?:[\\/]*)
4916 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4917 ;;
4918 *)
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4926 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4929 fi
4930done
4931 done
4932IFS=$as_save_IFS
4933
4934 ;;
631ef239 4935esac
7083c021
AC
4936fi
4937MV=$ac_cv_path_MV
4938if test -n "$MV"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940$as_echo "$MV" >&6; }
212380e3 4941else
7083c021
AC
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
212380e3 4944fi
631ef239 4945
212380e3 4946
7083c021
AC
4947# Extract the first word of "ln", so it can be a program name with args.
4948set dummy ln; ac_word=$2
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4951if ${ac_cv_path_LN+:} false; then :
7083c021 4952 $as_echo_n "(cached) " >&6
212380e3 4953else
7083c021
AC
4954 case $LN in
4955 [\\/]* | ?:[\\/]*)
4956 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4957 ;;
4958 *)
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4966 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970done
4971 done
4972IFS=$as_save_IFS
212380e3 4973
7083c021 4974 ;;
631ef239 4975esac
7083c021
AC
4976fi
4977LN=$ac_cv_path_LN
4978if test -n "$LN"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4980$as_echo "$LN" >&6; }
212380e3 4981else
7083c021
AC
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
212380e3 4984fi
631ef239 4985
7083c021
AC
4986
4987# Extract the first word of "sed", so it can be a program name with args.
4988set dummy sed; ac_word=$2
4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4991if ${ac_cv_path_SED+:} false; then :
7083c021
AC
4992 $as_echo_n "(cached) " >&6
4993else
4994 case $SED in
4995 [\\/]* | ?:[\\/]*)
4996 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4997 ;;
4998 *)
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5006 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010done
212380e3 5011 done
7083c021
AC
5012IFS=$as_save_IFS
5013
5014 ;;
5015esac
5016fi
5017SED=$ac_cv_path_SED
5018if test -n "$SED"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5020$as_echo "$SED" >&6; }
212380e3 5021else
7083c021
AC
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023$as_echo "no" >&6; }
5024fi
212380e3 5025
212380e3 5026
7083c021
AC
5027# Extract the first word of "ar", so it can be a program name with args.
5028set dummy ar; ac_word=$2
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5031if ${ac_cv_path_AR+:} false; then :
7083c021
AC
5032 $as_echo_n "(cached) " >&6
5033else
5034 case $AR in
5035 [\\/]* | ?:[\\/]*)
5036 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5037 ;;
5038 *)
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5046 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050done
5051 done
5052IFS=$as_save_IFS
212380e3 5053
7083c021 5054 ;;
631ef239 5055esac
7083c021
AC
5056fi
5057AR=$ac_cv_path_AR
5058if test -n "$AR"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5060$as_echo "$AR" >&6; }
212380e3 5061else
7083c021
AC
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
212380e3 5064fi
631ef239 5065
7083c021
AC
5066
5067# Extract the first word of "ld", so it can be a program name with args.
5068set dummy ld; ac_word=$2
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5071if ${ac_cv_path_LD+:} false; then :
7083c021 5072 $as_echo_n "(cached) " >&6
212380e3 5073else
7083c021
AC
5074 case $LD in
5075 [\\/]* | ?:[\\/]*)
5076 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5077 ;;
5078 *)
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080for as_dir in $PATH
5081do
5082 IFS=$as_save_IFS
5083 test -z "$as_dir" && as_dir=.
5084 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5086 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 break 2
5089 fi
5090done
5091 done
5092IFS=$as_save_IFS
212380e3 5093
7083c021
AC
5094 ;;
5095esac
212380e3 5096fi
7083c021
AC
5097LD=$ac_cv_path_LD
5098if test -n "$LD"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5100$as_echo "$LD" >&6; }
5101else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
212380e3 5104fi
631ef239 5105
212380e3 5106
7083c021
AC
5107# Extract the first word of "ranlib", so it can be a program name with args.
5108set dummy ranlib; ac_word=$2
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5111if ${ac_cv_path_RANLIB+:} false; then :
7083c021 5112 $as_echo_n "(cached) " >&6
212380e3 5113else
7083c021
AC
5114 case $RANLIB in
5115 [\\/]* | ?:[\\/]*)
5116 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5117 ;;
5118 *)
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5126 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130done
5131 done
5132IFS=$as_save_IFS
212380e3 5133
7083c021
AC
5134 ;;
5135esac
5136fi
5137RANLIB=$ac_cv_path_RANLIB
5138if test -n "$RANLIB"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5140$as_echo "$RANLIB" >&6; }
5141else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
212380e3 5144fi
631ef239 5145
7083c021
AC
5146
5147# Extract the first word of "touch", so it can be a program name with args.
5148set dummy touch; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5151if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
5152 $as_echo_n "(cached) " >&6
5153else
5154 case $TOUCH in
5155 [\\/]* | ?:[\\/]*)
5156 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5157 ;;
5158 *)
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160for as_dir in $PATH
5161do
5162 IFS=$as_save_IFS
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5166 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 break 2
5169 fi
212380e3 5170done
7083c021
AC
5171 done
5172IFS=$as_save_IFS
5173
5174 ;;
212380e3 5175esac
7083c021
AC
5176fi
5177TOUCH=$ac_cv_path_TOUCH
5178if test -n "$TOUCH"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5180$as_echo "$TOUCH" >&6; }
212380e3 5181else
7083c021
AC
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5184fi
212380e3 5185
212380e3 5186
7083c021
AC
5187
5188for ac_prog in 'bison -y' byacc
5189do
5190 # Extract the first word of "$ac_prog", so it can be a program name with args.
5191set dummy $ac_prog; ac_word=$2
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5194if ${ac_cv_prog_YACC+:} false; then :
7083c021 5195 $as_echo_n "(cached) " >&6
212380e3 5196else
7083c021
AC
5197 if test -n "$YACC"; then
5198 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5207 ac_cv_prog_YACC="$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211done
5212 done
5213IFS=$as_save_IFS
212380e3 5214
212380e3
AC
5215fi
5216fi
7083c021
AC
5217YACC=$ac_cv_prog_YACC
5218if test -n "$YACC"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5220$as_echo "$YACC" >&6; }
5221else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
212380e3 5224fi
631ef239
AC
5225
5226
7083c021
AC
5227 test -n "$YACC" && break
5228done
5229test -n "$YACC" || YACC="yacc"
212380e3
AC
5230
5231
7083c021 5232if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 5233 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 5234fi
212380e3 5235
7083c021
AC
5236for ac_prog in flex lex
5237do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239set dummy $ac_prog; ac_word=$2
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5242if ${ac_cv_prog_LEX+:} false; then :
7083c021 5243 $as_echo_n "(cached) " >&6
212380e3 5244else
7083c021
AC
5245 if test -n "$LEX"; then
5246 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5247else
7083c021
AC
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5255 ac_cv_prog_LEX="$ac_prog"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
631ef239 5259done
7083c021
AC
5260 done
5261IFS=$as_save_IFS
631ef239 5262
7083c021
AC
5263fi
5264fi
5265LEX=$ac_cv_prog_LEX
5266if test -n "$LEX"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5268$as_echo "$LEX" >&6; }
631ef239 5269else
7083c021
AC
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
631ef239
AC
5272fi
5273
5274
7083c021
AC
5275 test -n "$LEX" && break
5276done
5277test -n "$LEX" || LEX=":"
212380e3 5278
7083c021
AC
5279if test "x$LEX" != "x:"; then
5280 cat >conftest.l <<_ACEOF
5281%%
5282a { ECHO; }
5283b { REJECT; }
5284c { yymore (); }
5285d { yyless (1); }
2eff3833
JT
5286e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5287 yyless ((input () != 0)); }
7083c021
AC
5288f { unput (yytext[0]); }
5289. { BEGIN INITIAL; }
5290%%
5291#ifdef YYTEXT_POINTER
5292extern char *yytext;
212380e3 5293#endif
212380e3 5294int
7083c021 5295main (void)
212380e3 5296{
7083c021 5297 return ! yylex () + ! yywrap ();
212380e3
AC
5298}
5299_ACEOF
7083c021 5300{ { ac_try="$LEX conftest.l"
631ef239
AC
5301case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304esac
7083c021
AC
5305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5306$as_echo "$ac_try_echo"; } >&5
5307 (eval "$LEX conftest.l") 2>&5
212380e3 5308 ac_status=$?
7083c021
AC
5309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5310 test $ac_status = 0; }
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5312$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 5313if ${ac_cv_prog_lex_root+:} false; then :
7083c021 5314 $as_echo_n "(cached) " >&6
212380e3 5315else
212380e3 5316
7083c021
AC
5317if test -f lex.yy.c; then
5318 ac_cv_prog_lex_root=lex.yy
5319elif test -f lexyy.c; then
5320 ac_cv_prog_lex_root=lexyy
5321else
b6d0720c 5322 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
5323fi
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5326$as_echo "$ac_cv_prog_lex_root" >&6; }
5327LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5328
5329if test -z "${LEXLIB+set}"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5331$as_echo_n "checking lex library... " >&6; }
b6d0720c 5332if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
5333 $as_echo_n "(cached) " >&6
5334else
631ef239 5335
7083c021
AC
5336 ac_save_LIBS=$LIBS
5337 ac_cv_lib_lex='none needed'
5338 for ac_lib in '' -lfl -ll; do
5339 LIBS="$ac_lib $ac_save_LIBS"
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342`cat $LEX_OUTPUT_ROOT.c`
5343_ACEOF
5344if ac_fn_c_try_link "$LINENO"; then :
5345 ac_cv_lib_lex=$ac_lib
212380e3 5346fi
7083c021
AC
5347rm -f core conftest.err conftest.$ac_objext \
5348 conftest$ac_exeext conftest.$ac_ext
5349 test "$ac_cv_lib_lex" != 'none needed' && break
5350 done
5351 LIBS=$ac_save_LIBS
631ef239 5352
631ef239 5353fi
7083c021
AC
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5355$as_echo "$ac_cv_lib_lex" >&6; }
5356 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5357fi
5358
5359
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5361$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 5362if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 5363 $as_echo_n "(cached) " >&6
631ef239 5364else
7083c021
AC
5365 # POSIX says lex can declare yytext either as a pointer or an array; the
5366# default is implementation-dependent. Figure out which it is, since
5367# not all implementations provide the %pointer and %array declarations.
5368ac_cv_prog_lex_yytext_pointer=no
5369ac_save_LIBS=$LIBS
5370LIBS="$LEXLIB $ac_save_LIBS"
5371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
b6d0720c
AC
5373
5374 #define YYTEXT_POINTER 1
7083c021
AC
5375`cat $LEX_OUTPUT_ROOT.c`
5376_ACEOF
5377if ac_fn_c_try_link "$LINENO"; then :
5378 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5379fi
7083c021
AC
5380rm -f core conftest.err conftest.$ac_objext \
5381 conftest$ac_exeext conftest.$ac_ext
5382LIBS=$ac_save_LIBS
5383
212380e3 5384fi
7083c021
AC
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5386$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5387if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5388
7083c021
AC
5389$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5390
5391fi
5392rm -f conftest.l $LEX_OUTPUT_ROOT.c
5393
5394fi
5395
5396if test "$LEX" = ":"; then
b6d0720c 5397 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
5398fi
5399
9f9b7042
NPB
5400# Check whether --enable-fhs-paths was given.
5401if test "${enable_fhs_paths+set}" = set; then :
5402 enableval=$enable_fhs_paths;
5403else
5404 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5405 test "$localstatedir" = '${prefix}/var' && \
5406 test "$libdir" = '${exec_prefix}/lib'; then :
5407 enable_fhs_paths=no
5408else
5409 enable_fhs_paths=yes
5410fi
5411
5412fi
5413
5414if test "x$enable_fhs_paths" = "xyes"; then :
5415 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
5416 rundir=${rundir-'${prefix}/run'}
5417 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
5418 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
5419else
5420 libexecdir='${bindir}'
5421 pkglibexecdir='${libexecdir}'
5422 rundir='${sysconfdir}'
5423 pkgrundir='${rundir}'
7083c021 5424 localstatedir='${prefix}'
9f9b7042 5425 pkglocalstatedir='${sysconfdir}'
631ef239 5426fi
9f9b7042
NPB
5427pkglibdir='${libdir}/${PACKAGE_TARNAME}'
5428
5429
5430
5431
5432
5433 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5434 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5435 last_ac_define_dir=`eval echo $pkglocalstatedir`
5436 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5437 ac_define_dir_counter=0
9f9b7042
NPB
5438 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5439 last_ac_define_dir="$ac_define_dir"
5440 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5441 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5442 if test "x$ac_define_dir_counter" = x128; then :
5443 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
5444 break
5445fi
9f9b7042
NPB
5446 done
5447 PKGLOCALSTATEDIR="$ac_define_dir"
5448
5449
5450cat >>confdefs.h <<_ACEOF
5451#define PKGLOCALSTATEDIR "$ac_define_dir"
5452_ACEOF
5453
5454
5455
5456
5457 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5458 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5459 last_ac_define_dir=`eval echo $pkglibexecdir`
5460 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5461 ac_define_dir_counter=0
9f9b7042
NPB
5462 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5463 last_ac_define_dir="$ac_define_dir"
5464 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5465 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5466 if test "x$ac_define_dir_counter" = x128; then :
5467 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
5468 break
5469fi
9f9b7042
NPB
5470 done
5471 PKGLIBEXECDIR="$ac_define_dir"
5472
5473
5474cat >>confdefs.h <<_ACEOF
5475#define PKGLIBEXECDIR "$ac_define_dir"
5476_ACEOF
5477
5478
212380e3 5479
7083c021
AC
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5481$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 5482if ${ac_cv_header_stdc+:} false; then :
7083c021 5483 $as_echo_n "(cached) " >&6
212380e3 5484else
7083c021 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5486/* end confdefs.h. */
7083c021
AC
5487#include <stdlib.h>
5488#include <stdarg.h>
5489#include <string.h>
5490#include <float.h>
212380e3
AC
5491
5492int
5493main ()
5494{
7083c021 5495
212380e3
AC
5496 ;
5497 return 0;
5498}
5499_ACEOF
7083c021
AC
5500if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_cv_header_stdc=yes
212380e3 5502else
7083c021 5503 ac_cv_header_stdc=no
212380e3 5504fi
631ef239 5505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5506
7083c021
AC
5507if test $ac_cv_header_stdc = yes; then
5508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510/* end confdefs.h. */
5511#include <string.h>
5512
212380e3 5513_ACEOF
7083c021
AC
5514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5515 $EGREP "memchr" >/dev/null 2>&1; then :
5516
5517else
5518 ac_cv_header_stdc=no
5519fi
5520rm -f conftest*
212380e3
AC
5521
5522fi
5523
7083c021
AC
5524if test $ac_cv_header_stdc = yes; then
5525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h. */
5528#include <stdlib.h>
5529
5530_ACEOF
5531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5533
212380e3 5534else
7083c021 5535 ac_cv_header_stdc=no
631ef239 5536fi
7083c021 5537rm -f conftest*
631ef239 5538
7083c021 5539fi
212380e3 5540
7083c021
AC
5541if test $ac_cv_header_stdc = yes; then
5542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5543 if test "$cross_compiling" = yes; then :
5544 :
212380e3 5545else
7083c021 5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5547/* end confdefs.h. */
7083c021
AC
5548#include <ctype.h>
5549#include <stdlib.h>
5550#if ((' ' & 0x0FF) == 0x020)
5551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5553#else
5554# define ISLOWER(c) \
5555 (('a' <= (c) && (c) <= 'i') \
5556 || ('j' <= (c) && (c) <= 'r') \
5557 || ('s' <= (c) && (c) <= 'z'))
5558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5559#endif
7083c021
AC
5560
5561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
5562int
5563main ()
5564{
7083c021
AC
5565 int i;
5566 for (i = 0; i < 256; i++)
5567 if (XOR (islower (i), ISLOWER (i))
5568 || toupper (i) != TOUPPER (i))
5569 return 2;
212380e3
AC
5570 return 0;
5571}
5572_ACEOF
7083c021 5573if ac_fn_c_try_run "$LINENO"; then :
212380e3 5574
7083c021
AC
5575else
5576 ac_cv_header_stdc=no
631ef239 5577fi
7083c021
AC
5578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5579 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5580fi
7083c021 5581
212380e3 5582fi
212380e3 5583fi
7083c021
AC
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5585$as_echo "$ac_cv_header_stdc" >&6; }
5586if test $ac_cv_header_stdc = yes; then
5587
5588$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
5589
5590fi
5591
5592
7083c021
AC
5593for 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
5594do :
5595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 5597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
5598 cat >>confdefs.h <<_ACEOF
5599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600_ACEOF
212380e3 5601
212380e3
AC
5602fi
5603
7083c021 5604done
212380e3
AC
5605
5606
212380e3 5607
7083c021
AC
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5609$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 5610if ${ac_cv_c_const+:} false; then :
7083c021
AC
5611 $as_echo_n "(cached) " >&6
5612else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
212380e3 5615
7083c021
AC
5616int
5617main ()
5618{
2eff3833 5619
7083c021 5620#ifndef __cplusplus
2eff3833 5621 /* Ultrix mips cc rejects this sort of thing. */
7083c021 5622 typedef int charset[2];
2eff3833 5623 const charset cs = { 0, 0 };
7083c021
AC
5624 /* SunOS 4.1.1 cc rejects this. */
5625 char const *const *pcpcc;
5626 char **ppc;
5627 /* NEC SVR4.0.2 mips cc rejects this. */
5628 struct point {int x, y;};
5629 static struct point const zero = {0,0};
5630 /* AIX XL C 1.02.0.0 rejects this.
5631 It does not let you subtract one const X* pointer from another in
5632 an arm of an if-expression whose if-part is not a constant
5633 expression */
5634 const char *g = "string";
5635 pcpcc = &g + (g ? g-g : 0);
5636 /* HPUX 7.0 cc rejects these. */
5637 ++pcpcc;
5638 ppc = (char**) pcpcc;
5639 pcpcc = (char const *const *) ppc;
2eff3833
JT
5640 { /* SCO 3.2v4 cc rejects this sort of thing. */
5641 char tx;
5642 char *t = &tx;
7083c021 5643 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5644
7083c021
AC
5645 *t++ = 0;
5646 if (s) return 0;
5647 }
5648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5649 int x[] = {25, 17};
5650 const int *foo = &x[0];
5651 ++foo;
5652 }
5653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5654 typedef const int *iptr;
5655 iptr p = 0;
5656 ++p;
5657 }
2eff3833 5658 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7083c021 5659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2eff3833
JT
5660 struct s { int j; const int *ap[3]; } bx;
5661 struct s *b = &bx; b->j = 5;
7083c021
AC
5662 }
5663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5664 const int foo = 10;
5665 if (!foo) return 0;
5666 }
5667 return !cs[0] && !zero.x;
5668#endif
212380e3 5669
7083c021
AC
5670 ;
5671 return 0;
5672}
212380e3 5673_ACEOF
7083c021
AC
5674if ac_fn_c_try_compile "$LINENO"; then :
5675 ac_cv_c_const=yes
212380e3 5676else
7083c021 5677 ac_cv_c_const=no
212380e3 5678fi
631ef239 5679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5680fi
7083c021
AC
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5682$as_echo "$ac_cv_c_const" >&6; }
5683if test $ac_cv_c_const = no; then
212380e3 5684
7083c021 5685$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
5686
5687fi
5688
7083c021
AC
5689if test "$ac_cv_header_machine_endian_h" = "no" ; then
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5691$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 5692if ${ac_cv_c_bigendian+:} false; then :
7083c021 5693 $as_echo_n "(cached) " >&6
212380e3 5694else
7083c021
AC
5695 ac_cv_c_bigendian=unknown
5696 # See if we're dealing with a universal compiler.
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698/* end confdefs.h. */
5699#ifndef __APPLE_CC__
5700 not a universal capable compiler
5701 #endif
5702 typedef int dummy;
5703
5704_ACEOF
5705if ac_fn_c_try_compile "$LINENO"; then :
5706
5707 # Check for potential -arch flags. It is not universal unless
5708 # there are at least two -arch flags with different values.
5709 ac_arch=
5710 ac_prev=
5711 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5712 if test -n "$ac_prev"; then
5713 case $ac_word in
5714 i?86 | x86_64 | ppc | ppc64)
5715 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5716 ac_arch=$ac_word
5717 else
5718 ac_cv_c_bigendian=universal
5719 break
5720 fi
5721 ;;
5722 esac
5723 ac_prev=
5724 elif test "x$ac_word" = "x-arch"; then
5725 ac_prev=arch
5726 fi
5727 done
5728fi
5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 if test $ac_cv_c_bigendian = unknown; then
5731 # See if sys/param.h defines the BYTE_ORDER macro.
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5733/* end confdefs.h. */
5734#include <sys/types.h>
7083c021 5735 #include <sys/param.h>
212380e3
AC
5736
5737int
5738main ()
5739{
7083c021
AC
5740#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5741 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5742 && LITTLE_ENDIAN)
5743 bogus endian macros
5744 #endif
212380e3
AC
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
7083c021 5750if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5751 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5753/* end confdefs.h. */
5754#include <sys/types.h>
7083c021 5755 #include <sys/param.h>
212380e3
AC
5756
5757int
5758main ()
5759{
5760#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
5761 not big endian
5762 #endif
212380e3
AC
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
7083c021 5768if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
5769 ac_cv_c_bigendian=yes
5770else
7083c021 5771 ac_cv_c_bigendian=no
212380e3 5772fi
631ef239 5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 fi
5777 if test $ac_cv_c_bigendian = unknown; then
5778 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h. */
5781#include <limits.h>
212380e3 5782
7083c021
AC
5783int
5784main ()
5785{
5786#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5787 bogus endian macros
5788 #endif
5789
5790 ;
5791 return 0;
5792}
212380e3 5793_ACEOF
7083c021
AC
5794if ac_fn_c_try_compile "$LINENO"; then :
5795 # It does; now see whether it defined to _BIG_ENDIAN or not.
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5797/* end confdefs.h. */
7083c021
AC
5798#include <limits.h>
5799
212380e3
AC
5800int
5801main ()
5802{
7083c021
AC
5803#ifndef _BIG_ENDIAN
5804 not big endian
5805 #endif
5806
212380e3
AC
5807 ;
5808 return 0;
5809}
5810_ACEOF
7083c021 5811if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5812 ac_cv_c_bigendian=yes
7083c021
AC
5813else
5814 ac_cv_c_bigendian=no
212380e3 5815fi
7083c021 5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5817fi
7083c021
AC
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 fi
5820 if test $ac_cv_c_bigendian = unknown; then
5821 # Compile a test program.
5822 if test "$cross_compiling" = yes; then :
5823 # Try to guess by grepping values from an object file.
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825/* end confdefs.h. */
5826short int ascii_mm[] =
5827 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5828 short int ascii_ii[] =
5829 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5830 int use_ascii (int i) {
5831 return ascii_mm[i] + ascii_ii[i];
5832 }
5833 short int ebcdic_ii[] =
5834 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5835 short int ebcdic_mm[] =
5836 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5837 int use_ebcdic (int i) {
5838 return ebcdic_mm[i] + ebcdic_ii[i];
5839 }
5840 extern int foo;
631ef239 5841
7083c021
AC
5842int
5843main ()
5844{
5845return use_ascii (foo) == use_ebcdic (foo);
5846 ;
5847 return 0;
5848}
5849_ACEOF
5850if ac_fn_c_try_compile "$LINENO"; then :
5851 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5852 ac_cv_c_bigendian=yes
5853 fi
5854 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5855 if test "$ac_cv_c_bigendian" = unknown; then
5856 ac_cv_c_bigendian=no
5857 else
5858 # finding both strings is unlikely to happen, but who knows?
5859 ac_cv_c_bigendian=unknown
5860 fi
5861 fi
212380e3 5862fi
631ef239 5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5864else
7083c021 5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5866/* end confdefs.h. */
631ef239 5867$ac_includes_default
212380e3
AC
5868int
5869main ()
5870{
631ef239 5871
7083c021
AC
5872 /* Are we little or big endian? From Harbison&Steele. */
5873 union
5874 {
5875 long int l;
5876 char c[sizeof (long int)];
5877 } u;
5878 u.l = 1;
5879 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
5880
5881 ;
5882 return 0;
212380e3
AC
5883}
5884_ACEOF
7083c021 5885if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
5886 ac_cv_c_bigendian=no
5887else
7083c021 5888 ac_cv_c_bigendian=yes
212380e3 5889fi
7083c021
AC
5890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5891 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5892fi
631ef239 5893
7083c021 5894 fi
212380e3 5895fi
7083c021
AC
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5897$as_echo "$ac_cv_c_bigendian" >&6; }
5898 case $ac_cv_c_bigendian in #(
5899 yes)
5900 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5901;; #(
5902 no)
5903 ;; #(
5904 universal)
5905
5906$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5907
5908 ;; #(
5909 *)
b6d0720c 5910 as_fn_error $? "unknown endianness
7083c021
AC
5911 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5912 esac
631ef239 5913
212380e3 5914fi
7083c021 5915ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 5916if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 5917
7083c021 5918else
212380e3 5919
7083c021
AC
5920cat >>confdefs.h <<_ACEOF
5921#define pid_t int
5922_ACEOF
212380e3 5923
212380e3 5924fi
7083c021
AC
5925
5926ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 5927if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 5928
212380e3 5929else
7083c021
AC
5930
5931cat >>confdefs.h <<_ACEOF
5932#define size_t unsigned int
212380e3 5933_ACEOF
7083c021
AC
5934
5935fi
5936
5937# The cast to long int works around a bug in the HP C Compiler
5938# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5939# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5940# This bug is HP SR number 8606223364.
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5942$as_echo_n "checking size of short... " >&6; }
b6d0720c 5943if ${ac_cv_sizeof_short+:} false; then :
7083c021 5944 $as_echo_n "(cached) " >&6
212380e3 5945else
7083c021
AC
5946 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5947
5948else
5949 if test "$ac_cv_type_short" = yes; then
5950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5952as_fn_error 77 "cannot compute sizeof (short)
5953See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5954 else
5955 ac_cv_sizeof_short=0
5956 fi
5957fi
212380e3 5958
212380e3 5959fi
7083c021
AC
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5961$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5962
212380e3 5963
7083c021
AC
5964
5965cat >>confdefs.h <<_ACEOF
5966#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5967_ACEOF
7083c021
AC
5968
5969
5970# The cast to long int works around a bug in the HP C Compiler
5971# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5972# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5973# This bug is HP SR number 8606223364.
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5975$as_echo_n "checking size of int... " >&6; }
b6d0720c 5976if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
5977 $as_echo_n "(cached) " >&6
5978else
5979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5980
5981else
5982 if test "$ac_cv_type_int" = yes; then
5983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5985as_fn_error 77 "cannot compute sizeof (int)
5986See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5987 else
5988 ac_cv_sizeof_int=0
5989 fi
5990fi
5991
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5994$as_echo "$ac_cv_sizeof_int" >&6; }
5995
5996
5997
5998cat >>confdefs.h <<_ACEOF
5999#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 6000_ACEOF
7083c021
AC
6001
6002
6003# The cast to long int works around a bug in the HP C Compiler
6004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6006# This bug is HP SR number 8606223364.
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6008$as_echo_n "checking size of long... " >&6; }
b6d0720c 6009if ${ac_cv_sizeof_long+:} false; then :
7083c021 6010 $as_echo_n "(cached) " >&6
212380e3 6011else
7083c021 6012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 6013
7083c021
AC
6014else
6015 if test "$ac_cv_type_long" = yes; then
6016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6018as_fn_error 77 "cannot compute sizeof (long)
6019See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6020 else
6021 ac_cv_sizeof_long=0
6022 fi
212380e3 6023fi
631ef239 6024
7083c021
AC
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6027$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 6028
631ef239 6029
7083c021
AC
6030
6031cat >>confdefs.h <<_ACEOF
6032#define SIZEOF_LONG $ac_cv_sizeof_long
6033_ACEOF
6034
6035
6036# The cast to long int works around a bug in the HP C Compiler
6037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6039# This bug is HP SR number 8606223364.
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6041$as_echo_n "checking size of long long... " >&6; }
b6d0720c 6042if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
6043 $as_echo_n "(cached) " >&6
6044else
6045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6046
212380e3 6047else
7083c021
AC
6048 if test "$ac_cv_type_long_long" = yes; then
6049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6051as_fn_error 77 "cannot compute sizeof (long long)
6052See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6053 else
6054 ac_cv_sizeof_long_long=0
6055 fi
212380e3 6056fi
212380e3
AC
6057
6058fi
7083c021
AC
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6060$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
6061
6062
6063
7083c021
AC
6064cat >>confdefs.h <<_ACEOF
6065#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6066_ACEOF
212380e3 6067
212380e3 6068
212380e3 6069
7083c021
AC
6070
6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6072$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 6073if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6074 $as_echo_n "(cached) " >&6
6075else
6076 ac_func_search_save_LIBS=$LIBS
6077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6078/* end confdefs.h. */
7083c021
AC
6079
6080/* Override any GCC internal prototype to avoid an error.
6081 Use char because int might match the return type of a GCC
6082 builtin and then its argument prototype would still apply. */
6083#ifdef __cplusplus
6084extern "C"
6085#endif
6086char socket ();
212380e3
AC
6087int
6088main ()
6089{
7083c021 6090return socket ();
212380e3
AC
6091 ;
6092 return 0;
6093}
6094_ACEOF
7083c021
AC
6095for ac_lib in '' socket; do
6096 if test -z "$ac_lib"; then
6097 ac_res="none required"
6098 else
6099 ac_res=-l$ac_lib
6100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6101 fi
6102 if ac_fn_c_try_link "$LINENO"; then :
6103 ac_cv_search_socket=$ac_res
6104fi
6105rm -f core conftest.err conftest.$ac_objext \
6106 conftest$ac_exeext
b6d0720c 6107 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6108 break
6109fi
6110done
b6d0720c 6111if ${ac_cv_search_socket+:} false; then :
212380e3
AC
6112
6113else
7083c021
AC
6114 ac_cv_search_socket=no
6115fi
6116rm conftest.$ac_ext
6117LIBS=$ac_func_search_save_LIBS
6118fi
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6120$as_echo "$ac_cv_search_socket" >&6; }
6121ac_res=$ac_cv_search_socket
6122if test "$ac_res" != no; then :
6123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6124
7083c021 6125else
b6d0720c 6126 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 6127fi
631ef239 6128
212380e3 6129
7083c021
AC
6130if test x"$SUN" = xyes; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6132$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 6133if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6134 $as_echo_n "(cached) " >&6
6135else
6136 ac_func_search_save_LIBS=$LIBS
6137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6138/* end confdefs.h. */
7083c021
AC
6139
6140/* Override any GCC internal prototype to avoid an error.
6141 Use char because int might match the return type of a GCC
6142 builtin and then its argument prototype would still apply. */
6143#ifdef __cplusplus
6144extern "C"
6145#endif
6146char inet_ntoa ();
212380e3
AC
6147int
6148main ()
6149{
7083c021 6150return inet_ntoa ();
212380e3
AC
6151 ;
6152 return 0;
6153}
6154_ACEOF
7083c021
AC
6155for ac_lib in '' nsl; do
6156 if test -z "$ac_lib"; then
6157 ac_res="none required"
6158 else
6159 ac_res=-l$ac_lib
6160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6161 fi
6162 if ac_fn_c_try_link "$LINENO"; then :
6163 ac_cv_search_inet_ntoa=$ac_res
6164fi
6165rm -f core conftest.err conftest.$ac_objext \
6166 conftest$ac_exeext
b6d0720c 6167 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6168 break
6169fi
6170done
b6d0720c 6171if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
6172
6173else
7083c021
AC
6174 ac_cv_search_inet_ntoa=no
6175fi
6176rm conftest.$ac_ext
6177LIBS=$ac_func_search_save_LIBS
6178fi
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6180$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6181ac_res=$ac_cv_search_inet_ntoa
6182if test "$ac_res" != no; then :
6183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6184
7083c021 6185else
b6d0720c 6186 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 6187fi
631ef239 6188
7083c021 6189fi
212380e3 6190
7083c021
AC
6191ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6192#include <sys/socket.h>
6193"
b6d0720c 6194if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
6195
6196else
6197
7083c021 6198$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6199
7083c021 6200fi
212380e3
AC
6201
6202
7083c021
AC
6203# Check whether --enable-ipv6 was given.
6204if test "${enable_ipv6+set}" = set; then :
6205 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6206else
7083c021
AC
6207 ipv6=no
6208fi
212380e3 6209
212380e3 6210
7083c021
AC
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6212$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 6213if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6214 $as_echo_n "(cached) " >&6
6215else
6216 ac_func_search_save_LIBS=$LIBS
6217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6218/* end confdefs.h. */
212380e3 6219
631ef239
AC
6220/* Override any GCC internal prototype to avoid an error.
6221 Use char because int might match the return type of a GCC
6222 builtin and then its argument prototype would still apply. */
212380e3
AC
6223#ifdef __cplusplus
6224extern "C"
212380e3 6225#endif
7083c021 6226char crypt ();
212380e3
AC
6227int
6228main ()
6229{
7083c021 6230return crypt ();
212380e3
AC
6231 ;
6232 return 0;
6233}
6234_ACEOF
7083c021
AC
6235for ac_lib in '' crypt descrypt; do
6236 if test -z "$ac_lib"; then
6237 ac_res="none required"
6238 else
6239 ac_res=-l$ac_lib
6240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6241 fi
6242 if ac_fn_c_try_link "$LINENO"; then :
6243 ac_cv_search_crypt=$ac_res
6244fi
6245rm -f core conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext
b6d0720c 6247 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6248 break
6249fi
6250done
b6d0720c 6251if ${ac_cv_search_crypt+:} false; then :
7083c021 6252
212380e3 6253else
7083c021
AC
6254 ac_cv_search_crypt=no
6255fi
6256rm conftest.$ac_ext
6257LIBS=$ac_func_search_save_LIBS
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6260$as_echo "$ac_cv_search_crypt" >&6; }
6261ac_res=$ac_cv_search_crypt
6262if test "$ac_res" != no; then :
6263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6264
212380e3 6265fi
631ef239 6266
7083c021
AC
6267
6268CRYPT_LIB=$ac_cv_search_crypt
6269
6270if test "$CRYPT_LIB" = "none required"; then
6271 unset CRYPT_LIB
6272elif test "$CRYPT_LIB" = no; then
6273 unset CRYPT_LIB
212380e3 6274fi
7083c021
AC
6275
6276
6277
6278if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6279 VICONF=viconf
6280 else
6281 VICONF=""
6282fi
6283
6284
6285
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6287$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 6288if ${gcc_cv_header_string+:} false; then :
7083c021
AC
6289 $as_echo_n "(cached) " >&6
6290else
6291
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293/* end confdefs.h. */
6294#include <string.h>
6295 #include <strings.h>
212380e3 6296_ACEOF
7083c021
AC
6297if ac_fn_c_try_compile "$LINENO"; then :
6298 gcc_cv_header_string=yes
6299else
6300 gcc_cv_header_string=no
6301fi
6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6303
6304fi
7083c021
AC
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6306$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6307
7083c021
AC
6308if test "$gcc_cv_header_string" = "yes"; then
6309
6310$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6311
6312fi
212380e3 6313
7083c021
AC
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6315$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 6316if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
6317 $as_echo_n "(cached) " >&6
6318else
6319 ac_cv_c_bigendian=unknown
6320 # See if we're dealing with a universal compiler.
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h. */
6323#ifndef __APPLE_CC__
6324 not a universal capable compiler
6325 #endif
6326 typedef int dummy;
6327
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"; then :
6330
6331 # Check for potential -arch flags. It is not universal unless
6332 # there are at least two -arch flags with different values.
6333 ac_arch=
6334 ac_prev=
6335 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6336 if test -n "$ac_prev"; then
6337 case $ac_word in
6338 i?86 | x86_64 | ppc | ppc64)
6339 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6340 ac_arch=$ac_word
6341 else
6342 ac_cv_c_bigendian=universal
6343 break
6344 fi
6345 ;;
6346 esac
6347 ac_prev=
6348 elif test "x$ac_word" = "x-arch"; then
6349 ac_prev=arch
6350 fi
6351 done
212380e3 6352fi
7083c021
AC
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 if test $ac_cv_c_bigendian = unknown; then
6355 # See if sys/param.h defines the BYTE_ORDER macro.
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h. */
6358#include <sys/types.h>
6359 #include <sys/param.h>
6360
6361int
6362main ()
6363{
6364#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6365 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6366 && LITTLE_ENDIAN)
6367 bogus endian macros
6368 #endif
6369
6370 ;
6371 return 0;
6372}
6373_ACEOF
6374if ac_fn_c_try_compile "$LINENO"; then :
6375 # It does; now see whether it defined to BIG_ENDIAN or not.
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h. */
6378#include <sys/types.h>
6379 #include <sys/param.h>
6380
6381int
6382main ()
6383{
6384#if BYTE_ORDER != BIG_ENDIAN
6385 not big endian
6386 #endif
212380e3 6387
7083c021
AC
6388 ;
6389 return 0;
6390}
6391_ACEOF
6392if ac_fn_c_try_compile "$LINENO"; then :
6393 ac_cv_c_bigendian=yes
212380e3 6394else
7083c021
AC
6395 ac_cv_c_bigendian=no
6396fi
6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398fi
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 fi
6401 if test $ac_cv_c_bigendian = unknown; then
6402 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405#include <limits.h>
6406
6407int
6408main ()
6409{
6410#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6411 bogus endian macros
6412 #endif
6413
6414 ;
6415 return 0;
6416}
212380e3 6417_ACEOF
7083c021
AC
6418if ac_fn_c_try_compile "$LINENO"; then :
6419 # It does; now see whether it defined to _BIG_ENDIAN or not.
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6421/* end confdefs.h. */
7083c021
AC
6422#include <limits.h>
6423
212380e3
AC
6424int
6425main ()
6426{
7083c021
AC
6427#ifndef _BIG_ENDIAN
6428 not big endian
6429 #endif
6430
212380e3
AC
6431 ;
6432 return 0;
6433}
6434_ACEOF
7083c021
AC
6435if ac_fn_c_try_compile "$LINENO"; then :
6436 ac_cv_c_bigendian=yes
212380e3 6437else
7083c021 6438 ac_cv_c_bigendian=no
212380e3 6439fi
631ef239 6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6441fi
7083c021
AC
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 fi
6444 if test $ac_cv_c_bigendian = unknown; then
6445 # Compile a test program.
6446 if test "$cross_compiling" = yes; then :
6447 # Try to guess by grepping values from an object file.
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449/* end confdefs.h. */
6450short int ascii_mm[] =
6451 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6452 short int ascii_ii[] =
6453 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6454 int use_ascii (int i) {
6455 return ascii_mm[i] + ascii_ii[i];
6456 }
6457 short int ebcdic_ii[] =
6458 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6459 short int ebcdic_mm[] =
6460 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6461 int use_ebcdic (int i) {
6462 return ebcdic_mm[i] + ebcdic_ii[i];
6463 }
6464 extern int foo;
212380e3 6465
7083c021
AC
6466int
6467main ()
6468{
6469return use_ascii (foo) == use_ebcdic (foo);
6470 ;
6471 return 0;
6472}
212380e3 6473_ACEOF
7083c021
AC
6474if ac_fn_c_try_compile "$LINENO"; then :
6475 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6476 ac_cv_c_bigendian=yes
6477 fi
6478 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6479 if test "$ac_cv_c_bigendian" = unknown; then
6480 ac_cv_c_bigendian=no
6481 else
6482 # finding both strings is unlikely to happen, but who knows?
6483 ac_cv_c_bigendian=unknown
6484 fi
6485 fi
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488else
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6490/* end confdefs.h. */
6491$ac_includes_default
6492int
6493main ()
6494{
7083c021
AC
6495
6496 /* Are we little or big endian? From Harbison&Steele. */
6497 union
6498 {
6499 long int l;
6500 char c[sizeof (long int)];
6501 } u;
6502 u.l = 1;
6503 return u.c[sizeof (long int) - 1] == 1;
6504
212380e3
AC
6505 ;
6506 return 0;
6507}
6508_ACEOF
7083c021
AC
6509if ac_fn_c_try_run "$LINENO"; then :
6510 ac_cv_c_bigendian=no
212380e3 6511else
7083c021 6512 ac_cv_c_bigendian=yes
212380e3 6513fi
7083c021
AC
6514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6516fi
212380e3 6517
7083c021
AC
6518 fi
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6521$as_echo "$ac_cv_c_bigendian" >&6; }
6522 case $ac_cv_c_bigendian in #(
6523 yes)
6524 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6525;; #(
6526 no)
6527 ;; #(
6528 universal)
212380e3 6529
7083c021 6530$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6531
7083c021
AC
6532 ;; #(
6533 *)
b6d0720c 6534 as_fn_error $? "unknown endianness
7083c021
AC
6535 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6536 esac
212380e3 6537
212380e3 6538
7083c021 6539ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 6540if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 6541
7083c021 6542else
b6d0720c 6543 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 6544fi
212380e3
AC
6545
6546
212380e3
AC
6547
6548
7083c021 6549if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6550
7083c021
AC
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6552$as_echo_n "checking for strlcpy... " >&6; }
6553save_CFLAGS=$CFLAGS
6554CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6555
7083c021 6556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6557/* end confdefs.h. */
7083c021
AC
6558#include <string.h>
6559 #include <stdlib.h>
212380e3
AC
6560int
6561main ()
6562{
7083c021
AC
6563char *a = malloc(6);
6564 strlcpy(a, "hello", 6);
6565
212380e3
AC
6566 ;
6567 return 0;
6568}
6569_ACEOF
7083c021
AC
6570if ac_fn_c_try_link "$LINENO"; then :
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6572$as_echo "yes" >&6; }
212380e3 6573
7083c021 6574$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6575
212380e3 6576else
7083c021
AC
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
212380e3 6579
7083c021
AC
6580fi
6581rm -f core conftest.err conftest.$ac_objext \
6582 conftest$ac_exeext conftest.$ac_ext
6583
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6585$as_echo_n "checking for strlcat... " >&6; }
6586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6587/* end confdefs.h. */
7083c021
AC
6588#include <string.h>
6589 #include <stdlib.h>
212380e3
AC
6590int
6591main ()
6592{
7083c021
AC
6593char *a = malloc(6);
6594 a[0] = '\0';
6595 strlcat(a, "hello", 6);
6596
212380e3
AC
6597 ;
6598 return 0;
6599}
6600_ACEOF
7083c021
AC
6601if ac_fn_c_try_link "$LINENO"; then :
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603$as_echo "yes" >&6; }
631ef239 6604
7083c021 6605$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6606
7083c021
AC
6607else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
212380e3 6610
7083c021
AC
6611fi
6612rm -f core conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
212380e3 6614
7083c021 6615CFLAGS=$save_CFLAGS
212380e3
AC
6616
6617else
6618
212380e3 6619
7083c021
AC
6620for ac_func in strlcat strlcpy
6621do :
6622 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6623ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6624if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
6625 cat >>confdefs.h <<_ACEOF
6626#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6627_ACEOF
6628
212380e3 6629fi
7083c021 6630done
212380e3
AC
6631
6632
6633fi
6634
7083c021 6635ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 6636if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 6637
212380e3 6638else
212380e3 6639
7083c021 6640 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 6641if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 6642
631ef239 6643
7083c021 6644$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6645
212380e3 6646
7083c021 6647else
212380e3 6648
7083c021
AC
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6650$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6651
7083c021 6652$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6653
212380e3 6654
212380e3 6655fi
631ef239 6656
7083c021 6657
212380e3 6658fi
7083c021
AC
6659
6660
6661ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 6662if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 6663
212380e3
AC
6664else
6665
7083c021 6666 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 6667if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 6668
7083c021
AC
6669
6670$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
6671
6672
212380e3 6673else
212380e3 6674
7083c021
AC
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6676$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6677
7083c021 6678$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6679
7083c021
AC
6680
6681fi
212380e3
AC
6682
6683
6684fi
6685
6686
7083c021
AC
6687ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6688#include <netinet/in.h>
6689"
b6d0720c 6690if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 6691
7083c021 6692else
212380e3 6693
7083c021 6694$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6695
7083c021 6696fi
212380e3
AC
6697
6698
7083c021
AC
6699ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6700#include <sys/socket.h>
6701"
b6d0720c 6702if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 6703
212380e3 6704else
212380e3 6705
7083c021 6706$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6707
7083c021 6708fi
212380e3 6709
212380e3 6710
7083c021 6711ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 6712if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 6713
7083c021
AC
6714cat >>confdefs.h <<_ACEOF
6715#define HAVE_UINTPTR_T 1
6716_ACEOF
212380e3 6717
631ef239 6718
212380e3 6719fi
7083c021
AC
6720
6721
6722for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6723do :
6724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6725ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6726if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6727 cat >>confdefs.h <<_ACEOF
7083c021 6728#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6729_ACEOF
6730
6731fi
6732done
6733
6734
6735# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6736# for constant arguments. Useless!
7083c021
AC
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6738$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 6739if ${ac_cv_working_alloca_h+:} false; then :
7083c021 6740 $as_echo_n "(cached) " >&6
212380e3 6741else
7083c021 6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6743/* end confdefs.h. */
6744#include <alloca.h>
6745int
6746main ()
6747{
6748char *p = (char *) alloca (2 * sizeof (int));
631ef239 6749 if (p) return 0;
212380e3
AC
6750 ;
6751 return 0;
6752}
6753_ACEOF
7083c021 6754if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6755 ac_cv_working_alloca_h=yes
6756else
7083c021 6757 ac_cv_working_alloca_h=no
212380e3 6758fi
7083c021
AC
6759rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
212380e3 6761fi
7083c021
AC
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6763$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
6764if test $ac_cv_working_alloca_h = yes; then
6765
7083c021 6766$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
6767
6768fi
6769
7083c021
AC
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6771$as_echo_n "checking for alloca... " >&6; }
b6d0720c 6772if ${ac_cv_func_alloca_works+:} false; then :
7083c021 6773 $as_echo_n "(cached) " >&6
212380e3 6774else
7083c021 6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6776/* end confdefs.h. */
6777#ifdef __GNUC__
6778# define alloca __builtin_alloca
6779#else
6780# ifdef _MSC_VER
6781# include <malloc.h>
6782# define alloca _alloca
6783# else
631ef239 6784# ifdef HAVE_ALLOCA_H
212380e3
AC
6785# include <alloca.h>
6786# else
6787# ifdef _AIX
6788 #pragma alloca
6789# else
6790# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 6791void *alloca (size_t);
212380e3
AC
6792# endif
6793# endif
6794# endif
6795# endif
6796#endif
6797
6798int
6799main ()
6800{
6801char *p = (char *) alloca (1);
631ef239 6802 if (p) return 0;
212380e3
AC
6803 ;
6804 return 0;
6805}
6806_ACEOF
7083c021 6807if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6808 ac_cv_func_alloca_works=yes
6809else
7083c021 6810 ac_cv_func_alloca_works=no
212380e3 6811fi
7083c021
AC
6812rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
212380e3 6814fi
7083c021
AC
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6816$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
6817
6818if test $ac_cv_func_alloca_works = yes; then
6819
7083c021 6820$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
6821
6822else
6823 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6824# that cause trouble. Some versions do not even contain alloca or
6825# contain a buggy version. If you still want to use their alloca,
6826# use ar to extract alloca.o from them instead of compiling alloca.c.
6827
631ef239 6828ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6829
7083c021 6830$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
6831
6832
7083c021
AC
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6834$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 6835if ${ac_cv_os_cray+:} false; then :
7083c021 6836 $as_echo_n "(cached) " >&6
212380e3 6837else
7083c021 6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6839/* end confdefs.h. */
631ef239 6840#if defined CRAY && ! defined CRAY2
212380e3
AC
6841webecray
6842#else
6843wenotbecray
6844#endif
6845
6846_ACEOF
6847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 6848 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
6849 ac_cv_os_cray=yes
6850else
6851 ac_cv_os_cray=no
6852fi
6853rm -f conftest*
6854
6855fi
7083c021
AC
6856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6857$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
6858if test $ac_cv_os_cray = yes; then
6859 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
6860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6862if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
6863
6864cat >>confdefs.h <<_ACEOF
6865#define CRAY_STACKSEG_END $ac_func
6866_ACEOF
6867
6868 break
6869fi
6870
6871 done
6872fi
6873
7083c021
AC
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6875$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 6876if ${ac_cv_c_stack_direction+:} false; then :
7083c021 6877 $as_echo_n "(cached) " >&6
212380e3 6878else
7083c021 6879 if test "$cross_compiling" = yes; then :
212380e3
AC
6880 ac_cv_c_stack_direction=0
6881else
7083c021 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6883/* end confdefs.h. */
631ef239 6884$ac_includes_default
212380e3 6885int
2eff3833 6886find_stack_direction (int *addr, int depth)
212380e3 6887{
2eff3833
JT
6888 int dir, dummy = 0;
6889 if (! addr)
6890 addr = &dummy;
6891 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6892 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6893 return dir + dummy;
212380e3
AC
6894}
6895
6896int
2eff3833 6897main (int argc, char **argv)
212380e3 6898{
2eff3833 6899 return find_stack_direction (0, argc + !argv + 20) < 0;
212380e3
AC
6900}
6901_ACEOF
7083c021 6902if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6903 ac_cv_c_stack_direction=1
6904else
7083c021 6905 ac_cv_c_stack_direction=-1
212380e3 6906fi
7083c021
AC
6907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6908 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6909fi
631ef239 6910
212380e3 6911fi
7083c021
AC
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6913$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
6914cat >>confdefs.h <<_ACEOF
6915#define STACK_DIRECTION $ac_cv_c_stack_direction
6916_ACEOF
6917
6918
6919fi
6920
6921
6922
7083c021 6923ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 6924if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 6925
212380e3 6926else
7083c021
AC
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6928$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 6929if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 6930 $as_echo_n "(cached) " >&6
212380e3
AC
6931else
6932 ac_check_lib_save_LIBS=$LIBS
6933LIBS="-lrt $LIBS"
7083c021 6934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6935/* end confdefs.h. */
6936
631ef239
AC
6937/* Override any GCC internal prototype to avoid an error.
6938 Use char because int might match the return type of a GCC
6939 builtin and then its argument prototype would still apply. */
212380e3
AC
6940#ifdef __cplusplus
6941extern "C"
6942#endif
212380e3
AC
6943char nanosleep ();
6944int
6945main ()
6946{
631ef239 6947return nanosleep ();
212380e3
AC
6948 ;
6949 return 0;
6950}
6951_ACEOF
7083c021 6952if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6953 ac_cv_lib_rt_nanosleep=yes
6954else
7083c021 6955 ac_cv_lib_rt_nanosleep=no
212380e3 6956fi
7083c021
AC
6957rm -f core conftest.err conftest.$ac_objext \
6958 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6959LIBS=$ac_check_lib_save_LIBS
6960fi
7083c021
AC
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6962$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 6963if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
6964 LIBS="${LIBS} -lrt"
6965else
7083c021
AC
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6967$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 6968if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 6969 $as_echo_n "(cached) " >&6
212380e3
AC
6970else
6971 ac_check_lib_save_LIBS=$LIBS
6972LIBS="-lposix4 $LIBS"
7083c021 6973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6974/* end confdefs.h. */
6975
631ef239
AC
6976/* Override any GCC internal prototype to avoid an error.
6977 Use char because int might match the return type of a GCC
6978 builtin and then its argument prototype would still apply. */
212380e3
AC
6979#ifdef __cplusplus
6980extern "C"
6981#endif
212380e3
AC
6982char nanosleep ();
6983int
6984main ()
6985{
631ef239 6986return nanosleep ();
212380e3
AC
6987 ;
6988 return 0;
6989}
6990_ACEOF
7083c021 6991if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6992 ac_cv_lib_posix4_nanosleep=yes
6993else
7083c021 6994 ac_cv_lib_posix4_nanosleep=no
212380e3 6995fi
7083c021
AC
6996rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6998LIBS=$ac_check_lib_save_LIBS
6999fi
7083c021
AC
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
7001$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 7002if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
7003 LIBS="${LIBS} -lposix4"
7004
7005fi
7006
7007fi
7008
7009fi
7010
7011if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
7012then
7083c021
AC
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
7014$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
7015else
7016
7083c021 7017$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
7018
7019fi
7020
7083c021
AC
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
7022$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 7023# Check whether --enable-openssl was given.
7083c021 7024if test "${enable_openssl+set}" = set; then :
631ef239 7025 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
7026else
7027 cf_enable_openssl="auto"
631ef239
AC
7028fi
7029
212380e3
AC
7030
7031if test "$cf_enable_openssl" != "no" ; then
7032 cf_openssl_basedir=""
7033 if test "$cf_enable_openssl" != "auto" &&
7034 test "$cf_enable_openssl" != "yes" ; then
7035 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7036 else
7037 for dirs in /usr/local/ssl /usr/pkg /usr/local \
7038 /usr/local/openssl ; do
7039 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7040 cf_openssl_basedir="${dirs}"
7041 break
7042 fi
7043 done
7044 unset dirs
7045 fi
7046 if test ! -z "$cf_openssl_basedir"; then
7047 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7048 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7049 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7050 else
7051 cf_openssl_basedir=""
7052 fi
7053 else
7054 if test -f "/usr/include/openssl/opensslv.h" ; then
7055 cf_openssl_basedir="/usr"
7056 fi
7057 fi
7058
7059 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7061$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
7062 cf_enable_openssl="yes"
7063 else
7083c021
AC
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7065$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
7066 cf_enable_openssl="no"
7067 fi
7068 unset cf_openssl_basedir
7069else
7083c021
AC
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7071$as_echo "disabled" >&6; }
212380e3
AC
7072fi
7073
7074save_CPPFLAGS="$CPPFLAGS"
7075CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7076save_LIBS="$LIBS"
7077LIBS="$LIBS $SSL_LIBS"
7078if test "$cf_enable_openssl" != no; then
7083c021
AC
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7080$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7081 if test "$cross_compiling" = yes; then :
212380e3
AC
7082 cf_openssl_version_ok=no
7083else
7083c021 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7085/* end confdefs.h. */
7086#include <openssl/opensslv.h>
7087 #include <stdlib.h>
7088int
7089main ()
7090{
7091if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7092 exit(0); else exit(1);
7093 ;
7094 return 0;
7095}
7096_ACEOF
7083c021 7097if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
7098 cf_openssl_version_ok=yes
7099else
7083c021 7100 cf_openssl_version_ok=no
212380e3 7101fi
7083c021
AC
7102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7103 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
7104fi
7105
631ef239 7106
212380e3 7107 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7109$as_echo "found" >&6; }
212380e3
AC
7110
7111 ENCSPEED=encspeed
7112
7113
7114 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7116$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 7117if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 7118 $as_echo_n "(cached) " >&6
212380e3
AC
7119else
7120 ac_check_lib_save_LIBS=$LIBS
7121LIBS="-lcrypto $LIBS"
7083c021 7122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7123/* end confdefs.h. */
7124
631ef239
AC
7125/* Override any GCC internal prototype to avoid an error.
7126 Use char because int might match the return type of a GCC
7127 builtin and then its argument prototype would still apply. */
212380e3
AC
7128#ifdef __cplusplus
7129extern "C"
7130#endif
212380e3
AC
7131char RSA_free ();
7132int
7133main ()
7134{
631ef239 7135return RSA_free ();
212380e3
AC
7136 ;
7137 return 0;
7138}
7139_ACEOF
7083c021 7140if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7141 ac_cv_lib_crypto_RSA_free=yes
7142else
7083c021 7143 ac_cv_lib_crypto_RSA_free=no
212380e3 7144fi
7083c021
AC
7145rm -f core conftest.err conftest.$ac_objext \
7146 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7147LIBS=$ac_check_lib_save_LIBS
7148fi
7083c021
AC
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7150$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 7151if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
7152 cat >>confdefs.h <<_ACEOF
7153#define HAVE_LIBCRYPTO 1
7154_ACEOF
7155
7156 LIBS="-lcrypto $LIBS"
7157
7158fi
7159
7160 SSL_LIBS="$SSL_LIBS -lcrypto"
7161 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7162 else
7083c021
AC
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7164$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
7165 fi
7166fi
7167
7168CPPFLAGS="$save_CPPFLAGS"
7169LIBS="$save_LIBS"
7170
7171
7172
7173
7174
631ef239 7175# Check whether --with-zlib-path was given.
7083c021 7176if test "${with_zlib_path+set}" = set; then :
631ef239
AC
7177 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7178fi
212380e3 7179
7083c021
AC
7180
7181# Check whether --enable-zlib was given.
7182if test "${enable_zlib+set}" = set; then :
7183 enableval=$enable_zlib; zlib=$enableval
212380e3 7184else
7083c021 7185 zlib=yes
212380e3 7186fi
212380e3 7187
212380e3 7188
7083c021
AC
7189if test "$zlib" = yes; then
7190
7191ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 7192if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
7193
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7195$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 7196if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 7197 $as_echo_n "(cached) " >&6
212380e3
AC
7198else
7199 ac_check_lib_save_LIBS=$LIBS
7200LIBS="-lz $LIBS"
7083c021 7201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7202/* end confdefs.h. */
7203
631ef239
AC
7204/* Override any GCC internal prototype to avoid an error.
7205 Use char because int might match the return type of a GCC
7206 builtin and then its argument prototype would still apply. */
212380e3
AC
7207#ifdef __cplusplus
7208extern "C"
7209#endif
212380e3
AC
7210char zlibVersion ();
7211int
7212main ()
7213{
631ef239 7214return zlibVersion ();
212380e3
AC
7215 ;
7216 return 0;
7217}
7218_ACEOF
7083c021 7219if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7220 ac_cv_lib_z_zlibVersion=yes
7221else
7083c021 7222 ac_cv_lib_z_zlibVersion=no
212380e3 7223fi
7083c021
AC
7224rm -f core conftest.err conftest.$ac_objext \
7225 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7226LIBS=$ac_check_lib_save_LIBS
7227fi
7083c021
AC
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7229$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 7230if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
7231
7232 ZLIB_LD=-lz
7233
7234
7083c021 7235$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
7236
7237
7238else
7239 zlib=no
7240fi
7241
7242
7243else
7244 zlib=no
7245fi
7246
7247
7248
497e30a0
LS
7249fi
7250
7251# Check whether --enable-shared-sqlite was given.
7252if test "${enable_shared_sqlite+set}" = set; then :
7253 enableval=$enable_shared_sqlite; shared_sqlite=$enableval
7254else
7255 shared_sqlite=no
7256fi
7257
7258
7259if test "$shared_sqlite" = yes; then
7260
7261ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7262if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
7265$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
7266if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268else
7269 ac_check_lib_save_LIBS=$LIBS
7270LIBS="-lsqlite3 $LIBS"
7271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272/* end confdefs.h. */
7273
7274/* Override any GCC internal prototype to avoid an error.
7275 Use char because int might match the return type of a GCC
7276 builtin and then its argument prototype would still apply. */
7277#ifdef __cplusplus
7278extern "C"
7279#endif
7280char sqlite3_open ();
7281int
7282main ()
7283{
7284return sqlite3_open ();
7285 ;
7286 return 0;
7287}
7288_ACEOF
7289if ac_fn_c_try_link "$LINENO"; then :
7290 ac_cv_lib_sqlite3_sqlite3_open=yes
7291else
7292 ac_cv_lib_sqlite3_sqlite3_open=no
7293fi
7294rm -f core conftest.err conftest.$ac_objext \
7295 conftest$ac_exeext conftest.$ac_ext
7296LIBS=$ac_check_lib_save_LIBS
7297fi
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
7299$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
7300if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then :
7301
7302 SQLITE_LD=-lsqlite3
7303
7304
7305else
7306 shared_sqlite=no
7307fi
7308
7309
7310else
7311 shared_sqlite=no
7312fi
7313
7314
7315
74ab6be0
LS
7316fi
7317
7318if test "$shared_sqlite" = no; then
7319 SQLITE_SRC=sqlite3.c
7320
212380e3
AC
7321fi
7322
7323
c1c5fdc4 7324# Check whether --enable-ports was given.
7083c021 7325if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
7326 enableval=$enable_ports; if test $enableval = yes; then
7327 SELECT_TYPE_EXPLICIT="ports"
7328 else
7329 use_ports=no
7330 fi
7331
7332fi
7333
7334
631ef239 7335# Check whether --enable-poll was given.
7083c021 7336if test "${enable_poll+set}" = set; then :
631ef239 7337 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
7338 SELECT_TYPE_EXPLICIT="poll"
7339 else
7340 use_poll=no
7341 fi
7342
631ef239
AC
7343fi
7344
212380e3 7345
631ef239 7346# Check whether --enable-select was given.
7083c021 7347if test "${enable_select+set}" = set; then :
631ef239 7348 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
7349 SELECT_TYPE_EXPLICIT="select"
7350 else
7351 use_select=no
7352 fi
7353
631ef239
AC
7354fi
7355
212380e3 7356
631ef239 7357# Check whether --enable-kqueue was given.
7083c021 7358if test "${enable_kqueue+set}" = set; then :
631ef239 7359 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
7360 SELECT_TYPE_EXPLICIT="kqueue"
7361 else
7362 use_kqueue=no
7363 fi
7364
631ef239
AC
7365fi
7366
212380e3 7367
631ef239 7368# Check whether --enable-epoll was given.
7083c021 7369if test "${enable_epoll+set}" = set; then :
631ef239 7370 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7371 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
7372 for ac_func in epoll_ctl
7373do :
7374 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7375if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 7376 cat >>confdefs.h <<_ACEOF
7083c021 7377#define HAVE_EPOLL_CTL 1
3ad1a781
JT
7378_ACEOF
7379 haveepoll=yes
7380else
7381 haveepoll=no
7382fi
7383done
7384
212380e3
AC
7385 else
7386 use_epoll=no
7387 fi
7388
631ef239
AC
7389fi
7390
212380e3
AC
7391
7392
212380e3 7393
631ef239 7394# Check whether --with-confdir was given.
7083c021 7395if test "${with_confdir+set}" = set; then :
634d4aad 7396 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 7397else
9f9b7042 7398 confdir='${sysconfdir}'
634d4aad
NPB
7399fi
7400
212380e3
AC
7401
7402 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7403 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 7404 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 7405 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7406 ac_define_dir_counter=0
9f9b7042
NPB
7407 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7408 last_ac_define_dir="$ac_define_dir"
7409 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7410 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7411 if test "x$ac_define_dir_counter" = x128; then :
7412 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
7413 break
7414fi
9f9b7042 7415 done
212380e3
AC
7416 ETC_DIR="$ac_define_dir"
7417
7418
7419cat >>confdefs.h <<_ACEOF
7420#define ETC_DIR "$ac_define_dir"
7421_ACEOF
7422
7423
7424
7425
7083c021
AC
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7427$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7428
631ef239 7429# Check whether --with-logdir was given.
7083c021 7430if test "${with_logdir+set}" = set; then :
631ef239 7431 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433$as_echo "yes" >&6; }
212380e3 7434else
9f9b7042
NPB
7435 if test "x$enable_fhs_paths" = "xyes"; then :
7436 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
7437else
7438 logdir='${prefix}/logs'
7439fi
7083c021
AC
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
9f9b7042
NPB
7442fi
7443
212380e3
AC
7444
7445 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7447 last_ac_define_dir=`eval echo $logdir`
7448 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7449 ac_define_dir_counter=0
9f9b7042
NPB
7450 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7451 last_ac_define_dir="$ac_define_dir"
7452 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7453 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7454 if test "x$ac_define_dir_counter" = x128; then :
7455 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
7456 break
7457fi
9f9b7042 7458 done
212380e3
AC
7459 LOG_DIR="$ac_define_dir"
7460
7461
7462cat >>confdefs.h <<_ACEOF
7463#define LOG_DIR "$ac_define_dir"
7464_ACEOF
7465
7466
7467
7468
7469 logdir=`(
7470 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7471 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7472 eval echo \""$logdir"\"
7473 )`
7474
7475
7476
212380e3 7477
7083c021
AC
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7479$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7480
631ef239 7481# Check whether --with-helpdir was given.
7083c021 7482if test "${with_helpdir+set}" = set; then :
631ef239 7483 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7485$as_echo "yes" >&6; }
212380e3 7486else
9f9b7042
NPB
7487 if test "x$enable_fhs_paths" = "xyes"; then :
7488 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
7489else
7490 helpdir='${prefix}/help'
7491fi
7083c021
AC
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
9f9b7042
NPB
7494fi
7495
212380e3
AC
7496
7497 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7499 last_ac_define_dir=`eval echo $helpdir`
7500 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7501 ac_define_dir_counter=0
9f9b7042
NPB
7502 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7503 last_ac_define_dir="$ac_define_dir"
7504 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7505 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7506 if test "x$ac_define_dir_counter" = x128; then :
7507 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
7508 break
7509fi
9f9b7042 7510 done
212380e3
AC
7511 HELP_DIR="$ac_define_dir"
7512
7513
7514cat >>confdefs.h <<_ACEOF
7515#define HELP_DIR "$ac_define_dir"
7516_ACEOF
7517
7518
7519
7520
7521 helpdir=`(
7522 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7523 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7524 eval echo \""$helpdir"\"
7525 )`
7526
7527
7528
212380e3 7529
7083c021
AC
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7531$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7532
631ef239 7533# Check whether --with-moduledir was given.
7083c021 7534if test "${with_moduledir+set}" = set; then :
631ef239 7535 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7537$as_echo "yes" >&6; }
9f9b7042
NPB
7538else
7539 if test "x$enable_fhs_paths" = "xyes"; then :
7540 moduledir='${pkglibdir}/modules'
7541else
7542 moduledir='${prefix}/modules'
7543fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546
7547fi
7548
212380e3
AC
7549
7550 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7552 last_ac_define_dir=`eval echo $moduledir`
7553 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7554 ac_define_dir_counter=0
9f9b7042
NPB
7555 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7556 last_ac_define_dir="$ac_define_dir"
7557 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7558 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7559 if test "x$ac_define_dir_counter" = x128; then :
7560 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
7561 break
7562fi
9f9b7042 7563 done
212380e3
AC
7564 MODULE_DIR="$ac_define_dir"
7565
7566
7567cat >>confdefs.h <<_ACEOF
7568#define MODULE_DIR "$ac_define_dir"
7569_ACEOF
7570
7571
7572
7573
7574 moduledir=`(
7575 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7576 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7577 eval echo \""$moduledir"\"
7578 )`
7579
7580
9f9b7042
NPB
7581
7582
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7584$as_echo_n "checking whether or modify rundir... " >&6; }
7585
7586# Check whether --with-rundir was given.
7587if test "${with_rundir+set}" = set; then :
7588 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7589$as_echo "yes" >&6; }
7590 rundir=`echo $withval | sed 's/\/$//'`
212380e3 7591else
9f9b7042 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 7593$as_echo "no" >&6; }
9f9b7042
NPB
7594 if test "x$enable_fhs_paths" = "xyes"; then :
7595 rundir='${prefix}/run'
7596else
7597 rundir='${sysconfdir}'
7598fi
7599fi
7600
7601
212380e3
AC
7602
7603 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7605 last_ac_define_dir=`eval echo $pkgrundir`
7606 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7607 ac_define_dir_counter=0
9f9b7042
NPB
7608 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7609 last_ac_define_dir="$ac_define_dir"
7610 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7611 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7612 if test "x$ac_define_dir_counter" = x128; then :
7613 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
7614 break
7615fi
9f9b7042
NPB
7616 done
7617 PKGRUNDIR="$ac_define_dir"
212380e3
AC
7618
7619
7620cat >>confdefs.h <<_ACEOF
9f9b7042 7621#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
7622_ACEOF
7623
7624
7625
9f9b7042
NPB
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7627$as_echo_n "checking for program prefix... " >&6; }
212380e3 7628
9f9b7042
NPB
7629# Check whether --with-program-prefix was given.
7630if test "${with_program_prefix+set}" = set; then :
7631 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
7632else
7633 with_program_prefix=
7634fi
212380e3 7635
9f9b7042
NPB
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7637$as_echo "\"$with_program_prefix\"" >&6; }
7638PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
7639
7640
9f9b7042
NPB
7641cat >>confdefs.h <<_ACEOF
7642#define PROGRAM_PREFIX "$with_program_prefix"
7643_ACEOF
631ef239 7644
7083c021 7645
b6d0720c
AC
7646
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7648$as_echo_n "checking whether custom branding is requested... " >&6; }
7649
7650# Check whether --with-custom-branding was given.
7651if test "${with_custom_branding+set}" = set; then :
7652 withval=$with_custom_branding; BRANDING_NAME=$withval
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7654$as_echo "yes" >&6; }
7655else
7656 BRANDING_NAME=$PACKAGE_NAME
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659
7660fi
7661
7662
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7664$as_echo_n "checking whether a custom version is requested... " >&6; }
7665
7666# Check whether --with-custom-version was given.
7667if test "${with_custom_version+set}" = set; then :
7668 withval=$with_custom_version; BRANDING_VERSION=$withval
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7670$as_echo "yes" >&6; }
7671else
7672 BRANDING_VERSION=$PACKAGE_VERSION
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
7675
7676fi
7677
7678
7679
7680cat >>confdefs.h <<_ACEOF
7681#define BRANDING_NAME "$BRANDING_NAME"
7682_ACEOF
7683
7684
7685cat >>confdefs.h <<_ACEOF
7686#define BRANDING_VERSION "$BRANDING_VERSION"
7687_ACEOF
7688
7689
f5493691
AC
7690if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7691
7692$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7693
7694fi
7695
7083c021
AC
7696if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7697 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7698 echo "Forcing $SELECT_TYPE to be enabled"
7699else
7700
7701if test ! "x$use_ports" = "xno"; then
7702 for ac_func in port_getn
7703do :
7704 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 7705if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 7706 cat >>confdefs.h <<_ACEOF
7083c021 7707#define HAVE_PORT_GETN 1
212380e3 7708_ACEOF
7083c021 7709 haveports=yes
212380e3 7710else
7083c021 7711 haveports=no
212380e3
AC
7712fi
7713done
7714
7083c021
AC
7715 if test "x$haveports" = "xyes" ; then
7716 SELECT_TYPE="ports"
212380e3
AC
7717 fi
7718fi
7719
7083c021
AC
7720if test ! "x$use_select" = "xno"; then
7721 for ac_func in select
7722do :
7723 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 7724if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
7725 cat >>confdefs.h <<_ACEOF
7726#define HAVE_SELECT 1
212380e3 7727_ACEOF
7083c021
AC
7728 haveselect=yes
7729else
7730 haveselect=no
7731fi
7732done
212380e3 7733
7083c021
AC
7734 if test "x$haveselect" = "xyes" ; then
7735 SELECT_TYPE="select"
7736 fi
7737fi
212380e3 7738
7083c021
AC
7739if test ! "x$use_poll" = "xno"; then
7740 for ac_func in poll
7741do :
7742 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 7743if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
7744 cat >>confdefs.h <<_ACEOF
7745#define HAVE_POLL 1
212380e3 7746_ACEOF
7083c021 7747 havepoll=yes
212380e3 7748else
7083c021 7749 havepoll=no
212380e3 7750fi
7083c021 7751done
631ef239 7752
7083c021
AC
7753 if test "x$havepoll" = "xyes" ; then
7754 SELECT_TYPE="poll"
7755 fi
212380e3 7756fi
7083c021
AC
7757
7758if test ! "x$use_kqueue" = "xno"; then
7759 for ac_func in kevent
7760do :
7761 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 7762if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 7763 cat >>confdefs.h <<_ACEOF
7083c021 7764#define HAVE_KEVENT 1
212380e3
AC
7765_ACEOF
7766 havekqueue=yes
7767else
7768 havekqueue=no
7769fi
7770done
7771
7772 if test "x$havekqueue" = "xyes" ; then
7773 SELECT_TYPE="kqueue"
7774 fi
7775fi
7776
7777if test ! "x$use_epoll" = "xno"; then
7083c021
AC
7778 for ac_func in epoll_ctl
7779do :
7780 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7781if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 7782 cat >>confdefs.h <<_ACEOF
7083c021 7783#define HAVE_EPOLL_CTL 1
212380e3
AC
7784_ACEOF
7785 haveepoll=yes
7786else
7787 haveepoll=no
7788fi
7789done
7790
7791 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7792 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7794$as_echo_n "checking for epoll support in kernel... " >&6; }
7795 if test "$cross_compiling" = yes; then :
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797$as_echo "no" >&6; }
212380e3 7798else
7083c021 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7800/* end confdefs.h. */
7801#include <stdint.h>
7802#include <sys/param.h>
7803#include <sys/types.h>
7804#include <sys/epoll.h>
7805#include <sys/syscall.h>
7806#include <unistd.h>
7807
7808int
7809main(int argc, char **argv)
7810{
7811 int epfd;
7812
7813 epfd = epoll_create(256);
b676ea3b 7814 return (epfd == -1 ? 1 : 0);
212380e3
AC
7815}
7816_ACEOF
7083c021
AC
7817if ac_fn_c_try_run "$LINENO"; then :
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7819$as_echo "yes" >&6; }
212380e3 7820
7083c021 7821$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7822
7823 SELECT_TYPE="epoll"
7824else
7083c021
AC
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826$as_echo "no" >&6; }
212380e3 7827fi
7083c021
AC
7828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7829 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7830fi
631ef239 7831
212380e3
AC
7832 fi
7833 fi
7834
7835haveepollsyscall=no
7836
7837if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7838 if test "x$haveepoll" = "xno" ; then
7083c021
AC
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7840$as_echo_n "checking for epoll system call... " >&6; }
7841 if test "$cross_compiling" = yes; then :
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
212380e3 7844else
7083c021 7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7846/* end confdefs.h. */
7847#include <stdint.h>
7848#include <sys/param.h>
7849#include <sys/types.h>
7850#include <sys/epoll.h>
7851#include <sys/syscall.h>
7852#include <unistd.h>
7853
7854int
7855epoll_create(int size)
7856{
7857 return (syscall(__NR_epoll_create, size));
7858}
7859
7860int
7861main(int argc, char **argv)
7862{
7863 int epfd;
7864
7865 epfd = epoll_create(256);
7866 exit (epfd == -1 ? 1 : 0);
7867}
7868_ACEOF
7083c021
AC
7869if ac_fn_c_try_run "$LINENO"; then :
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871$as_echo "yes" >&6; }
212380e3 7872
7083c021 7873$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7874
7875 SELECT_TYPE="epoll"
7876else
7083c021
AC
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
212380e3 7879fi
7083c021
AC
7880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7881 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7882fi
631ef239 7883
212380e3
AC
7884 fi
7885fi
7886
7887fi
7888
7889fi
7890
7891if test -z "$SELECT_TYPE"; then
b6d0720c 7892 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
7893fi
7894
7895echo "Using $SELECT_TYPE for select loop."
7896
7897
7898cat >>confdefs.h <<_ACEOF
7899#define SELECT_TYPE "$SELECT_TYPE"
7900_ACEOF
7901
7902
7903
7904
7905
631ef239 7906# Check whether --enable-assert was given.
7083c021 7907if test "${enable_assert+set}" = set; then :
631ef239 7908 enableval=$enable_assert; assert=$enableval
212380e3
AC
7909else
7910 assert=no
631ef239
AC
7911fi
7912
212380e3
AC
7913
7914if test "$assert" = no; then
7915
7083c021 7916$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7917
7918elif test "$assert" = soft; then
7919
7083c021 7920$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
7921
7922
7083c021 7923$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
7924
7925elif test "$assert" = yes; then
7926 assert = "hard";
7927fi
7928
7083c021
AC
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7930$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 7931# Check whether --enable-iodebug was given.
7083c021 7932if test "${enable_iodebug+set}" = set; then :
631ef239 7933 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
7934else
7935 iodebug=no
631ef239
AC
7936fi
7937
212380e3
AC
7938
7939if test "$iodebug" = yes; then
7940
7083c021 7941$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 7942
7083c021
AC
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944$as_echo "yes" >&6; }
212380e3 7945else
7083c021
AC
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947$as_echo "no" >&6; }
212380e3
AC
7948fi
7949
7950
7083c021
AC
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7952$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 7953# Check whether --enable-profile was given.
7083c021 7954if test "${enable_profile+set}" = set; then :
631ef239 7955 enableval=$enable_profile; profile=$enableval
212380e3
AC
7956else
7957 profile=no
631ef239
AC
7958fi
7959
212380e3
AC
7960
7961if test "$profile" = yes; then
7962 if test "$ac_cv_c_compiler_gnu" = yes; then
7963 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7965$as_echo "yes, adding -pg" >&6; }
212380e3 7966
7083c021 7967$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
7968
7969 else
7083c021
AC
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7971$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
7972 fi
7973else
7083c021
AC
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
212380e3
AC
7976fi
7977
631ef239 7978# Check whether --enable-balloc was given.
7083c021 7979if test "${enable_balloc+set}" = set; then :
631ef239 7980 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
7981else
7982 balloc=yes
631ef239
AC
7983fi
7984
212380e3
AC
7985
7986if test "$balloc" = no; then
7987
7083c021 7988$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
7989
7990fi
7991
631ef239 7992# Check whether --enable-small-net was given.
7083c021 7993if test "${enable_small_net+set}" = set; then :
631ef239 7994 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
7995else
7996 small_net=no
631ef239
AC
7997fi
7998
212380e3
AC
7999
8000if test "$small_net" = yes; then
8001
7083c021 8002$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
8003
8004
7083c021 8005$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8006
8007
7083c021 8008$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8009
8010
7083c021 8011$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8012
8013
7083c021 8014$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8015
8016
7083c021 8017$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
8018
8019
7083c021 8020$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8021
8022
7083c021 8023$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8024
8025
7083c021 8026$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8027
8028
7083c021 8029$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8030
8031
7083c021 8032$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8033
8034
7083c021 8035$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8036
8037
7083c021 8038$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8039
8040
7083c021 8041$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 8042
f589ec6f 8043
7083c021 8044$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
8045
8046
7083c021 8047$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 8048
212380e3
AC
8049else
8050
7083c021 8051$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
8052
8053
7083c021 8054$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8055
8056
7083c021 8057$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
8058
8059
7083c021 8060$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8061
8062
7083c021 8063$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
8064
8065
7083c021 8066$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8067
8068
7083c021 8069$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8070
8071
7083c021 8072$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8073
8074
7083c021 8075$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
8076
8077
7083c021 8078$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
8079
8080
7083c021 8081$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
8082
8083
7083c021 8084$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
8085
8086
7083c021 8087$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8088
8089
7083c021 8090$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 8091
f589ec6f 8092
7083c021 8093$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
8094
8095
7083c021 8096$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 8097
212380e3
AC
8098fi
8099
8100
631ef239 8101# Check whether --with-nicklen was given.
7083c021 8102if test "${with_nicklen+set}" = set; then :
631ef239 8103 withval=$with_nicklen;
aa769893 8104 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 8105 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 8106 fi
cf533739 8107 if test $withval -gt 50; then
212380e3 8108 NICKLEN=50
7083c021
AC
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8110$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
8111 elif test $withval -lt 9; then
8112 NICKLEN=9
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8114$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
8115 else
8116 NICKLEN="$withval"
8117 fi
8118
8119else
cf533739 8120 NICKLEN=31
631ef239 8121fi
212380e3
AC
8122
8123
212380e3 8124
631ef239 8125# Check whether --with-topiclen was given.
7083c021 8126if test "${with_topiclen+set}" = set; then :
631ef239 8127 withval=$with_topiclen;
212380e3
AC
8128 if test $withval -ge 390; then
8129 TOPICLEN=390
7083c021
AC
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8131$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
8132 else
8133 TOPICLEN=$withval
8134 fi
8135
8136else
8137 TOPICLEN=390
212380e3
AC
8138fi
8139
212380e3
AC
8140
8141
8142cat >>confdefs.h <<_ACEOF
8143#define TOPICLEN ${TOPICLEN}
8144_ACEOF
8145
8146
8147cat >>confdefs.h <<_ACEOF
8148#define NICKLEN (${NICKLEN}+1)
8149_ACEOF
8150
8151
b676ea3b 8152shared_modules="yes"
212380e3 8153if test "$shared_modules" = yes; then
212380e3 8154 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8156$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
8157 shared_modules="no"
8158 fi
8159fi
8160
8161if test "$shared_modules" = yes; then
7083c021
AC
8162 DYNLINK_C=dynlink.c
8163 for ac_header in dlfcn.h
8164do :
8165 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 8166if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 8167 cat >>confdefs.h <<_ACEOF
7083c021 8168#define HAVE_DLFCN_H 1
212380e3
AC
8169_ACEOF
8170
8171fi
8172
8173done
8174
7083c021
AC
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8176$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 8177if ${ac_cv_search_shl_load+:} false; then :
7083c021 8178 $as_echo_n "(cached) " >&6
212380e3
AC
8179else
8180 ac_func_search_save_LIBS=$LIBS
7083c021 8181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8182/* end confdefs.h. */
8183
631ef239
AC
8184/* Override any GCC internal prototype to avoid an error.
8185 Use char because int might match the return type of a GCC
8186 builtin and then its argument prototype would still apply. */
212380e3
AC
8187#ifdef __cplusplus
8188extern "C"
8189#endif
212380e3
AC
8190char shl_load ();
8191int
8192main ()
8193{
631ef239 8194return shl_load ();
212380e3
AC
8195 ;
8196 return 0;
8197}
8198_ACEOF
631ef239
AC
8199for ac_lib in '' dld; do
8200 if test -z "$ac_lib"; then
8201 ac_res="none required"
8202 else
8203 ac_res=-l$ac_lib
8204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8205 fi
7083c021 8206 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8207 ac_cv_search_shl_load=$ac_res
631ef239 8208fi
7083c021
AC
8209rm -f core conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext
b6d0720c 8211 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8212 break
212380e3 8213fi
631ef239 8214done
b6d0720c 8215if ${ac_cv_search_shl_load+:} false; then :
7083c021 8216
631ef239
AC
8217else
8218 ac_cv_search_shl_load=no
212380e3 8219fi
631ef239 8220rm conftest.$ac_ext
212380e3
AC
8221LIBS=$ac_func_search_save_LIBS
8222fi
7083c021
AC
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8224$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8225ac_res=$ac_cv_search_shl_load
7083c021 8226if test "$ac_res" != no; then :
631ef239 8227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8228
8229
7083c021 8230$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
8231
8232 SUFFIX=".sl"
8233 MOD_TARGET=hpux_shared
8234 SEDOBJ="s/\.o/.sl/g"
8235
8236else
8237
7083c021
AC
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8239$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 8240if ${ac_cv_search_dlopen+:} false; then :
7083c021 8241 $as_echo_n "(cached) " >&6
212380e3
AC
8242else
8243 ac_func_search_save_LIBS=$LIBS
7083c021 8244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8245/* end confdefs.h. */
8246
631ef239
AC
8247/* Override any GCC internal prototype to avoid an error.
8248 Use char because int might match the return type of a GCC
8249 builtin and then its argument prototype would still apply. */
212380e3
AC
8250#ifdef __cplusplus
8251extern "C"
8252#endif
212380e3
AC
8253char dlopen ();
8254int
8255main ()
8256{
631ef239 8257return dlopen ();
212380e3
AC
8258 ;
8259 return 0;
8260}
8261_ACEOF
631ef239
AC
8262for ac_lib in '' dl c_r; do
8263 if test -z "$ac_lib"; then
8264 ac_res="none required"
8265 else
8266 ac_res=-l$ac_lib
8267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8268 fi
7083c021 8269 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8270 ac_cv_search_dlopen=$ac_res
631ef239 8271fi
7083c021
AC
8272rm -f core conftest.err conftest.$ac_objext \
8273 conftest$ac_exeext
b6d0720c 8274 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8275 break
212380e3 8276fi
631ef239 8277done
b6d0720c 8278if ${ac_cv_search_dlopen+:} false; then :
7083c021 8279
631ef239
AC
8280else
8281 ac_cv_search_dlopen=no
212380e3 8282fi
631ef239 8283rm conftest.$ac_ext
212380e3
AC
8284LIBS=$ac_func_search_save_LIBS
8285fi
7083c021
AC
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8287$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8288ac_res=$ac_cv_search_dlopen
7083c021 8289if test "$ac_res" != no; then :
631ef239 8290 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8291
8292
7083c021 8293$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8294
8295 SUFFIX=".so"
8296 MOD_TARGET=shared_modules
8297 SEDOBJ="s/\.o/.so/g"
8298 if test "$AppleGCC" = yes; then
7083c021
AC
8299 for ac_header in mach-o/dyld.h
8300do :
8301 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 8302if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8303 cat >>confdefs.h <<_ACEOF
7083c021 8304#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8305_ACEOF
8306
8307fi
8308
8309done
8310
8311 fi
7083c021 8312 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 8313if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8314
212380e3
AC
8315else
8316
7083c021
AC
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8318$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8319 shared_modules=no
8320
8321fi
8322
7083c021
AC
8323 for ac_func in dlfunc
8324do :
8325 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 8326if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8327 cat >>confdefs.h <<_ACEOF
7083c021 8328#define HAVE_DLFUNC 1
212380e3
AC
8329_ACEOF
8330
8331fi
8332done
8333
8334
8335else
8336
8337 shared_modules=no
8338
8339fi
8340
8341
8342fi
8343
8344fi
8345
8346
8347cat >>confdefs.h <<_ACEOF
8348#define SHARED_SUFFIX "$SUFFIX"
8349_ACEOF
8350
8351
8352if test "$shared_modules" = yes; then
8353 # The GNU linker requires the -export-dynamic option to make
8354 # all symbols visible in the dynamic symbol table.
8355 hold_ldflags=$LDFLAGS
7083c021
AC
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8357$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8358 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8360/* end confdefs.h. */
8361
8362int
8363main ()
8364{
8365int i;
8366 ;
8367 return 0;
8368}
8369_ACEOF
7083c021 8370if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8371 found=yes
8372else
7083c021 8373 found=no
212380e3 8374fi
7083c021
AC
8375rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8377 LDFLAGS=$hold_ldflags
8378
8379 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8380 found="no, IRIX ld uses -B,dynamic"
8381 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8382 fi
8383
8384 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8385 found="no, AIX ld uses -G -brtl"
8386 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8387 fi
8388
7083c021
AC
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8390$as_echo "$found" >&6; }
212380e3
AC
8391
8392 if test "$found" = yes; then
8393 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8394 fi
8395
7083c021
AC
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8397$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8398 if test "$SGS" = "yes"; then
7083c021
AC
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8400$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8401 PICFLAGS="-KPIC -DPIC -G"
8402 fi
8403
8404 if test "$AppleGCC" = "yes"; then
7083c021
AC
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8406$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8407 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8408 fi
8409 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8411$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8412 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8414$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8415
8416 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418$as_echo "no" >&6; }
212380e3 8419 else
7083c021
AC
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8421$as_echo "yes" >&6; }
212380e3
AC
8422 PICFLAGS="$PICFLAGS +ESfic"
8423 fi
8424
8425 LDFLAGS="${LDFLAGS} -Wl,-E"
8426 fi
8427 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8429$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8430 PICFLAGS="-shared -expect_unresolved '*' "
8431 LDFLAGS="-call_shared"
8432 fi
8433 if test -z "$PICFLAGS"; then
8434 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8436$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8437 PICFLAGS="-fPIC -DPIC -shared"
8438 else
7083c021
AC
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440$as_echo "no" >&6; }
212380e3
AC
8441 shared_modules=no
8442 fi
8443 fi
8444fi
8445
1a82970f
JT
8446# rpath, for finding libratbox.so at run time
8447hold_ldflags=$LDFLAGS
7083c021
AC
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8449$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8450LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8452/* end confdefs.h. */
8453
8454int
8455main ()
8456{
8457int i;
8458 ;
8459 return 0;
8460}
8461_ACEOF
7083c021 8462if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8463 found=yes
8464else
7083c021 8465 found=no
1a82970f 8466fi
7083c021
AC
8467rm -f core conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
1a82970f 8469LDFLAGS=$hold_ldflags
7083c021
AC
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8471$as_echo "$found" >&6; }
1a82970f
JT
8472if test "$found" = yes; then
8473 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8474fi
8475
212380e3
AC
8476# This must be down here, or it will mess up checks like the ones
8477# for -Wl,-export-dynamic
8478# -- jilles
d2c5159a 8479CWARNS=""
631ef239 8480# Check whether --enable-warnings was given.
7083c021 8481if test "${enable_warnings+set}" = set; then :
631ef239 8482 enableval=$enable_warnings;
212380e3
AC
8483IRC_CFLAGS="$IRC_CFLAGS -O0"
8484CFLAGS="$IRC_CFLAGS"
8485
8486
7083c021
AC
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8488$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8489 if test "${GCC-no}" = yes
8490 then
b6d0720c 8491 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 8492 $as_echo_n "(cached) " >&6
212380e3
AC
8493else
8494
8495 oldcflags="${CFLAGS-}"
8496 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8498/* end confdefs.h. */
8499
8500#include <string.h>
8501#include <stdio.h>
8502int main(void);
8503
8504int
8505main ()
8506{
8507
b1fc1658 8508 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8509
8510 ;
8511 return 0;
8512}
8513_ACEOF
7083c021 8514if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8515 charybdis_cv_c_gcc_w_all=yes
8516else
7083c021 8517 charybdis_cv_c_gcc_w_all=no
212380e3 8518fi
631ef239 8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8520 CFLAGS="${oldcflags}"
8521fi
8522
8523 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8524 CWARNS="${CWARNS}-Wall "
7083c021
AC
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8526$as_echo "ok" >&6; }
212380e3
AC
8527 else
8528 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
212380e3
AC
8531 fi
8532 else
7083c021
AC
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
212380e3
AC
8535 fi
8536
8537
7083c021
AC
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8539$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8540 if test "${GCC-no}" = yes
8541 then
b6d0720c 8542 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 8543 $as_echo_n "(cached) " >&6
212380e3
AC
8544else
8545
8546 oldcflags="${CFLAGS-}"
8547 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8549/* end confdefs.h. */
8550
8551#include <string.h>
8552#include <stdio.h>
8553int main(void);
8554
8555int
8556main ()
8557{
8558
b1fc1658 8559 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8560
8561 ;
8562 return 0;
8563}
8564_ACEOF
7083c021 8565if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8566 charybdis_cv_c_gcc_w_pointer_arith=yes
8567else
7083c021 8568 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8569fi
631ef239 8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8571 CFLAGS="${oldcflags}"
8572fi
8573
8574 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8575 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8577$as_echo "ok" >&6; }
212380e3
AC
8578 else
8579 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
212380e3
AC
8582 fi
8583 else
7083c021
AC
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
212380e3
AC
8586 fi
8587
8588
7083c021
AC
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8590$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8591 if test "${GCC-no}" = yes
8592 then
b6d0720c 8593 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 8594 $as_echo_n "(cached) " >&6
212380e3
AC
8595else
8596
8597 oldcflags="${CFLAGS-}"
8598 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8600/* end confdefs.h. */
8601
8602#include <string.h>
8603#include <stdio.h>
8604int main(void);
8605
8606int
8607main ()
8608{
8609
b1fc1658 8610 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8611
8612 ;
8613 return 0;
8614}
8615_ACEOF
7083c021 8616if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8617 charybdis_cv_c_gcc_w_implicit=yes
8618else
7083c021 8619 charybdis_cv_c_gcc_w_implicit=no
212380e3 8620fi
631ef239 8621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8622 CFLAGS="${oldcflags}"
8623fi
8624
8625 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8626 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8628$as_echo "ok" >&6; }
212380e3
AC
8629 else
8630 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
212380e3
AC
8633 fi
8634 else
7083c021
AC
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636$as_echo "no" >&6; }
212380e3
AC
8637 fi
8638
8639
7083c021
AC
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8641$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8642 if test "${GCC-no}" = yes
8643 then
b6d0720c 8644 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 8645 $as_echo_n "(cached) " >&6
212380e3
AC
8646else
8647
8648 oldcflags="${CFLAGS-}"
8649 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8651/* end confdefs.h. */
8652
8653#include <string.h>
8654#include <stdio.h>
8655int main(void);
8656
8657int
8658main ()
8659{
8660
b1fc1658 8661 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8662
8663 ;
8664 return 0;
8665}
8666_ACEOF
8667if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8668 charybdis_cv_c_gcc_w_cast_align=yes
8669else
7083c021 8670 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8671fi
631ef239 8672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8673 CFLAGS="${oldcflags}"
8674fi
8675
8676 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8677 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8679$as_echo "ok" >&6; }
212380e3
AC
8680 else
8681 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
212380e3
AC
8684 fi
8685 else
7083c021
AC
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
212380e3
AC
8688 fi
8689
8690
7083c021
AC
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8692$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8693 if test "${GCC-no}" = yes
8694 then
b6d0720c 8695 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 8696 $as_echo_n "(cached) " >&6
212380e3
AC
8697else
8698
8699 oldcflags="${CFLAGS-}"
8700 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8702/* end confdefs.h. */
8703
8704#include <string.h>
8705#include <stdio.h>
8706int main(void);
8707
8708int
8709main ()
8710{
8711
b1fc1658 8712 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8713
8714 ;
8715 return 0;
8716}
8717_ACEOF
7083c021 8718if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8719 charybdis_cv_c_gcc_w_cast_qual=yes
8720else
7083c021 8721 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8722fi
631ef239 8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8724 CFLAGS="${oldcflags}"
8725fi
8726
8727 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8728 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8730$as_echo "ok" >&6; }
212380e3
AC
8731 else
8732 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734$as_echo "no" >&6; }
212380e3
AC
8735 fi
8736 else
7083c021
AC
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
212380e3
AC
8739 fi
8740
8741
7083c021
AC
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8743$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8744 if test "${GCC-no}" = yes
8745 then
b6d0720c 8746 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 8747 $as_echo_n "(cached) " >&6
d2c5159a
JT
8748else
8749
8750 oldcflags="${CFLAGS-}"
8751 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8753/* end confdefs.h. */
8754
8755#include <string.h>
8756#include <stdio.h>
8757int main(void);
8758
8759int
8760main ()
8761{
8762
8763 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8764
8765 ;
8766 return 0;
8767}
8768_ACEOF
7083c021 8769if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8770 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8771else
7083c021 8772 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8773fi
d2c5159a
JT
8774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 CFLAGS="${oldcflags}"
8776fi
8777
bbe58888 8778 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8779 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8781$as_echo "ok" >&6; }
d2c5159a 8782 else
bbe58888 8783 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
bbe58888
VY
8786 fi
8787 else
7083c021
AC
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789$as_echo "no" >&6; }
bbe58888
VY
8790 fi
8791
8792
7083c021
AC
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8794$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8795 if test "${GCC-no}" = yes
8796 then
b6d0720c 8797 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 8798 $as_echo_n "(cached) " >&6
bbe58888
VY
8799else
8800
8801 oldcflags="${CFLAGS-}"
8802 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8804/* end confdefs.h. */
8805
8806#include <string.h>
8807#include <stdio.h>
8808int main(void);
8809
8810int
8811main ()
8812{
8813
8814 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8815
8816 ;
8817 return 0;
8818}
8819_ACEOF
7083c021 8820if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8821 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8822else
7083c021 8823 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8824fi
bbe58888
VY
8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 CFLAGS="${oldcflags}"
8827fi
8828
8829 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8830 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8832$as_echo "ok" >&6; }
bbe58888
VY
8833 else
8834 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836$as_echo "no" >&6; }
d2c5159a
JT
8837 fi
8838 else
7083c021
AC
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
d2c5159a
JT
8841 fi
8842
8843
7083c021
AC
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8845$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
8846 if test "${GCC-no}" = yes
8847 then
b6d0720c 8848 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 8849 $as_echo_n "(cached) " >&6
212380e3
AC
8850else
8851
8852 oldcflags="${CFLAGS-}"
8853 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8855/* end confdefs.h. */
8856
8857#include <string.h>
8858#include <stdio.h>
8859int main(void);
8860
8861int
8862main ()
8863{
8864
b1fc1658 8865 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8866
8867 ;
8868 return 0;
8869}
8870_ACEOF
7083c021 8871if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8872 charybdis_cv_c_gcc_prototypes=yes
8873else
7083c021 8874 charybdis_cv_c_gcc_prototypes=no
212380e3 8875fi
631ef239 8876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8877 CFLAGS="${oldcflags}"
8878fi
8879
8880 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
8881 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8883$as_echo "ok" >&6; }
212380e3
AC
8884 else
8885 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
212380e3
AC
8888 fi
8889 else
7083c021
AC
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
212380e3
AC
8892 fi
8893
8894
7083c021
AC
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8896$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
8897 if test "${GCC-no}" = yes
8898 then
b6d0720c 8899 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 8900 $as_echo_n "(cached) " >&6
212380e3
AC
8901else
8902
8903 oldcflags="${CFLAGS-}"
8904 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8906/* end confdefs.h. */
8907
8908#include <string.h>
8909#include <stdio.h>
8910int main(void);
8911
8912int
8913main ()
8914{
8915
b1fc1658 8916 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8917
8918 ;
8919 return 0;
8920}
8921_ACEOF
7083c021 8922if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8923 charybdis_cv_c_gcc_parenthesis=yes
8924else
7083c021 8925 charybdis_cv_c_gcc_parenthesis=no
212380e3 8926fi
631ef239 8927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8928 CFLAGS="${oldcflags}"
8929fi
8930
8931 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
8932 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8934$as_echo "ok" >&6; }
212380e3
AC
8935 else
8936 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938$as_echo "no" >&6; }
212380e3
AC
8939 fi
8940 else
7083c021
AC
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
212380e3
AC
8943 fi
8944
8945
7083c021
AC
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8947$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
8948 if test "${GCC-no}" = yes
8949 then
b6d0720c 8950 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 8951 $as_echo_n "(cached) " >&6
212380e3
AC
8952else
8953
8954 oldcflags="${CFLAGS-}"
8955 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8957/* end confdefs.h. */
8958
8959#include <string.h>
8960#include <stdio.h>
8961int main(void);
8962
8963int
8964main ()
8965{
8966
b1fc1658 8967 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8968
8969 ;
8970 return 0;
8971}
8972_ACEOF
7083c021 8973if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8974 charybdis_cv_c_gcc_w=yes
8975else
7083c021 8976 charybdis_cv_c_gcc_w=no
212380e3 8977fi
631ef239 8978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8979 CFLAGS="${oldcflags}"
8980fi
8981
8982 if test "x$charybdis_cv_c_gcc_w" = xyes; then
8983 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8985$as_echo "ok" >&6; }
212380e3
AC
8986 else
8987 charybdis_cv_c_gcc_w=''
7083c021
AC
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989$as_echo "no" >&6; }
212380e3
AC
8990 fi
8991 else
7083c021
AC
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993$as_echo "no" >&6; }
212380e3
AC
8994 fi
8995
8996
7083c021
AC
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8998$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
8999 if test "${GCC-no}" = yes
9000 then
b6d0720c 9001 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 9002 $as_echo_n "(cached) " >&6
212380e3
AC
9003else
9004
9005 oldcflags="${CFLAGS-}"
9006 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9008/* end confdefs.h. */
9009
9010#include <string.h>
9011#include <stdio.h>
9012int main(void);
9013
9014int
9015main ()
9016{
9017
b1fc1658 9018 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9019
9020 ;
9021 return 0;
9022}
9023_ACEOF
7083c021 9024if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9025 charybdis_cv_c_gcc_w_extra=yes
9026else
7083c021 9027 charybdis_cv_c_gcc_w_extra=no
212380e3 9028fi
631ef239 9029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9030 CFLAGS="${oldcflags}"
9031fi
9032
9033 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
9034 CWARNS="${CWARNS}-Wextra "
7083c021
AC
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9036$as_echo "ok" >&6; }
212380e3
AC
9037 else
9038 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040$as_echo "no" >&6; }
212380e3
AC
9041 fi
9042 else
7083c021
AC
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
212380e3
AC
9045 fi
9046
9047
7083c021
AC
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
9049$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
9050 if test "${GCC-no}" = yes
9051 then
b6d0720c 9052 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 9053 $as_echo_n "(cached) " >&6
212380e3
AC
9054else
9055
9056 oldcflags="${CFLAGS-}"
9057 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9059/* end confdefs.h. */
9060
9061#include <string.h>
9062#include <stdio.h>
9063int main(void);
9064
9065int
9066main ()
9067{
9068
b1fc1658 9069 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9070
9071 ;
9072 return 0;
9073}
9074_ACEOF
7083c021 9075if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9076 charybdis_cv_c_gcc_w_shadow=yes
9077else
7083c021 9078 charybdis_cv_c_gcc_w_shadow=no
212380e3 9079fi
631ef239 9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9081 CFLAGS="${oldcflags}"
9082fi
9083
9084 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
9085 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9087$as_echo "ok" >&6; }
212380e3
AC
9088 else
9089 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091$as_echo "no" >&6; }
212380e3
AC
9092 fi
9093 else
7083c021
AC
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
212380e3
AC
9096 fi
9097
9098
7083c021
AC
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9100$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
9101 if test "${GCC-no}" = yes
9102 then
b6d0720c 9103 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 9104 $as_echo_n "(cached) " >&6
212380e3
AC
9105else
9106
9107 oldcflags="${CFLAGS-}"
9108 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9110/* end confdefs.h. */
9111
9112#include <string.h>
9113#include <stdio.h>
9114int main(void);
9115
9116int
9117main ()
9118{
9119
b1fc1658 9120 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9121
9122 ;
9123 return 0;
9124}
9125_ACEOF
7083c021 9126if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9127 charybdis_cv_c_gcc_w_missing_noreturn=yes
9128else
7083c021 9129 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 9130fi
631ef239 9131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9132 CFLAGS="${oldcflags}"
9133fi
9134
9135 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
9136 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9138$as_echo "ok" >&6; }
212380e3
AC
9139 else
9140 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
212380e3
AC
9143 fi
9144 else
7083c021
AC
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
212380e3
AC
9147 fi
9148
9149
7083c021
AC
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9151$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
9152 if test "${GCC-no}" = yes
9153 then
b6d0720c 9154 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 9155 $as_echo_n "(cached) " >&6
212380e3
AC
9156else
9157
9158 oldcflags="${CFLAGS-}"
9159 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9161/* end confdefs.h. */
9162
9163#include <string.h>
9164#include <stdio.h>
9165int main(void);
9166
9167int
9168main ()
9169{
9170
b1fc1658 9171 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9172
9173 ;
9174 return 0;
9175}
9176_ACEOF
7083c021 9177if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9178 charybdis_cv_c_gcc_w_undef=yes
9179else
7083c021 9180 charybdis_cv_c_gcc_w_undef=no
212380e3 9181fi
631ef239 9182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9183 CFLAGS="${oldcflags}"
9184fi
9185
9186 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
9187 CWARNS="${CWARNS}-Wundef "
7083c021
AC
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9189$as_echo "ok" >&6; }
212380e3
AC
9190 else
9191 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
212380e3
AC
9194 fi
9195 else
7083c021
AC
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197$as_echo "no" >&6; }
212380e3
AC
9198 fi
9199
9200
7083c021
AC
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9202$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
9203 if test "${GCC-no}" = yes
9204 then
b6d0720c 9205 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 9206 $as_echo_n "(cached) " >&6
212380e3
AC
9207else
9208
9209 oldcflags="${CFLAGS-}"
9210 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9212/* end confdefs.h. */
9213
9214#include <string.h>
9215#include <stdio.h>
9216int main(void);
9217
9218int
9219main ()
9220{
9221
b1fc1658 9222 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9223
9224 ;
9225 return 0;
9226}
9227_ACEOF
7083c021 9228if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9229 charybdis_cv_c_gcc_w_packed=yes
9230else
7083c021 9231 charybdis_cv_c_gcc_w_packed=no
212380e3 9232fi
631ef239 9233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9234 CFLAGS="${oldcflags}"
9235fi
9236
9237 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9238 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9240$as_echo "ok" >&6; }
212380e3
AC
9241 else
9242 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
212380e3
AC
9245 fi
9246 else
7083c021
AC
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
212380e3
AC
9249 fi
9250
9251
7083c021
AC
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9253$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
9254 if test "${GCC-no}" = yes
9255 then
b6d0720c 9256 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 9257 $as_echo_n "(cached) " >&6
212380e3
AC
9258else
9259
9260 oldcflags="${CFLAGS-}"
9261 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9263/* end confdefs.h. */
9264
9265#include <string.h>
9266#include <stdio.h>
9267int main(void);
9268
9269int
9270main ()
9271{
9272
b1fc1658 9273 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9274
9275 ;
9276 return 0;
9277}
9278_ACEOF
7083c021 9279if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9280 charybdis_cv_c_gcc_w_nested_externs=yes
9281else
7083c021 9282 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9283fi
631ef239 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9285 CFLAGS="${oldcflags}"
9286fi
9287
9288 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9289 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9291$as_echo "ok" >&6; }
212380e3
AC
9292 else
9293 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295$as_echo "no" >&6; }
212380e3
AC
9296 fi
9297 else
7083c021
AC
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
212380e3
AC
9300 fi
9301
9302
7083c021
AC
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9304$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9305 if test "${GCC-no}" = yes
9306 then
b6d0720c 9307 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 9308 $as_echo_n "(cached) " >&6
212380e3
AC
9309else
9310
9311 oldcflags="${CFLAGS-}"
9312 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9314/* end confdefs.h. */
9315
9316#include <string.h>
9317#include <stdio.h>
9318int main(void);
9319
9320int
9321main ()
9322{
9323
b1fc1658 9324 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9325
9326 ;
9327 return 0;
9328}
9329_ACEOF
7083c021 9330if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9331 charybdis_cv_c_gcc_w_unused=yes
9332else
7083c021 9333 charybdis_cv_c_gcc_w_unused=no
212380e3 9334fi
631ef239 9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9336 CFLAGS="${oldcflags}"
9337fi
9338
9339 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9340 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9342$as_echo "ok" >&6; }
212380e3
AC
9343 else
9344 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
212380e3
AC
9347 fi
9348 else
7083c021
AC
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350$as_echo "no" >&6; }
212380e3
AC
9351 fi
9352
9353
7083c021
AC
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9355$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9356 if test "${GCC-no}" = yes
9357 then
b6d0720c 9358 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 9359 $as_echo_n "(cached) " >&6
212380e3
AC
9360else
9361
9362 oldcflags="${CFLAGS-}"
9363 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9365/* end confdefs.h. */
9366
9367#include <string.h>
9368#include <stdio.h>
9369int main(void);
9370
9371int
9372main ()
9373{
9374
b1fc1658 9375 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9376
9377 ;
9378 return 0;
9379}
9380_ACEOF
7083c021 9381if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9382 charybdis_cv_c_gcc_w_redundant_decls=yes
9383else
7083c021 9384 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9385fi
631ef239 9386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9387 CFLAGS="${oldcflags}"
9388fi
9389
9390 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9391 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9393$as_echo "ok" >&6; }
212380e3
AC
9394 else
9395 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397$as_echo "no" >&6; }
212380e3
AC
9398 fi
9399 else
7083c021
AC
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401$as_echo "no" >&6; }
212380e3
AC
9402 fi
9403
9404
7083c021
AC
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9406$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9407 if test "${GCC-no}" = yes
9408 then
b6d0720c 9409 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 9410 $as_echo_n "(cached) " >&6
212380e3
AC
9411else
9412
9413 oldcflags="${CFLAGS-}"
9414 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9416/* end confdefs.h. */
9417
9418#include <string.h>
9419#include <stdio.h>
9420int main(void);
9421
9422int
9423main ()
9424{
9425
b1fc1658 9426 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9427
9428 ;
9429 return 0;
9430}
9431_ACEOF
7083c021 9432if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9433 charybdis_cv_c_gcc_w_float_equal=yes
9434else
7083c021 9435 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9436fi
631ef239 9437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9438 CFLAGS="${oldcflags}"
9439fi
9440
9441 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9442 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9444$as_echo "ok" >&6; }
212380e3
AC
9445 else
9446 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448$as_echo "no" >&6; }
212380e3
AC
9449 fi
9450 else
7083c021
AC
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
212380e3
AC
9453 fi
9454
9455
7083c021
AC
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9457$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9458 if test "${GCC-no}" = yes
9459 then
b6d0720c 9460 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 9461 $as_echo_n "(cached) " >&6
212380e3
AC
9462else
9463
9464 oldcflags="${CFLAGS-}"
4a584d41 9465 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9467/* end confdefs.h. */
9468
9469#include <string.h>
9470#include <stdio.h>
9471int main(void);
9472
9473int
9474main ()
9475{
7083c021
AC
9476
9477 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9478
212380e3
AC
9479 ;
9480 return 0;
9481}
9482_ACEOF
7083c021
AC
9483if ac_fn_c_try_compile "$LINENO"; then :
9484 charybdis_cv_c_gcc_w_format=yes
212380e3 9485else
7083c021
AC
9486 charybdis_cv_c_gcc_w_format=no
9487fi
9488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 CFLAGS="${oldcflags}"
9490fi
9491
9492 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9493 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9495$as_echo "ok" >&6; }
9496 else
9497 charybdis_cv_c_gcc_w_format=''
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
9500 fi
9501 else
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
9504 fi
9505
9506
9507IRC_CFLAGS="$CFLAGS"
212380e3 9508
212380e3 9509fi
631ef239 9510
7083c021
AC
9511
9512if test "$shared_modules" = no; then
9513 DYNLINK_C=""
9514 MOD_TARGET="libmodules.a"
9515 MODULES_LIBS="../modules/libmodules.a"
9516 SEDOBJ=""
9517
9518$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9519
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9521$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9522fi
7083c021
AC
9523
9524if test "$shared_modules" = yes; then
9525
9526 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 9527if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 9528
212380e3 9529else
7083c021
AC
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9531$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 9532if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 9533 $as_echo_n "(cached) " >&6
212380e3
AC
9534else
9535 ac_check_lib_save_LIBS=$LIBS
9536LIBS="-ldl $LIBS"
7083c021 9537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9538/* end confdefs.h. */
9539
631ef239
AC
9540/* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
212380e3
AC
9543#ifdef __cplusplus
9544extern "C"
9545#endif
212380e3
AC
9546char nlist ();
9547int
9548main ()
9549{
631ef239 9550return nlist ();
212380e3
AC
9551 ;
9552 return 0;
9553}
9554_ACEOF
7083c021 9555if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9556 ac_cv_lib_dl_nlist=yes
9557else
7083c021 9558 ac_cv_lib_dl_nlist=no
212380e3 9559fi
7083c021
AC
9560rm -f core conftest.err conftest.$ac_objext \
9561 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9562LIBS=$ac_check_lib_save_LIBS
9563fi
7083c021
AC
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9565$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 9566if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
9567 nlist_lib="-ldl"
9568else
7083c021
AC
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9570$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 9571if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 9572 $as_echo_n "(cached) " >&6
212380e3
AC
9573else
9574 ac_check_lib_save_LIBS=$LIBS
9575LIBS="-lelf $LIBS"
7083c021 9576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9577/* end confdefs.h. */
9578
631ef239
AC
9579/* Override any GCC internal prototype to avoid an error.
9580 Use char because int might match the return type of a GCC
9581 builtin and then its argument prototype would still apply. */
212380e3
AC
9582#ifdef __cplusplus
9583extern "C"
9584#endif
212380e3
AC
9585char nlist ();
9586int
9587main ()
9588{
631ef239 9589return nlist ();
212380e3
AC
9590 ;
9591 return 0;
9592}
9593_ACEOF
7083c021 9594if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9595 ac_cv_lib_elf_nlist=yes
9596else
7083c021 9597 ac_cv_lib_elf_nlist=no
212380e3 9598fi
7083c021
AC
9599rm -f core conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9601LIBS=$ac_check_lib_save_LIBS
9602fi
7083c021
AC
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9604$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 9605if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
9606 nlist_lib="-lelf"
9607fi
9608
9609
9610fi
9611
9612
9613fi
9614
9615
7083c021 9616 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 9617if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
9618 nlist_h="libelf/nlist.h"
9619fi
9620
9621
7083c021 9622 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 9623if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
9624 nlist_h="elf/nlist.h"
9625fi
9626
9627
7083c021 9628 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 9629if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
9630 nlist_h="nlist.h"
9631fi
9632
9633
9634 if test x"$nlist_h" = "x"; then
9635
9636cat >>confdefs.h <<_ACEOF
9637#define SYMBOL_PREFIX ""
9638_ACEOF
9639
9640 else
7083c021
AC
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9642$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 9643 if ${symbol_underscores+:} false; then :
7083c021 9644 $as_echo_n "(cached) " >&6
212380e3
AC
9645else
9646
9647cat << EOF > conftest.c
9648#include <$nlist_h>
9649#include <stdio.h>
9650#include <stdlib.h>
9651void _modinit(void);
9652int main(int argc, char *argv[]) {
9653 int i;
9654 struct nlist nl[5];
9655
9656 /* fill the names in this way, so it'll work almost everywhere */
9657 nl[0].n_name = "_modinit";
9658 nl[1].n_name = "__modinit";
9659 nl[2].n_name = "___modinit";
9660 nl[3].n_name = "____modinit";
9661 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9662
9663 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9664 for(i = 0; i < 4; i++) {
9665 if(nl[i].n_value != NULL)
9666 {
9667 int j;
9668 for(j = 0; j < i; j++)
9669 printf("_");
9670 exit(i);
9671 }
9672 }
9673 exit(-1);
9674}
9675void _modinit(void) { return; }
9676EOF
9677 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9678 symbol_underscores=`./conftest conftest`
7083c021
AC
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9680$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9681 $RM -f conftest conftest.c
9682
9683fi
9684
9685
9686cat >>confdefs.h <<_ACEOF
9687#define SYMBOL_PREFIX "${symbol_underscores}"
9688_ACEOF
9689
9690 fi
9691fi
9692
d2c5159a
JT
9693IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9694
212380e3
AC
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708if test "$prefix" = "NONE"; then
9709
9710cat >>confdefs.h <<_ACEOF
9711#define IRCD_PREFIX "$ac_default_prefix"
9712_ACEOF
9713
9714
9715else
9716
9717
9718 prefix=`echo $prefix | sed 's/\/$//'`
9719
9720cat >>confdefs.h <<_ACEOF
9721#define IRCD_PREFIX "$prefix"
9722_ACEOF
9723
9724
9725fi
9726
2eff3833 9727ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9f9b7042 9728
2eff3833 9729ac_config_commands="$ac_config_commands tools/genssl_chmod"
212380e3
AC
9730
9731
9732cat >confcache <<\_ACEOF
9733# This file is a shell script that caches the results of configure
9734# tests run on this system so they can be shared between configure
9735# scripts and configure runs, see configure's option --config-cache.
9736# It is not useful on other systems. If it contains results you don't
9737# want to keep, you may remove or edit it.
9738#
9739# config.status only pays attention to the cache file if you give it
9740# the --recheck option to rerun configure.
9741#
9742# `ac_cv_env_foo' variables (set or unset) will be overridden when
9743# loading this file, other *unset* `ac_cv_foo' will be assigned the
9744# following values.
9745
9746_ACEOF
9747
9748# The following way of writing the cache mishandles newlines in values,
9749# but we know of no workaround that is simple, portable, and efficient.
631ef239 9750# So, we kill variables containing newlines.
212380e3
AC
9751# Ultrix sh set writes to stderr and can't be redirected directly,
9752# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9753(
9754 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9755 eval ac_val=\$$ac_var
9756 case $ac_val in #(
9757 *${as_nl}*)
9758 case $ac_var in #(
7083c021
AC
9759 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9760$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9761 esac
9762 case $ac_var in #(
9763 _ | IFS | as_nl) ;; #(
7083c021
AC
9764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9765 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9766 esac ;;
9767 esac
9768 done
9769
212380e3 9770 (set) 2>&1 |
631ef239
AC
9771 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9772 *${as_nl}ac_space=\ *)
7083c021
AC
9773 # `set' does not quote correctly, so add quotes: double-quote
9774 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9775 sed -n \
9776 "s/'/'\\\\''/g;
9777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9778 ;; #(
212380e3
AC
9779 *)
9780 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9782 ;;
631ef239
AC
9783 esac |
9784 sort
9785) |
212380e3 9786 sed '
631ef239 9787 /^ac_cv_env_/b end
212380e3 9788 t clear
631ef239 9789 :clear
212380e3
AC
9790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9791 t end
631ef239
AC
9792 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9793 :end' >>confcache
9794if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9795 if test -w "$cache_file"; then
b6d0720c 9796 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9798$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
9799 if test ! -f "$cache_file" || test -h "$cache_file"; then
9800 cat confcache >"$cache_file"
9801 else
9802 case $cache_file in #(
9803 */* | ?:*)
9804 mv -f confcache "$cache_file"$$ &&
9805 mv -f "$cache_file"$$ "$cache_file" ;; #(
9806 *)
9807 mv -f confcache "$cache_file" ;;
9808 esac
9809 fi
9810 fi
212380e3 9811 else
7083c021
AC
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9813$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9814 fi
9815fi
9816rm -f confcache
9817
9818test "x$prefix" = xNONE && prefix=$ac_default_prefix
9819# Let make expand exec_prefix.
9820test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9821
212380e3
AC
9822DEFS=-DHAVE_CONFIG_H
9823
9824ac_libobjs=
9825ac_ltlibobjs=
b6d0720c 9826U=
212380e3
AC
9827for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9828 # 1. Remove the extension, and $U if already installed.
631ef239 9829 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9830 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9831 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9832 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9833 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9834 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9835done
9836LIBOBJS=$ac_libobjs
9837
9838LTLIBOBJS=$ac_ltlibobjs
9839
9840
9841
7083c021
AC
9842
9843
b6d0720c 9844: "${CONFIG_STATUS=./config.status}"
7083c021 9845ac_write_fail=0
212380e3
AC
9846ac_clean_files_save=$ac_clean_files
9847ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9849$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9850as_write_fail=0
9851cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
9852#! $SHELL
9853# Generated by $as_me.
9854# Run this file to recreate the current configuration.
9855# Compiler output produced by configure, useful for debugging
9856# configure, is in config.log if it exists.
9857
9858debug=false
9859ac_cs_recheck=false
9860ac_cs_silent=false
212380e3 9861
7083c021
AC
9862SHELL=\${CONFIG_SHELL-$SHELL}
9863export SHELL
9864_ASEOF
9865cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9866## -------------------- ##
9867## M4sh Initialization. ##
9868## -------------------- ##
212380e3 9869
631ef239
AC
9870# Be more Bourne compatible
9871DUALCASE=1; export DUALCASE # for MKS sh
7083c021 9872if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
9873 emulate sh
9874 NULLCMD=:
7083c021 9875 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
9876 # is contrary to our usage. Disable this feature.
9877 alias -g '${1+"$@"}'='"$@"'
631ef239 9878 setopt NO_GLOB_SUBST
212380e3 9879else
7083c021
AC
9880 case `(set -o) 2>/dev/null` in #(
9881 *posix*) :
9882 set -o posix ;; #(
9883 *) :
9884 ;;
631ef239 9885esac
212380e3
AC
9886fi
9887
9888
7083c021
AC
9889as_nl='
9890'
9891export as_nl
9892# Printing a long string crashes Solaris 7 /usr/bin/printf.
9893as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9895as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9896# Prefer a ksh shell builtin over an external printf program on Solaris,
9897# but without wasting forks for bash or zsh.
9898if test -z "$BASH_VERSION$ZSH_VERSION" \
9899 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9900 as_echo='print -r --'
9901 as_echo_n='print -rn --'
9902elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9903 as_echo='printf %s\n'
9904 as_echo_n='printf %s'
9905else
9906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9908 as_echo_n='/usr/ucb/echo -n'
631ef239 9909 else
7083c021
AC
9910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9911 as_echo_n_body='eval
9912 arg=$1;
9913 case $arg in #(
9914 *"$as_nl"*)
9915 expr "X$arg" : "X\\(.*\\)$as_nl";
9916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9917 esac;
9918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9919 '
9920 export as_echo_n_body
9921 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 9922 fi
7083c021
AC
9923 export as_echo_body
9924 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
9925fi
9926
7083c021
AC
9927# The user is always right.
9928if test "${PATH_SEPARATOR+set}" != set; then
9929 PATH_SEPARATOR=:
9930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9932 PATH_SEPARATOR=';'
9933 }
631ef239
AC
9934fi
9935
9936
9937# IFS
9938# We need space, tab and new line, in precisely that order. Quoting is
9939# there to prevent editors from complaining about space-tab.
9940# (If _AS_PATH_WALK were called with IFS unset, it would disable word
9941# splitting by setting IFS to empty value.)
631ef239
AC
9942IFS=" "" $as_nl"
9943
9944# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 9945as_myself=
7083c021 9946case $0 in #((
631ef239
AC
9947 *[\\/]* ) as_myself=$0 ;;
9948 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9949for as_dir in $PATH
9950do
9951 IFS=$as_save_IFS
9952 test -z "$as_dir" && as_dir=.
7083c021
AC
9953 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9954 done
631ef239
AC
9955IFS=$as_save_IFS
9956
9957 ;;
9958esac
9959# We did not find ourselves, most probably we were run as `sh COMMAND'
9960# in which case we are not to be found in the path.
9961if test "x$as_myself" = x; then
9962 as_myself=$0
9963fi
9964if test ! -f "$as_myself"; then
7083c021
AC
9965 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9966 exit 1
631ef239
AC
9967fi
9968
7083c021
AC
9969# Unset variables that we do not need and which cause bugs (e.g. in
9970# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9971# suppresses any "Segmentation fault" message there. '((' could
9972# trigger a bug in pdksh 5.2.14.
9973for as_var in BASH_ENV ENV MAIL MAILPATH
9974do eval test x\${$as_var+set} = xset \
9975 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 9976done
212380e3
AC
9977PS1='$ '
9978PS2='> '
9979PS4='+ '
9980
7083c021
AC
9981# NLS nuisances.
9982LC_ALL=C
9983export LC_ALL
9984LANGUAGE=C
9985export LANGUAGE
9986
9987# CDPATH.
9988(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9989
9990
b6d0720c
AC
9991# as_fn_error STATUS ERROR [LINENO LOG_FD]
9992# ----------------------------------------
7083c021
AC
9993# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9994# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 9995# script with STATUS, using 1 if that was 0.
7083c021
AC
9996as_fn_error ()
9997{
b6d0720c
AC
9998 as_status=$1; test $as_status -eq 0 && as_status=1
9999 if test "$4"; then
10000 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10001 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 10002 fi
b6d0720c 10003 $as_echo "$as_me: error: $2" >&2
7083c021
AC
10004 as_fn_exit $as_status
10005} # as_fn_error
10006
10007
10008# as_fn_set_status STATUS
10009# -----------------------
10010# Set $? to STATUS, without forking.
10011as_fn_set_status ()
10012{
10013 return $1
10014} # as_fn_set_status
10015
10016# as_fn_exit STATUS
10017# -----------------
10018# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10019as_fn_exit ()
10020{
10021 set +e
10022 as_fn_set_status $1
10023 exit $1
10024} # as_fn_exit
10025
10026# as_fn_unset VAR
10027# ---------------
10028# Portably unset VAR.
10029as_fn_unset ()
10030{
10031 { eval $1=; unset $1;}
10032}
10033as_unset=as_fn_unset
10034# as_fn_append VAR VALUE
10035# ----------------------
10036# Append the text in VALUE to the end of the definition contained in VAR. Take
10037# advantage of any shell optimizations that allow amortized linear growth over
10038# repeated appends, instead of the typical quadratic growth present in naive
10039# implementations.
10040if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10041 eval 'as_fn_append ()
10042 {
10043 eval $1+=\$2
10044 }'
10045else
10046 as_fn_append ()
10047 {
10048 eval $1=\$$1\$2
10049 }
10050fi # as_fn_append
10051
10052# as_fn_arith ARG...
10053# ------------------
10054# Perform arithmetic evaluation on the ARGs, and store the result in the
10055# global $as_val. Take advantage of shells that can avoid forks. The arguments
10056# must be portable across $(()) and expr.
10057if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10058 eval 'as_fn_arith ()
10059 {
10060 as_val=$(( $* ))
10061 }'
10062else
10063 as_fn_arith ()
10064 {
10065 as_val=`expr "$@" || test $? -eq 1`
10066 }
10067fi # as_fn_arith
10068
212380e3 10069
631ef239
AC
10070if expr a : '\(a\)' >/dev/null 2>&1 &&
10071 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
10072 as_expr=expr
10073else
10074 as_expr=false
10075fi
10076
631ef239 10077if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
10078 as_basename=basename
10079else
10080 as_basename=false
10081fi
10082
7083c021
AC
10083if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10084 as_dirname=dirname
10085else
10086 as_dirname=false
10087fi
212380e3 10088
631ef239 10089as_me=`$as_basename -- "$0" ||
212380e3
AC
10090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10091 X"$0" : 'X\(//\)$' \| \
631ef239 10092 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10093$as_echo X/"$0" |
631ef239
AC
10094 sed '/^.*\/\([^/][^/]*\)\/*$/{
10095 s//\1/
10096 q
10097 }
10098 /^X\/\(\/\/\)$/{
10099 s//\1/
10100 q
10101 }
10102 /^X\/\(\/\).*/{
10103 s//\1/
10104 q
10105 }
10106 s/.*/./; q'`
212380e3 10107
7083c021
AC
10108# Avoid depending upon Character Ranges.
10109as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10110as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10111as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10112as_cr_digits='0123456789'
10113as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
10114
10115ECHO_C= ECHO_N= ECHO_T=
7083c021 10116case `echo -n x` in #(((((
631ef239 10117-n*)
7083c021 10118 case `echo 'xy\c'` in
631ef239 10119 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
10120 xy) ECHO_C='\c';;
10121 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10122 ECHO_T=' ';;
631ef239
AC
10123 esac;;
10124*)
10125 ECHO_N='-n';;
212380e3
AC
10126esac
10127
212380e3 10128rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
10129if test -d conf$$.dir; then
10130 rm -f conf$$.dir/conf$$.file
10131else
10132 rm -f conf$$.dir
7083c021
AC
10133 mkdir conf$$.dir 2>/dev/null
10134fi
10135if (echo >conf$$.file) 2>/dev/null; then
10136 if ln -s conf$$.file conf$$ 2>/dev/null; then
10137 as_ln_s='ln -s'
10138 # ... but there are two gotchas:
10139 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10140 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 10141 # In both cases, we have to default to `cp -pR'.
7083c021 10142 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 10143 as_ln_s='cp -pR'
7083c021
AC
10144 elif ln conf$$.file conf$$ 2>/dev/null; then
10145 as_ln_s=ln
10146 else
2eff3833 10147 as_ln_s='cp -pR'
7083c021 10148 fi
212380e3 10149else
2eff3833 10150 as_ln_s='cp -pR'
212380e3 10151fi
631ef239
AC
10152rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10153rmdir conf$$.dir 2>/dev/null
212380e3 10154
7083c021
AC
10155
10156# as_fn_mkdir_p
10157# -------------
10158# Create "$as_dir" as a directory, including parents if necessary.
10159as_fn_mkdir_p ()
10160{
10161
10162 case $as_dir in #(
10163 -*) as_dir=./$as_dir;;
10164 esac
10165 test -d "$as_dir" || eval $as_mkdir_p || {
10166 as_dirs=
10167 while :; do
10168 case $as_dir in #(
10169 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10170 *) as_qdir=$as_dir;;
10171 esac
10172 as_dirs="'$as_qdir' $as_dirs"
10173 as_dir=`$as_dirname -- "$as_dir" ||
10174$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10175 X"$as_dir" : 'X\(//\)[^/]' \| \
10176 X"$as_dir" : 'X\(//\)$' \| \
10177 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10178$as_echo X"$as_dir" |
10179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10180 s//\1/
10181 q
10182 }
10183 /^X\(\/\/\)[^/].*/{
10184 s//\1/
10185 q
10186 }
10187 /^X\(\/\/\)$/{
10188 s//\1/
10189 q
10190 }
10191 /^X\(\/\).*/{
10192 s//\1/
10193 q
10194 }
10195 s/.*/./; q'`
10196 test -d "$as_dir" && break
10197 done
10198 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 10199 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
10200
10201
10202} # as_fn_mkdir_p
212380e3 10203if mkdir -p . 2>/dev/null; then
7083c021 10204 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
10205else
10206 test -d ./-p && rmdir ./-p
10207 as_mkdir_p=false
10208fi
10209
2eff3833
JT
10210
10211# as_fn_executable_p FILE
10212# -----------------------
10213# Test if FILE is an executable regular file.
10214as_fn_executable_p ()
10215{
10216 test -f "$1" && test -x "$1"
10217} # as_fn_executable_p
10218as_test_x='test -x'
10219as_executable_p=as_fn_executable_p
212380e3
AC
10220
10221# Sed expression to map a string onto a valid CPP name.
10222as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10223
10224# Sed expression to map a string onto a valid variable name.
10225as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10226
10227
212380e3 10228exec 6>&1
7083c021
AC
10229## ----------------------------------- ##
10230## Main body of $CONFIG_STATUS script. ##
10231## ----------------------------------- ##
10232_ASEOF
10233test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10234
7083c021
AC
10235cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10236# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10237# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
10238# values after options handling.
10239ac_log="
dc9aebf4 10240This file was extended by charybdis $as_me 3.5.0-dev, which was
2eff3833 10241generated by GNU Autoconf 2.69. Invocation command line was
212380e3
AC
10242
10243 CONFIG_FILES = $CONFIG_FILES
10244 CONFIG_HEADERS = $CONFIG_HEADERS
10245 CONFIG_LINKS = $CONFIG_LINKS
10246 CONFIG_COMMANDS = $CONFIG_COMMANDS
10247 $ $0 $@
10248
631ef239
AC
10249on `(hostname || uname -n) 2>/dev/null | sed 1q`
10250"
10251
212380e3
AC
10252_ACEOF
10253
7083c021
AC
10254case $ac_config_files in *"
10255"*) set x $ac_config_files; shift; ac_config_files=$*;;
10256esac
10257
10258case $ac_config_headers in *"
10259"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10260esac
10261
10262
10263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10264# Files that config.status was made for.
631ef239
AC
10265config_files="$ac_config_files"
10266config_headers="$ac_config_headers"
9f9b7042 10267config_commands="$ac_config_commands"
212380e3 10268
631ef239 10269_ACEOF
212380e3 10270
7083c021 10271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10272ac_cs_usage="\
7083c021
AC
10273\`$as_me' instantiates files and other configuration actions
10274from templates according to the current configuration. Unless the files
10275and actions are specified as TAGs, all are instantiated by default.
212380e3 10276
7083c021 10277Usage: $0 [OPTION]... [TAG]...
212380e3
AC
10278
10279 -h, --help print this help, then exit
631ef239 10280 -V, --version print version number and configuration settings, then exit
6fb6bd15 10281 --config print configuration, then exit
7083c021
AC
10282 -q, --quiet, --silent
10283 do not print progress messages
212380e3
AC
10284 -d, --debug don't remove temporary files
10285 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
10286 --file=FILE[:TEMPLATE]
10287 instantiate the configuration file FILE
10288 --header=FILE[:TEMPLATE]
10289 instantiate the configuration header FILE
212380e3
AC
10290
10291Configuration files:
10292$config_files
10293
10294Configuration headers:
10295$config_headers
10296
9f9b7042
NPB
10297Configuration commands:
10298$config_commands
10299
7083c021 10300Report bugs to the package provider."
212380e3 10301
631ef239 10302_ACEOF
7083c021 10303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 10304ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10305ac_cs_version="\\
dc9aebf4 10306charybdis config.status 3.5.0-dev
2eff3833 10307configured by $0, generated by GNU Autoconf 2.69,
6fb6bd15 10308 with options \\"\$ac_cs_config\\"
212380e3 10309
2eff3833 10310Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
10311This config.status script is free software; the Free Software Foundation
10312gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10313
10314ac_pwd='$ac_pwd'
10315srcdir='$srcdir'
10316INSTALL='$INSTALL'
7083c021 10317test -n "\$AWK" || AWK=awk
212380e3
AC
10318_ACEOF
10319
7083c021
AC
10320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10321# The default lists apply if the user does not specify any file.
212380e3
AC
10322ac_need_defaults=:
10323while test $# != 0
10324do
10325 case $1 in
b6d0720c 10326 --*=?*)
631ef239
AC
10327 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10328 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10329 ac_shift=:
10330 ;;
b6d0720c
AC
10331 --*=)
10332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10333 ac_optarg=
10334 ac_shift=:
10335 ;;
631ef239 10336 *)
212380e3
AC
10337 ac_option=$1
10338 ac_optarg=$2
10339 ac_shift=shift
10340 ;;
212380e3
AC
10341 esac
10342
10343 case $ac_option in
10344 # Handling of the options.
212380e3
AC
10345 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10346 ac_cs_recheck=: ;;
631ef239 10347 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10348 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
10349 --config | --confi | --conf | --con | --co | --c )
10350 $as_echo "$ac_cs_config"; exit ;;
631ef239 10351 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10352 debug=: ;;
10353 --file | --fil | --fi | --f )
10354 $ac_shift
7083c021
AC
10355 case $ac_optarg in
10356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 10357 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
10358 esac
10359 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10360 ac_need_defaults=false;;
10361 --header | --heade | --head | --hea )
10362 $ac_shift
7083c021
AC
10363 case $ac_optarg in
10364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10365 esac
10366 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10367 ac_need_defaults=false;;
631ef239
AC
10368 --he | --h)
10369 # Conflict between --help and --header
b6d0720c 10370 as_fn_error $? "ambiguous option: \`$1'
7083c021 10371Try \`$0 --help' for more information.";;
631ef239 10372 --help | --hel | -h )
7083c021 10373 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10375 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10376 ac_cs_silent=: ;;
10377
10378 # This is an error.
b6d0720c 10379 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 10380Try \`$0 --help' for more information." ;;
212380e3 10381
7083c021 10382 *) as_fn_append ac_config_targets " $1"
631ef239 10383 ac_need_defaults=false ;;
212380e3
AC
10384
10385 esac
10386 shift
10387done
10388
10389ac_configure_extra_args=
10390
10391if $ac_cs_silent; then
10392 exec 6>/dev/null
10393 ac_configure_extra_args="$ac_configure_extra_args --silent"
10394fi
10395
10396_ACEOF
7083c021 10397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10398if \$ac_cs_recheck; then
2eff3833 10399 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
10400 shift
10401 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10402 CONFIG_SHELL='$SHELL'
631ef239 10403 export CONFIG_SHELL
7083c021 10404 exec "\$@"
212380e3
AC
10405fi
10406
10407_ACEOF
7083c021 10408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10409exec 5>>config.log
10410{
10411 echo
10412 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10413## Running $as_me. ##
10414_ASBOX
7083c021 10415 $as_echo "$ac_log"
631ef239 10416} >&5
212380e3 10417
631ef239 10418_ACEOF
7083c021 10419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10420_ACEOF
212380e3 10421
7083c021 10422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10423
10424# Handling of arguments.
212380e3
AC
10425for ac_config_target in $ac_config_targets
10426do
631ef239
AC
10427 case $ac_config_target in
10428 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10430 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10431 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10432 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
10433 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10434 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10435 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
2eff3833 10436 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
631ef239
AC
10437 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10438 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
2eff3833 10439 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
631ef239 10440
b6d0720c 10441 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10442 esac
10443done
10444
631ef239 10445
212380e3
AC
10446# If the user did not use the arguments to specify the items to instantiate,
10447# then the envvar interface is used. Set only those that are not.
10448# We use the long form for the default assignment because of an extremely
10449# bizarre bug on SunOS 4.1.3.
10450if $ac_need_defaults; then
10451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 10453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
10454fi
10455
10456# Have a temporary directory for convenience. Make it in the build tree
631ef239 10457# simply because there is no reason against having it here, and in addition,
212380e3 10458# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10459# Hook for its removal unless debugging.
10460# Note that there is a small window in which the directory will not be cleaned:
10461# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10462$debug ||
10463{
b6d0720c 10464 tmp= ac_tmp=
631ef239 10465 trap 'exit_status=$?
b6d0720c
AC
10466 : "${ac_tmp:=$tmp}"
10467 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10468' 0
7083c021 10469 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10470}
212380e3
AC
10471# Create a (secure) tmp directory for tmp files.
10472
10473{
631ef239 10474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 10475 test -d "$tmp"
212380e3
AC
10476} ||
10477{
631ef239
AC
10478 tmp=./conf$$-$RANDOM
10479 (umask 077 && mkdir "$tmp")
b6d0720c
AC
10480} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10481ac_tmp=$tmp
212380e3 10482
7083c021
AC
10483# Set up the scripts for CONFIG_FILES section.
10484# No need to generate them if there are no CONFIG_FILES.
10485# This happens for instance with `./config.status config.h'.
631ef239
AC
10486if test -n "$CONFIG_FILES"; then
10487
631ef239 10488
7083c021
AC
10489ac_cr=`echo X | tr X '\015'`
10490# On cygwin, bash can eat \r inside `` if the user requested igncr.
10491# But we know of no other shell where ac_cr would be empty at this
10492# point, so we can use a bashism as a fallback.
10493if test "x$ac_cr" = x; then
10494 eval ac_cr=\$\'\\r\'
10495fi
10496ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10497if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 10498 ac_cs_awk_cr='\\r'
7083c021
AC
10499else
10500 ac_cs_awk_cr=$ac_cr
10501fi
10502
b6d0720c 10503echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 10504_ACEOF
631ef239
AC
10505
10506
7083c021
AC
10507{
10508 echo "cat >conf$$subs.awk <<_ACEOF" &&
10509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10510 echo "_ACEOF"
10511} >conf$$subs.sh ||
b6d0720c
AC
10512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10513ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
10514ac_delim='%!_!# '
10515for ac_last_try in false false false false false :; do
7083c021 10516 . ./conf$$subs.sh ||
b6d0720c 10517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
10518
10519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10520 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10521 break
10522 elif $ac_last_try; then
b6d0720c 10523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10524 else
10525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10526 fi
631ef239 10527done
7083c021
AC
10528rm -f conf$$subs.sh
10529
10530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 10531cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
10532_ACEOF
10533sed -n '
10534h
10535s/^/S["/; s/!.*/"]=/
10536p
10537g
10538s/^[^!]*!//
10539:repl
10540t repl
10541s/'"$ac_delim"'$//
10542t delim
10543:nl
10544h
6fb6bd15 10545s/\(.\{148\}\)..*/\1/
7083c021
AC
10546t more1
10547s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10548p
10549n
10550b repl
10551:more1
10552s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10553p
10554g
10555s/.\{148\}//
10556t nl
10557:delim
10558h
6fb6bd15 10559s/\(.\{148\}\)..*/\1/
7083c021
AC
10560t more2
10561s/["\\]/\\&/g; s/^/"/; s/$/"/
10562p
10563b
10564:more2
10565s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10566p
10567g
10568s/.\{148\}//
10569t delim
10570' <conf$$subs.awk | sed '
10571/^[^""]/{
10572 N
10573 s/\n//
10574}
10575' >>$CONFIG_STATUS || ac_write_fail=1
10576rm -f conf$$subs.awk
10577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10578_ACAWK
b6d0720c 10579cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
10580 for (key in S) S_is_set[key] = 1
10581 FS = "\a"
212380e3 10582
7083c021
AC
10583}
10584{
10585 line = $ 0
10586 nfields = split(line, field, "@")
10587 substed = 0
10588 len = length(field[1])
10589 for (i = 2; i < nfields; i++) {
10590 key = field[i]
10591 keylen = length(key)
10592 if (S_is_set[key]) {
10593 value = S[key]
10594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10595 len += length(value) + length(field[++i])
10596 substed = 1
10597 } else
10598 len += 1 + keylen
10599 }
631ef239 10600
7083c021
AC
10601 print line
10602}
10603
10604_ACAWK
631ef239 10605_ACEOF
7083c021
AC
10606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10607if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10609else
10610 cat
b6d0720c
AC
10611fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10613_ACEOF
631ef239 10614
b6d0720c
AC
10615# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10616# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
10617# trailing colons and then remove the whole line if VPATH becomes empty
10618# (actually we leave an empty line to preserve line numbers).
10619if test "x$srcdir" = x.; then
b6d0720c
AC
10620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10621h
10622s///
10623s/^/:/
10624s/[ ]*$/:/
10625s/:\$(srcdir):/:/g
10626s/:\${srcdir}:/:/g
10627s/:@srcdir@:/:/g
10628s/^:*//
631ef239 10629s/:*$//
b6d0720c
AC
10630x
10631s/\(=[ ]*\).*/\1/
10632G
10633s/\n//
631ef239
AC
10634s/^[^=]*=[ ]*$//
10635}'
10636fi
10637
7083c021 10638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10639fi # test -n "$CONFIG_FILES"
10640
7083c021
AC
10641# Set up the scripts for CONFIG_HEADERS section.
10642# No need to generate them if there are no CONFIG_HEADERS.
10643# This happens for instance with `./config.status Makefile'.
10644if test -n "$CONFIG_HEADERS"; then
b6d0720c 10645cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
10646BEGIN {
10647_ACEOF
10648
10649# Transform confdefs.h into an awk script `defines.awk', embedded as
10650# here-document in config.status, that substitutes the proper values into
10651# config.h.in to produce config.h.
10652
10653# Create a delimiter string that does not exist in confdefs.h, to ease
10654# handling of long lines.
10655ac_delim='%!_!# '
10656for ac_last_try in false false :; do
b6d0720c
AC
10657 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10658 if test -z "$ac_tt"; then
7083c021
AC
10659 break
10660 elif $ac_last_try; then
b6d0720c 10661 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
10662 else
10663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10664 fi
10665done
10666
10667# For the awk script, D is an array of macro values keyed by name,
10668# likewise P contains macro parameters if any. Preserve backslash
10669# newline sequences.
10670
10671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10672sed -n '
10673s/.\{148\}/&'"$ac_delim"'/g
10674t rset
10675:rset
10676s/^[ ]*#[ ]*define[ ][ ]*/ /
10677t def
10678d
10679:def
10680s/\\$//
10681t bsnl
10682s/["\\]/\\&/g
10683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10684D["\1"]=" \3"/p
10685s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10686d
10687:bsnl
10688s/["\\]/\\&/g
10689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10690D["\1"]=" \3\\\\\\n"\\/p
10691t cont
10692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10693t cont
10694d
10695:cont
10696n
10697s/.\{148\}/&'"$ac_delim"'/g
10698t clear
10699:clear
10700s/\\$//
10701t bsnlc
10702s/["\\]/\\&/g; s/^/"/; s/$/"/p
10703d
10704:bsnlc
10705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10706b cont
10707' <confdefs.h | sed '
10708s/'"$ac_delim"'/"\\\
10709"/g' >>$CONFIG_STATUS || ac_write_fail=1
10710
10711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10712 for (key in D) D_is_set[key] = 1
10713 FS = "\a"
10714}
10715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10716 line = \$ 0
10717 split(line, arg, " ")
10718 if (arg[1] == "#") {
10719 defundef = arg[2]
10720 mac1 = arg[3]
10721 } else {
10722 defundef = substr(arg[1], 2)
10723 mac1 = arg[2]
10724 }
10725 split(mac1, mac2, "(") #)
10726 macro = mac2[1]
10727 prefix = substr(line, 1, index(line, defundef) - 1)
10728 if (D_is_set[macro]) {
10729 # Preserve the white space surrounding the "#".
10730 print prefix "define", macro P[macro] D[macro]
10731 next
10732 } else {
10733 # Replace #undef with comments. This is necessary, for example,
10734 # in the case of _POSIX_SOURCE, which is predefined and required
10735 # on some systems where configure will not decide to define it.
10736 if (defundef == "undef") {
10737 print "/*", prefix defundef, macro, "*/"
10738 next
10739 }
10740 }
10741}
10742{ print }
10743_ACAWK
10744_ACEOF
10745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 10746 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
10747fi # test -n "$CONFIG_HEADERS"
10748
631ef239 10749
9f9b7042 10750eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
10751shift
10752for ac_tag
631ef239
AC
10753do
10754 case $ac_tag in
10755 :[FHLC]) ac_mode=$ac_tag; continue;;
10756 esac
10757 case $ac_mode$ac_tag in
10758 :[FHL]*:*);;
b6d0720c 10759 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10760 :[FH]-) ac_tag=-:-;;
10761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10762 esac
631ef239
AC
10763 ac_save_IFS=$IFS
10764 IFS=:
10765 set x $ac_tag
10766 IFS=$ac_save_IFS
10767 shift
10768 ac_file=$1
10769 shift
212380e3 10770
631ef239
AC
10771 case $ac_mode in
10772 :L) ac_source=$1;;
10773 :[FH])
10774 ac_file_inputs=
10775 for ac_f
10776 do
10777 case $ac_f in
b6d0720c 10778 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
10779 *) # Look for the file first in the build tree, then in the source tree
10780 # (if the path is not absolute). The absolute path cannot be DOS-style,
10781 # because $ac_f cannot contain `:'.
10782 test -f "$ac_f" ||
10783 case $ac_f in
10784 [\\/$]*) false;;
10785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10786 esac ||
b6d0720c 10787 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10788 esac
7083c021
AC
10789 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10790 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10791 done
10792
10793 # Let's still pretend it is `configure' which instantiates (i.e., don't
10794 # use $as_me), people would be surprised to read:
10795 # /* config.h. Generated by config.status. */
7083c021
AC
10796 configure_input='Generated from '`
10797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10798 `' by configure.'
631ef239
AC
10799 if test x"$ac_file" != x-; then
10800 configure_input="$ac_file. $configure_input"
7083c021
AC
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10802$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10803 fi
7083c021
AC
10804 # Neutralize special characters interpreted by sed in replacement strings.
10805 case $configure_input in #(
10806 *\&* | *\|* | *\\* )
10807 ac_sed_conf_input=`$as_echo "$configure_input" |
10808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10809 *) ac_sed_conf_input=$configure_input;;
10810 esac
631ef239
AC
10811
10812 case $ac_tag in
b6d0720c
AC
10813 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10815 esac
10816 ;;
10817 esac
10818
10819 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10821 X"$ac_file" : 'X\(//\)[^/]' \| \
10822 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10824$as_echo X"$ac_file" |
631ef239
AC
10825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10826 s//\1/
10827 q
10828 }
10829 /^X\(\/\/\)[^/].*/{
10830 s//\1/
10831 q
10832 }
10833 /^X\(\/\/\)$/{
10834 s//\1/
10835 q
10836 }
10837 /^X\(\/\).*/{
10838 s//\1/
10839 q
10840 }
10841 s/.*/./; q'`
7083c021 10842 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
10843 ac_builddir=.
10844
631ef239
AC
10845case "$ac_dir" in
10846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10847*)
7083c021 10848 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 10849 # A ".." for each directory in $ac_dir_suffix.
7083c021 10850 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
10851 case $ac_top_builddir_sub in
10852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10854 esac ;;
10855esac
10856ac_abs_top_builddir=$ac_pwd
10857ac_abs_builddir=$ac_pwd$ac_dir_suffix
10858# for backward compatibility:
10859ac_top_builddir=$ac_top_build_prefix
212380e3
AC
10860
10861case $srcdir in
631ef239 10862 .) # We are building in place.
212380e3 10863 ac_srcdir=.
631ef239
AC
10864 ac_top_srcdir=$ac_top_builddir_sub
10865 ac_abs_top_srcdir=$ac_pwd ;;
10866 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 10867 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
10868 ac_top_srcdir=$srcdir
10869 ac_abs_top_srcdir=$srcdir ;;
10870 *) # Relative name.
10871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10872 ac_top_srcdir=$ac_top_build_prefix$srcdir
10873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 10874esac
631ef239 10875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 10876
212380e3 10877
631ef239
AC
10878 case $ac_mode in
10879 :F)
10880 #
10881 # CONFIG_FILE
10882 #
212380e3
AC
10883
10884 case $INSTALL in
10885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 10886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 10887 esac
631ef239 10888_ACEOF
212380e3 10889
7083c021 10890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10891# If the template does not know about datarootdir, expand it.
10892# FIXME: This hack should be removed a few years after 2.60.
10893ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
10894ac_sed_dataroot='
10895/datarootdir/ {
631ef239
AC
10896 p
10897 q
10898}
10899/@datadir@/p
10900/@docdir@/p
10901/@infodir@/p
10902/@localedir@/p
7083c021
AC
10903/@mandir@/p'
10904case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
10905*datarootdir*) ac_datarootdir_seen=yes;;
10906*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10908$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 10909_ACEOF
7083c021 10910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
10911 ac_datarootdir_hack='
10912 s&@datadir@&$datadir&g
10913 s&@docdir@&$docdir&g
10914 s&@infodir@&$infodir&g
10915 s&@localedir@&$localedir&g
10916 s&@mandir@&$mandir&g
7083c021 10917 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 10918esac
212380e3 10919_ACEOF
631ef239
AC
10920
10921# Neutralize VPATH when `$srcdir' = `.'.
10922# Shell code in configure.ac might set extrasub.
10923# FIXME: do we really want to maintain this feature?
7083c021
AC
10924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10925ac_sed_extra="$ac_vpsub
212380e3
AC
10926$extrasub
10927_ACEOF
7083c021 10928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
10929:t
10930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 10931s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 10932s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 10933s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
10934s&@srcdir@&$ac_srcdir&;t t
10935s&@abs_srcdir@&$ac_abs_srcdir&;t t
10936s&@top_srcdir@&$ac_top_srcdir&;t t
10937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10938s&@builddir@&$ac_builddir&;t t
10939s&@abs_builddir@&$ac_abs_builddir&;t t
10940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10941s&@INSTALL@&$ac_INSTALL&;t t
10942$ac_datarootdir_hack
7083c021 10943"
b6d0720c
AC
10944eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10945 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10946
10947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
10948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10950 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10952which seems to be undefined. Please make sure it is defined" >&5
7083c021 10953$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 10954which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 10955
b6d0720c 10956 rm -f "$ac_tmp/stdin"
212380e3 10957 case $ac_file in
b6d0720c
AC
10958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 10960 esac \
b6d0720c 10961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
10962 ;;
10963 :H)
10964 #
10965 # CONFIG_HEADER
10966 #
212380e3 10967 if test x"$ac_file" != x-; then
7083c021
AC
10968 {
10969 $as_echo "/* $configure_input */" \
b6d0720c
AC
10970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10971 } >"$ac_tmp/config.h" \
10972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10975$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 10976 else
7083c021 10977 rm -f "$ac_file"
b6d0720c
AC
10978 mv "$ac_tmp/config.h" "$ac_file" \
10979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
10980 fi
10981 else
7083c021 10982 $as_echo "/* $configure_input */" \
b6d0720c
AC
10983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10984 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 10985 fi
631ef239
AC
10986 ;;
10987
9f9b7042
NPB
10988 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10989$as_echo "$as_me: executing $ac_file commands" >&6;}
10990 ;;
631ef239
AC
10991 esac
10992
9f9b7042
NPB
10993
10994 case $ac_file$ac_mode in
2eff3833 10995 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
9f9b7042
NPB
10996
10997 esac
631ef239 10998done # for ac_tag
212380e3 10999
212380e3 11000
7083c021 11001as_fn_exit 0
212380e3 11002_ACEOF
212380e3
AC
11003ac_clean_files=$ac_clean_files_save
11004
7083c021 11005test $ac_write_fail = 0 ||
b6d0720c 11006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 11007
212380e3
AC
11008
11009# configure is writing to config.log, and then calls config.status.
11010# config.status does its own redirection, appending to config.log.
11011# Unfortunately, on DOS this fails, as config.log is still kept open
11012# by configure, so config.status won't be able to write to it; its
11013# output is simply discarded. So we exec the FD to /dev/null,
11014# effectively closing config.log, so it can be properly (re)opened and
11015# appended to by config.status. When coming back to configure, we
11016# need to make the FD available again.
11017if test "$no_create" != yes; then
11018 ac_cs_success=:
11019 ac_config_status_args=
11020 test "$silent" = yes &&
11021 ac_config_status_args="$ac_config_status_args --quiet"
11022 exec 5>/dev/null
11023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11024 exec 5>>config.log
11025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11026 # would make configure fail if this is the last instruction.
b6d0720c 11027 $ac_cs_success || as_fn_exit 1
212380e3
AC
11028fi
11029
b676ea3b
AC
11030#
11031# CONFIG_SUBDIRS section.
11032#
11033if test "$no_recursion" != yes; then
11034
7083c021
AC
11035 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11036 # so they do not pile up.
b676ea3b
AC
11037 ac_sub_configure_args=
11038 ac_prev=
11039 eval "set x $ac_configure_args"
11040 shift
11041 for ac_arg
11042 do
11043 if test -n "$ac_prev"; then
11044 ac_prev=
11045 continue
11046 fi
11047 case $ac_arg in
11048 -cache-file | --cache-file | --cache-fil | --cache-fi \
11049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11050 ac_prev=cache_file ;;
11051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11053 | --c=*)
11054 ;;
11055 --config-cache | -C)
11056 ;;
11057 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11058 ac_prev=srcdir ;;
11059 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11060 ;;
11061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11062 ac_prev=prefix ;;
11063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11064 ;;
7083c021
AC
11065 --disable-option-checking)
11066 ;;
b676ea3b
AC
11067 *)
11068 case $ac_arg in
7083c021 11069 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b 11070 esac
7083c021 11071 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
b676ea3b
AC
11072 esac
11073 done
11074
11075 # Always prepend --prefix to ensure using the same prefix
11076 # in subdir configurations.
11077 ac_arg="--prefix=$prefix"
11078 case $ac_arg in
7083c021 11079 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b676ea3b
AC
11080 esac
11081 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11082
11083 # Pass --silent
11084 if test "$silent" = yes; then
11085 ac_sub_configure_args="--silent $ac_sub_configure_args"
11086 fi
11087
7083c021
AC
11088 # Always prepend --disable-option-checking to silence warnings, since
11089 # different subdirs can have different --enable and --with options.
11090 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11091
b676ea3b
AC
11092 ac_popdir=`pwd`
11093 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11094
11095 # Do not complain, so a configure script can configure whichever
11096 # parts of a large source tree are present.
11097 test -d "$srcdir/$ac_dir" || continue
11098
11099 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
7083c021
AC
11100 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11101 $as_echo "$ac_msg" >&6
11102 as_dir="$ac_dir"; as_fn_mkdir_p
b676ea3b
AC
11103 ac_builddir=.
11104
11105case "$ac_dir" in
11106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11107*)
7083c021 11108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
b676ea3b 11109 # A ".." for each directory in $ac_dir_suffix.
7083c021 11110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
b676ea3b
AC
11111 case $ac_top_builddir_sub in
11112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11114 esac ;;
11115esac
11116ac_abs_top_builddir=$ac_pwd
11117ac_abs_builddir=$ac_pwd$ac_dir_suffix
11118# for backward compatibility:
11119ac_top_builddir=$ac_top_build_prefix
11120
11121case $srcdir in
11122 .) # We are building in place.
11123 ac_srcdir=.
11124 ac_top_srcdir=$ac_top_builddir_sub
11125 ac_abs_top_srcdir=$ac_pwd ;;
11126 [\\/]* | ?:[\\/]* ) # Absolute name.
11127 ac_srcdir=$srcdir$ac_dir_suffix;
11128 ac_top_srcdir=$srcdir
11129 ac_abs_top_srcdir=$srcdir ;;
11130 *) # Relative name.
11131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11132 ac_top_srcdir=$ac_top_build_prefix$srcdir
11133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11134esac
11135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11136
11137
11138 cd "$ac_dir"
11139
11140 # Check for guested configure; otherwise get Cygnus style configure.
11141 if test -f "$ac_srcdir/configure.gnu"; then
11142 ac_sub_configure=$ac_srcdir/configure.gnu
11143 elif test -f "$ac_srcdir/configure"; then
11144 ac_sub_configure=$ac_srcdir/configure
11145 elif test -f "$ac_srcdir/configure.in"; then
11146 # This should be Cygnus configure.
11147 ac_sub_configure=$ac_aux_dir/configure
11148 else
7083c021
AC
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11150$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
b676ea3b
AC
11151 ac_sub_configure=
11152 fi
11153
11154 # The recursion is here.
11155 if test -n "$ac_sub_configure"; then
11156 # Make the cache file name correct relative to the subdirectory.
11157 case $cache_file in
11158 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11159 *) # Relative name.
11160 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11161 esac
11162
7083c021
AC
11163 { $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
11164$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
11165 # The eval makes quoting arguments work.
11166 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11167 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
b6d0720c 11168 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
b676ea3b
AC
11169 fi
11170
11171 cd "$ac_popdir"
11172 done
11173fi
7083c021
AC
11174if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11176$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11177fi
b676ea3b 11178
212380e3
AC
11179
11180if test "$cf_openssl_version_ok" = yes; then
11181 openssl="yes"
11182else
11183 openssl="no"
11184fi
11185
11186if test "$shared_modules" = yes; then
11187 modules=shared
11188else
11189 modules=static
11190fi
11191
11192echo "
b6d0720c 11193Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
11194 Install directory : $prefix
11195
11196 Ziplinks : $zlib
11197 OpenSSL : $openssl
212380e3
AC
11198 Socket Engine : $SELECT_TYPE
11199 Small network : $small_net
11200 Block allocator : $balloc
212380e3
AC
11201
11202 Nickname length : $NICKLEN
11203 Topic length : $TOPICLEN
11204
b6d0720c 11205Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 11206"