1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.61 for ircd-hybrid 7.3. |
4 |
# |
5 |
# $Id$ |
6 |
# |
7 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 |
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## --------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## --------------------- ## |
14 |
|
15 |
# Be more Bourne compatible |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 |
emulate sh |
19 |
NULLCMD=: |
20 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 |
# is contrary to our usage. Disable this feature. |
22 |
alias -g '${1+"$@"}'='"$@"' |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
25 |
case `(set -o) 2>/dev/null` in |
26 |
*posix*) set -o posix ;; |
27 |
esac |
28 |
|
29 |
fi |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
# PATH needs CR |
35 |
# Avoid depending upon Character Ranges. |
36 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 |
as_cr_digits='0123456789' |
40 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 |
|
42 |
# The user is always right. |
43 |
if test "${PATH_SEPARATOR+set}" != set; then |
44 |
echo "#! /bin/sh" >conf$$.sh |
45 |
echo "exit 0" >>conf$$.sh |
46 |
chmod +x conf$$.sh |
47 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 |
PATH_SEPARATOR=';' |
49 |
else |
50 |
PATH_SEPARATOR=: |
51 |
fi |
52 |
rm -f conf$$.sh |
53 |
fi |
54 |
|
55 |
# Support unset when possible. |
56 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 |
as_unset=unset |
58 |
else |
59 |
as_unset=false |
60 |
fi |
61 |
|
62 |
|
63 |
# IFS |
64 |
# We need space, tab and new line, in precisely that order. Quoting is |
65 |
# there to prevent editors from complaining about space-tab. |
66 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 |
# splitting by setting IFS to empty value.) |
68 |
as_nl=' |
69 |
' |
70 |
IFS=" "" $as_nl" |
71 |
|
72 |
# Find who we are. Look in the path if we contain no directory separator. |
73 |
case $0 in |
74 |
*[\\/]* ) as_myself=$0 ;; |
75 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 |
for as_dir in $PATH |
77 |
do |
78 |
IFS=$as_save_IFS |
79 |
test -z "$as_dir" && as_dir=. |
80 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 |
done |
82 |
IFS=$as_save_IFS |
83 |
|
84 |
;; |
85 |
esac |
86 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
87 |
# in which case we are not to be found in the path. |
88 |
if test "x$as_myself" = x; then |
89 |
as_myself=$0 |
90 |
fi |
91 |
if test ! -f "$as_myself"; then |
92 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 |
{ (exit 1); exit 1; } |
94 |
fi |
95 |
|
96 |
# Work around bugs in pre-3.0 UWIN ksh. |
97 |
for as_var in ENV MAIL MAILPATH |
98 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 |
done |
100 |
PS1='$ ' |
101 |
PS2='> ' |
102 |
PS4='+ ' |
103 |
|
104 |
# NLS nuisances. |
105 |
for as_var in \ |
106 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 |
LC_TELEPHONE LC_TIME |
109 |
do |
110 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 |
eval $as_var=C; export $as_var |
112 |
else |
113 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
114 |
fi |
115 |
done |
116 |
|
117 |
# Required to use basename. |
118 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
119 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
120 |
as_expr=expr |
121 |
else |
122 |
as_expr=false |
123 |
fi |
124 |
|
125 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
126 |
as_basename=basename |
127 |
else |
128 |
as_basename=false |
129 |
fi |
130 |
|
131 |
|
132 |
# Name of the executable. |
133 |
as_me=`$as_basename -- "$0" || |
134 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 |
X"$0" : 'X\(//\)$' \| \ |
136 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
137 |
echo X/"$0" | |
138 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 |
s//\1/ |
140 |
q |
141 |
} |
142 |
/^X\/\(\/\/\)$/{ |
143 |
s//\1/ |
144 |
q |
145 |
} |
146 |
/^X\/\(\/\).*/{ |
147 |
s//\1/ |
148 |
q |
149 |
} |
150 |
s/.*/./; q'` |
151 |
|
152 |
# CDPATH. |
153 |
$as_unset CDPATH |
154 |
|
155 |
|
156 |
if test "x$CONFIG_SHELL" = x; then |
157 |
if (eval ":") 2>/dev/null; then |
158 |
as_have_required=yes |
159 |
else |
160 |
as_have_required=no |
161 |
fi |
162 |
|
163 |
if test $as_have_required = yes && (eval ": |
164 |
(as_func_return () { |
165 |
(exit \$1) |
166 |
} |
167 |
as_func_success () { |
168 |
as_func_return 0 |
169 |
} |
170 |
as_func_failure () { |
171 |
as_func_return 1 |
172 |
} |
173 |
as_func_ret_success () { |
174 |
return 0 |
175 |
} |
176 |
as_func_ret_failure () { |
177 |
return 1 |
178 |
} |
179 |
|
180 |
exitcode=0 |
181 |
if as_func_success; then |
182 |
: |
183 |
else |
184 |
exitcode=1 |
185 |
echo as_func_success failed. |
186 |
fi |
187 |
|
188 |
if as_func_failure; then |
189 |
exitcode=1 |
190 |
echo as_func_failure succeeded. |
191 |
fi |
192 |
|
193 |
if as_func_ret_success; then |
194 |
: |
195 |
else |
196 |
exitcode=1 |
197 |
echo as_func_ret_success failed. |
198 |
fi |
199 |
|
200 |
if as_func_ret_failure; then |
201 |
exitcode=1 |
202 |
echo as_func_ret_failure succeeded. |
203 |
fi |
204 |
|
205 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 |
: |
207 |
else |
208 |
exitcode=1 |
209 |
echo positional parameters were not saved. |
210 |
fi |
211 |
|
212 |
test \$exitcode = 0) || { (exit 1); exit 1; } |
213 |
|
214 |
( |
215 |
as_lineno_1=\$LINENO |
216 |
as_lineno_2=\$LINENO |
217 |
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 |
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 |
") 2> /dev/null; then |
220 |
: |
221 |
else |
222 |
as_candidate_shells= |
223 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 |
do |
226 |
IFS=$as_save_IFS |
227 |
test -z "$as_dir" && as_dir=. |
228 |
case $as_dir in |
229 |
/*) |
230 |
for as_base in sh bash ksh sh5; do |
231 |
as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 |
done;; |
233 |
esac |
234 |
done |
235 |
IFS=$as_save_IFS |
236 |
|
237 |
|
238 |
for as_shell in $as_candidate_shells $SHELL; do |
239 |
# Try only shells that exist, to save several forks. |
240 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 |
{ ("$as_shell") 2> /dev/null <<\_ASEOF |
242 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 |
emulate sh |
244 |
NULLCMD=: |
245 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 |
# is contrary to our usage. Disable this feature. |
247 |
alias -g '${1+"$@"}'='"$@"' |
248 |
setopt NO_GLOB_SUBST |
249 |
else |
250 |
case `(set -o) 2>/dev/null` in |
251 |
*posix*) set -o posix ;; |
252 |
esac |
253 |
|
254 |
fi |
255 |
|
256 |
|
257 |
: |
258 |
_ASEOF |
259 |
}; then |
260 |
CONFIG_SHELL=$as_shell |
261 |
as_have_required=yes |
262 |
if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 |
emulate sh |
265 |
NULLCMD=: |
266 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 |
# is contrary to our usage. Disable this feature. |
268 |
alias -g '${1+"$@"}'='"$@"' |
269 |
setopt NO_GLOB_SUBST |
270 |
else |
271 |
case `(set -o) 2>/dev/null` in |
272 |
*posix*) set -o posix ;; |
273 |
esac |
274 |
|
275 |
fi |
276 |
|
277 |
|
278 |
: |
279 |
(as_func_return () { |
280 |
(exit $1) |
281 |
} |
282 |
as_func_success () { |
283 |
as_func_return 0 |
284 |
} |
285 |
as_func_failure () { |
286 |
as_func_return 1 |
287 |
} |
288 |
as_func_ret_success () { |
289 |
return 0 |
290 |
} |
291 |
as_func_ret_failure () { |
292 |
return 1 |
293 |
} |
294 |
|
295 |
exitcode=0 |
296 |
if as_func_success; then |
297 |
: |
298 |
else |
299 |
exitcode=1 |
300 |
echo as_func_success failed. |
301 |
fi |
302 |
|
303 |
if as_func_failure; then |
304 |
exitcode=1 |
305 |
echo as_func_failure succeeded. |
306 |
fi |
307 |
|
308 |
if as_func_ret_success; then |
309 |
: |
310 |
else |
311 |
exitcode=1 |
312 |
echo as_func_ret_success failed. |
313 |
fi |
314 |
|
315 |
if as_func_ret_failure; then |
316 |
exitcode=1 |
317 |
echo as_func_ret_failure succeeded. |
318 |
fi |
319 |
|
320 |
if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 |
: |
322 |
else |
323 |
exitcode=1 |
324 |
echo positional parameters were not saved. |
325 |
fi |
326 |
|
327 |
test $exitcode = 0) || { (exit 1); exit 1; } |
328 |
|
329 |
( |
330 |
as_lineno_1=$LINENO |
331 |
as_lineno_2=$LINENO |
332 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
333 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 |
|
335 |
_ASEOF |
336 |
}; then |
337 |
break |
338 |
fi |
339 |
|
340 |
fi |
341 |
|
342 |
done |
343 |
|
344 |
if test "x$CONFIG_SHELL" != x; then |
345 |
for as_var in BASH_ENV ENV |
346 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 |
done |
348 |
export CONFIG_SHELL |
349 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 |
fi |
351 |
|
352 |
|
353 |
if test $as_have_required = no; then |
354 |
echo This script requires a shell more modern than all the |
355 |
echo shells that I found on your system. Please install a |
356 |
echo modern shell, or manually run the script under such a |
357 |
echo shell if you do have one. |
358 |
{ (exit 1); exit 1; } |
359 |
fi |
360 |
|
361 |
|
362 |
fi |
363 |
|
364 |
fi |
365 |
|
366 |
|
367 |
|
368 |
(eval "as_func_return () { |
369 |
(exit \$1) |
370 |
} |
371 |
as_func_success () { |
372 |
as_func_return 0 |
373 |
} |
374 |
as_func_failure () { |
375 |
as_func_return 1 |
376 |
} |
377 |
as_func_ret_success () { |
378 |
return 0 |
379 |
} |
380 |
as_func_ret_failure () { |
381 |
return 1 |
382 |
} |
383 |
|
384 |
exitcode=0 |
385 |
if as_func_success; then |
386 |
: |
387 |
else |
388 |
exitcode=1 |
389 |
echo as_func_success failed. |
390 |
fi |
391 |
|
392 |
if as_func_failure; then |
393 |
exitcode=1 |
394 |
echo as_func_failure succeeded. |
395 |
fi |
396 |
|
397 |
if as_func_ret_success; then |
398 |
: |
399 |
else |
400 |
exitcode=1 |
401 |
echo as_func_ret_success failed. |
402 |
fi |
403 |
|
404 |
if as_func_ret_failure; then |
405 |
exitcode=1 |
406 |
echo as_func_ret_failure succeeded. |
407 |
fi |
408 |
|
409 |
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 |
: |
411 |
else |
412 |
exitcode=1 |
413 |
echo positional parameters were not saved. |
414 |
fi |
415 |
|
416 |
test \$exitcode = 0") || { |
417 |
echo No shell found that supports shell functions. |
418 |
echo Please tell autoconf@gnu.org about your system, |
419 |
echo including any error possibly output before this |
420 |
echo message |
421 |
} |
422 |
|
423 |
|
424 |
|
425 |
as_lineno_1=$LINENO |
426 |
as_lineno_2=$LINENO |
427 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
428 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
429 |
|
430 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 |
# uniformly replaced by the line number. The first 'sed' inserts a |
432 |
# line-number line after each line using $LINENO; the second 'sed' |
433 |
# does the real work. The second script uses 'N' to pair each |
434 |
# line-number line with the line containing $LINENO, and appends |
435 |
# trailing '-' during substitution so that $LINENO is not a special |
436 |
# case at line end. |
437 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
438 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
439 |
# E. McMahon (1931-1989) for sed's syntax. :-) |
440 |
sed -n ' |
441 |
p |
442 |
/[$]LINENO/= |
443 |
' <$as_myself | |
444 |
sed ' |
445 |
s/[$]LINENO.*/&-/ |
446 |
t lineno |
447 |
b |
448 |
:lineno |
449 |
N |
450 |
:loop |
451 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
452 |
t loop |
453 |
s/-\n.*// |
454 |
' >$as_me.lineno && |
455 |
chmod +x "$as_me.lineno" || |
456 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 |
{ (exit 1); exit 1; }; } |
458 |
|
459 |
# Don't try to exec as it changes $[0], causing all sort of problems |
460 |
# (the dirname of $[0] is not the place where we might find the |
461 |
# original and so on. Autoconf is especially sensitive to this). |
462 |
. "./$as_me.lineno" |
463 |
# Exit status is that of the last command. |
464 |
exit |
465 |
} |
466 |
|
467 |
|
468 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 |
as_dirname=dirname |
470 |
else |
471 |
as_dirname=false |
472 |
fi |
473 |
|
474 |
ECHO_C= ECHO_N= ECHO_T= |
475 |
case `echo -n x` in |
476 |
-n*) |
477 |
case `echo 'x\c'` in |
478 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 |
*) ECHO_C='\c';; |
480 |
esac;; |
481 |
*) |
482 |
ECHO_N='-n';; |
483 |
esac |
484 |
|
485 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
486 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
487 |
as_expr=expr |
488 |
else |
489 |
as_expr=false |
490 |
fi |
491 |
|
492 |
rm -f conf$$ conf$$.exe conf$$.file |
493 |
if test -d conf$$.dir; then |
494 |
rm -f conf$$.dir/conf$$.file |
495 |
else |
496 |
rm -f conf$$.dir |
497 |
mkdir conf$$.dir |
498 |
fi |
499 |
echo >conf$$.file |
500 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
501 |
as_ln_s='ln -s' |
502 |
# ... but there are two gotchas: |
503 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 |
# In both cases, we have to default to `cp -p'. |
506 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
507 |
as_ln_s='cp -p' |
508 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
509 |
as_ln_s=ln |
510 |
else |
511 |
as_ln_s='cp -p' |
512 |
fi |
513 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 |
rmdir conf$$.dir 2>/dev/null |
515 |
|
516 |
if mkdir -p . 2>/dev/null; then |
517 |
as_mkdir_p=: |
518 |
else |
519 |
test -d ./-p && rmdir ./-p |
520 |
as_mkdir_p=false |
521 |
fi |
522 |
|
523 |
if test -x / >/dev/null 2>&1; then |
524 |
as_test_x='test -x' |
525 |
else |
526 |
if ls -dL / >/dev/null 2>&1; then |
527 |
as_ls_L_option=L |
528 |
else |
529 |
as_ls_L_option= |
530 |
fi |
531 |
as_test_x=' |
532 |
eval sh -c '\'' |
533 |
if test -d "$1"; then |
534 |
test -d "$1/."; |
535 |
else |
536 |
case $1 in |
537 |
-*)set "./$1";; |
538 |
esac; |
539 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 |
???[sx]*):;;*)false;;esac;fi |
541 |
'\'' sh |
542 |
' |
543 |
fi |
544 |
as_executable_p=$as_test_x |
545 |
|
546 |
# Sed expression to map a string onto a valid CPP name. |
547 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 |
|
549 |
# Sed expression to map a string onto a valid variable name. |
550 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 |
|
552 |
|
553 |
|
554 |
exec 7<&0 </dev/null 6>&1 |
555 |
|
556 |
# Name of the host. |
557 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
558 |
# so uname gets run too. |
559 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
560 |
|
561 |
# |
562 |
# Initializations. |
563 |
# |
564 |
ac_default_prefix=/usr/local |
565 |
ac_clean_files= |
566 |
ac_config_libobj_dir=. |
567 |
LIBOBJS= |
568 |
cross_compiling=no |
569 |
subdirs= |
570 |
MFLAGS= |
571 |
MAKEFLAGS= |
572 |
SHELL=${CONFIG_SHELL-/bin/sh} |
573 |
|
574 |
# Identity of this package. |
575 |
PACKAGE_NAME='ircd-hybrid' |
576 |
PACKAGE_TARNAME='ircd-hybrid' |
577 |
PACKAGE_VERSION='7.3' |
578 |
PACKAGE_STRING='ircd-hybrid 7.3' |
579 |
PACKAGE_BUGREPORT='' |
580 |
|
581 |
ac_default_prefix=/usr/local/ircd |
582 |
# Factoring default headers for most tests. |
583 |
ac_includes_default="\ |
584 |
#include <stdio.h> |
585 |
#ifdef HAVE_SYS_TYPES_H |
586 |
# include <sys/types.h> |
587 |
#endif |
588 |
#ifdef HAVE_SYS_STAT_H |
589 |
# include <sys/stat.h> |
590 |
#endif |
591 |
#ifdef STDC_HEADERS |
592 |
# include <stdlib.h> |
593 |
# include <stddef.h> |
594 |
#else |
595 |
# ifdef HAVE_STDLIB_H |
596 |
# include <stdlib.h> |
597 |
# endif |
598 |
#endif |
599 |
#ifdef HAVE_STRING_H |
600 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
601 |
# include <memory.h> |
602 |
# endif |
603 |
# include <string.h> |
604 |
#endif |
605 |
#ifdef HAVE_STRINGS_H |
606 |
# include <strings.h> |
607 |
#endif |
608 |
#ifdef HAVE_INTTYPES_H |
609 |
# include <inttypes.h> |
610 |
#endif |
611 |
#ifdef HAVE_STDINT_H |
612 |
# include <stdint.h> |
613 |
#endif |
614 |
#ifdef HAVE_UNISTD_H |
615 |
# include <unistd.h> |
616 |
#endif" |
617 |
|
618 |
ac_subst_vars='SHELL |
619 |
PATH_SEPARATOR |
620 |
PACKAGE_NAME |
621 |
PACKAGE_TARNAME |
622 |
PACKAGE_VERSION |
623 |
PACKAGE_STRING |
624 |
PACKAGE_BUGREPORT |
625 |
exec_prefix |
626 |
prefix |
627 |
program_transform_name |
628 |
bindir |
629 |
sbindir |
630 |
libexecdir |
631 |
datarootdir |
632 |
datadir |
633 |
sysconfdir |
634 |
sharedstatedir |
635 |
localstatedir |
636 |
includedir |
637 |
oldincludedir |
638 |
docdir |
639 |
infodir |
640 |
htmldir |
641 |
dvidir |
642 |
pdfdir |
643 |
psdir |
644 |
libdir |
645 |
localedir |
646 |
mandir |
647 |
DEFS |
648 |
ECHO_C |
649 |
ECHO_N |
650 |
ECHO_T |
651 |
LIBS |
652 |
build_alias |
653 |
host_alias |
654 |
target_alias |
655 |
CC |
656 |
CFLAGS |
657 |
LDFLAGS |
658 |
CPPFLAGS |
659 |
ac_ct_CC |
660 |
EXEEXT |
661 |
OBJEXT |
662 |
MKDEP |
663 |
MAKEDEPEND |
664 |
STDOUT |
665 |
CPP |
666 |
GREP |
667 |
EGREP |
668 |
SET_MAKE |
669 |
INSTALL_PROGRAM |
670 |
INSTALL_SCRIPT |
671 |
INSTALL_DATA |
672 |
RM |
673 |
CP |
674 |
MV |
675 |
LN |
676 |
SED |
677 |
AR |
678 |
LD |
679 |
TEST |
680 |
INET_MISC |
681 |
CRYPT_C |
682 |
CRYPT_LIB |
683 |
SNPRINTF_C |
684 |
ENCSPEED |
685 |
ZLIB_LD |
686 |
SELECT_TYPE |
687 |
CLOBBER |
688 |
BALLOC_C |
689 |
EXAMPLE_CONF |
690 |
MODULES_LIBS |
691 |
MOD_TARGET |
692 |
SSL_SRCS_ENABLE |
693 |
SSL_INCLUDES |
694 |
SSL_LIBS |
695 |
PICFLAGS |
696 |
IRC_CFLAGS |
697 |
SEDOBJ |
698 |
DYNLINK_C |
699 |
LIBOBJS |
700 |
LTLIBOBJS' |
701 |
ac_subst_files='' |
702 |
ac_precious_vars='build_alias |
703 |
host_alias |
704 |
target_alias |
705 |
CC |
706 |
CFLAGS |
707 |
LDFLAGS |
708 |
LIBS |
709 |
CPPFLAGS |
710 |
CPP' |
711 |
|
712 |
|
713 |
# Initialize some variables set by options. |
714 |
ac_init_help= |
715 |
ac_init_version=false |
716 |
# The variables have the same names as the options, with |
717 |
# dashes changed to underlines. |
718 |
cache_file=/dev/null |
719 |
exec_prefix=NONE |
720 |
no_create= |
721 |
no_recursion= |
722 |
prefix=NONE |
723 |
program_prefix=NONE |
724 |
program_suffix=NONE |
725 |
program_transform_name=s,x,x, |
726 |
silent= |
727 |
site= |
728 |
srcdir= |
729 |
verbose= |
730 |
x_includes=NONE |
731 |
x_libraries=NONE |
732 |
|
733 |
# Installation directory options. |
734 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
735 |
# and all the variables that are supposed to be based on exec_prefix |
736 |
# by default will actually change. |
737 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
738 |
# (The list follows the same order as the GNU Coding Standards.) |
739 |
bindir='${exec_prefix}/bin' |
740 |
sbindir='${exec_prefix}/sbin' |
741 |
libexecdir='${exec_prefix}/libexec' |
742 |
datarootdir='${prefix}/share' |
743 |
datadir='${datarootdir}' |
744 |
sysconfdir='${prefix}/etc' |
745 |
sharedstatedir='${prefix}/com' |
746 |
localstatedir='${prefix}/var' |
747 |
includedir='${prefix}/include' |
748 |
oldincludedir='/usr/include' |
749 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
750 |
infodir='${datarootdir}/info' |
751 |
htmldir='${docdir}' |
752 |
dvidir='${docdir}' |
753 |
pdfdir='${docdir}' |
754 |
psdir='${docdir}' |
755 |
libdir='${exec_prefix}/lib' |
756 |
localedir='${datarootdir}/locale' |
757 |
mandir='${datarootdir}/man' |
758 |
|
759 |
ac_prev= |
760 |
ac_dashdash= |
761 |
for ac_option |
762 |
do |
763 |
# If the previous option needs an argument, assign it. |
764 |
if test -n "$ac_prev"; then |
765 |
eval $ac_prev=\$ac_option |
766 |
ac_prev= |
767 |
continue |
768 |
fi |
769 |
|
770 |
case $ac_option in |
771 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
772 |
*) ac_optarg=yes ;; |
773 |
esac |
774 |
|
775 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
776 |
|
777 |
case $ac_dashdash$ac_option in |
778 |
--) |
779 |
ac_dashdash=yes ;; |
780 |
|
781 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
782 |
ac_prev=bindir ;; |
783 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
784 |
bindir=$ac_optarg ;; |
785 |
|
786 |
-build | --build | --buil | --bui | --bu) |
787 |
ac_prev=build_alias ;; |
788 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
789 |
build_alias=$ac_optarg ;; |
790 |
|
791 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
792 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
793 |
ac_prev=cache_file ;; |
794 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
795 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
796 |
cache_file=$ac_optarg ;; |
797 |
|
798 |
--config-cache | -C) |
799 |
cache_file=config.cache ;; |
800 |
|
801 |
-datadir | --datadir | --datadi | --datad) |
802 |
ac_prev=datadir ;; |
803 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
804 |
datadir=$ac_optarg ;; |
805 |
|
806 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
807 |
| --dataroo | --dataro | --datar) |
808 |
ac_prev=datarootdir ;; |
809 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
810 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
811 |
datarootdir=$ac_optarg ;; |
812 |
|
813 |
-disable-* | --disable-*) |
814 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
815 |
# Reject names that are not valid shell variable names. |
816 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
817 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
818 |
{ (exit 1); exit 1; }; } |
819 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
820 |
eval enable_$ac_feature=no ;; |
821 |
|
822 |
-docdir | --docdir | --docdi | --doc | --do) |
823 |
ac_prev=docdir ;; |
824 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
825 |
docdir=$ac_optarg ;; |
826 |
|
827 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
828 |
ac_prev=dvidir ;; |
829 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
830 |
dvidir=$ac_optarg ;; |
831 |
|
832 |
-enable-* | --enable-*) |
833 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
834 |
# Reject names that are not valid shell variable names. |
835 |
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
836 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
837 |
{ (exit 1); exit 1; }; } |
838 |
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
839 |
eval enable_$ac_feature=\$ac_optarg ;; |
840 |
|
841 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
842 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
843 |
| --exec | --exe | --ex) |
844 |
ac_prev=exec_prefix ;; |
845 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
846 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
847 |
| --exec=* | --exe=* | --ex=*) |
848 |
exec_prefix=$ac_optarg ;; |
849 |
|
850 |
-gas | --gas | --ga | --g) |
851 |
# Obsolete; use --with-gas. |
852 |
with_gas=yes ;; |
853 |
|
854 |
-help | --help | --hel | --he | -h) |
855 |
ac_init_help=long ;; |
856 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
857 |
ac_init_help=recursive ;; |
858 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
859 |
ac_init_help=short ;; |
860 |
|
861 |
-host | --host | --hos | --ho) |
862 |
ac_prev=host_alias ;; |
863 |
-host=* | --host=* | --hos=* | --ho=*) |
864 |
host_alias=$ac_optarg ;; |
865 |
|
866 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
867 |
ac_prev=htmldir ;; |
868 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
869 |
| --ht=*) |
870 |
htmldir=$ac_optarg ;; |
871 |
|
872 |
-includedir | --includedir | --includedi | --included | --include \ |
873 |
| --includ | --inclu | --incl | --inc) |
874 |
ac_prev=includedir ;; |
875 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
876 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
877 |
includedir=$ac_optarg ;; |
878 |
|
879 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
880 |
ac_prev=infodir ;; |
881 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
882 |
infodir=$ac_optarg ;; |
883 |
|
884 |
-libdir | --libdir | --libdi | --libd) |
885 |
ac_prev=libdir ;; |
886 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
887 |
libdir=$ac_optarg ;; |
888 |
|
889 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
890 |
| --libexe | --libex | --libe) |
891 |
ac_prev=libexecdir ;; |
892 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
893 |
| --libexe=* | --libex=* | --libe=*) |
894 |
libexecdir=$ac_optarg ;; |
895 |
|
896 |
-localedir | --localedir | --localedi | --localed | --locale) |
897 |
ac_prev=localedir ;; |
898 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
899 |
localedir=$ac_optarg ;; |
900 |
|
901 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
902 |
| --localstate | --localstat | --localsta | --localst | --locals) |
903 |
ac_prev=localstatedir ;; |
904 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
905 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
906 |
localstatedir=$ac_optarg ;; |
907 |
|
908 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
909 |
ac_prev=mandir ;; |
910 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
911 |
mandir=$ac_optarg ;; |
912 |
|
913 |
-nfp | --nfp | --nf) |
914 |
# Obsolete; use --without-fp. |
915 |
with_fp=no ;; |
916 |
|
917 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
918 |
| --no-cr | --no-c | -n) |
919 |
no_create=yes ;; |
920 |
|
921 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
922 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
923 |
no_recursion=yes ;; |
924 |
|
925 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
926 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
927 |
| --oldin | --oldi | --old | --ol | --o) |
928 |
ac_prev=oldincludedir ;; |
929 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
930 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
931 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
932 |
oldincludedir=$ac_optarg ;; |
933 |
|
934 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
935 |
ac_prev=prefix ;; |
936 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
937 |
prefix=$ac_optarg ;; |
938 |
|
939 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
940 |
| --program-pre | --program-pr | --program-p) |
941 |
ac_prev=program_prefix ;; |
942 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
943 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
944 |
program_prefix=$ac_optarg ;; |
945 |
|
946 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
947 |
| --program-suf | --program-su | --program-s) |
948 |
ac_prev=program_suffix ;; |
949 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
950 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
951 |
program_suffix=$ac_optarg ;; |
952 |
|
953 |
-program-transform-name | --program-transform-name \ |
954 |
| --program-transform-nam | --program-transform-na \ |
955 |
| --program-transform-n | --program-transform- \ |
956 |
| --program-transform | --program-transfor \ |
957 |
| --program-transfo | --program-transf \ |
958 |
| --program-trans | --program-tran \ |
959 |
| --progr-tra | --program-tr | --program-t) |
960 |
ac_prev=program_transform_name ;; |
961 |
-program-transform-name=* | --program-transform-name=* \ |
962 |
| --program-transform-nam=* | --program-transform-na=* \ |
963 |
| --program-transform-n=* | --program-transform-=* \ |
964 |
| --program-transform=* | --program-transfor=* \ |
965 |
| --program-transfo=* | --program-transf=* \ |
966 |
| --program-trans=* | --program-tran=* \ |
967 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
968 |
program_transform_name=$ac_optarg ;; |
969 |
|
970 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
971 |
ac_prev=pdfdir ;; |
972 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
973 |
pdfdir=$ac_optarg ;; |
974 |
|
975 |
-psdir | --psdir | --psdi | --psd | --ps) |
976 |
ac_prev=psdir ;; |
977 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
978 |
psdir=$ac_optarg ;; |
979 |
|
980 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
981 |
| -silent | --silent | --silen | --sile | --sil) |
982 |
silent=yes ;; |
983 |
|
984 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
985 |
ac_prev=sbindir ;; |
986 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
987 |
| --sbi=* | --sb=*) |
988 |
sbindir=$ac_optarg ;; |
989 |
|
990 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
991 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
992 |
| --sharedst | --shareds | --shared | --share | --shar \ |
993 |
| --sha | --sh) |
994 |
ac_prev=sharedstatedir ;; |
995 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
996 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
997 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
998 |
| --sha=* | --sh=*) |
999 |
sharedstatedir=$ac_optarg ;; |
1000 |
|
1001 |
-site | --site | --sit) |
1002 |
ac_prev=site ;; |
1003 |
-site=* | --site=* | --sit=*) |
1004 |
site=$ac_optarg ;; |
1005 |
|
1006 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1007 |
ac_prev=srcdir ;; |
1008 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1009 |
srcdir=$ac_optarg ;; |
1010 |
|
1011 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1012 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1013 |
ac_prev=sysconfdir ;; |
1014 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1015 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1016 |
sysconfdir=$ac_optarg ;; |
1017 |
|
1018 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1019 |
ac_prev=target_alias ;; |
1020 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1021 |
target_alias=$ac_optarg ;; |
1022 |
|
1023 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1024 |
verbose=yes ;; |
1025 |
|
1026 |
-version | --version | --versio | --versi | --vers | -V) |
1027 |
ac_init_version=: ;; |
1028 |
|
1029 |
-with-* | --with-*) |
1030 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1031 |
# Reject names that are not valid shell variable names. |
1032 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1033 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1034 |
{ (exit 1); exit 1; }; } |
1035 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1036 |
eval with_$ac_package=\$ac_optarg ;; |
1037 |
|
1038 |
-without-* | --without-*) |
1039 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1040 |
# Reject names that are not valid shell variable names. |
1041 |
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1042 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
1043 |
{ (exit 1); exit 1; }; } |
1044 |
ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1045 |
eval with_$ac_package=no ;; |
1046 |
|
1047 |
--x) |
1048 |
# Obsolete; use --with-x. |
1049 |
with_x=yes ;; |
1050 |
|
1051 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1052 |
| --x-incl | --x-inc | --x-in | --x-i) |
1053 |
ac_prev=x_includes ;; |
1054 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1055 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1056 |
x_includes=$ac_optarg ;; |
1057 |
|
1058 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1059 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1060 |
ac_prev=x_libraries ;; |
1061 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1062 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1063 |
x_libraries=$ac_optarg ;; |
1064 |
|
1065 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
1066 |
Try \`$0 --help' for more information." >&2 |
1067 |
{ (exit 1); exit 1; }; } |
1068 |
;; |
1069 |
|
1070 |
*=*) |
1071 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1072 |
# Reject names that are not valid shell variable names. |
1073 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1074 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1075 |
{ (exit 1); exit 1; }; } |
1076 |
eval $ac_envvar=\$ac_optarg |
1077 |
export $ac_envvar ;; |
1078 |
|
1079 |
*) |
1080 |
# FIXME: should be removed in autoconf 3.0. |
1081 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1082 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1083 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1084 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1085 |
;; |
1086 |
|
1087 |
esac |
1088 |
done |
1089 |
|
1090 |
if test -n "$ac_prev"; then |
1091 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1092 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
1093 |
{ (exit 1); exit 1; }; } |
1094 |
fi |
1095 |
|
1096 |
# Be sure to have absolute directory names. |
1097 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1098 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1099 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1100 |
libdir localedir mandir |
1101 |
do |
1102 |
eval ac_val=\$$ac_var |
1103 |
case $ac_val in |
1104 |
[\\/$]* | ?:[\\/]* ) continue;; |
1105 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1106 |
esac |
1107 |
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1108 |
{ (exit 1); exit 1; }; } |
1109 |
done |
1110 |
|
1111 |
# There might be people who depend on the old broken behavior: `$host' |
1112 |
# used to hold the argument of --host etc. |
1113 |
# FIXME: To remove some day. |
1114 |
build=$build_alias |
1115 |
host=$host_alias |
1116 |
target=$target_alias |
1117 |
|
1118 |
# FIXME: To remove some day. |
1119 |
if test "x$host_alias" != x; then |
1120 |
if test "x$build_alias" = x; then |
1121 |
cross_compiling=maybe |
1122 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1123 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
1124 |
elif test "x$build_alias" != "x$host_alias"; then |
1125 |
cross_compiling=yes |
1126 |
fi |
1127 |
fi |
1128 |
|
1129 |
ac_tool_prefix= |
1130 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1131 |
|
1132 |
test "$silent" = yes && exec 6>/dev/null |
1133 |
|
1134 |
|
1135 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1136 |
ac_ls_di=`ls -di .` && |
1137 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1138 |
{ echo "$as_me: error: Working directory cannot be determined" >&2 |
1139 |
{ (exit 1); exit 1; }; } |
1140 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1141 |
{ echo "$as_me: error: pwd does not report name of working directory" >&2 |
1142 |
{ (exit 1); exit 1; }; } |
1143 |
|
1144 |
|
1145 |
# Find the source files, if location was not specified. |
1146 |
if test -z "$srcdir"; then |
1147 |
ac_srcdir_defaulted=yes |
1148 |
# Try the directory containing this script, then the parent directory. |
1149 |
ac_confdir=`$as_dirname -- "$0" || |
1150 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1151 |
X"$0" : 'X\(//\)[^/]' \| \ |
1152 |
X"$0" : 'X\(//\)$' \| \ |
1153 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1154 |
echo X"$0" | |
1155 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1156 |
s//\1/ |
1157 |
q |
1158 |
} |
1159 |
/^X\(\/\/\)[^/].*/{ |
1160 |
s//\1/ |
1161 |
q |
1162 |
} |
1163 |
/^X\(\/\/\)$/{ |
1164 |
s//\1/ |
1165 |
q |
1166 |
} |
1167 |
/^X\(\/\).*/{ |
1168 |
s//\1/ |
1169 |
q |
1170 |
} |
1171 |
s/.*/./; q'` |
1172 |
srcdir=$ac_confdir |
1173 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1174 |
srcdir=.. |
1175 |
fi |
1176 |
else |
1177 |
ac_srcdir_defaulted=no |
1178 |
fi |
1179 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1180 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1181 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1182 |
{ (exit 1); exit 1; }; } |
1183 |
fi |
1184 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1185 |
ac_abs_confdir=`( |
1186 |
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1187 |
{ (exit 1); exit 1; }; } |
1188 |
pwd)` |
1189 |
# When building in place, set srcdir=. |
1190 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1191 |
srcdir=. |
1192 |
fi |
1193 |
# Remove unnecessary trailing slashes from srcdir. |
1194 |
# Double slashes in file names in object file debugging info |
1195 |
# mess up M-x gdb in Emacs. |
1196 |
case $srcdir in |
1197 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1198 |
esac |
1199 |
for ac_var in $ac_precious_vars; do |
1200 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1201 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1202 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1203 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1204 |
done |
1205 |
|
1206 |
# |
1207 |
# Report the --help message. |
1208 |
# |
1209 |
if test "$ac_init_help" = "long"; then |
1210 |
# Omit some internal or obsolete options to make the list less imposing. |
1211 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1212 |
cat <<_ACEOF |
1213 |
\`configure' configures ircd-hybrid 7.3 to adapt to many kinds of systems. |
1214 |
|
1215 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1216 |
|
1217 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1218 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1219 |
|
1220 |
Defaults for the options are specified in brackets. |
1221 |
|
1222 |
Configuration: |
1223 |
-h, --help display this help and exit |
1224 |
--help=short display options specific to this package |
1225 |
--help=recursive display the short help of all the included packages |
1226 |
-V, --version display version information and exit |
1227 |
-q, --quiet, --silent do not print \`checking...' messages |
1228 |
--cache-file=FILE cache test results in FILE [disabled] |
1229 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1230 |
-n, --no-create do not create output files |
1231 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1232 |
|
1233 |
Installation directories: |
1234 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1235 |
[$ac_default_prefix] |
1236 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1237 |
[PREFIX] |
1238 |
|
1239 |
By default, \`make install' will install all the files in |
1240 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1241 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1242 |
for instance \`--prefix=\$HOME'. |
1243 |
|
1244 |
For better control, use the options below. |
1245 |
|
1246 |
Fine tuning of the installation directories: |
1247 |
--bindir=DIR user executables [EPREFIX/bin] |
1248 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1249 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1250 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1251 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1252 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1253 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1254 |
--includedir=DIR C header files [PREFIX/include] |
1255 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1256 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1257 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1258 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1259 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1260 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1261 |
--docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid] |
1262 |
--htmldir=DIR html documentation [DOCDIR] |
1263 |
--dvidir=DIR dvi documentation [DOCDIR] |
1264 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1265 |
--psdir=DIR ps documentation [DOCDIR] |
1266 |
_ACEOF |
1267 |
|
1268 |
cat <<\_ACEOF |
1269 |
_ACEOF |
1270 |
fi |
1271 |
|
1272 |
if test -n "$ac_init_help"; then |
1273 |
case $ac_init_help in |
1274 |
short | recursive ) echo "Configuration of ircd-hybrid 7.3:";; |
1275 |
esac |
1276 |
cat <<\_ACEOF |
1277 |
|
1278 |
Optional Features: |
1279 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1280 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1281 |
--enable-openssl=DIR Enable OpenSSL support (DIR optional). |
1282 |
--disable-openssl Disable OpenSSL support. |
1283 |
--disable-zlib Disable ziplinks support |
1284 |
--enable-poll Force poll() usage. |
1285 |
--enable-select Force select() usage. |
1286 |
--enable-kqueue Force kqueue() usage. |
1287 |
--enable-devpoll Force usage of /dev/poll. |
1288 |
--enable-rtsigio Enable SIGIO with RT Signals (Linux only) |
1289 |
--enable-epoll Enable Linux epoll support. |
1290 |
--enable-clobber Don't preserve old binaries on make install |
1291 |
--enable-profile Enable profiling |
1292 |
--enable-efence Enable ElectricFence (memory debugger). |
1293 |
--disable-block-alloc Disable the block allocator (Only useful with |
1294 |
ElectricFence) |
1295 |
--enable-warnings Enable all sorts of warnings for debugging. |
1296 |
--enable-small-net Enable small network support. |
1297 |
--enable-efnet For IRCDs running on EFnet. |
1298 |
--disable-gline-voting Disable G-line voting. |
1299 |
--enable-halfops Enable halfops support. |
1300 |
--enable-syslog="EVENTS" |
1301 |
Enable syslog for events: kill, squit, connect, |
1302 |
users, oper, space separated in quotes (default: |
1303 |
disabled) |
1304 |
--disable-shared-modules |
1305 |
Disable shared modules. |
1306 |
|
1307 |
Optional Packages: |
1308 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1309 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1310 |
--with-zlib-path=DIR Path to libz.so for ziplinks support. |
1311 |
--with-nicklen=LENGTH Set the nick length to LENGTH (default 15) |
1312 |
--with-syslog-facility=LOG |
1313 |
Define the log facility to use with ircd's syslog |
1314 |
output (default LOG_LOCAL4) |
1315 |
--with-topiclen=NUMBER Set the max topic length to NUMBER (default 160, max |
1316 |
390) |
1317 |
|
1318 |
Some influential environment variables: |
1319 |
CC C compiler command |
1320 |
CFLAGS C compiler flags |
1321 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1322 |
nonstandard directory <lib dir> |
1323 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1324 |
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1325 |
you have headers in a nonstandard directory <include dir> |
1326 |
CPP C preprocessor |
1327 |
|
1328 |
Use these variables to override the choices made by `configure' or to help |
1329 |
it to find libraries and programs with nonstandard names/locations. |
1330 |
|
1331 |
_ACEOF |
1332 |
ac_status=$? |
1333 |
fi |
1334 |
|
1335 |
if test "$ac_init_help" = "recursive"; then |
1336 |
# If there are subdirs, report their specific --help. |
1337 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1338 |
test -d "$ac_dir" || continue |
1339 |
ac_builddir=. |
1340 |
|
1341 |
case "$ac_dir" in |
1342 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1343 |
*) |
1344 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1345 |
# A ".." for each directory in $ac_dir_suffix. |
1346 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1347 |
case $ac_top_builddir_sub in |
1348 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1349 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1350 |
esac ;; |
1351 |
esac |
1352 |
ac_abs_top_builddir=$ac_pwd |
1353 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1354 |
# for backward compatibility: |
1355 |
ac_top_builddir=$ac_top_build_prefix |
1356 |
|
1357 |
case $srcdir in |
1358 |
.) # We are building in place. |
1359 |
ac_srcdir=. |
1360 |
ac_top_srcdir=$ac_top_builddir_sub |
1361 |
ac_abs_top_srcdir=$ac_pwd ;; |
1362 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1363 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1364 |
ac_top_srcdir=$srcdir |
1365 |
ac_abs_top_srcdir=$srcdir ;; |
1366 |
*) # Relative name. |
1367 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1368 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1369 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1370 |
esac |
1371 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1372 |
|
1373 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1374 |
# Check for guested configure. |
1375 |
if test -f "$ac_srcdir/configure.gnu"; then |
1376 |
echo && |
1377 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1378 |
elif test -f "$ac_srcdir/configure"; then |
1379 |
echo && |
1380 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1381 |
else |
1382 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1383 |
fi || ac_status=$? |
1384 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1385 |
done |
1386 |
fi |
1387 |
|
1388 |
test -n "$ac_init_help" && exit $ac_status |
1389 |
if $ac_init_version; then |
1390 |
cat <<\_ACEOF |
1391 |
ircd-hybrid configure 7.3 |
1392 |
generated by GNU Autoconf 2.61 |
1393 |
|
1394 |
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1395 |
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1396 |
This configure script is free software; the Free Software Foundation |
1397 |
gives unlimited permission to copy, distribute and modify it. |
1398 |
|
1399 |
$Id$ |
1400 |
_ACEOF |
1401 |
exit |
1402 |
fi |
1403 |
cat >config.log <<_ACEOF |
1404 |
This file contains any messages produced by compilers while |
1405 |
running configure, to aid debugging if configure makes a mistake. |
1406 |
|
1407 |
It was created by ircd-hybrid $as_me 7.3, which was |
1408 |
generated by GNU Autoconf 2.61. Invocation command line was |
1409 |
|
1410 |
$ $0 $@ |
1411 |
|
1412 |
_ACEOF |
1413 |
exec 5>>config.log |
1414 |
{ |
1415 |
cat <<_ASUNAME |
1416 |
## --------- ## |
1417 |
## Platform. ## |
1418 |
## --------- ## |
1419 |
|
1420 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1421 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1422 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1423 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1424 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1425 |
|
1426 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1427 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1428 |
|
1429 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1430 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1431 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1432 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1433 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1434 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1435 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1436 |
|
1437 |
_ASUNAME |
1438 |
|
1439 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1440 |
for as_dir in $PATH |
1441 |
do |
1442 |
IFS=$as_save_IFS |
1443 |
test -z "$as_dir" && as_dir=. |
1444 |
echo "PATH: $as_dir" |
1445 |
done |
1446 |
IFS=$as_save_IFS |
1447 |
|
1448 |
} >&5 |
1449 |
|
1450 |
cat >&5 <<_ACEOF |
1451 |
|
1452 |
|
1453 |
## ----------- ## |
1454 |
## Core tests. ## |
1455 |
## ----------- ## |
1456 |
|
1457 |
_ACEOF |
1458 |
|
1459 |
|
1460 |
# Keep a trace of the command line. |
1461 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1462 |
# Strip out --silent because we don't want to record it for future runs. |
1463 |
# Also quote any args containing shell meta-characters. |
1464 |
# Make two passes to allow for proper duplicate-argument suppression. |
1465 |
ac_configure_args= |
1466 |
ac_configure_args0= |
1467 |
ac_configure_args1= |
1468 |
ac_must_keep_next=false |
1469 |
for ac_pass in 1 2 |
1470 |
do |
1471 |
for ac_arg |
1472 |
do |
1473 |
case $ac_arg in |
1474 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1475 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1476 |
| -silent | --silent | --silen | --sile | --sil) |
1477 |
continue ;; |
1478 |
*\'*) |
1479 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1480 |
esac |
1481 |
case $ac_pass in |
1482 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1483 |
2) |
1484 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1485 |
if test $ac_must_keep_next = true; then |
1486 |
ac_must_keep_next=false # Got value, back to normal. |
1487 |
else |
1488 |
case $ac_arg in |
1489 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1490 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1491 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1492 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1493 |
case "$ac_configure_args0 " in |
1494 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1495 |
esac |
1496 |
;; |
1497 |
-* ) ac_must_keep_next=true ;; |
1498 |
esac |
1499 |
fi |
1500 |
ac_configure_args="$ac_configure_args '$ac_arg'" |
1501 |
;; |
1502 |
esac |
1503 |
done |
1504 |
done |
1505 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1506 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1507 |
|
1508 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1509 |
# config.log. We remove comments because anyway the quotes in there |
1510 |
# would cause problems or look ugly. |
1511 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
1512 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1513 |
trap 'exit_status=$? |
1514 |
# Save into config.log some information that might help in debugging. |
1515 |
{ |
1516 |
echo |
1517 |
|
1518 |
cat <<\_ASBOX |
1519 |
## ---------------- ## |
1520 |
## Cache variables. ## |
1521 |
## ---------------- ## |
1522 |
_ASBOX |
1523 |
echo |
1524 |
# The following way of writing the cache mishandles newlines in values, |
1525 |
( |
1526 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1527 |
eval ac_val=\$$ac_var |
1528 |
case $ac_val in #( |
1529 |
*${as_nl}*) |
1530 |
case $ac_var in #( |
1531 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1532 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1533 |
esac |
1534 |
case $ac_var in #( |
1535 |
_ | IFS | as_nl) ;; #( |
1536 |
*) $as_unset $ac_var ;; |
1537 |
esac ;; |
1538 |
esac |
1539 |
done |
1540 |
(set) 2>&1 | |
1541 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1542 |
*${as_nl}ac_space=\ *) |
1543 |
sed -n \ |
1544 |
"s/'\''/'\''\\\\'\'''\''/g; |
1545 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1546 |
;; #( |
1547 |
*) |
1548 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1549 |
;; |
1550 |
esac | |
1551 |
sort |
1552 |
) |
1553 |
echo |
1554 |
|
1555 |
cat <<\_ASBOX |
1556 |
## ----------------- ## |
1557 |
## Output variables. ## |
1558 |
## ----------------- ## |
1559 |
_ASBOX |
1560 |
echo |
1561 |
for ac_var in $ac_subst_vars |
1562 |
do |
1563 |
eval ac_val=\$$ac_var |
1564 |
case $ac_val in |
1565 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1566 |
esac |
1567 |
echo "$ac_var='\''$ac_val'\''" |
1568 |
done | sort |
1569 |
echo |
1570 |
|
1571 |
if test -n "$ac_subst_files"; then |
1572 |
cat <<\_ASBOX |
1573 |
## ------------------- ## |
1574 |
## File substitutions. ## |
1575 |
## ------------------- ## |
1576 |
_ASBOX |
1577 |
echo |
1578 |
for ac_var in $ac_subst_files |
1579 |
do |
1580 |
eval ac_val=\$$ac_var |
1581 |
case $ac_val in |
1582 |
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1583 |
esac |
1584 |
echo "$ac_var='\''$ac_val'\''" |
1585 |
done | sort |
1586 |
echo |
1587 |
fi |
1588 |
|
1589 |
if test -s confdefs.h; then |
1590 |
cat <<\_ASBOX |
1591 |
## ----------- ## |
1592 |
## confdefs.h. ## |
1593 |
## ----------- ## |
1594 |
_ASBOX |
1595 |
echo |
1596 |
cat confdefs.h |
1597 |
echo |
1598 |
fi |
1599 |
test "$ac_signal" != 0 && |
1600 |
echo "$as_me: caught signal $ac_signal" |
1601 |
echo "$as_me: exit $exit_status" |
1602 |
} >&5 |
1603 |
rm -f core *.core core.conftest.* && |
1604 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1605 |
exit $exit_status |
1606 |
' 0 |
1607 |
for ac_signal in 1 2 13 15; do |
1608 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1609 |
done |
1610 |
ac_signal=0 |
1611 |
|
1612 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1613 |
rm -f -r conftest* confdefs.h |
1614 |
|
1615 |
# Predefined preprocessor variables. |
1616 |
|
1617 |
cat >>confdefs.h <<_ACEOF |
1618 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1619 |
_ACEOF |
1620 |
|
1621 |
|
1622 |
cat >>confdefs.h <<_ACEOF |
1623 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1624 |
_ACEOF |
1625 |
|
1626 |
|
1627 |
cat >>confdefs.h <<_ACEOF |
1628 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1629 |
_ACEOF |
1630 |
|
1631 |
|
1632 |
cat >>confdefs.h <<_ACEOF |
1633 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1634 |
_ACEOF |
1635 |
|
1636 |
|
1637 |
cat >>confdefs.h <<_ACEOF |
1638 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1639 |
_ACEOF |
1640 |
|
1641 |
|
1642 |
# Let the site file select an alternate cache file if it wants to. |
1643 |
# Prefer explicitly selected file to automatically selected ones. |
1644 |
if test -n "$CONFIG_SITE"; then |
1645 |
set x "$CONFIG_SITE" |
1646 |
elif test "x$prefix" != xNONE; then |
1647 |
set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1648 |
else |
1649 |
set x "$ac_default_prefix/share/config.site" \ |
1650 |
"$ac_default_prefix/etc/config.site" |
1651 |
fi |
1652 |
shift |
1653 |
for ac_site_file |
1654 |
do |
1655 |
if test -r "$ac_site_file"; then |
1656 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1657 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
1658 |
sed 's/^/| /' "$ac_site_file" >&5 |
1659 |
. "$ac_site_file" |
1660 |
fi |
1661 |
done |
1662 |
|
1663 |
if test -r "$cache_file"; then |
1664 |
# Some versions of bash will fail to source /dev/null (special |
1665 |
# files actually), so we avoid doing that. |
1666 |
if test -f "$cache_file"; then |
1667 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1668 |
echo "$as_me: loading cache $cache_file" >&6;} |
1669 |
case $cache_file in |
1670 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1671 |
*) . "./$cache_file";; |
1672 |
esac |
1673 |
fi |
1674 |
else |
1675 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1676 |
echo "$as_me: creating cache $cache_file" >&6;} |
1677 |
>$cache_file |
1678 |
fi |
1679 |
|
1680 |
# Check that the precious variables saved in the cache have kept the same |
1681 |
# value. |
1682 |
ac_cache_corrupted=false |
1683 |
for ac_var in $ac_precious_vars; do |
1684 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1685 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1686 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1687 |
eval ac_new_val=\$ac_env_${ac_var}_value |
1688 |
case $ac_old_set,$ac_new_set in |
1689 |
set,) |
1690 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1691 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1692 |
ac_cache_corrupted=: ;; |
1693 |
,set) |
1694 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1695 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1696 |
ac_cache_corrupted=: ;; |
1697 |
,);; |
1698 |
*) |
1699 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1700 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1701 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1702 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1703 |
echo "$as_me: former value: $ac_old_val" >&2;} |
1704 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1705 |
echo "$as_me: current value: $ac_new_val" >&2;} |
1706 |
ac_cache_corrupted=: |
1707 |
fi;; |
1708 |
esac |
1709 |
# Pass precious variables to config.status. |
1710 |
if test "$ac_new_set" = set; then |
1711 |
case $ac_new_val in |
1712 |
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1713 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1714 |
esac |
1715 |
case " $ac_configure_args " in |
1716 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1717 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1718 |
esac |
1719 |
fi |
1720 |
done |
1721 |
if $ac_cache_corrupted; then |
1722 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1723 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1724 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1725 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1726 |
{ (exit 1); exit 1; }; } |
1727 |
fi |
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 |
|
1735 |
|
1736 |
|
1737 |
|
1738 |
|
1739 |
|
1740 |
|
1741 |
|
1742 |
|
1743 |
|
1744 |
|
1745 |
|
1746 |
|
1747 |
|
1748 |
|
1749 |
|
1750 |
|
1751 |
|
1752 |
|
1753 |
ac_ext=c |
1754 |
ac_cpp='$CPP $CPPFLAGS' |
1755 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1756 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1757 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1758 |
|
1759 |
|
1760 |
|
1761 |
ac_config_headers="$ac_config_headers include/setup.h" |
1762 |
|
1763 |
|
1764 |
|
1765 |
|
1766 |
|
1767 |
cat >>confdefs.h <<\_ACEOF |
1768 |
#define _GNU_SOURCE 1 |
1769 |
_ACEOF |
1770 |
|
1771 |
|
1772 |
|
1773 |
OLD_CFLAGS="$CFLAGS" |
1774 |
ac_ext=c |
1775 |
ac_cpp='$CPP $CPPFLAGS' |
1776 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1777 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1778 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1779 |
if test -n "$ac_tool_prefix"; then |
1780 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1781 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1782 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1783 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1784 |
if test "${ac_cv_prog_CC+set}" = set; then |
1785 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1786 |
else |
1787 |
if test -n "$CC"; then |
1788 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1789 |
else |
1790 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1791 |
for as_dir in $PATH |
1792 |
do |
1793 |
IFS=$as_save_IFS |
1794 |
test -z "$as_dir" && as_dir=. |
1795 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1796 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1797 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1798 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1799 |
break 2 |
1800 |
fi |
1801 |
done |
1802 |
done |
1803 |
IFS=$as_save_IFS |
1804 |
|
1805 |
fi |
1806 |
fi |
1807 |
CC=$ac_cv_prog_CC |
1808 |
if test -n "$CC"; then |
1809 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1810 |
echo "${ECHO_T}$CC" >&6; } |
1811 |
else |
1812 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1813 |
echo "${ECHO_T}no" >&6; } |
1814 |
fi |
1815 |
|
1816 |
|
1817 |
fi |
1818 |
if test -z "$ac_cv_prog_CC"; then |
1819 |
ac_ct_CC=$CC |
1820 |
# Extract the first word of "gcc", so it can be a program name with args. |
1821 |
set dummy gcc; ac_word=$2 |
1822 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1823 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1824 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1825 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1826 |
else |
1827 |
if test -n "$ac_ct_CC"; then |
1828 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1829 |
else |
1830 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1831 |
for as_dir in $PATH |
1832 |
do |
1833 |
IFS=$as_save_IFS |
1834 |
test -z "$as_dir" && as_dir=. |
1835 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1836 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1837 |
ac_cv_prog_ac_ct_CC="gcc" |
1838 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1839 |
break 2 |
1840 |
fi |
1841 |
done |
1842 |
done |
1843 |
IFS=$as_save_IFS |
1844 |
|
1845 |
fi |
1846 |
fi |
1847 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1848 |
if test -n "$ac_ct_CC"; then |
1849 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1850 |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
1851 |
else |
1852 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1853 |
echo "${ECHO_T}no" >&6; } |
1854 |
fi |
1855 |
|
1856 |
if test "x$ac_ct_CC" = x; then |
1857 |
CC="" |
1858 |
else |
1859 |
case $cross_compiling:$ac_tool_warned in |
1860 |
yes:) |
1861 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
1862 |
whose name does not start with the host triplet. If you think this |
1863 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
1864 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
1865 |
whose name does not start with the host triplet. If you think this |
1866 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
1867 |
ac_tool_warned=yes ;; |
1868 |
esac |
1869 |
CC=$ac_ct_CC |
1870 |
fi |
1871 |
else |
1872 |
CC="$ac_cv_prog_CC" |
1873 |
fi |
1874 |
|
1875 |
if test -z "$CC"; then |
1876 |
if test -n "$ac_tool_prefix"; then |
1877 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1878 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1879 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1880 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1881 |
if test "${ac_cv_prog_CC+set}" = set; then |
1882 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1883 |
else |
1884 |
if test -n "$CC"; then |
1885 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1886 |
else |
1887 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1888 |
for as_dir in $PATH |
1889 |
do |
1890 |
IFS=$as_save_IFS |
1891 |
test -z "$as_dir" && as_dir=. |
1892 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1893 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1894 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1895 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1896 |
break 2 |
1897 |
fi |
1898 |
done |
1899 |
done |
1900 |
IFS=$as_save_IFS |
1901 |
|
1902 |
fi |
1903 |
fi |
1904 |
CC=$ac_cv_prog_CC |
1905 |
if test -n "$CC"; then |
1906 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1907 |
echo "${ECHO_T}$CC" >&6; } |
1908 |
else |
1909 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1910 |
echo "${ECHO_T}no" >&6; } |
1911 |
fi |
1912 |
|
1913 |
|
1914 |
fi |
1915 |
fi |
1916 |
if test -z "$CC"; then |
1917 |
# Extract the first word of "cc", so it can be a program name with args. |
1918 |
set dummy cc; ac_word=$2 |
1919 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1920 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1921 |
if test "${ac_cv_prog_CC+set}" = set; then |
1922 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1923 |
else |
1924 |
if test -n "$CC"; then |
1925 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1926 |
else |
1927 |
ac_prog_rejected=no |
1928 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1929 |
for as_dir in $PATH |
1930 |
do |
1931 |
IFS=$as_save_IFS |
1932 |
test -z "$as_dir" && as_dir=. |
1933 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1934 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1935 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1936 |
ac_prog_rejected=yes |
1937 |
continue |
1938 |
fi |
1939 |
ac_cv_prog_CC="cc" |
1940 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1941 |
break 2 |
1942 |
fi |
1943 |
done |
1944 |
done |
1945 |
IFS=$as_save_IFS |
1946 |
|
1947 |
if test $ac_prog_rejected = yes; then |
1948 |
# We found a bogon in the path, so make sure we never use it. |
1949 |
set dummy $ac_cv_prog_CC |
1950 |
shift |
1951 |
if test $# != 0; then |
1952 |
# We chose a different compiler from the bogus one. |
1953 |
# However, it has the same basename, so the bogon will be chosen |
1954 |
# first if we set CC to just the basename; use the full file name. |
1955 |
shift |
1956 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
1957 |
fi |
1958 |
fi |
1959 |
fi |
1960 |
fi |
1961 |
CC=$ac_cv_prog_CC |
1962 |
if test -n "$CC"; then |
1963 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
1964 |
echo "${ECHO_T}$CC" >&6; } |
1965 |
else |
1966 |
{ echo "$as_me:$LINENO: result: no" >&5 |
1967 |
echo "${ECHO_T}no" >&6; } |
1968 |
fi |
1969 |
|
1970 |
|
1971 |
fi |
1972 |
if test -z "$CC"; then |
1973 |
if test -n "$ac_tool_prefix"; then |
1974 |
for ac_prog in cl.exe |
1975 |
do |
1976 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1977 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1978 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1979 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
1980 |
if test "${ac_cv_prog_CC+set}" = set; then |
1981 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1982 |
else |
1983 |
if test -n "$CC"; then |
1984 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1985 |
else |
1986 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1987 |
for as_dir in $PATH |
1988 |
do |
1989 |
IFS=$as_save_IFS |
1990 |
test -z "$as_dir" && as_dir=. |
1991 |
for ac_exec_ext in '' $ac_executable_extensions; do |
1992 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
1993 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1994 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1995 |
break 2 |
1996 |
fi |
1997 |
done |
1998 |
done |
1999 |
IFS=$as_save_IFS |
2000 |
|
2001 |
fi |
2002 |
fi |
2003 |
CC=$ac_cv_prog_CC |
2004 |
if test -n "$CC"; then |
2005 |
{ echo "$as_me:$LINENO: result: $CC" >&5 |
2006 |
echo "${ECHO_T}$CC" >&6; } |
2007 |
else |
2008 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2009 |
echo "${ECHO_T}no" >&6; } |
2010 |
fi |
2011 |
|
2012 |
|
2013 |
test -n "$CC" && break |
2014 |
done |
2015 |
fi |
2016 |
if test -z "$CC"; then |
2017 |
ac_ct_CC=$CC |
2018 |
for ac_prog in cl.exe |
2019 |
do |
2020 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2021 |
set dummy $ac_prog; ac_word=$2 |
2022 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2023 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2024 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2025 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2026 |
else |
2027 |
if test -n "$ac_ct_CC"; then |
2028 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2029 |
else |
2030 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2031 |
for as_dir in $PATH |
2032 |
do |
2033 |
IFS=$as_save_IFS |
2034 |
test -z "$as_dir" && as_dir=. |
2035 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2036 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2037 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
2038 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2039 |
break 2 |
2040 |
fi |
2041 |
done |
2042 |
done |
2043 |
IFS=$as_save_IFS |
2044 |
|
2045 |
fi |
2046 |
fi |
2047 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2048 |
if test -n "$ac_ct_CC"; then |
2049 |
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2050 |
echo "${ECHO_T}$ac_ct_CC" >&6; } |
2051 |
else |
2052 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2053 |
echo "${ECHO_T}no" >&6; } |
2054 |
fi |
2055 |
|
2056 |
|
2057 |
test -n "$ac_ct_CC" && break |
2058 |
done |
2059 |
|
2060 |
if test "x$ac_ct_CC" = x; then |
2061 |
CC="" |
2062 |
else |
2063 |
case $cross_compiling:$ac_tool_warned in |
2064 |
yes:) |
2065 |
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2066 |
whose name does not start with the host triplet. If you think this |
2067 |
configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2068 |
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2069 |
whose name does not start with the host triplet. If you think this |
2070 |
configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2071 |
ac_tool_warned=yes ;; |
2072 |
esac |
2073 |
CC=$ac_ct_CC |
2074 |
fi |
2075 |
fi |
2076 |
|
2077 |
fi |
2078 |
|
2079 |
|
2080 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2081 |
See \`config.log' for more details." >&5 |
2082 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2083 |
See \`config.log' for more details." >&2;} |
2084 |
{ (exit 1); exit 1; }; } |
2085 |
|
2086 |
# Provide some information about the compiler. |
2087 |
echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2088 |
ac_compiler=`set X $ac_compile; echo $2` |
2089 |
{ (ac_try="$ac_compiler --version >&5" |
2090 |
case "(($ac_try" in |
2091 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2092 |
*) ac_try_echo=$ac_try;; |
2093 |
esac |
2094 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2095 |
(eval "$ac_compiler --version >&5") 2>&5 |
2096 |
ac_status=$? |
2097 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2098 |
(exit $ac_status); } |
2099 |
{ (ac_try="$ac_compiler -v >&5" |
2100 |
case "(($ac_try" in |
2101 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2102 |
*) ac_try_echo=$ac_try;; |
2103 |
esac |
2104 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2105 |
(eval "$ac_compiler -v >&5") 2>&5 |
2106 |
ac_status=$? |
2107 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2108 |
(exit $ac_status); } |
2109 |
{ (ac_try="$ac_compiler -V >&5" |
2110 |
case "(($ac_try" in |
2111 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2112 |
*) ac_try_echo=$ac_try;; |
2113 |
esac |
2114 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2115 |
(eval "$ac_compiler -V >&5") 2>&5 |
2116 |
ac_status=$? |
2117 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2118 |
(exit $ac_status); } |
2119 |
|
2120 |
cat >conftest.$ac_ext <<_ACEOF |
2121 |
/* confdefs.h. */ |
2122 |
_ACEOF |
2123 |
cat confdefs.h >>conftest.$ac_ext |
2124 |
cat >>conftest.$ac_ext <<_ACEOF |
2125 |
/* end confdefs.h. */ |
2126 |
|
2127 |
int |
2128 |
main () |
2129 |
{ |
2130 |
|
2131 |
; |
2132 |
return 0; |
2133 |
} |
2134 |
_ACEOF |
2135 |
ac_clean_files_save=$ac_clean_files |
2136 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2137 |
# Try to create an executable without -o first, disregard a.out. |
2138 |
# It will help us diagnose broken compilers, and finding out an intuition |
2139 |
# of exeext. |
2140 |
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2141 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2142 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2143 |
# |
2144 |
# List of possible output files, starting from the most likely. |
2145 |
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2146 |
# only as a last resort. b.out is created by i960 compilers. |
2147 |
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2148 |
# |
2149 |
# The IRIX 6 linker writes into existing files which may not be |
2150 |
# executable, retaining their permissions. Remove them first so a |
2151 |
# subsequent execution test works. |
2152 |
ac_rmfiles= |
2153 |
for ac_file in $ac_files |
2154 |
do |
2155 |
case $ac_file in |
2156 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2157 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2158 |
esac |
2159 |
done |
2160 |
rm -f $ac_rmfiles |
2161 |
|
2162 |
if { (ac_try="$ac_link_default" |
2163 |
case "(($ac_try" in |
2164 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2165 |
*) ac_try_echo=$ac_try;; |
2166 |
esac |
2167 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2168 |
(eval "$ac_link_default") 2>&5 |
2169 |
ac_status=$? |
2170 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2171 |
(exit $ac_status); }; then |
2172 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2173 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2174 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
2175 |
# so that the user can short-circuit this test for compilers unknown to |
2176 |
# Autoconf. |
2177 |
for ac_file in $ac_files '' |
2178 |
do |
2179 |
test -f "$ac_file" || continue |
2180 |
case $ac_file in |
2181 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2182 |
;; |
2183 |
[ab].out ) |
2184 |
# We found the default executable, but exeext='' is most |
2185 |
# certainly right. |
2186 |
break;; |
2187 |
*.* ) |
2188 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2189 |
then :; else |
2190 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2191 |
fi |
2192 |
# We set ac_cv_exeext here because the later test for it is not |
2193 |
# safe: cross compilers may not add the suffix if given an `-o' |
2194 |
# argument, so we may need to know it at that point already. |
2195 |
# Even if this section looks crufty: it has the advantage of |
2196 |
# actually working. |
2197 |
break;; |
2198 |
* ) |
2199 |
break;; |
2200 |
esac |
2201 |
done |
2202 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2203 |
|
2204 |
else |
2205 |
ac_file='' |
2206 |
fi |
2207 |
|
2208 |
{ echo "$as_me:$LINENO: result: $ac_file" >&5 |
2209 |
echo "${ECHO_T}$ac_file" >&6; } |
2210 |
if test -z "$ac_file"; then |
2211 |
echo "$as_me: failed program was:" >&5 |
2212 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2213 |
|
2214 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2215 |
See \`config.log' for more details." >&5 |
2216 |
echo "$as_me: error: C compiler cannot create executables |
2217 |
See \`config.log' for more details." >&2;} |
2218 |
{ (exit 77); exit 77; }; } |
2219 |
fi |
2220 |
|
2221 |
ac_exeext=$ac_cv_exeext |
2222 |
|
2223 |
# Check that the compiler produces executables we can run. If not, either |
2224 |
# the compiler is broken, or we cross compile. |
2225 |
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2226 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
2227 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2228 |
# If not cross compiling, check that we can run a simple program. |
2229 |
if test "$cross_compiling" != yes; then |
2230 |
if { ac_try='./$ac_file' |
2231 |
{ (case "(($ac_try" in |
2232 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2233 |
*) ac_try_echo=$ac_try;; |
2234 |
esac |
2235 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2236 |
(eval "$ac_try") 2>&5 |
2237 |
ac_status=$? |
2238 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2239 |
(exit $ac_status); }; }; then |
2240 |
cross_compiling=no |
2241 |
else |
2242 |
if test "$cross_compiling" = maybe; then |
2243 |
cross_compiling=yes |
2244 |
else |
2245 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2246 |
If you meant to cross compile, use \`--host'. |
2247 |
See \`config.log' for more details." >&5 |
2248 |
echo "$as_me: error: cannot run C compiled programs. |
2249 |
If you meant to cross compile, use \`--host'. |
2250 |
See \`config.log' for more details." >&2;} |
2251 |
{ (exit 1); exit 1; }; } |
2252 |
fi |
2253 |
fi |
2254 |
fi |
2255 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2256 |
echo "${ECHO_T}yes" >&6; } |
2257 |
|
2258 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2259 |
ac_clean_files=$ac_clean_files_save |
2260 |
# Check that the compiler produces executables we can run. If not, either |
2261 |
# the compiler is broken, or we cross compile. |
2262 |
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2263 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2264 |
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2265 |
echo "${ECHO_T}$cross_compiling" >&6; } |
2266 |
|
2267 |
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2268 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2269 |
if { (ac_try="$ac_link" |
2270 |
case "(($ac_try" in |
2271 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2272 |
*) ac_try_echo=$ac_try;; |
2273 |
esac |
2274 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2275 |
(eval "$ac_link") 2>&5 |
2276 |
ac_status=$? |
2277 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2278 |
(exit $ac_status); }; then |
2279 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2280 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2281 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2282 |
# `rm'. |
2283 |
for ac_file in conftest.exe conftest conftest.*; do |
2284 |
test -f "$ac_file" || continue |
2285 |
case $ac_file in |
2286 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2287 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2288 |
break;; |
2289 |
* ) break;; |
2290 |
esac |
2291 |
done |
2292 |
else |
2293 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2294 |
See \`config.log' for more details." >&5 |
2295 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2296 |
See \`config.log' for more details." >&2;} |
2297 |
{ (exit 1); exit 1; }; } |
2298 |
fi |
2299 |
|
2300 |
rm -f conftest$ac_cv_exeext |
2301 |
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2302 |
echo "${ECHO_T}$ac_cv_exeext" >&6; } |
2303 |
|
2304 |
rm -f conftest.$ac_ext |
2305 |
EXEEXT=$ac_cv_exeext |
2306 |
ac_exeext=$EXEEXT |
2307 |
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2308 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
2309 |
if test "${ac_cv_objext+set}" = set; then |
2310 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2311 |
else |
2312 |
cat >conftest.$ac_ext <<_ACEOF |
2313 |
/* confdefs.h. */ |
2314 |
_ACEOF |
2315 |
cat confdefs.h >>conftest.$ac_ext |
2316 |
cat >>conftest.$ac_ext <<_ACEOF |
2317 |
/* end confdefs.h. */ |
2318 |
|
2319 |
int |
2320 |
main () |
2321 |
{ |
2322 |
|
2323 |
; |
2324 |
return 0; |
2325 |
} |
2326 |
_ACEOF |
2327 |
rm -f conftest.o conftest.obj |
2328 |
if { (ac_try="$ac_compile" |
2329 |
case "(($ac_try" in |
2330 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2331 |
*) ac_try_echo=$ac_try;; |
2332 |
esac |
2333 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2334 |
(eval "$ac_compile") 2>&5 |
2335 |
ac_status=$? |
2336 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2337 |
(exit $ac_status); }; then |
2338 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2339 |
test -f "$ac_file" || continue; |
2340 |
case $ac_file in |
2341 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
2342 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2343 |
break;; |
2344 |
esac |
2345 |
done |
2346 |
else |
2347 |
echo "$as_me: failed program was:" >&5 |
2348 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2349 |
|
2350 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2351 |
See \`config.log' for more details." >&5 |
2352 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2353 |
See \`config.log' for more details." >&2;} |
2354 |
{ (exit 1); exit 1; }; } |
2355 |
fi |
2356 |
|
2357 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2358 |
fi |
2359 |
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2360 |
echo "${ECHO_T}$ac_cv_objext" >&6; } |
2361 |
OBJEXT=$ac_cv_objext |
2362 |
ac_objext=$OBJEXT |
2363 |
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2364 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
2365 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2366 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2367 |
else |
2368 |
cat >conftest.$ac_ext <<_ACEOF |
2369 |
/* confdefs.h. */ |
2370 |
_ACEOF |
2371 |
cat confdefs.h >>conftest.$ac_ext |
2372 |
cat >>conftest.$ac_ext <<_ACEOF |
2373 |
/* end confdefs.h. */ |
2374 |
|
2375 |
int |
2376 |
main () |
2377 |
{ |
2378 |
#ifndef __GNUC__ |
2379 |
choke me |
2380 |
#endif |
2381 |
|
2382 |
; |
2383 |
return 0; |
2384 |
} |
2385 |
_ACEOF |
2386 |
rm -f conftest.$ac_objext |
2387 |
if { (ac_try="$ac_compile" |
2388 |
case "(($ac_try" in |
2389 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2390 |
*) ac_try_echo=$ac_try;; |
2391 |
esac |
2392 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2393 |
(eval "$ac_compile") 2>conftest.er1 |
2394 |
ac_status=$? |
2395 |
grep -v '^ *+' conftest.er1 >conftest.err |
2396 |
rm -f conftest.er1 |
2397 |
cat conftest.err >&5 |
2398 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2399 |
(exit $ac_status); } && { |
2400 |
test -z "$ac_c_werror_flag" || |
2401 |
test ! -s conftest.err |
2402 |
} && test -s conftest.$ac_objext; then |
2403 |
ac_compiler_gnu=yes |
2404 |
else |
2405 |
echo "$as_me: failed program was:" >&5 |
2406 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2407 |
|
2408 |
ac_compiler_gnu=no |
2409 |
fi |
2410 |
|
2411 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2412 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2413 |
|
2414 |
fi |
2415 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2416 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
2417 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2418 |
ac_test_CFLAGS=${CFLAGS+set} |
2419 |
ac_save_CFLAGS=$CFLAGS |
2420 |
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2421 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
2422 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
2423 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2424 |
else |
2425 |
ac_save_c_werror_flag=$ac_c_werror_flag |
2426 |
ac_c_werror_flag=yes |
2427 |
ac_cv_prog_cc_g=no |
2428 |
CFLAGS="-g" |
2429 |
cat >conftest.$ac_ext <<_ACEOF |
2430 |
/* confdefs.h. */ |
2431 |
_ACEOF |
2432 |
cat confdefs.h >>conftest.$ac_ext |
2433 |
cat >>conftest.$ac_ext <<_ACEOF |
2434 |
/* end confdefs.h. */ |
2435 |
|
2436 |
int |
2437 |
main () |
2438 |
{ |
2439 |
|
2440 |
; |
2441 |
return 0; |
2442 |
} |
2443 |
_ACEOF |
2444 |
rm -f conftest.$ac_objext |
2445 |
if { (ac_try="$ac_compile" |
2446 |
case "(($ac_try" in |
2447 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2448 |
*) ac_try_echo=$ac_try;; |
2449 |
esac |
2450 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2451 |
(eval "$ac_compile") 2>conftest.er1 |
2452 |
ac_status=$? |
2453 |
grep -v '^ *+' conftest.er1 >conftest.err |
2454 |
rm -f conftest.er1 |
2455 |
cat conftest.err >&5 |
2456 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2457 |
(exit $ac_status); } && { |
2458 |
test -z "$ac_c_werror_flag" || |
2459 |
test ! -s conftest.err |
2460 |
} && test -s conftest.$ac_objext; then |
2461 |
ac_cv_prog_cc_g=yes |
2462 |
else |
2463 |
echo "$as_me: failed program was:" >&5 |
2464 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2465 |
|
2466 |
CFLAGS="" |
2467 |
cat >conftest.$ac_ext <<_ACEOF |
2468 |
/* confdefs.h. */ |
2469 |
_ACEOF |
2470 |
cat confdefs.h >>conftest.$ac_ext |
2471 |
cat >>conftest.$ac_ext <<_ACEOF |
2472 |
/* end confdefs.h. */ |
2473 |
|
2474 |
int |
2475 |
main () |
2476 |
{ |
2477 |
|
2478 |
; |
2479 |
return 0; |
2480 |
} |
2481 |
_ACEOF |
2482 |
rm -f conftest.$ac_objext |
2483 |
if { (ac_try="$ac_compile" |
2484 |
case "(($ac_try" in |
2485 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2486 |
*) ac_try_echo=$ac_try;; |
2487 |
esac |
2488 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2489 |
(eval "$ac_compile") 2>conftest.er1 |
2490 |
ac_status=$? |
2491 |
grep -v '^ *+' conftest.er1 >conftest.err |
2492 |
rm -f conftest.er1 |
2493 |
cat conftest.err >&5 |
2494 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2495 |
(exit $ac_status); } && { |
2496 |
test -z "$ac_c_werror_flag" || |
2497 |
test ! -s conftest.err |
2498 |
} && test -s conftest.$ac_objext; then |
2499 |
: |
2500 |
else |
2501 |
echo "$as_me: failed program was:" >&5 |
2502 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2503 |
|
2504 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2505 |
CFLAGS="-g" |
2506 |
cat >conftest.$ac_ext <<_ACEOF |
2507 |
/* confdefs.h. */ |
2508 |
_ACEOF |
2509 |
cat confdefs.h >>conftest.$ac_ext |
2510 |
cat >>conftest.$ac_ext <<_ACEOF |
2511 |
/* end confdefs.h. */ |
2512 |
|
2513 |
int |
2514 |
main () |
2515 |
{ |
2516 |
|
2517 |
; |
2518 |
return 0; |
2519 |
} |
2520 |
_ACEOF |
2521 |
rm -f conftest.$ac_objext |
2522 |
if { (ac_try="$ac_compile" |
2523 |
case "(($ac_try" in |
2524 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2525 |
*) ac_try_echo=$ac_try;; |
2526 |
esac |
2527 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2528 |
(eval "$ac_compile") 2>conftest.er1 |
2529 |
ac_status=$? |
2530 |
grep -v '^ *+' conftest.er1 >conftest.err |
2531 |
rm -f conftest.er1 |
2532 |
cat conftest.err >&5 |
2533 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2534 |
(exit $ac_status); } && { |
2535 |
test -z "$ac_c_werror_flag" || |
2536 |
test ! -s conftest.err |
2537 |
} && test -s conftest.$ac_objext; then |
2538 |
ac_cv_prog_cc_g=yes |
2539 |
else |
2540 |
echo "$as_me: failed program was:" >&5 |
2541 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2542 |
|
2543 |
|
2544 |
fi |
2545 |
|
2546 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2547 |
fi |
2548 |
|
2549 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2550 |
fi |
2551 |
|
2552 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2553 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2554 |
fi |
2555 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2556 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
2557 |
if test "$ac_test_CFLAGS" = set; then |
2558 |
CFLAGS=$ac_save_CFLAGS |
2559 |
elif test $ac_cv_prog_cc_g = yes; then |
2560 |
if test "$GCC" = yes; then |
2561 |
CFLAGS="-g -O2" |
2562 |
else |
2563 |
CFLAGS="-g" |
2564 |
fi |
2565 |
else |
2566 |
if test "$GCC" = yes; then |
2567 |
CFLAGS="-O2" |
2568 |
else |
2569 |
CFLAGS= |
2570 |
fi |
2571 |
fi |
2572 |
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2573 |
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
2574 |
if test "${ac_cv_prog_cc_c89+set}" = set; then |
2575 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2576 |
else |
2577 |
ac_cv_prog_cc_c89=no |
2578 |
ac_save_CC=$CC |
2579 |
cat >conftest.$ac_ext <<_ACEOF |
2580 |
/* confdefs.h. */ |
2581 |
_ACEOF |
2582 |
cat confdefs.h >>conftest.$ac_ext |
2583 |
cat >>conftest.$ac_ext <<_ACEOF |
2584 |
/* end confdefs.h. */ |
2585 |
#include <stdarg.h> |
2586 |
#include <stdio.h> |
2587 |
#include <sys/types.h> |
2588 |
#include <sys/stat.h> |
2589 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2590 |
struct buf { int x; }; |
2591 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2592 |
static char *e (p, i) |
2593 |
char **p; |
2594 |
int i; |
2595 |
{ |
2596 |
return p[i]; |
2597 |
} |
2598 |
static char *f (char * (*g) (char **, int), char **p, ...) |
2599 |
{ |
2600 |
char *s; |
2601 |
va_list v; |
2602 |
va_start (v,p); |
2603 |
s = g (p, va_arg (v,int)); |
2604 |
va_end (v); |
2605 |
return s; |
2606 |
} |
2607 |
|
2608 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2609 |
function prototypes and stuff, but not '\xHH' hex character constants. |
2610 |
These don't provoke an error unfortunately, instead are silently treated |
2611 |
as 'x'. The following induces an error, until -std is added to get |
2612 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2613 |
array size at least. It's necessary to write '\x00'==0 to get something |
2614 |
that's true only with -std. */ |
2615 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2616 |
|
2617 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2618 |
inside strings and character constants. */ |
2619 |
#define FOO(x) 'x' |
2620 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
2621 |
|
2622 |
int test (int i, double x); |
2623 |
struct s1 {int (*f) (int a);}; |
2624 |
struct s2 {int (*f) (double a);}; |
2625 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2626 |
int argc; |
2627 |
char **argv; |
2628 |
int |
2629 |
main () |
2630 |
{ |
2631 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2632 |
; |
2633 |
return 0; |
2634 |
} |
2635 |
_ACEOF |
2636 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2637 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2638 |
do |
2639 |
CC="$ac_save_CC $ac_arg" |
2640 |
rm -f conftest.$ac_objext |
2641 |
if { (ac_try="$ac_compile" |
2642 |
case "(($ac_try" in |
2643 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2644 |
*) ac_try_echo=$ac_try;; |
2645 |
esac |
2646 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2647 |
(eval "$ac_compile") 2>conftest.er1 |
2648 |
ac_status=$? |
2649 |
grep -v '^ *+' conftest.er1 >conftest.err |
2650 |
rm -f conftest.er1 |
2651 |
cat conftest.err >&5 |
2652 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2653 |
(exit $ac_status); } && { |
2654 |
test -z "$ac_c_werror_flag" || |
2655 |
test ! -s conftest.err |
2656 |
} && test -s conftest.$ac_objext; then |
2657 |
ac_cv_prog_cc_c89=$ac_arg |
2658 |
else |
2659 |
echo "$as_me: failed program was:" >&5 |
2660 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2661 |
|
2662 |
|
2663 |
fi |
2664 |
|
2665 |
rm -f core conftest.err conftest.$ac_objext |
2666 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
2667 |
done |
2668 |
rm -f conftest.$ac_ext |
2669 |
CC=$ac_save_CC |
2670 |
|
2671 |
fi |
2672 |
# AC_CACHE_VAL |
2673 |
case "x$ac_cv_prog_cc_c89" in |
2674 |
x) |
2675 |
{ echo "$as_me:$LINENO: result: none needed" >&5 |
2676 |
echo "${ECHO_T}none needed" >&6; } ;; |
2677 |
xno) |
2678 |
{ echo "$as_me:$LINENO: result: unsupported" >&5 |
2679 |
echo "${ECHO_T}unsupported" >&6; } ;; |
2680 |
*) |
2681 |
CC="$CC $ac_cv_prog_cc_c89" |
2682 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
2683 |
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
2684 |
esac |
2685 |
|
2686 |
|
2687 |
ac_ext=c |
2688 |
ac_cpp='$CPP $CPPFLAGS' |
2689 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2690 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2691 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2692 |
|
2693 |
ac_ext=c |
2694 |
ac_cpp='$CPP $CPPFLAGS' |
2695 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2696 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2697 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2698 |
|
2699 |
|
2700 |
CFLAGS="$OLD_CFLAGS" |
2701 |
|
2702 |
|
2703 |
if test "$ac_cv_c_compiler_gnu" != yes; then |
2704 |
|
2705 |
SGS=no |
2706 |
{ echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2707 |
echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } |
2708 |
case `$CC -version 2>&1` in |
2709 |
*TenDRA*) |
2710 |
{ echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2711 |
echo "${ECHO_T}yes, TenDRA" >&6; } |
2712 |
IRC_CFLAGS="" |
2713 |
CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -Ysystem" |
2714 |
SGS=yes |
2715 |
TenDRA=yes |
2716 |
;; |
2717 |
*MIPSpro*) |
2718 |
{ echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2719 |
echo "${ECHO_T}yes, MIPSpro" >&6; } |
2720 |
MIPSpro=yes |
2721 |
SGS=yes |
2722 |
;; |
2723 |
*) |
2724 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2725 |
echo "${ECHO_T}no" >&6; } |
2726 |
TenDRA=no |
2727 |
MIPSpro=no |
2728 |
;; |
2729 |
esac |
2730 |
|
2731 |
{ echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2732 |
echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } |
2733 |
case `$CC -V 2>&1` in |
2734 |
*Sun*WorkShop* | *Forte*Developer* | *Sun*C*) |
2735 |
{ echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2736 |
echo "${ECHO_T}Sun Workshop/Forte" >&6; } |
2737 |
IRC_CFLAGS="-xO3 -xdepend -xinline=_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2738 |
SunWorkShop=yes |
2739 |
SGS=yes |
2740 |
;; |
2741 |
*Tru64*) |
2742 |
{ echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2743 |
echo "${ECHO_T}Tru64 cc" >&6; } |
2744 |
IRC_CFLAGS="" |
2745 |
CPPFLAGS="-I/usr/local/include" |
2746 |
Tru=yes |
2747 |
;; |
2748 |
*HP*ANSI*) |
2749 |
{ echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2750 |
echo "${ECHO_T}HPUX cc" >&6; } |
2751 |
HPUX=yes |
2752 |
IRC_CFLAGS="+e" |
2753 |
;; |
2754 |
*) |
2755 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2756 |
echo "${ECHO_T}no" >&6; } |
2757 |
;; |
2758 |
esac |
2759 |
|
2760 |
fi |
2761 |
|
2762 |
{ echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris or HPUX" >&5 |
2763 |
echo $ECHO_N "checking uname -s for Cygwin, Solaris or HPUX... $ECHO_C" >&6; } |
2764 |
case `uname -s` in |
2765 |
HP-UX*) |
2766 |
|
2767 |
if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then |
2768 |
{ echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2769 |
echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } |
2770 |
IRC_CFLAGS="$IRC_CFLAGS +e" |
2771 |
HPUX=yes |
2772 |
else |
2773 |
{ echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2774 |
echo "${ECHO_T}already using newer HPUX" >&6; } |
2775 |
fi |
2776 |
;; |
2777 |
CYGWIN*) |
2778 |
{ echo "$as_me:$LINENO: result: Cygwin" >&5 |
2779 |
echo "${ECHO_T}Cygwin" >&6; } |
2780 |
CYGWIN=yes |
2781 |
;; |
2782 |
SunOS*) |
2783 |
{ echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2784 |
echo "${ECHO_T}SunOS or Solaris" >&6; } |
2785 |
|
2786 |
cat >>confdefs.h <<\_ACEOF |
2787 |
#define __EXTENSIONS__ 1 |
2788 |
_ACEOF |
2789 |
|
2790 |
;; |
2791 |
*) |
2792 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2793 |
echo "${ECHO_T}no" >&6; } |
2794 |
;; |
2795 |
esac |
2796 |
|
2797 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
2798 |
{ echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2799 |
echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } |
2800 |
|
2801 |
if expr "`$CC -v 2>&1 | tail -1`" : ".*Apple" >/dev/null; then |
2802 |
AppleGCC=yes |
2803 |
else |
2804 |
AppleGCC=no |
2805 |
fi |
2806 |
|
2807 |
{ echo "$as_me:$LINENO: result: $AppleGCC" >&5 |
2808 |
echo "${ECHO_T}$AppleGCC" >&6; } |
2809 |
|
2810 |
IRC_CFLAGS="$IRC_CFLAGS -Wall -O0" |
2811 |
fi |
2812 |
|
2813 |
if test "$ac_cv_prog_cc_g" = yes; then |
2814 |
if test "$Tru" = yes; then |
2815 |
IRC_CFLAGS="$IRC_CFLAGS -g3" |
2816 |
else |
2817 |
IRC_CFLAGS="$IRC_CFLAGS -g" |
2818 |
fi |
2819 |
fi |
2820 |
|
2821 |
{ echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2822 |
echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } |
2823 |
if test "$SGS" = "yes"; then |
2824 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2825 |
echo "${ECHO_T}yes" >&6; } |
2826 |
else |
2827 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2828 |
echo "${ECHO_T}no" >&6; } |
2829 |
fi |
2830 |
|
2831 |
# Extract the first word of "mkdep", so it can be a program name with args. |
2832 |
set dummy mkdep; ac_word=$2 |
2833 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2834 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2835 |
if test "${ac_cv_path_MKDEP+set}" = set; then |
2836 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2837 |
else |
2838 |
case $MKDEP in |
2839 |
[\\/]* | ?:[\\/]*) |
2840 |
ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. |
2841 |
;; |
2842 |
*) |
2843 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2844 |
for as_dir in $PATH |
2845 |
do |
2846 |
IFS=$as_save_IFS |
2847 |
test -z "$as_dir" && as_dir=. |
2848 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2849 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2850 |
ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2851 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2852 |
break 2 |
2853 |
fi |
2854 |
done |
2855 |
done |
2856 |
IFS=$as_save_IFS |
2857 |
|
2858 |
;; |
2859 |
esac |
2860 |
fi |
2861 |
MKDEP=$ac_cv_path_MKDEP |
2862 |
if test -n "$MKDEP"; then |
2863 |
{ echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2864 |
echo "${ECHO_T}$MKDEP" >&6; } |
2865 |
else |
2866 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2867 |
echo "${ECHO_T}no" >&6; } |
2868 |
fi |
2869 |
|
2870 |
|
2871 |
# Extract the first word of "makedepend", so it can be a program name with args. |
2872 |
set dummy makedepend; ac_word=$2 |
2873 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2874 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2875 |
if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2876 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2877 |
else |
2878 |
case $MAKEDEPEND in |
2879 |
[\\/]* | ?:[\\/]*) |
2880 |
ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. |
2881 |
;; |
2882 |
*) |
2883 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2884 |
for as_dir in $PATH |
2885 |
do |
2886 |
IFS=$as_save_IFS |
2887 |
test -z "$as_dir" && as_dir=. |
2888 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2889 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2890 |
ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2891 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2892 |
break 2 |
2893 |
fi |
2894 |
done |
2895 |
done |
2896 |
IFS=$as_save_IFS |
2897 |
|
2898 |
;; |
2899 |
esac |
2900 |
fi |
2901 |
MAKEDEPEND=$ac_cv_path_MAKEDEPEND |
2902 |
if test -n "$MAKEDEPEND"; then |
2903 |
{ echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2904 |
echo "${ECHO_T}$MAKEDEPEND" >&6; } |
2905 |
else |
2906 |
{ echo "$as_me:$LINENO: result: no" >&5 |
2907 |
echo "${ECHO_T}no" >&6; } |
2908 |
fi |
2909 |
|
2910 |
|
2911 |
|
2912 |
{ echo "$as_me:$LINENO: checking how to generate dependency info" >&5 |
2913 |
echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } |
2914 |
|
2915 |
STDOUT="> .depend" |
2916 |
|
2917 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
2918 |
{ echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2919 |
echo "${ECHO_T}gcc -MM" >&6; } |
2920 |
MKDEP="$CC -MM" |
2921 |
elif test ! -z "$MKDEP"; then |
2922 |
{ echo "$as_me:$LINENO: result: mkdep" >&5 |
2923 |
echo "${ECHO_T}mkdep" >&6; } |
2924 |
|
2925 |
if test -z "$Tru"; then |
2926 |
STDOUT="" |
2927 |
else |
2928 |
STDOUT=" 2> /dev/null" |
2929 |
fi |
2930 |
elif test "$SunWorkShop" = yes; then |
2931 |
{ echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2932 |
echo "${ECHO_T}$CC -xM" >&6; } |
2933 |
MKDEP="$CC -xM" |
2934 |
STDOUT="> .depend 2> /dev/null" |
2935 |
elif test ! -z "$MAKEDEPEND"; then |
2936 |
{ echo "$as_me:$LINENO: result: makedepend" >&5 |
2937 |
echo "${ECHO_T}makedepend" >&6; } |
2938 |
MKDEP="$MAKEDEPEND -f-" |
2939 |
else |
2940 |
{ echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2941 |
echo "${ECHO_T}nothing suitable.. forget it!" >&6; } |
2942 |
MKDEP=":" |
2943 |
fi |
2944 |
|
2945 |
|
2946 |
|
2947 |
|
2948 |
{ echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2949 |
echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } |
2950 |
if test -c /dev/null ; then |
2951 |
|
2952 |
cat >>confdefs.h <<\_ACEOF |
2953 |
#define PATH_DEVNULL "/dev/null" |
2954 |
_ACEOF |
2955 |
|
2956 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
2957 |
echo "${ECHO_T}yes" >&6; } |
2958 |
else |
2959 |
|
2960 |
cat >>confdefs.h <<\_ACEOF |
2961 |
#define PATH_DEVNULL "devnull.log" |
2962 |
_ACEOF |
2963 |
|
2964 |
{ echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
2965 |
echo "${ECHO_T}no - using devnull.log" >&6; } |
2966 |
fi |
2967 |
|
2968 |
if test ! -z "$CFLAGS"; then |
2969 |
IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" |
2970 |
fi |
2971 |
|
2972 |
|
2973 |
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2974 |
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
2975 |
if test "${ac_cv_search_strerror+set}" = set; then |
2976 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2977 |
else |
2978 |
ac_func_search_save_LIBS=$LIBS |
2979 |
cat >conftest.$ac_ext <<_ACEOF |
2980 |
/* confdefs.h. */ |
2981 |
_ACEOF |
2982 |
cat confdefs.h >>conftest.$ac_ext |
2983 |
cat >>conftest.$ac_ext <<_ACEOF |
2984 |
/* end confdefs.h. */ |
2985 |
|
2986 |
/* Override any GCC internal prototype to avoid an error. |
2987 |
Use char because int might match the return type of a GCC |
2988 |
builtin and then its argument prototype would still apply. */ |
2989 |
#ifdef __cplusplus |
2990 |
extern "C" |
2991 |
#endif |
2992 |
char strerror (); |
2993 |
int |
2994 |
main () |
2995 |
{ |
2996 |
return strerror (); |
2997 |
; |
2998 |
return 0; |
2999 |
} |
3000 |
_ACEOF |
3001 |
for ac_lib in '' cposix; do |
3002 |
if test -z "$ac_lib"; then |
3003 |
ac_res="none required" |
3004 |
else |
3005 |
ac_res=-l$ac_lib |
3006 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3007 |
fi |
3008 |
rm -f conftest.$ac_objext conftest$ac_exeext |
3009 |
if { (ac_try="$ac_link" |
3010 |
case "(($ac_try" in |
3011 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3012 |
*) ac_try_echo=$ac_try;; |
3013 |
esac |
3014 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3015 |
(eval "$ac_link") 2>conftest.er1 |
3016 |
ac_status=$? |
3017 |
grep -v '^ *+' conftest.er1 >conftest.err |
3018 |
rm -f conftest.er1 |
3019 |
cat conftest.err >&5 |
3020 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3021 |
(exit $ac_status); } && { |
3022 |
test -z "$ac_c_werror_flag" || |
3023 |
test ! -s conftest.err |
3024 |
} && test -s conftest$ac_exeext && |
3025 |
$as_test_x conftest$ac_exeext; then |
3026 |
ac_cv_search_strerror=$ac_res |
3027 |
else |
3028 |
echo "$as_me: failed program was:" >&5 |
3029 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3030 |
|
3031 |
|
3032 |
fi |
3033 |
|
3034 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3035 |
conftest$ac_exeext |
3036 |
if test "${ac_cv_search_strerror+set}" = set; then |
3037 |
break |
3038 |
fi |
3039 |
done |
3040 |
if test "${ac_cv_search_strerror+set}" = set; then |
3041 |
: |
3042 |
else |
3043 |
ac_cv_search_strerror=no |
3044 |
fi |
3045 |
rm conftest.$ac_ext |
3046 |
LIBS=$ac_func_search_save_LIBS |
3047 |
fi |
3048 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3049 |
echo "${ECHO_T}$ac_cv_search_strerror" >&6; } |
3050 |
ac_res=$ac_cv_search_strerror |
3051 |
if test "$ac_res" != no; then |
3052 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3053 |
|
3054 |
fi |
3055 |
|
3056 |
{ echo "$as_me:$LINENO: checking for inline" >&5 |
3057 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
3058 |
if test "${ac_cv_c_inline+set}" = set; then |
3059 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3060 |
else |
3061 |
ac_cv_c_inline=no |
3062 |
for ac_kw in inline __inline__ __inline; do |
3063 |
cat >conftest.$ac_ext <<_ACEOF |
3064 |
/* confdefs.h. */ |
3065 |
_ACEOF |
3066 |
cat confdefs.h >>conftest.$ac_ext |
3067 |
cat >>conftest.$ac_ext <<_ACEOF |
3068 |
/* end confdefs.h. */ |
3069 |
#ifndef __cplusplus |
3070 |
typedef int foo_t; |
3071 |
static $ac_kw foo_t static_foo () {return 0; } |
3072 |
$ac_kw foo_t foo () {return 0; } |
3073 |
#endif |
3074 |
|
3075 |
_ACEOF |
3076 |
rm -f conftest.$ac_objext |
3077 |
if { (ac_try="$ac_compile" |
3078 |
case "(($ac_try" in |
3079 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3080 |
*) ac_try_echo=$ac_try;; |
3081 |
esac |
3082 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3083 |
(eval "$ac_compile") 2>conftest.er1 |
3084 |
ac_status=$? |
3085 |
grep -v '^ *+' conftest.er1 >conftest.err |
3086 |
rm -f conftest.er1 |
3087 |
cat conftest.err >&5 |
3088 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3089 |
(exit $ac_status); } && { |
3090 |
test -z "$ac_c_werror_flag" || |
3091 |
test ! -s conftest.err |
3092 |
} && test -s conftest.$ac_objext; then |
3093 |
ac_cv_c_inline=$ac_kw |
3094 |
else |
3095 |
echo "$as_me: failed program was:" >&5 |
3096 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3097 |
|
3098 |
|
3099 |
fi |
3100 |
|
3101 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3102 |
test "$ac_cv_c_inline" != no && break |
3103 |
done |
3104 |
|
3105 |
fi |
3106 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3107 |
echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
3108 |
|
3109 |
|
3110 |
case $ac_cv_c_inline in |
3111 |
inline | yes) ;; |
3112 |
*) |
3113 |
case $ac_cv_c_inline in |
3114 |
no) ac_val=;; |
3115 |
*) ac_val=$ac_cv_c_inline;; |
3116 |
esac |
3117 |
cat >>confdefs.h <<_ACEOF |
3118 |
#ifndef __cplusplus |
3119 |
#define inline $ac_val |
3120 |
#endif |
3121 |
_ACEOF |
3122 |
;; |
3123 |
esac |
3124 |
|
3125 |
ac_ext=c |
3126 |
ac_cpp='$CPP $CPPFLAGS' |
3127 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3128 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3129 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3130 |
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3131 |
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
3132 |
# On Suns, sometimes $CPP names a directory. |
3133 |
if test -n "$CPP" && test -d "$CPP"; then |
3134 |
CPP= |
3135 |
fi |
3136 |
if test -z "$CPP"; then |
3137 |
if test "${ac_cv_prog_CPP+set}" = set; then |
3138 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3139 |
else |
3140 |
# Double quotes because CPP needs to be expanded |
3141 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
3142 |
do |
3143 |
ac_preproc_ok=false |
3144 |
for ac_c_preproc_warn_flag in '' yes |
3145 |
do |
3146 |
# Use a header file that comes with gcc, so configuring glibc |
3147 |
# with a fresh cross-compiler works. |
3148 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3149 |
# <limits.h> exists even on freestanding compilers. |
3150 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3151 |
# not just through cpp. "Syntax error" is here to catch this case. |
3152 |
cat >conftest.$ac_ext <<_ACEOF |
3153 |
/* confdefs.h. */ |
3154 |
_ACEOF |
3155 |
cat confdefs.h >>conftest.$ac_ext |
3156 |
cat >>conftest.$ac_ext <<_ACEOF |
3157 |
/* end confdefs.h. */ |
3158 |
#ifdef __STDC__ |
3159 |
# include <limits.h> |
3160 |
#else |
3161 |
# include <assert.h> |
3162 |
#endif |
3163 |
Syntax error |
3164 |
_ACEOF |
3165 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3166 |
case "(($ac_try" in |
3167 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3168 |
*) ac_try_echo=$ac_try;; |
3169 |
esac |
3170 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3171 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3172 |
ac_status=$? |
3173 |
grep -v '^ *+' conftest.er1 >conftest.err |
3174 |
rm -f conftest.er1 |
3175 |
cat conftest.err >&5 |
3176 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3177 |
(exit $ac_status); } >/dev/null && { |
3178 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3179 |
test ! -s conftest.err |
3180 |
}; then |
3181 |
: |
3182 |
else |
3183 |
echo "$as_me: failed program was:" >&5 |
3184 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3185 |
|
3186 |
# Broken: fails on valid input. |
3187 |
continue |
3188 |
fi |
3189 |
|
3190 |
rm -f conftest.err conftest.$ac_ext |
3191 |
|
3192 |
# OK, works on sane cases. Now check whether nonexistent headers |
3193 |
# can be detected and how. |
3194 |
cat >conftest.$ac_ext <<_ACEOF |
3195 |
/* confdefs.h. */ |
3196 |
_ACEOF |
3197 |
cat confdefs.h >>conftest.$ac_ext |
3198 |
cat >>conftest.$ac_ext <<_ACEOF |
3199 |
/* end confdefs.h. */ |
3200 |
#include <ac_nonexistent.h> |
3201 |
_ACEOF |
3202 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3203 |
case "(($ac_try" in |
3204 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3205 |
*) ac_try_echo=$ac_try;; |
3206 |
esac |
3207 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3208 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3209 |
ac_status=$? |
3210 |
grep -v '^ *+' conftest.er1 >conftest.err |
3211 |
rm -f conftest.er1 |
3212 |
cat conftest.err >&5 |
3213 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3214 |
(exit $ac_status); } >/dev/null && { |
3215 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3216 |
test ! -s conftest.err |
3217 |
}; then |
3218 |
# Broken: success on invalid input. |
3219 |
continue |
3220 |
else |
3221 |
echo "$as_me: failed program was:" >&5 |
3222 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3223 |
|
3224 |
# Passes both tests. |
3225 |
ac_preproc_ok=: |
3226 |
break |
3227 |
fi |
3228 |
|
3229 |
rm -f conftest.err conftest.$ac_ext |
3230 |
|
3231 |
done |
3232 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3233 |
rm -f conftest.err conftest.$ac_ext |
3234 |
if $ac_preproc_ok; then |
3235 |
break |
3236 |
fi |
3237 |
|
3238 |
done |
3239 |
ac_cv_prog_CPP=$CPP |
3240 |
|
3241 |
fi |
3242 |
CPP=$ac_cv_prog_CPP |
3243 |
else |
3244 |
ac_cv_prog_CPP=$CPP |
3245 |
fi |
3246 |
{ echo "$as_me:$LINENO: result: $CPP" >&5 |
3247 |
echo "${ECHO_T}$CPP" >&6; } |
3248 |
ac_preproc_ok=false |
3249 |
for ac_c_preproc_warn_flag in '' yes |
3250 |
do |
3251 |
# Use a header file that comes with gcc, so configuring glibc |
3252 |
# with a fresh cross-compiler works. |
3253 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3254 |
# <limits.h> exists even on freestanding compilers. |
3255 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
3256 |
# not just through cpp. "Syntax error" is here to catch this case. |
3257 |
cat >conftest.$ac_ext <<_ACEOF |
3258 |
/* confdefs.h. */ |
3259 |
_ACEOF |
3260 |
cat confdefs.h >>conftest.$ac_ext |
3261 |
cat >>conftest.$ac_ext <<_ACEOF |
3262 |
/* end confdefs.h. */ |
3263 |
#ifdef __STDC__ |
3264 |
# include <limits.h> |
3265 |
#else |
3266 |
# include <assert.h> |
3267 |
#endif |
3268 |
Syntax error |
3269 |
_ACEOF |
3270 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3271 |
case "(($ac_try" in |
3272 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3273 |
*) ac_try_echo=$ac_try;; |
3274 |
esac |
3275 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3276 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3277 |
ac_status=$? |
3278 |
grep -v '^ *+' conftest.er1 >conftest.err |
3279 |
rm -f conftest.er1 |
3280 |
cat conftest.err >&5 |
3281 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3282 |
(exit $ac_status); } >/dev/null && { |
3283 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3284 |
test ! -s conftest.err |
3285 |
}; then |
3286 |
: |
3287 |
else |
3288 |
echo "$as_me: failed program was:" >&5 |
3289 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3290 |
|
3291 |
# Broken: fails on valid input. |
3292 |
continue |
3293 |
fi |
3294 |
|
3295 |
rm -f conftest.err conftest.$ac_ext |
3296 |
|
3297 |
# OK, works on sane cases. Now check whether nonexistent headers |
3298 |
# can be detected and how. |
3299 |
cat >conftest.$ac_ext <<_ACEOF |
3300 |
/* confdefs.h. */ |
3301 |
_ACEOF |
3302 |
cat confdefs.h >>conftest.$ac_ext |
3303 |
cat >>conftest.$ac_ext <<_ACEOF |
3304 |
/* end confdefs.h. */ |
3305 |
#include <ac_nonexistent.h> |
3306 |
_ACEOF |
3307 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
3308 |
case "(($ac_try" in |
3309 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3310 |
*) ac_try_echo=$ac_try;; |
3311 |
esac |
3312 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3313 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
3314 |
ac_status=$? |
3315 |
grep -v '^ *+' conftest.er1 >conftest.err |
3316 |
rm -f conftest.er1 |
3317 |
cat conftest.err >&5 |
3318 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3319 |
(exit $ac_status); } >/dev/null && { |
3320 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
3321 |
test ! -s conftest.err |
3322 |
}; then |
3323 |
# Broken: success on invalid input. |
3324 |
continue |
3325 |
else |
3326 |
echo "$as_me: failed program was:" >&5 |
3327 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3328 |
|
3329 |
# Passes both tests. |
3330 |
ac_preproc_ok=: |
3331 |
break |
3332 |
fi |
3333 |
|
3334 |
rm -f conftest.err conftest.$ac_ext |
3335 |
|
3336 |
done |
3337 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3338 |
rm -f conftest.err conftest.$ac_ext |
3339 |
if $ac_preproc_ok; then |
3340 |
: |
3341 |
else |
3342 |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3343 |
See \`config.log' for more details." >&5 |
3344 |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
3345 |
See \`config.log' for more details." >&2;} |
3346 |
{ (exit 1); exit 1; }; } |
3347 |
fi |
3348 |
|
3349 |
ac_ext=c |
3350 |
ac_cpp='$CPP $CPPFLAGS' |
3351 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3352 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3353 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3354 |
|
3355 |
|
3356 |
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3357 |
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3358 |
if test "${ac_cv_path_GREP+set}" = set; then |
3359 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3360 |
else |
3361 |
# Extract the first word of "grep ggrep" to use in msg output |
3362 |
if test -z "$GREP"; then |
3363 |
set dummy grep ggrep; ac_prog_name=$2 |
3364 |
if test "${ac_cv_path_GREP+set}" = set; then |
3365 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3366 |
else |
3367 |
ac_path_GREP_found=false |
3368 |
# Loop through the user's path and test for each of PROGNAME-LIST |
3369 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3370 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3371 |
do |
3372 |
IFS=$as_save_IFS |
3373 |
test -z "$as_dir" && as_dir=. |
3374 |
for ac_prog in grep ggrep; do |
3375 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3376 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3377 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3378 |
# Check for GNU ac_path_GREP and select it if it is found. |
3379 |
# Check for GNU $ac_path_GREP |
3380 |
case `"$ac_path_GREP" --version 2>&1` in |
3381 |
*GNU*) |
3382 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3383 |
*) |
3384 |
ac_count=0 |
3385 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3386 |
while : |
3387 |
do |
3388 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
3389 |
mv "conftest.tmp" "conftest.in" |
3390 |
cp "conftest.in" "conftest.nl" |
3391 |
echo 'GREP' >> "conftest.nl" |
3392 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3393 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3394 |
ac_count=`expr $ac_count + 1` |
3395 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3396 |
# Best one so far, save it but keep looking for a better one |
3397 |
ac_cv_path_GREP="$ac_path_GREP" |
3398 |
ac_path_GREP_max=$ac_count |
3399 |
fi |
3400 |
# 10*(2^10) chars as input seems more than enough |
3401 |
test $ac_count -gt 10 && break |
3402 |
done |
3403 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3404 |
esac |
3405 |
|
3406 |
|
3407 |
$ac_path_GREP_found && break 3 |
3408 |
done |
3409 |
done |
3410 |
|
3411 |
done |
3412 |
IFS=$as_save_IFS |
3413 |
|
3414 |
|
3415 |
fi |
3416 |
|
3417 |
GREP="$ac_cv_path_GREP" |
3418 |
if test -z "$GREP"; then |
3419 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3420 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3421 |
{ (exit 1); exit 1; }; } |
3422 |
fi |
3423 |
|
3424 |
else |
3425 |
ac_cv_path_GREP=$GREP |
3426 |
fi |
3427 |
|
3428 |
|
3429 |
fi |
3430 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3431 |
echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3432 |
GREP="$ac_cv_path_GREP" |
3433 |
|
3434 |
|
3435 |
{ echo "$as_me:$LINENO: checking for egrep" >&5 |
3436 |
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3437 |
if test "${ac_cv_path_EGREP+set}" = set; then |
3438 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3439 |
else |
3440 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3441 |
then ac_cv_path_EGREP="$GREP -E" |
3442 |
else |
3443 |
# Extract the first word of "egrep" to use in msg output |
3444 |
if test -z "$EGREP"; then |
3445 |
set dummy egrep; ac_prog_name=$2 |
3446 |
if test "${ac_cv_path_EGREP+set}" = set; then |
3447 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3448 |
else |
3449 |
ac_path_EGREP_found=false |
3450 |
# Loop through the user's path and test for each of PROGNAME-LIST |
3451 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3452 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3453 |
do |
3454 |
IFS=$as_save_IFS |
3455 |
test -z "$as_dir" && as_dir=. |
3456 |
for ac_prog in egrep; do |
3457 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3458 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3459 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3460 |
# Check for GNU ac_path_EGREP and select it if it is found. |
3461 |
# Check for GNU $ac_path_EGREP |
3462 |
case `"$ac_path_EGREP" --version 2>&1` in |
3463 |
*GNU*) |
3464 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3465 |
*) |
3466 |
ac_count=0 |
3467 |
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3468 |
while : |
3469 |
do |
3470 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
3471 |
mv "conftest.tmp" "conftest.in" |
3472 |
cp "conftest.in" "conftest.nl" |
3473 |
echo 'EGREP' >> "conftest.nl" |
3474 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3475 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3476 |
ac_count=`expr $ac_count + 1` |
3477 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3478 |
# Best one so far, save it but keep looking for a better one |
3479 |
ac_cv_path_EGREP="$ac_path_EGREP" |
3480 |
ac_path_EGREP_max=$ac_count |
3481 |
fi |
3482 |
# 10*(2^10) chars as input seems more than enough |
3483 |
test $ac_count -gt 10 && break |
3484 |
done |
3485 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3486 |
esac |
3487 |
|
3488 |
|
3489 |
$ac_path_EGREP_found && break 3 |
3490 |
done |
3491 |
done |
3492 |
|
3493 |
done |
3494 |
IFS=$as_save_IFS |
3495 |
|
3496 |
|
3497 |
fi |
3498 |
|
3499 |
EGREP="$ac_cv_path_EGREP" |
3500 |
if test -z "$EGREP"; then |
3501 |
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3502 |
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3503 |
{ (exit 1); exit 1; }; } |
3504 |
fi |
3505 |
|
3506 |
else |
3507 |
ac_cv_path_EGREP=$EGREP |
3508 |
fi |
3509 |
|
3510 |
|
3511 |
fi |
3512 |
fi |
3513 |
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3514 |
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3515 |
EGREP="$ac_cv_path_EGREP" |
3516 |
|
3517 |
|
3518 |
if test $ac_cv_c_compiler_gnu = yes; then |
3519 |
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3520 |
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } |
3521 |
if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3522 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3523 |
else |
3524 |
ac_pattern="Autoconf.*'x'" |
3525 |
cat >conftest.$ac_ext <<_ACEOF |
3526 |
/* confdefs.h. */ |
3527 |
_ACEOF |
3528 |
cat confdefs.h >>conftest.$ac_ext |
3529 |
cat >>conftest.$ac_ext <<_ACEOF |
3530 |
/* end confdefs.h. */ |
3531 |
#include <sgtty.h> |
3532 |
Autoconf TIOCGETP |
3533 |
_ACEOF |
3534 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3535 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then |
3536 |
ac_cv_prog_gcc_traditional=yes |
3537 |
else |
3538 |
ac_cv_prog_gcc_traditional=no |
3539 |
fi |
3540 |
rm -f conftest* |
3541 |
|
3542 |
|
3543 |
if test $ac_cv_prog_gcc_traditional = no; then |
3544 |
cat >conftest.$ac_ext <<_ACEOF |
3545 |
/* confdefs.h. */ |
3546 |
_ACEOF |
3547 |
cat confdefs.h >>conftest.$ac_ext |
3548 |
cat >>conftest.$ac_ext <<_ACEOF |
3549 |
/* end confdefs.h. */ |
3550 |
#include <termio.h> |
3551 |
Autoconf TCGETA |
3552 |
_ACEOF |
3553 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3554 |
$EGREP "$ac_pattern" >/dev/null 2>&1; then |
3555 |
ac_cv_prog_gcc_traditional=yes |
3556 |
fi |
3557 |
rm -f conftest* |
3558 |
|
3559 |
fi |
3560 |
fi |
3561 |
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3562 |
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } |
3563 |
if test $ac_cv_prog_gcc_traditional = yes; then |
3564 |
CC="$CC -traditional" |
3565 |
fi |
3566 |
fi |
3567 |
|
3568 |
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3569 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
3570 |
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
3571 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
3572 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3573 |
else |
3574 |
cat >conftest.make <<\_ACEOF |
3575 |
SHELL = /bin/sh |
3576 |
all: |
3577 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
3578 |
_ACEOF |
3579 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3580 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3581 |
*@@@%%%=?*=@@@%%%*) |
3582 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
3583 |
*) |
3584 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
3585 |
esac |
3586 |
rm -f conftest.make |
3587 |
fi |
3588 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3589 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
3590 |
echo "${ECHO_T}yes" >&6; } |
3591 |
SET_MAKE= |
3592 |
else |
3593 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3594 |
echo "${ECHO_T}no" >&6; } |
3595 |
SET_MAKE="MAKE=${MAKE-make}" |
3596 |
fi |
3597 |
|
3598 |
ac_aux_dir= |
3599 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3600 |
if test -f "$ac_dir/install-sh"; then |
3601 |
ac_aux_dir=$ac_dir |
3602 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
3603 |
break |
3604 |
elif test -f "$ac_dir/install.sh"; then |
3605 |
ac_aux_dir=$ac_dir |
3606 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
3607 |
break |
3608 |
elif test -f "$ac_dir/shtool"; then |
3609 |
ac_aux_dir=$ac_dir |
3610 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
3611 |
break |
3612 |
fi |
3613 |
done |
3614 |
if test -z "$ac_aux_dir"; then |
3615 |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3616 |
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
3617 |
{ (exit 1); exit 1; }; } |
3618 |
fi |
3619 |
|
3620 |
# These three variables are undocumented and unsupported, |
3621 |
# and are intended to be withdrawn in a future Autoconf release. |
3622 |
# They can cause serious problems if a builder's source tree is in a directory |
3623 |
# whose full name contains unusual characters. |
3624 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
3625 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
3626 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
3627 |
|
3628 |
|
3629 |
# Find a good install program. We prefer a C program (faster), |
3630 |
# so one script is as good as another. But avoid the broken or |
3631 |
# incompatible versions: |
3632 |
# SysV /etc/install, /usr/sbin/install |
3633 |
# SunOS /usr/etc/install |
3634 |
# IRIX /sbin/install |
3635 |
# AIX /bin/install |
3636 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
3637 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3638 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3639 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3640 |
# OS/2's system install, which has a completely different semantic |
3641 |
# ./install, which can be erroneously created by make from ./install.sh. |
3642 |
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3643 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
3644 |
if test -z "$INSTALL"; then |
3645 |
if test "${ac_cv_path_install+set}" = set; then |
3646 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3647 |
else |
3648 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3649 |
for as_dir in $PATH |
3650 |
do |
3651 |
IFS=$as_save_IFS |
3652 |
test -z "$as_dir" && as_dir=. |
3653 |
# Account for people who put trailing slashes in PATH elements. |
3654 |
case $as_dir/ in |
3655 |
./ | .// | /cC/* | \ |
3656 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3657 |
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3658 |
/usr/ucb/* ) ;; |
3659 |
*) |
3660 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
3661 |
# Don't use installbsd from OSF since it installs stuff as root |
3662 |
# by default. |
3663 |
for ac_prog in ginstall scoinst install; do |
3664 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3665 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
3666 |
if test $ac_prog = install && |
3667 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3668 |
# AIX install. It has an incompatible calling convention. |
3669 |
: |
3670 |
elif test $ac_prog = install && |
3671 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3672 |
# program-specific install script used by HP pwplus--don't use. |
3673 |
: |
3674 |
else |
3675 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3676 |
break 3 |
3677 |
fi |
3678 |
fi |
3679 |
done |
3680 |
done |
3681 |
;; |
3682 |
esac |
3683 |
done |
3684 |
IFS=$as_save_IFS |
3685 |
|
3686 |
|
3687 |
fi |
3688 |
if test "${ac_cv_path_install+set}" = set; then |
3689 |
INSTALL=$ac_cv_path_install |
3690 |
else |
3691 |
# As a last resort, use the slow shell script. Don't cache a |
3692 |
# value for INSTALL within a source directory, because that will |
3693 |
# break other packages using the cache if that directory is |
3694 |
# removed, or if the value is a relative name. |
3695 |
INSTALL=$ac_install_sh |
3696 |
fi |
3697 |
fi |
3698 |
{ echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3699 |
echo "${ECHO_T}$INSTALL" >&6; } |
3700 |
|
3701 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3702 |
# It thinks the first close brace ends the variable substitution. |
3703 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3704 |
|
3705 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3706 |
|
3707 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3708 |
|
3709 |
# Extract the first word of "rm", so it can be a program name with args. |
3710 |
set dummy rm; ac_word=$2 |
3711 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3712 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3713 |
if test "${ac_cv_path_RM+set}" = set; then |
3714 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3715 |
else |
3716 |
case $RM in |
3717 |
[\\/]* | ?:[\\/]*) |
3718 |
ac_cv_path_RM="$RM" # Let the user override the test with a path. |
3719 |
;; |
3720 |
*) |
3721 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3722 |
for as_dir in $PATH |
3723 |
do |
3724 |
IFS=$as_save_IFS |
3725 |
test -z "$as_dir" && as_dir=. |
3726 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3727 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3728 |
ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3729 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3730 |
break 2 |
3731 |
fi |
3732 |
done |
3733 |
done |
3734 |
IFS=$as_save_IFS |
3735 |
|
3736 |
;; |
3737 |
esac |
3738 |
fi |
3739 |
RM=$ac_cv_path_RM |
3740 |
if test -n "$RM"; then |
3741 |
{ echo "$as_me:$LINENO: result: $RM" >&5 |
3742 |
echo "${ECHO_T}$RM" >&6; } |
3743 |
else |
3744 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3745 |
echo "${ECHO_T}no" >&6; } |
3746 |
fi |
3747 |
|
3748 |
|
3749 |
# Extract the first word of "cp", so it can be a program name with args. |
3750 |
set dummy cp; ac_word=$2 |
3751 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3752 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3753 |
if test "${ac_cv_path_CP+set}" = set; then |
3754 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3755 |
else |
3756 |
case $CP in |
3757 |
[\\/]* | ?:[\\/]*) |
3758 |
ac_cv_path_CP="$CP" # Let the user override the test with a path. |
3759 |
;; |
3760 |
*) |
3761 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3762 |
for as_dir in $PATH |
3763 |
do |
3764 |
IFS=$as_save_IFS |
3765 |
test -z "$as_dir" && as_dir=. |
3766 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3767 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3768 |
ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3769 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3770 |
break 2 |
3771 |
fi |
3772 |
done |
3773 |
done |
3774 |
IFS=$as_save_IFS |
3775 |
|
3776 |
;; |
3777 |
esac |
3778 |
fi |
3779 |
CP=$ac_cv_path_CP |
3780 |
if test -n "$CP"; then |
3781 |
{ echo "$as_me:$LINENO: result: $CP" >&5 |
3782 |
echo "${ECHO_T}$CP" >&6; } |
3783 |
else |
3784 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3785 |
echo "${ECHO_T}no" >&6; } |
3786 |
fi |
3787 |
|
3788 |
|
3789 |
# Extract the first word of "mv", so it can be a program name with args. |
3790 |
set dummy mv; ac_word=$2 |
3791 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3792 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3793 |
if test "${ac_cv_path_MV+set}" = set; then |
3794 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3795 |
else |
3796 |
case $MV in |
3797 |
[\\/]* | ?:[\\/]*) |
3798 |
ac_cv_path_MV="$MV" # Let the user override the test with a path. |
3799 |
;; |
3800 |
*) |
3801 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3802 |
for as_dir in $PATH |
3803 |
do |
3804 |
IFS=$as_save_IFS |
3805 |
test -z "$as_dir" && as_dir=. |
3806 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3807 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3808 |
ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3809 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3810 |
break 2 |
3811 |
fi |
3812 |
done |
3813 |
done |
3814 |
IFS=$as_save_IFS |
3815 |
|
3816 |
;; |
3817 |
esac |
3818 |
fi |
3819 |
MV=$ac_cv_path_MV |
3820 |
if test -n "$MV"; then |
3821 |
{ echo "$as_me:$LINENO: result: $MV" >&5 |
3822 |
echo "${ECHO_T}$MV" >&6; } |
3823 |
else |
3824 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3825 |
echo "${ECHO_T}no" >&6; } |
3826 |
fi |
3827 |
|
3828 |
|
3829 |
# Extract the first word of "ln", so it can be a program name with args. |
3830 |
set dummy ln; ac_word=$2 |
3831 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3832 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3833 |
if test "${ac_cv_path_LN+set}" = set; then |
3834 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3835 |
else |
3836 |
case $LN in |
3837 |
[\\/]* | ?:[\\/]*) |
3838 |
ac_cv_path_LN="$LN" # Let the user override the test with a path. |
3839 |
;; |
3840 |
*) |
3841 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3842 |
for as_dir in $PATH |
3843 |
do |
3844 |
IFS=$as_save_IFS |
3845 |
test -z "$as_dir" && as_dir=. |
3846 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3847 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3848 |
ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3849 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3850 |
break 2 |
3851 |
fi |
3852 |
done |
3853 |
done |
3854 |
IFS=$as_save_IFS |
3855 |
|
3856 |
;; |
3857 |
esac |
3858 |
fi |
3859 |
LN=$ac_cv_path_LN |
3860 |
if test -n "$LN"; then |
3861 |
{ echo "$as_me:$LINENO: result: $LN" >&5 |
3862 |
echo "${ECHO_T}$LN" >&6; } |
3863 |
else |
3864 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3865 |
echo "${ECHO_T}no" >&6; } |
3866 |
fi |
3867 |
|
3868 |
|
3869 |
# Extract the first word of "sed", so it can be a program name with args. |
3870 |
set dummy sed; ac_word=$2 |
3871 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3872 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3873 |
if test "${ac_cv_path_SED+set}" = set; then |
3874 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3875 |
else |
3876 |
case $SED in |
3877 |
[\\/]* | ?:[\\/]*) |
3878 |
ac_cv_path_SED="$SED" # Let the user override the test with a path. |
3879 |
;; |
3880 |
*) |
3881 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3882 |
for as_dir in $PATH |
3883 |
do |
3884 |
IFS=$as_save_IFS |
3885 |
test -z "$as_dir" && as_dir=. |
3886 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3887 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3888 |
ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3889 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3890 |
break 2 |
3891 |
fi |
3892 |
done |
3893 |
done |
3894 |
IFS=$as_save_IFS |
3895 |
|
3896 |
;; |
3897 |
esac |
3898 |
fi |
3899 |
SED=$ac_cv_path_SED |
3900 |
if test -n "$SED"; then |
3901 |
{ echo "$as_me:$LINENO: result: $SED" >&5 |
3902 |
echo "${ECHO_T}$SED" >&6; } |
3903 |
else |
3904 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3905 |
echo "${ECHO_T}no" >&6; } |
3906 |
fi |
3907 |
|
3908 |
|
3909 |
# Extract the first word of "ar", so it can be a program name with args. |
3910 |
set dummy ar; ac_word=$2 |
3911 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3912 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3913 |
if test "${ac_cv_path_AR+set}" = set; then |
3914 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3915 |
else |
3916 |
case $AR in |
3917 |
[\\/]* | ?:[\\/]*) |
3918 |
ac_cv_path_AR="$AR" # Let the user override the test with a path. |
3919 |
;; |
3920 |
*) |
3921 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3922 |
for as_dir in $PATH |
3923 |
do |
3924 |
IFS=$as_save_IFS |
3925 |
test -z "$as_dir" && as_dir=. |
3926 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3927 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3928 |
ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3929 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3930 |
break 2 |
3931 |
fi |
3932 |
done |
3933 |
done |
3934 |
IFS=$as_save_IFS |
3935 |
|
3936 |
;; |
3937 |
esac |
3938 |
fi |
3939 |
AR=$ac_cv_path_AR |
3940 |
if test -n "$AR"; then |
3941 |
{ echo "$as_me:$LINENO: result: $AR" >&5 |
3942 |
echo "${ECHO_T}$AR" >&6; } |
3943 |
else |
3944 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3945 |
echo "${ECHO_T}no" >&6; } |
3946 |
fi |
3947 |
|
3948 |
|
3949 |
# Extract the first word of "ld", so it can be a program name with args. |
3950 |
set dummy ld; ac_word=$2 |
3951 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3952 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3953 |
if test "${ac_cv_path_LD+set}" = set; then |
3954 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3955 |
else |
3956 |
case $LD in |
3957 |
[\\/]* | ?:[\\/]*) |
3958 |
ac_cv_path_LD="$LD" # Let the user override the test with a path. |
3959 |
;; |
3960 |
*) |
3961 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3962 |
for as_dir in $PATH |
3963 |
do |
3964 |
IFS=$as_save_IFS |
3965 |
test -z "$as_dir" && as_dir=. |
3966 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3967 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3968 |
ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3969 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3970 |
break 2 |
3971 |
fi |
3972 |
done |
3973 |
done |
3974 |
IFS=$as_save_IFS |
3975 |
|
3976 |
;; |
3977 |
esac |
3978 |
fi |
3979 |
LD=$ac_cv_path_LD |
3980 |
if test -n "$LD"; then |
3981 |
{ echo "$as_me:$LINENO: result: $LD" >&5 |
3982 |
echo "${ECHO_T}$LD" >&6; } |
3983 |
else |
3984 |
{ echo "$as_me:$LINENO: result: no" >&5 |
3985 |
echo "${ECHO_T}no" >&6; } |
3986 |
fi |
3987 |
|
3988 |
|
3989 |
# Extract the first word of "test", so it can be a program name with args. |
3990 |
set dummy test; ac_word=$2 |
3991 |
{ echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3992 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3993 |
if test "${ac_cv_path_TEST+set}" = set; then |
3994 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3995 |
else |
3996 |
case $TEST in |
3997 |
[\\/]* | ?:[\\/]*) |
3998 |
ac_cv_path_TEST="$TEST" # Let the user override the test with a path. |
3999 |
;; |
4000 |
*) |
4001 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4002 |
for as_dir in $PATH |
4003 |
do |
4004 |
IFS=$as_save_IFS |
4005 |
test -z "$as_dir" && as_dir=. |
4006 |
for ac_exec_ext in '' $ac_executable_extensions; do |
4007 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4008 |
ac_cv_path_TEST="$as_dir/$ac_word$ac_exec_ext" |
4009 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4010 |
break 2 |
4011 |
fi |
4012 |
done |
4013 |
done |
4014 |
IFS=$as_save_IFS |
4015 |
|
4016 |
test -z "$ac_cv_path_TEST" && ac_cv_path_TEST="test" |
4017 |
;; |
4018 |
esac |
4019 |
fi |
4020 |
TEST=$ac_cv_path_TEST |
4021 |
if test -n "$TEST"; then |
4022 |
{ echo "$as_me:$LINENO: result: $TEST" >&5 |
4023 |
echo "${ECHO_T}$TEST" >&6; } |
4024 |
else |
4025 |
{ echo "$as_me:$LINENO: result: no" >&5 |
4026 |
echo "${ECHO_T}no" >&6; } |
4027 |
fi |
4028 |
|
4029 |
|
4030 |
|
4031 |
if test "$libexecdir" = '${exec_prefix}/libexec' && |
4032 |
test "$localstatedir" = '${prefix}/var'; then |
4033 |
libexecdir='${bindir}' |
4034 |
localstatedir='${prefix}' |
4035 |
fi |
4036 |
|
4037 |
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4038 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4039 |
if test "${ac_cv_header_stdc+set}" = set; then |
4040 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4041 |
else |
4042 |
cat >conftest.$ac_ext <<_ACEOF |
4043 |
/* confdefs.h. */ |
4044 |
_ACEOF |
4045 |
cat confdefs.h >>conftest.$ac_ext |
4046 |
cat >>conftest.$ac_ext <<_ACEOF |
4047 |
/* end confdefs.h. */ |
4048 |
#include <stdlib.h> |
4049 |
#include <stdarg.h> |
4050 |
#include <string.h> |
4051 |
#include <float.h> |
4052 |
|
4053 |
int |
4054 |
main () |
4055 |
{ |
4056 |
|
4057 |
; |
4058 |
return 0; |
4059 |
} |
4060 |
_ACEOF |
4061 |
rm -f conftest.$ac_objext |
4062 |
if { (ac_try="$ac_compile" |
4063 |
case "(($ac_try" in |
4064 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4065 |
*) ac_try_echo=$ac_try;; |
4066 |
esac |
4067 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4068 |
(eval "$ac_compile") 2>conftest.er1 |
4069 |
ac_status=$? |
4070 |
grep -v '^ *+' conftest.er1 >conftest.err |
4071 |
rm -f conftest.er1 |
4072 |
cat conftest.err >&5 |
4073 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4074 |
(exit $ac_status); } && { |
4075 |
test -z "$ac_c_werror_flag" || |
4076 |
test ! -s conftest.err |
4077 |
} && test -s conftest.$ac_objext; then |
4078 |
ac_cv_header_stdc=yes |
4079 |
else |
4080 |
echo "$as_me: failed program was:" >&5 |
4081 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4082 |
|
4083 |
ac_cv_header_stdc=no |
4084 |
fi |
4085 |
|
4086 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4087 |
|
4088 |
if test $ac_cv_header_stdc = yes; then |
4089 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4090 |
cat >conftest.$ac_ext <<_ACEOF |
4091 |
/* confdefs.h. */ |
4092 |
_ACEOF |
4093 |
cat confdefs.h >>conftest.$ac_ext |
4094 |
cat >>conftest.$ac_ext <<_ACEOF |
4095 |
/* end confdefs.h. */ |
4096 |
#include <string.h> |
4097 |
|
4098 |
_ACEOF |
4099 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4100 |
$EGREP "memchr" >/dev/null 2>&1; then |
4101 |
: |
4102 |
else |
4103 |
ac_cv_header_stdc=no |
4104 |
fi |
4105 |
rm -f conftest* |
4106 |
|
4107 |
fi |
4108 |
|
4109 |
if test $ac_cv_header_stdc = yes; then |
4110 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4111 |
cat >conftest.$ac_ext <<_ACEOF |
4112 |
/* confdefs.h. */ |
4113 |
_ACEOF |
4114 |
cat confdefs.h >>conftest.$ac_ext |
4115 |
cat >>conftest.$ac_ext <<_ACEOF |
4116 |
/* end confdefs.h. */ |
4117 |
#include <stdlib.h> |
4118 |
|
4119 |
_ACEOF |
4120 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4121 |
$EGREP "free" >/dev/null 2>&1; then |
4122 |
: |
4123 |
else |
4124 |
ac_cv_header_stdc=no |
4125 |
fi |
4126 |
rm -f conftest* |
4127 |
|
4128 |
fi |
4129 |
|
4130 |
if test $ac_cv_header_stdc = yes; then |
4131 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4132 |
if test "$cross_compiling" = yes; then |
4133 |
: |
4134 |
else |
4135 |
cat >conftest.$ac_ext <<_ACEOF |
4136 |
/* confdefs.h. */ |
4137 |
_ACEOF |
4138 |
cat confdefs.h >>conftest.$ac_ext |
4139 |
cat >>conftest.$ac_ext <<_ACEOF |
4140 |
/* end confdefs.h. */ |
4141 |
#include <ctype.h> |
4142 |
#include <stdlib.h> |
4143 |
#if ((' ' & 0x0FF) == 0x020) |
4144 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4145 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4146 |
#else |
4147 |
# define ISLOWER(c) \ |
4148 |
(('a' <= (c) && (c) <= 'i') \ |
4149 |
|| ('j' <= (c) && (c) <= 'r') \ |
4150 |
|| ('s' <= (c) && (c) <= 'z')) |
4151 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4152 |
#endif |
4153 |
|
4154 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4155 |
int |
4156 |
main () |
4157 |
{ |
4158 |
int i; |
4159 |
for (i = 0; i < 256; i++) |
4160 |
if (XOR (islower (i), ISLOWER (i)) |
4161 |
|| toupper (i) != TOUPPER (i)) |
4162 |
return 2; |
4163 |
return 0; |
4164 |
} |
4165 |
_ACEOF |
4166 |
rm -f conftest$ac_exeext |
4167 |
if { (ac_try="$ac_link" |
4168 |
case "(($ac_try" in |
4169 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4170 |
*) ac_try_echo=$ac_try;; |
4171 |
esac |
4172 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4173 |
(eval "$ac_link") 2>&5 |
4174 |
ac_status=$? |
4175 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4176 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4177 |
{ (case "(($ac_try" in |
4178 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4179 |
*) ac_try_echo=$ac_try;; |
4180 |
esac |
4181 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4182 |
(eval "$ac_try") 2>&5 |
4183 |
ac_status=$? |
4184 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4185 |
(exit $ac_status); }; }; then |
4186 |
: |
4187 |
else |
4188 |
echo "$as_me: program exited with status $ac_status" >&5 |
4189 |
echo "$as_me: failed program was:" >&5 |
4190 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4191 |
|
4192 |
( exit $ac_status ) |
4193 |
ac_cv_header_stdc=no |
4194 |
fi |
4195 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4196 |
fi |
4197 |
|
4198 |
|
4199 |
fi |
4200 |
fi |
4201 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4202 |
echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
4203 |
if test $ac_cv_header_stdc = yes; then |
4204 |
|
4205 |
cat >>confdefs.h <<\_ACEOF |
4206 |
#define STDC_HEADERS 1 |
4207 |
_ACEOF |
4208 |
|
4209 |
fi |
4210 |
|
4211 |
|
4212 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4213 |
|
4214 |
|
4215 |
|
4216 |
|
4217 |
|
4218 |
|
4219 |
|
4220 |
|
4221 |
|
4222 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4223 |
inttypes.h stdint.h unistd.h |
4224 |
do |
4225 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4226 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4227 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4228 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4229 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4230 |
else |
4231 |
cat >conftest.$ac_ext <<_ACEOF |
4232 |
/* confdefs.h. */ |
4233 |
_ACEOF |
4234 |
cat confdefs.h >>conftest.$ac_ext |
4235 |
cat >>conftest.$ac_ext <<_ACEOF |
4236 |
/* end confdefs.h. */ |
4237 |
$ac_includes_default |
4238 |
|
4239 |
#include <$ac_header> |
4240 |
_ACEOF |
4241 |
rm -f conftest.$ac_objext |
4242 |
if { (ac_try="$ac_compile" |
4243 |
case "(($ac_try" in |
4244 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4245 |
*) ac_try_echo=$ac_try;; |
4246 |
esac |
4247 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4248 |
(eval "$ac_compile") 2>conftest.er1 |
4249 |
ac_status=$? |
4250 |
grep -v '^ *+' conftest.er1 >conftest.err |
4251 |
rm -f conftest.er1 |
4252 |
cat conftest.err >&5 |
4253 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4254 |
(exit $ac_status); } && { |
4255 |
test -z "$ac_c_werror_flag" || |
4256 |
test ! -s conftest.err |
4257 |
} && test -s conftest.$ac_objext; then |
4258 |
eval "$as_ac_Header=yes" |
4259 |
else |
4260 |
echo "$as_me: failed program was:" >&5 |
4261 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4262 |
|
4263 |
eval "$as_ac_Header=no" |
4264 |
fi |
4265 |
|
4266 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4267 |
fi |
4268 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
4269 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
4270 |
echo "${ECHO_T}$ac_res" >&6; } |
4271 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4272 |
cat >>confdefs.h <<_ACEOF |
4273 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4274 |
_ACEOF |
4275 |
|
4276 |
fi |
4277 |
|
4278 |
done |
4279 |
|
4280 |
|
4281 |
|
4282 |
|
4283 |
|
4284 |
|
4285 |
|
4286 |
|
4287 |
|
4288 |
|
4289 |
|
4290 |
|
4291 |
|
4292 |
|
4293 |
for ac_header in crypt.h inttypes.h stdint.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h libgen.h sys/wait.h wait.h link.h |
4294 |
do |
4295 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4296 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4297 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4298 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4299 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4300 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4301 |
fi |
4302 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
4303 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
4304 |
echo "${ECHO_T}$ac_res" >&6; } |
4305 |
else |
4306 |
# Is the header compilable? |
4307 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4308 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
4309 |
cat >conftest.$ac_ext <<_ACEOF |
4310 |
/* confdefs.h. */ |
4311 |
_ACEOF |
4312 |
cat confdefs.h >>conftest.$ac_ext |
4313 |
cat >>conftest.$ac_ext <<_ACEOF |
4314 |
/* end confdefs.h. */ |
4315 |
$ac_includes_default |
4316 |
#include <$ac_header> |
4317 |
_ACEOF |
4318 |
rm -f conftest.$ac_objext |
4319 |
if { (ac_try="$ac_compile" |
4320 |
case "(($ac_try" in |
4321 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4322 |
*) ac_try_echo=$ac_try;; |
4323 |
esac |
4324 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4325 |
(eval "$ac_compile") 2>conftest.er1 |
4326 |
ac_status=$? |
4327 |
grep -v '^ *+' conftest.er1 >conftest.err |
4328 |
rm -f conftest.er1 |
4329 |
cat conftest.err >&5 |
4330 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4331 |
(exit $ac_status); } && { |
4332 |
test -z "$ac_c_werror_flag" || |
4333 |
test ! -s conftest.err |
4334 |
} && test -s conftest.$ac_objext; then |
4335 |
ac_header_compiler=yes |
4336 |
else |
4337 |
echo "$as_me: failed program was:" >&5 |
4338 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4339 |
|
4340 |
ac_header_compiler=no |
4341 |
fi |
4342 |
|
4343 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4344 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4345 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
4346 |
|
4347 |
# Is the header present? |
4348 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4349 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
4350 |
cat >conftest.$ac_ext <<_ACEOF |
4351 |
/* confdefs.h. */ |
4352 |
_ACEOF |
4353 |
cat confdefs.h >>conftest.$ac_ext |
4354 |
cat >>conftest.$ac_ext <<_ACEOF |
4355 |
/* end confdefs.h. */ |
4356 |
#include <$ac_header> |
4357 |
_ACEOF |
4358 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
4359 |
case "(($ac_try" in |
4360 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4361 |
*) ac_try_echo=$ac_try;; |
4362 |
esac |
4363 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4364 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4365 |
ac_status=$? |
4366 |
grep -v '^ *+' conftest.er1 >conftest.err |
4367 |
rm -f conftest.er1 |
4368 |
cat conftest.err >&5 |
4369 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4370 |
(exit $ac_status); } >/dev/null && { |
4371 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4372 |
test ! -s conftest.err |
4373 |
}; then |
4374 |
ac_header_preproc=yes |
4375 |
else |
4376 |
echo "$as_me: failed program was:" >&5 |
4377 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4378 |
|
4379 |
ac_header_preproc=no |
4380 |
fi |
4381 |
|
4382 |
rm -f conftest.err conftest.$ac_ext |
4383 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4384 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
4385 |
|
4386 |
# So? What about this header? |
4387 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4388 |
yes:no: ) |
4389 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4390 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
4391 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4392 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
4393 |
ac_header_preproc=yes |
4394 |
;; |
4395 |
no:yes:* ) |
4396 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4397 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
4398 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4399 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
4400 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
4401 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
4402 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
4403 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
4404 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4405 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
4406 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4407 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
4408 |
|
4409 |
;; |
4410 |
esac |
4411 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4412 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4413 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4414 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4415 |
else |
4416 |
eval "$as_ac_Header=\$ac_header_preproc" |
4417 |
fi |
4418 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
4419 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
4420 |
echo "${ECHO_T}$ac_res" >&6; } |
4421 |
|
4422 |
fi |
4423 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4424 |
cat >>confdefs.h <<_ACEOF |
4425 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4426 |
_ACEOF |
4427 |
|
4428 |
fi |
4429 |
|
4430 |
done |
4431 |
|
4432 |
|
4433 |
|
4434 |
{ echo "$as_me:$LINENO: checking for library containing socket" >&5 |
4435 |
echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } |
4436 |
if test "${ac_cv_search_socket+set}" = set; then |
4437 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4438 |
else |
4439 |
ac_func_search_save_LIBS=$LIBS |
4440 |
cat >conftest.$ac_ext <<_ACEOF |
4441 |
/* confdefs.h. */ |
4442 |
_ACEOF |
4443 |
cat confdefs.h >>conftest.$ac_ext |
4444 |
cat >>conftest.$ac_ext <<_ACEOF |
4445 |
/* end confdefs.h. */ |
4446 |
|
4447 |
/* Override any GCC internal prototype to avoid an error. |
4448 |
Use char because int might match the return type of a GCC |
4449 |
builtin and then its argument prototype would still apply. */ |
4450 |
#ifdef __cplusplus |
4451 |
extern "C" |
4452 |
#endif |
4453 |
char socket (); |
4454 |
int |
4455 |
main () |
4456 |
{ |
4457 |
return socket (); |
4458 |
; |
4459 |
return 0; |
4460 |
} |
4461 |
_ACEOF |
4462 |
for ac_lib in '' socket; do |
4463 |
if test -z "$ac_lib"; then |
4464 |
ac_res="none required" |
4465 |
else |
4466 |
ac_res=-l$ac_lib |
4467 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4468 |
fi |
4469 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4470 |
if { (ac_try="$ac_link" |
4471 |
case "(($ac_try" in |
4472 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4473 |
*) ac_try_echo=$ac_try;; |
4474 |
esac |
4475 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4476 |
(eval "$ac_link") 2>conftest.er1 |
4477 |
ac_status=$? |
4478 |
grep -v '^ *+' conftest.er1 >conftest.err |
4479 |
rm -f conftest.er1 |
4480 |
cat conftest.err >&5 |
4481 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4482 |
(exit $ac_status); } && { |
4483 |
test -z "$ac_c_werror_flag" || |
4484 |
test ! -s conftest.err |
4485 |
} && test -s conftest$ac_exeext && |
4486 |
$as_test_x conftest$ac_exeext; then |
4487 |
ac_cv_search_socket=$ac_res |
4488 |
else |
4489 |
echo "$as_me: failed program was:" >&5 |
4490 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4491 |
|
4492 |
|
4493 |
fi |
4494 |
|
4495 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4496 |
conftest$ac_exeext |
4497 |
if test "${ac_cv_search_socket+set}" = set; then |
4498 |
break |
4499 |
fi |
4500 |
done |
4501 |
if test "${ac_cv_search_socket+set}" = set; then |
4502 |
: |
4503 |
else |
4504 |
ac_cv_search_socket=no |
4505 |
fi |
4506 |
rm conftest.$ac_ext |
4507 |
LIBS=$ac_func_search_save_LIBS |
4508 |
fi |
4509 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 |
4510 |
echo "${ECHO_T}$ac_cv_search_socket" >&6; } |
4511 |
ac_res=$ac_cv_search_socket |
4512 |
if test "$ac_res" != no; then |
4513 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4514 |
|
4515 |
else |
4516 |
{ { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 |
4517 |
echo "$as_me: error: You have no socket()! Aborting." >&2;} |
4518 |
{ (exit 1); exit 1; }; } |
4519 |
fi |
4520 |
|
4521 |
|
4522 |
{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5 |
4523 |
echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; } |
4524 |
if test "${ac_cv_search_inet_aton+set}" = set; then |
4525 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4526 |
else |
4527 |
ac_func_search_save_LIBS=$LIBS |
4528 |
cat >conftest.$ac_ext <<_ACEOF |
4529 |
/* confdefs.h. */ |
4530 |
_ACEOF |
4531 |
cat confdefs.h >>conftest.$ac_ext |
4532 |
cat >>conftest.$ac_ext <<_ACEOF |
4533 |
/* end confdefs.h. */ |
4534 |
|
4535 |
/* Override any GCC internal prototype to avoid an error. |
4536 |
Use char because int might match the return type of a GCC |
4537 |
builtin and then its argument prototype would still apply. */ |
4538 |
#ifdef __cplusplus |
4539 |
extern "C" |
4540 |
#endif |
4541 |
char inet_aton (); |
4542 |
int |
4543 |
main () |
4544 |
{ |
4545 |
return inet_aton (); |
4546 |
; |
4547 |
return 0; |
4548 |
} |
4549 |
_ACEOF |
4550 |
for ac_lib in '' resolv; do |
4551 |
if test -z "$ac_lib"; then |
4552 |
ac_res="none required" |
4553 |
else |
4554 |
ac_res=-l$ac_lib |
4555 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4556 |
fi |
4557 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4558 |
if { (ac_try="$ac_link" |
4559 |
case "(($ac_try" in |
4560 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4561 |
*) ac_try_echo=$ac_try;; |
4562 |
esac |
4563 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4564 |
(eval "$ac_link") 2>conftest.er1 |
4565 |
ac_status=$? |
4566 |
grep -v '^ *+' conftest.er1 >conftest.err |
4567 |
rm -f conftest.er1 |
4568 |
cat conftest.err >&5 |
4569 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4570 |
(exit $ac_status); } && { |
4571 |
test -z "$ac_c_werror_flag" || |
4572 |
test ! -s conftest.err |
4573 |
} && test -s conftest$ac_exeext && |
4574 |
$as_test_x conftest$ac_exeext; then |
4575 |
ac_cv_search_inet_aton=$ac_res |
4576 |
else |
4577 |
echo "$as_me: failed program was:" >&5 |
4578 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4579 |
|
4580 |
|
4581 |
fi |
4582 |
|
4583 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4584 |
conftest$ac_exeext |
4585 |
if test "${ac_cv_search_inet_aton+set}" = set; then |
4586 |
break |
4587 |
fi |
4588 |
done |
4589 |
if test "${ac_cv_search_inet_aton+set}" = set; then |
4590 |
: |
4591 |
else |
4592 |
ac_cv_search_inet_aton=no |
4593 |
fi |
4594 |
rm conftest.$ac_ext |
4595 |
LIBS=$ac_func_search_save_LIBS |
4596 |
fi |
4597 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5 |
4598 |
echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; } |
4599 |
ac_res=$ac_cv_search_inet_aton |
4600 |
if test "$ac_res" != no; then |
4601 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4602 |
|
4603 |
else |
4604 |
inet_misc=1; |
4605 |
cat >>confdefs.h <<\_ACEOF |
4606 |
#define NO_INET_ATON 1 |
4607 |
_ACEOF |
4608 |
|
4609 |
fi |
4610 |
|
4611 |
{ echo "$as_me:$LINENO: checking for library containing inet_pton" >&5 |
4612 |
echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6; } |
4613 |
if test "${ac_cv_search_inet_pton+set}" = set; then |
4614 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4615 |
else |
4616 |
ac_func_search_save_LIBS=$LIBS |
4617 |
cat >conftest.$ac_ext <<_ACEOF |
4618 |
/* confdefs.h. */ |
4619 |
_ACEOF |
4620 |
cat confdefs.h >>conftest.$ac_ext |
4621 |
cat >>conftest.$ac_ext <<_ACEOF |
4622 |
/* end confdefs.h. */ |
4623 |
|
4624 |
/* Override any GCC internal prototype to avoid an error. |
4625 |
Use char because int might match the return type of a GCC |
4626 |
builtin and then its argument prototype would still apply. */ |
4627 |
#ifdef __cplusplus |
4628 |
extern "C" |
4629 |
#endif |
4630 |
char inet_pton (); |
4631 |
int |
4632 |
main () |
4633 |
{ |
4634 |
return inet_pton (); |
4635 |
; |
4636 |
return 0; |
4637 |
} |
4638 |
_ACEOF |
4639 |
for ac_lib in '' resolv nsl; do |
4640 |
if test -z "$ac_lib"; then |
4641 |
ac_res="none required" |
4642 |
else |
4643 |
ac_res=-l$ac_lib |
4644 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4645 |
fi |
4646 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4647 |
if { (ac_try="$ac_link" |
4648 |
case "(($ac_try" in |
4649 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4650 |
*) ac_try_echo=$ac_try;; |
4651 |
esac |
4652 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4653 |
(eval "$ac_link") 2>conftest.er1 |
4654 |
ac_status=$? |
4655 |
grep -v '^ *+' conftest.er1 >conftest.err |
4656 |
rm -f conftest.er1 |
4657 |
cat conftest.err >&5 |
4658 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4659 |
(exit $ac_status); } && { |
4660 |
test -z "$ac_c_werror_flag" || |
4661 |
test ! -s conftest.err |
4662 |
} && test -s conftest$ac_exeext && |
4663 |
$as_test_x conftest$ac_exeext; then |
4664 |
ac_cv_search_inet_pton=$ac_res |
4665 |
else |
4666 |
echo "$as_me: failed program was:" >&5 |
4667 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4668 |
|
4669 |
|
4670 |
fi |
4671 |
|
4672 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4673 |
conftest$ac_exeext |
4674 |
if test "${ac_cv_search_inet_pton+set}" = set; then |
4675 |
break |
4676 |
fi |
4677 |
done |
4678 |
if test "${ac_cv_search_inet_pton+set}" = set; then |
4679 |
: |
4680 |
else |
4681 |
ac_cv_search_inet_pton=no |
4682 |
fi |
4683 |
rm conftest.$ac_ext |
4684 |
LIBS=$ac_func_search_save_LIBS |
4685 |
fi |
4686 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5 |
4687 |
echo "${ECHO_T}$ac_cv_search_inet_pton" >&6; } |
4688 |
ac_res=$ac_cv_search_inet_pton |
4689 |
if test "$ac_res" != no; then |
4690 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4691 |
|
4692 |
else |
4693 |
inet_misc=1; |
4694 |
cat >>confdefs.h <<\_ACEOF |
4695 |
#define NO_INET_PTON 1 |
4696 |
_ACEOF |
4697 |
|
4698 |
fi |
4699 |
|
4700 |
{ echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5 |
4701 |
echo $ECHO_N "checking for library containing inet_ntop... $ECHO_C" >&6; } |
4702 |
if test "${ac_cv_search_inet_ntop+set}" = set; then |
4703 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4704 |
else |
4705 |
ac_func_search_save_LIBS=$LIBS |
4706 |
cat >conftest.$ac_ext <<_ACEOF |
4707 |
/* confdefs.h. */ |
4708 |
_ACEOF |
4709 |
cat confdefs.h >>conftest.$ac_ext |
4710 |
cat >>conftest.$ac_ext <<_ACEOF |
4711 |
/* end confdefs.h. */ |
4712 |
|
4713 |
/* Override any GCC internal prototype to avoid an error. |
4714 |
Use char because int might match the return type of a GCC |
4715 |
builtin and then its argument prototype would still apply. */ |
4716 |
#ifdef __cplusplus |
4717 |
extern "C" |
4718 |
#endif |
4719 |
char inet_ntop (); |
4720 |
int |
4721 |
main () |
4722 |
{ |
4723 |
return inet_ntop (); |
4724 |
; |
4725 |
return 0; |
4726 |
} |
4727 |
_ACEOF |
4728 |
for ac_lib in '' resolv nsl; do |
4729 |
if test -z "$ac_lib"; then |
4730 |
ac_res="none required" |
4731 |
else |
4732 |
ac_res=-l$ac_lib |
4733 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4734 |
fi |
4735 |
rm -f conftest.$ac_objext conftest$ac_exeext |
4736 |
if { (ac_try="$ac_link" |
4737 |
case "(($ac_try" in |
4738 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4739 |
*) ac_try_echo=$ac_try;; |
4740 |
esac |
4741 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4742 |
(eval "$ac_link") 2>conftest.er1 |
4743 |
ac_status=$? |
4744 |
grep -v '^ *+' conftest.er1 >conftest.err |
4745 |
rm -f conftest.er1 |
4746 |
cat conftest.err >&5 |
4747 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4748 |
(exit $ac_status); } && { |
4749 |
test -z "$ac_c_werror_flag" || |
4750 |
test ! -s conftest.err |
4751 |
} && test -s conftest$ac_exeext && |
4752 |
$as_test_x conftest$ac_exeext; then |
4753 |
ac_cv_search_inet_ntop=$ac_res |
4754 |
else |
4755 |
echo "$as_me: failed program was:" >&5 |
4756 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4757 |
|
4758 |
|
4759 |
fi |
4760 |
|
4761 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4762 |
conftest$ac_exeext |
4763 |
if test "${ac_cv_search_inet_ntop+set}" = set; then |
4764 |
break |
4765 |
fi |
4766 |
done |
4767 |
if test "${ac_cv_search_inet_ntop+set}" = set; then |
4768 |
: |
4769 |
else |
4770 |
ac_cv_search_inet_ntop=no |
4771 |
fi |
4772 |
rm conftest.$ac_ext |
4773 |
LIBS=$ac_func_search_save_LIBS |
4774 |
fi |
4775 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5 |
4776 |
echo "${ECHO_T}$ac_cv_search_inet_ntop" >&6; } |
4777 |
ac_res=$ac_cv_search_inet_ntop |
4778 |
if test "$ac_res" != no; then |
4779 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4780 |
|
4781 |
else |
4782 |
inet_misc=1; |
4783 |
cat >>confdefs.h <<\_ACEOF |
4784 |
#define NO_INET_NTOP 1 |
4785 |
_ACEOF |
4786 |
|
4787 |
fi |
4788 |
|
4789 |
|
4790 |
if test "$inet_misc" = 1; then |
4791 |
INET_MISC=inet_misc.c |
4792 |
|
4793 |
fi |
4794 |
|
4795 |
{ echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 |
4796 |
echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; } |
4797 |
if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then |
4798 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4799 |
else |
4800 |
cat >conftest.$ac_ext <<_ACEOF |
4801 |
/* confdefs.h. */ |
4802 |
_ACEOF |
4803 |
cat confdefs.h >>conftest.$ac_ext |
4804 |
cat >>conftest.$ac_ext <<_ACEOF |
4805 |
/* end confdefs.h. */ |
4806 |
#include <sys/types.h> |
4807 |
#include <sys/socket.h> |
4808 |
|
4809 |
|
4810 |
typedef struct sockaddr_storage ac__type_new_; |
4811 |
int |
4812 |
main () |
4813 |
{ |
4814 |
if ((ac__type_new_ *) 0) |
4815 |
return 0; |
4816 |
if (sizeof (ac__type_new_)) |
4817 |
return 0; |
4818 |
; |
4819 |
return 0; |
4820 |
} |
4821 |
_ACEOF |
4822 |
rm -f conftest.$ac_objext |
4823 |
if { (ac_try="$ac_compile" |
4824 |
case "(($ac_try" in |
4825 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4826 |
*) ac_try_echo=$ac_try;; |
4827 |
esac |
4828 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4829 |
(eval "$ac_compile") 2>conftest.er1 |
4830 |
ac_status=$? |
4831 |
grep -v '^ *+' conftest.er1 >conftest.err |
4832 |
rm -f conftest.er1 |
4833 |
cat conftest.err >&5 |
4834 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4835 |
(exit $ac_status); } && { |
4836 |
test -z "$ac_c_werror_flag" || |
4837 |
test ! -s conftest.err |
4838 |
} && test -s conftest.$ac_objext; then |
4839 |
ac_cv_type_struct_sockaddr_storage=yes |
4840 |
else |
4841 |
echo "$as_me: failed program was:" >&5 |
4842 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4843 |
|
4844 |
ac_cv_type_struct_sockaddr_storage=no |
4845 |
fi |
4846 |
|
4847 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4848 |
fi |
4849 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 |
4850 |
echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; } |
4851 |
if test $ac_cv_type_struct_sockaddr_storage = yes; then |
4852 |
|
4853 |
cat >>confdefs.h <<_ACEOF |
4854 |
#define HAVE_STRUCT_SOCKADDR_STORAGE 1 |
4855 |
_ACEOF |
4856 |
|
4857 |
|
4858 |
fi |
4859 |
|
4860 |
|
4861 |
if test "$ac_cv_type_struct_sockaddr_storage" = no; then |
4862 |
{ echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 |
4863 |
echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; } |
4864 |
if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then |
4865 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4866 |
else |
4867 |
cat >conftest.$ac_ext <<_ACEOF |
4868 |
/* confdefs.h. */ |
4869 |
_ACEOF |
4870 |
cat confdefs.h >>conftest.$ac_ext |
4871 |
cat >>conftest.$ac_ext <<_ACEOF |
4872 |
/* end confdefs.h. */ |
4873 |
$ac_includes_default |
4874 |
int |
4875 |
main () |
4876 |
{ |
4877 |
static struct sockaddr_in ac_aggr; |
4878 |
if (ac_aggr.sin_len) |
4879 |
return 0; |
4880 |
; |
4881 |
return 0; |
4882 |
} |
4883 |
_ACEOF |
4884 |
rm -f conftest.$ac_objext |
4885 |
if { (ac_try="$ac_compile" |
4886 |
case "(($ac_try" in |
4887 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4888 |
*) ac_try_echo=$ac_try;; |
4889 |
esac |
4890 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4891 |
(eval "$ac_compile") 2>conftest.er1 |
4892 |
ac_status=$? |
4893 |
grep -v '^ *+' conftest.er1 >conftest.err |
4894 |
rm -f conftest.er1 |
4895 |
cat conftest.err >&5 |
4896 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4897 |
(exit $ac_status); } && { |
4898 |
test -z "$ac_c_werror_flag" || |
4899 |
test ! -s conftest.err |
4900 |
} && test -s conftest.$ac_objext; then |
4901 |
ac_cv_member_struct_sockaddr_in_sin_len=yes |
4902 |
else |
4903 |
echo "$as_me: failed program was:" >&5 |
4904 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4905 |
|
4906 |
cat >conftest.$ac_ext <<_ACEOF |
4907 |
/* confdefs.h. */ |
4908 |
_ACEOF |
4909 |
cat confdefs.h >>conftest.$ac_ext |
4910 |
cat >>conftest.$ac_ext <<_ACEOF |
4911 |
/* end confdefs.h. */ |
4912 |
$ac_includes_default |
4913 |
int |
4914 |
main () |
4915 |
{ |
4916 |
static struct sockaddr_in ac_aggr; |
4917 |
if (sizeof ac_aggr.sin_len) |
4918 |
return 0; |
4919 |
; |
4920 |
return 0; |
4921 |
} |
4922 |
_ACEOF |
4923 |
rm -f conftest.$ac_objext |
4924 |
if { (ac_try="$ac_compile" |
4925 |
case "(($ac_try" in |
4926 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4927 |
*) ac_try_echo=$ac_try;; |
4928 |
esac |
4929 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4930 |
(eval "$ac_compile") 2>conftest.er1 |
4931 |
ac_status=$? |
4932 |
grep -v '^ *+' conftest.er1 >conftest.err |
4933 |
rm -f conftest.er1 |
4934 |
cat conftest.err >&5 |
4935 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4936 |
(exit $ac_status); } && { |
4937 |
test -z "$ac_c_werror_flag" || |
4938 |
test ! -s conftest.err |
4939 |
} && test -s conftest.$ac_objext; then |
4940 |
ac_cv_member_struct_sockaddr_in_sin_len=yes |
4941 |
else |
4942 |
echo "$as_me: failed program was:" >&5 |
4943 |
sed 's/^/| /' conftest.$ac_ext >&5 |
4944 |
|
4945 |
ac_cv_member_struct_sockaddr_in_sin_len=no |
4946 |
fi |
4947 |
|
4948 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4949 |
fi |
4950 |
|
4951 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4952 |
fi |
4953 |
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 |
4954 |
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } |
4955 |
if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then |
4956 |
|
4957 |
cat >>confdefs.h <<\_ACEOF |
4958 |
#define SOCKADDR_IN_HAS_LEN 1 |
4959 |
_ACEOF |
4960 |
|
4961 |
fi |
4962 |
|
4963 |
fi |
4964 |
|
4965 |
{ echo "$as_me:$LINENO: checking for struct addrinfo" >&5 |
4966 |
echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; } |
4967 |
if test "${ac_cv_type_struct_addrinfo+set}" = set; then |
4968 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4969 |
else |
4970 |
cat >conftest.$ac_ext <<_ACEOF |
4971 |
/* confdefs.h. */ |
4972 |
_ACEOF |
4973 |
cat confdefs.h >>conftest.$ac_ext |
4974 |
cat >>conftest.$ac_ext <<_ACEOF |
4975 |
/* end confdefs.h. */ |
4976 |
#include <netdb.h> |
4977 |
|
4978 |
typedef struct addrinfo ac__type_new_; |
4979 |
int |
4980 |
main () |
4981 |
{ |
4982 |
if ((ac__type_new_ *) 0) |
4983 |
return 0; |
4984 |
if (sizeof (ac__type_new_)) |
4985 |
return 0; |
4986 |
; |
4987 |
return 0; |
4988 |
} |
4989 |
_ACEOF |
4990 |
rm -f conftest.$ac_objext |
4991 |
if { (ac_try="$ac_compile" |
4992 |
case "(($ac_try" in |
4993 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4994 |
*) ac_try_echo=$ac_try;; |
4995 |
esac |
4996 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4997 |
(eval "$ac_compile") 2>conftest.er1 |
4998 |
ac_status=$? |
4999 |
grep -v '^ *+' conftest.er1 >conftest.err |
5000 |
rm -f conftest.er1 |
5001 |
cat conftest.err >&5 |
5002 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5003 |
(exit $ac_status); } && { |
5004 |
test -z "$ac_c_werror_flag" || |
5005 |
test ! -s conftest.err |
5006 |
} && test -s conftest.$ac_objext; then |
5007 |
ac_cv_type_struct_addrinfo=yes |
5008 |
else |
5009 |
echo "$as_me: failed program was:" >&5 |
5010 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5011 |
|
5012 |
ac_cv_type_struct_addrinfo=no |
5013 |
fi |
5014 |
|
5015 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5016 |
fi |
5017 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 |
5018 |
echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; } |
5019 |
if test $ac_cv_type_struct_addrinfo = yes; then |
5020 |
|
5021 |
cat >>confdefs.h <<_ACEOF |
5022 |
#define HAVE_STRUCT_ADDRINFO 1 |
5023 |
_ACEOF |
5024 |
|
5025 |
|
5026 |
fi |
5027 |
|
5028 |
|
5029 |
{ echo "$as_me:$LINENO: checking for socklen_t" >&5 |
5030 |
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } |
5031 |
if test "${ac_cv_type_socklen_t+set}" = set; then |
5032 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5033 |
else |
5034 |
cat >conftest.$ac_ext <<_ACEOF |
5035 |
/* confdefs.h. */ |
5036 |
_ACEOF |
5037 |
cat confdefs.h >>conftest.$ac_ext |
5038 |
cat >>conftest.$ac_ext <<_ACEOF |
5039 |
/* end confdefs.h. */ |
5040 |
#include <sys/types.h> |
5041 |
#include <sys/socket.h> |
5042 |
|
5043 |
typedef socklen_t ac__type_new_; |
5044 |
int |
5045 |
main () |
5046 |
{ |
5047 |
if ((ac__type_new_ *) 0) |
5048 |
return 0; |
5049 |
if (sizeof (ac__type_new_)) |
5050 |
return 0; |
5051 |
; |
5052 |
return 0; |
5053 |
} |
5054 |
_ACEOF |
5055 |
rm -f conftest.$ac_objext |
5056 |
if { (ac_try="$ac_compile" |
5057 |
case "(($ac_try" in |
5058 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5059 |
*) ac_try_echo=$ac_try;; |
5060 |
esac |
5061 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5062 |
(eval "$ac_compile") 2>conftest.er1 |
5063 |
ac_status=$? |
5064 |
grep -v '^ *+' conftest.er1 >conftest.err |
5065 |
rm -f conftest.er1 |
5066 |
cat conftest.err >&5 |
5067 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5068 |
(exit $ac_status); } && { |
5069 |
test -z "$ac_c_werror_flag" || |
5070 |
test ! -s conftest.err |
5071 |
} && test -s conftest.$ac_objext; then |
5072 |
ac_cv_type_socklen_t=yes |
5073 |
else |
5074 |
echo "$as_me: failed program was:" >&5 |
5075 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5076 |
|
5077 |
ac_cv_type_socklen_t=no |
5078 |
fi |
5079 |
|
5080 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5081 |
fi |
5082 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
5083 |
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } |
5084 |
if test $ac_cv_type_socklen_t = yes; then |
5085 |
: |
5086 |
else |
5087 |
|
5088 |
cat >>confdefs.h <<\_ACEOF |
5089 |
#define socklen_t unsigned int |
5090 |
_ACEOF |
5091 |
|
5092 |
fi |
5093 |
|
5094 |
|
5095 |
if test -z "$Tru"; then |
5096 |
|
5097 |
{ echo "$as_me:$LINENO: checking for broken glibc with __ss_family" >&5 |
5098 |
echo $ECHO_N "checking for broken glibc with __ss_family... $ECHO_C" >&6; } |
5099 |
cat >conftest.$ac_ext <<_ACEOF |
5100 |
/* confdefs.h. */ |
5101 |
_ACEOF |
5102 |
cat confdefs.h >>conftest.$ac_ext |
5103 |
cat >>conftest.$ac_ext <<_ACEOF |
5104 |
/* end confdefs.h. */ |
5105 |
#include <sys/types.h> |
5106 |
#include <sys/socket.h> |
5107 |
int |
5108 |
main () |
5109 |
{ |
5110 |
struct sockaddr_storage s; s.__ss_family = AF_INET; |
5111 |
; |
5112 |
return 0; |
5113 |
} |
5114 |
_ACEOF |
5115 |
rm -f conftest.$ac_objext |
5116 |
if { (ac_try="$ac_compile" |
5117 |
case "(($ac_try" in |
5118 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5119 |
*) ac_try_echo=$ac_try;; |
5120 |
esac |
5121 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5122 |
(eval "$ac_compile") 2>conftest.er1 |
5123 |
ac_status=$? |
5124 |
grep -v '^ *+' conftest.er1 >conftest.err |
5125 |
rm -f conftest.er1 |
5126 |
cat conftest.err >&5 |
5127 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5128 |
(exit $ac_status); } && { |
5129 |
test -z "$ac_c_werror_flag" || |
5130 |
test ! -s conftest.err |
5131 |
} && test -s conftest.$ac_objext; then |
5132 |
|
5133 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5134 |
echo "${ECHO_T}yes" >&6; } |
5135 |
|
5136 |
cat >>confdefs.h <<\_ACEOF |
5137 |
#define ss_family __ss_family |
5138 |
_ACEOF |
5139 |
|
5140 |
|
5141 |
else |
5142 |
echo "$as_me: failed program was:" >&5 |
5143 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5144 |
|
5145 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5146 |
echo "${ECHO_T}no" >&6; } |
5147 |
fi |
5148 |
|
5149 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5150 |
|
5151 |
fi |
5152 |
|
5153 |
{ echo "$as_me:$LINENO: checking for core IPv6 support" >&5 |
5154 |
echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; } |
5155 |
|
5156 |
cat >conftest.$ac_ext <<_ACEOF |
5157 |
/* confdefs.h. */ |
5158 |
_ACEOF |
5159 |
cat confdefs.h >>conftest.$ac_ext |
5160 |
cat >>conftest.$ac_ext <<_ACEOF |
5161 |
/* end confdefs.h. */ |
5162 |
#define IN_AUTOCONF |
5163 |
#include "include/stdinc.h" |
5164 |
int |
5165 |
main () |
5166 |
{ |
5167 |
struct sockaddr_in6 s; |
5168 |
struct sockaddr_storage t; |
5169 |
s.sin6_family = 0; |
5170 |
|
5171 |
; |
5172 |
return 0; |
5173 |
} |
5174 |
_ACEOF |
5175 |
rm -f conftest.$ac_objext |
5176 |
if { (ac_try="$ac_compile" |
5177 |
case "(($ac_try" in |
5178 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5179 |
*) ac_try_echo=$ac_try;; |
5180 |
esac |
5181 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5182 |
(eval "$ac_compile") 2>conftest.er1 |
5183 |
ac_status=$? |
5184 |
grep -v '^ *+' conftest.er1 >conftest.err |
5185 |
rm -f conftest.er1 |
5186 |
cat conftest.err >&5 |
5187 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5188 |
(exit $ac_status); } && { |
5189 |
test -z "$ac_c_werror_flag" || |
5190 |
test ! -s conftest.err |
5191 |
} && test -s conftest.$ac_objext; then |
5192 |
|
5193 |
if test "$CYGWIN" = "yes"; then |
5194 |
{ echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5 |
5195 |
echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; } |
5196 |
have_v6=no |
5197 |
else |
5198 |
have_v6=yes |
5199 |
|
5200 |
cat >>confdefs.h <<\_ACEOF |
5201 |
#define IPV6 1 |
5202 |
_ACEOF |
5203 |
|
5204 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5205 |
echo "${ECHO_T}yes" >&6; } |
5206 |
{ echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 |
5207 |
echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; } |
5208 |
cat >conftest.$ac_ext <<_ACEOF |
5209 |
/* confdefs.h. */ |
5210 |
_ACEOF |
5211 |
cat confdefs.h >>conftest.$ac_ext |
5212 |
cat >>conftest.$ac_ext <<_ACEOF |
5213 |
/* end confdefs.h. */ |
5214 |
#define IN_AUTOCONF |
5215 |
#include "include/stdinc.h" |
5216 |
int |
5217 |
main () |
5218 |
{ |
5219 |
struct in6_addr a = in6addr_any; |
5220 |
|
5221 |
; |
5222 |
return 0; |
5223 |
} |
5224 |
_ACEOF |
5225 |
rm -f conftest.$ac_objext |
5226 |
if { (ac_try="$ac_compile" |
5227 |
case "(($ac_try" in |
5228 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5229 |
*) ac_try_echo=$ac_try;; |
5230 |
esac |
5231 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5232 |
(eval "$ac_compile") 2>conftest.er1 |
5233 |
ac_status=$? |
5234 |
grep -v '^ *+' conftest.er1 >conftest.err |
5235 |
rm -f conftest.er1 |
5236 |
cat conftest.err >&5 |
5237 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5238 |
(exit $ac_status); } && { |
5239 |
test -z "$ac_c_werror_flag" || |
5240 |
test ! -s conftest.err |
5241 |
} && test -s conftest.$ac_objext; then |
5242 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5243 |
echo "${ECHO_T}yes" >&6; } |
5244 |
else |
5245 |
echo "$as_me: failed program was:" >&5 |
5246 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5247 |
|
5248 |
|
5249 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5250 |
echo "${ECHO_T}no" >&6; } |
5251 |
|
5252 |
cat >>confdefs.h <<\_ACEOF |
5253 |
#define NO_IN6ADDR_ANY 1 |
5254 |
_ACEOF |
5255 |
|
5256 |
inet_misc=1 |
5257 |
|
5258 |
|
5259 |
fi |
5260 |
|
5261 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5262 |
fi |
5263 |
|
5264 |
else |
5265 |
echo "$as_me: failed program was:" >&5 |
5266 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5267 |
|
5268 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5269 |
echo "${ECHO_T}no" >&6; } |
5270 |
have_v6="no" |
5271 |
fi |
5272 |
|
5273 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5274 |
|
5275 |
{ echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
5276 |
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } |
5277 |
if test "${ac_cv_search_crypt+set}" = set; then |
5278 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5279 |
else |
5280 |
ac_func_search_save_LIBS=$LIBS |
5281 |
cat >conftest.$ac_ext <<_ACEOF |
5282 |
/* confdefs.h. */ |
5283 |
_ACEOF |
5284 |
cat confdefs.h >>conftest.$ac_ext |
5285 |
cat >>conftest.$ac_ext <<_ACEOF |
5286 |
/* end confdefs.h. */ |
5287 |
|
5288 |
/* Override any GCC internal prototype to avoid an error. |
5289 |
Use char because int might match the return type of a GCC |
5290 |
builtin and then its argument prototype would still apply. */ |
5291 |
#ifdef __cplusplus |
5292 |
extern "C" |
5293 |
#endif |
5294 |
char crypt (); |
5295 |
int |
5296 |
main () |
5297 |
{ |
5298 |
return crypt (); |
5299 |
; |
5300 |
return 0; |
5301 |
} |
5302 |
_ACEOF |
5303 |
for ac_lib in '' crypt descrypt; do |
5304 |
if test -z "$ac_lib"; then |
5305 |
ac_res="none required" |
5306 |
else |
5307 |
ac_res=-l$ac_lib |
5308 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
5309 |
fi |
5310 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5311 |
if { (ac_try="$ac_link" |
5312 |
case "(($ac_try" in |
5313 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5314 |
*) ac_try_echo=$ac_try;; |
5315 |
esac |
5316 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5317 |
(eval "$ac_link") 2>conftest.er1 |
5318 |
ac_status=$? |
5319 |
grep -v '^ *+' conftest.er1 >conftest.err |
5320 |
rm -f conftest.er1 |
5321 |
cat conftest.err >&5 |
5322 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5323 |
(exit $ac_status); } && { |
5324 |
test -z "$ac_c_werror_flag" || |
5325 |
test ! -s conftest.err |
5326 |
} && test -s conftest$ac_exeext && |
5327 |
$as_test_x conftest$ac_exeext; then |
5328 |
ac_cv_search_crypt=$ac_res |
5329 |
else |
5330 |
echo "$as_me: failed program was:" >&5 |
5331 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5332 |
|
5333 |
|
5334 |
fi |
5335 |
|
5336 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5337 |
conftest$ac_exeext |
5338 |
if test "${ac_cv_search_crypt+set}" = set; then |
5339 |
break |
5340 |
fi |
5341 |
done |
5342 |
if test "${ac_cv_search_crypt+set}" = set; then |
5343 |
: |
5344 |
else |
5345 |
ac_cv_search_crypt=no |
5346 |
fi |
5347 |
rm conftest.$ac_ext |
5348 |
LIBS=$ac_func_search_save_LIBS |
5349 |
fi |
5350 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
5351 |
echo "${ECHO_T}$ac_cv_search_crypt" >&6; } |
5352 |
ac_res=$ac_cv_search_crypt |
5353 |
if test "$ac_res" != no; then |
5354 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
5355 |
|
5356 |
fi |
5357 |
|
5358 |
|
5359 |
CRYPT_LIB=$ac_cv_search_crypt |
5360 |
|
5361 |
if test "$CRYPT_LIB" = "none required"; then |
5362 |
unset CRYPT_LIB |
5363 |
elif test "$CRYPT_LIB" = no; then |
5364 |
CRYPT_C=crypt.c |
5365 |
unset CRYPT_LIB |
5366 |
fi |
5367 |
|
5368 |
|
5369 |
|
5370 |
|
5371 |
{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
5372 |
echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } |
5373 |
if test "${gcc_cv_header_string+set}" = set; then |
5374 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5375 |
else |
5376 |
|
5377 |
cat >conftest.$ac_ext <<_ACEOF |
5378 |
#include <string.h> |
5379 |
#include <strings.h> |
5380 |
_ACEOF |
5381 |
rm -f conftest.$ac_objext |
5382 |
if { (ac_try="$ac_compile" |
5383 |
case "(($ac_try" in |
5384 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5385 |
*) ac_try_echo=$ac_try;; |
5386 |
esac |
5387 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5388 |
(eval "$ac_compile") 2>conftest.er1 |
5389 |
ac_status=$? |
5390 |
grep -v '^ *+' conftest.er1 >conftest.err |
5391 |
rm -f conftest.er1 |
5392 |
cat conftest.err >&5 |
5393 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5394 |
(exit $ac_status); } && { |
5395 |
test -z "$ac_c_werror_flag" || |
5396 |
test ! -s conftest.err |
5397 |
} && test -s conftest.$ac_objext; then |
5398 |
gcc_cv_header_string=yes |
5399 |
else |
5400 |
echo "$as_me: failed program was:" >&5 |
5401 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5402 |
|
5403 |
gcc_cv_header_string=no |
5404 |
fi |
5405 |
|
5406 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5407 |
|
5408 |
fi |
5409 |
{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
5410 |
echo "${ECHO_T}$gcc_cv_header_string" >&6; } |
5411 |
|
5412 |
if test "$gcc_cv_header_string" = "yes"; then |
5413 |
|
5414 |
cat >>confdefs.h <<\_ACEOF |
5415 |
#define STRING_WITH_STRINGS 1 |
5416 |
_ACEOF |
5417 |
|
5418 |
fi |
5419 |
|
5420 |
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
5421 |
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
5422 |
if test "${ac_cv_c_bigendian+set}" = set; then |
5423 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5424 |
else |
5425 |
# See if sys/param.h defines the BYTE_ORDER macro. |
5426 |
cat >conftest.$ac_ext <<_ACEOF |
5427 |
/* confdefs.h. */ |
5428 |
_ACEOF |
5429 |
cat confdefs.h >>conftest.$ac_ext |
5430 |
cat >>conftest.$ac_ext <<_ACEOF |
5431 |
/* end confdefs.h. */ |
5432 |
#include <sys/types.h> |
5433 |
#include <sys/param.h> |
5434 |
|
5435 |
int |
5436 |
main () |
5437 |
{ |
5438 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
5439 |
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
5440 |
bogus endian macros |
5441 |
#endif |
5442 |
|
5443 |
; |
5444 |
return 0; |
5445 |
} |
5446 |
_ACEOF |
5447 |
rm -f conftest.$ac_objext |
5448 |
if { (ac_try="$ac_compile" |
5449 |
case "(($ac_try" in |
5450 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5451 |
*) ac_try_echo=$ac_try;; |
5452 |
esac |
5453 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5454 |
(eval "$ac_compile") 2>conftest.er1 |
5455 |
ac_status=$? |
5456 |
grep -v '^ *+' conftest.er1 >conftest.err |
5457 |
rm -f conftest.er1 |
5458 |
cat conftest.err >&5 |
5459 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5460 |
(exit $ac_status); } && { |
5461 |
test -z "$ac_c_werror_flag" || |
5462 |
test ! -s conftest.err |
5463 |
} && test -s conftest.$ac_objext; then |
5464 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
5465 |
cat >conftest.$ac_ext <<_ACEOF |
5466 |
/* confdefs.h. */ |
5467 |
_ACEOF |
5468 |
cat confdefs.h >>conftest.$ac_ext |
5469 |
cat >>conftest.$ac_ext <<_ACEOF |
5470 |
/* end confdefs.h. */ |
5471 |
#include <sys/types.h> |
5472 |
#include <sys/param.h> |
5473 |
|
5474 |
int |
5475 |
main () |
5476 |
{ |
5477 |
#if BYTE_ORDER != BIG_ENDIAN |
5478 |
not big endian |
5479 |
#endif |
5480 |
|
5481 |
; |
5482 |
return 0; |
5483 |
} |
5484 |
_ACEOF |
5485 |
rm -f conftest.$ac_objext |
5486 |
if { (ac_try="$ac_compile" |
5487 |
case "(($ac_try" in |
5488 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5489 |
*) ac_try_echo=$ac_try;; |
5490 |
esac |
5491 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5492 |
(eval "$ac_compile") 2>conftest.er1 |
5493 |
ac_status=$? |
5494 |
grep -v '^ *+' conftest.er1 >conftest.err |
5495 |
rm -f conftest.er1 |
5496 |
cat conftest.err >&5 |
5497 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5498 |
(exit $ac_status); } && { |
5499 |
test -z "$ac_c_werror_flag" || |
5500 |
test ! -s conftest.err |
5501 |
} && test -s conftest.$ac_objext; then |
5502 |
ac_cv_c_bigendian=yes |
5503 |
else |
5504 |
echo "$as_me: failed program was:" >&5 |
5505 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5506 |
|
5507 |
ac_cv_c_bigendian=no |
5508 |
fi |
5509 |
|
5510 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5511 |
else |
5512 |
echo "$as_me: failed program was:" >&5 |
5513 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5514 |
|
5515 |
# It does not; compile a test program. |
5516 |
if test "$cross_compiling" = yes; then |
5517 |
# try to guess the endianness by grepping values into an object file |
5518 |
ac_cv_c_bigendian=unknown |
5519 |
cat >conftest.$ac_ext <<_ACEOF |
5520 |
/* confdefs.h. */ |
5521 |
_ACEOF |
5522 |
cat confdefs.h >>conftest.$ac_ext |
5523 |
cat >>conftest.$ac_ext <<_ACEOF |
5524 |
/* end confdefs.h. */ |
5525 |
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
5526 |
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
5527 |
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
5528 |
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
5529 |
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
5530 |
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
5531 |
int |
5532 |
main () |
5533 |
{ |
5534 |
_ascii (); _ebcdic (); |
5535 |
; |
5536 |
return 0; |
5537 |
} |
5538 |
_ACEOF |
5539 |
rm -f conftest.$ac_objext |
5540 |
if { (ac_try="$ac_compile" |
5541 |
case "(($ac_try" in |
5542 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5543 |
*) ac_try_echo=$ac_try;; |
5544 |
esac |
5545 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5546 |
(eval "$ac_compile") 2>conftest.er1 |
5547 |
ac_status=$? |
5548 |
grep -v '^ *+' conftest.er1 >conftest.err |
5549 |
rm -f conftest.er1 |
5550 |
cat conftest.err >&5 |
5551 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5552 |
(exit $ac_status); } && { |
5553 |
test -z "$ac_c_werror_flag" || |
5554 |
test ! -s conftest.err |
5555 |
} && test -s conftest.$ac_objext; then |
5556 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
5557 |
ac_cv_c_bigendian=yes |
5558 |
fi |
5559 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
5560 |
if test "$ac_cv_c_bigendian" = unknown; then |
5561 |
ac_cv_c_bigendian=no |
5562 |
else |
5563 |
# finding both strings is unlikely to happen, but who knows? |
5564 |
ac_cv_c_bigendian=unknown |
5565 |
fi |
5566 |
fi |
5567 |
else |
5568 |
echo "$as_me: failed program was:" >&5 |
5569 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5570 |
|
5571 |
|
5572 |
fi |
5573 |
|
5574 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5575 |
else |
5576 |
cat >conftest.$ac_ext <<_ACEOF |
5577 |
/* confdefs.h. */ |
5578 |
_ACEOF |
5579 |
cat confdefs.h >>conftest.$ac_ext |
5580 |
cat >>conftest.$ac_ext <<_ACEOF |
5581 |
/* end confdefs.h. */ |
5582 |
$ac_includes_default |
5583 |
int |
5584 |
main () |
5585 |
{ |
5586 |
|
5587 |
/* Are we little or big endian? From Harbison&Steele. */ |
5588 |
union |
5589 |
{ |
5590 |
long int l; |
5591 |
char c[sizeof (long int)]; |
5592 |
} u; |
5593 |
u.l = 1; |
5594 |
return u.c[sizeof (long int) - 1] == 1; |
5595 |
|
5596 |
; |
5597 |
return 0; |
5598 |
} |
5599 |
_ACEOF |
5600 |
rm -f conftest$ac_exeext |
5601 |
if { (ac_try="$ac_link" |
5602 |
case "(($ac_try" in |
5603 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5604 |
*) ac_try_echo=$ac_try;; |
5605 |
esac |
5606 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5607 |
(eval "$ac_link") 2>&5 |
5608 |
ac_status=$? |
5609 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5610 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5611 |
{ (case "(($ac_try" in |
5612 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5613 |
*) ac_try_echo=$ac_try;; |
5614 |
esac |
5615 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5616 |
(eval "$ac_try") 2>&5 |
5617 |
ac_status=$? |
5618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5619 |
(exit $ac_status); }; }; then |
5620 |
ac_cv_c_bigendian=no |
5621 |
else |
5622 |
echo "$as_me: program exited with status $ac_status" >&5 |
5623 |
echo "$as_me: failed program was:" >&5 |
5624 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5625 |
|
5626 |
( exit $ac_status ) |
5627 |
ac_cv_c_bigendian=yes |
5628 |
fi |
5629 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5630 |
fi |
5631 |
|
5632 |
|
5633 |
fi |
5634 |
|
5635 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5636 |
fi |
5637 |
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5638 |
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
5639 |
case $ac_cv_c_bigendian in |
5640 |
yes) |
5641 |
|
5642 |
cat >>confdefs.h <<\_ACEOF |
5643 |
#define WORDS_BIGENDIAN 1 |
5644 |
_ACEOF |
5645 |
;; |
5646 |
no) |
5647 |
;; |
5648 |
*) |
5649 |
{ { echo "$as_me:$LINENO: error: unknown endianness |
5650 |
presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
5651 |
echo "$as_me: error: unknown endianness |
5652 |
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
5653 |
{ (exit 1); exit 1; }; } ;; |
5654 |
esac |
5655 |
|
5656 |
|
5657 |
if test "${ac_cv_header_stdarg_h+set}" = set; then |
5658 |
{ echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
5659 |
echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
5660 |
if test "${ac_cv_header_stdarg_h+set}" = set; then |
5661 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5662 |
fi |
5663 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
5664 |
echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
5665 |
else |
5666 |
# Is the header compilable? |
5667 |
{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
5668 |
echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } |
5669 |
cat >conftest.$ac_ext <<_ACEOF |
5670 |
/* confdefs.h. */ |
5671 |
_ACEOF |
5672 |
cat confdefs.h >>conftest.$ac_ext |
5673 |
cat >>conftest.$ac_ext <<_ACEOF |
5674 |
/* end confdefs.h. */ |
5675 |
$ac_includes_default |
5676 |
#include <stdarg.h> |
5677 |
_ACEOF |
5678 |
rm -f conftest.$ac_objext |
5679 |
if { (ac_try="$ac_compile" |
5680 |
case "(($ac_try" in |
5681 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5682 |
*) ac_try_echo=$ac_try;; |
5683 |
esac |
5684 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5685 |
(eval "$ac_compile") 2>conftest.er1 |
5686 |
ac_status=$? |
5687 |
grep -v '^ *+' conftest.er1 >conftest.err |
5688 |
rm -f conftest.er1 |
5689 |
cat conftest.err >&5 |
5690 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5691 |
(exit $ac_status); } && { |
5692 |
test -z "$ac_c_werror_flag" || |
5693 |
test ! -s conftest.err |
5694 |
} && test -s conftest.$ac_objext; then |
5695 |
ac_header_compiler=yes |
5696 |
else |
5697 |
echo "$as_me: failed program was:" >&5 |
5698 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5699 |
|
5700 |
ac_header_compiler=no |
5701 |
fi |
5702 |
|
5703 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5704 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5705 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
5706 |
|
5707 |
# Is the header present? |
5708 |
{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
5709 |
echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } |
5710 |
cat >conftest.$ac_ext <<_ACEOF |
5711 |
/* confdefs.h. */ |
5712 |
_ACEOF |
5713 |
cat confdefs.h >>conftest.$ac_ext |
5714 |
cat >>conftest.$ac_ext <<_ACEOF |
5715 |
/* end confdefs.h. */ |
5716 |
#include <stdarg.h> |
5717 |
_ACEOF |
5718 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
5719 |
case "(($ac_try" in |
5720 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5721 |
*) ac_try_echo=$ac_try;; |
5722 |
esac |
5723 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5724 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5725 |
ac_status=$? |
5726 |
grep -v '^ *+' conftest.er1 >conftest.err |
5727 |
rm -f conftest.er1 |
5728 |
cat conftest.err >&5 |
5729 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5730 |
(exit $ac_status); } >/dev/null && { |
5731 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5732 |
test ! -s conftest.err |
5733 |
}; then |
5734 |
ac_header_preproc=yes |
5735 |
else |
5736 |
echo "$as_me: failed program was:" >&5 |
5737 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5738 |
|
5739 |
ac_header_preproc=no |
5740 |
fi |
5741 |
|
5742 |
rm -f conftest.err conftest.$ac_ext |
5743 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5744 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
5745 |
|
5746 |
# So? What about this header? |
5747 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5748 |
yes:no: ) |
5749 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
5750 |
echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5751 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 |
5752 |
echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} |
5753 |
ac_header_preproc=yes |
5754 |
;; |
5755 |
no:yes:* ) |
5756 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 |
5757 |
echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} |
5758 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 |
5759 |
echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} |
5760 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 |
5761 |
echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} |
5762 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 |
5763 |
echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} |
5764 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 |
5765 |
echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} |
5766 |
{ echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 |
5767 |
echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} |
5768 |
|
5769 |
;; |
5770 |
esac |
5771 |
{ echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
5772 |
echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } |
5773 |
if test "${ac_cv_header_stdarg_h+set}" = set; then |
5774 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5775 |
else |
5776 |
ac_cv_header_stdarg_h=$ac_header_preproc |
5777 |
fi |
5778 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
5779 |
echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } |
5780 |
|
5781 |
fi |
5782 |
if test $ac_cv_header_stdarg_h = yes; then |
5783 |
: |
5784 |
else |
5785 |
{ { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&5 |
5786 |
echo "$as_me: error: ** stdarg.h could not be found - ircd-hybrid will not compile without it **" >&2;} |
5787 |
{ (exit 1); exit 1; }; } |
5788 |
fi |
5789 |
|
5790 |
|
5791 |
|
5792 |
|
5793 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
5794 |
|
5795 |
{ echo "$as_me:$LINENO: checking for strlcpy" >&5 |
5796 |
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } |
5797 |
save_CFLAGS=$CFLAGS |
5798 |
CFLAGS="$CFLAGS -Wimplicit -Werror" |
5799 |
|
5800 |
cat >conftest.$ac_ext <<_ACEOF |
5801 |
/* confdefs.h. */ |
5802 |
_ACEOF |
5803 |
cat confdefs.h >>conftest.$ac_ext |
5804 |
cat >>conftest.$ac_ext <<_ACEOF |
5805 |
/* end confdefs.h. */ |
5806 |
#include <string.h> |
5807 |
#include <stdlib.h> |
5808 |
int |
5809 |
main () |
5810 |
{ |
5811 |
char *a = malloc(6), *b = strdup("hello"); |
5812 |
strlcpy(a, b, 6); |
5813 |
|
5814 |
; |
5815 |
return 0; |
5816 |
} |
5817 |
_ACEOF |
5818 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5819 |
if { (ac_try="$ac_link" |
5820 |
case "(($ac_try" in |
5821 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5822 |
*) ac_try_echo=$ac_try;; |
5823 |
esac |
5824 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5825 |
(eval "$ac_link") 2>conftest.er1 |
5826 |
ac_status=$? |
5827 |
grep -v '^ *+' conftest.er1 >conftest.err |
5828 |
rm -f conftest.er1 |
5829 |
cat conftest.err >&5 |
5830 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5831 |
(exit $ac_status); } && { |
5832 |
test -z "$ac_c_werror_flag" || |
5833 |
test ! -s conftest.err |
5834 |
} && test -s conftest$ac_exeext && |
5835 |
$as_test_x conftest$ac_exeext; then |
5836 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5837 |
echo "${ECHO_T}yes" >&6; } |
5838 |
|
5839 |
cat >>confdefs.h <<\_ACEOF |
5840 |
#define HAVE_STRLCPY 1 |
5841 |
_ACEOF |
5842 |
|
5843 |
else |
5844 |
echo "$as_me: failed program was:" >&5 |
5845 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5846 |
|
5847 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5848 |
echo "${ECHO_T}no" >&6; } |
5849 |
|
5850 |
fi |
5851 |
|
5852 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5853 |
conftest$ac_exeext conftest.$ac_ext |
5854 |
|
5855 |
{ echo "$as_me:$LINENO: checking for strlcat" >&5 |
5856 |
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } |
5857 |
cat >conftest.$ac_ext <<_ACEOF |
5858 |
/* confdefs.h. */ |
5859 |
_ACEOF |
5860 |
cat confdefs.h >>conftest.$ac_ext |
5861 |
cat >>conftest.$ac_ext <<_ACEOF |
5862 |
/* end confdefs.h. */ |
5863 |
#include <string.h> |
5864 |
#include <stdlib.h> |
5865 |
int |
5866 |
main () |
5867 |
{ |
5868 |
char *a = malloc(6), *b = strdup("hello"); |
5869 |
strlcat(a, b, 6); |
5870 |
|
5871 |
; |
5872 |
return 0; |
5873 |
} |
5874 |
_ACEOF |
5875 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5876 |
if { (ac_try="$ac_link" |
5877 |
case "(($ac_try" in |
5878 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5879 |
*) ac_try_echo=$ac_try;; |
5880 |
esac |
5881 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5882 |
(eval "$ac_link") 2>conftest.er1 |
5883 |
ac_status=$? |
5884 |
grep -v '^ *+' conftest.er1 >conftest.err |
5885 |
rm -f conftest.er1 |
5886 |
cat conftest.err >&5 |
5887 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5888 |
(exit $ac_status); } && { |
5889 |
test -z "$ac_c_werror_flag" || |
5890 |
test ! -s conftest.err |
5891 |
} && test -s conftest$ac_exeext && |
5892 |
$as_test_x conftest$ac_exeext; then |
5893 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
5894 |
echo "${ECHO_T}yes" >&6; } |
5895 |
|
5896 |
cat >>confdefs.h <<\_ACEOF |
5897 |
#define HAVE_STRLCAT 1 |
5898 |
_ACEOF |
5899 |
|
5900 |
else |
5901 |
echo "$as_me: failed program was:" >&5 |
5902 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5903 |
|
5904 |
{ echo "$as_me:$LINENO: result: no" >&5 |
5905 |
echo "${ECHO_T}no" >&6; } |
5906 |
|
5907 |
fi |
5908 |
|
5909 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5910 |
conftest$ac_exeext conftest.$ac_ext |
5911 |
|
5912 |
CFLAGS=$save_CFLAGS |
5913 |
|
5914 |
else |
5915 |
|
5916 |
|
5917 |
|
5918 |
|
5919 |
for ac_func in strlcat strlcpy |
5920 |
do |
5921 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5922 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5923 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5924 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5925 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5926 |
else |
5927 |
cat >conftest.$ac_ext <<_ACEOF |
5928 |
/* confdefs.h. */ |
5929 |
_ACEOF |
5930 |
cat confdefs.h >>conftest.$ac_ext |
5931 |
cat >>conftest.$ac_ext <<_ACEOF |
5932 |
/* end confdefs.h. */ |
5933 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5934 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
5935 |
#define $ac_func innocuous_$ac_func |
5936 |
|
5937 |
/* System header to define __stub macros and hopefully few prototypes, |
5938 |
which can conflict with char $ac_func (); below. |
5939 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5940 |
<limits.h> exists even on freestanding compilers. */ |
5941 |
|
5942 |
#ifdef __STDC__ |
5943 |
# include <limits.h> |
5944 |
#else |
5945 |
# include <assert.h> |
5946 |
#endif |
5947 |
|
5948 |
#undef $ac_func |
5949 |
|
5950 |
/* Override any GCC internal prototype to avoid an error. |
5951 |
Use char because int might match the return type of a GCC |
5952 |
builtin and then its argument prototype would still apply. */ |
5953 |
#ifdef __cplusplus |
5954 |
extern "C" |
5955 |
#endif |
5956 |
char $ac_func (); |
5957 |
/* The GNU C library defines this for functions which it implements |
5958 |
to always fail with ENOSYS. Some functions are actually named |
5959 |
something starting with __ and the normal name is an alias. */ |
5960 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
5961 |
choke me |
5962 |
#endif |
5963 |
|
5964 |
int |
5965 |
main () |
5966 |
{ |
5967 |
return $ac_func (); |
5968 |
; |
5969 |
return 0; |
5970 |
} |
5971 |
_ACEOF |
5972 |
rm -f conftest.$ac_objext conftest$ac_exeext |
5973 |
if { (ac_try="$ac_link" |
5974 |
case "(($ac_try" in |
5975 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5976 |
*) ac_try_echo=$ac_try;; |
5977 |
esac |
5978 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5979 |
(eval "$ac_link") 2>conftest.er1 |
5980 |
ac_status=$? |
5981 |
grep -v '^ *+' conftest.er1 >conftest.err |
5982 |
rm -f conftest.er1 |
5983 |
cat conftest.err >&5 |
5984 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5985 |
(exit $ac_status); } && { |
5986 |
test -z "$ac_c_werror_flag" || |
5987 |
test ! -s conftest.err |
5988 |
} && test -s conftest$ac_exeext && |
5989 |
$as_test_x conftest$ac_exeext; then |
5990 |
eval "$as_ac_var=yes" |
5991 |
else |
5992 |
echo "$as_me: failed program was:" >&5 |
5993 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5994 |
|
5995 |
eval "$as_ac_var=no" |
5996 |
fi |
5997 |
|
5998 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
5999 |
conftest$ac_exeext conftest.$ac_ext |
6000 |
fi |
6001 |
ac_res=`eval echo '${'$as_ac_var'}'` |
6002 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
6003 |
echo "${ECHO_T}$ac_res" >&6; } |
6004 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
6005 |
cat >>confdefs.h <<_ACEOF |
6006 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
6007 |
_ACEOF |
6008 |
|
6009 |
fi |
6010 |
done |
6011 |
|
6012 |
|
6013 |
fi |
6014 |
|
6015 |
{ echo "$as_me:$LINENO: checking for int64_t" >&5 |
6016 |
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
6017 |
if test "${ac_cv_type_int64_t+set}" = set; then |
6018 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6019 |
else |
6020 |
cat >conftest.$ac_ext <<_ACEOF |
6021 |
/* confdefs.h. */ |
6022 |
_ACEOF |
6023 |
cat confdefs.h >>conftest.$ac_ext |
6024 |
cat >>conftest.$ac_ext <<_ACEOF |
6025 |
/* end confdefs.h. */ |
6026 |
$ac_includes_default |
6027 |
typedef int64_t ac__type_new_; |
6028 |
int |
6029 |
main () |
6030 |
{ |
6031 |
if ((ac__type_new_ *) 0) |
6032 |
return 0; |
6033 |
if (sizeof (ac__type_new_)) |
6034 |
return 0; |
6035 |
; |
6036 |
return 0; |
6037 |
} |
6038 |
_ACEOF |
6039 |
rm -f conftest.$ac_objext |
6040 |
if { (ac_try="$ac_compile" |
6041 |
case "(($ac_try" in |
6042 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6043 |
*) ac_try_echo=$ac_try;; |
6044 |
esac |
6045 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6046 |
(eval "$ac_compile") 2>conftest.er1 |
6047 |
ac_status=$? |
6048 |
grep -v '^ *+' conftest.er1 >conftest.err |
6049 |
rm -f conftest.er1 |
6050 |
cat conftest.err >&5 |
6051 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6052 |
(exit $ac_status); } && { |
6053 |
test -z "$ac_c_werror_flag" || |
6054 |
test ! -s conftest.err |
6055 |
} && test -s conftest.$ac_objext; then |
6056 |
ac_cv_type_int64_t=yes |
6057 |
else |
6058 |
echo "$as_me: failed program was:" >&5 |
6059 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6060 |
|
6061 |
ac_cv_type_int64_t=no |
6062 |
fi |
6063 |
|
6064 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6065 |
fi |
6066 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
6067 |
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
6068 |
|
6069 |
# The cast to long int works around a bug in the HP C Compiler |
6070 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
6071 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
6072 |
# This bug is HP SR number 8606223364. |
6073 |
{ echo "$as_me:$LINENO: checking size of int64_t" >&5 |
6074 |
echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; } |
6075 |
if test "${ac_cv_sizeof_int64_t+set}" = set; then |
6076 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6077 |
else |
6078 |
if test "$cross_compiling" = yes; then |
6079 |
# Depending upon the size, compute the lo and hi bounds. |
6080 |
cat >conftest.$ac_ext <<_ACEOF |
6081 |
/* confdefs.h. */ |
6082 |
_ACEOF |
6083 |
cat confdefs.h >>conftest.$ac_ext |
6084 |
cat >>conftest.$ac_ext <<_ACEOF |
6085 |
/* end confdefs.h. */ |
6086 |
$ac_includes_default |
6087 |
typedef int64_t ac__type_sizeof_; |
6088 |
int |
6089 |
main () |
6090 |
{ |
6091 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
6092 |
test_array [0] = 0 |
6093 |
|
6094 |
; |
6095 |
return 0; |
6096 |
} |
6097 |
_ACEOF |
6098 |
rm -f conftest.$ac_objext |
6099 |
if { (ac_try="$ac_compile" |
6100 |
case "(($ac_try" in |
6101 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6102 |
*) ac_try_echo=$ac_try;; |
6103 |
esac |
6104 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6105 |
(eval "$ac_compile") 2>conftest.er1 |
6106 |
ac_status=$? |
6107 |
grep -v '^ *+' conftest.er1 >conftest.err |
6108 |
rm -f conftest.er1 |
6109 |
cat conftest.err >&5 |
6110 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6111 |
(exit $ac_status); } && { |
6112 |
test -z "$ac_c_werror_flag" || |
6113 |
test ! -s conftest.err |
6114 |
} && test -s conftest.$ac_objext; then |
6115 |
ac_lo=0 ac_mid=0 |
6116 |
while :; do |
6117 |
cat >conftest.$ac_ext <<_ACEOF |
6118 |
/* confdefs.h. */ |
6119 |
_ACEOF |
6120 |
cat confdefs.h >>conftest.$ac_ext |
6121 |
cat >>conftest.$ac_ext <<_ACEOF |
6122 |
/* end confdefs.h. */ |
6123 |
$ac_includes_default |
6124 |
typedef int64_t ac__type_sizeof_; |
6125 |
int |
6126 |
main () |
6127 |
{ |
6128 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6129 |
test_array [0] = 0 |
6130 |
|
6131 |
; |
6132 |
return 0; |
6133 |
} |
6134 |
_ACEOF |
6135 |
rm -f conftest.$ac_objext |
6136 |
if { (ac_try="$ac_compile" |
6137 |
case "(($ac_try" in |
6138 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6139 |
*) ac_try_echo=$ac_try;; |
6140 |
esac |
6141 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6142 |
(eval "$ac_compile") 2>conftest.er1 |
6143 |
ac_status=$? |
6144 |
grep -v '^ *+' conftest.er1 >conftest.err |
6145 |
rm -f conftest.er1 |
6146 |
cat conftest.err >&5 |
6147 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6148 |
(exit $ac_status); } && { |
6149 |
test -z "$ac_c_werror_flag" || |
6150 |
test ! -s conftest.err |
6151 |
} && test -s conftest.$ac_objext; then |
6152 |
ac_hi=$ac_mid; break |
6153 |
else |
6154 |
echo "$as_me: failed program was:" >&5 |
6155 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6156 |
|
6157 |
ac_lo=`expr $ac_mid + 1` |
6158 |
if test $ac_lo -le $ac_mid; then |
6159 |
ac_lo= ac_hi= |
6160 |
break |
6161 |
fi |
6162 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
6163 |
fi |
6164 |
|
6165 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6166 |
done |
6167 |
else |
6168 |
echo "$as_me: failed program was:" >&5 |
6169 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6170 |
|
6171 |
cat >conftest.$ac_ext <<_ACEOF |
6172 |
/* confdefs.h. */ |
6173 |
_ACEOF |
6174 |
cat confdefs.h >>conftest.$ac_ext |
6175 |
cat >>conftest.$ac_ext <<_ACEOF |
6176 |
/* end confdefs.h. */ |
6177 |
$ac_includes_default |
6178 |
typedef int64_t ac__type_sizeof_; |
6179 |
int |
6180 |
main () |
6181 |
{ |
6182 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
6183 |
test_array [0] = 0 |
6184 |
|
6185 |
; |
6186 |
return 0; |
6187 |
} |
6188 |
_ACEOF |
6189 |
rm -f conftest.$ac_objext |
6190 |
if { (ac_try="$ac_compile" |
6191 |
case "(($ac_try" in |
6192 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6193 |
*) ac_try_echo=$ac_try;; |
6194 |
esac |
6195 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6196 |
(eval "$ac_compile") 2>conftest.er1 |
6197 |
ac_status=$? |
6198 |
grep -v '^ *+' conftest.er1 >conftest.err |
6199 |
rm -f conftest.er1 |
6200 |
cat conftest.err >&5 |
6201 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6202 |
(exit $ac_status); } && { |
6203 |
test -z "$ac_c_werror_flag" || |
6204 |
test ! -s conftest.err |
6205 |
} && test -s conftest.$ac_objext; then |
6206 |
ac_hi=-1 ac_mid=-1 |
6207 |
while :; do |
6208 |
cat >conftest.$ac_ext <<_ACEOF |
6209 |
/* confdefs.h. */ |
6210 |
_ACEOF |
6211 |
cat confdefs.h >>conftest.$ac_ext |
6212 |
cat >>conftest.$ac_ext <<_ACEOF |
6213 |
/* end confdefs.h. */ |
6214 |
$ac_includes_default |
6215 |
typedef int64_t ac__type_sizeof_; |
6216 |
int |
6217 |
main () |
6218 |
{ |
6219 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
6220 |
test_array [0] = 0 |
6221 |
|
6222 |
; |
6223 |
return 0; |
6224 |
} |
6225 |
_ACEOF |
6226 |
rm -f conftest.$ac_objext |
6227 |
if { (ac_try="$ac_compile" |
6228 |
case "(($ac_try" in |
6229 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6230 |
*) ac_try_echo=$ac_try;; |
6231 |
esac |
6232 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6233 |
(eval "$ac_compile") 2>conftest.er1 |
6234 |
ac_status=$? |
6235 |
grep -v '^ *+' conftest.er1 >conftest.err |
6236 |
rm -f conftest.er1 |
6237 |
cat conftest.err >&5 |
6238 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6239 |
(exit $ac_status); } && { |
6240 |
test -z "$ac_c_werror_flag" || |
6241 |
test ! -s conftest.err |
6242 |
} && test -s conftest.$ac_objext; then |
6243 |
ac_lo=$ac_mid; break |
6244 |
else |
6245 |
echo "$as_me: failed program was:" >&5 |
6246 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6247 |
|
6248 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
6249 |
if test $ac_mid -le $ac_hi; then |
6250 |
ac_lo= ac_hi= |
6251 |
break |
6252 |
fi |
6253 |
ac_mid=`expr 2 '*' $ac_mid` |
6254 |
fi |
6255 |
|
6256 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6257 |
done |
6258 |
else |
6259 |
echo "$as_me: failed program was:" >&5 |
6260 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6261 |
|
6262 |
ac_lo= ac_hi= |
6263 |
fi |
6264 |
|
6265 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6266 |
fi |
6267 |
|
6268 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6269 |
# Binary search between lo and hi bounds. |
6270 |
while test "x$ac_lo" != "x$ac_hi"; do |
6271 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
6272 |
cat >conftest.$ac_ext <<_ACEOF |
6273 |
/* confdefs.h. */ |
6274 |
_ACEOF |
6275 |
cat confdefs.h >>conftest.$ac_ext |
6276 |
cat >>conftest.$ac_ext <<_ACEOF |
6277 |
/* end confdefs.h. */ |
6278 |
$ac_includes_default |
6279 |
typedef int64_t ac__type_sizeof_; |
6280 |
int |
6281 |
main () |
6282 |
{ |
6283 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6284 |
test_array [0] = 0 |
6285 |
|
6286 |
; |
6287 |
return 0; |
6288 |
} |
6289 |
_ACEOF |
6290 |
rm -f conftest.$ac_objext |
6291 |
if { (ac_try="$ac_compile" |
6292 |
case "(($ac_try" in |
6293 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6294 |
*) ac_try_echo=$ac_try;; |
6295 |
esac |
6296 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6297 |
(eval "$ac_compile") 2>conftest.er1 |
6298 |
ac_status=$? |
6299 |
grep -v '^ *+' conftest.er1 >conftest.err |
6300 |
rm -f conftest.er1 |
6301 |
cat conftest.err >&5 |
6302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6303 |
(exit $ac_status); } && { |
6304 |
test -z "$ac_c_werror_flag" || |
6305 |
test ! -s conftest.err |
6306 |
} && test -s conftest.$ac_objext; then |
6307 |
ac_hi=$ac_mid |
6308 |
else |
6309 |
echo "$as_me: failed program was:" >&5 |
6310 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6311 |
|
6312 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
6313 |
fi |
6314 |
|
6315 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6316 |
done |
6317 |
case $ac_lo in |
6318 |
?*) ac_cv_sizeof_int64_t=$ac_lo;; |
6319 |
'') if test "$ac_cv_type_int64_t" = yes; then |
6320 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t) |
6321 |
See \`config.log' for more details." >&5 |
6322 |
echo "$as_me: error: cannot compute sizeof (int64_t) |
6323 |
See \`config.log' for more details." >&2;} |
6324 |
{ (exit 77); exit 77; }; } |
6325 |
else |
6326 |
ac_cv_sizeof_int64_t=0 |
6327 |
fi ;; |
6328 |
esac |
6329 |
else |
6330 |
cat >conftest.$ac_ext <<_ACEOF |
6331 |
/* confdefs.h. */ |
6332 |
_ACEOF |
6333 |
cat confdefs.h >>conftest.$ac_ext |
6334 |
cat >>conftest.$ac_ext <<_ACEOF |
6335 |
/* end confdefs.h. */ |
6336 |
$ac_includes_default |
6337 |
typedef int64_t ac__type_sizeof_; |
6338 |
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6339 |
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6340 |
#include <stdio.h> |
6341 |
#include <stdlib.h> |
6342 |
int |
6343 |
main () |
6344 |
{ |
6345 |
|
6346 |
FILE *f = fopen ("conftest.val", "w"); |
6347 |
if (! f) |
6348 |
return 1; |
6349 |
if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
6350 |
{ |
6351 |
long int i = longval (); |
6352 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
6353 |
return 1; |
6354 |
fprintf (f, "%ld\n", i); |
6355 |
} |
6356 |
else |
6357 |
{ |
6358 |
unsigned long int i = ulongval (); |
6359 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
6360 |
return 1; |
6361 |
fprintf (f, "%lu\n", i); |
6362 |
} |
6363 |
return ferror (f) || fclose (f) != 0; |
6364 |
|
6365 |
; |
6366 |
return 0; |
6367 |
} |
6368 |
_ACEOF |
6369 |
rm -f conftest$ac_exeext |
6370 |
if { (ac_try="$ac_link" |
6371 |
case "(($ac_try" in |
6372 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6373 |
*) ac_try_echo=$ac_try;; |
6374 |
esac |
6375 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6376 |
(eval "$ac_link") 2>&5 |
6377 |
ac_status=$? |
6378 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6379 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6380 |
{ (case "(($ac_try" in |
6381 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6382 |
*) ac_try_echo=$ac_try;; |
6383 |
esac |
6384 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6385 |
(eval "$ac_try") 2>&5 |
6386 |
ac_status=$? |
6387 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6388 |
(exit $ac_status); }; }; then |
6389 |
ac_cv_sizeof_int64_t=`cat conftest.val` |
6390 |
else |
6391 |
echo "$as_me: program exited with status $ac_status" >&5 |
6392 |
echo "$as_me: failed program was:" >&5 |
6393 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6394 |
|
6395 |
( exit $ac_status ) |
6396 |
if test "$ac_cv_type_int64_t" = yes; then |
6397 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t) |
6398 |
See \`config.log' for more details." >&5 |
6399 |
echo "$as_me: error: cannot compute sizeof (int64_t) |
6400 |
See \`config.log' for more details." >&2;} |
6401 |
{ (exit 77); exit 77; }; } |
6402 |
else |
6403 |
ac_cv_sizeof_int64_t=0 |
6404 |
fi |
6405 |
fi |
6406 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6407 |
fi |
6408 |
rm -f conftest.val |
6409 |
fi |
6410 |
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5 |
6411 |
echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; } |
6412 |
|
6413 |
|
6414 |
|
6415 |
cat >>confdefs.h <<_ACEOF |
6416 |
#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t |
6417 |
_ACEOF |
6418 |
|
6419 |
|
6420 |
{ echo "$as_me:$LINENO: checking for long long" >&5 |
6421 |
echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
6422 |
if test "${ac_cv_type_long_long+set}" = set; then |
6423 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6424 |
else |
6425 |
cat >conftest.$ac_ext <<_ACEOF |
6426 |
/* confdefs.h. */ |
6427 |
_ACEOF |
6428 |
cat confdefs.h >>conftest.$ac_ext |
6429 |
cat >>conftest.$ac_ext <<_ACEOF |
6430 |
/* end confdefs.h. */ |
6431 |
$ac_includes_default |
6432 |
typedef long long ac__type_new_; |
6433 |
int |
6434 |
main () |
6435 |
{ |
6436 |
if ((ac__type_new_ *) 0) |
6437 |
return 0; |
6438 |
if (sizeof (ac__type_new_)) |
6439 |
return 0; |
6440 |
; |
6441 |
return 0; |
6442 |
} |
6443 |
_ACEOF |
6444 |
rm -f conftest.$ac_objext |
6445 |
if { (ac_try="$ac_compile" |
6446 |
case "(($ac_try" in |
6447 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6448 |
*) ac_try_echo=$ac_try;; |
6449 |
esac |
6450 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6451 |
(eval "$ac_compile") 2>conftest.er1 |
6452 |
ac_status=$? |
6453 |
grep -v '^ *+' conftest.er1 >conftest.err |
6454 |
rm -f conftest.er1 |
6455 |
cat conftest.err >&5 |
6456 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6457 |
(exit $ac_status); } && { |
6458 |
test -z "$ac_c_werror_flag" || |
6459 |
test ! -s conftest.err |
6460 |
} && test -s conftest.$ac_objext; then |
6461 |
ac_cv_type_long_long=yes |
6462 |
else |
6463 |
echo "$as_me: failed program was:" >&5 |
6464 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6465 |
|
6466 |
ac_cv_type_long_long=no |
6467 |
fi |
6468 |
|
6469 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6470 |
fi |
6471 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6472 |
echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
6473 |
|
6474 |
# The cast to long int works around a bug in the HP C Compiler |
6475 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
6476 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
6477 |
# This bug is HP SR number 8606223364. |
6478 |
{ echo "$as_me:$LINENO: checking size of long long" >&5 |
6479 |
echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
6480 |
if test "${ac_cv_sizeof_long_long+set}" = set; then |
6481 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6482 |
else |
6483 |
if test "$cross_compiling" = yes; then |
6484 |
# Depending upon the size, compute the lo and hi bounds. |
6485 |
cat >conftest.$ac_ext <<_ACEOF |
6486 |
/* confdefs.h. */ |
6487 |
_ACEOF |
6488 |
cat confdefs.h >>conftest.$ac_ext |
6489 |
cat >>conftest.$ac_ext <<_ACEOF |
6490 |
/* end confdefs.h. */ |
6491 |
$ac_includes_default |
6492 |
typedef long long ac__type_sizeof_; |
6493 |
int |
6494 |
main () |
6495 |
{ |
6496 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
6497 |
test_array [0] = 0 |
6498 |
|
6499 |
; |
6500 |
return 0; |
6501 |
} |
6502 |
_ACEOF |
6503 |
rm -f conftest.$ac_objext |
6504 |
if { (ac_try="$ac_compile" |
6505 |
case "(($ac_try" in |
6506 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6507 |
*) ac_try_echo=$ac_try;; |
6508 |
esac |
6509 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6510 |
(eval "$ac_compile") 2>conftest.er1 |
6511 |
ac_status=$? |
6512 |
grep -v '^ *+' conftest.er1 >conftest.err |
6513 |
rm -f conftest.er1 |
6514 |
cat conftest.err >&5 |
6515 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6516 |
(exit $ac_status); } && { |
6517 |
test -z "$ac_c_werror_flag" || |
6518 |
test ! -s conftest.err |
6519 |
} && test -s conftest.$ac_objext; then |
6520 |
ac_lo=0 ac_mid=0 |
6521 |
while :; do |
6522 |
cat >conftest.$ac_ext <<_ACEOF |
6523 |
/* confdefs.h. */ |
6524 |
_ACEOF |
6525 |
cat confdefs.h >>conftest.$ac_ext |
6526 |
cat >>conftest.$ac_ext <<_ACEOF |
6527 |
/* end confdefs.h. */ |
6528 |
$ac_includes_default |
6529 |
typedef long long ac__type_sizeof_; |
6530 |
int |
6531 |
main () |
6532 |
{ |
6533 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6534 |
test_array [0] = 0 |
6535 |
|
6536 |
; |
6537 |
return 0; |
6538 |
} |
6539 |
_ACEOF |
6540 |
rm -f conftest.$ac_objext |
6541 |
if { (ac_try="$ac_compile" |
6542 |
case "(($ac_try" in |
6543 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6544 |
*) ac_try_echo=$ac_try;; |
6545 |
esac |
6546 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6547 |
(eval "$ac_compile") 2>conftest.er1 |
6548 |
ac_status=$? |
6549 |
grep -v '^ *+' conftest.er1 >conftest.err |
6550 |
rm -f conftest.er1 |
6551 |
cat conftest.err >&5 |
6552 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6553 |
(exit $ac_status); } && { |
6554 |
test -z "$ac_c_werror_flag" || |
6555 |
test ! -s conftest.err |
6556 |
} && test -s conftest.$ac_objext; then |
6557 |
ac_hi=$ac_mid; break |
6558 |
else |
6559 |
echo "$as_me: failed program was:" >&5 |
6560 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6561 |
|
6562 |
ac_lo=`expr $ac_mid + 1` |
6563 |
if test $ac_lo -le $ac_mid; then |
6564 |
ac_lo= ac_hi= |
6565 |
break |
6566 |
fi |
6567 |
ac_mid=`expr 2 '*' $ac_mid + 1` |
6568 |
fi |
6569 |
|
6570 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6571 |
done |
6572 |
else |
6573 |
echo "$as_me: failed program was:" >&5 |
6574 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6575 |
|
6576 |
cat >conftest.$ac_ext <<_ACEOF |
6577 |
/* confdefs.h. */ |
6578 |
_ACEOF |
6579 |
cat confdefs.h >>conftest.$ac_ext |
6580 |
cat >>conftest.$ac_ext <<_ACEOF |
6581 |
/* end confdefs.h. */ |
6582 |
$ac_includes_default |
6583 |
typedef long long ac__type_sizeof_; |
6584 |
int |
6585 |
main () |
6586 |
{ |
6587 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
6588 |
test_array [0] = 0 |
6589 |
|
6590 |
; |
6591 |
return 0; |
6592 |
} |
6593 |
_ACEOF |
6594 |
rm -f conftest.$ac_objext |
6595 |
if { (ac_try="$ac_compile" |
6596 |
case "(($ac_try" in |
6597 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6598 |
*) ac_try_echo=$ac_try;; |
6599 |
esac |
6600 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6601 |
(eval "$ac_compile") 2>conftest.er1 |
6602 |
ac_status=$? |
6603 |
grep -v '^ *+' conftest.er1 >conftest.err |
6604 |
rm -f conftest.er1 |
6605 |
cat conftest.err >&5 |
6606 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6607 |
(exit $ac_status); } && { |
6608 |
test -z "$ac_c_werror_flag" || |
6609 |
test ! -s conftest.err |
6610 |
} && test -s conftest.$ac_objext; then |
6611 |
ac_hi=-1 ac_mid=-1 |
6612 |
while :; do |
6613 |
cat >conftest.$ac_ext <<_ACEOF |
6614 |
/* confdefs.h. */ |
6615 |
_ACEOF |
6616 |
cat confdefs.h >>conftest.$ac_ext |
6617 |
cat >>conftest.$ac_ext <<_ACEOF |
6618 |
/* end confdefs.h. */ |
6619 |
$ac_includes_default |
6620 |
typedef long long ac__type_sizeof_; |
6621 |
int |
6622 |
main () |
6623 |
{ |
6624 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
6625 |
test_array [0] = 0 |
6626 |
|
6627 |
; |
6628 |
return 0; |
6629 |
} |
6630 |
_ACEOF |
6631 |
rm -f conftest.$ac_objext |
6632 |
if { (ac_try="$ac_compile" |
6633 |
case "(($ac_try" in |
6634 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6635 |
*) ac_try_echo=$ac_try;; |
6636 |
esac |
6637 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6638 |
(eval "$ac_compile") 2>conftest.er1 |
6639 |
ac_status=$? |
6640 |
grep -v '^ *+' conftest.er1 >conftest.err |
6641 |
rm -f conftest.er1 |
6642 |
cat conftest.err >&5 |
6643 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6644 |
(exit $ac_status); } && { |
6645 |
test -z "$ac_c_werror_flag" || |
6646 |
test ! -s conftest.err |
6647 |
} && test -s conftest.$ac_objext; then |
6648 |
ac_lo=$ac_mid; break |
6649 |
else |
6650 |
echo "$as_me: failed program was:" >&5 |
6651 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6652 |
|
6653 |
ac_hi=`expr '(' $ac_mid ')' - 1` |
6654 |
if test $ac_mid -le $ac_hi; then |
6655 |
ac_lo= ac_hi= |
6656 |
break |
6657 |
fi |
6658 |
ac_mid=`expr 2 '*' $ac_mid` |
6659 |
fi |
6660 |
|
6661 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6662 |
done |
6663 |
else |
6664 |
echo "$as_me: failed program was:" >&5 |
6665 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6666 |
|
6667 |
ac_lo= ac_hi= |
6668 |
fi |
6669 |
|
6670 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6671 |
fi |
6672 |
|
6673 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6674 |
# Binary search between lo and hi bounds. |
6675 |
while test "x$ac_lo" != "x$ac_hi"; do |
6676 |
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
6677 |
cat >conftest.$ac_ext <<_ACEOF |
6678 |
/* confdefs.h. */ |
6679 |
_ACEOF |
6680 |
cat confdefs.h >>conftest.$ac_ext |
6681 |
cat >>conftest.$ac_ext <<_ACEOF |
6682 |
/* end confdefs.h. */ |
6683 |
$ac_includes_default |
6684 |
typedef long long ac__type_sizeof_; |
6685 |
int |
6686 |
main () |
6687 |
{ |
6688 |
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
6689 |
test_array [0] = 0 |
6690 |
|
6691 |
; |
6692 |
return 0; |
6693 |
} |
6694 |
_ACEOF |
6695 |
rm -f conftest.$ac_objext |
6696 |
if { (ac_try="$ac_compile" |
6697 |
case "(($ac_try" in |
6698 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6699 |
*) ac_try_echo=$ac_try;; |
6700 |
esac |
6701 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6702 |
(eval "$ac_compile") 2>conftest.er1 |
6703 |
ac_status=$? |
6704 |
grep -v '^ *+' conftest.er1 >conftest.err |
6705 |
rm -f conftest.er1 |
6706 |
cat conftest.err >&5 |
6707 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6708 |
(exit $ac_status); } && { |
6709 |
test -z "$ac_c_werror_flag" || |
6710 |
test ! -s conftest.err |
6711 |
} && test -s conftest.$ac_objext; then |
6712 |
ac_hi=$ac_mid |
6713 |
else |
6714 |
echo "$as_me: failed program was:" >&5 |
6715 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6716 |
|
6717 |
ac_lo=`expr '(' $ac_mid ')' + 1` |
6718 |
fi |
6719 |
|
6720 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6721 |
done |
6722 |
case $ac_lo in |
6723 |
?*) ac_cv_sizeof_long_long=$ac_lo;; |
6724 |
'') if test "$ac_cv_type_long_long" = yes; then |
6725 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
6726 |
See \`config.log' for more details." >&5 |
6727 |
echo "$as_me: error: cannot compute sizeof (long long) |
6728 |
See \`config.log' for more details." >&2;} |
6729 |
{ (exit 77); exit 77; }; } |
6730 |
else |
6731 |
ac_cv_sizeof_long_long=0 |
6732 |
fi ;; |
6733 |
esac |
6734 |
else |
6735 |
cat >conftest.$ac_ext <<_ACEOF |
6736 |
/* confdefs.h. */ |
6737 |
_ACEOF |
6738 |
cat confdefs.h >>conftest.$ac_ext |
6739 |
cat >>conftest.$ac_ext <<_ACEOF |
6740 |
/* end confdefs.h. */ |
6741 |
$ac_includes_default |
6742 |
typedef long long ac__type_sizeof_; |
6743 |
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6744 |
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
6745 |
#include <stdio.h> |
6746 |
#include <stdlib.h> |
6747 |
int |
6748 |
main () |
6749 |
{ |
6750 |
|
6751 |
FILE *f = fopen ("conftest.val", "w"); |
6752 |
if (! f) |
6753 |
return 1; |
6754 |
if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
6755 |
{ |
6756 |
long int i = longval (); |
6757 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
6758 |
return 1; |
6759 |
fprintf (f, "%ld\n", i); |
6760 |
} |
6761 |
else |
6762 |
{ |
6763 |
unsigned long int i = ulongval (); |
6764 |
if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
6765 |
return 1; |
6766 |
fprintf (f, "%lu\n", i); |
6767 |
} |
6768 |
return ferror (f) || fclose (f) != 0; |
6769 |
|
6770 |
; |
6771 |
return 0; |
6772 |
} |
6773 |
_ACEOF |
6774 |
rm -f conftest$ac_exeext |
6775 |
if { (ac_try="$ac_link" |
6776 |
case "(($ac_try" in |
6777 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6778 |
*) ac_try_echo=$ac_try;; |
6779 |
esac |
6780 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6781 |
(eval "$ac_link") 2>&5 |
6782 |
ac_status=$? |
6783 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6784 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6785 |
{ (case "(($ac_try" in |
6786 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6787 |
*) ac_try_echo=$ac_try;; |
6788 |
esac |
6789 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6790 |
(eval "$ac_try") 2>&5 |
6791 |
ac_status=$? |
6792 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6793 |
(exit $ac_status); }; }; then |
6794 |
ac_cv_sizeof_long_long=`cat conftest.val` |
6795 |
else |
6796 |
echo "$as_me: program exited with status $ac_status" >&5 |
6797 |
echo "$as_me: failed program was:" >&5 |
6798 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6799 |
|
6800 |
( exit $ac_status ) |
6801 |
if test "$ac_cv_type_long_long" = yes; then |
6802 |
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
6803 |
See \`config.log' for more details." >&5 |
6804 |
echo "$as_me: error: cannot compute sizeof (long long) |
6805 |
See \`config.log' for more details." >&2;} |
6806 |
{ (exit 77); exit 77; }; } |
6807 |
else |
6808 |
ac_cv_sizeof_long_long=0 |
6809 |
fi |
6810 |
fi |
6811 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6812 |
fi |
6813 |
rm -f conftest.val |
6814 |
fi |
6815 |
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6816 |
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
6817 |
|
6818 |
|
6819 |
|
6820 |
cat >>confdefs.h <<_ACEOF |
6821 |
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
6822 |
_ACEOF |
6823 |
|
6824 |
|
6825 |
|
6826 |
if test "$ac_cv_sizeof_int64_t" = 8; then |
6827 |
{ echo "$as_me:$LINENO: checking for uint64_t" >&5 |
6828 |
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
6829 |
if test "${ac_cv_type_uint64_t+set}" = set; then |
6830 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6831 |
else |
6832 |
cat >conftest.$ac_ext <<_ACEOF |
6833 |
/* confdefs.h. */ |
6834 |
_ACEOF |
6835 |
cat confdefs.h >>conftest.$ac_ext |
6836 |
cat >>conftest.$ac_ext <<_ACEOF |
6837 |
/* end confdefs.h. */ |
6838 |
$ac_includes_default |
6839 |
typedef uint64_t ac__type_new_; |
6840 |
int |
6841 |
main () |
6842 |
{ |
6843 |
if ((ac__type_new_ *) 0) |
6844 |
return 0; |
6845 |
if (sizeof (ac__type_new_)) |
6846 |
return 0; |
6847 |
; |
6848 |
return 0; |
6849 |
} |
6850 |
_ACEOF |
6851 |
rm -f conftest.$ac_objext |
6852 |
if { (ac_try="$ac_compile" |
6853 |
case "(($ac_try" in |
6854 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6855 |
*) ac_try_echo=$ac_try;; |
6856 |
esac |
6857 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6858 |
(eval "$ac_compile") 2>conftest.er1 |
6859 |
ac_status=$? |
6860 |
grep -v '^ *+' conftest.er1 >conftest.err |
6861 |
rm -f conftest.er1 |
6862 |
cat conftest.err >&5 |
6863 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6864 |
(exit $ac_status); } && { |
6865 |
test -z "$ac_c_werror_flag" || |
6866 |
test ! -s conftest.err |
6867 |
} && test -s conftest.$ac_objext; then |
6868 |
ac_cv_type_uint64_t=yes |
6869 |
else |
6870 |
echo "$as_me: failed program was:" >&5 |
6871 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6872 |
|
6873 |
ac_cv_type_uint64_t=no |
6874 |
fi |
6875 |
|
6876 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6877 |
fi |
6878 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
6879 |
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
6880 |
|
6881 |
{ echo "$as_me:$LINENO: checking for int64_t" >&5 |
6882 |
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
6883 |
if test "${ac_cv_type_int64_t+set}" = set; then |
6884 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6885 |
else |
6886 |
cat >conftest.$ac_ext <<_ACEOF |
6887 |
/* confdefs.h. */ |
6888 |
_ACEOF |
6889 |
cat confdefs.h >>conftest.$ac_ext |
6890 |
cat >>conftest.$ac_ext <<_ACEOF |
6891 |
/* end confdefs.h. */ |
6892 |
$ac_includes_default |
6893 |
typedef int64_t ac__type_new_; |
6894 |
int |
6895 |
main () |
6896 |
{ |
6897 |
if ((ac__type_new_ *) 0) |
6898 |
return 0; |
6899 |
if (sizeof (ac__type_new_)) |
6900 |
return 0; |
6901 |
; |
6902 |
return 0; |
6903 |
} |
6904 |
_ACEOF |
6905 |
rm -f conftest.$ac_objext |
6906 |
if { (ac_try="$ac_compile" |
6907 |
case "(($ac_try" in |
6908 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6909 |
*) ac_try_echo=$ac_try;; |
6910 |
esac |
6911 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6912 |
(eval "$ac_compile") 2>conftest.er1 |
6913 |
ac_status=$? |
6914 |
grep -v '^ *+' conftest.er1 >conftest.err |
6915 |
rm -f conftest.er1 |
6916 |
cat conftest.err >&5 |
6917 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6918 |
(exit $ac_status); } && { |
6919 |
test -z "$ac_c_werror_flag" || |
6920 |
test ! -s conftest.err |
6921 |
} && test -s conftest.$ac_objext; then |
6922 |
ac_cv_type_int64_t=yes |
6923 |
else |
6924 |
echo "$as_me: failed program was:" >&5 |
6925 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6926 |
|
6927 |
ac_cv_type_int64_t=no |
6928 |
fi |
6929 |
|
6930 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6931 |
fi |
6932 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
6933 |
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
6934 |
|
6935 |
elif test "$ac_cv_sizeof_long_long" = 8; then |
6936 |
{ echo "$as_me:$LINENO: checking for uint64_t" >&5 |
6937 |
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } |
6938 |
if test "${ac_cv_type_uint64_t+set}" = set; then |
6939 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6940 |
else |
6941 |
cat >conftest.$ac_ext <<_ACEOF |
6942 |
/* confdefs.h. */ |
6943 |
_ACEOF |
6944 |
cat confdefs.h >>conftest.$ac_ext |
6945 |
cat >>conftest.$ac_ext <<_ACEOF |
6946 |
/* end confdefs.h. */ |
6947 |
$ac_includes_default |
6948 |
typedef uint64_t ac__type_new_; |
6949 |
int |
6950 |
main () |
6951 |
{ |
6952 |
if ((ac__type_new_ *) 0) |
6953 |
return 0; |
6954 |
if (sizeof (ac__type_new_)) |
6955 |
return 0; |
6956 |
; |
6957 |
return 0; |
6958 |
} |
6959 |
_ACEOF |
6960 |
rm -f conftest.$ac_objext |
6961 |
if { (ac_try="$ac_compile" |
6962 |
case "(($ac_try" in |
6963 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6964 |
*) ac_try_echo=$ac_try;; |
6965 |
esac |
6966 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6967 |
(eval "$ac_compile") 2>conftest.er1 |
6968 |
ac_status=$? |
6969 |
grep -v '^ *+' conftest.er1 >conftest.err |
6970 |
rm -f conftest.er1 |
6971 |
cat conftest.err >&5 |
6972 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6973 |
(exit $ac_status); } && { |
6974 |
test -z "$ac_c_werror_flag" || |
6975 |
test ! -s conftest.err |
6976 |
} && test -s conftest.$ac_objext; then |
6977 |
ac_cv_type_uint64_t=yes |
6978 |
else |
6979 |
echo "$as_me: failed program was:" >&5 |
6980 |
sed 's/^/| /' conftest.$ac_ext >&5 |
6981 |
|
6982 |
ac_cv_type_uint64_t=no |
6983 |
fi |
6984 |
|
6985 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6986 |
fi |
6987 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
6988 |
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } |
6989 |
if test $ac_cv_type_uint64_t = yes; then |
6990 |
: |
6991 |
else |
6992 |
|
6993 |
cat >>confdefs.h <<_ACEOF |
6994 |
#define uint64_t unsigned long long |
6995 |
_ACEOF |
6996 |
|
6997 |
fi |
6998 |
|
6999 |
{ echo "$as_me:$LINENO: checking for int64_t" >&5 |
7000 |
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } |
7001 |
if test "${ac_cv_type_int64_t+set}" = set; then |
7002 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7003 |
else |
7004 |
cat >conftest.$ac_ext <<_ACEOF |
7005 |
/* confdefs.h. */ |
7006 |
_ACEOF |
7007 |
cat confdefs.h >>conftest.$ac_ext |
7008 |
cat >>conftest.$ac_ext <<_ACEOF |
7009 |
/* end confdefs.h. */ |
7010 |
$ac_includes_default |
7011 |
typedef int64_t ac__type_new_; |
7012 |
int |
7013 |
main () |
7014 |
{ |
7015 |
if ((ac__type_new_ *) 0) |
7016 |
return 0; |
7017 |
if (sizeof (ac__type_new_)) |
7018 |
return 0; |
7019 |
; |
7020 |
return 0; |
7021 |
} |
7022 |
_ACEOF |
7023 |
rm -f conftest.$ac_objext |
7024 |
if { (ac_try="$ac_compile" |
7025 |
case "(($ac_try" in |
7026 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7027 |
*) ac_try_echo=$ac_try;; |
7028 |
esac |
7029 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7030 |
(eval "$ac_compile") 2>conftest.er1 |
7031 |
ac_status=$? |
7032 |
grep -v '^ *+' conftest.er1 >conftest.err |
7033 |
rm -f conftest.er1 |
7034 |
cat conftest.err >&5 |
7035 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7036 |
(exit $ac_status); } && { |
7037 |
test -z "$ac_c_werror_flag" || |
7038 |
test ! -s conftest.err |
7039 |
} && test -s conftest.$ac_objext; then |
7040 |
ac_cv_type_int64_t=yes |
7041 |
else |
7042 |
echo "$as_me: failed program was:" >&5 |
7043 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7044 |
|
7045 |
ac_cv_type_int64_t=no |
7046 |
fi |
7047 |
|
7048 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7049 |
fi |
7050 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 |
7051 |
echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } |
7052 |
if test $ac_cv_type_int64_t = yes; then |
7053 |
: |
7054 |
else |
7055 |
|
7056 |
cat >>confdefs.h <<_ACEOF |
7057 |
#define int64_t long long |
7058 |
_ACEOF |
7059 |
|
7060 |
fi |
7061 |
|
7062 |
else |
7063 |
{ { echo "$as_me:$LINENO: error: Your system doesn't appear to have 64 bit integers. Aborting." >&5 |
7064 |
echo "$as_me: error: Your system doesn't appear to have 64 bit integers. Aborting." >&2;} |
7065 |
{ (exit 1); exit 1; }; } |
7066 |
fi |
7067 |
|
7068 |
{ echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7069 |
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } |
7070 |
if test "${ac_cv_type_u_int32_t+set}" = set; then |
7071 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7072 |
else |
7073 |
cat >conftest.$ac_ext <<_ACEOF |
7074 |
/* confdefs.h. */ |
7075 |
_ACEOF |
7076 |
cat confdefs.h >>conftest.$ac_ext |
7077 |
cat >>conftest.$ac_ext <<_ACEOF |
7078 |
/* end confdefs.h. */ |
7079 |
$ac_includes_default |
7080 |
typedef u_int32_t ac__type_new_; |
7081 |
int |
7082 |
main () |
7083 |
{ |
7084 |
if ((ac__type_new_ *) 0) |
7085 |
return 0; |
7086 |
if (sizeof (ac__type_new_)) |
7087 |
return 0; |
7088 |
; |
7089 |
return 0; |
7090 |
} |
7091 |
_ACEOF |
7092 |
rm -f conftest.$ac_objext |
7093 |
if { (ac_try="$ac_compile" |
7094 |
case "(($ac_try" in |
7095 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7096 |
*) ac_try_echo=$ac_try;; |
7097 |
esac |
7098 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7099 |
(eval "$ac_compile") 2>conftest.er1 |
7100 |
ac_status=$? |
7101 |
grep -v '^ *+' conftest.er1 >conftest.err |
7102 |
rm -f conftest.er1 |
7103 |
cat conftest.err >&5 |
7104 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7105 |
(exit $ac_status); } && { |
7106 |
test -z "$ac_c_werror_flag" || |
7107 |
test ! -s conftest.err |
7108 |
} && test -s conftest.$ac_objext; then |
7109 |
ac_cv_type_u_int32_t=yes |
7110 |
else |
7111 |
echo "$as_me: failed program was:" >&5 |
7112 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7113 |
|
7114 |
ac_cv_type_u_int32_t=no |
7115 |
fi |
7116 |
|
7117 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7118 |
fi |
7119 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7120 |
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } |
7121 |
if test $ac_cv_type_u_int32_t = yes; then |
7122 |
: |
7123 |
else |
7124 |
|
7125 |
{ echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7126 |
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
7127 |
if test "${ac_cv_type_uint32_t+set}" = set; then |
7128 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7129 |
else |
7130 |
cat >conftest.$ac_ext <<_ACEOF |
7131 |
/* confdefs.h. */ |
7132 |
_ACEOF |
7133 |
cat confdefs.h >>conftest.$ac_ext |
7134 |
cat >>conftest.$ac_ext <<_ACEOF |
7135 |
/* end confdefs.h. */ |
7136 |
$ac_includes_default |
7137 |
typedef uint32_t ac__type_new_; |
7138 |
int |
7139 |
main () |
7140 |
{ |
7141 |
if ((ac__type_new_ *) 0) |
7142 |
return 0; |
7143 |
if (sizeof (ac__type_new_)) |
7144 |
return 0; |
7145 |
; |
7146 |
return 0; |
7147 |
} |
7148 |
_ACEOF |
7149 |
rm -f conftest.$ac_objext |
7150 |
if { (ac_try="$ac_compile" |
7151 |
case "(($ac_try" in |
7152 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7153 |
*) ac_try_echo=$ac_try;; |
7154 |
esac |
7155 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7156 |
(eval "$ac_compile") 2>conftest.er1 |
7157 |
ac_status=$? |
7158 |
grep -v '^ *+' conftest.er1 >conftest.err |
7159 |
rm -f conftest.er1 |
7160 |
cat conftest.err >&5 |
7161 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7162 |
(exit $ac_status); } && { |
7163 |
test -z "$ac_c_werror_flag" || |
7164 |
test ! -s conftest.err |
7165 |
} && test -s conftest.$ac_objext; then |
7166 |
ac_cv_type_uint32_t=yes |
7167 |
else |
7168 |
echo "$as_me: failed program was:" >&5 |
7169 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7170 |
|
7171 |
ac_cv_type_uint32_t=no |
7172 |
fi |
7173 |
|
7174 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7175 |
fi |
7176 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
7177 |
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } |
7178 |
if test $ac_cv_type_uint32_t = yes; then |
7179 |
|
7180 |
|
7181 |
cat >>confdefs.h <<\_ACEOF |
7182 |
#define u_int32_t uint32_t |
7183 |
_ACEOF |
7184 |
|
7185 |
|
7186 |
else |
7187 |
|
7188 |
{ echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
7189 |
echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} |
7190 |
|
7191 |
cat >>confdefs.h <<\_ACEOF |
7192 |
#define u_int32_t unsigned long int |
7193 |
_ACEOF |
7194 |
|
7195 |
|
7196 |
fi |
7197 |
|
7198 |
|
7199 |
fi |
7200 |
|
7201 |
|
7202 |
{ echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
7203 |
echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } |
7204 |
if test "${ac_cv_type_u_int16_t+set}" = set; then |
7205 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7206 |
else |
7207 |
cat >conftest.$ac_ext <<_ACEOF |
7208 |
/* confdefs.h. */ |
7209 |
_ACEOF |
7210 |
cat confdefs.h >>conftest.$ac_ext |
7211 |
cat >>conftest.$ac_ext <<_ACEOF |
7212 |
/* end confdefs.h. */ |
7213 |
$ac_includes_default |
7214 |
typedef u_int16_t ac__type_new_; |
7215 |
int |
7216 |
main () |
7217 |
{ |
7218 |
if ((ac__type_new_ *) 0) |
7219 |
return 0; |
7220 |
if (sizeof (ac__type_new_)) |
7221 |
return 0; |
7222 |
; |
7223 |
return 0; |
7224 |
} |
7225 |
_ACEOF |
7226 |
rm -f conftest.$ac_objext |
7227 |
if { (ac_try="$ac_compile" |
7228 |
case "(($ac_try" in |
7229 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7230 |
*) ac_try_echo=$ac_try;; |
7231 |
esac |
7232 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7233 |
(eval "$ac_compile") 2>conftest.er1 |
7234 |
ac_status=$? |
7235 |
grep -v '^ *+' conftest.er1 >conftest.err |
7236 |
rm -f conftest.er1 |
7237 |
cat conftest.err >&5 |
7238 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7239 |
(exit $ac_status); } && { |
7240 |
test -z "$ac_c_werror_flag" || |
7241 |
test ! -s conftest.err |
7242 |
} && test -s conftest.$ac_objext; then |
7243 |
ac_cv_type_u_int16_t=yes |
7244 |
else |
7245 |
echo "$as_me: failed program was:" >&5 |
7246 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7247 |
|
7248 |
ac_cv_type_u_int16_t=no |
7249 |
fi |
7250 |
|
7251 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7252 |
fi |
7253 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
7254 |
echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } |
7255 |
if test $ac_cv_type_u_int16_t = yes; then |
7256 |
: |
7257 |
else |
7258 |
|
7259 |
{ echo "$as_me:$LINENO: checking for uint16_t" >&5 |
7260 |
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
7261 |
if test "${ac_cv_type_uint16_t+set}" = set; then |
7262 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7263 |
else |
7264 |
cat >conftest.$ac_ext <<_ACEOF |
7265 |
/* confdefs.h. */ |
7266 |
_ACEOF |
7267 |
cat confdefs.h >>conftest.$ac_ext |
7268 |
cat >>conftest.$ac_ext <<_ACEOF |
7269 |
/* end confdefs.h. */ |
7270 |
$ac_includes_default |
7271 |
typedef uint16_t ac__type_new_; |
7272 |
int |
7273 |
main () |
7274 |
{ |
7275 |
if ((ac__type_new_ *) 0) |
7276 |
return 0; |
7277 |
if (sizeof (ac__type_new_)) |
7278 |
return 0; |
7279 |
; |
7280 |
return 0; |
7281 |
} |
7282 |
_ACEOF |
7283 |
rm -f conftest.$ac_objext |
7284 |
if { (ac_try="$ac_compile" |
7285 |
case "(($ac_try" in |
7286 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7287 |
*) ac_try_echo=$ac_try;; |
7288 |
esac |
7289 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7290 |
(eval "$ac_compile") 2>conftest.er1 |
7291 |
ac_status=$? |
7292 |
grep -v '^ *+' conftest.er1 >conftest.err |
7293 |
rm -f conftest.er1 |
7294 |
cat conftest.err >&5 |
7295 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7296 |
(exit $ac_status); } && { |
7297 |
test -z "$ac_c_werror_flag" || |
7298 |
test ! -s conftest.err |
7299 |
} && test -s conftest.$ac_objext; then |
7300 |
ac_cv_type_uint16_t=yes |
7301 |
else |
7302 |
echo "$as_me: failed program was:" >&5 |
7303 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7304 |
|
7305 |
ac_cv_type_uint16_t=no |
7306 |
fi |
7307 |
|
7308 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7309 |
fi |
7310 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
7311 |
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } |
7312 |
if test $ac_cv_type_uint16_t = yes; then |
7313 |
|
7314 |
|
7315 |
cat >>confdefs.h <<\_ACEOF |
7316 |
#define u_int16_t uint16_t |
7317 |
_ACEOF |
7318 |
|
7319 |
|
7320 |
else |
7321 |
|
7322 |
{ echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
7323 |
echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} |
7324 |
|
7325 |
cat >>confdefs.h <<\_ACEOF |
7326 |
#define u_int16_t unsigned short int |
7327 |
_ACEOF |
7328 |
|
7329 |
|
7330 |
fi |
7331 |
|
7332 |
|
7333 |
fi |
7334 |
|
7335 |
|
7336 |
{ echo "$as_me:$LINENO: checking for in_port_t" >&5 |
7337 |
echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } |
7338 |
if test "${ac_cv_type_in_port_t+set}" = set; then |
7339 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7340 |
else |
7341 |
cat >conftest.$ac_ext <<_ACEOF |
7342 |
/* confdefs.h. */ |
7343 |
_ACEOF |
7344 |
cat confdefs.h >>conftest.$ac_ext |
7345 |
cat >>conftest.$ac_ext <<_ACEOF |
7346 |
/* end confdefs.h. */ |
7347 |
#include <sys/types.h> |
7348 |
#include <netinet/in.h> |
7349 |
|
7350 |
typedef in_port_t ac__type_new_; |
7351 |
int |
7352 |
main () |
7353 |
{ |
7354 |
if ((ac__type_new_ *) 0) |
7355 |
return 0; |
7356 |
if (sizeof (ac__type_new_)) |
7357 |
return 0; |
7358 |
; |
7359 |
return 0; |
7360 |
} |
7361 |
_ACEOF |
7362 |
rm -f conftest.$ac_objext |
7363 |
if { (ac_try="$ac_compile" |
7364 |
case "(($ac_try" in |
7365 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7366 |
*) ac_try_echo=$ac_try;; |
7367 |
esac |
7368 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7369 |
(eval "$ac_compile") 2>conftest.er1 |
7370 |
ac_status=$? |
7371 |
grep -v '^ *+' conftest.er1 >conftest.err |
7372 |
rm -f conftest.er1 |
7373 |
cat conftest.err >&5 |
7374 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7375 |
(exit $ac_status); } && { |
7376 |
test -z "$ac_c_werror_flag" || |
7377 |
test ! -s conftest.err |
7378 |
} && test -s conftest.$ac_objext; then |
7379 |
ac_cv_type_in_port_t=yes |
7380 |
else |
7381 |
echo "$as_me: failed program was:" >&5 |
7382 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7383 |
|
7384 |
ac_cv_type_in_port_t=no |
7385 |
fi |
7386 |
|
7387 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7388 |
fi |
7389 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
7390 |
echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } |
7391 |
if test $ac_cv_type_in_port_t = yes; then |
7392 |
: |
7393 |
else |
7394 |
|
7395 |
cat >>confdefs.h <<\_ACEOF |
7396 |
#define in_port_t u_int16_t |
7397 |
_ACEOF |
7398 |
|
7399 |
fi |
7400 |
|
7401 |
|
7402 |
{ echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
7403 |
echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } |
7404 |
if test "${ac_cv_type_sa_family_t+set}" = set; then |
7405 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7406 |
else |
7407 |
cat >conftest.$ac_ext <<_ACEOF |
7408 |
/* confdefs.h. */ |
7409 |
_ACEOF |
7410 |
cat confdefs.h >>conftest.$ac_ext |
7411 |
cat >>conftest.$ac_ext <<_ACEOF |
7412 |
/* end confdefs.h. */ |
7413 |
#include <sys/types.h> |
7414 |
#include <sys/socket.h> |
7415 |
|
7416 |
typedef sa_family_t ac__type_new_; |
7417 |
int |
7418 |
main () |
7419 |
{ |
7420 |
if ((ac__type_new_ *) 0) |
7421 |
return 0; |
7422 |
if (sizeof (ac__type_new_)) |
7423 |
return 0; |
7424 |
; |
7425 |
return 0; |
7426 |
} |
7427 |
_ACEOF |
7428 |
rm -f conftest.$ac_objext |
7429 |
if { (ac_try="$ac_compile" |
7430 |
case "(($ac_try" in |
7431 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7432 |
*) ac_try_echo=$ac_try;; |
7433 |
esac |
7434 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7435 |
(eval "$ac_compile") 2>conftest.er1 |
7436 |
ac_status=$? |
7437 |
grep -v '^ *+' conftest.er1 >conftest.err |
7438 |
rm -f conftest.er1 |
7439 |
cat conftest.err >&5 |
7440 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7441 |
(exit $ac_status); } && { |
7442 |
test -z "$ac_c_werror_flag" || |
7443 |
test ! -s conftest.err |
7444 |
} && test -s conftest.$ac_objext; then |
7445 |
ac_cv_type_sa_family_t=yes |
7446 |
else |
7447 |
echo "$as_me: failed program was:" >&5 |
7448 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7449 |
|
7450 |
ac_cv_type_sa_family_t=no |
7451 |
fi |
7452 |
|
7453 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7454 |
fi |
7455 |
{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
7456 |
echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } |
7457 |
if test $ac_cv_type_sa_family_t = yes; then |
7458 |
: |
7459 |
else |
7460 |
|
7461 |
cat >>confdefs.h <<\_ACEOF |
7462 |
#define sa_family_t u_int16_t |
7463 |
_ACEOF |
7464 |
|
7465 |
fi |
7466 |
|
7467 |
|
7468 |
|
7469 |
|
7470 |
|
7471 |
|
7472 |
|
7473 |
|
7474 |
|
7475 |
|
7476 |
for ac_func in socketpair mmap snprintf vsnprintf lrand48 srand48 strtok_r usleep |
7477 |
do |
7478 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7479 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7480 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
7481 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
7482 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7483 |
else |
7484 |
cat >conftest.$ac_ext <<_ACEOF |
7485 |
/* confdefs.h. */ |
7486 |
_ACEOF |
7487 |
cat confdefs.h >>conftest.$ac_ext |
7488 |
cat >>conftest.$ac_ext <<_ACEOF |
7489 |
/* end confdefs.h. */ |
7490 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7491 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7492 |
#define $ac_func innocuous_$ac_func |
7493 |
|
7494 |
/* System header to define __stub macros and hopefully few prototypes, |
7495 |
which can conflict with char $ac_func (); below. |
7496 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7497 |
<limits.h> exists even on freestanding compilers. */ |
7498 |
|
7499 |
#ifdef __STDC__ |
7500 |
# include <limits.h> |
7501 |
#else |
7502 |
# include <assert.h> |
7503 |
#endif |
7504 |
|
7505 |
#undef $ac_func |
7506 |
|
7507 |
/* Override any GCC internal prototype to avoid an error. |
7508 |
Use char because int might match the return type of a GCC |
7509 |
builtin and then its argument prototype would still apply. */ |
7510 |
#ifdef __cplusplus |
7511 |
extern "C" |
7512 |
#endif |
7513 |
char $ac_func (); |
7514 |
/* The GNU C library defines this for functions which it implements |
7515 |
to always fail with ENOSYS. Some functions are actually named |
7516 |
something starting with __ and the normal name is an alias. */ |
7517 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
7518 |
choke me |
7519 |
#endif |
7520 |
|
7521 |
int |
7522 |
main () |
7523 |
{ |
7524 |
return $ac_func (); |
7525 |
; |
7526 |
return 0; |
7527 |
} |
7528 |
_ACEOF |
7529 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7530 |
if { (ac_try="$ac_link" |
7531 |
case "(($ac_try" in |
7532 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7533 |
*) ac_try_echo=$ac_try;; |
7534 |
esac |
7535 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7536 |
(eval "$ac_link") 2>conftest.er1 |
7537 |
ac_status=$? |
7538 |
grep -v '^ *+' conftest.er1 >conftest.err |
7539 |
rm -f conftest.er1 |
7540 |
cat conftest.err >&5 |
7541 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7542 |
(exit $ac_status); } && { |
7543 |
test -z "$ac_c_werror_flag" || |
7544 |
test ! -s conftest.err |
7545 |
} && test -s conftest$ac_exeext && |
7546 |
$as_test_x conftest$ac_exeext; then |
7547 |
eval "$as_ac_var=yes" |
7548 |
else |
7549 |
echo "$as_me: failed program was:" >&5 |
7550 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7551 |
|
7552 |
eval "$as_ac_var=no" |
7553 |
fi |
7554 |
|
7555 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7556 |
conftest$ac_exeext conftest.$ac_ext |
7557 |
fi |
7558 |
ac_res=`eval echo '${'$as_ac_var'}'` |
7559 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7560 |
echo "${ECHO_T}$ac_res" >&6; } |
7561 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
7562 |
cat >>confdefs.h <<_ACEOF |
7563 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7564 |
_ACEOF |
7565 |
|
7566 |
fi |
7567 |
done |
7568 |
|
7569 |
|
7570 |
if test "$ac_cv_func_snprintf" = no -o "$ac_cv_func_vsnprintf" = no; then |
7571 |
SNPRINTF_C="snprintf.c" |
7572 |
fi |
7573 |
|
7574 |
|
7575 |
|
7576 |
|
7577 |
{ echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
7578 |
echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } |
7579 |
# Check whether --enable-openssl was given. |
7580 |
if test "${enable_openssl+set}" = set; then |
7581 |
enableval=$enable_openssl; cf_enable_openssl=$enableval |
7582 |
else |
7583 |
cf_enable_openssl="auto" |
7584 |
fi |
7585 |
|
7586 |
|
7587 |
if test "$cf_enable_openssl" != "no" ; then |
7588 |
cf_openssl_basedir="" |
7589 |
if test "$cf_enable_openssl" != "auto" && |
7590 |
test "$cf_enable_openssl" != "yes" ; then |
7591 |
cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" |
7592 |
else |
7593 |
for dirs in /usr/local/ssl /usr/pkg /usr/local \ |
7594 |
/usr/local/openssl /usr/sfw; do |
7595 |
if test -f "${dirs}/include/openssl/opensslv.h" ; then |
7596 |
cf_openssl_basedir="${dirs}" |
7597 |
break |
7598 |
fi |
7599 |
done |
7600 |
unset dirs |
7601 |
fi |
7602 |
if test ! -z "$cf_openssl_basedir"; then |
7603 |
if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then |
7604 |
SSL_INCLUDES="-I${cf_openssl_basedir}/include" |
7605 |
SSL_LIBS="-L${cf_openssl_basedir}/lib" |
7606 |
else |
7607 |
cf_openssl_basedir="" |
7608 |
fi |
7609 |
else |
7610 |
if test -f "/usr/include/openssl/opensslv.h" ; then |
7611 |
cf_openssl_basedir="/usr" |
7612 |
fi |
7613 |
fi |
7614 |
|
7615 |
if test ! -z "$cf_openssl_basedir"; then |
7616 |
{ echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
7617 |
echo "${ECHO_T}$cf_openssl_basedir" >&6; } |
7618 |
cf_enable_openssl="yes" |
7619 |
else |
7620 |
{ echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
7621 |
echo "${ECHO_T}not found. Specify a correct path?" >&6; } |
7622 |
cf_enable_openssl="no" |
7623 |
fi |
7624 |
unset cf_openssl_basedir |
7625 |
else |
7626 |
{ echo "$as_me:$LINENO: result: disabled" >&5 |
7627 |
echo "${ECHO_T}disabled" >&6; } |
7628 |
fi |
7629 |
|
7630 |
save_CPPFLAGS="$CPPFLAGS" |
7631 |
CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" |
7632 |
save_LIBS="$LIBS" |
7633 |
LIBS="$LIBS $SSL_LIBS" |
7634 |
if test "$cf_enable_openssl" != no; then |
7635 |
{ echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
7636 |
echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } |
7637 |
if test "$cross_compiling" = yes; then |
7638 |
cf_openssl_version_ok=no |
7639 |
else |
7640 |
cat >conftest.$ac_ext <<_ACEOF |
7641 |
/* confdefs.h. */ |
7642 |
_ACEOF |
7643 |
cat confdefs.h >>conftest.$ac_ext |
7644 |
cat >>conftest.$ac_ext <<_ACEOF |
7645 |
/* end confdefs.h. */ |
7646 |
#include <openssl/opensslv.h> |
7647 |
#include <stdlib.h> |
7648 |
int |
7649 |
main () |
7650 |
{ |
7651 |
if (OPENSSL_VERSION_NUMBER >= 0x00906000) |
7652 |
exit(0); else exit(1); |
7653 |
; |
7654 |
return 0; |
7655 |
} |
7656 |
_ACEOF |
7657 |
rm -f conftest$ac_exeext |
7658 |
if { (ac_try="$ac_link" |
7659 |
case "(($ac_try" in |
7660 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7661 |
*) ac_try_echo=$ac_try;; |
7662 |
esac |
7663 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7664 |
(eval "$ac_link") 2>&5 |
7665 |
ac_status=$? |
7666 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7667 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
7668 |
{ (case "(($ac_try" in |
7669 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7670 |
*) ac_try_echo=$ac_try;; |
7671 |
esac |
7672 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7673 |
(eval "$ac_try") 2>&5 |
7674 |
ac_status=$? |
7675 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7676 |
(exit $ac_status); }; }; then |
7677 |
cf_openssl_version_ok=yes |
7678 |
else |
7679 |
echo "$as_me: program exited with status $ac_status" >&5 |
7680 |
echo "$as_me: failed program was:" >&5 |
7681 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7682 |
|
7683 |
( exit $ac_status ) |
7684 |
cf_openssl_version_ok=no |
7685 |
fi |
7686 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
7687 |
fi |
7688 |
|
7689 |
|
7690 |
|
7691 |
if test "$cf_openssl_version_ok" = yes; then |
7692 |
{ echo "$as_me:$LINENO: result: found" >&5 |
7693 |
echo "${ECHO_T}found" >&6; } |
7694 |
|
7695 |
ENCSPEED=encspeed |
7696 |
|
7697 |
|
7698 |
CPPFLAGS="$CPPFLAGS $SSL_LIBS" |
7699 |
|
7700 |
{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
7701 |
echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } |
7702 |
if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
7703 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7704 |
else |
7705 |
ac_check_lib_save_LIBS=$LIBS |
7706 |
LIBS="-lcrypto $LIBS" |
7707 |
cat >conftest.$ac_ext <<_ACEOF |
7708 |
/* confdefs.h. */ |
7709 |
_ACEOF |
7710 |
cat confdefs.h >>conftest.$ac_ext |
7711 |
cat >>conftest.$ac_ext <<_ACEOF |
7712 |
/* end confdefs.h. */ |
7713 |
|
7714 |
/* Override any GCC internal prototype to avoid an error. |
7715 |
Use char because int might match the return type of a GCC |
7716 |
builtin and then its argument prototype would still apply. */ |
7717 |
#ifdef __cplusplus |
7718 |
extern "C" |
7719 |
#endif |
7720 |
char RSA_free (); |
7721 |
int |
7722 |
main () |
7723 |
{ |
7724 |
return RSA_free (); |
7725 |
; |
7726 |
return 0; |
7727 |
} |
7728 |
_ACEOF |
7729 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7730 |
if { (ac_try="$ac_link" |
7731 |
case "(($ac_try" in |
7732 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7733 |
*) ac_try_echo=$ac_try;; |
7734 |
esac |
7735 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7736 |
(eval "$ac_link") 2>conftest.er1 |
7737 |
ac_status=$? |
7738 |
grep -v '^ *+' conftest.er1 >conftest.err |
7739 |
rm -f conftest.er1 |
7740 |
cat conftest.err >&5 |
7741 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7742 |
(exit $ac_status); } && { |
7743 |
test -z "$ac_c_werror_flag" || |
7744 |
test ! -s conftest.err |
7745 |
} && test -s conftest$ac_exeext && |
7746 |
$as_test_x conftest$ac_exeext; then |
7747 |
ac_cv_lib_crypto_RSA_free=yes |
7748 |
else |
7749 |
echo "$as_me: failed program was:" >&5 |
7750 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7751 |
|
7752 |
ac_cv_lib_crypto_RSA_free=no |
7753 |
fi |
7754 |
|
7755 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7756 |
conftest$ac_exeext conftest.$ac_ext |
7757 |
LIBS=$ac_check_lib_save_LIBS |
7758 |
fi |
7759 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
7760 |
echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } |
7761 |
if test $ac_cv_lib_crypto_RSA_free = yes; then |
7762 |
cat >>confdefs.h <<_ACEOF |
7763 |
#define HAVE_LIBCRYPTO 1 |
7764 |
_ACEOF |
7765 |
|
7766 |
LIBS="-lcrypto $LIBS" |
7767 |
|
7768 |
fi |
7769 |
|
7770 |
if test "$ac_cv_lib_crypto_RSA_free" = yes; then |
7771 |
LIBS="$LIBS -lcrypto" |
7772 |
cf_openssl_ciphers='' |
7773 |
|
7774 |
for ac_func in EVP_bf_cfb |
7775 |
do |
7776 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7777 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7778 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
7779 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
7780 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7781 |
else |
7782 |
cat >conftest.$ac_ext <<_ACEOF |
7783 |
/* confdefs.h. */ |
7784 |
_ACEOF |
7785 |
cat confdefs.h >>conftest.$ac_ext |
7786 |
cat >>conftest.$ac_ext <<_ACEOF |
7787 |
/* end confdefs.h. */ |
7788 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7789 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7790 |
#define $ac_func innocuous_$ac_func |
7791 |
|
7792 |
/* System header to define __stub macros and hopefully few prototypes, |
7793 |
which can conflict with char $ac_func (); below. |
7794 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7795 |
<limits.h> exists even on freestanding compilers. */ |
7796 |
|
7797 |
#ifdef __STDC__ |
7798 |
# include <limits.h> |
7799 |
#else |
7800 |
# include <assert.h> |
7801 |
#endif |
7802 |
|
7803 |
#undef $ac_func |
7804 |
|
7805 |
/* Override any GCC internal prototype to avoid an error. |
7806 |
Use char because int might match the return type of a GCC |
7807 |
builtin and then its argument prototype would still apply. */ |
7808 |
#ifdef __cplusplus |
7809 |
extern "C" |
7810 |
#endif |
7811 |
char $ac_func (); |
7812 |
/* The GNU C library defines this for functions which it implements |
7813 |
to always fail with ENOSYS. Some functions are actually named |
7814 |
something starting with __ and the normal name is an alias. */ |
7815 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
7816 |
choke me |
7817 |
#endif |
7818 |
|
7819 |
int |
7820 |
main () |
7821 |
{ |
7822 |
return $ac_func (); |
7823 |
; |
7824 |
return 0; |
7825 |
} |
7826 |
_ACEOF |
7827 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7828 |
if { (ac_try="$ac_link" |
7829 |
case "(($ac_try" in |
7830 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7831 |
*) ac_try_echo=$ac_try;; |
7832 |
esac |
7833 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7834 |
(eval "$ac_link") 2>conftest.er1 |
7835 |
ac_status=$? |
7836 |
grep -v '^ *+' conftest.er1 >conftest.err |
7837 |
rm -f conftest.er1 |
7838 |
cat conftest.err >&5 |
7839 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7840 |
(exit $ac_status); } && { |
7841 |
test -z "$ac_c_werror_flag" || |
7842 |
test ! -s conftest.err |
7843 |
} && test -s conftest$ac_exeext && |
7844 |
$as_test_x conftest$ac_exeext; then |
7845 |
eval "$as_ac_var=yes" |
7846 |
else |
7847 |
echo "$as_me: failed program was:" >&5 |
7848 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7849 |
|
7850 |
eval "$as_ac_var=no" |
7851 |
fi |
7852 |
|
7853 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7854 |
conftest$ac_exeext conftest.$ac_ext |
7855 |
fi |
7856 |
ac_res=`eval echo '${'$as_ac_var'}'` |
7857 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7858 |
echo "${ECHO_T}$ac_res" >&6; } |
7859 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
7860 |
cat >>confdefs.h <<_ACEOF |
7861 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7862 |
_ACEOF |
7863 |
cf_openssl_ciphers="${cf_openssl_ciphers}BF/168 BF/128 " |
7864 |
fi |
7865 |
done |
7866 |
|
7867 |
|
7868 |
for ac_func in EVP_cast5_cfb |
7869 |
do |
7870 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7871 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7872 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
7873 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
7874 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7875 |
else |
7876 |
cat >conftest.$ac_ext <<_ACEOF |
7877 |
/* confdefs.h. */ |
7878 |
_ACEOF |
7879 |
cat confdefs.h >>conftest.$ac_ext |
7880 |
cat >>conftest.$ac_ext <<_ACEOF |
7881 |
/* end confdefs.h. */ |
7882 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7883 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7884 |
#define $ac_func innocuous_$ac_func |
7885 |
|
7886 |
/* System header to define __stub macros and hopefully few prototypes, |
7887 |
which can conflict with char $ac_func (); below. |
7888 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7889 |
<limits.h> exists even on freestanding compilers. */ |
7890 |
|
7891 |
#ifdef __STDC__ |
7892 |
# include <limits.h> |
7893 |
#else |
7894 |
# include <assert.h> |
7895 |
#endif |
7896 |
|
7897 |
#undef $ac_func |
7898 |
|
7899 |
/* Override any GCC internal prototype to avoid an error. |
7900 |
Use char because int might match the return type of a GCC |
7901 |
builtin and then its argument prototype would still apply. */ |
7902 |
#ifdef __cplusplus |
7903 |
extern "C" |
7904 |
#endif |
7905 |
char $ac_func (); |
7906 |
/* The GNU C library defines this for functions which it implements |
7907 |
to always fail with ENOSYS. Some functions are actually named |
7908 |
something starting with __ and the normal name is an alias. */ |
7909 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
7910 |
choke me |
7911 |
#endif |
7912 |
|
7913 |
int |
7914 |
main () |
7915 |
{ |
7916 |
return $ac_func (); |
7917 |
; |
7918 |
return 0; |
7919 |
} |
7920 |
_ACEOF |
7921 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7922 |
if { (ac_try="$ac_link" |
7923 |
case "(($ac_try" in |
7924 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7925 |
*) ac_try_echo=$ac_try;; |
7926 |
esac |
7927 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7928 |
(eval "$ac_link") 2>conftest.er1 |
7929 |
ac_status=$? |
7930 |
grep -v '^ *+' conftest.er1 >conftest.err |
7931 |
rm -f conftest.er1 |
7932 |
cat conftest.err >&5 |
7933 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7934 |
(exit $ac_status); } && { |
7935 |
test -z "$ac_c_werror_flag" || |
7936 |
test ! -s conftest.err |
7937 |
} && test -s conftest$ac_exeext && |
7938 |
$as_test_x conftest$ac_exeext; then |
7939 |
eval "$as_ac_var=yes" |
7940 |
else |
7941 |
echo "$as_me: failed program was:" >&5 |
7942 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7943 |
|
7944 |
eval "$as_ac_var=no" |
7945 |
fi |
7946 |
|
7947 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7948 |
conftest$ac_exeext conftest.$ac_ext |
7949 |
fi |
7950 |
ac_res=`eval echo '${'$as_ac_var'}'` |
7951 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
7952 |
echo "${ECHO_T}$ac_res" >&6; } |
7953 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
7954 |
cat >>confdefs.h <<_ACEOF |
7955 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
7956 |
_ACEOF |
7957 |
cf_openssl_ciphers="${cf_openssl_ciphers}CAST/128 " |
7958 |
fi |
7959 |
done |
7960 |
|
7961 |
|
7962 |
for ac_func in EVP_idea_cfb |
7963 |
do |
7964 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7965 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7966 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
7967 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
7968 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
7969 |
else |
7970 |
cat >conftest.$ac_ext <<_ACEOF |
7971 |
/* confdefs.h. */ |
7972 |
_ACEOF |
7973 |
cat confdefs.h >>conftest.$ac_ext |
7974 |
cat >>conftest.$ac_ext <<_ACEOF |
7975 |
/* end confdefs.h. */ |
7976 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
7977 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7978 |
#define $ac_func innocuous_$ac_func |
7979 |
|
7980 |
/* System header to define __stub macros and hopefully few prototypes, |
7981 |
which can conflict with char $ac_func (); below. |
7982 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7983 |
<limits.h> exists even on freestanding compilers. */ |
7984 |
|
7985 |
#ifdef __STDC__ |
7986 |
# include <limits.h> |
7987 |
#else |
7988 |
# include <assert.h> |
7989 |
#endif |
7990 |
|
7991 |
#undef $ac_func |
7992 |
|
7993 |
/* Override any GCC internal prototype to avoid an error. |
7994 |
Use char because int might match the return type of a GCC |
7995 |
builtin and then its argument prototype would still apply. */ |
7996 |
#ifdef __cplusplus |
7997 |
extern "C" |
7998 |
#endif |
7999 |
char $ac_func (); |
8000 |
/* The GNU C library defines this for functions which it implements |
8001 |
to always fail with ENOSYS. Some functions are actually named |
8002 |
something starting with __ and the normal name is an alias. */ |
8003 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8004 |
choke me |
8005 |
#endif |
8006 |
|
8007 |
int |
8008 |
main () |
8009 |
{ |
8010 |
return $ac_func (); |
8011 |
; |
8012 |
return 0; |
8013 |
} |
8014 |
_ACEOF |
8015 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8016 |
if { (ac_try="$ac_link" |
8017 |
case "(($ac_try" in |
8018 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8019 |
*) ac_try_echo=$ac_try;; |
8020 |
esac |
8021 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8022 |
(eval "$ac_link") 2>conftest.er1 |
8023 |
ac_status=$? |
8024 |
grep -v '^ *+' conftest.er1 >conftest.err |
8025 |
rm -f conftest.er1 |
8026 |
cat conftest.err >&5 |
8027 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8028 |
(exit $ac_status); } && { |
8029 |
test -z "$ac_c_werror_flag" || |
8030 |
test ! -s conftest.err |
8031 |
} && test -s conftest$ac_exeext && |
8032 |
$as_test_x conftest$ac_exeext; then |
8033 |
eval "$as_ac_var=yes" |
8034 |
else |
8035 |
echo "$as_me: failed program was:" >&5 |
8036 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8037 |
|
8038 |
eval "$as_ac_var=no" |
8039 |
fi |
8040 |
|
8041 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8042 |
conftest$ac_exeext conftest.$ac_ext |
8043 |
fi |
8044 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8045 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8046 |
echo "${ECHO_T}$ac_res" >&6; } |
8047 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8048 |
cat >>confdefs.h <<_ACEOF |
8049 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8050 |
_ACEOF |
8051 |
cf_openssl_ciphers="${cf_openssl_ciphers}IDEA/128 " |
8052 |
fi |
8053 |
done |
8054 |
|
8055 |
|
8056 |
for ac_func in EVP_rc5_32_12_16_cfb |
8057 |
do |
8058 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8059 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8060 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8061 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8062 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8063 |
else |
8064 |
cat >conftest.$ac_ext <<_ACEOF |
8065 |
/* confdefs.h. */ |
8066 |
_ACEOF |
8067 |
cat confdefs.h >>conftest.$ac_ext |
8068 |
cat >>conftest.$ac_ext <<_ACEOF |
8069 |
/* end confdefs.h. */ |
8070 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8071 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8072 |
#define $ac_func innocuous_$ac_func |
8073 |
|
8074 |
/* System header to define __stub macros and hopefully few prototypes, |
8075 |
which can conflict with char $ac_func (); below. |
8076 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8077 |
<limits.h> exists even on freestanding compilers. */ |
8078 |
|
8079 |
#ifdef __STDC__ |
8080 |
# include <limits.h> |
8081 |
#else |
8082 |
# include <assert.h> |
8083 |
#endif |
8084 |
|
8085 |
#undef $ac_func |
8086 |
|
8087 |
/* Override any GCC internal prototype to avoid an error. |
8088 |
Use char because int might match the return type of a GCC |
8089 |
builtin and then its argument prototype would still apply. */ |
8090 |
#ifdef __cplusplus |
8091 |
extern "C" |
8092 |
#endif |
8093 |
char $ac_func (); |
8094 |
/* The GNU C library defines this for functions which it implements |
8095 |
to always fail with ENOSYS. Some functions are actually named |
8096 |
something starting with __ and the normal name is an alias. */ |
8097 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8098 |
choke me |
8099 |
#endif |
8100 |
|
8101 |
int |
8102 |
main () |
8103 |
{ |
8104 |
return $ac_func (); |
8105 |
; |
8106 |
return 0; |
8107 |
} |
8108 |
_ACEOF |
8109 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8110 |
if { (ac_try="$ac_link" |
8111 |
case "(($ac_try" in |
8112 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8113 |
*) ac_try_echo=$ac_try;; |
8114 |
esac |
8115 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8116 |
(eval "$ac_link") 2>conftest.er1 |
8117 |
ac_status=$? |
8118 |
grep -v '^ *+' conftest.er1 >conftest.err |
8119 |
rm -f conftest.er1 |
8120 |
cat conftest.err >&5 |
8121 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8122 |
(exit $ac_status); } && { |
8123 |
test -z "$ac_c_werror_flag" || |
8124 |
test ! -s conftest.err |
8125 |
} && test -s conftest$ac_exeext && |
8126 |
$as_test_x conftest$ac_exeext; then |
8127 |
eval "$as_ac_var=yes" |
8128 |
else |
8129 |
echo "$as_me: failed program was:" >&5 |
8130 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8131 |
|
8132 |
eval "$as_ac_var=no" |
8133 |
fi |
8134 |
|
8135 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8136 |
conftest$ac_exeext conftest.$ac_ext |
8137 |
fi |
8138 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8139 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8140 |
echo "${ECHO_T}$ac_res" >&6; } |
8141 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8142 |
cat >>confdefs.h <<_ACEOF |
8143 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8144 |
_ACEOF |
8145 |
cf_openssl_ciphers="${cf_openssl_ciphers}RC5.16/128 RC5.12/128 RC5.8/128 " |
8146 |
fi |
8147 |
done |
8148 |
|
8149 |
|
8150 |
for ac_func in EVP_des_ede3_cfb |
8151 |
do |
8152 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8153 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8154 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8155 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8156 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8157 |
else |
8158 |
cat >conftest.$ac_ext <<_ACEOF |
8159 |
/* confdefs.h. */ |
8160 |
_ACEOF |
8161 |
cat confdefs.h >>conftest.$ac_ext |
8162 |
cat >>conftest.$ac_ext <<_ACEOF |
8163 |
/* end confdefs.h. */ |
8164 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8165 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8166 |
#define $ac_func innocuous_$ac_func |
8167 |
|
8168 |
/* System header to define __stub macros and hopefully few prototypes, |
8169 |
which can conflict with char $ac_func (); below. |
8170 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8171 |
<limits.h> exists even on freestanding compilers. */ |
8172 |
|
8173 |
#ifdef __STDC__ |
8174 |
# include <limits.h> |
8175 |
#else |
8176 |
# include <assert.h> |
8177 |
#endif |
8178 |
|
8179 |
#undef $ac_func |
8180 |
|
8181 |
/* Override any GCC internal prototype to avoid an error. |
8182 |
Use char because int might match the return type of a GCC |
8183 |
builtin and then its argument prototype would still apply. */ |
8184 |
#ifdef __cplusplus |
8185 |
extern "C" |
8186 |
#endif |
8187 |
char $ac_func (); |
8188 |
/* The GNU C library defines this for functions which it implements |
8189 |
to always fail with ENOSYS. Some functions are actually named |
8190 |
something starting with __ and the normal name is an alias. */ |
8191 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8192 |
choke me |
8193 |
#endif |
8194 |
|
8195 |
int |
8196 |
main () |
8197 |
{ |
8198 |
return $ac_func (); |
8199 |
; |
8200 |
return 0; |
8201 |
} |
8202 |
_ACEOF |
8203 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8204 |
if { (ac_try="$ac_link" |
8205 |
case "(($ac_try" in |
8206 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8207 |
*) ac_try_echo=$ac_try;; |
8208 |
esac |
8209 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8210 |
(eval "$ac_link") 2>conftest.er1 |
8211 |
ac_status=$? |
8212 |
grep -v '^ *+' conftest.er1 >conftest.err |
8213 |
rm -f conftest.er1 |
8214 |
cat conftest.err >&5 |
8215 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8216 |
(exit $ac_status); } && { |
8217 |
test -z "$ac_c_werror_flag" || |
8218 |
test ! -s conftest.err |
8219 |
} && test -s conftest$ac_exeext && |
8220 |
$as_test_x conftest$ac_exeext; then |
8221 |
eval "$as_ac_var=yes" |
8222 |
else |
8223 |
echo "$as_me: failed program was:" >&5 |
8224 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8225 |
|
8226 |
eval "$as_ac_var=no" |
8227 |
fi |
8228 |
|
8229 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8230 |
conftest$ac_exeext conftest.$ac_ext |
8231 |
fi |
8232 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8233 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8234 |
echo "${ECHO_T}$ac_res" >&6; } |
8235 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8236 |
cat >>confdefs.h <<_ACEOF |
8237 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8238 |
_ACEOF |
8239 |
cf_openssl_ciphers="${cf_openssl_ciphers}3DES/168 " |
8240 |
fi |
8241 |
done |
8242 |
|
8243 |
|
8244 |
for ac_func in EVP_des_cfb |
8245 |
do |
8246 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8247 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8248 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8249 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8250 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8251 |
else |
8252 |
cat >conftest.$ac_ext <<_ACEOF |
8253 |
/* confdefs.h. */ |
8254 |
_ACEOF |
8255 |
cat confdefs.h >>conftest.$ac_ext |
8256 |
cat >>conftest.$ac_ext <<_ACEOF |
8257 |
/* end confdefs.h. */ |
8258 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
8259 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8260 |
#define $ac_func innocuous_$ac_func |
8261 |
|
8262 |
/* System header to define __stub macros and hopefully few prototypes, |
8263 |
which can conflict with char $ac_func (); below. |
8264 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8265 |
<limits.h> exists even on freestanding compilers. */ |
8266 |
|
8267 |
#ifdef __STDC__ |
8268 |
# include <limits.h> |
8269 |
#else |
8270 |
# include <assert.h> |
8271 |
#endif |
8272 |
|
8273 |
#undef $ac_func |
8274 |
|
8275 |
/* Override any GCC internal prototype to avoid an error. |
8276 |
Use char because int might match the return type of a GCC |
8277 |
builtin and then its argument prototype would still apply. */ |
8278 |
#ifdef __cplusplus |
8279 |
extern "C" |
8280 |
#endif |
8281 |
char $ac_func (); |
8282 |
/* The GNU C library defines this for functions which it implements |
8283 |
to always fail with ENOSYS. Some functions are actually named |
8284 |
something starting with __ and the normal name is an alias. */ |
8285 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
8286 |
choke me |
8287 |
#endif |
8288 |
|
8289 |
int |
8290 |
main () |
8291 |
{ |
8292 |
return $ac_func (); |
8293 |
; |
8294 |
return 0; |
8295 |
} |
8296 |
_ACEOF |
8297 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8298 |
if { (ac_try="$ac_link" |
8299 |
case "(($ac_try" in |
8300 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8301 |
*) ac_try_echo=$ac_try;; |
8302 |
esac |
8303 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8304 |
(eval "$ac_link") 2>conftest.er1 |
8305 |
ac_status=$? |
8306 |
grep -v '^ *+' conftest.er1 >conftest.err |
8307 |
rm -f conftest.er1 |
8308 |
cat conftest.err >&5 |
8309 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8310 |
(exit $ac_status); } && { |
8311 |
test -z "$ac_c_werror_flag" || |
8312 |
test ! -s conftest.err |
8313 |
} && test -s conftest$ac_exeext && |
8314 |
$as_test_x conftest$ac_exeext; then |
8315 |
eval "$as_ac_var=yes" |
8316 |
else |
8317 |
echo "$as_me: failed program was:" >&5 |
8318 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8319 |
|
8320 |
eval "$as_ac_var=no" |
8321 |
fi |
8322 |
|
8323 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8324 |
conftest$ac_exeext conftest.$ac_ext |
8325 |
fi |
8326 |
ac_res=`eval echo '${'$as_ac_var'}'` |
8327 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8328 |
echo "${ECHO_T}$ac_res" >&6; } |
8329 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
8330 |
cat >>confdefs.h <<_ACEOF |
8331 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8332 |
_ACEOF |
8333 |
cf_openssl_ciphers="${cf_openssl_ciphers}DES/56 " |
8334 |
fi |
8335 |
done |
8336 |
|
8337 |
fi |
8338 |
SSL_LIBS="$SSL_LIBS -lssl -lcrypto" |
8339 |
SSL_SRCS_ENABLE='$(SSL_SRCS)' |
8340 |
else |
8341 |
{ echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
8342 |
echo "${ECHO_T}no - OpenSSL support disabled" >&6; } |
8343 |
fi |
8344 |
fi |
8345 |
|
8346 |
CPPFLAGS="$save_CPPFLAGS" |
8347 |
LIBS="$save_LIBS" |
8348 |
|
8349 |
|
8350 |
|
8351 |
|
8352 |
# Check whether --with-zlib-path was given. |
8353 |
if test "${with_zlib_path+set}" = set; then |
8354 |
withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
8355 |
fi |
8356 |
|
8357 |
|
8358 |
# Check whether --enable-zlib was given. |
8359 |
if test "${enable_zlib+set}" = set; then |
8360 |
enableval=$enable_zlib; zlib=$enableval |
8361 |
else |
8362 |
zlib=yes |
8363 |
fi |
8364 |
|
8365 |
|
8366 |
if test "$zlib" = yes; then |
8367 |
|
8368 |
if test "${ac_cv_header_zlib_h+set}" = set; then |
8369 |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
8370 |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
8371 |
if test "${ac_cv_header_zlib_h+set}" = set; then |
8372 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8373 |
fi |
8374 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
8375 |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
8376 |
else |
8377 |
# Is the header compilable? |
8378 |
{ echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
8379 |
echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } |
8380 |
cat >conftest.$ac_ext <<_ACEOF |
8381 |
/* confdefs.h. */ |
8382 |
_ACEOF |
8383 |
cat confdefs.h >>conftest.$ac_ext |
8384 |
cat >>conftest.$ac_ext <<_ACEOF |
8385 |
/* end confdefs.h. */ |
8386 |
$ac_includes_default |
8387 |
#include <zlib.h> |
8388 |
_ACEOF |
8389 |
rm -f conftest.$ac_objext |
8390 |
if { (ac_try="$ac_compile" |
8391 |
case "(($ac_try" in |
8392 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8393 |
*) ac_try_echo=$ac_try;; |
8394 |
esac |
8395 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8396 |
(eval "$ac_compile") 2>conftest.er1 |
8397 |
ac_status=$? |
8398 |
grep -v '^ *+' conftest.er1 >conftest.err |
8399 |
rm -f conftest.er1 |
8400 |
cat conftest.err >&5 |
8401 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8402 |
(exit $ac_status); } && { |
8403 |
test -z "$ac_c_werror_flag" || |
8404 |
test ! -s conftest.err |
8405 |
} && test -s conftest.$ac_objext; then |
8406 |
ac_header_compiler=yes |
8407 |
else |
8408 |
echo "$as_me: failed program was:" >&5 |
8409 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8410 |
|
8411 |
ac_header_compiler=no |
8412 |
fi |
8413 |
|
8414 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8415 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8416 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8417 |
|
8418 |
# Is the header present? |
8419 |
{ echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
8420 |
echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } |
8421 |
cat >conftest.$ac_ext <<_ACEOF |
8422 |
/* confdefs.h. */ |
8423 |
_ACEOF |
8424 |
cat confdefs.h >>conftest.$ac_ext |
8425 |
cat >>conftest.$ac_ext <<_ACEOF |
8426 |
/* end confdefs.h. */ |
8427 |
#include <zlib.h> |
8428 |
_ACEOF |
8429 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8430 |
case "(($ac_try" in |
8431 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8432 |
*) ac_try_echo=$ac_try;; |
8433 |
esac |
8434 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8435 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8436 |
ac_status=$? |
8437 |
grep -v '^ *+' conftest.er1 >conftest.err |
8438 |
rm -f conftest.er1 |
8439 |
cat conftest.err >&5 |
8440 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8441 |
(exit $ac_status); } >/dev/null && { |
8442 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8443 |
test ! -s conftest.err |
8444 |
}; then |
8445 |
ac_header_preproc=yes |
8446 |
else |
8447 |
echo "$as_me: failed program was:" >&5 |
8448 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8449 |
|
8450 |
ac_header_preproc=no |
8451 |
fi |
8452 |
|
8453 |
rm -f conftest.err conftest.$ac_ext |
8454 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8455 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8456 |
|
8457 |
# So? What about this header? |
8458 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8459 |
yes:no: ) |
8460 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8461 |
echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8462 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
8463 |
echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} |
8464 |
ac_header_preproc=yes |
8465 |
;; |
8466 |
no:yes:* ) |
8467 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
8468 |
echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} |
8469 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
8470 |
echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} |
8471 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 |
8472 |
echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} |
8473 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 |
8474 |
echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8475 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
8476 |
echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} |
8477 |
{ echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
8478 |
echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} |
8479 |
|
8480 |
;; |
8481 |
esac |
8482 |
{ echo "$as_me:$LINENO: checking for zlib.h" >&5 |
8483 |
echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } |
8484 |
if test "${ac_cv_header_zlib_h+set}" = set; then |
8485 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8486 |
else |
8487 |
ac_cv_header_zlib_h=$ac_header_preproc |
8488 |
fi |
8489 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
8490 |
echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } |
8491 |
|
8492 |
fi |
8493 |
if test $ac_cv_header_zlib_h = yes; then |
8494 |
|
8495 |
{ echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
8496 |
echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } |
8497 |
if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
8498 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8499 |
else |
8500 |
ac_check_lib_save_LIBS=$LIBS |
8501 |
LIBS="-lz $LIBS" |
8502 |
cat >conftest.$ac_ext <<_ACEOF |
8503 |
/* confdefs.h. */ |
8504 |
_ACEOF |
8505 |
cat confdefs.h >>conftest.$ac_ext |
8506 |
cat >>conftest.$ac_ext <<_ACEOF |
8507 |
/* end confdefs.h. */ |
8508 |
|
8509 |
/* Override any GCC internal prototype to avoid an error. |
8510 |
Use char because int might match the return type of a GCC |
8511 |
builtin and then its argument prototype would still apply. */ |
8512 |
#ifdef __cplusplus |
8513 |
extern "C" |
8514 |
#endif |
8515 |
char zlibVersion (); |
8516 |
int |
8517 |
main () |
8518 |
{ |
8519 |
return zlibVersion (); |
8520 |
; |
8521 |
return 0; |
8522 |
} |
8523 |
_ACEOF |
8524 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8525 |
if { (ac_try="$ac_link" |
8526 |
case "(($ac_try" in |
8527 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8528 |
*) ac_try_echo=$ac_try;; |
8529 |
esac |
8530 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8531 |
(eval "$ac_link") 2>conftest.er1 |
8532 |
ac_status=$? |
8533 |
grep -v '^ *+' conftest.er1 >conftest.err |
8534 |
rm -f conftest.er1 |
8535 |
cat conftest.err >&5 |
8536 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8537 |
(exit $ac_status); } && { |
8538 |
test -z "$ac_c_werror_flag" || |
8539 |
test ! -s conftest.err |
8540 |
} && test -s conftest$ac_exeext && |
8541 |
$as_test_x conftest$ac_exeext; then |
8542 |
ac_cv_lib_z_zlibVersion=yes |
8543 |
else |
8544 |
echo "$as_me: failed program was:" >&5 |
8545 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8546 |
|
8547 |
ac_cv_lib_z_zlibVersion=no |
8548 |
fi |
8549 |
|
8550 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8551 |
conftest$ac_exeext conftest.$ac_ext |
8552 |
LIBS=$ac_check_lib_save_LIBS |
8553 |
fi |
8554 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
8555 |
echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } |
8556 |
if test $ac_cv_lib_z_zlibVersion = yes; then |
8557 |
|
8558 |
ZLIB_LD=-lz |
8559 |
|
8560 |
|
8561 |
cat >>confdefs.h <<\_ACEOF |
8562 |
#define HAVE_LIBZ 1 |
8563 |
_ACEOF |
8564 |
|
8565 |
|
8566 |
else |
8567 |
zlib=no |
8568 |
fi |
8569 |
|
8570 |
|
8571 |
else |
8572 |
zlib=no |
8573 |
fi |
8574 |
|
8575 |
|
8576 |
|
8577 |
fi |
8578 |
|
8579 |
|
8580 |
# Check whether --enable-poll was given. |
8581 |
if test "${enable_poll+set}" = set; then |
8582 |
enableval=$enable_poll; SELECT_TYPE_EXPLICIT="poll"; echo "Forcing poll() to be enabled" |
8583 |
fi |
8584 |
|
8585 |
|
8586 |
# Check whether --enable-select was given. |
8587 |
if test "${enable_select+set}" = set; then |
8588 |
enableval=$enable_select; SELECT_TYPE_EXPLICIT="select"; echo "Forcing select() to be enabled" |
8589 |
fi |
8590 |
|
8591 |
|
8592 |
# Check whether --enable-kqueue was given. |
8593 |
if test "${enable_kqueue+set}" = set; then |
8594 |
enableval=$enable_kqueue; SELECT_TYPE_EXPLICIT="kqueue"; echo "Forcing kqueue() to be enabled" |
8595 |
fi |
8596 |
|
8597 |
|
8598 |
# Check whether --enable-devpoll was given. |
8599 |
if test "${enable_devpoll+set}" = set; then |
8600 |
enableval=$enable_devpoll; SELECT_TYPE_EXPLICIT="devpoll" |
8601 |
echo "Forcing /dev/poll to be enabled" |
8602 |
|
8603 |
|
8604 |
for ac_header in sys/devpoll.h devpoll.h |
8605 |
do |
8606 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8607 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8608 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8609 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8610 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8611 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8612 |
fi |
8613 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8614 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8615 |
echo "${ECHO_T}$ac_res" >&6; } |
8616 |
else |
8617 |
# Is the header compilable? |
8618 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8619 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
8620 |
cat >conftest.$ac_ext <<_ACEOF |
8621 |
/* confdefs.h. */ |
8622 |
_ACEOF |
8623 |
cat confdefs.h >>conftest.$ac_ext |
8624 |
cat >>conftest.$ac_ext <<_ACEOF |
8625 |
/* end confdefs.h. */ |
8626 |
$ac_includes_default |
8627 |
#include <$ac_header> |
8628 |
_ACEOF |
8629 |
rm -f conftest.$ac_objext |
8630 |
if { (ac_try="$ac_compile" |
8631 |
case "(($ac_try" in |
8632 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8633 |
*) ac_try_echo=$ac_try;; |
8634 |
esac |
8635 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8636 |
(eval "$ac_compile") 2>conftest.er1 |
8637 |
ac_status=$? |
8638 |
grep -v '^ *+' conftest.er1 >conftest.err |
8639 |
rm -f conftest.er1 |
8640 |
cat conftest.err >&5 |
8641 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8642 |
(exit $ac_status); } && { |
8643 |
test -z "$ac_c_werror_flag" || |
8644 |
test ! -s conftest.err |
8645 |
} && test -s conftest.$ac_objext; then |
8646 |
ac_header_compiler=yes |
8647 |
else |
8648 |
echo "$as_me: failed program was:" >&5 |
8649 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8650 |
|
8651 |
ac_header_compiler=no |
8652 |
fi |
8653 |
|
8654 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8655 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8656 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8657 |
|
8658 |
# Is the header present? |
8659 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8660 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
8661 |
cat >conftest.$ac_ext <<_ACEOF |
8662 |
/* confdefs.h. */ |
8663 |
_ACEOF |
8664 |
cat confdefs.h >>conftest.$ac_ext |
8665 |
cat >>conftest.$ac_ext <<_ACEOF |
8666 |
/* end confdefs.h. */ |
8667 |
#include <$ac_header> |
8668 |
_ACEOF |
8669 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8670 |
case "(($ac_try" in |
8671 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8672 |
*) ac_try_echo=$ac_try;; |
8673 |
esac |
8674 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8675 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8676 |
ac_status=$? |
8677 |
grep -v '^ *+' conftest.er1 >conftest.err |
8678 |
rm -f conftest.er1 |
8679 |
cat conftest.err >&5 |
8680 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8681 |
(exit $ac_status); } >/dev/null && { |
8682 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8683 |
test ! -s conftest.err |
8684 |
}; then |
8685 |
ac_header_preproc=yes |
8686 |
else |
8687 |
echo "$as_me: failed program was:" >&5 |
8688 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8689 |
|
8690 |
ac_header_preproc=no |
8691 |
fi |
8692 |
|
8693 |
rm -f conftest.err conftest.$ac_ext |
8694 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8695 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8696 |
|
8697 |
# So? What about this header? |
8698 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8699 |
yes:no: ) |
8700 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
8701 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8702 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
8703 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
8704 |
ac_header_preproc=yes |
8705 |
;; |
8706 |
no:yes:* ) |
8707 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
8708 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
8709 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
8710 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
8711 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
8712 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
8713 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
8714 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
8715 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
8716 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
8717 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
8718 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
8719 |
|
8720 |
;; |
8721 |
esac |
8722 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8723 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8724 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8725 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8726 |
else |
8727 |
eval "$as_ac_Header=\$ac_header_preproc" |
8728 |
fi |
8729 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
8730 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
8731 |
echo "${ECHO_T}$ac_res" >&6; } |
8732 |
|
8733 |
fi |
8734 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8735 |
cat >>confdefs.h <<_ACEOF |
8736 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
8737 |
_ACEOF |
8738 |
|
8739 |
fi |
8740 |
|
8741 |
done |
8742 |
|
8743 |
fi |
8744 |
|
8745 |
|
8746 |
# Check whether --enable-rtsigio was given. |
8747 |
if test "${enable_rtsigio+set}" = set; then |
8748 |
enableval=$enable_rtsigio; SELECT_TYPE_EXPLICIT="sigio"; echo "Forcing Linux RT Sigio to be enabled" |
8749 |
fi |
8750 |
|
8751 |
|
8752 |
# Check whether --enable-epoll was given. |
8753 |
if test "${enable_epoll+set}" = set; then |
8754 |
enableval=$enable_epoll; SELECT_TYPE_EXPLICIT="epoll"; echo "Forcing Linux epoll to be enabled" |
8755 |
fi |
8756 |
|
8757 |
|
8758 |
if test ! -z "$SELECT_TYPE_EXPLICIT"; then |
8759 |
SELECT_TYPE="$SELECT_TYPE_EXPLICIT" |
8760 |
else |
8761 |
|
8762 |
{ echo "$as_me:$LINENO: checking for kevent" >&5 |
8763 |
echo $ECHO_N "checking for kevent... $ECHO_C" >&6; } |
8764 |
if test "${ac_cv_func_kevent+set}" = set; then |
8765 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8766 |
else |
8767 |
cat >conftest.$ac_ext <<_ACEOF |
8768 |
/* confdefs.h. */ |
8769 |
_ACEOF |
8770 |
cat confdefs.h >>conftest.$ac_ext |
8771 |
cat >>conftest.$ac_ext <<_ACEOF |
8772 |
/* end confdefs.h. */ |
8773 |
/* Define kevent to an innocuous variant, in case <limits.h> declares kevent. |
8774 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8775 |
#define kevent innocuous_kevent |
8776 |
|
8777 |
/* System header to define __stub macros and hopefully few prototypes, |
8778 |
which can conflict with char kevent (); below. |
8779 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8780 |
<limits.h> exists even on freestanding compilers. */ |
8781 |
|
8782 |
#ifdef __STDC__ |
8783 |
# include <limits.h> |
8784 |
#else |
8785 |
# include <assert.h> |
8786 |
#endif |
8787 |
|
8788 |
#undef kevent |
8789 |
|
8790 |
/* Override any GCC internal prototype to avoid an error. |
8791 |
Use char because int might match the return type of a GCC |
8792 |
builtin and then its argument prototype would still apply. */ |
8793 |
#ifdef __cplusplus |
8794 |
extern "C" |
8795 |
#endif |
8796 |
char kevent (); |
8797 |
/* The GNU C library defines this for functions which it implements |
8798 |
to always fail with ENOSYS. Some functions are actually named |
8799 |
something starting with __ and the normal name is an alias. */ |
8800 |
#if defined __stub_kevent || defined __stub___kevent |
8801 |
choke me |
8802 |
#endif |
8803 |
|
8804 |
int |
8805 |
main () |
8806 |
{ |
8807 |
return kevent (); |
8808 |
; |
8809 |
return 0; |
8810 |
} |
8811 |
_ACEOF |
8812 |
rm -f conftest.$ac_objext conftest$ac_exeext |
8813 |
if { (ac_try="$ac_link" |
8814 |
case "(($ac_try" in |
8815 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8816 |
*) ac_try_echo=$ac_try;; |
8817 |
esac |
8818 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8819 |
(eval "$ac_link") 2>conftest.er1 |
8820 |
ac_status=$? |
8821 |
grep -v '^ *+' conftest.er1 >conftest.err |
8822 |
rm -f conftest.er1 |
8823 |
cat conftest.err >&5 |
8824 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8825 |
(exit $ac_status); } && { |
8826 |
test -z "$ac_c_werror_flag" || |
8827 |
test ! -s conftest.err |
8828 |
} && test -s conftest$ac_exeext && |
8829 |
$as_test_x conftest$ac_exeext; then |
8830 |
ac_cv_func_kevent=yes |
8831 |
else |
8832 |
echo "$as_me: failed program was:" >&5 |
8833 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8834 |
|
8835 |
ac_cv_func_kevent=no |
8836 |
fi |
8837 |
|
8838 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8839 |
conftest$ac_exeext conftest.$ac_ext |
8840 |
fi |
8841 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5 |
8842 |
echo "${ECHO_T}$ac_cv_func_kevent" >&6; } |
8843 |
if test $ac_cv_func_kevent = yes; then |
8844 |
|
8845 |
SELECT_TYPE="kqueue" |
8846 |
|
8847 |
else |
8848 |
|
8849 |
if test "${ac_cv_header_sys_epoll_h+set}" = set; then |
8850 |
{ echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 |
8851 |
echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } |
8852 |
if test "${ac_cv_header_sys_epoll_h+set}" = set; then |
8853 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8854 |
fi |
8855 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 |
8856 |
echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } |
8857 |
else |
8858 |
# Is the header compilable? |
8859 |
{ echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5 |
8860 |
echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; } |
8861 |
cat >conftest.$ac_ext <<_ACEOF |
8862 |
/* confdefs.h. */ |
8863 |
_ACEOF |
8864 |
cat confdefs.h >>conftest.$ac_ext |
8865 |
cat >>conftest.$ac_ext <<_ACEOF |
8866 |
/* end confdefs.h. */ |
8867 |
$ac_includes_default |
8868 |
#include <sys/epoll.h> |
8869 |
_ACEOF |
8870 |
rm -f conftest.$ac_objext |
8871 |
if { (ac_try="$ac_compile" |
8872 |
case "(($ac_try" in |
8873 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8874 |
*) ac_try_echo=$ac_try;; |
8875 |
esac |
8876 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8877 |
(eval "$ac_compile") 2>conftest.er1 |
8878 |
ac_status=$? |
8879 |
grep -v '^ *+' conftest.er1 >conftest.err |
8880 |
rm -f conftest.er1 |
8881 |
cat conftest.err >&5 |
8882 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8883 |
(exit $ac_status); } && { |
8884 |
test -z "$ac_c_werror_flag" || |
8885 |
test ! -s conftest.err |
8886 |
} && test -s conftest.$ac_objext; then |
8887 |
ac_header_compiler=yes |
8888 |
else |
8889 |
echo "$as_me: failed program was:" >&5 |
8890 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8891 |
|
8892 |
ac_header_compiler=no |
8893 |
fi |
8894 |
|
8895 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8896 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8897 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
8898 |
|
8899 |
# Is the header present? |
8900 |
{ echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5 |
8901 |
echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; } |
8902 |
cat >conftest.$ac_ext <<_ACEOF |
8903 |
/* confdefs.h. */ |
8904 |
_ACEOF |
8905 |
cat confdefs.h >>conftest.$ac_ext |
8906 |
cat >>conftest.$ac_ext <<_ACEOF |
8907 |
/* end confdefs.h. */ |
8908 |
#include <sys/epoll.h> |
8909 |
_ACEOF |
8910 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
8911 |
case "(($ac_try" in |
8912 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8913 |
*) ac_try_echo=$ac_try;; |
8914 |
esac |
8915 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8916 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
8917 |
ac_status=$? |
8918 |
grep -v '^ *+' conftest.er1 >conftest.err |
8919 |
rm -f conftest.er1 |
8920 |
cat conftest.err >&5 |
8921 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8922 |
(exit $ac_status); } >/dev/null && { |
8923 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
8924 |
test ! -s conftest.err |
8925 |
}; then |
8926 |
ac_header_preproc=yes |
8927 |
else |
8928 |
echo "$as_me: failed program was:" >&5 |
8929 |
sed 's/^/| /' conftest.$ac_ext >&5 |
8930 |
|
8931 |
ac_header_preproc=no |
8932 |
fi |
8933 |
|
8934 |
rm -f conftest.err conftest.$ac_ext |
8935 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8936 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
8937 |
|
8938 |
# So? What about this header? |
8939 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
8940 |
yes:no: ) |
8941 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8942 |
echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8943 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5 |
8944 |
echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;} |
8945 |
ac_header_preproc=yes |
8946 |
;; |
8947 |
no:yes:* ) |
8948 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5 |
8949 |
echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;} |
8950 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&5 |
8951 |
echo "$as_me: WARNING: sys/epoll.h: check for missing prerequisite headers?" >&2;} |
8952 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5 |
8953 |
echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;} |
8954 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&5 |
8955 |
echo "$as_me: WARNING: sys/epoll.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8956 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5 |
8957 |
echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;} |
8958 |
{ echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5 |
8959 |
echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;} |
8960 |
|
8961 |
;; |
8962 |
esac |
8963 |
{ echo "$as_me:$LINENO: checking for sys/epoll.h" >&5 |
8964 |
echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; } |
8965 |
if test "${ac_cv_header_sys_epoll_h+set}" = set; then |
8966 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8967 |
else |
8968 |
ac_cv_header_sys_epoll_h=$ac_header_preproc |
8969 |
fi |
8970 |
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5 |
8971 |
echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; } |
8972 |
|
8973 |
fi |
8974 |
if test $ac_cv_header_sys_epoll_h = yes; then |
8975 |
HAS_EPOLL=1 |
8976 |
else |
8977 |
HAS_EPOLL=0 |
8978 |
fi |
8979 |
|
8980 |
|
8981 |
if test $HAS_EPOLL -eq 1; then |
8982 |
{ echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
8983 |
echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } |
8984 |
if test "$cross_compiling" = yes; then |
8985 |
{ echo "$as_me:$LINENO: result: no" >&5 |
8986 |
echo "${ECHO_T}no" >&6; } |
8987 |
HAS_EPOLL=0 |
8988 |
else |
8989 |
cat >conftest.$ac_ext <<_ACEOF |
8990 |
/* confdefs.h. */ |
8991 |
_ACEOF |
8992 |
cat confdefs.h >>conftest.$ac_ext |
8993 |
cat >>conftest.$ac_ext <<_ACEOF |
8994 |
/* end confdefs.h. */ |
8995 |
#include <sys/epoll.h> |
8996 |
#include <sys/syscall.h> |
8997 |
#if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY) |
8998 |
#if !defined(__NR_epoll_create) |
8999 |
#if defined(__ia64__) |
9000 |
#define __NR_epoll_create 1243 |
9001 |
#elif defined(__x86_64__) |
9002 |
#define __NR_epoll_create 214 |
9003 |
#elif defined(__sparc64__) || defined(__sparc__) |
9004 |
#define __NR_epoll_create 193 |
9005 |
#elif defined(__s390__) || defined(__m68k__) |
9006 |
#define __NR_epoll_create 249 |
9007 |
#elif defined(__ppc64__) || defined(__ppc__) |
9008 |
#define __NR_epoll_create 236 |
9009 |
#elif defined(__parisc__) || defined(__arm26__) || defined(__arm__) |
9010 |
#define __NR_epoll_create 224 |
9011 |
#elif defined(__alpha__) |
9012 |
#define __NR_epoll_create 407 |
9013 |
#elif defined(__sh64__) |
9014 |
#define __NR_epoll_create 282 |
9015 |
#elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__) |
9016 |
#define __NR_epoll_create 254 |
9017 |
#else |
9018 |
#error No system call numbers defined for epoll family. |
9019 |
#endif |
9020 |
#endif |
9021 |
_syscall1(int, epoll_create, int, size) |
9022 |
#endif |
9023 |
main() { return epoll_create(256) == -1 ? 1 : 0; } |
9024 |
_ACEOF |
9025 |
rm -f conftest$ac_exeext |
9026 |
if { (ac_try="$ac_link" |
9027 |
case "(($ac_try" in |
9028 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9029 |
*) ac_try_echo=$ac_try;; |
9030 |
esac |
9031 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9032 |
(eval "$ac_link") 2>&5 |
9033 |
ac_status=$? |
9034 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9035 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9036 |
{ (case "(($ac_try" in |
9037 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9038 |
*) ac_try_echo=$ac_try;; |
9039 |
esac |
9040 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9041 |
(eval "$ac_try") 2>&5 |
9042 |
ac_status=$? |
9043 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9044 |
(exit $ac_status); }; }; then |
9045 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
9046 |
echo "${ECHO_T}yes" >&6; } |
9047 |
SELECT_TYPE="epoll" |
9048 |
else |
9049 |
echo "$as_me: program exited with status $ac_status" >&5 |
9050 |
echo "$as_me: failed program was:" >&5 |
9051 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9052 |
|
9053 |
( exit $ac_status ) |
9054 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9055 |
echo "${ECHO_T}no" >&6; } |
9056 |
HAS_EPOLL=0 |
9057 |
fi |
9058 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9059 |
fi |
9060 |
|
9061 |
|
9062 |
fi |
9063 |
if test $HAS_EPOLL -eq 0; then |
9064 |
{ echo "$as_me:$LINENO: checking for /dev/poll" >&5 |
9065 |
echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; } |
9066 |
if test -c "/dev/poll"; then |
9067 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
9068 |
echo "${ECHO_T}yes" >&6; } |
9069 |
|
9070 |
|
9071 |
for ac_header in devpoll.h sys/devpoll.h |
9072 |
do |
9073 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9074 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9075 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9076 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9077 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9078 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9079 |
fi |
9080 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9081 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9082 |
echo "${ECHO_T}$ac_res" >&6; } |
9083 |
else |
9084 |
# Is the header compilable? |
9085 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9086 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9087 |
cat >conftest.$ac_ext <<_ACEOF |
9088 |
/* confdefs.h. */ |
9089 |
_ACEOF |
9090 |
cat confdefs.h >>conftest.$ac_ext |
9091 |
cat >>conftest.$ac_ext <<_ACEOF |
9092 |
/* end confdefs.h. */ |
9093 |
$ac_includes_default |
9094 |
#include <$ac_header> |
9095 |
_ACEOF |
9096 |
rm -f conftest.$ac_objext |
9097 |
if { (ac_try="$ac_compile" |
9098 |
case "(($ac_try" in |
9099 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9100 |
*) ac_try_echo=$ac_try;; |
9101 |
esac |
9102 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9103 |
(eval "$ac_compile") 2>conftest.er1 |
9104 |
ac_status=$? |
9105 |
grep -v '^ *+' conftest.er1 >conftest.err |
9106 |
rm -f conftest.er1 |
9107 |
cat conftest.err >&5 |
9108 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9109 |
(exit $ac_status); } && { |
9110 |
test -z "$ac_c_werror_flag" || |
9111 |
test ! -s conftest.err |
9112 |
} && test -s conftest.$ac_objext; then |
9113 |
ac_header_compiler=yes |
9114 |
else |
9115 |
echo "$as_me: failed program was:" >&5 |
9116 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9117 |
|
9118 |
ac_header_compiler=no |
9119 |
fi |
9120 |
|
9121 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9122 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9123 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9124 |
|
9125 |
# Is the header present? |
9126 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9127 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
9128 |
cat >conftest.$ac_ext <<_ACEOF |
9129 |
/* confdefs.h. */ |
9130 |
_ACEOF |
9131 |
cat confdefs.h >>conftest.$ac_ext |
9132 |
cat >>conftest.$ac_ext <<_ACEOF |
9133 |
/* end confdefs.h. */ |
9134 |
#include <$ac_header> |
9135 |
_ACEOF |
9136 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
9137 |
case "(($ac_try" in |
9138 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9139 |
*) ac_try_echo=$ac_try;; |
9140 |
esac |
9141 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9142 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
9143 |
ac_status=$? |
9144 |
grep -v '^ *+' conftest.er1 >conftest.err |
9145 |
rm -f conftest.er1 |
9146 |
cat conftest.err >&5 |
9147 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9148 |
(exit $ac_status); } >/dev/null && { |
9149 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
9150 |
test ! -s conftest.err |
9151 |
}; then |
9152 |
ac_header_preproc=yes |
9153 |
else |
9154 |
echo "$as_me: failed program was:" >&5 |
9155 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9156 |
|
9157 |
ac_header_preproc=no |
9158 |
fi |
9159 |
|
9160 |
rm -f conftest.err conftest.$ac_ext |
9161 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9162 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
9163 |
|
9164 |
# So? What about this header? |
9165 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9166 |
yes:no: ) |
9167 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9168 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9169 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9170 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
9171 |
ac_header_preproc=yes |
9172 |
;; |
9173 |
no:yes:* ) |
9174 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
9175 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
9176 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
9177 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
9178 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
9179 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
9180 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
9181 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
9182 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9183 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
9184 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9185 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
9186 |
|
9187 |
;; |
9188 |
esac |
9189 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9190 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9191 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9192 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9193 |
else |
9194 |
eval "$as_ac_Header=\$ac_header_preproc" |
9195 |
fi |
9196 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9197 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9198 |
echo "${ECHO_T}$ac_res" >&6; } |
9199 |
|
9200 |
fi |
9201 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9202 |
cat >>confdefs.h <<_ACEOF |
9203 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9204 |
_ACEOF |
9205 |
|
9206 |
fi |
9207 |
|
9208 |
done |
9209 |
|
9210 |
SELECT_TYPE="devpoll" |
9211 |
else |
9212 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9213 |
echo "${ECHO_T}no" >&6; } |
9214 |
{ echo "$as_me:$LINENO: checking for RT Signal IO" >&5 |
9215 |
echo $ECHO_N "checking for RT Signal IO... $ECHO_C" >&6; } |
9216 |
|
9217 |
cat >conftest.$ac_ext <<_ACEOF |
9218 |
/* confdefs.h. */ |
9219 |
_ACEOF |
9220 |
cat confdefs.h >>conftest.$ac_ext |
9221 |
cat >>conftest.$ac_ext <<_ACEOF |
9222 |
/* end confdefs.h. */ |
9223 |
#define _GNU_SOURCE |
9224 |
#include <fcntl.h> |
9225 |
#ifdef F_SETSIG |
9226 |
YUP_HAVE_F_SETSIG |
9227 |
#endif |
9228 |
|
9229 |
_ACEOF |
9230 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9231 |
$EGREP "YUP_HAVE_F_SETSIG" >/dev/null 2>&1; then |
9232 |
|
9233 |
SELECT_TYPE="sigio" |
9234 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
9235 |
echo "${ECHO_T}yes" >&6; } |
9236 |
|
9237 |
else |
9238 |
|
9239 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9240 |
echo "${ECHO_T}no" >&6; } |
9241 |
{ echo "$as_me:$LINENO: checking for poll" >&5 |
9242 |
echo $ECHO_N "checking for poll... $ECHO_C" >&6; } |
9243 |
if test "${ac_cv_func_poll+set}" = set; then |
9244 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9245 |
else |
9246 |
cat >conftest.$ac_ext <<_ACEOF |
9247 |
/* confdefs.h. */ |
9248 |
_ACEOF |
9249 |
cat confdefs.h >>conftest.$ac_ext |
9250 |
cat >>conftest.$ac_ext <<_ACEOF |
9251 |
/* end confdefs.h. */ |
9252 |
/* Define poll to an innocuous variant, in case <limits.h> declares poll. |
9253 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9254 |
#define poll innocuous_poll |
9255 |
|
9256 |
/* System header to define __stub macros and hopefully few prototypes, |
9257 |
which can conflict with char poll (); below. |
9258 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9259 |
<limits.h> exists even on freestanding compilers. */ |
9260 |
|
9261 |
#ifdef __STDC__ |
9262 |
# include <limits.h> |
9263 |
#else |
9264 |
# include <assert.h> |
9265 |
#endif |
9266 |
|
9267 |
#undef poll |
9268 |
|
9269 |
/* Override any GCC internal prototype to avoid an error. |
9270 |
Use char because int might match the return type of a GCC |
9271 |
builtin and then its argument prototype would still apply. */ |
9272 |
#ifdef __cplusplus |
9273 |
extern "C" |
9274 |
#endif |
9275 |
char poll (); |
9276 |
/* The GNU C library defines this for functions which it implements |
9277 |
to always fail with ENOSYS. Some functions are actually named |
9278 |
something starting with __ and the normal name is an alias. */ |
9279 |
#if defined __stub_poll || defined __stub___poll |
9280 |
choke me |
9281 |
#endif |
9282 |
|
9283 |
int |
9284 |
main () |
9285 |
{ |
9286 |
return poll (); |
9287 |
; |
9288 |
return 0; |
9289 |
} |
9290 |
_ACEOF |
9291 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9292 |
if { (ac_try="$ac_link" |
9293 |
case "(($ac_try" in |
9294 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9295 |
*) ac_try_echo=$ac_try;; |
9296 |
esac |
9297 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9298 |
(eval "$ac_link") 2>conftest.er1 |
9299 |
ac_status=$? |
9300 |
grep -v '^ *+' conftest.er1 >conftest.err |
9301 |
rm -f conftest.er1 |
9302 |
cat conftest.err >&5 |
9303 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9304 |
(exit $ac_status); } && { |
9305 |
test -z "$ac_c_werror_flag" || |
9306 |
test ! -s conftest.err |
9307 |
} && test -s conftest$ac_exeext && |
9308 |
$as_test_x conftest$ac_exeext; then |
9309 |
ac_cv_func_poll=yes |
9310 |
else |
9311 |
echo "$as_me: failed program was:" >&5 |
9312 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9313 |
|
9314 |
ac_cv_func_poll=no |
9315 |
fi |
9316 |
|
9317 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9318 |
conftest$ac_exeext conftest.$ac_ext |
9319 |
fi |
9320 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 |
9321 |
echo "${ECHO_T}$ac_cv_func_poll" >&6; } |
9322 |
if test $ac_cv_func_poll = yes; then |
9323 |
SELECT_TYPE="poll" |
9324 |
else |
9325 |
|
9326 |
{ echo "$as_me:$LINENO: checking for select" >&5 |
9327 |
echo $ECHO_N "checking for select... $ECHO_C" >&6; } |
9328 |
if test "${ac_cv_func_select+set}" = set; then |
9329 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9330 |
else |
9331 |
cat >conftest.$ac_ext <<_ACEOF |
9332 |
/* confdefs.h. */ |
9333 |
_ACEOF |
9334 |
cat confdefs.h >>conftest.$ac_ext |
9335 |
cat >>conftest.$ac_ext <<_ACEOF |
9336 |
/* end confdefs.h. */ |
9337 |
/* Define select to an innocuous variant, in case <limits.h> declares select. |
9338 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9339 |
#define select innocuous_select |
9340 |
|
9341 |
/* System header to define __stub macros and hopefully few prototypes, |
9342 |
which can conflict with char select (); below. |
9343 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9344 |
<limits.h> exists even on freestanding compilers. */ |
9345 |
|
9346 |
#ifdef __STDC__ |
9347 |
# include <limits.h> |
9348 |
#else |
9349 |
# include <assert.h> |
9350 |
#endif |
9351 |
|
9352 |
#undef select |
9353 |
|
9354 |
/* Override any GCC internal prototype to avoid an error. |
9355 |
Use char because int might match the return type of a GCC |
9356 |
builtin and then its argument prototype would still apply. */ |
9357 |
#ifdef __cplusplus |
9358 |
extern "C" |
9359 |
#endif |
9360 |
char select (); |
9361 |
/* The GNU C library defines this for functions which it implements |
9362 |
to always fail with ENOSYS. Some functions are actually named |
9363 |
something starting with __ and the normal name is an alias. */ |
9364 |
#if defined __stub_select || defined __stub___select |
9365 |
choke me |
9366 |
#endif |
9367 |
|
9368 |
int |
9369 |
main () |
9370 |
{ |
9371 |
return select (); |
9372 |
; |
9373 |
return 0; |
9374 |
} |
9375 |
_ACEOF |
9376 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9377 |
if { (ac_try="$ac_link" |
9378 |
case "(($ac_try" in |
9379 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9380 |
*) ac_try_echo=$ac_try;; |
9381 |
esac |
9382 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9383 |
(eval "$ac_link") 2>conftest.er1 |
9384 |
ac_status=$? |
9385 |
grep -v '^ *+' conftest.er1 >conftest.err |
9386 |
rm -f conftest.er1 |
9387 |
cat conftest.err >&5 |
9388 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9389 |
(exit $ac_status); } && { |
9390 |
test -z "$ac_c_werror_flag" || |
9391 |
test ! -s conftest.err |
9392 |
} && test -s conftest$ac_exeext && |
9393 |
$as_test_x conftest$ac_exeext; then |
9394 |
ac_cv_func_select=yes |
9395 |
else |
9396 |
echo "$as_me: failed program was:" >&5 |
9397 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9398 |
|
9399 |
ac_cv_func_select=no |
9400 |
fi |
9401 |
|
9402 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9403 |
conftest$ac_exeext conftest.$ac_ext |
9404 |
fi |
9405 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5 |
9406 |
echo "${ECHO_T}$ac_cv_func_select" >&6; } |
9407 |
if test $ac_cv_func_select = yes; then |
9408 |
SELECT_TYPE="select" |
9409 |
else |
9410 |
{ { echo "$as_me:$LINENO: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&5 |
9411 |
echo "$as_me: error: Couldn't find anything to use for IO loop. Is your C environment POSIXly sane?" >&2;} |
9412 |
{ (exit 1); exit 1; }; } |
9413 |
|
9414 |
fi |
9415 |
|
9416 |
|
9417 |
fi |
9418 |
|
9419 |
|
9420 |
fi |
9421 |
rm -f conftest* |
9422 |
|
9423 |
fi |
9424 |
fi |
9425 |
|
9426 |
fi |
9427 |
|
9428 |
|
9429 |
fi |
9430 |
|
9431 |
echo "Using $SELECT_TYPE for select loop." |
9432 |
|
9433 |
|
9434 |
cat >>confdefs.h <<_ACEOF |
9435 |
#define SELECT_TYPE "$SELECT_TYPE" |
9436 |
_ACEOF |
9437 |
|
9438 |
|
9439 |
|
9440 |
|
9441 |
|
9442 |
# Check whether --enable-clobber was given. |
9443 |
if test "${enable_clobber+set}" = set; then |
9444 |
enableval=$enable_clobber; clobber=$enableval |
9445 |
else |
9446 |
clobber=no |
9447 |
fi |
9448 |
|
9449 |
|
9450 |
if test "$clobber" = yes; then |
9451 |
CLOBBER=yes |
9452 |
|
9453 |
fi |
9454 |
|
9455 |
|
9456 |
|
9457 |
{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
9458 |
echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } |
9459 |
# Check whether --enable-profile was given. |
9460 |
if test "${enable_profile+set}" = set; then |
9461 |
enableval=$enable_profile; profile=$enableval |
9462 |
else |
9463 |
profile=no |
9464 |
fi |
9465 |
|
9466 |
|
9467 |
if test "$profile" = yes; then |
9468 |
if test "$ac_cv_c_compiler_gnu" = yes; then |
9469 |
IRC_CFLAGS="$IRC_CFLAGS -pg -static" |
9470 |
{ echo "$as_me:$LINENO: result: yes, adding -pg -static" >&5 |
9471 |
echo "${ECHO_T}yes, adding -pg -static" >&6; } |
9472 |
else |
9473 |
{ echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
9474 |
echo "${ECHO_T}no, profile builds only work with gcc" >&6; } |
9475 |
fi |
9476 |
else |
9477 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9478 |
echo "${ECHO_T}no" >&6; } |
9479 |
fi |
9480 |
|
9481 |
{ echo "$as_me:$LINENO: checking if you want ElectricFence" >&5 |
9482 |
echo $ECHO_N "checking if you want ElectricFence... $ECHO_C" >&6; } |
9483 |
# Check whether --enable-efence was given. |
9484 |
if test "${enable_efence+set}" = set; then |
9485 |
enableval=$enable_efence; |
9486 |
if test "$enableval" != no; then |
9487 |
if test ! -z "$enableval" -a "$enableval" != yes; then |
9488 |
LIBS="$LIBS -L$enableval" |
9489 |
fi |
9490 |
|
9491 |
{ echo "$as_me:$LINENO: checking for malloc in -lefence" >&5 |
9492 |
echo $ECHO_N "checking for malloc in -lefence... $ECHO_C" >&6; } |
9493 |
if test "${ac_cv_lib_efence_malloc+set}" = set; then |
9494 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9495 |
else |
9496 |
ac_check_lib_save_LIBS=$LIBS |
9497 |
LIBS="-lefence $LIBS" |
9498 |
cat >conftest.$ac_ext <<_ACEOF |
9499 |
/* confdefs.h. */ |
9500 |
_ACEOF |
9501 |
cat confdefs.h >>conftest.$ac_ext |
9502 |
cat >>conftest.$ac_ext <<_ACEOF |
9503 |
/* end confdefs.h. */ |
9504 |
|
9505 |
/* Override any GCC internal prototype to avoid an error. |
9506 |
Use char because int might match the return type of a GCC |
9507 |
builtin and then its argument prototype would still apply. */ |
9508 |
#ifdef __cplusplus |
9509 |
extern "C" |
9510 |
#endif |
9511 |
char malloc (); |
9512 |
int |
9513 |
main () |
9514 |
{ |
9515 |
return malloc (); |
9516 |
; |
9517 |
return 0; |
9518 |
} |
9519 |
_ACEOF |
9520 |
rm -f conftest.$ac_objext conftest$ac_exeext |
9521 |
if { (ac_try="$ac_link" |
9522 |
case "(($ac_try" in |
9523 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9524 |
*) ac_try_echo=$ac_try;; |
9525 |
esac |
9526 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9527 |
(eval "$ac_link") 2>conftest.er1 |
9528 |
ac_status=$? |
9529 |
grep -v '^ *+' conftest.er1 >conftest.err |
9530 |
rm -f conftest.er1 |
9531 |
cat conftest.err >&5 |
9532 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9533 |
(exit $ac_status); } && { |
9534 |
test -z "$ac_c_werror_flag" || |
9535 |
test ! -s conftest.err |
9536 |
} && test -s conftest$ac_exeext && |
9537 |
$as_test_x conftest$ac_exeext; then |
9538 |
ac_cv_lib_efence_malloc=yes |
9539 |
else |
9540 |
echo "$as_me: failed program was:" >&5 |
9541 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9542 |
|
9543 |
ac_cv_lib_efence_malloc=no |
9544 |
fi |
9545 |
|
9546 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9547 |
conftest$ac_exeext conftest.$ac_ext |
9548 |
LIBS=$ac_check_lib_save_LIBS |
9549 |
fi |
9550 |
{ echo "$as_me:$LINENO: result: $ac_cv_lib_efence_malloc" >&5 |
9551 |
echo "${ECHO_T}$ac_cv_lib_efence_malloc" >&6; } |
9552 |
if test $ac_cv_lib_efence_malloc = yes; then |
9553 |
|
9554 |
LIBS="$LIBS -lefence" |
9555 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
9556 |
echo "${ECHO_T}yes" >&6; } |
9557 |
|
9558 |
else |
9559 |
{ echo "$as_me:$LINENO: result: not found" >&5 |
9560 |
echo "${ECHO_T}not found" >&6; } |
9561 |
fi |
9562 |
|
9563 |
else |
9564 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9565 |
echo "${ECHO_T}no" >&6; } |
9566 |
fi |
9567 |
|
9568 |
else |
9569 |
{ echo "$as_me:$LINENO: result: no" >&5 |
9570 |
echo "${ECHO_T}no" >&6; } |
9571 |
fi |
9572 |
|
9573 |
|
9574 |
{ echo "$as_me:$LINENO: checking if you want the block allocator" >&5 |
9575 |
echo $ECHO_N "checking if you want the block allocator... $ECHO_C" >&6; } |
9576 |
# Check whether --enable-block-alloc was given. |
9577 |
if test "${enable_block_alloc+set}" = set; then |
9578 |
enableval=$enable_block_alloc; balloc=$enableval |
9579 |
else |
9580 |
balloc=yes |
9581 |
fi |
9582 |
|
9583 |
|
9584 |
if test "$balloc" = no; then |
9585 |
|
9586 |
|
9587 |
cat >>confdefs.h <<\_ACEOF |
9588 |
#define NOBALLOC 1 |
9589 |
_ACEOF |
9590 |
|
9591 |
else |
9592 |
BALLOC_C=balloc.c |
9593 |
|
9594 |
fi |
9595 |
|
9596 |
{ echo "$as_me:$LINENO: result: $balloc" >&5 |
9597 |
echo "${ECHO_T}$balloc" >&6; } |
9598 |
|
9599 |
# Check whether --enable-warnings was given. |
9600 |
if test "${enable_warnings+set}" = set; then |
9601 |
enableval=$enable_warnings; IRC_CFLAGS="$IRC_CFLAGS -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -W -Wno-unused" |
9602 |
fi |
9603 |
|
9604 |
|
9605 |
|
9606 |
# Check whether --enable-small-net was given. |
9607 |
if test "${enable_small_net+set}" = set; then |
9608 |
enableval=$enable_small_net; small_net=$enableval |
9609 |
else |
9610 |
small_net=no |
9611 |
fi |
9612 |
|
9613 |
|
9614 |
if test "$small_net" = yes; then |
9615 |
|
9616 |
cat >>confdefs.h <<\_ACEOF |
9617 |
#define NICKNAMEHISTORYLENGTH 1500 |
9618 |
_ACEOF |
9619 |
|
9620 |
|
9621 |
cat >>confdefs.h <<\_ACEOF |
9622 |
#define CHANNEL_HEAP_SIZE 256 |
9623 |
_ACEOF |
9624 |
|
9625 |
|
9626 |
cat >>confdefs.h <<\_ACEOF |
9627 |
#define BAN_HEAP_SIZE 128 |
9628 |
_ACEOF |
9629 |
|
9630 |
|
9631 |
cat >>confdefs.h <<\_ACEOF |
9632 |
#define CLIENT_HEAP_SIZE 256 |
9633 |
_ACEOF |
9634 |
|
9635 |
|
9636 |
cat >>confdefs.h <<\_ACEOF |
9637 |
#define LCLIENT_HEAP_SIZE 128 |
9638 |
_ACEOF |
9639 |
|
9640 |
|
9641 |
cat >>confdefs.h <<\_ACEOF |
9642 |
#define DNODE_HEAP_SIZE 256 |
9643 |
_ACEOF |
9644 |
|
9645 |
|
9646 |
cat >>confdefs.h <<\_ACEOF |
9647 |
#define TOPIC_HEAP_SIZE 256 |
9648 |
_ACEOF |
9649 |
|
9650 |
|
9651 |
cat >>confdefs.h <<\_ACEOF |
9652 |
#define DBUF_HEAP_SIZE 64 |
9653 |
_ACEOF |
9654 |
|
9655 |
else |
9656 |
|
9657 |
cat >>confdefs.h <<\_ACEOF |
9658 |
#define NICKNAMEHISTORYLENGTH 15000 |
9659 |
_ACEOF |
9660 |
|
9661 |
|
9662 |
cat >>confdefs.h <<\_ACEOF |
9663 |
#define CHANNEL_HEAP_SIZE 1024 |
9664 |
_ACEOF |
9665 |
|
9666 |
|
9667 |
cat >>confdefs.h <<\_ACEOF |
9668 |
#define BAN_HEAP_SIZE 1024 |
9669 |
_ACEOF |
9670 |
|
9671 |
|
9672 |
cat >>confdefs.h <<\_ACEOF |
9673 |
#define CLIENT_HEAP_SIZE 1024 |
9674 |
_ACEOF |
9675 |
|
9676 |
|
9677 |
cat >>confdefs.h <<\_ACEOF |
9678 |
#define LCLIENT_HEAP_SIZE 512 |
9679 |
_ACEOF |
9680 |
|
9681 |
|
9682 |
cat >>confdefs.h <<\_ACEOF |
9683 |
#define DNODE_HEAP_SIZE 2048 |
9684 |
_ACEOF |
9685 |
|
9686 |
|
9687 |
cat >>confdefs.h <<\_ACEOF |
9688 |
#define TOPIC_HEAP_SIZE 1024 |
9689 |
_ACEOF |
9690 |
|
9691 |
|
9692 |
cat >>confdefs.h <<\_ACEOF |
9693 |
#define DBUF_HEAP_SIZE 512 |
9694 |
_ACEOF |
9695 |
|
9696 |
fi |
9697 |
|
9698 |
|
9699 |
# Check whether --with-nicklen was given. |
9700 |
if test "${with_nicklen+set}" = set; then |
9701 |
withval=$with_nicklen; NICKLEN="$withval" |
9702 |
else |
9703 |
NICKLEN="15" |
9704 |
fi |
9705 |
|
9706 |
|
9707 |
# Check whether --enable-efnet was given. |
9708 |
if test "${enable_efnet+set}" = set; then |
9709 |
enableval=$enable_efnet; efnet=$enableval |
9710 |
else |
9711 |
efnet=no |
9712 |
fi |
9713 |
|
9714 |
|
9715 |
if test "$efnet" = yes; then |
9716 |
|
9717 |
cat >>confdefs.h <<\_ACEOF |
9718 |
#define EFNET 1 |
9719 |
_ACEOF |
9720 |
|
9721 |
|
9722 |
cat >>confdefs.h <<\_ACEOF |
9723 |
#define TS5_ONLY 1 |
9724 |
_ACEOF |
9725 |
|
9726 |
echo "Building ircd for use with EFnet" |
9727 |
EXAMPLE_CONF=example.efnet.conf |
9728 |
NICKLEN=9 |
9729 |
else |
9730 |
EXAMPLE_CONF=example.conf |
9731 |
fi |
9732 |
|
9733 |
# Check whether --enable-gline-voting was given. |
9734 |
if test "${enable_gline_voting+set}" = set; then |
9735 |
enableval=$enable_gline_voting; gline_voting=$enableval |
9736 |
else |
9737 |
gline_voting=yes |
9738 |
fi |
9739 |
|
9740 |
|
9741 |
if test "$gline_voting" = yes; then |
9742 |
|
9743 |
cat >>confdefs.h <<\_ACEOF |
9744 |
#define GLINE_VOTING 1 |
9745 |
_ACEOF |
9746 |
|
9747 |
echo "Building ircd with G-Line voting support" |
9748 |
fi |
9749 |
|
9750 |
# Check whether --enable-halfops was given. |
9751 |
if test "${enable_halfops+set}" = set; then |
9752 |
enableval=$enable_halfops; halfops=$enableval |
9753 |
else |
9754 |
halfops=no |
9755 |
fi |
9756 |
|
9757 |
|
9758 |
if test "$halfops" = yes; then |
9759 |
|
9760 |
cat >>confdefs.h <<\_ACEOF |
9761 |
#define HALFOPS 1 |
9762 |
_ACEOF |
9763 |
|
9764 |
fi |
9765 |
|
9766 |
|
9767 |
|
9768 |
{ echo "$as_me:$LINENO: checking for syslog options" >&5 |
9769 |
echo $ECHO_N "checking for syslog options... $ECHO_C" >&6; } |
9770 |
|
9771 |
# Check whether --enable-syslog was given. |
9772 |
if test "${enable_syslog+set}" = set; then |
9773 |
enableval=$enable_syslog; |
9774 |
|
9775 |
if test "$ac_cv_header_sys_syslog_h" = yes -o "$ac_cv_header_syslog_h" = yes; then |
9776 |
|
9777 |
if test "$enableval" != no; then |
9778 |
syslogstuff=core |
9779 |
|
9780 |
for option in $enableval; do |
9781 |
case "$option" in |
9782 |
kill) |
9783 |
syslogstuff="$syslogstuff kill" |
9784 |
|
9785 |
cat >>confdefs.h <<\_ACEOF |
9786 |
#define SYSLOG_KILL 1 |
9787 |
_ACEOF |
9788 |
|
9789 |
;; |
9790 |
squit) |
9791 |
syslogstuff="$syslogstuff squit" |
9792 |
|
9793 |
cat >>confdefs.h <<\_ACEOF |
9794 |
#define SYSLOG_SQUIT 1 |
9795 |
_ACEOF |
9796 |
|
9797 |
;; |
9798 |
connect) |
9799 |
syslogstuff="$syslogstuff connect" |
9800 |
|
9801 |
cat >>confdefs.h <<\_ACEOF |
9802 |
#define SYSLOG_CONNECT 1 |
9803 |
_ACEOF |
9804 |
|
9805 |
;; |
9806 |
users) |
9807 |
syslogstuff="$syslogstuff users" |
9808 |
|
9809 |
cat >>confdefs.h <<\_ACEOF |
9810 |
#define SYSLOG_USERS 1 |
9811 |
_ACEOF |
9812 |
|
9813 |
;; |
9814 |
oper) |
9815 |
syslogstuff="$syslogstuff oper" |
9816 |
|
9817 |
cat >>confdefs.h <<\_ACEOF |
9818 |
#define SYSLOG_OPER 1 |
9819 |
_ACEOF |
9820 |
|
9821 |
;; |
9822 |
yes) |
9823 |
;; |
9824 |
*) |
9825 |
{ echo "$as_me:$LINENO: WARNING: unknown event $option" >&5 |
9826 |
echo "$as_me: WARNING: unknown event $option" >&2;} |
9827 |
;; |
9828 |
esac |
9829 |
done |
9830 |
|
9831 |
if test ! -z "$syslogstuff" -o "$enableval" = yes; then |
9832 |
|
9833 |
cat >>confdefs.h <<\_ACEOF |
9834 |
#define USE_SYSLOG 1 |
9835 |
_ACEOF |
9836 |
|
9837 |
fi |
9838 |
else syslogstuff=none |
9839 |
fi |
9840 |
|
9841 |
else { echo "$as_me:$LINENO: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&5 |
9842 |
echo "$as_me: WARNING: both syslog.h and sys/syslog.h unavailable, not enabling syslog" >&2;} |
9843 |
syslogstuff=none |
9844 |
fi |
9845 |
|
9846 |
else |
9847 |
syslogstuff=none |
9848 |
fi |
9849 |
|
9850 |
|
9851 |
{ echo "$as_me:$LINENO: result: $syslogstuff" >&5 |
9852 |
echo "${ECHO_T}$syslogstuff" >&6; } |
9853 |
|
9854 |
|
9855 |
# Check whether --with-syslog-facility was given. |
9856 |
if test "${with_syslog_facility+set}" = set; then |
9857 |
withval=$with_syslog_facility; facility=$withval |
9858 |
else |
9859 |
facility="LOG_LOCAL4" |
9860 |
fi |
9861 |
|
9862 |
|
9863 |
if test "$syslogstuff" != none; then |
9864 |
|
9865 |
cat >>confdefs.h <<_ACEOF |
9866 |
#define LOG_FACILITY $facility |
9867 |
_ACEOF |
9868 |
|
9869 |
fi |
9870 |
|
9871 |
|
9872 |
# Check whether --with-topiclen was given. |
9873 |
if test "${with_topiclen+set}" = set; then |
9874 |
withval=$with_topiclen; |
9875 |
if test $withval -ge 390; then |
9876 |
TOPICLEN=390 |
9877 |
{ echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
9878 |
echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} |
9879 |
else |
9880 |
TOPICLEN=$withval |
9881 |
fi |
9882 |
|
9883 |
else |
9884 |
TOPICLEN=160 |
9885 |
fi |
9886 |
|
9887 |
|
9888 |
|
9889 |
cat >>confdefs.h <<_ACEOF |
9890 |
#define TOPICLEN ${TOPICLEN} |
9891 |
_ACEOF |
9892 |
|
9893 |
|
9894 |
cat >>confdefs.h <<_ACEOF |
9895 |
#define NICKLEN (${NICKLEN}+1) |
9896 |
_ACEOF |
9897 |
|
9898 |
|
9899 |
cat >>confdefs.h <<_ACEOF |
9900 |
#define USERLEN 10 |
9901 |
_ACEOF |
9902 |
|
9903 |
|
9904 |
cat >>confdefs.h <<_ACEOF |
9905 |
#define HOSTLEN 63 |
9906 |
_ACEOF |
9907 |
|
9908 |
|
9909 |
# Check whether --enable-shared-modules was given. |
9910 |
if test "${enable_shared_modules+set}" = set; then |
9911 |
enableval=$enable_shared_modules; shared_modules=$enableval |
9912 |
else |
9913 |
shared_modules="yes" |
9914 |
fi |
9915 |
|
9916 |
|
9917 |
if test "$shared_modules" = yes; then |
9918 |
|
9919 |
if test "$profile" = "no"; then |
9920 |
shared_modules="yes" |
9921 |
else |
9922 |
{ echo "$as_me:$LINENO: WARNING: disabling shared modules; cannot coexist with profile builds" >&5 |
9923 |
echo "$as_me: WARNING: disabling shared modules; cannot coexist with profile builds" >&2;} |
9924 |
shared_modules="no" |
9925 |
fi |
9926 |
|
9927 |
if test "$CYGWIN" = yes; then |
9928 |
{ echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 |
9929 |
echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} |
9930 |
shared_modules="no" |
9931 |
fi |
9932 |
|
9933 |
if test "$CC" = tcc -a "$TenDRA" = "no"; then |
9934 |
{ echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 |
9935 |
echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} |
9936 |
shared_modules="no" |
9937 |
fi |
9938 |
fi |
9939 |
|
9940 |
if test "$shared_modules" = yes; then |
9941 |
DYNLINK_C=dynlink.c |
9942 |
|
9943 |
for ac_header in dlfcn.h |
9944 |
do |
9945 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9946 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9947 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9948 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9949 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9950 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9951 |
fi |
9952 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
9953 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
9954 |
echo "${ECHO_T}$ac_res" >&6; } |
9955 |
else |
9956 |
# Is the header compilable? |
9957 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9958 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9959 |
cat >conftest.$ac_ext <<_ACEOF |
9960 |
/* confdefs.h. */ |
9961 |
_ACEOF |
9962 |
cat confdefs.h >>conftest.$ac_ext |
9963 |
cat >>conftest.$ac_ext <<_ACEOF |
9964 |
/* end confdefs.h. */ |
9965 |
$ac_includes_default |
9966 |
#include <$ac_header> |
9967 |
_ACEOF |
9968 |
rm -f conftest.$ac_objext |
9969 |
if { (ac_try="$ac_compile" |
9970 |
case "(($ac_try" in |
9971 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9972 |
*) ac_try_echo=$ac_try;; |
9973 |
esac |
9974 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9975 |
(eval "$ac_compile") 2>conftest.er1 |
9976 |
ac_status=$? |
9977 |
grep -v '^ *+' conftest.er1 >conftest.err |
9978 |
rm -f conftest.er1 |
9979 |
cat conftest.err >&5 |
9980 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9981 |
(exit $ac_status); } && { |
9982 |
test -z "$ac_c_werror_flag" || |
9983 |
test ! -s conftest.err |
9984 |
} && test -s conftest.$ac_objext; then |
9985 |
ac_header_compiler=yes |
9986 |
else |
9987 |
echo "$as_me: failed program was:" >&5 |
9988 |
sed 's/^/| /' conftest.$ac_ext >&5 |
9989 |
|
9990 |
ac_header_compiler=no |
9991 |
fi |
9992 |
|
9993 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9994 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9995 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
9996 |
|
9997 |
# Is the header present? |
9998 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9999 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10000 |
cat >conftest.$ac_ext <<_ACEOF |
10001 |
/* confdefs.h. */ |
10002 |
_ACEOF |
10003 |
cat confdefs.h >>conftest.$ac_ext |
10004 |
cat >>conftest.$ac_ext <<_ACEOF |
10005 |
/* end confdefs.h. */ |
10006 |
#include <$ac_header> |
10007 |
_ACEOF |
10008 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10009 |
case "(($ac_try" in |
10010 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10011 |
*) ac_try_echo=$ac_try;; |
10012 |
esac |
10013 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10014 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10015 |
ac_status=$? |
10016 |
grep -v '^ *+' conftest.er1 >conftest.err |
10017 |
rm -f conftest.er1 |
10018 |
cat conftest.err >&5 |
10019 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10020 |
(exit $ac_status); } >/dev/null && { |
10021 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10022 |
test ! -s conftest.err |
10023 |
}; then |
10024 |
ac_header_preproc=yes |
10025 |
else |
10026 |
echo "$as_me: failed program was:" >&5 |
10027 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10028 |
|
10029 |
ac_header_preproc=no |
10030 |
fi |
10031 |
|
10032 |
rm -f conftest.err conftest.$ac_ext |
10033 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10034 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10035 |
|
10036 |
# So? What about this header? |
10037 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10038 |
yes:no: ) |
10039 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10040 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10041 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10042 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10043 |
ac_header_preproc=yes |
10044 |
;; |
10045 |
no:yes:* ) |
10046 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10047 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10048 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10049 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10050 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10051 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10052 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10053 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10054 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10055 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10056 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10057 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10058 |
|
10059 |
;; |
10060 |
esac |
10061 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10062 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10063 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10064 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10065 |
else |
10066 |
eval "$as_ac_Header=\$ac_header_preproc" |
10067 |
fi |
10068 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10069 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10070 |
echo "${ECHO_T}$ac_res" >&6; } |
10071 |
|
10072 |
fi |
10073 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10074 |
cat >>confdefs.h <<_ACEOF |
10075 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10076 |
_ACEOF |
10077 |
|
10078 |
fi |
10079 |
|
10080 |
done |
10081 |
|
10082 |
{ echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
10083 |
echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } |
10084 |
if test "${ac_cv_search_shl_load+set}" = set; then |
10085 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10086 |
else |
10087 |
ac_func_search_save_LIBS=$LIBS |
10088 |
cat >conftest.$ac_ext <<_ACEOF |
10089 |
/* confdefs.h. */ |
10090 |
_ACEOF |
10091 |
cat confdefs.h >>conftest.$ac_ext |
10092 |
cat >>conftest.$ac_ext <<_ACEOF |
10093 |
/* end confdefs.h. */ |
10094 |
|
10095 |
/* Override any GCC internal prototype to avoid an error. |
10096 |
Use char because int might match the return type of a GCC |
10097 |
builtin and then its argument prototype would still apply. */ |
10098 |
#ifdef __cplusplus |
10099 |
extern "C" |
10100 |
#endif |
10101 |
char shl_load (); |
10102 |
int |
10103 |
main () |
10104 |
{ |
10105 |
return shl_load (); |
10106 |
; |
10107 |
return 0; |
10108 |
} |
10109 |
_ACEOF |
10110 |
for ac_lib in '' dld; do |
10111 |
if test -z "$ac_lib"; then |
10112 |
ac_res="none required" |
10113 |
else |
10114 |
ac_res=-l$ac_lib |
10115 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
10116 |
fi |
10117 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10118 |
if { (ac_try="$ac_link" |
10119 |
case "(($ac_try" in |
10120 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10121 |
*) ac_try_echo=$ac_try;; |
10122 |
esac |
10123 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10124 |
(eval "$ac_link") 2>conftest.er1 |
10125 |
ac_status=$? |
10126 |
grep -v '^ *+' conftest.er1 >conftest.err |
10127 |
rm -f conftest.er1 |
10128 |
cat conftest.err >&5 |
10129 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10130 |
(exit $ac_status); } && { |
10131 |
test -z "$ac_c_werror_flag" || |
10132 |
test ! -s conftest.err |
10133 |
} && test -s conftest$ac_exeext && |
10134 |
$as_test_x conftest$ac_exeext; then |
10135 |
ac_cv_search_shl_load=$ac_res |
10136 |
else |
10137 |
echo "$as_me: failed program was:" >&5 |
10138 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10139 |
|
10140 |
|
10141 |
fi |
10142 |
|
10143 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10144 |
conftest$ac_exeext |
10145 |
if test "${ac_cv_search_shl_load+set}" = set; then |
10146 |
break |
10147 |
fi |
10148 |
done |
10149 |
if test "${ac_cv_search_shl_load+set}" = set; then |
10150 |
: |
10151 |
else |
10152 |
ac_cv_search_shl_load=no |
10153 |
fi |
10154 |
rm conftest.$ac_ext |
10155 |
LIBS=$ac_func_search_save_LIBS |
10156 |
fi |
10157 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
10158 |
echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } |
10159 |
ac_res=$ac_cv_search_shl_load |
10160 |
if test "$ac_res" != no; then |
10161 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
10162 |
|
10163 |
|
10164 |
cat >>confdefs.h <<\_ACEOF |
10165 |
#define HAVE_SHL_LOAD 1 |
10166 |
_ACEOF |
10167 |
|
10168 |
SUFFIX=".sl" |
10169 |
MOD_TARGET=hpux_shared |
10170 |
SEDOBJ="s/\.o/.sl/g" |
10171 |
|
10172 |
else |
10173 |
|
10174 |
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
10175 |
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } |
10176 |
if test "${ac_cv_search_dlopen+set}" = set; then |
10177 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10178 |
else |
10179 |
ac_func_search_save_LIBS=$LIBS |
10180 |
cat >conftest.$ac_ext <<_ACEOF |
10181 |
/* confdefs.h. */ |
10182 |
_ACEOF |
10183 |
cat confdefs.h >>conftest.$ac_ext |
10184 |
cat >>conftest.$ac_ext <<_ACEOF |
10185 |
/* end confdefs.h. */ |
10186 |
|
10187 |
/* Override any GCC internal prototype to avoid an error. |
10188 |
Use char because int might match the return type of a GCC |
10189 |
builtin and then its argument prototype would still apply. */ |
10190 |
#ifdef __cplusplus |
10191 |
extern "C" |
10192 |
#endif |
10193 |
char dlopen (); |
10194 |
int |
10195 |
main () |
10196 |
{ |
10197 |
return dlopen (); |
10198 |
; |
10199 |
return 0; |
10200 |
} |
10201 |
_ACEOF |
10202 |
for ac_lib in '' dl c_r; do |
10203 |
if test -z "$ac_lib"; then |
10204 |
ac_res="none required" |
10205 |
else |
10206 |
ac_res=-l$ac_lib |
10207 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
10208 |
fi |
10209 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10210 |
if { (ac_try="$ac_link" |
10211 |
case "(($ac_try" in |
10212 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10213 |
*) ac_try_echo=$ac_try;; |
10214 |
esac |
10215 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10216 |
(eval "$ac_link") 2>conftest.er1 |
10217 |
ac_status=$? |
10218 |
grep -v '^ *+' conftest.er1 >conftest.err |
10219 |
rm -f conftest.er1 |
10220 |
cat conftest.err >&5 |
10221 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10222 |
(exit $ac_status); } && { |
10223 |
test -z "$ac_c_werror_flag" || |
10224 |
test ! -s conftest.err |
10225 |
} && test -s conftest$ac_exeext && |
10226 |
$as_test_x conftest$ac_exeext; then |
10227 |
ac_cv_search_dlopen=$ac_res |
10228 |
else |
10229 |
echo "$as_me: failed program was:" >&5 |
10230 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10231 |
|
10232 |
|
10233 |
fi |
10234 |
|
10235 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10236 |
conftest$ac_exeext |
10237 |
if test "${ac_cv_search_dlopen+set}" = set; then |
10238 |
break |
10239 |
fi |
10240 |
done |
10241 |
if test "${ac_cv_search_dlopen+set}" = set; then |
10242 |
: |
10243 |
else |
10244 |
ac_cv_search_dlopen=no |
10245 |
fi |
10246 |
rm conftest.$ac_ext |
10247 |
LIBS=$ac_func_search_save_LIBS |
10248 |
fi |
10249 |
{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
10250 |
echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } |
10251 |
ac_res=$ac_cv_search_dlopen |
10252 |
if test "$ac_res" != no; then |
10253 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
10254 |
|
10255 |
|
10256 |
cat >>confdefs.h <<\_ACEOF |
10257 |
#define HAVE_DLOPEN 1 |
10258 |
_ACEOF |
10259 |
|
10260 |
SUFFIX=".so" |
10261 |
MOD_TARGET=shared_modules |
10262 |
SEDOBJ="s/\.o/.so/g" |
10263 |
if test "$AppleGCC" = yes; then |
10264 |
|
10265 |
for ac_header in mach-o/dyld.h |
10266 |
do |
10267 |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10268 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10269 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10270 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10271 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10272 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10273 |
fi |
10274 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10275 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10276 |
echo "${ECHO_T}$ac_res" >&6; } |
10277 |
else |
10278 |
# Is the header compilable? |
10279 |
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10280 |
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10281 |
cat >conftest.$ac_ext <<_ACEOF |
10282 |
/* confdefs.h. */ |
10283 |
_ACEOF |
10284 |
cat confdefs.h >>conftest.$ac_ext |
10285 |
cat >>conftest.$ac_ext <<_ACEOF |
10286 |
/* end confdefs.h. */ |
10287 |
$ac_includes_default |
10288 |
#include <$ac_header> |
10289 |
_ACEOF |
10290 |
rm -f conftest.$ac_objext |
10291 |
if { (ac_try="$ac_compile" |
10292 |
case "(($ac_try" in |
10293 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10294 |
*) ac_try_echo=$ac_try;; |
10295 |
esac |
10296 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10297 |
(eval "$ac_compile") 2>conftest.er1 |
10298 |
ac_status=$? |
10299 |
grep -v '^ *+' conftest.er1 >conftest.err |
10300 |
rm -f conftest.er1 |
10301 |
cat conftest.err >&5 |
10302 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10303 |
(exit $ac_status); } && { |
10304 |
test -z "$ac_c_werror_flag" || |
10305 |
test ! -s conftest.err |
10306 |
} && test -s conftest.$ac_objext; then |
10307 |
ac_header_compiler=yes |
10308 |
else |
10309 |
echo "$as_me: failed program was:" >&5 |
10310 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10311 |
|
10312 |
ac_header_compiler=no |
10313 |
fi |
10314 |
|
10315 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10316 |
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10317 |
echo "${ECHO_T}$ac_header_compiler" >&6; } |
10318 |
|
10319 |
# Is the header present? |
10320 |
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10321 |
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10322 |
cat >conftest.$ac_ext <<_ACEOF |
10323 |
/* confdefs.h. */ |
10324 |
_ACEOF |
10325 |
cat confdefs.h >>conftest.$ac_ext |
10326 |
cat >>conftest.$ac_ext <<_ACEOF |
10327 |
/* end confdefs.h. */ |
10328 |
#include <$ac_header> |
10329 |
_ACEOF |
10330 |
if { (ac_try="$ac_cpp conftest.$ac_ext" |
10331 |
case "(($ac_try" in |
10332 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10333 |
*) ac_try_echo=$ac_try;; |
10334 |
esac |
10335 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10336 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
10337 |
ac_status=$? |
10338 |
grep -v '^ *+' conftest.er1 >conftest.err |
10339 |
rm -f conftest.er1 |
10340 |
cat conftest.err >&5 |
10341 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10342 |
(exit $ac_status); } >/dev/null && { |
10343 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
10344 |
test ! -s conftest.err |
10345 |
}; then |
10346 |
ac_header_preproc=yes |
10347 |
else |
10348 |
echo "$as_me: failed program was:" >&5 |
10349 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10350 |
|
10351 |
ac_header_preproc=no |
10352 |
fi |
10353 |
|
10354 |
rm -f conftest.err conftest.$ac_ext |
10355 |
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10356 |
echo "${ECHO_T}$ac_header_preproc" >&6; } |
10357 |
|
10358 |
# So? What about this header? |
10359 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10360 |
yes:no: ) |
10361 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10362 |
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10363 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10364 |
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10365 |
ac_header_preproc=yes |
10366 |
;; |
10367 |
no:yes:* ) |
10368 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10369 |
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10370 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10371 |
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10372 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10373 |
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10374 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10375 |
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10376 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10377 |
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10378 |
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10379 |
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10380 |
|
10381 |
;; |
10382 |
esac |
10383 |
{ echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10384 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10385 |
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10386 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10387 |
else |
10388 |
eval "$as_ac_Header=\$ac_header_preproc" |
10389 |
fi |
10390 |
ac_res=`eval echo '${'$as_ac_Header'}'` |
10391 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10392 |
echo "${ECHO_T}$ac_res" >&6; } |
10393 |
|
10394 |
fi |
10395 |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10396 |
cat >>confdefs.h <<_ACEOF |
10397 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10398 |
_ACEOF |
10399 |
|
10400 |
fi |
10401 |
|
10402 |
done |
10403 |
|
10404 |
fi |
10405 |
{ echo "$as_me:$LINENO: checking for dlsym" >&5 |
10406 |
echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } |
10407 |
if test "${ac_cv_func_dlsym+set}" = set; then |
10408 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10409 |
else |
10410 |
cat >conftest.$ac_ext <<_ACEOF |
10411 |
/* confdefs.h. */ |
10412 |
_ACEOF |
10413 |
cat confdefs.h >>conftest.$ac_ext |
10414 |
cat >>conftest.$ac_ext <<_ACEOF |
10415 |
/* end confdefs.h. */ |
10416 |
/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. |
10417 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10418 |
#define dlsym innocuous_dlsym |
10419 |
|
10420 |
/* System header to define __stub macros and hopefully few prototypes, |
10421 |
which can conflict with char dlsym (); below. |
10422 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10423 |
<limits.h> exists even on freestanding compilers. */ |
10424 |
|
10425 |
#ifdef __STDC__ |
10426 |
# include <limits.h> |
10427 |
#else |
10428 |
# include <assert.h> |
10429 |
#endif |
10430 |
|
10431 |
#undef dlsym |
10432 |
|
10433 |
/* Override any GCC internal prototype to avoid an error. |
10434 |
Use char because int might match the return type of a GCC |
10435 |
builtin and then its argument prototype would still apply. */ |
10436 |
#ifdef __cplusplus |
10437 |
extern "C" |
10438 |
#endif |
10439 |
char dlsym (); |
10440 |
/* The GNU C library defines this for functions which it implements |
10441 |
to always fail with ENOSYS. Some functions are actually named |
10442 |
something starting with __ and the normal name is an alias. */ |
10443 |
#if defined __stub_dlsym || defined __stub___dlsym |
10444 |
choke me |
10445 |
#endif |
10446 |
|
10447 |
int |
10448 |
main () |
10449 |
{ |
10450 |
return dlsym (); |
10451 |
; |
10452 |
return 0; |
10453 |
} |
10454 |
_ACEOF |
10455 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10456 |
if { (ac_try="$ac_link" |
10457 |
case "(($ac_try" in |
10458 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10459 |
*) ac_try_echo=$ac_try;; |
10460 |
esac |
10461 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10462 |
(eval "$ac_link") 2>conftest.er1 |
10463 |
ac_status=$? |
10464 |
grep -v '^ *+' conftest.er1 >conftest.err |
10465 |
rm -f conftest.er1 |
10466 |
cat conftest.err >&5 |
10467 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10468 |
(exit $ac_status); } && { |
10469 |
test -z "$ac_c_werror_flag" || |
10470 |
test ! -s conftest.err |
10471 |
} && test -s conftest$ac_exeext && |
10472 |
$as_test_x conftest$ac_exeext; then |
10473 |
ac_cv_func_dlsym=yes |
10474 |
else |
10475 |
echo "$as_me: failed program was:" >&5 |
10476 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10477 |
|
10478 |
ac_cv_func_dlsym=no |
10479 |
fi |
10480 |
|
10481 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10482 |
conftest$ac_exeext conftest.$ac_ext |
10483 |
fi |
10484 |
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
10485 |
echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } |
10486 |
if test $ac_cv_func_dlsym = yes; then |
10487 |
: |
10488 |
else |
10489 |
|
10490 |
{ echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 |
10491 |
echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} |
10492 |
shared_modules=no |
10493 |
|
10494 |
fi |
10495 |
|
10496 |
|
10497 |
|
10498 |
for ac_func in dlfunc dlinfo |
10499 |
do |
10500 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10501 |
{ echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10502 |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10503 |
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
10504 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10505 |
else |
10506 |
cat >conftest.$ac_ext <<_ACEOF |
10507 |
/* confdefs.h. */ |
10508 |
_ACEOF |
10509 |
cat confdefs.h >>conftest.$ac_ext |
10510 |
cat >>conftest.$ac_ext <<_ACEOF |
10511 |
/* end confdefs.h. */ |
10512 |
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10513 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10514 |
#define $ac_func innocuous_$ac_func |
10515 |
|
10516 |
/* System header to define __stub macros and hopefully few prototypes, |
10517 |
which can conflict with char $ac_func (); below. |
10518 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10519 |
<limits.h> exists even on freestanding compilers. */ |
10520 |
|
10521 |
#ifdef __STDC__ |
10522 |
# include <limits.h> |
10523 |
#else |
10524 |
# include <assert.h> |
10525 |
#endif |
10526 |
|
10527 |
#undef $ac_func |
10528 |
|
10529 |
/* Override any GCC internal prototype to avoid an error. |
10530 |
Use char because int might match the return type of a GCC |
10531 |
builtin and then its argument prototype would still apply. */ |
10532 |
#ifdef __cplusplus |
10533 |
extern "C" |
10534 |
#endif |
10535 |
char $ac_func (); |
10536 |
/* The GNU C library defines this for functions which it implements |
10537 |
to always fail with ENOSYS. Some functions are actually named |
10538 |
something starting with __ and the normal name is an alias. */ |
10539 |
#if defined __stub_$ac_func || defined __stub___$ac_func |
10540 |
choke me |
10541 |
#endif |
10542 |
|
10543 |
int |
10544 |
main () |
10545 |
{ |
10546 |
return $ac_func (); |
10547 |
; |
10548 |
return 0; |
10549 |
} |
10550 |
_ACEOF |
10551 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10552 |
if { (ac_try="$ac_link" |
10553 |
case "(($ac_try" in |
10554 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10555 |
*) ac_try_echo=$ac_try;; |
10556 |
esac |
10557 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10558 |
(eval "$ac_link") 2>conftest.er1 |
10559 |
ac_status=$? |
10560 |
grep -v '^ *+' conftest.er1 >conftest.err |
10561 |
rm -f conftest.er1 |
10562 |
cat conftest.err >&5 |
10563 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10564 |
(exit $ac_status); } && { |
10565 |
test -z "$ac_c_werror_flag" || |
10566 |
test ! -s conftest.err |
10567 |
} && test -s conftest$ac_exeext && |
10568 |
$as_test_x conftest$ac_exeext; then |
10569 |
eval "$as_ac_var=yes" |
10570 |
else |
10571 |
echo "$as_me: failed program was:" >&5 |
10572 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10573 |
|
10574 |
eval "$as_ac_var=no" |
10575 |
fi |
10576 |
|
10577 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10578 |
conftest$ac_exeext conftest.$ac_ext |
10579 |
fi |
10580 |
ac_res=`eval echo '${'$as_ac_var'}'` |
10581 |
{ echo "$as_me:$LINENO: result: $ac_res" >&5 |
10582 |
echo "${ECHO_T}$ac_res" >&6; } |
10583 |
if test `eval echo '${'$as_ac_var'}'` = yes; then |
10584 |
cat >>confdefs.h <<_ACEOF |
10585 |
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10586 |
_ACEOF |
10587 |
|
10588 |
fi |
10589 |
done |
10590 |
|
10591 |
|
10592 |
else |
10593 |
|
10594 |
shared_modules=no |
10595 |
|
10596 |
fi |
10597 |
|
10598 |
|
10599 |
fi |
10600 |
|
10601 |
fi |
10602 |
|
10603 |
|
10604 |
cat >>confdefs.h <<_ACEOF |
10605 |
#define SHARED_SUFFIX "$SUFFIX" |
10606 |
_ACEOF |
10607 |
|
10608 |
|
10609 |
if test "$shared_modules" = yes; then |
10610 |
# The GNU linker requires the -export-dynamic option to make |
10611 |
# all symbols visible in the dynamic symbol table. |
10612 |
hold_ldflags=$LDFLAGS |
10613 |
{ echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
10614 |
echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } |
10615 |
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
10616 |
cat >conftest.$ac_ext <<_ACEOF |
10617 |
/* confdefs.h. */ |
10618 |
_ACEOF |
10619 |
cat confdefs.h >>conftest.$ac_ext |
10620 |
cat >>conftest.$ac_ext <<_ACEOF |
10621 |
/* end confdefs.h. */ |
10622 |
|
10623 |
int |
10624 |
main () |
10625 |
{ |
10626 |
int i; |
10627 |
; |
10628 |
return 0; |
10629 |
} |
10630 |
_ACEOF |
10631 |
rm -f conftest.$ac_objext conftest$ac_exeext |
10632 |
if { (ac_try="$ac_link" |
10633 |
case "(($ac_try" in |
10634 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10635 |
*) ac_try_echo=$ac_try;; |
10636 |
esac |
10637 |
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10638 |
(eval "$ac_link") 2>conftest.er1 |
10639 |
ac_status=$? |
10640 |
grep -v '^ *+' conftest.er1 >conftest.err |
10641 |
rm -f conftest.er1 |
10642 |
cat conftest.err >&5 |
10643 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10644 |
(exit $ac_status); } && { |
10645 |
test -z "$ac_c_werror_flag" || |
10646 |
test ! -s conftest.err |
10647 |
} && test -s conftest$ac_exeext && |
10648 |
$as_test_x conftest$ac_exeext; then |
10649 |
found=yes |
10650 |
else |
10651 |
echo "$as_me: failed program was:" >&5 |
10652 |
sed 's/^/| /' conftest.$ac_ext >&5 |
10653 |
|
10654 |
found=no |
10655 |
fi |
10656 |
|
10657 |
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10658 |
conftest$ac_exeext conftest.$ac_ext |
10659 |
LDFLAGS=$hold_ldflags |
10660 |
|
10661 |
if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then |
10662 |
found="no, IRIX ld uses -B,dynamic" |
10663 |
LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" |
10664 |
fi |
10665 |
|
10666 |
{ echo "$as_me:$LINENO: result: $found" >&5 |
10667 |
echo "${ECHO_T}$found" >&6; } |
10668 |
|
10669 |
if test "$found" = yes; then |
10670 |
LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
10671 |
fi |
10672 |
|
10673 |
{ echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
10674 |
echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } |
10675 |
if test "$SGS" = "yes"; then |
10676 |
{ echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
10677 |
echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } |
10678 |
PICFLAGS="-KPIC -DPIC -G" |
10679 |
fi |
10680 |
|
10681 |
if test "$AppleGCC" = "yes"; then |
10682 |
{ echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
10683 |
echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } |
10684 |
PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
10685 |
fi |
10686 |
if test "$HPUX" = "yes" -a "$ac_cv_c_compiler_gnu" = no; then |
10687 |
{ echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
10688 |
echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } |
10689 |
PICFLAGS="+z -r -q -n -c" |
10690 |
{ echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
10691 |
echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } |
10692 |
|
10693 |
if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then |
10694 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10695 |
echo "${ECHO_T}no" >&6; } |
10696 |
else |
10697 |
{ echo "$as_me:$LINENO: result: yes" >&5 |
10698 |
echo "${ECHO_T}yes" >&6; } |
10699 |
PICFLAGS="$PICFLAGS +ESfic" |
10700 |
fi |
10701 |
|
10702 |
LDFLAGS="${LDFLAGS} -Wl,-E" |
10703 |
fi |
10704 |
if test "$Tru" = yes -a "$ac_cv_c_compiler_gnu" = no; then |
10705 |
{ echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
10706 |
echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } |
10707 |
PICFLAGS="-shared -expect_unresolved '*' " |
10708 |
LDFLAGS="-call_shared" |
10709 |
fi |
10710 |
if test -z "$PICFLAGS"; then |
10711 |
if test "$ac_cv_c_compiler_gnu" = "yes"; then |
10712 |
{ echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
10713 |
echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } |
10714 |
PICFLAGS="-fPIC -DPIC -shared" |
10715 |
else |
10716 |
{ echo "$as_me:$LINENO: result: no" >&5 |
10717 |
echo "${ECHO_T}no" >&6; } |
10718 |
shared_modules=no |
10719 |
fi |
10720 |
fi |
10721 |
fi |
10722 |
|
10723 |
if test "$shared_modules" = no; then |
10724 |
DYNLINK_C="" |
10725 |
MOD_TARGET="libmodules.a" |
10726 |
MODULES_LIBS="../modules/libmodules.a" |
10727 |
SEDOBJ="" |
10728 |
|
10729 |
cat >>confdefs.h <<\_ACEOF |
10730 |
#define STATIC_MODULES 1 |
10731 |
_ACEOF |
10732 |
|
10733 |
{ echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 |
10734 |
echo "$as_me: WARNING: shared module support has been disabled!" >&2;} |
10735 |
fi |
10736 |
|
10737 |
|
10738 |
|
10739 |
|
10740 |
|
10741 |
|
10742 |
|
10743 |
|
10744 |
|
10745 |
|
10746 |
|
10747 |
|
10748 |
|
10749 |
|
10750 |
if test "$prefix" = "NONE"; then |
10751 |
|
10752 |
cat >>confdefs.h <<_ACEOF |
10753 |
#define IRCD_PREFIX "$ac_default_prefix" |
10754 |
_ACEOF |
10755 |
|
10756 |
|
10757 |
else |
10758 |
|
10759 |
|
10760 |
prefix=`echo $prefix | sed 's/\/$//'` |
10761 |
|
10762 |
cat >>confdefs.h <<_ACEOF |
10763 |
#define IRCD_PREFIX "$prefix" |
10764 |
_ACEOF |
10765 |
|
10766 |
|
10767 |
fi |
10768 |
|
10769 |
ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile src/Makefile messages/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile libio/Makefile libio/comm/Makefile libio/mem/Makefile libio/misc/Makefile libio/net/Makefile libio/string/Makefile" |
10770 |
|
10771 |
|
10772 |
cat >confcache <<\_ACEOF |
10773 |
# This file is a shell script that caches the results of configure |
10774 |
# tests run on this system so they can be shared between configure |
10775 |
# scripts and configure runs, see configure's option --config-cache. |
10776 |
# It is not useful on other systems. If it contains results you don't |
10777 |
# want to keep, you may remove or edit it. |
10778 |
# |
10779 |
# config.status only pays attention to the cache file if you give it |
10780 |
# the --recheck option to rerun configure. |
10781 |
# |
10782 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
10783 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
10784 |
# following values. |
10785 |
|
10786 |
_ACEOF |
10787 |
|
10788 |
# The following way of writing the cache mishandles newlines in values, |
10789 |
# but we know of no workaround that is simple, portable, and efficient. |
10790 |
# So, we kill variables containing newlines. |
10791 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
10792 |
# and sets the high bit in the cache file unless we assign to the vars. |
10793 |
( |
10794 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
10795 |
eval ac_val=\$$ac_var |
10796 |
case $ac_val in #( |
10797 |
*${as_nl}*) |
10798 |
case $ac_var in #( |
10799 |
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
10800 |
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
10801 |
esac |
10802 |
case $ac_var in #( |
10803 |
_ | IFS | as_nl) ;; #( |
10804 |
*) $as_unset $ac_var ;; |
10805 |
esac ;; |
10806 |
esac |
10807 |
done |
10808 |
|
10809 |
(set) 2>&1 | |
10810 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
10811 |
*${as_nl}ac_space=\ *) |
10812 |
# `set' does not quote correctly, so add quotes (double-quote |
10813 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
10814 |
sed -n \ |
10815 |
"s/'/'\\\\''/g; |
10816 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
10817 |
;; #( |
10818 |
*) |
10819 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
10820 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
10821 |
;; |
10822 |
esac | |
10823 |
sort |
10824 |
) | |
10825 |
sed ' |
10826 |
/^ac_cv_env_/b end |
10827 |
t clear |
10828 |
:clear |
10829 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
10830 |
t end |
10831 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
10832 |
:end' >>confcache |
10833 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
10834 |
if test -w "$cache_file"; then |
10835 |
test "x$cache_file" != "x/dev/null" && |
10836 |
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
10837 |
echo "$as_me: updating cache $cache_file" >&6;} |
10838 |
cat confcache >$cache_file |
10839 |
else |
10840 |
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
10841 |
echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
10842 |
fi |
10843 |
fi |
10844 |
rm -f confcache |
10845 |
|
10846 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
10847 |
# Let make expand exec_prefix. |
10848 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
10849 |
|
10850 |
DEFS=-DHAVE_CONFIG_H |
10851 |
|
10852 |
ac_libobjs= |
10853 |
ac_ltlibobjs= |
10854 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
10855 |
# 1. Remove the extension, and $U if already installed. |
10856 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
10857 |
ac_i=`echo "$ac_i" | sed "$ac_script"` |
10858 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
10859 |
# will be set to the directory where LIBOBJS objects are built. |
10860 |
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
10861 |
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
10862 |
done |
10863 |
LIBOBJS=$ac_libobjs |
10864 |
|
10865 |
LTLIBOBJS=$ac_ltlibobjs |
10866 |
|
10867 |
|
10868 |
|
10869 |
: ${CONFIG_STATUS=./config.status} |
10870 |
ac_clean_files_save=$ac_clean_files |
10871 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
10872 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
10873 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
10874 |
cat >$CONFIG_STATUS <<_ACEOF |
10875 |
#! $SHELL |
10876 |
# Generated by $as_me. |
10877 |
# Run this file to recreate the current configuration. |
10878 |
# Compiler output produced by configure, useful for debugging |
10879 |
# configure, is in config.log if it exists. |
10880 |
|
10881 |
debug=false |
10882 |
ac_cs_recheck=false |
10883 |
ac_cs_silent=false |
10884 |
SHELL=\${CONFIG_SHELL-$SHELL} |
10885 |
_ACEOF |
10886 |
|
10887 |
cat >>$CONFIG_STATUS <<\_ACEOF |
10888 |
## --------------------- ## |
10889 |
## M4sh Initialization. ## |
10890 |
## --------------------- ## |
10891 |
|
10892 |
# Be more Bourne compatible |
10893 |
DUALCASE=1; export DUALCASE # for MKS sh |
10894 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
10895 |
emulate sh |
10896 |
NULLCMD=: |
10897 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
10898 |
# is contrary to our usage. Disable this feature. |
10899 |
alias -g '${1+"$@"}'='"$@"' |
10900 |
setopt NO_GLOB_SUBST |
10901 |
else |
10902 |
case `(set -o) 2>/dev/null` in |
10903 |
*posix*) set -o posix ;; |
10904 |
esac |
10905 |
|
10906 |
fi |
10907 |
|
10908 |
|
10909 |
|
10910 |
|
10911 |
# PATH needs CR |
10912 |
# Avoid depending upon Character Ranges. |
10913 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
10914 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
10915 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
10916 |
as_cr_digits='0123456789' |
10917 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
10918 |
|
10919 |
# The user is always right. |
10920 |
if test "${PATH_SEPARATOR+set}" != set; then |
10921 |
echo "#! /bin/sh" >conf$$.sh |
10922 |
echo "exit 0" >>conf$$.sh |
10923 |
chmod +x conf$$.sh |
10924 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
10925 |
PATH_SEPARATOR=';' |
10926 |
else |
10927 |
PATH_SEPARATOR=: |
10928 |
fi |
10929 |
rm -f conf$$.sh |
10930 |
fi |
10931 |
|
10932 |
# Support unset when possible. |
10933 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
10934 |
as_unset=unset |
10935 |
else |
10936 |
as_unset=false |
10937 |
fi |
10938 |
|
10939 |
|
10940 |
# IFS |
10941 |
# We need space, tab and new line, in precisely that order. Quoting is |
10942 |
# there to prevent editors from complaining about space-tab. |
10943 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
10944 |
# splitting by setting IFS to empty value.) |
10945 |
as_nl=' |
10946 |
' |
10947 |
IFS=" "" $as_nl" |
10948 |
|
10949 |
# Find who we are. Look in the path if we contain no directory separator. |
10950 |
case $0 in |
10951 |
*[\\/]* ) as_myself=$0 ;; |
10952 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10953 |
for as_dir in $PATH |
10954 |
do |
10955 |
IFS=$as_save_IFS |
10956 |
test -z "$as_dir" && as_dir=. |
10957 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
10958 |
done |
10959 |
IFS=$as_save_IFS |
10960 |
|
10961 |
;; |
10962 |
esac |
10963 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
10964 |
# in which case we are not to be found in the path. |
10965 |
if test "x$as_myself" = x; then |
10966 |
as_myself=$0 |
10967 |
fi |
10968 |
if test ! -f "$as_myself"; then |
10969 |
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
10970 |
{ (exit 1); exit 1; } |
10971 |
fi |
10972 |
|
10973 |
# Work around bugs in pre-3.0 UWIN ksh. |
10974 |
for as_var in ENV MAIL MAILPATH |
10975 |
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
10976 |
done |
10977 |
PS1='$ ' |
10978 |
PS2='> ' |
10979 |
PS4='+ ' |
10980 |
|
10981 |
# NLS nuisances. |
10982 |
for as_var in \ |
10983 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
10984 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
10985 |
LC_TELEPHONE LC_TIME |
10986 |
do |
10987 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
10988 |
eval $as_var=C; export $as_var |
10989 |
else |
10990 |
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
10991 |
fi |
10992 |
done |
10993 |
|
10994 |
# Required to use basename. |
10995 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
10996 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
10997 |
as_expr=expr |
10998 |
else |
10999 |
as_expr=false |
11000 |
fi |
11001 |
|
11002 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
11003 |
as_basename=basename |
11004 |
else |
11005 |
as_basename=false |
11006 |
fi |
11007 |
|
11008 |
|
11009 |
# Name of the executable. |
11010 |
as_me=`$as_basename -- "$0" || |
11011 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
11012 |
X"$0" : 'X\(//\)$' \| \ |
11013 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
11014 |
echo X/"$0" | |
11015 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
11016 |
s//\1/ |
11017 |
q |
11018 |
} |
11019 |
/^X\/\(\/\/\)$/{ |
11020 |
s//\1/ |
11021 |
q |
11022 |
} |
11023 |
/^X\/\(\/\).*/{ |
11024 |
s//\1/ |
11025 |
q |
11026 |
} |
11027 |
s/.*/./; q'` |
11028 |
|
11029 |
# CDPATH. |
11030 |
$as_unset CDPATH |
11031 |
|
11032 |
|
11033 |
|
11034 |
as_lineno_1=$LINENO |
11035 |
as_lineno_2=$LINENO |
11036 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
11037 |
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
11038 |
|
11039 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
11040 |
# uniformly replaced by the line number. The first 'sed' inserts a |
11041 |
# line-number line after each line using $LINENO; the second 'sed' |
11042 |
# does the real work. The second script uses 'N' to pair each |
11043 |
# line-number line with the line containing $LINENO, and appends |
11044 |
# trailing '-' during substitution so that $LINENO is not a special |
11045 |
# case at line end. |
11046 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
11047 |
# scripts with optimization help from Paolo Bonzini. Blame Lee |
11048 |
# E. McMahon (1931-1989) for sed's syntax. :-) |
11049 |
sed -n ' |
11050 |
p |
11051 |
/[$]LINENO/= |
11052 |
' <$as_myself | |
11053 |
sed ' |
11054 |
s/[$]LINENO.*/&-/ |
11055 |
t lineno |
11056 |
b |
11057 |
:lineno |
11058 |
N |
11059 |
:loop |
11060 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
11061 |
t loop |
11062 |
s/-\n.*// |
11063 |
' >$as_me.lineno && |
11064 |
chmod +x "$as_me.lineno" || |
11065 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
11066 |
{ (exit 1); exit 1; }; } |
11067 |
|
11068 |
# Don't try to exec as it changes $[0], causing all sort of problems |
11069 |
# (the dirname of $[0] is not the place where we might find the |
11070 |
# original and so on. Autoconf is especially sensitive to this). |
11071 |
. "./$as_me.lineno" |
11072 |
# Exit status is that of the last command. |
11073 |
exit |
11074 |
} |
11075 |
|
11076 |
|
11077 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
11078 |
as_dirname=dirname |
11079 |
else |
11080 |
as_dirname=false |
11081 |
fi |
11082 |
|
11083 |
ECHO_C= ECHO_N= ECHO_T= |
11084 |
case `echo -n x` in |
11085 |
-n*) |
11086 |
case `echo 'x\c'` in |
11087 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
11088 |
*) ECHO_C='\c';; |
11089 |
esac;; |
11090 |
*) |
11091 |
ECHO_N='-n';; |
11092 |
esac |
11093 |
|
11094 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
11095 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
11096 |
as_expr=expr |
11097 |
else |
11098 |
as_expr=false |
11099 |
fi |
11100 |
|
11101 |
rm -f conf$$ conf$$.exe conf$$.file |
11102 |
if test -d conf$$.dir; then |
11103 |
rm -f conf$$.dir/conf$$.file |
11104 |
else |
11105 |
rm -f conf$$.dir |
11106 |
mkdir conf$$.dir |
11107 |
fi |
11108 |
echo >conf$$.file |
11109 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
11110 |
as_ln_s='ln -s' |
11111 |
# ... but there are two gotchas: |
11112 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
11113 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
11114 |
# In both cases, we have to default to `cp -p'. |
11115 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
11116 |
as_ln_s='cp -p' |
11117 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
11118 |
as_ln_s=ln |
11119 |
else |
11120 |
as_ln_s='cp -p' |
11121 |
fi |
11122 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
11123 |
rmdir conf$$.dir 2>/dev/null |
11124 |
|
11125 |
if mkdir -p . 2>/dev/null; then |
11126 |
as_mkdir_p=: |
11127 |
else |
11128 |
test -d ./-p && rmdir ./-p |
11129 |
as_mkdir_p=false |
11130 |
fi |
11131 |
|
11132 |
if test -x / >/dev/null 2>&1; then |
11133 |
as_test_x='test -x' |
11134 |
else |
11135 |
if ls -dL / >/dev/null 2>&1; then |
11136 |
as_ls_L_option=L |
11137 |
else |
11138 |
as_ls_L_option= |
11139 |
fi |
11140 |
as_test_x=' |
11141 |
eval sh -c '\'' |
11142 |
if test -d "$1"; then |
11143 |
test -d "$1/."; |
11144 |
else |
11145 |
case $1 in |
11146 |
-*)set "./$1";; |
11147 |
esac; |
11148 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
11149 |
???[sx]*):;;*)false;;esac;fi |
11150 |
'\'' sh |
11151 |
' |
11152 |
fi |
11153 |
as_executable_p=$as_test_x |
11154 |
|
11155 |
# Sed expression to map a string onto a valid CPP name. |
11156 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
11157 |
|
11158 |
# Sed expression to map a string onto a valid variable name. |
11159 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
11160 |
|
11161 |
|
11162 |
exec 6>&1 |
11163 |
|
11164 |
# Save the log message, to keep $[0] and so on meaningful, and to |
11165 |
# report actual input values of CONFIG_FILES etc. instead of their |
11166 |
# values after options handling. |
11167 |
ac_log=" |
11168 |
This file was extended by ircd-hybrid $as_me 7.3, which was |
11169 |
generated by GNU Autoconf 2.61. Invocation command line was |
11170 |
|
11171 |
CONFIG_FILES = $CONFIG_FILES |
11172 |
CONFIG_HEADERS = $CONFIG_HEADERS |
11173 |
CONFIG_LINKS = $CONFIG_LINKS |
11174 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
11175 |
$ $0 $@ |
11176 |
|
11177 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
11178 |
" |
11179 |
|
11180 |
_ACEOF |
11181 |
|
11182 |
cat >>$CONFIG_STATUS <<_ACEOF |
11183 |
# Files that config.status was made for. |
11184 |
config_files="$ac_config_files" |
11185 |
config_headers="$ac_config_headers" |
11186 |
|
11187 |
_ACEOF |
11188 |
|
11189 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11190 |
ac_cs_usage="\ |
11191 |
\`$as_me' instantiates files from templates according to the |
11192 |
current configuration. |
11193 |
|
11194 |
Usage: $0 [OPTIONS] [FILE]... |
11195 |
|
11196 |
-h, --help print this help, then exit |
11197 |
-V, --version print version number and configuration settings, then exit |
11198 |
-q, --quiet do not print progress messages |
11199 |
-d, --debug don't remove temporary files |
11200 |
--recheck update $as_me by reconfiguring in the same conditions |
11201 |
--file=FILE[:TEMPLATE] |
11202 |
instantiate the configuration file FILE |
11203 |
--header=FILE[:TEMPLATE] |
11204 |
instantiate the configuration header FILE |
11205 |
|
11206 |
Configuration files: |
11207 |
$config_files |
11208 |
|
11209 |
Configuration headers: |
11210 |
$config_headers |
11211 |
|
11212 |
Report bugs to <bug-autoconf@gnu.org>." |
11213 |
|
11214 |
_ACEOF |
11215 |
cat >>$CONFIG_STATUS <<_ACEOF |
11216 |
ac_cs_version="\\ |
11217 |
ircd-hybrid config.status 7.3 |
11218 |
configured by $0, generated by GNU Autoconf 2.61, |
11219 |
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
11220 |
|
11221 |
Copyright (C) 2006 Free Software Foundation, Inc. |
11222 |
This config.status script is free software; the Free Software Foundation |
11223 |
gives unlimited permission to copy, distribute and modify it." |
11224 |
|
11225 |
ac_pwd='$ac_pwd' |
11226 |
srcdir='$srcdir' |
11227 |
INSTALL='$INSTALL' |
11228 |
_ACEOF |
11229 |
|
11230 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11231 |
# If no file are specified by the user, then we need to provide default |
11232 |
# value. By we need to know if files were specified by the user. |
11233 |
ac_need_defaults=: |
11234 |
while test $# != 0 |
11235 |
do |
11236 |
case $1 in |
11237 |
--*=*) |
11238 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
11239 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
11240 |
ac_shift=: |
11241 |
;; |
11242 |
*) |
11243 |
ac_option=$1 |
11244 |
ac_optarg=$2 |
11245 |
ac_shift=shift |
11246 |
;; |
11247 |
esac |
11248 |
|
11249 |
case $ac_option in |
11250 |
# Handling of the options. |
11251 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
11252 |
ac_cs_recheck=: ;; |
11253 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
11254 |
echo "$ac_cs_version"; exit ;; |
11255 |
--debug | --debu | --deb | --de | --d | -d ) |
11256 |
debug=: ;; |
11257 |
--file | --fil | --fi | --f ) |
11258 |
$ac_shift |
11259 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
11260 |
ac_need_defaults=false;; |
11261 |
--header | --heade | --head | --hea ) |
11262 |
$ac_shift |
11263 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
11264 |
ac_need_defaults=false;; |
11265 |
--he | --h) |
11266 |
# Conflict between --help and --header |
11267 |
{ echo "$as_me: error: ambiguous option: $1 |
11268 |
Try \`$0 --help' for more information." >&2 |
11269 |
{ (exit 1); exit 1; }; };; |
11270 |
--help | --hel | -h ) |
11271 |
echo "$ac_cs_usage"; exit ;; |
11272 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
11273 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
11274 |
ac_cs_silent=: ;; |
11275 |
|
11276 |
# This is an error. |
11277 |
-*) { echo "$as_me: error: unrecognized option: $1 |
11278 |
Try \`$0 --help' for more information." >&2 |
11279 |
{ (exit 1); exit 1; }; } ;; |
11280 |
|
11281 |
*) ac_config_targets="$ac_config_targets $1" |
11282 |
ac_need_defaults=false ;; |
11283 |
|
11284 |
esac |
11285 |
shift |
11286 |
done |
11287 |
|
11288 |
ac_configure_extra_args= |
11289 |
|
11290 |
if $ac_cs_silent; then |
11291 |
exec 6>/dev/null |
11292 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
11293 |
fi |
11294 |
|
11295 |
_ACEOF |
11296 |
cat >>$CONFIG_STATUS <<_ACEOF |
11297 |
if \$ac_cs_recheck; then |
11298 |
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
11299 |
CONFIG_SHELL=$SHELL |
11300 |
export CONFIG_SHELL |
11301 |
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
11302 |
fi |
11303 |
|
11304 |
_ACEOF |
11305 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11306 |
exec 5>>config.log |
11307 |
{ |
11308 |
echo |
11309 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
11310 |
## Running $as_me. ## |
11311 |
_ASBOX |
11312 |
echo "$ac_log" |
11313 |
} >&5 |
11314 |
|
11315 |
_ACEOF |
11316 |
cat >>$CONFIG_STATUS <<_ACEOF |
11317 |
_ACEOF |
11318 |
|
11319 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11320 |
|
11321 |
# Handling of arguments. |
11322 |
for ac_config_target in $ac_config_targets |
11323 |
do |
11324 |
case $ac_config_target in |
11325 |
"include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; |
11326 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11327 |
"etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;; |
11328 |
"servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; |
11329 |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
11330 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
11331 |
"messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;; |
11332 |
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
11333 |
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
11334 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11335 |
"help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; |
11336 |
"libio/Makefile") CONFIG_FILES="$CONFIG_FILES libio/Makefile" ;; |
11337 |
"libio/comm/Makefile") CONFIG_FILES="$CONFIG_FILES libio/comm/Makefile" ;; |
11338 |
"libio/mem/Makefile") CONFIG_FILES="$CONFIG_FILES libio/mem/Makefile" ;; |
11339 |
"libio/misc/Makefile") CONFIG_FILES="$CONFIG_FILES libio/misc/Makefile" ;; |
11340 |
"libio/net/Makefile") CONFIG_FILES="$CONFIG_FILES libio/net/Makefile" ;; |
11341 |
"libio/string/Makefile") CONFIG_FILES="$CONFIG_FILES libio/string/Makefile" ;; |
11342 |
|
11343 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11344 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
11345 |
{ (exit 1); exit 1; }; };; |
11346 |
esac |
11347 |
done |
11348 |
|
11349 |
|
11350 |
# If the user did not use the arguments to specify the items to instantiate, |
11351 |
# then the envvar interface is used. Set only those that are not. |
11352 |
# We use the long form for the default assignment because of an extremely |
11353 |
# bizarre bug on SunOS 4.1.3. |
11354 |
if $ac_need_defaults; then |
11355 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
11356 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
11357 |
fi |
11358 |
|
11359 |
# Have a temporary directory for convenience. Make it in the build tree |
11360 |
# simply because there is no reason against having it here, and in addition, |
11361 |
# creating and moving files from /tmp can sometimes cause problems. |
11362 |
# Hook for its removal unless debugging. |
11363 |
# Note that there is a small window in which the directory will not be cleaned: |
11364 |
# after its creation but before its name has been assigned to `$tmp'. |
11365 |
$debug || |
11366 |
{ |
11367 |
tmp= |
11368 |
trap 'exit_status=$? |
11369 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
11370 |
' 0 |
11371 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
11372 |
} |
11373 |
# Create a (secure) tmp directory for tmp files. |
11374 |
|
11375 |
{ |
11376 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
11377 |
test -n "$tmp" && test -d "$tmp" |
11378 |
} || |
11379 |
{ |
11380 |
tmp=./conf$$-$RANDOM |
11381 |
(umask 077 && mkdir "$tmp") |
11382 |
} || |
11383 |
{ |
11384 |
echo "$me: cannot create a temporary directory in ." >&2 |
11385 |
{ (exit 1); exit 1; } |
11386 |
} |
11387 |
|
11388 |
# |
11389 |
# Set up the sed scripts for CONFIG_FILES section. |
11390 |
# |
11391 |
|
11392 |
# No need to generate the scripts if there are no CONFIG_FILES. |
11393 |
# This happens for instance when ./config.status config.h |
11394 |
if test -n "$CONFIG_FILES"; then |
11395 |
|
11396 |
_ACEOF |
11397 |
|
11398 |
|
11399 |
|
11400 |
ac_delim='%!_!# ' |
11401 |
for ac_last_try in false false false false false :; do |
11402 |
cat >conf$$subs.sed <<_ACEOF |
11403 |
SHELL!$SHELL$ac_delim |
11404 |
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
11405 |
PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
11406 |
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
11407 |
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
11408 |
PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
11409 |
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
11410 |
exec_prefix!$exec_prefix$ac_delim |
11411 |
prefix!$prefix$ac_delim |
11412 |
program_transform_name!$program_transform_name$ac_delim |
11413 |
bindir!$bindir$ac_delim |
11414 |
sbindir!$sbindir$ac_delim |
11415 |
libexecdir!$libexecdir$ac_delim |
11416 |
datarootdir!$datarootdir$ac_delim |
11417 |
datadir!$datadir$ac_delim |
11418 |
sysconfdir!$sysconfdir$ac_delim |
11419 |
sharedstatedir!$sharedstatedir$ac_delim |
11420 |
localstatedir!$localstatedir$ac_delim |
11421 |
includedir!$includedir$ac_delim |
11422 |
oldincludedir!$oldincludedir$ac_delim |
11423 |
docdir!$docdir$ac_delim |
11424 |
infodir!$infodir$ac_delim |
11425 |
htmldir!$htmldir$ac_delim |
11426 |
dvidir!$dvidir$ac_delim |
11427 |
pdfdir!$pdfdir$ac_delim |
11428 |
psdir!$psdir$ac_delim |
11429 |
libdir!$libdir$ac_delim |
11430 |
localedir!$localedir$ac_delim |
11431 |
mandir!$mandir$ac_delim |
11432 |
DEFS!$DEFS$ac_delim |
11433 |
ECHO_C!$ECHO_C$ac_delim |
11434 |
ECHO_N!$ECHO_N$ac_delim |
11435 |
ECHO_T!$ECHO_T$ac_delim |
11436 |
LIBS!$LIBS$ac_delim |
11437 |
build_alias!$build_alias$ac_delim |
11438 |
host_alias!$host_alias$ac_delim |
11439 |
target_alias!$target_alias$ac_delim |
11440 |
CC!$CC$ac_delim |
11441 |
CFLAGS!$CFLAGS$ac_delim |
11442 |
LDFLAGS!$LDFLAGS$ac_delim |
11443 |
CPPFLAGS!$CPPFLAGS$ac_delim |
11444 |
ac_ct_CC!$ac_ct_CC$ac_delim |
11445 |
EXEEXT!$EXEEXT$ac_delim |
11446 |
OBJEXT!$OBJEXT$ac_delim |
11447 |
MKDEP!$MKDEP$ac_delim |
11448 |
MAKEDEPEND!$MAKEDEPEND$ac_delim |
11449 |
STDOUT!$STDOUT$ac_delim |
11450 |
CPP!$CPP$ac_delim |
11451 |
GREP!$GREP$ac_delim |
11452 |
EGREP!$EGREP$ac_delim |
11453 |
SET_MAKE!$SET_MAKE$ac_delim |
11454 |
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
11455 |
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
11456 |
INSTALL_DATA!$INSTALL_DATA$ac_delim |
11457 |
RM!$RM$ac_delim |
11458 |
CP!$CP$ac_delim |
11459 |
MV!$MV$ac_delim |
11460 |
LN!$LN$ac_delim |
11461 |
SED!$SED$ac_delim |
11462 |
AR!$AR$ac_delim |
11463 |
LD!$LD$ac_delim |
11464 |
TEST!$TEST$ac_delim |
11465 |
INET_MISC!$INET_MISC$ac_delim |
11466 |
CRYPT_C!$CRYPT_C$ac_delim |
11467 |
CRYPT_LIB!$CRYPT_LIB$ac_delim |
11468 |
SNPRINTF_C!$SNPRINTF_C$ac_delim |
11469 |
ENCSPEED!$ENCSPEED$ac_delim |
11470 |
ZLIB_LD!$ZLIB_LD$ac_delim |
11471 |
SELECT_TYPE!$SELECT_TYPE$ac_delim |
11472 |
CLOBBER!$CLOBBER$ac_delim |
11473 |
BALLOC_C!$BALLOC_C$ac_delim |
11474 |
EXAMPLE_CONF!$EXAMPLE_CONF$ac_delim |
11475 |
MODULES_LIBS!$MODULES_LIBS$ac_delim |
11476 |
MOD_TARGET!$MOD_TARGET$ac_delim |
11477 |
SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim |
11478 |
SSL_INCLUDES!$SSL_INCLUDES$ac_delim |
11479 |
SSL_LIBS!$SSL_LIBS$ac_delim |
11480 |
PICFLAGS!$PICFLAGS$ac_delim |
11481 |
IRC_CFLAGS!$IRC_CFLAGS$ac_delim |
11482 |
SEDOBJ!$SEDOBJ$ac_delim |
11483 |
DYNLINK_C!$DYNLINK_C$ac_delim |
11484 |
LIBOBJS!$LIBOBJS$ac_delim |
11485 |
LTLIBOBJS!$LTLIBOBJS$ac_delim |
11486 |
_ACEOF |
11487 |
|
11488 |
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then |
11489 |
break |
11490 |
elif $ac_last_try; then |
11491 |
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
11492 |
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
11493 |
{ (exit 1); exit 1; }; } |
11494 |
else |
11495 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
11496 |
fi |
11497 |
done |
11498 |
|
11499 |
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
11500 |
if test -n "$ac_eof"; then |
11501 |
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
11502 |
ac_eof=`expr $ac_eof + 1` |
11503 |
fi |
11504 |
|
11505 |
cat >>$CONFIG_STATUS <<_ACEOF |
11506 |
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
11507 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
11508 |
_ACEOF |
11509 |
sed ' |
11510 |
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
11511 |
s/^/s,@/; s/!/@,|#_!!_#|/ |
11512 |
:n |
11513 |
t n |
11514 |
s/'"$ac_delim"'$/,g/; t |
11515 |
s/$/\\/; p |
11516 |
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
11517 |
' >>$CONFIG_STATUS <conf$$subs.sed |
11518 |
rm -f conf$$subs.sed |
11519 |
cat >>$CONFIG_STATUS <<_ACEOF |
11520 |
:end |
11521 |
s/|#_!!_#|//g |
11522 |
CEOF$ac_eof |
11523 |
_ACEOF |
11524 |
|
11525 |
|
11526 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
11527 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
11528 |
# trailing colons and then remove the whole line if VPATH becomes empty |
11529 |
# (actually we leave an empty line to preserve line numbers). |
11530 |
if test "x$srcdir" = x.; then |
11531 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
11532 |
s/:*\$(srcdir):*/:/ |
11533 |
s/:*\${srcdir}:*/:/ |
11534 |
s/:*@srcdir@:*/:/ |
11535 |
s/^\([^=]*=[ ]*\):*/\1/ |
11536 |
s/:*$// |
11537 |
s/^[^=]*=[ ]*$// |
11538 |
}' |
11539 |
fi |
11540 |
|
11541 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11542 |
fi # test -n "$CONFIG_FILES" |
11543 |
|
11544 |
|
11545 |
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
11546 |
do |
11547 |
case $ac_tag in |
11548 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
11549 |
esac |
11550 |
case $ac_mode$ac_tag in |
11551 |
:[FHL]*:*);; |
11552 |
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
11553 |
echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
11554 |
{ (exit 1); exit 1; }; };; |
11555 |
:[FH]-) ac_tag=-:-;; |
11556 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
11557 |
esac |
11558 |
ac_save_IFS=$IFS |
11559 |
IFS=: |
11560 |
set x $ac_tag |
11561 |
IFS=$ac_save_IFS |
11562 |
shift |
11563 |
ac_file=$1 |
11564 |
shift |
11565 |
|
11566 |
case $ac_mode in |
11567 |
:L) ac_source=$1;; |
11568 |
:[FH]) |
11569 |
ac_file_inputs= |
11570 |
for ac_f |
11571 |
do |
11572 |
case $ac_f in |
11573 |
-) ac_f="$tmp/stdin";; |
11574 |
*) # Look for the file first in the build tree, then in the source tree |
11575 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
11576 |
# because $ac_f cannot contain `:'. |
11577 |
test -f "$ac_f" || |
11578 |
case $ac_f in |
11579 |
[\\/$]*) false;; |
11580 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
11581 |
esac || |
11582 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
11583 |
echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
11584 |
{ (exit 1); exit 1; }; };; |
11585 |
esac |
11586 |
ac_file_inputs="$ac_file_inputs $ac_f" |
11587 |
done |
11588 |
|
11589 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
11590 |
# use $as_me), people would be surprised to read: |
11591 |
# /* config.h. Generated by config.status. */ |
11592 |
configure_input="Generated from "`IFS=: |
11593 |
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
11594 |
if test x"$ac_file" != x-; then |
11595 |
configure_input="$ac_file. $configure_input" |
11596 |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
11597 |
echo "$as_me: creating $ac_file" >&6;} |
11598 |
fi |
11599 |
|
11600 |
case $ac_tag in |
11601 |
*:-:* | *:-) cat >"$tmp/stdin";; |
11602 |
esac |
11603 |
;; |
11604 |
esac |
11605 |
|
11606 |
ac_dir=`$as_dirname -- "$ac_file" || |
11607 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11608 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
11609 |
X"$ac_file" : 'X\(//\)$' \| \ |
11610 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
11611 |
echo X"$ac_file" | |
11612 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11613 |
s//\1/ |
11614 |
q |
11615 |
} |
11616 |
/^X\(\/\/\)[^/].*/{ |
11617 |
s//\1/ |
11618 |
q |
11619 |
} |
11620 |
/^X\(\/\/\)$/{ |
11621 |
s//\1/ |
11622 |
q |
11623 |
} |
11624 |
/^X\(\/\).*/{ |
11625 |
s//\1/ |
11626 |
q |
11627 |
} |
11628 |
s/.*/./; q'` |
11629 |
{ as_dir="$ac_dir" |
11630 |
case $as_dir in #( |
11631 |
-*) as_dir=./$as_dir;; |
11632 |
esac |
11633 |
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
11634 |
as_dirs= |
11635 |
while :; do |
11636 |
case $as_dir in #( |
11637 |
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
11638 |
*) as_qdir=$as_dir;; |
11639 |
esac |
11640 |
as_dirs="'$as_qdir' $as_dirs" |
11641 |
as_dir=`$as_dirname -- "$as_dir" || |
11642 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
11643 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
11644 |
X"$as_dir" : 'X\(//\)$' \| \ |
11645 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
11646 |
echo X"$as_dir" | |
11647 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
11648 |
s//\1/ |
11649 |
q |
11650 |
} |
11651 |
/^X\(\/\/\)[^/].*/{ |
11652 |
s//\1/ |
11653 |
q |
11654 |
} |
11655 |
/^X\(\/\/\)$/{ |
11656 |
s//\1/ |
11657 |
q |
11658 |
} |
11659 |
/^X\(\/\).*/{ |
11660 |
s//\1/ |
11661 |
q |
11662 |
} |
11663 |
s/.*/./; q'` |
11664 |
test -d "$as_dir" && break |
11665 |
done |
11666 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
11667 |
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
11668 |
echo "$as_me: error: cannot create directory $as_dir" >&2;} |
11669 |
{ (exit 1); exit 1; }; }; } |
11670 |
ac_builddir=. |
11671 |
|
11672 |
case "$ac_dir" in |
11673 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
11674 |
*) |
11675 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
11676 |
# A ".." for each directory in $ac_dir_suffix. |
11677 |
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
11678 |
case $ac_top_builddir_sub in |
11679 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
11680 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
11681 |
esac ;; |
11682 |
esac |
11683 |
ac_abs_top_builddir=$ac_pwd |
11684 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
11685 |
# for backward compatibility: |
11686 |
ac_top_builddir=$ac_top_build_prefix |
11687 |
|
11688 |
case $srcdir in |
11689 |
.) # We are building in place. |
11690 |
ac_srcdir=. |
11691 |
ac_top_srcdir=$ac_top_builddir_sub |
11692 |
ac_abs_top_srcdir=$ac_pwd ;; |
11693 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
11694 |
ac_srcdir=$srcdir$ac_dir_suffix; |
11695 |
ac_top_srcdir=$srcdir |
11696 |
ac_abs_top_srcdir=$srcdir ;; |
11697 |
*) # Relative name. |
11698 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
11699 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
11700 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
11701 |
esac |
11702 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
11703 |
|
11704 |
|
11705 |
case $ac_mode in |
11706 |
:F) |
11707 |
# |
11708 |
# CONFIG_FILE |
11709 |
# |
11710 |
|
11711 |
case $INSTALL in |
11712 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
11713 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
11714 |
esac |
11715 |
_ACEOF |
11716 |
|
11717 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11718 |
# If the template does not know about datarootdir, expand it. |
11719 |
# FIXME: This hack should be removed a few years after 2.60. |
11720 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
11721 |
|
11722 |
case `sed -n '/datarootdir/ { |
11723 |
p |
11724 |
q |
11725 |
} |
11726 |
/@datadir@/p |
11727 |
/@docdir@/p |
11728 |
/@infodir@/p |
11729 |
/@localedir@/p |
11730 |
/@mandir@/p |
11731 |
' $ac_file_inputs` in |
11732 |
*datarootdir*) ac_datarootdir_seen=yes;; |
11733 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
11734 |
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
11735 |
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
11736 |
_ACEOF |
11737 |
cat >>$CONFIG_STATUS <<_ACEOF |
11738 |
ac_datarootdir_hack=' |
11739 |
s&@datadir@&$datadir&g |
11740 |
s&@docdir@&$docdir&g |
11741 |
s&@infodir@&$infodir&g |
11742 |
s&@localedir@&$localedir&g |
11743 |
s&@mandir@&$mandir&g |
11744 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
11745 |
esac |
11746 |
_ACEOF |
11747 |
|
11748 |
# Neutralize VPATH when `$srcdir' = `.'. |
11749 |
# Shell code in configure.ac might set extrasub. |
11750 |
# FIXME: do we really want to maintain this feature? |
11751 |
cat >>$CONFIG_STATUS <<_ACEOF |
11752 |
sed "$ac_vpsub |
11753 |
$extrasub |
11754 |
_ACEOF |
11755 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11756 |
:t |
11757 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
11758 |
s&@configure_input@&$configure_input&;t t |
11759 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
11760 |
s&@srcdir@&$ac_srcdir&;t t |
11761 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
11762 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
11763 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
11764 |
s&@builddir@&$ac_builddir&;t t |
11765 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
11766 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
11767 |
s&@INSTALL@&$ac_INSTALL&;t t |
11768 |
$ac_datarootdir_hack |
11769 |
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
11770 |
|
11771 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
11772 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
11773 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
11774 |
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11775 |
which seems to be undefined. Please make sure it is defined." >&5 |
11776 |
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
11777 |
which seems to be undefined. Please make sure it is defined." >&2;} |
11778 |
|
11779 |
rm -f "$tmp/stdin" |
11780 |
case $ac_file in |
11781 |
-) cat "$tmp/out"; rm -f "$tmp/out";; |
11782 |
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
11783 |
esac |
11784 |
;; |
11785 |
:H) |
11786 |
# |
11787 |
# CONFIG_HEADER |
11788 |
# |
11789 |
_ACEOF |
11790 |
|
11791 |
# Transform confdefs.h into a sed script `conftest.defines', that |
11792 |
# substitutes the proper values into config.h.in to produce config.h. |
11793 |
rm -f conftest.defines conftest.tail |
11794 |
# First, append a space to every undef/define line, to ease matching. |
11795 |
echo 's/$/ /' >conftest.defines |
11796 |
# Then, protect against being on the right side of a sed subst, or in |
11797 |
# an unquoted here document, in config.status. If some macros were |
11798 |
# called several times there might be several #defines for the same |
11799 |
# symbol, which is useless. But do not sort them, since the last |
11800 |
# AC_DEFINE must be honored. |
11801 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
11802 |
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
11803 |
# NAME is the cpp macro being defined, VALUE is the value it is being given. |
11804 |
# PARAMS is the parameter list in the macro definition--in most cases, it's |
11805 |
# just an empty string. |
11806 |
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
11807 |
ac_dB='\\)[ (].*,\\1define\\2' |
11808 |
ac_dC=' ' |
11809 |
ac_dD=' ,' |
11810 |
|
11811 |
uniq confdefs.h | |
11812 |
sed -n ' |
11813 |
t rset |
11814 |
:rset |
11815 |
s/^[ ]*#[ ]*define[ ][ ]*// |
11816 |
t ok |
11817 |
d |
11818 |
:ok |
11819 |
s/[\\&,]/\\&/g |
11820 |
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
11821 |
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
11822 |
' >>conftest.defines |
11823 |
|
11824 |
# Remove the space that was appended to ease matching. |
11825 |
# Then replace #undef with comments. This is necessary, for |
11826 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
11827 |
# on some systems where configure will not decide to define it. |
11828 |
# (The regexp can be short, since the line contains either #define or #undef.) |
11829 |
echo 's/ $// |
11830 |
s,^[ #]*u.*,/* & */,' >>conftest.defines |
11831 |
|
11832 |
# Break up conftest.defines: |
11833 |
ac_max_sed_lines=50 |
11834 |
|
11835 |
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
11836 |
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
11837 |
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
11838 |
# et cetera. |
11839 |
ac_in='$ac_file_inputs' |
11840 |
ac_out='"$tmp/out1"' |
11841 |
ac_nxt='"$tmp/out2"' |
11842 |
|
11843 |
while : |
11844 |
do |
11845 |
# Write a here document: |
11846 |
cat >>$CONFIG_STATUS <<_ACEOF |
11847 |
# First, check the format of the line: |
11848 |
cat >"\$tmp/defines.sed" <<\\CEOF |
11849 |
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
11850 |
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
11851 |
b |
11852 |
:def |
11853 |
_ACEOF |
11854 |
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
11855 |
echo 'CEOF |
11856 |
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
11857 |
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
11858 |
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
11859 |
grep . conftest.tail >/dev/null || break |
11860 |
rm -f conftest.defines |
11861 |
mv conftest.tail conftest.defines |
11862 |
done |
11863 |
rm -f conftest.defines conftest.tail |
11864 |
|
11865 |
echo "ac_result=$ac_in" >>$CONFIG_STATUS |
11866 |
cat >>$CONFIG_STATUS <<\_ACEOF |
11867 |
if test x"$ac_file" != x-; then |
11868 |
echo "/* $configure_input */" >"$tmp/config.h" |
11869 |
cat "$ac_result" >>"$tmp/config.h" |
11870 |
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
11871 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
11872 |
echo "$as_me: $ac_file is unchanged" >&6;} |
11873 |
else |
11874 |
rm -f $ac_file |
11875 |
mv "$tmp/config.h" $ac_file |
11876 |
fi |
11877 |
else |
11878 |
echo "/* $configure_input */" |
11879 |
cat "$ac_result" |
11880 |
fi |
11881 |
rm -f "$tmp/out12" |
11882 |
;; |
11883 |
|
11884 |
|
11885 |
esac |
11886 |
|
11887 |
done # for ac_tag |
11888 |
|
11889 |
|
11890 |
{ (exit 0); exit 0; } |
11891 |
_ACEOF |
11892 |
chmod +x $CONFIG_STATUS |
11893 |
ac_clean_files=$ac_clean_files_save |
11894 |
|
11895 |
|
11896 |
# configure is writing to config.log, and then calls config.status. |
11897 |
# config.status does its own redirection, appending to config.log. |
11898 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
11899 |
# by configure, so config.status won't be able to write to it; its |
11900 |
# output is simply discarded. So we exec the FD to /dev/null, |
11901 |
# effectively closing config.log, so it can be properly (re)opened and |
11902 |
# appended to by config.status. When coming back to configure, we |
11903 |
# need to make the FD available again. |
11904 |
if test "$no_create" != yes; then |
11905 |
ac_cs_success=: |
11906 |
ac_config_status_args= |
11907 |
test "$silent" = yes && |
11908 |
ac_config_status_args="$ac_config_status_args --quiet" |
11909 |
exec 5>/dev/null |
11910 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
11911 |
exec 5>>config.log |
11912 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
11913 |
# would make configure fail if this is the last instruction. |
11914 |
$ac_cs_success || { (exit 1); exit 1; } |
11915 |
fi |
11916 |
|
11917 |
|
11918 |
rm -f src/.depend modules/.depend servlink/.depend contrib/.depend lib/pcre/.depend |
11919 |
|
11920 |
|
11921 |
echo |
11922 |
echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION" |
11923 |
echo |
11924 |
|
11925 |
echo "Installing into: $prefix" |
11926 |
|
11927 |
echo "Ziplinks ................ $zlib" |
11928 |
|
11929 |
if test ! -z "$cf_openssl_ciphers"; then |
11930 |
tmpresult="yes - ${cf_openssl_ciphers}" |
11931 |
else |
11932 |
tmpresult=no |
11933 |
fi |
11934 |
|
11935 |
echo "OpenSSL ................. $tmpresult" |
11936 |
|
11937 |
if test "$shared_modules" = yes; then |
11938 |
tmpresult=shared |
11939 |
else |
11940 |
tmpresult=static |
11941 |
fi |
11942 |
|
11943 |
echo "Modules ................. $tmpresult" |
11944 |
echo "IPv6 support ............ $have_v6" |
11945 |
echo "Net I/O implementation .. $SELECT_TYPE" |
11946 |
|
11947 |
if test "$efnet" = "yes"; then |
11948 |
tmpresult="yes (use example.efnet.conf)" |
11949 |
else |
11950 |
tmpresult="no (use example.conf)" |
11951 |
fi |
11952 |
|
11953 |
echo "EFnet server ............ $tmpresult" |
11954 |
echo "Halfops support ......... $halfops" |
11955 |
echo "Small network ........... $small_net" |
11956 |
echo "G-Line voting ........... $gline_voting" |
11957 |
echo |
11958 |
echo "Configured limits:" |
11959 |
echo "NICKLEN ................. $NICKLEN" |
11960 |
echo "TOPICLEN ................ $TOPICLEN" |
11961 |
echo |