]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
0788536e | 3 | # Generated by GNU Autoconf 2.61 for charybdis 3.1. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
631ef239 AC |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 AC |
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 | ||
631ef239 AC |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
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+"$@"}'='"$@"' | |
631ef239 AC |
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 | |
212380e3 | 53 | fi |
212380e3 AC |
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 | ||
631ef239 AC |
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 | ||
212380e3 | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
212380e3 AC |
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 | |
631ef239 | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
631ef239 AC |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
631ef239 | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
631ef239 | 133 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 137 | echo X/"$0" | |
631ef239 AC |
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'` | |
212380e3 | 151 | |
631ef239 AC |
152 | # CDPATH. |
153 | $as_unset CDPATH | |
212380e3 | 154 | |
212380e3 | 155 | |
631ef239 AC |
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 | |
212380e3 AC |
161 | fi |
162 | ||
631ef239 AC |
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 | } | |
212380e3 | 179 | |
631ef239 AC |
180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
212380e3 | 187 | |
631ef239 AC |
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= | |
212380e3 AC |
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=. | |
631ef239 | 228 | case $as_dir in |
212380e3 | 229 | /*) |
631ef239 AC |
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 | ( | |
212380e3 AC |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
212380e3 | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 AC |
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" || { | |
212380e3 AC |
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 | |
631ef239 AC |
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. | |
212380e3 | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
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 | | |
212380e3 | 444 | sed ' |
631ef239 AC |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
212380e3 | 449 | N |
631ef239 AC |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 452 | t loop |
631ef239 | 453 | s/-\n.*// |
212380e3 | 454 | ' >$as_me.lineno && |
631ef239 | 455 | chmod +x "$as_me.lineno" || |
212380e3 AC |
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 | |
631ef239 AC |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
212380e3 AC |
463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
631ef239 AC |
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';; | |
212380e3 AC |
483 | esac |
484 | ||
631ef239 AC |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
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 | |
212380e3 AC |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
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 || | |
212380e3 | 507 | as_ln_s='cp -p' |
212380e3 AC |
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 | |
631ef239 AC |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
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 | ||
631ef239 AC |
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 | |
212380e3 AC |
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 | ||
212380e3 | 553 | |
631ef239 | 554 | exec 7<&0 </dev/null 6>&1 |
212380e3 AC |
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 | ||
212380e3 AC |
561 | # |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
631ef239 | 565 | ac_clean_files= |
212380e3 | 566 | ac_config_libobj_dir=. |
631ef239 | 567 | LIBOBJS= |
212380e3 AC |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
212380e3 AC |
574 | # Identity of this package. |
575 | PACKAGE_NAME='charybdis' | |
576 | PACKAGE_TARNAME='charybdis' | |
0788536e JT |
577 | PACKAGE_VERSION='3.1' |
578 | PACKAGE_STRING='charybdis 3.1' | |
212380e3 AC |
579 | PACKAGE_BUGREPORT='' |
580 | ||
581 | ac_default_prefix=$HOME/ircd | |
582 | # Factoring default headers for most tests. | |
583 | ac_includes_default="\ | |
584 | #include <stdio.h> | |
631ef239 | 585 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
586 | # include <sys/types.h> |
587 | #endif | |
631ef239 | 588 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
589 | # include <sys/stat.h> |
590 | #endif | |
631ef239 | 591 | #ifdef STDC_HEADERS |
212380e3 AC |
592 | # include <stdlib.h> |
593 | # include <stddef.h> | |
594 | #else | |
631ef239 | 595 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
596 | # include <stdlib.h> |
597 | # endif | |
598 | #endif | |
631ef239 AC |
599 | #ifdef HAVE_STRING_H |
600 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
601 | # include <memory.h> |
602 | # endif | |
603 | # include <string.h> | |
604 | #endif | |
631ef239 | 605 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
606 | # include <strings.h> |
607 | #endif | |
631ef239 | 608 | #ifdef HAVE_INTTYPES_H |
212380e3 | 609 | # include <inttypes.h> |
212380e3 | 610 | #endif |
631ef239 AC |
611 | #ifdef HAVE_STDINT_H |
612 | # include <stdint.h> | |
613 | #endif | |
614 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
615 | # include <unistd.h> |
616 | #endif" | |
617 | ||
631ef239 AC |
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 | |
b676ea3b | 662 | subdirs |
631ef239 AC |
663 | MKDEP |
664 | MAKEDEPEND | |
665 | STDOUT | |
666 | CPP | |
667 | GREP | |
668 | EGREP | |
669 | SET_MAKE | |
670 | INSTALL_PROGRAM | |
671 | INSTALL_SCRIPT | |
672 | INSTALL_DATA | |
673 | RM | |
674 | CP | |
675 | MV | |
676 | LN | |
677 | SED | |
678 | AR | |
679 | LD | |
680 | RANLIB | |
681 | TOUCH | |
682 | YACC | |
683 | YFLAGS | |
684 | LEX | |
685 | LEX_OUTPUT_ROOT | |
686 | LEXLIB | |
687 | CRYPT_LIB | |
688 | VICONF | |
689 | ALLOCA | |
690 | ENCSPEED | |
691 | ZLIB_LD | |
692 | ETC_DIR | |
693 | confdir | |
694 | LOG_DIR | |
695 | logdir | |
696 | HELP_DIR | |
697 | helpdir | |
698 | MODULE_DIR | |
699 | moduledir | |
700 | SELECT_TYPE | |
631ef239 AC |
701 | MODULES_LIBS |
702 | MOD_TARGET | |
703 | SSL_SRCS_ENABLE | |
704 | SSL_INCLUDES | |
705 | SSL_LIBS | |
706 | PICFLAGS | |
707 | IRC_CFLAGS | |
708 | SEDOBJ | |
709 | LIBOBJS | |
710 | LTLIBOBJS' | |
212380e3 | 711 | ac_subst_files='' |
631ef239 AC |
712 | ac_precious_vars='build_alias |
713 | host_alias | |
714 | target_alias | |
715 | CC | |
716 | CFLAGS | |
717 | LDFLAGS | |
718 | LIBS | |
719 | CPPFLAGS | |
720 | CPP | |
721 | YACC | |
722 | YFLAGS' | |
b676ea3b | 723 | ac_subdirs_all='libratbox' |
212380e3 AC |
724 | |
725 | # Initialize some variables set by options. | |
726 | ac_init_help= | |
727 | ac_init_version=false | |
728 | # The variables have the same names as the options, with | |
729 | # dashes changed to underlines. | |
730 | cache_file=/dev/null | |
731 | exec_prefix=NONE | |
732 | no_create= | |
733 | no_recursion= | |
734 | prefix=NONE | |
735 | program_prefix=NONE | |
736 | program_suffix=NONE | |
737 | program_transform_name=s,x,x, | |
738 | silent= | |
739 | site= | |
740 | srcdir= | |
741 | verbose= | |
742 | x_includes=NONE | |
743 | x_libraries=NONE | |
744 | ||
745 | # Installation directory options. | |
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
747 | # and all the variables that are supposed to be based on exec_prefix | |
748 | # by default will actually change. | |
749 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 750 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
751 | bindir='${exec_prefix}/bin' |
752 | sbindir='${exec_prefix}/sbin' | |
753 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
754 | datarootdir='${prefix}/share' |
755 | datadir='${datarootdir}' | |
212380e3 AC |
756 | sysconfdir='${prefix}/etc' |
757 | sharedstatedir='${prefix}/com' | |
758 | localstatedir='${prefix}/var' | |
212380e3 AC |
759 | includedir='${prefix}/include' |
760 | oldincludedir='/usr/include' | |
631ef239 AC |
761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
762 | infodir='${datarootdir}/info' | |
763 | htmldir='${docdir}' | |
764 | dvidir='${docdir}' | |
765 | pdfdir='${docdir}' | |
766 | psdir='${docdir}' | |
767 | libdir='${exec_prefix}/lib' | |
768 | localedir='${datarootdir}/locale' | |
769 | mandir='${datarootdir}/man' | |
212380e3 AC |
770 | |
771 | ac_prev= | |
631ef239 | 772 | ac_dashdash= |
212380e3 AC |
773 | for ac_option |
774 | do | |
775 | # If the previous option needs an argument, assign it. | |
776 | if test -n "$ac_prev"; then | |
631ef239 | 777 | eval $ac_prev=\$ac_option |
212380e3 AC |
778 | ac_prev= |
779 | continue | |
780 | fi | |
781 | ||
631ef239 AC |
782 | case $ac_option in |
783 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
784 | *) ac_optarg=yes ;; | |
785 | esac | |
212380e3 AC |
786 | |
787 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
788 | ||
631ef239 AC |
789 | case $ac_dashdash$ac_option in |
790 | --) | |
791 | ac_dashdash=yes ;; | |
212380e3 AC |
792 | |
793 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
794 | ac_prev=bindir ;; | |
795 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
796 | bindir=$ac_optarg ;; | |
797 | ||
798 | -build | --build | --buil | --bui | --bu) | |
799 | ac_prev=build_alias ;; | |
800 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
801 | build_alias=$ac_optarg ;; | |
802 | ||
803 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
804 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
805 | ac_prev=cache_file ;; | |
806 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
807 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
808 | cache_file=$ac_optarg ;; | |
809 | ||
810 | --config-cache | -C) | |
811 | cache_file=config.cache ;; | |
812 | ||
631ef239 | 813 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 814 | ac_prev=datadir ;; |
631ef239 | 815 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
816 | datadir=$ac_optarg ;; |
817 | ||
631ef239 AC |
818 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
819 | | --dataroo | --dataro | --datar) | |
820 | ac_prev=datarootdir ;; | |
821 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
822 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
823 | datarootdir=$ac_optarg ;; | |
824 | ||
212380e3 AC |
825 | -disable-* | --disable-*) |
826 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
827 | # Reject names that are not valid shell variable names. | |
631ef239 | 828 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
829 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
830 | { (exit 1); exit 1; }; } | |
631ef239 AC |
831 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
832 | eval enable_$ac_feature=no ;; | |
833 | ||
834 | -docdir | --docdir | --docdi | --doc | --do) | |
835 | ac_prev=docdir ;; | |
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
837 | docdir=$ac_optarg ;; | |
838 | ||
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
840 | ac_prev=dvidir ;; | |
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
842 | dvidir=$ac_optarg ;; | |
212380e3 AC |
843 | |
844 | -enable-* | --enable-*) | |
845 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
846 | # Reject names that are not valid shell variable names. | |
631ef239 | 847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
849 | { (exit 1); exit 1; }; } | |
631ef239 AC |
850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
851 | eval enable_$ac_feature=\$ac_optarg ;; | |
212380e3 AC |
852 | |
853 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
854 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
855 | | --exec | --exe | --ex) | |
856 | ac_prev=exec_prefix ;; | |
857 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
858 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
859 | | --exec=* | --exe=* | --ex=*) | |
860 | exec_prefix=$ac_optarg ;; | |
861 | ||
862 | -gas | --gas | --ga | --g) | |
863 | # Obsolete; use --with-gas. | |
864 | with_gas=yes ;; | |
865 | ||
866 | -help | --help | --hel | --he | -h) | |
867 | ac_init_help=long ;; | |
868 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
869 | ac_init_help=recursive ;; | |
870 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
871 | ac_init_help=short ;; | |
872 | ||
873 | -host | --host | --hos | --ho) | |
874 | ac_prev=host_alias ;; | |
875 | -host=* | --host=* | --hos=* | --ho=*) | |
876 | host_alias=$ac_optarg ;; | |
877 | ||
631ef239 AC |
878 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
879 | ac_prev=htmldir ;; | |
880 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
881 | | --ht=*) | |
882 | htmldir=$ac_optarg ;; | |
883 | ||
212380e3 AC |
884 | -includedir | --includedir | --includedi | --included | --include \ |
885 | | --includ | --inclu | --incl | --inc) | |
886 | ac_prev=includedir ;; | |
887 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
888 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
889 | includedir=$ac_optarg ;; | |
890 | ||
891 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
892 | ac_prev=infodir ;; | |
893 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
894 | infodir=$ac_optarg ;; | |
895 | ||
896 | -libdir | --libdir | --libdi | --libd) | |
897 | ac_prev=libdir ;; | |
898 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
899 | libdir=$ac_optarg ;; | |
900 | ||
901 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
902 | | --libexe | --libex | --libe) | |
903 | ac_prev=libexecdir ;; | |
904 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
905 | | --libexe=* | --libex=* | --libe=*) | |
906 | libexecdir=$ac_optarg ;; | |
907 | ||
631ef239 AC |
908 | -localedir | --localedir | --localedi | --localed | --locale) |
909 | ac_prev=localedir ;; | |
910 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
911 | localedir=$ac_optarg ;; | |
912 | ||
212380e3 | 913 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 914 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
915 | ac_prev=localstatedir ;; |
916 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 917 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
918 | localstatedir=$ac_optarg ;; |
919 | ||
920 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
921 | ac_prev=mandir ;; | |
922 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
923 | mandir=$ac_optarg ;; | |
924 | ||
925 | -nfp | --nfp | --nf) | |
926 | # Obsolete; use --without-fp. | |
927 | with_fp=no ;; | |
928 | ||
929 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
930 | | --no-cr | --no-c | -n) | |
931 | no_create=yes ;; | |
932 | ||
933 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
934 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
935 | no_recursion=yes ;; | |
936 | ||
937 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
938 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
939 | | --oldin | --oldi | --old | --ol | --o) | |
940 | ac_prev=oldincludedir ;; | |
941 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
942 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
943 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
944 | oldincludedir=$ac_optarg ;; | |
945 | ||
946 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
947 | ac_prev=prefix ;; | |
948 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
949 | prefix=$ac_optarg ;; | |
950 | ||
951 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
952 | | --program-pre | --program-pr | --program-p) | |
953 | ac_prev=program_prefix ;; | |
954 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
955 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
956 | program_prefix=$ac_optarg ;; | |
957 | ||
958 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
959 | | --program-suf | --program-su | --program-s) | |
960 | ac_prev=program_suffix ;; | |
961 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
962 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
963 | program_suffix=$ac_optarg ;; | |
964 | ||
965 | -program-transform-name | --program-transform-name \ | |
966 | | --program-transform-nam | --program-transform-na \ | |
967 | | --program-transform-n | --program-transform- \ | |
968 | | --program-transform | --program-transfor \ | |
969 | | --program-transfo | --program-transf \ | |
970 | | --program-trans | --program-tran \ | |
971 | | --progr-tra | --program-tr | --program-t) | |
972 | ac_prev=program_transform_name ;; | |
973 | -program-transform-name=* | --program-transform-name=* \ | |
974 | | --program-transform-nam=* | --program-transform-na=* \ | |
975 | | --program-transform-n=* | --program-transform-=* \ | |
976 | | --program-transform=* | --program-transfor=* \ | |
977 | | --program-transfo=* | --program-transf=* \ | |
978 | | --program-trans=* | --program-tran=* \ | |
979 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
980 | program_transform_name=$ac_optarg ;; | |
981 | ||
631ef239 AC |
982 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
983 | ac_prev=pdfdir ;; | |
984 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
985 | pdfdir=$ac_optarg ;; | |
986 | ||
987 | -psdir | --psdir | --psdi | --psd | --ps) | |
988 | ac_prev=psdir ;; | |
989 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
990 | psdir=$ac_optarg ;; | |
991 | ||
212380e3 AC |
992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | | -silent | --silent | --silen | --sile | --sil) | |
994 | silent=yes ;; | |
995 | ||
996 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
997 | ac_prev=sbindir ;; | |
998 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
999 | | --sbi=* | --sb=*) | |
1000 | sbindir=$ac_optarg ;; | |
1001 | ||
1002 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1003 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1004 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1005 | | --sha | --sh) | |
1006 | ac_prev=sharedstatedir ;; | |
1007 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1008 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1009 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1010 | | --sha=* | --sh=*) | |
1011 | sharedstatedir=$ac_optarg ;; | |
1012 | ||
1013 | -site | --site | --sit) | |
1014 | ac_prev=site ;; | |
1015 | -site=* | --site=* | --sit=*) | |
1016 | site=$ac_optarg ;; | |
1017 | ||
1018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1019 | ac_prev=srcdir ;; | |
1020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1021 | srcdir=$ac_optarg ;; | |
1022 | ||
1023 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1024 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1025 | ac_prev=sysconfdir ;; | |
1026 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1027 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1028 | sysconfdir=$ac_optarg ;; | |
1029 | ||
1030 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1031 | ac_prev=target_alias ;; | |
1032 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1033 | target_alias=$ac_optarg ;; | |
1034 | ||
1035 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1036 | verbose=yes ;; | |
1037 | ||
1038 | -version | --version | --versio | --versi | --vers | -V) | |
1039 | ac_init_version=: ;; | |
1040 | ||
1041 | -with-* | --with-*) | |
1042 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1043 | # Reject names that are not valid shell variable names. | |
631ef239 | 1044 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1045 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1046 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1047 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1048 | eval with_$ac_package=\$ac_optarg ;; | |
212380e3 AC |
1049 | |
1050 | -without-* | --without-*) | |
1051 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
631ef239 | 1053 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1054 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1055 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1056 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1057 | eval with_$ac_package=no ;; | |
212380e3 AC |
1058 | |
1059 | --x) | |
1060 | # Obsolete; use --with-x. | |
1061 | with_x=yes ;; | |
1062 | ||
1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1064 | | --x-incl | --x-inc | --x-in | --x-i) | |
1065 | ac_prev=x_includes ;; | |
1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1068 | x_includes=$ac_optarg ;; | |
1069 | ||
1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1072 | ac_prev=x_libraries ;; | |
1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1075 | x_libraries=$ac_optarg ;; | |
1076 | ||
1077 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1078 | Try \`$0 --help' for more information." >&2 | |
1079 | { (exit 1); exit 1; }; } | |
1080 | ;; | |
1081 | ||
1082 | *=*) | |
1083 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1084 | # Reject names that are not valid shell variable names. | |
1085 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1086 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1087 | { (exit 1); exit 1; }; } | |
631ef239 | 1088 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1089 | export $ac_envvar ;; |
1090 | ||
1091 | *) | |
1092 | # FIXME: should be removed in autoconf 3.0. | |
1093 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1095 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1096 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1097 | ;; | |
1098 | ||
1099 | esac | |
1100 | done | |
1101 | ||
1102 | if test -n "$ac_prev"; then | |
1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1104 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1105 | { (exit 1); exit 1; }; } | |
1106 | fi | |
1107 | ||
631ef239 AC |
1108 | # Be sure to have absolute directory names. |
1109 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1110 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1111 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1112 | libdir localedir mandir | |
212380e3 | 1113 | do |
631ef239 | 1114 | eval ac_val=\$$ac_var |
212380e3 | 1115 | case $ac_val in |
631ef239 AC |
1116 | [\\/$]* | ?:[\\/]* ) continue;; |
1117 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1118 | esac |
631ef239 AC |
1119 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1120 | { (exit 1); exit 1; }; } | |
212380e3 AC |
1121 | done |
1122 | ||
1123 | # There might be people who depend on the old broken behavior: `$host' | |
1124 | # used to hold the argument of --host etc. | |
1125 | # FIXME: To remove some day. | |
1126 | build=$build_alias | |
1127 | host=$host_alias | |
1128 | target=$target_alias | |
1129 | ||
1130 | # FIXME: To remove some day. | |
1131 | if test "x$host_alias" != x; then | |
1132 | if test "x$build_alias" = x; then | |
1133 | cross_compiling=maybe | |
1134 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1135 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1136 | elif test "x$build_alias" != "x$host_alias"; then | |
1137 | cross_compiling=yes | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | ac_tool_prefix= | |
1142 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1143 | ||
1144 | test "$silent" = yes && exec 6>/dev/null | |
1145 | ||
1146 | ||
631ef239 AC |
1147 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1148 | ac_ls_di=`ls -di .` && | |
1149 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1150 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1151 | { (exit 1); exit 1; }; } | |
1152 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1153 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1154 | { (exit 1); exit 1; }; } | |
1155 | ||
1156 | ||
1157 | # Find the source files, if location was not specified. | |
1158 | if test -z "$srcdir"; then | |
212380e3 | 1159 | ac_srcdir_defaulted=yes |
631ef239 AC |
1160 | # Try the directory containing this script, then the parent directory. |
1161 | ac_confdir=`$as_dirname -- "$0" || | |
212380e3 AC |
1162 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1163 | X"$0" : 'X\(//\)[^/]' \| \ | |
1164 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 1165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 1166 | echo X"$0" | |
631ef239 AC |
1167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1168 | s//\1/ | |
1169 | q | |
1170 | } | |
1171 | /^X\(\/\/\)[^/].*/{ | |
1172 | s//\1/ | |
1173 | q | |
1174 | } | |
1175 | /^X\(\/\/\)$/{ | |
1176 | s//\1/ | |
1177 | q | |
1178 | } | |
1179 | /^X\(\/\).*/{ | |
1180 | s//\1/ | |
1181 | q | |
1182 | } | |
1183 | s/.*/./; q'` | |
212380e3 | 1184 | srcdir=$ac_confdir |
631ef239 | 1185 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1186 | srcdir=.. |
1187 | fi | |
1188 | else | |
1189 | ac_srcdir_defaulted=no | |
1190 | fi | |
631ef239 AC |
1191 | if test ! -r "$srcdir/$ac_unique_file"; then |
1192 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1193 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
212380e3 | 1194 | { (exit 1); exit 1; }; } |
212380e3 | 1195 | fi |
631ef239 AC |
1196 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1197 | ac_abs_confdir=`( | |
1198 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
212380e3 | 1199 | { (exit 1); exit 1; }; } |
631ef239 AC |
1200 | pwd)` |
1201 | # When building in place, set srcdir=. | |
1202 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1203 | srcdir=. | |
1204 | fi | |
1205 | # Remove unnecessary trailing slashes from srcdir. | |
1206 | # Double slashes in file names in object file debugging info | |
1207 | # mess up M-x gdb in Emacs. | |
1208 | case $srcdir in | |
1209 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1210 | esac | |
1211 | for ac_var in $ac_precious_vars; do | |
1212 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1213 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1214 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1215 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1216 | done | |
212380e3 AC |
1217 | |
1218 | # | |
1219 | # Report the --help message. | |
1220 | # | |
1221 | if test "$ac_init_help" = "long"; then | |
1222 | # Omit some internal or obsolete options to make the list less imposing. | |
1223 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1224 | cat <<_ACEOF | |
0788536e | 1225 | \`configure' configures charybdis 3.1 to adapt to many kinds of systems. |
212380e3 AC |
1226 | |
1227 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1228 | ||
1229 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1230 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1231 | ||
1232 | Defaults for the options are specified in brackets. | |
1233 | ||
1234 | Configuration: | |
1235 | -h, --help display this help and exit | |
1236 | --help=short display options specific to this package | |
1237 | --help=recursive display the short help of all the included packages | |
1238 | -V, --version display version information and exit | |
1239 | -q, --quiet, --silent do not print \`checking...' messages | |
1240 | --cache-file=FILE cache test results in FILE [disabled] | |
1241 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1242 | -n, --no-create do not create output files | |
1243 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1244 | ||
212380e3 AC |
1245 | Installation directories: |
1246 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1247 | [$ac_default_prefix] | |
1248 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1249 | [PREFIX] | |
1250 | ||
1251 | By default, \`make install' will install all the files in | |
1252 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1253 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1254 | for instance \`--prefix=\$HOME'. | |
1255 | ||
1256 | For better control, use the options below. | |
1257 | ||
1258 | Fine tuning of the installation directories: | |
1259 | --bindir=DIR user executables [EPREFIX/bin] | |
1260 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1261 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
212380e3 AC |
1262 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1263 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1264 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1265 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1266 | --includedir=DIR C header files [PREFIX/include] | |
1267 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
631ef239 AC |
1268 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1269 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1270 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1271 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1272 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1273 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1274 | --htmldir=DIR html documentation [DOCDIR] | |
1275 | --dvidir=DIR dvi documentation [DOCDIR] | |
1276 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1277 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1278 | _ACEOF |
1279 | ||
1280 | cat <<\_ACEOF | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | case $ac_init_help in | |
0788536e | 1286 | short | recursive ) echo "Configuration of charybdis 3.1:";; |
212380e3 AC |
1287 | esac |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1293 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1294 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1295 | --disable-openssl Disable OpenSSL support. |
1296 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1297 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1298 | --enable-poll Force poll() usage. |
1299 | --enable-select Force select() usage. | |
1300 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1301 | --enable-epoll Force sys_epoll usage (Linux only). |
1302 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1303 | hard(aborts the daemon) | |
1304 | --enable-iodebug Enable IO Debugging hooks | |
1305 | --enable-profile Enable profiling | |
1306 | --disable-balloc Disable the block allocator. | |
212380e3 | 1307 | --enable-small-net Enable small network support. |
212380e3 AC |
1308 | --enable-warnings Enable all sorts of warnings for debugging. |
1309 | ||
1310 | Optional Packages: | |
1311 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1312 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1313 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1314 | --with-confdir=DIR Directory to install config files. | |
1315 | --with-logdir=DIR Directory where to write logfiles. | |
1316 | --with-helpdir=DIR Directory to install help files. | |
1317 | --with-moduledir=DIR Directory to install modules. | |
1318 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) | |
1319 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1320 | 390) | |
212380e3 AC |
1321 | |
1322 | Some influential environment variables: | |
1323 | CC C compiler command | |
1324 | CFLAGS C compiler flags | |
1325 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1326 | nonstandard directory <lib dir> | |
631ef239 AC |
1327 | LIBS libraries to pass to the linker, e.g. -l<library> |
1328 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1329 | you have headers in a nonstandard directory <include dir> | |
212380e3 | 1330 | CPP C preprocessor |
631ef239 AC |
1331 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1332 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1333 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1334 | This script will default YFLAGS to the empty string to avoid a | |
1335 | default value of `-d' given by some make applications. | |
212380e3 AC |
1336 | |
1337 | Use these variables to override the choices made by `configure' or to help | |
1338 | it to find libraries and programs with nonstandard names/locations. | |
1339 | ||
1340 | _ACEOF | |
631ef239 | 1341 | ac_status=$? |
212380e3 AC |
1342 | fi |
1343 | ||
1344 | if test "$ac_init_help" = "recursive"; then | |
1345 | # If there are subdirs, report their specific --help. | |
212380e3 | 1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
631ef239 | 1347 | test -d "$ac_dir" || continue |
212380e3 AC |
1348 | ac_builddir=. |
1349 | ||
631ef239 AC |
1350 | case "$ac_dir" in |
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1352 | *) | |
212380e3 | 1353 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
1354 | # A ".." for each directory in $ac_dir_suffix. |
1355 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1356 | case $ac_top_builddir_sub in | |
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1359 | esac ;; | |
1360 | esac | |
1361 | ac_abs_top_builddir=$ac_pwd | |
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1363 | # for backward compatibility: | |
1364 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1365 | |
1366 | case $srcdir in | |
631ef239 | 1367 | .) # We are building in place. |
212380e3 | 1368 | ac_srcdir=. |
631ef239 AC |
1369 | ac_top_srcdir=$ac_top_builddir_sub |
1370 | ac_abs_top_srcdir=$ac_pwd ;; | |
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1372 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1373 | ac_top_srcdir=$srcdir |
1374 | ac_abs_top_srcdir=$srcdir ;; | |
1375 | *) # Relative name. | |
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1379 | esac |
631ef239 AC |
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1381 | ||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1383 | # Check for guested configure. | |
1384 | if test -f "$ac_srcdir/configure.gnu"; then | |
1385 | echo && | |
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1387 | elif test -f "$ac_srcdir/configure"; then | |
1388 | echo && | |
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 AC |
1390 | else |
1391 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
631ef239 AC |
1392 | fi || ac_status=$? |
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1394 | done |
1395 | fi | |
1396 | ||
631ef239 | 1397 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1398 | if $ac_init_version; then |
1399 | cat <<\_ACEOF | |
0788536e | 1400 | charybdis configure 3.1 |
631ef239 | 1401 | generated by GNU Autoconf 2.61 |
212380e3 | 1402 | |
631ef239 AC |
1403 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1404 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 AC |
1405 | This configure script is free software; the Free Software Foundation |
1406 | gives unlimited permission to copy, distribute and modify it. | |
1407 | ||
b676ea3b | 1408 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1409 | _ACEOF |
631ef239 | 1410 | exit |
212380e3 | 1411 | fi |
631ef239 | 1412 | cat >config.log <<_ACEOF |
212380e3 AC |
1413 | This file contains any messages produced by compilers while |
1414 | running configure, to aid debugging if configure makes a mistake. | |
1415 | ||
0788536e | 1416 | It was created by charybdis $as_me 3.1, which was |
631ef239 | 1417 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
1418 | |
1419 | $ $0 $@ | |
1420 | ||
1421 | _ACEOF | |
631ef239 | 1422 | exec 5>>config.log |
212380e3 AC |
1423 | { |
1424 | cat <<_ASUNAME | |
1425 | ## --------- ## | |
1426 | ## Platform. ## | |
1427 | ## --------- ## | |
1428 | ||
1429 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1430 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1431 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1432 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1433 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1434 | ||
1435 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1436 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1437 | ||
1438 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1439 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1440 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
631ef239 | 1441 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
212380e3 AC |
1442 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1443 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1444 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1445 | ||
1446 | _ASUNAME | |
1447 | ||
1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1449 | for as_dir in $PATH | |
1450 | do | |
1451 | IFS=$as_save_IFS | |
1452 | test -z "$as_dir" && as_dir=. | |
1453 | echo "PATH: $as_dir" | |
1454 | done | |
631ef239 | 1455 | IFS=$as_save_IFS |
212380e3 AC |
1456 | |
1457 | } >&5 | |
1458 | ||
1459 | cat >&5 <<_ACEOF | |
1460 | ||
1461 | ||
1462 | ## ----------- ## | |
1463 | ## Core tests. ## | |
1464 | ## ----------- ## | |
1465 | ||
1466 | _ACEOF | |
1467 | ||
1468 | ||
1469 | # Keep a trace of the command line. | |
1470 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1471 | # Strip out --silent because we don't want to record it for future runs. | |
1472 | # Also quote any args containing shell meta-characters. | |
1473 | # Make two passes to allow for proper duplicate-argument suppression. | |
1474 | ac_configure_args= | |
1475 | ac_configure_args0= | |
1476 | ac_configure_args1= | |
212380e3 AC |
1477 | ac_must_keep_next=false |
1478 | for ac_pass in 1 2 | |
1479 | do | |
1480 | for ac_arg | |
1481 | do | |
1482 | case $ac_arg in | |
1483 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1484 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1485 | | -silent | --silent | --silen | --sile | --sil) | |
1486 | continue ;; | |
631ef239 | 1487 | *\'*) |
212380e3 AC |
1488 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1489 | esac | |
1490 | case $ac_pass in | |
1491 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1492 | 2) | |
1493 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1494 | if test $ac_must_keep_next = true; then | |
1495 | ac_must_keep_next=false # Got value, back to normal. | |
1496 | else | |
1497 | case $ac_arg in | |
1498 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1499 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1500 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1501 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1502 | case "$ac_configure_args0 " in | |
1503 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1504 | esac | |
1505 | ;; | |
1506 | -* ) ac_must_keep_next=true ;; | |
1507 | esac | |
1508 | fi | |
631ef239 | 1509 | ac_configure_args="$ac_configure_args '$ac_arg'" |
212380e3 AC |
1510 | ;; |
1511 | esac | |
1512 | done | |
1513 | done | |
1514 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1515 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1516 | ||
1517 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1518 | # config.log. We remove comments because anyway the quotes in there | |
1519 | # would cause problems or look ugly. | |
631ef239 AC |
1520 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1521 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
212380e3 AC |
1522 | trap 'exit_status=$? |
1523 | # Save into config.log some information that might help in debugging. | |
1524 | { | |
1525 | echo | |
1526 | ||
1527 | cat <<\_ASBOX | |
1528 | ## ---------------- ## | |
1529 | ## Cache variables. ## | |
1530 | ## ---------------- ## | |
1531 | _ASBOX | |
1532 | echo | |
1533 | # The following way of writing the cache mishandles newlines in values, | |
631ef239 AC |
1534 | ( |
1535 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1536 | eval ac_val=\$$ac_var | |
1537 | case $ac_val in #( | |
1538 | *${as_nl}*) | |
1539 | case $ac_var in #( | |
1540 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1541 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1542 | esac | |
1543 | case $ac_var in #( | |
1544 | _ | IFS | as_nl) ;; #( | |
1545 | *) $as_unset $ac_var ;; | |
1546 | esac ;; | |
1547 | esac | |
1548 | done | |
212380e3 | 1549 | (set) 2>&1 | |
631ef239 AC |
1550 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1551 | *${as_nl}ac_space=\ *) | |
212380e3 | 1552 | sed -n \ |
631ef239 AC |
1553 | "s/'\''/'\''\\\\'\'''\''/g; |
1554 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1555 | ;; #( | |
212380e3 | 1556 | *) |
631ef239 | 1557 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 1558 | ;; |
631ef239 AC |
1559 | esac | |
1560 | sort | |
1561 | ) | |
212380e3 AC |
1562 | echo |
1563 | ||
1564 | cat <<\_ASBOX | |
1565 | ## ----------------- ## | |
1566 | ## Output variables. ## | |
1567 | ## ----------------- ## | |
1568 | _ASBOX | |
1569 | echo | |
1570 | for ac_var in $ac_subst_vars | |
1571 | do | |
631ef239 AC |
1572 | eval ac_val=\$$ac_var |
1573 | case $ac_val in | |
1574 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1575 | esac | |
1576 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 AC |
1577 | done | sort |
1578 | echo | |
1579 | ||
1580 | if test -n "$ac_subst_files"; then | |
1581 | cat <<\_ASBOX | |
631ef239 AC |
1582 | ## ------------------- ## |
1583 | ## File substitutions. ## | |
1584 | ## ------------------- ## | |
212380e3 AC |
1585 | _ASBOX |
1586 | echo | |
1587 | for ac_var in $ac_subst_files | |
1588 | do | |
631ef239 AC |
1589 | eval ac_val=\$$ac_var |
1590 | case $ac_val in | |
1591 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1592 | esac | |
1593 | echo "$ac_var='\''$ac_val'\''" | |
212380e3 AC |
1594 | done | sort |
1595 | echo | |
1596 | fi | |
1597 | ||
1598 | if test -s confdefs.h; then | |
1599 | cat <<\_ASBOX | |
1600 | ## ----------- ## | |
1601 | ## confdefs.h. ## | |
1602 | ## ----------- ## | |
1603 | _ASBOX | |
1604 | echo | |
631ef239 | 1605 | cat confdefs.h |
212380e3 AC |
1606 | echo |
1607 | fi | |
1608 | test "$ac_signal" != 0 && | |
1609 | echo "$as_me: caught signal $ac_signal" | |
1610 | echo "$as_me: exit $exit_status" | |
1611 | } >&5 | |
631ef239 AC |
1612 | rm -f core *.core core.conftest.* && |
1613 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
212380e3 | 1614 | exit $exit_status |
631ef239 | 1615 | ' 0 |
212380e3 AC |
1616 | for ac_signal in 1 2 13 15; do |
1617 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1618 | done | |
1619 | ac_signal=0 | |
1620 | ||
1621 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
631ef239 | 1622 | rm -f -r conftest* confdefs.h |
212380e3 AC |
1623 | |
1624 | # Predefined preprocessor variables. | |
1625 | ||
1626 | cat >>confdefs.h <<_ACEOF | |
1627 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1628 | _ACEOF | |
1629 | ||
1630 | ||
1631 | cat >>confdefs.h <<_ACEOF | |
1632 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1633 | _ACEOF | |
1634 | ||
1635 | ||
1636 | cat >>confdefs.h <<_ACEOF | |
1637 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1638 | _ACEOF | |
1639 | ||
1640 | ||
1641 | cat >>confdefs.h <<_ACEOF | |
1642 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1643 | _ACEOF | |
1644 | ||
1645 | ||
1646 | cat >>confdefs.h <<_ACEOF | |
1647 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1648 | _ACEOF | |
1649 | ||
1650 | ||
1651 | # Let the site file select an alternate cache file if it wants to. | |
1652 | # Prefer explicitly selected file to automatically selected ones. | |
631ef239 AC |
1653 | if test -n "$CONFIG_SITE"; then |
1654 | set x "$CONFIG_SITE" | |
1655 | elif test "x$prefix" != xNONE; then | |
1656 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1657 | else | |
1658 | set x "$ac_default_prefix/share/config.site" \ | |
1659 | "$ac_default_prefix/etc/config.site" | |
212380e3 | 1660 | fi |
631ef239 AC |
1661 | shift |
1662 | for ac_site_file | |
1663 | do | |
212380e3 AC |
1664 | if test -r "$ac_site_file"; then |
1665 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1666 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1667 | sed 's/^/| /' "$ac_site_file" >&5 | |
1668 | . "$ac_site_file" | |
1669 | fi | |
1670 | done | |
1671 | ||
1672 | if test -r "$cache_file"; then | |
1673 | # Some versions of bash will fail to source /dev/null (special | |
1674 | # files actually), so we avoid doing that. | |
1675 | if test -f "$cache_file"; then | |
1676 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1677 | echo "$as_me: loading cache $cache_file" >&6;} | |
1678 | case $cache_file in | |
631ef239 AC |
1679 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1680 | *) . "./$cache_file";; | |
212380e3 AC |
1681 | esac |
1682 | fi | |
1683 | else | |
1684 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1685 | echo "$as_me: creating cache $cache_file" >&6;} | |
1686 | >$cache_file | |
1687 | fi | |
1688 | ||
1689 | # Check that the precious variables saved in the cache have kept the same | |
1690 | # value. | |
1691 | ac_cache_corrupted=false | |
631ef239 | 1692 | for ac_var in $ac_precious_vars; do |
212380e3 AC |
1693 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1694 | eval ac_new_set=\$ac_env_${ac_var}_set | |
631ef239 AC |
1695 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1696 | eval ac_new_val=\$ac_env_${ac_var}_value | |
212380e3 AC |
1697 | case $ac_old_set,$ac_new_set in |
1698 | set,) | |
1699 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1700 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1701 | ac_cache_corrupted=: ;; | |
1702 | ,set) | |
1703 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1704 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1705 | ac_cache_corrupted=: ;; | |
1706 | ,);; | |
1707 | *) | |
1708 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1709 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1710 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1711 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1712 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1713 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1714 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1715 | ac_cache_corrupted=: | |
1716 | fi;; | |
1717 | esac | |
1718 | # Pass precious variables to config.status. | |
1719 | if test "$ac_new_set" = set; then | |
1720 | case $ac_new_val in | |
631ef239 | 1721 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
212380e3 AC |
1722 | *) ac_arg=$ac_var=$ac_new_val ;; |
1723 | esac | |
1724 | case " $ac_configure_args " in | |
1725 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1726 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1727 | esac | |
1728 | fi | |
1729 | done | |
1730 | if $ac_cache_corrupted; then | |
1731 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1732 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1733 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1734 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1735 | { (exit 1); exit 1; }; } | |
1736 | fi | |
1737 | ||
212380e3 AC |
1738 | |
1739 | ||
1740 | ||
1741 | ||
1742 | ||
1743 | ||
1744 | ||
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
631ef239 AC |
1762 | ac_ext=c |
1763 | ac_cpp='$CPP $CPPFLAGS' | |
1764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
212380e3 AC |
1767 | |
1768 | ||
1769 | ||
631ef239 | 1770 | ac_config_headers="$ac_config_headers include/setup.h" |
212380e3 AC |
1771 | |
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define _GNU_SOURCE 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | ||
1781 | ||
1782 | OLD_CFLAGS="$CFLAGS" | |
1783 | ac_ext=c | |
1784 | ac_cpp='$CPP $CPPFLAGS' | |
1785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1788 | if test -n "$ac_tool_prefix"; then | |
1789 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1790 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
631ef239 AC |
1791 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1792 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1793 | if test "${ac_cv_prog_CC+set}" = set; then |
1794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1795 | else | |
1796 | if test -n "$CC"; then | |
1797 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1798 | else | |
1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1800 | for as_dir in $PATH | |
1801 | do | |
1802 | IFS=$as_save_IFS | |
1803 | test -z "$as_dir" && as_dir=. | |
1804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1806 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1808 | break 2 | |
1809 | fi | |
1810 | done | |
1811 | done | |
631ef239 | 1812 | IFS=$as_save_IFS |
212380e3 AC |
1813 | |
1814 | fi | |
1815 | fi | |
1816 | CC=$ac_cv_prog_CC | |
1817 | if test -n "$CC"; then | |
631ef239 AC |
1818 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1819 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1820 | else |
631ef239 AC |
1821 | { echo "$as_me:$LINENO: result: no" >&5 |
1822 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1823 | fi |
1824 | ||
631ef239 | 1825 | |
212380e3 AC |
1826 | fi |
1827 | if test -z "$ac_cv_prog_CC"; then | |
1828 | ac_ct_CC=$CC | |
1829 | # Extract the first word of "gcc", so it can be a program name with args. | |
1830 | set dummy gcc; ac_word=$2 | |
631ef239 AC |
1831 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1833 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1835 | else | |
1836 | if test -n "$ac_ct_CC"; then | |
1837 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1838 | else | |
1839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1840 | for as_dir in $PATH | |
1841 | do | |
1842 | IFS=$as_save_IFS | |
1843 | test -z "$as_dir" && as_dir=. | |
1844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1846 | ac_cv_prog_ac_ct_CC="gcc" |
1847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1848 | break 2 | |
1849 | fi | |
1850 | done | |
1851 | done | |
631ef239 | 1852 | IFS=$as_save_IFS |
212380e3 AC |
1853 | |
1854 | fi | |
1855 | fi | |
1856 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1857 | if test -n "$ac_ct_CC"; then | |
631ef239 AC |
1858 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1859 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 1860 | else |
631ef239 AC |
1861 | { echo "$as_me:$LINENO: result: no" >&5 |
1862 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1863 | fi |
1864 | ||
631ef239 AC |
1865 | if test "x$ac_ct_CC" = x; then |
1866 | CC="" | |
1867 | else | |
1868 | case $cross_compiling:$ac_tool_warned in | |
1869 | yes:) | |
1870 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1871 | whose name does not start with the host triplet. If you think this | |
1872 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1873 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1874 | whose name does not start with the host triplet. If you think this | |
1875 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1876 | ac_tool_warned=yes ;; | |
1877 | esac | |
1878 | CC=$ac_ct_CC | |
1879 | fi | |
212380e3 AC |
1880 | else |
1881 | CC="$ac_cv_prog_CC" | |
1882 | fi | |
1883 | ||
1884 | if test -z "$CC"; then | |
631ef239 AC |
1885 | if test -n "$ac_tool_prefix"; then |
1886 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
212380e3 | 1887 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
631ef239 AC |
1888 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1889 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1890 | if test "${ac_cv_prog_CC+set}" = set; then |
1891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1892 | else | |
1893 | if test -n "$CC"; then | |
1894 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1895 | else | |
1896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1897 | for as_dir in $PATH | |
1898 | do | |
1899 | IFS=$as_save_IFS | |
1900 | test -z "$as_dir" && as_dir=. | |
1901 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1903 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1904 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1905 | break 2 | |
1906 | fi | |
1907 | done | |
1908 | done | |
631ef239 | 1909 | IFS=$as_save_IFS |
212380e3 AC |
1910 | |
1911 | fi | |
1912 | fi | |
1913 | CC=$ac_cv_prog_CC | |
1914 | if test -n "$CC"; then | |
631ef239 AC |
1915 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1916 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1917 | else |
631ef239 AC |
1918 | { echo "$as_me:$LINENO: result: no" >&5 |
1919 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1920 | fi |
1921 | ||
212380e3 | 1922 | |
631ef239 | 1923 | fi |
212380e3 AC |
1924 | fi |
1925 | if test -z "$CC"; then | |
1926 | # Extract the first word of "cc", so it can be a program name with args. | |
1927 | set dummy cc; ac_word=$2 | |
631ef239 AC |
1928 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1929 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1930 | if test "${ac_cv_prog_CC+set}" = set; then |
1931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1932 | else | |
1933 | if test -n "$CC"; then | |
1934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1935 | else | |
1936 | ac_prog_rejected=no | |
1937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1938 | for as_dir in $PATH | |
1939 | do | |
1940 | IFS=$as_save_IFS | |
1941 | test -z "$as_dir" && as_dir=. | |
1942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 1943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
1944 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1945 | ac_prog_rejected=yes | |
1946 | continue | |
1947 | fi | |
1948 | ac_cv_prog_CC="cc" | |
1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1950 | break 2 | |
1951 | fi | |
1952 | done | |
1953 | done | |
631ef239 | 1954 | IFS=$as_save_IFS |
212380e3 AC |
1955 | |
1956 | if test $ac_prog_rejected = yes; then | |
1957 | # We found a bogon in the path, so make sure we never use it. | |
1958 | set dummy $ac_cv_prog_CC | |
1959 | shift | |
1960 | if test $# != 0; then | |
1961 | # We chose a different compiler from the bogus one. | |
1962 | # However, it has the same basename, so the bogon will be chosen | |
1963 | # first if we set CC to just the basename; use the full file name. | |
1964 | shift | |
1965 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1966 | fi | |
1967 | fi | |
1968 | fi | |
1969 | fi | |
1970 | CC=$ac_cv_prog_CC | |
1971 | if test -n "$CC"; then | |
631ef239 AC |
1972 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1973 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 1974 | else |
631ef239 AC |
1975 | { echo "$as_me:$LINENO: result: no" >&5 |
1976 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
1977 | fi |
1978 | ||
631ef239 | 1979 | |
212380e3 AC |
1980 | fi |
1981 | if test -z "$CC"; then | |
1982 | if test -n "$ac_tool_prefix"; then | |
631ef239 | 1983 | for ac_prog in cl.exe |
212380e3 AC |
1984 | do |
1985 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1986 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
631ef239 AC |
1987 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1988 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
1989 | if test "${ac_cv_prog_CC+set}" = set; then |
1990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1991 | else | |
1992 | if test -n "$CC"; then | |
1993 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1994 | else | |
1995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1996 | for as_dir in $PATH | |
1997 | do | |
1998 | IFS=$as_save_IFS | |
1999 | test -z "$as_dir" && as_dir=. | |
2000 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2002 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2003 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2004 | break 2 | |
2005 | fi | |
2006 | done | |
2007 | done | |
631ef239 | 2008 | IFS=$as_save_IFS |
212380e3 AC |
2009 | |
2010 | fi | |
2011 | fi | |
2012 | CC=$ac_cv_prog_CC | |
2013 | if test -n "$CC"; then | |
631ef239 AC |
2014 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2015 | echo "${ECHO_T}$CC" >&6; } | |
212380e3 | 2016 | else |
631ef239 AC |
2017 | { echo "$as_me:$LINENO: result: no" >&5 |
2018 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2019 | fi |
2020 | ||
631ef239 | 2021 | |
212380e3 AC |
2022 | test -n "$CC" && break |
2023 | done | |
2024 | fi | |
2025 | if test -z "$CC"; then | |
2026 | ac_ct_CC=$CC | |
631ef239 | 2027 | for ac_prog in cl.exe |
212380e3 AC |
2028 | do |
2029 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2030 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
2031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2033 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2035 | else | |
2036 | if test -n "$ac_ct_CC"; then | |
2037 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2038 | else | |
2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2040 | for as_dir in $PATH | |
2041 | do | |
2042 | IFS=$as_save_IFS | |
2043 | test -z "$as_dir" && as_dir=. | |
2044 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2046 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2048 | break 2 | |
2049 | fi | |
2050 | done | |
2051 | done | |
631ef239 | 2052 | IFS=$as_save_IFS |
212380e3 AC |
2053 | |
2054 | fi | |
2055 | fi | |
2056 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2057 | if test -n "$ac_ct_CC"; then | |
631ef239 AC |
2058 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2059 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
212380e3 | 2060 | else |
631ef239 AC |
2061 | { echo "$as_me:$LINENO: result: no" >&5 |
2062 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2063 | fi |
2064 | ||
631ef239 | 2065 | |
212380e3 AC |
2066 | test -n "$ac_ct_CC" && break |
2067 | done | |
2068 | ||
631ef239 AC |
2069 | if test "x$ac_ct_CC" = x; then |
2070 | CC="" | |
2071 | else | |
2072 | case $cross_compiling:$ac_tool_warned in | |
2073 | yes:) | |
2074 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2075 | whose name does not start with the host triplet. If you think this | |
2076 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2077 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2078 | whose name does not start with the host triplet. If you think this | |
2079 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2080 | ac_tool_warned=yes ;; | |
2081 | esac | |
2082 | CC=$ac_ct_CC | |
2083 | fi | |
212380e3 AC |
2084 | fi |
2085 | ||
2086 | fi | |
2087 | ||
2088 | ||
2089 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2090 | See \`config.log' for more details." >&5 | |
2091 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2092 | See \`config.log' for more details." >&2;} | |
2093 | { (exit 1); exit 1; }; } | |
2094 | ||
2095 | # Provide some information about the compiler. | |
631ef239 | 2096 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
212380e3 | 2097 | ac_compiler=`set X $ac_compile; echo $2` |
631ef239 AC |
2098 | { (ac_try="$ac_compiler --version >&5" |
2099 | case "(($ac_try" in | |
2100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2101 | *) ac_try_echo=$ac_try;; | |
2102 | esac | |
2103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2104 | (eval "$ac_compiler --version >&5") 2>&5 | |
212380e3 AC |
2105 | ac_status=$? |
2106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2107 | (exit $ac_status); } | |
631ef239 AC |
2108 | { (ac_try="$ac_compiler -v >&5" |
2109 | case "(($ac_try" in | |
2110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2111 | *) ac_try_echo=$ac_try;; | |
2112 | esac | |
2113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2114 | (eval "$ac_compiler -v >&5") 2>&5 | |
212380e3 AC |
2115 | ac_status=$? |
2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2117 | (exit $ac_status); } | |
631ef239 AC |
2118 | { (ac_try="$ac_compiler -V >&5" |
2119 | case "(($ac_try" in | |
2120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2121 | *) ac_try_echo=$ac_try;; | |
2122 | esac | |
2123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2124 | (eval "$ac_compiler -V >&5") 2>&5 | |
212380e3 AC |
2125 | ac_status=$? |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2127 | (exit $ac_status); } | |
2128 | ||
2129 | cat >conftest.$ac_ext <<_ACEOF | |
2130 | /* confdefs.h. */ | |
2131 | _ACEOF | |
2132 | cat confdefs.h >>conftest.$ac_ext | |
2133 | cat >>conftest.$ac_ext <<_ACEOF | |
2134 | /* end confdefs.h. */ | |
2135 | ||
2136 | int | |
2137 | main () | |
2138 | { | |
2139 | ||
2140 | ; | |
2141 | return 0; | |
2142 | } | |
2143 | _ACEOF | |
2144 | ac_clean_files_save=$ac_clean_files | |
2145 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2146 | # Try to create an executable without -o first, disregard a.out. | |
2147 | # It will help us diagnose broken compilers, and finding out an intuition | |
2148 | # of exeext. | |
631ef239 AC |
2149 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2150 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
212380e3 | 2151 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
631ef239 AC |
2152 | # |
2153 | # List of possible output files, starting from the most likely. | |
2154 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2155 | # only as a last resort. b.out is created by i960 compilers. | |
2156 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2157 | # | |
2158 | # The IRIX 6 linker writes into existing files which may not be | |
2159 | # executable, retaining their permissions. Remove them first so a | |
2160 | # subsequent execution test works. | |
2161 | ac_rmfiles= | |
2162 | for ac_file in $ac_files | |
2163 | do | |
2164 | case $ac_file in | |
2165 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2166 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2167 | esac | |
2168 | done | |
2169 | rm -f $ac_rmfiles | |
2170 | ||
2171 | if { (ac_try="$ac_link_default" | |
2172 | case "(($ac_try" in | |
2173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2174 | *) ac_try_echo=$ac_try;; | |
2175 | esac | |
2176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2177 | (eval "$ac_link_default") 2>&5 | |
212380e3 AC |
2178 | ac_status=$? |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; then | |
631ef239 AC |
2181 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2182 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2183 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2184 | # so that the user can short-circuit this test for compilers unknown to | |
2185 | # Autoconf. | |
2186 | for ac_file in $ac_files '' | |
212380e3 AC |
2187 | do |
2188 | test -f "$ac_file" || continue | |
2189 | case $ac_file in | |
631ef239 | 2190 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
212380e3 AC |
2191 | ;; |
2192 | [ab].out ) | |
2193 | # We found the default executable, but exeext='' is most | |
2194 | # certainly right. | |
2195 | break;; | |
2196 | *.* ) | |
631ef239 AC |
2197 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2198 | then :; else | |
2199 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2200 | fi | |
2201 | # We set ac_cv_exeext here because the later test for it is not | |
2202 | # safe: cross compilers may not add the suffix if given an `-o' | |
2203 | # argument, so we may need to know it at that point already. | |
2204 | # Even if this section looks crufty: it has the advantage of | |
2205 | # actually working. | |
212380e3 AC |
2206 | break;; |
2207 | * ) | |
2208 | break;; | |
2209 | esac | |
2210 | done | |
631ef239 AC |
2211 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2212 | ||
212380e3 | 2213 | else |
631ef239 AC |
2214 | ac_file='' |
2215 | fi | |
2216 | ||
2217 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2218 | echo "${ECHO_T}$ac_file" >&6; } | |
2219 | if test -z "$ac_file"; then | |
212380e3 AC |
2220 | echo "$as_me: failed program was:" >&5 |
2221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2222 | ||
2223 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2224 | See \`config.log' for more details." >&5 | |
2225 | echo "$as_me: error: C compiler cannot create executables | |
2226 | See \`config.log' for more details." >&2;} | |
2227 | { (exit 77); exit 77; }; } | |
2228 | fi | |
2229 | ||
2230 | ac_exeext=$ac_cv_exeext | |
212380e3 | 2231 | |
631ef239 | 2232 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2233 | # the compiler is broken, or we cross compile. |
631ef239 AC |
2234 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2235 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
212380e3 AC |
2236 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2237 | # If not cross compiling, check that we can run a simple program. | |
2238 | if test "$cross_compiling" != yes; then | |
2239 | if { ac_try='./$ac_file' | |
631ef239 AC |
2240 | { (case "(($ac_try" in |
2241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2242 | *) ac_try_echo=$ac_try;; | |
2243 | esac | |
2244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2245 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
2246 | ac_status=$? |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; }; then | |
2249 | cross_compiling=no | |
2250 | else | |
2251 | if test "$cross_compiling" = maybe; then | |
2252 | cross_compiling=yes | |
2253 | else | |
2254 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2255 | If you meant to cross compile, use \`--host'. | |
2256 | See \`config.log' for more details." >&5 | |
2257 | echo "$as_me: error: cannot run C compiled programs. | |
2258 | If you meant to cross compile, use \`--host'. | |
2259 | See \`config.log' for more details." >&2;} | |
2260 | { (exit 1); exit 1; }; } | |
2261 | fi | |
2262 | fi | |
2263 | fi | |
631ef239 AC |
2264 | { echo "$as_me:$LINENO: result: yes" >&5 |
2265 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2266 | |
2267 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2268 | ac_clean_files=$ac_clean_files_save | |
631ef239 | 2269 | # Check that the compiler produces executables we can run. If not, either |
212380e3 | 2270 | # the compiler is broken, or we cross compile. |
631ef239 AC |
2271 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2272 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2273 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2274 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2275 | ||
2276 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2277 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2278 | if { (ac_try="$ac_link" | |
2279 | case "(($ac_try" in | |
2280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2281 | *) ac_try_echo=$ac_try;; | |
2282 | esac | |
2283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2284 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
2285 | ac_status=$? |
2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2287 | (exit $ac_status); }; then | |
2288 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2289 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2290 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2291 | # `rm'. | |
2292 | for ac_file in conftest.exe conftest conftest.*; do | |
2293 | test -f "$ac_file" || continue | |
2294 | case $ac_file in | |
631ef239 | 2295 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
212380e3 | 2296 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
212380e3 AC |
2297 | break;; |
2298 | * ) break;; | |
2299 | esac | |
2300 | done | |
2301 | else | |
2302 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2303 | See \`config.log' for more details." >&5 | |
2304 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2305 | See \`config.log' for more details." >&2;} | |
2306 | { (exit 1); exit 1; }; } | |
2307 | fi | |
2308 | ||
2309 | rm -f conftest$ac_cv_exeext | |
631ef239 AC |
2310 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2311 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
212380e3 AC |
2312 | |
2313 | rm -f conftest.$ac_ext | |
2314 | EXEEXT=$ac_cv_exeext | |
2315 | ac_exeext=$EXEEXT | |
631ef239 AC |
2316 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2317 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
212380e3 AC |
2318 | if test "${ac_cv_objext+set}" = set; then |
2319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2320 | else | |
2321 | cat >conftest.$ac_ext <<_ACEOF | |
2322 | /* confdefs.h. */ | |
2323 | _ACEOF | |
2324 | cat confdefs.h >>conftest.$ac_ext | |
2325 | cat >>conftest.$ac_ext <<_ACEOF | |
2326 | /* end confdefs.h. */ | |
2327 | ||
2328 | int | |
2329 | main () | |
2330 | { | |
2331 | ||
2332 | ; | |
2333 | return 0; | |
2334 | } | |
2335 | _ACEOF | |
2336 | rm -f conftest.o conftest.obj | |
631ef239 AC |
2337 | if { (ac_try="$ac_compile" |
2338 | case "(($ac_try" in | |
2339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2340 | *) ac_try_echo=$ac_try;; | |
2341 | esac | |
2342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2343 | (eval "$ac_compile") 2>&5 | |
212380e3 AC |
2344 | ac_status=$? |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2346 | (exit $ac_status); }; then | |
631ef239 AC |
2347 | for ac_file in conftest.o conftest.obj conftest.*; do |
2348 | test -f "$ac_file" || continue; | |
212380e3 | 2349 | case $ac_file in |
631ef239 | 2350 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
212380e3 AC |
2351 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2352 | break;; | |
2353 | esac | |
2354 | done | |
2355 | else | |
2356 | echo "$as_me: failed program was:" >&5 | |
2357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2358 | ||
2359 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2360 | See \`config.log' for more details." >&5 | |
2361 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2362 | See \`config.log' for more details." >&2;} | |
2363 | { (exit 1); exit 1; }; } | |
2364 | fi | |
2365 | ||
2366 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2367 | fi | |
631ef239 AC |
2368 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2369 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
212380e3 AC |
2370 | OBJEXT=$ac_cv_objext |
2371 | ac_objext=$OBJEXT | |
631ef239 AC |
2372 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2373 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
212380e3 AC |
2374 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2376 | else | |
2377 | cat >conftest.$ac_ext <<_ACEOF | |
2378 | /* confdefs.h. */ | |
2379 | _ACEOF | |
2380 | cat confdefs.h >>conftest.$ac_ext | |
2381 | cat >>conftest.$ac_ext <<_ACEOF | |
2382 | /* end confdefs.h. */ | |
2383 | ||
2384 | int | |
2385 | main () | |
2386 | { | |
2387 | #ifndef __GNUC__ | |
2388 | choke me | |
2389 | #endif | |
2390 | ||
2391 | ; | |
2392 | return 0; | |
2393 | } | |
2394 | _ACEOF | |
2395 | rm -f conftest.$ac_objext | |
631ef239 AC |
2396 | if { (ac_try="$ac_compile" |
2397 | case "(($ac_try" in | |
2398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2399 | *) ac_try_echo=$ac_try;; | |
2400 | esac | |
2401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2402 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2403 | ac_status=$? |
2404 | grep -v '^ *+' conftest.er1 >conftest.err | |
2405 | rm -f conftest.er1 | |
2406 | cat conftest.err >&5 | |
2407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2408 | (exit $ac_status); } && { |
2409 | test -z "$ac_c_werror_flag" || | |
2410 | test ! -s conftest.err | |
2411 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
2412 | ac_compiler_gnu=yes |
2413 | else | |
2414 | echo "$as_me: failed program was:" >&5 | |
2415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2416 | ||
631ef239 | 2417 | ac_compiler_gnu=no |
212380e3 | 2418 | fi |
631ef239 AC |
2419 | |
2420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
2421 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2422 | ||
2423 | fi | |
631ef239 AC |
2424 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2425 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
212380e3 AC |
2426 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2427 | ac_test_CFLAGS=${CFLAGS+set} | |
2428 | ac_save_CFLAGS=$CFLAGS | |
631ef239 AC |
2429 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2430 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
212380e3 AC |
2431 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2433 | else | |
631ef239 AC |
2434 | ac_save_c_werror_flag=$ac_c_werror_flag |
2435 | ac_c_werror_flag=yes | |
2436 | ac_cv_prog_cc_g=no | |
2437 | CFLAGS="-g" | |
2438 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
2439 | /* confdefs.h. */ |
2440 | _ACEOF | |
2441 | cat confdefs.h >>conftest.$ac_ext | |
2442 | cat >>conftest.$ac_ext <<_ACEOF | |
2443 | /* end confdefs.h. */ | |
2444 | ||
2445 | int | |
2446 | main () | |
2447 | { | |
2448 | ||
2449 | ; | |
2450 | return 0; | |
2451 | } | |
2452 | _ACEOF | |
2453 | rm -f conftest.$ac_objext | |
631ef239 AC |
2454 | if { (ac_try="$ac_compile" |
2455 | case "(($ac_try" in | |
2456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2457 | *) ac_try_echo=$ac_try;; | |
2458 | esac | |
2459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2460 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2461 | ac_status=$? |
2462 | grep -v '^ *+' conftest.er1 >conftest.err | |
2463 | rm -f conftest.er1 | |
2464 | cat conftest.err >&5 | |
2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2466 | (exit $ac_status); } && { |
2467 | test -z "$ac_c_werror_flag" || | |
2468 | test ! -s conftest.err | |
2469 | } && test -s conftest.$ac_objext; then | |
2470 | ac_cv_prog_cc_g=yes | |
2471 | else | |
2472 | echo "$as_me: failed program was:" >&5 | |
2473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2474 | ||
2475 | CFLAGS="" | |
2476 | cat >conftest.$ac_ext <<_ACEOF | |
2477 | /* confdefs.h. */ | |
2478 | _ACEOF | |
2479 | cat confdefs.h >>conftest.$ac_ext | |
2480 | cat >>conftest.$ac_ext <<_ACEOF | |
2481 | /* end confdefs.h. */ | |
2482 | ||
2483 | int | |
2484 | main () | |
2485 | { | |
2486 | ||
2487 | ; | |
2488 | return 0; | |
2489 | } | |
2490 | _ACEOF | |
2491 | rm -f conftest.$ac_objext | |
2492 | if { (ac_try="$ac_compile" | |
2493 | case "(($ac_try" in | |
2494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2495 | *) ac_try_echo=$ac_try;; | |
2496 | esac | |
2497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2498 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2499 | ac_status=$? |
631ef239 AC |
2500 | grep -v '^ *+' conftest.er1 >conftest.err |
2501 | rm -f conftest.er1 | |
2502 | cat conftest.err >&5 | |
212380e3 | 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 AC |
2504 | (exit $ac_status); } && { |
2505 | test -z "$ac_c_werror_flag" || | |
2506 | test ! -s conftest.err | |
2507 | } && test -s conftest.$ac_objext; then | |
2508 | : | |
2509 | else | |
2510 | echo "$as_me: failed program was:" >&5 | |
2511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2512 | ||
2513 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2514 | CFLAGS="-g" | |
2515 | cat >conftest.$ac_ext <<_ACEOF | |
2516 | /* confdefs.h. */ | |
2517 | _ACEOF | |
2518 | cat confdefs.h >>conftest.$ac_ext | |
2519 | cat >>conftest.$ac_ext <<_ACEOF | |
2520 | /* end confdefs.h. */ | |
2521 | ||
2522 | int | |
2523 | main () | |
2524 | { | |
2525 | ||
2526 | ; | |
2527 | return 0; | |
2528 | } | |
2529 | _ACEOF | |
2530 | rm -f conftest.$ac_objext | |
2531 | if { (ac_try="$ac_compile" | |
2532 | case "(($ac_try" in | |
2533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2534 | *) ac_try_echo=$ac_try;; | |
2535 | esac | |
2536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2537 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 | 2538 | ac_status=$? |
631ef239 AC |
2539 | grep -v '^ *+' conftest.er1 >conftest.err |
2540 | rm -f conftest.er1 | |
2541 | cat conftest.err >&5 | |
212380e3 | 2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
631ef239 AC |
2543 | (exit $ac_status); } && { |
2544 | test -z "$ac_c_werror_flag" || | |
2545 | test ! -s conftest.err | |
2546 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
2547 | ac_cv_prog_cc_g=yes |
2548 | else | |
2549 | echo "$as_me: failed program was:" >&5 | |
2550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2551 | ||
631ef239 AC |
2552 | |
2553 | fi | |
2554 | ||
2555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 2556 | fi |
631ef239 AC |
2557 | |
2558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2559 | fi | |
2560 | ||
2561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2562 | ac_c_werror_flag=$ac_save_c_werror_flag | |
212380e3 | 2563 | fi |
631ef239 AC |
2564 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2565 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
212380e3 AC |
2566 | if test "$ac_test_CFLAGS" = set; then |
2567 | CFLAGS=$ac_save_CFLAGS | |
2568 | elif test $ac_cv_prog_cc_g = yes; then | |
2569 | if test "$GCC" = yes; then | |
2570 | CFLAGS="-g -O2" | |
2571 | else | |
2572 | CFLAGS="-g" | |
2573 | fi | |
2574 | else | |
2575 | if test "$GCC" = yes; then | |
2576 | CFLAGS="-O2" | |
2577 | else | |
2578 | CFLAGS= | |
2579 | fi | |
2580 | fi | |
631ef239 AC |
2581 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2582 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2583 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
212380e3 AC |
2584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2585 | else | |
631ef239 | 2586 | ac_cv_prog_cc_c89=no |
212380e3 AC |
2587 | ac_save_CC=$CC |
2588 | cat >conftest.$ac_ext <<_ACEOF | |
2589 | /* confdefs.h. */ | |
2590 | _ACEOF | |
2591 | cat confdefs.h >>conftest.$ac_ext | |
2592 | cat >>conftest.$ac_ext <<_ACEOF | |
2593 | /* end confdefs.h. */ | |
2594 | #include <stdarg.h> | |
2595 | #include <stdio.h> | |
2596 | #include <sys/types.h> | |
2597 | #include <sys/stat.h> | |
2598 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2599 | struct buf { int x; }; | |
2600 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2601 | static char *e (p, i) | |
2602 | char **p; | |
2603 | int i; | |
2604 | { | |
2605 | return p[i]; | |
2606 | } | |
2607 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2608 | { | |
2609 | char *s; | |
2610 | va_list v; | |
2611 | va_start (v,p); | |
2612 | s = g (p, va_arg (v,int)); | |
2613 | va_end (v); | |
2614 | return s; | |
2615 | } | |
2616 | ||
2617 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2618 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2619 | These don't provoke an error unfortunately, instead are silently treated | |
631ef239 | 2620 | as 'x'. The following induces an error, until -std is added to get |
212380e3 AC |
2621 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2622 | array size at least. It's necessary to write '\x00'==0 to get something | |
631ef239 | 2623 | that's true only with -std. */ |
212380e3 AC |
2624 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2625 | ||
631ef239 AC |
2626 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2627 | inside strings and character constants. */ | |
2628 | #define FOO(x) 'x' | |
2629 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2630 | ||
212380e3 AC |
2631 | int test (int i, double x); |
2632 | struct s1 {int (*f) (int a);}; | |
2633 | struct s2 {int (*f) (double a);}; | |
2634 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2635 | int argc; | |
2636 | char **argv; | |
2637 | int | |
2638 | main () | |
2639 | { | |
2640 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2641 | ; | |
2642 | return 0; | |
2643 | } | |
2644 | _ACEOF | |
631ef239 AC |
2645 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2646 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
212380e3 AC |
2647 | do |
2648 | CC="$ac_save_CC $ac_arg" | |
2649 | rm -f conftest.$ac_objext | |
631ef239 AC |
2650 | if { (ac_try="$ac_compile" |
2651 | case "(($ac_try" in | |
2652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2653 | *) ac_try_echo=$ac_try;; | |
2654 | esac | |
2655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2656 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
2657 | ac_status=$? |
2658 | grep -v '^ *+' conftest.er1 >conftest.err | |
2659 | rm -f conftest.er1 | |
2660 | cat conftest.err >&5 | |
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
2662 | (exit $ac_status); } && { |
2663 | test -z "$ac_c_werror_flag" || | |
2664 | test ! -s conftest.err | |
2665 | } && test -s conftest.$ac_objext; then | |
2666 | ac_cv_prog_cc_c89=$ac_arg | |
212380e3 AC |
2667 | else |
2668 | echo "$as_me: failed program was:" >&5 | |
2669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2670 | ||
631ef239 | 2671 | |
212380e3 | 2672 | fi |
631ef239 AC |
2673 | |
2674 | rm -f core conftest.err conftest.$ac_objext | |
2675 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
212380e3 | 2676 | done |
631ef239 | 2677 | rm -f conftest.$ac_ext |
212380e3 AC |
2678 | CC=$ac_save_CC |
2679 | ||
2680 | fi | |
631ef239 AC |
2681 | # AC_CACHE_VAL |
2682 | case "x$ac_cv_prog_cc_c89" in | |
2683 | x) | |
2684 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2685 | echo "${ECHO_T}none needed" >&6; } ;; | |
2686 | xno) | |
2687 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2688 | echo "${ECHO_T}unsupported" >&6; } ;; | |
212380e3 | 2689 | *) |
631ef239 AC |
2690 | CC="$CC $ac_cv_prog_cc_c89" |
2691 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2692 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
212380e3 AC |
2693 | esac |
2694 | ||
212380e3 | 2695 | |
212380e3 AC |
2696 | ac_ext=c |
2697 | ac_cpp='$CPP $CPPFLAGS' | |
2698 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2699 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2700 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2701 | ||
2702 | ac_ext=c | |
2703 | ac_cpp='$CPP $CPPFLAGS' | |
2704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2707 | ||
2708 | ||
2709 | CFLAGS="$OLD_CFLAGS" | |
2710 | ||
b676ea3b AC |
2711 | ac_aux_dir= |
2712 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2713 | if test -f "$ac_dir/install-sh"; then | |
2714 | ac_aux_dir=$ac_dir | |
2715 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2716 | break | |
2717 | elif test -f "$ac_dir/install.sh"; then | |
2718 | ac_aux_dir=$ac_dir | |
2719 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2720 | break | |
2721 | elif test -f "$ac_dir/shtool"; then | |
2722 | ac_aux_dir=$ac_dir | |
2723 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2724 | break | |
2725 | fi | |
2726 | done | |
2727 | if test -z "$ac_aux_dir"; then | |
2728 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2729 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2730 | { (exit 1); exit 1; }; } | |
2731 | fi | |
2732 | ||
2733 | # These three variables are undocumented and unsupported, | |
2734 | # and are intended to be withdrawn in a future Autoconf release. | |
2735 | # They can cause serious problems if a builder's source tree is in a directory | |
2736 | # whose full name contains unusual characters. | |
2737 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2738 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2739 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2740 | ||
2741 | ||
2742 | subdirs="$subdirs libratbox" | |
2743 | ||
2744 | ||
212380e3 AC |
2745 | |
2746 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2747 | ||
2748 | SGS=no | |
631ef239 AC |
2749 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2750 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
212380e3 AC |
2751 | case `$CC -version 2>&1` in |
2752 | *TenDRA*) | |
631ef239 AC |
2753 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2754 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
212380e3 AC |
2755 | IRC_CFLAGS="" |
2756 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2757 | SGS=yes | |
2758 | TenDRA=yes | |
2759 | ;; | |
2760 | *MIPSpro*) | |
631ef239 AC |
2761 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2762 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
212380e3 AC |
2763 | MIPSpro=yes |
2764 | SGS=yes | |
2765 | ;; | |
2766 | *) | |
631ef239 AC |
2767 | { echo "$as_me:$LINENO: result: no" >&5 |
2768 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2769 | TenDRA=no |
2770 | MIPSpro=no | |
2771 | ;; | |
2772 | esac | |
2773 | ||
631ef239 AC |
2774 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2775 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
212380e3 AC |
2776 | case `$CC -V 2>&1` in |
2777 | *Sun*WorkShop* | *Forte*Developer*) | |
631ef239 AC |
2778 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2779 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
212380e3 AC |
2780 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2781 | SunWorkShop=yes | |
2782 | SGS=yes | |
2783 | ;; | |
2784 | *Tru64*) | |
631ef239 AC |
2785 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2786 | echo "${ECHO_T}Tru64 cc" >&6; } | |
212380e3 AC |
2787 | IRC_CFLAGS="-O2" |
2788 | CPPFLAGS="-I/usr/local/include" | |
2789 | Tru=yes | |
2790 | ;; | |
2791 | *HP*ANSI*) | |
631ef239 AC |
2792 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2793 | echo "${ECHO_T}HPUX cc" >&6; } | |
212380e3 AC |
2794 | HPUX=yes |
2795 | IRC_CFLAGS="+e" | |
2796 | ;; | |
2797 | *) | |
631ef239 AC |
2798 | { echo "$as_me:$LINENO: result: no" >&5 |
2799 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2800 | ;; |
2801 | esac | |
2802 | ||
2803 | fi | |
2804 | ||
bbe58888 VY |
2805 | { echo "$as_me:$LINENO: checking uname -s for Solaris, AIX or HPUX" >&5 |
2806 | echo $ECHO_N "checking uname -s for Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
212380e3 AC |
2807 | OSNAME=`uname -s` |
2808 | case "$OSNAME" in | |
2809 | HP-UX*) | |
2810 | ||
2811 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
631ef239 AC |
2812 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2813 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
212380e3 AC |
2814 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2815 | HPUX=yes | |
2816 | else | |
631ef239 AC |
2817 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2818 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
212380e3 AC |
2819 | fi |
2820 | ;; | |
212380e3 | 2821 | SunOS*) |
631ef239 AC |
2822 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2823 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
212380e3 AC |
2824 | |
2825 | cat >>confdefs.h <<\_ACEOF | |
2826 | #define __EXTENSIONS__ 1 | |
2827 | _ACEOF | |
2828 | ||
2829 | SUN=yes | |
2830 | ;; | |
2831 | AIX*) | |
631ef239 AC |
2832 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 |
2833 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
212380e3 AC |
2834 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" |
2835 | ;; | |
2836 | *) | |
631ef239 AC |
2837 | { echo "$as_me:$LINENO: result: no" >&5 |
2838 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2839 | ;; |
2840 | esac | |
2841 | ||
2842 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2843 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2844 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
212380e3 AC |
2845 | |
2846 | case `$CC -v 2>&1 | tail -n 1` in | |
2847 | *Apple*) | |
631ef239 AC |
2848 | { echo "$as_me:$LINENO: result: yes" >&5 |
2849 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2850 | AppleGCC=yes |
2851 | ;; | |
2852 | *) | |
631ef239 AC |
2853 | { echo "$as_me:$LINENO: result: no" >&5 |
2854 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2855 | AppleGCC=no |
2856 | ;; | |
2857 | esac | |
2858 | ||
d2c5159a | 2859 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" |
212380e3 AC |
2860 | fi |
2861 | ||
2862 | if test "$ac_cv_prog_cc_g" = yes; then | |
2863 | if test "$Tru" = yes; then | |
2864 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2865 | else | |
2866 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2867 | fi | |
2868 | fi | |
2869 | ||
631ef239 AC |
2870 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2871 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
212380e3 | 2872 | if test "$SGS" = "yes"; then |
631ef239 AC |
2873 | { echo "$as_me:$LINENO: result: yes" >&5 |
2874 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2875 | else |
631ef239 AC |
2876 | { echo "$as_me:$LINENO: result: no" >&5 |
2877 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2878 | fi |
2879 | ||
2880 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2881 | set dummy mkdep; ac_word=$2 | |
631ef239 AC |
2882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2884 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2886 | else | |
2887 | case $MKDEP in | |
2888 | [\\/]* | ?:[\\/]*) | |
2889 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2890 | ;; | |
2891 | *) | |
2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2893 | for as_dir in $PATH | |
2894 | do | |
2895 | IFS=$as_save_IFS | |
2896 | test -z "$as_dir" && as_dir=. | |
2897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2899 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2901 | break 2 | |
2902 | fi | |
2903 | done | |
2904 | done | |
631ef239 | 2905 | IFS=$as_save_IFS |
212380e3 AC |
2906 | |
2907 | ;; | |
2908 | esac | |
2909 | fi | |
2910 | MKDEP=$ac_cv_path_MKDEP | |
212380e3 | 2911 | if test -n "$MKDEP"; then |
631ef239 AC |
2912 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2913 | echo "${ECHO_T}$MKDEP" >&6; } | |
212380e3 | 2914 | else |
631ef239 AC |
2915 | { echo "$as_me:$LINENO: result: no" >&5 |
2916 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2917 | fi |
2918 | ||
631ef239 | 2919 | |
212380e3 AC |
2920 | # Extract the first word of "makedepend", so it can be a program name with args. |
2921 | set dummy makedepend; ac_word=$2 | |
631ef239 AC |
2922 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2924 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2926 | else | |
2927 | case $MAKEDEPEND in | |
2928 | [\\/]* | ?:[\\/]*) | |
2929 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2930 | ;; | |
2931 | *) | |
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2933 | for as_dir in $PATH | |
2934 | do | |
2935 | IFS=$as_save_IFS | |
2936 | test -z "$as_dir" && as_dir=. | |
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2939 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2941 | break 2 | |
2942 | fi | |
2943 | done | |
2944 | done | |
631ef239 | 2945 | IFS=$as_save_IFS |
212380e3 AC |
2946 | |
2947 | ;; | |
2948 | esac | |
2949 | fi | |
2950 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
212380e3 | 2951 | if test -n "$MAKEDEPEND"; then |
631ef239 AC |
2952 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2953 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
212380e3 | 2954 | else |
631ef239 AC |
2955 | { echo "$as_me:$LINENO: result: no" >&5 |
2956 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2957 | fi |
2958 | ||
2959 | ||
631ef239 AC |
2960 | |
2961 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2962 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
212380e3 AC |
2963 | |
2964 | STDOUT="> .depend" | |
2965 | ||
2966 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2967 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2968 | echo "${ECHO_T}gcc -MM" >&6; } | |
212380e3 AC |
2969 | MKDEP="$CC -MM" |
2970 | elif test ! -z "$MKDEP"; then | |
631ef239 AC |
2971 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2972 | echo "${ECHO_T}mkdep" >&6; } | |
212380e3 AC |
2973 | |
2974 | if test -z "$Tru"; then | |
2975 | STDOUT="" | |
2976 | else | |
2977 | STDOUT=" 2> /dev/null" | |
2978 | fi | |
2979 | elif test "$SunWorkShop" = yes; then | |
631ef239 AC |
2980 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2981 | echo "${ECHO_T}$CC -xM" >&6; } | |
212380e3 AC |
2982 | MKDEP="$CC -xM" |
2983 | STDOUT="> .depend 2> /dev/null" | |
2984 | elif test ! -z "$MAKEDEPEND"; then | |
631ef239 AC |
2985 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
2986 | echo "${ECHO_T}makedepend" >&6; } | |
212380e3 AC |
2987 | MKDEP="$MAKEDEPEND -f-" |
2988 | else | |
631ef239 AC |
2989 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2990 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
212380e3 AC |
2991 | MKDEP=":" |
2992 | fi | |
2993 | ||
2994 | ||
2995 | ||
2996 | ||
631ef239 AC |
2997 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2998 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
212380e3 AC |
2999 | if test -c /dev/null ; then |
3000 | ||
3001 | cat >>confdefs.h <<\_ACEOF | |
3002 | #define PATH_DEVNULL "/dev/null" | |
3003 | _ACEOF | |
3004 | ||
631ef239 AC |
3005 | { echo "$as_me:$LINENO: result: yes" >&5 |
3006 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3007 | else |
3008 | ||
3009 | cat >>confdefs.h <<\_ACEOF | |
3010 | #define PATH_DEVNULL "devnull.log" | |
3011 | _ACEOF | |
3012 | ||
631ef239 AC |
3013 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
3014 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
212380e3 AC |
3015 | fi |
3016 | ||
3017 | if test ! -z "$CFLAGS"; then | |
3018 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
3019 | fi | |
3020 | ||
3021 | ||
631ef239 AC |
3022 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3023 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
212380e3 AC |
3024 | if test "${ac_cv_search_strerror+set}" = set; then |
3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3026 | else | |
3027 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
3028 | cat >conftest.$ac_ext <<_ACEOF |
3029 | /* confdefs.h. */ | |
3030 | _ACEOF | |
3031 | cat confdefs.h >>conftest.$ac_ext | |
3032 | cat >>conftest.$ac_ext <<_ACEOF | |
3033 | /* end confdefs.h. */ | |
3034 | ||
631ef239 AC |
3035 | /* Override any GCC internal prototype to avoid an error. |
3036 | Use char because int might match the return type of a GCC | |
3037 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
3038 | #ifdef __cplusplus |
3039 | extern "C" | |
3040 | #endif | |
212380e3 AC |
3041 | char strerror (); |
3042 | int | |
3043 | main () | |
3044 | { | |
631ef239 | 3045 | return strerror (); |
212380e3 AC |
3046 | ; |
3047 | return 0; | |
3048 | } | |
3049 | _ACEOF | |
631ef239 AC |
3050 | for ac_lib in '' cposix; do |
3051 | if test -z "$ac_lib"; then | |
3052 | ac_res="none required" | |
3053 | else | |
3054 | ac_res=-l$ac_lib | |
3055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3056 | fi | |
3057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3058 | if { (ac_try="$ac_link" | |
3059 | case "(($ac_try" in | |
3060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3061 | *) ac_try_echo=$ac_try;; | |
3062 | esac | |
3063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3064 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
3065 | ac_status=$? |
3066 | grep -v '^ *+' conftest.er1 >conftest.err | |
3067 | rm -f conftest.er1 | |
3068 | cat conftest.err >&5 | |
3069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3070 | (exit $ac_status); } && { |
3071 | test -z "$ac_c_werror_flag" || | |
3072 | test ! -s conftest.err | |
3073 | } && test -s conftest$ac_exeext && | |
3074 | $as_test_x conftest$ac_exeext; then | |
3075 | ac_cv_search_strerror=$ac_res | |
212380e3 AC |
3076 | else |
3077 | echo "$as_me: failed program was:" >&5 | |
3078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3079 | ||
212380e3 | 3080 | |
631ef239 | 3081 | fi |
212380e3 | 3082 | |
631ef239 AC |
3083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3084 | conftest$ac_exeext | |
3085 | if test "${ac_cv_search_strerror+set}" = set; then | |
3086 | break | |
212380e3 | 3087 | fi |
631ef239 AC |
3088 | done |
3089 | if test "${ac_cv_search_strerror+set}" = set; then | |
3090 | : | |
3091 | else | |
3092 | ac_cv_search_strerror=no | |
212380e3 | 3093 | fi |
631ef239 | 3094 | rm conftest.$ac_ext |
212380e3 AC |
3095 | LIBS=$ac_func_search_save_LIBS |
3096 | fi | |
631ef239 AC |
3097 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3098 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3099 | ac_res=$ac_cv_search_strerror | |
3100 | if test "$ac_res" != no; then | |
3101 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
3102 | |
3103 | fi | |
3104 | ||
631ef239 AC |
3105 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3106 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
212380e3 AC |
3107 | if test "${ac_cv_c_inline+set}" = set; then |
3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3109 | else | |
3110 | ac_cv_c_inline=no | |
3111 | for ac_kw in inline __inline__ __inline; do | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | /* confdefs.h. */ | |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | #ifndef __cplusplus | |
3119 | typedef int foo_t; | |
3120 | static $ac_kw foo_t static_foo () {return 0; } | |
3121 | $ac_kw foo_t foo () {return 0; } | |
3122 | #endif | |
3123 | ||
3124 | _ACEOF | |
3125 | rm -f conftest.$ac_objext | |
631ef239 AC |
3126 | if { (ac_try="$ac_compile" |
3127 | case "(($ac_try" in | |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3129 | *) ac_try_echo=$ac_try;; | |
3130 | esac | |
3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3132 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
3133 | ac_status=$? |
3134 | grep -v '^ *+' conftest.er1 >conftest.err | |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3138 | (exit $ac_status); } && { |
3139 | test -z "$ac_c_werror_flag" || | |
3140 | test ! -s conftest.err | |
3141 | } && test -s conftest.$ac_objext; then | |
3142 | ac_cv_c_inline=$ac_kw | |
212380e3 AC |
3143 | else |
3144 | echo "$as_me: failed program was:" >&5 | |
3145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3146 | ||
631ef239 | 3147 | |
212380e3 | 3148 | fi |
631ef239 AC |
3149 | |
3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3151 | test "$ac_cv_c_inline" != no && break | |
212380e3 AC |
3152 | done |
3153 | ||
3154 | fi | |
631ef239 AC |
3155 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3156 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
212380e3 AC |
3157 | |
3158 | ||
3159 | case $ac_cv_c_inline in | |
3160 | inline | yes) ;; | |
3161 | *) | |
3162 | case $ac_cv_c_inline in | |
3163 | no) ac_val=;; | |
3164 | *) ac_val=$ac_cv_c_inline;; | |
3165 | esac | |
3166 | cat >>confdefs.h <<_ACEOF | |
3167 | #ifndef __cplusplus | |
3168 | #define inline $ac_val | |
3169 | #endif | |
3170 | _ACEOF | |
3171 | ;; | |
3172 | esac | |
3173 | ||
3174 | ac_ext=c | |
3175 | ac_cpp='$CPP $CPPFLAGS' | |
3176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 AC |
3179 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3180 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
212380e3 AC |
3181 | # On Suns, sometimes $CPP names a directory. |
3182 | if test -n "$CPP" && test -d "$CPP"; then | |
3183 | CPP= | |
3184 | fi | |
3185 | if test -z "$CPP"; then | |
3186 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3188 | else | |
3189 | # Double quotes because CPP needs to be expanded | |
3190 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3191 | do | |
3192 | ac_preproc_ok=false | |
3193 | for ac_c_preproc_warn_flag in '' yes | |
3194 | do | |
3195 | # Use a header file that comes with gcc, so configuring glibc | |
3196 | # with a fresh cross-compiler works. | |
3197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3198 | # <limits.h> exists even on freestanding compilers. | |
3199 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3200 | # not just through cpp. "Syntax error" is here to catch this case. | |
3201 | cat >conftest.$ac_ext <<_ACEOF | |
3202 | /* confdefs.h. */ | |
3203 | _ACEOF | |
3204 | cat confdefs.h >>conftest.$ac_ext | |
3205 | cat >>conftest.$ac_ext <<_ACEOF | |
3206 | /* end confdefs.h. */ | |
3207 | #ifdef __STDC__ | |
3208 | # include <limits.h> | |
3209 | #else | |
3210 | # include <assert.h> | |
3211 | #endif | |
3212 | Syntax error | |
3213 | _ACEOF | |
631ef239 AC |
3214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3215 | case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3221 | ac_status=$? |
3222 | grep -v '^ *+' conftest.er1 >conftest.err | |
3223 | rm -f conftest.er1 | |
3224 | cat conftest.err >&5 | |
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3226 | (exit $ac_status); } >/dev/null && { |
3227 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3228 | test ! -s conftest.err | |
3229 | }; then | |
212380e3 AC |
3230 | : |
3231 | else | |
3232 | echo "$as_me: failed program was:" >&5 | |
3233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3234 | ||
3235 | # Broken: fails on valid input. | |
3236 | continue | |
3237 | fi | |
631ef239 | 3238 | |
212380e3 AC |
3239 | rm -f conftest.err conftest.$ac_ext |
3240 | ||
631ef239 | 3241 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3242 | # can be detected and how. |
3243 | cat >conftest.$ac_ext <<_ACEOF | |
3244 | /* confdefs.h. */ | |
3245 | _ACEOF | |
3246 | cat confdefs.h >>conftest.$ac_ext | |
3247 | cat >>conftest.$ac_ext <<_ACEOF | |
3248 | /* end confdefs.h. */ | |
3249 | #include <ac_nonexistent.h> | |
3250 | _ACEOF | |
631ef239 AC |
3251 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3252 | case "(($ac_try" in | |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3254 | *) ac_try_echo=$ac_try;; | |
3255 | esac | |
3256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3258 | ac_status=$? |
3259 | grep -v '^ *+' conftest.er1 >conftest.err | |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3263 | (exit $ac_status); } >/dev/null && { |
3264 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3265 | test ! -s conftest.err | |
3266 | }; then | |
212380e3 AC |
3267 | # Broken: success on invalid input. |
3268 | continue | |
3269 | else | |
3270 | echo "$as_me: failed program was:" >&5 | |
3271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3272 | ||
3273 | # Passes both tests. | |
3274 | ac_preproc_ok=: | |
3275 | break | |
3276 | fi | |
631ef239 | 3277 | |
212380e3 AC |
3278 | rm -f conftest.err conftest.$ac_ext |
3279 | ||
3280 | done | |
3281 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3282 | rm -f conftest.err conftest.$ac_ext | |
3283 | if $ac_preproc_ok; then | |
3284 | break | |
3285 | fi | |
3286 | ||
3287 | done | |
3288 | ac_cv_prog_CPP=$CPP | |
3289 | ||
3290 | fi | |
3291 | CPP=$ac_cv_prog_CPP | |
3292 | else | |
3293 | ac_cv_prog_CPP=$CPP | |
3294 | fi | |
631ef239 AC |
3295 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3296 | echo "${ECHO_T}$CPP" >&6; } | |
212380e3 AC |
3297 | ac_preproc_ok=false |
3298 | for ac_c_preproc_warn_flag in '' yes | |
3299 | do | |
3300 | # Use a header file that comes with gcc, so configuring glibc | |
3301 | # with a fresh cross-compiler works. | |
3302 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3303 | # <limits.h> exists even on freestanding compilers. | |
3304 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3305 | # not just through cpp. "Syntax error" is here to catch this case. | |
3306 | cat >conftest.$ac_ext <<_ACEOF | |
3307 | /* confdefs.h. */ | |
3308 | _ACEOF | |
3309 | cat confdefs.h >>conftest.$ac_ext | |
3310 | cat >>conftest.$ac_ext <<_ACEOF | |
3311 | /* end confdefs.h. */ | |
3312 | #ifdef __STDC__ | |
3313 | # include <limits.h> | |
3314 | #else | |
3315 | # include <assert.h> | |
3316 | #endif | |
3317 | Syntax error | |
3318 | _ACEOF | |
631ef239 AC |
3319 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3320 | case "(($ac_try" in | |
3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3322 | *) ac_try_echo=$ac_try;; | |
3323 | esac | |
3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3326 | ac_status=$? |
3327 | grep -v '^ *+' conftest.er1 >conftest.err | |
3328 | rm -f conftest.er1 | |
3329 | cat conftest.err >&5 | |
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3331 | (exit $ac_status); } >/dev/null && { |
3332 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3333 | test ! -s conftest.err | |
3334 | }; then | |
212380e3 AC |
3335 | : |
3336 | else | |
3337 | echo "$as_me: failed program was:" >&5 | |
3338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3339 | ||
3340 | # Broken: fails on valid input. | |
3341 | continue | |
3342 | fi | |
631ef239 | 3343 | |
212380e3 AC |
3344 | rm -f conftest.err conftest.$ac_ext |
3345 | ||
631ef239 | 3346 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3347 | # can be detected and how. |
3348 | cat >conftest.$ac_ext <<_ACEOF | |
3349 | /* confdefs.h. */ | |
3350 | _ACEOF | |
3351 | cat confdefs.h >>conftest.$ac_ext | |
3352 | cat >>conftest.$ac_ext <<_ACEOF | |
3353 | /* end confdefs.h. */ | |
3354 | #include <ac_nonexistent.h> | |
3355 | _ACEOF | |
631ef239 AC |
3356 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3357 | case "(($ac_try" in | |
3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3359 | *) ac_try_echo=$ac_try;; | |
3360 | esac | |
3361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3362 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3363 | ac_status=$? |
3364 | grep -v '^ *+' conftest.er1 >conftest.err | |
3365 | rm -f conftest.er1 | |
3366 | cat conftest.err >&5 | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3368 | (exit $ac_status); } >/dev/null && { |
3369 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3370 | test ! -s conftest.err | |
3371 | }; then | |
212380e3 AC |
3372 | # Broken: success on invalid input. |
3373 | continue | |
3374 | else | |
3375 | echo "$as_me: failed program was:" >&5 | |
3376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3377 | ||
3378 | # Passes both tests. | |
3379 | ac_preproc_ok=: | |
3380 | break | |
3381 | fi | |
631ef239 | 3382 | |
212380e3 AC |
3383 | rm -f conftest.err conftest.$ac_ext |
3384 | ||
3385 | done | |
3386 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3387 | rm -f conftest.err conftest.$ac_ext | |
3388 | if $ac_preproc_ok; then | |
3389 | : | |
3390 | else | |
3391 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3392 | See \`config.log' for more details." >&5 | |
3393 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3394 | See \`config.log' for more details." >&2;} | |
3395 | { (exit 1); exit 1; }; } | |
3396 | fi | |
3397 | ||
3398 | ac_ext=c | |
3399 | ac_cpp='$CPP $CPPFLAGS' | |
3400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3403 | ||
3404 | ||
631ef239 AC |
3405 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3406 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3407 | if test "${ac_cv_path_GREP+set}" = set; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3409 | else | |
3410 | # Extract the first word of "grep ggrep" to use in msg output | |
3411 | if test -z "$GREP"; then | |
3412 | set dummy grep ggrep; ac_prog_name=$2 | |
3413 | if test "${ac_cv_path_GREP+set}" = set; then | |
3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3415 | else | |
3416 | ac_path_GREP_found=false | |
3417 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_prog in grep ggrep; do | |
3424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3425 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3426 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3427 | # Check for GNU ac_path_GREP and select it if it is found. | |
3428 | # Check for GNU $ac_path_GREP | |
3429 | case `"$ac_path_GREP" --version 2>&1` in | |
3430 | *GNU*) | |
3431 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3432 | *) | |
3433 | ac_count=0 | |
3434 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3435 | while : | |
3436 | do | |
3437 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3438 | mv "conftest.tmp" "conftest.in" | |
3439 | cp "conftest.in" "conftest.nl" | |
3440 | echo 'GREP' >> "conftest.nl" | |
3441 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3442 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3443 | ac_count=`expr $ac_count + 1` | |
3444 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3445 | # Best one so far, save it but keep looking for a better one | |
3446 | ac_cv_path_GREP="$ac_path_GREP" | |
3447 | ac_path_GREP_max=$ac_count | |
3448 | fi | |
3449 | # 10*(2^10) chars as input seems more than enough | |
3450 | test $ac_count -gt 10 && break | |
3451 | done | |
3452 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3453 | esac | |
3454 | ||
3455 | ||
3456 | $ac_path_GREP_found && break 3 | |
3457 | done | |
3458 | done | |
3459 | ||
3460 | done | |
3461 | IFS=$as_save_IFS | |
3462 | ||
3463 | ||
3464 | fi | |
3465 | ||
3466 | GREP="$ac_cv_path_GREP" | |
3467 | if test -z "$GREP"; then | |
3468 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3469 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3470 | { (exit 1); exit 1; }; } | |
3471 | fi | |
3472 | ||
3473 | else | |
3474 | ac_cv_path_GREP=$GREP | |
3475 | fi | |
3476 | ||
3477 | ||
3478 | fi | |
3479 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3480 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3481 | GREP="$ac_cv_path_GREP" | |
3482 | ||
3483 | ||
3484 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3485 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3486 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3488 | else | |
3489 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3490 | then ac_cv_path_EGREP="$GREP -E" | |
3491 | else | |
3492 | # Extract the first word of "egrep" to use in msg output | |
3493 | if test -z "$EGREP"; then | |
3494 | set dummy egrep; ac_prog_name=$2 | |
3495 | if test "${ac_cv_path_EGREP+set}" = set; then | |
212380e3 AC |
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3497 | else | |
631ef239 AC |
3498 | ac_path_EGREP_found=false |
3499 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3501 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3502 | do | |
3503 | IFS=$as_save_IFS | |
3504 | test -z "$as_dir" && as_dir=. | |
3505 | for ac_prog in egrep; do | |
3506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3507 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3508 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3509 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3510 | # Check for GNU $ac_path_EGREP | |
3511 | case `"$ac_path_EGREP" --version 2>&1` in | |
3512 | *GNU*) | |
3513 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3514 | *) | |
3515 | ac_count=0 | |
3516 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3517 | while : | |
3518 | do | |
3519 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3520 | mv "conftest.tmp" "conftest.in" | |
3521 | cp "conftest.in" "conftest.nl" | |
3522 | echo 'EGREP' >> "conftest.nl" | |
3523 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3524 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3525 | ac_count=`expr $ac_count + 1` | |
3526 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3527 | # Best one so far, save it but keep looking for a better one | |
3528 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3529 | ac_path_EGREP_max=$ac_count | |
212380e3 | 3530 | fi |
631ef239 AC |
3531 | # 10*(2^10) chars as input seems more than enough |
3532 | test $ac_count -gt 10 && break | |
3533 | done | |
3534 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3535 | esac | |
3536 | ||
3537 | ||
3538 | $ac_path_EGREP_found && break 3 | |
3539 | done | |
3540 | done | |
3541 | ||
3542 | done | |
3543 | IFS=$as_save_IFS | |
3544 | ||
3545 | ||
3546 | fi | |
3547 | ||
3548 | EGREP="$ac_cv_path_EGREP" | |
3549 | if test -z "$EGREP"; then | |
3550 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3551 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3552 | { (exit 1); exit 1; }; } | |
3553 | fi | |
3554 | ||
3555 | else | |
3556 | ac_cv_path_EGREP=$EGREP | |
212380e3 | 3557 | fi |
631ef239 AC |
3558 | |
3559 | ||
3560 | fi | |
3561 | fi | |
3562 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3563 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3564 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3565 | |
3566 | ||
3567 | if test $ac_cv_c_compiler_gnu = yes; then | |
631ef239 AC |
3568 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3569 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
212380e3 AC |
3570 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3572 | else | |
3573 | ac_pattern="Autoconf.*'x'" | |
3574 | cat >conftest.$ac_ext <<_ACEOF | |
3575 | /* confdefs.h. */ | |
3576 | _ACEOF | |
3577 | cat confdefs.h >>conftest.$ac_ext | |
3578 | cat >>conftest.$ac_ext <<_ACEOF | |
3579 | /* end confdefs.h. */ | |
3580 | #include <sgtty.h> | |
3581 | Autoconf TIOCGETP | |
3582 | _ACEOF | |
3583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3584 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3585 | ac_cv_prog_gcc_traditional=yes | |
3586 | else | |
3587 | ac_cv_prog_gcc_traditional=no | |
3588 | fi | |
3589 | rm -f conftest* | |
3590 | ||
3591 | ||
3592 | if test $ac_cv_prog_gcc_traditional = no; then | |
3593 | cat >conftest.$ac_ext <<_ACEOF | |
3594 | /* confdefs.h. */ | |
3595 | _ACEOF | |
3596 | cat confdefs.h >>conftest.$ac_ext | |
3597 | cat >>conftest.$ac_ext <<_ACEOF | |
3598 | /* end confdefs.h. */ | |
3599 | #include <termio.h> | |
3600 | Autoconf TCGETA | |
3601 | _ACEOF | |
3602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3603 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3604 | ac_cv_prog_gcc_traditional=yes | |
3605 | fi | |
3606 | rm -f conftest* | |
3607 | ||
3608 | fi | |
3609 | fi | |
631ef239 AC |
3610 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3611 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
212380e3 AC |
3612 | if test $ac_cv_prog_gcc_traditional = yes; then |
3613 | CC="$CC -traditional" | |
3614 | fi | |
3615 | fi | |
3616 | ||
631ef239 AC |
3617 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3618 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3619 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3620 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3622 | else | |
3623 | cat >conftest.make <<\_ACEOF | |
631ef239 | 3624 | SHELL = /bin/sh |
212380e3 | 3625 | all: |
631ef239 | 3626 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
212380e3 AC |
3627 | _ACEOF |
3628 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
631ef239 AC |
3629 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3630 | *@@@%%%=?*=@@@%%%*) | |
3631 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3632 | *) | |
3633 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3634 | esac | |
212380e3 AC |
3635 | rm -f conftest.make |
3636 | fi | |
631ef239 AC |
3637 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3638 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3639 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3640 | SET_MAKE= |
3641 | else | |
631ef239 AC |
3642 | { echo "$as_me:$LINENO: result: no" >&5 |
3643 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3644 | SET_MAKE="MAKE=${MAKE-make}" |
3645 | fi | |
3646 | ||
212380e3 AC |
3647 | # Find a good install program. We prefer a C program (faster), |
3648 | # so one script is as good as another. But avoid the broken or | |
3649 | # incompatible versions: | |
3650 | # SysV /etc/install, /usr/sbin/install | |
3651 | # SunOS /usr/etc/install | |
3652 | # IRIX /sbin/install | |
3653 | # AIX /bin/install | |
3654 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3655 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3656 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3657 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3658 | # OS/2's system install, which has a completely different semantic | |
3659 | # ./install, which can be erroneously created by make from ./install.sh. | |
631ef239 AC |
3660 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3661 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
212380e3 AC |
3662 | if test -z "$INSTALL"; then |
3663 | if test "${ac_cv_path_install+set}" = set; then | |
3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3665 | else | |
3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3667 | for as_dir in $PATH | |
3668 | do | |
3669 | IFS=$as_save_IFS | |
3670 | test -z "$as_dir" && as_dir=. | |
3671 | # Account for people who put trailing slashes in PATH elements. | |
3672 | case $as_dir/ in | |
3673 | ./ | .// | /cC/* | \ | |
3674 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3675 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3676 | /usr/ucb/* ) ;; | |
3677 | *) | |
3678 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3679 | # Don't use installbsd from OSF since it installs stuff as root | |
3680 | # by default. | |
3681 | for ac_prog in ginstall scoinst install; do | |
3682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3683 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
212380e3 AC |
3684 | if test $ac_prog = install && |
3685 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3686 | # AIX install. It has an incompatible calling convention. | |
3687 | : | |
3688 | elif test $ac_prog = install && | |
3689 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3690 | # program-specific install script used by HP pwplus--don't use. | |
3691 | : | |
3692 | else | |
3693 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3694 | break 3 | |
3695 | fi | |
3696 | fi | |
3697 | done | |
3698 | done | |
3699 | ;; | |
3700 | esac | |
3701 | done | |
631ef239 | 3702 | IFS=$as_save_IFS |
212380e3 AC |
3703 | |
3704 | ||
3705 | fi | |
3706 | if test "${ac_cv_path_install+set}" = set; then | |
3707 | INSTALL=$ac_cv_path_install | |
3708 | else | |
631ef239 AC |
3709 | # As a last resort, use the slow shell script. Don't cache a |
3710 | # value for INSTALL within a source directory, because that will | |
212380e3 | 3711 | # break other packages using the cache if that directory is |
631ef239 | 3712 | # removed, or if the value is a relative name. |
212380e3 AC |
3713 | INSTALL=$ac_install_sh |
3714 | fi | |
3715 | fi | |
631ef239 AC |
3716 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3717 | echo "${ECHO_T}$INSTALL" >&6; } | |
212380e3 AC |
3718 | |
3719 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3720 | # It thinks the first close brace ends the variable substitution. | |
3721 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3722 | ||
3723 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3724 | ||
3725 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3726 | ||
3727 | # Extract the first word of "rm", so it can be a program name with args. | |
3728 | set dummy rm; ac_word=$2 | |
631ef239 AC |
3729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3731 | if test "${ac_cv_path_RM+set}" = set; then |
3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3733 | else | |
3734 | case $RM in | |
3735 | [\\/]* | ?:[\\/]*) | |
3736 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3737 | ;; | |
3738 | *) | |
3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3740 | for as_dir in $PATH | |
3741 | do | |
3742 | IFS=$as_save_IFS | |
3743 | test -z "$as_dir" && as_dir=. | |
3744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3746 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3748 | break 2 | |
3749 | fi | |
3750 | done | |
3751 | done | |
631ef239 | 3752 | IFS=$as_save_IFS |
212380e3 AC |
3753 | |
3754 | ;; | |
3755 | esac | |
3756 | fi | |
3757 | RM=$ac_cv_path_RM | |
212380e3 | 3758 | if test -n "$RM"; then |
631ef239 AC |
3759 | { echo "$as_me:$LINENO: result: $RM" >&5 |
3760 | echo "${ECHO_T}$RM" >&6; } | |
212380e3 | 3761 | else |
631ef239 AC |
3762 | { echo "$as_me:$LINENO: result: no" >&5 |
3763 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3764 | fi |
3765 | ||
631ef239 | 3766 | |
212380e3 AC |
3767 | # Extract the first word of "cp", so it can be a program name with args. |
3768 | set dummy cp; ac_word=$2 | |
631ef239 AC |
3769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3771 | if test "${ac_cv_path_CP+set}" = set; then |
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3773 | else | |
3774 | case $CP in | |
3775 | [\\/]* | ?:[\\/]*) | |
3776 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3777 | ;; | |
3778 | *) | |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
3783 | test -z "$as_dir" && as_dir=. | |
3784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3786 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3788 | break 2 | |
3789 | fi | |
3790 | done | |
3791 | done | |
631ef239 | 3792 | IFS=$as_save_IFS |
212380e3 AC |
3793 | |
3794 | ;; | |
3795 | esac | |
3796 | fi | |
3797 | CP=$ac_cv_path_CP | |
212380e3 | 3798 | if test -n "$CP"; then |
631ef239 AC |
3799 | { echo "$as_me:$LINENO: result: $CP" >&5 |
3800 | echo "${ECHO_T}$CP" >&6; } | |
212380e3 | 3801 | else |
631ef239 AC |
3802 | { echo "$as_me:$LINENO: result: no" >&5 |
3803 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3804 | fi |
3805 | ||
631ef239 | 3806 | |
212380e3 AC |
3807 | # Extract the first word of "mv", so it can be a program name with args. |
3808 | set dummy mv; ac_word=$2 | |
631ef239 AC |
3809 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3811 | if test "${ac_cv_path_MV+set}" = set; then |
3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3813 | else | |
3814 | case $MV in | |
3815 | [\\/]* | ?:[\\/]*) | |
3816 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3817 | ;; | |
3818 | *) | |
3819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3820 | for as_dir in $PATH | |
3821 | do | |
3822 | IFS=$as_save_IFS | |
3823 | test -z "$as_dir" && as_dir=. | |
3824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3826 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3828 | break 2 | |
3829 | fi | |
3830 | done | |
3831 | done | |
631ef239 | 3832 | IFS=$as_save_IFS |
212380e3 AC |
3833 | |
3834 | ;; | |
3835 | esac | |
3836 | fi | |
3837 | MV=$ac_cv_path_MV | |
212380e3 | 3838 | if test -n "$MV"; then |
631ef239 AC |
3839 | { echo "$as_me:$LINENO: result: $MV" >&5 |
3840 | echo "${ECHO_T}$MV" >&6; } | |
212380e3 | 3841 | else |
631ef239 AC |
3842 | { echo "$as_me:$LINENO: result: no" >&5 |
3843 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3844 | fi |
3845 | ||
631ef239 | 3846 | |
212380e3 AC |
3847 | # Extract the first word of "ln", so it can be a program name with args. |
3848 | set dummy ln; ac_word=$2 | |
631ef239 AC |
3849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3851 | if test "${ac_cv_path_LN+set}" = set; then |
3852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3853 | else | |
3854 | case $LN in | |
3855 | [\\/]* | ?:[\\/]*) | |
3856 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3857 | ;; | |
3858 | *) | |
3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3860 | for as_dir in $PATH | |
3861 | do | |
3862 | IFS=$as_save_IFS | |
3863 | test -z "$as_dir" && as_dir=. | |
3864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3866 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3868 | break 2 | |
3869 | fi | |
3870 | done | |
3871 | done | |
631ef239 | 3872 | IFS=$as_save_IFS |
212380e3 AC |
3873 | |
3874 | ;; | |
3875 | esac | |
3876 | fi | |
3877 | LN=$ac_cv_path_LN | |
212380e3 | 3878 | if test -n "$LN"; then |
631ef239 AC |
3879 | { echo "$as_me:$LINENO: result: $LN" >&5 |
3880 | echo "${ECHO_T}$LN" >&6; } | |
212380e3 | 3881 | else |
631ef239 AC |
3882 | { echo "$as_me:$LINENO: result: no" >&5 |
3883 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3884 | fi |
3885 | ||
631ef239 | 3886 | |
212380e3 AC |
3887 | # Extract the first word of "sed", so it can be a program name with args. |
3888 | set dummy sed; ac_word=$2 | |
631ef239 AC |
3889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3891 | if test "${ac_cv_path_SED+set}" = set; then |
3892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3893 | else | |
3894 | case $SED in | |
3895 | [\\/]* | ?:[\\/]*) | |
3896 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3897 | ;; | |
3898 | *) | |
3899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3900 | for as_dir in $PATH | |
3901 | do | |
3902 | IFS=$as_save_IFS | |
3903 | test -z "$as_dir" && as_dir=. | |
3904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3906 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3908 | break 2 | |
3909 | fi | |
3910 | done | |
3911 | done | |
631ef239 | 3912 | IFS=$as_save_IFS |
212380e3 AC |
3913 | |
3914 | ;; | |
3915 | esac | |
3916 | fi | |
3917 | SED=$ac_cv_path_SED | |
212380e3 | 3918 | if test -n "$SED"; then |
631ef239 AC |
3919 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3920 | echo "${ECHO_T}$SED" >&6; } | |
212380e3 | 3921 | else |
631ef239 AC |
3922 | { echo "$as_me:$LINENO: result: no" >&5 |
3923 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3924 | fi |
3925 | ||
631ef239 | 3926 | |
212380e3 AC |
3927 | # Extract the first word of "ar", so it can be a program name with args. |
3928 | set dummy ar; ac_word=$2 | |
631ef239 AC |
3929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3931 | if test "${ac_cv_path_AR+set}" = set; then |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3933 | else | |
3934 | case $AR in | |
3935 | [\\/]* | ?:[\\/]*) | |
3936 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3937 | ;; | |
3938 | *) | |
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3940 | for as_dir in $PATH | |
3941 | do | |
3942 | IFS=$as_save_IFS | |
3943 | test -z "$as_dir" && as_dir=. | |
3944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3946 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3948 | break 2 | |
3949 | fi | |
3950 | done | |
3951 | done | |
631ef239 | 3952 | IFS=$as_save_IFS |
212380e3 AC |
3953 | |
3954 | ;; | |
3955 | esac | |
3956 | fi | |
3957 | AR=$ac_cv_path_AR | |
212380e3 | 3958 | if test -n "$AR"; then |
631ef239 AC |
3959 | { echo "$as_me:$LINENO: result: $AR" >&5 |
3960 | echo "${ECHO_T}$AR" >&6; } | |
212380e3 | 3961 | else |
631ef239 AC |
3962 | { echo "$as_me:$LINENO: result: no" >&5 |
3963 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3964 | fi |
3965 | ||
631ef239 | 3966 | |
212380e3 AC |
3967 | # Extract the first word of "ld", so it can be a program name with args. |
3968 | set dummy ld; ac_word=$2 | |
631ef239 AC |
3969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3971 | if test "${ac_cv_path_LD+set}" = set; then |
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3973 | else | |
3974 | case $LD in | |
3975 | [\\/]* | ?:[\\/]*) | |
3976 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3977 | ;; | |
3978 | *) | |
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3980 | for as_dir in $PATH | |
3981 | do | |
3982 | IFS=$as_save_IFS | |
3983 | test -z "$as_dir" && as_dir=. | |
3984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3986 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3988 | break 2 | |
3989 | fi | |
3990 | done | |
3991 | done | |
631ef239 | 3992 | IFS=$as_save_IFS |
212380e3 AC |
3993 | |
3994 | ;; | |
3995 | esac | |
3996 | fi | |
3997 | LD=$ac_cv_path_LD | |
212380e3 | 3998 | if test -n "$LD"; then |
631ef239 AC |
3999 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4000 | echo "${ECHO_T}$LD" >&6; } | |
212380e3 | 4001 | else |
631ef239 AC |
4002 | { echo "$as_me:$LINENO: result: no" >&5 |
4003 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4004 | fi |
4005 | ||
631ef239 | 4006 | |
212380e3 AC |
4007 | # Extract the first word of "ranlib", so it can be a program name with args. |
4008 | set dummy ranlib; ac_word=$2 | |
631ef239 AC |
4009 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4011 | if test "${ac_cv_path_RANLIB+set}" = set; then |
4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4013 | else | |
4014 | case $RANLIB in | |
4015 | [\\/]* | ?:[\\/]*) | |
4016 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4017 | ;; | |
4018 | *) | |
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4020 | for as_dir in $PATH | |
4021 | do | |
4022 | IFS=$as_save_IFS | |
4023 | test -z "$as_dir" && as_dir=. | |
4024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4026 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
4027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4028 | break 2 | |
4029 | fi | |
4030 | done | |
4031 | done | |
631ef239 | 4032 | IFS=$as_save_IFS |
212380e3 AC |
4033 | |
4034 | ;; | |
4035 | esac | |
4036 | fi | |
4037 | RANLIB=$ac_cv_path_RANLIB | |
212380e3 | 4038 | if test -n "$RANLIB"; then |
631ef239 AC |
4039 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4040 | echo "${ECHO_T}$RANLIB" >&6; } | |
212380e3 | 4041 | else |
631ef239 AC |
4042 | { echo "$as_me:$LINENO: result: no" >&5 |
4043 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4044 | fi |
4045 | ||
631ef239 | 4046 | |
212380e3 AC |
4047 | # Extract the first word of "touch", so it can be a program name with args. |
4048 | set dummy touch; ac_word=$2 | |
631ef239 AC |
4049 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4051 | if test "${ac_cv_path_TOUCH+set}" = set; then |
4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4053 | else | |
4054 | case $TOUCH in | |
4055 | [\\/]* | ?:[\\/]*) | |
4056 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4057 | ;; | |
4058 | *) | |
4059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4060 | for as_dir in $PATH | |
4061 | do | |
4062 | IFS=$as_save_IFS | |
4063 | test -z "$as_dir" && as_dir=. | |
4064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4066 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
4067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4068 | break 2 | |
4069 | fi | |
4070 | done | |
4071 | done | |
631ef239 | 4072 | IFS=$as_save_IFS |
212380e3 AC |
4073 | |
4074 | ;; | |
4075 | esac | |
4076 | fi | |
4077 | TOUCH=$ac_cv_path_TOUCH | |
212380e3 | 4078 | if test -n "$TOUCH"; then |
631ef239 AC |
4079 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 |
4080 | echo "${ECHO_T}$TOUCH" >&6; } | |
212380e3 | 4081 | else |
631ef239 AC |
4082 | { echo "$as_me:$LINENO: result: no" >&5 |
4083 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4084 | fi |
4085 | ||
4086 | ||
631ef239 | 4087 | |
212380e3 AC |
4088 | for ac_prog in 'bison -y' byacc |
4089 | do | |
4090 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4091 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4094 | if test "${ac_cv_prog_YACC+set}" = set; then |
4095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4096 | else | |
4097 | if test -n "$YACC"; then | |
4098 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4099 | else | |
4100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4101 | for as_dir in $PATH | |
4102 | do | |
4103 | IFS=$as_save_IFS | |
4104 | test -z "$as_dir" && as_dir=. | |
4105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4107 | ac_cv_prog_YACC="$ac_prog" |
4108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4109 | break 2 | |
4110 | fi | |
4111 | done | |
4112 | done | |
631ef239 | 4113 | IFS=$as_save_IFS |
212380e3 AC |
4114 | |
4115 | fi | |
4116 | fi | |
4117 | YACC=$ac_cv_prog_YACC | |
4118 | if test -n "$YACC"; then | |
631ef239 AC |
4119 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
4120 | echo "${ECHO_T}$YACC" >&6; } | |
212380e3 | 4121 | else |
631ef239 AC |
4122 | { echo "$as_me:$LINENO: result: no" >&5 |
4123 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4124 | fi |
4125 | ||
631ef239 | 4126 | |
212380e3 AC |
4127 | test -n "$YACC" && break |
4128 | done | |
4129 | test -n "$YACC" || YACC="yacc" | |
4130 | ||
4131 | ||
4132 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4133 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4134 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4135 | { (exit 1); exit 1; }; } | |
4136 | fi | |
4137 | ||
4138 | for ac_prog in flex lex | |
4139 | do | |
4140 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4141 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4144 | if test "${ac_cv_prog_LEX+set}" = set; then |
4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4146 | else | |
4147 | if test -n "$LEX"; then | |
4148 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4149 | else | |
4150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4151 | for as_dir in $PATH | |
4152 | do | |
4153 | IFS=$as_save_IFS | |
4154 | test -z "$as_dir" && as_dir=. | |
4155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4157 | ac_cv_prog_LEX="$ac_prog" |
4158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4159 | break 2 | |
4160 | fi | |
4161 | done | |
4162 | done | |
631ef239 | 4163 | IFS=$as_save_IFS |
212380e3 AC |
4164 | |
4165 | fi | |
4166 | fi | |
4167 | LEX=$ac_cv_prog_LEX | |
4168 | if test -n "$LEX"; then | |
631ef239 AC |
4169 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
4170 | echo "${ECHO_T}$LEX" >&6; } | |
212380e3 | 4171 | else |
631ef239 AC |
4172 | { echo "$as_me:$LINENO: result: no" >&5 |
4173 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4174 | fi |
4175 | ||
631ef239 | 4176 | |
212380e3 AC |
4177 | test -n "$LEX" && break |
4178 | done | |
4179 | test -n "$LEX" || LEX=":" | |
4180 | ||
631ef239 AC |
4181 | if test "x$LEX" != "x:"; then |
4182 | cat >conftest.l <<_ACEOF | |
4183 | %% | |
4184 | a { ECHO; } | |
4185 | b { REJECT; } | |
4186 | c { yymore (); } | |
4187 | d { yyless (1); } | |
4188 | e { yyless (input () != 0); } | |
4189 | f { unput (yytext[0]); } | |
4190 | . { BEGIN INITIAL; } | |
4191 | %% | |
4192 | #ifdef YYTEXT_POINTER | |
4193 | extern char *yytext; | |
212380e3 | 4194 | #endif |
212380e3 | 4195 | int |
631ef239 | 4196 | main (void) |
212380e3 | 4197 | { |
631ef239 | 4198 | return ! yylex () + ! yywrap (); |
212380e3 AC |
4199 | } |
4200 | _ACEOF | |
631ef239 AC |
4201 | { (ac_try="$LEX conftest.l" |
4202 | case "(($ac_try" in | |
4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4204 | *) ac_try_echo=$ac_try;; | |
4205 | esac | |
4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4207 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 AC |
4208 | ac_status=$? |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4210 | (exit $ac_status); } |
4211 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4212 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4213 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
212380e3 | 4215 | else |
212380e3 | 4216 | |
631ef239 AC |
4217 | if test -f lex.yy.c; then |
4218 | ac_cv_prog_lex_root=lex.yy | |
4219 | elif test -f lexyy.c; then | |
4220 | ac_cv_prog_lex_root=lexyy | |
212380e3 | 4221 | else |
631ef239 AC |
4222 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4223 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4224 | { (exit 1); exit 1; }; } | |
4225 | fi | |
4226 | fi | |
4227 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4228 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4229 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4230 | ||
4231 | if test -z "${LEXLIB+set}"; then | |
4232 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4233 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4234 | if test "${ac_cv_lib_lex+set}" = set; then | |
212380e3 AC |
4235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4236 | else | |
212380e3 | 4237 | |
631ef239 AC |
4238 | ac_save_LIBS=$LIBS |
4239 | ac_cv_lib_lex='none needed' | |
4240 | for ac_lib in '' -lfl -ll; do | |
4241 | LIBS="$ac_lib $ac_save_LIBS" | |
4242 | cat >conftest.$ac_ext <<_ACEOF | |
4243 | `cat $LEX_OUTPUT_ROOT.c` | |
212380e3 AC |
4244 | _ACEOF |
4245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4246 | if { (ac_try="$ac_link" |
4247 | case "(($ac_try" in | |
4248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4249 | *) ac_try_echo=$ac_try;; | |
4250 | esac | |
4251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4252 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4253 | ac_status=$? |
4254 | grep -v '^ *+' conftest.er1 >conftest.err | |
4255 | rm -f conftest.er1 | |
4256 | cat conftest.err >&5 | |
4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4258 | (exit $ac_status); } && { |
4259 | test -z "$ac_c_werror_flag" || | |
4260 | test ! -s conftest.err | |
4261 | } && test -s conftest$ac_exeext && | |
4262 | $as_test_x conftest$ac_exeext; then | |
4263 | ac_cv_lib_lex=$ac_lib | |
212380e3 AC |
4264 | else |
4265 | echo "$as_me: failed program was:" >&5 | |
4266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4267 | ||
212380e3 AC |
4268 | |
4269 | fi | |
4270 | ||
631ef239 AC |
4271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4272 | conftest$ac_exeext conftest.$ac_ext | |
4273 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4274 | done | |
4275 | LIBS=$ac_save_LIBS | |
212380e3 | 4276 | |
212380e3 | 4277 | fi |
631ef239 AC |
4278 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4279 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4280 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
212380e3 | 4281 | fi |
212380e3 | 4282 | |
631ef239 AC |
4283 | |
4284 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4285 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
212380e3 AC |
4286 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4288 | else | |
4289 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
631ef239 | 4290 | # default is implementation-dependent. Figure out which it is, since |
212380e3 AC |
4291 | # not all implementations provide the %pointer and %array declarations. |
4292 | ac_cv_prog_lex_yytext_pointer=no | |
212380e3 | 4293 | ac_save_LIBS=$LIBS |
631ef239 | 4294 | LIBS="$LEXLIB $ac_save_LIBS" |
212380e3 | 4295 | cat >conftest.$ac_ext <<_ACEOF |
631ef239 | 4296 | #define YYTEXT_POINTER 1 |
212380e3 AC |
4297 | `cat $LEX_OUTPUT_ROOT.c` |
4298 | _ACEOF | |
4299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4300 | if { (ac_try="$ac_link" |
4301 | case "(($ac_try" in | |
4302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4303 | *) ac_try_echo=$ac_try;; | |
4304 | esac | |
4305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4306 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4307 | ac_status=$? |
4308 | grep -v '^ *+' conftest.er1 >conftest.err | |
4309 | rm -f conftest.er1 | |
4310 | cat conftest.err >&5 | |
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4312 | (exit $ac_status); } && { |
4313 | test -z "$ac_c_werror_flag" || | |
4314 | test ! -s conftest.err | |
4315 | } && test -s conftest$ac_exeext && | |
4316 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
4317 | ac_cv_prog_lex_yytext_pointer=yes |
4318 | else | |
4319 | echo "$as_me: failed program was:" >&5 | |
4320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4321 | ||
631ef239 | 4322 | |
212380e3 | 4323 | fi |
631ef239 AC |
4324 | |
4325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
4326 | conftest$ac_exeext conftest.$ac_ext |
4327 | LIBS=$ac_save_LIBS | |
212380e3 AC |
4328 | |
4329 | fi | |
631ef239 AC |
4330 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4331 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
212380e3 AC |
4332 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4333 | ||
4334 | cat >>confdefs.h <<\_ACEOF | |
4335 | #define YYTEXT_POINTER 1 | |
4336 | _ACEOF | |
4337 | ||
4338 | fi | |
631ef239 | 4339 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
212380e3 AC |
4340 | |
4341 | fi | |
4342 | ||
4343 | if test "$LEX" = ":"; then | |
4344 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4345 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4346 | { (exit 1); exit 1; }; } | |
4347 | fi | |
4348 | ||
4349 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4350 | test "$localstatedir" = '${prefix}/var'; then | |
4351 | libexecdir='${bindir}' | |
4352 | localstatedir='${prefix}' | |
4353 | fi | |
4354 | ||
631ef239 AC |
4355 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4356 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
212380e3 AC |
4357 | if test "${ac_cv_header_stdc+set}" = set; then |
4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4359 | else | |
4360 | cat >conftest.$ac_ext <<_ACEOF | |
4361 | /* confdefs.h. */ | |
4362 | _ACEOF | |
4363 | cat confdefs.h >>conftest.$ac_ext | |
4364 | cat >>conftest.$ac_ext <<_ACEOF | |
4365 | /* end confdefs.h. */ | |
4366 | #include <stdlib.h> | |
4367 | #include <stdarg.h> | |
4368 | #include <string.h> | |
4369 | #include <float.h> | |
4370 | ||
4371 | int | |
4372 | main () | |
4373 | { | |
4374 | ||
4375 | ; | |
4376 | return 0; | |
4377 | } | |
4378 | _ACEOF | |
4379 | rm -f conftest.$ac_objext | |
631ef239 AC |
4380 | if { (ac_try="$ac_compile" |
4381 | case "(($ac_try" in | |
4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4383 | *) ac_try_echo=$ac_try;; | |
4384 | esac | |
4385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4386 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4387 | ac_status=$? |
4388 | grep -v '^ *+' conftest.er1 >conftest.err | |
4389 | rm -f conftest.er1 | |
4390 | cat conftest.err >&5 | |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4392 | (exit $ac_status); } && { |
4393 | test -z "$ac_c_werror_flag" || | |
4394 | test ! -s conftest.err | |
4395 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4396 | ac_cv_header_stdc=yes |
4397 | else | |
4398 | echo "$as_me: failed program was:" >&5 | |
4399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4400 | ||
631ef239 | 4401 | ac_cv_header_stdc=no |
212380e3 | 4402 | fi |
631ef239 AC |
4403 | |
4404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4405 | |
4406 | if test $ac_cv_header_stdc = yes; then | |
4407 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4408 | cat >conftest.$ac_ext <<_ACEOF | |
4409 | /* confdefs.h. */ | |
4410 | _ACEOF | |
4411 | cat confdefs.h >>conftest.$ac_ext | |
4412 | cat >>conftest.$ac_ext <<_ACEOF | |
4413 | /* end confdefs.h. */ | |
4414 | #include <string.h> | |
4415 | ||
4416 | _ACEOF | |
4417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4418 | $EGREP "memchr" >/dev/null 2>&1; then | |
4419 | : | |
4420 | else | |
4421 | ac_cv_header_stdc=no | |
4422 | fi | |
4423 | rm -f conftest* | |
4424 | ||
4425 | fi | |
4426 | ||
4427 | if test $ac_cv_header_stdc = yes; then | |
4428 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4429 | cat >conftest.$ac_ext <<_ACEOF | |
4430 | /* confdefs.h. */ | |
4431 | _ACEOF | |
4432 | cat confdefs.h >>conftest.$ac_ext | |
4433 | cat >>conftest.$ac_ext <<_ACEOF | |
4434 | /* end confdefs.h. */ | |
4435 | #include <stdlib.h> | |
4436 | ||
4437 | _ACEOF | |
4438 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4439 | $EGREP "free" >/dev/null 2>&1; then | |
4440 | : | |
4441 | else | |
4442 | ac_cv_header_stdc=no | |
4443 | fi | |
4444 | rm -f conftest* | |
4445 | ||
4446 | fi | |
4447 | ||
4448 | if test $ac_cv_header_stdc = yes; then | |
4449 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4450 | if test "$cross_compiling" = yes; then | |
4451 | : | |
4452 | else | |
4453 | cat >conftest.$ac_ext <<_ACEOF | |
4454 | /* confdefs.h. */ | |
4455 | _ACEOF | |
4456 | cat confdefs.h >>conftest.$ac_ext | |
4457 | cat >>conftest.$ac_ext <<_ACEOF | |
4458 | /* end confdefs.h. */ | |
4459 | #include <ctype.h> | |
631ef239 | 4460 | #include <stdlib.h> |
212380e3 AC |
4461 | #if ((' ' & 0x0FF) == 0x020) |
4462 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4463 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4464 | #else | |
4465 | # define ISLOWER(c) \ | |
4466 | (('a' <= (c) && (c) <= 'i') \ | |
4467 | || ('j' <= (c) && (c) <= 'r') \ | |
4468 | || ('s' <= (c) && (c) <= 'z')) | |
4469 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4470 | #endif | |
4471 | ||
4472 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4473 | int | |
4474 | main () | |
4475 | { | |
4476 | int i; | |
4477 | for (i = 0; i < 256; i++) | |
4478 | if (XOR (islower (i), ISLOWER (i)) | |
4479 | || toupper (i) != TOUPPER (i)) | |
631ef239 AC |
4480 | return 2; |
4481 | return 0; | |
212380e3 AC |
4482 | } |
4483 | _ACEOF | |
4484 | rm -f conftest$ac_exeext | |
631ef239 AC |
4485 | if { (ac_try="$ac_link" |
4486 | case "(($ac_try" in | |
4487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4488 | *) ac_try_echo=$ac_try;; | |
4489 | esac | |
4490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4491 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
4492 | ac_status=$? |
4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4494 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
4495 | { (case "(($ac_try" in |
4496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4497 | *) ac_try_echo=$ac_try;; | |
4498 | esac | |
4499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4500 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
4501 | ac_status=$? |
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4503 | (exit $ac_status); }; }; then | |
4504 | : | |
4505 | else | |
4506 | echo "$as_me: program exited with status $ac_status" >&5 | |
4507 | echo "$as_me: failed program was:" >&5 | |
4508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4509 | ||
4510 | ( exit $ac_status ) | |
4511 | ac_cv_header_stdc=no | |
4512 | fi | |
631ef239 | 4513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4514 | fi |
631ef239 AC |
4515 | |
4516 | ||
212380e3 AC |
4517 | fi |
4518 | fi | |
631ef239 AC |
4519 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4520 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
212380e3 AC |
4521 | if test $ac_cv_header_stdc = yes; then |
4522 | ||
4523 | cat >>confdefs.h <<\_ACEOF | |
4524 | #define STDC_HEADERS 1 | |
4525 | _ACEOF | |
4526 | ||
4527 | fi | |
4528 | ||
4529 | ||
4530 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4541 | inttypes.h stdint.h unistd.h | |
4542 | do | |
4543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4544 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4548 | else | |
4549 | cat >conftest.$ac_ext <<_ACEOF | |
4550 | /* confdefs.h. */ | |
4551 | _ACEOF | |
4552 | cat confdefs.h >>conftest.$ac_ext | |
4553 | cat >>conftest.$ac_ext <<_ACEOF | |
4554 | /* end confdefs.h. */ | |
4555 | $ac_includes_default | |
4556 | ||
4557 | #include <$ac_header> | |
4558 | _ACEOF | |
4559 | rm -f conftest.$ac_objext | |
631ef239 AC |
4560 | if { (ac_try="$ac_compile" |
4561 | case "(($ac_try" in | |
4562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4563 | *) ac_try_echo=$ac_try;; | |
4564 | esac | |
4565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4566 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4567 | ac_status=$? |
4568 | grep -v '^ *+' conftest.er1 >conftest.err | |
4569 | rm -f conftest.er1 | |
4570 | cat conftest.err >&5 | |
4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4572 | (exit $ac_status); } && { |
4573 | test -z "$ac_c_werror_flag" || | |
4574 | test ! -s conftest.err | |
4575 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4576 | eval "$as_ac_Header=yes" |
4577 | else | |
4578 | echo "$as_me: failed program was:" >&5 | |
4579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4580 | ||
631ef239 | 4581 | eval "$as_ac_Header=no" |
212380e3 | 4582 | fi |
631ef239 AC |
4583 | |
4584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4585 | fi |
631ef239 AC |
4586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4588 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4590 | cat >>confdefs.h <<_ACEOF | |
4591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4592 | _ACEOF | |
4593 | ||
4594 | fi | |
4595 | ||
4596 | done | |
4597 | ||
4598 | ||
4599 | ||
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h | |
4611 | do | |
4612 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4613 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4614 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4618 | fi | |
631ef239 AC |
4619 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4621 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4622 | else |
4623 | # Is the header compilable? | |
631ef239 AC |
4624 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4625 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
4626 | cat >conftest.$ac_ext <<_ACEOF |
4627 | /* confdefs.h. */ | |
4628 | _ACEOF | |
4629 | cat confdefs.h >>conftest.$ac_ext | |
4630 | cat >>conftest.$ac_ext <<_ACEOF | |
4631 | /* end confdefs.h. */ | |
4632 | $ac_includes_default | |
4633 | #include <$ac_header> | |
4634 | _ACEOF | |
4635 | rm -f conftest.$ac_objext | |
631ef239 AC |
4636 | if { (ac_try="$ac_compile" |
4637 | case "(($ac_try" in | |
4638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4639 | *) ac_try_echo=$ac_try;; | |
4640 | esac | |
4641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4642 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4643 | ac_status=$? |
4644 | grep -v '^ *+' conftest.er1 >conftest.err | |
4645 | rm -f conftest.er1 | |
4646 | cat conftest.err >&5 | |
4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4648 | (exit $ac_status); } && { |
4649 | test -z "$ac_c_werror_flag" || | |
4650 | test ! -s conftest.err | |
4651 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4652 | ac_header_compiler=yes |
4653 | else | |
4654 | echo "$as_me: failed program was:" >&5 | |
4655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4656 | ||
631ef239 | 4657 | ac_header_compiler=no |
212380e3 | 4658 | fi |
631ef239 AC |
4659 | |
4660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4661 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4662 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
4663 | |
4664 | # Is the header present? | |
631ef239 AC |
4665 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4666 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
4667 | cat >conftest.$ac_ext <<_ACEOF |
4668 | /* confdefs.h. */ | |
4669 | _ACEOF | |
4670 | cat confdefs.h >>conftest.$ac_ext | |
4671 | cat >>conftest.$ac_ext <<_ACEOF | |
4672 | /* end confdefs.h. */ | |
4673 | #include <$ac_header> | |
4674 | _ACEOF | |
631ef239 AC |
4675 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4676 | case "(($ac_try" in | |
4677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4678 | *) ac_try_echo=$ac_try;; | |
4679 | esac | |
4680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
4682 | ac_status=$? |
4683 | grep -v '^ *+' conftest.er1 >conftest.err | |
4684 | rm -f conftest.er1 | |
4685 | cat conftest.err >&5 | |
4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4687 | (exit $ac_status); } >/dev/null && { |
4688 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4689 | test ! -s conftest.err | |
4690 | }; then | |
212380e3 AC |
4691 | ac_header_preproc=yes |
4692 | else | |
4693 | echo "$as_me: failed program was:" >&5 | |
4694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4695 | ||
4696 | ac_header_preproc=no | |
4697 | fi | |
631ef239 | 4698 | |
212380e3 | 4699 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
4700 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4701 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
4702 | |
4703 | # So? What about this header? | |
4704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4705 | yes:no: ) | |
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4710 | ac_header_preproc=yes | |
4711 | ;; | |
4712 | no:yes:* ) | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 4725 | |
212380e3 AC |
4726 | ;; |
4727 | esac | |
631ef239 AC |
4728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4732 | else | |
4733 | eval "$as_ac_Header=\$ac_header_preproc" | |
4734 | fi | |
631ef239 AC |
4735 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4736 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4737 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4738 | |
4739 | fi | |
4740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4741 | cat >>confdefs.h <<_ACEOF | |
4742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4743 | _ACEOF | |
4744 | ||
4745 | fi | |
4746 | ||
4747 | done | |
4748 | ||
4749 | ||
4750 | ||
631ef239 AC |
4751 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4752 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
212380e3 AC |
4753 | if test "${ac_cv_c_const+set}" = set; then |
4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4755 | else | |
4756 | cat >conftest.$ac_ext <<_ACEOF | |
4757 | /* confdefs.h. */ | |
4758 | _ACEOF | |
4759 | cat confdefs.h >>conftest.$ac_ext | |
4760 | cat >>conftest.$ac_ext <<_ACEOF | |
4761 | /* end confdefs.h. */ | |
4762 | ||
4763 | int | |
4764 | main () | |
4765 | { | |
4766 | /* FIXME: Include the comments suggested by Paul. */ | |
4767 | #ifndef __cplusplus | |
4768 | /* Ultrix mips cc rejects this. */ | |
4769 | typedef int charset[2]; | |
631ef239 | 4770 | const charset cs; |
212380e3 | 4771 | /* SunOS 4.1.1 cc rejects this. */ |
631ef239 AC |
4772 | char const *const *pcpcc; |
4773 | char **ppc; | |
212380e3 AC |
4774 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4775 | struct point {int x, y;}; | |
4776 | static struct point const zero = {0,0}; | |
4777 | /* AIX XL C 1.02.0.0 rejects this. | |
4778 | It does not let you subtract one const X* pointer from another in | |
4779 | an arm of an if-expression whose if-part is not a constant | |
4780 | expression */ | |
4781 | const char *g = "string"; | |
631ef239 | 4782 | pcpcc = &g + (g ? g-g : 0); |
212380e3 | 4783 | /* HPUX 7.0 cc rejects these. */ |
631ef239 AC |
4784 | ++pcpcc; |
4785 | ppc = (char**) pcpcc; | |
4786 | pcpcc = (char const *const *) ppc; | |
212380e3 AC |
4787 | { /* SCO 3.2v4 cc rejects this. */ |
4788 | char *t; | |
4789 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4790 | ||
4791 | *t++ = 0; | |
631ef239 | 4792 | if (s) return 0; |
212380e3 AC |
4793 | } |
4794 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4795 | int x[] = {25, 17}; | |
4796 | const int *foo = &x[0]; | |
4797 | ++foo; | |
4798 | } | |
4799 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4800 | typedef const int *iptr; | |
4801 | iptr p = 0; | |
4802 | ++p; | |
4803 | } | |
4804 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4805 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4806 | struct s { int j; const int *ap[3]; }; | |
4807 | struct s *b; b->j = 5; | |
4808 | } | |
4809 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4810 | const int foo = 10; | |
631ef239 | 4811 | if (!foo) return 0; |
212380e3 | 4812 | } |
631ef239 | 4813 | return !cs[0] && !zero.x; |
212380e3 AC |
4814 | #endif |
4815 | ||
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | rm -f conftest.$ac_objext | |
631ef239 AC |
4821 | if { (ac_try="$ac_compile" |
4822 | case "(($ac_try" in | |
4823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4824 | *) ac_try_echo=$ac_try;; | |
4825 | esac | |
4826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4827 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4828 | ac_status=$? |
4829 | grep -v '^ *+' conftest.er1 >conftest.err | |
4830 | rm -f conftest.er1 | |
4831 | cat conftest.err >&5 | |
4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4833 | (exit $ac_status); } && { |
4834 | test -z "$ac_c_werror_flag" || | |
4835 | test ! -s conftest.err | |
4836 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4837 | ac_cv_c_const=yes |
4838 | else | |
4839 | echo "$as_me: failed program was:" >&5 | |
4840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4841 | ||
631ef239 | 4842 | ac_cv_c_const=no |
212380e3 | 4843 | fi |
631ef239 AC |
4844 | |
4845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4846 | fi |
631ef239 AC |
4847 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4848 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
212380e3 AC |
4849 | if test $ac_cv_c_const = no; then |
4850 | ||
4851 | cat >>confdefs.h <<\_ACEOF | |
4852 | #define const | |
4853 | _ACEOF | |
4854 | ||
4855 | fi | |
4856 | ||
4857 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
631ef239 AC |
4858 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4859 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
4860 | if test "${ac_cv_c_bigendian+set}" = set; then |
4861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4862 | else | |
4863 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4864 | cat >conftest.$ac_ext <<_ACEOF | |
4865 | /* confdefs.h. */ | |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
4870 | #include <sys/types.h> | |
4871 | #include <sys/param.h> | |
4872 | ||
4873 | int | |
4874 | main () | |
4875 | { | |
631ef239 AC |
4876 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4877 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
4878 | bogus endian macros |
4879 | #endif | |
4880 | ||
4881 | ; | |
4882 | return 0; | |
4883 | } | |
4884 | _ACEOF | |
4885 | rm -f conftest.$ac_objext | |
631ef239 AC |
4886 | if { (ac_try="$ac_compile" |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
4891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4892 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4893 | ac_status=$? |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4898 | (exit $ac_status); } && { |
4899 | test -z "$ac_c_werror_flag" || | |
4900 | test ! -s conftest.err | |
4901 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4902 | # It does; now see whether it defined to BIG_ENDIAN or not. |
4903 | cat >conftest.$ac_ext <<_ACEOF | |
4904 | /* confdefs.h. */ | |
4905 | _ACEOF | |
4906 | cat confdefs.h >>conftest.$ac_ext | |
4907 | cat >>conftest.$ac_ext <<_ACEOF | |
4908 | /* end confdefs.h. */ | |
4909 | #include <sys/types.h> | |
4910 | #include <sys/param.h> | |
4911 | ||
4912 | int | |
4913 | main () | |
4914 | { | |
4915 | #if BYTE_ORDER != BIG_ENDIAN | |
4916 | not big endian | |
4917 | #endif | |
4918 | ||
4919 | ; | |
4920 | return 0; | |
4921 | } | |
4922 | _ACEOF | |
4923 | rm -f conftest.$ac_objext | |
631ef239 AC |
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 | |
212380e3 AC |
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 | |
631ef239 AC |
4936 | (exit $ac_status); } && { |
4937 | test -z "$ac_c_werror_flag" || | |
4938 | test ! -s conftest.err | |
4939 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4940 | ac_cv_c_bigendian=yes |
4941 | else | |
4942 | echo "$as_me: failed program was:" >&5 | |
4943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4944 | ||
631ef239 | 4945 | ac_cv_c_bigendian=no |
212380e3 | 4946 | fi |
631ef239 AC |
4947 | |
4948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4949 | else |
4950 | echo "$as_me: failed program was:" >&5 | |
4951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4952 | ||
631ef239 | 4953 | # It does not; compile a test program. |
212380e3 AC |
4954 | if test "$cross_compiling" = yes; then |
4955 | # try to guess the endianness by grepping values into an object file | |
4956 | ac_cv_c_bigendian=unknown | |
4957 | cat >conftest.$ac_ext <<_ACEOF | |
4958 | /* confdefs.h. */ | |
4959 | _ACEOF | |
4960 | cat confdefs.h >>conftest.$ac_ext | |
4961 | cat >>conftest.$ac_ext <<_ACEOF | |
4962 | /* end confdefs.h. */ | |
631ef239 AC |
4963 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4964 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 4965 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
4966 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
4967 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
4968 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
4969 | int | |
4970 | main () | |
4971 | { | |
4972 | _ascii (); _ebcdic (); | |
4973 | ; | |
4974 | return 0; | |
4975 | } | |
4976 | _ACEOF | |
4977 | rm -f conftest.$ac_objext | |
631ef239 AC |
4978 | if { (ac_try="$ac_compile" |
4979 | case "(($ac_try" in | |
4980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4981 | *) ac_try_echo=$ac_try;; | |
4982 | esac | |
4983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4984 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4985 | ac_status=$? |
4986 | grep -v '^ *+' conftest.er1 >conftest.err | |
4987 | rm -f conftest.er1 | |
4988 | cat conftest.err >&5 | |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4990 | (exit $ac_status); } && { |
4991 | test -z "$ac_c_werror_flag" || | |
4992 | test ! -s conftest.err | |
4993 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4994 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
4995 | ac_cv_c_bigendian=yes | |
4996 | fi | |
4997 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4998 | if test "$ac_cv_c_bigendian" = unknown; then | |
4999 | ac_cv_c_bigendian=no | |
5000 | else | |
5001 | # finding both strings is unlikely to happen, but who knows? | |
5002 | ac_cv_c_bigendian=unknown | |
5003 | fi | |
5004 | fi | |
5005 | else | |
5006 | echo "$as_me: failed program was:" >&5 | |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5008 | ||
631ef239 | 5009 | |
212380e3 | 5010 | fi |
631ef239 AC |
5011 | |
5012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5013 | else |
5014 | cat >conftest.$ac_ext <<_ACEOF | |
5015 | /* confdefs.h. */ | |
5016 | _ACEOF | |
5017 | cat confdefs.h >>conftest.$ac_ext | |
5018 | cat >>conftest.$ac_ext <<_ACEOF | |
5019 | /* end confdefs.h. */ | |
631ef239 | 5020 | $ac_includes_default |
212380e3 AC |
5021 | int |
5022 | main () | |
5023 | { | |
631ef239 | 5024 | |
212380e3 AC |
5025 | /* Are we little or big endian? From Harbison&Steele. */ |
5026 | union | |
5027 | { | |
631ef239 AC |
5028 | long int l; |
5029 | char c[sizeof (long int)]; | |
212380e3 AC |
5030 | } u; |
5031 | u.l = 1; | |
631ef239 AC |
5032 | return u.c[sizeof (long int) - 1] == 1; |
5033 | ||
5034 | ; | |
5035 | return 0; | |
212380e3 AC |
5036 | } |
5037 | _ACEOF | |
5038 | rm -f conftest$ac_exeext | |
631ef239 AC |
5039 | if { (ac_try="$ac_link" |
5040 | case "(($ac_try" in | |
5041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5042 | *) ac_try_echo=$ac_try;; | |
5043 | esac | |
5044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5045 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5046 | ac_status=$? |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5049 | { (case "(($ac_try" in |
5050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5051 | *) ac_try_echo=$ac_try;; | |
5052 | esac | |
5053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5054 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5055 | ac_status=$? |
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5057 | (exit $ac_status); }; }; then | |
5058 | ac_cv_c_bigendian=no | |
5059 | else | |
5060 | echo "$as_me: program exited with status $ac_status" >&5 | |
5061 | echo "$as_me: failed program was:" >&5 | |
5062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5063 | ||
5064 | ( exit $ac_status ) | |
5065 | ac_cv_c_bigendian=yes | |
5066 | fi | |
631ef239 | 5067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5068 | fi |
631ef239 AC |
5069 | |
5070 | ||
212380e3 | 5071 | fi |
631ef239 AC |
5072 | |
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5074 | fi |
631ef239 AC |
5075 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5076 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
5077 | case $ac_cv_c_bigendian in |
5078 | yes) | |
5079 | ||
5080 | cat >>confdefs.h <<\_ACEOF | |
5081 | #define WORDS_BIGENDIAN 1 | |
5082 | _ACEOF | |
5083 | ;; | |
5084 | no) | |
5085 | ;; | |
5086 | *) | |
5087 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5088 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5089 | echo "$as_me: error: unknown endianness | |
5090 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5091 | { (exit 1); exit 1; }; } ;; | |
5092 | esac | |
5093 | ||
5094 | fi | |
631ef239 AC |
5095 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5096 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
212380e3 AC |
5097 | if test "${ac_cv_type_pid_t+set}" = set; then |
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5099 | else | |
5100 | cat >conftest.$ac_ext <<_ACEOF | |
5101 | /* confdefs.h. */ | |
5102 | _ACEOF | |
5103 | cat confdefs.h >>conftest.$ac_ext | |
5104 | cat >>conftest.$ac_ext <<_ACEOF | |
5105 | /* end confdefs.h. */ | |
5106 | $ac_includes_default | |
631ef239 | 5107 | typedef pid_t ac__type_new_; |
212380e3 AC |
5108 | int |
5109 | main () | |
5110 | { | |
631ef239 | 5111 | if ((ac__type_new_ *) 0) |
212380e3 | 5112 | return 0; |
631ef239 | 5113 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5114 | return 0; |
5115 | ; | |
5116 | return 0; | |
5117 | } | |
5118 | _ACEOF | |
5119 | rm -f conftest.$ac_objext | |
631ef239 AC |
5120 | if { (ac_try="$ac_compile" |
5121 | case "(($ac_try" in | |
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5123 | *) ac_try_echo=$ac_try;; | |
5124 | esac | |
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5126 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5127 | ac_status=$? |
5128 | grep -v '^ *+' conftest.er1 >conftest.err | |
5129 | rm -f conftest.er1 | |
5130 | cat conftest.err >&5 | |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5132 | (exit $ac_status); } && { |
5133 | test -z "$ac_c_werror_flag" || | |
5134 | test ! -s conftest.err | |
5135 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5136 | ac_cv_type_pid_t=yes |
5137 | else | |
5138 | echo "$as_me: failed program was:" >&5 | |
5139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5140 | ||
631ef239 | 5141 | ac_cv_type_pid_t=no |
212380e3 | 5142 | fi |
631ef239 AC |
5143 | |
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5145 | fi |
631ef239 AC |
5146 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5147 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
212380e3 AC |
5148 | if test $ac_cv_type_pid_t = yes; then |
5149 | : | |
5150 | else | |
5151 | ||
5152 | cat >>confdefs.h <<_ACEOF | |
5153 | #define pid_t int | |
5154 | _ACEOF | |
5155 | ||
5156 | fi | |
5157 | ||
631ef239 AC |
5158 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5159 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
212380e3 AC |
5160 | if test "${ac_cv_type_size_t+set}" = set; then |
5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5162 | else | |
5163 | cat >conftest.$ac_ext <<_ACEOF | |
5164 | /* confdefs.h. */ | |
5165 | _ACEOF | |
5166 | cat confdefs.h >>conftest.$ac_ext | |
5167 | cat >>conftest.$ac_ext <<_ACEOF | |
5168 | /* end confdefs.h. */ | |
5169 | $ac_includes_default | |
631ef239 | 5170 | typedef size_t ac__type_new_; |
212380e3 AC |
5171 | int |
5172 | main () | |
5173 | { | |
631ef239 | 5174 | if ((ac__type_new_ *) 0) |
212380e3 | 5175 | return 0; |
631ef239 | 5176 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5177 | return 0; |
5178 | ; | |
5179 | return 0; | |
5180 | } | |
5181 | _ACEOF | |
5182 | rm -f conftest.$ac_objext | |
631ef239 AC |
5183 | if { (ac_try="$ac_compile" |
5184 | case "(($ac_try" in | |
5185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5186 | *) ac_try_echo=$ac_try;; | |
5187 | esac | |
5188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5189 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5190 | ac_status=$? |
5191 | grep -v '^ *+' conftest.er1 >conftest.err | |
5192 | rm -f conftest.er1 | |
5193 | cat conftest.err >&5 | |
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5195 | (exit $ac_status); } && { |
5196 | test -z "$ac_c_werror_flag" || | |
5197 | test ! -s conftest.err | |
5198 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5199 | ac_cv_type_size_t=yes |
5200 | else | |
5201 | echo "$as_me: failed program was:" >&5 | |
5202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5203 | ||
631ef239 | 5204 | ac_cv_type_size_t=no |
212380e3 | 5205 | fi |
631ef239 AC |
5206 | |
5207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5208 | fi |
631ef239 AC |
5209 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5210 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
212380e3 AC |
5211 | if test $ac_cv_type_size_t = yes; then |
5212 | : | |
5213 | else | |
5214 | ||
5215 | cat >>confdefs.h <<_ACEOF | |
631ef239 | 5216 | #define size_t unsigned int |
212380e3 AC |
5217 | _ACEOF |
5218 | ||
5219 | fi | |
5220 | ||
631ef239 AC |
5221 | { echo "$as_me:$LINENO: checking for short" >&5 |
5222 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
212380e3 AC |
5223 | if test "${ac_cv_type_short+set}" = set; then |
5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5225 | else | |
5226 | cat >conftest.$ac_ext <<_ACEOF | |
5227 | /* confdefs.h. */ | |
5228 | _ACEOF | |
5229 | cat confdefs.h >>conftest.$ac_ext | |
5230 | cat >>conftest.$ac_ext <<_ACEOF | |
5231 | /* end confdefs.h. */ | |
5232 | $ac_includes_default | |
631ef239 | 5233 | typedef short ac__type_new_; |
212380e3 AC |
5234 | int |
5235 | main () | |
5236 | { | |
631ef239 | 5237 | if ((ac__type_new_ *) 0) |
212380e3 | 5238 | return 0; |
631ef239 | 5239 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5240 | return 0; |
5241 | ; | |
5242 | return 0; | |
5243 | } | |
5244 | _ACEOF | |
5245 | rm -f conftest.$ac_objext | |
631ef239 AC |
5246 | if { (ac_try="$ac_compile" |
5247 | case "(($ac_try" in | |
5248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5249 | *) ac_try_echo=$ac_try;; | |
5250 | esac | |
5251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5252 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5253 | ac_status=$? |
5254 | grep -v '^ *+' conftest.er1 >conftest.err | |
5255 | rm -f conftest.er1 | |
5256 | cat conftest.err >&5 | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5258 | (exit $ac_status); } && { |
5259 | test -z "$ac_c_werror_flag" || | |
5260 | test ! -s conftest.err | |
5261 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5262 | ac_cv_type_short=yes |
5263 | else | |
5264 | echo "$as_me: failed program was:" >&5 | |
5265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5266 | ||
631ef239 | 5267 | ac_cv_type_short=no |
212380e3 | 5268 | fi |
631ef239 AC |
5269 | |
5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5271 | fi |
631ef239 AC |
5272 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5273 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
212380e3 | 5274 | |
631ef239 AC |
5275 | # The cast to long int works around a bug in the HP C Compiler |
5276 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5277 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5278 | # This bug is HP SR number 8606223364. | |
5279 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5280 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
212380e3 AC |
5281 | if test "${ac_cv_sizeof_short+set}" = set; then |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5283 | else | |
212380e3 AC |
5284 | if test "$cross_compiling" = yes; then |
5285 | # Depending upon the size, compute the lo and hi bounds. | |
5286 | cat >conftest.$ac_ext <<_ACEOF | |
5287 | /* confdefs.h. */ | |
5288 | _ACEOF | |
5289 | cat confdefs.h >>conftest.$ac_ext | |
5290 | cat >>conftest.$ac_ext <<_ACEOF | |
5291 | /* end confdefs.h. */ | |
5292 | $ac_includes_default | |
631ef239 | 5293 | typedef short ac__type_sizeof_; |
212380e3 AC |
5294 | int |
5295 | main () | |
5296 | { | |
631ef239 | 5297 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5298 | test_array [0] = 0 |
5299 | ||
5300 | ; | |
5301 | return 0; | |
5302 | } | |
5303 | _ACEOF | |
5304 | rm -f conftest.$ac_objext | |
631ef239 AC |
5305 | if { (ac_try="$ac_compile" |
5306 | case "(($ac_try" in | |
5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5308 | *) ac_try_echo=$ac_try;; | |
5309 | esac | |
5310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5311 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5312 | ac_status=$? |
5313 | grep -v '^ *+' conftest.er1 >conftest.err | |
5314 | rm -f conftest.er1 | |
5315 | cat conftest.err >&5 | |
5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5317 | (exit $ac_status); } && { |
5318 | test -z "$ac_c_werror_flag" || | |
5319 | test ! -s conftest.err | |
5320 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5321 | ac_lo=0 ac_mid=0 |
5322 | while :; do | |
5323 | cat >conftest.$ac_ext <<_ACEOF | |
5324 | /* confdefs.h. */ | |
5325 | _ACEOF | |
5326 | cat confdefs.h >>conftest.$ac_ext | |
5327 | cat >>conftest.$ac_ext <<_ACEOF | |
5328 | /* end confdefs.h. */ | |
5329 | $ac_includes_default | |
631ef239 | 5330 | typedef short ac__type_sizeof_; |
212380e3 AC |
5331 | int |
5332 | main () | |
5333 | { | |
631ef239 | 5334 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5335 | test_array [0] = 0 |
5336 | ||
5337 | ; | |
5338 | return 0; | |
5339 | } | |
5340 | _ACEOF | |
5341 | rm -f conftest.$ac_objext | |
631ef239 AC |
5342 | if { (ac_try="$ac_compile" |
5343 | case "(($ac_try" in | |
5344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5345 | *) ac_try_echo=$ac_try;; | |
5346 | esac | |
5347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5348 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5349 | ac_status=$? |
5350 | grep -v '^ *+' conftest.er1 >conftest.err | |
5351 | rm -f conftest.er1 | |
5352 | cat conftest.err >&5 | |
5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5354 | (exit $ac_status); } && { |
5355 | test -z "$ac_c_werror_flag" || | |
5356 | test ! -s conftest.err | |
5357 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5358 | ac_hi=$ac_mid; break |
5359 | else | |
5360 | echo "$as_me: failed program was:" >&5 | |
5361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5362 | ||
631ef239 AC |
5363 | ac_lo=`expr $ac_mid + 1` |
5364 | if test $ac_lo -le $ac_mid; then | |
5365 | ac_lo= ac_hi= | |
5366 | break | |
5367 | fi | |
5368 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5369 | fi |
631ef239 AC |
5370 | |
5371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5372 | done |
5373 | else | |
5374 | echo "$as_me: failed program was:" >&5 | |
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5376 | ||
631ef239 | 5377 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5378 | /* confdefs.h. */ |
5379 | _ACEOF | |
5380 | cat confdefs.h >>conftest.$ac_ext | |
5381 | cat >>conftest.$ac_ext <<_ACEOF | |
5382 | /* end confdefs.h. */ | |
5383 | $ac_includes_default | |
631ef239 | 5384 | typedef short ac__type_sizeof_; |
212380e3 AC |
5385 | int |
5386 | main () | |
5387 | { | |
631ef239 | 5388 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5389 | test_array [0] = 0 |
5390 | ||
5391 | ; | |
5392 | return 0; | |
5393 | } | |
5394 | _ACEOF | |
5395 | rm -f conftest.$ac_objext | |
631ef239 AC |
5396 | if { (ac_try="$ac_compile" |
5397 | case "(($ac_try" in | |
5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5399 | *) ac_try_echo=$ac_try;; | |
5400 | esac | |
5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5402 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5403 | ac_status=$? |
5404 | grep -v '^ *+' conftest.er1 >conftest.err | |
5405 | rm -f conftest.er1 | |
5406 | cat conftest.err >&5 | |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5408 | (exit $ac_status); } && { |
5409 | test -z "$ac_c_werror_flag" || | |
5410 | test ! -s conftest.err | |
5411 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5412 | ac_hi=-1 ac_mid=-1 |
5413 | while :; do | |
5414 | cat >conftest.$ac_ext <<_ACEOF | |
5415 | /* confdefs.h. */ | |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | $ac_includes_default | |
631ef239 | 5421 | typedef short ac__type_sizeof_; |
212380e3 AC |
5422 | int |
5423 | main () | |
5424 | { | |
631ef239 | 5425 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5426 | test_array [0] = 0 |
5427 | ||
5428 | ; | |
5429 | return 0; | |
5430 | } | |
5431 | _ACEOF | |
5432 | rm -f conftest.$ac_objext | |
631ef239 AC |
5433 | if { (ac_try="$ac_compile" |
5434 | case "(($ac_try" in | |
5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5436 | *) ac_try_echo=$ac_try;; | |
5437 | esac | |
5438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5439 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5440 | ac_status=$? |
5441 | grep -v '^ *+' conftest.er1 >conftest.err | |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5445 | (exit $ac_status); } && { |
5446 | test -z "$ac_c_werror_flag" || | |
5447 | test ! -s conftest.err | |
5448 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5449 | ac_lo=$ac_mid; break |
5450 | else | |
5451 | echo "$as_me: failed program was:" >&5 | |
5452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5453 | ||
631ef239 AC |
5454 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5455 | if test $ac_mid -le $ac_hi; then | |
5456 | ac_lo= ac_hi= | |
5457 | break | |
5458 | fi | |
5459 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5460 | fi |
631ef239 AC |
5461 | |
5462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5463 | done |
5464 | else | |
5465 | echo "$as_me: failed program was:" >&5 | |
5466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5467 | ||
631ef239 | 5468 | ac_lo= ac_hi= |
212380e3 | 5469 | fi |
631ef239 AC |
5470 | |
5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5472 | fi |
631ef239 AC |
5473 | |
5474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5475 | # Binary search between lo and hi bounds. |
5476 | while test "x$ac_lo" != "x$ac_hi"; do | |
5477 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5478 | cat >conftest.$ac_ext <<_ACEOF | |
5479 | /* confdefs.h. */ | |
5480 | _ACEOF | |
5481 | cat confdefs.h >>conftest.$ac_ext | |
5482 | cat >>conftest.$ac_ext <<_ACEOF | |
5483 | /* end confdefs.h. */ | |
5484 | $ac_includes_default | |
631ef239 | 5485 | typedef short ac__type_sizeof_; |
212380e3 AC |
5486 | int |
5487 | main () | |
5488 | { | |
631ef239 | 5489 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5490 | test_array [0] = 0 |
5491 | ||
5492 | ; | |
5493 | return 0; | |
5494 | } | |
5495 | _ACEOF | |
5496 | rm -f conftest.$ac_objext | |
631ef239 AC |
5497 | if { (ac_try="$ac_compile" |
5498 | case "(($ac_try" in | |
5499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5500 | *) ac_try_echo=$ac_try;; | |
5501 | esac | |
5502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5503 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5504 | ac_status=$? |
5505 | grep -v '^ *+' conftest.er1 >conftest.err | |
5506 | rm -f conftest.er1 | |
5507 | cat conftest.err >&5 | |
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5509 | (exit $ac_status); } && { |
5510 | test -z "$ac_c_werror_flag" || | |
5511 | test ! -s conftest.err | |
5512 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5513 | ac_hi=$ac_mid |
5514 | else | |
5515 | echo "$as_me: failed program was:" >&5 | |
5516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5517 | ||
631ef239 | 5518 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5519 | fi |
631ef239 AC |
5520 | |
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5522 | done |
5523 | case $ac_lo in | |
5524 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
631ef239 AC |
5525 | '') if test "$ac_cv_type_short" = yes; then |
5526 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5527 | See \`config.log' for more details." >&5 |
631ef239 | 5528 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5529 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5530 | { (exit 77); exit 77; }; } |
5531 | else | |
5532 | ac_cv_sizeof_short=0 | |
5533 | fi ;; | |
212380e3 | 5534 | esac |
212380e3 AC |
5535 | else |
5536 | cat >conftest.$ac_ext <<_ACEOF | |
5537 | /* confdefs.h. */ | |
5538 | _ACEOF | |
5539 | cat confdefs.h >>conftest.$ac_ext | |
5540 | cat >>conftest.$ac_ext <<_ACEOF | |
5541 | /* end confdefs.h. */ | |
5542 | $ac_includes_default | |
631ef239 AC |
5543 | typedef short ac__type_sizeof_; |
5544 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5545 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5546 | #include <stdio.h> |
5547 | #include <stdlib.h> | |
5548 | int | |
5549 | main () | |
5550 | { | |
5551 | ||
5552 | FILE *f = fopen ("conftest.val", "w"); | |
5553 | if (! f) | |
631ef239 AC |
5554 | return 1; |
5555 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5556 | { |
631ef239 AC |
5557 | long int i = longval (); |
5558 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5559 | return 1; | |
212380e3 AC |
5560 | fprintf (f, "%ld\n", i); |
5561 | } | |
5562 | else | |
5563 | { | |
631ef239 AC |
5564 | unsigned long int i = ulongval (); |
5565 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5566 | return 1; | |
212380e3 AC |
5567 | fprintf (f, "%lu\n", i); |
5568 | } | |
631ef239 | 5569 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5570 | |
5571 | ; | |
5572 | return 0; | |
5573 | } | |
5574 | _ACEOF | |
5575 | rm -f conftest$ac_exeext | |
631ef239 AC |
5576 | if { (ac_try="$ac_link" |
5577 | case "(($ac_try" in | |
5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5579 | *) ac_try_echo=$ac_try;; | |
5580 | esac | |
5581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5582 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5583 | ac_status=$? |
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5585 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5586 | { (case "(($ac_try" in |
5587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5588 | *) ac_try_echo=$ac_try;; | |
5589 | esac | |
5590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5591 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5592 | ac_status=$? |
5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5594 | (exit $ac_status); }; }; then | |
5595 | ac_cv_sizeof_short=`cat conftest.val` | |
5596 | else | |
5597 | echo "$as_me: program exited with status $ac_status" >&5 | |
5598 | echo "$as_me: failed program was:" >&5 | |
5599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5600 | ||
5601 | ( exit $ac_status ) | |
631ef239 AC |
5602 | if test "$ac_cv_type_short" = yes; then |
5603 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5604 | See \`config.log' for more details." >&5 |
631ef239 | 5605 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5606 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5607 | { (exit 77); exit 77; }; } |
5608 | else | |
5609 | ac_cv_sizeof_short=0 | |
5610 | fi | |
212380e3 | 5611 | fi |
631ef239 | 5612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
5613 | fi |
5614 | rm -f conftest.val | |
212380e3 | 5615 | fi |
631ef239 AC |
5616 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
5617 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5618 | ||
5619 | ||
5620 | ||
212380e3 AC |
5621 | cat >>confdefs.h <<_ACEOF |
5622 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5623 | _ACEOF | |
5624 | ||
5625 | ||
631ef239 AC |
5626 | { echo "$as_me:$LINENO: checking for int" >&5 |
5627 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
212380e3 AC |
5628 | if test "${ac_cv_type_int+set}" = set; then |
5629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5630 | else | |
5631 | cat >conftest.$ac_ext <<_ACEOF | |
5632 | /* confdefs.h. */ | |
5633 | _ACEOF | |
5634 | cat confdefs.h >>conftest.$ac_ext | |
5635 | cat >>conftest.$ac_ext <<_ACEOF | |
5636 | /* end confdefs.h. */ | |
5637 | $ac_includes_default | |
631ef239 | 5638 | typedef int ac__type_new_; |
212380e3 AC |
5639 | int |
5640 | main () | |
5641 | { | |
631ef239 | 5642 | if ((ac__type_new_ *) 0) |
212380e3 | 5643 | return 0; |
631ef239 | 5644 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5645 | return 0; |
5646 | ; | |
5647 | return 0; | |
5648 | } | |
5649 | _ACEOF | |
5650 | rm -f conftest.$ac_objext | |
631ef239 AC |
5651 | if { (ac_try="$ac_compile" |
5652 | case "(($ac_try" in | |
5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5654 | *) ac_try_echo=$ac_try;; | |
5655 | esac | |
5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5657 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5658 | ac_status=$? |
5659 | grep -v '^ *+' conftest.er1 >conftest.err | |
5660 | rm -f conftest.er1 | |
5661 | cat conftest.err >&5 | |
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5663 | (exit $ac_status); } && { |
5664 | test -z "$ac_c_werror_flag" || | |
5665 | test ! -s conftest.err | |
5666 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5667 | ac_cv_type_int=yes |
5668 | else | |
5669 | echo "$as_me: failed program was:" >&5 | |
5670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5671 | ||
631ef239 | 5672 | ac_cv_type_int=no |
212380e3 | 5673 | fi |
631ef239 AC |
5674 | |
5675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5676 | fi |
631ef239 AC |
5677 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
5678 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
212380e3 | 5679 | |
631ef239 AC |
5680 | # The cast to long int works around a bug in the HP C Compiler |
5681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5683 | # This bug is HP SR number 8606223364. | |
5684 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5685 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
212380e3 AC |
5686 | if test "${ac_cv_sizeof_int+set}" = set; then |
5687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5688 | else | |
212380e3 AC |
5689 | if test "$cross_compiling" = yes; then |
5690 | # Depending upon the size, compute the lo and hi bounds. | |
5691 | cat >conftest.$ac_ext <<_ACEOF | |
5692 | /* confdefs.h. */ | |
5693 | _ACEOF | |
5694 | cat confdefs.h >>conftest.$ac_ext | |
5695 | cat >>conftest.$ac_ext <<_ACEOF | |
5696 | /* end confdefs.h. */ | |
5697 | $ac_includes_default | |
631ef239 | 5698 | typedef int ac__type_sizeof_; |
212380e3 AC |
5699 | int |
5700 | main () | |
5701 | { | |
631ef239 | 5702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5703 | test_array [0] = 0 |
5704 | ||
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
5709 | rm -f conftest.$ac_objext | |
631ef239 AC |
5710 | if { (ac_try="$ac_compile" |
5711 | case "(($ac_try" in | |
5712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5713 | *) ac_try_echo=$ac_try;; | |
5714 | esac | |
5715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5716 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5717 | ac_status=$? |
5718 | grep -v '^ *+' conftest.er1 >conftest.err | |
5719 | rm -f conftest.er1 | |
5720 | cat conftest.err >&5 | |
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5722 | (exit $ac_status); } && { |
5723 | test -z "$ac_c_werror_flag" || | |
5724 | test ! -s conftest.err | |
5725 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5726 | ac_lo=0 ac_mid=0 |
5727 | while :; do | |
5728 | cat >conftest.$ac_ext <<_ACEOF | |
5729 | /* confdefs.h. */ | |
5730 | _ACEOF | |
5731 | cat confdefs.h >>conftest.$ac_ext | |
5732 | cat >>conftest.$ac_ext <<_ACEOF | |
5733 | /* end confdefs.h. */ | |
5734 | $ac_includes_default | |
631ef239 | 5735 | typedef int ac__type_sizeof_; |
212380e3 AC |
5736 | int |
5737 | main () | |
5738 | { | |
631ef239 | 5739 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5740 | test_array [0] = 0 |
5741 | ||
5742 | ; | |
5743 | return 0; | |
5744 | } | |
5745 | _ACEOF | |
5746 | rm -f conftest.$ac_objext | |
631ef239 AC |
5747 | if { (ac_try="$ac_compile" |
5748 | case "(($ac_try" in | |
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5750 | *) ac_try_echo=$ac_try;; | |
5751 | esac | |
5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5753 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5754 | ac_status=$? |
5755 | grep -v '^ *+' conftest.er1 >conftest.err | |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5759 | (exit $ac_status); } && { |
5760 | test -z "$ac_c_werror_flag" || | |
5761 | test ! -s conftest.err | |
5762 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5763 | ac_hi=$ac_mid; break |
5764 | else | |
5765 | echo "$as_me: failed program was:" >&5 | |
5766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5767 | ||
631ef239 AC |
5768 | ac_lo=`expr $ac_mid + 1` |
5769 | if test $ac_lo -le $ac_mid; then | |
5770 | ac_lo= ac_hi= | |
5771 | break | |
5772 | fi | |
5773 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5774 | fi |
631ef239 AC |
5775 | |
5776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5777 | done |
5778 | else | |
5779 | echo "$as_me: failed program was:" >&5 | |
5780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5781 | ||
631ef239 | 5782 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5783 | /* confdefs.h. */ |
5784 | _ACEOF | |
5785 | cat confdefs.h >>conftest.$ac_ext | |
5786 | cat >>conftest.$ac_ext <<_ACEOF | |
5787 | /* end confdefs.h. */ | |
5788 | $ac_includes_default | |
631ef239 | 5789 | typedef int ac__type_sizeof_; |
212380e3 AC |
5790 | int |
5791 | main () | |
5792 | { | |
631ef239 | 5793 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5794 | test_array [0] = 0 |
5795 | ||
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
5800 | rm -f conftest.$ac_objext | |
631ef239 AC |
5801 | if { (ac_try="$ac_compile" |
5802 | case "(($ac_try" in | |
5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5804 | *) ac_try_echo=$ac_try;; | |
5805 | esac | |
5806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5807 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5808 | ac_status=$? |
5809 | grep -v '^ *+' conftest.er1 >conftest.err | |
5810 | rm -f conftest.er1 | |
5811 | cat conftest.err >&5 | |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5813 | (exit $ac_status); } && { |
5814 | test -z "$ac_c_werror_flag" || | |
5815 | test ! -s conftest.err | |
5816 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5817 | ac_hi=-1 ac_mid=-1 |
5818 | while :; do | |
5819 | cat >conftest.$ac_ext <<_ACEOF | |
5820 | /* confdefs.h. */ | |
5821 | _ACEOF | |
5822 | cat confdefs.h >>conftest.$ac_ext | |
5823 | cat >>conftest.$ac_ext <<_ACEOF | |
5824 | /* end confdefs.h. */ | |
5825 | $ac_includes_default | |
631ef239 | 5826 | typedef int ac__type_sizeof_; |
212380e3 AC |
5827 | int |
5828 | main () | |
5829 | { | |
631ef239 | 5830 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5831 | test_array [0] = 0 |
5832 | ||
5833 | ; | |
5834 | return 0; | |
5835 | } | |
5836 | _ACEOF | |
5837 | rm -f conftest.$ac_objext | |
631ef239 AC |
5838 | if { (ac_try="$ac_compile" |
5839 | case "(($ac_try" in | |
5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5841 | *) ac_try_echo=$ac_try;; | |
5842 | esac | |
5843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5844 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5845 | ac_status=$? |
5846 | grep -v '^ *+' conftest.er1 >conftest.err | |
5847 | rm -f conftest.er1 | |
5848 | cat conftest.err >&5 | |
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5850 | (exit $ac_status); } && { |
5851 | test -z "$ac_c_werror_flag" || | |
5852 | test ! -s conftest.err | |
5853 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5854 | ac_lo=$ac_mid; break |
5855 | else | |
5856 | echo "$as_me: failed program was:" >&5 | |
5857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5858 | ||
631ef239 AC |
5859 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5860 | if test $ac_mid -le $ac_hi; then | |
5861 | ac_lo= ac_hi= | |
5862 | break | |
5863 | fi | |
5864 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5865 | fi |
631ef239 AC |
5866 | |
5867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5868 | done |
5869 | else | |
5870 | echo "$as_me: failed program was:" >&5 | |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5872 | ||
631ef239 | 5873 | ac_lo= ac_hi= |
212380e3 | 5874 | fi |
631ef239 AC |
5875 | |
5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5877 | fi |
631ef239 AC |
5878 | |
5879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5880 | # Binary search between lo and hi bounds. |
5881 | while test "x$ac_lo" != "x$ac_hi"; do | |
5882 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5883 | cat >conftest.$ac_ext <<_ACEOF | |
5884 | /* confdefs.h. */ | |
5885 | _ACEOF | |
5886 | cat confdefs.h >>conftest.$ac_ext | |
5887 | cat >>conftest.$ac_ext <<_ACEOF | |
5888 | /* end confdefs.h. */ | |
5889 | $ac_includes_default | |
631ef239 | 5890 | typedef int ac__type_sizeof_; |
212380e3 AC |
5891 | int |
5892 | main () | |
5893 | { | |
631ef239 | 5894 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5895 | test_array [0] = 0 |
5896 | ||
5897 | ; | |
5898 | return 0; | |
5899 | } | |
5900 | _ACEOF | |
5901 | rm -f conftest.$ac_objext | |
631ef239 AC |
5902 | if { (ac_try="$ac_compile" |
5903 | case "(($ac_try" in | |
5904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5905 | *) ac_try_echo=$ac_try;; | |
5906 | esac | |
5907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5908 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5909 | ac_status=$? |
5910 | grep -v '^ *+' conftest.er1 >conftest.err | |
5911 | rm -f conftest.er1 | |
5912 | cat conftest.err >&5 | |
5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5914 | (exit $ac_status); } && { |
5915 | test -z "$ac_c_werror_flag" || | |
5916 | test ! -s conftest.err | |
5917 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5918 | ac_hi=$ac_mid |
5919 | else | |
5920 | echo "$as_me: failed program was:" >&5 | |
5921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5922 | ||
631ef239 | 5923 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5924 | fi |
631ef239 AC |
5925 | |
5926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5927 | done |
5928 | case $ac_lo in | |
5929 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
631ef239 AC |
5930 | '') if test "$ac_cv_type_int" = yes; then |
5931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 5932 | See \`config.log' for more details." >&5 |
631ef239 | 5933 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 5934 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5935 | { (exit 77); exit 77; }; } |
5936 | else | |
5937 | ac_cv_sizeof_int=0 | |
5938 | fi ;; | |
212380e3 | 5939 | esac |
212380e3 AC |
5940 | else |
5941 | cat >conftest.$ac_ext <<_ACEOF | |
5942 | /* confdefs.h. */ | |
5943 | _ACEOF | |
5944 | cat confdefs.h >>conftest.$ac_ext | |
5945 | cat >>conftest.$ac_ext <<_ACEOF | |
5946 | /* end confdefs.h. */ | |
5947 | $ac_includes_default | |
631ef239 AC |
5948 | typedef int ac__type_sizeof_; |
5949 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5950 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5951 | #include <stdio.h> |
5952 | #include <stdlib.h> | |
5953 | int | |
5954 | main () | |
5955 | { | |
5956 | ||
5957 | FILE *f = fopen ("conftest.val", "w"); | |
5958 | if (! f) | |
631ef239 AC |
5959 | return 1; |
5960 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5961 | { |
631ef239 AC |
5962 | long int i = longval (); |
5963 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5964 | return 1; | |
212380e3 AC |
5965 | fprintf (f, "%ld\n", i); |
5966 | } | |
5967 | else | |
5968 | { | |
631ef239 AC |
5969 | unsigned long int i = ulongval (); |
5970 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5971 | return 1; | |
212380e3 AC |
5972 | fprintf (f, "%lu\n", i); |
5973 | } | |
631ef239 | 5974 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5975 | |
5976 | ; | |
5977 | return 0; | |
5978 | } | |
5979 | _ACEOF | |
5980 | rm -f conftest$ac_exeext | |
631ef239 AC |
5981 | if { (ac_try="$ac_link" |
5982 | case "(($ac_try" in | |
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5984 | *) ac_try_echo=$ac_try;; | |
5985 | esac | |
5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5987 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5988 | ac_status=$? |
5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5991 | { (case "(($ac_try" in |
5992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5993 | *) ac_try_echo=$ac_try;; | |
5994 | esac | |
5995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5996 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5997 | ac_status=$? |
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 | (exit $ac_status); }; }; then | |
6000 | ac_cv_sizeof_int=`cat conftest.val` | |
6001 | else | |
6002 | echo "$as_me: program exited with status $ac_status" >&5 | |
6003 | echo "$as_me: failed program was:" >&5 | |
6004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6005 | ||
6006 | ( exit $ac_status ) | |
631ef239 AC |
6007 | if test "$ac_cv_type_int" = yes; then |
6008 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 6009 | See \`config.log' for more details." >&5 |
631ef239 | 6010 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 6011 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6012 | { (exit 77); exit 77; }; } |
6013 | else | |
6014 | ac_cv_sizeof_int=0 | |
6015 | fi | |
212380e3 | 6016 | fi |
631ef239 | 6017 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6018 | fi |
6019 | rm -f conftest.val | |
212380e3 | 6020 | fi |
631ef239 AC |
6021 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6022 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6023 | ||
6024 | ||
6025 | ||
212380e3 AC |
6026 | cat >>confdefs.h <<_ACEOF |
6027 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6028 | _ACEOF | |
6029 | ||
6030 | ||
631ef239 AC |
6031 | { echo "$as_me:$LINENO: checking for long" >&5 |
6032 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
212380e3 AC |
6033 | if test "${ac_cv_type_long+set}" = set; then |
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6035 | else | |
6036 | cat >conftest.$ac_ext <<_ACEOF | |
6037 | /* confdefs.h. */ | |
6038 | _ACEOF | |
6039 | cat confdefs.h >>conftest.$ac_ext | |
6040 | cat >>conftest.$ac_ext <<_ACEOF | |
6041 | /* end confdefs.h. */ | |
6042 | $ac_includes_default | |
631ef239 | 6043 | typedef long ac__type_new_; |
212380e3 AC |
6044 | int |
6045 | main () | |
6046 | { | |
631ef239 | 6047 | if ((ac__type_new_ *) 0) |
212380e3 | 6048 | return 0; |
631ef239 | 6049 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6050 | return 0; |
6051 | ; | |
6052 | return 0; | |
6053 | } | |
6054 | _ACEOF | |
6055 | rm -f conftest.$ac_objext | |
631ef239 AC |
6056 | if { (ac_try="$ac_compile" |
6057 | case "(($ac_try" in | |
6058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6059 | *) ac_try_echo=$ac_try;; | |
6060 | esac | |
6061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6062 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6063 | ac_status=$? |
6064 | grep -v '^ *+' conftest.er1 >conftest.err | |
6065 | rm -f conftest.er1 | |
6066 | cat conftest.err >&5 | |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6068 | (exit $ac_status); } && { |
6069 | test -z "$ac_c_werror_flag" || | |
6070 | test ! -s conftest.err | |
6071 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6072 | ac_cv_type_long=yes |
6073 | else | |
6074 | echo "$as_me: failed program was:" >&5 | |
6075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6076 | ||
631ef239 | 6077 | ac_cv_type_long=no |
212380e3 | 6078 | fi |
631ef239 AC |
6079 | |
6080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6081 | fi |
631ef239 AC |
6082 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6083 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
212380e3 | 6084 | |
631ef239 AC |
6085 | # The cast to long int works around a bug in the HP C Compiler |
6086 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6087 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6088 | # This bug is HP SR number 8606223364. | |
6089 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6090 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
212380e3 AC |
6091 | if test "${ac_cv_sizeof_long+set}" = set; then |
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6093 | else | |
212380e3 AC |
6094 | if test "$cross_compiling" = yes; then |
6095 | # Depending upon the size, compute the lo and hi bounds. | |
6096 | cat >conftest.$ac_ext <<_ACEOF | |
6097 | /* confdefs.h. */ | |
6098 | _ACEOF | |
6099 | cat confdefs.h >>conftest.$ac_ext | |
6100 | cat >>conftest.$ac_ext <<_ACEOF | |
6101 | /* end confdefs.h. */ | |
6102 | $ac_includes_default | |
631ef239 | 6103 | typedef long ac__type_sizeof_; |
212380e3 AC |
6104 | int |
6105 | main () | |
6106 | { | |
631ef239 | 6107 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6108 | test_array [0] = 0 |
6109 | ||
6110 | ; | |
6111 | return 0; | |
6112 | } | |
6113 | _ACEOF | |
6114 | rm -f conftest.$ac_objext | |
631ef239 AC |
6115 | if { (ac_try="$ac_compile" |
6116 | case "(($ac_try" in | |
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6118 | *) ac_try_echo=$ac_try;; | |
6119 | esac | |
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6121 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6122 | ac_status=$? |
6123 | grep -v '^ *+' conftest.er1 >conftest.err | |
6124 | rm -f conftest.er1 | |
6125 | cat conftest.err >&5 | |
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6127 | (exit $ac_status); } && { |
6128 | test -z "$ac_c_werror_flag" || | |
6129 | test ! -s conftest.err | |
6130 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6131 | ac_lo=0 ac_mid=0 |
6132 | while :; do | |
6133 | cat >conftest.$ac_ext <<_ACEOF | |
6134 | /* confdefs.h. */ | |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
6139 | $ac_includes_default | |
631ef239 | 6140 | typedef long ac__type_sizeof_; |
212380e3 AC |
6141 | int |
6142 | main () | |
6143 | { | |
631ef239 | 6144 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6145 | test_array [0] = 0 |
6146 | ||
6147 | ; | |
6148 | return 0; | |
6149 | } | |
6150 | _ACEOF | |
6151 | rm -f conftest.$ac_objext | |
631ef239 AC |
6152 | if { (ac_try="$ac_compile" |
6153 | case "(($ac_try" in | |
6154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6155 | *) ac_try_echo=$ac_try;; | |
6156 | esac | |
6157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6158 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6159 | ac_status=$? |
6160 | grep -v '^ *+' conftest.er1 >conftest.err | |
6161 | rm -f conftest.er1 | |
6162 | cat conftest.err >&5 | |
6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6164 | (exit $ac_status); } && { |
6165 | test -z "$ac_c_werror_flag" || | |
6166 | test ! -s conftest.err | |
6167 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6168 | ac_hi=$ac_mid; break |
6169 | else | |
6170 | echo "$as_me: failed program was:" >&5 | |
6171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6172 | ||
631ef239 AC |
6173 | ac_lo=`expr $ac_mid + 1` |
6174 | if test $ac_lo -le $ac_mid; then | |
6175 | ac_lo= ac_hi= | |
6176 | break | |
6177 | fi | |
6178 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6179 | fi |
631ef239 AC |
6180 | |
6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6182 | done |
6183 | else | |
6184 | echo "$as_me: failed program was:" >&5 | |
6185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6186 | ||
631ef239 | 6187 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6188 | /* confdefs.h. */ |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
6193 | $ac_includes_default | |
631ef239 | 6194 | typedef long ac__type_sizeof_; |
212380e3 AC |
6195 | int |
6196 | main () | |
6197 | { | |
631ef239 | 6198 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6199 | test_array [0] = 0 |
6200 | ||
6201 | ; | |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
6205 | rm -f conftest.$ac_objext | |
631ef239 AC |
6206 | if { (ac_try="$ac_compile" |
6207 | case "(($ac_try" in | |
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6209 | *) ac_try_echo=$ac_try;; | |
6210 | esac | |
6211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6212 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6213 | ac_status=$? |
6214 | grep -v '^ *+' conftest.er1 >conftest.err | |
6215 | rm -f conftest.er1 | |
6216 | cat conftest.err >&5 | |
6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6218 | (exit $ac_status); } && { |
6219 | test -z "$ac_c_werror_flag" || | |
6220 | test ! -s conftest.err | |
6221 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6222 | ac_hi=-1 ac_mid=-1 |
6223 | while :; do | |
6224 | cat >conftest.$ac_ext <<_ACEOF | |
6225 | /* confdefs.h. */ | |
6226 | _ACEOF | |
6227 | cat confdefs.h >>conftest.$ac_ext | |
6228 | cat >>conftest.$ac_ext <<_ACEOF | |
6229 | /* end confdefs.h. */ | |
6230 | $ac_includes_default | |
631ef239 | 6231 | typedef long ac__type_sizeof_; |
212380e3 AC |
6232 | int |
6233 | main () | |
6234 | { | |
631ef239 | 6235 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6236 | test_array [0] = 0 |
6237 | ||
6238 | ; | |
6239 | return 0; | |
6240 | } | |
6241 | _ACEOF | |
6242 | rm -f conftest.$ac_objext | |
631ef239 AC |
6243 | if { (ac_try="$ac_compile" |
6244 | case "(($ac_try" in | |
6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6246 | *) ac_try_echo=$ac_try;; | |
6247 | esac | |
6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6249 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6250 | ac_status=$? |
6251 | grep -v '^ *+' conftest.er1 >conftest.err | |
6252 | rm -f conftest.er1 | |
6253 | cat conftest.err >&5 | |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6255 | (exit $ac_status); } && { |
6256 | test -z "$ac_c_werror_flag" || | |
6257 | test ! -s conftest.err | |
6258 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6259 | ac_lo=$ac_mid; break |
6260 | else | |
6261 | echo "$as_me: failed program was:" >&5 | |
6262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6263 | ||
631ef239 AC |
6264 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6265 | if test $ac_mid -le $ac_hi; then | |
6266 | ac_lo= ac_hi= | |
6267 | break | |
6268 | fi | |
6269 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6270 | fi |
631ef239 AC |
6271 | |
6272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6273 | done |
6274 | else | |
6275 | echo "$as_me: failed program was:" >&5 | |
6276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6277 | ||
631ef239 | 6278 | ac_lo= ac_hi= |
212380e3 | 6279 | fi |
631ef239 AC |
6280 | |
6281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6282 | fi |
631ef239 AC |
6283 | |
6284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6285 | # Binary search between lo and hi bounds. |
6286 | while test "x$ac_lo" != "x$ac_hi"; do | |
6287 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6288 | cat >conftest.$ac_ext <<_ACEOF | |
6289 | /* confdefs.h. */ | |
6290 | _ACEOF | |
6291 | cat confdefs.h >>conftest.$ac_ext | |
6292 | cat >>conftest.$ac_ext <<_ACEOF | |
6293 | /* end confdefs.h. */ | |
6294 | $ac_includes_default | |
631ef239 | 6295 | typedef long ac__type_sizeof_; |
212380e3 AC |
6296 | int |
6297 | main () | |
6298 | { | |
631ef239 | 6299 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6300 | test_array [0] = 0 |
6301 | ||
6302 | ; | |
6303 | return 0; | |
6304 | } | |
6305 | _ACEOF | |
6306 | rm -f conftest.$ac_objext | |
631ef239 AC |
6307 | if { (ac_try="$ac_compile" |
6308 | case "(($ac_try" in | |
6309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6310 | *) ac_try_echo=$ac_try;; | |
6311 | esac | |
6312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6313 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6314 | ac_status=$? |
6315 | grep -v '^ *+' conftest.er1 >conftest.err | |
6316 | rm -f conftest.er1 | |
6317 | cat conftest.err >&5 | |
6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6319 | (exit $ac_status); } && { |
6320 | test -z "$ac_c_werror_flag" || | |
6321 | test ! -s conftest.err | |
6322 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6323 | ac_hi=$ac_mid |
6324 | else | |
6325 | echo "$as_me: failed program was:" >&5 | |
6326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6327 | ||
631ef239 | 6328 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6329 | fi |
631ef239 AC |
6330 | |
6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6332 | done |
6333 | case $ac_lo in | |
6334 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
631ef239 AC |
6335 | '') if test "$ac_cv_type_long" = yes; then |
6336 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6337 | See \`config.log' for more details." >&5 |
631ef239 | 6338 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6339 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6340 | { (exit 77); exit 77; }; } |
6341 | else | |
6342 | ac_cv_sizeof_long=0 | |
6343 | fi ;; | |
212380e3 | 6344 | esac |
212380e3 AC |
6345 | else |
6346 | cat >conftest.$ac_ext <<_ACEOF | |
6347 | /* confdefs.h. */ | |
6348 | _ACEOF | |
6349 | cat confdefs.h >>conftest.$ac_ext | |
6350 | cat >>conftest.$ac_ext <<_ACEOF | |
6351 | /* end confdefs.h. */ | |
6352 | $ac_includes_default | |
631ef239 AC |
6353 | typedef long ac__type_sizeof_; |
6354 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6355 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6356 | #include <stdio.h> |
6357 | #include <stdlib.h> | |
6358 | int | |
6359 | main () | |
6360 | { | |
6361 | ||
6362 | FILE *f = fopen ("conftest.val", "w"); | |
6363 | if (! f) | |
631ef239 AC |
6364 | return 1; |
6365 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6366 | { |
631ef239 AC |
6367 | long int i = longval (); |
6368 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6369 | return 1; | |
212380e3 AC |
6370 | fprintf (f, "%ld\n", i); |
6371 | } | |
6372 | else | |
6373 | { | |
631ef239 AC |
6374 | unsigned long int i = ulongval (); |
6375 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6376 | return 1; | |
212380e3 AC |
6377 | fprintf (f, "%lu\n", i); |
6378 | } | |
631ef239 | 6379 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6380 | |
6381 | ; | |
6382 | return 0; | |
6383 | } | |
6384 | _ACEOF | |
6385 | rm -f conftest$ac_exeext | |
631ef239 AC |
6386 | if { (ac_try="$ac_link" |
6387 | case "(($ac_try" in | |
6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6389 | *) ac_try_echo=$ac_try;; | |
6390 | esac | |
6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6392 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6393 | ac_status=$? |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6396 | { (case "(($ac_try" in |
6397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6398 | *) ac_try_echo=$ac_try;; | |
6399 | esac | |
6400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6401 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6402 | ac_status=$? |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
6405 | ac_cv_sizeof_long=`cat conftest.val` | |
6406 | else | |
6407 | echo "$as_me: program exited with status $ac_status" >&5 | |
6408 | echo "$as_me: failed program was:" >&5 | |
6409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6410 | ||
6411 | ( exit $ac_status ) | |
631ef239 AC |
6412 | if test "$ac_cv_type_long" = yes; then |
6413 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6414 | See \`config.log' for more details." >&5 |
631ef239 | 6415 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6416 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6417 | { (exit 77); exit 77; }; } |
6418 | else | |
6419 | ac_cv_sizeof_long=0 | |
6420 | fi | |
212380e3 | 6421 | fi |
631ef239 | 6422 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6423 | fi |
6424 | rm -f conftest.val | |
212380e3 | 6425 | fi |
631ef239 AC |
6426 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6427 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6428 | ||
6429 | ||
6430 | ||
212380e3 AC |
6431 | cat >>confdefs.h <<_ACEOF |
6432 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6433 | _ACEOF | |
6434 | ||
6435 | ||
631ef239 AC |
6436 | { echo "$as_me:$LINENO: checking for long long" >&5 |
6437 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
212380e3 AC |
6438 | if test "${ac_cv_type_long_long+set}" = set; then |
6439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6440 | else | |
6441 | cat >conftest.$ac_ext <<_ACEOF | |
6442 | /* confdefs.h. */ | |
6443 | _ACEOF | |
6444 | cat confdefs.h >>conftest.$ac_ext | |
6445 | cat >>conftest.$ac_ext <<_ACEOF | |
6446 | /* end confdefs.h. */ | |
6447 | $ac_includes_default | |
631ef239 | 6448 | typedef long long ac__type_new_; |
212380e3 AC |
6449 | int |
6450 | main () | |
6451 | { | |
631ef239 | 6452 | if ((ac__type_new_ *) 0) |
212380e3 | 6453 | return 0; |
631ef239 | 6454 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6455 | return 0; |
6456 | ; | |
6457 | return 0; | |
6458 | } | |
6459 | _ACEOF | |
6460 | rm -f conftest.$ac_objext | |
631ef239 AC |
6461 | if { (ac_try="$ac_compile" |
6462 | case "(($ac_try" in | |
6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6464 | *) ac_try_echo=$ac_try;; | |
6465 | esac | |
6466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6467 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6468 | ac_status=$? |
6469 | grep -v '^ *+' conftest.er1 >conftest.err | |
6470 | rm -f conftest.er1 | |
6471 | cat conftest.err >&5 | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6473 | (exit $ac_status); } && { |
6474 | test -z "$ac_c_werror_flag" || | |
6475 | test ! -s conftest.err | |
6476 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6477 | ac_cv_type_long_long=yes |
6478 | else | |
6479 | echo "$as_me: failed program was:" >&5 | |
6480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6481 | ||
631ef239 | 6482 | ac_cv_type_long_long=no |
212380e3 | 6483 | fi |
631ef239 AC |
6484 | |
6485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6486 | fi |
631ef239 AC |
6487 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6488 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
212380e3 | 6489 | |
631ef239 AC |
6490 | # The cast to long int works around a bug in the HP C Compiler |
6491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6493 | # This bug is HP SR number 8606223364. | |
6494 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6495 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
212380e3 AC |
6496 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
6497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6498 | else | |
212380e3 AC |
6499 | if test "$cross_compiling" = yes; then |
6500 | # Depending upon the size, compute the lo and hi bounds. | |
6501 | cat >conftest.$ac_ext <<_ACEOF | |
6502 | /* confdefs.h. */ | |
6503 | _ACEOF | |
6504 | cat confdefs.h >>conftest.$ac_ext | |
6505 | cat >>conftest.$ac_ext <<_ACEOF | |
6506 | /* end confdefs.h. */ | |
6507 | $ac_includes_default | |
631ef239 | 6508 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6509 | int |
6510 | main () | |
6511 | { | |
631ef239 | 6512 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6513 | test_array [0] = 0 |
6514 | ||
6515 | ; | |
6516 | return 0; | |
6517 | } | |
6518 | _ACEOF | |
6519 | rm -f conftest.$ac_objext | |
631ef239 AC |
6520 | if { (ac_try="$ac_compile" |
6521 | case "(($ac_try" in | |
6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6523 | *) ac_try_echo=$ac_try;; | |
6524 | esac | |
6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6526 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6527 | ac_status=$? |
6528 | grep -v '^ *+' conftest.er1 >conftest.err | |
6529 | rm -f conftest.er1 | |
6530 | cat conftest.err >&5 | |
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6532 | (exit $ac_status); } && { |
6533 | test -z "$ac_c_werror_flag" || | |
6534 | test ! -s conftest.err | |
6535 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6536 | ac_lo=0 ac_mid=0 |
6537 | while :; do | |
6538 | cat >conftest.$ac_ext <<_ACEOF | |
6539 | /* confdefs.h. */ | |
6540 | _ACEOF | |
6541 | cat confdefs.h >>conftest.$ac_ext | |
6542 | cat >>conftest.$ac_ext <<_ACEOF | |
6543 | /* end confdefs.h. */ | |
6544 | $ac_includes_default | |
631ef239 | 6545 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6546 | int |
6547 | main () | |
6548 | { | |
631ef239 | 6549 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6550 | test_array [0] = 0 |
6551 | ||
6552 | ; | |
6553 | return 0; | |
6554 | } | |
6555 | _ACEOF | |
6556 | rm -f conftest.$ac_objext | |
631ef239 AC |
6557 | if { (ac_try="$ac_compile" |
6558 | case "(($ac_try" in | |
6559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6560 | *) ac_try_echo=$ac_try;; | |
6561 | esac | |
6562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6563 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6564 | ac_status=$? |
6565 | grep -v '^ *+' conftest.er1 >conftest.err | |
6566 | rm -f conftest.er1 | |
6567 | cat conftest.err >&5 | |
6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6569 | (exit $ac_status); } && { |
6570 | test -z "$ac_c_werror_flag" || | |
6571 | test ! -s conftest.err | |
6572 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6573 | ac_hi=$ac_mid; break |
6574 | else | |
6575 | echo "$as_me: failed program was:" >&5 | |
6576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6577 | ||
631ef239 AC |
6578 | ac_lo=`expr $ac_mid + 1` |
6579 | if test $ac_lo -le $ac_mid; then | |
6580 | ac_lo= ac_hi= | |
6581 | break | |
6582 | fi | |
6583 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6584 | fi |
631ef239 AC |
6585 | |
6586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6587 | done |
6588 | else | |
6589 | echo "$as_me: failed program was:" >&5 | |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6591 | ||
631ef239 | 6592 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6593 | /* confdefs.h. */ |
6594 | _ACEOF | |
6595 | cat confdefs.h >>conftest.$ac_ext | |
6596 | cat >>conftest.$ac_ext <<_ACEOF | |
6597 | /* end confdefs.h. */ | |
6598 | $ac_includes_default | |
631ef239 | 6599 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6600 | int |
6601 | main () | |
6602 | { | |
631ef239 | 6603 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6604 | test_array [0] = 0 |
6605 | ||
6606 | ; | |
6607 | return 0; | |
6608 | } | |
6609 | _ACEOF | |
6610 | rm -f conftest.$ac_objext | |
631ef239 AC |
6611 | if { (ac_try="$ac_compile" |
6612 | case "(($ac_try" in | |
6613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6614 | *) ac_try_echo=$ac_try;; | |
6615 | esac | |
6616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6617 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6618 | ac_status=$? |
6619 | grep -v '^ *+' conftest.er1 >conftest.err | |
6620 | rm -f conftest.er1 | |
6621 | cat conftest.err >&5 | |
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6623 | (exit $ac_status); } && { |
6624 | test -z "$ac_c_werror_flag" || | |
6625 | test ! -s conftest.err | |
6626 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6627 | ac_hi=-1 ac_mid=-1 |
6628 | while :; do | |
6629 | cat >conftest.$ac_ext <<_ACEOF | |
6630 | /* confdefs.h. */ | |
6631 | _ACEOF | |
6632 | cat confdefs.h >>conftest.$ac_ext | |
6633 | cat >>conftest.$ac_ext <<_ACEOF | |
6634 | /* end confdefs.h. */ | |
6635 | $ac_includes_default | |
631ef239 | 6636 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6637 | int |
6638 | main () | |
6639 | { | |
631ef239 | 6640 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6641 | test_array [0] = 0 |
6642 | ||
6643 | ; | |
6644 | return 0; | |
6645 | } | |
6646 | _ACEOF | |
6647 | rm -f conftest.$ac_objext | |
631ef239 AC |
6648 | if { (ac_try="$ac_compile" |
6649 | case "(($ac_try" in | |
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6651 | *) ac_try_echo=$ac_try;; | |
6652 | esac | |
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6654 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6655 | ac_status=$? |
6656 | grep -v '^ *+' conftest.er1 >conftest.err | |
6657 | rm -f conftest.er1 | |
6658 | cat conftest.err >&5 | |
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6660 | (exit $ac_status); } && { |
6661 | test -z "$ac_c_werror_flag" || | |
6662 | test ! -s conftest.err | |
6663 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6664 | ac_lo=$ac_mid; break |
6665 | else | |
6666 | echo "$as_me: failed program was:" >&5 | |
6667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6668 | ||
631ef239 AC |
6669 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6670 | if test $ac_mid -le $ac_hi; then | |
6671 | ac_lo= ac_hi= | |
6672 | break | |
6673 | fi | |
6674 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6675 | fi |
631ef239 AC |
6676 | |
6677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6678 | done |
6679 | else | |
6680 | echo "$as_me: failed program was:" >&5 | |
6681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6682 | ||
631ef239 | 6683 | ac_lo= ac_hi= |
212380e3 | 6684 | fi |
631ef239 AC |
6685 | |
6686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6687 | fi |
631ef239 AC |
6688 | |
6689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6690 | # Binary search between lo and hi bounds. |
6691 | while test "x$ac_lo" != "x$ac_hi"; do | |
6692 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6693 | cat >conftest.$ac_ext <<_ACEOF | |
6694 | /* confdefs.h. */ | |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
6698 | /* end confdefs.h. */ | |
6699 | $ac_includes_default | |
631ef239 | 6700 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6701 | int |
6702 | main () | |
6703 | { | |
631ef239 | 6704 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6705 | test_array [0] = 0 |
6706 | ||
6707 | ; | |
6708 | return 0; | |
6709 | } | |
6710 | _ACEOF | |
6711 | rm -f conftest.$ac_objext | |
631ef239 AC |
6712 | if { (ac_try="$ac_compile" |
6713 | case "(($ac_try" in | |
6714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6715 | *) ac_try_echo=$ac_try;; | |
6716 | esac | |
6717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6718 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6719 | ac_status=$? |
6720 | grep -v '^ *+' conftest.er1 >conftest.err | |
6721 | rm -f conftest.er1 | |
6722 | cat conftest.err >&5 | |
6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6724 | (exit $ac_status); } && { |
6725 | test -z "$ac_c_werror_flag" || | |
6726 | test ! -s conftest.err | |
6727 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6728 | ac_hi=$ac_mid |
6729 | else | |
6730 | echo "$as_me: failed program was:" >&5 | |
6731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6732 | ||
631ef239 | 6733 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6734 | fi |
631ef239 AC |
6735 | |
6736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6737 | done |
6738 | case $ac_lo in | |
6739 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
631ef239 AC |
6740 | '') if test "$ac_cv_type_long_long" = yes; then |
6741 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6742 | See \`config.log' for more details." >&5 |
631ef239 | 6743 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6744 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6745 | { (exit 77); exit 77; }; } |
6746 | else | |
6747 | ac_cv_sizeof_long_long=0 | |
6748 | fi ;; | |
212380e3 | 6749 | esac |
212380e3 AC |
6750 | else |
6751 | cat >conftest.$ac_ext <<_ACEOF | |
6752 | /* confdefs.h. */ | |
6753 | _ACEOF | |
6754 | cat confdefs.h >>conftest.$ac_ext | |
6755 | cat >>conftest.$ac_ext <<_ACEOF | |
6756 | /* end confdefs.h. */ | |
6757 | $ac_includes_default | |
631ef239 AC |
6758 | typedef long long ac__type_sizeof_; |
6759 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6760 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6761 | #include <stdio.h> |
6762 | #include <stdlib.h> | |
6763 | int | |
6764 | main () | |
6765 | { | |
6766 | ||
6767 | FILE *f = fopen ("conftest.val", "w"); | |
6768 | if (! f) | |
631ef239 AC |
6769 | return 1; |
6770 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6771 | { |
631ef239 AC |
6772 | long int i = longval (); |
6773 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6774 | return 1; | |
212380e3 AC |
6775 | fprintf (f, "%ld\n", i); |
6776 | } | |
6777 | else | |
6778 | { | |
631ef239 AC |
6779 | unsigned long int i = ulongval (); |
6780 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6781 | return 1; | |
212380e3 AC |
6782 | fprintf (f, "%lu\n", i); |
6783 | } | |
631ef239 | 6784 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6785 | |
6786 | ; | |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
6790 | rm -f conftest$ac_exeext | |
631ef239 AC |
6791 | if { (ac_try="$ac_link" |
6792 | case "(($ac_try" in | |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
6796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6797 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6798 | ac_status=$? |
6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6801 | { (case "(($ac_try" in |
6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6803 | *) ac_try_echo=$ac_try;; | |
6804 | esac | |
6805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6806 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6807 | ac_status=$? |
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6809 | (exit $ac_status); }; }; then | |
6810 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6811 | else | |
6812 | echo "$as_me: program exited with status $ac_status" >&5 | |
6813 | echo "$as_me: failed program was:" >&5 | |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6815 | ||
6816 | ( exit $ac_status ) | |
631ef239 AC |
6817 | if test "$ac_cv_type_long_long" = yes; then |
6818 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6819 | See \`config.log' for more details." >&5 |
631ef239 | 6820 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6821 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6822 | { (exit 77); exit 77; }; } |
6823 | else | |
6824 | ac_cv_sizeof_long_long=0 | |
6825 | fi | |
212380e3 | 6826 | fi |
631ef239 | 6827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6828 | fi |
6829 | rm -f conftest.val | |
212380e3 | 6830 | fi |
631ef239 AC |
6831 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6832 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6833 | ||
6834 | ||
6835 | ||
212380e3 AC |
6836 | cat >>confdefs.h <<_ACEOF |
6837 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6838 | _ACEOF | |
6839 | ||
6840 | ||
6841 | ||
6842 | ||
631ef239 AC |
6843 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
6844 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
212380e3 AC |
6845 | if test "${ac_cv_search_socket+set}" = set; then |
6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6847 | else | |
6848 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
6849 | cat >conftest.$ac_ext <<_ACEOF |
6850 | /* confdefs.h. */ | |
6851 | _ACEOF | |
6852 | cat confdefs.h >>conftest.$ac_ext | |
6853 | cat >>conftest.$ac_ext <<_ACEOF | |
6854 | /* end confdefs.h. */ | |
6855 | ||
631ef239 AC |
6856 | /* Override any GCC internal prototype to avoid an error. |
6857 | Use char because int might match the return type of a GCC | |
6858 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6859 | #ifdef __cplusplus |
6860 | extern "C" | |
6861 | #endif | |
212380e3 AC |
6862 | char socket (); |
6863 | int | |
6864 | main () | |
6865 | { | |
631ef239 | 6866 | return socket (); |
212380e3 AC |
6867 | ; |
6868 | return 0; | |
6869 | } | |
6870 | _ACEOF | |
631ef239 AC |
6871 | for ac_lib in '' socket; do |
6872 | if test -z "$ac_lib"; then | |
6873 | ac_res="none required" | |
6874 | else | |
6875 | ac_res=-l$ac_lib | |
6876 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6877 | fi | |
6878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6879 | if { (ac_try="$ac_link" | |
6880 | case "(($ac_try" in | |
6881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6882 | *) ac_try_echo=$ac_try;; | |
6883 | esac | |
6884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6885 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
6886 | ac_status=$? |
6887 | grep -v '^ *+' conftest.er1 >conftest.err | |
6888 | rm -f conftest.er1 | |
6889 | cat conftest.err >&5 | |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6891 | (exit $ac_status); } && { |
6892 | test -z "$ac_c_werror_flag" || | |
6893 | test ! -s conftest.err | |
6894 | } && test -s conftest$ac_exeext && | |
6895 | $as_test_x conftest$ac_exeext; then | |
6896 | ac_cv_search_socket=$ac_res | |
212380e3 AC |
6897 | else |
6898 | echo "$as_me: failed program was:" >&5 | |
6899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6900 | ||
631ef239 | 6901 | |
212380e3 | 6902 | fi |
631ef239 AC |
6903 | |
6904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6905 | conftest$ac_exeext | |
6906 | if test "${ac_cv_search_socket+set}" = set; then | |
6907 | break | |
6908 | fi | |
6909 | done | |
6910 | if test "${ac_cv_search_socket+set}" = set; then | |
6911 | : | |
6912 | else | |
6913 | ac_cv_search_socket=no | |
6914 | fi | |
6915 | rm conftest.$ac_ext | |
6916 | LIBS=$ac_func_search_save_LIBS | |
6917 | fi | |
6918 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
6919 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
6920 | ac_res=$ac_cv_search_socket | |
6921 | if test "$ac_res" != no; then | |
6922 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6923 | ||
6924 | else | |
6925 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
6926 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
6927 | { (exit 1); exit 1; }; } | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | if test x"$SUN" = xyes; then | |
6932 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
6933 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
6934 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6936 | else | |
6937 | ac_func_search_save_LIBS=$LIBS | |
6938 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
6939 | /* confdefs.h. */ |
6940 | _ACEOF | |
6941 | cat confdefs.h >>conftest.$ac_ext | |
6942 | cat >>conftest.$ac_ext <<_ACEOF | |
6943 | /* end confdefs.h. */ | |
6944 | ||
631ef239 AC |
6945 | /* Override any GCC internal prototype to avoid an error. |
6946 | Use char because int might match the return type of a GCC | |
6947 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6948 | #ifdef __cplusplus |
6949 | extern "C" | |
6950 | #endif | |
631ef239 | 6951 | char inet_ntoa (); |
212380e3 AC |
6952 | int |
6953 | main () | |
6954 | { | |
631ef239 | 6955 | return inet_ntoa (); |
212380e3 AC |
6956 | ; |
6957 | return 0; | |
6958 | } | |
6959 | _ACEOF | |
631ef239 AC |
6960 | for ac_lib in '' nsl; do |
6961 | if test -z "$ac_lib"; then | |
6962 | ac_res="none required" | |
6963 | else | |
6964 | ac_res=-l$ac_lib | |
6965 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6966 | fi | |
6967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6968 | if { (ac_try="$ac_link" | |
6969 | case "(($ac_try" in | |
6970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6971 | *) ac_try_echo=$ac_try;; | |
6972 | esac | |
6973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6974 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
6975 | ac_status=$? |
6976 | grep -v '^ *+' conftest.er1 >conftest.err | |
6977 | rm -f conftest.er1 | |
6978 | cat conftest.err >&5 | |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6980 | (exit $ac_status); } && { |
6981 | test -z "$ac_c_werror_flag" || | |
6982 | test ! -s conftest.err | |
6983 | } && test -s conftest$ac_exeext && | |
6984 | $as_test_x conftest$ac_exeext; then | |
6985 | ac_cv_search_inet_ntoa=$ac_res | |
212380e3 AC |
6986 | else |
6987 | echo "$as_me: failed program was:" >&5 | |
6988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6989 | ||
631ef239 | 6990 | |
212380e3 | 6991 | fi |
631ef239 AC |
6992 | |
6993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6994 | conftest$ac_exeext | |
6995 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6996 | break | |
6997 | fi | |
6998 | done | |
6999 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7000 | : | |
7001 | else | |
7002 | ac_cv_search_inet_ntoa=no | |
212380e3 | 7003 | fi |
631ef239 | 7004 | rm conftest.$ac_ext |
212380e3 AC |
7005 | LIBS=$ac_func_search_save_LIBS |
7006 | fi | |
631ef239 AC |
7007 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 |
7008 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7009 | ac_res=$ac_cv_search_inet_ntoa | |
7010 | if test "$ac_res" != no; then | |
7011 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7012 | |
7013 | else | |
631ef239 AC |
7014 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 |
7015 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
212380e3 AC |
7016 | { (exit 1); exit 1; }; } |
7017 | fi | |
7018 | ||
631ef239 | 7019 | fi |
212380e3 | 7020 | |
631ef239 AC |
7021 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7022 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
212380e3 AC |
7023 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7025 | else | |
7026 | cat >conftest.$ac_ext <<_ACEOF | |
7027 | /* confdefs.h. */ | |
7028 | _ACEOF | |
7029 | cat confdefs.h >>conftest.$ac_ext | |
7030 | cat >>conftest.$ac_ext <<_ACEOF | |
7031 | /* end confdefs.h. */ | |
7032 | #include <sys/types.h> | |
7033 | #include <sys/socket.h> | |
7034 | ||
631ef239 | 7035 | typedef socklen_t ac__type_new_; |
212380e3 AC |
7036 | int |
7037 | main () | |
7038 | { | |
631ef239 | 7039 | if ((ac__type_new_ *) 0) |
212380e3 | 7040 | return 0; |
631ef239 | 7041 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7042 | return 0; |
7043 | ; | |
7044 | return 0; | |
7045 | } | |
7046 | _ACEOF | |
7047 | rm -f conftest.$ac_objext | |
631ef239 AC |
7048 | if { (ac_try="$ac_compile" |
7049 | case "(($ac_try" in | |
7050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7051 | *) ac_try_echo=$ac_try;; | |
7052 | esac | |
7053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7054 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7055 | ac_status=$? |
7056 | grep -v '^ *+' conftest.er1 >conftest.err | |
7057 | rm -f conftest.er1 | |
7058 | cat conftest.err >&5 | |
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7060 | (exit $ac_status); } && { |
7061 | test -z "$ac_c_werror_flag" || | |
7062 | test ! -s conftest.err | |
7063 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7064 | ac_cv_type_socklen_t=yes |
7065 | else | |
7066 | echo "$as_me: failed program was:" >&5 | |
7067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7068 | ||
631ef239 | 7069 | ac_cv_type_socklen_t=no |
212380e3 | 7070 | fi |
631ef239 AC |
7071 | |
7072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7073 | fi |
631ef239 AC |
7074 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7075 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
212380e3 AC |
7076 | if test $ac_cv_type_socklen_t = yes; then |
7077 | : | |
7078 | else | |
7079 | ||
7080 | cat >>confdefs.h <<\_ACEOF | |
7081 | #define socklen_t unsigned int | |
7082 | _ACEOF | |
7083 | ||
7084 | fi | |
7085 | ||
7086 | ||
631ef239 | 7087 | # Check whether --enable-ipv6 was given. |
212380e3 | 7088 | if test "${enable_ipv6+set}" = set; then |
631ef239 | 7089 | enableval=$enable_ipv6; ipv6=$enableval |
212380e3 AC |
7090 | else |
7091 | ipv6=no | |
631ef239 AC |
7092 | fi |
7093 | ||
212380e3 | 7094 | |
631ef239 AC |
7095 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
7096 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
212380e3 AC |
7097 | if test "${ac_cv_search_crypt+set}" = set; then |
7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7099 | else | |
7100 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
7101 | cat >conftest.$ac_ext <<_ACEOF |
7102 | /* confdefs.h. */ | |
7103 | _ACEOF | |
7104 | cat confdefs.h >>conftest.$ac_ext | |
7105 | cat >>conftest.$ac_ext <<_ACEOF | |
7106 | /* end confdefs.h. */ | |
7107 | ||
631ef239 AC |
7108 | /* Override any GCC internal prototype to avoid an error. |
7109 | Use char because int might match the return type of a GCC | |
7110 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7111 | #ifdef __cplusplus |
7112 | extern "C" | |
7113 | #endif | |
212380e3 AC |
7114 | char crypt (); |
7115 | int | |
7116 | main () | |
7117 | { | |
631ef239 | 7118 | return crypt (); |
212380e3 AC |
7119 | ; |
7120 | return 0; | |
7121 | } | |
7122 | _ACEOF | |
631ef239 AC |
7123 | for ac_lib in '' crypt descrypt; do |
7124 | if test -z "$ac_lib"; then | |
7125 | ac_res="none required" | |
7126 | else | |
7127 | ac_res=-l$ac_lib | |
7128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7129 | fi | |
7130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7131 | if { (ac_try="$ac_link" | |
7132 | case "(($ac_try" in | |
7133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7134 | *) ac_try_echo=$ac_try;; | |
7135 | esac | |
7136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7137 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7138 | ac_status=$? |
7139 | grep -v '^ *+' conftest.er1 >conftest.err | |
7140 | rm -f conftest.er1 | |
7141 | cat conftest.err >&5 | |
7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7143 | (exit $ac_status); } && { |
7144 | test -z "$ac_c_werror_flag" || | |
7145 | test ! -s conftest.err | |
7146 | } && test -s conftest$ac_exeext && | |
7147 | $as_test_x conftest$ac_exeext; then | |
7148 | ac_cv_search_crypt=$ac_res | |
212380e3 AC |
7149 | else |
7150 | echo "$as_me: failed program was:" >&5 | |
7151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7152 | ||
212380e3 | 7153 | |
631ef239 | 7154 | fi |
212380e3 | 7155 | |
631ef239 AC |
7156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7157 | conftest$ac_exeext | |
7158 | if test "${ac_cv_search_crypt+set}" = set; then | |
7159 | break | |
212380e3 | 7160 | fi |
631ef239 AC |
7161 | done |
7162 | if test "${ac_cv_search_crypt+set}" = set; then | |
7163 | : | |
7164 | else | |
7165 | ac_cv_search_crypt=no | |
212380e3 | 7166 | fi |
631ef239 | 7167 | rm conftest.$ac_ext |
212380e3 AC |
7168 | LIBS=$ac_func_search_save_LIBS |
7169 | fi | |
631ef239 AC |
7170 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
7171 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7172 | ac_res=$ac_cv_search_crypt | |
7173 | if test "$ac_res" != no; then | |
7174 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7175 | |
7176 | fi | |
7177 | ||
7178 | ||
7179 | CRYPT_LIB=$ac_cv_search_crypt | |
7180 | ||
7181 | if test "$CRYPT_LIB" = "none required"; then | |
7182 | unset CRYPT_LIB | |
7183 | elif test "$CRYPT_LIB" = no; then | |
7184 | unset CRYPT_LIB | |
7185 | fi | |
7186 | ||
7187 | ||
7188 | ||
7189 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7190 | VICONF=viconf | |
7191 | else | |
7192 | VICONF="" | |
7193 | fi | |
7194 | ||
7195 | ||
7196 | ||
631ef239 AC |
7197 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
7198 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
212380e3 AC |
7199 | if test "${gcc_cv_header_string+set}" = set; then |
7200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7201 | else | |
7202 | ||
7203 | cat >conftest.$ac_ext <<_ACEOF | |
7204 | #include <string.h> | |
7205 | #include <strings.h> | |
7206 | _ACEOF | |
7207 | rm -f conftest.$ac_objext | |
631ef239 AC |
7208 | if { (ac_try="$ac_compile" |
7209 | case "(($ac_try" in | |
7210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7211 | *) ac_try_echo=$ac_try;; | |
7212 | esac | |
7213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7214 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7215 | ac_status=$? |
7216 | grep -v '^ *+' conftest.er1 >conftest.err | |
7217 | rm -f conftest.er1 | |
7218 | cat conftest.err >&5 | |
7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7220 | (exit $ac_status); } && { |
7221 | test -z "$ac_c_werror_flag" || | |
7222 | test ! -s conftest.err | |
7223 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7224 | gcc_cv_header_string=yes |
7225 | else | |
7226 | echo "$as_me: failed program was:" >&5 | |
7227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7228 | ||
631ef239 | 7229 | gcc_cv_header_string=no |
212380e3 | 7230 | fi |
631ef239 AC |
7231 | |
7232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7233 | |
7234 | fi | |
631ef239 AC |
7235 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
7236 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
212380e3 AC |
7237 | |
7238 | if test "$gcc_cv_header_string" = "yes"; then | |
7239 | ||
7240 | cat >>confdefs.h <<\_ACEOF | |
7241 | #define STRING_WITH_STRINGS 1 | |
7242 | _ACEOF | |
7243 | ||
7244 | fi | |
7245 | ||
631ef239 AC |
7246 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7247 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
7248 | if test "${ac_cv_c_bigendian+set}" = set; then |
7249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7250 | else | |
7251 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7252 | cat >conftest.$ac_ext <<_ACEOF | |
7253 | /* confdefs.h. */ | |
7254 | _ACEOF | |
7255 | cat confdefs.h >>conftest.$ac_ext | |
7256 | cat >>conftest.$ac_ext <<_ACEOF | |
7257 | /* end confdefs.h. */ | |
7258 | #include <sys/types.h> | |
7259 | #include <sys/param.h> | |
7260 | ||
7261 | int | |
7262 | main () | |
7263 | { | |
631ef239 AC |
7264 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
7265 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
7266 | bogus endian macros |
7267 | #endif | |
7268 | ||
7269 | ; | |
7270 | return 0; | |
7271 | } | |
7272 | _ACEOF | |
7273 | rm -f conftest.$ac_objext | |
631ef239 AC |
7274 | if { (ac_try="$ac_compile" |
7275 | case "(($ac_try" in | |
7276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7277 | *) ac_try_echo=$ac_try;; | |
7278 | esac | |
7279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7280 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7281 | ac_status=$? |
7282 | grep -v '^ *+' conftest.er1 >conftest.err | |
7283 | rm -f conftest.er1 | |
7284 | cat conftest.err >&5 | |
7285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7286 | (exit $ac_status); } && { |
7287 | test -z "$ac_c_werror_flag" || | |
7288 | test ! -s conftest.err | |
7289 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7290 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7291 | cat >conftest.$ac_ext <<_ACEOF | |
7292 | /* confdefs.h. */ | |
7293 | _ACEOF | |
7294 | cat confdefs.h >>conftest.$ac_ext | |
7295 | cat >>conftest.$ac_ext <<_ACEOF | |
7296 | /* end confdefs.h. */ | |
7297 | #include <sys/types.h> | |
7298 | #include <sys/param.h> | |
7299 | ||
7300 | int | |
7301 | main () | |
7302 | { | |
7303 | #if BYTE_ORDER != BIG_ENDIAN | |
7304 | not big endian | |
7305 | #endif | |
7306 | ||
7307 | ; | |
7308 | return 0; | |
7309 | } | |
7310 | _ACEOF | |
7311 | rm -f conftest.$ac_objext | |
631ef239 AC |
7312 | if { (ac_try="$ac_compile" |
7313 | case "(($ac_try" in | |
7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7315 | *) ac_try_echo=$ac_try;; | |
7316 | esac | |
7317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7318 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7319 | ac_status=$? |
7320 | grep -v '^ *+' conftest.er1 >conftest.err | |
7321 | rm -f conftest.er1 | |
7322 | cat conftest.err >&5 | |
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7324 | (exit $ac_status); } && { |
7325 | test -z "$ac_c_werror_flag" || | |
7326 | test ! -s conftest.err | |
7327 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7328 | ac_cv_c_bigendian=yes |
7329 | else | |
7330 | echo "$as_me: failed program was:" >&5 | |
7331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7332 | ||
631ef239 | 7333 | ac_cv_c_bigendian=no |
212380e3 | 7334 | fi |
631ef239 AC |
7335 | |
7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7337 | else |
7338 | echo "$as_me: failed program was:" >&5 | |
7339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7340 | ||
631ef239 | 7341 | # It does not; compile a test program. |
212380e3 AC |
7342 | if test "$cross_compiling" = yes; then |
7343 | # try to guess the endianness by grepping values into an object file | |
7344 | ac_cv_c_bigendian=unknown | |
7345 | cat >conftest.$ac_ext <<_ACEOF | |
7346 | /* confdefs.h. */ | |
7347 | _ACEOF | |
7348 | cat confdefs.h >>conftest.$ac_ext | |
7349 | cat >>conftest.$ac_ext <<_ACEOF | |
7350 | /* end confdefs.h. */ | |
631ef239 AC |
7351 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
7352 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 7353 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
7354 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
7355 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
7356 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
7357 | int | |
7358 | main () | |
7359 | { | |
7360 | _ascii (); _ebcdic (); | |
7361 | ; | |
7362 | return 0; | |
7363 | } | |
7364 | _ACEOF | |
7365 | rm -f conftest.$ac_objext | |
631ef239 AC |
7366 | if { (ac_try="$ac_compile" |
7367 | case "(($ac_try" in | |
7368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7369 | *) ac_try_echo=$ac_try;; | |
7370 | esac | |
7371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7372 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7373 | ac_status=$? |
7374 | grep -v '^ *+' conftest.er1 >conftest.err | |
7375 | rm -f conftest.er1 | |
7376 | cat conftest.err >&5 | |
7377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7378 | (exit $ac_status); } && { |
7379 | test -z "$ac_c_werror_flag" || | |
7380 | test ! -s conftest.err | |
7381 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7382 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
7383 | ac_cv_c_bigendian=yes | |
7384 | fi | |
7385 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7386 | if test "$ac_cv_c_bigendian" = unknown; then | |
7387 | ac_cv_c_bigendian=no | |
7388 | else | |
7389 | # finding both strings is unlikely to happen, but who knows? | |
7390 | ac_cv_c_bigendian=unknown | |
7391 | fi | |
7392 | fi | |
7393 | else | |
7394 | echo "$as_me: failed program was:" >&5 | |
7395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7396 | ||
631ef239 | 7397 | |
212380e3 | 7398 | fi |
631ef239 AC |
7399 | |
7400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7401 | else |
7402 | cat >conftest.$ac_ext <<_ACEOF | |
7403 | /* confdefs.h. */ | |
7404 | _ACEOF | |
7405 | cat confdefs.h >>conftest.$ac_ext | |
7406 | cat >>conftest.$ac_ext <<_ACEOF | |
7407 | /* end confdefs.h. */ | |
631ef239 | 7408 | $ac_includes_default |
212380e3 AC |
7409 | int |
7410 | main () | |
7411 | { | |
631ef239 | 7412 | |
212380e3 AC |
7413 | /* Are we little or big endian? From Harbison&Steele. */ |
7414 | union | |
7415 | { | |
631ef239 AC |
7416 | long int l; |
7417 | char c[sizeof (long int)]; | |
212380e3 AC |
7418 | } u; |
7419 | u.l = 1; | |
631ef239 AC |
7420 | return u.c[sizeof (long int) - 1] == 1; |
7421 | ||
7422 | ; | |
7423 | return 0; | |
212380e3 AC |
7424 | } |
7425 | _ACEOF | |
7426 | rm -f conftest$ac_exeext | |
631ef239 AC |
7427 | if { (ac_try="$ac_link" |
7428 | case "(($ac_try" in | |
7429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7430 | *) ac_try_echo=$ac_try;; | |
7431 | esac | |
7432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7433 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
7434 | ac_status=$? |
7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
7437 | { (case "(($ac_try" in |
7438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7439 | *) ac_try_echo=$ac_try;; | |
7440 | esac | |
7441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7442 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
7443 | ac_status=$? |
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7445 | (exit $ac_status); }; }; then | |
7446 | ac_cv_c_bigendian=no | |
7447 | else | |
7448 | echo "$as_me: program exited with status $ac_status" >&5 | |
7449 | echo "$as_me: failed program was:" >&5 | |
7450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7451 | ||
7452 | ( exit $ac_status ) | |
7453 | ac_cv_c_bigendian=yes | |
7454 | fi | |
631ef239 | 7455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 7456 | fi |
631ef239 AC |
7457 | |
7458 | ||
212380e3 | 7459 | fi |
631ef239 AC |
7460 | |
7461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7462 | fi |
631ef239 AC |
7463 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7464 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
7465 | case $ac_cv_c_bigendian in |
7466 | yes) | |
7467 | ||
7468 | cat >>confdefs.h <<\_ACEOF | |
7469 | #define WORDS_BIGENDIAN 1 | |
7470 | _ACEOF | |
7471 | ;; | |
7472 | no) | |
7473 | ;; | |
7474 | *) | |
7475 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7476 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7477 | echo "$as_me: error: unknown endianness | |
7478 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7479 | { (exit 1); exit 1; }; } ;; | |
7480 | esac | |
7481 | ||
7482 | ||
7483 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
631ef239 AC |
7484 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7485 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7486 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7488 | fi | |
631ef239 AC |
7489 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7490 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7491 | else |
7492 | # Is the header compilable? | |
631ef239 AC |
7493 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
7494 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
7495 | cat >conftest.$ac_ext <<_ACEOF |
7496 | /* confdefs.h. */ | |
7497 | _ACEOF | |
7498 | cat confdefs.h >>conftest.$ac_ext | |
7499 | cat >>conftest.$ac_ext <<_ACEOF | |
7500 | /* end confdefs.h. */ | |
7501 | $ac_includes_default | |
7502 | #include <stdarg.h> | |
7503 | _ACEOF | |
7504 | rm -f conftest.$ac_objext | |
631ef239 AC |
7505 | if { (ac_try="$ac_compile" |
7506 | case "(($ac_try" in | |
7507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7508 | *) ac_try_echo=$ac_try;; | |
7509 | esac | |
7510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7511 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7512 | ac_status=$? |
7513 | grep -v '^ *+' conftest.er1 >conftest.err | |
7514 | rm -f conftest.er1 | |
7515 | cat conftest.err >&5 | |
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7517 | (exit $ac_status); } && { |
7518 | test -z "$ac_c_werror_flag" || | |
7519 | test ! -s conftest.err | |
7520 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7521 | ac_header_compiler=yes |
7522 | else | |
7523 | echo "$as_me: failed program was:" >&5 | |
7524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7525 | ||
631ef239 | 7526 | ac_header_compiler=no |
212380e3 | 7527 | fi |
631ef239 AC |
7528 | |
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7530 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7531 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
7532 | |
7533 | # Is the header present? | |
631ef239 AC |
7534 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
7535 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
7536 | cat >conftest.$ac_ext <<_ACEOF |
7537 | /* confdefs.h. */ | |
7538 | _ACEOF | |
7539 | cat confdefs.h >>conftest.$ac_ext | |
7540 | cat >>conftest.$ac_ext <<_ACEOF | |
7541 | /* end confdefs.h. */ | |
7542 | #include <stdarg.h> | |
7543 | _ACEOF | |
631ef239 AC |
7544 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7545 | case "(($ac_try" in | |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
7549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
7551 | ac_status=$? |
7552 | grep -v '^ *+' conftest.er1 >conftest.err | |
7553 | rm -f conftest.er1 | |
7554 | cat conftest.err >&5 | |
7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7556 | (exit $ac_status); } >/dev/null && { |
7557 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7558 | test ! -s conftest.err | |
7559 | }; then | |
212380e3 AC |
7560 | ac_header_preproc=yes |
7561 | else | |
7562 | echo "$as_me: failed program was:" >&5 | |
7563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7564 | ||
7565 | ac_header_preproc=no | |
7566 | fi | |
631ef239 | 7567 | |
212380e3 | 7568 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
7569 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7570 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
7571 | |
7572 | # So? What about this header? | |
7573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7574 | yes:no: ) | |
7575 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7576 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7577 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7578 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7579 | ac_header_preproc=yes | |
7580 | ;; | |
7581 | no:yes:* ) | |
7582 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7583 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7584 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7585 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7586 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7587 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7588 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7589 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7590 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7591 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7592 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7593 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 7594 | |
212380e3 AC |
7595 | ;; |
7596 | esac | |
631ef239 AC |
7597 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7598 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7599 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7601 | else | |
7602 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7603 | fi | |
631ef239 AC |
7604 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7605 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7606 | |
7607 | fi | |
7608 | if test $ac_cv_header_stdarg_h = yes; then | |
7609 | : | |
7610 | else | |
bbe58888 VY |
7611 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&5 |
7612 | echo "$as_me: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&2;} | |
212380e3 AC |
7613 | { (exit 1); exit 1; }; } |
7614 | fi | |
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7620 | ||
631ef239 AC |
7621 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 |
7622 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
212380e3 AC |
7623 | save_CFLAGS=$CFLAGS |
7624 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7625 | ||
7626 | cat >conftest.$ac_ext <<_ACEOF | |
7627 | /* confdefs.h. */ | |
7628 | _ACEOF | |
7629 | cat confdefs.h >>conftest.$ac_ext | |
7630 | cat >>conftest.$ac_ext <<_ACEOF | |
7631 | /* end confdefs.h. */ | |
7632 | #include <string.h> | |
7633 | #include <stdlib.h> | |
7634 | int | |
7635 | main () | |
7636 | { | |
7637 | char *a = malloc(6); | |
7638 | strlcpy(a, "hello", 6); | |
7639 | ||
7640 | ; | |
7641 | return 0; | |
7642 | } | |
7643 | _ACEOF | |
7644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7645 | if { (ac_try="$ac_link" |
7646 | case "(($ac_try" in | |
7647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7648 | *) ac_try_echo=$ac_try;; | |
7649 | esac | |
7650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7651 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7652 | ac_status=$? |
7653 | grep -v '^ *+' conftest.er1 >conftest.err | |
7654 | rm -f conftest.er1 | |
7655 | cat conftest.err >&5 | |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7657 | (exit $ac_status); } && { |
7658 | test -z "$ac_c_werror_flag" || | |
7659 | test ! -s conftest.err | |
7660 | } && test -s conftest$ac_exeext && | |
7661 | $as_test_x conftest$ac_exeext; then | |
7662 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7663 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7664 | |
7665 | cat >>confdefs.h <<\_ACEOF | |
7666 | #define HAVE_STRLCPY 1 | |
7667 | _ACEOF | |
7668 | ||
7669 | else | |
7670 | echo "$as_me: failed program was:" >&5 | |
7671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7672 | ||
631ef239 AC |
7673 | { echo "$as_me:$LINENO: result: no" >&5 |
7674 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7675 | |
7676 | fi | |
631ef239 AC |
7677 | |
7678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7679 | conftest$ac_exeext conftest.$ac_ext |
7680 | ||
631ef239 AC |
7681 | { echo "$as_me:$LINENO: checking for strlcat" >&5 |
7682 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
212380e3 AC |
7683 | cat >conftest.$ac_ext <<_ACEOF |
7684 | /* confdefs.h. */ | |
7685 | _ACEOF | |
7686 | cat confdefs.h >>conftest.$ac_ext | |
7687 | cat >>conftest.$ac_ext <<_ACEOF | |
7688 | /* end confdefs.h. */ | |
7689 | #include <string.h> | |
7690 | #include <stdlib.h> | |
7691 | int | |
7692 | main () | |
7693 | { | |
7694 | char *a = malloc(6); | |
7695 | a[0] = '\0'; | |
7696 | strlcat(a, "hello", 6); | |
7697 | ||
7698 | ; | |
7699 | return 0; | |
7700 | } | |
7701 | _ACEOF | |
7702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7703 | if { (ac_try="$ac_link" |
7704 | case "(($ac_try" in | |
7705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7706 | *) ac_try_echo=$ac_try;; | |
7707 | esac | |
7708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7709 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7710 | ac_status=$? |
7711 | grep -v '^ *+' conftest.er1 >conftest.err | |
7712 | rm -f conftest.er1 | |
7713 | cat conftest.err >&5 | |
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7715 | (exit $ac_status); } && { |
7716 | test -z "$ac_c_werror_flag" || | |
7717 | test ! -s conftest.err | |
7718 | } && test -s conftest$ac_exeext && | |
7719 | $as_test_x conftest$ac_exeext; then | |
7720 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7721 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7722 | |
7723 | cat >>confdefs.h <<\_ACEOF | |
7724 | #define HAVE_STRLCAT 1 | |
7725 | _ACEOF | |
7726 | ||
7727 | else | |
7728 | echo "$as_me: failed program was:" >&5 | |
7729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7730 | ||
631ef239 AC |
7731 | { echo "$as_me:$LINENO: result: no" >&5 |
7732 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7733 | |
7734 | fi | |
631ef239 AC |
7735 | |
7736 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7737 | conftest$ac_exeext conftest.$ac_ext |
7738 | ||
7739 | CFLAGS=$save_CFLAGS | |
7740 | ||
7741 | else | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | for ac_func in strlcat strlcpy | |
7747 | do | |
7748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
7749 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7751 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
7752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7753 | else | |
7754 | cat >conftest.$ac_ext <<_ACEOF | |
7755 | /* confdefs.h. */ | |
7756 | _ACEOF | |
7757 | cat confdefs.h >>conftest.$ac_ext | |
7758 | cat >>conftest.$ac_ext <<_ACEOF | |
7759 | /* end confdefs.h. */ | |
7760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7762 | #define $ac_func innocuous_$ac_func | |
7763 | ||
7764 | /* System header to define __stub macros and hopefully few prototypes, | |
7765 | which can conflict with char $ac_func (); below. | |
7766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7767 | <limits.h> exists even on freestanding compilers. */ | |
7768 | ||
7769 | #ifdef __STDC__ | |
7770 | # include <limits.h> | |
7771 | #else | |
7772 | # include <assert.h> | |
7773 | #endif | |
7774 | ||
7775 | #undef $ac_func | |
7776 | ||
631ef239 AC |
7777 | /* Override any GCC internal prototype to avoid an error. |
7778 | Use char because int might match the return type of a GCC | |
7779 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7780 | #ifdef __cplusplus |
7781 | extern "C" | |
212380e3 | 7782 | #endif |
212380e3 AC |
7783 | char $ac_func (); |
7784 | /* The GNU C library defines this for functions which it implements | |
7785 | to always fail with ENOSYS. Some functions are actually named | |
7786 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 7787 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 7788 | choke me |
212380e3 AC |
7789 | #endif |
7790 | ||
7791 | int | |
7792 | main () | |
7793 | { | |
631ef239 | 7794 | return $ac_func (); |
212380e3 AC |
7795 | ; |
7796 | return 0; | |
7797 | } | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7800 | if { (ac_try="$ac_link" |
7801 | case "(($ac_try" in | |
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7803 | *) ac_try_echo=$ac_try;; | |
7804 | esac | |
7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7806 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7807 | ac_status=$? |
7808 | grep -v '^ *+' conftest.er1 >conftest.err | |
7809 | rm -f conftest.er1 | |
7810 | cat conftest.err >&5 | |
7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7812 | (exit $ac_status); } && { |
7813 | test -z "$ac_c_werror_flag" || | |
7814 | test ! -s conftest.err | |
7815 | } && test -s conftest$ac_exeext && | |
7816 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
7817 | eval "$as_ac_var=yes" |
7818 | else | |
7819 | echo "$as_me: failed program was:" >&5 | |
7820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7821 | ||
631ef239 | 7822 | eval "$as_ac_var=no" |
212380e3 | 7823 | fi |
631ef239 AC |
7824 | |
7825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7826 | conftest$ac_exeext conftest.$ac_ext |
7827 | fi | |
631ef239 AC |
7828 | ac_res=`eval echo '${'$as_ac_var'}'` |
7829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7830 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
7831 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7832 | cat >>confdefs.h <<_ACEOF | |
7833 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7834 | _ACEOF | |
7835 | ||
7836 | fi | |
7837 | done | |
7838 | ||
7839 | ||
7840 | fi | |
7841 | ||
631ef239 AC |
7842 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7843 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
212380e3 AC |
7844 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
7845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7846 | else | |
7847 | cat >conftest.$ac_ext <<_ACEOF | |
7848 | /* confdefs.h. */ | |
7849 | _ACEOF | |
7850 | cat confdefs.h >>conftest.$ac_ext | |
7851 | cat >>conftest.$ac_ext <<_ACEOF | |
7852 | /* end confdefs.h. */ | |
7853 | $ac_includes_default | |
631ef239 | 7854 | typedef u_int32_t ac__type_new_; |
212380e3 AC |
7855 | int |
7856 | main () | |
7857 | { | |
631ef239 | 7858 | if ((ac__type_new_ *) 0) |
212380e3 | 7859 | return 0; |
631ef239 | 7860 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7861 | return 0; |
7862 | ; | |
7863 | return 0; | |
7864 | } | |
7865 | _ACEOF | |
7866 | rm -f conftest.$ac_objext | |
631ef239 AC |
7867 | if { (ac_try="$ac_compile" |
7868 | case "(($ac_try" in | |
7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7870 | *) ac_try_echo=$ac_try;; | |
7871 | esac | |
7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7873 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7874 | ac_status=$? |
7875 | grep -v '^ *+' conftest.er1 >conftest.err | |
7876 | rm -f conftest.er1 | |
7877 | cat conftest.err >&5 | |
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7879 | (exit $ac_status); } && { |
7880 | test -z "$ac_c_werror_flag" || | |
7881 | test ! -s conftest.err | |
7882 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7883 | ac_cv_type_u_int32_t=yes |
7884 | else | |
7885 | echo "$as_me: failed program was:" >&5 | |
7886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7887 | ||
631ef239 | 7888 | ac_cv_type_u_int32_t=no |
212380e3 | 7889 | fi |
631ef239 AC |
7890 | |
7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7892 | fi |
631ef239 AC |
7893 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7894 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
212380e3 AC |
7895 | if test $ac_cv_type_u_int32_t = yes; then |
7896 | : | |
7897 | else | |
7898 | ||
631ef239 AC |
7899 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7900 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
212380e3 AC |
7901 | if test "${ac_cv_type_uint32_t+set}" = set; then |
7902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7903 | else | |
7904 | cat >conftest.$ac_ext <<_ACEOF | |
7905 | /* confdefs.h. */ | |
7906 | _ACEOF | |
7907 | cat confdefs.h >>conftest.$ac_ext | |
7908 | cat >>conftest.$ac_ext <<_ACEOF | |
7909 | /* end confdefs.h. */ | |
7910 | $ac_includes_default | |
631ef239 | 7911 | typedef uint32_t ac__type_new_; |
212380e3 AC |
7912 | int |
7913 | main () | |
7914 | { | |
631ef239 | 7915 | if ((ac__type_new_ *) 0) |
212380e3 | 7916 | return 0; |
631ef239 | 7917 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7918 | return 0; |
7919 | ; | |
7920 | return 0; | |
7921 | } | |
7922 | _ACEOF | |
7923 | rm -f conftest.$ac_objext | |
631ef239 AC |
7924 | if { (ac_try="$ac_compile" |
7925 | case "(($ac_try" in | |
7926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7927 | *) ac_try_echo=$ac_try;; | |
7928 | esac | |
7929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7930 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7931 | ac_status=$? |
7932 | grep -v '^ *+' conftest.er1 >conftest.err | |
7933 | rm -f conftest.er1 | |
7934 | cat conftest.err >&5 | |
7935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7936 | (exit $ac_status); } && { |
7937 | test -z "$ac_c_werror_flag" || | |
7938 | test ! -s conftest.err | |
7939 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7940 | ac_cv_type_uint32_t=yes |
7941 | else | |
7942 | echo "$as_me: failed program was:" >&5 | |
7943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7944 | ||
631ef239 | 7945 | ac_cv_type_uint32_t=no |
212380e3 | 7946 | fi |
631ef239 AC |
7947 | |
7948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7949 | fi |
631ef239 AC |
7950 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
7951 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
212380e3 AC |
7952 | if test $ac_cv_type_uint32_t = yes; then |
7953 | ||
7954 | ||
7955 | cat >>confdefs.h <<\_ACEOF | |
7956 | #define u_int32_t uint32_t | |
7957 | _ACEOF | |
7958 | ||
7959 | ||
7960 | else | |
7961 | ||
7962 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
7963 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
7964 | ||
7965 | cat >>confdefs.h <<\_ACEOF | |
7966 | #define u_int32_t unsigned long int | |
7967 | _ACEOF | |
7968 | ||
7969 | ||
7970 | fi | |
7971 | ||
7972 | ||
7973 | fi | |
7974 | ||
7975 | ||
631ef239 AC |
7976 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
7977 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
212380e3 AC |
7978 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7980 | else | |
7981 | cat >conftest.$ac_ext <<_ACEOF | |
7982 | /* confdefs.h. */ | |
7983 | _ACEOF | |
7984 | cat confdefs.h >>conftest.$ac_ext | |
7985 | cat >>conftest.$ac_ext <<_ACEOF | |
7986 | /* end confdefs.h. */ | |
7987 | $ac_includes_default | |
631ef239 | 7988 | typedef u_int16_t ac__type_new_; |
212380e3 AC |
7989 | int |
7990 | main () | |
7991 | { | |
631ef239 | 7992 | if ((ac__type_new_ *) 0) |
212380e3 | 7993 | return 0; |
631ef239 | 7994 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7995 | return 0; |
7996 | ; | |
7997 | return 0; | |
7998 | } | |
7999 | _ACEOF | |
8000 | rm -f conftest.$ac_objext | |
631ef239 AC |
8001 | if { (ac_try="$ac_compile" |
8002 | case "(($ac_try" in | |
8003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8004 | *) ac_try_echo=$ac_try;; | |
8005 | esac | |
8006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8007 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8008 | ac_status=$? |
8009 | grep -v '^ *+' conftest.er1 >conftest.err | |
8010 | rm -f conftest.er1 | |
8011 | cat conftest.err >&5 | |
8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8013 | (exit $ac_status); } && { |
8014 | test -z "$ac_c_werror_flag" || | |
8015 | test ! -s conftest.err | |
8016 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8017 | ac_cv_type_u_int16_t=yes |
8018 | else | |
8019 | echo "$as_me: failed program was:" >&5 | |
8020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8021 | ||
631ef239 | 8022 | ac_cv_type_u_int16_t=no |
212380e3 | 8023 | fi |
631ef239 AC |
8024 | |
8025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8026 | fi |
631ef239 AC |
8027 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8028 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
212380e3 AC |
8029 | if test $ac_cv_type_u_int16_t = yes; then |
8030 | : | |
8031 | else | |
8032 | ||
631ef239 AC |
8033 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8034 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8035 | if test "${ac_cv_type_uint16_t+set}" = set; then |
8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8037 | else | |
8038 | cat >conftest.$ac_ext <<_ACEOF | |
8039 | /* confdefs.h. */ | |
8040 | _ACEOF | |
8041 | cat confdefs.h >>conftest.$ac_ext | |
8042 | cat >>conftest.$ac_ext <<_ACEOF | |
8043 | /* end confdefs.h. */ | |
8044 | $ac_includes_default | |
631ef239 | 8045 | typedef uint16_t ac__type_new_; |
212380e3 AC |
8046 | int |
8047 | main () | |
8048 | { | |
631ef239 | 8049 | if ((ac__type_new_ *) 0) |
212380e3 | 8050 | return 0; |
631ef239 | 8051 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8052 | return 0; |
8053 | ; | |
8054 | return 0; | |
8055 | } | |
8056 | _ACEOF | |
8057 | rm -f conftest.$ac_objext | |
631ef239 AC |
8058 | if { (ac_try="$ac_compile" |
8059 | case "(($ac_try" in | |
8060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8061 | *) ac_try_echo=$ac_try;; | |
8062 | esac | |
8063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8064 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8065 | ac_status=$? |
8066 | grep -v '^ *+' conftest.er1 >conftest.err | |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8070 | (exit $ac_status); } && { |
8071 | test -z "$ac_c_werror_flag" || | |
8072 | test ! -s conftest.err | |
8073 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8074 | ac_cv_type_uint16_t=yes |
8075 | else | |
8076 | echo "$as_me: failed program was:" >&5 | |
8077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8078 | ||
631ef239 | 8079 | ac_cv_type_uint16_t=no |
212380e3 | 8080 | fi |
631ef239 AC |
8081 | |
8082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8083 | fi |
631ef239 AC |
8084 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8085 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
212380e3 AC |
8086 | if test $ac_cv_type_uint16_t = yes; then |
8087 | ||
8088 | ||
8089 | cat >>confdefs.h <<\_ACEOF | |
8090 | #define u_int16_t uint16_t | |
8091 | _ACEOF | |
8092 | ||
8093 | ||
8094 | else | |
8095 | ||
8096 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8097 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8098 | ||
8099 | cat >>confdefs.h <<\_ACEOF | |
8100 | #define u_int16_t unsigned short int | |
8101 | _ACEOF | |
8102 | ||
8103 | ||
8104 | fi | |
8105 | ||
8106 | ||
8107 | fi | |
8108 | ||
8109 | ||
631ef239 AC |
8110 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8111 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
212380e3 AC |
8112 | if test "${ac_cv_type_in_port_t+set}" = set; then |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8114 | else | |
8115 | cat >conftest.$ac_ext <<_ACEOF | |
8116 | /* confdefs.h. */ | |
8117 | _ACEOF | |
8118 | cat confdefs.h >>conftest.$ac_ext | |
8119 | cat >>conftest.$ac_ext <<_ACEOF | |
8120 | /* end confdefs.h. */ | |
8121 | #include <sys/types.h> | |
8122 | #include <netinet/in.h> | |
8123 | ||
631ef239 | 8124 | typedef in_port_t ac__type_new_; |
212380e3 AC |
8125 | int |
8126 | main () | |
8127 | { | |
631ef239 | 8128 | if ((ac__type_new_ *) 0) |
212380e3 | 8129 | return 0; |
631ef239 | 8130 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8131 | return 0; |
8132 | ; | |
8133 | return 0; | |
8134 | } | |
8135 | _ACEOF | |
8136 | rm -f conftest.$ac_objext | |
631ef239 AC |
8137 | if { (ac_try="$ac_compile" |
8138 | case "(($ac_try" in | |
8139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8140 | *) ac_try_echo=$ac_try;; | |
8141 | esac | |
8142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8143 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8144 | ac_status=$? |
8145 | grep -v '^ *+' conftest.er1 >conftest.err | |
8146 | rm -f conftest.er1 | |
8147 | cat conftest.err >&5 | |
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8149 | (exit $ac_status); } && { |
8150 | test -z "$ac_c_werror_flag" || | |
8151 | test ! -s conftest.err | |
8152 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8153 | ac_cv_type_in_port_t=yes |
8154 | else | |
8155 | echo "$as_me: failed program was:" >&5 | |
8156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8157 | ||
631ef239 | 8158 | ac_cv_type_in_port_t=no |
212380e3 | 8159 | fi |
631ef239 AC |
8160 | |
8161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8162 | fi |
631ef239 AC |
8163 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8164 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
212380e3 AC |
8165 | if test $ac_cv_type_in_port_t = yes; then |
8166 | : | |
8167 | else | |
8168 | ||
8169 | cat >>confdefs.h <<\_ACEOF | |
8170 | #define in_port_t u_int16_t | |
8171 | _ACEOF | |
8172 | ||
8173 | fi | |
8174 | ||
8175 | ||
631ef239 AC |
8176 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8177 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
212380e3 AC |
8178 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
8179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8180 | else | |
8181 | cat >conftest.$ac_ext <<_ACEOF | |
8182 | /* confdefs.h. */ | |
8183 | _ACEOF | |
8184 | cat confdefs.h >>conftest.$ac_ext | |
8185 | cat >>conftest.$ac_ext <<_ACEOF | |
8186 | /* end confdefs.h. */ | |
8187 | #include <sys/types.h> | |
8188 | #include <sys/socket.h> | |
8189 | ||
631ef239 | 8190 | typedef sa_family_t ac__type_new_; |
212380e3 AC |
8191 | int |
8192 | main () | |
8193 | { | |
631ef239 | 8194 | if ((ac__type_new_ *) 0) |
212380e3 | 8195 | return 0; |
631ef239 | 8196 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8197 | return 0; |
8198 | ; | |
8199 | return 0; | |
8200 | } | |
8201 | _ACEOF | |
8202 | rm -f conftest.$ac_objext | |
631ef239 AC |
8203 | if { (ac_try="$ac_compile" |
8204 | case "(($ac_try" in | |
8205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8206 | *) ac_try_echo=$ac_try;; | |
8207 | esac | |
8208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8209 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8210 | ac_status=$? |
8211 | grep -v '^ *+' conftest.er1 >conftest.err | |
8212 | rm -f conftest.er1 | |
8213 | cat conftest.err >&5 | |
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8215 | (exit $ac_status); } && { |
8216 | test -z "$ac_c_werror_flag" || | |
8217 | test ! -s conftest.err | |
8218 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8219 | ac_cv_type_sa_family_t=yes |
8220 | else | |
8221 | echo "$as_me: failed program was:" >&5 | |
8222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8223 | ||
631ef239 | 8224 | ac_cv_type_sa_family_t=no |
212380e3 | 8225 | fi |
631ef239 AC |
8226 | |
8227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8228 | fi |
631ef239 AC |
8229 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8230 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
212380e3 AC |
8231 | if test $ac_cv_type_sa_family_t = yes; then |
8232 | : | |
8233 | else | |
8234 | ||
8235 | cat >>confdefs.h <<\_ACEOF | |
8236 | #define sa_family_t u_int16_t | |
8237 | _ACEOF | |
8238 | ||
8239 | fi | |
8240 | ||
8241 | ||
631ef239 AC |
8242 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
8243 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
212380e3 AC |
8244 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8246 | else | |
8247 | cat >conftest.$ac_ext <<_ACEOF | |
8248 | /* confdefs.h. */ | |
8249 | _ACEOF | |
8250 | cat confdefs.h >>conftest.$ac_ext | |
8251 | cat >>conftest.$ac_ext <<_ACEOF | |
8252 | /* end confdefs.h. */ | |
8253 | $ac_includes_default | |
631ef239 | 8254 | typedef uintptr_t ac__type_new_; |
212380e3 AC |
8255 | int |
8256 | main () | |
8257 | { | |
631ef239 | 8258 | if ((ac__type_new_ *) 0) |
212380e3 | 8259 | return 0; |
631ef239 | 8260 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8261 | return 0; |
8262 | ; | |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
8266 | rm -f conftest.$ac_objext | |
631ef239 AC |
8267 | if { (ac_try="$ac_compile" |
8268 | case "(($ac_try" in | |
8269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8270 | *) ac_try_echo=$ac_try;; | |
8271 | esac | |
8272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8273 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8274 | ac_status=$? |
8275 | grep -v '^ *+' conftest.er1 >conftest.err | |
8276 | rm -f conftest.er1 | |
8277 | cat conftest.err >&5 | |
8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8279 | (exit $ac_status); } && { |
8280 | test -z "$ac_c_werror_flag" || | |
8281 | test ! -s conftest.err | |
8282 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8283 | ac_cv_type_uintptr_t=yes |
8284 | else | |
8285 | echo "$as_me: failed program was:" >&5 | |
8286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8287 | ||
631ef239 | 8288 | ac_cv_type_uintptr_t=no |
212380e3 | 8289 | fi |
631ef239 AC |
8290 | |
8291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8292 | fi |
631ef239 AC |
8293 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
8294 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
212380e3 AC |
8295 | if test $ac_cv_type_uintptr_t = yes; then |
8296 | ||
8297 | cat >>confdefs.h <<_ACEOF | |
8298 | #define HAVE_UINTPTR_T 1 | |
8299 | _ACEOF | |
8300 | ||
8301 | ||
8302 | fi | |
8303 | ||
8304 | ||
8305 | ||
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8312 | do | |
8313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8314 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8316 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8318 | else | |
8319 | cat >conftest.$ac_ext <<_ACEOF | |
8320 | /* confdefs.h. */ | |
8321 | _ACEOF | |
8322 | cat confdefs.h >>conftest.$ac_ext | |
8323 | cat >>conftest.$ac_ext <<_ACEOF | |
8324 | /* end confdefs.h. */ | |
8325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8327 | #define $ac_func innocuous_$ac_func | |
8328 | ||
8329 | /* System header to define __stub macros and hopefully few prototypes, | |
8330 | which can conflict with char $ac_func (); below. | |
8331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8332 | <limits.h> exists even on freestanding compilers. */ | |
8333 | ||
8334 | #ifdef __STDC__ | |
8335 | # include <limits.h> | |
8336 | #else | |
8337 | # include <assert.h> | |
8338 | #endif | |
8339 | ||
8340 | #undef $ac_func | |
8341 | ||
631ef239 AC |
8342 | /* Override any GCC internal prototype to avoid an error. |
8343 | Use char because int might match the return type of a GCC | |
8344 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8345 | #ifdef __cplusplus |
8346 | extern "C" | |
212380e3 | 8347 | #endif |
212380e3 AC |
8348 | char $ac_func (); |
8349 | /* The GNU C library defines this for functions which it implements | |
8350 | to always fail with ENOSYS. Some functions are actually named | |
8351 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8352 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8353 | choke me |
212380e3 AC |
8354 | #endif |
8355 | ||
8356 | int | |
8357 | main () | |
8358 | { | |
631ef239 | 8359 | return $ac_func (); |
212380e3 AC |
8360 | ; |
8361 | return 0; | |
8362 | } | |
8363 | _ACEOF | |
8364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8365 | if { (ac_try="$ac_link" |
8366 | case "(($ac_try" in | |
8367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8368 | *) ac_try_echo=$ac_try;; | |
8369 | esac | |
8370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8371 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8372 | ac_status=$? |
8373 | grep -v '^ *+' conftest.er1 >conftest.err | |
8374 | rm -f conftest.er1 | |
8375 | cat conftest.err >&5 | |
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8377 | (exit $ac_status); } && { |
8378 | test -z "$ac_c_werror_flag" || | |
8379 | test ! -s conftest.err | |
8380 | } && test -s conftest$ac_exeext && | |
8381 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8382 | eval "$as_ac_var=yes" |
8383 | else | |
8384 | echo "$as_me: failed program was:" >&5 | |
8385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8386 | ||
631ef239 | 8387 | eval "$as_ac_var=no" |
212380e3 | 8388 | fi |
631ef239 AC |
8389 | |
8390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8391 | conftest$ac_exeext conftest.$ac_ext |
8392 | fi | |
631ef239 AC |
8393 | ac_res=`eval echo '${'$as_ac_var'}'` |
8394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8395 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8396 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8397 | cat >>confdefs.h <<_ACEOF | |
8398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8399 | _ACEOF | |
8400 | ||
8401 | fi | |
8402 | done | |
8403 | ||
8404 | ||
8405 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8406 | # for constant arguments. Useless! | |
631ef239 AC |
8407 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8408 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
212380e3 AC |
8409 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8411 | else | |
8412 | cat >conftest.$ac_ext <<_ACEOF | |
8413 | /* confdefs.h. */ | |
8414 | _ACEOF | |
8415 | cat confdefs.h >>conftest.$ac_ext | |
8416 | cat >>conftest.$ac_ext <<_ACEOF | |
8417 | /* end confdefs.h. */ | |
8418 | #include <alloca.h> | |
8419 | int | |
8420 | main () | |
8421 | { | |
8422 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 8423 | if (p) return 0; |
212380e3 AC |
8424 | ; |
8425 | return 0; | |
8426 | } | |
8427 | _ACEOF | |
8428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8429 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
212380e3 AC |
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 | |
631ef239 AC |
8441 | (exit $ac_status); } && { |
8442 | test -z "$ac_c_werror_flag" || | |
8443 | test ! -s conftest.err | |
8444 | } && test -s conftest$ac_exeext && | |
8445 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8446 | ac_cv_working_alloca_h=yes |
8447 | else | |
8448 | echo "$as_me: failed program was:" >&5 | |
8449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8450 | ||
631ef239 | 8451 | ac_cv_working_alloca_h=no |
212380e3 | 8452 | fi |
631ef239 AC |
8453 | |
8454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8455 | conftest$ac_exeext conftest.$ac_ext |
8456 | fi | |
631ef239 AC |
8457 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8458 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
8459 | if test $ac_cv_working_alloca_h = yes; then |
8460 | ||
8461 | cat >>confdefs.h <<\_ACEOF | |
8462 | #define HAVE_ALLOCA_H 1 | |
8463 | _ACEOF | |
8464 | ||
8465 | fi | |
8466 | ||
631ef239 AC |
8467 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
8468 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8469 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8471 | else | |
8472 | cat >conftest.$ac_ext <<_ACEOF | |
8473 | /* confdefs.h. */ | |
8474 | _ACEOF | |
8475 | cat confdefs.h >>conftest.$ac_ext | |
8476 | cat >>conftest.$ac_ext <<_ACEOF | |
8477 | /* end confdefs.h. */ | |
8478 | #ifdef __GNUC__ | |
8479 | # define alloca __builtin_alloca | |
8480 | #else | |
8481 | # ifdef _MSC_VER | |
8482 | # include <malloc.h> | |
8483 | # define alloca _alloca | |
8484 | # else | |
631ef239 | 8485 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
8486 | # include <alloca.h> |
8487 | # else | |
8488 | # ifdef _AIX | |
8489 | #pragma alloca | |
8490 | # else | |
8491 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8492 | char *alloca (); | |
8493 | # endif | |
8494 | # endif | |
8495 | # endif | |
8496 | # endif | |
8497 | #endif | |
8498 | ||
8499 | int | |
8500 | main () | |
8501 | { | |
8502 | char *p = (char *) alloca (1); | |
631ef239 | 8503 | if (p) return 0; |
212380e3 AC |
8504 | ; |
8505 | return 0; | |
8506 | } | |
8507 | _ACEOF | |
8508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8509 | if { (ac_try="$ac_link" |
8510 | case "(($ac_try" in | |
8511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8512 | *) ac_try_echo=$ac_try;; | |
8513 | esac | |
8514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8515 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8516 | ac_status=$? |
8517 | grep -v '^ *+' conftest.er1 >conftest.err | |
8518 | rm -f conftest.er1 | |
8519 | cat conftest.err >&5 | |
8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8521 | (exit $ac_status); } && { |
8522 | test -z "$ac_c_werror_flag" || | |
8523 | test ! -s conftest.err | |
8524 | } && test -s conftest$ac_exeext && | |
8525 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8526 | ac_cv_func_alloca_works=yes |
8527 | else | |
8528 | echo "$as_me: failed program was:" >&5 | |
8529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8530 | ||
631ef239 | 8531 | ac_cv_func_alloca_works=no |
212380e3 | 8532 | fi |
631ef239 AC |
8533 | |
8534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8535 | conftest$ac_exeext conftest.$ac_ext |
8536 | fi | |
631ef239 AC |
8537 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8538 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
8539 | |
8540 | if test $ac_cv_func_alloca_works = yes; then | |
8541 | ||
8542 | cat >>confdefs.h <<\_ACEOF | |
8543 | #define HAVE_ALLOCA 1 | |
8544 | _ACEOF | |
8545 | ||
8546 | else | |
8547 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8548 | # that cause trouble. Some versions do not even contain alloca or | |
8549 | # contain a buggy version. If you still want to use their alloca, | |
8550 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8551 | ||
631ef239 | 8552 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 AC |
8553 | |
8554 | cat >>confdefs.h <<\_ACEOF | |
8555 | #define C_ALLOCA 1 | |
8556 | _ACEOF | |
8557 | ||
8558 | ||
631ef239 AC |
8559 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8560 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
212380e3 AC |
8561 | if test "${ac_cv_os_cray+set}" = set; then |
8562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8563 | else | |
8564 | cat >conftest.$ac_ext <<_ACEOF | |
8565 | /* confdefs.h. */ | |
8566 | _ACEOF | |
8567 | cat confdefs.h >>conftest.$ac_ext | |
8568 | cat >>conftest.$ac_ext <<_ACEOF | |
8569 | /* end confdefs.h. */ | |
631ef239 | 8570 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
8571 | webecray |
8572 | #else | |
8573 | wenotbecray | |
8574 | #endif | |
8575 | ||
8576 | _ACEOF | |
8577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8578 | $EGREP "webecray" >/dev/null 2>&1; then | |
8579 | ac_cv_os_cray=yes | |
8580 | else | |
8581 | ac_cv_os_cray=no | |
8582 | fi | |
8583 | rm -f conftest* | |
8584 | ||
8585 | fi | |
631ef239 AC |
8586 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8587 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
212380e3 AC |
8588 | if test $ac_cv_os_cray = yes; then |
8589 | for ac_func in _getb67 GETB67 getb67; do | |
8590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8591 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8593 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8595 | else | |
8596 | cat >conftest.$ac_ext <<_ACEOF | |
8597 | /* confdefs.h. */ | |
8598 | _ACEOF | |
8599 | cat confdefs.h >>conftest.$ac_ext | |
8600 | cat >>conftest.$ac_ext <<_ACEOF | |
8601 | /* end confdefs.h. */ | |
8602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8604 | #define $ac_func innocuous_$ac_func | |
8605 | ||
8606 | /* System header to define __stub macros and hopefully few prototypes, | |
8607 | which can conflict with char $ac_func (); below. | |
8608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8609 | <limits.h> exists even on freestanding compilers. */ | |
8610 | ||
8611 | #ifdef __STDC__ | |
8612 | # include <limits.h> | |
8613 | #else | |
8614 | # include <assert.h> | |
8615 | #endif | |
8616 | ||
8617 | #undef $ac_func | |
8618 | ||
631ef239 AC |
8619 | /* Override any GCC internal prototype to avoid an error. |
8620 | Use char because int might match the return type of a GCC | |
8621 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8622 | #ifdef __cplusplus |
8623 | extern "C" | |
212380e3 | 8624 | #endif |
212380e3 AC |
8625 | char $ac_func (); |
8626 | /* The GNU C library defines this for functions which it implements | |
8627 | to always fail with ENOSYS. Some functions are actually named | |
8628 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8629 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8630 | choke me |
212380e3 AC |
8631 | #endif |
8632 | ||
8633 | int | |
8634 | main () | |
8635 | { | |
631ef239 | 8636 | return $ac_func (); |
212380e3 AC |
8637 | ; |
8638 | return 0; | |
8639 | } | |
8640 | _ACEOF | |
8641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8642 | if { (ac_try="$ac_link" |
8643 | case "(($ac_try" in | |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8645 | *) ac_try_echo=$ac_try;; | |
8646 | esac | |
8647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8648 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8649 | ac_status=$? |
8650 | grep -v '^ *+' conftest.er1 >conftest.err | |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8654 | (exit $ac_status); } && { |
8655 | test -z "$ac_c_werror_flag" || | |
8656 | test ! -s conftest.err | |
8657 | } && test -s conftest$ac_exeext && | |
8658 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8659 | eval "$as_ac_var=yes" |
8660 | else | |
8661 | echo "$as_me: failed program was:" >&5 | |
8662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8663 | ||
631ef239 | 8664 | eval "$as_ac_var=no" |
212380e3 | 8665 | fi |
631ef239 AC |
8666 | |
8667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8668 | conftest$ac_exeext conftest.$ac_ext |
8669 | fi | |
631ef239 AC |
8670 | ac_res=`eval echo '${'$as_ac_var'}'` |
8671 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8672 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8673 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8674 | ||
8675 | cat >>confdefs.h <<_ACEOF | |
8676 | #define CRAY_STACKSEG_END $ac_func | |
8677 | _ACEOF | |
8678 | ||
8679 | break | |
8680 | fi | |
8681 | ||
8682 | done | |
8683 | fi | |
8684 | ||
631ef239 AC |
8685 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8686 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8687 | if test "${ac_cv_c_stack_direction+set}" = set; then |
8688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8689 | else | |
8690 | if test "$cross_compiling" = yes; then | |
8691 | ac_cv_c_stack_direction=0 | |
8692 | else | |
8693 | cat >conftest.$ac_ext <<_ACEOF | |
8694 | /* confdefs.h. */ | |
8695 | _ACEOF | |
8696 | cat confdefs.h >>conftest.$ac_ext | |
8697 | cat >>conftest.$ac_ext <<_ACEOF | |
8698 | /* end confdefs.h. */ | |
631ef239 | 8699 | $ac_includes_default |
212380e3 AC |
8700 | int |
8701 | find_stack_direction () | |
8702 | { | |
8703 | static char *addr = 0; | |
8704 | auto char dummy; | |
8705 | if (addr == 0) | |
8706 | { | |
8707 | addr = &dummy; | |
8708 | return find_stack_direction (); | |
8709 | } | |
8710 | else | |
8711 | return (&dummy > addr) ? 1 : -1; | |
8712 | } | |
8713 | ||
8714 | int | |
8715 | main () | |
8716 | { | |
631ef239 | 8717 | return find_stack_direction () < 0; |
212380e3 AC |
8718 | } |
8719 | _ACEOF | |
8720 | rm -f conftest$ac_exeext | |
631ef239 AC |
8721 | if { (ac_try="$ac_link" |
8722 | case "(($ac_try" in | |
8723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8724 | *) ac_try_echo=$ac_try;; | |
8725 | esac | |
8726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8727 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
8728 | ac_status=$? |
8729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
8731 | { (case "(($ac_try" in |
8732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8733 | *) ac_try_echo=$ac_try;; | |
8734 | esac | |
8735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8736 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
8737 | ac_status=$? |
8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8739 | (exit $ac_status); }; }; then | |
8740 | ac_cv_c_stack_direction=1 | |
8741 | else | |
8742 | echo "$as_me: program exited with status $ac_status" >&5 | |
8743 | echo "$as_me: failed program was:" >&5 | |
8744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8745 | ||
8746 | ( exit $ac_status ) | |
8747 | ac_cv_c_stack_direction=-1 | |
8748 | fi | |
631ef239 | 8749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8750 | fi |
631ef239 AC |
8751 | |
8752 | ||
212380e3 | 8753 | fi |
631ef239 AC |
8754 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8755 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
8756 | |
8757 | cat >>confdefs.h <<_ACEOF | |
8758 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8759 | _ACEOF | |
8760 | ||
8761 | ||
8762 | fi | |
8763 | ||
8764 | ||
8765 | ||
631ef239 AC |
8766 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
8767 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
212380e3 AC |
8768 | if test "${ac_cv_func_nanosleep+set}" = set; then |
8769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8770 | else | |
8771 | cat >conftest.$ac_ext <<_ACEOF | |
8772 | /* confdefs.h. */ | |
8773 | _ACEOF | |
8774 | cat confdefs.h >>conftest.$ac_ext | |
8775 | cat >>conftest.$ac_ext <<_ACEOF | |
8776 | /* end confdefs.h. */ | |
8777 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
8778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8779 | #define nanosleep innocuous_nanosleep | |
8780 | ||
8781 | /* System header to define __stub macros and hopefully few prototypes, | |
8782 | which can conflict with char nanosleep (); below. | |
8783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8784 | <limits.h> exists even on freestanding compilers. */ | |
8785 | ||
8786 | #ifdef __STDC__ | |
8787 | # include <limits.h> | |
8788 | #else | |
8789 | # include <assert.h> | |
8790 | #endif | |
8791 | ||
8792 | #undef nanosleep | |
8793 | ||
631ef239 AC |
8794 | /* Override any GCC internal prototype to avoid an error. |
8795 | Use char because int might match the return type of a GCC | |
8796 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8797 | #ifdef __cplusplus |
8798 | extern "C" | |
212380e3 | 8799 | #endif |
212380e3 AC |
8800 | char nanosleep (); |
8801 | /* The GNU C library defines this for functions which it implements | |
8802 | to always fail with ENOSYS. Some functions are actually named | |
8803 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8804 | #if defined __stub_nanosleep || defined __stub___nanosleep |
212380e3 | 8805 | choke me |
212380e3 AC |
8806 | #endif |
8807 | ||
8808 | int | |
8809 | main () | |
8810 | { | |
631ef239 | 8811 | return nanosleep (); |
212380e3 AC |
8812 | ; |
8813 | return 0; | |
8814 | } | |
8815 | _ACEOF | |
8816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8817 | if { (ac_try="$ac_link" |
8818 | case "(($ac_try" in | |
8819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8820 | *) ac_try_echo=$ac_try;; | |
8821 | esac | |
8822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8823 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8824 | ac_status=$? |
8825 | grep -v '^ *+' conftest.er1 >conftest.err | |
8826 | rm -f conftest.er1 | |
8827 | cat conftest.err >&5 | |
8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8829 | (exit $ac_status); } && { |
8830 | test -z "$ac_c_werror_flag" || | |
8831 | test ! -s conftest.err | |
8832 | } && test -s conftest$ac_exeext && | |
8833 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8834 | ac_cv_func_nanosleep=yes |
8835 | else | |
8836 | echo "$as_me: failed program was:" >&5 | |
8837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8838 | ||
631ef239 | 8839 | ac_cv_func_nanosleep=no |
212380e3 | 8840 | fi |
631ef239 AC |
8841 | |
8842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8843 | conftest$ac_exeext conftest.$ac_ext |
8844 | fi | |
631ef239 AC |
8845 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
8846 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
212380e3 AC |
8847 | if test $ac_cv_func_nanosleep = yes; then |
8848 | : | |
8849 | else | |
631ef239 AC |
8850 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
8851 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
212380e3 AC |
8852 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
8853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8854 | else | |
8855 | ac_check_lib_save_LIBS=$LIBS | |
8856 | LIBS="-lrt $LIBS" | |
8857 | cat >conftest.$ac_ext <<_ACEOF | |
8858 | /* confdefs.h. */ | |
8859 | _ACEOF | |
8860 | cat confdefs.h >>conftest.$ac_ext | |
8861 | cat >>conftest.$ac_ext <<_ACEOF | |
8862 | /* end confdefs.h. */ | |
8863 | ||
631ef239 AC |
8864 | /* Override any GCC internal prototype to avoid an error. |
8865 | Use char because int might match the return type of a GCC | |
8866 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8867 | #ifdef __cplusplus |
8868 | extern "C" | |
8869 | #endif | |
212380e3 AC |
8870 | char nanosleep (); |
8871 | int | |
8872 | main () | |
8873 | { | |
631ef239 | 8874 | return nanosleep (); |
212380e3 AC |
8875 | ; |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8880 | if { (ac_try="$ac_link" |
8881 | case "(($ac_try" in | |
8882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8883 | *) ac_try_echo=$ac_try;; | |
8884 | esac | |
8885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8886 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8887 | ac_status=$? |
8888 | grep -v '^ *+' conftest.er1 >conftest.err | |
8889 | rm -f conftest.er1 | |
8890 | cat conftest.err >&5 | |
8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8892 | (exit $ac_status); } && { |
8893 | test -z "$ac_c_werror_flag" || | |
8894 | test ! -s conftest.err | |
8895 | } && test -s conftest$ac_exeext && | |
8896 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8897 | ac_cv_lib_rt_nanosleep=yes |
8898 | else | |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8901 | ||
631ef239 | 8902 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 8903 | fi |
631ef239 AC |
8904 | |
8905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8906 | conftest$ac_exeext conftest.$ac_ext |
8907 | LIBS=$ac_check_lib_save_LIBS | |
8908 | fi | |
631ef239 AC |
8909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
8910 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
212380e3 AC |
8911 | if test $ac_cv_lib_rt_nanosleep = yes; then |
8912 | LIBS="${LIBS} -lrt" | |
8913 | else | |
631ef239 AC |
8914 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
8915 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
212380e3 AC |
8916 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8918 | else | |
8919 | ac_check_lib_save_LIBS=$LIBS | |
8920 | LIBS="-lposix4 $LIBS" | |
8921 | cat >conftest.$ac_ext <<_ACEOF | |
8922 | /* confdefs.h. */ | |
8923 | _ACEOF | |
8924 | cat confdefs.h >>conftest.$ac_ext | |
8925 | cat >>conftest.$ac_ext <<_ACEOF | |
8926 | /* end confdefs.h. */ | |
8927 | ||
631ef239 AC |
8928 | /* Override any GCC internal prototype to avoid an error. |
8929 | Use char because int might match the return type of a GCC | |
8930 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8931 | #ifdef __cplusplus |
8932 | extern "C" | |
8933 | #endif | |
212380e3 AC |
8934 | char nanosleep (); |
8935 | int | |
8936 | main () | |
8937 | { | |
631ef239 | 8938 | return nanosleep (); |
212380e3 AC |
8939 | ; |
8940 | return 0; | |
8941 | } | |
8942 | _ACEOF | |
8943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8944 | if { (ac_try="$ac_link" |
8945 | case "(($ac_try" in | |
8946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8947 | *) ac_try_echo=$ac_try;; | |
8948 | esac | |
8949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8950 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8951 | ac_status=$? |
8952 | grep -v '^ *+' conftest.er1 >conftest.err | |
8953 | rm -f conftest.er1 | |
8954 | cat conftest.err >&5 | |
8955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8956 | (exit $ac_status); } && { |
8957 | test -z "$ac_c_werror_flag" || | |
8958 | test ! -s conftest.err | |
8959 | } && test -s conftest$ac_exeext && | |
8960 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8961 | ac_cv_lib_posix4_nanosleep=yes |
8962 | else | |
8963 | echo "$as_me: failed program was:" >&5 | |
8964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8965 | ||
631ef239 | 8966 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 8967 | fi |
631ef239 AC |
8968 | |
8969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8970 | conftest$ac_exeext conftest.$ac_ext |
8971 | LIBS=$ac_check_lib_save_LIBS | |
8972 | fi | |
631ef239 AC |
8973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
8974 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
212380e3 AC |
8975 | if test $ac_cv_lib_posix4_nanosleep = yes; then |
8976 | LIBS="${LIBS} -lposix4" | |
8977 | ||
8978 | fi | |
8979 | ||
8980 | fi | |
8981 | ||
8982 | fi | |
8983 | ||
8984 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
8985 | then | |
631ef239 AC |
8986 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 |
8987 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
8988 | else |
8989 | ||
8990 | cat >>confdefs.h <<\_ACEOF | |
8991 | #define HAVE_NANOSLEEP 1 | |
8992 | _ACEOF | |
8993 | ||
8994 | fi | |
8995 | ||
631ef239 AC |
8996 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
8997 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
8998 | # Check whether --enable-openssl was given. | |
212380e3 | 8999 | if test "${enable_openssl+set}" = set; then |
631ef239 | 9000 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
9001 | else |
9002 | cf_enable_openssl="auto" | |
631ef239 AC |
9003 | fi |
9004 | ||
212380e3 AC |
9005 | |
9006 | if test "$cf_enable_openssl" != "no" ; then | |
9007 | cf_openssl_basedir="" | |
9008 | if test "$cf_enable_openssl" != "auto" && | |
9009 | test "$cf_enable_openssl" != "yes" ; then | |
9010 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9011 | else | |
9012 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9013 | /usr/local/openssl ; do | |
9014 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9015 | cf_openssl_basedir="${dirs}" | |
9016 | break | |
9017 | fi | |
9018 | done | |
9019 | unset dirs | |
9020 | fi | |
9021 | if test ! -z "$cf_openssl_basedir"; then | |
9022 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9023 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9024 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9025 | else | |
9026 | cf_openssl_basedir="" | |
9027 | fi | |
9028 | else | |
9029 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9030 | cf_openssl_basedir="/usr" | |
9031 | fi | |
9032 | fi | |
9033 | ||
9034 | if test ! -z "$cf_openssl_basedir"; then | |
631ef239 AC |
9035 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
9036 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
212380e3 AC |
9037 | cf_enable_openssl="yes" |
9038 | else | |
631ef239 AC |
9039 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
9040 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
212380e3 AC |
9041 | cf_enable_openssl="no" |
9042 | fi | |
9043 | unset cf_openssl_basedir | |
9044 | else | |
631ef239 AC |
9045 | { echo "$as_me:$LINENO: result: disabled" >&5 |
9046 | echo "${ECHO_T}disabled" >&6; } | |
212380e3 AC |
9047 | fi |
9048 | ||
9049 | save_CPPFLAGS="$CPPFLAGS" | |
9050 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9051 | save_LIBS="$LIBS" | |
9052 | LIBS="$LIBS $SSL_LIBS" | |
9053 | if test "$cf_enable_openssl" != no; then | |
631ef239 AC |
9054 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
9055 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
212380e3 AC |
9056 | if test "$cross_compiling" = yes; then |
9057 | cf_openssl_version_ok=no | |
9058 | else | |
9059 | cat >conftest.$ac_ext <<_ACEOF | |
9060 | /* confdefs.h. */ | |
9061 | _ACEOF | |
9062 | cat confdefs.h >>conftest.$ac_ext | |
9063 | cat >>conftest.$ac_ext <<_ACEOF | |
9064 | /* end confdefs.h. */ | |
9065 | #include <openssl/opensslv.h> | |
9066 | #include <stdlib.h> | |
9067 | int | |
9068 | main () | |
9069 | { | |
9070 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9071 | exit(0); else exit(1); | |
9072 | ; | |
9073 | return 0; | |
9074 | } | |
9075 | _ACEOF | |
9076 | rm -f conftest$ac_exeext | |
631ef239 AC |
9077 | if { (ac_try="$ac_link" |
9078 | case "(($ac_try" in | |
9079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9080 | *) ac_try_echo=$ac_try;; | |
9081 | esac | |
9082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9083 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9084 | ac_status=$? |
9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9087 | { (case "(($ac_try" in |
9088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9089 | *) ac_try_echo=$ac_try;; | |
9090 | esac | |
9091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9092 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9093 | ac_status=$? |
9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9095 | (exit $ac_status); }; }; then | |
9096 | cf_openssl_version_ok=yes | |
9097 | else | |
9098 | echo "$as_me: program exited with status $ac_status" >&5 | |
9099 | echo "$as_me: failed program was:" >&5 | |
9100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9101 | ||
9102 | ( exit $ac_status ) | |
9103 | cf_openssl_version_ok=no | |
9104 | fi | |
631ef239 | 9105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9106 | fi |
9107 | ||
631ef239 AC |
9108 | |
9109 | ||
212380e3 | 9110 | if test "$cf_openssl_version_ok" = yes; then |
631ef239 AC |
9111 | { echo "$as_me:$LINENO: result: found" >&5 |
9112 | echo "${ECHO_T}found" >&6; } | |
212380e3 AC |
9113 | |
9114 | ENCSPEED=encspeed | |
9115 | ||
9116 | ||
9117 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9118 | ||
631ef239 AC |
9119 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
9120 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
212380e3 AC |
9121 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
9122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9123 | else | |
9124 | ac_check_lib_save_LIBS=$LIBS | |
9125 | LIBS="-lcrypto $LIBS" | |
9126 | cat >conftest.$ac_ext <<_ACEOF | |
9127 | /* confdefs.h. */ | |
9128 | _ACEOF | |
9129 | cat confdefs.h >>conftest.$ac_ext | |
9130 | cat >>conftest.$ac_ext <<_ACEOF | |
9131 | /* end confdefs.h. */ | |
9132 | ||
631ef239 AC |
9133 | /* Override any GCC internal prototype to avoid an error. |
9134 | Use char because int might match the return type of a GCC | |
9135 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9136 | #ifdef __cplusplus |
9137 | extern "C" | |
9138 | #endif | |
212380e3 AC |
9139 | char RSA_free (); |
9140 | int | |
9141 | main () | |
9142 | { | |
631ef239 | 9143 | return RSA_free (); |
212380e3 AC |
9144 | ; |
9145 | return 0; | |
9146 | } | |
9147 | _ACEOF | |
9148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9149 | if { (ac_try="$ac_link" |
9150 | case "(($ac_try" in | |
9151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9152 | *) ac_try_echo=$ac_try;; | |
9153 | esac | |
9154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9155 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9156 | ac_status=$? |
9157 | grep -v '^ *+' conftest.er1 >conftest.err | |
9158 | rm -f conftest.er1 | |
9159 | cat conftest.err >&5 | |
9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9161 | (exit $ac_status); } && { |
9162 | test -z "$ac_c_werror_flag" || | |
9163 | test ! -s conftest.err | |
9164 | } && test -s conftest$ac_exeext && | |
9165 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9166 | ac_cv_lib_crypto_RSA_free=yes |
9167 | else | |
9168 | echo "$as_me: failed program was:" >&5 | |
9169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9170 | ||
631ef239 | 9171 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 9172 | fi |
631ef239 AC |
9173 | |
9174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9175 | conftest$ac_exeext conftest.$ac_ext |
9176 | LIBS=$ac_check_lib_save_LIBS | |
9177 | fi | |
631ef239 AC |
9178 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
9179 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
212380e3 AC |
9180 | if test $ac_cv_lib_crypto_RSA_free = yes; then |
9181 | cat >>confdefs.h <<_ACEOF | |
9182 | #define HAVE_LIBCRYPTO 1 | |
9183 | _ACEOF | |
9184 | ||
9185 | LIBS="-lcrypto $LIBS" | |
9186 | ||
9187 | fi | |
9188 | ||
9189 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9190 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9191 | else | |
631ef239 AC |
9192 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9193 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
9194 | fi |
9195 | fi | |
9196 | ||
9197 | CPPFLAGS="$save_CPPFLAGS" | |
9198 | LIBS="$save_LIBS" | |
9199 | ||
9200 | ||
9201 | ||
9202 | ||
9203 | ||
631ef239 | 9204 | # Check whether --with-zlib-path was given. |
212380e3 | 9205 | if test "${with_zlib_path+set}" = set; then |
631ef239 AC |
9206 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9207 | fi | |
212380e3 | 9208 | |
631ef239 AC |
9209 | |
9210 | # Check whether --enable-zlib was given. | |
212380e3 | 9211 | if test "${enable_zlib+set}" = set; then |
631ef239 | 9212 | enableval=$enable_zlib; zlib=$enableval |
212380e3 AC |
9213 | else |
9214 | zlib=yes | |
631ef239 AC |
9215 | fi |
9216 | ||
212380e3 AC |
9217 | |
9218 | if test "$zlib" = yes; then | |
9219 | ||
9220 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
631ef239 AC |
9221 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9222 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9223 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9225 | fi | |
631ef239 AC |
9226 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9227 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9228 | else |
9229 | # Is the header compilable? | |
631ef239 AC |
9230 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9231 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
9232 | cat >conftest.$ac_ext <<_ACEOF |
9233 | /* confdefs.h. */ | |
9234 | _ACEOF | |
9235 | cat confdefs.h >>conftest.$ac_ext | |
9236 | cat >>conftest.$ac_ext <<_ACEOF | |
9237 | /* end confdefs.h. */ | |
9238 | $ac_includes_default | |
9239 | #include <zlib.h> | |
9240 | _ACEOF | |
9241 | rm -f conftest.$ac_objext | |
631ef239 AC |
9242 | if { (ac_try="$ac_compile" |
9243 | case "(($ac_try" in | |
9244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9245 | *) ac_try_echo=$ac_try;; | |
9246 | esac | |
9247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9248 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
9249 | ac_status=$? |
9250 | grep -v '^ *+' conftest.er1 >conftest.err | |
9251 | rm -f conftest.er1 | |
9252 | cat conftest.err >&5 | |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9254 | (exit $ac_status); } && { |
9255 | test -z "$ac_c_werror_flag" || | |
9256 | test ! -s conftest.err | |
9257 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
9258 | ac_header_compiler=yes |
9259 | else | |
9260 | echo "$as_me: failed program was:" >&5 | |
9261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9262 | ||
631ef239 | 9263 | ac_header_compiler=no |
212380e3 | 9264 | fi |
631ef239 AC |
9265 | |
9266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9267 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9268 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
9269 | |
9270 | # Is the header present? | |
631ef239 AC |
9271 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9272 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
9273 | cat >conftest.$ac_ext <<_ACEOF |
9274 | /* confdefs.h. */ | |
9275 | _ACEOF | |
9276 | cat confdefs.h >>conftest.$ac_ext | |
9277 | cat >>conftest.$ac_ext <<_ACEOF | |
9278 | /* end confdefs.h. */ | |
9279 | #include <zlib.h> | |
9280 | _ACEOF | |
631ef239 AC |
9281 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9282 | case "(($ac_try" in | |
9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9284 | *) ac_try_echo=$ac_try;; | |
9285 | esac | |
9286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9287 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
9288 | ac_status=$? |
9289 | grep -v '^ *+' conftest.er1 >conftest.err | |
9290 | rm -f conftest.er1 | |
9291 | cat conftest.err >&5 | |
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9293 | (exit $ac_status); } >/dev/null && { |
9294 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9295 | test ! -s conftest.err | |
9296 | }; then | |
212380e3 AC |
9297 | ac_header_preproc=yes |
9298 | else | |
9299 | echo "$as_me: failed program was:" >&5 | |
9300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9301 | ||
9302 | ac_header_preproc=no | |
9303 | fi | |
631ef239 | 9304 | |
212380e3 | 9305 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
9306 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9307 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
9308 | |
9309 | # So? What about this header? | |
9310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9311 | yes:no: ) | |
9312 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9313 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9314 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9315 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9316 | ac_header_preproc=yes | |
9317 | ;; | |
9318 | no:yes:* ) | |
9319 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9320 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9321 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9322 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9323 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9324 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9325 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9326 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9327 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9328 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9329 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9330 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9331 | |
212380e3 AC |
9332 | ;; |
9333 | esac | |
631ef239 AC |
9334 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9335 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9336 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9338 | else | |
9339 | ac_cv_header_zlib_h=$ac_header_preproc | |
9340 | fi | |
631ef239 AC |
9341 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9342 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9343 | |
9344 | fi | |
9345 | if test $ac_cv_header_zlib_h = yes; then | |
9346 | ||
631ef239 AC |
9347 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9348 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
212380e3 AC |
9349 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9351 | else | |
9352 | ac_check_lib_save_LIBS=$LIBS | |
9353 | LIBS="-lz $LIBS" | |
9354 | cat >conftest.$ac_ext <<_ACEOF | |
9355 | /* confdefs.h. */ | |
9356 | _ACEOF | |
9357 | cat confdefs.h >>conftest.$ac_ext | |
9358 | cat >>conftest.$ac_ext <<_ACEOF | |
9359 | /* end confdefs.h. */ | |
9360 | ||
631ef239 AC |
9361 | /* Override any GCC internal prototype to avoid an error. |
9362 | Use char because int might match the return type of a GCC | |
9363 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9364 | #ifdef __cplusplus |
9365 | extern "C" | |
9366 | #endif | |
212380e3 AC |
9367 | char zlibVersion (); |
9368 | int | |
9369 | main () | |
9370 | { | |
631ef239 | 9371 | return zlibVersion (); |
212380e3 AC |
9372 | ; |
9373 | return 0; | |
9374 | } | |
9375 | _ACEOF | |
9376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
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 | |
212380e3 AC |
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 | |
631ef239 AC |
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 | |
212380e3 AC |
9394 | ac_cv_lib_z_zlibVersion=yes |
9395 | else | |
9396 | echo "$as_me: failed program was:" >&5 | |
9397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9398 | ||
631ef239 | 9399 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 9400 | fi |
631ef239 AC |
9401 | |
9402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9403 | conftest$ac_exeext conftest.$ac_ext |
9404 | LIBS=$ac_check_lib_save_LIBS | |
9405 | fi | |
631ef239 AC |
9406 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9407 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
212380e3 AC |
9408 | if test $ac_cv_lib_z_zlibVersion = yes; then |
9409 | ||
9410 | ZLIB_LD=-lz | |
9411 | ||
9412 | ||
9413 | cat >>confdefs.h <<\_ACEOF | |
9414 | #define HAVE_LIBZ 1 | |
9415 | _ACEOF | |
9416 | ||
9417 | ||
9418 | else | |
9419 | zlib=no | |
9420 | fi | |
9421 | ||
9422 | ||
9423 | else | |
9424 | zlib=no | |
9425 | fi | |
9426 | ||
9427 | ||
9428 | ||
9429 | fi | |
9430 | ||
9431 | ||
c1c5fdc4 AC |
9432 | # Check whether --enable-ports was given. |
9433 | if test "${enable_ports+set}" = set; then | |
9434 | enableval=$enable_ports; if test $enableval = yes; then | |
9435 | SELECT_TYPE_EXPLICIT="ports" | |
9436 | else | |
9437 | use_ports=no | |
9438 | fi | |
9439 | ||
9440 | fi | |
9441 | ||
9442 | ||
631ef239 | 9443 | # Check whether --enable-poll was given. |
212380e3 | 9444 | if test "${enable_poll+set}" = set; then |
631ef239 | 9445 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
9446 | SELECT_TYPE_EXPLICIT="poll" |
9447 | else | |
9448 | use_poll=no | |
9449 | fi | |
9450 | ||
631ef239 AC |
9451 | fi |
9452 | ||
212380e3 | 9453 | |
631ef239 | 9454 | # Check whether --enable-select was given. |
212380e3 | 9455 | if test "${enable_select+set}" = set; then |
631ef239 | 9456 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
9457 | SELECT_TYPE_EXPLICIT="select" |
9458 | else | |
9459 | use_select=no | |
9460 | fi | |
9461 | ||
631ef239 AC |
9462 | fi |
9463 | ||
212380e3 | 9464 | |
631ef239 | 9465 | # Check whether --enable-kqueue was given. |
212380e3 | 9466 | if test "${enable_kqueue+set}" = set; then |
631ef239 | 9467 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
9468 | SELECT_TYPE_EXPLICIT="kqueue" |
9469 | else | |
9470 | use_kqueue=no | |
9471 | fi | |
9472 | ||
631ef239 AC |
9473 | fi |
9474 | ||
212380e3 | 9475 | |
631ef239 | 9476 | # Check whether --enable-epoll was given. |
212380e3 | 9477 | if test "${enable_epoll+set}" = set; then |
631ef239 | 9478 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 9479 | SELECT_TYPE_EXPLICIT="epoll" |
3ad1a781 JT |
9480 | |
9481 | for ac_func in epoll_ctl | |
9482 | do | |
9483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9484 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9486 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3ad1a781 JT |
9487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9488 | else | |
9489 | cat >conftest.$ac_ext <<_ACEOF | |
9490 | /* confdefs.h. */ | |
9491 | _ACEOF | |
9492 | cat confdefs.h >>conftest.$ac_ext | |
9493 | cat >>conftest.$ac_ext <<_ACEOF | |
9494 | /* end confdefs.h. */ | |
9495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9497 | #define $ac_func innocuous_$ac_func | |
9498 | ||
9499 | /* System header to define __stub macros and hopefully few prototypes, | |
9500 | which can conflict with char $ac_func (); below. | |
9501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9502 | <limits.h> exists even on freestanding compilers. */ | |
9503 | ||
9504 | #ifdef __STDC__ | |
9505 | # include <limits.h> | |
9506 | #else | |
9507 | # include <assert.h> | |
9508 | #endif | |
9509 | ||
9510 | #undef $ac_func | |
9511 | ||
631ef239 AC |
9512 | /* Override any GCC internal prototype to avoid an error. |
9513 | Use char because int might match the return type of a GCC | |
9514 | builtin and then its argument prototype would still apply. */ | |
3ad1a781 JT |
9515 | #ifdef __cplusplus |
9516 | extern "C" | |
3ad1a781 | 9517 | #endif |
3ad1a781 JT |
9518 | char $ac_func (); |
9519 | /* The GNU C library defines this for functions which it implements | |
9520 | to always fail with ENOSYS. Some functions are actually named | |
9521 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9522 | #if defined __stub_$ac_func || defined __stub___$ac_func |
3ad1a781 | 9523 | choke me |
3ad1a781 JT |
9524 | #endif |
9525 | ||
9526 | int | |
9527 | main () | |
9528 | { | |
631ef239 | 9529 | return $ac_func (); |
3ad1a781 JT |
9530 | ; |
9531 | return 0; | |
9532 | } | |
9533 | _ACEOF | |
9534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9535 | if { (ac_try="$ac_link" |
9536 | case "(($ac_try" in | |
9537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9538 | *) ac_try_echo=$ac_try;; | |
9539 | esac | |
9540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9541 | (eval "$ac_link") 2>conftest.er1 | |
3ad1a781 JT |
9542 | ac_status=$? |
9543 | grep -v '^ *+' conftest.er1 >conftest.err | |
9544 | rm -f conftest.er1 | |
9545 | cat conftest.err >&5 | |
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9547 | (exit $ac_status); } && { |
9548 | test -z "$ac_c_werror_flag" || | |
9549 | test ! -s conftest.err | |
9550 | } && test -s conftest$ac_exeext && | |
9551 | $as_test_x conftest$ac_exeext; then | |
3ad1a781 JT |
9552 | eval "$as_ac_var=yes" |
9553 | else | |
9554 | echo "$as_me: failed program was:" >&5 | |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9556 | ||
631ef239 | 9557 | eval "$as_ac_var=no" |
3ad1a781 | 9558 | fi |
631ef239 AC |
9559 | |
9560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3ad1a781 JT |
9561 | conftest$ac_exeext conftest.$ac_ext |
9562 | fi | |
631ef239 AC |
9563 | ac_res=`eval echo '${'$as_ac_var'}'` |
9564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9565 | echo "${ECHO_T}$ac_res" >&6; } | |
3ad1a781 JT |
9566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9567 | cat >>confdefs.h <<_ACEOF | |
9568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9569 | _ACEOF | |
9570 | haveepoll=yes | |
9571 | else | |
9572 | haveepoll=no | |
9573 | fi | |
9574 | done | |
9575 | ||
212380e3 AC |
9576 | else |
9577 | use_epoll=no | |
9578 | fi | |
9579 | ||
631ef239 AC |
9580 | fi |
9581 | ||
212380e3 AC |
9582 | |
9583 | ||
631ef239 AC |
9584 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 |
9585 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
212380e3 | 9586 | |
631ef239 | 9587 | # Check whether --with-confdir was given. |
212380e3 | 9588 | if test "${with_confdir+set}" = set; then |
631ef239 AC |
9589 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
9590 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9591 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9592 | |
9593 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9594 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9595 | ac_define_dir=`eval echo $confdir` | |
9596 | ac_define_dir=`eval echo $ac_define_dir` | |
9597 | ETC_DIR="$ac_define_dir" | |
9598 | ||
9599 | ||
9600 | cat >>confdefs.h <<_ACEOF | |
9601 | #define ETC_DIR "$ac_define_dir" | |
9602 | _ACEOF | |
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | confdir=`( | |
9608 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9609 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9610 | eval echo \""$confdir"\" | |
9611 | )` | |
9612 | ||
9613 | ||
9614 | else | |
9615 | confdir='${prefix}/etc' | |
631ef239 AC |
9616 | { echo "$as_me:$LINENO: result: no" >&5 |
9617 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9618 | |
9619 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9620 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9621 | ac_define_dir=`eval echo $confdir` | |
9622 | ac_define_dir=`eval echo $ac_define_dir` | |
9623 | ETC_DIR="$ac_define_dir" | |
9624 | ||
9625 | ||
9626 | cat >>confdefs.h <<_ACEOF | |
9627 | #define ETC_DIR "$ac_define_dir" | |
9628 | _ACEOF | |
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | confdir=`( | |
9634 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9635 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9636 | eval echo \""$confdir"\" | |
9637 | )` | |
9638 | ||
9639 | ||
9640 | ||
631ef239 AC |
9641 | fi |
9642 | ||
212380e3 AC |
9643 | |
9644 | ||
631ef239 AC |
9645 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 |
9646 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
212380e3 | 9647 | |
631ef239 | 9648 | # Check whether --with-logdir was given. |
212380e3 | 9649 | if test "${with_logdir+set}" = set; then |
631ef239 AC |
9650 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
9651 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9652 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9653 | |
9654 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9655 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9656 | ac_define_dir=`eval echo $logdir` | |
9657 | ac_define_dir=`eval echo $ac_define_dir` | |
9658 | LOG_DIR="$ac_define_dir" | |
9659 | ||
9660 | ||
9661 | cat >>confdefs.h <<_ACEOF | |
9662 | #define LOG_DIR "$ac_define_dir" | |
9663 | _ACEOF | |
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | logdir=`( | |
9669 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9670 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9671 | eval echo \""$logdir"\" | |
9672 | )` | |
9673 | ||
9674 | ||
9675 | else | |
9676 | logdir='${prefix}/logs' | |
631ef239 AC |
9677 | { echo "$as_me:$LINENO: result: no" >&5 |
9678 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9679 | |
9680 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9681 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9682 | ac_define_dir=`eval echo $logdir` | |
9683 | ac_define_dir=`eval echo $ac_define_dir` | |
9684 | LOG_DIR="$ac_define_dir" | |
9685 | ||
9686 | ||
9687 | cat >>confdefs.h <<_ACEOF | |
9688 | #define LOG_DIR "$ac_define_dir" | |
9689 | _ACEOF | |
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | logdir=`( | |
9695 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9696 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9697 | eval echo \""$logdir"\" | |
9698 | )` | |
9699 | ||
9700 | ||
9701 | ||
631ef239 AC |
9702 | fi |
9703 | ||
212380e3 AC |
9704 | |
9705 | ||
631ef239 AC |
9706 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 |
9707 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
212380e3 | 9708 | |
631ef239 | 9709 | # Check whether --with-helpdir was given. |
212380e3 | 9710 | if test "${with_helpdir+set}" = set; then |
631ef239 AC |
9711 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
9712 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9713 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9714 | |
9715 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9716 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9717 | ac_define_dir=`eval echo $helpdir` | |
9718 | ac_define_dir=`eval echo $ac_define_dir` | |
9719 | HELP_DIR="$ac_define_dir" | |
9720 | ||
9721 | ||
9722 | cat >>confdefs.h <<_ACEOF | |
9723 | #define HELP_DIR "$ac_define_dir" | |
9724 | _ACEOF | |
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | helpdir=`( | |
9730 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9731 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9732 | eval echo \""$helpdir"\" | |
9733 | )` | |
9734 | ||
9735 | ||
9736 | else | |
9737 | helpdir='${prefix}/help' | |
631ef239 AC |
9738 | { echo "$as_me:$LINENO: result: no" >&5 |
9739 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9740 | |
9741 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9743 | ac_define_dir=`eval echo $helpdir` | |
9744 | ac_define_dir=`eval echo $ac_define_dir` | |
9745 | HELP_DIR="$ac_define_dir" | |
9746 | ||
9747 | ||
9748 | cat >>confdefs.h <<_ACEOF | |
9749 | #define HELP_DIR "$ac_define_dir" | |
9750 | _ACEOF | |
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | helpdir=`( | |
9756 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9757 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9758 | eval echo \""$helpdir"\" | |
9759 | )` | |
9760 | ||
9761 | ||
9762 | ||
631ef239 AC |
9763 | fi |
9764 | ||
212380e3 AC |
9765 | |
9766 | ||
631ef239 AC |
9767 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 |
9768 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
212380e3 | 9769 | |
631ef239 | 9770 | # Check whether --with-moduledir was given. |
212380e3 | 9771 | if test "${with_moduledir+set}" = set; then |
631ef239 AC |
9772 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
9773 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9774 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9775 | |
9776 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9777 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9778 | ac_define_dir=`eval echo $moduledir` | |
9779 | ac_define_dir=`eval echo $ac_define_dir` | |
9780 | MODULE_DIR="$ac_define_dir" | |
9781 | ||
9782 | ||
9783 | cat >>confdefs.h <<_ACEOF | |
9784 | #define MODULE_DIR "$ac_define_dir" | |
9785 | _ACEOF | |
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | moduledir=`( | |
9791 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9792 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9793 | eval echo \""$moduledir"\" | |
9794 | )` | |
9795 | ||
9796 | ||
9797 | else | |
9798 | moduledir='${prefix}/modules' | |
631ef239 AC |
9799 | { echo "$as_me:$LINENO: result: no" >&5 |
9800 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9801 | |
9802 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9803 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9804 | ac_define_dir=`eval echo $moduledir` | |
9805 | ac_define_dir=`eval echo $ac_define_dir` | |
9806 | MODULE_DIR="$ac_define_dir" | |
9807 | ||
9808 | ||
9809 | cat >>confdefs.h <<_ACEOF | |
9810 | #define MODULE_DIR "$ac_define_dir" | |
9811 | _ACEOF | |
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | moduledir=`( | |
9817 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9818 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9819 | eval echo \""$moduledir"\" | |
9820 | )` | |
9821 | ||
9822 | ||
9823 | ||
631ef239 AC |
9824 | fi |
9825 | ||
212380e3 AC |
9826 | |
9827 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
9828 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
9829 | echo "Forcing $SELECT_TYPE to be enabled" | |
9830 | else | |
9831 | ||
c1c5fdc4 AC |
9832 | if test ! "x$use_ports" = "xno"; then |
9833 | ||
9834 | for ac_func in port_getn | |
9835 | do | |
9836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9837 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9839 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9841 | else | |
9842 | cat >conftest.$ac_ext <<_ACEOF | |
9843 | /* confdefs.h. */ | |
9844 | _ACEOF | |
9845 | cat confdefs.h >>conftest.$ac_ext | |
9846 | cat >>conftest.$ac_ext <<_ACEOF | |
9847 | /* end confdefs.h. */ | |
9848 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9850 | #define $ac_func innocuous_$ac_func | |
9851 | ||
9852 | /* System header to define __stub macros and hopefully few prototypes, | |
9853 | which can conflict with char $ac_func (); below. | |
9854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9855 | <limits.h> exists even on freestanding compilers. */ | |
9856 | ||
9857 | #ifdef __STDC__ | |
9858 | # include <limits.h> | |
9859 | #else | |
9860 | # include <assert.h> | |
9861 | #endif | |
9862 | ||
9863 | #undef $ac_func | |
9864 | ||
9865 | /* Override any GCC internal prototype to avoid an error. | |
9866 | Use char because int might match the return type of a GCC | |
9867 | builtin and then its argument prototype would still apply. */ | |
9868 | #ifdef __cplusplus | |
9869 | extern "C" | |
9870 | #endif | |
9871 | char $ac_func (); | |
9872 | /* The GNU C library defines this for functions which it implements | |
9873 | to always fail with ENOSYS. Some functions are actually named | |
9874 | something starting with __ and the normal name is an alias. */ | |
9875 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
9876 | choke me | |
9877 | #endif | |
9878 | ||
9879 | int | |
9880 | main () | |
9881 | { | |
9882 | return $ac_func (); | |
9883 | ; | |
9884 | return 0; | |
9885 | } | |
9886 | _ACEOF | |
9887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9888 | if { (ac_try="$ac_link" | |
9889 | case "(($ac_try" in | |
9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9891 | *) ac_try_echo=$ac_try;; | |
9892 | esac | |
9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9894 | (eval "$ac_link") 2>conftest.er1 | |
9895 | ac_status=$? | |
9896 | grep -v '^ *+' conftest.er1 >conftest.err | |
9897 | rm -f conftest.er1 | |
9898 | cat conftest.err >&5 | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); } && { | |
9901 | test -z "$ac_c_werror_flag" || | |
9902 | test ! -s conftest.err | |
9903 | } && test -s conftest$ac_exeext && | |
9904 | $as_test_x conftest$ac_exeext; then | |
9905 | eval "$as_ac_var=yes" | |
9906 | else | |
9907 | echo "$as_me: failed program was:" >&5 | |
9908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9909 | ||
9910 | eval "$as_ac_var=no" | |
9911 | fi | |
9912 | ||
9913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9914 | conftest$ac_exeext conftest.$ac_ext | |
9915 | fi | |
9916 | ac_res=`eval echo '${'$as_ac_var'}'` | |
9917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9918 | echo "${ECHO_T}$ac_res" >&6; } | |
9919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9920 | cat >>confdefs.h <<_ACEOF | |
9921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9922 | _ACEOF | |
9923 | haveports=yes | |
9924 | else | |
9925 | haveports=no | |
9926 | fi | |
9927 | done | |
9928 | ||
9929 | if test "x$haveports" = "xyes" ; then | |
9930 | SELECT_TYPE="ports" | |
9931 | fi | |
9932 | fi | |
9933 | ||
212380e3 AC |
9934 | if test ! "x$use_select" = "xno"; then |
9935 | ||
9936 | for ac_func in select | |
9937 | do | |
9938 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9939 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9940 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9941 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
9942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9943 | else | |
9944 | cat >conftest.$ac_ext <<_ACEOF | |
9945 | /* confdefs.h. */ | |
9946 | _ACEOF | |
9947 | cat confdefs.h >>conftest.$ac_ext | |
9948 | cat >>conftest.$ac_ext <<_ACEOF | |
9949 | /* end confdefs.h. */ | |
9950 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9952 | #define $ac_func innocuous_$ac_func | |
9953 | ||
9954 | /* System header to define __stub macros and hopefully few prototypes, | |
9955 | which can conflict with char $ac_func (); below. | |
9956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9957 | <limits.h> exists even on freestanding compilers. */ | |
9958 | ||
9959 | #ifdef __STDC__ | |
9960 | # include <limits.h> | |
9961 | #else | |
9962 | # include <assert.h> | |
9963 | #endif | |
9964 | ||
9965 | #undef $ac_func | |
9966 | ||
631ef239 AC |
9967 | /* Override any GCC internal prototype to avoid an error. |
9968 | Use char because int might match the return type of a GCC | |
9969 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9970 | #ifdef __cplusplus |
9971 | extern "C" | |
212380e3 | 9972 | #endif |
212380e3 AC |
9973 | char $ac_func (); |
9974 | /* The GNU C library defines this for functions which it implements | |
9975 | to always fail with ENOSYS. Some functions are actually named | |
9976 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9977 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 9978 | choke me |
212380e3 AC |
9979 | #endif |
9980 | ||
9981 | int | |
9982 | main () | |
9983 | { | |
631ef239 | 9984 | return $ac_func (); |
212380e3 AC |
9985 | ; |
9986 | return 0; | |
9987 | } | |
9988 | _ACEOF | |
9989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9990 | if { (ac_try="$ac_link" |
9991 | case "(($ac_try" in | |
9992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9993 | *) ac_try_echo=$ac_try;; | |
9994 | esac | |
9995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9996 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9997 | ac_status=$? |
9998 | grep -v '^ *+' conftest.er1 >conftest.err | |
9999 | rm -f conftest.er1 | |
10000 | cat conftest.err >&5 | |
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10002 | (exit $ac_status); } && { |
10003 | test -z "$ac_c_werror_flag" || | |
10004 | test ! -s conftest.err | |
10005 | } && test -s conftest$ac_exeext && | |
10006 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10007 | eval "$as_ac_var=yes" |
10008 | else | |
10009 | echo "$as_me: failed program was:" >&5 | |
10010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10011 | ||
631ef239 | 10012 | eval "$as_ac_var=no" |
212380e3 | 10013 | fi |
631ef239 AC |
10014 | |
10015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10016 | conftest$ac_exeext conftest.$ac_ext |
10017 | fi | |
631ef239 AC |
10018 | ac_res=`eval echo '${'$as_ac_var'}'` |
10019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10020 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10021 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10022 | cat >>confdefs.h <<_ACEOF | |
10023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10024 | _ACEOF | |
10025 | haveselect=yes | |
10026 | else | |
10027 | haveselect=no | |
10028 | fi | |
10029 | done | |
10030 | ||
10031 | if test "x$haveselect" = "xyes" ; then | |
10032 | SELECT_TYPE="select" | |
10033 | fi | |
10034 | fi | |
10035 | ||
10036 | if test ! "x$use_poll" = "xno"; then | |
10037 | ||
10038 | for ac_func in poll | |
10039 | do | |
10040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10041 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10043 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10045 | else | |
10046 | cat >conftest.$ac_ext <<_ACEOF | |
10047 | /* confdefs.h. */ | |
10048 | _ACEOF | |
10049 | cat confdefs.h >>conftest.$ac_ext | |
10050 | cat >>conftest.$ac_ext <<_ACEOF | |
10051 | /* end confdefs.h. */ | |
10052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10054 | #define $ac_func innocuous_$ac_func | |
10055 | ||
10056 | /* System header to define __stub macros and hopefully few prototypes, | |
10057 | which can conflict with char $ac_func (); below. | |
10058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10059 | <limits.h> exists even on freestanding compilers. */ | |
10060 | ||
10061 | #ifdef __STDC__ | |
10062 | # include <limits.h> | |
10063 | #else | |
10064 | # include <assert.h> | |
10065 | #endif | |
10066 | ||
10067 | #undef $ac_func | |
10068 | ||
631ef239 AC |
10069 | /* Override any GCC internal prototype to avoid an error. |
10070 | Use char because int might match the return type of a GCC | |
10071 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10072 | #ifdef __cplusplus |
10073 | extern "C" | |
212380e3 | 10074 | #endif |
212380e3 AC |
10075 | char $ac_func (); |
10076 | /* The GNU C library defines this for functions which it implements | |
10077 | to always fail with ENOSYS. Some functions are actually named | |
10078 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10079 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10080 | choke me |
212380e3 AC |
10081 | #endif |
10082 | ||
10083 | int | |
10084 | main () | |
10085 | { | |
631ef239 | 10086 | return $ac_func (); |
212380e3 AC |
10087 | ; |
10088 | return 0; | |
10089 | } | |
10090 | _ACEOF | |
10091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10092 | if { (ac_try="$ac_link" |
10093 | case "(($ac_try" in | |
10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10095 | *) ac_try_echo=$ac_try;; | |
10096 | esac | |
10097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10098 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10099 | ac_status=$? |
10100 | grep -v '^ *+' conftest.er1 >conftest.err | |
10101 | rm -f conftest.er1 | |
10102 | cat conftest.err >&5 | |
10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10104 | (exit $ac_status); } && { |
10105 | test -z "$ac_c_werror_flag" || | |
10106 | test ! -s conftest.err | |
10107 | } && test -s conftest$ac_exeext && | |
10108 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10109 | eval "$as_ac_var=yes" |
10110 | else | |
10111 | echo "$as_me: failed program was:" >&5 | |
10112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10113 | ||
631ef239 | 10114 | eval "$as_ac_var=no" |
212380e3 | 10115 | fi |
631ef239 AC |
10116 | |
10117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10118 | conftest$ac_exeext conftest.$ac_ext |
10119 | fi | |
631ef239 AC |
10120 | ac_res=`eval echo '${'$as_ac_var'}'` |
10121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10122 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10123 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10124 | cat >>confdefs.h <<_ACEOF | |
10125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10126 | _ACEOF | |
10127 | havepoll=yes | |
10128 | else | |
10129 | havepoll=no | |
10130 | fi | |
10131 | done | |
10132 | ||
10133 | if test "x$havepoll" = "xyes" ; then | |
10134 | SELECT_TYPE="poll" | |
10135 | fi | |
10136 | fi | |
10137 | ||
212380e3 AC |
10138 | if test ! "x$use_kqueue" = "xno"; then |
10139 | ||
10140 | for ac_func in kevent | |
10141 | do | |
10142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10143 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10147 | else | |
10148 | cat >conftest.$ac_ext <<_ACEOF | |
10149 | /* confdefs.h. */ | |
10150 | _ACEOF | |
10151 | cat confdefs.h >>conftest.$ac_ext | |
10152 | cat >>conftest.$ac_ext <<_ACEOF | |
10153 | /* end confdefs.h. */ | |
10154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10156 | #define $ac_func innocuous_$ac_func | |
10157 | ||
10158 | /* System header to define __stub macros and hopefully few prototypes, | |
10159 | which can conflict with char $ac_func (); below. | |
10160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10161 | <limits.h> exists even on freestanding compilers. */ | |
10162 | ||
10163 | #ifdef __STDC__ | |
10164 | # include <limits.h> | |
10165 | #else | |
10166 | # include <assert.h> | |
10167 | #endif | |
10168 | ||
10169 | #undef $ac_func | |
10170 | ||
631ef239 AC |
10171 | /* Override any GCC internal prototype to avoid an error. |
10172 | Use char because int might match the return type of a GCC | |
10173 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10174 | #ifdef __cplusplus |
10175 | extern "C" | |
212380e3 | 10176 | #endif |
212380e3 AC |
10177 | char $ac_func (); |
10178 | /* The GNU C library defines this for functions which it implements | |
10179 | to always fail with ENOSYS. Some functions are actually named | |
10180 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10181 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10182 | choke me |
212380e3 AC |
10183 | #endif |
10184 | ||
10185 | int | |
10186 | main () | |
10187 | { | |
631ef239 | 10188 | return $ac_func (); |
212380e3 AC |
10189 | ; |
10190 | return 0; | |
10191 | } | |
10192 | _ACEOF | |
10193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10194 | if { (ac_try="$ac_link" |
10195 | case "(($ac_try" in | |
10196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10197 | *) ac_try_echo=$ac_try;; | |
10198 | esac | |
10199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10200 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10201 | ac_status=$? |
10202 | grep -v '^ *+' conftest.er1 >conftest.err | |
10203 | rm -f conftest.er1 | |
10204 | cat conftest.err >&5 | |
10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10206 | (exit $ac_status); } && { |
10207 | test -z "$ac_c_werror_flag" || | |
10208 | test ! -s conftest.err | |
10209 | } && test -s conftest$ac_exeext && | |
10210 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10211 | eval "$as_ac_var=yes" |
10212 | else | |
10213 | echo "$as_me: failed program was:" >&5 | |
10214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10215 | ||
631ef239 | 10216 | eval "$as_ac_var=no" |
212380e3 | 10217 | fi |
631ef239 AC |
10218 | |
10219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10220 | conftest$ac_exeext conftest.$ac_ext |
10221 | fi | |
631ef239 AC |
10222 | ac_res=`eval echo '${'$as_ac_var'}'` |
10223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10224 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10225 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10226 | cat >>confdefs.h <<_ACEOF | |
10227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10228 | _ACEOF | |
10229 | havekqueue=yes | |
10230 | else | |
10231 | havekqueue=no | |
10232 | fi | |
10233 | done | |
10234 | ||
10235 | if test "x$havekqueue" = "xyes" ; then | |
10236 | SELECT_TYPE="kqueue" | |
10237 | fi | |
10238 | fi | |
10239 | ||
10240 | if test ! "x$use_epoll" = "xno"; then | |
10241 | ||
10242 | for ac_func in epoll_ctl | |
10243 | do | |
10244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10245 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10247 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10249 | else | |
10250 | cat >conftest.$ac_ext <<_ACEOF | |
10251 | /* confdefs.h. */ | |
10252 | _ACEOF | |
10253 | cat confdefs.h >>conftest.$ac_ext | |
10254 | cat >>conftest.$ac_ext <<_ACEOF | |
10255 | /* end confdefs.h. */ | |
10256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10258 | #define $ac_func innocuous_$ac_func | |
10259 | ||
10260 | /* System header to define __stub macros and hopefully few prototypes, | |
10261 | which can conflict with char $ac_func (); below. | |
10262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10263 | <limits.h> exists even on freestanding compilers. */ | |
10264 | ||
10265 | #ifdef __STDC__ | |
10266 | # include <limits.h> | |
10267 | #else | |
10268 | # include <assert.h> | |
10269 | #endif | |
10270 | ||
10271 | #undef $ac_func | |
10272 | ||
631ef239 AC |
10273 | /* Override any GCC internal prototype to avoid an error. |
10274 | Use char because int might match the return type of a GCC | |
10275 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10276 | #ifdef __cplusplus |
10277 | extern "C" | |
212380e3 | 10278 | #endif |
212380e3 AC |
10279 | char $ac_func (); |
10280 | /* The GNU C library defines this for functions which it implements | |
10281 | to always fail with ENOSYS. Some functions are actually named | |
10282 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10283 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10284 | choke me |
212380e3 AC |
10285 | #endif |
10286 | ||
10287 | int | |
10288 | main () | |
10289 | { | |
631ef239 | 10290 | return $ac_func (); |
212380e3 AC |
10291 | ; |
10292 | return 0; | |
10293 | } | |
10294 | _ACEOF | |
10295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10296 | if { (ac_try="$ac_link" |
10297 | case "(($ac_try" in | |
10298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10299 | *) ac_try_echo=$ac_try;; | |
10300 | esac | |
10301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10302 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10303 | ac_status=$? |
10304 | grep -v '^ *+' conftest.er1 >conftest.err | |
10305 | rm -f conftest.er1 | |
10306 | cat conftest.err >&5 | |
10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10308 | (exit $ac_status); } && { |
10309 | test -z "$ac_c_werror_flag" || | |
10310 | test ! -s conftest.err | |
10311 | } && test -s conftest$ac_exeext && | |
10312 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10313 | eval "$as_ac_var=yes" |
10314 | else | |
10315 | echo "$as_me: failed program was:" >&5 | |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
631ef239 | 10318 | eval "$as_ac_var=no" |
212380e3 | 10319 | fi |
631ef239 AC |
10320 | |
10321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10322 | conftest$ac_exeext conftest.$ac_ext |
10323 | fi | |
631ef239 AC |
10324 | ac_res=`eval echo '${'$as_ac_var'}'` |
10325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10326 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10327 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10328 | cat >>confdefs.h <<_ACEOF | |
10329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10330 | _ACEOF | |
10331 | haveepoll=yes | |
10332 | else | |
10333 | haveepoll=no | |
10334 | fi | |
10335 | done | |
10336 | ||
10337 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10338 | if test "x$haveepoll" = "xyes" ; then | |
631ef239 AC |
10339 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10340 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
212380e3 | 10341 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10342 | { echo "$as_me:$LINENO: result: no" >&5 |
10343 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10344 | else |
10345 | cat >conftest.$ac_ext <<_ACEOF | |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
10351 | #include <stdint.h> | |
10352 | #include <sys/param.h> | |
10353 | #include <sys/types.h> | |
10354 | #include <sys/epoll.h> | |
10355 | #include <sys/syscall.h> | |
10356 | #include <unistd.h> | |
10357 | ||
10358 | int | |
10359 | main(int argc, char **argv) | |
10360 | { | |
10361 | int epfd; | |
10362 | ||
10363 | epfd = epoll_create(256); | |
b676ea3b | 10364 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
10365 | } |
10366 | _ACEOF | |
10367 | rm -f conftest$ac_exeext | |
631ef239 AC |
10368 | if { (ac_try="$ac_link" |
10369 | case "(($ac_try" in | |
10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10371 | *) ac_try_echo=$ac_try;; | |
10372 | esac | |
10373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10374 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10375 | ac_status=$? |
10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10378 | { (case "(($ac_try" in |
10379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10380 | *) ac_try_echo=$ac_try;; | |
10381 | esac | |
10382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10383 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10384 | ac_status=$? |
10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10386 | (exit $ac_status); }; }; then | |
631ef239 AC |
10387 | { echo "$as_me:$LINENO: result: yes" >&5 |
10388 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10389 | |
10390 | cat >>confdefs.h <<\_ACEOF | |
10391 | #define HAVE_EPOLL 1 | |
10392 | _ACEOF | |
10393 | ||
10394 | SELECT_TYPE="epoll" | |
10395 | else | |
10396 | echo "$as_me: program exited with status $ac_status" >&5 | |
10397 | echo "$as_me: failed program was:" >&5 | |
10398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10399 | ||
10400 | ( exit $ac_status ) | |
631ef239 AC |
10401 | { echo "$as_me:$LINENO: result: no" >&5 |
10402 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10403 | fi |
631ef239 | 10404 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10405 | fi |
631ef239 AC |
10406 | |
10407 | ||
212380e3 AC |
10408 | fi |
10409 | fi | |
10410 | ||
10411 | haveepollsyscall=no | |
10412 | ||
10413 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10414 | if test "x$haveepoll" = "xno" ; then | |
631ef239 AC |
10415 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 |
10416 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
212380e3 | 10417 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10418 | { echo "$as_me:$LINENO: result: no" >&5 |
10419 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10420 | else |
10421 | cat >conftest.$ac_ext <<_ACEOF | |
10422 | /* confdefs.h. */ | |
10423 | _ACEOF | |
10424 | cat confdefs.h >>conftest.$ac_ext | |
10425 | cat >>conftest.$ac_ext <<_ACEOF | |
10426 | /* end confdefs.h. */ | |
10427 | #include <stdint.h> | |
10428 | #include <sys/param.h> | |
10429 | #include <sys/types.h> | |
10430 | #include <sys/epoll.h> | |
10431 | #include <sys/syscall.h> | |
10432 | #include <unistd.h> | |
10433 | ||
10434 | int | |
10435 | epoll_create(int size) | |
10436 | { | |
10437 | return (syscall(__NR_epoll_create, size)); | |
10438 | } | |
10439 | ||
10440 | int | |
10441 | main(int argc, char **argv) | |
10442 | { | |
10443 | int epfd; | |
10444 | ||
10445 | epfd = epoll_create(256); | |
10446 | exit (epfd == -1 ? 1 : 0); | |
10447 | } | |
10448 | _ACEOF | |
10449 | rm -f conftest$ac_exeext | |
631ef239 AC |
10450 | if { (ac_try="$ac_link" |
10451 | case "(($ac_try" in | |
10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10453 | *) ac_try_echo=$ac_try;; | |
10454 | esac | |
10455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10456 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10457 | ac_status=$? |
10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10460 | { (case "(($ac_try" in |
10461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10462 | *) ac_try_echo=$ac_try;; | |
10463 | esac | |
10464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10465 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10466 | ac_status=$? |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); }; }; then | |
631ef239 AC |
10469 | { echo "$as_me:$LINENO: result: yes" >&5 |
10470 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10471 | |
10472 | cat >>confdefs.h <<\_ACEOF | |
10473 | #define HAVE_EPOLL 1 | |
10474 | _ACEOF | |
10475 | ||
10476 | SELECT_TYPE="epoll" | |
10477 | else | |
10478 | echo "$as_me: program exited with status $ac_status" >&5 | |
10479 | echo "$as_me: failed program was:" >&5 | |
10480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10481 | ||
10482 | ( exit $ac_status ) | |
631ef239 AC |
10483 | { echo "$as_me:$LINENO: result: no" >&5 |
10484 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10485 | fi |
631ef239 | 10486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10487 | fi |
631ef239 AC |
10488 | |
10489 | ||
212380e3 AC |
10490 | fi |
10491 | fi | |
10492 | ||
10493 | fi | |
10494 | ||
10495 | fi | |
10496 | ||
10497 | if test -z "$SELECT_TYPE"; then | |
10498 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
10499 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
10500 | { (exit 1); exit 1; }; } | |
10501 | fi | |
10502 | ||
10503 | echo "Using $SELECT_TYPE for select loop." | |
10504 | ||
10505 | ||
10506 | cat >>confdefs.h <<_ACEOF | |
10507 | #define SELECT_TYPE "$SELECT_TYPE" | |
10508 | _ACEOF | |
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
631ef239 | 10514 | # Check whether --enable-assert was given. |
212380e3 | 10515 | if test "${enable_assert+set}" = set; then |
631ef239 | 10516 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
10517 | else |
10518 | assert=no | |
631ef239 AC |
10519 | fi |
10520 | ||
212380e3 AC |
10521 | |
10522 | if test "$assert" = no; then | |
10523 | ||
10524 | cat >>confdefs.h <<\_ACEOF | |
10525 | #define NDEBUG 1 | |
10526 | _ACEOF | |
10527 | ||
10528 | elif test "$assert" = soft; then | |
10529 | ||
10530 | cat >>confdefs.h <<\_ACEOF | |
10531 | #define SOFT_ASSERT 1 | |
10532 | _ACEOF | |
10533 | ||
10534 | ||
10535 | cat >>confdefs.h <<\_ACEOF | |
10536 | #define NDEBUG 1 | |
10537 | _ACEOF | |
10538 | ||
10539 | elif test "$assert" = yes; then | |
10540 | assert = "hard"; | |
10541 | fi | |
10542 | ||
631ef239 AC |
10543 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 |
10544 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
10545 | # Check whether --enable-iodebug was given. | |
212380e3 | 10546 | if test "${enable_iodebug+set}" = set; then |
631ef239 | 10547 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
10548 | else |
10549 | iodebug=no | |
631ef239 AC |
10550 | fi |
10551 | ||
212380e3 AC |
10552 | |
10553 | if test "$iodebug" = yes; then | |
10554 | ||
10555 | cat >>confdefs.h <<\_ACEOF | |
10556 | #define USE_IODEBUG_HOOKS 1 | |
10557 | _ACEOF | |
10558 | ||
631ef239 AC |
10559 | { echo "$as_me:$LINENO: result: yes" >&5 |
10560 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10561 | else |
631ef239 AC |
10562 | { echo "$as_me:$LINENO: result: no" >&5 |
10563 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10564 | fi |
10565 | ||
10566 | ||
631ef239 AC |
10567 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
10568 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
10569 | # Check whether --enable-profile was given. | |
212380e3 | 10570 | if test "${enable_profile+set}" = set; then |
631ef239 | 10571 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
10572 | else |
10573 | profile=no | |
631ef239 AC |
10574 | fi |
10575 | ||
212380e3 AC |
10576 | |
10577 | if test "$profile" = yes; then | |
10578 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
10579 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
631ef239 AC |
10580 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 |
10581 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
212380e3 AC |
10582 | |
10583 | cat >>confdefs.h <<\_ACEOF | |
10584 | #define CHARYBDIS_PROFILE 1 | |
10585 | _ACEOF | |
10586 | ||
10587 | else | |
631ef239 AC |
10588 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
10589 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
10590 | fi |
10591 | else | |
631ef239 AC |
10592 | { echo "$as_me:$LINENO: result: no" >&5 |
10593 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10594 | fi |
10595 | ||
631ef239 | 10596 | # Check whether --enable-balloc was given. |
212380e3 | 10597 | if test "${enable_balloc+set}" = set; then |
631ef239 | 10598 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
10599 | else |
10600 | balloc=yes | |
631ef239 AC |
10601 | fi |
10602 | ||
212380e3 AC |
10603 | |
10604 | if test "$balloc" = no; then | |
10605 | ||
10606 | cat >>confdefs.h <<\_ACEOF | |
10607 | #define NOBALLOC 1 | |
10608 | _ACEOF | |
10609 | ||
10610 | fi | |
10611 | ||
631ef239 | 10612 | # Check whether --enable-small-net was given. |
212380e3 | 10613 | if test "${enable_small_net+set}" = set; then |
631ef239 | 10614 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
10615 | else |
10616 | small_net=no | |
631ef239 AC |
10617 | fi |
10618 | ||
212380e3 AC |
10619 | |
10620 | if test "$small_net" = yes; then | |
10621 | ||
10622 | cat >>confdefs.h <<\_ACEOF | |
10623 | #define NICKNAMEHISTORYLENGTH 1500 | |
10624 | _ACEOF | |
10625 | ||
10626 | ||
10627 | cat >>confdefs.h <<\_ACEOF | |
10628 | #define CHANNEL_HEAP_SIZE 256 | |
10629 | _ACEOF | |
10630 | ||
10631 | ||
10632 | cat >>confdefs.h <<\_ACEOF | |
10633 | #define BAN_HEAP_SIZE 128 | |
10634 | _ACEOF | |
10635 | ||
10636 | ||
10637 | cat >>confdefs.h <<\_ACEOF | |
10638 | #define CLIENT_HEAP_SIZE 256 | |
10639 | _ACEOF | |
10640 | ||
10641 | ||
10642 | cat >>confdefs.h <<\_ACEOF | |
10643 | #define LCLIENT_HEAP_SIZE 128 | |
10644 | _ACEOF | |
10645 | ||
10646 | ||
10647 | cat >>confdefs.h <<\_ACEOF | |
10648 | #define PCLIENT_HEAP_SIZE 32 | |
10649 | _ACEOF | |
10650 | ||
10651 | ||
10652 | cat >>confdefs.h <<\_ACEOF | |
10653 | #define USER_HEAP_SIZE 128 | |
10654 | _ACEOF | |
10655 | ||
10656 | ||
10657 | cat >>confdefs.h <<\_ACEOF | |
10658 | #define DNODE_HEAP_SIZE 256 | |
10659 | _ACEOF | |
10660 | ||
10661 | ||
10662 | cat >>confdefs.h <<\_ACEOF | |
10663 | #define TOPIC_HEAP_SIZE 256 | |
10664 | _ACEOF | |
10665 | ||
10666 | ||
10667 | cat >>confdefs.h <<\_ACEOF | |
10668 | #define LINEBUF_HEAP_SIZE 128 | |
10669 | _ACEOF | |
10670 | ||
10671 | ||
10672 | cat >>confdefs.h <<\_ACEOF | |
10673 | #define MEMBER_HEAP_SIZE 256 | |
10674 | _ACEOF | |
10675 | ||
10676 | ||
10677 | cat >>confdefs.h <<\_ACEOF | |
10678 | #define ND_HEAP_SIZE 128 | |
10679 | _ACEOF | |
10680 | ||
10681 | ||
10682 | cat >>confdefs.h <<\_ACEOF | |
10683 | #define CONFITEM_HEAP_SIZE 128 | |
10684 | _ACEOF | |
10685 | ||
10686 | ||
10687 | cat >>confdefs.h <<\_ACEOF | |
10688 | #define MONITOR_HEAP_SIZE 128 | |
10689 | _ACEOF | |
10690 | ||
f589ec6f | 10691 | |
2b428185 AC |
10692 | cat >>confdefs.h <<\_ACEOF |
10693 | #define FD_HEAP_SIZE 128 | |
10694 | _ACEOF | |
10695 | ||
10696 | ||
f589ec6f AC |
10697 | cat >>confdefs.h <<\_ACEOF |
10698 | #define AWAY_HEAP_SIZE 128 | |
10699 | _ACEOF | |
10700 | ||
212380e3 AC |
10701 | else |
10702 | ||
10703 | cat >>confdefs.h <<\_ACEOF | |
10704 | #define NICKNAMEHISTORYLENGTH 15000 | |
10705 | _ACEOF | |
10706 | ||
10707 | ||
10708 | cat >>confdefs.h <<\_ACEOF | |
10709 | #define CHANNEL_HEAP_SIZE 8192 | |
10710 | _ACEOF | |
10711 | ||
10712 | ||
10713 | cat >>confdefs.h <<\_ACEOF | |
10714 | #define BAN_HEAP_SIZE 4096 | |
10715 | _ACEOF | |
10716 | ||
10717 | ||
10718 | cat >>confdefs.h <<\_ACEOF | |
10719 | #define CLIENT_HEAP_SIZE 8192 | |
10720 | _ACEOF | |
10721 | ||
10722 | ||
10723 | cat >>confdefs.h <<\_ACEOF | |
10724 | #define LCLIENT_HEAP_SIZE 1024 | |
10725 | _ACEOF | |
10726 | ||
10727 | ||
10728 | cat >>confdefs.h <<\_ACEOF | |
10729 | #define PCLIENT_HEAP_SIZE 256 | |
10730 | _ACEOF | |
10731 | ||
10732 | ||
10733 | cat >>confdefs.h <<\_ACEOF | |
10734 | #define USER_HEAP_SIZE 8192 | |
10735 | _ACEOF | |
10736 | ||
10737 | ||
10738 | cat >>confdefs.h <<\_ACEOF | |
10739 | #define DNODE_HEAP_SIZE 8192 | |
10740 | _ACEOF | |
10741 | ||
10742 | ||
10743 | cat >>confdefs.h <<\_ACEOF | |
10744 | #define TOPIC_HEAP_SIZE 4096 | |
10745 | _ACEOF | |
10746 | ||
10747 | ||
10748 | cat >>confdefs.h <<\_ACEOF | |
10749 | #define LINEBUF_HEAP_SIZE 2048 | |
10750 | _ACEOF | |
10751 | ||
10752 | ||
10753 | cat >>confdefs.h <<\_ACEOF | |
10754 | #define MEMBER_HEAP_SIZE 32768 | |
10755 | _ACEOF | |
10756 | ||
10757 | ||
10758 | cat >>confdefs.h <<\_ACEOF | |
10759 | #define ND_HEAP_SIZE 512 | |
10760 | _ACEOF | |
10761 | ||
10762 | ||
10763 | cat >>confdefs.h <<\_ACEOF | |
10764 | #define CONFITEM_HEAP_SIZE 256 | |
10765 | _ACEOF | |
10766 | ||
10767 | ||
10768 | cat >>confdefs.h <<\_ACEOF | |
10769 | #define MONITOR_HEAP_SIZE 1024 | |
10770 | _ACEOF | |
10771 | ||
f589ec6f | 10772 | |
2b428185 AC |
10773 | cat >>confdefs.h <<\_ACEOF |
10774 | #define FD_HEAP_SIZE 1024 | |
10775 | _ACEOF | |
10776 | ||
10777 | ||
f589ec6f AC |
10778 | cat >>confdefs.h <<\_ACEOF |
10779 | #define AWAY_HEAP_SIZE 512 | |
10780 | _ACEOF | |
10781 | ||
212380e3 AC |
10782 | fi |
10783 | ||
10784 | ||
631ef239 | 10785 | # Check whether --with-nicklen was given. |
212380e3 | 10786 | if test "${with_nicklen+set}" = set; then |
631ef239 | 10787 | withval=$with_nicklen; |
212380e3 AC |
10788 | if test $withval -ge 50; then |
10789 | NICKLEN=50 | |
10790 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
10791 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
10792 | else | |
10793 | NICKLEN="$withval" | |
10794 | fi | |
10795 | ||
10796 | else | |
10797 | NICKLEN=15 | |
631ef239 | 10798 | fi |
212380e3 AC |
10799 | |
10800 | ||
212380e3 | 10801 | |
631ef239 AC |
10802 | # Check whether --with-topiclen was given. |
10803 | if test "${with_topiclen+set}" = set; then | |
10804 | withval=$with_topiclen; | |
212380e3 AC |
10805 | if test $withval -ge 390; then |
10806 | TOPICLEN=390 | |
10807 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
10808 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
10809 | else | |
10810 | TOPICLEN=$withval | |
10811 | fi | |
10812 | ||
10813 | else | |
10814 | TOPICLEN=390 | |
212380e3 AC |
10815 | fi |
10816 | ||
212380e3 AC |
10817 | |
10818 | ||
10819 | cat >>confdefs.h <<_ACEOF | |
10820 | #define TOPICLEN ${TOPICLEN} | |
10821 | _ACEOF | |
10822 | ||
10823 | ||
10824 | cat >>confdefs.h <<_ACEOF | |
10825 | #define NICKLEN (${NICKLEN}+1) | |
10826 | _ACEOF | |
10827 | ||
10828 | ||
b676ea3b | 10829 | shared_modules="yes" |
212380e3 | 10830 | if test "$shared_modules" = yes; then |
212380e3 AC |
10831 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
10832 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
10833 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
10834 | shared_modules="no" | |
10835 | fi | |
10836 | fi | |
10837 | ||
10838 | if test "$shared_modules" = yes; then | |
10839 | DYNLINK_C=dynlink.c | |
10840 | ||
10841 | for ac_header in dlfcn.h | |
10842 | do | |
10843 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
10844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10845 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10847 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10849 | fi | |
631ef239 AC |
10850 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10851 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10852 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10853 | else |
10854 | # Is the header compilable? | |
631ef239 AC |
10855 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10856 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
10857 | cat >conftest.$ac_ext <<_ACEOF |
10858 | /* confdefs.h. */ | |
10859 | _ACEOF | |
10860 | cat confdefs.h >>conftest.$ac_ext | |
10861 | cat >>conftest.$ac_ext <<_ACEOF | |
10862 | /* end confdefs.h. */ | |
10863 | $ac_includes_default | |
10864 | #include <$ac_header> | |
10865 | _ACEOF | |
10866 | rm -f conftest.$ac_objext | |
631ef239 AC |
10867 | if { (ac_try="$ac_compile" |
10868 | case "(($ac_try" in | |
10869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10870 | *) ac_try_echo=$ac_try;; | |
10871 | esac | |
10872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10873 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
10874 | ac_status=$? |
10875 | grep -v '^ *+' conftest.er1 >conftest.err | |
10876 | rm -f conftest.er1 | |
10877 | cat conftest.err >&5 | |
10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10879 | (exit $ac_status); } && { |
10880 | test -z "$ac_c_werror_flag" || | |
10881 | test ! -s conftest.err | |
10882 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
10883 | ac_header_compiler=yes |
10884 | else | |
10885 | echo "$as_me: failed program was:" >&5 | |
10886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10887 | ||
631ef239 | 10888 | ac_header_compiler=no |
212380e3 | 10889 | fi |
631ef239 AC |
10890 | |
10891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10892 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10893 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
10894 | |
10895 | # Is the header present? | |
631ef239 AC |
10896 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10897 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
10898 | cat >conftest.$ac_ext <<_ACEOF |
10899 | /* confdefs.h. */ | |
10900 | _ACEOF | |
10901 | cat confdefs.h >>conftest.$ac_ext | |
10902 | cat >>conftest.$ac_ext <<_ACEOF | |
10903 | /* end confdefs.h. */ | |
10904 | #include <$ac_header> | |
10905 | _ACEOF | |
631ef239 AC |
10906 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10907 | case "(($ac_try" in | |
10908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10909 | *) ac_try_echo=$ac_try;; | |
10910 | esac | |
10911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10912 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
10913 | ac_status=$? |
10914 | grep -v '^ *+' conftest.er1 >conftest.err | |
10915 | rm -f conftest.er1 | |
10916 | cat conftest.err >&5 | |
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10918 | (exit $ac_status); } >/dev/null && { |
10919 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10920 | test ! -s conftest.err | |
10921 | }; then | |
212380e3 AC |
10922 | ac_header_preproc=yes |
10923 | else | |
10924 | echo "$as_me: failed program was:" >&5 | |
10925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10926 | ||
10927 | ac_header_preproc=no | |
10928 | fi | |
631ef239 | 10929 | |
212380e3 | 10930 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
10931 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10932 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
10933 | |
10934 | # So? What about this header? | |
10935 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10936 | yes:no: ) | |
10937 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10938 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10939 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10940 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10941 | ac_header_preproc=yes | |
10942 | ;; | |
10943 | no:yes:* ) | |
10944 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10945 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10946 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10947 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10948 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10949 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10951 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10953 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10954 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10955 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 10956 | |
212380e3 AC |
10957 | ;; |
10958 | esac | |
631ef239 AC |
10959 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10961 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10963 | else | |
10964 | eval "$as_ac_Header=\$ac_header_preproc" | |
10965 | fi | |
631ef239 AC |
10966 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10967 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10968 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10969 | |
10970 | fi | |
10971 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10972 | cat >>confdefs.h <<_ACEOF | |
10973 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10974 | _ACEOF | |
10975 | ||
10976 | fi | |
10977 | ||
10978 | done | |
10979 | ||
631ef239 AC |
10980 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
10981 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
212380e3 AC |
10982 | if test "${ac_cv_search_shl_load+set}" = set; then |
10983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10984 | else | |
10985 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
10986 | cat >conftest.$ac_ext <<_ACEOF |
10987 | /* confdefs.h. */ | |
10988 | _ACEOF | |
10989 | cat confdefs.h >>conftest.$ac_ext | |
10990 | cat >>conftest.$ac_ext <<_ACEOF | |
10991 | /* end confdefs.h. */ | |
10992 | ||
631ef239 AC |
10993 | /* Override any GCC internal prototype to avoid an error. |
10994 | Use char because int might match the return type of a GCC | |
10995 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10996 | #ifdef __cplusplus |
10997 | extern "C" | |
10998 | #endif | |
212380e3 AC |
10999 | char shl_load (); |
11000 | int | |
11001 | main () | |
11002 | { | |
631ef239 | 11003 | return shl_load (); |
212380e3 AC |
11004 | ; |
11005 | return 0; | |
11006 | } | |
11007 | _ACEOF | |
631ef239 AC |
11008 | for ac_lib in '' dld; do |
11009 | if test -z "$ac_lib"; then | |
11010 | ac_res="none required" | |
11011 | else | |
11012 | ac_res=-l$ac_lib | |
11013 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11014 | fi | |
11015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11016 | if { (ac_try="$ac_link" | |
11017 | case "(($ac_try" in | |
11018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11019 | *) ac_try_echo=$ac_try;; | |
11020 | esac | |
11021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11022 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11023 | ac_status=$? |
11024 | grep -v '^ *+' conftest.er1 >conftest.err | |
11025 | rm -f conftest.er1 | |
11026 | cat conftest.err >&5 | |
11027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11028 | (exit $ac_status); } && { |
11029 | test -z "$ac_c_werror_flag" || | |
11030 | test ! -s conftest.err | |
11031 | } && test -s conftest$ac_exeext && | |
11032 | $as_test_x conftest$ac_exeext; then | |
11033 | ac_cv_search_shl_load=$ac_res | |
212380e3 AC |
11034 | else |
11035 | echo "$as_me: failed program was:" >&5 | |
11036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11037 | ||
212380e3 | 11038 | |
631ef239 | 11039 | fi |
212380e3 | 11040 | |
631ef239 AC |
11041 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11042 | conftest$ac_exeext | |
11043 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11044 | break | |
212380e3 | 11045 | fi |
631ef239 AC |
11046 | done |
11047 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11048 | : | |
11049 | else | |
11050 | ac_cv_search_shl_load=no | |
212380e3 | 11051 | fi |
631ef239 | 11052 | rm conftest.$ac_ext |
212380e3 AC |
11053 | LIBS=$ac_func_search_save_LIBS |
11054 | fi | |
631ef239 AC |
11055 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11056 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11057 | ac_res=$ac_cv_search_shl_load | |
11058 | if test "$ac_res" != no; then | |
11059 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11060 | |
11061 | ||
11062 | cat >>confdefs.h <<\_ACEOF | |
11063 | #define HAVE_SHL_LOAD 1 | |
11064 | _ACEOF | |
11065 | ||
11066 | SUFFIX=".sl" | |
11067 | MOD_TARGET=hpux_shared | |
11068 | SEDOBJ="s/\.o/.sl/g" | |
11069 | ||
11070 | else | |
11071 | ||
631ef239 AC |
11072 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11073 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
212380e3 AC |
11074 | if test "${ac_cv_search_dlopen+set}" = set; then |
11075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11076 | else | |
11077 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11078 | cat >conftest.$ac_ext <<_ACEOF |
11079 | /* confdefs.h. */ | |
11080 | _ACEOF | |
11081 | cat confdefs.h >>conftest.$ac_ext | |
11082 | cat >>conftest.$ac_ext <<_ACEOF | |
11083 | /* end confdefs.h. */ | |
11084 | ||
631ef239 AC |
11085 | /* Override any GCC internal prototype to avoid an error. |
11086 | Use char because int might match the return type of a GCC | |
11087 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11088 | #ifdef __cplusplus |
11089 | extern "C" | |
11090 | #endif | |
212380e3 AC |
11091 | char dlopen (); |
11092 | int | |
11093 | main () | |
11094 | { | |
631ef239 | 11095 | return dlopen (); |
212380e3 AC |
11096 | ; |
11097 | return 0; | |
11098 | } | |
11099 | _ACEOF | |
631ef239 AC |
11100 | for ac_lib in '' dl c_r; do |
11101 | if test -z "$ac_lib"; then | |
11102 | ac_res="none required" | |
11103 | else | |
11104 | ac_res=-l$ac_lib | |
11105 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11106 | fi | |
11107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11108 | if { (ac_try="$ac_link" | |
11109 | case "(($ac_try" in | |
11110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11111 | *) ac_try_echo=$ac_try;; | |
11112 | esac | |
11113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11114 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11115 | ac_status=$? |
11116 | grep -v '^ *+' conftest.er1 >conftest.err | |
11117 | rm -f conftest.er1 | |
11118 | cat conftest.err >&5 | |
11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11120 | (exit $ac_status); } && { |
11121 | test -z "$ac_c_werror_flag" || | |
11122 | test ! -s conftest.err | |
11123 | } && test -s conftest$ac_exeext && | |
11124 | $as_test_x conftest$ac_exeext; then | |
11125 | ac_cv_search_dlopen=$ac_res | |
212380e3 AC |
11126 | else |
11127 | echo "$as_me: failed program was:" >&5 | |
11128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11129 | ||
212380e3 | 11130 | |
631ef239 | 11131 | fi |
212380e3 | 11132 | |
631ef239 AC |
11133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11134 | conftest$ac_exeext | |
11135 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11136 | break | |
212380e3 | 11137 | fi |
631ef239 AC |
11138 | done |
11139 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11140 | : | |
11141 | else | |
11142 | ac_cv_search_dlopen=no | |
212380e3 | 11143 | fi |
631ef239 | 11144 | rm conftest.$ac_ext |
212380e3 AC |
11145 | LIBS=$ac_func_search_save_LIBS |
11146 | fi | |
631ef239 AC |
11147 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11148 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11149 | ac_res=$ac_cv_search_dlopen | |
11150 | if test "$ac_res" != no; then | |
11151 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11152 | |
11153 | ||
11154 | cat >>confdefs.h <<\_ACEOF | |
11155 | #define HAVE_DLOPEN 1 | |
11156 | _ACEOF | |
11157 | ||
11158 | SUFFIX=".so" | |
11159 | MOD_TARGET=shared_modules | |
11160 | SEDOBJ="s/\.o/.so/g" | |
11161 | if test "$AppleGCC" = yes; then | |
11162 | ||
11163 | for ac_header in mach-o/dyld.h | |
11164 | do | |
11165 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11167 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11168 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11169 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11171 | fi | |
631ef239 AC |
11172 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11173 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11174 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11175 | else |
11176 | # Is the header compilable? | |
631ef239 AC |
11177 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11179 | cat >conftest.$ac_ext <<_ACEOF |
11180 | /* confdefs.h. */ | |
11181 | _ACEOF | |
11182 | cat confdefs.h >>conftest.$ac_ext | |
11183 | cat >>conftest.$ac_ext <<_ACEOF | |
11184 | /* end confdefs.h. */ | |
11185 | $ac_includes_default | |
11186 | #include <$ac_header> | |
11187 | _ACEOF | |
11188 | rm -f conftest.$ac_objext | |
631ef239 AC |
11189 | if { (ac_try="$ac_compile" |
11190 | case "(($ac_try" in | |
11191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11192 | *) ac_try_echo=$ac_try;; | |
11193 | esac | |
11194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11195 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11196 | ac_status=$? |
11197 | grep -v '^ *+' conftest.er1 >conftest.err | |
11198 | rm -f conftest.er1 | |
11199 | cat conftest.err >&5 | |
11200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11201 | (exit $ac_status); } && { |
11202 | test -z "$ac_c_werror_flag" || | |
11203 | test ! -s conftest.err | |
11204 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11205 | ac_header_compiler=yes |
11206 | else | |
11207 | echo "$as_me: failed program was:" >&5 | |
11208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11209 | ||
631ef239 | 11210 | ac_header_compiler=no |
212380e3 | 11211 | fi |
631ef239 AC |
11212 | |
11213 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11214 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11215 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11216 | |
11217 | # Is the header present? | |
631ef239 AC |
11218 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11219 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11220 | cat >conftest.$ac_ext <<_ACEOF |
11221 | /* confdefs.h. */ | |
11222 | _ACEOF | |
11223 | cat confdefs.h >>conftest.$ac_ext | |
11224 | cat >>conftest.$ac_ext <<_ACEOF | |
11225 | /* end confdefs.h. */ | |
11226 | #include <$ac_header> | |
11227 | _ACEOF | |
631ef239 AC |
11228 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11229 | case "(($ac_try" in | |
11230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11231 | *) ac_try_echo=$ac_try;; | |
11232 | esac | |
11233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11234 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11235 | ac_status=$? |
11236 | grep -v '^ *+' conftest.er1 >conftest.err | |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11240 | (exit $ac_status); } >/dev/null && { |
11241 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11242 | test ! -s conftest.err | |
11243 | }; then | |
212380e3 AC |
11244 | ac_header_preproc=yes |
11245 | else | |
11246 | echo "$as_me: failed program was:" >&5 | |
11247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11248 | ||
11249 | ac_header_preproc=no | |
11250 | fi | |
631ef239 | 11251 | |
212380e3 | 11252 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11253 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11254 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11255 | |
11256 | # So? What about this header? | |
11257 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11258 | yes:no: ) | |
11259 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11260 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11262 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11263 | ac_header_preproc=yes | |
11264 | ;; | |
11265 | no:yes:* ) | |
11266 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11267 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11268 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11269 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11270 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11271 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11272 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11273 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11274 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11275 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11276 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11277 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11278 | |
212380e3 AC |
11279 | ;; |
11280 | esac | |
631ef239 AC |
11281 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11283 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11285 | else | |
11286 | eval "$as_ac_Header=\$ac_header_preproc" | |
11287 | fi | |
631ef239 AC |
11288 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11289 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11290 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11291 | |
11292 | fi | |
11293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11294 | cat >>confdefs.h <<_ACEOF | |
11295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11296 | _ACEOF | |
11297 | ||
11298 | fi | |
11299 | ||
11300 | done | |
11301 | ||
11302 | fi | |
631ef239 AC |
11303 | { echo "$as_me:$LINENO: checking for dlsym" >&5 |
11304 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
212380e3 AC |
11305 | if test "${ac_cv_func_dlsym+set}" = set; then |
11306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11307 | else | |
11308 | cat >conftest.$ac_ext <<_ACEOF | |
11309 | /* confdefs.h. */ | |
11310 | _ACEOF | |
11311 | cat confdefs.h >>conftest.$ac_ext | |
11312 | cat >>conftest.$ac_ext <<_ACEOF | |
11313 | /* end confdefs.h. */ | |
11314 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11315 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11316 | #define dlsym innocuous_dlsym | |
11317 | ||
11318 | /* System header to define __stub macros and hopefully few prototypes, | |
11319 | which can conflict with char dlsym (); below. | |
11320 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11321 | <limits.h> exists even on freestanding compilers. */ | |
11322 | ||
11323 | #ifdef __STDC__ | |
11324 | # include <limits.h> | |
11325 | #else | |
11326 | # include <assert.h> | |
11327 | #endif | |
11328 | ||
11329 | #undef dlsym | |
11330 | ||
631ef239 AC |
11331 | /* Override any GCC internal prototype to avoid an error. |
11332 | Use char because int might match the return type of a GCC | |
11333 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11334 | #ifdef __cplusplus |
11335 | extern "C" | |
212380e3 | 11336 | #endif |
212380e3 AC |
11337 | char dlsym (); |
11338 | /* The GNU C library defines this for functions which it implements | |
11339 | to always fail with ENOSYS. Some functions are actually named | |
11340 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11341 | #if defined __stub_dlsym || defined __stub___dlsym |
212380e3 | 11342 | choke me |
212380e3 AC |
11343 | #endif |
11344 | ||
11345 | int | |
11346 | main () | |
11347 | { | |
631ef239 | 11348 | return dlsym (); |
212380e3 AC |
11349 | ; |
11350 | return 0; | |
11351 | } | |
11352 | _ACEOF | |
11353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11354 | if { (ac_try="$ac_link" |
11355 | case "(($ac_try" in | |
11356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11357 | *) ac_try_echo=$ac_try;; | |
11358 | esac | |
11359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11360 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11361 | ac_status=$? |
11362 | grep -v '^ *+' conftest.er1 >conftest.err | |
11363 | rm -f conftest.er1 | |
11364 | cat conftest.err >&5 | |
11365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11366 | (exit $ac_status); } && { |
11367 | test -z "$ac_c_werror_flag" || | |
11368 | test ! -s conftest.err | |
11369 | } && test -s conftest$ac_exeext && | |
11370 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11371 | ac_cv_func_dlsym=yes |
11372 | else | |
11373 | echo "$as_me: failed program was:" >&5 | |
11374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11375 | ||
631ef239 | 11376 | ac_cv_func_dlsym=no |
212380e3 | 11377 | fi |
631ef239 AC |
11378 | |
11379 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11380 | conftest$ac_exeext conftest.$ac_ext |
11381 | fi | |
631ef239 AC |
11382 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11383 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
212380e3 AC |
11384 | if test $ac_cv_func_dlsym = yes; then |
11385 | : | |
11386 | else | |
11387 | ||
11388 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11389 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11390 | shared_modules=no | |
11391 | ||
11392 | fi | |
11393 | ||
11394 | ||
11395 | for ac_func in dlfunc | |
11396 | do | |
11397 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
11398 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11399 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11400 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11402 | else | |
11403 | cat >conftest.$ac_ext <<_ACEOF | |
11404 | /* confdefs.h. */ | |
11405 | _ACEOF | |
11406 | cat confdefs.h >>conftest.$ac_ext | |
11407 | cat >>conftest.$ac_ext <<_ACEOF | |
11408 | /* end confdefs.h. */ | |
11409 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11410 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11411 | #define $ac_func innocuous_$ac_func | |
11412 | ||
11413 | /* System header to define __stub macros and hopefully few prototypes, | |
11414 | which can conflict with char $ac_func (); below. | |
11415 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11416 | <limits.h> exists even on freestanding compilers. */ | |
11417 | ||
11418 | #ifdef __STDC__ | |
11419 | # include <limits.h> | |
11420 | #else | |
11421 | # include <assert.h> | |
11422 | #endif | |
11423 | ||
11424 | #undef $ac_func | |
11425 | ||
631ef239 AC |
11426 | /* Override any GCC internal prototype to avoid an error. |
11427 | Use char because int might match the return type of a GCC | |
11428 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11429 | #ifdef __cplusplus |
11430 | extern "C" | |
212380e3 | 11431 | #endif |
212380e3 AC |
11432 | char $ac_func (); |
11433 | /* The GNU C library defines this for functions which it implements | |
11434 | to always fail with ENOSYS. Some functions are actually named | |
11435 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11436 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 11437 | choke me |
212380e3 AC |
11438 | #endif |
11439 | ||
11440 | int | |
11441 | main () | |
11442 | { | |
631ef239 | 11443 | return $ac_func (); |
212380e3 AC |
11444 | ; |
11445 | return 0; | |
11446 | } | |
11447 | _ACEOF | |
11448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11449 | if { (ac_try="$ac_link" |
11450 | case "(($ac_try" in | |
11451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11452 | *) ac_try_echo=$ac_try;; | |
11453 | esac | |
11454 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11455 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11456 | ac_status=$? |
11457 | grep -v '^ *+' conftest.er1 >conftest.err | |
11458 | rm -f conftest.er1 | |
11459 | cat conftest.err >&5 | |
11460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11461 | (exit $ac_status); } && { |
11462 | test -z "$ac_c_werror_flag" || | |
11463 | test ! -s conftest.err | |
11464 | } && test -s conftest$ac_exeext && | |
11465 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11466 | eval "$as_ac_var=yes" |
11467 | else | |
11468 | echo "$as_me: failed program was:" >&5 | |
11469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11470 | ||
631ef239 | 11471 | eval "$as_ac_var=no" |
212380e3 | 11472 | fi |
631ef239 AC |
11473 | |
11474 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11475 | conftest$ac_exeext conftest.$ac_ext |
11476 | fi | |
631ef239 AC |
11477 | ac_res=`eval echo '${'$as_ac_var'}'` |
11478 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11479 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11480 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11481 | cat >>confdefs.h <<_ACEOF | |
11482 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11483 | _ACEOF | |
11484 | ||
11485 | fi | |
11486 | done | |
11487 | ||
11488 | ||
11489 | else | |
11490 | ||
11491 | shared_modules=no | |
11492 | ||
11493 | fi | |
11494 | ||
11495 | ||
11496 | fi | |
11497 | ||
11498 | fi | |
11499 | ||
11500 | ||
11501 | cat >>confdefs.h <<_ACEOF | |
11502 | #define SHARED_SUFFIX "$SUFFIX" | |
11503 | _ACEOF | |
11504 | ||
11505 | ||
11506 | if test "$shared_modules" = yes; then | |
11507 | # The GNU linker requires the -export-dynamic option to make | |
11508 | # all symbols visible in the dynamic symbol table. | |
11509 | hold_ldflags=$LDFLAGS | |
631ef239 AC |
11510 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
11511 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
212380e3 AC |
11512 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
11513 | cat >conftest.$ac_ext <<_ACEOF | |
11514 | /* confdefs.h. */ | |
11515 | _ACEOF | |
11516 | cat confdefs.h >>conftest.$ac_ext | |
11517 | cat >>conftest.$ac_ext <<_ACEOF | |
11518 | /* end confdefs.h. */ | |
11519 | ||
11520 | int | |
11521 | main () | |
11522 | { | |
11523 | int i; | |
11524 | ; | |
11525 | return 0; | |
11526 | } | |
11527 | _ACEOF | |
11528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11529 | if { (ac_try="$ac_link" |
11530 | case "(($ac_try" in | |
11531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11532 | *) ac_try_echo=$ac_try;; | |
11533 | esac | |
11534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11535 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11536 | ac_status=$? |
11537 | grep -v '^ *+' conftest.er1 >conftest.err | |
11538 | rm -f conftest.er1 | |
11539 | cat conftest.err >&5 | |
11540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11541 | (exit $ac_status); } && { |
11542 | test -z "$ac_c_werror_flag" || | |
11543 | test ! -s conftest.err | |
11544 | } && test -s conftest$ac_exeext && | |
11545 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11546 | found=yes |
11547 | else | |
11548 | echo "$as_me: failed program was:" >&5 | |
11549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11550 | ||
631ef239 | 11551 | found=no |
212380e3 | 11552 | fi |
631ef239 AC |
11553 | |
11554 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11555 | conftest$ac_exeext conftest.$ac_ext |
11556 | LDFLAGS=$hold_ldflags | |
11557 | ||
11558 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
11559 | found="no, IRIX ld uses -B,dynamic" | |
11560 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
11561 | fi | |
11562 | ||
11563 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
11564 | found="no, AIX ld uses -G -brtl" | |
11565 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
11566 | fi | |
11567 | ||
631ef239 AC |
11568 | { echo "$as_me:$LINENO: result: $found" >&5 |
11569 | echo "${ECHO_T}$found" >&6; } | |
212380e3 AC |
11570 | |
11571 | if test "$found" = yes; then | |
11572 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
11573 | fi | |
11574 | ||
631ef239 AC |
11575 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
11576 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
212380e3 | 11577 | if test "$SGS" = "yes"; then |
631ef239 AC |
11578 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
11579 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
11580 | PICFLAGS="-KPIC -DPIC -G" |
11581 | fi | |
11582 | ||
11583 | if test "$AppleGCC" = "yes"; then | |
631ef239 AC |
11584 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
11585 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
11586 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
11587 | fi | |
11588 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
631ef239 AC |
11589 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
11590 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 11591 | PICFLAGS="+z -r -q -n -c" |
631ef239 AC |
11592 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
11593 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
212380e3 AC |
11594 | |
11595 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
631ef239 AC |
11596 | { echo "$as_me:$LINENO: result: no" >&5 |
11597 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11598 | else |
631ef239 AC |
11599 | { echo "$as_me:$LINENO: result: yes" >&5 |
11600 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
11601 | PICFLAGS="$PICFLAGS +ESfic" |
11602 | fi | |
11603 | ||
11604 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
11605 | fi | |
11606 | if test "$Tru" = yes -a "$CC" != gcc; then | |
631ef239 AC |
11607 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
11608 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
11609 | PICFLAGS="-shared -expect_unresolved '*' " |
11610 | LDFLAGS="-call_shared" | |
11611 | fi | |
11612 | if test -z "$PICFLAGS"; then | |
11613 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
631ef239 AC |
11614 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
11615 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
11616 | PICFLAGS="-fPIC -DPIC -shared" |
11617 | else | |
631ef239 AC |
11618 | { echo "$as_me:$LINENO: result: no" >&5 |
11619 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11620 | shared_modules=no |
11621 | fi | |
11622 | fi | |
11623 | fi | |
11624 | ||
1a82970f JT |
11625 | # rpath, for finding libratbox.so at run time |
11626 | hold_ldflags=$LDFLAGS | |
11627 | { echo "$as_me:$LINENO: checking for the ld -rpath flag" >&5 | |
11628 | echo $ECHO_N "checking for the ld -rpath flag... $ECHO_C" >&6; } | |
11629 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" | |
11630 | cat >conftest.$ac_ext <<_ACEOF | |
11631 | /* confdefs.h. */ | |
11632 | _ACEOF | |
11633 | cat confdefs.h >>conftest.$ac_ext | |
11634 | cat >>conftest.$ac_ext <<_ACEOF | |
11635 | /* end confdefs.h. */ | |
11636 | ||
11637 | int | |
11638 | main () | |
11639 | { | |
11640 | int i; | |
11641 | ; | |
11642 | return 0; | |
11643 | } | |
11644 | _ACEOF | |
11645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11646 | if { (ac_try="$ac_link" | |
11647 | case "(($ac_try" in | |
11648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11649 | *) ac_try_echo=$ac_try;; | |
11650 | esac | |
11651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11652 | (eval "$ac_link") 2>conftest.er1 | |
11653 | ac_status=$? | |
11654 | grep -v '^ *+' conftest.er1 >conftest.err | |
11655 | rm -f conftest.er1 | |
11656 | cat conftest.err >&5 | |
11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11658 | (exit $ac_status); } && { | |
11659 | test -z "$ac_c_werror_flag" || | |
11660 | test ! -s conftest.err | |
11661 | } && test -s conftest$ac_exeext && | |
11662 | $as_test_x conftest$ac_exeext; then | |
11663 | found=yes | |
11664 | else | |
11665 | echo "$as_me: failed program was:" >&5 | |
11666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11667 | ||
11668 | found=no | |
11669 | fi | |
11670 | ||
11671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11672 | conftest$ac_exeext conftest.$ac_ext | |
11673 | LDFLAGS=$hold_ldflags | |
11674 | { echo "$as_me:$LINENO: result: $found" >&5 | |
11675 | echo "${ECHO_T}$found" >&6; } | |
11676 | if test "$found" = yes; then | |
11677 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
11678 | fi | |
11679 | ||
212380e3 AC |
11680 | # This must be down here, or it will mess up checks like the ones |
11681 | # for -Wl,-export-dynamic | |
11682 | # -- jilles | |
d2c5159a | 11683 | CWARNS="" |
631ef239 | 11684 | # Check whether --enable-warnings was given. |
212380e3 | 11685 | if test "${enable_warnings+set}" = set; then |
631ef239 | 11686 | enableval=$enable_warnings; |
212380e3 AC |
11687 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
11688 | CFLAGS="$IRC_CFLAGS" | |
11689 | ||
11690 | ||
631ef239 AC |
11691 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 |
11692 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
212380e3 AC |
11693 | if test "${GCC-no}" = yes |
11694 | then | |
11695 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
11696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11697 | else | |
11698 | ||
11699 | oldcflags="${CFLAGS-}" | |
11700 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
11701 | cat >conftest.$ac_ext <<_ACEOF | |
11702 | /* confdefs.h. */ | |
11703 | _ACEOF | |
11704 | cat confdefs.h >>conftest.$ac_ext | |
11705 | cat >>conftest.$ac_ext <<_ACEOF | |
11706 | /* end confdefs.h. */ | |
11707 | ||
11708 | #include <string.h> | |
11709 | #include <stdio.h> | |
11710 | int main(void); | |
11711 | ||
11712 | int | |
11713 | main () | |
11714 | { | |
11715 | ||
b1fc1658 | 11716 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11717 | |
11718 | ; | |
11719 | return 0; | |
11720 | } | |
11721 | _ACEOF | |
11722 | rm -f conftest.$ac_objext | |
631ef239 AC |
11723 | if { (ac_try="$ac_compile" |
11724 | case "(($ac_try" in | |
11725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11726 | *) ac_try_echo=$ac_try;; | |
11727 | esac | |
11728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11729 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11730 | ac_status=$? |
11731 | grep -v '^ *+' conftest.er1 >conftest.err | |
11732 | rm -f conftest.er1 | |
11733 | cat conftest.err >&5 | |
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11735 | (exit $ac_status); } && { |
11736 | test -z "$ac_c_werror_flag" || | |
11737 | test ! -s conftest.err | |
11738 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11739 | charybdis_cv_c_gcc_w_all=yes |
11740 | else | |
11741 | echo "$as_me: failed program was:" >&5 | |
11742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11743 | ||
631ef239 | 11744 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 11745 | fi |
631ef239 AC |
11746 | |
11747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11748 | CFLAGS="${oldcflags}" |
11749 | fi | |
11750 | ||
11751 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
11752 | CWARNS="${CWARNS}-Wall " | |
631ef239 AC |
11753 | { echo "$as_me:$LINENO: result: ok" >&5 |
11754 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11755 | else |
11756 | charybdis_cv_c_gcc_w_all='' | |
631ef239 AC |
11757 | { echo "$as_me:$LINENO: result: no" >&5 |
11758 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11759 | fi |
11760 | else | |
631ef239 AC |
11761 | { echo "$as_me:$LINENO: result: no" >&5 |
11762 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11763 | fi |
11764 | ||
11765 | ||
631ef239 AC |
11766 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 |
11767 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
212380e3 AC |
11768 | if test "${GCC-no}" = yes |
11769 | then | |
11770 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
11771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11772 | else | |
11773 | ||
11774 | oldcflags="${CFLAGS-}" | |
11775 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
11776 | cat >conftest.$ac_ext <<_ACEOF | |
11777 | /* confdefs.h. */ | |
11778 | _ACEOF | |
11779 | cat confdefs.h >>conftest.$ac_ext | |
11780 | cat >>conftest.$ac_ext <<_ACEOF | |
11781 | /* end confdefs.h. */ | |
11782 | ||
11783 | #include <string.h> | |
11784 | #include <stdio.h> | |
11785 | int main(void); | |
11786 | ||
11787 | int | |
11788 | main () | |
11789 | { | |
11790 | ||
b1fc1658 | 11791 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11792 | |
11793 | ; | |
11794 | return 0; | |
11795 | } | |
11796 | _ACEOF | |
11797 | rm -f conftest.$ac_objext | |
631ef239 AC |
11798 | if { (ac_try="$ac_compile" |
11799 | case "(($ac_try" in | |
11800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11801 | *) ac_try_echo=$ac_try;; | |
11802 | esac | |
11803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11804 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11805 | ac_status=$? |
11806 | grep -v '^ *+' conftest.er1 >conftest.err | |
11807 | rm -f conftest.er1 | |
11808 | cat conftest.err >&5 | |
11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11810 | (exit $ac_status); } && { |
11811 | test -z "$ac_c_werror_flag" || | |
11812 | test ! -s conftest.err | |
11813 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11814 | charybdis_cv_c_gcc_w_pointer_arith=yes |
11815 | else | |
11816 | echo "$as_me: failed program was:" >&5 | |
11817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11818 | ||
631ef239 | 11819 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 11820 | fi |
631ef239 AC |
11821 | |
11822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11823 | CFLAGS="${oldcflags}" |
11824 | fi | |
11825 | ||
11826 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
11827 | CWARNS="${CWARNS}-Wpointer-arith " | |
631ef239 AC |
11828 | { echo "$as_me:$LINENO: result: ok" >&5 |
11829 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11830 | else |
11831 | charybdis_cv_c_gcc_w_pointer_arith='' | |
631ef239 AC |
11832 | { echo "$as_me:$LINENO: result: no" >&5 |
11833 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11834 | fi |
11835 | else | |
631ef239 AC |
11836 | { echo "$as_me:$LINENO: result: no" >&5 |
11837 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11838 | fi |
11839 | ||
11840 | ||
631ef239 AC |
11841 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
11842 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
11843 | if test "${GCC-no}" = yes |
11844 | then | |
11845 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
11846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11847 | else | |
11848 | ||
11849 | oldcflags="${CFLAGS-}" | |
11850 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
11851 | cat >conftest.$ac_ext <<_ACEOF | |
11852 | /* confdefs.h. */ | |
11853 | _ACEOF | |
11854 | cat confdefs.h >>conftest.$ac_ext | |
11855 | cat >>conftest.$ac_ext <<_ACEOF | |
11856 | /* end confdefs.h. */ | |
11857 | ||
11858 | #include <string.h> | |
11859 | #include <stdio.h> | |
11860 | int main(void); | |
11861 | ||
11862 | int | |
11863 | main () | |
11864 | { | |
11865 | ||
b1fc1658 | 11866 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11867 | |
11868 | ; | |
11869 | return 0; | |
11870 | } | |
11871 | _ACEOF | |
11872 | rm -f conftest.$ac_objext | |
631ef239 AC |
11873 | if { (ac_try="$ac_compile" |
11874 | case "(($ac_try" in | |
11875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11876 | *) ac_try_echo=$ac_try;; | |
11877 | esac | |
11878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11879 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11880 | ac_status=$? |
11881 | grep -v '^ *+' conftest.er1 >conftest.err | |
11882 | rm -f conftest.er1 | |
11883 | cat conftest.err >&5 | |
11884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11885 | (exit $ac_status); } && { |
11886 | test -z "$ac_c_werror_flag" || | |
11887 | test ! -s conftest.err | |
11888 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11889 | charybdis_cv_c_gcc_w_implicit=yes |
11890 | else | |
11891 | echo "$as_me: failed program was:" >&5 | |
11892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11893 | ||
631ef239 | 11894 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 11895 | fi |
631ef239 AC |
11896 | |
11897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11898 | CFLAGS="${oldcflags}" |
11899 | fi | |
11900 | ||
11901 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
11902 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
631ef239 AC |
11903 | { echo "$as_me:$LINENO: result: ok" >&5 |
11904 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11905 | else |
11906 | charybdis_cv_c_gcc_w_implicit='' | |
631ef239 AC |
11907 | { echo "$as_me:$LINENO: result: no" >&5 |
11908 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11909 | fi |
11910 | else | |
631ef239 AC |
11911 | { echo "$as_me:$LINENO: result: no" >&5 |
11912 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11913 | fi |
11914 | ||
11915 | ||
631ef239 AC |
11916 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 |
11917 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
212380e3 AC |
11918 | if test "${GCC-no}" = yes |
11919 | then | |
11920 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
11921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11922 | else | |
11923 | ||
11924 | oldcflags="${CFLAGS-}" | |
11925 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
11926 | cat >conftest.$ac_ext <<_ACEOF | |
11927 | /* confdefs.h. */ | |
11928 | _ACEOF | |
11929 | cat confdefs.h >>conftest.$ac_ext | |
11930 | cat >>conftest.$ac_ext <<_ACEOF | |
11931 | /* end confdefs.h. */ | |
11932 | ||
11933 | #include <string.h> | |
11934 | #include <stdio.h> | |
11935 | int main(void); | |
11936 | ||
11937 | int | |
11938 | main () | |
11939 | { | |
11940 | ||
b1fc1658 | 11941 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11942 | |
11943 | ; | |
11944 | return 0; | |
11945 | } | |
11946 | _ACEOF | |
11947 | rm -f conftest.$ac_objext | |
631ef239 AC |
11948 | if { (ac_try="$ac_compile" |
11949 | case "(($ac_try" in | |
11950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11951 | *) ac_try_echo=$ac_try;; | |
11952 | esac | |
11953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11954 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11955 | ac_status=$? |
11956 | grep -v '^ *+' conftest.er1 >conftest.err | |
11957 | rm -f conftest.er1 | |
11958 | cat conftest.err >&5 | |
11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11960 | (exit $ac_status); } && { |
11961 | test -z "$ac_c_werror_flag" || | |
11962 | test ! -s conftest.err | |
11963 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11964 | charybdis_cv_c_gcc_w_cast_align=yes |
11965 | else | |
11966 | echo "$as_me: failed program was:" >&5 | |
11967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11968 | ||
631ef239 | 11969 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 11970 | fi |
631ef239 AC |
11971 | |
11972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11973 | CFLAGS="${oldcflags}" |
11974 | fi | |
11975 | ||
11976 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
11977 | CWARNS="${CWARNS}-Wcast-align " | |
631ef239 AC |
11978 | { echo "$as_me:$LINENO: result: ok" >&5 |
11979 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11980 | else |
11981 | charybdis_cv_c_gcc_w_cast_align='' | |
631ef239 AC |
11982 | { echo "$as_me:$LINENO: result: no" >&5 |
11983 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11984 | fi |
11985 | else | |
631ef239 AC |
11986 | { echo "$as_me:$LINENO: result: no" >&5 |
11987 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11988 | fi |
11989 | ||
11990 | ||
631ef239 AC |
11991 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 |
11992 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
212380e3 AC |
11993 | if test "${GCC-no}" = yes |
11994 | then | |
11995 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
11996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11997 | else | |
11998 | ||
11999 | oldcflags="${CFLAGS-}" | |
12000 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12001 | cat >conftest.$ac_ext <<_ACEOF | |
12002 | /* confdefs.h. */ | |
12003 | _ACEOF | |
12004 | cat confdefs.h >>conftest.$ac_ext | |
12005 | cat >>conftest.$ac_ext <<_ACEOF | |
12006 | /* end confdefs.h. */ | |
12007 | ||
12008 | #include <string.h> | |
12009 | #include <stdio.h> | |
12010 | int main(void); | |
12011 | ||
12012 | int | |
12013 | main () | |
12014 | { | |
12015 | ||
b1fc1658 | 12016 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12017 | |
12018 | ; | |
12019 | return 0; | |
12020 | } | |
12021 | _ACEOF | |
12022 | rm -f conftest.$ac_objext | |
631ef239 AC |
12023 | if { (ac_try="$ac_compile" |
12024 | case "(($ac_try" in | |
12025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12026 | *) ac_try_echo=$ac_try;; | |
12027 | esac | |
12028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12029 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12030 | ac_status=$? |
12031 | grep -v '^ *+' conftest.er1 >conftest.err | |
12032 | rm -f conftest.er1 | |
12033 | cat conftest.err >&5 | |
12034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12035 | (exit $ac_status); } && { |
12036 | test -z "$ac_c_werror_flag" || | |
12037 | test ! -s conftest.err | |
12038 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12039 | charybdis_cv_c_gcc_w_cast_qual=yes |
12040 | else | |
12041 | echo "$as_me: failed program was:" >&5 | |
12042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12043 | ||
631ef239 | 12044 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 12045 | fi |
631ef239 AC |
12046 | |
12047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12048 | CFLAGS="${oldcflags}" |
12049 | fi | |
12050 | ||
12051 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12052 | CWARNS="${CWARNS}-Wcast-qual " | |
631ef239 AC |
12053 | { echo "$as_me:$LINENO: result: ok" >&5 |
12054 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12055 | else |
12056 | charybdis_cv_c_gcc_w_cast_qual='' | |
631ef239 AC |
12057 | { echo "$as_me:$LINENO: result: no" >&5 |
12058 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12059 | fi |
12060 | else | |
631ef239 AC |
12061 | { echo "$as_me:$LINENO: result: no" >&5 |
12062 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12063 | fi |
12064 | ||
12065 | ||
d2c5159a JT |
12066 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5 |
12067 | echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; } | |
12068 | if test "${GCC-no}" = yes | |
12069 | then | |
bbe58888 | 12070 | if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then |
d2c5159a JT |
12071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12072 | else | |
12073 | ||
12074 | oldcflags="${CFLAGS-}" | |
12075 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
12076 | cat >conftest.$ac_ext <<_ACEOF | |
12077 | /* confdefs.h. */ | |
12078 | _ACEOF | |
12079 | cat confdefs.h >>conftest.$ac_ext | |
12080 | cat >>conftest.$ac_ext <<_ACEOF | |
12081 | /* end confdefs.h. */ | |
12082 | ||
12083 | #include <string.h> | |
12084 | #include <stdio.h> | |
12085 | int main(void); | |
12086 | ||
12087 | int | |
12088 | main () | |
12089 | { | |
12090 | ||
12091 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12092 | ||
12093 | ; | |
12094 | return 0; | |
12095 | } | |
12096 | _ACEOF | |
12097 | rm -f conftest.$ac_objext | |
12098 | if { (ac_try="$ac_compile" | |
12099 | case "(($ac_try" in | |
12100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12101 | *) ac_try_echo=$ac_try;; | |
12102 | esac | |
12103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12104 | (eval "$ac_compile") 2>conftest.er1 | |
12105 | ac_status=$? | |
12106 | grep -v '^ *+' conftest.er1 >conftest.err | |
12107 | rm -f conftest.er1 | |
12108 | cat conftest.err >&5 | |
12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12110 | (exit $ac_status); } && { | |
12111 | test -z "$ac_c_werror_flag" || | |
12112 | test ! -s conftest.err | |
12113 | } && test -s conftest.$ac_objext; then | |
bbe58888 | 12114 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a JT |
12115 | else |
12116 | echo "$as_me: failed program was:" >&5 | |
12117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12118 | ||
bbe58888 | 12119 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a JT |
12120 | fi |
12121 | ||
12122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12123 | CFLAGS="${oldcflags}" | |
12124 | fi | |
12125 | ||
bbe58888 | 12126 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a JT |
12127 | CWARNS="${CWARNS}-Wwrite-strings " |
12128 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12129 | echo "${ECHO_T}ok" >&6; } | |
12130 | else | |
bbe58888 VY |
12131 | charybdis_cv_c_gcc_w_write_strings='' |
12132 | { echo "$as_me:$LINENO: result: no" >&5 | |
12133 | echo "${ECHO_T}no" >&6; } | |
12134 | fi | |
12135 | else | |
12136 | { echo "$as_me:$LINENO: result: no" >&5 | |
12137 | echo "${ECHO_T}no" >&6; } | |
12138 | fi | |
12139 | ||
12140 | ||
12141 | { echo "$as_me:$LINENO: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 | |
12142 | echo $ECHO_N "checking GCC flag(s) -Werror-implicit-function-declaration... $ECHO_C" >&6; } | |
12143 | if test "${GCC-no}" = yes | |
12144 | then | |
12145 | if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then | |
12146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12147 | else | |
12148 | ||
12149 | oldcflags="${CFLAGS-}" | |
12150 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
12151 | cat >conftest.$ac_ext <<_ACEOF | |
12152 | /* confdefs.h. */ | |
12153 | _ACEOF | |
12154 | cat confdefs.h >>conftest.$ac_ext | |
12155 | cat >>conftest.$ac_ext <<_ACEOF | |
12156 | /* end confdefs.h. */ | |
12157 | ||
12158 | #include <string.h> | |
12159 | #include <stdio.h> | |
12160 | int main(void); | |
12161 | ||
12162 | int | |
12163 | main () | |
12164 | { | |
12165 | ||
12166 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12167 | ||
12168 | ; | |
12169 | return 0; | |
12170 | } | |
12171 | _ACEOF | |
12172 | rm -f conftest.$ac_objext | |
12173 | if { (ac_try="$ac_compile" | |
12174 | case "(($ac_try" in | |
12175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12176 | *) ac_try_echo=$ac_try;; | |
12177 | esac | |
12178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12179 | (eval "$ac_compile") 2>conftest.er1 | |
12180 | ac_status=$? | |
12181 | grep -v '^ *+' conftest.er1 >conftest.err | |
12182 | rm -f conftest.er1 | |
12183 | cat conftest.err >&5 | |
12184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12185 | (exit $ac_status); } && { | |
12186 | test -z "$ac_c_werror_flag" || | |
12187 | test ! -s conftest.err | |
12188 | } && test -s conftest.$ac_objext; then | |
12189 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes | |
12190 | else | |
12191 | echo "$as_me: failed program was:" >&5 | |
12192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12193 | ||
12194 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no | |
12195 | fi | |
12196 | ||
12197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12198 | CFLAGS="${oldcflags}" | |
12199 | fi | |
12200 | ||
12201 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
12202 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
12203 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12204 | echo "${ECHO_T}ok" >&6; } | |
12205 | else | |
12206 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
d2c5159a JT |
12207 | { echo "$as_me:$LINENO: result: no" >&5 |
12208 | echo "${ECHO_T}no" >&6; } | |
12209 | fi | |
12210 | else | |
12211 | { echo "$as_me:$LINENO: result: no" >&5 | |
12212 | echo "${ECHO_T}no" >&6; } | |
12213 | fi | |
12214 | ||
12215 | ||
631ef239 AC |
12216 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
12217 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
212380e3 AC |
12218 | if test "${GCC-no}" = yes |
12219 | then | |
12220 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12222 | else | |
12223 | ||
12224 | oldcflags="${CFLAGS-}" | |
12225 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12226 | cat >conftest.$ac_ext <<_ACEOF | |
12227 | /* confdefs.h. */ | |
12228 | _ACEOF | |
12229 | cat confdefs.h >>conftest.$ac_ext | |
12230 | cat >>conftest.$ac_ext <<_ACEOF | |
12231 | /* end confdefs.h. */ | |
12232 | ||
12233 | #include <string.h> | |
12234 | #include <stdio.h> | |
12235 | int main(void); | |
12236 | ||
12237 | int | |
12238 | main () | |
12239 | { | |
12240 | ||
b1fc1658 | 12241 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12242 | |
12243 | ; | |
12244 | return 0; | |
12245 | } | |
12246 | _ACEOF | |
12247 | rm -f conftest.$ac_objext | |
631ef239 AC |
12248 | if { (ac_try="$ac_compile" |
12249 | case "(($ac_try" in | |
12250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12251 | *) ac_try_echo=$ac_try;; | |
12252 | esac | |
12253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12254 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12255 | ac_status=$? |
12256 | grep -v '^ *+' conftest.er1 >conftest.err | |
12257 | rm -f conftest.er1 | |
12258 | cat conftest.err >&5 | |
12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12260 | (exit $ac_status); } && { |
12261 | test -z "$ac_c_werror_flag" || | |
12262 | test ! -s conftest.err | |
12263 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12264 | charybdis_cv_c_gcc_prototypes=yes |
12265 | else | |
12266 | echo "$as_me: failed program was:" >&5 | |
12267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12268 | ||
631ef239 | 12269 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 12270 | fi |
631ef239 AC |
12271 | |
12272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12273 | CFLAGS="${oldcflags}" |
12274 | fi | |
12275 | ||
12276 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12277 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
631ef239 AC |
12278 | { echo "$as_me:$LINENO: result: ok" >&5 |
12279 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12280 | else |
12281 | charybdis_cv_c_gcc_prototypes='' | |
631ef239 AC |
12282 | { echo "$as_me:$LINENO: result: no" >&5 |
12283 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12284 | fi |
12285 | else | |
631ef239 AC |
12286 | { echo "$as_me:$LINENO: result: no" >&5 |
12287 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12288 | fi |
12289 | ||
12290 | ||
631ef239 AC |
12291 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 |
12292 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
212380e3 AC |
12293 | if test "${GCC-no}" = yes |
12294 | then | |
12295 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12297 | else | |
12298 | ||
12299 | oldcflags="${CFLAGS-}" | |
12300 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12301 | cat >conftest.$ac_ext <<_ACEOF | |
12302 | /* confdefs.h. */ | |
12303 | _ACEOF | |
12304 | cat confdefs.h >>conftest.$ac_ext | |
12305 | cat >>conftest.$ac_ext <<_ACEOF | |
12306 | /* end confdefs.h. */ | |
12307 | ||
12308 | #include <string.h> | |
12309 | #include <stdio.h> | |
12310 | int main(void); | |
12311 | ||
12312 | int | |
12313 | main () | |
12314 | { | |
12315 | ||
b1fc1658 | 12316 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12317 | |
12318 | ; | |
12319 | return 0; | |
12320 | } | |
12321 | _ACEOF | |
12322 | rm -f conftest.$ac_objext | |
631ef239 AC |
12323 | if { (ac_try="$ac_compile" |
12324 | case "(($ac_try" in | |
12325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12326 | *) ac_try_echo=$ac_try;; | |
12327 | esac | |
12328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12329 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12330 | ac_status=$? |
12331 | grep -v '^ *+' conftest.er1 >conftest.err | |
12332 | rm -f conftest.er1 | |
12333 | cat conftest.err >&5 | |
12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12335 | (exit $ac_status); } && { |
12336 | test -z "$ac_c_werror_flag" || | |
12337 | test ! -s conftest.err | |
12338 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12339 | charybdis_cv_c_gcc_parenthesis=yes |
12340 | else | |
12341 | echo "$as_me: failed program was:" >&5 | |
12342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12343 | ||
631ef239 | 12344 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 12345 | fi |
631ef239 AC |
12346 | |
12347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12348 | CFLAGS="${oldcflags}" |
12349 | fi | |
12350 | ||
12351 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12352 | CWARNS="${CWARNS}-Wparenthesis " | |
631ef239 AC |
12353 | { echo "$as_me:$LINENO: result: ok" >&5 |
12354 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12355 | else |
12356 | charybdis_cv_c_gcc_parenthesis='' | |
631ef239 AC |
12357 | { echo "$as_me:$LINENO: result: no" >&5 |
12358 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12359 | fi |
12360 | else | |
631ef239 AC |
12361 | { echo "$as_me:$LINENO: result: no" >&5 |
12362 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12363 | fi |
12364 | ||
12365 | ||
631ef239 AC |
12366 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 |
12367 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
212380e3 AC |
12368 | if test "${GCC-no}" = yes |
12369 | then | |
12370 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12372 | else | |
12373 | ||
12374 | oldcflags="${CFLAGS-}" | |
12375 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12376 | cat >conftest.$ac_ext <<_ACEOF | |
12377 | /* confdefs.h. */ | |
12378 | _ACEOF | |
12379 | cat confdefs.h >>conftest.$ac_ext | |
12380 | cat >>conftest.$ac_ext <<_ACEOF | |
12381 | /* end confdefs.h. */ | |
12382 | ||
12383 | #include <string.h> | |
12384 | #include <stdio.h> | |
12385 | int main(void); | |
12386 | ||
12387 | int | |
12388 | main () | |
12389 | { | |
12390 | ||
b1fc1658 | 12391 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12392 | |
12393 | ; | |
12394 | return 0; | |
12395 | } | |
12396 | _ACEOF | |
12397 | rm -f conftest.$ac_objext | |
631ef239 AC |
12398 | if { (ac_try="$ac_compile" |
12399 | case "(($ac_try" in | |
12400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12401 | *) ac_try_echo=$ac_try;; | |
12402 | esac | |
12403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12404 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12405 | ac_status=$? |
12406 | grep -v '^ *+' conftest.er1 >conftest.err | |
12407 | rm -f conftest.er1 | |
12408 | cat conftest.err >&5 | |
12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12410 | (exit $ac_status); } && { |
12411 | test -z "$ac_c_werror_flag" || | |
12412 | test ! -s conftest.err | |
12413 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12414 | charybdis_cv_c_gcc_w=yes |
12415 | else | |
12416 | echo "$as_me: failed program was:" >&5 | |
12417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12418 | ||
631ef239 | 12419 | charybdis_cv_c_gcc_w=no |
212380e3 | 12420 | fi |
631ef239 AC |
12421 | |
12422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12423 | CFLAGS="${oldcflags}" |
12424 | fi | |
12425 | ||
12426 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12427 | CWARNS="${CWARNS}-W -Wno-unused " | |
631ef239 AC |
12428 | { echo "$as_me:$LINENO: result: ok" >&5 |
12429 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12430 | else |
12431 | charybdis_cv_c_gcc_w='' | |
631ef239 AC |
12432 | { echo "$as_me:$LINENO: result: no" >&5 |
12433 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12434 | fi |
12435 | else | |
631ef239 AC |
12436 | { echo "$as_me:$LINENO: result: no" >&5 |
12437 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12438 | fi |
12439 | ||
12440 | ||
631ef239 AC |
12441 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 |
12442 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
212380e3 AC |
12443 | if test "${GCC-no}" = yes |
12444 | then | |
12445 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12447 | else | |
12448 | ||
12449 | oldcflags="${CFLAGS-}" | |
12450 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12451 | cat >conftest.$ac_ext <<_ACEOF | |
12452 | /* confdefs.h. */ | |
12453 | _ACEOF | |
12454 | cat confdefs.h >>conftest.$ac_ext | |
12455 | cat >>conftest.$ac_ext <<_ACEOF | |
12456 | /* end confdefs.h. */ | |
12457 | ||
12458 | #include <string.h> | |
12459 | #include <stdio.h> | |
12460 | int main(void); | |
12461 | ||
12462 | int | |
12463 | main () | |
12464 | { | |
12465 | ||
b1fc1658 | 12466 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12467 | |
12468 | ; | |
12469 | return 0; | |
12470 | } | |
12471 | _ACEOF | |
12472 | rm -f conftest.$ac_objext | |
631ef239 AC |
12473 | if { (ac_try="$ac_compile" |
12474 | case "(($ac_try" in | |
12475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12476 | *) ac_try_echo=$ac_try;; | |
12477 | esac | |
12478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12479 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12480 | ac_status=$? |
12481 | grep -v '^ *+' conftest.er1 >conftest.err | |
12482 | rm -f conftest.er1 | |
12483 | cat conftest.err >&5 | |
12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12485 | (exit $ac_status); } && { |
12486 | test -z "$ac_c_werror_flag" || | |
12487 | test ! -s conftest.err | |
12488 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12489 | charybdis_cv_c_gcc_w_extra=yes |
12490 | else | |
12491 | echo "$as_me: failed program was:" >&5 | |
12492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12493 | ||
631ef239 | 12494 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 12495 | fi |
631ef239 AC |
12496 | |
12497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12498 | CFLAGS="${oldcflags}" |
12499 | fi | |
12500 | ||
12501 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12502 | CWARNS="${CWARNS}-Wextra " | |
631ef239 AC |
12503 | { echo "$as_me:$LINENO: result: ok" >&5 |
12504 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12505 | else |
12506 | charybdis_cv_c_gcc_w_extra='' | |
631ef239 AC |
12507 | { echo "$as_me:$LINENO: result: no" >&5 |
12508 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12509 | fi |
12510 | else | |
631ef239 AC |
12511 | { echo "$as_me:$LINENO: result: no" >&5 |
12512 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12513 | fi |
12514 | ||
12515 | ||
631ef239 AC |
12516 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 |
12517 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
212380e3 AC |
12518 | if test "${GCC-no}" = yes |
12519 | then | |
12520 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12522 | else | |
12523 | ||
12524 | oldcflags="${CFLAGS-}" | |
12525 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12526 | cat >conftest.$ac_ext <<_ACEOF | |
12527 | /* confdefs.h. */ | |
12528 | _ACEOF | |
12529 | cat confdefs.h >>conftest.$ac_ext | |
12530 | cat >>conftest.$ac_ext <<_ACEOF | |
12531 | /* end confdefs.h. */ | |
12532 | ||
12533 | #include <string.h> | |
12534 | #include <stdio.h> | |
12535 | int main(void); | |
12536 | ||
12537 | int | |
12538 | main () | |
12539 | { | |
12540 | ||
b1fc1658 | 12541 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12542 | |
12543 | ; | |
12544 | return 0; | |
12545 | } | |
12546 | _ACEOF | |
12547 | rm -f conftest.$ac_objext | |
631ef239 AC |
12548 | if { (ac_try="$ac_compile" |
12549 | case "(($ac_try" in | |
12550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12551 | *) ac_try_echo=$ac_try;; | |
12552 | esac | |
12553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12554 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12555 | ac_status=$? |
12556 | grep -v '^ *+' conftest.er1 >conftest.err | |
12557 | rm -f conftest.er1 | |
12558 | cat conftest.err >&5 | |
12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12560 | (exit $ac_status); } && { |
12561 | test -z "$ac_c_werror_flag" || | |
12562 | test ! -s conftest.err | |
12563 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12564 | charybdis_cv_c_gcc_w_shadow=yes |
12565 | else | |
12566 | echo "$as_me: failed program was:" >&5 | |
12567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12568 | ||
631ef239 | 12569 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 12570 | fi |
631ef239 AC |
12571 | |
12572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12573 | CFLAGS="${oldcflags}" |
12574 | fi | |
12575 | ||
12576 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12577 | CWARNS="${CWARNS}-Wshadow " | |
631ef239 AC |
12578 | { echo "$as_me:$LINENO: result: ok" >&5 |
12579 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12580 | else |
12581 | charybdis_cv_c_gcc_w_shadow='' | |
631ef239 AC |
12582 | { echo "$as_me:$LINENO: result: no" >&5 |
12583 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12584 | fi |
12585 | else | |
631ef239 AC |
12586 | { echo "$as_me:$LINENO: result: no" >&5 |
12587 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12588 | fi |
12589 | ||
12590 | ||
631ef239 AC |
12591 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 |
12592 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
212380e3 AC |
12593 | if test "${GCC-no}" = yes |
12594 | then | |
12595 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12597 | else | |
12598 | ||
12599 | oldcflags="${CFLAGS-}" | |
12600 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12601 | cat >conftest.$ac_ext <<_ACEOF | |
12602 | /* confdefs.h. */ | |
12603 | _ACEOF | |
12604 | cat confdefs.h >>conftest.$ac_ext | |
12605 | cat >>conftest.$ac_ext <<_ACEOF | |
12606 | /* end confdefs.h. */ | |
12607 | ||
12608 | #include <string.h> | |
12609 | #include <stdio.h> | |
12610 | int main(void); | |
12611 | ||
12612 | int | |
12613 | main () | |
12614 | { | |
12615 | ||
b1fc1658 | 12616 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12617 | |
12618 | ; | |
12619 | return 0; | |
12620 | } | |
12621 | _ACEOF | |
12622 | rm -f conftest.$ac_objext | |
631ef239 AC |
12623 | if { (ac_try="$ac_compile" |
12624 | case "(($ac_try" in | |
12625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12626 | *) ac_try_echo=$ac_try;; | |
12627 | esac | |
12628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12629 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12630 | ac_status=$? |
12631 | grep -v '^ *+' conftest.er1 >conftest.err | |
12632 | rm -f conftest.er1 | |
12633 | cat conftest.err >&5 | |
12634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12635 | (exit $ac_status); } && { |
12636 | test -z "$ac_c_werror_flag" || | |
12637 | test ! -s conftest.err | |
12638 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12639 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
12640 | else | |
12641 | echo "$as_me: failed program was:" >&5 | |
12642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12643 | ||
631ef239 | 12644 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 12645 | fi |
631ef239 AC |
12646 | |
12647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12648 | CFLAGS="${oldcflags}" |
12649 | fi | |
12650 | ||
12651 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12652 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
631ef239 AC |
12653 | { echo "$as_me:$LINENO: result: ok" >&5 |
12654 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12655 | else |
12656 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
631ef239 AC |
12657 | { echo "$as_me:$LINENO: result: no" >&5 |
12658 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12659 | fi |
12660 | else | |
631ef239 AC |
12661 | { echo "$as_me:$LINENO: result: no" >&5 |
12662 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12663 | fi |
12664 | ||
12665 | ||
631ef239 AC |
12666 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 |
12667 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
212380e3 AC |
12668 | if test "${GCC-no}" = yes |
12669 | then | |
12670 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
12671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12672 | else | |
12673 | ||
12674 | oldcflags="${CFLAGS-}" | |
12675 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
12676 | cat >conftest.$ac_ext <<_ACEOF | |
12677 | /* confdefs.h. */ | |
12678 | _ACEOF | |
12679 | cat confdefs.h >>conftest.$ac_ext | |
12680 | cat >>conftest.$ac_ext <<_ACEOF | |
12681 | /* end confdefs.h. */ | |
12682 | ||
12683 | #include <string.h> | |
12684 | #include <stdio.h> | |
12685 | int main(void); | |
12686 | ||
12687 | int | |
12688 | main () | |
12689 | { | |
12690 | ||
b1fc1658 | 12691 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12692 | |
12693 | ; | |
12694 | return 0; | |
12695 | } | |
12696 | _ACEOF | |
12697 | rm -f conftest.$ac_objext | |
631ef239 AC |
12698 | if { (ac_try="$ac_compile" |
12699 | case "(($ac_try" in | |
12700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12701 | *) ac_try_echo=$ac_try;; | |
12702 | esac | |
12703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12704 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12705 | ac_status=$? |
12706 | grep -v '^ *+' conftest.er1 >conftest.err | |
12707 | rm -f conftest.er1 | |
12708 | cat conftest.err >&5 | |
12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12710 | (exit $ac_status); } && { |
12711 | test -z "$ac_c_werror_flag" || | |
12712 | test ! -s conftest.err | |
12713 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12714 | charybdis_cv_c_gcc_w_undef=yes |
12715 | else | |
12716 | echo "$as_me: failed program was:" >&5 | |
12717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12718 | ||
631ef239 | 12719 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 12720 | fi |
631ef239 AC |
12721 | |
12722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12723 | CFLAGS="${oldcflags}" |
12724 | fi | |
12725 | ||
12726 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
12727 | CWARNS="${CWARNS}-Wundef " | |
631ef239 AC |
12728 | { echo "$as_me:$LINENO: result: ok" >&5 |
12729 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12730 | else |
12731 | charybdis_cv_c_gcc_w_undef='' | |
631ef239 AC |
12732 | { echo "$as_me:$LINENO: result: no" >&5 |
12733 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12734 | fi |
12735 | else | |
631ef239 AC |
12736 | { echo "$as_me:$LINENO: result: no" >&5 |
12737 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12738 | fi |
12739 | ||
12740 | ||
631ef239 AC |
12741 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 |
12742 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
212380e3 AC |
12743 | if test "${GCC-no}" = yes |
12744 | then | |
12745 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
12746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12747 | else | |
12748 | ||
12749 | oldcflags="${CFLAGS-}" | |
12750 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
12751 | cat >conftest.$ac_ext <<_ACEOF | |
12752 | /* confdefs.h. */ | |
12753 | _ACEOF | |
12754 | cat confdefs.h >>conftest.$ac_ext | |
12755 | cat >>conftest.$ac_ext <<_ACEOF | |
12756 | /* end confdefs.h. */ | |
12757 | ||
12758 | #include <string.h> | |
12759 | #include <stdio.h> | |
12760 | int main(void); | |
12761 | ||
12762 | int | |
12763 | main () | |
12764 | { | |
12765 | ||
b1fc1658 | 12766 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12767 | |
12768 | ; | |
12769 | return 0; | |
12770 | } | |
12771 | _ACEOF | |
12772 | rm -f conftest.$ac_objext | |
631ef239 AC |
12773 | if { (ac_try="$ac_compile" |
12774 | case "(($ac_try" in | |
12775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12776 | *) ac_try_echo=$ac_try;; | |
12777 | esac | |
12778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12779 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12780 | ac_status=$? |
12781 | grep -v '^ *+' conftest.er1 >conftest.err | |
12782 | rm -f conftest.er1 | |
12783 | cat conftest.err >&5 | |
12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12785 | (exit $ac_status); } && { |
12786 | test -z "$ac_c_werror_flag" || | |
12787 | test ! -s conftest.err | |
12788 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12789 | charybdis_cv_c_gcc_w_packed=yes |
12790 | else | |
12791 | echo "$as_me: failed program was:" >&5 | |
12792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12793 | ||
631ef239 | 12794 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 12795 | fi |
631ef239 AC |
12796 | |
12797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12798 | CFLAGS="${oldcflags}" |
12799 | fi | |
12800 | ||
12801 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
12802 | CWARNS="${CWARNS}-Wpacked " | |
631ef239 AC |
12803 | { echo "$as_me:$LINENO: result: ok" >&5 |
12804 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12805 | else |
12806 | charybdis_cv_c_gcc_w_packed='' | |
631ef239 AC |
12807 | { echo "$as_me:$LINENO: result: no" >&5 |
12808 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12809 | fi |
12810 | else | |
631ef239 AC |
12811 | { echo "$as_me:$LINENO: result: no" >&5 |
12812 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12813 | fi |
12814 | ||
12815 | ||
631ef239 AC |
12816 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 |
12817 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
12818 | if test "${GCC-no}" = yes |
12819 | then | |
12820 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
12821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12822 | else | |
12823 | ||
12824 | oldcflags="${CFLAGS-}" | |
12825 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
12826 | cat >conftest.$ac_ext <<_ACEOF | |
12827 | /* confdefs.h. */ | |
12828 | _ACEOF | |
12829 | cat confdefs.h >>conftest.$ac_ext | |
12830 | cat >>conftest.$ac_ext <<_ACEOF | |
12831 | /* end confdefs.h. */ | |
12832 | ||
12833 | #include <string.h> | |
12834 | #include <stdio.h> | |
12835 | int main(void); | |
12836 | ||
12837 | int | |
12838 | main () | |
12839 | { | |
12840 | ||
b1fc1658 | 12841 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12842 | |
12843 | ; | |
12844 | return 0; | |
12845 | } | |
12846 | _ACEOF | |
12847 | rm -f conftest.$ac_objext | |
631ef239 AC |
12848 | if { (ac_try="$ac_compile" |
12849 | case "(($ac_try" in | |
12850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12851 | *) ac_try_echo=$ac_try;; | |
12852 | esac | |
12853 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12854 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12855 | ac_status=$? |
12856 | grep -v '^ *+' conftest.er1 >conftest.err | |
12857 | rm -f conftest.er1 | |
12858 | cat conftest.err >&5 | |
12859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12860 | (exit $ac_status); } && { |
12861 | test -z "$ac_c_werror_flag" || | |
12862 | test ! -s conftest.err | |
12863 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12864 | charybdis_cv_c_gcc_w_nested_externs=yes |
12865 | else | |
12866 | echo "$as_me: failed program was:" >&5 | |
12867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12868 | ||
631ef239 | 12869 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 12870 | fi |
631ef239 AC |
12871 | |
12872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12873 | CFLAGS="${oldcflags}" |
12874 | fi | |
12875 | ||
12876 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
12877 | CWARNS="${CWARNS}-Wnested-externs " | |
631ef239 AC |
12878 | { echo "$as_me:$LINENO: result: ok" >&5 |
12879 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12880 | else |
12881 | charybdis_cv_c_gcc_w_nested_externs='' | |
631ef239 AC |
12882 | { echo "$as_me:$LINENO: result: no" >&5 |
12883 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12884 | fi |
12885 | else | |
631ef239 AC |
12886 | { echo "$as_me:$LINENO: result: no" >&5 |
12887 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12888 | fi |
12889 | ||
12890 | ||
631ef239 AC |
12891 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5 |
12892 | echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; } | |
212380e3 AC |
12893 | if test "${GCC-no}" = yes |
12894 | then | |
12895 | if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then | |
12896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12897 | else | |
12898 | ||
12899 | oldcflags="${CFLAGS-}" | |
12900 | CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror" | |
12901 | cat >conftest.$ac_ext <<_ACEOF | |
12902 | /* confdefs.h. */ | |
12903 | _ACEOF | |
12904 | cat confdefs.h >>conftest.$ac_ext | |
12905 | cat >>conftest.$ac_ext <<_ACEOF | |
12906 | /* end confdefs.h. */ | |
12907 | ||
12908 | #include <string.h> | |
12909 | #include <stdio.h> | |
12910 | int main(void); | |
12911 | ||
12912 | int | |
12913 | main () | |
12914 | { | |
12915 | ||
b1fc1658 | 12916 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12917 | |
12918 | ; | |
12919 | return 0; | |
12920 | } | |
12921 | _ACEOF | |
12922 | rm -f conftest.$ac_objext | |
631ef239 AC |
12923 | if { (ac_try="$ac_compile" |
12924 | case "(($ac_try" in | |
12925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12926 | *) ac_try_echo=$ac_try;; | |
12927 | esac | |
12928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12929 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12930 | ac_status=$? |
12931 | grep -v '^ *+' conftest.er1 >conftest.err | |
12932 | rm -f conftest.er1 | |
12933 | cat conftest.err >&5 | |
12934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12935 | (exit $ac_status); } && { |
12936 | test -z "$ac_c_werror_flag" || | |
12937 | test ! -s conftest.err | |
12938 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12939 | charybdis_cv_c_gcc_w_bad_function_cast=yes |
12940 | else | |
12941 | echo "$as_me: failed program was:" >&5 | |
12942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12943 | ||
631ef239 | 12944 | charybdis_cv_c_gcc_w_bad_function_cast=no |
212380e3 | 12945 | fi |
631ef239 AC |
12946 | |
12947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12948 | CFLAGS="${oldcflags}" |
12949 | fi | |
12950 | ||
12951 | if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then | |
12952 | CWARNS="${CWARNS}-Wbad-function-cast " | |
631ef239 AC |
12953 | { echo "$as_me:$LINENO: result: ok" >&5 |
12954 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12955 | else |
12956 | charybdis_cv_c_gcc_w_bad_function_cast='' | |
631ef239 AC |
12957 | { echo "$as_me:$LINENO: result: no" >&5 |
12958 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12959 | fi |
12960 | else | |
631ef239 AC |
12961 | { echo "$as_me:$LINENO: result: no" >&5 |
12962 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12963 | fi |
12964 | ||
12965 | ||
631ef239 AC |
12966 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
12967 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
212380e3 AC |
12968 | if test "${GCC-no}" = yes |
12969 | then | |
12970 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
12971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12972 | else | |
12973 | ||
12974 | oldcflags="${CFLAGS-}" | |
12975 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
12976 | cat >conftest.$ac_ext <<_ACEOF | |
12977 | /* confdefs.h. */ | |
12978 | _ACEOF | |
12979 | cat confdefs.h >>conftest.$ac_ext | |
12980 | cat >>conftest.$ac_ext <<_ACEOF | |
12981 | /* end confdefs.h. */ | |
12982 | ||
12983 | #include <string.h> | |
12984 | #include <stdio.h> | |
12985 | int main(void); | |
12986 | ||
12987 | int | |
12988 | main () | |
12989 | { | |
12990 | ||
b1fc1658 | 12991 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12992 | |
12993 | ; | |
12994 | return 0; | |
12995 | } | |
12996 | _ACEOF | |
12997 | rm -f conftest.$ac_objext | |
631ef239 AC |
12998 | if { (ac_try="$ac_compile" |
12999 | case "(($ac_try" in | |
13000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13001 | *) ac_try_echo=$ac_try;; | |
13002 | esac | |
13003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13004 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13005 | ac_status=$? |
13006 | grep -v '^ *+' conftest.er1 >conftest.err | |
13007 | rm -f conftest.er1 | |
13008 | cat conftest.err >&5 | |
13009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13010 | (exit $ac_status); } && { |
13011 | test -z "$ac_c_werror_flag" || | |
13012 | test ! -s conftest.err | |
13013 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13014 | charybdis_cv_c_gcc_w_unused=yes |
13015 | else | |
13016 | echo "$as_me: failed program was:" >&5 | |
13017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13018 | ||
631ef239 | 13019 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 13020 | fi |
631ef239 AC |
13021 | |
13022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13023 | CFLAGS="${oldcflags}" |
13024 | fi | |
13025 | ||
13026 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
13027 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
631ef239 AC |
13028 | { echo "$as_me:$LINENO: result: ok" >&5 |
13029 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13030 | else |
13031 | charybdis_cv_c_gcc_w_unused='' | |
631ef239 AC |
13032 | { echo "$as_me:$LINENO: result: no" >&5 |
13033 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13034 | fi |
13035 | else | |
631ef239 AC |
13036 | { echo "$as_me:$LINENO: result: no" >&5 |
13037 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13038 | fi |
13039 | ||
13040 | ||
631ef239 AC |
13041 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 |
13042 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
212380e3 AC |
13043 | if test "${GCC-no}" = yes |
13044 | then | |
13045 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
13046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13047 | else | |
13048 | ||
13049 | oldcflags="${CFLAGS-}" | |
13050 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
13051 | cat >conftest.$ac_ext <<_ACEOF | |
13052 | /* confdefs.h. */ | |
13053 | _ACEOF | |
13054 | cat confdefs.h >>conftest.$ac_ext | |
13055 | cat >>conftest.$ac_ext <<_ACEOF | |
13056 | /* end confdefs.h. */ | |
13057 | ||
13058 | #include <string.h> | |
13059 | #include <stdio.h> | |
13060 | int main(void); | |
13061 | ||
13062 | int | |
13063 | main () | |
13064 | { | |
13065 | ||
b1fc1658 | 13066 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13067 | |
13068 | ; | |
13069 | return 0; | |
13070 | } | |
13071 | _ACEOF | |
13072 | rm -f conftest.$ac_objext | |
631ef239 AC |
13073 | if { (ac_try="$ac_compile" |
13074 | case "(($ac_try" in | |
13075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13076 | *) ac_try_echo=$ac_try;; | |
13077 | esac | |
13078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13079 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13080 | ac_status=$? |
13081 | grep -v '^ *+' conftest.er1 >conftest.err | |
13082 | rm -f conftest.er1 | |
13083 | cat conftest.err >&5 | |
13084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13085 | (exit $ac_status); } && { |
13086 | test -z "$ac_c_werror_flag" || | |
13087 | test ! -s conftest.err | |
13088 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13089 | charybdis_cv_c_gcc_w_redundant_decls=yes |
13090 | else | |
13091 | echo "$as_me: failed program was:" >&5 | |
13092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13093 | ||
631ef239 | 13094 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 13095 | fi |
631ef239 AC |
13096 | |
13097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13098 | CFLAGS="${oldcflags}" |
13099 | fi | |
13100 | ||
13101 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13102 | CWARNS="${CWARNS}-Wredundant-decls " | |
631ef239 AC |
13103 | { echo "$as_me:$LINENO: result: ok" >&5 |
13104 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13105 | else |
13106 | charybdis_cv_c_gcc_w_redundant_decls='' | |
631ef239 AC |
13107 | { echo "$as_me:$LINENO: result: no" >&5 |
13108 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13109 | fi |
13110 | else | |
631ef239 AC |
13111 | { echo "$as_me:$LINENO: result: no" >&5 |
13112 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13113 | fi |
13114 | ||
13115 | ||
631ef239 AC |
13116 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 |
13117 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
212380e3 AC |
13118 | if test "${GCC-no}" = yes |
13119 | then | |
13120 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13122 | else | |
13123 | ||
13124 | oldcflags="${CFLAGS-}" | |
13125 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13126 | cat >conftest.$ac_ext <<_ACEOF | |
13127 | /* confdefs.h. */ | |
13128 | _ACEOF | |
13129 | cat confdefs.h >>conftest.$ac_ext | |
13130 | cat >>conftest.$ac_ext <<_ACEOF | |
13131 | /* end confdefs.h. */ | |
13132 | ||
13133 | #include <string.h> | |
13134 | #include <stdio.h> | |
13135 | int main(void); | |
13136 | ||
13137 | int | |
13138 | main () | |
13139 | { | |
13140 | ||
b1fc1658 | 13141 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13142 | |
13143 | ; | |
13144 | return 0; | |
13145 | } | |
13146 | _ACEOF | |
13147 | rm -f conftest.$ac_objext | |
631ef239 AC |
13148 | if { (ac_try="$ac_compile" |
13149 | case "(($ac_try" in | |
13150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13151 | *) ac_try_echo=$ac_try;; | |
13152 | esac | |
13153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13154 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13155 | ac_status=$? |
13156 | grep -v '^ *+' conftest.er1 >conftest.err | |
13157 | rm -f conftest.er1 | |
13158 | cat conftest.err >&5 | |
13159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13160 | (exit $ac_status); } && { |
13161 | test -z "$ac_c_werror_flag" || | |
13162 | test ! -s conftest.err | |
13163 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13164 | charybdis_cv_c_gcc_w_float_equal=yes |
13165 | else | |
13166 | echo "$as_me: failed program was:" >&5 | |
13167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13168 | ||
631ef239 | 13169 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 13170 | fi |
631ef239 AC |
13171 | |
13172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13173 | CFLAGS="${oldcflags}" |
13174 | fi | |
13175 | ||
13176 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13177 | CWARNS="${CWARNS}-Wfloat-equal " | |
631ef239 AC |
13178 | { echo "$as_me:$LINENO: result: ok" >&5 |
13179 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13180 | else |
13181 | charybdis_cv_c_gcc_w_float_equal='' | |
631ef239 AC |
13182 | { echo "$as_me:$LINENO: result: no" >&5 |
13183 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13184 | fi |
13185 | else | |
631ef239 AC |
13186 | { echo "$as_me:$LINENO: result: no" >&5 |
13187 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13188 | fi |
13189 | ||
13190 | ||
d2c5159a JT |
13191 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5 |
13192 | echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; } | |
212380e3 AC |
13193 | if test "${GCC-no}" = yes |
13194 | then | |
13195 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13197 | else | |
13198 | ||
13199 | oldcflags="${CFLAGS-}" | |
d2c5159a | 13200 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror" |
212380e3 AC |
13201 | cat >conftest.$ac_ext <<_ACEOF |
13202 | /* confdefs.h. */ | |
13203 | _ACEOF | |
13204 | cat confdefs.h >>conftest.$ac_ext | |
13205 | cat >>conftest.$ac_ext <<_ACEOF | |
13206 | /* end confdefs.h. */ | |
13207 | ||
13208 | #include <string.h> | |
13209 | #include <stdio.h> | |
13210 | int main(void); | |
13211 | ||
13212 | int | |
13213 | main () | |
13214 | { | |
13215 | ||
b1fc1658 | 13216 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13217 | |
13218 | ; | |
13219 | return 0; | |
13220 | } | |
13221 | _ACEOF | |
13222 | rm -f conftest.$ac_objext | |
631ef239 AC |
13223 | if { (ac_try="$ac_compile" |
13224 | case "(($ac_try" in | |
13225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13226 | *) ac_try_echo=$ac_try;; | |
13227 | esac | |
13228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13229 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13230 | ac_status=$? |
13231 | grep -v '^ *+' conftest.er1 >conftest.err | |
13232 | rm -f conftest.er1 | |
13233 | cat conftest.err >&5 | |
13234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13235 | (exit $ac_status); } && { |
13236 | test -z "$ac_c_werror_flag" || | |
13237 | test ! -s conftest.err | |
13238 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13239 | charybdis_cv_c_gcc_w_format=yes |
13240 | else | |
13241 | echo "$as_me: failed program was:" >&5 | |
13242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13243 | ||
631ef239 | 13244 | charybdis_cv_c_gcc_w_format=no |
212380e3 | 13245 | fi |
631ef239 AC |
13246 | |
13247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13248 | CFLAGS="${oldcflags}" |
13249 | fi | |
13250 | ||
13251 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
d2c5159a | 13252 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security " |
631ef239 AC |
13253 | { echo "$as_me:$LINENO: result: ok" >&5 |
13254 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13255 | else |
13256 | charybdis_cv_c_gcc_w_format='' | |
631ef239 AC |
13257 | { echo "$as_me:$LINENO: result: no" >&5 |
13258 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13259 | fi |
13260 | else | |
631ef239 AC |
13261 | { echo "$as_me:$LINENO: result: no" >&5 |
13262 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13263 | fi |
13264 | ||
13265 | ||
631ef239 AC |
13266 | { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5 |
13267 | echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; } | |
212380e3 AC |
13268 | if test "${GCC-no}" = yes |
13269 | then | |
13270 | if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then | |
13271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13272 | else | |
13273 | ||
13274 | oldcflags="${CFLAGS-}" | |
13275 | CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror" | |
13276 | cat >conftest.$ac_ext <<_ACEOF | |
13277 | /* confdefs.h. */ | |
13278 | _ACEOF | |
13279 | cat confdefs.h >>conftest.$ac_ext | |
13280 | cat >>conftest.$ac_ext <<_ACEOF | |
13281 | /* end confdefs.h. */ | |
13282 | ||
13283 | #include <string.h> | |
13284 | #include <stdio.h> | |
13285 | int main(void); | |
13286 | ||
13287 | int | |
13288 | main () | |
13289 | { | |
13290 | ||
b1fc1658 | 13291 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13292 | |
13293 | ; | |
13294 | return 0; | |
13295 | } | |
13296 | _ACEOF | |
13297 | rm -f conftest.$ac_objext | |
631ef239 AC |
13298 | if { (ac_try="$ac_compile" |
13299 | case "(($ac_try" in | |
13300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13301 | *) ac_try_echo=$ac_try;; | |
13302 | esac | |
13303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13304 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13305 | ac_status=$? |
13306 | grep -v '^ *+' conftest.er1 >conftest.err | |
13307 | rm -f conftest.er1 | |
13308 | cat conftest.err >&5 | |
13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13310 | (exit $ac_status); } && { |
13311 | test -z "$ac_c_werror_flag" || | |
13312 | test ! -s conftest.err | |
13313 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13314 | charybdis_cv_c_gcc_pedantic=yes |
13315 | else | |
13316 | echo "$as_me: failed program was:" >&5 | |
13317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13318 | ||
631ef239 | 13319 | charybdis_cv_c_gcc_pedantic=no |
212380e3 | 13320 | fi |
631ef239 AC |
13321 | |
13322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13323 | CFLAGS="${oldcflags}" |
13324 | fi | |
13325 | ||
13326 | if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then | |
13327 | CWARNS="${CWARNS}-pedantic " | |
631ef239 AC |
13328 | { echo "$as_me:$LINENO: result: ok" >&5 |
13329 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13330 | else |
13331 | charybdis_cv_c_gcc_pedantic='' | |
631ef239 AC |
13332 | { echo "$as_me:$LINENO: result: no" >&5 |
13333 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13334 | fi |
13335 | else | |
631ef239 AC |
13336 | { echo "$as_me:$LINENO: result: no" >&5 |
13337 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13338 | fi |
13339 | ||
13340 | ||
13341 | IRC_CFLAGS="$CFLAGS" | |
13342 | ||
631ef239 AC |
13343 | fi |
13344 | ||
212380e3 AC |
13345 | |
13346 | if test "$shared_modules" = no; then | |
13347 | DYNLINK_C="" | |
13348 | MOD_TARGET="libmodules.a" | |
13349 | MODULES_LIBS="../modules/libmodules.a" | |
13350 | SEDOBJ="" | |
13351 | ||
13352 | cat >>confdefs.h <<\_ACEOF | |
13353 | #define STATIC_MODULES 1 | |
13354 | _ACEOF | |
13355 | ||
13356 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13357 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13358 | fi | |
13359 | ||
13360 | if test "$shared_modules" = yes; then | |
13361 | ||
631ef239 AC |
13362 | { echo "$as_me:$LINENO: checking for nlist" >&5 |
13363 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
212380e3 AC |
13364 | if test "${ac_cv_func_nlist+set}" = set; then |
13365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13366 | else | |
13367 | cat >conftest.$ac_ext <<_ACEOF | |
13368 | /* confdefs.h. */ | |
13369 | _ACEOF | |
13370 | cat confdefs.h >>conftest.$ac_ext | |
13371 | cat >>conftest.$ac_ext <<_ACEOF | |
13372 | /* end confdefs.h. */ | |
13373 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13374 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13375 | #define nlist innocuous_nlist | |
13376 | ||
13377 | /* System header to define __stub macros and hopefully few prototypes, | |
13378 | which can conflict with char nlist (); below. | |
13379 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13380 | <limits.h> exists even on freestanding compilers. */ | |
13381 | ||
13382 | #ifdef __STDC__ | |
13383 | # include <limits.h> | |
13384 | #else | |
13385 | # include <assert.h> | |
13386 | #endif | |
13387 | ||
13388 | #undef nlist | |
13389 | ||
631ef239 AC |
13390 | /* Override any GCC internal prototype to avoid an error. |
13391 | Use char because int might match the return type of a GCC | |
13392 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13393 | #ifdef __cplusplus |
13394 | extern "C" | |
212380e3 | 13395 | #endif |
212380e3 AC |
13396 | char nlist (); |
13397 | /* The GNU C library defines this for functions which it implements | |
13398 | to always fail with ENOSYS. Some functions are actually named | |
13399 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 13400 | #if defined __stub_nlist || defined __stub___nlist |
212380e3 | 13401 | choke me |
212380e3 AC |
13402 | #endif |
13403 | ||
13404 | int | |
13405 | main () | |
13406 | { | |
631ef239 | 13407 | return nlist (); |
212380e3 AC |
13408 | ; |
13409 | return 0; | |
13410 | } | |
13411 | _ACEOF | |
13412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13413 | if { (ac_try="$ac_link" |
13414 | case "(($ac_try" in | |
13415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13416 | *) ac_try_echo=$ac_try;; | |
13417 | esac | |
13418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13419 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13420 | ac_status=$? |
13421 | grep -v '^ *+' conftest.er1 >conftest.err | |
13422 | rm -f conftest.er1 | |
13423 | cat conftest.err >&5 | |
13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13425 | (exit $ac_status); } && { |
13426 | test -z "$ac_c_werror_flag" || | |
13427 | test ! -s conftest.err | |
13428 | } && test -s conftest$ac_exeext && | |
13429 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13430 | ac_cv_func_nlist=yes |
13431 | else | |
13432 | echo "$as_me: failed program was:" >&5 | |
13433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13434 | ||
631ef239 | 13435 | ac_cv_func_nlist=no |
212380e3 | 13436 | fi |
631ef239 AC |
13437 | |
13438 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13439 | conftest$ac_exeext conftest.$ac_ext |
13440 | fi | |
631ef239 AC |
13441 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 |
13442 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
212380e3 AC |
13443 | if test $ac_cv_func_nlist = yes; then |
13444 | : | |
13445 | else | |
631ef239 AC |
13446 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 |
13447 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
212380e3 AC |
13448 | if test "${ac_cv_lib_dl_nlist+set}" = set; then |
13449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13450 | else | |
13451 | ac_check_lib_save_LIBS=$LIBS | |
13452 | LIBS="-ldl $LIBS" | |
13453 | cat >conftest.$ac_ext <<_ACEOF | |
13454 | /* confdefs.h. */ | |
13455 | _ACEOF | |
13456 | cat confdefs.h >>conftest.$ac_ext | |
13457 | cat >>conftest.$ac_ext <<_ACEOF | |
13458 | /* end confdefs.h. */ | |
13459 | ||
631ef239 AC |
13460 | /* Override any GCC internal prototype to avoid an error. |
13461 | Use char because int might match the return type of a GCC | |
13462 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13463 | #ifdef __cplusplus |
13464 | extern "C" | |
13465 | #endif | |
212380e3 AC |
13466 | char nlist (); |
13467 | int | |
13468 | main () | |
13469 | { | |
631ef239 | 13470 | return nlist (); |
212380e3 AC |
13471 | ; |
13472 | return 0; | |
13473 | } | |
13474 | _ACEOF | |
13475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13476 | if { (ac_try="$ac_link" |
13477 | case "(($ac_try" in | |
13478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13479 | *) ac_try_echo=$ac_try;; | |
13480 | esac | |
13481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13482 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13483 | ac_status=$? |
13484 | grep -v '^ *+' conftest.er1 >conftest.err | |
13485 | rm -f conftest.er1 | |
13486 | cat conftest.err >&5 | |
13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13488 | (exit $ac_status); } && { |
13489 | test -z "$ac_c_werror_flag" || | |
13490 | test ! -s conftest.err | |
13491 | } && test -s conftest$ac_exeext && | |
13492 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13493 | ac_cv_lib_dl_nlist=yes |
13494 | else | |
13495 | echo "$as_me: failed program was:" >&5 | |
13496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13497 | ||
631ef239 | 13498 | ac_cv_lib_dl_nlist=no |
212380e3 | 13499 | fi |
631ef239 AC |
13500 | |
13501 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13502 | conftest$ac_exeext conftest.$ac_ext |
13503 | LIBS=$ac_check_lib_save_LIBS | |
13504 | fi | |
631ef239 AC |
13505 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 |
13506 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
212380e3 AC |
13507 | if test $ac_cv_lib_dl_nlist = yes; then |
13508 | nlist_lib="-ldl" | |
13509 | else | |
631ef239 AC |
13510 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 |
13511 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
212380e3 AC |
13512 | if test "${ac_cv_lib_elf_nlist+set}" = set; then |
13513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13514 | else | |
13515 | ac_check_lib_save_LIBS=$LIBS | |
13516 | LIBS="-lelf $LIBS" | |
13517 | cat >conftest.$ac_ext <<_ACEOF | |
13518 | /* confdefs.h. */ | |
13519 | _ACEOF | |
13520 | cat confdefs.h >>conftest.$ac_ext | |
13521 | cat >>conftest.$ac_ext <<_ACEOF | |
13522 | /* end confdefs.h. */ | |
13523 | ||
631ef239 AC |
13524 | /* Override any GCC internal prototype to avoid an error. |
13525 | Use char because int might match the return type of a GCC | |
13526 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13527 | #ifdef __cplusplus |
13528 | extern "C" | |
13529 | #endif | |
212380e3 AC |
13530 | char nlist (); |
13531 | int | |
13532 | main () | |
13533 | { | |
631ef239 | 13534 | return nlist (); |
212380e3 AC |
13535 | ; |
13536 | return 0; | |
13537 | } | |
13538 | _ACEOF | |
13539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13540 | if { (ac_try="$ac_link" |
13541 | case "(($ac_try" in | |
13542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13543 | *) ac_try_echo=$ac_try;; | |
13544 | esac | |
13545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13546 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13547 | ac_status=$? |
13548 | grep -v '^ *+' conftest.er1 >conftest.err | |
13549 | rm -f conftest.er1 | |
13550 | cat conftest.err >&5 | |
13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13552 | (exit $ac_status); } && { |
13553 | test -z "$ac_c_werror_flag" || | |
13554 | test ! -s conftest.err | |
13555 | } && test -s conftest$ac_exeext && | |
13556 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13557 | ac_cv_lib_elf_nlist=yes |
13558 | else | |
13559 | echo "$as_me: failed program was:" >&5 | |
13560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13561 | ||
631ef239 | 13562 | ac_cv_lib_elf_nlist=no |
212380e3 | 13563 | fi |
631ef239 AC |
13564 | |
13565 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13566 | conftest$ac_exeext conftest.$ac_ext |
13567 | LIBS=$ac_check_lib_save_LIBS | |
13568 | fi | |
631ef239 AC |
13569 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 |
13570 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
212380e3 AC |
13571 | if test $ac_cv_lib_elf_nlist = yes; then |
13572 | nlist_lib="-lelf" | |
13573 | fi | |
13574 | ||
13575 | ||
13576 | fi | |
13577 | ||
13578 | ||
13579 | fi | |
13580 | ||
13581 | ||
13582 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
631ef239 AC |
13583 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13584 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13585 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13587 | fi | |
631ef239 AC |
13588 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13589 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13590 | else |
13591 | # Is the header compilable? | |
631ef239 AC |
13592 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 |
13593 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13594 | cat >conftest.$ac_ext <<_ACEOF |
13595 | /* confdefs.h. */ | |
13596 | _ACEOF | |
13597 | cat confdefs.h >>conftest.$ac_ext | |
13598 | cat >>conftest.$ac_ext <<_ACEOF | |
13599 | /* end confdefs.h. */ | |
13600 | $ac_includes_default | |
13601 | #include <libelf/nlist.h> | |
13602 | _ACEOF | |
13603 | rm -f conftest.$ac_objext | |
631ef239 AC |
13604 | if { (ac_try="$ac_compile" |
13605 | case "(($ac_try" in | |
13606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13607 | *) ac_try_echo=$ac_try;; | |
13608 | esac | |
13609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13610 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13611 | ac_status=$? |
13612 | grep -v '^ *+' conftest.er1 >conftest.err | |
13613 | rm -f conftest.er1 | |
13614 | cat conftest.err >&5 | |
13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13616 | (exit $ac_status); } && { |
13617 | test -z "$ac_c_werror_flag" || | |
13618 | test ! -s conftest.err | |
13619 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13620 | ac_header_compiler=yes |
13621 | else | |
13622 | echo "$as_me: failed program was:" >&5 | |
13623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13624 | ||
631ef239 | 13625 | ac_header_compiler=no |
212380e3 | 13626 | fi |
631ef239 AC |
13627 | |
13628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13629 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13630 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13631 | |
13632 | # Is the header present? | |
631ef239 AC |
13633 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 |
13634 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13635 | cat >conftest.$ac_ext <<_ACEOF |
13636 | /* confdefs.h. */ | |
13637 | _ACEOF | |
13638 | cat confdefs.h >>conftest.$ac_ext | |
13639 | cat >>conftest.$ac_ext <<_ACEOF | |
13640 | /* end confdefs.h. */ | |
13641 | #include <libelf/nlist.h> | |
13642 | _ACEOF | |
631ef239 AC |
13643 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13644 | case "(($ac_try" in | |
13645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13646 | *) ac_try_echo=$ac_try;; | |
13647 | esac | |
13648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13649 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13650 | ac_status=$? |
13651 | grep -v '^ *+' conftest.er1 >conftest.err | |
13652 | rm -f conftest.er1 | |
13653 | cat conftest.err >&5 | |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13655 | (exit $ac_status); } >/dev/null && { |
13656 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13657 | test ! -s conftest.err | |
13658 | }; then | |
212380e3 AC |
13659 | ac_header_preproc=yes |
13660 | else | |
13661 | echo "$as_me: failed program was:" >&5 | |
13662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13663 | ||
13664 | ac_header_preproc=no | |
13665 | fi | |
631ef239 | 13666 | |
212380e3 | 13667 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13668 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13669 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13670 | |
13671 | # So? What about this header? | |
13672 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13673 | yes:no: ) | |
13674 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13675 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13676 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
13677 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
13678 | ac_header_preproc=yes | |
13679 | ;; | |
13680 | no:yes:* ) | |
13681 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
13682 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
13683 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
13684 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13685 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
13686 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
13687 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13688 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13689 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13690 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13691 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13692 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13693 | |
212380e3 AC |
13694 | ;; |
13695 | esac | |
631ef239 AC |
13696 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13697 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13698 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13700 | else | |
13701 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
13702 | fi | |
631ef239 AC |
13703 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13704 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13705 | |
13706 | fi | |
13707 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
13708 | nlist_h="libelf/nlist.h" | |
13709 | fi | |
13710 | ||
13711 | ||
13712 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
631ef239 AC |
13713 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13714 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13715 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13717 | fi | |
631ef239 AC |
13718 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13719 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13720 | else |
13721 | # Is the header compilable? | |
631ef239 AC |
13722 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 |
13723 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13724 | cat >conftest.$ac_ext <<_ACEOF |
13725 | /* confdefs.h. */ | |
13726 | _ACEOF | |
13727 | cat confdefs.h >>conftest.$ac_ext | |
13728 | cat >>conftest.$ac_ext <<_ACEOF | |
13729 | /* end confdefs.h. */ | |
13730 | $ac_includes_default | |
13731 | #include <elf/nlist.h> | |
13732 | _ACEOF | |
13733 | rm -f conftest.$ac_objext | |
631ef239 AC |
13734 | if { (ac_try="$ac_compile" |
13735 | case "(($ac_try" in | |
13736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13737 | *) ac_try_echo=$ac_try;; | |
13738 | esac | |
13739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13740 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13741 | ac_status=$? |
13742 | grep -v '^ *+' conftest.er1 >conftest.err | |
13743 | rm -f conftest.er1 | |
13744 | cat conftest.err >&5 | |
13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13746 | (exit $ac_status); } && { |
13747 | test -z "$ac_c_werror_flag" || | |
13748 | test ! -s conftest.err | |
13749 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13750 | ac_header_compiler=yes |
13751 | else | |
13752 | echo "$as_me: failed program was:" >&5 | |
13753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13754 | ||
631ef239 | 13755 | ac_header_compiler=no |
212380e3 | 13756 | fi |
631ef239 AC |
13757 | |
13758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13759 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13760 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13761 | |
13762 | # Is the header present? | |
631ef239 AC |
13763 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 |
13764 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13765 | cat >conftest.$ac_ext <<_ACEOF |
13766 | /* confdefs.h. */ | |
13767 | _ACEOF | |
13768 | cat confdefs.h >>conftest.$ac_ext | |
13769 | cat >>conftest.$ac_ext <<_ACEOF | |
13770 | /* end confdefs.h. */ | |
13771 | #include <elf/nlist.h> | |
13772 | _ACEOF | |
631ef239 AC |
13773 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13774 | case "(($ac_try" in | |
13775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13776 | *) ac_try_echo=$ac_try;; | |
13777 | esac | |
13778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13779 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13780 | ac_status=$? |
13781 | grep -v '^ *+' conftest.er1 >conftest.err | |
13782 | rm -f conftest.er1 | |
13783 | cat conftest.err >&5 | |
13784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13785 | (exit $ac_status); } >/dev/null && { |
13786 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13787 | test ! -s conftest.err | |
13788 | }; then | |
212380e3 AC |
13789 | ac_header_preproc=yes |
13790 | else | |
13791 | echo "$as_me: failed program was:" >&5 | |
13792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13793 | ||
13794 | ac_header_preproc=no | |
13795 | fi | |
631ef239 | 13796 | |
212380e3 | 13797 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13798 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13799 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13800 | |
13801 | # So? What about this header? | |
13802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13803 | yes:no: ) | |
13804 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13805 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13806 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
13807 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
13808 | ac_header_preproc=yes | |
13809 | ;; | |
13810 | no:yes:* ) | |
13811 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
13812 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
13813 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
13814 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13815 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
13816 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
13817 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13818 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13819 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13820 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13821 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13822 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13823 | |
212380e3 AC |
13824 | ;; |
13825 | esac | |
631ef239 AC |
13826 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13827 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13828 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13830 | else | |
13831 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
13832 | fi | |
631ef239 AC |
13833 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13834 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13835 | |
13836 | fi | |
13837 | if test $ac_cv_header_elf_nlist_h = yes; then | |
13838 | nlist_h="elf/nlist.h" | |
13839 | fi | |
13840 | ||
13841 | ||
13842 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
631ef239 AC |
13843 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13844 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13845 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13847 | fi | |
631ef239 AC |
13848 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13849 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13850 | else |
13851 | # Is the header compilable? | |
631ef239 AC |
13852 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 |
13853 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13854 | cat >conftest.$ac_ext <<_ACEOF |
13855 | /* confdefs.h. */ | |
13856 | _ACEOF | |
13857 | cat confdefs.h >>conftest.$ac_ext | |
13858 | cat >>conftest.$ac_ext <<_ACEOF | |
13859 | /* end confdefs.h. */ | |
13860 | $ac_includes_default | |
13861 | #include <nlist.h> | |
13862 | _ACEOF | |
13863 | rm -f conftest.$ac_objext | |
631ef239 AC |
13864 | if { (ac_try="$ac_compile" |
13865 | case "(($ac_try" in | |
13866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13867 | *) ac_try_echo=$ac_try;; | |
13868 | esac | |
13869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13870 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13871 | ac_status=$? |
13872 | grep -v '^ *+' conftest.er1 >conftest.err | |
13873 | rm -f conftest.er1 | |
13874 | cat conftest.err >&5 | |
13875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13876 | (exit $ac_status); } && { |
13877 | test -z "$ac_c_werror_flag" || | |
13878 | test ! -s conftest.err | |
13879 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13880 | ac_header_compiler=yes |
13881 | else | |
13882 | echo "$as_me: failed program was:" >&5 | |
13883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13884 | ||
631ef239 | 13885 | ac_header_compiler=no |
212380e3 | 13886 | fi |
631ef239 AC |
13887 | |
13888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13889 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13890 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13891 | |
13892 | # Is the header present? | |
631ef239 AC |
13893 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 |
13894 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13895 | cat >conftest.$ac_ext <<_ACEOF |
13896 | /* confdefs.h. */ | |
13897 | _ACEOF | |
13898 | cat confdefs.h >>conftest.$ac_ext | |
13899 | cat >>conftest.$ac_ext <<_ACEOF | |
13900 | /* end confdefs.h. */ | |
13901 | #include <nlist.h> | |
13902 | _ACEOF | |
631ef239 AC |
13903 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13904 | case "(($ac_try" in | |
13905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13906 | *) ac_try_echo=$ac_try;; | |
13907 | esac | |
13908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13909 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13910 | ac_status=$? |
13911 | grep -v '^ *+' conftest.er1 >conftest.err | |
13912 | rm -f conftest.er1 | |
13913 | cat conftest.err >&5 | |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13915 | (exit $ac_status); } >/dev/null && { |
13916 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13917 | test ! -s conftest.err | |
13918 | }; then | |
212380e3 AC |
13919 | ac_header_preproc=yes |
13920 | else | |
13921 | echo "$as_me: failed program was:" >&5 | |
13922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13923 | ||
13924 | ac_header_preproc=no | |
13925 | fi | |
631ef239 | 13926 | |
212380e3 | 13927 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13928 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13929 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13930 | |
13931 | # So? What about this header? | |
13932 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13933 | yes:no: ) | |
13934 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13935 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13936 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
13937 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
13938 | ac_header_preproc=yes | |
13939 | ;; | |
13940 | no:yes:* ) | |
13941 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
13942 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
13943 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
13944 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
13945 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
13946 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
13947 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13948 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13949 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
13950 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
13951 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
13952 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13953 | |
212380e3 AC |
13954 | ;; |
13955 | esac | |
631ef239 AC |
13956 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13957 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13958 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13960 | else | |
13961 | ac_cv_header_nlist_h=$ac_header_preproc | |
13962 | fi | |
631ef239 AC |
13963 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13964 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13965 | |
13966 | fi | |
13967 | if test $ac_cv_header_nlist_h = yes; then | |
13968 | nlist_h="nlist.h" | |
13969 | fi | |
13970 | ||
13971 | ||
13972 | if test x"$nlist_h" = "x"; then | |
13973 | ||
13974 | cat >>confdefs.h <<_ACEOF | |
13975 | #define SYMBOL_PREFIX "" | |
13976 | _ACEOF | |
13977 | ||
13978 | else | |
631ef239 AC |
13979 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 |
13980 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
212380e3 AC |
13981 | if test "${symbol_underscores+set}" = set; then |
13982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13983 | else | |
13984 | ||
13985 | cat << EOF > conftest.c | |
13986 | #include <$nlist_h> | |
13987 | #include <stdio.h> | |
13988 | #include <stdlib.h> | |
13989 | void _modinit(void); | |
13990 | int main(int argc, char *argv[]) { | |
13991 | int i; | |
13992 | struct nlist nl[5]; | |
13993 | ||
13994 | /* fill the names in this way, so it'll work almost everywhere */ | |
13995 | nl[0].n_name = "_modinit"; | |
13996 | nl[1].n_name = "__modinit"; | |
13997 | nl[2].n_name = "___modinit"; | |
13998 | nl[3].n_name = "____modinit"; | |
13999 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
14000 | ||
14001 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
14002 | for(i = 0; i < 4; i++) { | |
14003 | if(nl[i].n_value != NULL) | |
14004 | { | |
14005 | int j; | |
14006 | for(j = 0; j < i; j++) | |
14007 | printf("_"); | |
14008 | exit(i); | |
14009 | } | |
14010 | } | |
14011 | exit(-1); | |
14012 | } | |
14013 | void _modinit(void) { return; } | |
14014 | EOF | |
14015 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
14016 | symbol_underscores=`./conftest conftest` | |
631ef239 AC |
14017 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 |
14018 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
212380e3 AC |
14019 | $RM -f conftest conftest.c |
14020 | ||
14021 | fi | |
14022 | ||
14023 | ||
14024 | cat >>confdefs.h <<_ACEOF | |
14025 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
14026 | _ACEOF | |
14027 | ||
14028 | fi | |
14029 | fi | |
14030 | ||
d2c5159a JT |
14031 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
14032 | ||
212380e3 AC |
14033 | |
14034 | ||
14035 | ||
14036 | ||
14037 | ||
14038 | ||
14039 | ||
14040 | ||
14041 | ||
14042 | ||
14043 | ||
14044 | ||
14045 | ||
14046 | if test "$prefix" = "NONE"; then | |
14047 | ||
14048 | cat >>confdefs.h <<_ACEOF | |
14049 | #define IRCD_PREFIX "$ac_default_prefix" | |
14050 | _ACEOF | |
14051 | ||
14052 | ||
14053 | else | |
14054 | ||
14055 | ||
14056 | prefix=`echo $prefix | sed 's/\/$//'` | |
14057 | ||
14058 | cat >>confdefs.h <<_ACEOF | |
14059 | #define IRCD_PREFIX "$prefix" | |
14060 | _ACEOF | |
14061 | ||
14062 | ||
14063 | fi | |
14064 | ||
fb440e64 | 14065 | ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
14066 | |
14067 | ||
14068 | cat >confcache <<\_ACEOF | |
14069 | # This file is a shell script that caches the results of configure | |
14070 | # tests run on this system so they can be shared between configure | |
14071 | # scripts and configure runs, see configure's option --config-cache. | |
14072 | # It is not useful on other systems. If it contains results you don't | |
14073 | # want to keep, you may remove or edit it. | |
14074 | # | |
14075 | # config.status only pays attention to the cache file if you give it | |
14076 | # the --recheck option to rerun configure. | |
14077 | # | |
14078 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14079 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14080 | # following values. | |
14081 | ||
14082 | _ACEOF | |
14083 | ||
14084 | # The following way of writing the cache mishandles newlines in values, | |
14085 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 14086 | # So, we kill variables containing newlines. |
212380e3 AC |
14087 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14088 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
14089 | ( |
14090 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14091 | eval ac_val=\$$ac_var | |
14092 | case $ac_val in #( | |
14093 | *${as_nl}*) | |
14094 | case $ac_var in #( | |
14095 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
14096 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
14097 | esac | |
14098 | case $ac_var in #( | |
14099 | _ | IFS | as_nl) ;; #( | |
14100 | *) $as_unset $ac_var ;; | |
14101 | esac ;; | |
14102 | esac | |
14103 | done | |
14104 | ||
212380e3 | 14105 | (set) 2>&1 | |
631ef239 AC |
14106 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14107 | *${as_nl}ac_space=\ *) | |
212380e3 AC |
14108 | # `set' does not quote correctly, so add quotes (double-quote |
14109 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14110 | sed -n \ | |
14111 | "s/'/'\\\\''/g; | |
14112 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 14113 | ;; #( |
212380e3 AC |
14114 | *) |
14115 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 14116 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 14117 | ;; |
631ef239 AC |
14118 | esac | |
14119 | sort | |
14120 | ) | | |
212380e3 | 14121 | sed ' |
631ef239 | 14122 | /^ac_cv_env_/b end |
212380e3 | 14123 | t clear |
631ef239 | 14124 | :clear |
212380e3 AC |
14125 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14126 | t end | |
631ef239 AC |
14127 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14128 | :end' >>confcache | |
14129 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14130 | if test -w "$cache_file"; then | |
14131 | test "x$cache_file" != "x/dev/null" && | |
14132 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
14133 | echo "$as_me: updating cache $cache_file" >&6;} | |
212380e3 AC |
14134 | cat confcache >$cache_file |
14135 | else | |
631ef239 AC |
14136 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14137 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
14138 | fi |
14139 | fi | |
14140 | rm -f confcache | |
14141 | ||
14142 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14143 | # Let make expand exec_prefix. | |
14144 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14145 | ||
212380e3 AC |
14146 | DEFS=-DHAVE_CONFIG_H |
14147 | ||
14148 | ac_libobjs= | |
14149 | ac_ltlibobjs= | |
14150 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14151 | # 1. Remove the extension, and $U if already installed. | |
631ef239 AC |
14152 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14153 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14154 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14155 | # will be set to the directory where LIBOBJS objects are built. | |
14156 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14157 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
14158 | done |
14159 | LIBOBJS=$ac_libobjs | |
14160 | ||
14161 | LTLIBOBJS=$ac_ltlibobjs | |
14162 | ||
14163 | ||
14164 | ||
14165 | : ${CONFIG_STATUS=./config.status} | |
14166 | ac_clean_files_save=$ac_clean_files | |
14167 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14168 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14169 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14170 | cat >$CONFIG_STATUS <<_ACEOF | |
14171 | #! $SHELL | |
14172 | # Generated by $as_me. | |
14173 | # Run this file to recreate the current configuration. | |
14174 | # Compiler output produced by configure, useful for debugging | |
14175 | # configure, is in config.log if it exists. | |
14176 | ||
14177 | debug=false | |
14178 | ac_cs_recheck=false | |
14179 | ac_cs_silent=false | |
14180 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14181 | _ACEOF | |
14182 | ||
14183 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14184 | ## --------------------- ## | |
14185 | ## M4sh Initialization. ## | |
14186 | ## --------------------- ## | |
14187 | ||
631ef239 AC |
14188 | # Be more Bourne compatible |
14189 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
14190 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14191 | emulate sh | |
14192 | NULLCMD=: | |
14193 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14194 | # is contrary to our usage. Disable this feature. | |
14195 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 14196 | setopt NO_GLOB_SUBST |
212380e3 | 14197 | else |
631ef239 AC |
14198 | case `(set -o) 2>/dev/null` in |
14199 | *posix*) set -o posix ;; | |
14200 | esac | |
14201 | ||
212380e3 AC |
14202 | fi |
14203 | ||
14204 | ||
631ef239 AC |
14205 | |
14206 | ||
14207 | # PATH needs CR | |
14208 | # Avoid depending upon Character Ranges. | |
14209 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14210 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14211 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14212 | as_cr_digits='0123456789' | |
14213 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14214 | ||
14215 | # The user is always right. | |
14216 | if test "${PATH_SEPARATOR+set}" != set; then | |
14217 | echo "#! /bin/sh" >conf$$.sh | |
14218 | echo "exit 0" >>conf$$.sh | |
14219 | chmod +x conf$$.sh | |
14220 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14221 | PATH_SEPARATOR=';' | |
14222 | else | |
14223 | PATH_SEPARATOR=: | |
14224 | fi | |
14225 | rm -f conf$$.sh | |
14226 | fi | |
14227 | ||
14228 | # Support unset when possible. | |
14229 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14230 | as_unset=unset | |
14231 | else | |
14232 | as_unset=false | |
14233 | fi | |
14234 | ||
14235 | ||
14236 | # IFS | |
14237 | # We need space, tab and new line, in precisely that order. Quoting is | |
14238 | # there to prevent editors from complaining about space-tab. | |
14239 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14240 | # splitting by setting IFS to empty value.) | |
14241 | as_nl=' | |
14242 | ' | |
14243 | IFS=" "" $as_nl" | |
14244 | ||
14245 | # Find who we are. Look in the path if we contain no directory separator. | |
14246 | case $0 in | |
14247 | *[\\/]* ) as_myself=$0 ;; | |
14248 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14249 | for as_dir in $PATH | |
14250 | do | |
14251 | IFS=$as_save_IFS | |
14252 | test -z "$as_dir" && as_dir=. | |
14253 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14254 | done | |
14255 | IFS=$as_save_IFS | |
14256 | ||
14257 | ;; | |
14258 | esac | |
14259 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14260 | # in which case we are not to be found in the path. | |
14261 | if test "x$as_myself" = x; then | |
14262 | as_myself=$0 | |
14263 | fi | |
14264 | if test ! -f "$as_myself"; then | |
14265 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14266 | { (exit 1); exit 1; } | |
14267 | fi | |
14268 | ||
212380e3 | 14269 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
14270 | for as_var in ENV MAIL MAILPATH |
14271 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14272 | done | |
212380e3 AC |
14273 | PS1='$ ' |
14274 | PS2='> ' | |
14275 | PS4='+ ' | |
14276 | ||
14277 | # NLS nuisances. | |
14278 | for as_var in \ | |
14279 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14280 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14281 | LC_TELEPHONE LC_TIME | |
14282 | do | |
14283 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14284 | eval $as_var=C; export $as_var | |
14285 | else | |
631ef239 | 14286 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
14287 | fi |
14288 | done | |
14289 | ||
14290 | # Required to use basename. | |
631ef239 AC |
14291 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14292 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14293 | as_expr=expr |
14294 | else | |
14295 | as_expr=false | |
14296 | fi | |
14297 | ||
631ef239 | 14298 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
14299 | as_basename=basename |
14300 | else | |
14301 | as_basename=false | |
14302 | fi | |
14303 | ||
14304 | ||
14305 | # Name of the executable. | |
631ef239 | 14306 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
14307 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14308 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 14309 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14310 | echo X/"$0" | |
631ef239 AC |
14311 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14312 | s//\1/ | |
14313 | q | |
14314 | } | |
14315 | /^X\/\(\/\/\)$/{ | |
14316 | s//\1/ | |
14317 | q | |
14318 | } | |
14319 | /^X\/\(\/\).*/{ | |
14320 | s//\1/ | |
14321 | q | |
14322 | } | |
14323 | s/.*/./; q'` | |
212380e3 | 14324 | |
631ef239 AC |
14325 | # CDPATH. |
14326 | $as_unset CDPATH | |
212380e3 | 14327 | |
212380e3 AC |
14328 | |
14329 | ||
14330 | as_lineno_1=$LINENO | |
14331 | as_lineno_2=$LINENO | |
212380e3 | 14332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 14333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
212380e3 AC |
14334 | |
14335 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14336 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
14337 | # line-number line after each line using $LINENO; the second 'sed' |
14338 | # does the real work. The second script uses 'N' to pair each | |
14339 | # line-number line with the line containing $LINENO, and appends | |
14340 | # trailing '-' during substitution so that $LINENO is not a special | |
14341 | # case at line end. | |
212380e3 | 14342 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
14343 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
14344 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14345 | sed -n ' | |
14346 | p | |
14347 | /[$]LINENO/= | |
14348 | ' <$as_myself | | |
212380e3 | 14349 | sed ' |
631ef239 AC |
14350 | s/[$]LINENO.*/&-/ |
14351 | t lineno | |
14352 | b | |
14353 | :lineno | |
212380e3 | 14354 | N |
631ef239 AC |
14355 | :loop |
14356 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 14357 | t loop |
631ef239 | 14358 | s/-\n.*// |
212380e3 | 14359 | ' >$as_me.lineno && |
631ef239 AC |
14360 | chmod +x "$as_me.lineno" || |
14361 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
212380e3 AC |
14362 | { (exit 1); exit 1; }; } |
14363 | ||
14364 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14365 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
14366 | # original and so on. Autoconf is especially sensitive to this). |
14367 | . "./$as_me.lineno" | |
212380e3 AC |
14368 | # Exit status is that of the last command. |
14369 | exit | |
14370 | } | |
14371 | ||
14372 | ||
631ef239 AC |
14373 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14374 | as_dirname=dirname | |
14375 | else | |
14376 | as_dirname=false | |
14377 | fi | |
14378 | ||
14379 | ECHO_C= ECHO_N= ECHO_T= | |
14380 | case `echo -n x` in | |
14381 | -n*) | |
14382 | case `echo 'x\c'` in | |
14383 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14384 | *) ECHO_C='\c';; | |
14385 | esac;; | |
14386 | *) | |
14387 | ECHO_N='-n';; | |
212380e3 AC |
14388 | esac |
14389 | ||
631ef239 AC |
14390 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14391 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14392 | as_expr=expr |
14393 | else | |
14394 | as_expr=false | |
14395 | fi | |
14396 | ||
14397 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
14398 | if test -d conf$$.dir; then |
14399 | rm -f conf$$.dir/conf$$.file | |
14400 | else | |
14401 | rm -f conf$$.dir | |
14402 | mkdir conf$$.dir | |
14403 | fi | |
212380e3 AC |
14404 | echo >conf$$.file |
14405 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
14406 | as_ln_s='ln -s' |
14407 | # ... but there are two gotchas: | |
14408 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14409 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14410 | # In both cases, we have to default to `cp -p'. | |
14411 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 14412 | as_ln_s='cp -p' |
212380e3 AC |
14413 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14414 | as_ln_s=ln | |
14415 | else | |
14416 | as_ln_s='cp -p' | |
14417 | fi | |
631ef239 AC |
14418 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14419 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
14420 | |
14421 | if mkdir -p . 2>/dev/null; then | |
14422 | as_mkdir_p=: | |
14423 | else | |
14424 | test -d ./-p && rmdir ./-p | |
14425 | as_mkdir_p=false | |
14426 | fi | |
14427 | ||
631ef239 AC |
14428 | if test -x / >/dev/null 2>&1; then |
14429 | as_test_x='test -x' | |
14430 | else | |
14431 | if ls -dL / >/dev/null 2>&1; then | |
14432 | as_ls_L_option=L | |
14433 | else | |
14434 | as_ls_L_option= | |
14435 | fi | |
14436 | as_test_x=' | |
14437 | eval sh -c '\'' | |
14438 | if test -d "$1"; then | |
14439 | test -d "$1/."; | |
14440 | else | |
14441 | case $1 in | |
14442 | -*)set "./$1";; | |
14443 | esac; | |
14444 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14445 | ???[sx]*):;;*)false;;esac;fi | |
14446 | '\'' sh | |
14447 | ' | |
14448 | fi | |
14449 | as_executable_p=$as_test_x | |
212380e3 AC |
14450 | |
14451 | # Sed expression to map a string onto a valid CPP name. | |
14452 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14453 | ||
14454 | # Sed expression to map a string onto a valid variable name. | |
14455 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14456 | ||
14457 | ||
212380e3 AC |
14458 | exec 6>&1 |
14459 | ||
631ef239 | 14460 | # Save the log message, to keep $[0] and so on meaningful, and to |
212380e3 | 14461 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
14462 | # values after options handling. |
14463 | ac_log=" | |
0788536e | 14464 | This file was extended by charybdis $as_me 3.1, which was |
631ef239 | 14465 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
14466 | |
14467 | CONFIG_FILES = $CONFIG_FILES | |
14468 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14469 | CONFIG_LINKS = $CONFIG_LINKS | |
14470 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14471 | $ $0 $@ | |
14472 | ||
631ef239 AC |
14473 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14474 | " | |
14475 | ||
212380e3 AC |
14476 | _ACEOF |
14477 | ||
631ef239 | 14478 | cat >>$CONFIG_STATUS <<_ACEOF |
212380e3 | 14479 | # Files that config.status was made for. |
631ef239 AC |
14480 | config_files="$ac_config_files" |
14481 | config_headers="$ac_config_headers" | |
212380e3 | 14482 | |
631ef239 | 14483 | _ACEOF |
212380e3 AC |
14484 | |
14485 | cat >>$CONFIG_STATUS <<\_ACEOF | |
212380e3 AC |
14486 | ac_cs_usage="\ |
14487 | \`$as_me' instantiates files from templates according to the | |
14488 | current configuration. | |
14489 | ||
14490 | Usage: $0 [OPTIONS] [FILE]... | |
14491 | ||
14492 | -h, --help print this help, then exit | |
631ef239 | 14493 | -V, --version print version number and configuration settings, then exit |
212380e3 AC |
14494 | -q, --quiet do not print progress messages |
14495 | -d, --debug don't remove temporary files | |
14496 | --recheck update $as_me by reconfiguring in the same conditions | |
14497 | --file=FILE[:TEMPLATE] | |
14498 | instantiate the configuration file FILE | |
14499 | --header=FILE[:TEMPLATE] | |
14500 | instantiate the configuration header FILE | |
14501 | ||
14502 | Configuration files: | |
14503 | $config_files | |
14504 | ||
14505 | Configuration headers: | |
14506 | $config_headers | |
14507 | ||
14508 | Report bugs to <bug-autoconf@gnu.org>." | |
212380e3 | 14509 | |
631ef239 | 14510 | _ACEOF |
212380e3 AC |
14511 | cat >>$CONFIG_STATUS <<_ACEOF |
14512 | ac_cs_version="\\ | |
0788536e | 14513 | charybdis config.status 3.1 |
631ef239 AC |
14514 | configured by $0, generated by GNU Autoconf 2.61, |
14515 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
212380e3 | 14516 | |
631ef239 | 14517 | Copyright (C) 2006 Free Software Foundation, Inc. |
212380e3 AC |
14518 | This config.status script is free software; the Free Software Foundation |
14519 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
14520 | |
14521 | ac_pwd='$ac_pwd' | |
14522 | srcdir='$srcdir' | |
14523 | INSTALL='$INSTALL' | |
212380e3 AC |
14524 | _ACEOF |
14525 | ||
14526 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14527 | # If no file are specified by the user, then we need to provide default | |
14528 | # value. By we need to know if files were specified by the user. | |
14529 | ac_need_defaults=: | |
14530 | while test $# != 0 | |
14531 | do | |
14532 | case $1 in | |
14533 | --*=*) | |
631ef239 AC |
14534 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14535 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
14536 | ac_shift=: |
14537 | ;; | |
631ef239 | 14538 | *) |
212380e3 AC |
14539 | ac_option=$1 |
14540 | ac_optarg=$2 | |
14541 | ac_shift=shift | |
14542 | ;; | |
212380e3 AC |
14543 | esac |
14544 | ||
14545 | case $ac_option in | |
14546 | # Handling of the options. | |
212380e3 AC |
14547 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14548 | ac_cs_recheck=: ;; | |
631ef239 AC |
14549 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14550 | echo "$ac_cs_version"; exit ;; | |
14551 | --debug | --debu | --deb | --de | --d | -d ) | |
212380e3 AC |
14552 | debug=: ;; |
14553 | --file | --fil | --fi | --f ) | |
14554 | $ac_shift | |
14555 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14556 | ac_need_defaults=false;; | |
14557 | --header | --heade | --head | --hea ) | |
14558 | $ac_shift | |
14559 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14560 | ac_need_defaults=false;; | |
631ef239 AC |
14561 | --he | --h) |
14562 | # Conflict between --help and --header | |
14563 | { echo "$as_me: error: ambiguous option: $1 | |
14564 | Try \`$0 --help' for more information." >&2 | |
14565 | { (exit 1); exit 1; }; };; | |
14566 | --help | --hel | -h ) | |
14567 | echo "$ac_cs_usage"; exit ;; | |
212380e3 AC |
14568 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14569 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14570 | ac_cs_silent=: ;; | |
14571 | ||
14572 | # This is an error. | |
631ef239 AC |
14573 | -*) { echo "$as_me: error: unrecognized option: $1 |
14574 | Try \`$0 --help' for more information." >&2 | |
212380e3 AC |
14575 | { (exit 1); exit 1; }; } ;; |
14576 | ||
631ef239 AC |
14577 | *) ac_config_targets="$ac_config_targets $1" |
14578 | ac_need_defaults=false ;; | |
212380e3 AC |
14579 | |
14580 | esac | |
14581 | shift | |
14582 | done | |
14583 | ||
14584 | ac_configure_extra_args= | |
14585 | ||
14586 | if $ac_cs_silent; then | |
14587 | exec 6>/dev/null | |
14588 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14589 | fi | |
14590 | ||
14591 | _ACEOF | |
14592 | cat >>$CONFIG_STATUS <<_ACEOF | |
14593 | if \$ac_cs_recheck; then | |
631ef239 AC |
14594 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
14595 | CONFIG_SHELL=$SHELL | |
14596 | export CONFIG_SHELL | |
14597 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
212380e3 AC |
14598 | fi |
14599 | ||
14600 | _ACEOF | |
631ef239 AC |
14601 | cat >>$CONFIG_STATUS <<\_ACEOF |
14602 | exec 5>>config.log | |
14603 | { | |
14604 | echo | |
14605 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14606 | ## Running $as_me. ## | |
14607 | _ASBOX | |
14608 | echo "$ac_log" | |
14609 | } >&5 | |
212380e3 | 14610 | |
631ef239 AC |
14611 | _ACEOF |
14612 | cat >>$CONFIG_STATUS <<_ACEOF | |
14613 | _ACEOF | |
212380e3 AC |
14614 | |
14615 | cat >>$CONFIG_STATUS <<\_ACEOF | |
631ef239 AC |
14616 | |
14617 | # Handling of arguments. | |
212380e3 AC |
14618 | for ac_config_target in $ac_config_targets |
14619 | do | |
631ef239 AC |
14620 | case $ac_config_target in |
14621 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14622 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
53970d07 | 14623 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 AC |
14624 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
14625 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
14626 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14627 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
14628 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
14629 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14630 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
14631 | ||
212380e3 AC |
14632 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14633 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14634 | { (exit 1); exit 1; }; };; | |
14635 | esac | |
14636 | done | |
14637 | ||
631ef239 | 14638 | |
212380e3 AC |
14639 | # If the user did not use the arguments to specify the items to instantiate, |
14640 | # then the envvar interface is used. Set only those that are not. | |
14641 | # We use the long form for the default assignment because of an extremely | |
14642 | # bizarre bug on SunOS 4.1.3. | |
14643 | if $ac_need_defaults; then | |
14644 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14645 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14646 | fi | |
14647 | ||
14648 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 14649 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 14650 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
14651 | # Hook for its removal unless debugging. |
14652 | # Note that there is a small window in which the directory will not be cleaned: | |
14653 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
14654 | $debug || |
14655 | { | |
631ef239 AC |
14656 | tmp= |
14657 | trap 'exit_status=$? | |
14658 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14659 | ' 0 | |
212380e3 AC |
14660 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
14661 | } | |
212380e3 AC |
14662 | # Create a (secure) tmp directory for tmp files. |
14663 | ||
14664 | { | |
631ef239 | 14665 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
212380e3 AC |
14666 | test -n "$tmp" && test -d "$tmp" |
14667 | } || | |
14668 | { | |
631ef239 AC |
14669 | tmp=./conf$$-$RANDOM |
14670 | (umask 077 && mkdir "$tmp") | |
212380e3 AC |
14671 | } || |
14672 | { | |
14673 | echo "$me: cannot create a temporary directory in ." >&2 | |
14674 | { (exit 1); exit 1; } | |
14675 | } | |
14676 | ||
212380e3 | 14677 | # |
631ef239 | 14678 | # Set up the sed scripts for CONFIG_FILES section. |
212380e3 AC |
14679 | # |
14680 | ||
14681 | # No need to generate the scripts if there are no CONFIG_FILES. | |
14682 | # This happens for instance when ./config.status config.h | |
631ef239 AC |
14683 | if test -n "$CONFIG_FILES"; then |
14684 | ||
14685 | _ACEOF | |
14686 | ||
14687 | ||
14688 | ||
14689 | ac_delim='%!_!# ' | |
14690 | for ac_last_try in false false false false false :; do | |
14691 | cat >conf$$subs.sed <<_ACEOF | |
14692 | SHELL!$SHELL$ac_delim | |
14693 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
14694 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
14695 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
14696 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
14697 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
14698 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
14699 | exec_prefix!$exec_prefix$ac_delim | |
14700 | prefix!$prefix$ac_delim | |
14701 | program_transform_name!$program_transform_name$ac_delim | |
14702 | bindir!$bindir$ac_delim | |
14703 | sbindir!$sbindir$ac_delim | |
14704 | libexecdir!$libexecdir$ac_delim | |
14705 | datarootdir!$datarootdir$ac_delim | |
14706 | datadir!$datadir$ac_delim | |
14707 | sysconfdir!$sysconfdir$ac_delim | |
14708 | sharedstatedir!$sharedstatedir$ac_delim | |
14709 | localstatedir!$localstatedir$ac_delim | |
14710 | includedir!$includedir$ac_delim | |
14711 | oldincludedir!$oldincludedir$ac_delim | |
14712 | docdir!$docdir$ac_delim | |
14713 | infodir!$infodir$ac_delim | |
14714 | htmldir!$htmldir$ac_delim | |
14715 | dvidir!$dvidir$ac_delim | |
14716 | pdfdir!$pdfdir$ac_delim | |
14717 | psdir!$psdir$ac_delim | |
14718 | libdir!$libdir$ac_delim | |
14719 | localedir!$localedir$ac_delim | |
14720 | mandir!$mandir$ac_delim | |
14721 | DEFS!$DEFS$ac_delim | |
14722 | ECHO_C!$ECHO_C$ac_delim | |
14723 | ECHO_N!$ECHO_N$ac_delim | |
14724 | ECHO_T!$ECHO_T$ac_delim | |
14725 | LIBS!$LIBS$ac_delim | |
14726 | build_alias!$build_alias$ac_delim | |
14727 | host_alias!$host_alias$ac_delim | |
14728 | target_alias!$target_alias$ac_delim | |
14729 | CC!$CC$ac_delim | |
14730 | CFLAGS!$CFLAGS$ac_delim | |
14731 | LDFLAGS!$LDFLAGS$ac_delim | |
14732 | CPPFLAGS!$CPPFLAGS$ac_delim | |
14733 | ac_ct_CC!$ac_ct_CC$ac_delim | |
14734 | EXEEXT!$EXEEXT$ac_delim | |
14735 | OBJEXT!$OBJEXT$ac_delim | |
b676ea3b | 14736 | subdirs!$subdirs$ac_delim |
631ef239 AC |
14737 | MKDEP!$MKDEP$ac_delim |
14738 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
14739 | STDOUT!$STDOUT$ac_delim | |
14740 | CPP!$CPP$ac_delim | |
14741 | GREP!$GREP$ac_delim | |
14742 | EGREP!$EGREP$ac_delim | |
14743 | SET_MAKE!$SET_MAKE$ac_delim | |
14744 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
14745 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
14746 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
14747 | RM!$RM$ac_delim | |
14748 | CP!$CP$ac_delim | |
14749 | MV!$MV$ac_delim | |
14750 | LN!$LN$ac_delim | |
14751 | SED!$SED$ac_delim | |
14752 | AR!$AR$ac_delim | |
14753 | LD!$LD$ac_delim | |
14754 | RANLIB!$RANLIB$ac_delim | |
14755 | TOUCH!$TOUCH$ac_delim | |
14756 | YACC!$YACC$ac_delim | |
14757 | YFLAGS!$YFLAGS$ac_delim | |
14758 | LEX!$LEX$ac_delim | |
14759 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
14760 | LEXLIB!$LEXLIB$ac_delim | |
14761 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
14762 | VICONF!$VICONF$ac_delim | |
14763 | ALLOCA!$ALLOCA$ac_delim | |
14764 | ENCSPEED!$ENCSPEED$ac_delim | |
14765 | ZLIB_LD!$ZLIB_LD$ac_delim | |
14766 | ETC_DIR!$ETC_DIR$ac_delim | |
14767 | confdir!$confdir$ac_delim | |
14768 | LOG_DIR!$LOG_DIR$ac_delim | |
14769 | logdir!$logdir$ac_delim | |
14770 | HELP_DIR!$HELP_DIR$ac_delim | |
14771 | helpdir!$helpdir$ac_delim | |
14772 | MODULE_DIR!$MODULE_DIR$ac_delim | |
14773 | moduledir!$moduledir$ac_delim | |
14774 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
631ef239 AC |
14775 | MODULES_LIBS!$MODULES_LIBS$ac_delim |
14776 | MOD_TARGET!$MOD_TARGET$ac_delim | |
14777 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
14778 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
14779 | SSL_LIBS!$SSL_LIBS$ac_delim | |
14780 | PICFLAGS!$PICFLAGS$ac_delim | |
14781 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
14782 | SEDOBJ!$SEDOBJ$ac_delim | |
14783 | LIBOBJS!$LIBOBJS$ac_delim | |
14784 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
14785 | _ACEOF | |
14786 | ||
b676ea3b | 14787 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then |
631ef239 AC |
14788 | break |
14789 | elif $ac_last_try; then | |
14790 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14791 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14792 | { (exit 1); exit 1; }; } | |
14793 | else | |
14794 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 14795 | fi |
631ef239 | 14796 | done |
212380e3 | 14797 | |
631ef239 AC |
14798 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
14799 | if test -n "$ac_eof"; then | |
14800 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
14801 | ac_eof=`expr $ac_eof + 1` | |
14802 | fi | |
14803 | ||
14804 | cat >>$CONFIG_STATUS <<_ACEOF | |
14805 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
14806 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
14807 | _ACEOF | |
14808 | sed ' | |
14809 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
14810 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
14811 | :n | |
14812 | t n | |
14813 | s/'"$ac_delim"'$/,g/; t | |
14814 | s/$/\\/; p | |
14815 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
14816 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
14817 | rm -f conf$$subs.sed | |
14818 | cat >>$CONFIG_STATUS <<_ACEOF | |
14819 | :end | |
14820 | s/|#_!!_#|//g | |
14821 | CEOF$ac_eof | |
212380e3 | 14822 | _ACEOF |
631ef239 AC |
14823 | |
14824 | ||
14825 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14826 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14827 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14828 | # (actually we leave an empty line to preserve line numbers). | |
14829 | if test "x$srcdir" = x.; then | |
14830 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14831 | s/:*\$(srcdir):*/:/ | |
14832 | s/:*\${srcdir}:*/:/ | |
14833 | s/:*@srcdir@:*/:/ | |
14834 | s/^\([^=]*=[ ]*\):*/\1/ | |
14835 | s/:*$// | |
14836 | s/^[^=]*=[ ]*$// | |
14837 | }' | |
14838 | fi | |
14839 | ||
212380e3 | 14840 | cat >>$CONFIG_STATUS <<\_ACEOF |
631ef239 AC |
14841 | fi # test -n "$CONFIG_FILES" |
14842 | ||
14843 | ||
14844 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
14845 | do | |
14846 | case $ac_tag in | |
14847 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14848 | esac | |
14849 | case $ac_mode$ac_tag in | |
14850 | :[FHL]*:*);; | |
14851 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
14852 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
14853 | { (exit 1); exit 1; }; };; | |
14854 | :[FH]-) ac_tag=-:-;; | |
14855 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 14856 | esac |
631ef239 AC |
14857 | ac_save_IFS=$IFS |
14858 | IFS=: | |
14859 | set x $ac_tag | |
14860 | IFS=$ac_save_IFS | |
14861 | shift | |
14862 | ac_file=$1 | |
14863 | shift | |
212380e3 | 14864 | |
631ef239 AC |
14865 | case $ac_mode in |
14866 | :L) ac_source=$1;; | |
14867 | :[FH]) | |
14868 | ac_file_inputs= | |
14869 | for ac_f | |
14870 | do | |
14871 | case $ac_f in | |
14872 | -) ac_f="$tmp/stdin";; | |
14873 | *) # Look for the file first in the build tree, then in the source tree | |
14874 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14875 | # because $ac_f cannot contain `:'. | |
14876 | test -f "$ac_f" || | |
14877 | case $ac_f in | |
14878 | [\\/$]*) false;; | |
14879 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14880 | esac || | |
14881 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14882 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14883 | { (exit 1); exit 1; }; };; | |
14884 | esac | |
14885 | ac_file_inputs="$ac_file_inputs $ac_f" | |
14886 | done | |
14887 | ||
14888 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14889 | # use $as_me), people would be surprised to read: | |
14890 | # /* config.h. Generated by config.status. */ | |
14891 | configure_input="Generated from "`IFS=: | |
14892 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
14893 | if test x"$ac_file" != x-; then | |
14894 | configure_input="$ac_file. $configure_input" | |
14895 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14896 | echo "$as_me: creating $ac_file" >&6;} | |
14897 | fi | |
14898 | ||
14899 | case $ac_tag in | |
14900 | *:-:* | *:-) cat >"$tmp/stdin";; | |
14901 | esac | |
14902 | ;; | |
14903 | esac | |
14904 | ||
14905 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
14906 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14907 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14908 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 14909 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14910 | echo X"$ac_file" | |
631ef239 AC |
14911 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14912 | s//\1/ | |
14913 | q | |
14914 | } | |
14915 | /^X\(\/\/\)[^/].*/{ | |
14916 | s//\1/ | |
14917 | q | |
14918 | } | |
14919 | /^X\(\/\/\)$/{ | |
14920 | s//\1/ | |
14921 | q | |
14922 | } | |
14923 | /^X\(\/\).*/{ | |
14924 | s//\1/ | |
14925 | q | |
14926 | } | |
14927 | s/.*/./; q'` | |
14928 | { as_dir="$ac_dir" | |
14929 | case $as_dir in #( | |
14930 | -*) as_dir=./$as_dir;; | |
14931 | esac | |
14932 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
212380e3 | 14933 | as_dirs= |
631ef239 AC |
14934 | while :; do |
14935 | case $as_dir in #( | |
14936 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
14937 | *) as_qdir=$as_dir;; | |
14938 | esac | |
14939 | as_dirs="'$as_qdir' $as_dirs" | |
14940 | as_dir=`$as_dirname -- "$as_dir" || | |
212380e3 AC |
14941 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14942 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14943 | X"$as_dir" : 'X\(//\)$' \| \ | |
631ef239 | 14944 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14945 | echo X"$as_dir" | |
631ef239 AC |
14946 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14947 | s//\1/ | |
14948 | q | |
14949 | } | |
14950 | /^X\(\/\/\)[^/].*/{ | |
14951 | s//\1/ | |
14952 | q | |
14953 | } | |
14954 | /^X\(\/\/\)$/{ | |
14955 | s//\1/ | |
14956 | q | |
14957 | } | |
14958 | /^X\(\/\).*/{ | |
14959 | s//\1/ | |
14960 | q | |
14961 | } | |
14962 | s/.*/./; q'` | |
14963 | test -d "$as_dir" && break | |
212380e3 | 14964 | done |
631ef239 AC |
14965 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14966 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14967 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
212380e3 | 14968 | { (exit 1); exit 1; }; }; } |
212380e3 AC |
14969 | ac_builddir=. |
14970 | ||
631ef239 AC |
14971 | case "$ac_dir" in |
14972 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14973 | *) | |
212380e3 | 14974 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
14975 | # A ".." for each directory in $ac_dir_suffix. |
14976 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
14977 | case $ac_top_builddir_sub in | |
14978 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14979 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14980 | esac ;; | |
14981 | esac | |
14982 | ac_abs_top_builddir=$ac_pwd | |
14983 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14984 | # for backward compatibility: | |
14985 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
14986 | |
14987 | case $srcdir in | |
631ef239 | 14988 | .) # We are building in place. |
212380e3 | 14989 | ac_srcdir=. |
631ef239 AC |
14990 | ac_top_srcdir=$ac_top_builddir_sub |
14991 | ac_abs_top_srcdir=$ac_pwd ;; | |
14992 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 14993 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
14994 | ac_top_srcdir=$srcdir |
14995 | ac_abs_top_srcdir=$srcdir ;; | |
14996 | *) # Relative name. | |
14997 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14998 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14999 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 15000 | esac |
631ef239 | 15001 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 15002 | |
212380e3 | 15003 | |
631ef239 AC |
15004 | case $ac_mode in |
15005 | :F) | |
15006 | # | |
15007 | # CONFIG_FILE | |
15008 | # | |
212380e3 AC |
15009 | |
15010 | case $INSTALL in | |
15011 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 15012 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 15013 | esac |
631ef239 | 15014 | _ACEOF |
212380e3 | 15015 | |
631ef239 AC |
15016 | cat >>$CONFIG_STATUS <<\_ACEOF |
15017 | # If the template does not know about datarootdir, expand it. | |
15018 | # FIXME: This hack should be removed a few years after 2.60. | |
15019 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15020 | ||
15021 | case `sed -n '/datarootdir/ { | |
15022 | p | |
15023 | q | |
15024 | } | |
15025 | /@datadir@/p | |
15026 | /@docdir@/p | |
15027 | /@infodir@/p | |
15028 | /@localedir@/p | |
15029 | /@mandir@/p | |
15030 | ' $ac_file_inputs` in | |
15031 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15032 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15033 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15034 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15035 | _ACEOF | |
15036 | cat >>$CONFIG_STATUS <<_ACEOF | |
15037 | ac_datarootdir_hack=' | |
15038 | s&@datadir@&$datadir&g | |
15039 | s&@docdir@&$docdir&g | |
15040 | s&@infodir@&$infodir&g | |
15041 | s&@localedir@&$localedir&g | |
15042 | s&@mandir@&$mandir&g | |
15043 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15044 | esac | |
212380e3 | 15045 | _ACEOF |
631ef239 AC |
15046 | |
15047 | # Neutralize VPATH when `$srcdir' = `.'. | |
15048 | # Shell code in configure.ac might set extrasub. | |
15049 | # FIXME: do we really want to maintain this feature? | |
212380e3 AC |
15050 | cat >>$CONFIG_STATUS <<_ACEOF |
15051 | sed "$ac_vpsub | |
15052 | $extrasub | |
15053 | _ACEOF | |
15054 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15055 | :t | |
15056 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
631ef239 AC |
15057 | s&@configure_input@&$configure_input&;t t |
15058 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15059 | s&@srcdir@&$ac_srcdir&;t t | |
15060 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15061 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15062 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15063 | s&@builddir@&$ac_builddir&;t t | |
15064 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15065 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15066 | s&@INSTALL@&$ac_INSTALL&;t t | |
15067 | $ac_datarootdir_hack | |
15068 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
15069 | ||
15070 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15071 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15072 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15073 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15074 | which seems to be undefined. Please make sure it is defined." >&5 | |
15075 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15076 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15077 | ||
15078 | rm -f "$tmp/stdin" | |
212380e3 | 15079 | case $ac_file in |
631ef239 AC |
15080 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
15081 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
212380e3 | 15082 | esac |
631ef239 AC |
15083 | ;; |
15084 | :H) | |
15085 | # | |
15086 | # CONFIG_HEADER | |
15087 | # | |
15088 | _ACEOF | |
15089 | ||
15090 | # Transform confdefs.h into a sed script `conftest.defines', that | |
15091 | # substitutes the proper values into config.h.in to produce config.h. | |
15092 | rm -f conftest.defines conftest.tail | |
15093 | # First, append a space to every undef/define line, to ease matching. | |
15094 | echo 's/$/ /' >conftest.defines | |
15095 | # Then, protect against being on the right side of a sed subst, or in | |
15096 | # an unquoted here document, in config.status. If some macros were | |
15097 | # called several times there might be several #defines for the same | |
15098 | # symbol, which is useless. But do not sort them, since the last | |
15099 | # AC_DEFINE must be honored. | |
15100 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15101 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
15102 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
15103 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
15104 | # just an empty string. | |
15105 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
15106 | ac_dB='\\)[ (].*,\\1define\\2' | |
15107 | ac_dC=' ' | |
15108 | ac_dD=' ,' | |
15109 | ||
15110 | uniq confdefs.h | | |
15111 | sed -n ' | |
15112 | t rset | |
15113 | :rset | |
15114 | s/^[ ]*#[ ]*define[ ][ ]*// | |
15115 | t ok | |
15116 | d | |
15117 | :ok | |
15118 | s/[\\&,]/\\&/g | |
15119 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
15120 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
15121 | ' >>conftest.defines | |
15122 | ||
15123 | # Remove the space that was appended to ease matching. | |
15124 | # Then replace #undef with comments. This is necessary, for | |
212380e3 AC |
15125 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
15126 | # on some systems where configure will not decide to define it. | |
631ef239 AC |
15127 | # (The regexp can be short, since the line contains either #define or #undef.) |
15128 | echo 's/ $// | |
15129 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
15130 | ||
15131 | # Break up conftest.defines: | |
15132 | ac_max_sed_lines=50 | |
15133 | ||
15134 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
15135 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
15136 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
15137 | # et cetera. | |
15138 | ac_in='$ac_file_inputs' | |
15139 | ac_out='"$tmp/out1"' | |
15140 | ac_nxt='"$tmp/out2"' | |
15141 | ||
15142 | while : | |
212380e3 | 15143 | do |
631ef239 AC |
15144 | # Write a here document: |
15145 | cat >>$CONFIG_STATUS <<_ACEOF | |
15146 | # First, check the format of the line: | |
15147 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15148 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15149 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15150 | b | |
15151 | :def | |
15152 | _ACEOF | |
15153 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
212380e3 | 15154 | echo 'CEOF |
631ef239 AC |
15155 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15156 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15157 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15158 | grep . conftest.tail >/dev/null || break | |
212380e3 AC |
15159 | rm -f conftest.defines |
15160 | mv conftest.tail conftest.defines | |
15161 | done | |
631ef239 | 15162 | rm -f conftest.defines conftest.tail |
212380e3 | 15163 | |
631ef239 | 15164 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
212380e3 | 15165 | cat >>$CONFIG_STATUS <<\_ACEOF |
212380e3 | 15166 | if test x"$ac_file" != x-; then |
631ef239 AC |
15167 | echo "/* $configure_input */" >"$tmp/config.h" |
15168 | cat "$ac_result" >>"$tmp/config.h" | |
15169 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
212380e3 AC |
15170 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15171 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15172 | else | |
212380e3 | 15173 | rm -f $ac_file |
631ef239 | 15174 | mv "$tmp/config.h" $ac_file |
212380e3 AC |
15175 | fi |
15176 | else | |
631ef239 AC |
15177 | echo "/* $configure_input */" |
15178 | cat "$ac_result" | |
212380e3 | 15179 | fi |
631ef239 AC |
15180 | rm -f "$tmp/out12" |
15181 | ;; | |
15182 | ||
15183 | ||
15184 | esac | |
15185 | ||
15186 | done # for ac_tag | |
212380e3 | 15187 | |
212380e3 AC |
15188 | |
15189 | { (exit 0); exit 0; } | |
15190 | _ACEOF | |
15191 | chmod +x $CONFIG_STATUS | |
15192 | ac_clean_files=$ac_clean_files_save | |
15193 | ||
15194 | ||
15195 | # configure is writing to config.log, and then calls config.status. | |
15196 | # config.status does its own redirection, appending to config.log. | |
15197 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15198 | # by configure, so config.status won't be able to write to it; its | |
15199 | # output is simply discarded. So we exec the FD to /dev/null, | |
15200 | # effectively closing config.log, so it can be properly (re)opened and | |
15201 | # appended to by config.status. When coming back to configure, we | |
15202 | # need to make the FD available again. | |
15203 | if test "$no_create" != yes; then | |
15204 | ac_cs_success=: | |
15205 | ac_config_status_args= | |
15206 | test "$silent" = yes && | |
15207 | ac_config_status_args="$ac_config_status_args --quiet" | |
15208 | exec 5>/dev/null | |
15209 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15210 | exec 5>>config.log | |
15211 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15212 | # would make configure fail if this is the last instruction. | |
15213 | $ac_cs_success || { (exit 1); exit 1; } | |
15214 | fi | |
15215 | ||
b676ea3b AC |
15216 | # |
15217 | # CONFIG_SUBDIRS section. | |
15218 | # | |
15219 | if test "$no_recursion" != yes; then | |
15220 | ||
15221 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15222 | ac_sub_configure_args= | |
15223 | ac_prev= | |
15224 | eval "set x $ac_configure_args" | |
15225 | shift | |
15226 | for ac_arg | |
15227 | do | |
15228 | if test -n "$ac_prev"; then | |
15229 | ac_prev= | |
15230 | continue | |
15231 | fi | |
15232 | case $ac_arg in | |
15233 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15234 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15235 | ac_prev=cache_file ;; | |
15236 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15237 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
15238 | | --c=*) | |
15239 | ;; | |
15240 | --config-cache | -C) | |
15241 | ;; | |
15242 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15243 | ac_prev=srcdir ;; | |
15244 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15245 | ;; | |
15246 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
15247 | ac_prev=prefix ;; | |
15248 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
15249 | ;; | |
15250 | *) | |
15251 | case $ac_arg in | |
15252 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15253 | esac | |
15254 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
15255 | esac | |
15256 | done | |
15257 | ||
15258 | # Always prepend --prefix to ensure using the same prefix | |
15259 | # in subdir configurations. | |
15260 | ac_arg="--prefix=$prefix" | |
15261 | case $ac_arg in | |
15262 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15263 | esac | |
15264 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
15265 | ||
15266 | # Pass --silent | |
15267 | if test "$silent" = yes; then | |
15268 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
15269 | fi | |
15270 | ||
15271 | ac_popdir=`pwd` | |
15272 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
15273 | ||
15274 | # Do not complain, so a configure script can configure whichever | |
15275 | # parts of a large source tree are present. | |
15276 | test -d "$srcdir/$ac_dir" || continue | |
15277 | ||
15278 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
15279 | echo "$as_me:$LINENO: $ac_msg" >&5 | |
15280 | echo "$ac_msg" >&6 | |
15281 | { as_dir="$ac_dir" | |
15282 | case $as_dir in #( | |
15283 | -*) as_dir=./$as_dir;; | |
15284 | esac | |
15285 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
15286 | as_dirs= | |
15287 | while :; do | |
15288 | case $as_dir in #( | |
15289 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
15290 | *) as_qdir=$as_dir;; | |
15291 | esac | |
15292 | as_dirs="'$as_qdir' $as_dirs" | |
15293 | as_dir=`$as_dirname -- "$as_dir" || | |
15294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15295 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15296 | X"$as_dir" : 'X\(//\)$' \| \ | |
15297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15298 | echo X"$as_dir" | | |
15299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15300 | s//\1/ | |
15301 | q | |
15302 | } | |
15303 | /^X\(\/\/\)[^/].*/{ | |
15304 | s//\1/ | |
15305 | q | |
15306 | } | |
15307 | /^X\(\/\/\)$/{ | |
15308 | s//\1/ | |
15309 | q | |
15310 | } | |
15311 | /^X\(\/\).*/{ | |
15312 | s//\1/ | |
15313 | q | |
15314 | } | |
15315 | s/.*/./; q'` | |
15316 | test -d "$as_dir" && break | |
15317 | done | |
15318 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15319 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
15320 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
15321 | { (exit 1); exit 1; }; }; } | |
15322 | ac_builddir=. | |
15323 | ||
15324 | case "$ac_dir" in | |
15325 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15326 | *) | |
15327 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15328 | # A ".." for each directory in $ac_dir_suffix. | |
15329 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
15330 | case $ac_top_builddir_sub in | |
15331 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15332 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15333 | esac ;; | |
15334 | esac | |
15335 | ac_abs_top_builddir=$ac_pwd | |
15336 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15337 | # for backward compatibility: | |
15338 | ac_top_builddir=$ac_top_build_prefix | |
15339 | ||
15340 | case $srcdir in | |
15341 | .) # We are building in place. | |
15342 | ac_srcdir=. | |
15343 | ac_top_srcdir=$ac_top_builddir_sub | |
15344 | ac_abs_top_srcdir=$ac_pwd ;; | |
15345 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15346 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15347 | ac_top_srcdir=$srcdir | |
15348 | ac_abs_top_srcdir=$srcdir ;; | |
15349 | *) # Relative name. | |
15350 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15351 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15352 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15353 | esac | |
15354 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15355 | ||
15356 | ||
15357 | cd "$ac_dir" | |
15358 | ||
15359 | # Check for guested configure; otherwise get Cygnus style configure. | |
15360 | if test -f "$ac_srcdir/configure.gnu"; then | |
15361 | ac_sub_configure=$ac_srcdir/configure.gnu | |
15362 | elif test -f "$ac_srcdir/configure"; then | |
15363 | ac_sub_configure=$ac_srcdir/configure | |
15364 | elif test -f "$ac_srcdir/configure.in"; then | |
15365 | # This should be Cygnus configure. | |
15366 | ac_sub_configure=$ac_aux_dir/configure | |
15367 | else | |
15368 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
15369 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
15370 | ac_sub_configure= | |
15371 | fi | |
15372 | ||
15373 | # The recursion is here. | |
15374 | if test -n "$ac_sub_configure"; then | |
15375 | # Make the cache file name correct relative to the subdirectory. | |
15376 | case $cache_file in | |
15377 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
15378 | *) # Relative name. | |
15379 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
15380 | esac | |
15381 | ||
15382 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
15383 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
15384 | # The eval makes quoting arguments work. | |
15385 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
15386 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
15387 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
15388 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
15389 | { (exit 1); exit 1; }; } | |
15390 | fi | |
15391 | ||
15392 | cd "$ac_popdir" | |
15393 | done | |
15394 | fi | |
15395 | ||
212380e3 AC |
15396 | |
15397 | if test "$cf_openssl_version_ok" = yes; then | |
15398 | openssl="yes" | |
15399 | else | |
15400 | openssl="no" | |
15401 | fi | |
15402 | ||
15403 | if test "$shared_modules" = yes; then | |
15404 | modules=shared | |
15405 | else | |
15406 | modules=static | |
15407 | fi | |
15408 | ||
15409 | echo " | |
15410 | Configuration: | |
15411 | Install directory : $prefix | |
15412 | ||
15413 | Ziplinks : $zlib | |
15414 | OpenSSL : $openssl | |
212380e3 AC |
15415 | Socket Engine : $SELECT_TYPE |
15416 | Small network : $small_net | |
15417 | Block allocator : $balloc | |
212380e3 AC |
15418 | |
15419 | Nickname length : $NICKLEN | |
15420 | Topic length : $TOPICLEN | |
15421 | ||
4271aa89 | 15422 | Use (g)make to compile Charybdis, then (g)make install to install it. |
212380e3 | 15423 | " |