]> jfr.im git - solanum.git/blame - configure
configure: Restore libratbox build.
[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 624ac_subst_vars='LTLIBOBJS
631ef239 625LIBOBJS
7083c021
AC
626SEDOBJ
627IRC_CFLAGS
628PICFLAGS
629SSL_LIBS
630SSL_INCLUDES
631SSL_SRCS_ENABLE
632MOD_TARGET
633MODULES_LIBS
634SELECT_TYPE
9f9b7042
NPB
635PROGRAM_PREFIX
636PKGRUNDIR
7083c021
AC
637moduledir
638MODULE_DIR
639helpdir
640HELP_DIR
641logdir
642LOG_DIR
7083c021 643ETC_DIR
74ab6be0 644SQLITE_SRC
a5471f24 645SQLITE_INCLUDES
497e30a0 646SQLITE_LD
a5471f24
LS
647SQLITE_LIBS
648SQLITE_CFLAGS
649PKG_CONFIG_LIBDIR
650PKG_CONFIG_PATH
651PKG_CONFIG
7083c021
AC
652ZLIB_LD
653ENCSPEED
654ALLOCA
655VICONF
656CRYPT_LIB
9f9b7042
NPB
657PKGLIBEXECDIR
658pkglibexecdir
659PKGLOCALSTATEDIR
660pkglocalstatedir
661pkgrundir
662rundir
663pkglibdir
7083c021
AC
664LEXLIB
665LEX_OUTPUT_ROOT
666LEX
667YFLAGS
668YACC
669TOUCH
670RANLIB
671LD
672AR
673SED
674LN
675MV
676CP
677RM
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681SET_MAKE
682STDOUT
683MAKEDEPEND
684MKDEP
7083c021
AC
685EGREP
686GREP
687CPP
688OBJEXT
689EXEEXT
690ac_ct_CC
691CPPFLAGS
692LDFLAGS
693CFLAGS
694CC
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
212380e3 733ac_subst_files=''
7083c021
AC
734ac_user_opts='
735enable_option_checking
9f9b7042 736enable_fhs_paths
7083c021
AC
737enable_ipv6
738enable_openssl
739with_zlib_path
740enable_zlib
a6ef3156 741with_shared_sqlite
7083c021
AC
742enable_ports
743enable_poll
744enable_select
745enable_kqueue
746enable_epoll
747with_confdir
748with_logdir
749with_helpdir
750with_moduledir
9f9b7042
NPB
751with_rundir
752with_program_prefix
b6d0720c
AC
753with_custom_branding
754with_custom_version
7083c021
AC
755enable_assert
756enable_iodebug
757enable_profile
758enable_balloc
759enable_small_net
760with_nicklen
761with_topiclen
762enable_warnings
763'
631ef239
AC
764 ac_precious_vars='build_alias
765host_alias
766target_alias
767CC
768CFLAGS
769LDFLAGS
770LIBS
771CPPFLAGS
772CPP
773YACC
a5471f24
LS
774YFLAGS
775PKG_CONFIG
776PKG_CONFIG_PATH
777PKG_CONFIG_LIBDIR
778SQLITE_CFLAGS
779SQLITE_LIBS'
780
212380e3
AC
781
782# Initialize some variables set by options.
783ac_init_help=
784ac_init_version=false
7083c021
AC
785ac_unrecognized_opts=
786ac_unrecognized_sep=
212380e3
AC
787# The variables have the same names as the options, with
788# dashes changed to underlines.
789cache_file=/dev/null
790exec_prefix=NONE
791no_create=
792no_recursion=
793prefix=NONE
794program_prefix=NONE
795program_suffix=NONE
796program_transform_name=s,x,x,
797silent=
798site=
799srcdir=
800verbose=
801x_includes=NONE
802x_libraries=NONE
803
804# Installation directory options.
805# These are left unexpanded so users can "make install exec_prefix=/foo"
806# and all the variables that are supposed to be based on exec_prefix
807# by default will actually change.
808# Use braces instead of parens because sh, perl, etc. also accept them.
631ef239 809# (The list follows the same order as the GNU Coding Standards.)
212380e3
AC
810bindir='${exec_prefix}/bin'
811sbindir='${exec_prefix}/sbin'
812libexecdir='${exec_prefix}/libexec'
631ef239
AC
813datarootdir='${prefix}/share'
814datadir='${datarootdir}'
212380e3
AC
815sysconfdir='${prefix}/etc'
816sharedstatedir='${prefix}/com'
817localstatedir='${prefix}/var'
212380e3
AC
818includedir='${prefix}/include'
819oldincludedir='/usr/include'
631ef239
AC
820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821infodir='${datarootdir}/info'
822htmldir='${docdir}'
823dvidir='${docdir}'
824pdfdir='${docdir}'
825psdir='${docdir}'
826libdir='${exec_prefix}/lib'
827localedir='${datarootdir}/locale'
828mandir='${datarootdir}/man'
212380e3
AC
829
830ac_prev=
631ef239 831ac_dashdash=
212380e3
AC
832for ac_option
833do
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
631ef239 836 eval $ac_prev=\$ac_option
212380e3
AC
837 ac_prev=
838 continue
839 fi
840
631ef239 841 case $ac_option in
b6d0720c
AC
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *=) ac_optarg= ;;
844 *) ac_optarg=yes ;;
631ef239 845 esac
212380e3
AC
846
847 # Accept the important Cygnus configure options, so we can diagnose typos.
848
631ef239
AC
849 case $ac_dashdash$ac_option in
850 --)
851 ac_dashdash=yes ;;
212380e3
AC
852
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
857
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
862
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
869
870 --config-cache | -C)
871 cache_file=config.cache ;;
872
631ef239 873 -datadir | --datadir | --datadi | --datad)
212380e3 874 ac_prev=datadir ;;
631ef239 875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3
AC
876 datadir=$ac_optarg ;;
877
631ef239
AC
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
884
212380e3 885 -disable-* | --disable-*)
7083c021 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
212380e3 887 # Reject names that are not valid shell variable names.
7083c021 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 889 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
631ef239
AC
900
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
905
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
212380e3
AC
910
911 -enable-* | --enable-*)
7083c021 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
212380e3 913 # Reject names that are not valid shell variable names.
7083c021 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 915 as_fn_error $? "invalid feature name: $ac_useropt"
7083c021
AC
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
919 *"
920"enable_$ac_useropt"
921"*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
212380e3
AC
926
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
935
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
939
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
946
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
951
631ef239
AC
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
957
212380e3
AC
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
964
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
969
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
974
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
981
631ef239
AC
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
986
212380e3 987 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 988 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3
AC
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
992 localstatedir=$ac_optarg ;;
993
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
998
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1002
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1006
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1010
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1019
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1024
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1031
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1038
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1055
631ef239
AC
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1060
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1065
212380e3
AC
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1069
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1075
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1086
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1091
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1096
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1103
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1108
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1111
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1114
1115 -with-* | --with-*)
7083c021 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
212380e3 1117 # Reject names that are not valid shell variable names.
7083c021 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1119 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1123 *"
1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
212380e3
AC
1130
1131 -without-* | --without-*)
7083c021 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
212380e3 1133 # Reject names that are not valid shell variable names.
7083c021 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
b6d0720c 1135 as_fn_error $? "invalid package name: $ac_useropt"
7083c021
AC
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
212380e3
AC
1146
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1150
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1157
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1164
b6d0720c
AC
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166Try \`$0 --help' for more information"
212380e3
AC
1167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
7083c021
AC
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
b6d0720c 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
7083c021 1175 esac
631ef239 1176 eval $ac_envvar=\$ac_optarg
212380e3
AC
1177 export $ac_envvar ;;
1178
1179 *)
1180 # FIXME: should be removed in autoconf 3.0.
7083c021 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
212380e3 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
7083c021 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b6d0720c 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
212380e3
AC
1185 ;;
1186
1187 esac
1188done
1189
1190if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
b6d0720c 1192 as_fn_error $? "missing argument to $ac_option"
212380e3
AC
1193fi
1194
7083c021
AC
1195if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
b6d0720c 1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
7083c021
AC
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201fi
1202
1203# Check all directory arguments for consistency.
631ef239
AC
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
212380e3 1208do
631ef239 1209 eval ac_val=\$$ac_var
7083c021
AC
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
212380e3 1217 case $ac_val in
631ef239
AC
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1220 esac
b6d0720c 1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
212380e3
AC
1222done
1223
1224# There might be people who depend on the old broken behavior: `$host'
1225# used to hold the argument of --host etc.
1226# FIXME: To remove some day.
1227build=$build_alias
1228host=$host_alias
1229target=$target_alias
1230
1231# FIXME: To remove some day.
1232if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
212380e3
AC
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1237 fi
1238fi
1239
1240ac_tool_prefix=
1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242
1243test "$silent" = yes && exec 6>/dev/null
1244
1245
631ef239
AC
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
b6d0720c 1249 as_fn_error $? "working directory cannot be determined"
631ef239 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
b6d0720c 1251 as_fn_error $? "pwd does not report name of working directory"
631ef239
AC
1252
1253
1254# Find the source files, if location was not specified.
1255if test -z "$srcdir"; then
212380e3 1256 ac_srcdir_defaulted=yes
631ef239 1257 # Try the directory containing this script, then the parent directory.
7083c021
AC
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263$as_echo X"$as_myself" |
631ef239
AC
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
1280 s/.*/./; q'`
212380e3 1281 srcdir=$ac_confdir
631ef239 1282 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3
AC
1283 srcdir=..
1284 fi
1285else
1286 ac_srcdir_defaulted=no
1287fi
631ef239
AC
1288if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
b6d0720c 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
212380e3 1291fi
631ef239
AC
1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
b6d0720c 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
631ef239
AC
1295 pwd)`
1296# When building in place, set srcdir=.
1297if test "$ac_abs_confdir" = "$ac_pwd"; then
1298 srcdir=.
1299fi
1300# Remove unnecessary trailing slashes from srcdir.
1301# Double slashes in file names in object file debugging info
1302# mess up M-x gdb in Emacs.
1303case $srcdir in
1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305esac
1306for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311done
212380e3
AC
1312
1313#
1314# Report the --help message.
1315#
1316if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1319 cat <<_ACEOF
dc9aebf4 1320\`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems.
212380e3
AC
1321
1322Usage: $0 [OPTION]... [VAR=VALUE]...
1323
1324To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325VAR=VALUE. See below for descriptions of some of the useful variables.
1326
1327Defaults for the options are specified in brackets.
1328
1329Configuration:
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
b6d0720c 1334 -q, --quiet, --silent do not print \`checking ...' messages
212380e3
AC
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339
212380e3
AC
1340Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
7083c021 1342 [$ac_default_prefix]
212380e3 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
7083c021 1344 [PREFIX]
212380e3
AC
1345
1346By default, \`make install' will install all the files in
1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349for instance \`--prefix=\$HOME'.
1350
1351For better control, use the options below.
1352
1353Fine tuning of the installation directories:
7083c021
AC
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
212380e3
AC
1373_ACEOF
1374
1375 cat <<\_ACEOF
1376_ACEOF
1377fi
1378
1379if test -n "$ac_init_help"; then
1380 case $ac_init_help in
dc9aebf4 1381 short | recursive ) echo "Configuration of charybdis 3.5.0-dev:";;
212380e3
AC
1382 esac
1383 cat <<\_ACEOF
1384
1385Optional Features:
7083c021 1386 --disable-option-checking ignore unrecognized --enable/--with options
212380e3
AC
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
6929cd01 1389 --enable-fhs-paths Use more FHS-like pathnames (for packagers).
212380e3 1390 --enable-ipv6 Enable IPv6 support
631ef239 1391 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3
AC
1392 --disable-openssl Disable OpenSSL support.
1393 --disable-zlib Disable ziplinks support
c1c5fdc4 1394 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1395 --enable-poll Force poll() usage.
1396 --enable-select Force select() usage.
1397 --enable-kqueue Force kqueue() usage.
212380e3
AC
1398 --enable-epoll Force sys_epoll usage (Linux only).
1399 --enable-assert Enable assert(). Choose between soft(warnings) and
1400 hard(aborts the daemon)
1401 --enable-iodebug Enable IO Debugging hooks
1402 --enable-profile Enable profiling
1403 --disable-balloc Disable the block allocator.
212380e3 1404 --enable-small-net Enable small network support.
212380e3
AC
1405 --enable-warnings Enable all sorts of warnings for debugging.
1406
1407Optional Packages:
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-zlib-path=DIR Path to libz.so for ziplinks support.
a6ef3156 1411 --with-shared-sqlite Use shared sqlite
634d4aad
NPB
1412 --with-confdir=DIR Directory to install config files [deprecated, use
1413 --sysconfdir instead].
212380e3
AC
1414 --with-logdir=DIR Directory where to write logfiles.
1415 --with-helpdir=DIR Directory to install help files.
1416 --with-moduledir=DIR Directory to install modules.
9f9b7042
NPB
1417 --with-rundir=DIR Directory in which to store pidfile.
1418 --with-program-prefix= If set, programs installed into PATH will be
1419 installed with names prefixed by this prefix.
b6d0720c
AC
1420 --with-custom-branding=NAME
1421 Custom branding name.
1422 --with-custom-version=NAME
1423 Custom version branding.
b583faf9 1424 --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default
cf533739 1425 31, max 50)
212380e3
AC
1426 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1427 390)
212380e3
AC
1428
1429Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
631ef239 1434 LIBS libraries to pass to the linker, e.g. -l<library>
6fb6bd15 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
631ef239 1436 you have headers in a nonstandard directory <include dir>
212380e3 1437 CPP C preprocessor
b6d0720c
AC
1438 YACC The `Yet Another Compiler Compiler' implementation to use.
1439 Defaults to the first program found out of: `bison -y', `byacc',
1440 `yacc'.
631ef239
AC
1441 YFLAGS The list of arguments that will be passed by default to $YACC.
1442 This script will default YFLAGS to the empty string to avoid a
1443 default value of `-d' given by some make applications.
a5471f24
LS
1444 PKG_CONFIG path to pkg-config utility
1445 PKG_CONFIG_PATH
1446 directories to add to pkg-config's search path
1447 PKG_CONFIG_LIBDIR
1448 path overriding pkg-config's built-in search path
1449 SQLITE_CFLAGS
1450 C compiler flags for SQLITE, overriding pkg-config
1451 SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
212380e3
AC
1452
1453Use these variables to override the choices made by `configure' or to help
1454it to find libraries and programs with nonstandard names/locations.
1455
7083c021 1456Report bugs to the package provider.
212380e3 1457_ACEOF
631ef239 1458ac_status=$?
212380e3
AC
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
212380e3 1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7083c021
AC
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
212380e3
AC
1467 ac_builddir=.
1468
631ef239
AC
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
7083c021 1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 1473 # A ".." for each directory in $ac_dir_suffix.
7083c021 1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
212380e3
AC
1484
1485case $srcdir in
631ef239 1486 .) # We are building in place.
212380e3 1487 ac_srcdir=.
631ef239
AC
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1491 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 1498esac
631ef239
AC
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
212380e3 1509 else
7083c021 1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1513 done
1514fi
1515
631ef239 1516test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1517if $ac_init_version; then
1518 cat <<\_ACEOF
dc9aebf4 1519charybdis configure 3.5.0-dev
2eff3833 1520generated by GNU Autoconf 2.69
212380e3 1521
2eff3833 1522Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525
b676ea3b 1526$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1527_ACEOF
631ef239 1528 exit
212380e3 1529fi
212380e3 1530
7083c021
AC
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
212380e3 1534
7083c021
AC
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
1539{
1540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541 rm -f conftest.$ac_objext
1542 if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545 *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549 (eval "$ac_compile") 2>conftest.err
1550 ac_status=$?
1551 if test -s conftest.err; then
1552 grep -v '^ *+' conftest.err >conftest.er1
1553 cat conftest.er1 >&5
1554 mv -f conftest.er1 conftest.err
1555 fi
1556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557 test $ac_status = 0; } && {
1558 test -z "$ac_c_werror_flag" ||
1559 test ! -s conftest.err
1560 } && test -s conftest.$ac_objext; then :
1561 ac_retval=0
1562else
1563 $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1565
7083c021
AC
1566 ac_retval=1
1567fi
b6d0720c 1568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1569 as_fn_set_status $ac_retval
7083c021
AC
1570
1571} # ac_fn_c_try_compile
1572
1573# ac_fn_c_try_cpp LINENO
1574# ----------------------
1575# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_cpp ()
212380e3 1577{
7083c021
AC
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 if { { ac_try="$ac_cpp conftest.$ac_ext"
1580case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
b6d0720c 1594 test $ac_status = 0; } > conftest.i && {
7083c021
AC
1595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 }; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1602
7083c021
AC
1603 ac_retval=1
1604fi
b6d0720c 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1606 as_fn_set_status $ac_retval
212380e3 1607
7083c021 1608} # ac_fn_c_try_cpp
212380e3 1609
7083c021
AC
1610# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1611# -------------------------------------------------------
1612# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1613# the include files in INCLUDES and setting the cache variable VAR
1614# accordingly.
1615ac_fn_c_check_header_mongrel ()
1616{
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
b6d0720c 1618 if eval \${$3+:} false; then :
7083c021
AC
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620$as_echo_n "checking for $2... " >&6; }
b6d0720c 1621if eval \${$3+:} false; then :
7083c021
AC
1622 $as_echo_n "(cached) " >&6
1623fi
1624eval ac_res=\$$3
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626$as_echo "$ac_res" >&6; }
1627else
1628 # Is the header compilable?
1629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1630$as_echo_n "checking $2 usability... " >&6; }
1631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h. */
1633$4
1634#include <$2>
1635_ACEOF
1636if ac_fn_c_try_compile "$LINENO"; then :
1637 ac_header_compiler=yes
1638else
1639 ac_header_compiler=no
1640fi
1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1643$as_echo "$ac_header_compiler" >&6; }
212380e3 1644
7083c021
AC
1645# Is the header present?
1646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1647$as_echo_n "checking $2 presence... " >&6; }
1648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1649/* end confdefs.h. */
1650#include <$2>
1651_ACEOF
1652if ac_fn_c_try_cpp "$LINENO"; then :
1653 ac_header_preproc=yes
1654else
1655 ac_header_preproc=no
1656fi
b6d0720c 1657rm -f conftest.err conftest.i conftest.$ac_ext
7083c021
AC
1658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1659$as_echo "$ac_header_preproc" >&6; }
212380e3 1660
7083c021
AC
1661# So? What about this header?
1662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1663 yes:no: )
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1665$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 ;;
1669 no:yes:* )
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1671$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1673$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1675$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1677$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1679$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 ;;
1681esac
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683$as_echo_n "checking for $2... " >&6; }
b6d0720c 1684if eval \${$3+:} false; then :
7083c021
AC
1685 $as_echo_n "(cached) " >&6
1686else
1687 eval "$3=\$ac_header_compiler"
1688fi
1689eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691$as_echo "$ac_res" >&6; }
1692fi
b6d0720c 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1694
7083c021 1695} # ac_fn_c_check_header_mongrel
212380e3 1696
7083c021
AC
1697# ac_fn_c_try_run LINENO
1698# ----------------------
1699# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1700# that executables *can* be run.
1701ac_fn_c_try_run ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_link"
1705case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>&5
1712 ac_status=$?
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1715 { { case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_try") 2>&5
1722 ac_status=$?
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; }; }; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: program exited with status $ac_status" >&5
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1730
7083c021
AC
1731 ac_retval=$ac_status
1732fi
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1735 as_fn_set_status $ac_retval
212380e3 1736
7083c021 1737} # ac_fn_c_try_run
212380e3 1738
7083c021
AC
1739# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1740# -------------------------------------------------------
1741# Tests whether HEADER exists and can be compiled using the include files in
1742# INCLUDES, setting the cache variable VAR accordingly.
1743ac_fn_c_check_header_compile ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747$as_echo_n "checking for $2... " >&6; }
b6d0720c 1748if eval \${$3+:} false; then :
7083c021
AC
1749 $as_echo_n "(cached) " >&6
1750else
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752/* end confdefs.h. */
1753$4
1754#include <$2>
212380e3 1755_ACEOF
7083c021
AC
1756if ac_fn_c_try_compile "$LINENO"; then :
1757 eval "$3=yes"
1758else
1759 eval "$3=no"
1760fi
1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762fi
1763eval ac_res=\$$3
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765$as_echo "$ac_res" >&6; }
b6d0720c 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1767
7083c021 1768} # ac_fn_c_check_header_compile
212380e3 1769
7083c021
AC
1770# ac_fn_c_try_link LINENO
1771# -----------------------
1772# Try to link conftest.$ac_ext, and return whether this succeeded.
1773ac_fn_c_try_link ()
1774{
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 rm -f conftest.$ac_objext conftest$ac_exeext
1777 if { { ac_try="$ac_link"
1778case "(($ac_try" in
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1781esac
1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783$as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>conftest.err
1785 ac_status=$?
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1790 fi
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } && {
1793 test -z "$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1795 } && test -s conftest$ac_exeext && {
1796 test "$cross_compiling" = yes ||
2eff3833 1797 test -x conftest$ac_exeext
7083c021
AC
1798 }; then :
1799 ac_retval=0
212380e3 1800else
7083c021
AC
1801 $as_echo "$as_me: failed program was:" >&5
1802sed 's/^/| /' conftest.$ac_ext >&5
212380e3 1803
7083c021 1804 ac_retval=1
212380e3 1805fi
7083c021
AC
1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1808 # interfere with the next link command; also delete a directory that is
1809 # left behind by Apple's compiler. We do this before executing the actions.
1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
b6d0720c 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 1812 as_fn_set_status $ac_retval
212380e3 1813
7083c021 1814} # ac_fn_c_try_link
212380e3 1815
7083c021
AC
1816# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1817# -------------------------------------------
1818# Tests whether TYPE exists after having included INCLUDES, setting cache
1819# variable VAR accordingly.
1820ac_fn_c_check_type ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824$as_echo_n "checking for $2... " >&6; }
b6d0720c 1825if eval \${$3+:} false; then :
7083c021 1826 $as_echo_n "(cached) " >&6
212380e3 1827else
7083c021
AC
1828 eval "$3=no"
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h. */
1831$4
1832int
1833main ()
1834{
1835if (sizeof ($2))
1836 return 0;
1837 ;
1838 return 0;
1839}
212380e3 1840_ACEOF
7083c021
AC
1841if ac_fn_c_try_compile "$LINENO"; then :
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1843/* end confdefs.h. */
7083c021 1844$4
212380e3
AC
1845int
1846main ()
1847{
7083c021
AC
1848if (sizeof (($2)))
1849 return 0;
212380e3
AC
1850 ;
1851 return 0;
1852}
1853_ACEOF
7083c021 1854if ac_fn_c_try_compile "$LINENO"; then :
212380e3 1855
631ef239 1856else
7083c021 1857 eval "$3=yes"
212380e3 1858fi
7083c021 1859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1860fi
7083c021 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 1862fi
7083c021
AC
1863eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
b6d0720c 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
212380e3 1867
7083c021
AC
1868} # ac_fn_c_check_type
1869
1870# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1871# --------------------------------------------
1872# Tries to find the compile-time value of EXPR in a program that includes
1873# INCLUDES, setting VAR accordingly. Returns whether the value could be
1874# computed
1875ac_fn_c_compute_int ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if test "$cross_compiling" = yes; then
1879 # Depending upon the size, compute the lo and hi bounds.
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$4
1883int
1884main ()
1885{
1886static int test_array [1 - 2 * !(($2) >= 0)];
2eff3833
JT
1887test_array [0] = 0;
1888return test_array [0];
7083c021
AC
1889
1890 ;
1891 return 0;
1892}
212380e3 1893_ACEOF
7083c021
AC
1894if ac_fn_c_try_compile "$LINENO"; then :
1895 ac_lo=0 ac_mid=0
1896 while :; do
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1898/* end confdefs.h. */
7083c021
AC
1899$4
1900int
1901main ()
1902{
1903static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
1904test_array [0] = 0;
1905return test_array [0];
212380e3 1906
7083c021
AC
1907 ;
1908 return 0;
1909}
212380e3 1910_ACEOF
7083c021
AC
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_hi=$ac_mid; break
212380e3 1913else
7083c021
AC
1914 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1915 if test $ac_lo -le $ac_mid; then
1916 ac_lo= ac_hi=
1917 break
1918 fi
1919 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
212380e3 1920fi
631ef239 1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
1922 done
1923else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926$4
1927int
1928main ()
1929{
1930static int test_array [1 - 2 * !(($2) < 0)];
2eff3833
JT
1931test_array [0] = 0;
1932return test_array [0];
212380e3 1933
7083c021
AC
1934 ;
1935 return 0;
1936}
212380e3 1937_ACEOF
7083c021
AC
1938if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_hi=-1 ac_mid=-1
1940 while :; do
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943$4
1944int
1945main ()
1946{
1947static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2eff3833
JT
1948test_array [0] = 0;
1949return test_array [0];
212380e3 1950
7083c021
AC
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_lo=$ac_mid; break
1957else
1958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1959 if test $ac_mid -le $ac_hi; then
1960 ac_lo= ac_hi=
1961 break
1962 fi
1963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
212380e3 1964fi
7083c021
AC
1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 done
212380e3 1967else
7083c021
AC
1968 ac_lo= ac_hi=
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971fi
1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973# Binary search between lo and hi bounds.
1974while test "x$ac_lo" != "x$ac_hi"; do
1975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 1977/* end confdefs.h. */
7083c021
AC
1978$4
1979int
1980main ()
1981{
1982static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2eff3833
JT
1983test_array [0] = 0;
1984return test_array [0];
7083c021
AC
1985
1986 ;
1987 return 0;
1988}
212380e3 1989_ACEOF
7083c021
AC
1990if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_hi=$ac_mid
212380e3 1992else
7083c021 1993 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
212380e3 1994fi
7083c021
AC
1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996done
1997case $ac_lo in #((
1998?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1999'') ac_retval=1 ;;
2000esac
2001 else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$4
2005static long int longval () { return $2; }
2006static unsigned long int ulongval () { return $2; }
2007#include <stdio.h>
2008#include <stdlib.h>
2009int
2010main ()
2011{
631ef239 2012
7083c021
AC
2013 FILE *f = fopen ("conftest.val", "w");
2014 if (! f)
2015 return 1;
2016 if (($2) < 0)
2017 {
2018 long int i = longval ();
2019 if (i != ($2))
2020 return 1;
2021 fprintf (f, "%ld", i);
2022 }
2023 else
2024 {
2025 unsigned long int i = ulongval ();
2026 if (i != ($2))
2027 return 1;
2028 fprintf (f, "%lu", i);
2029 }
2030 /* Do not output a trailing newline, as this causes \r\n confusion
2031 on some platforms. */
2032 return ferror (f) || fclose (f) != 0;
212380e3 2033
7083c021
AC
2034 ;
2035 return 0;
2036}
212380e3 2037_ACEOF
7083c021
AC
2038if ac_fn_c_try_run "$LINENO"; then :
2039 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
212380e3 2040else
7083c021 2041 ac_retval=1
212380e3 2042fi
7083c021
AC
2043rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2044 conftest.$ac_objext conftest.beam conftest.$ac_ext
2045rm -f conftest.val
631ef239 2046
7083c021 2047 fi
b6d0720c 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6fb6bd15 2049 as_fn_set_status $ac_retval
212380e3 2050
7083c021 2051} # ac_fn_c_compute_int
212380e3 2052
7083c021
AC
2053# ac_fn_c_check_func LINENO FUNC VAR
2054# ----------------------------------
2055# Tests whether FUNC exists, setting the cache variable VAR accordingly
2056ac_fn_c_check_func ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
b6d0720c 2061if eval \${$3+:} false; then :
7083c021 2062 $as_echo_n "(cached) " >&6
212380e3 2063else
7083c021 2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 2065/* end confdefs.h. */
7083c021
AC
2066/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2068#define $2 innocuous_$2
2069
2070/* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $2 (); below.
2072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073 <limits.h> exists even on freestanding compilers. */
2074
212380e3
AC
2075#ifdef __STDC__
2076# include <limits.h>
2077#else
2078# include <assert.h>
2079#endif
212380e3 2080
7083c021 2081#undef $2
631ef239 2082
7083c021
AC
2083/* Override any GCC internal prototype to avoid an error.
2084 Use char because int might match the return type of a GCC
2085 builtin and then its argument prototype would still apply. */
2086#ifdef __cplusplus
2087extern "C"
2088#endif
2089char $2 ();
2090/* The GNU C library defines this for functions which it implements
2091 to always fail with ENOSYS. Some functions are actually named
2092 something starting with __ and the normal name is an alias. */
2093#if defined __stub_$2 || defined __stub___$2
2094choke me
2095#endif
212380e3 2096
7083c021
AC
2097int
2098main ()
2099{
2100return $2 ();
2101 ;
2102 return 0;
2103}
212380e3 2104_ACEOF
7083c021
AC
2105if ac_fn_c_try_link "$LINENO"; then :
2106 eval "$3=yes"
212380e3 2107else
7083c021
AC
2108 eval "$3=no"
2109fi
2110rm -f core conftest.err conftest.$ac_objext \
2111 conftest$ac_exeext conftest.$ac_ext
212380e3 2112fi
7083c021
AC
2113eval ac_res=\$$3
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115$as_echo "$ac_res" >&6; }
b6d0720c 2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
631ef239 2117
7083c021
AC
2118} # ac_fn_c_check_func
2119cat >config.log <<_ACEOF
2120This file contains any messages produced by compilers while
2121running configure, to aid debugging if configure makes a mistake.
212380e3 2122
dc9aebf4 2123It was created by charybdis $as_me 3.5.0-dev, which was
2eff3833 2124generated by GNU Autoconf 2.69. Invocation command line was
212380e3 2125
7083c021 2126 $ $0 $@
212380e3 2127
7083c021
AC
2128_ACEOF
2129exec 5>>config.log
2130{
2131cat <<_ASUNAME
2132## --------- ##
2133## Platform. ##
2134## --------- ##
2135
2136hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2137uname -m = `(uname -m) 2>/dev/null || echo unknown`
2138uname -r = `(uname -r) 2>/dev/null || echo unknown`
2139uname -s = `(uname -s) 2>/dev/null || echo unknown`
2140uname -v = `(uname -v) 2>/dev/null || echo unknown`
2141
2142/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2143/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2144
2145/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2146/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2147/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2148/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2149/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2150/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2151/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2152
2153_ASUNAME
212380e3 2154
631ef239 2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083c021 2156for as_dir in $PATH
631ef239
AC
2157do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
7083c021 2160 $as_echo "PATH: $as_dir"
631ef239 2161 done
631ef239
AC
2162IFS=$as_save_IFS
2163
7083c021 2164} >&5
631ef239 2165
7083c021 2166cat >&5 <<_ACEOF
631ef239 2167
631ef239 2168
7083c021
AC
2169## ----------- ##
2170## Core tests. ##
2171## ----------- ##
631ef239 2172
7083c021 2173_ACEOF
631ef239
AC
2174
2175
7083c021
AC
2176# Keep a trace of the command line.
2177# Strip out --no-create and --no-recursion so they do not pile up.
2178# Strip out --silent because we don't want to record it for future runs.
2179# Also quote any args containing shell meta-characters.
2180# Make two passes to allow for proper duplicate-argument suppression.
2181ac_configure_args=
2182ac_configure_args0=
2183ac_configure_args1=
2184ac_must_keep_next=false
2185for ac_pass in 1 2
631ef239 2186do
7083c021 2187 for ac_arg
631ef239 2188 do
7083c021
AC
2189 case $ac_arg in
2190 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2192 | -silent | --silent | --silen | --sile | --sil)
2193 continue ;;
2194 *\'*)
2195 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 esac
2197 case $ac_pass in
2198 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2199 2)
2200 as_fn_append ac_configure_args1 " '$ac_arg'"
2201 if test $ac_must_keep_next = true; then
2202 ac_must_keep_next=false # Got value, back to normal.
2203 else
2204 case $ac_arg in
2205 *=* | --config-cache | -C | -disable-* | --disable-* \
2206 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2207 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2208 | -with-* | --with-* | -without-* | --without-* | --x)
2209 case "$ac_configure_args0 " in
2210 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2211 esac
2212 ;;
2213 -* ) ac_must_keep_next=true ;;
2214 esac
2215 fi
2216 as_fn_append ac_configure_args " '$ac_arg'"
2217 ;;
2218 esac
631ef239
AC
2219 done
2220done
7083c021
AC
2221{ ac_configure_args0=; unset ac_configure_args0;}
2222{ ac_configure_args1=; unset ac_configure_args1;}
631ef239 2223
7083c021
AC
2224# When interrupted or exit'd, cleanup temporary files, and complete
2225# config.log. We remove comments because anyway the quotes in there
2226# would cause problems or look ugly.
2227# WARNING: Use '\'' to represent an apostrophe within the trap.
2228# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2229trap 'exit_status=$?
2230 # Save into config.log some information that might help in debugging.
2231 {
2232 echo
631ef239 2233
b6d0720c 2234 $as_echo "## ---------------- ##
7083c021 2235## Cache variables. ##
b6d0720c 2236## ---------------- ##"
7083c021
AC
2237 echo
2238 # The following way of writing the cache mishandles newlines in values,
2239(
2240 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2241 eval ac_val=\$$ac_var
2242 case $ac_val in #(
2243 *${as_nl}*)
2244 case $ac_var in #(
2245 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2246$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2247 esac
2248 case $ac_var in #(
2249 _ | IFS | as_nl) ;; #(
2250 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2251 *) { eval $ac_var=; unset $ac_var;} ;;
2252 esac ;;
2253 esac
2254 done
2255 (set) 2>&1 |
2256 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2257 *${as_nl}ac_space=\ *)
2258 sed -n \
2259 "s/'\''/'\''\\\\'\'''\''/g;
2260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2261 ;; #(
2262 *)
2263 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2264 ;;
2265 esac |
2266 sort
2267)
2268 echo
631ef239 2269
b6d0720c 2270 $as_echo "## ----------------- ##
7083c021 2271## Output variables. ##
b6d0720c 2272## ----------------- ##"
7083c021
AC
2273 echo
2274 for ac_var in $ac_subst_vars
2275 do
2276 eval ac_val=\$$ac_var
2277 case $ac_val in
2278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2279 esac
2280 $as_echo "$ac_var='\''$ac_val'\''"
2281 done | sort
2282 echo
631ef239 2283
7083c021 2284 if test -n "$ac_subst_files"; then
b6d0720c 2285 $as_echo "## ------------------- ##
7083c021 2286## File substitutions. ##
b6d0720c 2287## ------------------- ##"
7083c021
AC
2288 echo
2289 for ac_var in $ac_subst_files
2290 do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 esac
2295 $as_echo "$ac_var='\''$ac_val'\''"
2296 done | sort
2297 echo
2298 fi
631ef239 2299
7083c021 2300 if test -s confdefs.h; then
b6d0720c 2301 $as_echo "## ----------- ##
7083c021 2302## confdefs.h. ##
b6d0720c 2303## ----------- ##"
7083c021
AC
2304 echo
2305 cat confdefs.h
2306 echo
2307 fi
2308 test "$ac_signal" != 0 &&
2309 $as_echo "$as_me: caught signal $ac_signal"
2310 $as_echo "$as_me: exit $exit_status"
2311 } >&5
2312 rm -f core *.core core.conftest.* &&
2313 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2314 exit $exit_status
2315' 0
2316for ac_signal in 1 2 13 15; do
2317 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2318done
2319ac_signal=0
631ef239 2320
7083c021
AC
2321# confdefs.h avoids OS command line length limits that DEFS can exceed.
2322rm -f -r conftest* confdefs.h
631ef239 2323
7083c021 2324$as_echo "/* confdefs.h */" > confdefs.h
212380e3 2325
7083c021 2326# Predefined preprocessor variables.
212380e3 2327
7083c021
AC
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_NAME "$PACKAGE_NAME"
212380e3 2330_ACEOF
212380e3 2331
7083c021
AC
2332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
212380e3 2334_ACEOF
212380e3 2335
7083c021
AC
2336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_VERSION "$PACKAGE_VERSION"
212380e3 2338_ACEOF
212380e3 2339
7083c021
AC
2340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_STRING "$PACKAGE_STRING"
2342_ACEOF
212380e3 2343
7083c021
AC
2344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2346_ACEOF
212380e3 2347
7083c021
AC
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_URL "$PACKAGE_URL"
2350_ACEOF
212380e3 2351
631ef239 2352
7083c021
AC
2353# Let the site file select an alternate cache file if it wants to.
2354# Prefer an explicitly selected file to automatically selected ones.
2355ac_site_file1=NONE
2356ac_site_file2=NONE
2357if test -n "$CONFIG_SITE"; then
b6d0720c
AC
2358 # We do not want a PATH search for config.site.
2359 case $CONFIG_SITE in #((
2360 -*) ac_site_file1=./$CONFIG_SITE;;
2361 */*) ac_site_file1=$CONFIG_SITE;;
2362 *) ac_site_file1=./$CONFIG_SITE;;
2363 esac
7083c021
AC
2364elif test "x$prefix" != xNONE; then
2365 ac_site_file1=$prefix/share/config.site
2366 ac_site_file2=$prefix/etc/config.site
212380e3 2367else
7083c021
AC
2368 ac_site_file1=$ac_default_prefix/share/config.site
2369 ac_site_file2=$ac_default_prefix/etc/config.site
2370fi
2371for ac_site_file in "$ac_site_file1" "$ac_site_file2"
212380e3 2372do
7083c021 2373 test "x$ac_site_file" = xNONE && continue
6fb6bd15 2374 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
7083c021
AC
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2377 sed 's/^/| /' "$ac_site_file" >&5
b6d0720c
AC
2378 . "$ac_site_file" \
2379 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381as_fn_error $? "failed to load site script $ac_site_file
2382See \`config.log' for more details" "$LINENO" 5; }
212380e3
AC
2383 fi
2384done
212380e3 2385
7083c021 2386if test -r "$cache_file"; then
6fb6bd15
AC
2387 # Some versions of bash will fail to source /dev/null (special files
2388 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2389 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
7083c021
AC
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2391$as_echo "$as_me: loading cache $cache_file" >&6;}
2392 case $cache_file in
2393 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2394 *) . "./$cache_file";;
2395 esac
2396 fi
212380e3 2397else
7083c021
AC
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2399$as_echo "$as_me: creating cache $cache_file" >&6;}
2400 >$cache_file
212380e3
AC
2401fi
2402
7083c021
AC
2403# Check that the precious variables saved in the cache have kept the same
2404# value.
2405ac_cache_corrupted=false
2406for ac_var in $ac_precious_vars; do
2407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2408 eval ac_new_set=\$ac_env_${ac_var}_set
2409 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2410 eval ac_new_val=\$ac_env_${ac_var}_value
2411 case $ac_old_set,$ac_new_set in
2412 set,)
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2414$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2415 ac_cache_corrupted=: ;;
2416 ,set)
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2418$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2419 ac_cache_corrupted=: ;;
2420 ,);;
2421 *)
2422 if test "x$ac_old_val" != "x$ac_new_val"; then
2423 # differences in whitespace do not lead to failure.
2424 ac_old_val_w=`echo x $ac_old_val`
2425 ac_new_val_w=`echo x $ac_new_val`
2426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2428$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2429 ac_cache_corrupted=:
2430 else
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2432$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2433 eval $ac_var=\$ac_old_val
2434 fi
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2436$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2438$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2439 fi;;
2440 esac
2441 # Pass precious variables to config.status.
2442 if test "$ac_new_set" = set; then
2443 case $ac_new_val in
2444 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2445 *) ac_arg=$ac_var=$ac_new_val ;;
2446 esac
2447 case " $ac_configure_args " in
2448 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2449 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2450 esac
212380e3
AC
2451 fi
2452done
7083c021
AC
2453if $ac_cache_corrupted; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2457$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
b6d0720c 2458 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
212380e3 2459fi
7083c021
AC
2460## -------------------- ##
2461## Main body of script. ##
2462## -------------------- ##
212380e3 2463
7083c021
AC
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 2469
212380e3 2470
212380e3 2471
a5471f24 2472
7083c021 2473ac_config_headers="$ac_config_headers include/setup.h"
631ef239 2474
212380e3 2475
212380e3 2476
631ef239 2477
7083c021
AC
2478ac_ext=c
2479ac_cpp='$CPP $CPPFLAGS'
2480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2482ac_compiler_gnu=$ac_cv_c_compiler_gnu
2483if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}gcc; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2488if ${ac_cv_prog_CC+:} false; then :
7083c021 2489 $as_echo_n "(cached) " >&6
212380e3 2490else
7083c021
AC
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
7083c021 2499 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2501 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2503 break 2
2504 fi
2505done
7083c021 2506 done
631ef239 2507IFS=$as_save_IFS
212380e3 2508
212380e3 2509fi
7083c021
AC
2510fi
2511CC=$ac_cv_prog_CC
2512if test -n "$CC"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2514$as_echo "$CC" >&6; }
212380e3 2515else
7083c021
AC
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
212380e3
AC
2518fi
2519
631ef239 2520
7083c021
AC
2521fi
2522if test -z "$ac_cv_prog_CC"; then
2523 ac_ct_CC=$CC
2524 # Extract the first word of "gcc", so it can be a program name with args.
2525set dummy gcc; ac_word=$2
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2528if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2529 $as_echo_n "(cached) " >&6
212380e3 2530else
7083c021
AC
2531 if test -n "$ac_ct_CC"; then
2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
7083c021 2539 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2541 ac_cv_prog_ac_ct_CC="gcc"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2543 break 2
2544 fi
2545done
7083c021 2546 done
631ef239 2547IFS=$as_save_IFS
212380e3 2548
212380e3 2549fi
7083c021
AC
2550fi
2551ac_ct_CC=$ac_cv_prog_ac_ct_CC
2552if test -n "$ac_ct_CC"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2554$as_echo "$ac_ct_CC" >&6; }
212380e3 2555else
7083c021
AC
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557$as_echo "no" >&6; }
212380e3
AC
2558fi
2559
7083c021
AC
2560 if test "x$ac_ct_CC" = x; then
2561 CC=""
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564yes:)
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567ac_tool_warned=yes ;;
2568esac
2569 CC=$ac_ct_CC
2570 fi
2571else
2572 CC="$ac_cv_prog_CC"
2573fi
631ef239 2574
7083c021
AC
2575if test -z "$CC"; then
2576 if test -n "$ac_tool_prefix"; then
2577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2578set dummy ${ac_tool_prefix}cc; ac_word=$2
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2580$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2581if ${ac_cv_prog_CC+:} false; then :
7083c021 2582 $as_echo_n "(cached) " >&6
212380e3 2583else
7083c021
AC
2584 if test -n "$CC"; then
2585 ac_cv_prog_CC="$CC" # Let the user override the test.
2586else
2587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2588for as_dir in $PATH
2589do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
7083c021 2592 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2594 ac_cv_prog_CC="${ac_tool_prefix}cc"
2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2596 break 2
2597 fi
2598done
7083c021 2599 done
631ef239 2600IFS=$as_save_IFS
7083c021 2601
212380e3 2602fi
7083c021
AC
2603fi
2604CC=$ac_cv_prog_CC
2605if test -n "$CC"; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2607$as_echo "$CC" >&6; }
212380e3 2608else
7083c021
AC
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2610$as_echo "no" >&6; }
212380e3
AC
2611fi
2612
631ef239 2613
7083c021
AC
2614 fi
2615fi
2616if test -z "$CC"; then
2617 # Extract the first word of "cc", so it can be a program name with args.
2618set dummy cc; ac_word=$2
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2621if ${ac_cv_prog_CC+:} false; then :
7083c021 2622 $as_echo_n "(cached) " >&6
212380e3 2623else
7083c021
AC
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2626else
2627 ac_prog_rejected=no
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212380e3
AC
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
7083c021 2633 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2636 ac_prog_rejected=yes
2637 continue
2638 fi
2639 ac_cv_prog_CC="cc"
2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2641 break 2
2642 fi
2643done
7083c021 2644 done
631ef239 2645IFS=$as_save_IFS
212380e3 2646
7083c021
AC
2647if test $ac_prog_rejected = yes; then
2648 # We found a bogon in the path, so make sure we never use it.
2649 set dummy $ac_cv_prog_CC
2650 shift
2651 if test $# != 0; then
2652 # We chose a different compiler from the bogus one.
2653 # However, it has the same basename, so the bogon will be chosen
2654 # first if we set CC to just the basename; use the full file name.
2655 shift
2656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2657 fi
212380e3 2658fi
7083c021
AC
2659fi
2660fi
2661CC=$ac_cv_prog_CC
2662if test -n "$CC"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2664$as_echo "$CC" >&6; }
212380e3 2665else
7083c021
AC
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667$as_echo "no" >&6; }
212380e3
AC
2668fi
2669
2670
7083c021
AC
2671fi
2672if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 for ac_prog in cl.exe
2675 do
2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2680if ${ac_cv_prog_CC+:} false; then :
7083c021 2681 $as_echo_n "(cached) " >&6
212380e3 2682else
7083c021
AC
2683 if test -n "$CC"; then
2684 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3
AC
2685else
2686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687for as_dir in $PATH
2688do
2689 IFS=$as_save_IFS
2690 test -z "$as_dir" && as_dir=.
7083c021 2691 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2695 break 2
2696 fi
2697done
7083c021 2698 done
631ef239 2699IFS=$as_save_IFS
212380e3
AC
2700
2701fi
2702fi
7083c021
AC
2703CC=$ac_cv_prog_CC
2704if test -n "$CC"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2706$as_echo "$CC" >&6; }
212380e3 2707else
7083c021
AC
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709$as_echo "no" >&6; }
212380e3
AC
2710fi
2711
631ef239 2712
7083c021
AC
2713 test -n "$CC" && break
2714 done
212380e3 2715fi
7083c021
AC
2716if test -z "$CC"; then
2717 ac_ct_CC=$CC
2718 for ac_prog in cl.exe
212380e3
AC
2719do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
7083c021
AC
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 2724if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 2725 $as_echo_n "(cached) " >&6
212380e3 2726else
7083c021
AC
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3
AC
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
7083c021 2735 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
2737 ac_cv_prog_ac_ct_CC="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
212380e3
AC
2739 break 2
2740 fi
2741done
7083c021 2742 done
631ef239 2743IFS=$as_save_IFS
212380e3
AC
2744
2745fi
2746fi
7083c021
AC
2747ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750$as_echo "$ac_ct_CC" >&6; }
212380e3 2751else
7083c021
AC
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
212380e3
AC
2754fi
2755
631ef239 2756
7083c021 2757 test -n "$ac_ct_CC" && break
212380e3 2758done
212380e3 2759
7083c021
AC
2760 if test "x$ac_ct_CC" = x; then
2761 CC=""
2762 else
2763 case $cross_compiling:$ac_tool_warned in
2764yes:)
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767ac_tool_warned=yes ;;
2768esac
2769 CC=$ac_ct_CC
2770 fi
2771fi
2772
2773fi
2774
2775
2776test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2778as_fn_error $? "no acceptable C compiler found in \$PATH
2779See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
2780
2781# Provide some information about the compiler.
2782$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2783set X $ac_compile
2784ac_compiler=$2
2785for ac_option in --version -v -V -qversion; do
2786 { { ac_try="$ac_compiler $ac_option >&5"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792$as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2794 ac_status=$?
2795 if test -s conftest.err; then
2796 sed '10a\
2797... rest of stderr output deleted ...
2798 10q' conftest.err >conftest.er1
2799 cat conftest.er1 >&5
7083c021 2800 fi
6fb6bd15 2801 rm -f conftest.er1 conftest.err
7083c021
AC
2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2803 test $ac_status = 0; }
2804done
2805
2806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807/* end confdefs.h. */
6fb6bd15 2808
212380e3 2809int
7083c021 2810main ()
212380e3 2811{
7083c021
AC
2812
2813 ;
2814 return 0;
212380e3
AC
2815}
2816_ACEOF
7083c021 2817ac_clean_files_save=$ac_clean_files
6fb6bd15 2818ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7083c021
AC
2819# Try to create an executable without -o first, disregard a.out.
2820# It will help us diagnose broken compilers, and finding out an intuition
2821# of exeext.
6fb6bd15
AC
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2823$as_echo_n "checking whether the C compiler works... " >&6; }
7083c021
AC
2824ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2825
2826# The possible output files:
2827ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2828
2829ac_rmfiles=
2830for ac_file in $ac_files
2831do
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2834 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 esac
2836done
2837rm -f $ac_rmfiles
2838
2839if { { ac_try="$ac_link_default"
631ef239
AC
2840case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843esac
7083c021
AC
2844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845$as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_link_default") 2>&5
212380e3 2847 ac_status=$?
7083c021
AC
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }; then :
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852# in a Makefile. We should not override ac_cv_exeext if it was cached,
2853# so that the user can short-circuit this test for compilers unknown to
2854# Autoconf.
2855for ac_file in $ac_files ''
2856do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2860 ;;
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 fi
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
2875 break;;
2876 * )
2877 break;;
2878 esac
2879done
2880test "$ac_cv_exeext" = no && ac_cv_exeext=
212380e3 2881
212380e3 2882else
7083c021 2883 ac_file=''
631ef239 2884fi
7083c021 2885if test -z "$ac_file"; then :
6fb6bd15
AC
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887$as_echo "no" >&6; }
2888$as_echo "$as_me: failed program was:" >&5
7083c021
AC
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2893as_fn_error 77 "C compiler cannot create executables
2894See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2895else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897$as_echo "yes" >&6; }
631ef239 2898fi
6fb6bd15
AC
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2900$as_echo_n "checking for C compiler default output file name... " >&6; }
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2902$as_echo "$ac_file" >&6; }
7083c021 2903ac_exeext=$ac_cv_exeext
631ef239 2904
6fb6bd15 2905rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7083c021 2906ac_clean_files=$ac_clean_files_save
7083c021
AC
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2908$as_echo_n "checking for suffix of executables... " >&6; }
2909if { { ac_try="$ac_link"
2910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
2914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915$as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_link") 2>&5
2917 ac_status=$?
2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2919 test $ac_status = 0; }; then :
2920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2921# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2922# work properly (i.e., refer to `conftest.exe'), while it won't with
2923# `rm'.
2924for ac_file in conftest.exe conftest conftest.*; do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 break;;
2930 * ) break;;
2931 esac
2932done
212380e3 2933else
7083c021
AC
2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
2936as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2937See \`config.log' for more details" "$LINENO" 5; }
7083c021 2938fi
6fb6bd15 2939rm -f conftest conftest$ac_cv_exeext
7083c021
AC
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2941$as_echo "$ac_cv_exeext" >&6; }
2942
2943rm -f conftest.$ac_ext
2944EXEEXT=$ac_cv_exeext
2945ac_exeext=$EXEEXT
6fb6bd15
AC
2946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948#include <stdio.h>
2949int
2950main ()
2951{
2952FILE *f = fopen ("conftest.out", "w");
2953 return ferror (f) || fclose (f) != 0;
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959ac_clean_files="$ac_clean_files conftest.out"
2960# Check that the compiler produces executables we can run. If not, either
2961# the compiler is broken, or we cross compile.
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2963$as_echo_n "checking whether we are cross compiling... " >&6; }
2964if test "$cross_compiling" != yes; then
2965 { { ac_try="$ac_link"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971$as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_link") 2>&5
2973 ac_status=$?
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; }
2976 if { ac_try='./conftest$ac_cv_exeext'
2977 { { case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982$as_echo "$ac_try_echo"; } >&5
2983 (eval "$ac_try") 2>&5
2984 ac_status=$?
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }; }; then
2987 cross_compiling=no
2988 else
2989 if test "$cross_compiling" = maybe; then
2990 cross_compiling=yes
2991 else
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c 2994as_fn_error $? "cannot run C compiled programs.
6fb6bd15 2995If you meant to cross compile, use \`--host'.
b6d0720c 2996See \`config.log' for more details" "$LINENO" 5; }
6fb6bd15
AC
2997 fi
2998 fi
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3001$as_echo "$cross_compiling" >&6; }
3002
3003rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3004ac_clean_files=$ac_clean_files_save
7083c021
AC
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3006$as_echo_n "checking for suffix of object files... " >&6; }
b6d0720c 3007if ${ac_cv_objext+:} false; then :
7083c021
AC
3008 $as_echo_n "(cached) " >&6
3009else
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011/* end confdefs.h. */
212380e3 3012
7083c021
AC
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
212380e3 3020_ACEOF
7083c021
AC
3021rm -f conftest.o conftest.obj
3022if { { ac_try="$ac_compile"
631ef239
AC
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
7083c021
AC
3027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028$as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_compile") 2>&5
212380e3 3030 ac_status=$?
7083c021
AC
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 for ac_file in conftest.o conftest.obj conftest.*; do
3034 test -f "$ac_file" || continue;
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3038 break;;
3039 esac
3040done
212380e3 3041else
7083c021 3042 $as_echo "$as_me: failed program was:" >&5
212380e3
AC
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
7083c021
AC
3045{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3047as_fn_error $? "cannot compute suffix of object files: cannot compile
3048See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
3049fi
3050rm -f conftest.$ac_cv_objext conftest.$ac_ext
212380e3 3051fi
7083c021
AC
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3053$as_echo "$ac_cv_objext" >&6; }
3054OBJEXT=$ac_cv_objext
3055ac_objext=$OBJEXT
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3057$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 3058if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021
AC
3059 $as_echo_n "(cached) " >&6
3060else
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h. */
212380e3 3063
7083c021
AC
3064int
3065main ()
3066{
3067#ifndef __GNUC__
3068 choke me
3069#endif
212380e3 3070
7083c021
AC
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075if ac_fn_c_try_compile "$LINENO"; then :
3076 ac_compiler_gnu=yes
3077else
3078 ac_compiler_gnu=no
212380e3 3079fi
7083c021
AC
3080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081ac_cv_c_compiler_gnu=$ac_compiler_gnu
3082
3083fi
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3085$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3086if test $ac_compiler_gnu = yes; then
3087 GCC=yes
3088else
3089 GCC=
212380e3 3090fi
7083c021
AC
3091ac_test_CFLAGS=${CFLAGS+set}
3092ac_save_CFLAGS=$CFLAGS
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3094$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 3095if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
3096 $as_echo_n "(cached) " >&6
3097else
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3100 ac_cv_prog_cc_g=no
3101 CFLAGS="-g"
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103/* end confdefs.h. */
212380e3 3104
7083c021
AC
3105int
3106main ()
3107{
631ef239 3108
7083c021
AC
3109 ;
3110 return 0;
3111}
212380e3 3112_ACEOF
7083c021
AC
3113if ac_fn_c_try_compile "$LINENO"; then :
3114 ac_cv_prog_cc_g=yes
212380e3 3115else
7083c021
AC
3116 CFLAGS=""
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118/* end confdefs.h. */
212380e3 3119
7083c021
AC
3120int
3121main ()
3122{
631ef239 3123
7083c021
AC
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128if ac_fn_c_try_compile "$LINENO"; then :
631ef239 3129
7083c021
AC
3130else
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3132 CFLAGS="-g"
3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h. */
212380e3 3135
7083c021
AC
3136int
3137main ()
3138{
212380e3 3139
7083c021
AC
3140 ;
3141 return 0;
3142}
212380e3 3143_ACEOF
7083c021
AC
3144if ac_fn_c_try_compile "$LINENO"; then :
3145 ac_cv_prog_cc_g=yes
212380e3 3146fi
7083c021 3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3148fi
7083c021 3149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3150fi
7083c021
AC
3151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3152 ac_c_werror_flag=$ac_save_c_werror_flag
212380e3 3153fi
7083c021
AC
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3155$as_echo "$ac_cv_prog_cc_g" >&6; }
3156if test "$ac_test_CFLAGS" = set; then
3157 CFLAGS=$ac_save_CFLAGS
3158elif test $ac_cv_prog_cc_g = yes; then
3159 if test "$GCC" = yes; then
3160 CFLAGS="-g -O2"
3161 else
3162 CFLAGS="-g"
3163 fi
212380e3 3164else
7083c021
AC
3165 if test "$GCC" = yes; then
3166 CFLAGS="-O2"
3167 else
3168 CFLAGS=
3169 fi
3170fi
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3172$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 3173if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
3174 $as_echo_n "(cached) " >&6
3175else
3176 ac_cv_prog_cc_c89=no
3177ac_save_CC=$CC
3178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3179/* end confdefs.h. */
212380e3 3180#include <stdarg.h>
7083c021 3181#include <stdio.h>
2eff3833 3182struct stat;
7083c021
AC
3183/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3184struct buf { int x; };
3185FILE * (*rcsopen) (struct buf *, struct stat *, int);
3186static char *e (p, i)
3187 char **p;
3188 int i;
3189{
3190 return p[i];
3191}
3192static char *f (char * (*g) (char **, int), char **p, ...)
3193{
3194 char *s;
3195 va_list v;
3196 va_start (v,p);
3197 s = g (p, va_arg (v,int));
3198 va_end (v);
3199 return s;
3200}
3201
3202/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3203 function prototypes and stuff, but not '\xHH' hex character constants.
3204 These don't provoke an error unfortunately, instead are silently treated
3205 as 'x'. The following induces an error, until -std is added to get
3206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3207 array size at least. It's necessary to write '\x00'==0 to get something
3208 that's true only with -std. */
3209int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3210
3211/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3212 inside strings and character constants. */
3213#define FOO(x) 'x'
3214int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
212380e3 3215
7083c021
AC
3216int test (int i, double x);
3217struct s1 {int (*f) (int a);};
3218struct s2 {int (*f) (double a);};
3219int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3220int argc;
3221char **argv;
212380e3
AC
3222int
3223main ()
3224{
7083c021 3225return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
3226 ;
3227 return 0;
3228}
3229_ACEOF
7083c021
AC
3230for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3232do
3233 CC="$ac_save_CC $ac_arg"
3234 if ac_fn_c_try_compile "$LINENO"; then :
3235 ac_cv_prog_cc_c89=$ac_arg
3236fi
3237rm -f core conftest.err conftest.$ac_objext
3238 test "x$ac_cv_prog_cc_c89" != "xno" && break
3239done
3240rm -f conftest.$ac_ext
3241CC=$ac_save_CC
3242
3243fi
3244# AC_CACHE_VAL
3245case "x$ac_cv_prog_cc_c89" in
3246 x)
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3248$as_echo "none needed" >&6; } ;;
3249 xno)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3251$as_echo "unsupported" >&6; } ;;
3252 *)
3253 CC="$CC $ac_cv_prog_cc_c89"
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3255$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 3256esac
7083c021 3257if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 3258
212380e3 3259fi
631ef239 3260
7083c021
AC
3261ac_ext=c
3262ac_cpp='$CPP $CPPFLAGS'
3263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3 3266
212380e3 3267
7083c021
AC
3268ac_ext=c
3269ac_cpp='$CPP $CPPFLAGS'
3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3274$as_echo_n "checking how to run the C preprocessor... " >&6; }
3275# On Suns, sometimes $CPP names a directory.
3276if test -n "$CPP" && test -d "$CPP"; then
3277 CPP=
3278fi
3279if test -z "$CPP"; then
b6d0720c 3280 if ${ac_cv_prog_CPP+:} false; then :
7083c021
AC
3281 $as_echo_n "(cached) " >&6
3282else
3283 # Double quotes because CPP needs to be expanded
3284 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3285 do
3286 ac_preproc_ok=false
3287for ac_c_preproc_warn_flag in '' yes
3288do
3289 # Use a header file that comes with gcc, so configuring glibc
3290 # with a fresh cross-compiler works.
3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3292 # <limits.h> exists even on freestanding compilers.
3293 # On the NeXT, cc -E runs the code through the compiler's parser,
3294 # not just through cpp. "Syntax error" is here to catch this case.
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h. */
3297#ifdef __STDC__
3298# include <limits.h>
3299#else
3300# include <assert.h>
3301#endif
3302 Syntax error
212380e3 3303_ACEOF
7083c021 3304if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3305
7083c021
AC
3306else
3307 # Broken: fails on valid input.
3308continue
212380e3 3309fi
b6d0720c 3310rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3311
7083c021
AC
3312 # OK, works on sane cases. Now check whether nonexistent headers
3313 # can be detected and how.
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3315/* end confdefs.h. */
7083c021 3316#include <ac_nonexistent.h>
212380e3 3317_ACEOF
7083c021
AC
3318if ac_fn_c_try_cpp "$LINENO"; then :
3319 # Broken: success on invalid input.
3320continue
212380e3 3321else
7083c021
AC
3322 # Passes both tests.
3323ac_preproc_ok=:
3324break
212380e3 3325fi
b6d0720c 3326rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3327
7083c021
AC
3328done
3329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3330rm -f conftest.i conftest.err conftest.$ac_ext
7083c021
AC
3331if $ac_preproc_ok; then :
3332 break
212380e3
AC
3333fi
3334
7083c021
AC
3335 done
3336 ac_cv_prog_CPP=$CPP
3337
3338fi
3339 CPP=$ac_cv_prog_CPP
212380e3 3340else
7083c021
AC
3341 ac_cv_prog_CPP=$CPP
3342fi
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3344$as_echo "$CPP" >&6; }
3345ac_preproc_ok=false
3346for ac_c_preproc_warn_flag in '' yes
3347do
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3355/* end confdefs.h. */
7083c021
AC
3356#ifdef __STDC__
3357# include <limits.h>
212380e3 3358#else
7083c021 3359# include <assert.h>
212380e3 3360#endif
7083c021 3361 Syntax error
212380e3 3362_ACEOF
7083c021 3363if ac_fn_c_try_cpp "$LINENO"; then :
212380e3 3364
7083c021
AC
3365else
3366 # Broken: fails on valid input.
3367continue
212380e3 3368fi
b6d0720c 3369rm -f conftest.err conftest.i conftest.$ac_ext
212380e3 3370
7083c021
AC
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3374/* end confdefs.h. */
7083c021 3375#include <ac_nonexistent.h>
212380e3 3376_ACEOF
7083c021
AC
3377if ac_fn_c_try_cpp "$LINENO"; then :
3378 # Broken: success on invalid input.
3379continue
212380e3 3380else
7083c021
AC
3381 # Passes both tests.
3382ac_preproc_ok=:
3383break
212380e3 3384fi
b6d0720c 3385rm -f conftest.err conftest.i conftest.$ac_ext
212380e3
AC
3386
3387done
7083c021 3388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
b6d0720c 3389rm -f conftest.i conftest.err conftest.$ac_ext
7083c021 3390if $ac_preproc_ok; then :
212380e3 3391
7083c021
AC
3392else
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
3395as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3396See \`config.log' for more details" "$LINENO" 5; }
7083c021 3397fi
212380e3 3398
7083c021
AC
3399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
212380e3
AC
3404
3405
7083c021
AC
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3407$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
b6d0720c 3408if ${ac_cv_path_GREP+:} false; then :
7083c021 3409 $as_echo_n "(cached) " >&6
212380e3 3410else
7083c021
AC
3411 if test -z "$GREP"; then
3412 ac_path_GREP_found=false
3413 # Loop through the user's path and test for each of PROGNAME-LIST
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_prog in grep ggrep; do
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2eff3833 3422 as_fn_executable_p "$ac_path_GREP" || continue
7083c021
AC
3423# Check for GNU ac_path_GREP and select it if it is found.
3424 # Check for GNU $ac_path_GREP
3425case `"$ac_path_GREP" --version 2>&1` in
3426*GNU*)
3427 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3428*)
3429 ac_count=0
3430 $as_echo_n 0123456789 >"conftest.in"
3431 while :
3432 do
3433 cat "conftest.in" "conftest.in" >"conftest.tmp"
3434 mv "conftest.tmp" "conftest.in"
3435 cp "conftest.in" "conftest.nl"
3436 $as_echo 'GREP' >> "conftest.nl"
3437 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3439 as_fn_arith $ac_count + 1 && ac_count=$as_val
3440 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3441 # Best one so far, save it but keep looking for a better one
3442 ac_cv_path_GREP="$ac_path_GREP"
3443 ac_path_GREP_max=$ac_count
3444 fi
3445 # 10*(2^10) chars as input seems more than enough
3446 test $ac_count -gt 10 && break
3447 done
3448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3449esac
7083c021
AC
3450
3451 $ac_path_GREP_found && break 3
3452 done
3453 done
3454 done
3455IFS=$as_save_IFS
3456 if test -z "$ac_cv_path_GREP"; then
b6d0720c 3457 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3458 fi
212380e3 3459else
7083c021
AC
3460 ac_cv_path_GREP=$GREP
3461fi
212380e3 3462
212380e3 3463fi
7083c021
AC
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3465$as_echo "$ac_cv_path_GREP" >&6; }
3466 GREP="$ac_cv_path_GREP"
631ef239 3467
212380e3 3468
7083c021
AC
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3470$as_echo_n "checking for egrep... " >&6; }
b6d0720c 3471if ${ac_cv_path_EGREP+:} false; then :
7083c021
AC
3472 $as_echo_n "(cached) " >&6
3473else
3474 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3475 then ac_cv_path_EGREP="$GREP -E"
3476 else
3477 if test -z "$EGREP"; then
3478 ac_path_EGREP_found=false
3479 # Loop through the user's path and test for each of PROGNAME-LIST
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_prog in egrep; do
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2eff3833 3488 as_fn_executable_p "$ac_path_EGREP" || continue
7083c021
AC
3489# Check for GNU ac_path_EGREP and select it if it is found.
3490 # Check for GNU $ac_path_EGREP
3491case `"$ac_path_EGREP" --version 2>&1` in
3492*GNU*)
3493 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3494*)
3495 ac_count=0
3496 $as_echo_n 0123456789 >"conftest.in"
3497 while :
3498 do
3499 cat "conftest.in" "conftest.in" >"conftest.tmp"
3500 mv "conftest.tmp" "conftest.in"
3501 cp "conftest.in" "conftest.nl"
3502 $as_echo 'EGREP' >> "conftest.nl"
3503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3504 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3505 as_fn_arith $ac_count + 1 && ac_count=$as_val
3506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3507 # Best one so far, save it but keep looking for a better one
3508 ac_cv_path_EGREP="$ac_path_EGREP"
3509 ac_path_EGREP_max=$ac_count
3510 fi
3511 # 10*(2^10) chars as input seems more than enough
3512 test $ac_count -gt 10 && break
3513 done
3514 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
631ef239 3515esac
212380e3 3516
7083c021
AC
3517 $ac_path_EGREP_found && break 3
3518 done
3519 done
3520 done
3521IFS=$as_save_IFS
3522 if test -z "$ac_cv_path_EGREP"; then
b6d0720c 3523 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083c021 3524 fi
212380e3 3525else
7083c021 3526 ac_cv_path_EGREP=$EGREP
212380e3 3527fi
212380e3 3528
7083c021 3529 fi
212380e3 3530fi
7083c021
AC
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3532$as_echo "$ac_cv_path_EGREP" >&6; }
3533 EGREP="$ac_cv_path_EGREP"
212380e3
AC
3534
3535
7083c021
AC
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3537$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 3538if ${ac_cv_header_stdc+:} false; then :
7083c021 3539 $as_echo_n "(cached) " >&6
212380e3 3540else
7083c021 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3542/* end confdefs.h. */
7083c021
AC
3543#include <stdlib.h>
3544#include <stdarg.h>
3545#include <string.h>
3546#include <float.h>
212380e3
AC
3547
3548int
3549main ()
3550{
212380e3
AC
3551
3552 ;
3553 return 0;
3554}
3555_ACEOF
7083c021
AC
3556if ac_fn_c_try_compile "$LINENO"; then :
3557 ac_cv_header_stdc=yes
212380e3 3558else
7083c021 3559 ac_cv_header_stdc=no
212380e3 3560fi
631ef239 3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3562
7083c021
AC
3563if test $ac_cv_header_stdc = yes; then
3564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
3567#include <string.h>
212380e3 3568
7083c021
AC
3569_ACEOF
3570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3571 $EGREP "memchr" >/dev/null 2>&1; then :
212380e3 3572
212380e3 3573else
7083c021
AC
3574 ac_cv_header_stdc=no
3575fi
3576rm -f conftest*
212380e3 3577
7083c021 3578fi
212380e3 3579
7083c021
AC
3580if test $ac_cv_header_stdc = yes; then
3581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3583/* end confdefs.h. */
7083c021 3584#include <stdlib.h>
212380e3 3585
212380e3 3586_ACEOF
7083c021
AC
3587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3588 $EGREP "free" >/dev/null 2>&1; then :
3589
212380e3 3590else
7083c021
AC
3591 ac_cv_header_stdc=no
3592fi
3593rm -f conftest*
212380e3 3594
212380e3 3595fi
631ef239 3596
7083c021
AC
3597if test $ac_cv_header_stdc = yes; then
3598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3599 if test "$cross_compiling" = yes; then :
3600 :
212380e3 3601else
7083c021 3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3603/* end confdefs.h. */
7083c021
AC
3604#include <ctype.h>
3605#include <stdlib.h>
3606#if ((' ' & 0x0FF) == 0x020)
3607# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3608# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3609#else
3610# define ISLOWER(c) \
3611 (('a' <= (c) && (c) <= 'i') \
3612 || ('j' <= (c) && (c) <= 'r') \
3613 || ('s' <= (c) && (c) <= 'z'))
3614# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3615#endif
3616
3617#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
3618int
3619main ()
3620{
7083c021
AC
3621 int i;
3622 for (i = 0; i < 256; i++)
3623 if (XOR (islower (i), ISLOWER (i))
3624 || toupper (i) != TOUPPER (i))
3625 return 2;
212380e3
AC
3626 return 0;
3627}
3628_ACEOF
7083c021
AC
3629if ac_fn_c_try_run "$LINENO"; then :
3630
3631else
3632 ac_cv_header_stdc=no
212380e3 3633fi
7083c021
AC
3634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3635 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 3636fi
212380e3 3637
7083c021
AC
3638fi
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3641$as_echo "$ac_cv_header_stdc" >&6; }
3642if test $ac_cv_header_stdc = yes; then
3643
3644$as_echo "#define STDC_HEADERS 1" >>confdefs.h
631ef239 3645
212380e3 3646fi
631ef239 3647
7083c021
AC
3648# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3649for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3650 inttypes.h stdint.h unistd.h
3651do :
3652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3653ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3654"
b6d0720c 3655if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
3656 cat >>confdefs.h <<_ACEOF
3657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
212380e3 3658_ACEOF
631ef239 3659
7083c021 3660fi
631ef239 3661
7083c021
AC
3662done
3663
3664
3665
3666 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
b6d0720c 3667if test "x$ac_cv_header_minix_config_h" = xyes; then :
7083c021 3668 MINIX=yes
212380e3 3669else
7083c021
AC
3670 MINIX=
3671fi
3672
3673
3674 if test "$MINIX" = yes; then
3675
3676$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3677
212380e3 3678
7083c021 3679$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
631ef239
AC
3680
3681
7083c021 3682$as_echo "#define _MINIX 1" >>confdefs.h
631ef239 3683
7083c021 3684 fi
212380e3 3685
212380e3 3686
7083c021
AC
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3688$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
b6d0720c 3689if ${ac_cv_safe_to_define___extensions__+:} false; then :
7083c021 3690 $as_echo_n "(cached) " >&6
212380e3 3691else
7083c021 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 3693/* end confdefs.h. */
7083c021 3694
2eff3833
JT
3695# define __EXTENSIONS__ 1
3696 $ac_includes_default
212380e3
AC
3697int
3698main ()
3699{
7083c021 3700
212380e3
AC
3701 ;
3702 return 0;
3703}
3704_ACEOF
7083c021
AC
3705if ac_fn_c_try_compile "$LINENO"; then :
3706 ac_cv_safe_to_define___extensions__=yes
212380e3 3707else
7083c021 3708 ac_cv_safe_to_define___extensions__=no
212380e3 3709fi
631ef239 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 3711fi
7083c021
AC
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3713$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3714 test $ac_cv_safe_to_define___extensions__ = yes &&
3715 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 3716
7083c021 3717 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
212380e3 3718
7083c021
AC
3719 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3720
3721 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3722
3723 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
212380e3 3724
7083c021
AC
3725
3726
3727
3728OLD_CFLAGS="$CFLAGS"
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734if test -n "$ac_tool_prefix"; then
3735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3736set dummy ${ac_tool_prefix}gcc; ac_word=$2
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3739if ${ac_cv_prog_CC+:} false; then :
7083c021 3740 $as_echo_n "(cached) " >&6
212380e3 3741else
7083c021
AC
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3744else
7083c021
AC
3745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746for as_dir in $PATH
3747do
3748 IFS=$as_save_IFS
3749 test -z "$as_dir" && as_dir=.
3750 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3752 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 break 2
3755 fi
3756done
3757 done
3758IFS=$as_save_IFS
212380e3 3759
212380e3 3760fi
212380e3 3761fi
7083c021
AC
3762CC=$ac_cv_prog_CC
3763if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765$as_echo "$CC" >&6; }
212380e3 3766else
7083c021
AC
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768$as_echo "no" >&6; }
3769fi
212380e3 3770
212380e3
AC
3771
3772fi
7083c021
AC
3773if test -z "$ac_cv_prog_CC"; then
3774 ac_ct_CC=$CC
3775 # Extract the first word of "gcc", so it can be a program name with args.
3776set dummy gcc; ac_word=$2
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3778$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3779if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3780 $as_echo_n "(cached) " >&6
212380e3 3781else
7083c021
AC
3782 if test -n "$ac_ct_CC"; then
3783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
212380e3 3784else
7083c021
AC
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3792 ac_cv_prog_ac_ct_CC="gcc"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
3796done
3797 done
3798IFS=$as_save_IFS
212380e3 3799
212380e3 3800fi
212380e3 3801fi
7083c021
AC
3802ac_ct_CC=$ac_cv_prog_ac_ct_CC
3803if test -n "$ac_ct_CC"; then
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3805$as_echo "$ac_ct_CC" >&6; }
212380e3 3806else
7083c021
AC
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3808$as_echo "no" >&6; }
3809fi
212380e3 3810
7083c021
AC
3811 if test "x$ac_ct_CC" = x; then
3812 CC=""
3813 else
3814 case $cross_compiling:$ac_tool_warned in
3815yes:)
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3818ac_tool_warned=yes ;;
631ef239 3819esac
7083c021
AC
3820 CC=$ac_ct_CC
3821 fi
212380e3 3822else
7083c021 3823 CC="$ac_cv_prog_CC"
212380e3 3824fi
631ef239 3825
7083c021
AC
3826if test -z "$CC"; then
3827 if test -n "$ac_tool_prefix"; then
3828 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3829set dummy ${ac_tool_prefix}cc; ac_word=$2
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3831$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3832if ${ac_cv_prog_CC+:} false; then :
7083c021 3833 $as_echo_n "(cached) " >&6
212380e3 3834else
7083c021
AC
3835 if test -n "$CC"; then
3836 ac_cv_prog_CC="$CC" # Let the user override the test.
212380e3 3837else
7083c021
AC
3838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839for as_dir in $PATH
3840do
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3845 ac_cv_prog_CC="${ac_tool_prefix}cc"
3846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3848 fi
3849done
3850 done
3851IFS=$as_save_IFS
212380e3 3852
212380e3 3853fi
7083c021
AC
3854fi
3855CC=$ac_cv_prog_CC
3856if test -n "$CC"; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3858$as_echo "$CC" >&6; }
212380e3 3859else
7083c021
AC
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3861$as_echo "no" >&6; }
3862fi
3863
212380e3 3864
7083c021 3865 fi
212380e3 3866fi
7083c021
AC
3867if test -z "$CC"; then
3868 # Extract the first word of "cc", so it can be a program name with args.
3869set dummy cc; ac_word=$2
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3871$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3872if ${ac_cv_prog_CC+:} false; then :
7083c021
AC
3873 $as_echo_n "(cached) " >&6
3874else
3875 if test -n "$CC"; then
3876 ac_cv_prog_CC="$CC" # Let the user override the test.
3877else
3878 ac_prog_rejected=no
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3886 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3887 ac_prog_rejected=yes
3888 continue
3889 fi
3890 ac_cv_prog_CC="cc"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894done
3895 done
3896IFS=$as_save_IFS
631ef239 3897
7083c021
AC
3898if test $ac_prog_rejected = yes; then
3899 # We found a bogon in the path, so make sure we never use it.
3900 set dummy $ac_cv_prog_CC
3901 shift
3902 if test $# != 0; then
3903 # We chose a different compiler from the bogus one.
3904 # However, it has the same basename, so the bogon will be chosen
3905 # first if we set CC to just the basename; use the full file name.
3906 shift
3907 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3908 fi
3909fi
3910fi
3911fi
3912CC=$ac_cv_prog_CC
3913if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915$as_echo "$CC" >&6; }
3916else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
212380e3 3919fi
631ef239 3920
212380e3 3921
7083c021
AC
3922fi
3923if test -z "$CC"; then
3924 if test -n "$ac_tool_prefix"; then
3925 for ac_prog in cl.exe
3926 do
3927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3931if ${ac_cv_prog_CC+:} false; then :
7083c021 3932 $as_echo_n "(cached) " >&6
212380e3 3933else
7083c021
AC
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3944 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
212380e3 3951
212380e3 3952fi
7083c021
AC
3953fi
3954CC=$ac_cv_prog_CC
3955if test -n "$CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957$as_echo "$CC" >&6; }
212380e3 3958else
7083c021
AC
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
212380e3 3962
212380e3 3963
7083c021
AC
3964 test -n "$CC" && break
3965 done
3966fi
3967if test -z "$CC"; then
3968 ac_ct_CC=$CC
3969 for ac_prog in cl.exe
3970do
3971 # Extract the first word of "$ac_prog", so it can be a program name with args.
3972set dummy $ac_prog; ac_word=$2
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3974$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 3975if ${ac_cv_prog_ac_ct_CC+:} false; then :
7083c021 3976 $as_echo_n "(cached) " >&6
212380e3 3977else
7083c021
AC
3978 if test -n "$ac_ct_CC"; then
3979 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 3987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
3988 ac_cv_prog_ac_ct_CC="$ac_prog"
3989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3991 fi
3992done
3993 done
3994IFS=$as_save_IFS
212380e3 3995
212380e3
AC
3996fi
3997fi
7083c021
AC
3998ac_ct_CC=$ac_cv_prog_ac_ct_CC
3999if test -n "$ac_ct_CC"; then
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4001$as_echo "$ac_ct_CC" >&6; }
4002else
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004$as_echo "no" >&6; }
212380e3 4005fi
631ef239
AC
4006
4007
7083c021
AC
4008 test -n "$ac_ct_CC" && break
4009done
631ef239 4010
7083c021
AC
4011 if test "x$ac_ct_CC" = x; then
4012 CC=""
4013 else
4014 case $cross_compiling:$ac_tool_warned in
4015yes:)
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4018ac_tool_warned=yes ;;
4019esac
4020 CC=$ac_ct_CC
4021 fi
4022fi
212380e3 4023
7083c021 4024fi
212380e3 4025
7083c021
AC
4026
4027test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
4029as_fn_error $? "no acceptable C compiler found in \$PATH
4030See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
4031
4032# Provide some information about the compiler.
4033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4034set X $ac_compile
4035ac_compiler=$2
4036for ac_option in --version -v -V -qversion; do
4037 { { ac_try="$ac_compiler $ac_option >&5"
631ef239
AC
4038case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041esac
7083c021
AC
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
212380e3 4045 ac_status=$?
7083c021
AC
4046 if test -s conftest.err; then
4047 sed '10a\
4048... rest of stderr output deleted ...
4049 10q' conftest.err >conftest.er1
4050 cat conftest.er1 >&5
7083c021 4051 fi
6fb6bd15 4052 rm -f conftest.er1 conftest.err
7083c021
AC
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }
4055done
212380e3 4056
7083c021
AC
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4058$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
b6d0720c 4059if ${ac_cv_c_compiler_gnu+:} false; then :
7083c021 4060 $as_echo_n "(cached) " >&6
212380e3 4061else
7083c021 4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4063/* end confdefs.h. */
7083c021 4064
212380e3
AC
4065int
4066main ()
4067{
7083c021
AC
4068#ifndef __GNUC__
4069 choke me
4070#endif
212380e3
AC
4071
4072 ;
4073 return 0;
4074}
4075_ACEOF
7083c021
AC
4076if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_compiler_gnu=yes
4078else
4079 ac_compiler_gnu=no
4080fi
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082ac_cv_c_compiler_gnu=$ac_compiler_gnu
4083
4084fi
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4086$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4087if test $ac_compiler_gnu = yes; then
4088 GCC=yes
4089else
4090 GCC=
4091fi
4092ac_test_CFLAGS=${CFLAGS+set}
4093ac_save_CFLAGS=$CFLAGS
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095$as_echo_n "checking whether $CC accepts -g... " >&6; }
b6d0720c 4096if ${ac_cv_prog_cc_g+:} false; then :
7083c021
AC
4097 $as_echo_n "(cached) " >&6
4098else
4099 ac_save_c_werror_flag=$ac_c_werror_flag
4100 ac_c_werror_flag=yes
4101 ac_cv_prog_cc_g=no
4102 CFLAGS="-g"
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4104/* end confdefs.h. */
7083c021 4105
212380e3
AC
4106int
4107main ()
4108{
212380e3
AC
4109
4110 ;
4111 return 0;
4112}
4113_ACEOF
7083c021
AC
4114if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_cv_prog_cc_g=yes
212380e3 4116else
7083c021
AC
4117 CFLAGS=""
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4119/* end confdefs.h. */
7083c021 4120
212380e3
AC
4121int
4122main ()
4123{
212380e3
AC
4124
4125 ;
4126 return 0;
4127}
4128_ACEOF
7083c021
AC
4129if ac_fn_c_try_compile "$LINENO"; then :
4130
4131else
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4133 CFLAGS="-g"
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4135/* end confdefs.h. */
7083c021 4136
212380e3
AC
4137int
4138main ()
4139{
212380e3
AC
4140
4141 ;
4142 return 0;
4143}
4144_ACEOF
7083c021
AC
4145if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_prog_cc_g=yes
212380e3 4147fi
631ef239 4148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4149fi
631ef239 4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4151fi
631ef239 4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4154fi
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4156$as_echo "$ac_cv_prog_cc_g" >&6; }
4157if test "$ac_test_CFLAGS" = set; then
4158 CFLAGS=$ac_save_CFLAGS
4159elif test $ac_cv_prog_cc_g = yes; then
4160 if test "$GCC" = yes; then
4161 CFLAGS="-g -O2"
4162 else
4163 CFLAGS="-g"
4164 fi
4165else
4166 if test "$GCC" = yes; then
4167 CFLAGS="-O2"
4168 else
4169 CFLAGS=
4170 fi
4171fi
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4173$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
b6d0720c 4174if ${ac_cv_prog_cc_c89+:} false; then :
7083c021
AC
4175 $as_echo_n "(cached) " >&6
4176else
4177 ac_cv_prog_cc_c89=no
4178ac_save_CC=$CC
4179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4180/* end confdefs.h. */
7083c021
AC
4181#include <stdarg.h>
4182#include <stdio.h>
2eff3833 4183struct stat;
7083c021
AC
4184/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4185struct buf { int x; };
4186FILE * (*rcsopen) (struct buf *, struct stat *, int);
4187static char *e (p, i)
4188 char **p;
4189 int i;
4190{
4191 return p[i];
4192}
4193static char *f (char * (*g) (char **, int), char **p, ...)
4194{
4195 char *s;
4196 va_list v;
4197 va_start (v,p);
4198 s = g (p, va_arg (v,int));
4199 va_end (v);
4200 return s;
4201}
4202
4203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4204 function prototypes and stuff, but not '\xHH' hex character constants.
4205 These don't provoke an error unfortunately, instead are silently treated
4206 as 'x'. The following induces an error, until -std is added to get
4207 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4208 array size at least. It's necessary to write '\x00'==0 to get something
4209 that's true only with -std. */
4210int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4211
4212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4213 inside strings and character constants. */
4214#define FOO(x) 'x'
4215int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4216
4217int test (int i, double x);
4218struct s1 {int (*f) (int a);};
4219struct s2 {int (*f) (double a);};
4220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4221int argc;
4222char **argv;
212380e3
AC
4223int
4224main ()
4225{
7083c021 4226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
212380e3
AC
4227 ;
4228 return 0;
4229}
4230_ACEOF
7083c021
AC
4231for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4232 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4233do
4234 CC="$ac_save_CC $ac_arg"
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_c89=$ac_arg
4237fi
4238rm -f core conftest.err conftest.$ac_objext
4239 test "x$ac_cv_prog_cc_c89" != "xno" && break
4240done
4241rm -f conftest.$ac_ext
4242CC=$ac_save_CC
4243
4244fi
4245# AC_CACHE_VAL
4246case "x$ac_cv_prog_cc_c89" in
4247 x)
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4249$as_echo "none needed" >&6; } ;;
4250 xno)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252$as_echo "unsupported" >&6; } ;;
4253 *)
4254 CC="$CC $ac_cv_prog_cc_c89"
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4256$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
631ef239 4257esac
7083c021 4258if test "x$ac_cv_prog_cc_c89" != xno; then :
212380e3 4259
212380e3 4260fi
631ef239 4261
7083c021
AC
4262ac_ext=c
4263ac_cpp='$CPP $CPPFLAGS'
4264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274
4275CFLAGS="$OLD_CFLAGS"
4276
7083c021
AC
4277
4278
4279if test "$ac_cv_c_compiler_gnu" != yes; then
4280
4281SGS=no
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4283$as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4284case `$CC -version 2>&1` in
4285*TenDRA*)
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4287$as_echo "yes, TenDRA" >&6; }
4288 IRC_CFLAGS=""
4289 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4290 SGS=yes
4291 TenDRA=yes
4292;;
4293*MIPSpro*)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4295$as_echo "yes, MIPSpro" >&6; }
4296 MIPSpro=yes
4297 SGS=yes
4298;;
4299*)
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
4302 TenDRA=no
4303 MIPSpro=no
4304;;
631ef239 4305esac
7083c021
AC
4306
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4308$as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4309case `$CC -V 2>&1` in
4310*Sun*WorkShop* | *Forte*Developer*)
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4312$as_echo "Sun Workshop/Forte" >&6; }
4313 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4314 SunWorkShop=yes
4315 SGS=yes
4316;;
4317*Tru64*)
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4319$as_echo "Tru64 cc" >&6; }
4320 IRC_CFLAGS="-O2"
4321 CPPFLAGS="-I/usr/local/include"
4322 Tru=yes
4323;;
4324*HP*ANSI*)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4326$as_echo "HPUX cc" >&6; }
4327 HPUX=yes
4328 IRC_CFLAGS="+e"
4329;;
4330*)
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333;;
631ef239 4334esac
212380e3 4335
212380e3 4336fi
631ef239 4337
7083c021
AC
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4339$as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4340OSNAME=`uname -s`
4341case "$OSNAME" in
4342 HP-UX*)
631ef239 4343
7083c021
AC
4344 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4346$as_echo "assuming old HPUX with its own cc" >&6; }
4347 IRC_CFLAGS="$IRC_CFLAGS +e"
4348 HPUX=yes
4349 else
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4351$as_echo "already using newer HPUX" >&6; }
4352 fi
4353 ;;
4354 SunOS*)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4356$as_echo "SunOS or Solaris" >&6; }
212380e3 4357
7083c021 4358$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
212380e3 4359
7083c021
AC
4360 SUN=yes
4361 ;;
4362 AIX*)
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4364$as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4365 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4366 ;;
4367 *)
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369$as_echo "no" >&6; }
4370 ;;
631ef239 4371esac
212380e3 4372
7083c021
AC
4373if test "$ac_cv_c_compiler_gnu" = yes; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4375$as_echo_n "checking if $CC is Apple GCC... " >&6; }
4376
4377 case `$CC -v 2>&1 | tail -n 1` in
4378 *Apple*)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4380$as_echo "yes" >&6; }
4381 AppleGCC=yes
4382 ;;
4383 *)
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385$as_echo "no" >&6; }
4386 AppleGCC=no
4387 ;;
4388 esac
4389
4390 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 4391fi
631ef239 4392
7083c021
AC
4393if test "$ac_cv_prog_cc_g" = yes; then
4394 if test "$Tru" = yes; then
4395 IRC_CFLAGS="$IRC_CFLAGS -g3"
4396 else
4397 IRC_CFLAGS="$IRC_CFLAGS -g"
4398 fi
212380e3 4399fi
212380e3 4400
7083c021
AC
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4402$as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4403if test "$SGS" = "yes"; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405$as_echo "yes" >&6; }
212380e3 4406else
7083c021
AC
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
4409fi
212380e3 4410
7083c021
AC
4411# Extract the first word of "mkdep", so it can be a program name with args.
4412set dummy mkdep; ac_word=$2
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4415if ${ac_cv_path_MKDEP+:} false; then :
7083c021
AC
4416 $as_echo_n "(cached) " >&6
4417else
4418 case $MKDEP in
4419 [\\/]* | ?:[\\/]*)
4420 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4421 ;;
4422 *)
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4430 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434done
4435 done
4436IFS=$as_save_IFS
212380e3 4437
7083c021 4438 ;;
631ef239 4439esac
7083c021
AC
4440fi
4441MKDEP=$ac_cv_path_MKDEP
4442if test -n "$MKDEP"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4444$as_echo "$MKDEP" >&6; }
212380e3 4445else
7083c021
AC
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
212380e3 4448fi
631ef239 4449
7083c021
AC
4450
4451# Extract the first word of "makedepend", so it can be a program name with args.
4452set dummy makedepend; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4455if ${ac_cv_path_MAKEDEPEND+:} false; then :
7083c021
AC
4456 $as_echo_n "(cached) " >&6
4457else
4458 case $MAKEDEPEND in
4459 [\\/]* | ?:[\\/]*)
4460 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4461 ;;
4462 *)
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4470 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4473 fi
4474done
212380e3 4475 done
7083c021
AC
4476IFS=$as_save_IFS
4477
4478 ;;
4479esac
4480fi
4481MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4482if test -n "$MAKEDEPEND"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4484$as_echo "$MAKEDEPEND" >&6; }
212380e3 4485else
7083c021
AC
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487$as_echo "no" >&6; }
4488fi
212380e3 4489
212380e3 4490
212380e3 4491
7083c021
AC
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4493$as_echo_n "checking how to generate dependency info... " >&6; }
4494
4495STDOUT="> .depend"
4496
4497if test "$ac_cv_c_compiler_gnu" = yes; then
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4499$as_echo "gcc -MM" >&6; }
4500 MKDEP="$CC -MM"
4501elif test ! -z "$MKDEP"; then
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4503$as_echo "mkdep" >&6; }
4504
4505 if test -z "$Tru"; then
4506 STDOUT=""
4507 else
4508 STDOUT=" 2> /dev/null"
4509 fi
4510elif test "$SunWorkShop" = yes; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4512$as_echo "$CC -xM" >&6; }
4513 MKDEP="$CC -xM"
4514 STDOUT="> .depend 2> /dev/null"
4515elif test ! -z "$MAKEDEPEND"; then
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4517$as_echo "makedepend" >&6; }
4518 MKDEP="$MAKEDEPEND -f-"
212380e3 4519else
7083c021
AC
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4521$as_echo "nothing suitable.. forget it!" >&6; }
4522 MKDEP=":"
212380e3 4523fi
631ef239 4524
7083c021
AC
4525
4526
4527
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4529$as_echo_n "checking for /dev/null... " >&6; }
4530if test -c /dev/null ; then
4531
4532$as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535$as_echo "yes" >&6; }
212380e3 4536else
212380e3 4537
7083c021
AC
4538$as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4541$as_echo "no - using devnull.log" >&6; }
212380e3 4542fi
631ef239 4543
7083c021
AC
4544if test ! -z "$CFLAGS"; then
4545 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
212380e3 4546fi
631ef239 4547
7083c021
AC
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4549$as_echo_n "checking for library containing strerror... " >&6; }
b6d0720c 4550if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4551 $as_echo_n "(cached) " >&6
4552else
4553 ac_func_search_save_LIBS=$LIBS
4554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4555/* end confdefs.h. */
7083c021
AC
4556
4557/* Override any GCC internal prototype to avoid an error.
4558 Use char because int might match the return type of a GCC
4559 builtin and then its argument prototype would still apply. */
4560#ifdef __cplusplus
4561extern "C"
4562#endif
4563char strerror ();
212380e3
AC
4564int
4565main ()
4566{
7083c021 4567return strerror ();
212380e3
AC
4568 ;
4569 return 0;
4570}
4571_ACEOF
7083c021
AC
4572for ac_lib in '' cposix; do
4573 if test -z "$ac_lib"; then
4574 ac_res="none required"
4575 else
4576 ac_res=-l$ac_lib
4577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4578 fi
4579 if ac_fn_c_try_link "$LINENO"; then :
4580 ac_cv_search_strerror=$ac_res
4581fi
4582rm -f core conftest.err conftest.$ac_objext \
4583 conftest$ac_exeext
b6d0720c 4584 if ${ac_cv_search_strerror+:} false; then :
7083c021
AC
4585 break
4586fi
4587done
b6d0720c 4588if ${ac_cv_search_strerror+:} false; then :
7083c021 4589
212380e3 4590else
7083c021
AC
4591 ac_cv_search_strerror=no
4592fi
4593rm conftest.$ac_ext
4594LIBS=$ac_func_search_save_LIBS
4595fi
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4597$as_echo "$ac_cv_search_strerror" >&6; }
4598ac_res=$ac_cv_search_strerror
4599if test "$ac_res" != no; then :
4600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 4601
212380e3 4602fi
631ef239 4603
7083c021
AC
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4605$as_echo_n "checking for inline... " >&6; }
b6d0720c 4606if ${ac_cv_c_inline+:} false; then :
7083c021
AC
4607 $as_echo_n "(cached) " >&6
4608else
4609 ac_cv_c_inline=no
4610for ac_kw in inline __inline__ __inline; do
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h. */
4613#ifndef __cplusplus
4614typedef int foo_t;
4615static $ac_kw foo_t static_foo () {return 0; }
4616$ac_kw foo_t foo () {return 0; }
4617#endif
4618
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621 ac_cv_c_inline=$ac_kw
4622fi
631ef239 4623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021 4624 test "$ac_cv_c_inline" != no && break
212380e3 4625done
7083c021
AC
4626
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4629$as_echo "$ac_cv_c_inline" >&6; }
4630
4631case $ac_cv_c_inline in
4632 inline | yes) ;;
4633 *)
4634 case $ac_cv_c_inline in
4635 no) ac_val=;;
4636 *) ac_val=$ac_cv_c_inline;;
4637 esac
4638 cat >>confdefs.h <<_ACEOF
4639#ifndef __cplusplus
4640#define inline $ac_val
4641#endif
4642_ACEOF
4643 ;;
212380e3 4644esac
7083c021
AC
4645
4646if test $ac_cv_c_compiler_gnu = yes; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4648$as_echo_n "checking whether $CC needs -traditional... " >&6; }
b6d0720c 4649if ${ac_cv_prog_gcc_traditional+:} false; then :
7083c021 4650 $as_echo_n "(cached) " >&6
212380e3 4651else
7083c021
AC
4652 ac_pattern="Autoconf.*'x'"
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h. */
4655#include <sgtty.h>
4656Autoconf TIOCGETP
212380e3 4657_ACEOF
7083c021
AC
4658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4660 ac_cv_prog_gcc_traditional=yes
4661else
4662 ac_cv_prog_gcc_traditional=no
4663fi
4664rm -f conftest*
4665
4666
4667 if test $ac_cv_prog_gcc_traditional = no; then
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 4669/* end confdefs.h. */
7083c021
AC
4670#include <termio.h>
4671Autoconf TCGETA
4672_ACEOF
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
4676fi
4677rm -f conftest*
212380e3 4678
7083c021
AC
4679 fi
4680fi
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4682$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4683 if test $ac_cv_prog_gcc_traditional = yes; then
4684 CC="$CC -traditional"
4685 fi
4686fi
212380e3 4687
7083c021
AC
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4689$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4690set x ${MAKE-make}
4691ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
b6d0720c 4692if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7083c021
AC
4693 $as_echo_n "(cached) " >&6
4694else
4695 cat >conftest.make <<\_ACEOF
4696SHELL = /bin/sh
4697all:
4698 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 4699_ACEOF
b6d0720c 4700# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7083c021
AC
4701case `${MAKE-make} -f conftest.make 2>/dev/null` in
4702 *@@@%%%=?*=@@@%%%*)
4703 eval ac_cv_prog_make_${ac_make}_set=yes;;
4704 *)
4705 eval ac_cv_prog_make_${ac_make}_set=no;;
631ef239 4706esac
7083c021
AC
4707rm -f conftest.make
4708fi
4709if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711$as_echo "yes" >&6; }
4712 SET_MAKE=
4713else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
4716 SET_MAKE="MAKE=${MAKE-make}"
4717fi
4718
a5471f24
LS
4719ac_aux_dir=
4720for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4721 if test -f "$ac_dir/install-sh"; then
4722 ac_aux_dir=$ac_dir
4723 ac_install_sh="$ac_aux_dir/install-sh -c"
4724 break
4725 elif test -f "$ac_dir/install.sh"; then
4726 ac_aux_dir=$ac_dir
4727 ac_install_sh="$ac_aux_dir/install.sh -c"
4728 break
4729 elif test -f "$ac_dir/shtool"; then
4730 ac_aux_dir=$ac_dir
4731 ac_install_sh="$ac_aux_dir/shtool install -c"
4732 break
4733 fi
4734done
4735if test -z "$ac_aux_dir"; then
4736 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4737fi
4738
4739# These three variables are undocumented and unsupported,
4740# and are intended to be withdrawn in a future Autoconf release.
4741# They can cause serious problems if a builder's source tree is in a directory
4742# whose full name contains unusual characters.
4743ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4744ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4745ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4746
4747
7083c021
AC
4748# Find a good install program. We prefer a C program (faster),
4749# so one script is as good as another. But avoid the broken or
4750# incompatible versions:
4751# SysV /etc/install, /usr/sbin/install
4752# SunOS /usr/etc/install
4753# IRIX /sbin/install
4754# AIX /bin/install
4755# AmigaOS /C/install, which installs bootblocks on floppy discs
4756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4759# OS/2's system install, which has a completely different semantic
4760# ./install, which can be erroneously created by make from ./install.sh.
4761# Reject install programs that cannot install multiple files.
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4763$as_echo_n "checking for a BSD-compatible install... " >&6; }
4764if test -z "$INSTALL"; then
b6d0720c 4765if ${ac_cv_path_install+:} false; then :
7083c021
AC
4766 $as_echo_n "(cached) " >&6
4767else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 # Account for people who put trailing slashes in PATH elements.
4774case $as_dir/ in #((
4775 ./ | .// | /[cC]/* | \
4776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4778 /usr/ucb/* ) ;;
4779 *)
4780 # OSF1 and SCO ODT 3.0 have their own names for install.
4781 # Don't use installbsd from OSF since it installs stuff as root
4782 # by default.
4783 for ac_prog in ginstall scoinst install; do
4784 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7083c021
AC
4786 if test $ac_prog = install &&
4787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4788 # AIX install. It has an incompatible calling convention.
4789 :
4790 elif test $ac_prog = install &&
4791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4792 # program-specific install script used by HP pwplus--don't use.
4793 :
4794 else
4795 rm -rf conftest.one conftest.two conftest.dir
4796 echo one > conftest.one
4797 echo two > conftest.two
4798 mkdir conftest.dir
4799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4800 test -s conftest.one && test -s conftest.two &&
4801 test -s conftest.dir/conftest.one &&
4802 test -s conftest.dir/conftest.two
4803 then
4804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4805 break 3
4806 fi
4807 fi
4808 fi
4809 done
4810 done
4811 ;;
631ef239 4812esac
7083c021
AC
4813
4814 done
4815IFS=$as_save_IFS
4816
4817rm -rf conftest.one conftest.two conftest.dir
4818
4819fi
4820 if test "${ac_cv_path_install+set}" = set; then
4821 INSTALL=$ac_cv_path_install
4822 else
4823 # As a last resort, use the slow shell script. Don't cache a
4824 # value for INSTALL within a source directory, because that will
4825 # break other packages using the cache if that directory is
4826 # removed, or if the value is a relative name.
4827 INSTALL=$ac_install_sh
4828 fi
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4831$as_echo "$INSTALL" >&6; }
4832
4833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4834# It thinks the first close brace ends the variable substitution.
4835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4836
4837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4838
4839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4840
4841# Extract the first word of "rm", so it can be a program name with args.
4842set dummy rm; ac_word=$2
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4845if ${ac_cv_path_RM+:} false; then :
7083c021 4846 $as_echo_n "(cached) " >&6
212380e3 4847else
7083c021
AC
4848 case $RM in
4849 [\\/]* | ?:[\\/]*)
4850 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4851 ;;
4852 *)
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4860 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864done
4865 done
4866IFS=$as_save_IFS
212380e3 4867
7083c021
AC
4868 ;;
4869esac
212380e3 4870fi
7083c021
AC
4871RM=$ac_cv_path_RM
4872if test -n "$RM"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4874$as_echo "$RM" >&6; }
4875else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877$as_echo "no" >&6; }
212380e3 4878fi
631ef239
AC
4879
4880
7083c021
AC
4881# Extract the first word of "cp", so it can be a program name with args.
4882set dummy cp; ac_word=$2
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4885if ${ac_cv_path_CP+:} false; then :
7083c021
AC
4886 $as_echo_n "(cached) " >&6
4887else
4888 case $CP in
4889 [\\/]* | ?:[\\/]*)
4890 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4891 ;;
4892 *)
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4900 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904done
4905 done
4906IFS=$as_save_IFS
631ef239 4907
7083c021
AC
4908 ;;
4909esac
4910fi
4911CP=$ac_cv_path_CP
4912if test -n "$CP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4914$as_echo "$CP" >&6; }
4915else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
4918fi
212380e3
AC
4919
4920
7083c021
AC
4921# Extract the first word of "mv", so it can be a program name with args.
4922set dummy mv; ac_word=$2
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4925if ${ac_cv_path_MV+:} false; then :
7083c021 4926 $as_echo_n "(cached) " >&6
212380e3 4927else
7083c021
AC
4928 case $MV in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4931 ;;
4932 *)
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4940 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944done
4945 done
4946IFS=$as_save_IFS
4947
4948 ;;
631ef239 4949esac
7083c021
AC
4950fi
4951MV=$ac_cv_path_MV
4952if test -n "$MV"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4954$as_echo "$MV" >&6; }
212380e3 4955else
7083c021
AC
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
212380e3 4958fi
631ef239 4959
212380e3 4960
7083c021
AC
4961# Extract the first word of "ln", so it can be a program name with args.
4962set dummy ln; ac_word=$2
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 4965if ${ac_cv_path_LN+:} false; then :
7083c021 4966 $as_echo_n "(cached) " >&6
212380e3 4967else
7083c021
AC
4968 case $LN in
4969 [\\/]* | ?:[\\/]*)
4970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4971 ;;
4972 *)
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 4979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
4980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984done
4985 done
4986IFS=$as_save_IFS
212380e3 4987
7083c021 4988 ;;
631ef239 4989esac
7083c021
AC
4990fi
4991LN=$ac_cv_path_LN
4992if test -n "$LN"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4994$as_echo "$LN" >&6; }
212380e3 4995else
7083c021
AC
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
212380e3 4998fi
631ef239 4999
7083c021
AC
5000
5001# Extract the first word of "sed", so it can be a program name with args.
5002set dummy sed; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5005if ${ac_cv_path_SED+:} false; then :
7083c021
AC
5006 $as_echo_n "(cached) " >&6
5007else
5008 case $SED in
5009 [\\/]* | ?:[\\/]*)
5010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011 ;;
5012 *)
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
212380e3 5025 done
7083c021
AC
5026IFS=$as_save_IFS
5027
5028 ;;
5029esac
5030fi
5031SED=$ac_cv_path_SED
5032if test -n "$SED"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5034$as_echo "$SED" >&6; }
212380e3 5035else
7083c021
AC
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
212380e3 5039
212380e3 5040
7083c021
AC
5041# Extract the first word of "ar", so it can be a program name with args.
5042set dummy ar; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5045if ${ac_cv_path_AR+:} false; then :
7083c021
AC
5046 $as_echo_n "(cached) " >&6
5047else
5048 case $AR in
5049 [\\/]* | ?:[\\/]*)
5050 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5051 ;;
5052 *)
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5060 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064done
5065 done
5066IFS=$as_save_IFS
212380e3 5067
7083c021 5068 ;;
631ef239 5069esac
7083c021
AC
5070fi
5071AR=$ac_cv_path_AR
5072if test -n "$AR"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5074$as_echo "$AR" >&6; }
212380e3 5075else
7083c021
AC
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077$as_echo "no" >&6; }
212380e3 5078fi
631ef239 5079
7083c021
AC
5080
5081# Extract the first word of "ld", so it can be a program name with args.
5082set dummy ld; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5085if ${ac_cv_path_LD+:} false; then :
7083c021 5086 $as_echo_n "(cached) " >&6
212380e3 5087else
7083c021
AC
5088 case $LD in
5089 [\\/]* | ?:[\\/]*)
5090 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5091 ;;
5092 *)
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5100 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105 done
5106IFS=$as_save_IFS
212380e3 5107
7083c021
AC
5108 ;;
5109esac
212380e3 5110fi
7083c021
AC
5111LD=$ac_cv_path_LD
5112if test -n "$LD"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5114$as_echo "$LD" >&6; }
5115else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117$as_echo "no" >&6; }
212380e3 5118fi
631ef239 5119
212380e3 5120
7083c021
AC
5121# Extract the first word of "ranlib", so it can be a program name with args.
5122set dummy ranlib; ac_word=$2
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5125if ${ac_cv_path_RANLIB+:} false; then :
7083c021 5126 $as_echo_n "(cached) " >&6
212380e3 5127else
7083c021
AC
5128 case $RANLIB in
5129 [\\/]* | ?:[\\/]*)
5130 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5131 ;;
5132 *)
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5140 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145 done
5146IFS=$as_save_IFS
212380e3 5147
7083c021
AC
5148 ;;
5149esac
5150fi
5151RANLIB=$ac_cv_path_RANLIB
5152if test -n "$RANLIB"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5154$as_echo "$RANLIB" >&6; }
5155else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157$as_echo "no" >&6; }
212380e3 5158fi
631ef239 5159
7083c021
AC
5160
5161# Extract the first word of "touch", so it can be a program name with args.
5162set dummy touch; ac_word=$2
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5165if ${ac_cv_path_TOUCH+:} false; then :
7083c021
AC
5166 $as_echo_n "(cached) " >&6
5167else
5168 case $TOUCH in
5169 [\\/]* | ?:[\\/]*)
5170 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5171 ;;
5172 *)
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5180 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
212380e3 5184done
7083c021
AC
5185 done
5186IFS=$as_save_IFS
5187
5188 ;;
212380e3 5189esac
7083c021
AC
5190fi
5191TOUCH=$ac_cv_path_TOUCH
5192if test -n "$TOUCH"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5194$as_echo "$TOUCH" >&6; }
212380e3 5195else
7083c021
AC
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197$as_echo "no" >&6; }
5198fi
212380e3 5199
212380e3 5200
7083c021
AC
5201
5202for ac_prog in 'bison -y' byacc
5203do
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205set dummy $ac_prog; ac_word=$2
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5208if ${ac_cv_prog_YACC+:} false; then :
7083c021 5209 $as_echo_n "(cached) " >&6
212380e3 5210else
7083c021
AC
5211 if test -n "$YACC"; then
5212 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5221 ac_cv_prog_YACC="$ac_prog"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225done
5226 done
5227IFS=$as_save_IFS
212380e3 5228
212380e3
AC
5229fi
5230fi
7083c021
AC
5231YACC=$ac_cv_prog_YACC
5232if test -n "$YACC"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5234$as_echo "$YACC" >&6; }
5235else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
212380e3 5238fi
631ef239
AC
5239
5240
7083c021
AC
5241 test -n "$YACC" && break
5242done
5243test -n "$YACC" || YACC="yacc"
212380e3
AC
5244
5245
7083c021 5246if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
b6d0720c 5247 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
7083c021 5248fi
212380e3 5249
7083c021
AC
5250for ac_prog in flex lex
5251do
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253set dummy $ac_prog; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
b6d0720c 5256if ${ac_cv_prog_LEX+:} false; then :
7083c021 5257 $as_echo_n "(cached) " >&6
212380e3 5258else
7083c021
AC
5259 if test -n "$LEX"; then
5260 ac_cv_prog_LEX="$LEX" # Let the user override the test.
212380e3 5261else
7083c021
AC
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
2eff3833 5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083c021
AC
5269 ac_cv_prog_LEX="$ac_prog"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
631ef239 5273done
7083c021
AC
5274 done
5275IFS=$as_save_IFS
631ef239 5276
7083c021
AC
5277fi
5278fi
5279LEX=$ac_cv_prog_LEX
5280if test -n "$LEX"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5282$as_echo "$LEX" >&6; }
631ef239 5283else
7083c021
AC
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
631ef239
AC
5286fi
5287
5288
7083c021
AC
5289 test -n "$LEX" && break
5290done
5291test -n "$LEX" || LEX=":"
212380e3 5292
7083c021
AC
5293if test "x$LEX" != "x:"; then
5294 cat >conftest.l <<_ACEOF
5295%%
5296a { ECHO; }
5297b { REJECT; }
5298c { yymore (); }
5299d { yyless (1); }
2eff3833
JT
5300e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5301 yyless ((input () != 0)); }
7083c021
AC
5302f { unput (yytext[0]); }
5303. { BEGIN INITIAL; }
5304%%
5305#ifdef YYTEXT_POINTER
5306extern char *yytext;
212380e3 5307#endif
212380e3 5308int
7083c021 5309main (void)
212380e3 5310{
7083c021 5311 return ! yylex () + ! yywrap ();
212380e3
AC
5312}
5313_ACEOF
7083c021 5314{ { ac_try="$LEX conftest.l"
631ef239
AC
5315case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318esac
7083c021
AC
5319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5320$as_echo "$ac_try_echo"; } >&5
5321 (eval "$LEX conftest.l") 2>&5
212380e3 5322 ac_status=$?
7083c021
AC
5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5324 test $ac_status = 0; }
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5326$as_echo_n "checking lex output file root... " >&6; }
b6d0720c 5327if ${ac_cv_prog_lex_root+:} false; then :
7083c021 5328 $as_echo_n "(cached) " >&6
212380e3 5329else
212380e3 5330
7083c021
AC
5331if test -f lex.yy.c; then
5332 ac_cv_prog_lex_root=lex.yy
5333elif test -f lexyy.c; then
5334 ac_cv_prog_lex_root=lexyy
5335else
b6d0720c 5336 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
7083c021
AC
5337fi
5338fi
5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5340$as_echo "$ac_cv_prog_lex_root" >&6; }
5341LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5342
5343if test -z "${LEXLIB+set}"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5345$as_echo_n "checking lex library... " >&6; }
b6d0720c 5346if ${ac_cv_lib_lex+:} false; then :
7083c021
AC
5347 $as_echo_n "(cached) " >&6
5348else
631ef239 5349
7083c021
AC
5350 ac_save_LIBS=$LIBS
5351 ac_cv_lib_lex='none needed'
5352 for ac_lib in '' -lfl -ll; do
5353 LIBS="$ac_lib $ac_save_LIBS"
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355/* end confdefs.h. */
5356`cat $LEX_OUTPUT_ROOT.c`
5357_ACEOF
5358if ac_fn_c_try_link "$LINENO"; then :
5359 ac_cv_lib_lex=$ac_lib
212380e3 5360fi
7083c021
AC
5361rm -f core conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363 test "$ac_cv_lib_lex" != 'none needed' && break
5364 done
5365 LIBS=$ac_save_LIBS
631ef239 5366
631ef239 5367fi
7083c021
AC
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5369$as_echo "$ac_cv_lib_lex" >&6; }
5370 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5371fi
5372
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5375$as_echo_n "checking whether yytext is a pointer... " >&6; }
b6d0720c 5376if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
7083c021 5377 $as_echo_n "(cached) " >&6
631ef239 5378else
7083c021
AC
5379 # POSIX says lex can declare yytext either as a pointer or an array; the
5380# default is implementation-dependent. Figure out which it is, since
5381# not all implementations provide the %pointer and %array declarations.
5382ac_cv_prog_lex_yytext_pointer=no
5383ac_save_LIBS=$LIBS
5384LIBS="$LEXLIB $ac_save_LIBS"
5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h. */
b6d0720c
AC
5387
5388 #define YYTEXT_POINTER 1
7083c021
AC
5389`cat $LEX_OUTPUT_ROOT.c`
5390_ACEOF
5391if ac_fn_c_try_link "$LINENO"; then :
5392 ac_cv_prog_lex_yytext_pointer=yes
212380e3 5393fi
7083c021
AC
5394rm -f core conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5396LIBS=$ac_save_LIBS
5397
212380e3 5398fi
7083c021
AC
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5400$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5401if test $ac_cv_prog_lex_yytext_pointer = yes; then
212380e3 5402
7083c021
AC
5403$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5404
5405fi
5406rm -f conftest.l $LEX_OUTPUT_ROOT.c
5407
5408fi
5409
5410if test "$LEX" = ":"; then
b6d0720c 5411 as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
212380e3
AC
5412fi
5413
9f9b7042
NPB
5414# Check whether --enable-fhs-paths was given.
5415if test "${enable_fhs_paths+set}" = set; then :
5416 enableval=$enable_fhs_paths;
5417else
5418 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5419 test "$localstatedir" = '${prefix}/var' && \
5420 test "$libdir" = '${exec_prefix}/lib'; then :
5421 enable_fhs_paths=no
5422else
5423 enable_fhs_paths=yes
5424fi
5425
5426fi
5427
5428if test "x$enable_fhs_paths" = "xyes"; then :
5429 pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}'
5430 rundir=${rundir-'${prefix}/run'}
5431 pkgrundir='${rundir}/${PACKAGE_TARNAME}'
5432 pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}'
5433else
5434 libexecdir='${bindir}'
5435 pkglibexecdir='${libexecdir}'
5436 rundir='${sysconfdir}'
5437 pkgrundir='${rundir}'
7083c021 5438 localstatedir='${prefix}'
9f9b7042 5439 pkglocalstatedir='${sysconfdir}'
631ef239 5440fi
9f9b7042
NPB
5441pkglibdir='${libdir}/${PACKAGE_TARNAME}'
5442
5443
5444
5445
5446
5447 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5449 last_ac_define_dir=`eval echo $pkglocalstatedir`
5450 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5451 ac_define_dir_counter=0
9f9b7042
NPB
5452 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5453 last_ac_define_dir="$ac_define_dir"
5454 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5455 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5456 if test "x$ac_define_dir_counter" = x128; then :
5457 as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
5458 break
5459fi
9f9b7042
NPB
5460 done
5461 PKGLOCALSTATEDIR="$ac_define_dir"
5462
5463
5464cat >>confdefs.h <<_ACEOF
5465#define PKGLOCALSTATEDIR "$ac_define_dir"
5466_ACEOF
5467
5468
5469
5470
5471 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5473 last_ac_define_dir=`eval echo $pkglibexecdir`
5474 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 5475 ac_define_dir_counter=0
9f9b7042
NPB
5476 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5477 last_ac_define_dir="$ac_define_dir"
5478 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
5479 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
5480 if test "x$ac_define_dir_counter" = x128; then :
5481 as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
5482 break
5483fi
9f9b7042
NPB
5484 done
5485 PKGLIBEXECDIR="$ac_define_dir"
5486
5487
5488cat >>confdefs.h <<_ACEOF
5489#define PKGLIBEXECDIR "$ac_define_dir"
5490_ACEOF
5491
5492
212380e3 5493
7083c021
AC
5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5495$as_echo_n "checking for ANSI C header files... " >&6; }
b6d0720c 5496if ${ac_cv_header_stdc+:} false; then :
7083c021 5497 $as_echo_n "(cached) " >&6
212380e3 5498else
7083c021 5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5500/* end confdefs.h. */
7083c021
AC
5501#include <stdlib.h>
5502#include <stdarg.h>
5503#include <string.h>
5504#include <float.h>
212380e3
AC
5505
5506int
5507main ()
5508{
7083c021 5509
212380e3
AC
5510 ;
5511 return 0;
5512}
5513_ACEOF
7083c021
AC
5514if ac_fn_c_try_compile "$LINENO"; then :
5515 ac_cv_header_stdc=yes
212380e3 5516else
7083c021 5517 ac_cv_header_stdc=no
212380e3 5518fi
631ef239 5519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5520
7083c021
AC
5521if test $ac_cv_header_stdc = yes; then
5522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h. */
5525#include <string.h>
5526
212380e3 5527_ACEOF
7083c021
AC
5528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5529 $EGREP "memchr" >/dev/null 2>&1; then :
5530
5531else
5532 ac_cv_header_stdc=no
5533fi
5534rm -f conftest*
212380e3
AC
5535
5536fi
5537
7083c021
AC
5538if test $ac_cv_header_stdc = yes; then
5539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h. */
5542#include <stdlib.h>
5543
5544_ACEOF
5545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5546 $EGREP "free" >/dev/null 2>&1; then :
212380e3 5547
212380e3 5548else
7083c021 5549 ac_cv_header_stdc=no
631ef239 5550fi
7083c021 5551rm -f conftest*
631ef239 5552
7083c021 5553fi
212380e3 5554
7083c021
AC
5555if test $ac_cv_header_stdc = yes; then
5556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5557 if test "$cross_compiling" = yes; then :
5558 :
212380e3 5559else
7083c021 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5561/* end confdefs.h. */
7083c021
AC
5562#include <ctype.h>
5563#include <stdlib.h>
5564#if ((' ' & 0x0FF) == 0x020)
5565# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5566# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5567#else
5568# define ISLOWER(c) \
5569 (('a' <= (c) && (c) <= 'i') \
5570 || ('j' <= (c) && (c) <= 'r') \
5571 || ('s' <= (c) && (c) <= 'z'))
5572# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
212380e3 5573#endif
7083c021
AC
5574
5575#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
212380e3
AC
5576int
5577main ()
5578{
7083c021
AC
5579 int i;
5580 for (i = 0; i < 256; i++)
5581 if (XOR (islower (i), ISLOWER (i))
5582 || toupper (i) != TOUPPER (i))
5583 return 2;
212380e3
AC
5584 return 0;
5585}
5586_ACEOF
7083c021 5587if ac_fn_c_try_run "$LINENO"; then :
212380e3 5588
7083c021
AC
5589else
5590 ac_cv_header_stdc=no
631ef239 5591fi
7083c021
AC
5592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5593 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5594fi
7083c021 5595
212380e3 5596fi
212380e3 5597fi
7083c021
AC
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5599$as_echo "$ac_cv_header_stdc" >&6; }
5600if test $ac_cv_header_stdc = yes; then
5601
5602$as_echo "#define STDC_HEADERS 1" >>confdefs.h
212380e3
AC
5603
5604fi
5605
5606
7083c021
AC
5607for 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
5608do :
5609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5610ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
b6d0720c 5611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083c021
AC
5612 cat >>confdefs.h <<_ACEOF
5613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5614_ACEOF
212380e3 5615
212380e3
AC
5616fi
5617
7083c021 5618done
212380e3
AC
5619
5620
212380e3 5621
7083c021
AC
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5623$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
b6d0720c 5624if ${ac_cv_c_const+:} false; then :
7083c021
AC
5625 $as_echo_n "(cached) " >&6
5626else
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628/* end confdefs.h. */
212380e3 5629
7083c021
AC
5630int
5631main ()
5632{
2eff3833 5633
7083c021 5634#ifndef __cplusplus
2eff3833 5635 /* Ultrix mips cc rejects this sort of thing. */
7083c021 5636 typedef int charset[2];
2eff3833 5637 const charset cs = { 0, 0 };
7083c021
AC
5638 /* SunOS 4.1.1 cc rejects this. */
5639 char const *const *pcpcc;
5640 char **ppc;
5641 /* NEC SVR4.0.2 mips cc rejects this. */
5642 struct point {int x, y;};
5643 static struct point const zero = {0,0};
5644 /* AIX XL C 1.02.0.0 rejects this.
5645 It does not let you subtract one const X* pointer from another in
5646 an arm of an if-expression whose if-part is not a constant
5647 expression */
5648 const char *g = "string";
5649 pcpcc = &g + (g ? g-g : 0);
5650 /* HPUX 7.0 cc rejects these. */
5651 ++pcpcc;
5652 ppc = (char**) pcpcc;
5653 pcpcc = (char const *const *) ppc;
2eff3833
JT
5654 { /* SCO 3.2v4 cc rejects this sort of thing. */
5655 char tx;
5656 char *t = &tx;
7083c021 5657 char const *s = 0 ? (char *) 0 : (char const *) 0;
212380e3 5658
7083c021
AC
5659 *t++ = 0;
5660 if (s) return 0;
5661 }
5662 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5663 int x[] = {25, 17};
5664 const int *foo = &x[0];
5665 ++foo;
5666 }
5667 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5668 typedef const int *iptr;
5669 iptr p = 0;
5670 ++p;
5671 }
2eff3833 5672 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
7083c021 5673 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2eff3833
JT
5674 struct s { int j; const int *ap[3]; } bx;
5675 struct s *b = &bx; b->j = 5;
7083c021
AC
5676 }
5677 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5678 const int foo = 10;
5679 if (!foo) return 0;
5680 }
5681 return !cs[0] && !zero.x;
5682#endif
212380e3 5683
7083c021
AC
5684 ;
5685 return 0;
5686}
212380e3 5687_ACEOF
7083c021
AC
5688if ac_fn_c_try_compile "$LINENO"; then :
5689 ac_cv_c_const=yes
212380e3 5690else
7083c021 5691 ac_cv_c_const=no
212380e3 5692fi
631ef239 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5694fi
7083c021
AC
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5696$as_echo "$ac_cv_c_const" >&6; }
5697if test $ac_cv_c_const = no; then
212380e3 5698
7083c021 5699$as_echo "#define const /**/" >>confdefs.h
212380e3
AC
5700
5701fi
5702
7083c021
AC
5703if test "$ac_cv_header_machine_endian_h" = "no" ; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5705$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 5706if ${ac_cv_c_bigendian+:} false; then :
7083c021 5707 $as_echo_n "(cached) " >&6
212380e3 5708else
7083c021
AC
5709 ac_cv_c_bigendian=unknown
5710 # See if we're dealing with a universal compiler.
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712/* end confdefs.h. */
5713#ifndef __APPLE_CC__
5714 not a universal capable compiler
5715 #endif
5716 typedef int dummy;
5717
5718_ACEOF
5719if ac_fn_c_try_compile "$LINENO"; then :
5720
5721 # Check for potential -arch flags. It is not universal unless
5722 # there are at least two -arch flags with different values.
5723 ac_arch=
5724 ac_prev=
5725 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5726 if test -n "$ac_prev"; then
5727 case $ac_word in
5728 i?86 | x86_64 | ppc | ppc64)
5729 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5730 ac_arch=$ac_word
5731 else
5732 ac_cv_c_bigendian=universal
5733 break
5734 fi
5735 ;;
5736 esac
5737 ac_prev=
5738 elif test "x$ac_word" = "x-arch"; then
5739 ac_prev=arch
5740 fi
5741 done
5742fi
5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 if test $ac_cv_c_bigendian = unknown; then
5745 # See if sys/param.h defines the BYTE_ORDER macro.
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5747/* end confdefs.h. */
5748#include <sys/types.h>
7083c021 5749 #include <sys/param.h>
212380e3
AC
5750
5751int
5752main ()
5753{
7083c021
AC
5754#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5755 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5756 && LITTLE_ENDIAN)
5757 bogus endian macros
5758 #endif
212380e3
AC
5759
5760 ;
5761 return 0;
5762}
5763_ACEOF
7083c021 5764if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5765 # It does; now see whether it defined to BIG_ENDIAN or not.
7083c021 5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
5767/* end confdefs.h. */
5768#include <sys/types.h>
7083c021 5769 #include <sys/param.h>
212380e3
AC
5770
5771int
5772main ()
5773{
5774#if BYTE_ORDER != BIG_ENDIAN
7083c021
AC
5775 not big endian
5776 #endif
212380e3
AC
5777
5778 ;
5779 return 0;
5780}
5781_ACEOF
7083c021 5782if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
5783 ac_cv_c_bigendian=yes
5784else
7083c021 5785 ac_cv_c_bigendian=no
212380e3 5786fi
631ef239 5787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083c021
AC
5788fi
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790 fi
5791 if test $ac_cv_c_bigendian = unknown; then
5792 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h. */
5795#include <limits.h>
212380e3 5796
7083c021
AC
5797int
5798main ()
5799{
5800#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5801 bogus endian macros
5802 #endif
5803
5804 ;
5805 return 0;
5806}
212380e3 5807_ACEOF
7083c021
AC
5808if ac_fn_c_try_compile "$LINENO"; then :
5809 # It does; now see whether it defined to _BIG_ENDIAN or not.
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5811/* end confdefs.h. */
7083c021
AC
5812#include <limits.h>
5813
212380e3
AC
5814int
5815main ()
5816{
7083c021
AC
5817#ifndef _BIG_ENDIAN
5818 not big endian
5819 #endif
5820
212380e3
AC
5821 ;
5822 return 0;
5823}
5824_ACEOF
7083c021 5825if ac_fn_c_try_compile "$LINENO"; then :
212380e3 5826 ac_cv_c_bigendian=yes
7083c021
AC
5827else
5828 ac_cv_c_bigendian=no
212380e3 5829fi
7083c021 5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5831fi
7083c021
AC
5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 fi
5834 if test $ac_cv_c_bigendian = unknown; then
5835 # Compile a test program.
5836 if test "$cross_compiling" = yes; then :
5837 # Try to guess by grepping values from an object file.
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839/* end confdefs.h. */
5840short int ascii_mm[] =
5841 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5842 short int ascii_ii[] =
5843 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5844 int use_ascii (int i) {
5845 return ascii_mm[i] + ascii_ii[i];
5846 }
5847 short int ebcdic_ii[] =
5848 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5849 short int ebcdic_mm[] =
5850 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5851 int use_ebcdic (int i) {
5852 return ebcdic_mm[i] + ebcdic_ii[i];
5853 }
5854 extern int foo;
631ef239 5855
7083c021
AC
5856int
5857main ()
5858{
5859return use_ascii (foo) == use_ebcdic (foo);
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864if ac_fn_c_try_compile "$LINENO"; then :
5865 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5866 ac_cv_c_bigendian=yes
5867 fi
5868 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5869 if test "$ac_cv_c_bigendian" = unknown; then
5870 ac_cv_c_bigendian=no
5871 else
5872 # finding both strings is unlikely to happen, but who knows?
5873 ac_cv_c_bigendian=unknown
5874 fi
5875 fi
212380e3 5876fi
631ef239 5877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5878else
7083c021 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 5880/* end confdefs.h. */
631ef239 5881$ac_includes_default
212380e3
AC
5882int
5883main ()
5884{
631ef239 5885
7083c021
AC
5886 /* Are we little or big endian? From Harbison&Steele. */
5887 union
5888 {
5889 long int l;
5890 char c[sizeof (long int)];
5891 } u;
5892 u.l = 1;
5893 return u.c[sizeof (long int) - 1] == 1;
631ef239
AC
5894
5895 ;
5896 return 0;
212380e3
AC
5897}
5898_ACEOF
7083c021 5899if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
5900 ac_cv_c_bigendian=no
5901else
7083c021 5902 ac_cv_c_bigendian=yes
212380e3 5903fi
7083c021
AC
5904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5905 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 5906fi
631ef239 5907
7083c021 5908 fi
212380e3 5909fi
7083c021
AC
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5911$as_echo "$ac_cv_c_bigendian" >&6; }
5912 case $ac_cv_c_bigendian in #(
5913 yes)
5914 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5915;; #(
5916 no)
5917 ;; #(
5918 universal)
5919
5920$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5921
5922 ;; #(
5923 *)
b6d0720c 5924 as_fn_error $? "unknown endianness
7083c021
AC
5925 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5926 esac
631ef239 5927
212380e3 5928fi
7083c021 5929ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
b6d0720c 5930if test "x$ac_cv_type_pid_t" = xyes; then :
212380e3 5931
7083c021 5932else
212380e3 5933
7083c021
AC
5934cat >>confdefs.h <<_ACEOF
5935#define pid_t int
5936_ACEOF
212380e3 5937
212380e3 5938fi
7083c021
AC
5939
5940ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
b6d0720c 5941if test "x$ac_cv_type_size_t" = xyes; then :
7083c021 5942
212380e3 5943else
7083c021
AC
5944
5945cat >>confdefs.h <<_ACEOF
5946#define size_t unsigned int
212380e3 5947_ACEOF
7083c021
AC
5948
5949fi
5950
5951# The cast to long int works around a bug in the HP C Compiler
5952# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5953# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5954# This bug is HP SR number 8606223364.
5955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5956$as_echo_n "checking size of short... " >&6; }
b6d0720c 5957if ${ac_cv_sizeof_short+:} false; then :
7083c021 5958 $as_echo_n "(cached) " >&6
212380e3 5959else
7083c021
AC
5960 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5961
5962else
5963 if test "$ac_cv_type_short" = yes; then
5964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5966as_fn_error 77 "cannot compute sizeof (short)
5967See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
5968 else
5969 ac_cv_sizeof_short=0
5970 fi
5971fi
212380e3 5972
212380e3 5973fi
7083c021
AC
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5975$as_echo "$ac_cv_sizeof_short" >&6; }
631ef239 5976
212380e3 5977
7083c021
AC
5978
5979cat >>confdefs.h <<_ACEOF
5980#define SIZEOF_SHORT $ac_cv_sizeof_short
212380e3 5981_ACEOF
7083c021
AC
5982
5983
5984# The cast to long int works around a bug in the HP C Compiler
5985# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5986# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5987# This bug is HP SR number 8606223364.
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5989$as_echo_n "checking size of int... " >&6; }
b6d0720c 5990if ${ac_cv_sizeof_int+:} false; then :
7083c021
AC
5991 $as_echo_n "(cached) " >&6
5992else
5993 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5994
5995else
5996 if test "$ac_cv_type_int" = yes; then
5997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
5999as_fn_error 77 "cannot compute sizeof (int)
6000See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6001 else
6002 ac_cv_sizeof_int=0
6003 fi
6004fi
6005
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6008$as_echo "$ac_cv_sizeof_int" >&6; }
6009
6010
6011
6012cat >>confdefs.h <<_ACEOF
6013#define SIZEOF_INT $ac_cv_sizeof_int
212380e3 6014_ACEOF
7083c021
AC
6015
6016
6017# The cast to long int works around a bug in the HP C Compiler
6018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6020# This bug is HP SR number 8606223364.
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6022$as_echo_n "checking size of long... " >&6; }
b6d0720c 6023if ${ac_cv_sizeof_long+:} false; then :
7083c021 6024 $as_echo_n "(cached) " >&6
212380e3 6025else
7083c021 6026 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
212380e3 6027
7083c021
AC
6028else
6029 if test "$ac_cv_type_long" = yes; then
6030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6032as_fn_error 77 "cannot compute sizeof (long)
6033See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6034 else
6035 ac_cv_sizeof_long=0
6036 fi
212380e3 6037fi
631ef239 6038
7083c021
AC
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6041$as_echo "$ac_cv_sizeof_long" >&6; }
212380e3 6042
631ef239 6043
7083c021
AC
6044
6045cat >>confdefs.h <<_ACEOF
6046#define SIZEOF_LONG $ac_cv_sizeof_long
6047_ACEOF
6048
6049
6050# The cast to long int works around a bug in the HP C Compiler
6051# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6052# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6053# This bug is HP SR number 8606223364.
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6055$as_echo_n "checking size of long long... " >&6; }
b6d0720c 6056if ${ac_cv_sizeof_long_long+:} false; then :
7083c021
AC
6057 $as_echo_n "(cached) " >&6
6058else
6059 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6060
212380e3 6061else
7083c021
AC
6062 if test "$ac_cv_type_long_long" = yes; then
6063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
b6d0720c
AC
6065as_fn_error 77 "cannot compute sizeof (long long)
6066See \`config.log' for more details" "$LINENO" 5; }
7083c021
AC
6067 else
6068 ac_cv_sizeof_long_long=0
6069 fi
212380e3 6070fi
212380e3
AC
6071
6072fi
7083c021
AC
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6074$as_echo "$ac_cv_sizeof_long_long" >&6; }
212380e3
AC
6075
6076
6077
7083c021
AC
6078cat >>confdefs.h <<_ACEOF
6079#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6080_ACEOF
212380e3 6081
212380e3 6082
212380e3 6083
7083c021
AC
6084
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6086$as_echo_n "checking for library containing socket... " >&6; }
b6d0720c 6087if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6088 $as_echo_n "(cached) " >&6
6089else
6090 ac_func_search_save_LIBS=$LIBS
6091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6092/* end confdefs.h. */
7083c021
AC
6093
6094/* Override any GCC internal prototype to avoid an error.
6095 Use char because int might match the return type of a GCC
6096 builtin and then its argument prototype would still apply. */
6097#ifdef __cplusplus
6098extern "C"
6099#endif
6100char socket ();
212380e3
AC
6101int
6102main ()
6103{
7083c021 6104return socket ();
212380e3
AC
6105 ;
6106 return 0;
6107}
6108_ACEOF
7083c021
AC
6109for ac_lib in '' socket; do
6110 if test -z "$ac_lib"; then
6111 ac_res="none required"
6112 else
6113 ac_res=-l$ac_lib
6114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6115 fi
6116 if ac_fn_c_try_link "$LINENO"; then :
6117 ac_cv_search_socket=$ac_res
6118fi
6119rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext
b6d0720c 6121 if ${ac_cv_search_socket+:} false; then :
7083c021
AC
6122 break
6123fi
6124done
b6d0720c 6125if ${ac_cv_search_socket+:} false; then :
212380e3
AC
6126
6127else
7083c021
AC
6128 ac_cv_search_socket=no
6129fi
6130rm conftest.$ac_ext
6131LIBS=$ac_func_search_save_LIBS
6132fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6134$as_echo "$ac_cv_search_socket" >&6; }
6135ac_res=$ac_cv_search_socket
6136if test "$ac_res" != no; then :
6137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6138
7083c021 6139else
b6d0720c 6140 as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5
212380e3 6141fi
631ef239 6142
212380e3 6143
7083c021
AC
6144if test x"$SUN" = xyes; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6146$as_echo_n "checking for library containing inet_ntoa... " >&6; }
b6d0720c 6147if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6148 $as_echo_n "(cached) " >&6
6149else
6150 ac_func_search_save_LIBS=$LIBS
6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6152/* end confdefs.h. */
7083c021
AC
6153
6154/* Override any GCC internal prototype to avoid an error.
6155 Use char because int might match the return type of a GCC
6156 builtin and then its argument prototype would still apply. */
6157#ifdef __cplusplus
6158extern "C"
6159#endif
6160char inet_ntoa ();
212380e3
AC
6161int
6162main ()
6163{
7083c021 6164return inet_ntoa ();
212380e3
AC
6165 ;
6166 return 0;
6167}
6168_ACEOF
7083c021
AC
6169for ac_lib in '' nsl; do
6170 if test -z "$ac_lib"; then
6171 ac_res="none required"
6172 else
6173 ac_res=-l$ac_lib
6174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6175 fi
6176 if ac_fn_c_try_link "$LINENO"; then :
6177 ac_cv_search_inet_ntoa=$ac_res
6178fi
6179rm -f core conftest.err conftest.$ac_objext \
6180 conftest$ac_exeext
b6d0720c 6181 if ${ac_cv_search_inet_ntoa+:} false; then :
7083c021
AC
6182 break
6183fi
6184done
b6d0720c 6185if ${ac_cv_search_inet_ntoa+:} false; then :
212380e3
AC
6186
6187else
7083c021
AC
6188 ac_cv_search_inet_ntoa=no
6189fi
6190rm conftest.$ac_ext
6191LIBS=$ac_func_search_save_LIBS
6192fi
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6194$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6195ac_res=$ac_cv_search_inet_ntoa
6196if test "$ac_res" != no; then :
6197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6198
7083c021 6199else
b6d0720c 6200 as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5
212380e3 6201fi
631ef239 6202
7083c021 6203fi
212380e3 6204
7083c021
AC
6205ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6206#include <sys/socket.h>
6207"
b6d0720c 6208if test "x$ac_cv_type_socklen_t" = xyes; then :
212380e3
AC
6209
6210else
6211
7083c021 6212$as_echo "#define socklen_t unsigned int" >>confdefs.h
212380e3 6213
7083c021 6214fi
212380e3
AC
6215
6216
7083c021
AC
6217# Check whether --enable-ipv6 was given.
6218if test "${enable_ipv6+set}" = set; then :
6219 enableval=$enable_ipv6; ipv6=$enableval
212380e3 6220else
7083c021
AC
6221 ipv6=no
6222fi
212380e3 6223
212380e3 6224
7083c021
AC
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6226$as_echo_n "checking for library containing crypt... " >&6; }
b6d0720c 6227if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6228 $as_echo_n "(cached) " >&6
6229else
6230 ac_func_search_save_LIBS=$LIBS
6231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h. */
212380e3 6233
631ef239
AC
6234/* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
212380e3
AC
6237#ifdef __cplusplus
6238extern "C"
212380e3 6239#endif
7083c021 6240char crypt ();
212380e3
AC
6241int
6242main ()
6243{
7083c021 6244return crypt ();
212380e3
AC
6245 ;
6246 return 0;
6247}
6248_ACEOF
7083c021
AC
6249for ac_lib in '' crypt descrypt; do
6250 if test -z "$ac_lib"; then
6251 ac_res="none required"
6252 else
6253 ac_res=-l$ac_lib
6254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6255 fi
6256 if ac_fn_c_try_link "$LINENO"; then :
6257 ac_cv_search_crypt=$ac_res
6258fi
6259rm -f core conftest.err conftest.$ac_objext \
6260 conftest$ac_exeext
b6d0720c 6261 if ${ac_cv_search_crypt+:} false; then :
7083c021
AC
6262 break
6263fi
6264done
b6d0720c 6265if ${ac_cv_search_crypt+:} false; then :
7083c021 6266
212380e3 6267else
7083c021
AC
6268 ac_cv_search_crypt=no
6269fi
6270rm conftest.$ac_ext
6271LIBS=$ac_func_search_save_LIBS
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6274$as_echo "$ac_cv_search_crypt" >&6; }
6275ac_res=$ac_cv_search_crypt
6276if test "$ac_res" != no; then :
6277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 6278
212380e3 6279fi
631ef239 6280
7083c021
AC
6281
6282CRYPT_LIB=$ac_cv_search_crypt
6283
6284if test "$CRYPT_LIB" = "none required"; then
6285 unset CRYPT_LIB
6286elif test "$CRYPT_LIB" = no; then
6287 unset CRYPT_LIB
212380e3 6288fi
7083c021
AC
6289
6290
6291
6292if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6293 VICONF=viconf
6294 else
6295 VICONF=""
6296fi
6297
6298
6299
6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6301$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
b6d0720c 6302if ${gcc_cv_header_string+:} false; then :
7083c021
AC
6303 $as_echo_n "(cached) " >&6
6304else
6305
6306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h. */
6308#include <string.h>
6309 #include <strings.h>
212380e3 6310_ACEOF
7083c021
AC
6311if ac_fn_c_try_compile "$LINENO"; then :
6312 gcc_cv_header_string=yes
6313else
6314 gcc_cv_header_string=no
6315fi
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6317
6318fi
7083c021
AC
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6320$as_echo "$gcc_cv_header_string" >&6; }
212380e3 6321
7083c021
AC
6322if test "$gcc_cv_header_string" = "yes"; then
6323
6324$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6325
6326fi
212380e3 6327
7083c021
AC
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6329$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
b6d0720c 6330if ${ac_cv_c_bigendian+:} false; then :
7083c021
AC
6331 $as_echo_n "(cached) " >&6
6332else
6333 ac_cv_c_bigendian=unknown
6334 # See if we're dealing with a universal compiler.
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336/* end confdefs.h. */
6337#ifndef __APPLE_CC__
6338 not a universal capable compiler
6339 #endif
6340 typedef int dummy;
6341
6342_ACEOF
6343if ac_fn_c_try_compile "$LINENO"; then :
6344
6345 # Check for potential -arch flags. It is not universal unless
6346 # there are at least two -arch flags with different values.
6347 ac_arch=
6348 ac_prev=
6349 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6350 if test -n "$ac_prev"; then
6351 case $ac_word in
6352 i?86 | x86_64 | ppc | ppc64)
6353 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6354 ac_arch=$ac_word
6355 else
6356 ac_cv_c_bigendian=universal
6357 break
6358 fi
6359 ;;
6360 esac
6361 ac_prev=
6362 elif test "x$ac_word" = "x-arch"; then
6363 ac_prev=arch
6364 fi
6365 done
212380e3 6366fi
7083c021
AC
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 if test $ac_cv_c_bigendian = unknown; then
6369 # See if sys/param.h defines the BYTE_ORDER macro.
6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371/* end confdefs.h. */
6372#include <sys/types.h>
6373 #include <sys/param.h>
6374
6375int
6376main ()
6377{
6378#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6379 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6380 && LITTLE_ENDIAN)
6381 bogus endian macros
6382 #endif
6383
6384 ;
6385 return 0;
6386}
6387_ACEOF
6388if ac_fn_c_try_compile "$LINENO"; then :
6389 # It does; now see whether it defined to BIG_ENDIAN or not.
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391/* end confdefs.h. */
6392#include <sys/types.h>
6393 #include <sys/param.h>
6394
6395int
6396main ()
6397{
6398#if BYTE_ORDER != BIG_ENDIAN
6399 not big endian
6400 #endif
212380e3 6401
7083c021
AC
6402 ;
6403 return 0;
6404}
6405_ACEOF
6406if ac_fn_c_try_compile "$LINENO"; then :
6407 ac_cv_c_bigendian=yes
212380e3 6408else
7083c021
AC
6409 ac_cv_c_bigendian=no
6410fi
6411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412fi
6413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 fi
6415 if test $ac_cv_c_bigendian = unknown; then
6416 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418/* end confdefs.h. */
6419#include <limits.h>
6420
6421int
6422main ()
6423{
6424#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6425 bogus endian macros
6426 #endif
6427
6428 ;
6429 return 0;
6430}
212380e3 6431_ACEOF
7083c021
AC
6432if ac_fn_c_try_compile "$LINENO"; then :
6433 # It does; now see whether it defined to _BIG_ENDIAN or not.
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6435/* end confdefs.h. */
7083c021
AC
6436#include <limits.h>
6437
212380e3
AC
6438int
6439main ()
6440{
7083c021
AC
6441#ifndef _BIG_ENDIAN
6442 not big endian
6443 #endif
6444
212380e3
AC
6445 ;
6446 return 0;
6447}
6448_ACEOF
7083c021
AC
6449if ac_fn_c_try_compile "$LINENO"; then :
6450 ac_cv_c_bigendian=yes
212380e3 6451else
7083c021 6452 ac_cv_c_bigendian=no
212380e3 6453fi
631ef239 6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6455fi
7083c021
AC
6456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 if test $ac_cv_c_bigendian = unknown; then
6459 # Compile a test program.
6460 if test "$cross_compiling" = yes; then :
6461 # Try to guess by grepping values from an object file.
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h. */
6464short int ascii_mm[] =
6465 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6466 short int ascii_ii[] =
6467 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6468 int use_ascii (int i) {
6469 return ascii_mm[i] + ascii_ii[i];
6470 }
6471 short int ebcdic_ii[] =
6472 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6473 short int ebcdic_mm[] =
6474 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6475 int use_ebcdic (int i) {
6476 return ebcdic_mm[i] + ebcdic_ii[i];
6477 }
6478 extern int foo;
212380e3 6479
7083c021
AC
6480int
6481main ()
6482{
6483return use_ascii (foo) == use_ebcdic (foo);
6484 ;
6485 return 0;
6486}
212380e3 6487_ACEOF
7083c021
AC
6488if ac_fn_c_try_compile "$LINENO"; then :
6489 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6490 ac_cv_c_bigendian=yes
6491 fi
6492 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6493 if test "$ac_cv_c_bigendian" = unknown; then
6494 ac_cv_c_bigendian=no
6495 else
6496 # finding both strings is unlikely to happen, but who knows?
6497 ac_cv_c_bigendian=unknown
6498 fi
6499 fi
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6504/* end confdefs.h. */
6505$ac_includes_default
6506int
6507main ()
6508{
7083c021
AC
6509
6510 /* Are we little or big endian? From Harbison&Steele. */
6511 union
6512 {
6513 long int l;
6514 char c[sizeof (long int)];
6515 } u;
6516 u.l = 1;
6517 return u.c[sizeof (long int) - 1] == 1;
6518
212380e3
AC
6519 ;
6520 return 0;
6521}
6522_ACEOF
7083c021
AC
6523if ac_fn_c_try_run "$LINENO"; then :
6524 ac_cv_c_bigendian=no
212380e3 6525else
7083c021 6526 ac_cv_c_bigendian=yes
212380e3 6527fi
7083c021
AC
6528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6529 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6530fi
212380e3 6531
7083c021
AC
6532 fi
6533fi
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6535$as_echo "$ac_cv_c_bigendian" >&6; }
6536 case $ac_cv_c_bigendian in #(
6537 yes)
6538 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6539;; #(
6540 no)
6541 ;; #(
6542 universal)
212380e3 6543
7083c021 6544$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
212380e3 6545
7083c021
AC
6546 ;; #(
6547 *)
b6d0720c 6548 as_fn_error $? "unknown endianness
7083c021
AC
6549 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6550 esac
212380e3 6551
212380e3 6552
7083c021 6553ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
b6d0720c 6554if test "x$ac_cv_header_stdarg_h" = xyes; then :
212380e3 6555
7083c021 6556else
b6d0720c 6557 as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
7083c021 6558fi
212380e3
AC
6559
6560
212380e3
AC
6561
6562
7083c021 6563if test "$ac_cv_c_compiler_gnu" = yes; then
212380e3 6564
7083c021
AC
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6566$as_echo_n "checking for strlcpy... " >&6; }
6567save_CFLAGS=$CFLAGS
6568CFLAGS="$CFLAGS -Wimplicit -Werror"
212380e3 6569
7083c021 6570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6571/* end confdefs.h. */
7083c021
AC
6572#include <string.h>
6573 #include <stdlib.h>
212380e3
AC
6574int
6575main ()
6576{
7083c021
AC
6577char *a = malloc(6);
6578 strlcpy(a, "hello", 6);
6579
212380e3
AC
6580 ;
6581 return 0;
6582}
6583_ACEOF
7083c021
AC
6584if ac_fn_c_try_link "$LINENO"; then :
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6586$as_echo "yes" >&6; }
212380e3 6587
7083c021 6588$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
631ef239 6589
212380e3 6590else
7083c021
AC
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592$as_echo "no" >&6; }
212380e3 6593
7083c021
AC
6594fi
6595rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6599$as_echo_n "checking for strlcat... " >&6; }
6600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6601/* end confdefs.h. */
7083c021
AC
6602#include <string.h>
6603 #include <stdlib.h>
212380e3
AC
6604int
6605main ()
6606{
7083c021
AC
6607char *a = malloc(6);
6608 a[0] = '\0';
6609 strlcat(a, "hello", 6);
6610
212380e3
AC
6611 ;
6612 return 0;
6613}
6614_ACEOF
7083c021
AC
6615if ac_fn_c_try_link "$LINENO"; then :
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6617$as_echo "yes" >&6; }
631ef239 6618
7083c021 6619$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
212380e3 6620
7083c021
AC
6621else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
212380e3 6624
7083c021
AC
6625fi
6626rm -f core conftest.err conftest.$ac_objext \
6627 conftest$ac_exeext conftest.$ac_ext
212380e3 6628
7083c021 6629CFLAGS=$save_CFLAGS
212380e3
AC
6630
6631else
6632
212380e3 6633
7083c021
AC
6634for ac_func in strlcat strlcpy
6635do :
6636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6637ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6638if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7083c021
AC
6639 cat >>confdefs.h <<_ACEOF
6640#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6641_ACEOF
6642
212380e3 6643fi
7083c021 6644done
212380e3
AC
6645
6646
6647fi
6648
7083c021 6649ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
b6d0720c 6650if test "x$ac_cv_type_u_int32_t" = xyes; then :
212380e3 6651
212380e3 6652else
212380e3 6653
7083c021 6654 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
b6d0720c 6655if test "x$ac_cv_type_uint32_t" = xyes; then :
212380e3 6656
631ef239 6657
7083c021 6658$as_echo "#define u_int32_t uint32_t" >>confdefs.h
212380e3 6659
212380e3 6660
7083c021 6661else
212380e3 6662
7083c021
AC
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6664$as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
212380e3 6665
7083c021 6666$as_echo "#define u_int32_t unsigned long int" >>confdefs.h
212380e3 6667
212380e3 6668
212380e3 6669fi
631ef239 6670
7083c021 6671
212380e3 6672fi
7083c021
AC
6673
6674
6675ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
b6d0720c 6676if test "x$ac_cv_type_u_int16_t" = xyes; then :
7083c021 6677
212380e3
AC
6678else
6679
7083c021 6680 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
b6d0720c 6681if test "x$ac_cv_type_uint16_t" = xyes; then :
212380e3 6682
7083c021
AC
6683
6684$as_echo "#define u_int16_t uint16_t" >>confdefs.h
212380e3
AC
6685
6686
212380e3 6687else
212380e3 6688
7083c021
AC
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6690$as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
631ef239 6691
7083c021 6692$as_echo "#define u_int16_t unsigned short int" >>confdefs.h
212380e3 6693
7083c021
AC
6694
6695fi
212380e3
AC
6696
6697
6698fi
6699
6700
7083c021
AC
6701ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6702#include <netinet/in.h>
6703"
b6d0720c 6704if test "x$ac_cv_type_in_port_t" = xyes; then :
212380e3 6705
7083c021 6706else
212380e3 6707
7083c021 6708$as_echo "#define in_port_t u_int16_t" >>confdefs.h
212380e3 6709
7083c021 6710fi
212380e3
AC
6711
6712
7083c021
AC
6713ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6714#include <sys/socket.h>
6715"
b6d0720c 6716if test "x$ac_cv_type_sa_family_t" = xyes; then :
212380e3 6717
212380e3 6718else
212380e3 6719
7083c021 6720$as_echo "#define sa_family_t u_int16_t" >>confdefs.h
212380e3 6721
7083c021 6722fi
212380e3 6723
212380e3 6724
7083c021 6725ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
b6d0720c 6726if test "x$ac_cv_type_uintptr_t" = xyes; then :
212380e3 6727
7083c021
AC
6728cat >>confdefs.h <<_ACEOF
6729#define HAVE_UINTPTR_T 1
6730_ACEOF
212380e3 6731
631ef239 6732
212380e3 6733fi
7083c021
AC
6734
6735
6736for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
6737do :
6738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6739ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6740if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3 6741 cat >>confdefs.h <<_ACEOF
7083c021 6742#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
212380e3
AC
6743_ACEOF
6744
6745fi
6746done
6747
6748
6749# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6750# for constant arguments. Useless!
7083c021
AC
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6752$as_echo_n "checking for working alloca.h... " >&6; }
b6d0720c 6753if ${ac_cv_working_alloca_h+:} false; then :
7083c021 6754 $as_echo_n "(cached) " >&6
212380e3 6755else
7083c021 6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6757/* end confdefs.h. */
6758#include <alloca.h>
6759int
6760main ()
6761{
6762char *p = (char *) alloca (2 * sizeof (int));
631ef239 6763 if (p) return 0;
212380e3
AC
6764 ;
6765 return 0;
6766}
6767_ACEOF
7083c021 6768if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6769 ac_cv_working_alloca_h=yes
6770else
7083c021 6771 ac_cv_working_alloca_h=no
212380e3 6772fi
7083c021
AC
6773rm -f core conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
212380e3 6775fi
7083c021
AC
6776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6777$as_echo "$ac_cv_working_alloca_h" >&6; }
212380e3
AC
6778if test $ac_cv_working_alloca_h = yes; then
6779
7083c021 6780$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
212380e3
AC
6781
6782fi
6783
7083c021
AC
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6785$as_echo_n "checking for alloca... " >&6; }
b6d0720c 6786if ${ac_cv_func_alloca_works+:} false; then :
7083c021 6787 $as_echo_n "(cached) " >&6
212380e3 6788else
7083c021 6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6790/* end confdefs.h. */
6791#ifdef __GNUC__
6792# define alloca __builtin_alloca
6793#else
6794# ifdef _MSC_VER
6795# include <malloc.h>
6796# define alloca _alloca
6797# else
631ef239 6798# ifdef HAVE_ALLOCA_H
212380e3
AC
6799# include <alloca.h>
6800# else
6801# ifdef _AIX
6802 #pragma alloca
6803# else
6804# ifndef alloca /* predefined by HP cc +Olibcalls */
b6d0720c 6805void *alloca (size_t);
212380e3
AC
6806# endif
6807# endif
6808# endif
6809# endif
6810#endif
6811
6812int
6813main ()
6814{
6815char *p = (char *) alloca (1);
631ef239 6816 if (p) return 0;
212380e3
AC
6817 ;
6818 return 0;
6819}
6820_ACEOF
7083c021 6821if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6822 ac_cv_func_alloca_works=yes
6823else
7083c021 6824 ac_cv_func_alloca_works=no
212380e3 6825fi
7083c021
AC
6826rm -f core conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
212380e3 6828fi
7083c021
AC
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6830$as_echo "$ac_cv_func_alloca_works" >&6; }
212380e3
AC
6831
6832if test $ac_cv_func_alloca_works = yes; then
6833
7083c021 6834$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
212380e3
AC
6835
6836else
6837 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6838# that cause trouble. Some versions do not even contain alloca or
6839# contain a buggy version. If you still want to use their alloca,
6840# use ar to extract alloca.o from them instead of compiling alloca.c.
6841
631ef239 6842ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 6843
7083c021 6844$as_echo "#define C_ALLOCA 1" >>confdefs.h
212380e3
AC
6845
6846
7083c021
AC
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6848$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
b6d0720c 6849if ${ac_cv_os_cray+:} false; then :
7083c021 6850 $as_echo_n "(cached) " >&6
212380e3 6851else
7083c021 6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6853/* end confdefs.h. */
631ef239 6854#if defined CRAY && ! defined CRAY2
212380e3
AC
6855webecray
6856#else
6857wenotbecray
6858#endif
6859
6860_ACEOF
6861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083c021 6862 $EGREP "webecray" >/dev/null 2>&1; then :
212380e3
AC
6863 ac_cv_os_cray=yes
6864else
6865 ac_cv_os_cray=no
6866fi
6867rm -f conftest*
6868
6869fi
7083c021
AC
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6871$as_echo "$ac_cv_os_cray" >&6; }
212380e3
AC
6872if test $ac_cv_os_cray = yes; then
6873 for ac_func in _getb67 GETB67 getb67; do
7083c021
AC
6874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
b6d0720c 6876if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
212380e3
AC
6877
6878cat >>confdefs.h <<_ACEOF
6879#define CRAY_STACKSEG_END $ac_func
6880_ACEOF
6881
6882 break
6883fi
6884
6885 done
6886fi
6887
7083c021
AC
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6889$as_echo_n "checking stack direction for C alloca... " >&6; }
b6d0720c 6890if ${ac_cv_c_stack_direction+:} false; then :
7083c021 6891 $as_echo_n "(cached) " >&6
212380e3 6892else
7083c021 6893 if test "$cross_compiling" = yes; then :
212380e3
AC
6894 ac_cv_c_stack_direction=0
6895else
7083c021 6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3 6897/* end confdefs.h. */
631ef239 6898$ac_includes_default
212380e3 6899int
2eff3833 6900find_stack_direction (int *addr, int depth)
212380e3 6901{
2eff3833
JT
6902 int dir, dummy = 0;
6903 if (! addr)
6904 addr = &dummy;
6905 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6906 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6907 return dir + dummy;
212380e3
AC
6908}
6909
6910int
2eff3833 6911main (int argc, char **argv)
212380e3 6912{
2eff3833 6913 return find_stack_direction (0, argc + !argv + 20) < 0;
212380e3
AC
6914}
6915_ACEOF
7083c021 6916if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
6917 ac_cv_c_stack_direction=1
6918else
7083c021 6919 ac_cv_c_stack_direction=-1
212380e3 6920fi
7083c021
AC
6921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6922 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 6923fi
631ef239 6924
212380e3 6925fi
7083c021
AC
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6927$as_echo "$ac_cv_c_stack_direction" >&6; }
212380e3
AC
6928cat >>confdefs.h <<_ACEOF
6929#define STACK_DIRECTION $ac_cv_c_stack_direction
6930_ACEOF
6931
6932
6933fi
6934
6935
6936
7083c021 6937ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
b6d0720c 6938if test "x$ac_cv_func_nanosleep" = xyes; then :
631ef239 6939
212380e3 6940else
7083c021
AC
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6942$as_echo_n "checking for nanosleep in -lrt... " >&6; }
b6d0720c 6943if ${ac_cv_lib_rt_nanosleep+:} false; then :
7083c021 6944 $as_echo_n "(cached) " >&6
212380e3
AC
6945else
6946 ac_check_lib_save_LIBS=$LIBS
6947LIBS="-lrt $LIBS"
7083c021 6948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6949/* end confdefs.h. */
6950
631ef239
AC
6951/* Override any GCC internal prototype to avoid an error.
6952 Use char because int might match the return type of a GCC
6953 builtin and then its argument prototype would still apply. */
212380e3
AC
6954#ifdef __cplusplus
6955extern "C"
6956#endif
212380e3
AC
6957char nanosleep ();
6958int
6959main ()
6960{
631ef239 6961return nanosleep ();
212380e3
AC
6962 ;
6963 return 0;
6964}
6965_ACEOF
7083c021 6966if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
6967 ac_cv_lib_rt_nanosleep=yes
6968else
7083c021 6969 ac_cv_lib_rt_nanosleep=no
212380e3 6970fi
7083c021
AC
6971rm -f core conftest.err conftest.$ac_objext \
6972 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
6973LIBS=$ac_check_lib_save_LIBS
6974fi
7083c021
AC
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6976$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
b6d0720c 6977if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
212380e3
AC
6978 LIBS="${LIBS} -lrt"
6979else
7083c021
AC
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6981$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
b6d0720c 6982if ${ac_cv_lib_posix4_nanosleep+:} false; then :
7083c021 6983 $as_echo_n "(cached) " >&6
212380e3
AC
6984else
6985 ac_check_lib_save_LIBS=$LIBS
6986LIBS="-lposix4 $LIBS"
7083c021 6987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
6988/* end confdefs.h. */
6989
631ef239
AC
6990/* Override any GCC internal prototype to avoid an error.
6991 Use char because int might match the return type of a GCC
6992 builtin and then its argument prototype would still apply. */
212380e3
AC
6993#ifdef __cplusplus
6994extern "C"
6995#endif
212380e3
AC
6996char nanosleep ();
6997int
6998main ()
6999{
631ef239 7000return nanosleep ();
212380e3
AC
7001 ;
7002 return 0;
7003}
7004_ACEOF
7083c021 7005if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7006 ac_cv_lib_posix4_nanosleep=yes
7007else
7083c021 7008 ac_cv_lib_posix4_nanosleep=no
212380e3 7009fi
7083c021
AC
7010rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7012LIBS=$ac_check_lib_save_LIBS
7013fi
7083c021
AC
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
7015$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
b6d0720c 7016if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
212380e3
AC
7017 LIBS="${LIBS} -lposix4"
7018
7019fi
7020
7021fi
7022
7023fi
7024
7025if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
7026then
7083c021
AC
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
7028$as_echo "\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
7029else
7030
7083c021 7031$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
212380e3
AC
7032
7033fi
7034
7083c021
AC
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
7036$as_echo_n "checking for OpenSSL... " >&6; }
631ef239 7037# Check whether --enable-openssl was given.
7083c021 7038if test "${enable_openssl+set}" = set; then :
631ef239 7039 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
7040else
7041 cf_enable_openssl="auto"
631ef239
AC
7042fi
7043
212380e3
AC
7044
7045if test "$cf_enable_openssl" != "no" ; then
7046 cf_openssl_basedir=""
7047 if test "$cf_enable_openssl" != "auto" &&
7048 test "$cf_enable_openssl" != "yes" ; then
7049 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7050 else
7051 for dirs in /usr/local/ssl /usr/pkg /usr/local \
7052 /usr/local/openssl ; do
7053 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7054 cf_openssl_basedir="${dirs}"
7055 break
7056 fi
7057 done
7058 unset dirs
7059 fi
7060 if test ! -z "$cf_openssl_basedir"; then
7061 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7062 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
7063 SSL_LIBS="-L${cf_openssl_basedir}/lib"
7064 else
7065 cf_openssl_basedir=""
7066 fi
7067 else
7068 if test -f "/usr/include/openssl/opensslv.h" ; then
7069 cf_openssl_basedir="/usr"
7070 fi
7071 fi
7072
7073 if test ! -z "$cf_openssl_basedir"; then
7083c021
AC
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7075$as_echo "$cf_openssl_basedir" >&6; }
212380e3
AC
7076 cf_enable_openssl="yes"
7077 else
7083c021
AC
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7079$as_echo "not found. Specify a correct path?" >&6; }
212380e3
AC
7080 cf_enable_openssl="no"
7081 fi
7082 unset cf_openssl_basedir
7083else
7083c021
AC
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7085$as_echo "disabled" >&6; }
212380e3
AC
7086fi
7087
7088save_CPPFLAGS="$CPPFLAGS"
7089CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
7090save_LIBS="$LIBS"
7091LIBS="$LIBS $SSL_LIBS"
7092if test "$cf_enable_openssl" != no; then
7083c021
AC
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7094$as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7095 if test "$cross_compiling" = yes; then :
212380e3
AC
7096 cf_openssl_version_ok=no
7097else
7083c021 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7099/* end confdefs.h. */
7100#include <openssl/opensslv.h>
7101 #include <stdlib.h>
7102int
7103main ()
7104{
7105if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7106 exit(0); else exit(1);
7107 ;
7108 return 0;
7109}
7110_ACEOF
7083c021 7111if ac_fn_c_try_run "$LINENO"; then :
212380e3
AC
7112 cf_openssl_version_ok=yes
7113else
7083c021 7114 cf_openssl_version_ok=no
212380e3 7115fi
7083c021
AC
7116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7117 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3
AC
7118fi
7119
631ef239 7120
212380e3 7121 if test "$cf_openssl_version_ok" = yes; then
7083c021
AC
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7123$as_echo "found" >&6; }
212380e3
AC
7124
7125 ENCSPEED=encspeed
7126
7127
7128 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
7083c021
AC
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7130$as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
b6d0720c 7131if ${ac_cv_lib_crypto_RSA_free+:} false; then :
7083c021 7132 $as_echo_n "(cached) " >&6
212380e3
AC
7133else
7134 ac_check_lib_save_LIBS=$LIBS
7135LIBS="-lcrypto $LIBS"
7083c021 7136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7137/* end confdefs.h. */
7138
631ef239
AC
7139/* Override any GCC internal prototype to avoid an error.
7140 Use char because int might match the return type of a GCC
7141 builtin and then its argument prototype would still apply. */
212380e3
AC
7142#ifdef __cplusplus
7143extern "C"
7144#endif
212380e3
AC
7145char RSA_free ();
7146int
7147main ()
7148{
631ef239 7149return RSA_free ();
212380e3
AC
7150 ;
7151 return 0;
7152}
7153_ACEOF
7083c021 7154if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7155 ac_cv_lib_crypto_RSA_free=yes
7156else
7083c021 7157 ac_cv_lib_crypto_RSA_free=no
212380e3 7158fi
7083c021
AC
7159rm -f core conftest.err conftest.$ac_objext \
7160 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7161LIBS=$ac_check_lib_save_LIBS
7162fi
7083c021
AC
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7164$as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
b6d0720c 7165if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
212380e3
AC
7166 cat >>confdefs.h <<_ACEOF
7167#define HAVE_LIBCRYPTO 1
7168_ACEOF
7169
7170 LIBS="-lcrypto $LIBS"
7171
7172fi
7173
7174 SSL_LIBS="$SSL_LIBS -lcrypto"
7175 SSL_SRCS_ENABLE='$(SSL_SRCS)'
7176 else
7083c021
AC
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7178$as_echo "no - OpenSSL support disabled" >&6; }
212380e3
AC
7179 fi
7180fi
7181
7182CPPFLAGS="$save_CPPFLAGS"
7183LIBS="$save_LIBS"
7184
7185
7186
7187
7188
631ef239 7189# Check whether --with-zlib-path was given.
7083c021 7190if test "${with_zlib_path+set}" = set; then :
631ef239
AC
7191 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
7192fi
212380e3 7193
7083c021
AC
7194
7195# Check whether --enable-zlib was given.
7196if test "${enable_zlib+set}" = set; then :
7197 enableval=$enable_zlib; zlib=$enableval
212380e3 7198else
7083c021 7199 zlib=yes
212380e3 7200fi
212380e3 7201
212380e3 7202
7083c021
AC
7203if test "$zlib" = yes; then
7204
7205ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
b6d0720c 7206if test "x$ac_cv_header_zlib_h" = xyes; then :
7083c021
AC
7207
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7209$as_echo_n "checking for zlibVersion in -lz... " >&6; }
b6d0720c 7210if ${ac_cv_lib_z_zlibVersion+:} false; then :
7083c021 7211 $as_echo_n "(cached) " >&6
212380e3
AC
7212else
7213 ac_check_lib_save_LIBS=$LIBS
7214LIBS="-lz $LIBS"
7083c021 7215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7216/* end confdefs.h. */
7217
631ef239
AC
7218/* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
212380e3
AC
7221#ifdef __cplusplus
7222extern "C"
7223#endif
212380e3
AC
7224char zlibVersion ();
7225int
7226main ()
7227{
631ef239 7228return zlibVersion ();
212380e3
AC
7229 ;
7230 return 0;
7231}
7232_ACEOF
7083c021 7233if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
7234 ac_cv_lib_z_zlibVersion=yes
7235else
7083c021 7236 ac_cv_lib_z_zlibVersion=no
212380e3 7237fi
7083c021
AC
7238rm -f core conftest.err conftest.$ac_objext \
7239 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
7240LIBS=$ac_check_lib_save_LIBS
7241fi
7083c021
AC
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7243$as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
b6d0720c 7244if test "x$ac_cv_lib_z_zlibVersion" = xyes; then :
212380e3
AC
7245
7246 ZLIB_LD=-lz
7247
7248
7083c021 7249$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
212380e3
AC
7250
7251
7252else
7253 zlib=no
7254fi
7255
7256
7257else
7258 zlib=no
7259fi
7260
7261
7262
497e30a0
LS
7263fi
7264
a6ef3156
LS
7265
7266# Check whether --with-shared-sqlite was given.
7267if test "${with_shared_sqlite+set}" = set; then :
7268 withval=$with_shared_sqlite; shared_sqlite=$withval
497e30a0
LS
7269else
7270 shared_sqlite=no
7271fi
7272
7273
7274if test "$shared_sqlite" = yes; then
7275
cf1001a7 7276
a5471f24
LS
7277
7278
7279
7280
7281
7282if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7285set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if ${ac_cv_path_PKG_CONFIG+:} false; then :
7289 $as_echo_n "(cached) " >&6
7290else
7291 case $PKG_CONFIG in
7292 [\\/]* | ?:[\\/]*)
7293 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7294 ;;
7295 *)
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7305 break 2
7306 fi
7307done
7308 done
7309IFS=$as_save_IFS
7310
7311 ;;
cf1001a7 7312esac
a5471f24
LS
7313fi
7314PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7315if test -n "$PKG_CONFIG"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7317$as_echo "$PKG_CONFIG" >&6; }
7318else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321fi
cf1001a7 7322
497e30a0 7323
a5471f24
LS
7324fi
7325if test -z "$ac_cv_path_PKG_CONFIG"; then
7326 ac_pt_PKG_CONFIG=$PKG_CONFIG
7327 # Extract the first word of "pkg-config", so it can be a program name with args.
7328set dummy pkg-config; ac_word=$2
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
497e30a0
LS
7332 $as_echo_n "(cached) " >&6
7333else
a5471f24
LS
7334 case $ac_pt_PKG_CONFIG in
7335 [\\/]* | ?:[\\/]*)
7336 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7337 ;;
7338 *)
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340for as_dir in $PATH
7341do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350done
7351 done
7352IFS=$as_save_IFS
497e30a0 7353
a5471f24
LS
7354 ;;
7355esac
7356fi
7357ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7358if test -n "$ac_pt_PKG_CONFIG"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7360$as_echo "$ac_pt_PKG_CONFIG" >&6; }
497e30a0 7361else
a5471f24
LS
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363$as_echo "no" >&6; }
497e30a0 7364fi
a5471f24
LS
7365
7366 if test "x$ac_pt_PKG_CONFIG" = x; then
7367 PKG_CONFIG=""
7368 else
7369 case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375 PKG_CONFIG=$ac_pt_PKG_CONFIG
7376 fi
7377else
7378 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
497e30a0 7379fi
497e30a0 7380
a5471f24
LS
7381fi
7382if test -n "$PKG_CONFIG"; then
7383 _pkg_min_version=0.9.0
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7385$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7386 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7388$as_echo "yes" >&6; }
7389 else
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391$as_echo "no" >&6; }
7392 PKG_CONFIG=""
7393 fi
7394fi
7395
7396pkg_failed=no
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5
7398$as_echo_n "checking for SQLITE... " >&6; }
497e30a0 7399
a5471f24
LS
7400if test -n "$SQLITE_CFLAGS"; then
7401 pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
7402 elif test -n "$PKG_CONFIG"; then
7403 if test -n "$PKG_CONFIG" && \
7404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
7405 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
7406 ac_status=$?
7407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7408 test $ac_status = 0; }; then
7409 pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
7410 test "x$?" != "x0" && pkg_failed=yes
497e30a0 7411else
a5471f24
LS
7412 pkg_failed=yes
7413fi
7414 else
7415 pkg_failed=untried
7416fi
7417if test -n "$SQLITE_LIBS"; then
7418 pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
7419 elif test -n "$PKG_CONFIG"; then
7420 if test -n "$PKG_CONFIG" && \
7421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
7422 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
7423 ac_status=$?
7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7425 test $ac_status = 0; }; then
7426 pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
7427 test "x$?" != "x0" && pkg_failed=yes
7428else
7429 pkg_failed=yes
7430fi
7431 else
7432 pkg_failed=untried
497e30a0
LS
7433fi
7434
7435
a5471f24
LS
7436
7437if test $pkg_failed = yes; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439$as_echo "no" >&6; }
7440
7441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7442 _pkg_short_errors_supported=yes
497e30a0 7443else
a5471f24 7444 _pkg_short_errors_supported=no
497e30a0 7445fi
a5471f24
LS
7446 if test $_pkg_short_errors_supported = yes; then
7447 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
7448 else
7449 SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
7450 fi
7451 # Put the nasty error message in config.log where it belongs
7452 echo "$SQLITE_PKG_ERRORS" >&5
497e30a0 7453
a5471f24
LS
7454 shared_sqlite=no
7455elif test $pkg_failed = untried; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457$as_echo "no" >&6; }
7458 shared_sqlite=no
7459else
7460 SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
7461 SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7463$as_echo "yes" >&6; }
497e30a0 7464
a5471f24 7465 shared_sqlite=yes
497e30a0 7466
74ab6be0 7467fi
a5471f24 7468fi
74ab6be0
LS
7469
7470if test "$shared_sqlite" = no; then
cf1001a7 7471 SQLITE_SRC="sqlite3.c"
212380e3
AC
7472fi
7473
a5471f24 7474SQLITE_LD="$SQLITE_LIBS"
212380e3 7475
a5471f24 7476SQLITE_INCLUDES="$SQLITE_CFLAGS"
cf1001a7
LS
7477
7478
cf1001a7
LS
7479
7480
c1c5fdc4 7481# Check whether --enable-ports was given.
7083c021 7482if test "${enable_ports+set}" = set; then :
c1c5fdc4
AC
7483 enableval=$enable_ports; if test $enableval = yes; then
7484 SELECT_TYPE_EXPLICIT="ports"
7485 else
7486 use_ports=no
7487 fi
7488
7489fi
7490
7491
631ef239 7492# Check whether --enable-poll was given.
7083c021 7493if test "${enable_poll+set}" = set; then :
631ef239 7494 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
7495 SELECT_TYPE_EXPLICIT="poll"
7496 else
7497 use_poll=no
7498 fi
7499
631ef239
AC
7500fi
7501
212380e3 7502
631ef239 7503# Check whether --enable-select was given.
7083c021 7504if test "${enable_select+set}" = set; then :
631ef239 7505 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
7506 SELECT_TYPE_EXPLICIT="select"
7507 else
7508 use_select=no
7509 fi
7510
631ef239
AC
7511fi
7512
212380e3 7513
631ef239 7514# Check whether --enable-kqueue was given.
7083c021 7515if test "${enable_kqueue+set}" = set; then :
631ef239 7516 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
7517 SELECT_TYPE_EXPLICIT="kqueue"
7518 else
7519 use_kqueue=no
7520 fi
7521
631ef239
AC
7522fi
7523
212380e3 7524
631ef239 7525# Check whether --enable-epoll was given.
7083c021 7526if test "${enable_epoll+set}" = set; then :
631ef239 7527 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 7528 SELECT_TYPE_EXPLICIT="epoll"
7083c021
AC
7529 for ac_func in epoll_ctl
7530do :
7531 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7532if test "x$ac_cv_func_epoll_ctl" = xyes; then :
3ad1a781 7533 cat >>confdefs.h <<_ACEOF
7083c021 7534#define HAVE_EPOLL_CTL 1
3ad1a781
JT
7535_ACEOF
7536 haveepoll=yes
7537else
7538 haveepoll=no
7539fi
7540done
7541
212380e3
AC
7542 else
7543 use_epoll=no
7544 fi
7545
631ef239
AC
7546fi
7547
212380e3
AC
7548
7549
212380e3 7550
631ef239 7551# Check whether --with-confdir was given.
7083c021 7552if test "${with_confdir+set}" = set; then :
634d4aad 7553 withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'`
212380e3 7554else
9f9b7042 7555 confdir='${sysconfdir}'
634d4aad
NPB
7556fi
7557
212380e3
AC
7558
7559 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7560 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
634d4aad 7561 last_ac_define_dir=`eval echo $sysconfdir`
9f9b7042 7562 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7563 ac_define_dir_counter=0
9f9b7042
NPB
7564 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7565 last_ac_define_dir="$ac_define_dir"
7566 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7567 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7568 if test "x$ac_define_dir_counter" = x128; then :
7569 as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
7570 break
7571fi
9f9b7042 7572 done
212380e3
AC
7573 ETC_DIR="$ac_define_dir"
7574
7575
7576cat >>confdefs.h <<_ACEOF
7577#define ETC_DIR "$ac_define_dir"
7578_ACEOF
7579
7580
7581
7582
7083c021
AC
7583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7584$as_echo_n "checking whether to modify logdir... " >&6; }
212380e3 7585
631ef239 7586# Check whether --with-logdir was given.
7083c021 7587if test "${with_logdir+set}" = set; then :
631ef239 7588 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7590$as_echo "yes" >&6; }
212380e3 7591else
9f9b7042
NPB
7592 if test "x$enable_fhs_paths" = "xyes"; then :
7593 logdir='${localstatedir}/log/${PACKAGE_TARNAME}'
7594else
7595 logdir='${prefix}/logs'
7596fi
7083c021
AC
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598$as_echo "no" >&6; }
9f9b7042
NPB
7599fi
7600
212380e3
AC
7601
7602 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7604 last_ac_define_dir=`eval echo $logdir`
7605 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7606 ac_define_dir_counter=0
9f9b7042
NPB
7607 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7608 last_ac_define_dir="$ac_define_dir"
7609 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7610 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7611 if test "x$ac_define_dir_counter" = x128; then :
7612 as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
7613 break
7614fi
9f9b7042 7615 done
212380e3
AC
7616 LOG_DIR="$ac_define_dir"
7617
7618
7619cat >>confdefs.h <<_ACEOF
7620#define LOG_DIR "$ac_define_dir"
7621_ACEOF
7622
7623
7624
7625
7626 logdir=`(
7627 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7628 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7629 eval echo \""$logdir"\"
7630 )`
7631
7632
7633
212380e3 7634
7083c021
AC
7635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7636$as_echo_n "checking whether to modify helpdir... " >&6; }
212380e3 7637
631ef239 7638# Check whether --with-helpdir was given.
7083c021 7639if test "${with_helpdir+set}" = set; then :
631ef239 7640 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7642$as_echo "yes" >&6; }
212380e3 7643else
9f9b7042
NPB
7644 if test "x$enable_fhs_paths" = "xyes"; then :
7645 helpdir='${datadir}/${PACKAGE_TARNAME}/help'
7646else
7647 helpdir='${prefix}/help'
7648fi
7083c021
AC
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
9f9b7042
NPB
7651fi
7652
212380e3
AC
7653
7654 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7656 last_ac_define_dir=`eval echo $helpdir`
7657 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7658 ac_define_dir_counter=0
9f9b7042
NPB
7659 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7660 last_ac_define_dir="$ac_define_dir"
7661 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7662 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7663 if test "x$ac_define_dir_counter" = x128; then :
7664 as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
7665 break
7666fi
9f9b7042 7667 done
212380e3
AC
7668 HELP_DIR="$ac_define_dir"
7669
7670
7671cat >>confdefs.h <<_ACEOF
7672#define HELP_DIR "$ac_define_dir"
7673_ACEOF
7674
7675
7676
7677
7678 helpdir=`(
7679 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7680 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7681 eval echo \""$helpdir"\"
7682 )`
7683
7684
7685
212380e3 7686
7083c021
AC
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7688$as_echo_n "checking whether to modify moduledir... " >&6; }
212380e3 7689
631ef239 7690# Check whether --with-moduledir was given.
7083c021 7691if test "${with_moduledir+set}" = set; then :
631ef239 7692 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
7083c021
AC
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7694$as_echo "yes" >&6; }
9f9b7042
NPB
7695else
7696 if test "x$enable_fhs_paths" = "xyes"; then :
7697 moduledir='${pkglibdir}/modules'
7698else
7699 moduledir='${prefix}/modules'
7700fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
7703
7704fi
7705
212380e3
AC
7706
7707 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7709 last_ac_define_dir=`eval echo $moduledir`
7710 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7711 ac_define_dir_counter=0
9f9b7042
NPB
7712 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7713 last_ac_define_dir="$ac_define_dir"
7714 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7715 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7716 if test "x$ac_define_dir_counter" = x128; then :
7717 as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
7718 break
7719fi
9f9b7042 7720 done
212380e3
AC
7721 MODULE_DIR="$ac_define_dir"
7722
7723
7724cat >>confdefs.h <<_ACEOF
7725#define MODULE_DIR "$ac_define_dir"
7726_ACEOF
7727
7728
7729
7730
7731 moduledir=`(
7732 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7733 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7734 eval echo \""$moduledir"\"
7735 )`
7736
7737
9f9b7042
NPB
7738
7739
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7741$as_echo_n "checking whether or modify rundir... " >&6; }
7742
7743# Check whether --with-rundir was given.
7744if test "${with_rundir+set}" = set; then :
7745 withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746$as_echo "yes" >&6; }
7747 rundir=`echo $withval | sed 's/\/$//'`
212380e3 7748else
9f9b7042 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083c021 7750$as_echo "no" >&6; }
9f9b7042
NPB
7751 if test "x$enable_fhs_paths" = "xyes"; then :
7752 rundir='${prefix}/run'
7753else
7754 rundir='${sysconfdir}'
7755fi
7756fi
7757
7758
212380e3
AC
7759
7760 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9f9b7042
NPB
7762 last_ac_define_dir=`eval echo $pkgrundir`
7763 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb 7764 ac_define_dir_counter=0
9f9b7042
NPB
7765 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7766 last_ac_define_dir="$ac_define_dir"
7767 ac_define_dir=`eval echo $last_ac_define_dir`
422cf3bb
NPB
7768 as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val
7769 if test "x$ac_define_dir_counter" = x128; then :
7770 as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
7771 break
7772fi
9f9b7042
NPB
7773 done
7774 PKGRUNDIR="$ac_define_dir"
212380e3
AC
7775
7776
7777cat >>confdefs.h <<_ACEOF
9f9b7042 7778#define PKGRUNDIR "$ac_define_dir"
212380e3
AC
7779_ACEOF
7780
7781
7782
9f9b7042
NPB
7783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7784$as_echo_n "checking for program prefix... " >&6; }
212380e3 7785
9f9b7042
NPB
7786# Check whether --with-program-prefix was given.
7787if test "${with_program_prefix+set}" = set; then :
7788 withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix=
7789else
7790 with_program_prefix=
7791fi
212380e3 7792
9f9b7042
NPB
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7794$as_echo "\"$with_program_prefix\"" >&6; }
7795PROGRAM_PREFIX="$with_program_prefix"
212380e3
AC
7796
7797
9f9b7042
NPB
7798cat >>confdefs.h <<_ACEOF
7799#define PROGRAM_PREFIX "$with_program_prefix"
7800_ACEOF
631ef239 7801
7083c021 7802
b6d0720c
AC
7803
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7805$as_echo_n "checking whether custom branding is requested... " >&6; }
7806
7807# Check whether --with-custom-branding was given.
7808if test "${with_custom_branding+set}" = set; then :
7809 withval=$with_custom_branding; BRANDING_NAME=$withval
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7811$as_echo "yes" >&6; }
7812else
7813 BRANDING_NAME=$PACKAGE_NAME
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
7816
7817fi
7818
7819
7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7821$as_echo_n "checking whether a custom version is requested... " >&6; }
7822
7823# Check whether --with-custom-version was given.
7824if test "${with_custom_version+set}" = set; then :
7825 withval=$with_custom_version; BRANDING_VERSION=$withval
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7827$as_echo "yes" >&6; }
7828else
7829 BRANDING_VERSION=$PACKAGE_VERSION
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831$as_echo "no" >&6; }
7832
7833fi
7834
7835
7836
7837cat >>confdefs.h <<_ACEOF
7838#define BRANDING_NAME "$BRANDING_NAME"
7839_ACEOF
7840
7841
7842cat >>confdefs.h <<_ACEOF
7843#define BRANDING_VERSION "$BRANDING_VERSION"
7844_ACEOF
7845
7846
f5493691
AC
7847if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7848
7849$as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7850
7851fi
7852
7083c021
AC
7853if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7854 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
7855 echo "Forcing $SELECT_TYPE to be enabled"
7856else
7857
7858if test ! "x$use_ports" = "xno"; then
7859 for ac_func in port_getn
7860do :
7861 ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn"
b6d0720c 7862if test "x$ac_cv_func_port_getn" = xyes; then :
212380e3 7863 cat >>confdefs.h <<_ACEOF
7083c021 7864#define HAVE_PORT_GETN 1
212380e3 7865_ACEOF
7083c021 7866 haveports=yes
212380e3 7867else
7083c021 7868 haveports=no
212380e3
AC
7869fi
7870done
7871
7083c021
AC
7872 if test "x$haveports" = "xyes" ; then
7873 SELECT_TYPE="ports"
212380e3
AC
7874 fi
7875fi
7876
7083c021
AC
7877if test ! "x$use_select" = "xno"; then
7878 for ac_func in select
7879do :
7880 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
b6d0720c 7881if test "x$ac_cv_func_select" = xyes; then :
7083c021
AC
7882 cat >>confdefs.h <<_ACEOF
7883#define HAVE_SELECT 1
212380e3 7884_ACEOF
7083c021
AC
7885 haveselect=yes
7886else
7887 haveselect=no
7888fi
7889done
212380e3 7890
7083c021
AC
7891 if test "x$haveselect" = "xyes" ; then
7892 SELECT_TYPE="select"
7893 fi
7894fi
212380e3 7895
7083c021
AC
7896if test ! "x$use_poll" = "xno"; then
7897 for ac_func in poll
7898do :
7899 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
b6d0720c 7900if test "x$ac_cv_func_poll" = xyes; then :
7083c021
AC
7901 cat >>confdefs.h <<_ACEOF
7902#define HAVE_POLL 1
212380e3 7903_ACEOF
7083c021 7904 havepoll=yes
212380e3 7905else
7083c021 7906 havepoll=no
212380e3 7907fi
7083c021 7908done
631ef239 7909
7083c021
AC
7910 if test "x$havepoll" = "xyes" ; then
7911 SELECT_TYPE="poll"
7912 fi
212380e3 7913fi
7083c021
AC
7914
7915if test ! "x$use_kqueue" = "xno"; then
7916 for ac_func in kevent
7917do :
7918 ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent"
b6d0720c 7919if test "x$ac_cv_func_kevent" = xyes; then :
212380e3 7920 cat >>confdefs.h <<_ACEOF
7083c021 7921#define HAVE_KEVENT 1
212380e3
AC
7922_ACEOF
7923 havekqueue=yes
7924else
7925 havekqueue=no
7926fi
7927done
7928
7929 if test "x$havekqueue" = "xyes" ; then
7930 SELECT_TYPE="kqueue"
7931 fi
7932fi
7933
7934if test ! "x$use_epoll" = "xno"; then
7083c021
AC
7935 for ac_func in epoll_ctl
7936do :
7937 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
b6d0720c 7938if test "x$ac_cv_func_epoll_ctl" = xyes; then :
212380e3 7939 cat >>confdefs.h <<_ACEOF
7083c021 7940#define HAVE_EPOLL_CTL 1
212380e3
AC
7941_ACEOF
7942 haveepoll=yes
7943else
7944 haveepoll=no
7945fi
7946done
7947
7948 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7949 if test "x$haveepoll" = "xyes" ; then
7083c021
AC
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7951$as_echo_n "checking for epoll support in kernel... " >&6; }
7952 if test "$cross_compiling" = yes; then :
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
212380e3 7955else
7083c021 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
7957/* end confdefs.h. */
7958#include <stdint.h>
7959#include <sys/param.h>
7960#include <sys/types.h>
7961#include <sys/epoll.h>
7962#include <sys/syscall.h>
7963#include <unistd.h>
7964
7965int
7966main(int argc, char **argv)
7967{
7968 int epfd;
7969
7970 epfd = epoll_create(256);
b676ea3b 7971 return (epfd == -1 ? 1 : 0);
212380e3
AC
7972}
7973_ACEOF
7083c021
AC
7974if ac_fn_c_try_run "$LINENO"; then :
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976$as_echo "yes" >&6; }
212380e3 7977
7083c021 7978$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
7979
7980 SELECT_TYPE="epoll"
7981else
7083c021
AC
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
212380e3 7984fi
7083c021
AC
7985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7986 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 7987fi
631ef239 7988
212380e3
AC
7989 fi
7990 fi
7991
7992haveepollsyscall=no
7993
7994if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7995 if test "x$haveepoll" = "xno" ; then
7083c021
AC
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7997$as_echo_n "checking for epoll system call... " >&6; }
7998 if test "$cross_compiling" = yes; then :
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000$as_echo "no" >&6; }
212380e3 8001else
7083c021 8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8003/* end confdefs.h. */
8004#include <stdint.h>
8005#include <sys/param.h>
8006#include <sys/types.h>
8007#include <sys/epoll.h>
8008#include <sys/syscall.h>
8009#include <unistd.h>
8010
8011int
8012epoll_create(int size)
8013{
8014 return (syscall(__NR_epoll_create, size));
8015}
8016
8017int
8018main(int argc, char **argv)
8019{
8020 int epfd;
8021
8022 epfd = epoll_create(256);
8023 exit (epfd == -1 ? 1 : 0);
8024}
8025_ACEOF
7083c021
AC
8026if ac_fn_c_try_run "$LINENO"; then :
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8028$as_echo "yes" >&6; }
212380e3 8029
7083c021 8030$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
212380e3
AC
8031
8032 SELECT_TYPE="epoll"
8033else
7083c021
AC
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035$as_echo "no" >&6; }
212380e3 8036fi
7083c021
AC
8037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8038 conftest.$ac_objext conftest.beam conftest.$ac_ext
212380e3 8039fi
631ef239 8040
212380e3
AC
8041 fi
8042fi
8043
8044fi
8045
8046fi
8047
8048if test -z "$SELECT_TYPE"; then
b6d0720c 8049 as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5
212380e3
AC
8050fi
8051
8052echo "Using $SELECT_TYPE for select loop."
8053
8054
8055cat >>confdefs.h <<_ACEOF
8056#define SELECT_TYPE "$SELECT_TYPE"
8057_ACEOF
8058
8059
8060
8061
8062
631ef239 8063# Check whether --enable-assert was given.
7083c021 8064if test "${enable_assert+set}" = set; then :
631ef239 8065 enableval=$enable_assert; assert=$enableval
212380e3
AC
8066else
8067 assert=no
631ef239
AC
8068fi
8069
212380e3
AC
8070
8071if test "$assert" = no; then
8072
7083c021 8073$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
8074
8075elif test "$assert" = soft; then
8076
7083c021 8077$as_echo "#define SOFT_ASSERT 1" >>confdefs.h
212380e3
AC
8078
8079
7083c021 8080$as_echo "#define NDEBUG 1" >>confdefs.h
212380e3
AC
8081
8082elif test "$assert" = yes; then
8083 assert = "hard";
8084fi
8085
7083c021
AC
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
8087$as_echo_n "checking if you want IO Debugging hooks... " >&6; }
631ef239 8088# Check whether --enable-iodebug was given.
7083c021 8089if test "${enable_iodebug+set}" = set; then :
631ef239 8090 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
8091else
8092 iodebug=no
631ef239
AC
8093fi
8094
212380e3
AC
8095
8096if test "$iodebug" = yes; then
8097
7083c021 8098$as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
212380e3 8099
7083c021
AC
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101$as_echo "yes" >&6; }
212380e3 8102else
7083c021
AC
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
212380e3
AC
8105fi
8106
8107
7083c021
AC
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
8109$as_echo_n "checking if you want to do a profile build... " >&6; }
631ef239 8110# Check whether --enable-profile was given.
7083c021 8111if test "${enable_profile+set}" = set; then :
631ef239 8112 enableval=$enable_profile; profile=$enableval
212380e3
AC
8113else
8114 profile=no
631ef239
AC
8115fi
8116
212380e3
AC
8117
8118if test "$profile" = yes; then
8119 if test "$ac_cv_c_compiler_gnu" = yes; then
8120 IRC_CFLAGS="$IRC_CFLAGS -pg"
7083c021
AC
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
8122$as_echo "yes, adding -pg" >&6; }
212380e3 8123
7083c021 8124$as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
212380e3
AC
8125
8126 else
7083c021
AC
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
8128$as_echo "no, profile builds only work with gcc" >&6; }
212380e3
AC
8129 fi
8130else
7083c021
AC
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132$as_echo "no" >&6; }
212380e3
AC
8133fi
8134
631ef239 8135# Check whether --enable-balloc was given.
7083c021 8136if test "${enable_balloc+set}" = set; then :
631ef239 8137 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
8138else
8139 balloc=yes
631ef239
AC
8140fi
8141
212380e3
AC
8142
8143if test "$balloc" = no; then
8144
7083c021 8145$as_echo "#define NOBALLOC 1" >>confdefs.h
212380e3
AC
8146
8147fi
8148
631ef239 8149# Check whether --enable-small-net was given.
7083c021 8150if test "${enable_small_net+set}" = set; then :
631ef239 8151 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
8152else
8153 small_net=no
631ef239
AC
8154fi
8155
212380e3
AC
8156
8157if test "$small_net" = yes; then
8158
7083c021 8159$as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
212380e3
AC
8160
8161
7083c021 8162$as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8163
8164
7083c021 8165$as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8166
8167
7083c021 8168$as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8169
8170
7083c021 8171$as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8172
8173
7083c021 8174$as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
212380e3
AC
8175
8176
7083c021 8177$as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8178
8179
7083c021 8180$as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8181
8182
7083c021 8183$as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8184
8185
7083c021 8186$as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8187
8188
7083c021 8189$as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8190
8191
7083c021 8192$as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8193
8194
7083c021 8195$as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
212380e3
AC
8196
8197
7083c021 8198$as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
212380e3 8199
f589ec6f 8200
7083c021 8201$as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
2b428185
AC
8202
8203
7083c021 8204$as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
f589ec6f 8205
212380e3
AC
8206else
8207
7083c021 8208$as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
212380e3
AC
8209
8210
7083c021 8211$as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8212
8213
7083c021 8214$as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
8215
8216
7083c021 8217$as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8218
8219
7083c021 8220$as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
212380e3
AC
8221
8222
7083c021 8223$as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8224
8225
7083c021 8226$as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8227
8228
7083c021 8229$as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
212380e3
AC
8230
8231
7083c021 8232$as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
212380e3
AC
8233
8234
7083c021 8235$as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
212380e3
AC
8236
8237
7083c021 8238$as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
212380e3
AC
8239
8240
7083c021 8241$as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
212380e3
AC
8242
8243
7083c021 8244$as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
212380e3
AC
8245
8246
7083c021 8247$as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
212380e3 8248
f589ec6f 8249
7083c021 8250$as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
2b428185
AC
8251
8252
7083c021 8253$as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
f589ec6f 8254
212380e3
AC
8255fi
8256
8257
631ef239 8258# Check whether --with-nicklen was given.
7083c021 8259if test "${with_nicklen+set}" = set; then :
631ef239 8260 withval=$with_nicklen;
aa769893 8261 if ! expr "$withval" + 0 >/dev/null 2>&1; then
b6d0720c 8262 as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5
aa769893 8263 fi
cf533739 8264 if test $withval -gt 50; then
212380e3 8265 NICKLEN=50
7083c021
AC
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8267$as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
cf533739
JT
8268 elif test $withval -lt 9; then
8269 NICKLEN=9
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8271$as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
212380e3
AC
8272 else
8273 NICKLEN="$withval"
8274 fi
8275
8276else
cf533739 8277 NICKLEN=31
631ef239 8278fi
212380e3
AC
8279
8280
212380e3 8281
631ef239 8282# Check whether --with-topiclen was given.
7083c021 8283if test "${with_topiclen+set}" = set; then :
631ef239 8284 withval=$with_topiclen;
212380e3
AC
8285 if test $withval -ge 390; then
8286 TOPICLEN=390
7083c021
AC
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8288$as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
212380e3
AC
8289 else
8290 TOPICLEN=$withval
8291 fi
8292
8293else
8294 TOPICLEN=390
212380e3
AC
8295fi
8296
212380e3
AC
8297
8298
8299cat >>confdefs.h <<_ACEOF
8300#define TOPICLEN ${TOPICLEN}
8301_ACEOF
8302
8303
8304cat >>confdefs.h <<_ACEOF
8305#define NICKLEN (${NICKLEN}+1)
8306_ACEOF
8307
8308
b676ea3b 8309shared_modules="yes"
212380e3 8310if test "$shared_modules" = yes; then
212380e3 8311 if test "$CC" = tcc -a "$TenDRA" = "no"; then
7083c021
AC
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8313$as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
212380e3
AC
8314 shared_modules="no"
8315 fi
8316fi
8317
8318if test "$shared_modules" = yes; then
7083c021
AC
8319 DYNLINK_C=dynlink.c
8320 for ac_header in dlfcn.h
8321do :
8322 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
b6d0720c 8323if test "x$ac_cv_header_dlfcn_h" = xyes; then :
212380e3 8324 cat >>confdefs.h <<_ACEOF
7083c021 8325#define HAVE_DLFCN_H 1
212380e3
AC
8326_ACEOF
8327
8328fi
8329
8330done
8331
7083c021
AC
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8333$as_echo_n "checking for library containing shl_load... " >&6; }
b6d0720c 8334if ${ac_cv_search_shl_load+:} false; then :
7083c021 8335 $as_echo_n "(cached) " >&6
212380e3
AC
8336else
8337 ac_func_search_save_LIBS=$LIBS
7083c021 8338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8339/* end confdefs.h. */
8340
631ef239
AC
8341/* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
212380e3
AC
8344#ifdef __cplusplus
8345extern "C"
8346#endif
212380e3
AC
8347char shl_load ();
8348int
8349main ()
8350{
631ef239 8351return shl_load ();
212380e3
AC
8352 ;
8353 return 0;
8354}
8355_ACEOF
631ef239
AC
8356for ac_lib in '' dld; do
8357 if test -z "$ac_lib"; then
8358 ac_res="none required"
8359 else
8360 ac_res=-l$ac_lib
8361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8362 fi
7083c021 8363 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8364 ac_cv_search_shl_load=$ac_res
631ef239 8365fi
7083c021
AC
8366rm -f core conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext
b6d0720c 8368 if ${ac_cv_search_shl_load+:} false; then :
631ef239 8369 break
212380e3 8370fi
631ef239 8371done
b6d0720c 8372if ${ac_cv_search_shl_load+:} false; then :
7083c021 8373
631ef239
AC
8374else
8375 ac_cv_search_shl_load=no
212380e3 8376fi
631ef239 8377rm conftest.$ac_ext
212380e3
AC
8378LIBS=$ac_func_search_save_LIBS
8379fi
7083c021
AC
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8381$as_echo "$ac_cv_search_shl_load" >&6; }
631ef239 8382ac_res=$ac_cv_search_shl_load
7083c021 8383if test "$ac_res" != no; then :
631ef239 8384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8385
8386
7083c021 8387$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
212380e3
AC
8388
8389 SUFFIX=".sl"
8390 MOD_TARGET=hpux_shared
8391 SEDOBJ="s/\.o/.sl/g"
8392
8393else
8394
7083c021
AC
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8396$as_echo_n "checking for library containing dlopen... " >&6; }
b6d0720c 8397if ${ac_cv_search_dlopen+:} false; then :
7083c021 8398 $as_echo_n "(cached) " >&6
212380e3
AC
8399else
8400 ac_func_search_save_LIBS=$LIBS
7083c021 8401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8402/* end confdefs.h. */
8403
631ef239
AC
8404/* Override any GCC internal prototype to avoid an error.
8405 Use char because int might match the return type of a GCC
8406 builtin and then its argument prototype would still apply. */
212380e3
AC
8407#ifdef __cplusplus
8408extern "C"
8409#endif
212380e3
AC
8410char dlopen ();
8411int
8412main ()
8413{
631ef239 8414return dlopen ();
212380e3
AC
8415 ;
8416 return 0;
8417}
8418_ACEOF
631ef239
AC
8419for ac_lib in '' dl c_r; do
8420 if test -z "$ac_lib"; then
8421 ac_res="none required"
8422 else
8423 ac_res=-l$ac_lib
8424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8425 fi
7083c021 8426 if ac_fn_c_try_link "$LINENO"; then :
631ef239 8427 ac_cv_search_dlopen=$ac_res
631ef239 8428fi
7083c021
AC
8429rm -f core conftest.err conftest.$ac_objext \
8430 conftest$ac_exeext
b6d0720c 8431 if ${ac_cv_search_dlopen+:} false; then :
631ef239 8432 break
212380e3 8433fi
631ef239 8434done
b6d0720c 8435if ${ac_cv_search_dlopen+:} false; then :
7083c021 8436
631ef239
AC
8437else
8438 ac_cv_search_dlopen=no
212380e3 8439fi
631ef239 8440rm conftest.$ac_ext
212380e3
AC
8441LIBS=$ac_func_search_save_LIBS
8442fi
7083c021
AC
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8444$as_echo "$ac_cv_search_dlopen" >&6; }
631ef239 8445ac_res=$ac_cv_search_dlopen
7083c021 8446if test "$ac_res" != no; then :
631ef239 8447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
8448
8449
7083c021 8450$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
212380e3
AC
8451
8452 SUFFIX=".so"
8453 MOD_TARGET=shared_modules
8454 SEDOBJ="s/\.o/.so/g"
8455 if test "$AppleGCC" = yes; then
7083c021
AC
8456 for ac_header in mach-o/dyld.h
8457do :
8458 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
b6d0720c 8459if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
212380e3 8460 cat >>confdefs.h <<_ACEOF
7083c021 8461#define HAVE_MACH_O_DYLD_H 1
212380e3
AC
8462_ACEOF
8463
8464fi
8465
8466done
8467
8468 fi
7083c021 8469 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
b6d0720c 8470if test "x$ac_cv_func_dlsym" = xyes; then :
631ef239 8471
212380e3
AC
8472else
8473
7083c021
AC
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8475$as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
212380e3
AC
8476 shared_modules=no
8477
8478fi
8479
7083c021
AC
8480 for ac_func in dlfunc
8481do :
8482 ac_fn_c_check_func "$LINENO" "dlfunc" "ac_cv_func_dlfunc"
b6d0720c 8483if test "x$ac_cv_func_dlfunc" = xyes; then :
212380e3 8484 cat >>confdefs.h <<_ACEOF
7083c021 8485#define HAVE_DLFUNC 1
212380e3
AC
8486_ACEOF
8487
8488fi
8489done
8490
8491
8492else
8493
8494 shared_modules=no
8495
8496fi
8497
8498
8499fi
8500
8501fi
8502
8503
8504cat >>confdefs.h <<_ACEOF
8505#define SHARED_SUFFIX "$SUFFIX"
8506_ACEOF
8507
8508
8509if test "$shared_modules" = yes; then
8510 # The GNU linker requires the -export-dynamic option to make
8511 # all symbols visible in the dynamic symbol table.
8512 hold_ldflags=$LDFLAGS
7083c021
AC
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8514$as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
212380e3 8515 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
7083c021 8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8517/* end confdefs.h. */
8518
8519int
8520main ()
8521{
8522int i;
8523 ;
8524 return 0;
8525}
8526_ACEOF
7083c021 8527if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
8528 found=yes
8529else
7083c021 8530 found=no
212380e3 8531fi
7083c021
AC
8532rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
8534 LDFLAGS=$hold_ldflags
8535
8536 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
8537 found="no, IRIX ld uses -B,dynamic"
8538 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
8539 fi
8540
8541 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
8542 found="no, AIX ld uses -G -brtl"
8543 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
8544 fi
8545
7083c021
AC
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8547$as_echo "$found" >&6; }
212380e3
AC
8548
8549 if test "$found" = yes; then
8550 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
8551 fi
8552
7083c021
AC
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8554$as_echo_n "checking for compiler option to produce PIC... " >&6; }
212380e3 8555 if test "$SGS" = "yes"; then
7083c021
AC
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8557$as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
8558 PICFLAGS="-KPIC -DPIC -G"
8559 fi
8560
8561 if test "$AppleGCC" = "yes"; then
7083c021
AC
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8563$as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
8564 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
8565 fi
8566 if test "$HPUX" = "yes" -a "$CC" != gcc; then
7083c021
AC
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8568$as_echo "HP-UX cc: +z -r -q -n" >&6; }
212380e3 8569 PICFLAGS="+z -r -q -n -c"
7083c021
AC
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8571$as_echo_n "checking if +ESfic is required on this platform... " >&6; }
212380e3
AC
8572
8573 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
7083c021
AC
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575$as_echo "no" >&6; }
212380e3 8576 else
7083c021
AC
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8578$as_echo "yes" >&6; }
212380e3
AC
8579 PICFLAGS="$PICFLAGS +ESfic"
8580 fi
8581
8582 LDFLAGS="${LDFLAGS} -Wl,-E"
8583 fi
8584 if test "$Tru" = yes -a "$CC" != gcc; then
7083c021
AC
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8586$as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
8587 PICFLAGS="-shared -expect_unresolved '*' "
8588 LDFLAGS="-call_shared"
8589 fi
8590 if test -z "$PICFLAGS"; then
8591 if test "$ac_cv_c_compiler_gnu" = "yes"; then
7083c021
AC
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8593$as_echo "gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
8594 PICFLAGS="-fPIC -DPIC -shared"
8595 else
7083c021
AC
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
212380e3
AC
8598 shared_modules=no
8599 fi
8600 fi
8601fi
8602
1a82970f
JT
8603# rpath, for finding libratbox.so at run time
8604hold_ldflags=$LDFLAGS
7083c021
AC
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8606$as_echo_n "checking for the ld -rpath flag... " >&6; }
1a82970f 8607LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
7083c021 8608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1a82970f
JT
8609/* end confdefs.h. */
8610
8611int
8612main ()
8613{
8614int i;
8615 ;
8616 return 0;
8617}
8618_ACEOF
7083c021 8619if ac_fn_c_try_link "$LINENO"; then :
1a82970f
JT
8620 found=yes
8621else
7083c021 8622 found=no
1a82970f 8623fi
7083c021
AC
8624rm -f core conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
1a82970f 8626LDFLAGS=$hold_ldflags
7083c021
AC
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8628$as_echo "$found" >&6; }
1a82970f
JT
8629if test "$found" = yes; then
8630 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
8631fi
8632
212380e3
AC
8633# This must be down here, or it will mess up checks like the ones
8634# for -Wl,-export-dynamic
8635# -- jilles
d2c5159a 8636CWARNS=""
631ef239 8637# Check whether --enable-warnings was given.
7083c021 8638if test "${enable_warnings+set}" = set; then :
631ef239 8639 enableval=$enable_warnings;
212380e3
AC
8640IRC_CFLAGS="$IRC_CFLAGS -O0"
8641CFLAGS="$IRC_CFLAGS"
8642
8643
7083c021
AC
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8645$as_echo_n "checking GCC flag(s) -Wall... " >&6; }
212380e3
AC
8646 if test "${GCC-no}" = yes
8647 then
b6d0720c 8648 if ${charybdis_cv_c_gcc_w_all+:} false; then :
7083c021 8649 $as_echo_n "(cached) " >&6
212380e3
AC
8650else
8651
8652 oldcflags="${CFLAGS-}"
8653 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
7083c021 8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8655/* end confdefs.h. */
8656
8657#include <string.h>
8658#include <stdio.h>
8659int main(void);
8660
8661int
8662main ()
8663{
8664
b1fc1658 8665 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8666
8667 ;
8668 return 0;
8669}
8670_ACEOF
7083c021 8671if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8672 charybdis_cv_c_gcc_w_all=yes
8673else
7083c021 8674 charybdis_cv_c_gcc_w_all=no
212380e3 8675fi
631ef239 8676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8677 CFLAGS="${oldcflags}"
8678fi
8679
8680 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
8681 CWARNS="${CWARNS}-Wall "
7083c021
AC
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8683$as_echo "ok" >&6; }
212380e3
AC
8684 else
8685 charybdis_cv_c_gcc_w_all=''
7083c021
AC
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
212380e3
AC
8688 fi
8689 else
7083c021
AC
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691$as_echo "no" >&6; }
212380e3
AC
8692 fi
8693
8694
7083c021
AC
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8696$as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
212380e3
AC
8697 if test "${GCC-no}" = yes
8698 then
b6d0720c 8699 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then :
7083c021 8700 $as_echo_n "(cached) " >&6
212380e3
AC
8701else
8702
8703 oldcflags="${CFLAGS-}"
8704 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
7083c021 8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8706/* end confdefs.h. */
8707
8708#include <string.h>
8709#include <stdio.h>
8710int main(void);
8711
8712int
8713main ()
8714{
8715
b1fc1658 8716 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8717
8718 ;
8719 return 0;
8720}
8721_ACEOF
7083c021 8722if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8723 charybdis_cv_c_gcc_w_pointer_arith=yes
8724else
7083c021 8725 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 8726fi
631ef239 8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8728 CFLAGS="${oldcflags}"
8729fi
8730
8731 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
8732 CWARNS="${CWARNS}-Wpointer-arith "
7083c021
AC
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8734$as_echo "ok" >&6; }
212380e3
AC
8735 else
8736 charybdis_cv_c_gcc_w_pointer_arith=''
7083c021
AC
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8738$as_echo "no" >&6; }
212380e3
AC
8739 fi
8740 else
7083c021
AC
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
212380e3
AC
8743 fi
8744
8745
7083c021
AC
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8747$as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
212380e3
AC
8748 if test "${GCC-no}" = yes
8749 then
b6d0720c 8750 if ${charybdis_cv_c_gcc_w_implicit+:} false; then :
7083c021 8751 $as_echo_n "(cached) " >&6
212380e3
AC
8752else
8753
8754 oldcflags="${CFLAGS-}"
8755 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
7083c021 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8757/* end confdefs.h. */
8758
8759#include <string.h>
8760#include <stdio.h>
8761int main(void);
8762
8763int
8764main ()
8765{
8766
b1fc1658 8767 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8768
8769 ;
8770 return 0;
8771}
8772_ACEOF
7083c021 8773if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8774 charybdis_cv_c_gcc_w_implicit=yes
8775else
7083c021 8776 charybdis_cv_c_gcc_w_implicit=no
212380e3 8777fi
631ef239 8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8779 CFLAGS="${oldcflags}"
8780fi
8781
8782 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
8783 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
7083c021
AC
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8785$as_echo "ok" >&6; }
212380e3
AC
8786 else
8787 charybdis_cv_c_gcc_w_implicit=''
7083c021
AC
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789$as_echo "no" >&6; }
212380e3
AC
8790 fi
8791 else
7083c021
AC
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793$as_echo "no" >&6; }
212380e3
AC
8794 fi
8795
8796
7083c021
AC
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8798$as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
212380e3
AC
8799 if test "${GCC-no}" = yes
8800 then
b6d0720c 8801 if ${charybdis_cv_c_gcc_w_cast_align+:} false; then :
7083c021 8802 $as_echo_n "(cached) " >&6
212380e3
AC
8803else
8804
8805 oldcflags="${CFLAGS-}"
8806 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
7083c021 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8808/* end confdefs.h. */
8809
8810#include <string.h>
8811#include <stdio.h>
8812int main(void);
8813
8814int
8815main ()
8816{
8817
b1fc1658 8818 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
7083c021
AC
8819
8820 ;
8821 return 0;
8822}
8823_ACEOF
8824if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8825 charybdis_cv_c_gcc_w_cast_align=yes
8826else
7083c021 8827 charybdis_cv_c_gcc_w_cast_align=no
212380e3 8828fi
631ef239 8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8830 CFLAGS="${oldcflags}"
8831fi
8832
8833 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
8834 CWARNS="${CWARNS}-Wcast-align "
7083c021
AC
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8836$as_echo "ok" >&6; }
212380e3
AC
8837 else
8838 charybdis_cv_c_gcc_w_cast_align=''
7083c021
AC
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
212380e3
AC
8841 fi
8842 else
7083c021
AC
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844$as_echo "no" >&6; }
212380e3
AC
8845 fi
8846
8847
7083c021
AC
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8849$as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
212380e3
AC
8850 if test "${GCC-no}" = yes
8851 then
b6d0720c 8852 if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then :
7083c021 8853 $as_echo_n "(cached) " >&6
212380e3
AC
8854else
8855
8856 oldcflags="${CFLAGS-}"
8857 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
7083c021 8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
8859/* end confdefs.h. */
8860
8861#include <string.h>
8862#include <stdio.h>
8863int main(void);
8864
8865int
8866main ()
8867{
8868
b1fc1658 8869 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
8870
8871 ;
8872 return 0;
8873}
8874_ACEOF
7083c021 8875if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
8876 charybdis_cv_c_gcc_w_cast_qual=yes
8877else
7083c021 8878 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 8879fi
631ef239 8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
8881 CFLAGS="${oldcflags}"
8882fi
8883
8884 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
8885 CWARNS="${CWARNS}-Wcast-qual "
7083c021
AC
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8887$as_echo "ok" >&6; }
212380e3
AC
8888 else
8889 charybdis_cv_c_gcc_w_cast_qual=''
7083c021
AC
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
212380e3
AC
8892 fi
8893 else
7083c021
AC
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895$as_echo "no" >&6; }
212380e3
AC
8896 fi
8897
8898
7083c021
AC
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8900$as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
d2c5159a
JT
8901 if test "${GCC-no}" = yes
8902 then
b6d0720c 8903 if ${charybdis_cv_c_gcc_w_write_strings+:} false; then :
7083c021 8904 $as_echo_n "(cached) " >&6
d2c5159a
JT
8905else
8906
8907 oldcflags="${CFLAGS-}"
8908 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
7083c021 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d2c5159a
JT
8910/* end confdefs.h. */
8911
8912#include <string.h>
8913#include <stdio.h>
8914int main(void);
8915
8916int
8917main ()
8918{
8919
8920 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8921
8922 ;
8923 return 0;
8924}
8925_ACEOF
7083c021 8926if ac_fn_c_try_compile "$LINENO"; then :
bbe58888 8927 charybdis_cv_c_gcc_w_write_strings=yes
d2c5159a 8928else
7083c021 8929 charybdis_cv_c_gcc_w_write_strings=no
d2c5159a 8930fi
d2c5159a
JT
8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8932 CFLAGS="${oldcflags}"
8933fi
8934
bbe58888 8935 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
d2c5159a 8936 CWARNS="${CWARNS}-Wwrite-strings "
7083c021
AC
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8938$as_echo "ok" >&6; }
d2c5159a 8939 else
bbe58888 8940 charybdis_cv_c_gcc_w_write_strings=''
7083c021
AC
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
bbe58888
VY
8943 fi
8944 else
7083c021
AC
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
bbe58888
VY
8947 fi
8948
8949
7083c021
AC
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8951$as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
bbe58888
VY
8952 if test "${GCC-no}" = yes
8953 then
b6d0720c 8954 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then :
7083c021 8955 $as_echo_n "(cached) " >&6
bbe58888
VY
8956else
8957
8958 oldcflags="${CFLAGS-}"
8959 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
7083c021 8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
bbe58888
VY
8961/* end confdefs.h. */
8962
8963#include <string.h>
8964#include <stdio.h>
8965int main(void);
8966
8967int
8968main ()
8969{
8970
8971 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8972
8973 ;
8974 return 0;
8975}
8976_ACEOF
7083c021 8977if ac_fn_c_try_compile "$LINENO"; then :
bbe58888
VY
8978 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
8979else
7083c021 8980 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
bbe58888 8981fi
bbe58888
VY
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 CFLAGS="${oldcflags}"
8984fi
8985
8986 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
8987 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
7083c021
AC
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8989$as_echo "ok" >&6; }
bbe58888
VY
8990 else
8991 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
7083c021
AC
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993$as_echo "no" >&6; }
d2c5159a
JT
8994 fi
8995 else
7083c021
AC
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
d2c5159a
JT
8998 fi
8999
9000
7083c021
AC
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
9002$as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
212380e3
AC
9003 if test "${GCC-no}" = yes
9004 then
b6d0720c 9005 if ${charybdis_cv_c_gcc_prototypes+:} false; then :
7083c021 9006 $as_echo_n "(cached) " >&6
212380e3
AC
9007else
9008
9009 oldcflags="${CFLAGS-}"
9010 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
7083c021 9011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9012/* end confdefs.h. */
9013
9014#include <string.h>
9015#include <stdio.h>
9016int main(void);
9017
9018int
9019main ()
9020{
9021
b1fc1658 9022 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9023
9024 ;
9025 return 0;
9026}
9027_ACEOF
7083c021 9028if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9029 charybdis_cv_c_gcc_prototypes=yes
9030else
7083c021 9031 charybdis_cv_c_gcc_prototypes=no
212380e3 9032fi
631ef239 9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9034 CFLAGS="${oldcflags}"
9035fi
9036
9037 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
9038 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
7083c021
AC
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9040$as_echo "ok" >&6; }
212380e3
AC
9041 else
9042 charybdis_cv_c_gcc_prototypes=''
7083c021
AC
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
212380e3
AC
9045 fi
9046 else
7083c021
AC
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048$as_echo "no" >&6; }
212380e3
AC
9049 fi
9050
9051
7083c021
AC
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
9053$as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
212380e3
AC
9054 if test "${GCC-no}" = yes
9055 then
b6d0720c 9056 if ${charybdis_cv_c_gcc_parenthesis+:} false; then :
7083c021 9057 $as_echo_n "(cached) " >&6
212380e3
AC
9058else
9059
9060 oldcflags="${CFLAGS-}"
9061 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
7083c021 9062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9063/* end confdefs.h. */
9064
9065#include <string.h>
9066#include <stdio.h>
9067int main(void);
9068
9069int
9070main ()
9071{
9072
b1fc1658 9073 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9074
9075 ;
9076 return 0;
9077}
9078_ACEOF
7083c021 9079if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9080 charybdis_cv_c_gcc_parenthesis=yes
9081else
7083c021 9082 charybdis_cv_c_gcc_parenthesis=no
212380e3 9083fi
631ef239 9084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9085 CFLAGS="${oldcflags}"
9086fi
9087
9088 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
9089 CWARNS="${CWARNS}-Wparenthesis "
7083c021
AC
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9091$as_echo "ok" >&6; }
212380e3
AC
9092 else
9093 charybdis_cv_c_gcc_parenthesis=''
7083c021
AC
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
212380e3
AC
9096 fi
9097 else
7083c021
AC
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
212380e3
AC
9100 fi
9101
9102
7083c021
AC
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
9104$as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
212380e3
AC
9105 if test "${GCC-no}" = yes
9106 then
b6d0720c 9107 if ${charybdis_cv_c_gcc_w+:} false; then :
7083c021 9108 $as_echo_n "(cached) " >&6
212380e3
AC
9109else
9110
9111 oldcflags="${CFLAGS-}"
9112 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
7083c021 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9114/* end confdefs.h. */
9115
9116#include <string.h>
9117#include <stdio.h>
9118int main(void);
9119
9120int
9121main ()
9122{
9123
b1fc1658 9124 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9125
9126 ;
9127 return 0;
9128}
9129_ACEOF
7083c021 9130if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9131 charybdis_cv_c_gcc_w=yes
9132else
7083c021 9133 charybdis_cv_c_gcc_w=no
212380e3 9134fi
631ef239 9135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9136 CFLAGS="${oldcflags}"
9137fi
9138
9139 if test "x$charybdis_cv_c_gcc_w" = xyes; then
9140 CWARNS="${CWARNS}-W -Wno-unused "
7083c021
AC
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9142$as_echo "ok" >&6; }
212380e3
AC
9143 else
9144 charybdis_cv_c_gcc_w=''
7083c021
AC
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
212380e3
AC
9147 fi
9148 else
7083c021
AC
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150$as_echo "no" >&6; }
212380e3
AC
9151 fi
9152
9153
7083c021
AC
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
9155$as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
212380e3
AC
9156 if test "${GCC-no}" = yes
9157 then
b6d0720c 9158 if ${charybdis_cv_c_gcc_w_extra+:} false; then :
7083c021 9159 $as_echo_n "(cached) " >&6
212380e3
AC
9160else
9161
9162 oldcflags="${CFLAGS-}"
9163 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
7083c021 9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9165/* end confdefs.h. */
9166
9167#include <string.h>
9168#include <stdio.h>
9169int main(void);
9170
9171int
9172main ()
9173{
9174
b1fc1658 9175 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9176
9177 ;
9178 return 0;
9179}
9180_ACEOF
7083c021 9181if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9182 charybdis_cv_c_gcc_w_extra=yes
9183else
7083c021 9184 charybdis_cv_c_gcc_w_extra=no
212380e3 9185fi
631ef239 9186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9187 CFLAGS="${oldcflags}"
9188fi
9189
9190 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
9191 CWARNS="${CWARNS}-Wextra "
7083c021
AC
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9193$as_echo "ok" >&6; }
212380e3
AC
9194 else
9195 charybdis_cv_c_gcc_w_extra=''
7083c021
AC
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197$as_echo "no" >&6; }
212380e3
AC
9198 fi
9199 else
7083c021
AC
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
212380e3
AC
9202 fi
9203
9204
7083c021
AC
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
9206$as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
212380e3
AC
9207 if test "${GCC-no}" = yes
9208 then
b6d0720c 9209 if ${charybdis_cv_c_gcc_w_shadow+:} false; then :
7083c021 9210 $as_echo_n "(cached) " >&6
212380e3
AC
9211else
9212
9213 oldcflags="${CFLAGS-}"
9214 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
7083c021 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9216/* end confdefs.h. */
9217
9218#include <string.h>
9219#include <stdio.h>
9220int main(void);
9221
9222int
9223main ()
9224{
9225
b1fc1658 9226 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9227
9228 ;
9229 return 0;
9230}
9231_ACEOF
7083c021 9232if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9233 charybdis_cv_c_gcc_w_shadow=yes
9234else
7083c021 9235 charybdis_cv_c_gcc_w_shadow=no
212380e3 9236fi
631ef239 9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9238 CFLAGS="${oldcflags}"
9239fi
9240
9241 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
9242 CWARNS="${CWARNS}-Wshadow "
7083c021
AC
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9244$as_echo "ok" >&6; }
212380e3
AC
9245 else
9246 charybdis_cv_c_gcc_w_shadow=''
7083c021
AC
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9248$as_echo "no" >&6; }
212380e3
AC
9249 fi
9250 else
7083c021
AC
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252$as_echo "no" >&6; }
212380e3
AC
9253 fi
9254
9255
7083c021
AC
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9257$as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
212380e3
AC
9258 if test "${GCC-no}" = yes
9259 then
b6d0720c 9260 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then :
7083c021 9261 $as_echo_n "(cached) " >&6
212380e3
AC
9262else
9263
9264 oldcflags="${CFLAGS-}"
9265 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
7083c021 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9267/* end confdefs.h. */
9268
9269#include <string.h>
9270#include <stdio.h>
9271int main(void);
9272
9273int
9274main ()
9275{
9276
b1fc1658 9277 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9278
9279 ;
9280 return 0;
9281}
9282_ACEOF
7083c021 9283if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9284 charybdis_cv_c_gcc_w_missing_noreturn=yes
9285else
7083c021 9286 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 9287fi
631ef239 9288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9289 CFLAGS="${oldcflags}"
9290fi
9291
9292 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
9293 CWARNS="${CWARNS}-Wmissing-noreturn "
7083c021
AC
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9295$as_echo "ok" >&6; }
212380e3
AC
9296 else
9297 charybdis_cv_c_gcc_w_missing_noreturn=''
7083c021
AC
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
212380e3
AC
9300 fi
9301 else
7083c021
AC
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303$as_echo "no" >&6; }
212380e3
AC
9304 fi
9305
9306
7083c021
AC
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9308$as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
212380e3
AC
9309 if test "${GCC-no}" = yes
9310 then
b6d0720c 9311 if ${charybdis_cv_c_gcc_w_undef+:} false; then :
7083c021 9312 $as_echo_n "(cached) " >&6
212380e3
AC
9313else
9314
9315 oldcflags="${CFLAGS-}"
9316 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
7083c021 9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9318/* end confdefs.h. */
9319
9320#include <string.h>
9321#include <stdio.h>
9322int main(void);
9323
9324int
9325main ()
9326{
9327
b1fc1658 9328 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9329
9330 ;
9331 return 0;
9332}
9333_ACEOF
7083c021 9334if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9335 charybdis_cv_c_gcc_w_undef=yes
9336else
7083c021 9337 charybdis_cv_c_gcc_w_undef=no
212380e3 9338fi
631ef239 9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9340 CFLAGS="${oldcflags}"
9341fi
9342
9343 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
9344 CWARNS="${CWARNS}-Wundef "
7083c021
AC
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9346$as_echo "ok" >&6; }
212380e3
AC
9347 else
9348 charybdis_cv_c_gcc_w_undef=''
7083c021
AC
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350$as_echo "no" >&6; }
212380e3
AC
9351 fi
9352 else
7083c021
AC
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
212380e3
AC
9355 fi
9356
9357
7083c021
AC
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9359$as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
212380e3
AC
9360 if test "${GCC-no}" = yes
9361 then
b6d0720c 9362 if ${charybdis_cv_c_gcc_w_packed+:} false; then :
7083c021 9363 $as_echo_n "(cached) " >&6
212380e3
AC
9364else
9365
9366 oldcflags="${CFLAGS-}"
9367 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
7083c021 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9369/* end confdefs.h. */
9370
9371#include <string.h>
9372#include <stdio.h>
9373int main(void);
9374
9375int
9376main ()
9377{
9378
b1fc1658 9379 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9380
9381 ;
9382 return 0;
9383}
9384_ACEOF
7083c021 9385if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9386 charybdis_cv_c_gcc_w_packed=yes
9387else
7083c021 9388 charybdis_cv_c_gcc_w_packed=no
212380e3 9389fi
631ef239 9390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9391 CFLAGS="${oldcflags}"
9392fi
9393
9394 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
9395 CWARNS="${CWARNS}-Wpacked "
7083c021
AC
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9397$as_echo "ok" >&6; }
212380e3
AC
9398 else
9399 charybdis_cv_c_gcc_w_packed=''
7083c021
AC
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401$as_echo "no" >&6; }
212380e3
AC
9402 fi
9403 else
7083c021
AC
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
212380e3
AC
9406 fi
9407
9408
7083c021
AC
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9410$as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
212380e3
AC
9411 if test "${GCC-no}" = yes
9412 then
b6d0720c 9413 if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then :
7083c021 9414 $as_echo_n "(cached) " >&6
212380e3
AC
9415else
9416
9417 oldcflags="${CFLAGS-}"
9418 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
7083c021 9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9420/* end confdefs.h. */
9421
9422#include <string.h>
9423#include <stdio.h>
9424int main(void);
9425
9426int
9427main ()
9428{
9429
b1fc1658 9430 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9431
9432 ;
9433 return 0;
9434}
9435_ACEOF
7083c021 9436if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9437 charybdis_cv_c_gcc_w_nested_externs=yes
9438else
7083c021 9439 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 9440fi
631ef239 9441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9442 CFLAGS="${oldcflags}"
9443fi
9444
9445 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
9446 CWARNS="${CWARNS}-Wnested-externs "
7083c021
AC
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9448$as_echo "ok" >&6; }
212380e3
AC
9449 else
9450 charybdis_cv_c_gcc_w_nested_externs=''
7083c021
AC
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452$as_echo "no" >&6; }
212380e3
AC
9453 fi
9454 else
7083c021
AC
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456$as_echo "no" >&6; }
212380e3
AC
9457 fi
9458
9459
7083c021
AC
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9461$as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
212380e3
AC
9462 if test "${GCC-no}" = yes
9463 then
b6d0720c 9464 if ${charybdis_cv_c_gcc_w_unused+:} false; then :
7083c021 9465 $as_echo_n "(cached) " >&6
212380e3
AC
9466else
9467
9468 oldcflags="${CFLAGS-}"
9469 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
7083c021 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9471/* end confdefs.h. */
9472
9473#include <string.h>
9474#include <stdio.h>
9475int main(void);
9476
9477int
9478main ()
9479{
9480
b1fc1658 9481 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9482
9483 ;
9484 return 0;
9485}
9486_ACEOF
7083c021 9487if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9488 charybdis_cv_c_gcc_w_unused=yes
9489else
7083c021 9490 charybdis_cv_c_gcc_w_unused=no
212380e3 9491fi
631ef239 9492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9493 CFLAGS="${oldcflags}"
9494fi
9495
9496 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
9497 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
7083c021
AC
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9499$as_echo "ok" >&6; }
212380e3
AC
9500 else
9501 charybdis_cv_c_gcc_w_unused=''
7083c021
AC
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
212380e3
AC
9504 fi
9505 else
7083c021
AC
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
212380e3
AC
9508 fi
9509
9510
7083c021
AC
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9512$as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
212380e3
AC
9513 if test "${GCC-no}" = yes
9514 then
b6d0720c 9515 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then :
7083c021 9516 $as_echo_n "(cached) " >&6
212380e3
AC
9517else
9518
9519 oldcflags="${CFLAGS-}"
9520 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
7083c021 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9522/* end confdefs.h. */
9523
9524#include <string.h>
9525#include <stdio.h>
9526int main(void);
9527
9528int
9529main ()
9530{
9531
b1fc1658 9532 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9533
9534 ;
9535 return 0;
9536}
9537_ACEOF
7083c021 9538if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9539 charybdis_cv_c_gcc_w_redundant_decls=yes
9540else
7083c021 9541 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 9542fi
631ef239 9543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9544 CFLAGS="${oldcflags}"
9545fi
9546
9547 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
9548 CWARNS="${CWARNS}-Wredundant-decls "
7083c021
AC
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9550$as_echo "ok" >&6; }
212380e3
AC
9551 else
9552 charybdis_cv_c_gcc_w_redundant_decls=''
7083c021
AC
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554$as_echo "no" >&6; }
212380e3
AC
9555 fi
9556 else
7083c021
AC
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558$as_echo "no" >&6; }
212380e3
AC
9559 fi
9560
9561
7083c021
AC
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9563$as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
212380e3
AC
9564 if test "${GCC-no}" = yes
9565 then
b6d0720c 9566 if ${charybdis_cv_c_gcc_w_float_equal+:} false; then :
7083c021 9567 $as_echo_n "(cached) " >&6
212380e3
AC
9568else
9569
9570 oldcflags="${CFLAGS-}"
9571 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
7083c021 9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9573/* end confdefs.h. */
9574
9575#include <string.h>
9576#include <stdio.h>
9577int main(void);
9578
9579int
9580main ()
9581{
9582
b1fc1658 9583 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
9584
9585 ;
9586 return 0;
9587}
9588_ACEOF
7083c021 9589if ac_fn_c_try_compile "$LINENO"; then :
212380e3
AC
9590 charybdis_cv_c_gcc_w_float_equal=yes
9591else
7083c021 9592 charybdis_cv_c_gcc_w_float_equal=no
212380e3 9593fi
631ef239 9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9595 CFLAGS="${oldcflags}"
9596fi
9597
9598 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
9599 CWARNS="${CWARNS}-Wfloat-equal "
7083c021
AC
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9601$as_echo "ok" >&6; }
212380e3
AC
9602 else
9603 charybdis_cv_c_gcc_w_float_equal=''
7083c021
AC
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
212380e3
AC
9606 fi
9607 else
7083c021
AC
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609$as_echo "no" >&6; }
212380e3
AC
9610 fi
9611
9612
7083c021
AC
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9614$as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
212380e3
AC
9615 if test "${GCC-no}" = yes
9616 then
b6d0720c 9617 if ${charybdis_cv_c_gcc_w_format+:} false; then :
7083c021 9618 $as_echo_n "(cached) " >&6
212380e3
AC
9619else
9620
9621 oldcflags="${CFLAGS-}"
4a584d41 9622 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
7083c021 9623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9624/* end confdefs.h. */
9625
9626#include <string.h>
9627#include <stdio.h>
9628int main(void);
9629
9630int
9631main ()
9632{
7083c021
AC
9633
9634 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9635
212380e3
AC
9636 ;
9637 return 0;
9638}
9639_ACEOF
7083c021
AC
9640if ac_fn_c_try_compile "$LINENO"; then :
9641 charybdis_cv_c_gcc_w_format=yes
212380e3 9642else
7083c021
AC
9643 charybdis_cv_c_gcc_w_format=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9646 CFLAGS="${oldcflags}"
9647fi
9648
9649 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
9650 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9652$as_echo "ok" >&6; }
9653 else
9654 charybdis_cv_c_gcc_w_format=''
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656$as_echo "no" >&6; }
9657 fi
9658 else
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9660$as_echo "no" >&6; }
9661 fi
9662
9663
9664IRC_CFLAGS="$CFLAGS"
212380e3 9665
212380e3 9666fi
631ef239 9667
7083c021
AC
9668
9669if test "$shared_modules" = no; then
9670 DYNLINK_C=""
9671 MOD_TARGET="libmodules.a"
9672 MODULES_LIBS="../modules/libmodules.a"
9673 SEDOBJ=""
9674
9675$as_echo "#define STATIC_MODULES 1" >>confdefs.h
9676
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9678$as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
212380e3 9679fi
7083c021
AC
9680
9681if test "$shared_modules" = yes; then
9682
9683 ac_fn_c_check_func "$LINENO" "nlist" "ac_cv_func_nlist"
b6d0720c 9684if test "x$ac_cv_func_nlist" = xyes; then :
7083c021 9685
212380e3 9686else
7083c021
AC
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9688$as_echo_n "checking for nlist in -ldl... " >&6; }
b6d0720c 9689if ${ac_cv_lib_dl_nlist+:} false; then :
7083c021 9690 $as_echo_n "(cached) " >&6
212380e3
AC
9691else
9692 ac_check_lib_save_LIBS=$LIBS
9693LIBS="-ldl $LIBS"
7083c021 9694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9695/* end confdefs.h. */
9696
631ef239
AC
9697/* Override any GCC internal prototype to avoid an error.
9698 Use char because int might match the return type of a GCC
9699 builtin and then its argument prototype would still apply. */
212380e3
AC
9700#ifdef __cplusplus
9701extern "C"
9702#endif
212380e3
AC
9703char nlist ();
9704int
9705main ()
9706{
631ef239 9707return nlist ();
212380e3
AC
9708 ;
9709 return 0;
9710}
9711_ACEOF
7083c021 9712if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9713 ac_cv_lib_dl_nlist=yes
9714else
7083c021 9715 ac_cv_lib_dl_nlist=no
212380e3 9716fi
7083c021
AC
9717rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9719LIBS=$ac_check_lib_save_LIBS
9720fi
7083c021
AC
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9722$as_echo "$ac_cv_lib_dl_nlist" >&6; }
b6d0720c 9723if test "x$ac_cv_lib_dl_nlist" = xyes; then :
212380e3
AC
9724 nlist_lib="-ldl"
9725else
7083c021
AC
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9727$as_echo_n "checking for nlist in -lelf... " >&6; }
b6d0720c 9728if ${ac_cv_lib_elf_nlist+:} false; then :
7083c021 9729 $as_echo_n "(cached) " >&6
212380e3
AC
9730else
9731 ac_check_lib_save_LIBS=$LIBS
9732LIBS="-lelf $LIBS"
7083c021 9733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
212380e3
AC
9734/* end confdefs.h. */
9735
631ef239
AC
9736/* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
212380e3
AC
9739#ifdef __cplusplus
9740extern "C"
9741#endif
212380e3
AC
9742char nlist ();
9743int
9744main ()
9745{
631ef239 9746return nlist ();
212380e3
AC
9747 ;
9748 return 0;
9749}
9750_ACEOF
7083c021 9751if ac_fn_c_try_link "$LINENO"; then :
212380e3
AC
9752 ac_cv_lib_elf_nlist=yes
9753else
7083c021 9754 ac_cv_lib_elf_nlist=no
212380e3 9755fi
7083c021
AC
9756rm -f core conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
212380e3
AC
9758LIBS=$ac_check_lib_save_LIBS
9759fi
7083c021
AC
9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9761$as_echo "$ac_cv_lib_elf_nlist" >&6; }
b6d0720c 9762if test "x$ac_cv_lib_elf_nlist" = xyes; then :
212380e3
AC
9763 nlist_lib="-lelf"
9764fi
9765
9766
9767fi
9768
9769
9770fi
9771
9772
7083c021 9773 ac_fn_c_check_header_mongrel "$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
b6d0720c 9774if test "x$ac_cv_header_libelf_nlist_h" = xyes; then :
212380e3
AC
9775 nlist_h="libelf/nlist.h"
9776fi
9777
9778
7083c021 9779 ac_fn_c_check_header_mongrel "$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
b6d0720c 9780if test "x$ac_cv_header_elf_nlist_h" = xyes; then :
212380e3
AC
9781 nlist_h="elf/nlist.h"
9782fi
9783
9784
7083c021 9785 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
b6d0720c 9786if test "x$ac_cv_header_nlist_h" = xyes; then :
212380e3
AC
9787 nlist_h="nlist.h"
9788fi
9789
9790
9791 if test x"$nlist_h" = "x"; then
9792
9793cat >>confdefs.h <<_ACEOF
9794#define SYMBOL_PREFIX ""
9795_ACEOF
9796
9797 else
7083c021
AC
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9799$as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
b6d0720c 9800 if ${symbol_underscores+:} false; then :
7083c021 9801 $as_echo_n "(cached) " >&6
212380e3
AC
9802else
9803
9804cat << EOF > conftest.c
9805#include <$nlist_h>
9806#include <stdio.h>
9807#include <stdlib.h>
9808void _modinit(void);
9809int main(int argc, char *argv[]) {
9810 int i;
9811 struct nlist nl[5];
9812
9813 /* fill the names in this way, so it'll work almost everywhere */
9814 nl[0].n_name = "_modinit";
9815 nl[1].n_name = "__modinit";
9816 nl[2].n_name = "___modinit";
9817 nl[3].n_name = "____modinit";
9818 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9819
9820 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9821 for(i = 0; i < 4; i++) {
9822 if(nl[i].n_value != NULL)
9823 {
9824 int j;
9825 for(j = 0; j < i; j++)
9826 printf("_");
9827 exit(i);
9828 }
9829 }
9830 exit(-1);
9831}
9832void _modinit(void) { return; }
9833EOF
9834 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
9835 symbol_underscores=`./conftest conftest`
7083c021
AC
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9837$as_echo "$symbol_underscores" >&6; }
212380e3
AC
9838 $RM -f conftest conftest.c
9839
9840fi
9841
9842
9843cat >>confdefs.h <<_ACEOF
9844#define SYMBOL_PREFIX "${symbol_underscores}"
9845_ACEOF
9846
9847 fi
9848fi
9849
d2c5159a
JT
9850IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
9851
212380e3
AC
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865if test "$prefix" = "NONE"; then
9866
9867cat >>confdefs.h <<_ACEOF
9868#define IRCD_PREFIX "$ac_default_prefix"
9869_ACEOF
9870
9871
9872else
9873
9874
9875 prefix=`echo $prefix | sed 's/\/$//'`
9876
9877cat >>confdefs.h <<_ACEOF
9878#define IRCD_PREFIX "$prefix"
9879_ACEOF
9880
9881
9882fi
9883
2eff3833 9884ac_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 9885
2eff3833 9886ac_config_commands="$ac_config_commands tools/genssl_chmod"
212380e3
AC
9887
9888
9889cat >confcache <<\_ACEOF
9890# This file is a shell script that caches the results of configure
9891# tests run on this system so they can be shared between configure
9892# scripts and configure runs, see configure's option --config-cache.
9893# It is not useful on other systems. If it contains results you don't
9894# want to keep, you may remove or edit it.
9895#
9896# config.status only pays attention to the cache file if you give it
9897# the --recheck option to rerun configure.
9898#
9899# `ac_cv_env_foo' variables (set or unset) will be overridden when
9900# loading this file, other *unset* `ac_cv_foo' will be assigned the
9901# following values.
9902
9903_ACEOF
9904
9905# The following way of writing the cache mishandles newlines in values,
9906# but we know of no workaround that is simple, portable, and efficient.
631ef239 9907# So, we kill variables containing newlines.
212380e3
AC
9908# Ultrix sh set writes to stderr and can't be redirected directly,
9909# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
9910(
9911 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9912 eval ac_val=\$$ac_var
9913 case $ac_val in #(
9914 *${as_nl}*)
9915 case $ac_var in #(
7083c021
AC
9916 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
631ef239
AC
9918 esac
9919 case $ac_var in #(
9920 _ | IFS | as_nl) ;; #(
7083c021
AC
9921 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9922 *) { eval $ac_var=; unset $ac_var;} ;;
631ef239
AC
9923 esac ;;
9924 esac
9925 done
9926
212380e3 9927 (set) 2>&1 |
631ef239
AC
9928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9929 *${as_nl}ac_space=\ *)
7083c021
AC
9930 # `set' does not quote correctly, so add quotes: double-quote
9931 # substitution turns \\\\ into \\, and sed turns \\ into \.
212380e3
AC
9932 sed -n \
9933 "s/'/'\\\\''/g;
9934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 9935 ;; #(
212380e3
AC
9936 *)
9937 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 9938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 9939 ;;
631ef239
AC
9940 esac |
9941 sort
9942) |
212380e3 9943 sed '
631ef239 9944 /^ac_cv_env_/b end
212380e3 9945 t clear
631ef239 9946 :clear
212380e3
AC
9947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9948 t end
631ef239
AC
9949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9950 :end' >>confcache
9951if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9952 if test -w "$cache_file"; then
b6d0720c 9953 if test "x$cache_file" != "x/dev/null"; then
7083c021
AC
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9955$as_echo "$as_me: updating cache $cache_file" >&6;}
b6d0720c
AC
9956 if test ! -f "$cache_file" || test -h "$cache_file"; then
9957 cat confcache >"$cache_file"
9958 else
9959 case $cache_file in #(
9960 */* | ?:*)
9961 mv -f confcache "$cache_file"$$ &&
9962 mv -f "$cache_file"$$ "$cache_file" ;; #(
9963 *)
9964 mv -f confcache "$cache_file" ;;
9965 esac
9966 fi
9967 fi
212380e3 9968 else
7083c021
AC
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9970$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
9971 fi
9972fi
9973rm -f confcache
9974
9975test "x$prefix" = xNONE && prefix=$ac_default_prefix
9976# Let make expand exec_prefix.
9977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9978
212380e3
AC
9979DEFS=-DHAVE_CONFIG_H
9980
9981ac_libobjs=
9982ac_ltlibobjs=
b6d0720c 9983U=
212380e3
AC
9984for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9985 # 1. Remove the extension, and $U if already installed.
631ef239 9986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7083c021 9987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
631ef239
AC
9988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9989 # will be set to the directory where LIBOBJS objects are built.
7083c021
AC
9990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
9992done
9993LIBOBJS=$ac_libobjs
9994
9995LTLIBOBJS=$ac_ltlibobjs
9996
9997
9998
7083c021
AC
9999
10000
b6d0720c 10001: "${CONFIG_STATUS=./config.status}"
7083c021 10002ac_write_fail=0
212380e3
AC
10003ac_clean_files_save=$ac_clean_files
10004ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7083c021
AC
10005{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10006$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10007as_write_fail=0
10008cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
212380e3
AC
10009#! $SHELL
10010# Generated by $as_me.
10011# Run this file to recreate the current configuration.
10012# Compiler output produced by configure, useful for debugging
10013# configure, is in config.log if it exists.
10014
10015debug=false
10016ac_cs_recheck=false
10017ac_cs_silent=false
212380e3 10018
7083c021
AC
10019SHELL=\${CONFIG_SHELL-$SHELL}
10020export SHELL
10021_ASEOF
10022cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10023## -------------------- ##
10024## M4sh Initialization. ##
10025## -------------------- ##
212380e3 10026
631ef239
AC
10027# Be more Bourne compatible
10028DUALCASE=1; export DUALCASE # for MKS sh
7083c021 10029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
212380e3
AC
10030 emulate sh
10031 NULLCMD=:
7083c021 10032 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
212380e3
AC
10033 # is contrary to our usage. Disable this feature.
10034 alias -g '${1+"$@"}'='"$@"'
631ef239 10035 setopt NO_GLOB_SUBST
212380e3 10036else
7083c021
AC
10037 case `(set -o) 2>/dev/null` in #(
10038 *posix*) :
10039 set -o posix ;; #(
10040 *) :
10041 ;;
631ef239 10042esac
212380e3
AC
10043fi
10044
10045
7083c021
AC
10046as_nl='
10047'
10048export as_nl
10049# Printing a long string crashes Solaris 7 /usr/bin/printf.
10050as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10051as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10052as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10053# Prefer a ksh shell builtin over an external printf program on Solaris,
10054# but without wasting forks for bash or zsh.
10055if test -z "$BASH_VERSION$ZSH_VERSION" \
10056 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10057 as_echo='print -r --'
10058 as_echo_n='print -rn --'
10059elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10060 as_echo='printf %s\n'
10061 as_echo_n='printf %s'
10062else
10063 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10064 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10065 as_echo_n='/usr/ucb/echo -n'
631ef239 10066 else
7083c021
AC
10067 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10068 as_echo_n_body='eval
10069 arg=$1;
10070 case $arg in #(
10071 *"$as_nl"*)
10072 expr "X$arg" : "X\\(.*\\)$as_nl";
10073 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10074 esac;
10075 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10076 '
10077 export as_echo_n_body
10078 as_echo_n='sh -c $as_echo_n_body as_echo'
631ef239 10079 fi
7083c021
AC
10080 export as_echo_body
10081 as_echo='sh -c $as_echo_body as_echo'
631ef239
AC
10082fi
10083
7083c021
AC
10084# The user is always right.
10085if test "${PATH_SEPARATOR+set}" != set; then
10086 PATH_SEPARATOR=:
10087 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10088 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10089 PATH_SEPARATOR=';'
10090 }
631ef239
AC
10091fi
10092
10093
10094# IFS
10095# We need space, tab and new line, in precisely that order. Quoting is
10096# there to prevent editors from complaining about space-tab.
10097# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10098# splitting by setting IFS to empty value.)
631ef239
AC
10099IFS=" "" $as_nl"
10100
10101# Find who we are. Look in the path if we contain no directory separator.
b6d0720c 10102as_myself=
7083c021 10103case $0 in #((
631ef239
AC
10104 *[\\/]* ) as_myself=$0 ;;
10105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106for as_dir in $PATH
10107do
10108 IFS=$as_save_IFS
10109 test -z "$as_dir" && as_dir=.
7083c021
AC
10110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10111 done
631ef239
AC
10112IFS=$as_save_IFS
10113
10114 ;;
10115esac
10116# We did not find ourselves, most probably we were run as `sh COMMAND'
10117# in which case we are not to be found in the path.
10118if test "x$as_myself" = x; then
10119 as_myself=$0
10120fi
10121if test ! -f "$as_myself"; then
7083c021
AC
10122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10123 exit 1
631ef239
AC
10124fi
10125
7083c021
AC
10126# Unset variables that we do not need and which cause bugs (e.g. in
10127# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10128# suppresses any "Segmentation fault" message there. '((' could
10129# trigger a bug in pdksh 5.2.14.
10130for as_var in BASH_ENV ENV MAIL MAILPATH
10131do eval test x\${$as_var+set} = xset \
10132 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
631ef239 10133done
212380e3
AC
10134PS1='$ '
10135PS2='> '
10136PS4='+ '
10137
7083c021
AC
10138# NLS nuisances.
10139LC_ALL=C
10140export LC_ALL
10141LANGUAGE=C
10142export LANGUAGE
10143
10144# CDPATH.
10145(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10146
10147
b6d0720c
AC
10148# as_fn_error STATUS ERROR [LINENO LOG_FD]
10149# ----------------------------------------
7083c021
AC
10150# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10151# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
b6d0720c 10152# script with STATUS, using 1 if that was 0.
7083c021
AC
10153as_fn_error ()
10154{
b6d0720c
AC
10155 as_status=$1; test $as_status -eq 0 && as_status=1
10156 if test "$4"; then
10157 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10158 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
212380e3 10159 fi
b6d0720c 10160 $as_echo "$as_me: error: $2" >&2
7083c021
AC
10161 as_fn_exit $as_status
10162} # as_fn_error
10163
10164
10165# as_fn_set_status STATUS
10166# -----------------------
10167# Set $? to STATUS, without forking.
10168as_fn_set_status ()
10169{
10170 return $1
10171} # as_fn_set_status
10172
10173# as_fn_exit STATUS
10174# -----------------
10175# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10176as_fn_exit ()
10177{
10178 set +e
10179 as_fn_set_status $1
10180 exit $1
10181} # as_fn_exit
10182
10183# as_fn_unset VAR
10184# ---------------
10185# Portably unset VAR.
10186as_fn_unset ()
10187{
10188 { eval $1=; unset $1;}
10189}
10190as_unset=as_fn_unset
10191# as_fn_append VAR VALUE
10192# ----------------------
10193# Append the text in VALUE to the end of the definition contained in VAR. Take
10194# advantage of any shell optimizations that allow amortized linear growth over
10195# repeated appends, instead of the typical quadratic growth present in naive
10196# implementations.
10197if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10198 eval 'as_fn_append ()
10199 {
10200 eval $1+=\$2
10201 }'
10202else
10203 as_fn_append ()
10204 {
10205 eval $1=\$$1\$2
10206 }
10207fi # as_fn_append
10208
10209# as_fn_arith ARG...
10210# ------------------
10211# Perform arithmetic evaluation on the ARGs, and store the result in the
10212# global $as_val. Take advantage of shells that can avoid forks. The arguments
10213# must be portable across $(()) and expr.
10214if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10215 eval 'as_fn_arith ()
10216 {
10217 as_val=$(( $* ))
10218 }'
10219else
10220 as_fn_arith ()
10221 {
10222 as_val=`expr "$@" || test $? -eq 1`
10223 }
10224fi # as_fn_arith
10225
212380e3 10226
631ef239
AC
10227if expr a : '\(a\)' >/dev/null 2>&1 &&
10228 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
10229 as_expr=expr
10230else
10231 as_expr=false
10232fi
10233
631ef239 10234if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
10235 as_basename=basename
10236else
10237 as_basename=false
10238fi
10239
7083c021
AC
10240if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10241 as_dirname=dirname
10242else
10243 as_dirname=false
10244fi
212380e3 10245
631ef239 10246as_me=`$as_basename -- "$0" ||
212380e3
AC
10247$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10248 X"$0" : 'X\(//\)$' \| \
631ef239 10249 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10250$as_echo X/"$0" |
631ef239
AC
10251 sed '/^.*\/\([^/][^/]*\)\/*$/{
10252 s//\1/
10253 q
10254 }
10255 /^X\/\(\/\/\)$/{
10256 s//\1/
10257 q
10258 }
10259 /^X\/\(\/\).*/{
10260 s//\1/
10261 q
10262 }
10263 s/.*/./; q'`
212380e3 10264
7083c021
AC
10265# Avoid depending upon Character Ranges.
10266as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10267as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10268as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10269as_cr_digits='0123456789'
10270as_cr_alnum=$as_cr_Letters$as_cr_digits
631ef239
AC
10271
10272ECHO_C= ECHO_N= ECHO_T=
7083c021 10273case `echo -n x` in #(((((
631ef239 10274-n*)
7083c021 10275 case `echo 'xy\c'` in
631ef239 10276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7083c021
AC
10277 xy) ECHO_C='\c';;
10278 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10279 ECHO_T=' ';;
631ef239
AC
10280 esac;;
10281*)
10282 ECHO_N='-n';;
212380e3
AC
10283esac
10284
212380e3 10285rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
10286if test -d conf$$.dir; then
10287 rm -f conf$$.dir/conf$$.file
10288else
10289 rm -f conf$$.dir
7083c021
AC
10290 mkdir conf$$.dir 2>/dev/null
10291fi
10292if (echo >conf$$.file) 2>/dev/null; then
10293 if ln -s conf$$.file conf$$ 2>/dev/null; then
10294 as_ln_s='ln -s'
10295 # ... but there are two gotchas:
10296 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10297 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2eff3833 10298 # In both cases, we have to default to `cp -pR'.
7083c021 10299 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2eff3833 10300 as_ln_s='cp -pR'
7083c021
AC
10301 elif ln conf$$.file conf$$ 2>/dev/null; then
10302 as_ln_s=ln
10303 else
2eff3833 10304 as_ln_s='cp -pR'
7083c021 10305 fi
212380e3 10306else
2eff3833 10307 as_ln_s='cp -pR'
212380e3 10308fi
631ef239
AC
10309rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10310rmdir conf$$.dir 2>/dev/null
212380e3 10311
7083c021
AC
10312
10313# as_fn_mkdir_p
10314# -------------
10315# Create "$as_dir" as a directory, including parents if necessary.
10316as_fn_mkdir_p ()
10317{
10318
10319 case $as_dir in #(
10320 -*) as_dir=./$as_dir;;
10321 esac
10322 test -d "$as_dir" || eval $as_mkdir_p || {
10323 as_dirs=
10324 while :; do
10325 case $as_dir in #(
10326 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10327 *) as_qdir=$as_dir;;
10328 esac
10329 as_dirs="'$as_qdir' $as_dirs"
10330 as_dir=`$as_dirname -- "$as_dir" ||
10331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10332 X"$as_dir" : 'X\(//\)[^/]' \| \
10333 X"$as_dir" : 'X\(//\)$' \| \
10334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10335$as_echo X"$as_dir" |
10336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10337 s//\1/
10338 q
10339 }
10340 /^X\(\/\/\)[^/].*/{
10341 s//\1/
10342 q
10343 }
10344 /^X\(\/\/\)$/{
10345 s//\1/
10346 q
10347 }
10348 /^X\(\/\).*/{
10349 s//\1/
10350 q
10351 }
10352 s/.*/./; q'`
10353 test -d "$as_dir" && break
10354 done
10355 test -z "$as_dirs" || eval "mkdir $as_dirs"
b6d0720c 10356 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7083c021
AC
10357
10358
10359} # as_fn_mkdir_p
212380e3 10360if mkdir -p . 2>/dev/null; then
7083c021 10361 as_mkdir_p='mkdir -p "$as_dir"'
212380e3
AC
10362else
10363 test -d ./-p && rmdir ./-p
10364 as_mkdir_p=false
10365fi
10366
2eff3833
JT
10367
10368# as_fn_executable_p FILE
10369# -----------------------
10370# Test if FILE is an executable regular file.
10371as_fn_executable_p ()
10372{
10373 test -f "$1" && test -x "$1"
10374} # as_fn_executable_p
10375as_test_x='test -x'
10376as_executable_p=as_fn_executable_p
212380e3
AC
10377
10378# Sed expression to map a string onto a valid CPP name.
10379as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10380
10381# Sed expression to map a string onto a valid variable name.
10382as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10383
10384
212380e3 10385exec 6>&1
7083c021
AC
10386## ----------------------------------- ##
10387## Main body of $CONFIG_STATUS script. ##
10388## ----------------------------------- ##
10389_ASEOF
10390test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
212380e3 10391
7083c021
AC
10392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10393# Save the log message, to keep $0 and so on meaningful, and to
212380e3 10394# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
10395# values after options handling.
10396ac_log="
dc9aebf4 10397This file was extended by charybdis $as_me 3.5.0-dev, which was
2eff3833 10398generated by GNU Autoconf 2.69. Invocation command line was
212380e3
AC
10399
10400 CONFIG_FILES = $CONFIG_FILES
10401 CONFIG_HEADERS = $CONFIG_HEADERS
10402 CONFIG_LINKS = $CONFIG_LINKS
10403 CONFIG_COMMANDS = $CONFIG_COMMANDS
10404 $ $0 $@
10405
631ef239
AC
10406on `(hostname || uname -n) 2>/dev/null | sed 1q`
10407"
10408
212380e3
AC
10409_ACEOF
10410
7083c021
AC
10411case $ac_config_files in *"
10412"*) set x $ac_config_files; shift; ac_config_files=$*;;
10413esac
10414
10415case $ac_config_headers in *"
10416"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10417esac
10418
10419
10420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10421# Files that config.status was made for.
631ef239
AC
10422config_files="$ac_config_files"
10423config_headers="$ac_config_headers"
9f9b7042 10424config_commands="$ac_config_commands"
212380e3 10425
631ef239 10426_ACEOF
212380e3 10427
7083c021 10428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3 10429ac_cs_usage="\
7083c021
AC
10430\`$as_me' instantiates files and other configuration actions
10431from templates according to the current configuration. Unless the files
10432and actions are specified as TAGs, all are instantiated by default.
212380e3 10433
7083c021 10434Usage: $0 [OPTION]... [TAG]...
212380e3
AC
10435
10436 -h, --help print this help, then exit
631ef239 10437 -V, --version print version number and configuration settings, then exit
6fb6bd15 10438 --config print configuration, then exit
7083c021
AC
10439 -q, --quiet, --silent
10440 do not print progress messages
212380e3
AC
10441 -d, --debug don't remove temporary files
10442 --recheck update $as_me by reconfiguring in the same conditions
7083c021
AC
10443 --file=FILE[:TEMPLATE]
10444 instantiate the configuration file FILE
10445 --header=FILE[:TEMPLATE]
10446 instantiate the configuration header FILE
212380e3
AC
10447
10448Configuration files:
10449$config_files
10450
10451Configuration headers:
10452$config_headers
10453
9f9b7042
NPB
10454Configuration commands:
10455$config_commands
10456
7083c021 10457Report bugs to the package provider."
212380e3 10458
631ef239 10459_ACEOF
7083c021 10460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6fb6bd15 10461ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
212380e3 10462ac_cs_version="\\
dc9aebf4 10463charybdis config.status 3.5.0-dev
2eff3833 10464configured by $0, generated by GNU Autoconf 2.69,
6fb6bd15 10465 with options \\"\$ac_cs_config\\"
212380e3 10466
2eff3833 10467Copyright (C) 2012 Free Software Foundation, Inc.
212380e3
AC
10468This config.status script is free software; the Free Software Foundation
10469gives unlimited permission to copy, distribute and modify it."
631ef239
AC
10470
10471ac_pwd='$ac_pwd'
10472srcdir='$srcdir'
10473INSTALL='$INSTALL'
7083c021 10474test -n "\$AWK" || AWK=awk
212380e3
AC
10475_ACEOF
10476
7083c021
AC
10477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10478# The default lists apply if the user does not specify any file.
212380e3
AC
10479ac_need_defaults=:
10480while test $# != 0
10481do
10482 case $1 in
b6d0720c 10483 --*=?*)
631ef239
AC
10484 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10485 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
10486 ac_shift=:
10487 ;;
b6d0720c
AC
10488 --*=)
10489 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10490 ac_optarg=
10491 ac_shift=:
10492 ;;
631ef239 10493 *)
212380e3
AC
10494 ac_option=$1
10495 ac_optarg=$2
10496 ac_shift=shift
10497 ;;
212380e3
AC
10498 esac
10499
10500 case $ac_option in
10501 # Handling of the options.
212380e3
AC
10502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10503 ac_cs_recheck=: ;;
631ef239 10504 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7083c021 10505 $as_echo "$ac_cs_version"; exit ;;
6fb6bd15
AC
10506 --config | --confi | --conf | --con | --co | --c )
10507 $as_echo "$ac_cs_config"; exit ;;
631ef239 10508 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
10509 debug=: ;;
10510 --file | --fil | --fi | --f )
10511 $ac_shift
7083c021
AC
10512 case $ac_optarg in
10513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
b6d0720c 10514 '') as_fn_error $? "missing file argument" ;;
7083c021
AC
10515 esac
10516 as_fn_append CONFIG_FILES " '$ac_optarg'"
212380e3
AC
10517 ac_need_defaults=false;;
10518 --header | --heade | --head | --hea )
10519 $ac_shift
7083c021
AC
10520 case $ac_optarg in
10521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10522 esac
10523 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
212380e3 10524 ac_need_defaults=false;;
631ef239
AC
10525 --he | --h)
10526 # Conflict between --help and --header
b6d0720c 10527 as_fn_error $? "ambiguous option: \`$1'
7083c021 10528Try \`$0 --help' for more information.";;
631ef239 10529 --help | --hel | -h )
7083c021 10530 $as_echo "$ac_cs_usage"; exit ;;
212380e3
AC
10531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10533 ac_cs_silent=: ;;
10534
10535 # This is an error.
b6d0720c 10536 -*) as_fn_error $? "unrecognized option: \`$1'
7083c021 10537Try \`$0 --help' for more information." ;;
212380e3 10538
7083c021 10539 *) as_fn_append ac_config_targets " $1"
631ef239 10540 ac_need_defaults=false ;;
212380e3
AC
10541
10542 esac
10543 shift
10544done
10545
10546ac_configure_extra_args=
10547
10548if $ac_cs_silent; then
10549 exec 6>/dev/null
10550 ac_configure_extra_args="$ac_configure_extra_args --silent"
10551fi
10552
10553_ACEOF
7083c021 10554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
212380e3 10555if \$ac_cs_recheck; then
2eff3833 10556 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7083c021
AC
10557 shift
10558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10559 CONFIG_SHELL='$SHELL'
631ef239 10560 export CONFIG_SHELL
7083c021 10561 exec "\$@"
212380e3
AC
10562fi
10563
10564_ACEOF
7083c021 10565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10566exec 5>>config.log
10567{
10568 echo
10569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10570## Running $as_me. ##
10571_ASBOX
7083c021 10572 $as_echo "$ac_log"
631ef239 10573} >&5
212380e3 10574
631ef239 10575_ACEOF
7083c021 10576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239 10577_ACEOF
212380e3 10578
7083c021 10579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10580
10581# Handling of arguments.
212380e3
AC
10582for ac_config_target in $ac_config_targets
10583do
631ef239
AC
10584 case $ac_config_target in
10585 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
10586 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7083c021 10587 "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;;
53970d07 10588 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 10589 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
631ef239
AC
10590 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10591 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
10592 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
2eff3833 10593 "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;;
631ef239
AC
10594 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10595 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
2eff3833 10596 "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;;
631ef239 10597
b6d0720c 10598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
212380e3
AC
10599 esac
10600done
10601
631ef239 10602
212380e3
AC
10603# If the user did not use the arguments to specify the items to instantiate,
10604# then the envvar interface is used. Set only those that are not.
10605# We use the long form for the default assignment because of an extremely
10606# bizarre bug on SunOS 4.1.3.
10607if $ac_need_defaults; then
10608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9f9b7042 10610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
212380e3
AC
10611fi
10612
10613# Have a temporary directory for convenience. Make it in the build tree
631ef239 10614# simply because there is no reason against having it here, and in addition,
212380e3 10615# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
10616# Hook for its removal unless debugging.
10617# Note that there is a small window in which the directory will not be cleaned:
10618# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
10619$debug ||
10620{
b6d0720c 10621 tmp= ac_tmp=
631ef239 10622 trap 'exit_status=$?
b6d0720c
AC
10623 : "${ac_tmp:=$tmp}"
10624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
631ef239 10625' 0
7083c021 10626 trap 'as_fn_exit 1' 1 2 13 15
212380e3 10627}
212380e3
AC
10628# Create a (secure) tmp directory for tmp files.
10629
10630{
631ef239 10631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b6d0720c 10632 test -d "$tmp"
212380e3
AC
10633} ||
10634{
631ef239
AC
10635 tmp=./conf$$-$RANDOM
10636 (umask 077 && mkdir "$tmp")
b6d0720c
AC
10637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10638ac_tmp=$tmp
212380e3 10639
7083c021
AC
10640# Set up the scripts for CONFIG_FILES section.
10641# No need to generate them if there are no CONFIG_FILES.
10642# This happens for instance with `./config.status config.h'.
631ef239
AC
10643if test -n "$CONFIG_FILES"; then
10644
631ef239 10645
7083c021
AC
10646ac_cr=`echo X | tr X '\015'`
10647# On cygwin, bash can eat \r inside `` if the user requested igncr.
10648# But we know of no other shell where ac_cr would be empty at this
10649# point, so we can use a bashism as a fallback.
10650if test "x$ac_cr" = x; then
10651 eval ac_cr=\$\'\\r\'
10652fi
10653ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10654if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
b6d0720c 10655 ac_cs_awk_cr='\\r'
7083c021
AC
10656else
10657 ac_cs_awk_cr=$ac_cr
10658fi
10659
b6d0720c 10660echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7083c021 10661_ACEOF
631ef239
AC
10662
10663
7083c021
AC
10664{
10665 echo "cat >conf$$subs.awk <<_ACEOF" &&
10666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10667 echo "_ACEOF"
10668} >conf$$subs.sh ||
b6d0720c
AC
10669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10670ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
631ef239
AC
10671ac_delim='%!_!# '
10672for ac_last_try in false false false false false :; do
7083c021 10673 . ./conf$$subs.sh ||
b6d0720c 10674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7083c021
AC
10675
10676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10677 if test $ac_delim_n = $ac_delim_num; then
631ef239
AC
10678 break
10679 elif $ac_last_try; then
b6d0720c 10680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
631ef239
AC
10681 else
10682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 10683 fi
631ef239 10684done
7083c021
AC
10685rm -f conf$$subs.sh
10686
10687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b6d0720c 10688cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7083c021
AC
10689_ACEOF
10690sed -n '
10691h
10692s/^/S["/; s/!.*/"]=/
10693p
10694g
10695s/^[^!]*!//
10696:repl
10697t repl
10698s/'"$ac_delim"'$//
10699t delim
10700:nl
10701h
6fb6bd15 10702s/\(.\{148\}\)..*/\1/
7083c021
AC
10703t more1
10704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10705p
10706n
10707b repl
10708:more1
10709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10710p
10711g
10712s/.\{148\}//
10713t nl
10714:delim
10715h
6fb6bd15 10716s/\(.\{148\}\)..*/\1/
7083c021
AC
10717t more2
10718s/["\\]/\\&/g; s/^/"/; s/$/"/
10719p
10720b
10721:more2
10722s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10723p
10724g
10725s/.\{148\}//
10726t delim
10727' <conf$$subs.awk | sed '
10728/^[^""]/{
10729 N
10730 s/\n//
10731}
10732' >>$CONFIG_STATUS || ac_write_fail=1
10733rm -f conf$$subs.awk
10734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10735_ACAWK
b6d0720c 10736cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7083c021
AC
10737 for (key in S) S_is_set[key] = 1
10738 FS = "\a"
212380e3 10739
7083c021
AC
10740}
10741{
10742 line = $ 0
10743 nfields = split(line, field, "@")
10744 substed = 0
10745 len = length(field[1])
10746 for (i = 2; i < nfields; i++) {
10747 key = field[i]
10748 keylen = length(key)
10749 if (S_is_set[key]) {
10750 value = S[key]
10751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10752 len += length(value) + length(field[++i])
10753 substed = 1
10754 } else
10755 len += 1 + keylen
10756 }
631ef239 10757
7083c021
AC
10758 print line
10759}
10760
10761_ACAWK
631ef239 10762_ACEOF
7083c021
AC
10763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10764if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10766else
10767 cat
b6d0720c
AC
10768fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
212380e3 10770_ACEOF
631ef239 10771
b6d0720c
AC
10772# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10773# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
631ef239
AC
10774# trailing colons and then remove the whole line if VPATH becomes empty
10775# (actually we leave an empty line to preserve line numbers).
10776if test "x$srcdir" = x.; then
b6d0720c
AC
10777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10778h
10779s///
10780s/^/:/
10781s/[ ]*$/:/
10782s/:\$(srcdir):/:/g
10783s/:\${srcdir}:/:/g
10784s/:@srcdir@:/:/g
10785s/^:*//
631ef239 10786s/:*$//
b6d0720c
AC
10787x
10788s/\(=[ ]*\).*/\1/
10789G
10790s/\n//
631ef239
AC
10791s/^[^=]*=[ ]*$//
10792}'
10793fi
10794
7083c021 10795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
10796fi # test -n "$CONFIG_FILES"
10797
7083c021
AC
10798# Set up the scripts for CONFIG_HEADERS section.
10799# No need to generate them if there are no CONFIG_HEADERS.
10800# This happens for instance with `./config.status Makefile'.
10801if test -n "$CONFIG_HEADERS"; then
b6d0720c 10802cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7083c021
AC
10803BEGIN {
10804_ACEOF
10805
10806# Transform confdefs.h into an awk script `defines.awk', embedded as
10807# here-document in config.status, that substitutes the proper values into
10808# config.h.in to produce config.h.
10809
10810# Create a delimiter string that does not exist in confdefs.h, to ease
10811# handling of long lines.
10812ac_delim='%!_!# '
10813for ac_last_try in false false :; do
b6d0720c
AC
10814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10815 if test -z "$ac_tt"; then
7083c021
AC
10816 break
10817 elif $ac_last_try; then
b6d0720c 10818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7083c021
AC
10819 else
10820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10821 fi
10822done
10823
10824# For the awk script, D is an array of macro values keyed by name,
10825# likewise P contains macro parameters if any. Preserve backslash
10826# newline sequences.
10827
10828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10829sed -n '
10830s/.\{148\}/&'"$ac_delim"'/g
10831t rset
10832:rset
10833s/^[ ]*#[ ]*define[ ][ ]*/ /
10834t def
10835d
10836:def
10837s/\\$//
10838t bsnl
10839s/["\\]/\\&/g
10840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10841D["\1"]=" \3"/p
10842s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10843d
10844:bsnl
10845s/["\\]/\\&/g
10846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10847D["\1"]=" \3\\\\\\n"\\/p
10848t cont
10849s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10850t cont
10851d
10852:cont
10853n
10854s/.\{148\}/&'"$ac_delim"'/g
10855t clear
10856:clear
10857s/\\$//
10858t bsnlc
10859s/["\\]/\\&/g; s/^/"/; s/$/"/p
10860d
10861:bsnlc
10862s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10863b cont
10864' <confdefs.h | sed '
10865s/'"$ac_delim"'/"\\\
10866"/g' >>$CONFIG_STATUS || ac_write_fail=1
10867
10868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10869 for (key in D) D_is_set[key] = 1
10870 FS = "\a"
10871}
10872/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10873 line = \$ 0
10874 split(line, arg, " ")
10875 if (arg[1] == "#") {
10876 defundef = arg[2]
10877 mac1 = arg[3]
10878 } else {
10879 defundef = substr(arg[1], 2)
10880 mac1 = arg[2]
10881 }
10882 split(mac1, mac2, "(") #)
10883 macro = mac2[1]
10884 prefix = substr(line, 1, index(line, defundef) - 1)
10885 if (D_is_set[macro]) {
10886 # Preserve the white space surrounding the "#".
10887 print prefix "define", macro P[macro] D[macro]
10888 next
10889 } else {
10890 # Replace #undef with comments. This is necessary, for example,
10891 # in the case of _POSIX_SOURCE, which is predefined and required
10892 # on some systems where configure will not decide to define it.
10893 if (defundef == "undef") {
10894 print "/*", prefix defundef, macro, "*/"
10895 next
10896 }
10897 }
10898}
10899{ print }
10900_ACAWK
10901_ACEOF
10902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b6d0720c 10903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7083c021
AC
10904fi # test -n "$CONFIG_HEADERS"
10905
631ef239 10906
9f9b7042 10907eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7083c021
AC
10908shift
10909for ac_tag
631ef239
AC
10910do
10911 case $ac_tag in
10912 :[FHLC]) ac_mode=$ac_tag; continue;;
10913 esac
10914 case $ac_mode$ac_tag in
10915 :[FHL]*:*);;
b6d0720c 10916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
631ef239
AC
10917 :[FH]-) ac_tag=-:-;;
10918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 10919 esac
631ef239
AC
10920 ac_save_IFS=$IFS
10921 IFS=:
10922 set x $ac_tag
10923 IFS=$ac_save_IFS
10924 shift
10925 ac_file=$1
10926 shift
212380e3 10927
631ef239
AC
10928 case $ac_mode in
10929 :L) ac_source=$1;;
10930 :[FH])
10931 ac_file_inputs=
10932 for ac_f
10933 do
10934 case $ac_f in
b6d0720c 10935 -) ac_f="$ac_tmp/stdin";;
631ef239
AC
10936 *) # Look for the file first in the build tree, then in the source tree
10937 # (if the path is not absolute). The absolute path cannot be DOS-style,
10938 # because $ac_f cannot contain `:'.
10939 test -f "$ac_f" ||
10940 case $ac_f in
10941 [\\/$]*) false;;
10942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10943 esac ||
b6d0720c 10944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
631ef239 10945 esac
7083c021
AC
10946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10947 as_fn_append ac_file_inputs " '$ac_f'"
631ef239
AC
10948 done
10949
10950 # Let's still pretend it is `configure' which instantiates (i.e., don't
10951 # use $as_me), people would be surprised to read:
10952 # /* config.h. Generated by config.status. */
7083c021
AC
10953 configure_input='Generated from '`
10954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10955 `' by configure.'
631ef239
AC
10956 if test x"$ac_file" != x-; then
10957 configure_input="$ac_file. $configure_input"
7083c021
AC
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10959$as_echo "$as_me: creating $ac_file" >&6;}
631ef239 10960 fi
7083c021
AC
10961 # Neutralize special characters interpreted by sed in replacement strings.
10962 case $configure_input in #(
10963 *\&* | *\|* | *\\* )
10964 ac_sed_conf_input=`$as_echo "$configure_input" |
10965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10966 *) ac_sed_conf_input=$configure_input;;
10967 esac
631ef239
AC
10968
10969 case $ac_tag in
b6d0720c
AC
10970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
631ef239
AC
10972 esac
10973 ;;
10974 esac
10975
10976 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
10977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10978 X"$ac_file" : 'X\(//\)[^/]' \| \
10979 X"$ac_file" : 'X\(//\)$' \| \
631ef239 10980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7083c021 10981$as_echo X"$ac_file" |
631ef239
AC
10982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10983 s//\1/
10984 q
10985 }
10986 /^X\(\/\/\)[^/].*/{
10987 s//\1/
10988 q
10989 }
10990 /^X\(\/\/\)$/{
10991 s//\1/
10992 q
10993 }
10994 /^X\(\/\).*/{
10995 s//\1/
10996 q
10997 }
10998 s/.*/./; q'`
7083c021 10999 as_dir="$ac_dir"; as_fn_mkdir_p
212380e3
AC
11000 ac_builddir=.
11001
631ef239
AC
11002case "$ac_dir" in
11003.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11004*)
7083c021 11005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
631ef239 11006 # A ".." for each directory in $ac_dir_suffix.
7083c021 11007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
631ef239
AC
11008 case $ac_top_builddir_sub in
11009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11011 esac ;;
11012esac
11013ac_abs_top_builddir=$ac_pwd
11014ac_abs_builddir=$ac_pwd$ac_dir_suffix
11015# for backward compatibility:
11016ac_top_builddir=$ac_top_build_prefix
212380e3
AC
11017
11018case $srcdir in
631ef239 11019 .) # We are building in place.
212380e3 11020 ac_srcdir=.
631ef239
AC
11021 ac_top_srcdir=$ac_top_builddir_sub
11022 ac_abs_top_srcdir=$ac_pwd ;;
11023 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 11024 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
11025 ac_top_srcdir=$srcdir
11026 ac_abs_top_srcdir=$srcdir ;;
11027 *) # Relative name.
11028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11029 ac_top_srcdir=$ac_top_build_prefix$srcdir
11030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 11031esac
631ef239 11032ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 11033
212380e3 11034
631ef239
AC
11035 case $ac_mode in
11036 :F)
11037 #
11038 # CONFIG_FILE
11039 #
212380e3
AC
11040
11041 case $INSTALL in
11042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 11043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 11044 esac
631ef239 11045_ACEOF
212380e3 11046
7083c021 11047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
631ef239
AC
11048# If the template does not know about datarootdir, expand it.
11049# FIXME: This hack should be removed a few years after 2.60.
11050ac_datarootdir_hack=; ac_datarootdir_seen=
7083c021
AC
11051ac_sed_dataroot='
11052/datarootdir/ {
631ef239
AC
11053 p
11054 q
11055}
11056/@datadir@/p
11057/@docdir@/p
11058/@infodir@/p
11059/@localedir@/p
7083c021
AC
11060/@mandir@/p'
11061case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
631ef239
AC
11062*datarootdir*) ac_datarootdir_seen=yes;;
11063*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7083c021
AC
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11065$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
631ef239 11066_ACEOF
7083c021 11067cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
631ef239
AC
11068 ac_datarootdir_hack='
11069 s&@datadir@&$datadir&g
11070 s&@docdir@&$docdir&g
11071 s&@infodir@&$infodir&g
11072 s&@localedir@&$localedir&g
11073 s&@mandir@&$mandir&g
7083c021 11074 s&\\\${datarootdir}&$datarootdir&g' ;;
631ef239 11075esac
212380e3 11076_ACEOF
631ef239
AC
11077
11078# Neutralize VPATH when `$srcdir' = `.'.
11079# Shell code in configure.ac might set extrasub.
11080# FIXME: do we really want to maintain this feature?
7083c021
AC
11081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11082ac_sed_extra="$ac_vpsub
212380e3
AC
11083$extrasub
11084_ACEOF
7083c021 11085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
212380e3
AC
11086:t
11087/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7083c021 11088s|@configure_input@|$ac_sed_conf_input|;t t
631ef239 11089s&@top_builddir@&$ac_top_builddir_sub&;t t
7083c021 11090s&@top_build_prefix@&$ac_top_build_prefix&;t t
631ef239
AC
11091s&@srcdir@&$ac_srcdir&;t t
11092s&@abs_srcdir@&$ac_abs_srcdir&;t t
11093s&@top_srcdir@&$ac_top_srcdir&;t t
11094s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11095s&@builddir@&$ac_builddir&;t t
11096s&@abs_builddir@&$ac_abs_builddir&;t t
11097s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11098s&@INSTALL@&$ac_INSTALL&;t t
11099$ac_datarootdir_hack
7083c021 11100"
b6d0720c
AC
11101eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11102 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
11103
11104test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
b6d0720c
AC
11105 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11107 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7083c021 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 11109which seems to be undefined. Please make sure it is defined" >&5
7083c021 11110$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
b6d0720c 11111which seems to be undefined. Please make sure it is defined" >&2;}
631ef239 11112
b6d0720c 11113 rm -f "$ac_tmp/stdin"
212380e3 11114 case $ac_file in
b6d0720c
AC
11115 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11116 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7083c021 11117 esac \
b6d0720c 11118 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
631ef239
AC
11119 ;;
11120 :H)
11121 #
11122 # CONFIG_HEADER
11123 #
212380e3 11124 if test x"$ac_file" != x-; then
7083c021
AC
11125 {
11126 $as_echo "/* $configure_input */" \
b6d0720c
AC
11127 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11128 } >"$ac_tmp/config.h" \
11129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11130 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7083c021
AC
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11132$as_echo "$as_me: $ac_file is unchanged" >&6;}
212380e3 11133 else
7083c021 11134 rm -f "$ac_file"
b6d0720c
AC
11135 mv "$ac_tmp/config.h" "$ac_file" \
11136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
212380e3
AC
11137 fi
11138 else
7083c021 11139 $as_echo "/* $configure_input */" \
b6d0720c
AC
11140 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11141 || as_fn_error $? "could not create -" "$LINENO" 5
212380e3 11142 fi
631ef239
AC
11143 ;;
11144
9f9b7042
NPB
11145 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11146$as_echo "$as_me: executing $ac_file commands" >&6;}
11147 ;;
631ef239
AC
11148 esac
11149
9f9b7042
NPB
11150
11151 case $ac_file$ac_mode in
2eff3833 11152 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
9f9b7042
NPB
11153
11154 esac
631ef239 11155done # for ac_tag
212380e3 11156
212380e3 11157
7083c021 11158as_fn_exit 0
212380e3 11159_ACEOF
212380e3
AC
11160ac_clean_files=$ac_clean_files_save
11161
7083c021 11162test $ac_write_fail = 0 ||
b6d0720c 11163 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7083c021 11164
212380e3
AC
11165
11166# configure is writing to config.log, and then calls config.status.
11167# config.status does its own redirection, appending to config.log.
11168# Unfortunately, on DOS this fails, as config.log is still kept open
11169# by configure, so config.status won't be able to write to it; its
11170# output is simply discarded. So we exec the FD to /dev/null,
11171# effectively closing config.log, so it can be properly (re)opened and
11172# appended to by config.status. When coming back to configure, we
11173# need to make the FD available again.
11174if test "$no_create" != yes; then
11175 ac_cs_success=:
11176 ac_config_status_args=
11177 test "$silent" = yes &&
11178 ac_config_status_args="$ac_config_status_args --quiet"
11179 exec 5>/dev/null
11180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11181 exec 5>>config.log
11182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11183 # would make configure fail if this is the last instruction.
b6d0720c 11184 $ac_cs_success || as_fn_exit 1
212380e3 11185fi
7083c021
AC
11186if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11188$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11189fi
b676ea3b 11190
212380e3
AC
11191
11192if test "$cf_openssl_version_ok" = yes; then
11193 openssl="yes"
11194else
11195 openssl="no"
11196fi
11197
11198if test "$shared_modules" = yes; then
11199 modules=shared
11200else
11201 modules=static
11202fi
11203
11204echo "
b6d0720c 11205Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
212380e3
AC
11206 Install directory : $prefix
11207
11208 Ziplinks : $zlib
11209 OpenSSL : $openssl
212380e3
AC
11210 Socket Engine : $SELECT_TYPE
11211 Small network : $small_net
11212 Block allocator : $balloc
212380e3
AC
11213
11214 Nickname length : $NICKLEN
11215 Topic length : $TOPICLEN
11216
b6d0720c 11217Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.
212380e3 11218"