]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
631ef239 | 3 | # Generated by GNU Autoconf 2.61 for charybdis 2.2.0. |
212380e3 | 4 | # |
5e12fb10 | 5 | # $Id: configure 3364 2007-04-03 09:50:56Z nenolod $ |
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' | |
b1fc1658 JT |
577 | PACKAGE_VERSION='2.2.0' |
578 | PACKAGE_STRING='charybdis 2.2.0' | |
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 | |
662 | MKDEP | |
663 | MAKEDEPEND | |
664 | STDOUT | |
665 | CPP | |
666 | GREP | |
667 | EGREP | |
668 | SET_MAKE | |
669 | INSTALL_PROGRAM | |
670 | INSTALL_SCRIPT | |
671 | INSTALL_DATA | |
672 | RM | |
673 | CP | |
674 | MV | |
675 | LN | |
676 | SED | |
677 | AR | |
678 | LD | |
679 | RANLIB | |
680 | TOUCH | |
681 | YACC | |
682 | YFLAGS | |
683 | LEX | |
684 | LEX_OUTPUT_ROOT | |
685 | LEXLIB | |
686 | CRYPT_LIB | |
687 | VICONF | |
688 | ALLOCA | |
689 | ENCSPEED | |
690 | ZLIB_LD | |
691 | ETC_DIR | |
692 | confdir | |
693 | LOG_DIR | |
694 | logdir | |
695 | HELP_DIR | |
696 | helpdir | |
697 | MODULE_DIR | |
698 | moduledir | |
699 | SELECT_TYPE | |
631ef239 AC |
700 | MODULES_LIBS |
701 | MOD_TARGET | |
702 | SSL_SRCS_ENABLE | |
703 | SSL_INCLUDES | |
704 | SSL_LIBS | |
705 | PICFLAGS | |
706 | IRC_CFLAGS | |
707 | SEDOBJ | |
708 | LIBOBJS | |
709 | LTLIBOBJS' | |
212380e3 | 710 | ac_subst_files='' |
631ef239 AC |
711 | ac_precious_vars='build_alias |
712 | host_alias | |
713 | target_alias | |
714 | CC | |
715 | CFLAGS | |
716 | LDFLAGS | |
717 | LIBS | |
718 | CPPFLAGS | |
719 | CPP | |
720 | YACC | |
721 | YFLAGS' | |
722 | ||
212380e3 AC |
723 | |
724 | # Initialize some variables set by options. | |
725 | ac_init_help= | |
726 | ac_init_version=false | |
727 | # The variables have the same names as the options, with | |
728 | # dashes changed to underlines. | |
729 | cache_file=/dev/null | |
730 | exec_prefix=NONE | |
731 | no_create= | |
732 | no_recursion= | |
733 | prefix=NONE | |
734 | program_prefix=NONE | |
735 | program_suffix=NONE | |
736 | program_transform_name=s,x,x, | |
737 | silent= | |
738 | site= | |
739 | srcdir= | |
740 | verbose= | |
741 | x_includes=NONE | |
742 | x_libraries=NONE | |
743 | ||
744 | # Installation directory options. | |
745 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
746 | # and all the variables that are supposed to be based on exec_prefix | |
747 | # by default will actually change. | |
748 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 749 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
750 | bindir='${exec_prefix}/bin' |
751 | sbindir='${exec_prefix}/sbin' | |
752 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
753 | datarootdir='${prefix}/share' |
754 | datadir='${datarootdir}' | |
212380e3 AC |
755 | sysconfdir='${prefix}/etc' |
756 | sharedstatedir='${prefix}/com' | |
757 | localstatedir='${prefix}/var' | |
212380e3 AC |
758 | includedir='${prefix}/include' |
759 | oldincludedir='/usr/include' | |
631ef239 AC |
760 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
761 | infodir='${datarootdir}/info' | |
762 | htmldir='${docdir}' | |
763 | dvidir='${docdir}' | |
764 | pdfdir='${docdir}' | |
765 | psdir='${docdir}' | |
766 | libdir='${exec_prefix}/lib' | |
767 | localedir='${datarootdir}/locale' | |
768 | mandir='${datarootdir}/man' | |
212380e3 AC |
769 | |
770 | ac_prev= | |
631ef239 | 771 | ac_dashdash= |
212380e3 AC |
772 | for ac_option |
773 | do | |
774 | # If the previous option needs an argument, assign it. | |
775 | if test -n "$ac_prev"; then | |
631ef239 | 776 | eval $ac_prev=\$ac_option |
212380e3 AC |
777 | ac_prev= |
778 | continue | |
779 | fi | |
780 | ||
631ef239 AC |
781 | case $ac_option in |
782 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
783 | *) ac_optarg=yes ;; | |
784 | esac | |
212380e3 AC |
785 | |
786 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
787 | ||
631ef239 AC |
788 | case $ac_dashdash$ac_option in |
789 | --) | |
790 | ac_dashdash=yes ;; | |
212380e3 AC |
791 | |
792 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
793 | ac_prev=bindir ;; | |
794 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
795 | bindir=$ac_optarg ;; | |
796 | ||
797 | -build | --build | --buil | --bui | --bu) | |
798 | ac_prev=build_alias ;; | |
799 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
800 | build_alias=$ac_optarg ;; | |
801 | ||
802 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
803 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
804 | ac_prev=cache_file ;; | |
805 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
806 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
807 | cache_file=$ac_optarg ;; | |
808 | ||
809 | --config-cache | -C) | |
810 | cache_file=config.cache ;; | |
811 | ||
631ef239 | 812 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 813 | ac_prev=datadir ;; |
631ef239 | 814 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
815 | datadir=$ac_optarg ;; |
816 | ||
631ef239 AC |
817 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
818 | | --dataroo | --dataro | --datar) | |
819 | ac_prev=datarootdir ;; | |
820 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
821 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
822 | datarootdir=$ac_optarg ;; | |
823 | ||
212380e3 AC |
824 | -disable-* | --disable-*) |
825 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
826 | # Reject names that are not valid shell variable names. | |
631ef239 | 827 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
828 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
829 | { (exit 1); exit 1; }; } | |
631ef239 AC |
830 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
831 | eval enable_$ac_feature=no ;; | |
832 | ||
833 | -docdir | --docdir | --docdi | --doc | --do) | |
834 | ac_prev=docdir ;; | |
835 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
836 | docdir=$ac_optarg ;; | |
837 | ||
838 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
839 | ac_prev=dvidir ;; | |
840 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
841 | dvidir=$ac_optarg ;; | |
212380e3 AC |
842 | |
843 | -enable-* | --enable-*) | |
844 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
845 | # Reject names that are not valid shell variable names. | |
631ef239 | 846 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
847 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
848 | { (exit 1); exit 1; }; } | |
631ef239 AC |
849 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
850 | eval enable_$ac_feature=\$ac_optarg ;; | |
212380e3 AC |
851 | |
852 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
853 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
854 | | --exec | --exe | --ex) | |
855 | ac_prev=exec_prefix ;; | |
856 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
857 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
858 | | --exec=* | --exe=* | --ex=*) | |
859 | exec_prefix=$ac_optarg ;; | |
860 | ||
861 | -gas | --gas | --ga | --g) | |
862 | # Obsolete; use --with-gas. | |
863 | with_gas=yes ;; | |
864 | ||
865 | -help | --help | --hel | --he | -h) | |
866 | ac_init_help=long ;; | |
867 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
868 | ac_init_help=recursive ;; | |
869 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
870 | ac_init_help=short ;; | |
871 | ||
872 | -host | --host | --hos | --ho) | |
873 | ac_prev=host_alias ;; | |
874 | -host=* | --host=* | --hos=* | --ho=*) | |
875 | host_alias=$ac_optarg ;; | |
876 | ||
631ef239 AC |
877 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
878 | ac_prev=htmldir ;; | |
879 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
880 | | --ht=*) | |
881 | htmldir=$ac_optarg ;; | |
882 | ||
212380e3 AC |
883 | -includedir | --includedir | --includedi | --included | --include \ |
884 | | --includ | --inclu | --incl | --inc) | |
885 | ac_prev=includedir ;; | |
886 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
887 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
888 | includedir=$ac_optarg ;; | |
889 | ||
890 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
891 | ac_prev=infodir ;; | |
892 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
893 | infodir=$ac_optarg ;; | |
894 | ||
895 | -libdir | --libdir | --libdi | --libd) | |
896 | ac_prev=libdir ;; | |
897 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
898 | libdir=$ac_optarg ;; | |
899 | ||
900 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
901 | | --libexe | --libex | --libe) | |
902 | ac_prev=libexecdir ;; | |
903 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
904 | | --libexe=* | --libex=* | --libe=*) | |
905 | libexecdir=$ac_optarg ;; | |
906 | ||
631ef239 AC |
907 | -localedir | --localedir | --localedi | --localed | --locale) |
908 | ac_prev=localedir ;; | |
909 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
910 | localedir=$ac_optarg ;; | |
911 | ||
212380e3 | 912 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 913 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
914 | ac_prev=localstatedir ;; |
915 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 916 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
917 | localstatedir=$ac_optarg ;; |
918 | ||
919 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
920 | ac_prev=mandir ;; | |
921 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
922 | mandir=$ac_optarg ;; | |
923 | ||
924 | -nfp | --nfp | --nf) | |
925 | # Obsolete; use --without-fp. | |
926 | with_fp=no ;; | |
927 | ||
928 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
929 | | --no-cr | --no-c | -n) | |
930 | no_create=yes ;; | |
931 | ||
932 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
933 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
934 | no_recursion=yes ;; | |
935 | ||
936 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
937 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
938 | | --oldin | --oldi | --old | --ol | --o) | |
939 | ac_prev=oldincludedir ;; | |
940 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
941 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
942 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
943 | oldincludedir=$ac_optarg ;; | |
944 | ||
945 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
946 | ac_prev=prefix ;; | |
947 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
948 | prefix=$ac_optarg ;; | |
949 | ||
950 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
951 | | --program-pre | --program-pr | --program-p) | |
952 | ac_prev=program_prefix ;; | |
953 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
954 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
955 | program_prefix=$ac_optarg ;; | |
956 | ||
957 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
958 | | --program-suf | --program-su | --program-s) | |
959 | ac_prev=program_suffix ;; | |
960 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
961 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
962 | program_suffix=$ac_optarg ;; | |
963 | ||
964 | -program-transform-name | --program-transform-name \ | |
965 | | --program-transform-nam | --program-transform-na \ | |
966 | | --program-transform-n | --program-transform- \ | |
967 | | --program-transform | --program-transfor \ | |
968 | | --program-transfo | --program-transf \ | |
969 | | --program-trans | --program-tran \ | |
970 | | --progr-tra | --program-tr | --program-t) | |
971 | ac_prev=program_transform_name ;; | |
972 | -program-transform-name=* | --program-transform-name=* \ | |
973 | | --program-transform-nam=* | --program-transform-na=* \ | |
974 | | --program-transform-n=* | --program-transform-=* \ | |
975 | | --program-transform=* | --program-transfor=* \ | |
976 | | --program-transfo=* | --program-transf=* \ | |
977 | | --program-trans=* | --program-tran=* \ | |
978 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
979 | program_transform_name=$ac_optarg ;; | |
980 | ||
631ef239 AC |
981 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
982 | ac_prev=pdfdir ;; | |
983 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
984 | pdfdir=$ac_optarg ;; | |
985 | ||
986 | -psdir | --psdir | --psdi | --psd | --ps) | |
987 | ac_prev=psdir ;; | |
988 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
989 | psdir=$ac_optarg ;; | |
990 | ||
212380e3 AC |
991 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
992 | | -silent | --silent | --silen | --sile | --sil) | |
993 | silent=yes ;; | |
994 | ||
995 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
996 | ac_prev=sbindir ;; | |
997 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
998 | | --sbi=* | --sb=*) | |
999 | sbindir=$ac_optarg ;; | |
1000 | ||
1001 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1002 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1003 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1004 | | --sha | --sh) | |
1005 | ac_prev=sharedstatedir ;; | |
1006 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1007 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1008 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1009 | | --sha=* | --sh=*) | |
1010 | sharedstatedir=$ac_optarg ;; | |
1011 | ||
1012 | -site | --site | --sit) | |
1013 | ac_prev=site ;; | |
1014 | -site=* | --site=* | --sit=*) | |
1015 | site=$ac_optarg ;; | |
1016 | ||
1017 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1018 | ac_prev=srcdir ;; | |
1019 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1020 | srcdir=$ac_optarg ;; | |
1021 | ||
1022 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1023 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1024 | ac_prev=sysconfdir ;; | |
1025 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1026 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1027 | sysconfdir=$ac_optarg ;; | |
1028 | ||
1029 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1030 | ac_prev=target_alias ;; | |
1031 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1032 | target_alias=$ac_optarg ;; | |
1033 | ||
1034 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1035 | verbose=yes ;; | |
1036 | ||
1037 | -version | --version | --versio | --versi | --vers | -V) | |
1038 | ac_init_version=: ;; | |
1039 | ||
1040 | -with-* | --with-*) | |
1041 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1042 | # Reject names that are not valid shell variable names. | |
631ef239 | 1043 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1044 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1045 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1046 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1047 | eval with_$ac_package=\$ac_optarg ;; | |
212380e3 AC |
1048 | |
1049 | -without-* | --without-*) | |
1050 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1051 | # Reject names that are not valid shell variable names. | |
631ef239 | 1052 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1053 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1054 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1055 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1056 | eval with_$ac_package=no ;; | |
212380e3 AC |
1057 | |
1058 | --x) | |
1059 | # Obsolete; use --with-x. | |
1060 | with_x=yes ;; | |
1061 | ||
1062 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1063 | | --x-incl | --x-inc | --x-in | --x-i) | |
1064 | ac_prev=x_includes ;; | |
1065 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1066 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1067 | x_includes=$ac_optarg ;; | |
1068 | ||
1069 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1070 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1071 | ac_prev=x_libraries ;; | |
1072 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1073 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1074 | x_libraries=$ac_optarg ;; | |
1075 | ||
1076 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1077 | Try \`$0 --help' for more information." >&2 | |
1078 | { (exit 1); exit 1; }; } | |
1079 | ;; | |
1080 | ||
1081 | *=*) | |
1082 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1083 | # Reject names that are not valid shell variable names. | |
1084 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1085 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1086 | { (exit 1); exit 1; }; } | |
631ef239 | 1087 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1088 | export $ac_envvar ;; |
1089 | ||
1090 | *) | |
1091 | # FIXME: should be removed in autoconf 3.0. | |
1092 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1093 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1094 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1095 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1096 | ;; | |
1097 | ||
1098 | esac | |
1099 | done | |
1100 | ||
1101 | if test -n "$ac_prev"; then | |
1102 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1103 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1104 | { (exit 1); exit 1; }; } | |
1105 | fi | |
1106 | ||
631ef239 AC |
1107 | # Be sure to have absolute directory names. |
1108 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1109 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1110 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1111 | libdir localedir mandir | |
212380e3 | 1112 | do |
631ef239 | 1113 | eval ac_val=\$$ac_var |
212380e3 | 1114 | case $ac_val in |
631ef239 AC |
1115 | [\\/$]* | ?:[\\/]* ) continue;; |
1116 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1117 | esac |
631ef239 AC |
1118 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1119 | { (exit 1); exit 1; }; } | |
212380e3 AC |
1120 | done |
1121 | ||
1122 | # There might be people who depend on the old broken behavior: `$host' | |
1123 | # used to hold the argument of --host etc. | |
1124 | # FIXME: To remove some day. | |
1125 | build=$build_alias | |
1126 | host=$host_alias | |
1127 | target=$target_alias | |
1128 | ||
1129 | # FIXME: To remove some day. | |
1130 | if test "x$host_alias" != x; then | |
1131 | if test "x$build_alias" = x; then | |
1132 | cross_compiling=maybe | |
1133 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1134 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1135 | elif test "x$build_alias" != "x$host_alias"; then | |
1136 | cross_compiling=yes | |
1137 | fi | |
1138 | fi | |
1139 | ||
1140 | ac_tool_prefix= | |
1141 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1142 | ||
1143 | test "$silent" = yes && exec 6>/dev/null | |
1144 | ||
1145 | ||
631ef239 AC |
1146 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1147 | ac_ls_di=`ls -di .` && | |
1148 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1149 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1150 | { (exit 1); exit 1; }; } | |
1151 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1152 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1153 | { (exit 1); exit 1; }; } | |
1154 | ||
1155 | ||
1156 | # Find the source files, if location was not specified. | |
1157 | if test -z "$srcdir"; then | |
212380e3 | 1158 | ac_srcdir_defaulted=yes |
631ef239 AC |
1159 | # Try the directory containing this script, then the parent directory. |
1160 | ac_confdir=`$as_dirname -- "$0" || | |
212380e3 AC |
1161 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1162 | X"$0" : 'X\(//\)[^/]' \| \ | |
1163 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 1164 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 1165 | echo X"$0" | |
631ef239 AC |
1166 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1167 | s//\1/ | |
1168 | q | |
1169 | } | |
1170 | /^X\(\/\/\)[^/].*/{ | |
1171 | s//\1/ | |
1172 | q | |
1173 | } | |
1174 | /^X\(\/\/\)$/{ | |
1175 | s//\1/ | |
1176 | q | |
1177 | } | |
1178 | /^X\(\/\).*/{ | |
1179 | s//\1/ | |
1180 | q | |
1181 | } | |
1182 | s/.*/./; q'` | |
212380e3 | 1183 | srcdir=$ac_confdir |
631ef239 | 1184 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1185 | srcdir=.. |
1186 | fi | |
1187 | else | |
1188 | ac_srcdir_defaulted=no | |
1189 | fi | |
631ef239 AC |
1190 | if test ! -r "$srcdir/$ac_unique_file"; then |
1191 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1192 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
212380e3 | 1193 | { (exit 1); exit 1; }; } |
212380e3 | 1194 | fi |
631ef239 AC |
1195 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1196 | ac_abs_confdir=`( | |
1197 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
212380e3 | 1198 | { (exit 1); exit 1; }; } |
631ef239 AC |
1199 | pwd)` |
1200 | # When building in place, set srcdir=. | |
1201 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1202 | srcdir=. | |
1203 | fi | |
1204 | # Remove unnecessary trailing slashes from srcdir. | |
1205 | # Double slashes in file names in object file debugging info | |
1206 | # mess up M-x gdb in Emacs. | |
1207 | case $srcdir in | |
1208 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1209 | esac | |
1210 | for ac_var in $ac_precious_vars; do | |
1211 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1212 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1213 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1214 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1215 | done | |
212380e3 AC |
1216 | |
1217 | # | |
1218 | # Report the --help message. | |
1219 | # | |
1220 | if test "$ac_init_help" = "long"; then | |
1221 | # Omit some internal or obsolete options to make the list less imposing. | |
1222 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1223 | cat <<_ACEOF | |
b1fc1658 | 1224 | \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems. |
212380e3 AC |
1225 | |
1226 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1227 | ||
1228 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1229 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1230 | ||
1231 | Defaults for the options are specified in brackets. | |
1232 | ||
1233 | Configuration: | |
1234 | -h, --help display this help and exit | |
1235 | --help=short display options specific to this package | |
1236 | --help=recursive display the short help of all the included packages | |
1237 | -V, --version display version information and exit | |
1238 | -q, --quiet, --silent do not print \`checking...' messages | |
1239 | --cache-file=FILE cache test results in FILE [disabled] | |
1240 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1241 | -n, --no-create do not create output files | |
1242 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1243 | ||
212380e3 AC |
1244 | Installation directories: |
1245 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1246 | [$ac_default_prefix] | |
1247 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1248 | [PREFIX] | |
1249 | ||
1250 | By default, \`make install' will install all the files in | |
1251 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1252 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1253 | for instance \`--prefix=\$HOME'. | |
1254 | ||
1255 | For better control, use the options below. | |
1256 | ||
1257 | Fine tuning of the installation directories: | |
1258 | --bindir=DIR user executables [EPREFIX/bin] | |
1259 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1260 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
212380e3 AC |
1261 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1262 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1263 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1264 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1265 | --includedir=DIR C header files [PREFIX/include] | |
1266 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
631ef239 AC |
1267 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1268 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1269 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1270 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1271 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1272 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1273 | --htmldir=DIR html documentation [DOCDIR] | |
1274 | --dvidir=DIR dvi documentation [DOCDIR] | |
1275 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1276 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1277 | _ACEOF |
1278 | ||
1279 | cat <<\_ACEOF | |
1280 | _ACEOF | |
1281 | fi | |
1282 | ||
1283 | if test -n "$ac_init_help"; then | |
1284 | case $ac_init_help in | |
b1fc1658 | 1285 | short | recursive ) echo "Configuration of charybdis 2.2.0:";; |
212380e3 AC |
1286 | esac |
1287 | cat <<\_ACEOF | |
1288 | ||
1289 | Optional Features: | |
1290 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1291 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1292 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1293 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1294 | --disable-openssl Disable OpenSSL support. |
1295 | --disable-zlib Disable ziplinks support | |
1296 | --enable-poll Force poll() usage. | |
1297 | --enable-select Force select() usage. | |
1298 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1299 | --enable-epoll Force sys_epoll usage (Linux only). |
1300 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1301 | hard(aborts the daemon) | |
1302 | --enable-iodebug Enable IO Debugging hooks | |
1303 | --enable-profile Enable profiling | |
1304 | --disable-balloc Disable the block allocator. | |
212380e3 AC |
1305 | --enable-small-net Enable small network support. |
1306 | --disable-shared-modules | |
1307 | Disable shared modules. | |
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 | |
b1fc1658 | 1400 | charybdis configure 2.2.0 |
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 | ||
5e12fb10 | 1408 | $Id: configure 3364 2007-04-03 09:50:56Z nenolod $ |
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 | ||
b1fc1658 | 1416 | It was created by charybdis $as_me 2.2.0, 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 | ||
2711 | ||
2712 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2713 | ||
2714 | SGS=no | |
631ef239 AC |
2715 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2716 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
212380e3 AC |
2717 | case `$CC -version 2>&1` in |
2718 | *TenDRA*) | |
631ef239 AC |
2719 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2720 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
212380e3 AC |
2721 | IRC_CFLAGS="" |
2722 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2723 | SGS=yes | |
2724 | TenDRA=yes | |
2725 | ;; | |
2726 | *MIPSpro*) | |
631ef239 AC |
2727 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2728 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
212380e3 AC |
2729 | MIPSpro=yes |
2730 | SGS=yes | |
2731 | ;; | |
2732 | *) | |
631ef239 AC |
2733 | { echo "$as_me:$LINENO: result: no" >&5 |
2734 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2735 | TenDRA=no |
2736 | MIPSpro=no | |
2737 | ;; | |
2738 | esac | |
2739 | ||
631ef239 AC |
2740 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2741 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
212380e3 AC |
2742 | case `$CC -V 2>&1` in |
2743 | *Sun*WorkShop* | *Forte*Developer*) | |
631ef239 AC |
2744 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2745 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
212380e3 AC |
2746 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2747 | SunWorkShop=yes | |
2748 | SGS=yes | |
2749 | ;; | |
2750 | *Tru64*) | |
631ef239 AC |
2751 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2752 | echo "${ECHO_T}Tru64 cc" >&6; } | |
212380e3 AC |
2753 | IRC_CFLAGS="-O2" |
2754 | CPPFLAGS="-I/usr/local/include" | |
2755 | Tru=yes | |
2756 | ;; | |
2757 | *HP*ANSI*) | |
631ef239 AC |
2758 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2759 | echo "${ECHO_T}HPUX cc" >&6; } | |
212380e3 AC |
2760 | HPUX=yes |
2761 | IRC_CFLAGS="+e" | |
2762 | ;; | |
2763 | *) | |
631ef239 AC |
2764 | { echo "$as_me:$LINENO: result: no" >&5 |
2765 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2766 | ;; |
2767 | esac | |
2768 | ||
2769 | fi | |
2770 | ||
631ef239 AC |
2771 | { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5 |
2772 | echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
212380e3 AC |
2773 | OSNAME=`uname -s` |
2774 | case "$OSNAME" in | |
2775 | HP-UX*) | |
2776 | ||
2777 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
631ef239 AC |
2778 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2779 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
212380e3 AC |
2780 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2781 | HPUX=yes | |
2782 | else | |
631ef239 AC |
2783 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2784 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
212380e3 AC |
2785 | fi |
2786 | ;; | |
2787 | CYGWIN*) | |
631ef239 AC |
2788 | { echo "$as_me:$LINENO: result: Cygwin" >&5 |
2789 | echo "${ECHO_T}Cygwin" >&6; } | |
212380e3 AC |
2790 | CYGWIN=yes |
2791 | ;; | |
2792 | SunOS*) | |
631ef239 AC |
2793 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2794 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
212380e3 AC |
2795 | |
2796 | cat >>confdefs.h <<\_ACEOF | |
2797 | #define __EXTENSIONS__ 1 | |
2798 | _ACEOF | |
2799 | ||
2800 | SUN=yes | |
2801 | ;; | |
2802 | AIX*) | |
631ef239 AC |
2803 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 |
2804 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
212380e3 AC |
2805 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" |
2806 | ;; | |
2807 | *) | |
631ef239 AC |
2808 | { echo "$as_me:$LINENO: result: no" >&5 |
2809 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2810 | ;; |
2811 | esac | |
2812 | ||
2813 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2814 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2815 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
212380e3 AC |
2816 | |
2817 | case `$CC -v 2>&1 | tail -n 1` in | |
2818 | *Apple*) | |
631ef239 AC |
2819 | { echo "$as_me:$LINENO: result: yes" >&5 |
2820 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2821 | AppleGCC=yes |
2822 | ;; | |
2823 | *) | |
631ef239 AC |
2824 | { echo "$as_me:$LINENO: result: no" >&5 |
2825 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2826 | AppleGCC=no |
2827 | ;; | |
2828 | esac | |
2829 | ||
2830 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" | |
2831 | fi | |
2832 | ||
2833 | if test "$ac_cv_prog_cc_g" = yes; then | |
2834 | if test "$Tru" = yes; then | |
2835 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2836 | else | |
2837 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2838 | fi | |
2839 | fi | |
2840 | ||
631ef239 AC |
2841 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2842 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
212380e3 | 2843 | if test "$SGS" = "yes"; then |
631ef239 AC |
2844 | { echo "$as_me:$LINENO: result: yes" >&5 |
2845 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2846 | else |
631ef239 AC |
2847 | { echo "$as_me:$LINENO: result: no" >&5 |
2848 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2849 | fi |
2850 | ||
2851 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2852 | set dummy mkdep; ac_word=$2 | |
631ef239 AC |
2853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2855 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2857 | else | |
2858 | case $MKDEP in | |
2859 | [\\/]* | ?:[\\/]*) | |
2860 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2861 | ;; | |
2862 | *) | |
2863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2864 | for as_dir in $PATH | |
2865 | do | |
2866 | IFS=$as_save_IFS | |
2867 | test -z "$as_dir" && as_dir=. | |
2868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2870 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2872 | break 2 | |
2873 | fi | |
2874 | done | |
2875 | done | |
631ef239 | 2876 | IFS=$as_save_IFS |
212380e3 AC |
2877 | |
2878 | ;; | |
2879 | esac | |
2880 | fi | |
2881 | MKDEP=$ac_cv_path_MKDEP | |
212380e3 | 2882 | if test -n "$MKDEP"; then |
631ef239 AC |
2883 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2884 | echo "${ECHO_T}$MKDEP" >&6; } | |
212380e3 | 2885 | else |
631ef239 AC |
2886 | { echo "$as_me:$LINENO: result: no" >&5 |
2887 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2888 | fi |
2889 | ||
631ef239 | 2890 | |
212380e3 AC |
2891 | # Extract the first word of "makedepend", so it can be a program name with args. |
2892 | set dummy makedepend; ac_word=$2 | |
631ef239 AC |
2893 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2895 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2897 | else | |
2898 | case $MAKEDEPEND in | |
2899 | [\\/]* | ?:[\\/]*) | |
2900 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2901 | ;; | |
2902 | *) | |
2903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2904 | for as_dir in $PATH | |
2905 | do | |
2906 | IFS=$as_save_IFS | |
2907 | test -z "$as_dir" && as_dir=. | |
2908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2910 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2912 | break 2 | |
2913 | fi | |
2914 | done | |
2915 | done | |
631ef239 | 2916 | IFS=$as_save_IFS |
212380e3 AC |
2917 | |
2918 | ;; | |
2919 | esac | |
2920 | fi | |
2921 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
212380e3 | 2922 | if test -n "$MAKEDEPEND"; then |
631ef239 AC |
2923 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2924 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
212380e3 | 2925 | else |
631ef239 AC |
2926 | { echo "$as_me:$LINENO: result: no" >&5 |
2927 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2928 | fi |
2929 | ||
2930 | ||
631ef239 AC |
2931 | |
2932 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2933 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
212380e3 AC |
2934 | |
2935 | STDOUT="> .depend" | |
2936 | ||
2937 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2938 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2939 | echo "${ECHO_T}gcc -MM" >&6; } | |
212380e3 AC |
2940 | MKDEP="$CC -MM" |
2941 | elif test ! -z "$MKDEP"; then | |
631ef239 AC |
2942 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2943 | echo "${ECHO_T}mkdep" >&6; } | |
212380e3 AC |
2944 | |
2945 | if test -z "$Tru"; then | |
2946 | STDOUT="" | |
2947 | else | |
2948 | STDOUT=" 2> /dev/null" | |
2949 | fi | |
2950 | elif test "$SunWorkShop" = yes; then | |
631ef239 AC |
2951 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2952 | echo "${ECHO_T}$CC -xM" >&6; } | |
212380e3 AC |
2953 | MKDEP="$CC -xM" |
2954 | STDOUT="> .depend 2> /dev/null" | |
2955 | elif test ! -z "$MAKEDEPEND"; then | |
631ef239 AC |
2956 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
2957 | echo "${ECHO_T}makedepend" >&6; } | |
212380e3 AC |
2958 | MKDEP="$MAKEDEPEND -f-" |
2959 | else | |
631ef239 AC |
2960 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2961 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
212380e3 AC |
2962 | MKDEP=":" |
2963 | fi | |
2964 | ||
2965 | ||
2966 | ||
2967 | ||
631ef239 AC |
2968 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2969 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
212380e3 AC |
2970 | if test -c /dev/null ; then |
2971 | ||
2972 | cat >>confdefs.h <<\_ACEOF | |
2973 | #define PATH_DEVNULL "/dev/null" | |
2974 | _ACEOF | |
2975 | ||
631ef239 AC |
2976 | { echo "$as_me:$LINENO: result: yes" >&5 |
2977 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2978 | else |
2979 | ||
2980 | cat >>confdefs.h <<\_ACEOF | |
2981 | #define PATH_DEVNULL "devnull.log" | |
2982 | _ACEOF | |
2983 | ||
631ef239 AC |
2984 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
2985 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
212380e3 AC |
2986 | fi |
2987 | ||
2988 | if test ! -z "$CFLAGS"; then | |
2989 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
2990 | fi | |
2991 | ||
2992 | ||
631ef239 AC |
2993 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2994 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
212380e3 AC |
2995 | if test "${ac_cv_search_strerror+set}" = set; then |
2996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2997 | else | |
2998 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
2999 | cat >conftest.$ac_ext <<_ACEOF |
3000 | /* confdefs.h. */ | |
3001 | _ACEOF | |
3002 | cat confdefs.h >>conftest.$ac_ext | |
3003 | cat >>conftest.$ac_ext <<_ACEOF | |
3004 | /* end confdefs.h. */ | |
3005 | ||
631ef239 AC |
3006 | /* Override any GCC internal prototype to avoid an error. |
3007 | Use char because int might match the return type of a GCC | |
3008 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
3009 | #ifdef __cplusplus |
3010 | extern "C" | |
3011 | #endif | |
212380e3 AC |
3012 | char strerror (); |
3013 | int | |
3014 | main () | |
3015 | { | |
631ef239 | 3016 | return strerror (); |
212380e3 AC |
3017 | ; |
3018 | return 0; | |
3019 | } | |
3020 | _ACEOF | |
631ef239 AC |
3021 | for ac_lib in '' cposix; do |
3022 | if test -z "$ac_lib"; then | |
3023 | ac_res="none required" | |
3024 | else | |
3025 | ac_res=-l$ac_lib | |
3026 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3027 | fi | |
3028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3029 | if { (ac_try="$ac_link" | |
3030 | case "(($ac_try" in | |
3031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3032 | *) ac_try_echo=$ac_try;; | |
3033 | esac | |
3034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3035 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
3036 | ac_status=$? |
3037 | grep -v '^ *+' conftest.er1 >conftest.err | |
3038 | rm -f conftest.er1 | |
3039 | cat conftest.err >&5 | |
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3041 | (exit $ac_status); } && { |
3042 | test -z "$ac_c_werror_flag" || | |
3043 | test ! -s conftest.err | |
3044 | } && test -s conftest$ac_exeext && | |
3045 | $as_test_x conftest$ac_exeext; then | |
3046 | ac_cv_search_strerror=$ac_res | |
212380e3 AC |
3047 | else |
3048 | echo "$as_me: failed program was:" >&5 | |
3049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3050 | ||
212380e3 | 3051 | |
631ef239 | 3052 | fi |
212380e3 | 3053 | |
631ef239 AC |
3054 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3055 | conftest$ac_exeext | |
3056 | if test "${ac_cv_search_strerror+set}" = set; then | |
3057 | break | |
212380e3 | 3058 | fi |
631ef239 AC |
3059 | done |
3060 | if test "${ac_cv_search_strerror+set}" = set; then | |
3061 | : | |
3062 | else | |
3063 | ac_cv_search_strerror=no | |
212380e3 | 3064 | fi |
631ef239 | 3065 | rm conftest.$ac_ext |
212380e3 AC |
3066 | LIBS=$ac_func_search_save_LIBS |
3067 | fi | |
631ef239 AC |
3068 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3069 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3070 | ac_res=$ac_cv_search_strerror | |
3071 | if test "$ac_res" != no; then | |
3072 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
3073 | |
3074 | fi | |
3075 | ||
631ef239 AC |
3076 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3077 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
212380e3 AC |
3078 | if test "${ac_cv_c_inline+set}" = set; then |
3079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3080 | else | |
3081 | ac_cv_c_inline=no | |
3082 | for ac_kw in inline __inline__ __inline; do | |
3083 | cat >conftest.$ac_ext <<_ACEOF | |
3084 | /* confdefs.h. */ | |
3085 | _ACEOF | |
3086 | cat confdefs.h >>conftest.$ac_ext | |
3087 | cat >>conftest.$ac_ext <<_ACEOF | |
3088 | /* end confdefs.h. */ | |
3089 | #ifndef __cplusplus | |
3090 | typedef int foo_t; | |
3091 | static $ac_kw foo_t static_foo () {return 0; } | |
3092 | $ac_kw foo_t foo () {return 0; } | |
3093 | #endif | |
3094 | ||
3095 | _ACEOF | |
3096 | rm -f conftest.$ac_objext | |
631ef239 AC |
3097 | if { (ac_try="$ac_compile" |
3098 | case "(($ac_try" in | |
3099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3100 | *) ac_try_echo=$ac_try;; | |
3101 | esac | |
3102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3103 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
3104 | ac_status=$? |
3105 | grep -v '^ *+' conftest.er1 >conftest.err | |
3106 | rm -f conftest.er1 | |
3107 | cat conftest.err >&5 | |
3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3109 | (exit $ac_status); } && { |
3110 | test -z "$ac_c_werror_flag" || | |
3111 | test ! -s conftest.err | |
3112 | } && test -s conftest.$ac_objext; then | |
3113 | ac_cv_c_inline=$ac_kw | |
212380e3 AC |
3114 | else |
3115 | echo "$as_me: failed program was:" >&5 | |
3116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3117 | ||
631ef239 | 3118 | |
212380e3 | 3119 | fi |
631ef239 AC |
3120 | |
3121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3122 | test "$ac_cv_c_inline" != no && break | |
212380e3 AC |
3123 | done |
3124 | ||
3125 | fi | |
631ef239 AC |
3126 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3127 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
212380e3 AC |
3128 | |
3129 | ||
3130 | case $ac_cv_c_inline in | |
3131 | inline | yes) ;; | |
3132 | *) | |
3133 | case $ac_cv_c_inline in | |
3134 | no) ac_val=;; | |
3135 | *) ac_val=$ac_cv_c_inline;; | |
3136 | esac | |
3137 | cat >>confdefs.h <<_ACEOF | |
3138 | #ifndef __cplusplus | |
3139 | #define inline $ac_val | |
3140 | #endif | |
3141 | _ACEOF | |
3142 | ;; | |
3143 | esac | |
3144 | ||
3145 | ac_ext=c | |
3146 | ac_cpp='$CPP $CPPFLAGS' | |
3147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 AC |
3150 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3151 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
212380e3 AC |
3152 | # On Suns, sometimes $CPP names a directory. |
3153 | if test -n "$CPP" && test -d "$CPP"; then | |
3154 | CPP= | |
3155 | fi | |
3156 | if test -z "$CPP"; then | |
3157 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3159 | else | |
3160 | # Double quotes because CPP needs to be expanded | |
3161 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3162 | do | |
3163 | ac_preproc_ok=false | |
3164 | for ac_c_preproc_warn_flag in '' yes | |
3165 | do | |
3166 | # Use a header file that comes with gcc, so configuring glibc | |
3167 | # with a fresh cross-compiler works. | |
3168 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3169 | # <limits.h> exists even on freestanding compilers. | |
3170 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3171 | # not just through cpp. "Syntax error" is here to catch this case. | |
3172 | cat >conftest.$ac_ext <<_ACEOF | |
3173 | /* confdefs.h. */ | |
3174 | _ACEOF | |
3175 | cat confdefs.h >>conftest.$ac_ext | |
3176 | cat >>conftest.$ac_ext <<_ACEOF | |
3177 | /* end confdefs.h. */ | |
3178 | #ifdef __STDC__ | |
3179 | # include <limits.h> | |
3180 | #else | |
3181 | # include <assert.h> | |
3182 | #endif | |
3183 | Syntax error | |
3184 | _ACEOF | |
631ef239 AC |
3185 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3186 | case "(($ac_try" in | |
3187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3188 | *) ac_try_echo=$ac_try;; | |
3189 | esac | |
3190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3191 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3192 | ac_status=$? |
3193 | grep -v '^ *+' conftest.er1 >conftest.err | |
3194 | rm -f conftest.er1 | |
3195 | cat conftest.err >&5 | |
3196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3197 | (exit $ac_status); } >/dev/null && { |
3198 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3199 | test ! -s conftest.err | |
3200 | }; then | |
212380e3 AC |
3201 | : |
3202 | else | |
3203 | echo "$as_me: failed program was:" >&5 | |
3204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3205 | ||
3206 | # Broken: fails on valid input. | |
3207 | continue | |
3208 | fi | |
631ef239 | 3209 | |
212380e3 AC |
3210 | rm -f conftest.err conftest.$ac_ext |
3211 | ||
631ef239 | 3212 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3213 | # can be detected and how. |
3214 | cat >conftest.$ac_ext <<_ACEOF | |
3215 | /* confdefs.h. */ | |
3216 | _ACEOF | |
3217 | cat confdefs.h >>conftest.$ac_ext | |
3218 | cat >>conftest.$ac_ext <<_ACEOF | |
3219 | /* end confdefs.h. */ | |
3220 | #include <ac_nonexistent.h> | |
3221 | _ACEOF | |
631ef239 AC |
3222 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3223 | case "(($ac_try" in | |
3224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3225 | *) ac_try_echo=$ac_try;; | |
3226 | esac | |
3227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3228 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3229 | ac_status=$? |
3230 | grep -v '^ *+' conftest.er1 >conftest.err | |
3231 | rm -f conftest.er1 | |
3232 | cat conftest.err >&5 | |
3233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3234 | (exit $ac_status); } >/dev/null && { |
3235 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3236 | test ! -s conftest.err | |
3237 | }; then | |
212380e3 AC |
3238 | # Broken: success on invalid input. |
3239 | continue | |
3240 | else | |
3241 | echo "$as_me: failed program was:" >&5 | |
3242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3243 | ||
3244 | # Passes both tests. | |
3245 | ac_preproc_ok=: | |
3246 | break | |
3247 | fi | |
631ef239 | 3248 | |
212380e3 AC |
3249 | rm -f conftest.err conftest.$ac_ext |
3250 | ||
3251 | done | |
3252 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3253 | rm -f conftest.err conftest.$ac_ext | |
3254 | if $ac_preproc_ok; then | |
3255 | break | |
3256 | fi | |
3257 | ||
3258 | done | |
3259 | ac_cv_prog_CPP=$CPP | |
3260 | ||
3261 | fi | |
3262 | CPP=$ac_cv_prog_CPP | |
3263 | else | |
3264 | ac_cv_prog_CPP=$CPP | |
3265 | fi | |
631ef239 AC |
3266 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3267 | echo "${ECHO_T}$CPP" >&6; } | |
212380e3 AC |
3268 | ac_preproc_ok=false |
3269 | for ac_c_preproc_warn_flag in '' yes | |
3270 | do | |
3271 | # Use a header file that comes with gcc, so configuring glibc | |
3272 | # with a fresh cross-compiler works. | |
3273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3274 | # <limits.h> exists even on freestanding compilers. | |
3275 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3276 | # not just through cpp. "Syntax error" is here to catch this case. | |
3277 | cat >conftest.$ac_ext <<_ACEOF | |
3278 | /* confdefs.h. */ | |
3279 | _ACEOF | |
3280 | cat confdefs.h >>conftest.$ac_ext | |
3281 | cat >>conftest.$ac_ext <<_ACEOF | |
3282 | /* end confdefs.h. */ | |
3283 | #ifdef __STDC__ | |
3284 | # include <limits.h> | |
3285 | #else | |
3286 | # include <assert.h> | |
3287 | #endif | |
3288 | Syntax error | |
3289 | _ACEOF | |
631ef239 AC |
3290 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3291 | case "(($ac_try" in | |
3292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3293 | *) ac_try_echo=$ac_try;; | |
3294 | esac | |
3295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3296 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3297 | ac_status=$? |
3298 | grep -v '^ *+' conftest.er1 >conftest.err | |
3299 | rm -f conftest.er1 | |
3300 | cat conftest.err >&5 | |
3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3302 | (exit $ac_status); } >/dev/null && { |
3303 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3304 | test ! -s conftest.err | |
3305 | }; then | |
212380e3 AC |
3306 | : |
3307 | else | |
3308 | echo "$as_me: failed program was:" >&5 | |
3309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3310 | ||
3311 | # Broken: fails on valid input. | |
3312 | continue | |
3313 | fi | |
631ef239 | 3314 | |
212380e3 AC |
3315 | rm -f conftest.err conftest.$ac_ext |
3316 | ||
631ef239 | 3317 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3318 | # can be detected and how. |
3319 | cat >conftest.$ac_ext <<_ACEOF | |
3320 | /* confdefs.h. */ | |
3321 | _ACEOF | |
3322 | cat confdefs.h >>conftest.$ac_ext | |
3323 | cat >>conftest.$ac_ext <<_ACEOF | |
3324 | /* end confdefs.h. */ | |
3325 | #include <ac_nonexistent.h> | |
3326 | _ACEOF | |
631ef239 AC |
3327 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3328 | case "(($ac_try" in | |
3329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3330 | *) ac_try_echo=$ac_try;; | |
3331 | esac | |
3332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3333 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3334 | ac_status=$? |
3335 | grep -v '^ *+' conftest.er1 >conftest.err | |
3336 | rm -f conftest.er1 | |
3337 | cat conftest.err >&5 | |
3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3339 | (exit $ac_status); } >/dev/null && { |
3340 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3341 | test ! -s conftest.err | |
3342 | }; then | |
212380e3 AC |
3343 | # Broken: success on invalid input. |
3344 | continue | |
3345 | else | |
3346 | echo "$as_me: failed program was:" >&5 | |
3347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3348 | ||
3349 | # Passes both tests. | |
3350 | ac_preproc_ok=: | |
3351 | break | |
3352 | fi | |
631ef239 | 3353 | |
212380e3 AC |
3354 | rm -f conftest.err conftest.$ac_ext |
3355 | ||
3356 | done | |
3357 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3358 | rm -f conftest.err conftest.$ac_ext | |
3359 | if $ac_preproc_ok; then | |
3360 | : | |
3361 | else | |
3362 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3363 | See \`config.log' for more details." >&5 | |
3364 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3365 | See \`config.log' for more details." >&2;} | |
3366 | { (exit 1); exit 1; }; } | |
3367 | fi | |
3368 | ||
3369 | ac_ext=c | |
3370 | ac_cpp='$CPP $CPPFLAGS' | |
3371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3374 | ||
3375 | ||
631ef239 AC |
3376 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3377 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3378 | if test "${ac_cv_path_GREP+set}" = set; then | |
3379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3380 | else | |
3381 | # Extract the first word of "grep ggrep" to use in msg output | |
3382 | if test -z "$GREP"; then | |
3383 | set dummy grep ggrep; ac_prog_name=$2 | |
3384 | if test "${ac_cv_path_GREP+set}" = set; then | |
3385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3386 | else | |
3387 | ac_path_GREP_found=false | |
3388 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3390 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3391 | do | |
3392 | IFS=$as_save_IFS | |
3393 | test -z "$as_dir" && as_dir=. | |
3394 | for ac_prog in grep ggrep; do | |
3395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3396 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3397 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3398 | # Check for GNU ac_path_GREP and select it if it is found. | |
3399 | # Check for GNU $ac_path_GREP | |
3400 | case `"$ac_path_GREP" --version 2>&1` in | |
3401 | *GNU*) | |
3402 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3403 | *) | |
3404 | ac_count=0 | |
3405 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3406 | while : | |
3407 | do | |
3408 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3409 | mv "conftest.tmp" "conftest.in" | |
3410 | cp "conftest.in" "conftest.nl" | |
3411 | echo 'GREP' >> "conftest.nl" | |
3412 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3413 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3414 | ac_count=`expr $ac_count + 1` | |
3415 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3416 | # Best one so far, save it but keep looking for a better one | |
3417 | ac_cv_path_GREP="$ac_path_GREP" | |
3418 | ac_path_GREP_max=$ac_count | |
3419 | fi | |
3420 | # 10*(2^10) chars as input seems more than enough | |
3421 | test $ac_count -gt 10 && break | |
3422 | done | |
3423 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3424 | esac | |
3425 | ||
3426 | ||
3427 | $ac_path_GREP_found && break 3 | |
3428 | done | |
3429 | done | |
3430 | ||
3431 | done | |
3432 | IFS=$as_save_IFS | |
3433 | ||
3434 | ||
3435 | fi | |
3436 | ||
3437 | GREP="$ac_cv_path_GREP" | |
3438 | if test -z "$GREP"; then | |
3439 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3440 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3441 | { (exit 1); exit 1; }; } | |
3442 | fi | |
3443 | ||
3444 | else | |
3445 | ac_cv_path_GREP=$GREP | |
3446 | fi | |
3447 | ||
3448 | ||
3449 | fi | |
3450 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3451 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3452 | GREP="$ac_cv_path_GREP" | |
3453 | ||
3454 | ||
3455 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3456 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3457 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3459 | else | |
3460 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3461 | then ac_cv_path_EGREP="$GREP -E" | |
3462 | else | |
3463 | # Extract the first word of "egrep" to use in msg output | |
3464 | if test -z "$EGREP"; then | |
3465 | set dummy egrep; ac_prog_name=$2 | |
3466 | if test "${ac_cv_path_EGREP+set}" = set; then | |
212380e3 AC |
3467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3468 | else | |
631ef239 AC |
3469 | ac_path_EGREP_found=false |
3470 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3472 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3473 | do | |
3474 | IFS=$as_save_IFS | |
3475 | test -z "$as_dir" && as_dir=. | |
3476 | for ac_prog in egrep; do | |
3477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3478 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3479 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3480 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3481 | # Check for GNU $ac_path_EGREP | |
3482 | case `"$ac_path_EGREP" --version 2>&1` in | |
3483 | *GNU*) | |
3484 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3485 | *) | |
3486 | ac_count=0 | |
3487 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3488 | while : | |
3489 | do | |
3490 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3491 | mv "conftest.tmp" "conftest.in" | |
3492 | cp "conftest.in" "conftest.nl" | |
3493 | echo 'EGREP' >> "conftest.nl" | |
3494 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3495 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3496 | ac_count=`expr $ac_count + 1` | |
3497 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3498 | # Best one so far, save it but keep looking for a better one | |
3499 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3500 | ac_path_EGREP_max=$ac_count | |
212380e3 | 3501 | fi |
631ef239 AC |
3502 | # 10*(2^10) chars as input seems more than enough |
3503 | test $ac_count -gt 10 && break | |
3504 | done | |
3505 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3506 | esac | |
3507 | ||
3508 | ||
3509 | $ac_path_EGREP_found && break 3 | |
3510 | done | |
3511 | done | |
3512 | ||
3513 | done | |
3514 | IFS=$as_save_IFS | |
3515 | ||
3516 | ||
3517 | fi | |
3518 | ||
3519 | EGREP="$ac_cv_path_EGREP" | |
3520 | if test -z "$EGREP"; then | |
3521 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3522 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3523 | { (exit 1); exit 1; }; } | |
3524 | fi | |
3525 | ||
3526 | else | |
3527 | ac_cv_path_EGREP=$EGREP | |
212380e3 | 3528 | fi |
631ef239 AC |
3529 | |
3530 | ||
3531 | fi | |
3532 | fi | |
3533 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3534 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3535 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3536 | |
3537 | ||
3538 | if test $ac_cv_c_compiler_gnu = yes; then | |
631ef239 AC |
3539 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3540 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
212380e3 AC |
3541 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3543 | else | |
3544 | ac_pattern="Autoconf.*'x'" | |
3545 | cat >conftest.$ac_ext <<_ACEOF | |
3546 | /* confdefs.h. */ | |
3547 | _ACEOF | |
3548 | cat confdefs.h >>conftest.$ac_ext | |
3549 | cat >>conftest.$ac_ext <<_ACEOF | |
3550 | /* end confdefs.h. */ | |
3551 | #include <sgtty.h> | |
3552 | Autoconf TIOCGETP | |
3553 | _ACEOF | |
3554 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3555 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3556 | ac_cv_prog_gcc_traditional=yes | |
3557 | else | |
3558 | ac_cv_prog_gcc_traditional=no | |
3559 | fi | |
3560 | rm -f conftest* | |
3561 | ||
3562 | ||
3563 | if test $ac_cv_prog_gcc_traditional = no; then | |
3564 | cat >conftest.$ac_ext <<_ACEOF | |
3565 | /* confdefs.h. */ | |
3566 | _ACEOF | |
3567 | cat confdefs.h >>conftest.$ac_ext | |
3568 | cat >>conftest.$ac_ext <<_ACEOF | |
3569 | /* end confdefs.h. */ | |
3570 | #include <termio.h> | |
3571 | Autoconf TCGETA | |
3572 | _ACEOF | |
3573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3574 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3575 | ac_cv_prog_gcc_traditional=yes | |
3576 | fi | |
3577 | rm -f conftest* | |
3578 | ||
3579 | fi | |
3580 | fi | |
631ef239 AC |
3581 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3582 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
212380e3 AC |
3583 | if test $ac_cv_prog_gcc_traditional = yes; then |
3584 | CC="$CC -traditional" | |
3585 | fi | |
3586 | fi | |
3587 | ||
631ef239 AC |
3588 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3589 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3590 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3591 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
3592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3593 | else | |
3594 | cat >conftest.make <<\_ACEOF | |
631ef239 | 3595 | SHELL = /bin/sh |
212380e3 | 3596 | all: |
631ef239 | 3597 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
212380e3 AC |
3598 | _ACEOF |
3599 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
631ef239 AC |
3600 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3601 | *@@@%%%=?*=@@@%%%*) | |
3602 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3603 | *) | |
3604 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3605 | esac | |
212380e3 AC |
3606 | rm -f conftest.make |
3607 | fi | |
631ef239 AC |
3608 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3609 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3610 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3611 | SET_MAKE= |
3612 | else | |
631ef239 AC |
3613 | { echo "$as_me:$LINENO: result: no" >&5 |
3614 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3615 | SET_MAKE="MAKE=${MAKE-make}" |
3616 | fi | |
3617 | ||
3618 | ac_aux_dir= | |
631ef239 AC |
3619 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3620 | if test -f "$ac_dir/install-sh"; then | |
212380e3 AC |
3621 | ac_aux_dir=$ac_dir |
3622 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3623 | break | |
631ef239 | 3624 | elif test -f "$ac_dir/install.sh"; then |
212380e3 AC |
3625 | ac_aux_dir=$ac_dir |
3626 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3627 | break | |
631ef239 | 3628 | elif test -f "$ac_dir/shtool"; then |
212380e3 AC |
3629 | ac_aux_dir=$ac_dir |
3630 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3631 | break | |
3632 | fi | |
3633 | done | |
3634 | if test -z "$ac_aux_dir"; then | |
631ef239 AC |
3635 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
3636 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
212380e3 AC |
3637 | { (exit 1); exit 1; }; } |
3638 | fi | |
631ef239 AC |
3639 | |
3640 | # These three variables are undocumented and unsupported, | |
3641 | # and are intended to be withdrawn in a future Autoconf release. | |
3642 | # They can cause serious problems if a builder's source tree is in a directory | |
3643 | # whose full name contains unusual characters. | |
3644 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3645 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3646 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
3647 | ||
212380e3 AC |
3648 | |
3649 | # Find a good install program. We prefer a C program (faster), | |
3650 | # so one script is as good as another. But avoid the broken or | |
3651 | # incompatible versions: | |
3652 | # SysV /etc/install, /usr/sbin/install | |
3653 | # SunOS /usr/etc/install | |
3654 | # IRIX /sbin/install | |
3655 | # AIX /bin/install | |
3656 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3657 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3658 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3659 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3660 | # OS/2's system install, which has a completely different semantic | |
3661 | # ./install, which can be erroneously created by make from ./install.sh. | |
631ef239 AC |
3662 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3663 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
212380e3 AC |
3664 | if test -z "$INSTALL"; then |
3665 | if test "${ac_cv_path_install+set}" = set; then | |
3666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3667 | else | |
3668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3669 | for as_dir in $PATH | |
3670 | do | |
3671 | IFS=$as_save_IFS | |
3672 | test -z "$as_dir" && as_dir=. | |
3673 | # Account for people who put trailing slashes in PATH elements. | |
3674 | case $as_dir/ in | |
3675 | ./ | .// | /cC/* | \ | |
3676 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3677 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3678 | /usr/ucb/* ) ;; | |
3679 | *) | |
3680 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3681 | # Don't use installbsd from OSF since it installs stuff as root | |
3682 | # by default. | |
3683 | for ac_prog in ginstall scoinst install; do | |
3684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3685 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
212380e3 AC |
3686 | if test $ac_prog = install && |
3687 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3688 | # AIX install. It has an incompatible calling convention. | |
3689 | : | |
3690 | elif test $ac_prog = install && | |
3691 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3692 | # program-specific install script used by HP pwplus--don't use. | |
3693 | : | |
3694 | else | |
3695 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3696 | break 3 | |
3697 | fi | |
3698 | fi | |
3699 | done | |
3700 | done | |
3701 | ;; | |
3702 | esac | |
3703 | done | |
631ef239 | 3704 | IFS=$as_save_IFS |
212380e3 AC |
3705 | |
3706 | ||
3707 | fi | |
3708 | if test "${ac_cv_path_install+set}" = set; then | |
3709 | INSTALL=$ac_cv_path_install | |
3710 | else | |
631ef239 AC |
3711 | # As a last resort, use the slow shell script. Don't cache a |
3712 | # value for INSTALL within a source directory, because that will | |
212380e3 | 3713 | # break other packages using the cache if that directory is |
631ef239 | 3714 | # removed, or if the value is a relative name. |
212380e3 AC |
3715 | INSTALL=$ac_install_sh |
3716 | fi | |
3717 | fi | |
631ef239 AC |
3718 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3719 | echo "${ECHO_T}$INSTALL" >&6; } | |
212380e3 AC |
3720 | |
3721 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3722 | # It thinks the first close brace ends the variable substitution. | |
3723 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3724 | ||
3725 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3726 | ||
3727 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3728 | ||
3729 | # Extract the first word of "rm", so it can be a program name with args. | |
3730 | set dummy rm; ac_word=$2 | |
631ef239 AC |
3731 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3733 | if test "${ac_cv_path_RM+set}" = set; then |
3734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3735 | else | |
3736 | case $RM in | |
3737 | [\\/]* | ?:[\\/]*) | |
3738 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3739 | ;; | |
3740 | *) | |
3741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3742 | for as_dir in $PATH | |
3743 | do | |
3744 | IFS=$as_save_IFS | |
3745 | test -z "$as_dir" && as_dir=. | |
3746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3748 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3750 | break 2 | |
3751 | fi | |
3752 | done | |
3753 | done | |
631ef239 | 3754 | IFS=$as_save_IFS |
212380e3 AC |
3755 | |
3756 | ;; | |
3757 | esac | |
3758 | fi | |
3759 | RM=$ac_cv_path_RM | |
212380e3 | 3760 | if test -n "$RM"; then |
631ef239 AC |
3761 | { echo "$as_me:$LINENO: result: $RM" >&5 |
3762 | echo "${ECHO_T}$RM" >&6; } | |
212380e3 | 3763 | else |
631ef239 AC |
3764 | { echo "$as_me:$LINENO: result: no" >&5 |
3765 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3766 | fi |
3767 | ||
631ef239 | 3768 | |
212380e3 AC |
3769 | # Extract the first word of "cp", so it can be a program name with args. |
3770 | set dummy cp; ac_word=$2 | |
631ef239 AC |
3771 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3773 | if test "${ac_cv_path_CP+set}" = set; then |
3774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3775 | else | |
3776 | case $CP in | |
3777 | [\\/]* | ?:[\\/]*) | |
3778 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3779 | ;; | |
3780 | *) | |
3781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3782 | for as_dir in $PATH | |
3783 | do | |
3784 | IFS=$as_save_IFS | |
3785 | test -z "$as_dir" && as_dir=. | |
3786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3788 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3790 | break 2 | |
3791 | fi | |
3792 | done | |
3793 | done | |
631ef239 | 3794 | IFS=$as_save_IFS |
212380e3 AC |
3795 | |
3796 | ;; | |
3797 | esac | |
3798 | fi | |
3799 | CP=$ac_cv_path_CP | |
212380e3 | 3800 | if test -n "$CP"; then |
631ef239 AC |
3801 | { echo "$as_me:$LINENO: result: $CP" >&5 |
3802 | echo "${ECHO_T}$CP" >&6; } | |
212380e3 | 3803 | else |
631ef239 AC |
3804 | { echo "$as_me:$LINENO: result: no" >&5 |
3805 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3806 | fi |
3807 | ||
631ef239 | 3808 | |
212380e3 AC |
3809 | # Extract the first word of "mv", so it can be a program name with args. |
3810 | set dummy mv; ac_word=$2 | |
631ef239 AC |
3811 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3812 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3813 | if test "${ac_cv_path_MV+set}" = set; then |
3814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3815 | else | |
3816 | case $MV in | |
3817 | [\\/]* | ?:[\\/]*) | |
3818 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3819 | ;; | |
3820 | *) | |
3821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3822 | for as_dir in $PATH | |
3823 | do | |
3824 | IFS=$as_save_IFS | |
3825 | test -z "$as_dir" && as_dir=. | |
3826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3828 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3829 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3830 | break 2 | |
3831 | fi | |
3832 | done | |
3833 | done | |
631ef239 | 3834 | IFS=$as_save_IFS |
212380e3 AC |
3835 | |
3836 | ;; | |
3837 | esac | |
3838 | fi | |
3839 | MV=$ac_cv_path_MV | |
212380e3 | 3840 | if test -n "$MV"; then |
631ef239 AC |
3841 | { echo "$as_me:$LINENO: result: $MV" >&5 |
3842 | echo "${ECHO_T}$MV" >&6; } | |
212380e3 | 3843 | else |
631ef239 AC |
3844 | { echo "$as_me:$LINENO: result: no" >&5 |
3845 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3846 | fi |
3847 | ||
631ef239 | 3848 | |
212380e3 AC |
3849 | # Extract the first word of "ln", so it can be a program name with args. |
3850 | set dummy ln; ac_word=$2 | |
631ef239 AC |
3851 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3853 | if test "${ac_cv_path_LN+set}" = set; then |
3854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3855 | else | |
3856 | case $LN in | |
3857 | [\\/]* | ?:[\\/]*) | |
3858 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3859 | ;; | |
3860 | *) | |
3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3862 | for as_dir in $PATH | |
3863 | do | |
3864 | IFS=$as_save_IFS | |
3865 | test -z "$as_dir" && as_dir=. | |
3866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3868 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3870 | break 2 | |
3871 | fi | |
3872 | done | |
3873 | done | |
631ef239 | 3874 | IFS=$as_save_IFS |
212380e3 AC |
3875 | |
3876 | ;; | |
3877 | esac | |
3878 | fi | |
3879 | LN=$ac_cv_path_LN | |
212380e3 | 3880 | if test -n "$LN"; then |
631ef239 AC |
3881 | { echo "$as_me:$LINENO: result: $LN" >&5 |
3882 | echo "${ECHO_T}$LN" >&6; } | |
212380e3 | 3883 | else |
631ef239 AC |
3884 | { echo "$as_me:$LINENO: result: no" >&5 |
3885 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3886 | fi |
3887 | ||
631ef239 | 3888 | |
212380e3 AC |
3889 | # Extract the first word of "sed", so it can be a program name with args. |
3890 | set dummy sed; ac_word=$2 | |
631ef239 AC |
3891 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3892 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3893 | if test "${ac_cv_path_SED+set}" = set; then |
3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3895 | else | |
3896 | case $SED in | |
3897 | [\\/]* | ?:[\\/]*) | |
3898 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3899 | ;; | |
3900 | *) | |
3901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3902 | for as_dir in $PATH | |
3903 | do | |
3904 | IFS=$as_save_IFS | |
3905 | test -z "$as_dir" && as_dir=. | |
3906 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3907 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3908 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3909 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3910 | break 2 | |
3911 | fi | |
3912 | done | |
3913 | done | |
631ef239 | 3914 | IFS=$as_save_IFS |
212380e3 AC |
3915 | |
3916 | ;; | |
3917 | esac | |
3918 | fi | |
3919 | SED=$ac_cv_path_SED | |
212380e3 | 3920 | if test -n "$SED"; then |
631ef239 AC |
3921 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3922 | echo "${ECHO_T}$SED" >&6; } | |
212380e3 | 3923 | else |
631ef239 AC |
3924 | { echo "$as_me:$LINENO: result: no" >&5 |
3925 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3926 | fi |
3927 | ||
631ef239 | 3928 | |
212380e3 AC |
3929 | # Extract the first word of "ar", so it can be a program name with args. |
3930 | set dummy ar; ac_word=$2 | |
631ef239 AC |
3931 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3933 | if test "${ac_cv_path_AR+set}" = set; then |
3934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3935 | else | |
3936 | case $AR in | |
3937 | [\\/]* | ?:[\\/]*) | |
3938 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3939 | ;; | |
3940 | *) | |
3941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3942 | for as_dir in $PATH | |
3943 | do | |
3944 | IFS=$as_save_IFS | |
3945 | test -z "$as_dir" && as_dir=. | |
3946 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3948 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3950 | break 2 | |
3951 | fi | |
3952 | done | |
3953 | done | |
631ef239 | 3954 | IFS=$as_save_IFS |
212380e3 AC |
3955 | |
3956 | ;; | |
3957 | esac | |
3958 | fi | |
3959 | AR=$ac_cv_path_AR | |
212380e3 | 3960 | if test -n "$AR"; then |
631ef239 AC |
3961 | { echo "$as_me:$LINENO: result: $AR" >&5 |
3962 | echo "${ECHO_T}$AR" >&6; } | |
212380e3 | 3963 | else |
631ef239 AC |
3964 | { echo "$as_me:$LINENO: result: no" >&5 |
3965 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3966 | fi |
3967 | ||
631ef239 | 3968 | |
212380e3 AC |
3969 | # Extract the first word of "ld", so it can be a program name with args. |
3970 | set dummy ld; ac_word=$2 | |
631ef239 AC |
3971 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3972 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3973 | if test "${ac_cv_path_LD+set}" = set; then |
3974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3975 | else | |
3976 | case $LD in | |
3977 | [\\/]* | ?:[\\/]*) | |
3978 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3979 | ;; | |
3980 | *) | |
3981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3982 | for as_dir in $PATH | |
3983 | do | |
3984 | IFS=$as_save_IFS | |
3985 | test -z "$as_dir" && as_dir=. | |
3986 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3988 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3990 | break 2 | |
3991 | fi | |
3992 | done | |
3993 | done | |
631ef239 | 3994 | IFS=$as_save_IFS |
212380e3 AC |
3995 | |
3996 | ;; | |
3997 | esac | |
3998 | fi | |
3999 | LD=$ac_cv_path_LD | |
212380e3 | 4000 | if test -n "$LD"; then |
631ef239 AC |
4001 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4002 | echo "${ECHO_T}$LD" >&6; } | |
212380e3 | 4003 | else |
631ef239 AC |
4004 | { echo "$as_me:$LINENO: result: no" >&5 |
4005 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4006 | fi |
4007 | ||
631ef239 | 4008 | |
212380e3 AC |
4009 | # Extract the first word of "ranlib", so it can be a program name with args. |
4010 | set dummy ranlib; ac_word=$2 | |
631ef239 AC |
4011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4013 | if test "${ac_cv_path_RANLIB+set}" = set; then |
4014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4015 | else | |
4016 | case $RANLIB in | |
4017 | [\\/]* | ?:[\\/]*) | |
4018 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4019 | ;; | |
4020 | *) | |
4021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4022 | for as_dir in $PATH | |
4023 | do | |
4024 | IFS=$as_save_IFS | |
4025 | test -z "$as_dir" && as_dir=. | |
4026 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4028 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
4029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4030 | break 2 | |
4031 | fi | |
4032 | done | |
4033 | done | |
631ef239 | 4034 | IFS=$as_save_IFS |
212380e3 AC |
4035 | |
4036 | ;; | |
4037 | esac | |
4038 | fi | |
4039 | RANLIB=$ac_cv_path_RANLIB | |
212380e3 | 4040 | if test -n "$RANLIB"; then |
631ef239 AC |
4041 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4042 | echo "${ECHO_T}$RANLIB" >&6; } | |
212380e3 | 4043 | else |
631ef239 AC |
4044 | { echo "$as_me:$LINENO: result: no" >&5 |
4045 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4046 | fi |
4047 | ||
631ef239 | 4048 | |
212380e3 AC |
4049 | # Extract the first word of "touch", so it can be a program name with args. |
4050 | set dummy touch; ac_word=$2 | |
631ef239 AC |
4051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4053 | if test "${ac_cv_path_TOUCH+set}" = set; then |
4054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4055 | else | |
4056 | case $TOUCH in | |
4057 | [\\/]* | ?:[\\/]*) | |
4058 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4059 | ;; | |
4060 | *) | |
4061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4062 | for as_dir in $PATH | |
4063 | do | |
4064 | IFS=$as_save_IFS | |
4065 | test -z "$as_dir" && as_dir=. | |
4066 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4068 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
4069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4070 | break 2 | |
4071 | fi | |
4072 | done | |
4073 | done | |
631ef239 | 4074 | IFS=$as_save_IFS |
212380e3 AC |
4075 | |
4076 | ;; | |
4077 | esac | |
4078 | fi | |
4079 | TOUCH=$ac_cv_path_TOUCH | |
212380e3 | 4080 | if test -n "$TOUCH"; then |
631ef239 AC |
4081 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 |
4082 | echo "${ECHO_T}$TOUCH" >&6; } | |
212380e3 | 4083 | else |
631ef239 AC |
4084 | { echo "$as_me:$LINENO: result: no" >&5 |
4085 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4086 | fi |
4087 | ||
4088 | ||
631ef239 | 4089 | |
212380e3 AC |
4090 | for ac_prog in 'bison -y' byacc |
4091 | do | |
4092 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4093 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4094 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4095 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4096 | if test "${ac_cv_prog_YACC+set}" = set; then |
4097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4098 | else | |
4099 | if test -n "$YACC"; then | |
4100 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4101 | else | |
4102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4103 | for as_dir in $PATH | |
4104 | do | |
4105 | IFS=$as_save_IFS | |
4106 | test -z "$as_dir" && as_dir=. | |
4107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4109 | ac_cv_prog_YACC="$ac_prog" |
4110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4111 | break 2 | |
4112 | fi | |
4113 | done | |
4114 | done | |
631ef239 | 4115 | IFS=$as_save_IFS |
212380e3 AC |
4116 | |
4117 | fi | |
4118 | fi | |
4119 | YACC=$ac_cv_prog_YACC | |
4120 | if test -n "$YACC"; then | |
631ef239 AC |
4121 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
4122 | echo "${ECHO_T}$YACC" >&6; } | |
212380e3 | 4123 | else |
631ef239 AC |
4124 | { echo "$as_me:$LINENO: result: no" >&5 |
4125 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4126 | fi |
4127 | ||
631ef239 | 4128 | |
212380e3 AC |
4129 | test -n "$YACC" && break |
4130 | done | |
4131 | test -n "$YACC" || YACC="yacc" | |
4132 | ||
4133 | ||
4134 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4135 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4136 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4137 | { (exit 1); exit 1; }; } | |
4138 | fi | |
4139 | ||
4140 | for ac_prog in flex lex | |
4141 | do | |
4142 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4143 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4144 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4146 | if test "${ac_cv_prog_LEX+set}" = set; then |
4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4148 | else | |
4149 | if test -n "$LEX"; then | |
4150 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4151 | else | |
4152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4153 | for as_dir in $PATH | |
4154 | do | |
4155 | IFS=$as_save_IFS | |
4156 | test -z "$as_dir" && as_dir=. | |
4157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4159 | ac_cv_prog_LEX="$ac_prog" |
4160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4161 | break 2 | |
4162 | fi | |
4163 | done | |
4164 | done | |
631ef239 | 4165 | IFS=$as_save_IFS |
212380e3 AC |
4166 | |
4167 | fi | |
4168 | fi | |
4169 | LEX=$ac_cv_prog_LEX | |
4170 | if test -n "$LEX"; then | |
631ef239 AC |
4171 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
4172 | echo "${ECHO_T}$LEX" >&6; } | |
212380e3 | 4173 | else |
631ef239 AC |
4174 | { echo "$as_me:$LINENO: result: no" >&5 |
4175 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4176 | fi |
4177 | ||
631ef239 | 4178 | |
212380e3 AC |
4179 | test -n "$LEX" && break |
4180 | done | |
4181 | test -n "$LEX" || LEX=":" | |
4182 | ||
631ef239 AC |
4183 | if test "x$LEX" != "x:"; then |
4184 | cat >conftest.l <<_ACEOF | |
4185 | %% | |
4186 | a { ECHO; } | |
4187 | b { REJECT; } | |
4188 | c { yymore (); } | |
4189 | d { yyless (1); } | |
4190 | e { yyless (input () != 0); } | |
4191 | f { unput (yytext[0]); } | |
4192 | . { BEGIN INITIAL; } | |
4193 | %% | |
4194 | #ifdef YYTEXT_POINTER | |
4195 | extern char *yytext; | |
212380e3 | 4196 | #endif |
212380e3 | 4197 | int |
631ef239 | 4198 | main (void) |
212380e3 | 4199 | { |
631ef239 | 4200 | return ! yylex () + ! yywrap (); |
212380e3 AC |
4201 | } |
4202 | _ACEOF | |
631ef239 AC |
4203 | { (ac_try="$LEX conftest.l" |
4204 | case "(($ac_try" in | |
4205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4206 | *) ac_try_echo=$ac_try;; | |
4207 | esac | |
4208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4209 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 AC |
4210 | ac_status=$? |
4211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4212 | (exit $ac_status); } |
4213 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4214 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4215 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
212380e3 | 4217 | else |
212380e3 | 4218 | |
631ef239 AC |
4219 | if test -f lex.yy.c; then |
4220 | ac_cv_prog_lex_root=lex.yy | |
4221 | elif test -f lexyy.c; then | |
4222 | ac_cv_prog_lex_root=lexyy | |
212380e3 | 4223 | else |
631ef239 AC |
4224 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4225 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4226 | { (exit 1); exit 1; }; } | |
4227 | fi | |
4228 | fi | |
4229 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4230 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4231 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4232 | ||
4233 | if test -z "${LEXLIB+set}"; then | |
4234 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4235 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4236 | if test "${ac_cv_lib_lex+set}" = set; then | |
212380e3 AC |
4237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4238 | else | |
212380e3 | 4239 | |
631ef239 AC |
4240 | ac_save_LIBS=$LIBS |
4241 | ac_cv_lib_lex='none needed' | |
4242 | for ac_lib in '' -lfl -ll; do | |
4243 | LIBS="$ac_lib $ac_save_LIBS" | |
4244 | cat >conftest.$ac_ext <<_ACEOF | |
4245 | `cat $LEX_OUTPUT_ROOT.c` | |
212380e3 AC |
4246 | _ACEOF |
4247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4248 | if { (ac_try="$ac_link" |
4249 | case "(($ac_try" in | |
4250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4251 | *) ac_try_echo=$ac_try;; | |
4252 | esac | |
4253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4254 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4255 | ac_status=$? |
4256 | grep -v '^ *+' conftest.er1 >conftest.err | |
4257 | rm -f conftest.er1 | |
4258 | cat conftest.err >&5 | |
4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4260 | (exit $ac_status); } && { |
4261 | test -z "$ac_c_werror_flag" || | |
4262 | test ! -s conftest.err | |
4263 | } && test -s conftest$ac_exeext && | |
4264 | $as_test_x conftest$ac_exeext; then | |
4265 | ac_cv_lib_lex=$ac_lib | |
212380e3 AC |
4266 | else |
4267 | echo "$as_me: failed program was:" >&5 | |
4268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4269 | ||
212380e3 AC |
4270 | |
4271 | fi | |
4272 | ||
631ef239 AC |
4273 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4274 | conftest$ac_exeext conftest.$ac_ext | |
4275 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4276 | done | |
4277 | LIBS=$ac_save_LIBS | |
212380e3 | 4278 | |
212380e3 | 4279 | fi |
631ef239 AC |
4280 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4281 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4282 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
212380e3 | 4283 | fi |
212380e3 | 4284 | |
631ef239 AC |
4285 | |
4286 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4287 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
212380e3 AC |
4288 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4290 | else | |
4291 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
631ef239 | 4292 | # default is implementation-dependent. Figure out which it is, since |
212380e3 AC |
4293 | # not all implementations provide the %pointer and %array declarations. |
4294 | ac_cv_prog_lex_yytext_pointer=no | |
212380e3 | 4295 | ac_save_LIBS=$LIBS |
631ef239 | 4296 | LIBS="$LEXLIB $ac_save_LIBS" |
212380e3 | 4297 | cat >conftest.$ac_ext <<_ACEOF |
631ef239 | 4298 | #define YYTEXT_POINTER 1 |
212380e3 AC |
4299 | `cat $LEX_OUTPUT_ROOT.c` |
4300 | _ACEOF | |
4301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4302 | if { (ac_try="$ac_link" |
4303 | case "(($ac_try" in | |
4304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4305 | *) ac_try_echo=$ac_try;; | |
4306 | esac | |
4307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4308 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4309 | ac_status=$? |
4310 | grep -v '^ *+' conftest.er1 >conftest.err | |
4311 | rm -f conftest.er1 | |
4312 | cat conftest.err >&5 | |
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4314 | (exit $ac_status); } && { |
4315 | test -z "$ac_c_werror_flag" || | |
4316 | test ! -s conftest.err | |
4317 | } && test -s conftest$ac_exeext && | |
4318 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
4319 | ac_cv_prog_lex_yytext_pointer=yes |
4320 | else | |
4321 | echo "$as_me: failed program was:" >&5 | |
4322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4323 | ||
631ef239 | 4324 | |
212380e3 | 4325 | fi |
631ef239 AC |
4326 | |
4327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
4328 | conftest$ac_exeext conftest.$ac_ext |
4329 | LIBS=$ac_save_LIBS | |
212380e3 AC |
4330 | |
4331 | fi | |
631ef239 AC |
4332 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4333 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
212380e3 AC |
4334 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4335 | ||
4336 | cat >>confdefs.h <<\_ACEOF | |
4337 | #define YYTEXT_POINTER 1 | |
4338 | _ACEOF | |
4339 | ||
4340 | fi | |
631ef239 | 4341 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
212380e3 AC |
4342 | |
4343 | fi | |
4344 | ||
4345 | if test "$LEX" = ":"; then | |
4346 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4347 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4348 | { (exit 1); exit 1; }; } | |
4349 | fi | |
4350 | ||
4351 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4352 | test "$localstatedir" = '${prefix}/var'; then | |
4353 | libexecdir='${bindir}' | |
4354 | localstatedir='${prefix}' | |
4355 | fi | |
4356 | ||
631ef239 AC |
4357 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4358 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
212380e3 AC |
4359 | if test "${ac_cv_header_stdc+set}" = set; then |
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4361 | else | |
4362 | cat >conftest.$ac_ext <<_ACEOF | |
4363 | /* confdefs.h. */ | |
4364 | _ACEOF | |
4365 | cat confdefs.h >>conftest.$ac_ext | |
4366 | cat >>conftest.$ac_ext <<_ACEOF | |
4367 | /* end confdefs.h. */ | |
4368 | #include <stdlib.h> | |
4369 | #include <stdarg.h> | |
4370 | #include <string.h> | |
4371 | #include <float.h> | |
4372 | ||
4373 | int | |
4374 | main () | |
4375 | { | |
4376 | ||
4377 | ; | |
4378 | return 0; | |
4379 | } | |
4380 | _ACEOF | |
4381 | rm -f conftest.$ac_objext | |
631ef239 AC |
4382 | if { (ac_try="$ac_compile" |
4383 | case "(($ac_try" in | |
4384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4385 | *) ac_try_echo=$ac_try;; | |
4386 | esac | |
4387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4388 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4389 | ac_status=$? |
4390 | grep -v '^ *+' conftest.er1 >conftest.err | |
4391 | rm -f conftest.er1 | |
4392 | cat conftest.err >&5 | |
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4394 | (exit $ac_status); } && { |
4395 | test -z "$ac_c_werror_flag" || | |
4396 | test ! -s conftest.err | |
4397 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4398 | ac_cv_header_stdc=yes |
4399 | else | |
4400 | echo "$as_me: failed program was:" >&5 | |
4401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4402 | ||
631ef239 | 4403 | ac_cv_header_stdc=no |
212380e3 | 4404 | fi |
631ef239 AC |
4405 | |
4406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4407 | |
4408 | if test $ac_cv_header_stdc = yes; then | |
4409 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4410 | cat >conftest.$ac_ext <<_ACEOF | |
4411 | /* confdefs.h. */ | |
4412 | _ACEOF | |
4413 | cat confdefs.h >>conftest.$ac_ext | |
4414 | cat >>conftest.$ac_ext <<_ACEOF | |
4415 | /* end confdefs.h. */ | |
4416 | #include <string.h> | |
4417 | ||
4418 | _ACEOF | |
4419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4420 | $EGREP "memchr" >/dev/null 2>&1; then | |
4421 | : | |
4422 | else | |
4423 | ac_cv_header_stdc=no | |
4424 | fi | |
4425 | rm -f conftest* | |
4426 | ||
4427 | fi | |
4428 | ||
4429 | if test $ac_cv_header_stdc = yes; then | |
4430 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4431 | cat >conftest.$ac_ext <<_ACEOF | |
4432 | /* confdefs.h. */ | |
4433 | _ACEOF | |
4434 | cat confdefs.h >>conftest.$ac_ext | |
4435 | cat >>conftest.$ac_ext <<_ACEOF | |
4436 | /* end confdefs.h. */ | |
4437 | #include <stdlib.h> | |
4438 | ||
4439 | _ACEOF | |
4440 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4441 | $EGREP "free" >/dev/null 2>&1; then | |
4442 | : | |
4443 | else | |
4444 | ac_cv_header_stdc=no | |
4445 | fi | |
4446 | rm -f conftest* | |
4447 | ||
4448 | fi | |
4449 | ||
4450 | if test $ac_cv_header_stdc = yes; then | |
4451 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4452 | if test "$cross_compiling" = yes; then | |
4453 | : | |
4454 | else | |
4455 | cat >conftest.$ac_ext <<_ACEOF | |
4456 | /* confdefs.h. */ | |
4457 | _ACEOF | |
4458 | cat confdefs.h >>conftest.$ac_ext | |
4459 | cat >>conftest.$ac_ext <<_ACEOF | |
4460 | /* end confdefs.h. */ | |
4461 | #include <ctype.h> | |
631ef239 | 4462 | #include <stdlib.h> |
212380e3 AC |
4463 | #if ((' ' & 0x0FF) == 0x020) |
4464 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4465 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4466 | #else | |
4467 | # define ISLOWER(c) \ | |
4468 | (('a' <= (c) && (c) <= 'i') \ | |
4469 | || ('j' <= (c) && (c) <= 'r') \ | |
4470 | || ('s' <= (c) && (c) <= 'z')) | |
4471 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4472 | #endif | |
4473 | ||
4474 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4475 | int | |
4476 | main () | |
4477 | { | |
4478 | int i; | |
4479 | for (i = 0; i < 256; i++) | |
4480 | if (XOR (islower (i), ISLOWER (i)) | |
4481 | || toupper (i) != TOUPPER (i)) | |
631ef239 AC |
4482 | return 2; |
4483 | return 0; | |
212380e3 AC |
4484 | } |
4485 | _ACEOF | |
4486 | rm -f conftest$ac_exeext | |
631ef239 AC |
4487 | if { (ac_try="$ac_link" |
4488 | case "(($ac_try" in | |
4489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4490 | *) ac_try_echo=$ac_try;; | |
4491 | esac | |
4492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4493 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
4494 | ac_status=$? |
4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
4497 | { (case "(($ac_try" in |
4498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4499 | *) ac_try_echo=$ac_try;; | |
4500 | esac | |
4501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4502 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
4503 | ac_status=$? |
4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4505 | (exit $ac_status); }; }; then | |
4506 | : | |
4507 | else | |
4508 | echo "$as_me: program exited with status $ac_status" >&5 | |
4509 | echo "$as_me: failed program was:" >&5 | |
4510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4511 | ||
4512 | ( exit $ac_status ) | |
4513 | ac_cv_header_stdc=no | |
4514 | fi | |
631ef239 | 4515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4516 | fi |
631ef239 AC |
4517 | |
4518 | ||
212380e3 AC |
4519 | fi |
4520 | fi | |
631ef239 AC |
4521 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4522 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
212380e3 AC |
4523 | if test $ac_cv_header_stdc = yes; then |
4524 | ||
4525 | cat >>confdefs.h <<\_ACEOF | |
4526 | #define STDC_HEADERS 1 | |
4527 | _ACEOF | |
4528 | ||
4529 | fi | |
4530 | ||
4531 | ||
4532 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | ||
4541 | ||
4542 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4543 | inttypes.h stdint.h unistd.h | |
4544 | do | |
4545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4546 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4547 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4548 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4550 | else | |
4551 | cat >conftest.$ac_ext <<_ACEOF | |
4552 | /* confdefs.h. */ | |
4553 | _ACEOF | |
4554 | cat confdefs.h >>conftest.$ac_ext | |
4555 | cat >>conftest.$ac_ext <<_ACEOF | |
4556 | /* end confdefs.h. */ | |
4557 | $ac_includes_default | |
4558 | ||
4559 | #include <$ac_header> | |
4560 | _ACEOF | |
4561 | rm -f conftest.$ac_objext | |
631ef239 AC |
4562 | if { (ac_try="$ac_compile" |
4563 | case "(($ac_try" in | |
4564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4565 | *) ac_try_echo=$ac_try;; | |
4566 | esac | |
4567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4568 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4569 | ac_status=$? |
4570 | grep -v '^ *+' conftest.er1 >conftest.err | |
4571 | rm -f conftest.er1 | |
4572 | cat conftest.err >&5 | |
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4574 | (exit $ac_status); } && { |
4575 | test -z "$ac_c_werror_flag" || | |
4576 | test ! -s conftest.err | |
4577 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4578 | eval "$as_ac_Header=yes" |
4579 | else | |
4580 | echo "$as_me: failed program was:" >&5 | |
4581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4582 | ||
631ef239 | 4583 | eval "$as_ac_Header=no" |
212380e3 | 4584 | fi |
631ef239 AC |
4585 | |
4586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4587 | fi |
631ef239 AC |
4588 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4589 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4590 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4591 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4592 | cat >>confdefs.h <<_ACEOF | |
4593 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4594 | _ACEOF | |
4595 | ||
4596 | fi | |
4597 | ||
4598 | done | |
4599 | ||
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | ||
4611 | ||
4612 | 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 | |
4613 | do | |
4614 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4615 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4616 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4618 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4620 | fi | |
631ef239 AC |
4621 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4622 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4623 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4624 | else |
4625 | # Is the header compilable? | |
631ef239 AC |
4626 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
4628 | cat >conftest.$ac_ext <<_ACEOF |
4629 | /* confdefs.h. */ | |
4630 | _ACEOF | |
4631 | cat confdefs.h >>conftest.$ac_ext | |
4632 | cat >>conftest.$ac_ext <<_ACEOF | |
4633 | /* end confdefs.h. */ | |
4634 | $ac_includes_default | |
4635 | #include <$ac_header> | |
4636 | _ACEOF | |
4637 | rm -f conftest.$ac_objext | |
631ef239 AC |
4638 | if { (ac_try="$ac_compile" |
4639 | case "(($ac_try" in | |
4640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4641 | *) ac_try_echo=$ac_try;; | |
4642 | esac | |
4643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4644 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4645 | ac_status=$? |
4646 | grep -v '^ *+' conftest.er1 >conftest.err | |
4647 | rm -f conftest.er1 | |
4648 | cat conftest.err >&5 | |
4649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4650 | (exit $ac_status); } && { |
4651 | test -z "$ac_c_werror_flag" || | |
4652 | test ! -s conftest.err | |
4653 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4654 | ac_header_compiler=yes |
4655 | else | |
4656 | echo "$as_me: failed program was:" >&5 | |
4657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4658 | ||
631ef239 | 4659 | ac_header_compiler=no |
212380e3 | 4660 | fi |
631ef239 AC |
4661 | |
4662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4663 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4664 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
4665 | |
4666 | # Is the header present? | |
631ef239 AC |
4667 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4668 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
4669 | cat >conftest.$ac_ext <<_ACEOF |
4670 | /* confdefs.h. */ | |
4671 | _ACEOF | |
4672 | cat confdefs.h >>conftest.$ac_ext | |
4673 | cat >>conftest.$ac_ext <<_ACEOF | |
4674 | /* end confdefs.h. */ | |
4675 | #include <$ac_header> | |
4676 | _ACEOF | |
631ef239 AC |
4677 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4678 | case "(($ac_try" in | |
4679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4680 | *) ac_try_echo=$ac_try;; | |
4681 | esac | |
4682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4683 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
4684 | ac_status=$? |
4685 | grep -v '^ *+' conftest.er1 >conftest.err | |
4686 | rm -f conftest.er1 | |
4687 | cat conftest.err >&5 | |
4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4689 | (exit $ac_status); } >/dev/null && { |
4690 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4691 | test ! -s conftest.err | |
4692 | }; then | |
212380e3 AC |
4693 | ac_header_preproc=yes |
4694 | else | |
4695 | echo "$as_me: failed program was:" >&5 | |
4696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4697 | ||
4698 | ac_header_preproc=no | |
4699 | fi | |
631ef239 | 4700 | |
212380e3 | 4701 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
4702 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4703 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
4704 | |
4705 | # So? What about this header? | |
4706 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4707 | yes:no: ) | |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4709 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4710 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4711 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4712 | ac_header_preproc=yes | |
4713 | ;; | |
4714 | no:yes:* ) | |
4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4716 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4718 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4720 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4722 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4723 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4724 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4725 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4726 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 4727 | |
212380e3 AC |
4728 | ;; |
4729 | esac | |
631ef239 AC |
4730 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4732 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4734 | else | |
4735 | eval "$as_ac_Header=\$ac_header_preproc" | |
4736 | fi | |
631ef239 AC |
4737 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4738 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4739 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4740 | |
4741 | fi | |
4742 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4743 | cat >>confdefs.h <<_ACEOF | |
4744 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4745 | _ACEOF | |
4746 | ||
4747 | fi | |
4748 | ||
4749 | done | |
4750 | ||
4751 | ||
4752 | ||
631ef239 AC |
4753 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4754 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
212380e3 AC |
4755 | if test "${ac_cv_c_const+set}" = set; then |
4756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4757 | else | |
4758 | cat >conftest.$ac_ext <<_ACEOF | |
4759 | /* confdefs.h. */ | |
4760 | _ACEOF | |
4761 | cat confdefs.h >>conftest.$ac_ext | |
4762 | cat >>conftest.$ac_ext <<_ACEOF | |
4763 | /* end confdefs.h. */ | |
4764 | ||
4765 | int | |
4766 | main () | |
4767 | { | |
4768 | /* FIXME: Include the comments suggested by Paul. */ | |
4769 | #ifndef __cplusplus | |
4770 | /* Ultrix mips cc rejects this. */ | |
4771 | typedef int charset[2]; | |
631ef239 | 4772 | const charset cs; |
212380e3 | 4773 | /* SunOS 4.1.1 cc rejects this. */ |
631ef239 AC |
4774 | char const *const *pcpcc; |
4775 | char **ppc; | |
212380e3 AC |
4776 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4777 | struct point {int x, y;}; | |
4778 | static struct point const zero = {0,0}; | |
4779 | /* AIX XL C 1.02.0.0 rejects this. | |
4780 | It does not let you subtract one const X* pointer from another in | |
4781 | an arm of an if-expression whose if-part is not a constant | |
4782 | expression */ | |
4783 | const char *g = "string"; | |
631ef239 | 4784 | pcpcc = &g + (g ? g-g : 0); |
212380e3 | 4785 | /* HPUX 7.0 cc rejects these. */ |
631ef239 AC |
4786 | ++pcpcc; |
4787 | ppc = (char**) pcpcc; | |
4788 | pcpcc = (char const *const *) ppc; | |
212380e3 AC |
4789 | { /* SCO 3.2v4 cc rejects this. */ |
4790 | char *t; | |
4791 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4792 | ||
4793 | *t++ = 0; | |
631ef239 | 4794 | if (s) return 0; |
212380e3 AC |
4795 | } |
4796 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4797 | int x[] = {25, 17}; | |
4798 | const int *foo = &x[0]; | |
4799 | ++foo; | |
4800 | } | |
4801 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4802 | typedef const int *iptr; | |
4803 | iptr p = 0; | |
4804 | ++p; | |
4805 | } | |
4806 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4807 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4808 | struct s { int j; const int *ap[3]; }; | |
4809 | struct s *b; b->j = 5; | |
4810 | } | |
4811 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4812 | const int foo = 10; | |
631ef239 | 4813 | if (!foo) return 0; |
212380e3 | 4814 | } |
631ef239 | 4815 | return !cs[0] && !zero.x; |
212380e3 AC |
4816 | #endif |
4817 | ||
4818 | ; | |
4819 | return 0; | |
4820 | } | |
4821 | _ACEOF | |
4822 | rm -f conftest.$ac_objext | |
631ef239 AC |
4823 | if { (ac_try="$ac_compile" |
4824 | case "(($ac_try" in | |
4825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4826 | *) ac_try_echo=$ac_try;; | |
4827 | esac | |
4828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4829 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4830 | ac_status=$? |
4831 | grep -v '^ *+' conftest.er1 >conftest.err | |
4832 | rm -f conftest.er1 | |
4833 | cat conftest.err >&5 | |
4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4835 | (exit $ac_status); } && { |
4836 | test -z "$ac_c_werror_flag" || | |
4837 | test ! -s conftest.err | |
4838 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4839 | ac_cv_c_const=yes |
4840 | else | |
4841 | echo "$as_me: failed program was:" >&5 | |
4842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4843 | ||
631ef239 | 4844 | ac_cv_c_const=no |
212380e3 | 4845 | fi |
631ef239 AC |
4846 | |
4847 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4848 | fi |
631ef239 AC |
4849 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4850 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
212380e3 AC |
4851 | if test $ac_cv_c_const = no; then |
4852 | ||
4853 | cat >>confdefs.h <<\_ACEOF | |
4854 | #define const | |
4855 | _ACEOF | |
4856 | ||
4857 | fi | |
4858 | ||
4859 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
631ef239 AC |
4860 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4861 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
4862 | if test "${ac_cv_c_bigendian+set}" = set; then |
4863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4864 | else | |
4865 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4866 | cat >conftest.$ac_ext <<_ACEOF | |
4867 | /* confdefs.h. */ | |
4868 | _ACEOF | |
4869 | cat confdefs.h >>conftest.$ac_ext | |
4870 | cat >>conftest.$ac_ext <<_ACEOF | |
4871 | /* end confdefs.h. */ | |
4872 | #include <sys/types.h> | |
4873 | #include <sys/param.h> | |
4874 | ||
4875 | int | |
4876 | main () | |
4877 | { | |
631ef239 AC |
4878 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4879 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
4880 | bogus endian macros |
4881 | #endif | |
4882 | ||
4883 | ; | |
4884 | return 0; | |
4885 | } | |
4886 | _ACEOF | |
4887 | rm -f conftest.$ac_objext | |
631ef239 AC |
4888 | if { (ac_try="$ac_compile" |
4889 | case "(($ac_try" in | |
4890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4891 | *) ac_try_echo=$ac_try;; | |
4892 | esac | |
4893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4894 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4895 | ac_status=$? |
4896 | grep -v '^ *+' conftest.er1 >conftest.err | |
4897 | rm -f conftest.er1 | |
4898 | cat conftest.err >&5 | |
4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4900 | (exit $ac_status); } && { |
4901 | test -z "$ac_c_werror_flag" || | |
4902 | test ! -s conftest.err | |
4903 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4904 | # It does; now see whether it defined to BIG_ENDIAN or not. |
4905 | cat >conftest.$ac_ext <<_ACEOF | |
4906 | /* confdefs.h. */ | |
4907 | _ACEOF | |
4908 | cat confdefs.h >>conftest.$ac_ext | |
4909 | cat >>conftest.$ac_ext <<_ACEOF | |
4910 | /* end confdefs.h. */ | |
4911 | #include <sys/types.h> | |
4912 | #include <sys/param.h> | |
4913 | ||
4914 | int | |
4915 | main () | |
4916 | { | |
4917 | #if BYTE_ORDER != BIG_ENDIAN | |
4918 | not big endian | |
4919 | #endif | |
4920 | ||
4921 | ; | |
4922 | return 0; | |
4923 | } | |
4924 | _ACEOF | |
4925 | rm -f conftest.$ac_objext | |
631ef239 AC |
4926 | if { (ac_try="$ac_compile" |
4927 | case "(($ac_try" in | |
4928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4929 | *) ac_try_echo=$ac_try;; | |
4930 | esac | |
4931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4932 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4933 | ac_status=$? |
4934 | grep -v '^ *+' conftest.er1 >conftest.err | |
4935 | rm -f conftest.er1 | |
4936 | cat conftest.err >&5 | |
4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4938 | (exit $ac_status); } && { |
4939 | test -z "$ac_c_werror_flag" || | |
4940 | test ! -s conftest.err | |
4941 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4942 | ac_cv_c_bigendian=yes |
4943 | else | |
4944 | echo "$as_me: failed program was:" >&5 | |
4945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4946 | ||
631ef239 | 4947 | ac_cv_c_bigendian=no |
212380e3 | 4948 | fi |
631ef239 AC |
4949 | |
4950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4951 | else |
4952 | echo "$as_me: failed program was:" >&5 | |
4953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4954 | ||
631ef239 | 4955 | # It does not; compile a test program. |
212380e3 AC |
4956 | if test "$cross_compiling" = yes; then |
4957 | # try to guess the endianness by grepping values into an object file | |
4958 | ac_cv_c_bigendian=unknown | |
4959 | cat >conftest.$ac_ext <<_ACEOF | |
4960 | /* confdefs.h. */ | |
4961 | _ACEOF | |
4962 | cat confdefs.h >>conftest.$ac_ext | |
4963 | cat >>conftest.$ac_ext <<_ACEOF | |
4964 | /* end confdefs.h. */ | |
631ef239 AC |
4965 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4966 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 4967 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
4968 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
4969 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
4970 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
4971 | int | |
4972 | main () | |
4973 | { | |
4974 | _ascii (); _ebcdic (); | |
4975 | ; | |
4976 | return 0; | |
4977 | } | |
4978 | _ACEOF | |
4979 | rm -f conftest.$ac_objext | |
631ef239 AC |
4980 | if { (ac_try="$ac_compile" |
4981 | case "(($ac_try" in | |
4982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4983 | *) ac_try_echo=$ac_try;; | |
4984 | esac | |
4985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4986 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4987 | ac_status=$? |
4988 | grep -v '^ *+' conftest.er1 >conftest.err | |
4989 | rm -f conftest.er1 | |
4990 | cat conftest.err >&5 | |
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4992 | (exit $ac_status); } && { |
4993 | test -z "$ac_c_werror_flag" || | |
4994 | test ! -s conftest.err | |
4995 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4996 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
4997 | ac_cv_c_bigendian=yes | |
4998 | fi | |
4999 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5000 | if test "$ac_cv_c_bigendian" = unknown; then | |
5001 | ac_cv_c_bigendian=no | |
5002 | else | |
5003 | # finding both strings is unlikely to happen, but who knows? | |
5004 | ac_cv_c_bigendian=unknown | |
5005 | fi | |
5006 | fi | |
5007 | else | |
5008 | echo "$as_me: failed program was:" >&5 | |
5009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5010 | ||
631ef239 | 5011 | |
212380e3 | 5012 | fi |
631ef239 AC |
5013 | |
5014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5015 | else |
5016 | cat >conftest.$ac_ext <<_ACEOF | |
5017 | /* confdefs.h. */ | |
5018 | _ACEOF | |
5019 | cat confdefs.h >>conftest.$ac_ext | |
5020 | cat >>conftest.$ac_ext <<_ACEOF | |
5021 | /* end confdefs.h. */ | |
631ef239 | 5022 | $ac_includes_default |
212380e3 AC |
5023 | int |
5024 | main () | |
5025 | { | |
631ef239 | 5026 | |
212380e3 AC |
5027 | /* Are we little or big endian? From Harbison&Steele. */ |
5028 | union | |
5029 | { | |
631ef239 AC |
5030 | long int l; |
5031 | char c[sizeof (long int)]; | |
212380e3 AC |
5032 | } u; |
5033 | u.l = 1; | |
631ef239 AC |
5034 | return u.c[sizeof (long int) - 1] == 1; |
5035 | ||
5036 | ; | |
5037 | return 0; | |
212380e3 AC |
5038 | } |
5039 | _ACEOF | |
5040 | rm -f conftest$ac_exeext | |
631ef239 AC |
5041 | if { (ac_try="$ac_link" |
5042 | case "(($ac_try" in | |
5043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5044 | *) ac_try_echo=$ac_try;; | |
5045 | esac | |
5046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5047 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5048 | ac_status=$? |
5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5050 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5051 | { (case "(($ac_try" in |
5052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5053 | *) ac_try_echo=$ac_try;; | |
5054 | esac | |
5055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5056 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5057 | ac_status=$? |
5058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5059 | (exit $ac_status); }; }; then | |
5060 | ac_cv_c_bigendian=no | |
5061 | else | |
5062 | echo "$as_me: program exited with status $ac_status" >&5 | |
5063 | echo "$as_me: failed program was:" >&5 | |
5064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5065 | ||
5066 | ( exit $ac_status ) | |
5067 | ac_cv_c_bigendian=yes | |
5068 | fi | |
631ef239 | 5069 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5070 | fi |
631ef239 AC |
5071 | |
5072 | ||
212380e3 | 5073 | fi |
631ef239 AC |
5074 | |
5075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5076 | fi |
631ef239 AC |
5077 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5078 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
5079 | case $ac_cv_c_bigendian in |
5080 | yes) | |
5081 | ||
5082 | cat >>confdefs.h <<\_ACEOF | |
5083 | #define WORDS_BIGENDIAN 1 | |
5084 | _ACEOF | |
5085 | ;; | |
5086 | no) | |
5087 | ;; | |
5088 | *) | |
5089 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5090 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5091 | echo "$as_me: error: unknown endianness | |
5092 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5093 | { (exit 1); exit 1; }; } ;; | |
5094 | esac | |
5095 | ||
5096 | fi | |
631ef239 AC |
5097 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5098 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
212380e3 AC |
5099 | if test "${ac_cv_type_pid_t+set}" = set; then |
5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5101 | else | |
5102 | cat >conftest.$ac_ext <<_ACEOF | |
5103 | /* confdefs.h. */ | |
5104 | _ACEOF | |
5105 | cat confdefs.h >>conftest.$ac_ext | |
5106 | cat >>conftest.$ac_ext <<_ACEOF | |
5107 | /* end confdefs.h. */ | |
5108 | $ac_includes_default | |
631ef239 | 5109 | typedef pid_t ac__type_new_; |
212380e3 AC |
5110 | int |
5111 | main () | |
5112 | { | |
631ef239 | 5113 | if ((ac__type_new_ *) 0) |
212380e3 | 5114 | return 0; |
631ef239 | 5115 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5116 | return 0; |
5117 | ; | |
5118 | return 0; | |
5119 | } | |
5120 | _ACEOF | |
5121 | rm -f conftest.$ac_objext | |
631ef239 AC |
5122 | if { (ac_try="$ac_compile" |
5123 | case "(($ac_try" in | |
5124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5125 | *) ac_try_echo=$ac_try;; | |
5126 | esac | |
5127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5128 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5129 | ac_status=$? |
5130 | grep -v '^ *+' conftest.er1 >conftest.err | |
5131 | rm -f conftest.er1 | |
5132 | cat conftest.err >&5 | |
5133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5134 | (exit $ac_status); } && { |
5135 | test -z "$ac_c_werror_flag" || | |
5136 | test ! -s conftest.err | |
5137 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5138 | ac_cv_type_pid_t=yes |
5139 | else | |
5140 | echo "$as_me: failed program was:" >&5 | |
5141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5142 | ||
631ef239 | 5143 | ac_cv_type_pid_t=no |
212380e3 | 5144 | fi |
631ef239 AC |
5145 | |
5146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5147 | fi |
631ef239 AC |
5148 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5149 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
212380e3 AC |
5150 | if test $ac_cv_type_pid_t = yes; then |
5151 | : | |
5152 | else | |
5153 | ||
5154 | cat >>confdefs.h <<_ACEOF | |
5155 | #define pid_t int | |
5156 | _ACEOF | |
5157 | ||
5158 | fi | |
5159 | ||
631ef239 AC |
5160 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5161 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
212380e3 AC |
5162 | if test "${ac_cv_type_size_t+set}" = set; then |
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5164 | else | |
5165 | cat >conftest.$ac_ext <<_ACEOF | |
5166 | /* confdefs.h. */ | |
5167 | _ACEOF | |
5168 | cat confdefs.h >>conftest.$ac_ext | |
5169 | cat >>conftest.$ac_ext <<_ACEOF | |
5170 | /* end confdefs.h. */ | |
5171 | $ac_includes_default | |
631ef239 | 5172 | typedef size_t ac__type_new_; |
212380e3 AC |
5173 | int |
5174 | main () | |
5175 | { | |
631ef239 | 5176 | if ((ac__type_new_ *) 0) |
212380e3 | 5177 | return 0; |
631ef239 | 5178 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5179 | return 0; |
5180 | ; | |
5181 | return 0; | |
5182 | } | |
5183 | _ACEOF | |
5184 | rm -f conftest.$ac_objext | |
631ef239 AC |
5185 | if { (ac_try="$ac_compile" |
5186 | case "(($ac_try" in | |
5187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5188 | *) ac_try_echo=$ac_try;; | |
5189 | esac | |
5190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5191 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5192 | ac_status=$? |
5193 | grep -v '^ *+' conftest.er1 >conftest.err | |
5194 | rm -f conftest.er1 | |
5195 | cat conftest.err >&5 | |
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5197 | (exit $ac_status); } && { |
5198 | test -z "$ac_c_werror_flag" || | |
5199 | test ! -s conftest.err | |
5200 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5201 | ac_cv_type_size_t=yes |
5202 | else | |
5203 | echo "$as_me: failed program was:" >&5 | |
5204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5205 | ||
631ef239 | 5206 | ac_cv_type_size_t=no |
212380e3 | 5207 | fi |
631ef239 AC |
5208 | |
5209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5210 | fi |
631ef239 AC |
5211 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5212 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
212380e3 AC |
5213 | if test $ac_cv_type_size_t = yes; then |
5214 | : | |
5215 | else | |
5216 | ||
5217 | cat >>confdefs.h <<_ACEOF | |
631ef239 | 5218 | #define size_t unsigned int |
212380e3 AC |
5219 | _ACEOF |
5220 | ||
5221 | fi | |
5222 | ||
631ef239 AC |
5223 | { echo "$as_me:$LINENO: checking for short" >&5 |
5224 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
212380e3 AC |
5225 | if test "${ac_cv_type_short+set}" = set; then |
5226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5227 | else | |
5228 | cat >conftest.$ac_ext <<_ACEOF | |
5229 | /* confdefs.h. */ | |
5230 | _ACEOF | |
5231 | cat confdefs.h >>conftest.$ac_ext | |
5232 | cat >>conftest.$ac_ext <<_ACEOF | |
5233 | /* end confdefs.h. */ | |
5234 | $ac_includes_default | |
631ef239 | 5235 | typedef short ac__type_new_; |
212380e3 AC |
5236 | int |
5237 | main () | |
5238 | { | |
631ef239 | 5239 | if ((ac__type_new_ *) 0) |
212380e3 | 5240 | return 0; |
631ef239 | 5241 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5242 | return 0; |
5243 | ; | |
5244 | return 0; | |
5245 | } | |
5246 | _ACEOF | |
5247 | rm -f conftest.$ac_objext | |
631ef239 AC |
5248 | if { (ac_try="$ac_compile" |
5249 | case "(($ac_try" in | |
5250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5251 | *) ac_try_echo=$ac_try;; | |
5252 | esac | |
5253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5254 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5255 | ac_status=$? |
5256 | grep -v '^ *+' conftest.er1 >conftest.err | |
5257 | rm -f conftest.er1 | |
5258 | cat conftest.err >&5 | |
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5260 | (exit $ac_status); } && { |
5261 | test -z "$ac_c_werror_flag" || | |
5262 | test ! -s conftest.err | |
5263 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5264 | ac_cv_type_short=yes |
5265 | else | |
5266 | echo "$as_me: failed program was:" >&5 | |
5267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5268 | ||
631ef239 | 5269 | ac_cv_type_short=no |
212380e3 | 5270 | fi |
631ef239 AC |
5271 | |
5272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5273 | fi |
631ef239 AC |
5274 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5275 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
212380e3 | 5276 | |
631ef239 AC |
5277 | # The cast to long int works around a bug in the HP C Compiler |
5278 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5279 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5280 | # This bug is HP SR number 8606223364. | |
5281 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5282 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
212380e3 AC |
5283 | if test "${ac_cv_sizeof_short+set}" = set; then |
5284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5285 | else | |
212380e3 AC |
5286 | if test "$cross_compiling" = yes; then |
5287 | # Depending upon the size, compute the lo and hi bounds. | |
5288 | cat >conftest.$ac_ext <<_ACEOF | |
5289 | /* confdefs.h. */ | |
5290 | _ACEOF | |
5291 | cat confdefs.h >>conftest.$ac_ext | |
5292 | cat >>conftest.$ac_ext <<_ACEOF | |
5293 | /* end confdefs.h. */ | |
5294 | $ac_includes_default | |
631ef239 | 5295 | typedef short ac__type_sizeof_; |
212380e3 AC |
5296 | int |
5297 | main () | |
5298 | { | |
631ef239 | 5299 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5300 | test_array [0] = 0 |
5301 | ||
5302 | ; | |
5303 | return 0; | |
5304 | } | |
5305 | _ACEOF | |
5306 | rm -f conftest.$ac_objext | |
631ef239 AC |
5307 | if { (ac_try="$ac_compile" |
5308 | case "(($ac_try" in | |
5309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5310 | *) ac_try_echo=$ac_try;; | |
5311 | esac | |
5312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5313 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5314 | ac_status=$? |
5315 | grep -v '^ *+' conftest.er1 >conftest.err | |
5316 | rm -f conftest.er1 | |
5317 | cat conftest.err >&5 | |
5318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5319 | (exit $ac_status); } && { |
5320 | test -z "$ac_c_werror_flag" || | |
5321 | test ! -s conftest.err | |
5322 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5323 | ac_lo=0 ac_mid=0 |
5324 | while :; do | |
5325 | cat >conftest.$ac_ext <<_ACEOF | |
5326 | /* confdefs.h. */ | |
5327 | _ACEOF | |
5328 | cat confdefs.h >>conftest.$ac_ext | |
5329 | cat >>conftest.$ac_ext <<_ACEOF | |
5330 | /* end confdefs.h. */ | |
5331 | $ac_includes_default | |
631ef239 | 5332 | typedef short ac__type_sizeof_; |
212380e3 AC |
5333 | int |
5334 | main () | |
5335 | { | |
631ef239 | 5336 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5337 | test_array [0] = 0 |
5338 | ||
5339 | ; | |
5340 | return 0; | |
5341 | } | |
5342 | _ACEOF | |
5343 | rm -f conftest.$ac_objext | |
631ef239 AC |
5344 | if { (ac_try="$ac_compile" |
5345 | case "(($ac_try" in | |
5346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5347 | *) ac_try_echo=$ac_try;; | |
5348 | esac | |
5349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5350 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5351 | ac_status=$? |
5352 | grep -v '^ *+' conftest.er1 >conftest.err | |
5353 | rm -f conftest.er1 | |
5354 | cat conftest.err >&5 | |
5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5356 | (exit $ac_status); } && { |
5357 | test -z "$ac_c_werror_flag" || | |
5358 | test ! -s conftest.err | |
5359 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5360 | ac_hi=$ac_mid; break |
5361 | else | |
5362 | echo "$as_me: failed program was:" >&5 | |
5363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5364 | ||
631ef239 AC |
5365 | ac_lo=`expr $ac_mid + 1` |
5366 | if test $ac_lo -le $ac_mid; then | |
5367 | ac_lo= ac_hi= | |
5368 | break | |
5369 | fi | |
5370 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5371 | fi |
631ef239 AC |
5372 | |
5373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5374 | done |
5375 | else | |
5376 | echo "$as_me: failed program was:" >&5 | |
5377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5378 | ||
631ef239 | 5379 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5380 | /* confdefs.h. */ |
5381 | _ACEOF | |
5382 | cat confdefs.h >>conftest.$ac_ext | |
5383 | cat >>conftest.$ac_ext <<_ACEOF | |
5384 | /* end confdefs.h. */ | |
5385 | $ac_includes_default | |
631ef239 | 5386 | typedef short ac__type_sizeof_; |
212380e3 AC |
5387 | int |
5388 | main () | |
5389 | { | |
631ef239 | 5390 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5391 | test_array [0] = 0 |
5392 | ||
5393 | ; | |
5394 | return 0; | |
5395 | } | |
5396 | _ACEOF | |
5397 | rm -f conftest.$ac_objext | |
631ef239 AC |
5398 | if { (ac_try="$ac_compile" |
5399 | case "(($ac_try" in | |
5400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5401 | *) ac_try_echo=$ac_try;; | |
5402 | esac | |
5403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5404 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5405 | ac_status=$? |
5406 | grep -v '^ *+' conftest.er1 >conftest.err | |
5407 | rm -f conftest.er1 | |
5408 | cat conftest.err >&5 | |
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5410 | (exit $ac_status); } && { |
5411 | test -z "$ac_c_werror_flag" || | |
5412 | test ! -s conftest.err | |
5413 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5414 | ac_hi=-1 ac_mid=-1 |
5415 | while :; do | |
5416 | cat >conftest.$ac_ext <<_ACEOF | |
5417 | /* confdefs.h. */ | |
5418 | _ACEOF | |
5419 | cat confdefs.h >>conftest.$ac_ext | |
5420 | cat >>conftest.$ac_ext <<_ACEOF | |
5421 | /* end confdefs.h. */ | |
5422 | $ac_includes_default | |
631ef239 | 5423 | typedef short ac__type_sizeof_; |
212380e3 AC |
5424 | int |
5425 | main () | |
5426 | { | |
631ef239 | 5427 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5428 | test_array [0] = 0 |
5429 | ||
5430 | ; | |
5431 | return 0; | |
5432 | } | |
5433 | _ACEOF | |
5434 | rm -f conftest.$ac_objext | |
631ef239 AC |
5435 | if { (ac_try="$ac_compile" |
5436 | case "(($ac_try" in | |
5437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5438 | *) ac_try_echo=$ac_try;; | |
5439 | esac | |
5440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5441 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5442 | ac_status=$? |
5443 | grep -v '^ *+' conftest.er1 >conftest.err | |
5444 | rm -f conftest.er1 | |
5445 | cat conftest.err >&5 | |
5446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5447 | (exit $ac_status); } && { |
5448 | test -z "$ac_c_werror_flag" || | |
5449 | test ! -s conftest.err | |
5450 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5451 | ac_lo=$ac_mid; break |
5452 | else | |
5453 | echo "$as_me: failed program was:" >&5 | |
5454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5455 | ||
631ef239 AC |
5456 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5457 | if test $ac_mid -le $ac_hi; then | |
5458 | ac_lo= ac_hi= | |
5459 | break | |
5460 | fi | |
5461 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5462 | fi |
631ef239 AC |
5463 | |
5464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5465 | done |
5466 | else | |
5467 | echo "$as_me: failed program was:" >&5 | |
5468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5469 | ||
631ef239 | 5470 | ac_lo= ac_hi= |
212380e3 | 5471 | fi |
631ef239 AC |
5472 | |
5473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5474 | fi |
631ef239 AC |
5475 | |
5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5477 | # Binary search between lo and hi bounds. |
5478 | while test "x$ac_lo" != "x$ac_hi"; do | |
5479 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5480 | cat >conftest.$ac_ext <<_ACEOF | |
5481 | /* confdefs.h. */ | |
5482 | _ACEOF | |
5483 | cat confdefs.h >>conftest.$ac_ext | |
5484 | cat >>conftest.$ac_ext <<_ACEOF | |
5485 | /* end confdefs.h. */ | |
5486 | $ac_includes_default | |
631ef239 | 5487 | typedef short ac__type_sizeof_; |
212380e3 AC |
5488 | int |
5489 | main () | |
5490 | { | |
631ef239 | 5491 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5492 | test_array [0] = 0 |
5493 | ||
5494 | ; | |
5495 | return 0; | |
5496 | } | |
5497 | _ACEOF | |
5498 | rm -f conftest.$ac_objext | |
631ef239 AC |
5499 | if { (ac_try="$ac_compile" |
5500 | case "(($ac_try" in | |
5501 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5502 | *) ac_try_echo=$ac_try;; | |
5503 | esac | |
5504 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5505 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5506 | ac_status=$? |
5507 | grep -v '^ *+' conftest.er1 >conftest.err | |
5508 | rm -f conftest.er1 | |
5509 | cat conftest.err >&5 | |
5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5511 | (exit $ac_status); } && { |
5512 | test -z "$ac_c_werror_flag" || | |
5513 | test ! -s conftest.err | |
5514 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5515 | ac_hi=$ac_mid |
5516 | else | |
5517 | echo "$as_me: failed program was:" >&5 | |
5518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5519 | ||
631ef239 | 5520 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5521 | fi |
631ef239 AC |
5522 | |
5523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5524 | done |
5525 | case $ac_lo in | |
5526 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
631ef239 AC |
5527 | '') if test "$ac_cv_type_short" = yes; then |
5528 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5529 | See \`config.log' for more details." >&5 |
631ef239 | 5530 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5531 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5532 | { (exit 77); exit 77; }; } |
5533 | else | |
5534 | ac_cv_sizeof_short=0 | |
5535 | fi ;; | |
212380e3 | 5536 | esac |
212380e3 AC |
5537 | else |
5538 | cat >conftest.$ac_ext <<_ACEOF | |
5539 | /* confdefs.h. */ | |
5540 | _ACEOF | |
5541 | cat confdefs.h >>conftest.$ac_ext | |
5542 | cat >>conftest.$ac_ext <<_ACEOF | |
5543 | /* end confdefs.h. */ | |
5544 | $ac_includes_default | |
631ef239 AC |
5545 | typedef short ac__type_sizeof_; |
5546 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5547 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5548 | #include <stdio.h> |
5549 | #include <stdlib.h> | |
5550 | int | |
5551 | main () | |
5552 | { | |
5553 | ||
5554 | FILE *f = fopen ("conftest.val", "w"); | |
5555 | if (! f) | |
631ef239 AC |
5556 | return 1; |
5557 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5558 | { |
631ef239 AC |
5559 | long int i = longval (); |
5560 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5561 | return 1; | |
212380e3 AC |
5562 | fprintf (f, "%ld\n", i); |
5563 | } | |
5564 | else | |
5565 | { | |
631ef239 AC |
5566 | unsigned long int i = ulongval (); |
5567 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5568 | return 1; | |
212380e3 AC |
5569 | fprintf (f, "%lu\n", i); |
5570 | } | |
631ef239 | 5571 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5572 | |
5573 | ; | |
5574 | return 0; | |
5575 | } | |
5576 | _ACEOF | |
5577 | rm -f conftest$ac_exeext | |
631ef239 AC |
5578 | if { (ac_try="$ac_link" |
5579 | case "(($ac_try" in | |
5580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5581 | *) ac_try_echo=$ac_try;; | |
5582 | esac | |
5583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5584 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5585 | ac_status=$? |
5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5587 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5588 | { (case "(($ac_try" in |
5589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5590 | *) ac_try_echo=$ac_try;; | |
5591 | esac | |
5592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5593 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5594 | ac_status=$? |
5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5596 | (exit $ac_status); }; }; then | |
5597 | ac_cv_sizeof_short=`cat conftest.val` | |
5598 | else | |
5599 | echo "$as_me: program exited with status $ac_status" >&5 | |
5600 | echo "$as_me: failed program was:" >&5 | |
5601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5602 | ||
5603 | ( exit $ac_status ) | |
631ef239 AC |
5604 | if test "$ac_cv_type_short" = yes; then |
5605 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5606 | See \`config.log' for more details." >&5 |
631ef239 | 5607 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5608 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5609 | { (exit 77); exit 77; }; } |
5610 | else | |
5611 | ac_cv_sizeof_short=0 | |
5612 | fi | |
212380e3 | 5613 | fi |
631ef239 | 5614 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
5615 | fi |
5616 | rm -f conftest.val | |
212380e3 | 5617 | fi |
631ef239 AC |
5618 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
5619 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5620 | ||
5621 | ||
5622 | ||
212380e3 AC |
5623 | cat >>confdefs.h <<_ACEOF |
5624 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5625 | _ACEOF | |
5626 | ||
5627 | ||
631ef239 AC |
5628 | { echo "$as_me:$LINENO: checking for int" >&5 |
5629 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
212380e3 AC |
5630 | if test "${ac_cv_type_int+set}" = set; then |
5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5632 | else | |
5633 | cat >conftest.$ac_ext <<_ACEOF | |
5634 | /* confdefs.h. */ | |
5635 | _ACEOF | |
5636 | cat confdefs.h >>conftest.$ac_ext | |
5637 | cat >>conftest.$ac_ext <<_ACEOF | |
5638 | /* end confdefs.h. */ | |
5639 | $ac_includes_default | |
631ef239 | 5640 | typedef int ac__type_new_; |
212380e3 AC |
5641 | int |
5642 | main () | |
5643 | { | |
631ef239 | 5644 | if ((ac__type_new_ *) 0) |
212380e3 | 5645 | return 0; |
631ef239 | 5646 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5647 | return 0; |
5648 | ; | |
5649 | return 0; | |
5650 | } | |
5651 | _ACEOF | |
5652 | rm -f conftest.$ac_objext | |
631ef239 AC |
5653 | if { (ac_try="$ac_compile" |
5654 | case "(($ac_try" in | |
5655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5656 | *) ac_try_echo=$ac_try;; | |
5657 | esac | |
5658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5659 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5660 | ac_status=$? |
5661 | grep -v '^ *+' conftest.er1 >conftest.err | |
5662 | rm -f conftest.er1 | |
5663 | cat conftest.err >&5 | |
5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5665 | (exit $ac_status); } && { |
5666 | test -z "$ac_c_werror_flag" || | |
5667 | test ! -s conftest.err | |
5668 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5669 | ac_cv_type_int=yes |
5670 | else | |
5671 | echo "$as_me: failed program was:" >&5 | |
5672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5673 | ||
631ef239 | 5674 | ac_cv_type_int=no |
212380e3 | 5675 | fi |
631ef239 AC |
5676 | |
5677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5678 | fi |
631ef239 AC |
5679 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
5680 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
212380e3 | 5681 | |
631ef239 AC |
5682 | # The cast to long int works around a bug in the HP C Compiler |
5683 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5684 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5685 | # This bug is HP SR number 8606223364. | |
5686 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5687 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
212380e3 AC |
5688 | if test "${ac_cv_sizeof_int+set}" = set; then |
5689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5690 | else | |
212380e3 AC |
5691 | if test "$cross_compiling" = yes; then |
5692 | # Depending upon the size, compute the lo and hi bounds. | |
5693 | cat >conftest.$ac_ext <<_ACEOF | |
5694 | /* confdefs.h. */ | |
5695 | _ACEOF | |
5696 | cat confdefs.h >>conftest.$ac_ext | |
5697 | cat >>conftest.$ac_ext <<_ACEOF | |
5698 | /* end confdefs.h. */ | |
5699 | $ac_includes_default | |
631ef239 | 5700 | typedef int ac__type_sizeof_; |
212380e3 AC |
5701 | int |
5702 | main () | |
5703 | { | |
631ef239 | 5704 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5705 | test_array [0] = 0 |
5706 | ||
5707 | ; | |
5708 | return 0; | |
5709 | } | |
5710 | _ACEOF | |
5711 | rm -f conftest.$ac_objext | |
631ef239 AC |
5712 | if { (ac_try="$ac_compile" |
5713 | case "(($ac_try" in | |
5714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5715 | *) ac_try_echo=$ac_try;; | |
5716 | esac | |
5717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5718 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5719 | ac_status=$? |
5720 | grep -v '^ *+' conftest.er1 >conftest.err | |
5721 | rm -f conftest.er1 | |
5722 | cat conftest.err >&5 | |
5723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5724 | (exit $ac_status); } && { |
5725 | test -z "$ac_c_werror_flag" || | |
5726 | test ! -s conftest.err | |
5727 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5728 | ac_lo=0 ac_mid=0 |
5729 | while :; do | |
5730 | cat >conftest.$ac_ext <<_ACEOF | |
5731 | /* confdefs.h. */ | |
5732 | _ACEOF | |
5733 | cat confdefs.h >>conftest.$ac_ext | |
5734 | cat >>conftest.$ac_ext <<_ACEOF | |
5735 | /* end confdefs.h. */ | |
5736 | $ac_includes_default | |
631ef239 | 5737 | typedef int ac__type_sizeof_; |
212380e3 AC |
5738 | int |
5739 | main () | |
5740 | { | |
631ef239 | 5741 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5742 | test_array [0] = 0 |
5743 | ||
5744 | ; | |
5745 | return 0; | |
5746 | } | |
5747 | _ACEOF | |
5748 | rm -f conftest.$ac_objext | |
631ef239 AC |
5749 | if { (ac_try="$ac_compile" |
5750 | case "(($ac_try" in | |
5751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5752 | *) ac_try_echo=$ac_try;; | |
5753 | esac | |
5754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5755 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5756 | ac_status=$? |
5757 | grep -v '^ *+' conftest.er1 >conftest.err | |
5758 | rm -f conftest.er1 | |
5759 | cat conftest.err >&5 | |
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5761 | (exit $ac_status); } && { |
5762 | test -z "$ac_c_werror_flag" || | |
5763 | test ! -s conftest.err | |
5764 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5765 | ac_hi=$ac_mid; break |
5766 | else | |
5767 | echo "$as_me: failed program was:" >&5 | |
5768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5769 | ||
631ef239 AC |
5770 | ac_lo=`expr $ac_mid + 1` |
5771 | if test $ac_lo -le $ac_mid; then | |
5772 | ac_lo= ac_hi= | |
5773 | break | |
5774 | fi | |
5775 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5776 | fi |
631ef239 AC |
5777 | |
5778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5779 | done |
5780 | else | |
5781 | echo "$as_me: failed program was:" >&5 | |
5782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5783 | ||
631ef239 | 5784 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5785 | /* confdefs.h. */ |
5786 | _ACEOF | |
5787 | cat confdefs.h >>conftest.$ac_ext | |
5788 | cat >>conftest.$ac_ext <<_ACEOF | |
5789 | /* end confdefs.h. */ | |
5790 | $ac_includes_default | |
631ef239 | 5791 | typedef int ac__type_sizeof_; |
212380e3 AC |
5792 | int |
5793 | main () | |
5794 | { | |
631ef239 | 5795 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5796 | test_array [0] = 0 |
5797 | ||
5798 | ; | |
5799 | return 0; | |
5800 | } | |
5801 | _ACEOF | |
5802 | rm -f conftest.$ac_objext | |
631ef239 AC |
5803 | if { (ac_try="$ac_compile" |
5804 | case "(($ac_try" in | |
5805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5806 | *) ac_try_echo=$ac_try;; | |
5807 | esac | |
5808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5809 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5810 | ac_status=$? |
5811 | grep -v '^ *+' conftest.er1 >conftest.err | |
5812 | rm -f conftest.er1 | |
5813 | cat conftest.err >&5 | |
5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5815 | (exit $ac_status); } && { |
5816 | test -z "$ac_c_werror_flag" || | |
5817 | test ! -s conftest.err | |
5818 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5819 | ac_hi=-1 ac_mid=-1 |
5820 | while :; do | |
5821 | cat >conftest.$ac_ext <<_ACEOF | |
5822 | /* confdefs.h. */ | |
5823 | _ACEOF | |
5824 | cat confdefs.h >>conftest.$ac_ext | |
5825 | cat >>conftest.$ac_ext <<_ACEOF | |
5826 | /* end confdefs.h. */ | |
5827 | $ac_includes_default | |
631ef239 | 5828 | typedef int ac__type_sizeof_; |
212380e3 AC |
5829 | int |
5830 | main () | |
5831 | { | |
631ef239 | 5832 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5833 | test_array [0] = 0 |
5834 | ||
5835 | ; | |
5836 | return 0; | |
5837 | } | |
5838 | _ACEOF | |
5839 | rm -f conftest.$ac_objext | |
631ef239 AC |
5840 | if { (ac_try="$ac_compile" |
5841 | case "(($ac_try" in | |
5842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5843 | *) ac_try_echo=$ac_try;; | |
5844 | esac | |
5845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5846 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5847 | ac_status=$? |
5848 | grep -v '^ *+' conftest.er1 >conftest.err | |
5849 | rm -f conftest.er1 | |
5850 | cat conftest.err >&5 | |
5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5852 | (exit $ac_status); } && { |
5853 | test -z "$ac_c_werror_flag" || | |
5854 | test ! -s conftest.err | |
5855 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5856 | ac_lo=$ac_mid; break |
5857 | else | |
5858 | echo "$as_me: failed program was:" >&5 | |
5859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5860 | ||
631ef239 AC |
5861 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5862 | if test $ac_mid -le $ac_hi; then | |
5863 | ac_lo= ac_hi= | |
5864 | break | |
5865 | fi | |
5866 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5867 | fi |
631ef239 AC |
5868 | |
5869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5870 | done |
5871 | else | |
5872 | echo "$as_me: failed program was:" >&5 | |
5873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5874 | ||
631ef239 | 5875 | ac_lo= ac_hi= |
212380e3 | 5876 | fi |
631ef239 AC |
5877 | |
5878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5879 | fi |
631ef239 AC |
5880 | |
5881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5882 | # Binary search between lo and hi bounds. |
5883 | while test "x$ac_lo" != "x$ac_hi"; do | |
5884 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5885 | cat >conftest.$ac_ext <<_ACEOF | |
5886 | /* confdefs.h. */ | |
5887 | _ACEOF | |
5888 | cat confdefs.h >>conftest.$ac_ext | |
5889 | cat >>conftest.$ac_ext <<_ACEOF | |
5890 | /* end confdefs.h. */ | |
5891 | $ac_includes_default | |
631ef239 | 5892 | typedef int ac__type_sizeof_; |
212380e3 AC |
5893 | int |
5894 | main () | |
5895 | { | |
631ef239 | 5896 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5897 | test_array [0] = 0 |
5898 | ||
5899 | ; | |
5900 | return 0; | |
5901 | } | |
5902 | _ACEOF | |
5903 | rm -f conftest.$ac_objext | |
631ef239 AC |
5904 | if { (ac_try="$ac_compile" |
5905 | case "(($ac_try" in | |
5906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5907 | *) ac_try_echo=$ac_try;; | |
5908 | esac | |
5909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5910 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5911 | ac_status=$? |
5912 | grep -v '^ *+' conftest.er1 >conftest.err | |
5913 | rm -f conftest.er1 | |
5914 | cat conftest.err >&5 | |
5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5916 | (exit $ac_status); } && { |
5917 | test -z "$ac_c_werror_flag" || | |
5918 | test ! -s conftest.err | |
5919 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5920 | ac_hi=$ac_mid |
5921 | else | |
5922 | echo "$as_me: failed program was:" >&5 | |
5923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5924 | ||
631ef239 | 5925 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5926 | fi |
631ef239 AC |
5927 | |
5928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5929 | done |
5930 | case $ac_lo in | |
5931 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
631ef239 AC |
5932 | '') if test "$ac_cv_type_int" = yes; then |
5933 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 5934 | See \`config.log' for more details." >&5 |
631ef239 | 5935 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 5936 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5937 | { (exit 77); exit 77; }; } |
5938 | else | |
5939 | ac_cv_sizeof_int=0 | |
5940 | fi ;; | |
212380e3 | 5941 | esac |
212380e3 AC |
5942 | else |
5943 | cat >conftest.$ac_ext <<_ACEOF | |
5944 | /* confdefs.h. */ | |
5945 | _ACEOF | |
5946 | cat confdefs.h >>conftest.$ac_ext | |
5947 | cat >>conftest.$ac_ext <<_ACEOF | |
5948 | /* end confdefs.h. */ | |
5949 | $ac_includes_default | |
631ef239 AC |
5950 | typedef int ac__type_sizeof_; |
5951 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5952 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5953 | #include <stdio.h> |
5954 | #include <stdlib.h> | |
5955 | int | |
5956 | main () | |
5957 | { | |
5958 | ||
5959 | FILE *f = fopen ("conftest.val", "w"); | |
5960 | if (! f) | |
631ef239 AC |
5961 | return 1; |
5962 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5963 | { |
631ef239 AC |
5964 | long int i = longval (); |
5965 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5966 | return 1; | |
212380e3 AC |
5967 | fprintf (f, "%ld\n", i); |
5968 | } | |
5969 | else | |
5970 | { | |
631ef239 AC |
5971 | unsigned long int i = ulongval (); |
5972 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5973 | return 1; | |
212380e3 AC |
5974 | fprintf (f, "%lu\n", i); |
5975 | } | |
631ef239 | 5976 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5977 | |
5978 | ; | |
5979 | return 0; | |
5980 | } | |
5981 | _ACEOF | |
5982 | rm -f conftest$ac_exeext | |
631ef239 AC |
5983 | if { (ac_try="$ac_link" |
5984 | case "(($ac_try" in | |
5985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5986 | *) ac_try_echo=$ac_try;; | |
5987 | esac | |
5988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5989 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5990 | ac_status=$? |
5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5993 | { (case "(($ac_try" in |
5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5995 | *) ac_try_echo=$ac_try;; | |
5996 | esac | |
5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5998 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5999 | ac_status=$? |
6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6001 | (exit $ac_status); }; }; then | |
6002 | ac_cv_sizeof_int=`cat conftest.val` | |
6003 | else | |
6004 | echo "$as_me: program exited with status $ac_status" >&5 | |
6005 | echo "$as_me: failed program was:" >&5 | |
6006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6007 | ||
6008 | ( exit $ac_status ) | |
631ef239 AC |
6009 | if test "$ac_cv_type_int" = yes; then |
6010 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 6011 | See \`config.log' for more details." >&5 |
631ef239 | 6012 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 6013 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6014 | { (exit 77); exit 77; }; } |
6015 | else | |
6016 | ac_cv_sizeof_int=0 | |
6017 | fi | |
212380e3 | 6018 | fi |
631ef239 | 6019 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6020 | fi |
6021 | rm -f conftest.val | |
212380e3 | 6022 | fi |
631ef239 AC |
6023 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6024 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6025 | ||
6026 | ||
6027 | ||
212380e3 AC |
6028 | cat >>confdefs.h <<_ACEOF |
6029 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6030 | _ACEOF | |
6031 | ||
6032 | ||
631ef239 AC |
6033 | { echo "$as_me:$LINENO: checking for long" >&5 |
6034 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
212380e3 AC |
6035 | if test "${ac_cv_type_long+set}" = set; then |
6036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6037 | else | |
6038 | cat >conftest.$ac_ext <<_ACEOF | |
6039 | /* confdefs.h. */ | |
6040 | _ACEOF | |
6041 | cat confdefs.h >>conftest.$ac_ext | |
6042 | cat >>conftest.$ac_ext <<_ACEOF | |
6043 | /* end confdefs.h. */ | |
6044 | $ac_includes_default | |
631ef239 | 6045 | typedef long ac__type_new_; |
212380e3 AC |
6046 | int |
6047 | main () | |
6048 | { | |
631ef239 | 6049 | if ((ac__type_new_ *) 0) |
212380e3 | 6050 | return 0; |
631ef239 | 6051 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6052 | return 0; |
6053 | ; | |
6054 | return 0; | |
6055 | } | |
6056 | _ACEOF | |
6057 | rm -f conftest.$ac_objext | |
631ef239 AC |
6058 | if { (ac_try="$ac_compile" |
6059 | case "(($ac_try" in | |
6060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6061 | *) ac_try_echo=$ac_try;; | |
6062 | esac | |
6063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6064 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6065 | ac_status=$? |
6066 | grep -v '^ *+' conftest.er1 >conftest.err | |
6067 | rm -f conftest.er1 | |
6068 | cat conftest.err >&5 | |
6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6070 | (exit $ac_status); } && { |
6071 | test -z "$ac_c_werror_flag" || | |
6072 | test ! -s conftest.err | |
6073 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6074 | ac_cv_type_long=yes |
6075 | else | |
6076 | echo "$as_me: failed program was:" >&5 | |
6077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6078 | ||
631ef239 | 6079 | ac_cv_type_long=no |
212380e3 | 6080 | fi |
631ef239 AC |
6081 | |
6082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6083 | fi |
631ef239 AC |
6084 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6085 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
212380e3 | 6086 | |
631ef239 AC |
6087 | # The cast to long int works around a bug in the HP C Compiler |
6088 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6089 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6090 | # This bug is HP SR number 8606223364. | |
6091 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6092 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
212380e3 AC |
6093 | if test "${ac_cv_sizeof_long+set}" = set; then |
6094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6095 | else | |
212380e3 AC |
6096 | if test "$cross_compiling" = yes; then |
6097 | # Depending upon the size, compute the lo and hi bounds. | |
6098 | cat >conftest.$ac_ext <<_ACEOF | |
6099 | /* confdefs.h. */ | |
6100 | _ACEOF | |
6101 | cat confdefs.h >>conftest.$ac_ext | |
6102 | cat >>conftest.$ac_ext <<_ACEOF | |
6103 | /* end confdefs.h. */ | |
6104 | $ac_includes_default | |
631ef239 | 6105 | typedef long ac__type_sizeof_; |
212380e3 AC |
6106 | int |
6107 | main () | |
6108 | { | |
631ef239 | 6109 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6110 | test_array [0] = 0 |
6111 | ||
6112 | ; | |
6113 | return 0; | |
6114 | } | |
6115 | _ACEOF | |
6116 | rm -f conftest.$ac_objext | |
631ef239 AC |
6117 | if { (ac_try="$ac_compile" |
6118 | case "(($ac_try" in | |
6119 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6120 | *) ac_try_echo=$ac_try;; | |
6121 | esac | |
6122 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6123 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6124 | ac_status=$? |
6125 | grep -v '^ *+' conftest.er1 >conftest.err | |
6126 | rm -f conftest.er1 | |
6127 | cat conftest.err >&5 | |
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6129 | (exit $ac_status); } && { |
6130 | test -z "$ac_c_werror_flag" || | |
6131 | test ! -s conftest.err | |
6132 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6133 | ac_lo=0 ac_mid=0 |
6134 | while :; do | |
6135 | cat >conftest.$ac_ext <<_ACEOF | |
6136 | /* confdefs.h. */ | |
6137 | _ACEOF | |
6138 | cat confdefs.h >>conftest.$ac_ext | |
6139 | cat >>conftest.$ac_ext <<_ACEOF | |
6140 | /* end confdefs.h. */ | |
6141 | $ac_includes_default | |
631ef239 | 6142 | typedef long ac__type_sizeof_; |
212380e3 AC |
6143 | int |
6144 | main () | |
6145 | { | |
631ef239 | 6146 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6147 | test_array [0] = 0 |
6148 | ||
6149 | ; | |
6150 | return 0; | |
6151 | } | |
6152 | _ACEOF | |
6153 | rm -f conftest.$ac_objext | |
631ef239 AC |
6154 | if { (ac_try="$ac_compile" |
6155 | case "(($ac_try" in | |
6156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6157 | *) ac_try_echo=$ac_try;; | |
6158 | esac | |
6159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6160 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6161 | ac_status=$? |
6162 | grep -v '^ *+' conftest.er1 >conftest.err | |
6163 | rm -f conftest.er1 | |
6164 | cat conftest.err >&5 | |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6166 | (exit $ac_status); } && { |
6167 | test -z "$ac_c_werror_flag" || | |
6168 | test ! -s conftest.err | |
6169 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6170 | ac_hi=$ac_mid; break |
6171 | else | |
6172 | echo "$as_me: failed program was:" >&5 | |
6173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6174 | ||
631ef239 AC |
6175 | ac_lo=`expr $ac_mid + 1` |
6176 | if test $ac_lo -le $ac_mid; then | |
6177 | ac_lo= ac_hi= | |
6178 | break | |
6179 | fi | |
6180 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6181 | fi |
631ef239 AC |
6182 | |
6183 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6184 | done |
6185 | else | |
6186 | echo "$as_me: failed program was:" >&5 | |
6187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6188 | ||
631ef239 | 6189 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6190 | /* confdefs.h. */ |
6191 | _ACEOF | |
6192 | cat confdefs.h >>conftest.$ac_ext | |
6193 | cat >>conftest.$ac_ext <<_ACEOF | |
6194 | /* end confdefs.h. */ | |
6195 | $ac_includes_default | |
631ef239 | 6196 | typedef long ac__type_sizeof_; |
212380e3 AC |
6197 | int |
6198 | main () | |
6199 | { | |
631ef239 | 6200 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6201 | test_array [0] = 0 |
6202 | ||
6203 | ; | |
6204 | return 0; | |
6205 | } | |
6206 | _ACEOF | |
6207 | rm -f conftest.$ac_objext | |
631ef239 AC |
6208 | if { (ac_try="$ac_compile" |
6209 | case "(($ac_try" in | |
6210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6211 | *) ac_try_echo=$ac_try;; | |
6212 | esac | |
6213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6214 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6215 | ac_status=$? |
6216 | grep -v '^ *+' conftest.er1 >conftest.err | |
6217 | rm -f conftest.er1 | |
6218 | cat conftest.err >&5 | |
6219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6220 | (exit $ac_status); } && { |
6221 | test -z "$ac_c_werror_flag" || | |
6222 | test ! -s conftest.err | |
6223 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6224 | ac_hi=-1 ac_mid=-1 |
6225 | while :; do | |
6226 | cat >conftest.$ac_ext <<_ACEOF | |
6227 | /* confdefs.h. */ | |
6228 | _ACEOF | |
6229 | cat confdefs.h >>conftest.$ac_ext | |
6230 | cat >>conftest.$ac_ext <<_ACEOF | |
6231 | /* end confdefs.h. */ | |
6232 | $ac_includes_default | |
631ef239 | 6233 | typedef long ac__type_sizeof_; |
212380e3 AC |
6234 | int |
6235 | main () | |
6236 | { | |
631ef239 | 6237 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6238 | test_array [0] = 0 |
6239 | ||
6240 | ; | |
6241 | return 0; | |
6242 | } | |
6243 | _ACEOF | |
6244 | rm -f conftest.$ac_objext | |
631ef239 AC |
6245 | if { (ac_try="$ac_compile" |
6246 | case "(($ac_try" in | |
6247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6248 | *) ac_try_echo=$ac_try;; | |
6249 | esac | |
6250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6251 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6252 | ac_status=$? |
6253 | grep -v '^ *+' conftest.er1 >conftest.err | |
6254 | rm -f conftest.er1 | |
6255 | cat conftest.err >&5 | |
6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6257 | (exit $ac_status); } && { |
6258 | test -z "$ac_c_werror_flag" || | |
6259 | test ! -s conftest.err | |
6260 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6261 | ac_lo=$ac_mid; break |
6262 | else | |
6263 | echo "$as_me: failed program was:" >&5 | |
6264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6265 | ||
631ef239 AC |
6266 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6267 | if test $ac_mid -le $ac_hi; then | |
6268 | ac_lo= ac_hi= | |
6269 | break | |
6270 | fi | |
6271 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6272 | fi |
631ef239 AC |
6273 | |
6274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6275 | done |
6276 | else | |
6277 | echo "$as_me: failed program was:" >&5 | |
6278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6279 | ||
631ef239 | 6280 | ac_lo= ac_hi= |
212380e3 | 6281 | fi |
631ef239 AC |
6282 | |
6283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6284 | fi |
631ef239 AC |
6285 | |
6286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6287 | # Binary search between lo and hi bounds. |
6288 | while test "x$ac_lo" != "x$ac_hi"; do | |
6289 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6290 | cat >conftest.$ac_ext <<_ACEOF | |
6291 | /* confdefs.h. */ | |
6292 | _ACEOF | |
6293 | cat confdefs.h >>conftest.$ac_ext | |
6294 | cat >>conftest.$ac_ext <<_ACEOF | |
6295 | /* end confdefs.h. */ | |
6296 | $ac_includes_default | |
631ef239 | 6297 | typedef long ac__type_sizeof_; |
212380e3 AC |
6298 | int |
6299 | main () | |
6300 | { | |
631ef239 | 6301 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6302 | test_array [0] = 0 |
6303 | ||
6304 | ; | |
6305 | return 0; | |
6306 | } | |
6307 | _ACEOF | |
6308 | rm -f conftest.$ac_objext | |
631ef239 AC |
6309 | if { (ac_try="$ac_compile" |
6310 | case "(($ac_try" in | |
6311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6312 | *) ac_try_echo=$ac_try;; | |
6313 | esac | |
6314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6315 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6316 | ac_status=$? |
6317 | grep -v '^ *+' conftest.er1 >conftest.err | |
6318 | rm -f conftest.er1 | |
6319 | cat conftest.err >&5 | |
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6321 | (exit $ac_status); } && { |
6322 | test -z "$ac_c_werror_flag" || | |
6323 | test ! -s conftest.err | |
6324 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6325 | ac_hi=$ac_mid |
6326 | else | |
6327 | echo "$as_me: failed program was:" >&5 | |
6328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6329 | ||
631ef239 | 6330 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6331 | fi |
631ef239 AC |
6332 | |
6333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6334 | done |
6335 | case $ac_lo in | |
6336 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
631ef239 AC |
6337 | '') if test "$ac_cv_type_long" = yes; then |
6338 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6339 | See \`config.log' for more details." >&5 |
631ef239 | 6340 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6341 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6342 | { (exit 77); exit 77; }; } |
6343 | else | |
6344 | ac_cv_sizeof_long=0 | |
6345 | fi ;; | |
212380e3 | 6346 | esac |
212380e3 AC |
6347 | else |
6348 | cat >conftest.$ac_ext <<_ACEOF | |
6349 | /* confdefs.h. */ | |
6350 | _ACEOF | |
6351 | cat confdefs.h >>conftest.$ac_ext | |
6352 | cat >>conftest.$ac_ext <<_ACEOF | |
6353 | /* end confdefs.h. */ | |
6354 | $ac_includes_default | |
631ef239 AC |
6355 | typedef long ac__type_sizeof_; |
6356 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6357 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6358 | #include <stdio.h> |
6359 | #include <stdlib.h> | |
6360 | int | |
6361 | main () | |
6362 | { | |
6363 | ||
6364 | FILE *f = fopen ("conftest.val", "w"); | |
6365 | if (! f) | |
631ef239 AC |
6366 | return 1; |
6367 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6368 | { |
631ef239 AC |
6369 | long int i = longval (); |
6370 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6371 | return 1; | |
212380e3 AC |
6372 | fprintf (f, "%ld\n", i); |
6373 | } | |
6374 | else | |
6375 | { | |
631ef239 AC |
6376 | unsigned long int i = ulongval (); |
6377 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6378 | return 1; | |
212380e3 AC |
6379 | fprintf (f, "%lu\n", i); |
6380 | } | |
631ef239 | 6381 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6382 | |
6383 | ; | |
6384 | return 0; | |
6385 | } | |
6386 | _ACEOF | |
6387 | rm -f conftest$ac_exeext | |
631ef239 AC |
6388 | if { (ac_try="$ac_link" |
6389 | case "(($ac_try" in | |
6390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6391 | *) ac_try_echo=$ac_try;; | |
6392 | esac | |
6393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6394 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6395 | ac_status=$? |
6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6398 | { (case "(($ac_try" in |
6399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6400 | *) ac_try_echo=$ac_try;; | |
6401 | esac | |
6402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6403 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6404 | ac_status=$? |
6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6406 | (exit $ac_status); }; }; then | |
6407 | ac_cv_sizeof_long=`cat conftest.val` | |
6408 | else | |
6409 | echo "$as_me: program exited with status $ac_status" >&5 | |
6410 | echo "$as_me: failed program was:" >&5 | |
6411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6412 | ||
6413 | ( exit $ac_status ) | |
631ef239 AC |
6414 | if test "$ac_cv_type_long" = yes; then |
6415 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6416 | See \`config.log' for more details." >&5 |
631ef239 | 6417 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6418 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6419 | { (exit 77); exit 77; }; } |
6420 | else | |
6421 | ac_cv_sizeof_long=0 | |
6422 | fi | |
212380e3 | 6423 | fi |
631ef239 | 6424 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6425 | fi |
6426 | rm -f conftest.val | |
212380e3 | 6427 | fi |
631ef239 AC |
6428 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6429 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6430 | ||
6431 | ||
6432 | ||
212380e3 AC |
6433 | cat >>confdefs.h <<_ACEOF |
6434 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6435 | _ACEOF | |
6436 | ||
6437 | ||
631ef239 AC |
6438 | { echo "$as_me:$LINENO: checking for long long" >&5 |
6439 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
212380e3 AC |
6440 | if test "${ac_cv_type_long_long+set}" = set; then |
6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6442 | else | |
6443 | cat >conftest.$ac_ext <<_ACEOF | |
6444 | /* confdefs.h. */ | |
6445 | _ACEOF | |
6446 | cat confdefs.h >>conftest.$ac_ext | |
6447 | cat >>conftest.$ac_ext <<_ACEOF | |
6448 | /* end confdefs.h. */ | |
6449 | $ac_includes_default | |
631ef239 | 6450 | typedef long long ac__type_new_; |
212380e3 AC |
6451 | int |
6452 | main () | |
6453 | { | |
631ef239 | 6454 | if ((ac__type_new_ *) 0) |
212380e3 | 6455 | return 0; |
631ef239 | 6456 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6457 | return 0; |
6458 | ; | |
6459 | return 0; | |
6460 | } | |
6461 | _ACEOF | |
6462 | rm -f conftest.$ac_objext | |
631ef239 AC |
6463 | if { (ac_try="$ac_compile" |
6464 | case "(($ac_try" in | |
6465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6466 | *) ac_try_echo=$ac_try;; | |
6467 | esac | |
6468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6469 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6470 | ac_status=$? |
6471 | grep -v '^ *+' conftest.er1 >conftest.err | |
6472 | rm -f conftest.er1 | |
6473 | cat conftest.err >&5 | |
6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6475 | (exit $ac_status); } && { |
6476 | test -z "$ac_c_werror_flag" || | |
6477 | test ! -s conftest.err | |
6478 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6479 | ac_cv_type_long_long=yes |
6480 | else | |
6481 | echo "$as_me: failed program was:" >&5 | |
6482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6483 | ||
631ef239 | 6484 | ac_cv_type_long_long=no |
212380e3 | 6485 | fi |
631ef239 AC |
6486 | |
6487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6488 | fi |
631ef239 AC |
6489 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6490 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
212380e3 | 6491 | |
631ef239 AC |
6492 | # The cast to long int works around a bug in the HP C Compiler |
6493 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6494 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6495 | # This bug is HP SR number 8606223364. | |
6496 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6497 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
212380e3 AC |
6498 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
6499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6500 | else | |
212380e3 AC |
6501 | if test "$cross_compiling" = yes; then |
6502 | # Depending upon the size, compute the lo and hi bounds. | |
6503 | cat >conftest.$ac_ext <<_ACEOF | |
6504 | /* confdefs.h. */ | |
6505 | _ACEOF | |
6506 | cat confdefs.h >>conftest.$ac_ext | |
6507 | cat >>conftest.$ac_ext <<_ACEOF | |
6508 | /* end confdefs.h. */ | |
6509 | $ac_includes_default | |
631ef239 | 6510 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6511 | int |
6512 | main () | |
6513 | { | |
631ef239 | 6514 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6515 | test_array [0] = 0 |
6516 | ||
6517 | ; | |
6518 | return 0; | |
6519 | } | |
6520 | _ACEOF | |
6521 | rm -f conftest.$ac_objext | |
631ef239 AC |
6522 | if { (ac_try="$ac_compile" |
6523 | case "(($ac_try" in | |
6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6525 | *) ac_try_echo=$ac_try;; | |
6526 | esac | |
6527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6528 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6529 | ac_status=$? |
6530 | grep -v '^ *+' conftest.er1 >conftest.err | |
6531 | rm -f conftest.er1 | |
6532 | cat conftest.err >&5 | |
6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6534 | (exit $ac_status); } && { |
6535 | test -z "$ac_c_werror_flag" || | |
6536 | test ! -s conftest.err | |
6537 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6538 | ac_lo=0 ac_mid=0 |
6539 | while :; do | |
6540 | cat >conftest.$ac_ext <<_ACEOF | |
6541 | /* confdefs.h. */ | |
6542 | _ACEOF | |
6543 | cat confdefs.h >>conftest.$ac_ext | |
6544 | cat >>conftest.$ac_ext <<_ACEOF | |
6545 | /* end confdefs.h. */ | |
6546 | $ac_includes_default | |
631ef239 | 6547 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6548 | int |
6549 | main () | |
6550 | { | |
631ef239 | 6551 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6552 | test_array [0] = 0 |
6553 | ||
6554 | ; | |
6555 | return 0; | |
6556 | } | |
6557 | _ACEOF | |
6558 | rm -f conftest.$ac_objext | |
631ef239 AC |
6559 | if { (ac_try="$ac_compile" |
6560 | case "(($ac_try" in | |
6561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6562 | *) ac_try_echo=$ac_try;; | |
6563 | esac | |
6564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6565 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6566 | ac_status=$? |
6567 | grep -v '^ *+' conftest.er1 >conftest.err | |
6568 | rm -f conftest.er1 | |
6569 | cat conftest.err >&5 | |
6570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6571 | (exit $ac_status); } && { |
6572 | test -z "$ac_c_werror_flag" || | |
6573 | test ! -s conftest.err | |
6574 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6575 | ac_hi=$ac_mid; break |
6576 | else | |
6577 | echo "$as_me: failed program was:" >&5 | |
6578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6579 | ||
631ef239 AC |
6580 | ac_lo=`expr $ac_mid + 1` |
6581 | if test $ac_lo -le $ac_mid; then | |
6582 | ac_lo= ac_hi= | |
6583 | break | |
6584 | fi | |
6585 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6586 | fi |
631ef239 AC |
6587 | |
6588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6589 | done |
6590 | else | |
6591 | echo "$as_me: failed program was:" >&5 | |
6592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6593 | ||
631ef239 | 6594 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6595 | /* confdefs.h. */ |
6596 | _ACEOF | |
6597 | cat confdefs.h >>conftest.$ac_ext | |
6598 | cat >>conftest.$ac_ext <<_ACEOF | |
6599 | /* end confdefs.h. */ | |
6600 | $ac_includes_default | |
631ef239 | 6601 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6602 | int |
6603 | main () | |
6604 | { | |
631ef239 | 6605 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6606 | test_array [0] = 0 |
6607 | ||
6608 | ; | |
6609 | return 0; | |
6610 | } | |
6611 | _ACEOF | |
6612 | rm -f conftest.$ac_objext | |
631ef239 AC |
6613 | if { (ac_try="$ac_compile" |
6614 | case "(($ac_try" in | |
6615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6616 | *) ac_try_echo=$ac_try;; | |
6617 | esac | |
6618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6619 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6620 | ac_status=$? |
6621 | grep -v '^ *+' conftest.er1 >conftest.err | |
6622 | rm -f conftest.er1 | |
6623 | cat conftest.err >&5 | |
6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6625 | (exit $ac_status); } && { |
6626 | test -z "$ac_c_werror_flag" || | |
6627 | test ! -s conftest.err | |
6628 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6629 | ac_hi=-1 ac_mid=-1 |
6630 | while :; do | |
6631 | cat >conftest.$ac_ext <<_ACEOF | |
6632 | /* confdefs.h. */ | |
6633 | _ACEOF | |
6634 | cat confdefs.h >>conftest.$ac_ext | |
6635 | cat >>conftest.$ac_ext <<_ACEOF | |
6636 | /* end confdefs.h. */ | |
6637 | $ac_includes_default | |
631ef239 | 6638 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6639 | int |
6640 | main () | |
6641 | { | |
631ef239 | 6642 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6643 | test_array [0] = 0 |
6644 | ||
6645 | ; | |
6646 | return 0; | |
6647 | } | |
6648 | _ACEOF | |
6649 | rm -f conftest.$ac_objext | |
631ef239 AC |
6650 | if { (ac_try="$ac_compile" |
6651 | case "(($ac_try" in | |
6652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6653 | *) ac_try_echo=$ac_try;; | |
6654 | esac | |
6655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6656 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6657 | ac_status=$? |
6658 | grep -v '^ *+' conftest.er1 >conftest.err | |
6659 | rm -f conftest.er1 | |
6660 | cat conftest.err >&5 | |
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6662 | (exit $ac_status); } && { |
6663 | test -z "$ac_c_werror_flag" || | |
6664 | test ! -s conftest.err | |
6665 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6666 | ac_lo=$ac_mid; break |
6667 | else | |
6668 | echo "$as_me: failed program was:" >&5 | |
6669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6670 | ||
631ef239 AC |
6671 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6672 | if test $ac_mid -le $ac_hi; then | |
6673 | ac_lo= ac_hi= | |
6674 | break | |
6675 | fi | |
6676 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6677 | fi |
631ef239 AC |
6678 | |
6679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6680 | done |
6681 | else | |
6682 | echo "$as_me: failed program was:" >&5 | |
6683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6684 | ||
631ef239 | 6685 | ac_lo= ac_hi= |
212380e3 | 6686 | fi |
631ef239 AC |
6687 | |
6688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6689 | fi |
631ef239 AC |
6690 | |
6691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6692 | # Binary search between lo and hi bounds. |
6693 | while test "x$ac_lo" != "x$ac_hi"; do | |
6694 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6695 | cat >conftest.$ac_ext <<_ACEOF | |
6696 | /* confdefs.h. */ | |
6697 | _ACEOF | |
6698 | cat confdefs.h >>conftest.$ac_ext | |
6699 | cat >>conftest.$ac_ext <<_ACEOF | |
6700 | /* end confdefs.h. */ | |
6701 | $ac_includes_default | |
631ef239 | 6702 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6703 | int |
6704 | main () | |
6705 | { | |
631ef239 | 6706 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6707 | test_array [0] = 0 |
6708 | ||
6709 | ; | |
6710 | return 0; | |
6711 | } | |
6712 | _ACEOF | |
6713 | rm -f conftest.$ac_objext | |
631ef239 AC |
6714 | if { (ac_try="$ac_compile" |
6715 | case "(($ac_try" in | |
6716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6717 | *) ac_try_echo=$ac_try;; | |
6718 | esac | |
6719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6720 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6721 | ac_status=$? |
6722 | grep -v '^ *+' conftest.er1 >conftest.err | |
6723 | rm -f conftest.er1 | |
6724 | cat conftest.err >&5 | |
6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6726 | (exit $ac_status); } && { |
6727 | test -z "$ac_c_werror_flag" || | |
6728 | test ! -s conftest.err | |
6729 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6730 | ac_hi=$ac_mid |
6731 | else | |
6732 | echo "$as_me: failed program was:" >&5 | |
6733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6734 | ||
631ef239 | 6735 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6736 | fi |
631ef239 AC |
6737 | |
6738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6739 | done |
6740 | case $ac_lo in | |
6741 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
631ef239 AC |
6742 | '') if test "$ac_cv_type_long_long" = yes; then |
6743 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6744 | See \`config.log' for more details." >&5 |
631ef239 | 6745 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6746 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6747 | { (exit 77); exit 77; }; } |
6748 | else | |
6749 | ac_cv_sizeof_long_long=0 | |
6750 | fi ;; | |
212380e3 | 6751 | esac |
212380e3 AC |
6752 | else |
6753 | cat >conftest.$ac_ext <<_ACEOF | |
6754 | /* confdefs.h. */ | |
6755 | _ACEOF | |
6756 | cat confdefs.h >>conftest.$ac_ext | |
6757 | cat >>conftest.$ac_ext <<_ACEOF | |
6758 | /* end confdefs.h. */ | |
6759 | $ac_includes_default | |
631ef239 AC |
6760 | typedef long long ac__type_sizeof_; |
6761 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6762 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6763 | #include <stdio.h> |
6764 | #include <stdlib.h> | |
6765 | int | |
6766 | main () | |
6767 | { | |
6768 | ||
6769 | FILE *f = fopen ("conftest.val", "w"); | |
6770 | if (! f) | |
631ef239 AC |
6771 | return 1; |
6772 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6773 | { |
631ef239 AC |
6774 | long int i = longval (); |
6775 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6776 | return 1; | |
212380e3 AC |
6777 | fprintf (f, "%ld\n", i); |
6778 | } | |
6779 | else | |
6780 | { | |
631ef239 AC |
6781 | unsigned long int i = ulongval (); |
6782 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6783 | return 1; | |
212380e3 AC |
6784 | fprintf (f, "%lu\n", i); |
6785 | } | |
631ef239 | 6786 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6787 | |
6788 | ; | |
6789 | return 0; | |
6790 | } | |
6791 | _ACEOF | |
6792 | rm -f conftest$ac_exeext | |
631ef239 AC |
6793 | if { (ac_try="$ac_link" |
6794 | case "(($ac_try" in | |
6795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6796 | *) ac_try_echo=$ac_try;; | |
6797 | esac | |
6798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6799 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6800 | ac_status=$? |
6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6802 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6803 | { (case "(($ac_try" in |
6804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6805 | *) ac_try_echo=$ac_try;; | |
6806 | esac | |
6807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6808 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6809 | ac_status=$? |
6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6811 | (exit $ac_status); }; }; then | |
6812 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6813 | else | |
6814 | echo "$as_me: program exited with status $ac_status" >&5 | |
6815 | echo "$as_me: failed program was:" >&5 | |
6816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6817 | ||
6818 | ( exit $ac_status ) | |
631ef239 AC |
6819 | if test "$ac_cv_type_long_long" = yes; then |
6820 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6821 | See \`config.log' for more details." >&5 |
631ef239 | 6822 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6823 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6824 | { (exit 77); exit 77; }; } |
6825 | else | |
6826 | ac_cv_sizeof_long_long=0 | |
6827 | fi | |
212380e3 | 6828 | fi |
631ef239 | 6829 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6830 | fi |
6831 | rm -f conftest.val | |
212380e3 | 6832 | fi |
631ef239 AC |
6833 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6834 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6835 | ||
6836 | ||
6837 | ||
212380e3 AC |
6838 | cat >>confdefs.h <<_ACEOF |
6839 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6840 | _ACEOF | |
6841 | ||
6842 | ||
6843 | ||
6844 | ||
631ef239 AC |
6845 | { echo "$as_me:$LINENO: checking the system's memory page size" >&5 |
6846 | echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; } | |
212380e3 AC |
6847 | pagesize="no" |
6848 | if test "$cross_compiling" = yes; then | |
6849 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
6850 | See \`config.log' for more details." >&5 | |
6851 | echo "$as_me: error: cannot run test program while cross compiling | |
6852 | See \`config.log' for more details." >&2;} | |
6853 | { (exit 1); exit 1; }; } | |
6854 | else | |
6855 | cat >conftest.$ac_ext <<_ACEOF | |
6856 | /* confdefs.h. */ | |
6857 | _ACEOF | |
6858 | cat confdefs.h >>conftest.$ac_ext | |
6859 | cat >>conftest.$ac_ext <<_ACEOF | |
6860 | /* end confdefs.h. */ | |
6861 | ||
6862 | #include <stdio.h> | |
6863 | #if HAVE_UNISTD_H | |
6864 | # include <unistd.h> | |
6865 | #endif | |
6866 | ||
6867 | int main(void) { | |
6868 | FILE *fp = fopen("conftest.malloc", "w"); | |
6869 | ||
6870 | if (fp != NULL) { | |
6871 | fprintf(fp, "%d\n", getpagesize()); | |
6872 | fclose(fp); | |
6873 | } else | |
6874 | exit(1); | |
6875 | exit(0); | |
6876 | } | |
6877 | _ACEOF | |
6878 | rm -f conftest$ac_exeext | |
631ef239 AC |
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>&5 | |
212380e3 AC |
6886 | ac_status=$? |
6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6889 | { (case "(($ac_try" in |
6890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6891 | *) ac_try_echo=$ac_try;; | |
6892 | esac | |
6893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6894 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6895 | ac_status=$? |
6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6897 | (exit $ac_status); }; }; then | |
6898 | ||
6899 | if test -f "conftest.malloc" ; then | |
6900 | pagesize=`cat conftest.malloc` | |
6901 | fi | |
6902 | ||
6903 | else | |
6904 | echo "$as_me: program exited with status $ac_status" >&5 | |
6905 | echo "$as_me: failed program was:" >&5 | |
6906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6907 | ||
6908 | fi | |
631ef239 | 6909 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 6910 | fi |
631ef239 AC |
6911 | |
6912 | ||
212380e3 | 6913 | if test "$pagesize" != "no" ; then |
631ef239 AC |
6914 | { echo "$as_me:$LINENO: result: $pagesize" >&5 |
6915 | echo "${ECHO_T}$pagesize" >&6; } | |
212380e3 AC |
6916 | else |
6917 | if test "$ac_cv_sizeof_int" = "4" ; then | |
6918 | pagesize=4096 | |
6919 | else | |
6920 | pagesize=8192 | |
6921 | fi | |
631ef239 AC |
6922 | { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5 |
6923 | echo "${ECHO_T}$pagesize (guessing)" >&6; } | |
212380e3 AC |
6924 | fi |
6925 | ||
6926 | cat >>confdefs.h <<_ACEOF | |
6927 | #define MALLOC_PAGESIZE $pagesize | |
6928 | _ACEOF | |
6929 | ||
6930 | ||
6931 | ||
631ef239 AC |
6932 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
6933 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
212380e3 AC |
6934 | if test "${ac_cv_search_socket+set}" = set; then |
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6936 | else | |
6937 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
6938 | cat >conftest.$ac_ext <<_ACEOF |
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 | |
212380e3 AC |
6951 | char socket (); |
6952 | int | |
6953 | main () | |
6954 | { | |
631ef239 | 6955 | return socket (); |
212380e3 AC |
6956 | ; |
6957 | return 0; | |
6958 | } | |
6959 | _ACEOF | |
631ef239 AC |
6960 | for ac_lib in '' socket; 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_socket=$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_socket+set}" = set; then | |
6996 | break | |
6997 | fi | |
6998 | done | |
6999 | if test "${ac_cv_search_socket+set}" = set; then | |
7000 | : | |
7001 | else | |
7002 | ac_cv_search_socket=no | |
7003 | fi | |
7004 | rm conftest.$ac_ext | |
7005 | LIBS=$ac_func_search_save_LIBS | |
7006 | fi | |
7007 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
7008 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
7009 | ac_res=$ac_cv_search_socket | |
7010 | if test "$ac_res" != no; then | |
7011 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7012 | ||
7013 | else | |
7014 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
7015 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
7016 | { (exit 1); exit 1; }; } | |
7017 | fi | |
7018 | ||
7019 | ||
7020 | if test x"$SUN" = xyes; then | |
7021 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
7022 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
7023 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7025 | else | |
7026 | ac_func_search_save_LIBS=$LIBS | |
7027 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
7028 | /* confdefs.h. */ |
7029 | _ACEOF | |
7030 | cat confdefs.h >>conftest.$ac_ext | |
7031 | cat >>conftest.$ac_ext <<_ACEOF | |
7032 | /* end confdefs.h. */ | |
7033 | ||
631ef239 AC |
7034 | /* Override any GCC internal prototype to avoid an error. |
7035 | Use char because int might match the return type of a GCC | |
7036 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7037 | #ifdef __cplusplus |
7038 | extern "C" | |
7039 | #endif | |
631ef239 | 7040 | char inet_ntoa (); |
212380e3 AC |
7041 | int |
7042 | main () | |
7043 | { | |
631ef239 | 7044 | return inet_ntoa (); |
212380e3 AC |
7045 | ; |
7046 | return 0; | |
7047 | } | |
7048 | _ACEOF | |
631ef239 AC |
7049 | for ac_lib in '' nsl; do |
7050 | if test -z "$ac_lib"; then | |
7051 | ac_res="none required" | |
7052 | else | |
7053 | ac_res=-l$ac_lib | |
7054 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7055 | fi | |
7056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7057 | if { (ac_try="$ac_link" | |
7058 | case "(($ac_try" in | |
7059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7060 | *) ac_try_echo=$ac_try;; | |
7061 | esac | |
7062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7063 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7064 | ac_status=$? |
7065 | grep -v '^ *+' conftest.er1 >conftest.err | |
7066 | rm -f conftest.er1 | |
7067 | cat conftest.err >&5 | |
7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7069 | (exit $ac_status); } && { |
7070 | test -z "$ac_c_werror_flag" || | |
7071 | test ! -s conftest.err | |
7072 | } && test -s conftest$ac_exeext && | |
7073 | $as_test_x conftest$ac_exeext; then | |
7074 | ac_cv_search_inet_ntoa=$ac_res | |
212380e3 AC |
7075 | else |
7076 | echo "$as_me: failed program was:" >&5 | |
7077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7078 | ||
631ef239 | 7079 | |
212380e3 | 7080 | fi |
631ef239 AC |
7081 | |
7082 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7083 | conftest$ac_exeext | |
7084 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7085 | break | |
7086 | fi | |
7087 | done | |
7088 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7089 | : | |
7090 | else | |
7091 | ac_cv_search_inet_ntoa=no | |
212380e3 | 7092 | fi |
631ef239 | 7093 | rm conftest.$ac_ext |
212380e3 AC |
7094 | LIBS=$ac_func_search_save_LIBS |
7095 | fi | |
631ef239 AC |
7096 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 |
7097 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7098 | ac_res=$ac_cv_search_inet_ntoa | |
7099 | if test "$ac_res" != no; then | |
7100 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7101 | |
7102 | else | |
631ef239 AC |
7103 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 |
7104 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
212380e3 AC |
7105 | { (exit 1); exit 1; }; } |
7106 | fi | |
7107 | ||
631ef239 | 7108 | fi |
212380e3 | 7109 | |
631ef239 AC |
7110 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
7111 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
7112 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then | |
212380e3 AC |
7113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7114 | else | |
631ef239 | 7115 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
7116 | /* confdefs.h. */ |
7117 | _ACEOF | |
7118 | cat confdefs.h >>conftest.$ac_ext | |
7119 | cat >>conftest.$ac_ext <<_ACEOF | |
7120 | /* end confdefs.h. */ | |
631ef239 AC |
7121 | #include <sys/types.h> |
7122 | #include <sys/socket.h> | |
7123 | ||
212380e3 | 7124 | |
212380e3 AC |
7125 | int |
7126 | main () | |
7127 | { | |
631ef239 AC |
7128 | static struct sockaddr ac_aggr; |
7129 | if (ac_aggr.sa_len) | |
7130 | return 0; | |
212380e3 AC |
7131 | ; |
7132 | return 0; | |
7133 | } | |
7134 | _ACEOF | |
7135 | rm -f conftest.$ac_objext | |
631ef239 AC |
7136 | if { (ac_try="$ac_compile" |
7137 | case "(($ac_try" in | |
7138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7139 | *) ac_try_echo=$ac_try;; | |
7140 | esac | |
7141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7142 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7143 | ac_status=$? |
7144 | grep -v '^ *+' conftest.er1 >conftest.err | |
7145 | rm -f conftest.er1 | |
7146 | cat conftest.err >&5 | |
7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7148 | (exit $ac_status); } && { |
7149 | test -z "$ac_c_werror_flag" || | |
7150 | test ! -s conftest.err | |
7151 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7152 | ac_cv_member_struct_sockaddr_sa_len=yes |
7153 | else | |
7154 | echo "$as_me: failed program was:" >&5 | |
7155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7156 | ||
631ef239 | 7157 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
7158 | /* confdefs.h. */ |
7159 | _ACEOF | |
7160 | cat confdefs.h >>conftest.$ac_ext | |
7161 | cat >>conftest.$ac_ext <<_ACEOF | |
7162 | /* end confdefs.h. */ | |
7163 | #include <sys/types.h> | |
7164 | #include <sys/socket.h> | |
7165 | ||
7166 | ||
7167 | int | |
7168 | main () | |
7169 | { | |
7170 | static struct sockaddr ac_aggr; | |
7171 | if (sizeof ac_aggr.sa_len) | |
7172 | return 0; | |
7173 | ; | |
7174 | return 0; | |
7175 | } | |
7176 | _ACEOF | |
7177 | rm -f conftest.$ac_objext | |
631ef239 AC |
7178 | if { (ac_try="$ac_compile" |
7179 | case "(($ac_try" in | |
7180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7181 | *) ac_try_echo=$ac_try;; | |
7182 | esac | |
7183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7184 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7185 | ac_status=$? |
7186 | grep -v '^ *+' conftest.er1 >conftest.err | |
7187 | rm -f conftest.er1 | |
7188 | cat conftest.err >&5 | |
7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7190 | (exit $ac_status); } && { |
7191 | test -z "$ac_c_werror_flag" || | |
7192 | test ! -s conftest.err | |
7193 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7194 | ac_cv_member_struct_sockaddr_sa_len=yes |
7195 | else | |
7196 | echo "$as_me: failed program was:" >&5 | |
7197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7198 | ||
631ef239 | 7199 | ac_cv_member_struct_sockaddr_sa_len=no |
212380e3 | 7200 | fi |
631ef239 AC |
7201 | |
7202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7203 | fi |
631ef239 AC |
7204 | |
7205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7206 | fi |
631ef239 AC |
7207 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
7208 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
212380e3 AC |
7209 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
7210 | ||
7211 | cat >>confdefs.h <<\_ACEOF | |
7212 | #define SOCKADDR_IN_HAS_LEN 1 | |
7213 | _ACEOF | |
7214 | ||
7215 | fi | |
7216 | ||
7217 | ||
631ef239 AC |
7218 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7219 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
212380e3 AC |
7220 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7222 | else | |
7223 | cat >conftest.$ac_ext <<_ACEOF | |
7224 | /* confdefs.h. */ | |
7225 | _ACEOF | |
7226 | cat confdefs.h >>conftest.$ac_ext | |
7227 | cat >>conftest.$ac_ext <<_ACEOF | |
7228 | /* end confdefs.h. */ | |
7229 | #include <sys/types.h> | |
7230 | #include <sys/socket.h> | |
7231 | ||
631ef239 | 7232 | typedef socklen_t ac__type_new_; |
212380e3 AC |
7233 | int |
7234 | main () | |
7235 | { | |
631ef239 | 7236 | if ((ac__type_new_ *) 0) |
212380e3 | 7237 | return 0; |
631ef239 | 7238 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7239 | return 0; |
7240 | ; | |
7241 | return 0; | |
7242 | } | |
7243 | _ACEOF | |
7244 | rm -f conftest.$ac_objext | |
631ef239 AC |
7245 | if { (ac_try="$ac_compile" |
7246 | case "(($ac_try" in | |
7247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7248 | *) ac_try_echo=$ac_try;; | |
7249 | esac | |
7250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7251 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7252 | ac_status=$? |
7253 | grep -v '^ *+' conftest.er1 >conftest.err | |
7254 | rm -f conftest.er1 | |
7255 | cat conftest.err >&5 | |
7256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7257 | (exit $ac_status); } && { |
7258 | test -z "$ac_c_werror_flag" || | |
7259 | test ! -s conftest.err | |
7260 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7261 | ac_cv_type_socklen_t=yes |
7262 | else | |
7263 | echo "$as_me: failed program was:" >&5 | |
7264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7265 | ||
631ef239 | 7266 | ac_cv_type_socklen_t=no |
212380e3 | 7267 | fi |
631ef239 AC |
7268 | |
7269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7270 | fi |
631ef239 AC |
7271 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7272 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
212380e3 AC |
7273 | if test $ac_cv_type_socklen_t = yes; then |
7274 | : | |
7275 | else | |
7276 | ||
7277 | cat >>confdefs.h <<\_ACEOF | |
7278 | #define socklen_t unsigned int | |
7279 | _ACEOF | |
7280 | ||
7281 | fi | |
7282 | ||
7283 | ||
631ef239 | 7284 | # Check whether --enable-ipv6 was given. |
212380e3 | 7285 | if test "${enable_ipv6+set}" = set; then |
631ef239 | 7286 | enableval=$enable_ipv6; ipv6=$enableval |
212380e3 AC |
7287 | else |
7288 | ipv6=no | |
631ef239 AC |
7289 | fi |
7290 | ||
212380e3 AC |
7291 | |
7292 | if test $ipv6 != yes; then | |
7293 | have_v6="no" | |
7294 | else | |
631ef239 AC |
7295 | { echo "$as_me:$LINENO: checking for core IPv6 support" >&5 |
7296 | echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; } | |
212380e3 AC |
7297 | |
7298 | cat >conftest.$ac_ext <<_ACEOF | |
7299 | /* confdefs.h. */ | |
7300 | _ACEOF | |
7301 | cat confdefs.h >>conftest.$ac_ext | |
7302 | cat >>conftest.$ac_ext <<_ACEOF | |
7303 | /* end confdefs.h. */ | |
7304 | #define IN_AUTOCONF | |
7305 | #include <sys/types.h> | |
7306 | #include <sys/socket.h> | |
7307 | #include <netinet/in.h> | |
7308 | int | |
7309 | main () | |
7310 | { | |
7311 | struct sockaddr_in6 s; | |
7312 | s.sin6_family = 0; | |
7313 | ||
7314 | ; | |
7315 | return 0; | |
7316 | } | |
7317 | _ACEOF | |
7318 | rm -f conftest.$ac_objext | |
631ef239 AC |
7319 | if { (ac_try="$ac_compile" |
7320 | case "(($ac_try" in | |
7321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7322 | *) ac_try_echo=$ac_try;; | |
7323 | esac | |
7324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7325 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7326 | ac_status=$? |
7327 | grep -v '^ *+' conftest.er1 >conftest.err | |
7328 | rm -f conftest.er1 | |
7329 | cat conftest.err >&5 | |
7330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7331 | (exit $ac_status); } && { |
7332 | test -z "$ac_c_werror_flag" || | |
7333 | test ! -s conftest.err | |
7334 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7335 | |
7336 | if test "$CYGWIN" = "yes"; then | |
631ef239 AC |
7337 | { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5 |
7338 | echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; } | |
212380e3 AC |
7339 | have_v6=no |
7340 | else | |
7341 | have_v6=yes | |
7342 | ||
7343 | cat >>confdefs.h <<\_ACEOF | |
7344 | #define IPV6 1 | |
7345 | _ACEOF | |
7346 | ||
631ef239 AC |
7347 | { echo "$as_me:$LINENO: result: yes" >&5 |
7348 | echo "${ECHO_T}yes" >&6; } | |
7349 | { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5 | |
7350 | echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; } | |
212380e3 AC |
7351 | cat >conftest.$ac_ext <<_ACEOF |
7352 | /* confdefs.h. */ | |
7353 | _ACEOF | |
7354 | cat confdefs.h >>conftest.$ac_ext | |
7355 | cat >>conftest.$ac_ext <<_ACEOF | |
7356 | /* end confdefs.h. */ | |
7357 | #define IN_AUTOCONF | |
7358 | #include <sys/types.h> | |
7359 | #include <sys/socket.h> | |
7360 | #include <netinet/in.h> | |
7361 | int | |
7362 | main () | |
7363 | { | |
7364 | struct in6_addr a = in6addr_any; | |
7365 | ||
7366 | ; | |
7367 | return 0; | |
7368 | } | |
7369 | _ACEOF | |
7370 | rm -f conftest.$ac_objext | |
631ef239 AC |
7371 | if { (ac_try="$ac_compile" |
7372 | case "(($ac_try" in | |
7373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7374 | *) ac_try_echo=$ac_try;; | |
7375 | esac | |
7376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7377 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7378 | ac_status=$? |
7379 | grep -v '^ *+' conftest.er1 >conftest.err | |
7380 | rm -f conftest.er1 | |
7381 | cat conftest.err >&5 | |
7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7383 | (exit $ac_status); } && { |
7384 | test -z "$ac_c_werror_flag" || | |
7385 | test ! -s conftest.err | |
7386 | } && test -s conftest.$ac_objext; then | |
7387 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7388 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7389 | else |
7390 | echo "$as_me: failed program was:" >&5 | |
7391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7392 | ||
7393 | ||
631ef239 AC |
7394 | { echo "$as_me:$LINENO: result: no" >&5 |
7395 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7396 | |
7397 | cat >>confdefs.h <<\_ACEOF | |
7398 | #define NO_IN6ADDR_ANY 1 | |
7399 | _ACEOF | |
7400 | ||
7401 | inet_misc=1 | |
7402 | ||
7403 | ||
7404 | fi | |
631ef239 AC |
7405 | |
7406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7407 | fi |
7408 | ||
7409 | else | |
7410 | echo "$as_me: failed program was:" >&5 | |
7411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7412 | ||
631ef239 AC |
7413 | { echo "$as_me:$LINENO: result: no" >&5 |
7414 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7415 | have_v6="no" |
7416 | fi | |
631ef239 AC |
7417 | |
7418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7419 | fi |
7420 | ||
631ef239 AC |
7421 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
7422 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
212380e3 AC |
7423 | if test "${ac_cv_search_crypt+set}" = set; then |
7424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7425 | else | |
7426 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
7427 | cat >conftest.$ac_ext <<_ACEOF |
7428 | /* confdefs.h. */ | |
7429 | _ACEOF | |
7430 | cat confdefs.h >>conftest.$ac_ext | |
7431 | cat >>conftest.$ac_ext <<_ACEOF | |
7432 | /* end confdefs.h. */ | |
7433 | ||
631ef239 AC |
7434 | /* Override any GCC internal prototype to avoid an error. |
7435 | Use char because int might match the return type of a GCC | |
7436 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7437 | #ifdef __cplusplus |
7438 | extern "C" | |
7439 | #endif | |
212380e3 AC |
7440 | char crypt (); |
7441 | int | |
7442 | main () | |
7443 | { | |
631ef239 | 7444 | return crypt (); |
212380e3 AC |
7445 | ; |
7446 | return 0; | |
7447 | } | |
7448 | _ACEOF | |
631ef239 AC |
7449 | for ac_lib in '' crypt descrypt; do |
7450 | if test -z "$ac_lib"; then | |
7451 | ac_res="none required" | |
7452 | else | |
7453 | ac_res=-l$ac_lib | |
7454 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7455 | fi | |
7456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7457 | if { (ac_try="$ac_link" | |
7458 | case "(($ac_try" in | |
7459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7460 | *) ac_try_echo=$ac_try;; | |
7461 | esac | |
7462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7463 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7464 | ac_status=$? |
7465 | grep -v '^ *+' conftest.er1 >conftest.err | |
7466 | rm -f conftest.er1 | |
7467 | cat conftest.err >&5 | |
7468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7469 | (exit $ac_status); } && { |
7470 | test -z "$ac_c_werror_flag" || | |
7471 | test ! -s conftest.err | |
7472 | } && test -s conftest$ac_exeext && | |
7473 | $as_test_x conftest$ac_exeext; then | |
7474 | ac_cv_search_crypt=$ac_res | |
212380e3 AC |
7475 | else |
7476 | echo "$as_me: failed program was:" >&5 | |
7477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7478 | ||
212380e3 | 7479 | |
631ef239 | 7480 | fi |
212380e3 | 7481 | |
631ef239 AC |
7482 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7483 | conftest$ac_exeext | |
7484 | if test "${ac_cv_search_crypt+set}" = set; then | |
7485 | break | |
212380e3 | 7486 | fi |
631ef239 AC |
7487 | done |
7488 | if test "${ac_cv_search_crypt+set}" = set; then | |
7489 | : | |
7490 | else | |
7491 | ac_cv_search_crypt=no | |
212380e3 | 7492 | fi |
631ef239 | 7493 | rm conftest.$ac_ext |
212380e3 AC |
7494 | LIBS=$ac_func_search_save_LIBS |
7495 | fi | |
631ef239 AC |
7496 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
7497 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7498 | ac_res=$ac_cv_search_crypt | |
7499 | if test "$ac_res" != no; then | |
7500 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7501 | |
7502 | fi | |
7503 | ||
7504 | ||
7505 | CRYPT_LIB=$ac_cv_search_crypt | |
7506 | ||
7507 | if test "$CRYPT_LIB" = "none required"; then | |
7508 | unset CRYPT_LIB | |
7509 | elif test "$CRYPT_LIB" = no; then | |
7510 | unset CRYPT_LIB | |
7511 | fi | |
7512 | ||
7513 | ||
7514 | ||
7515 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7516 | VICONF=viconf | |
7517 | else | |
7518 | VICONF="" | |
7519 | fi | |
7520 | ||
7521 | ||
7522 | ||
631ef239 AC |
7523 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
7524 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
212380e3 AC |
7525 | if test "${gcc_cv_header_string+set}" = set; then |
7526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7527 | else | |
7528 | ||
7529 | cat >conftest.$ac_ext <<_ACEOF | |
7530 | #include <string.h> | |
7531 | #include <strings.h> | |
7532 | _ACEOF | |
7533 | rm -f conftest.$ac_objext | |
631ef239 AC |
7534 | if { (ac_try="$ac_compile" |
7535 | case "(($ac_try" in | |
7536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7537 | *) ac_try_echo=$ac_try;; | |
7538 | esac | |
7539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7540 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7541 | ac_status=$? |
7542 | grep -v '^ *+' conftest.er1 >conftest.err | |
7543 | rm -f conftest.er1 | |
7544 | cat conftest.err >&5 | |
7545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7546 | (exit $ac_status); } && { |
7547 | test -z "$ac_c_werror_flag" || | |
7548 | test ! -s conftest.err | |
7549 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7550 | gcc_cv_header_string=yes |
7551 | else | |
7552 | echo "$as_me: failed program was:" >&5 | |
7553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7554 | ||
631ef239 | 7555 | gcc_cv_header_string=no |
212380e3 | 7556 | fi |
631ef239 AC |
7557 | |
7558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7559 | |
7560 | fi | |
631ef239 AC |
7561 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
7562 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
212380e3 AC |
7563 | |
7564 | if test "$gcc_cv_header_string" = "yes"; then | |
7565 | ||
7566 | cat >>confdefs.h <<\_ACEOF | |
7567 | #define STRING_WITH_STRINGS 1 | |
7568 | _ACEOF | |
7569 | ||
7570 | fi | |
7571 | ||
631ef239 AC |
7572 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7573 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
7574 | if test "${ac_cv_c_bigendian+set}" = set; then |
7575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7576 | else | |
7577 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7578 | cat >conftest.$ac_ext <<_ACEOF | |
7579 | /* confdefs.h. */ | |
7580 | _ACEOF | |
7581 | cat confdefs.h >>conftest.$ac_ext | |
7582 | cat >>conftest.$ac_ext <<_ACEOF | |
7583 | /* end confdefs.h. */ | |
7584 | #include <sys/types.h> | |
7585 | #include <sys/param.h> | |
7586 | ||
7587 | int | |
7588 | main () | |
7589 | { | |
631ef239 AC |
7590 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
7591 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
7592 | bogus endian macros |
7593 | #endif | |
7594 | ||
7595 | ; | |
7596 | return 0; | |
7597 | } | |
7598 | _ACEOF | |
7599 | rm -f conftest.$ac_objext | |
631ef239 AC |
7600 | if { (ac_try="$ac_compile" |
7601 | case "(($ac_try" in | |
7602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7603 | *) ac_try_echo=$ac_try;; | |
7604 | esac | |
7605 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7606 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7607 | ac_status=$? |
7608 | grep -v '^ *+' conftest.er1 >conftest.err | |
7609 | rm -f conftest.er1 | |
7610 | cat conftest.err >&5 | |
7611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7612 | (exit $ac_status); } && { |
7613 | test -z "$ac_c_werror_flag" || | |
7614 | test ! -s conftest.err | |
7615 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7616 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7617 | cat >conftest.$ac_ext <<_ACEOF | |
7618 | /* confdefs.h. */ | |
7619 | _ACEOF | |
7620 | cat confdefs.h >>conftest.$ac_ext | |
7621 | cat >>conftest.$ac_ext <<_ACEOF | |
7622 | /* end confdefs.h. */ | |
7623 | #include <sys/types.h> | |
7624 | #include <sys/param.h> | |
7625 | ||
7626 | int | |
7627 | main () | |
7628 | { | |
7629 | #if BYTE_ORDER != BIG_ENDIAN | |
7630 | not big endian | |
7631 | #endif | |
7632 | ||
7633 | ; | |
7634 | return 0; | |
7635 | } | |
7636 | _ACEOF | |
7637 | rm -f conftest.$ac_objext | |
631ef239 AC |
7638 | if { (ac_try="$ac_compile" |
7639 | case "(($ac_try" in | |
7640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7641 | *) ac_try_echo=$ac_try;; | |
7642 | esac | |
7643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7644 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7645 | ac_status=$? |
7646 | grep -v '^ *+' conftest.er1 >conftest.err | |
7647 | rm -f conftest.er1 | |
7648 | cat conftest.err >&5 | |
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7650 | (exit $ac_status); } && { |
7651 | test -z "$ac_c_werror_flag" || | |
7652 | test ! -s conftest.err | |
7653 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7654 | ac_cv_c_bigendian=yes |
7655 | else | |
7656 | echo "$as_me: failed program was:" >&5 | |
7657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7658 | ||
631ef239 | 7659 | ac_cv_c_bigendian=no |
212380e3 | 7660 | fi |
631ef239 AC |
7661 | |
7662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7663 | else |
7664 | echo "$as_me: failed program was:" >&5 | |
7665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7666 | ||
631ef239 | 7667 | # It does not; compile a test program. |
212380e3 AC |
7668 | if test "$cross_compiling" = yes; then |
7669 | # try to guess the endianness by grepping values into an object file | |
7670 | ac_cv_c_bigendian=unknown | |
7671 | cat >conftest.$ac_ext <<_ACEOF | |
7672 | /* confdefs.h. */ | |
7673 | _ACEOF | |
7674 | cat confdefs.h >>conftest.$ac_ext | |
7675 | cat >>conftest.$ac_ext <<_ACEOF | |
7676 | /* end confdefs.h. */ | |
631ef239 AC |
7677 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
7678 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 7679 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
7680 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
7681 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
7682 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
7683 | int | |
7684 | main () | |
7685 | { | |
7686 | _ascii (); _ebcdic (); | |
7687 | ; | |
7688 | return 0; | |
7689 | } | |
7690 | _ACEOF | |
7691 | rm -f conftest.$ac_objext | |
631ef239 AC |
7692 | if { (ac_try="$ac_compile" |
7693 | case "(($ac_try" in | |
7694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7695 | *) ac_try_echo=$ac_try;; | |
7696 | esac | |
7697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7698 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7699 | ac_status=$? |
7700 | grep -v '^ *+' conftest.er1 >conftest.err | |
7701 | rm -f conftest.er1 | |
7702 | cat conftest.err >&5 | |
7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7704 | (exit $ac_status); } && { |
7705 | test -z "$ac_c_werror_flag" || | |
7706 | test ! -s conftest.err | |
7707 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7708 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
7709 | ac_cv_c_bigendian=yes | |
7710 | fi | |
7711 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7712 | if test "$ac_cv_c_bigendian" = unknown; then | |
7713 | ac_cv_c_bigendian=no | |
7714 | else | |
7715 | # finding both strings is unlikely to happen, but who knows? | |
7716 | ac_cv_c_bigendian=unknown | |
7717 | fi | |
7718 | fi | |
7719 | else | |
7720 | echo "$as_me: failed program was:" >&5 | |
7721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7722 | ||
631ef239 | 7723 | |
212380e3 | 7724 | fi |
631ef239 AC |
7725 | |
7726 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7727 | else |
7728 | cat >conftest.$ac_ext <<_ACEOF | |
7729 | /* confdefs.h. */ | |
7730 | _ACEOF | |
7731 | cat confdefs.h >>conftest.$ac_ext | |
7732 | cat >>conftest.$ac_ext <<_ACEOF | |
7733 | /* end confdefs.h. */ | |
631ef239 | 7734 | $ac_includes_default |
212380e3 AC |
7735 | int |
7736 | main () | |
7737 | { | |
631ef239 | 7738 | |
212380e3 AC |
7739 | /* Are we little or big endian? From Harbison&Steele. */ |
7740 | union | |
7741 | { | |
631ef239 AC |
7742 | long int l; |
7743 | char c[sizeof (long int)]; | |
212380e3 AC |
7744 | } u; |
7745 | u.l = 1; | |
631ef239 AC |
7746 | return u.c[sizeof (long int) - 1] == 1; |
7747 | ||
7748 | ; | |
7749 | return 0; | |
212380e3 AC |
7750 | } |
7751 | _ACEOF | |
7752 | rm -f conftest$ac_exeext | |
631ef239 AC |
7753 | if { (ac_try="$ac_link" |
7754 | case "(($ac_try" in | |
7755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7756 | *) ac_try_echo=$ac_try;; | |
7757 | esac | |
7758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7759 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
7760 | ac_status=$? |
7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7762 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
7763 | { (case "(($ac_try" in |
7764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7765 | *) ac_try_echo=$ac_try;; | |
7766 | esac | |
7767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7768 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
7769 | ac_status=$? |
7770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7771 | (exit $ac_status); }; }; then | |
7772 | ac_cv_c_bigendian=no | |
7773 | else | |
7774 | echo "$as_me: program exited with status $ac_status" >&5 | |
7775 | echo "$as_me: failed program was:" >&5 | |
7776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7777 | ||
7778 | ( exit $ac_status ) | |
7779 | ac_cv_c_bigendian=yes | |
7780 | fi | |
631ef239 | 7781 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 7782 | fi |
631ef239 AC |
7783 | |
7784 | ||
212380e3 | 7785 | fi |
631ef239 AC |
7786 | |
7787 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7788 | fi |
631ef239 AC |
7789 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7790 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
7791 | case $ac_cv_c_bigendian in |
7792 | yes) | |
7793 | ||
7794 | cat >>confdefs.h <<\_ACEOF | |
7795 | #define WORDS_BIGENDIAN 1 | |
7796 | _ACEOF | |
7797 | ;; | |
7798 | no) | |
7799 | ;; | |
7800 | *) | |
7801 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7802 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7803 | echo "$as_me: error: unknown endianness | |
7804 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7805 | { (exit 1); exit 1; }; } ;; | |
7806 | esac | |
7807 | ||
7808 | ||
7809 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
631ef239 AC |
7810 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7811 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7812 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7814 | fi | |
631ef239 AC |
7815 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7816 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7817 | else |
7818 | # Is the header compilable? | |
631ef239 AC |
7819 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
7820 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
7821 | cat >conftest.$ac_ext <<_ACEOF |
7822 | /* confdefs.h. */ | |
7823 | _ACEOF | |
7824 | cat confdefs.h >>conftest.$ac_ext | |
7825 | cat >>conftest.$ac_ext <<_ACEOF | |
7826 | /* end confdefs.h. */ | |
7827 | $ac_includes_default | |
7828 | #include <stdarg.h> | |
7829 | _ACEOF | |
7830 | rm -f conftest.$ac_objext | |
631ef239 AC |
7831 | if { (ac_try="$ac_compile" |
7832 | case "(($ac_try" in | |
7833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7834 | *) ac_try_echo=$ac_try;; | |
7835 | esac | |
7836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7837 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7838 | ac_status=$? |
7839 | grep -v '^ *+' conftest.er1 >conftest.err | |
7840 | rm -f conftest.er1 | |
7841 | cat conftest.err >&5 | |
7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7843 | (exit $ac_status); } && { |
7844 | test -z "$ac_c_werror_flag" || | |
7845 | test ! -s conftest.err | |
7846 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7847 | ac_header_compiler=yes |
7848 | else | |
7849 | echo "$as_me: failed program was:" >&5 | |
7850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7851 | ||
631ef239 | 7852 | ac_header_compiler=no |
212380e3 | 7853 | fi |
631ef239 AC |
7854 | |
7855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7856 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7857 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
7858 | |
7859 | # Is the header present? | |
631ef239 AC |
7860 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
7861 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
7862 | cat >conftest.$ac_ext <<_ACEOF |
7863 | /* confdefs.h. */ | |
7864 | _ACEOF | |
7865 | cat confdefs.h >>conftest.$ac_ext | |
7866 | cat >>conftest.$ac_ext <<_ACEOF | |
7867 | /* end confdefs.h. */ | |
7868 | #include <stdarg.h> | |
7869 | _ACEOF | |
631ef239 AC |
7870 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7871 | case "(($ac_try" in | |
7872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7873 | *) ac_try_echo=$ac_try;; | |
7874 | esac | |
7875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7876 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
7877 | ac_status=$? |
7878 | grep -v '^ *+' conftest.er1 >conftest.err | |
7879 | rm -f conftest.er1 | |
7880 | cat conftest.err >&5 | |
7881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7882 | (exit $ac_status); } >/dev/null && { |
7883 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7884 | test ! -s conftest.err | |
7885 | }; then | |
212380e3 AC |
7886 | ac_header_preproc=yes |
7887 | else | |
7888 | echo "$as_me: failed program was:" >&5 | |
7889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7890 | ||
7891 | ac_header_preproc=no | |
7892 | fi | |
631ef239 | 7893 | |
212380e3 | 7894 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
7895 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7896 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
7897 | |
7898 | # So? What about this header? | |
7899 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7900 | yes:no: ) | |
7901 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7902 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7903 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7904 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7905 | ac_header_preproc=yes | |
7906 | ;; | |
7907 | no:yes:* ) | |
7908 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7909 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7910 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7911 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7912 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7913 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7914 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7915 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7916 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7917 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7918 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7919 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 7920 | |
212380e3 AC |
7921 | ;; |
7922 | esac | |
631ef239 AC |
7923 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7924 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7925 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7927 | else | |
7928 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7929 | fi | |
631ef239 AC |
7930 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7931 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7932 | |
7933 | fi | |
7934 | if test $ac_cv_header_stdarg_h = yes; then | |
7935 | : | |
7936 | else | |
7937 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5 | |
7938 | echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;} | |
7939 | { (exit 1); exit 1; }; } | |
7940 | fi | |
7941 | ||
7942 | ||
7943 | ||
7944 | ||
7945 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7946 | ||
631ef239 AC |
7947 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 |
7948 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
212380e3 AC |
7949 | save_CFLAGS=$CFLAGS |
7950 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7951 | ||
7952 | cat >conftest.$ac_ext <<_ACEOF | |
7953 | /* confdefs.h. */ | |
7954 | _ACEOF | |
7955 | cat confdefs.h >>conftest.$ac_ext | |
7956 | cat >>conftest.$ac_ext <<_ACEOF | |
7957 | /* end confdefs.h. */ | |
7958 | #include <string.h> | |
7959 | #include <stdlib.h> | |
7960 | int | |
7961 | main () | |
7962 | { | |
7963 | char *a = malloc(6); | |
7964 | strlcpy(a, "hello", 6); | |
7965 | ||
7966 | ; | |
7967 | return 0; | |
7968 | } | |
7969 | _ACEOF | |
7970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7971 | if { (ac_try="$ac_link" |
7972 | case "(($ac_try" in | |
7973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7974 | *) ac_try_echo=$ac_try;; | |
7975 | esac | |
7976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7977 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7978 | ac_status=$? |
7979 | grep -v '^ *+' conftest.er1 >conftest.err | |
7980 | rm -f conftest.er1 | |
7981 | cat conftest.err >&5 | |
7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7983 | (exit $ac_status); } && { |
7984 | test -z "$ac_c_werror_flag" || | |
7985 | test ! -s conftest.err | |
7986 | } && test -s conftest$ac_exeext && | |
7987 | $as_test_x conftest$ac_exeext; then | |
7988 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7989 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7990 | |
7991 | cat >>confdefs.h <<\_ACEOF | |
7992 | #define HAVE_STRLCPY 1 | |
7993 | _ACEOF | |
7994 | ||
7995 | else | |
7996 | echo "$as_me: failed program was:" >&5 | |
7997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7998 | ||
631ef239 AC |
7999 | { echo "$as_me:$LINENO: result: no" >&5 |
8000 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
8001 | |
8002 | fi | |
631ef239 AC |
8003 | |
8004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8005 | conftest$ac_exeext conftest.$ac_ext |
8006 | ||
631ef239 AC |
8007 | { echo "$as_me:$LINENO: checking for strlcat" >&5 |
8008 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
212380e3 AC |
8009 | cat >conftest.$ac_ext <<_ACEOF |
8010 | /* confdefs.h. */ | |
8011 | _ACEOF | |
8012 | cat confdefs.h >>conftest.$ac_ext | |
8013 | cat >>conftest.$ac_ext <<_ACEOF | |
8014 | /* end confdefs.h. */ | |
8015 | #include <string.h> | |
8016 | #include <stdlib.h> | |
8017 | int | |
8018 | main () | |
8019 | { | |
8020 | char *a = malloc(6); | |
8021 | a[0] = '\0'; | |
8022 | strlcat(a, "hello", 6); | |
8023 | ||
8024 | ; | |
8025 | return 0; | |
8026 | } | |
8027 | _ACEOF | |
8028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8029 | if { (ac_try="$ac_link" |
8030 | case "(($ac_try" in | |
8031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8032 | *) ac_try_echo=$ac_try;; | |
8033 | esac | |
8034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8035 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8036 | ac_status=$? |
8037 | grep -v '^ *+' conftest.er1 >conftest.err | |
8038 | rm -f conftest.er1 | |
8039 | cat conftest.err >&5 | |
8040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8041 | (exit $ac_status); } && { |
8042 | test -z "$ac_c_werror_flag" || | |
8043 | test ! -s conftest.err | |
8044 | } && test -s conftest$ac_exeext && | |
8045 | $as_test_x conftest$ac_exeext; then | |
8046 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8047 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
8048 | |
8049 | cat >>confdefs.h <<\_ACEOF | |
8050 | #define HAVE_STRLCAT 1 | |
8051 | _ACEOF | |
8052 | ||
8053 | else | |
8054 | echo "$as_me: failed program was:" >&5 | |
8055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8056 | ||
631ef239 AC |
8057 | { echo "$as_me:$LINENO: result: no" >&5 |
8058 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
8059 | |
8060 | fi | |
631ef239 AC |
8061 | |
8062 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8063 | conftest$ac_exeext conftest.$ac_ext |
8064 | ||
8065 | CFLAGS=$save_CFLAGS | |
8066 | ||
8067 | else | |
8068 | ||
8069 | ||
8070 | ||
8071 | ||
8072 | for ac_func in strlcat strlcpy | |
8073 | do | |
8074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8075 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8077 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8079 | else | |
8080 | cat >conftest.$ac_ext <<_ACEOF | |
8081 | /* confdefs.h. */ | |
8082 | _ACEOF | |
8083 | cat confdefs.h >>conftest.$ac_ext | |
8084 | cat >>conftest.$ac_ext <<_ACEOF | |
8085 | /* end confdefs.h. */ | |
8086 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8087 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8088 | #define $ac_func innocuous_$ac_func | |
8089 | ||
8090 | /* System header to define __stub macros and hopefully few prototypes, | |
8091 | which can conflict with char $ac_func (); below. | |
8092 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8093 | <limits.h> exists even on freestanding compilers. */ | |
8094 | ||
8095 | #ifdef __STDC__ | |
8096 | # include <limits.h> | |
8097 | #else | |
8098 | # include <assert.h> | |
8099 | #endif | |
8100 | ||
8101 | #undef $ac_func | |
8102 | ||
631ef239 AC |
8103 | /* Override any GCC internal prototype to avoid an error. |
8104 | Use char because int might match the return type of a GCC | |
8105 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8106 | #ifdef __cplusplus |
8107 | extern "C" | |
212380e3 | 8108 | #endif |
212380e3 AC |
8109 | char $ac_func (); |
8110 | /* The GNU C library defines this for functions which it implements | |
8111 | to always fail with ENOSYS. Some functions are actually named | |
8112 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8113 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8114 | choke me |
212380e3 AC |
8115 | #endif |
8116 | ||
8117 | int | |
8118 | main () | |
8119 | { | |
631ef239 | 8120 | return $ac_func (); |
212380e3 AC |
8121 | ; |
8122 | return 0; | |
8123 | } | |
8124 | _ACEOF | |
8125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8126 | if { (ac_try="$ac_link" |
8127 | case "(($ac_try" in | |
8128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8129 | *) ac_try_echo=$ac_try;; | |
8130 | esac | |
8131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8132 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8133 | ac_status=$? |
8134 | grep -v '^ *+' conftest.er1 >conftest.err | |
8135 | rm -f conftest.er1 | |
8136 | cat conftest.err >&5 | |
8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8138 | (exit $ac_status); } && { |
8139 | test -z "$ac_c_werror_flag" || | |
8140 | test ! -s conftest.err | |
8141 | } && test -s conftest$ac_exeext && | |
8142 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8143 | eval "$as_ac_var=yes" |
8144 | else | |
8145 | echo "$as_me: failed program was:" >&5 | |
8146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8147 | ||
631ef239 | 8148 | eval "$as_ac_var=no" |
212380e3 | 8149 | fi |
631ef239 AC |
8150 | |
8151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8152 | conftest$ac_exeext conftest.$ac_ext |
8153 | fi | |
631ef239 AC |
8154 | ac_res=`eval echo '${'$as_ac_var'}'` |
8155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8156 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8157 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8158 | cat >>confdefs.h <<_ACEOF | |
8159 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8160 | _ACEOF | |
8161 | ||
8162 | fi | |
8163 | done | |
8164 | ||
8165 | ||
8166 | fi | |
8167 | ||
631ef239 AC |
8168 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
8169 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
212380e3 AC |
8170 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
8171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8172 | else | |
8173 | cat >conftest.$ac_ext <<_ACEOF | |
8174 | /* confdefs.h. */ | |
8175 | _ACEOF | |
8176 | cat confdefs.h >>conftest.$ac_ext | |
8177 | cat >>conftest.$ac_ext <<_ACEOF | |
8178 | /* end confdefs.h. */ | |
8179 | $ac_includes_default | |
631ef239 | 8180 | typedef u_int32_t ac__type_new_; |
212380e3 AC |
8181 | int |
8182 | main () | |
8183 | { | |
631ef239 | 8184 | if ((ac__type_new_ *) 0) |
212380e3 | 8185 | return 0; |
631ef239 | 8186 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8187 | return 0; |
8188 | ; | |
8189 | return 0; | |
8190 | } | |
8191 | _ACEOF | |
8192 | rm -f conftest.$ac_objext | |
631ef239 AC |
8193 | if { (ac_try="$ac_compile" |
8194 | case "(($ac_try" in | |
8195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8196 | *) ac_try_echo=$ac_try;; | |
8197 | esac | |
8198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8199 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8200 | ac_status=$? |
8201 | grep -v '^ *+' conftest.er1 >conftest.err | |
8202 | rm -f conftest.er1 | |
8203 | cat conftest.err >&5 | |
8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8205 | (exit $ac_status); } && { |
8206 | test -z "$ac_c_werror_flag" || | |
8207 | test ! -s conftest.err | |
8208 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8209 | ac_cv_type_u_int32_t=yes |
8210 | else | |
8211 | echo "$as_me: failed program was:" >&5 | |
8212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8213 | ||
631ef239 | 8214 | ac_cv_type_u_int32_t=no |
212380e3 | 8215 | fi |
631ef239 AC |
8216 | |
8217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8218 | fi |
631ef239 AC |
8219 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
8220 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
212380e3 AC |
8221 | if test $ac_cv_type_u_int32_t = yes; then |
8222 | : | |
8223 | else | |
8224 | ||
631ef239 AC |
8225 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
8226 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
212380e3 AC |
8227 | if test "${ac_cv_type_uint32_t+set}" = set; then |
8228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8229 | else | |
8230 | cat >conftest.$ac_ext <<_ACEOF | |
8231 | /* confdefs.h. */ | |
8232 | _ACEOF | |
8233 | cat confdefs.h >>conftest.$ac_ext | |
8234 | cat >>conftest.$ac_ext <<_ACEOF | |
8235 | /* end confdefs.h. */ | |
8236 | $ac_includes_default | |
631ef239 | 8237 | typedef uint32_t ac__type_new_; |
212380e3 AC |
8238 | int |
8239 | main () | |
8240 | { | |
631ef239 | 8241 | if ((ac__type_new_ *) 0) |
212380e3 | 8242 | return 0; |
631ef239 | 8243 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8244 | return 0; |
8245 | ; | |
8246 | return 0; | |
8247 | } | |
8248 | _ACEOF | |
8249 | rm -f conftest.$ac_objext | |
631ef239 AC |
8250 | if { (ac_try="$ac_compile" |
8251 | case "(($ac_try" in | |
8252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8253 | *) ac_try_echo=$ac_try;; | |
8254 | esac | |
8255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8256 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8257 | ac_status=$? |
8258 | grep -v '^ *+' conftest.er1 >conftest.err | |
8259 | rm -f conftest.er1 | |
8260 | cat conftest.err >&5 | |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8262 | (exit $ac_status); } && { |
8263 | test -z "$ac_c_werror_flag" || | |
8264 | test ! -s conftest.err | |
8265 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8266 | ac_cv_type_uint32_t=yes |
8267 | else | |
8268 | echo "$as_me: failed program was:" >&5 | |
8269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8270 | ||
631ef239 | 8271 | ac_cv_type_uint32_t=no |
212380e3 | 8272 | fi |
631ef239 AC |
8273 | |
8274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8275 | fi |
631ef239 AC |
8276 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
8277 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
212380e3 AC |
8278 | if test $ac_cv_type_uint32_t = yes; then |
8279 | ||
8280 | ||
8281 | cat >>confdefs.h <<\_ACEOF | |
8282 | #define u_int32_t uint32_t | |
8283 | _ACEOF | |
8284 | ||
8285 | ||
8286 | else | |
8287 | ||
8288 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
8289 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
8290 | ||
8291 | cat >>confdefs.h <<\_ACEOF | |
8292 | #define u_int32_t unsigned long int | |
8293 | _ACEOF | |
8294 | ||
8295 | ||
8296 | fi | |
8297 | ||
8298 | ||
8299 | fi | |
8300 | ||
8301 | ||
631ef239 AC |
8302 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
8303 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8304 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
8305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8306 | else | |
8307 | cat >conftest.$ac_ext <<_ACEOF | |
8308 | /* confdefs.h. */ | |
8309 | _ACEOF | |
8310 | cat confdefs.h >>conftest.$ac_ext | |
8311 | cat >>conftest.$ac_ext <<_ACEOF | |
8312 | /* end confdefs.h. */ | |
8313 | $ac_includes_default | |
631ef239 | 8314 | typedef u_int16_t ac__type_new_; |
212380e3 AC |
8315 | int |
8316 | main () | |
8317 | { | |
631ef239 | 8318 | if ((ac__type_new_ *) 0) |
212380e3 | 8319 | return 0; |
631ef239 | 8320 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8321 | return 0; |
8322 | ; | |
8323 | return 0; | |
8324 | } | |
8325 | _ACEOF | |
8326 | rm -f conftest.$ac_objext | |
631ef239 AC |
8327 | if { (ac_try="$ac_compile" |
8328 | case "(($ac_try" in | |
8329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8330 | *) ac_try_echo=$ac_try;; | |
8331 | esac | |
8332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8333 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8334 | ac_status=$? |
8335 | grep -v '^ *+' conftest.er1 >conftest.err | |
8336 | rm -f conftest.er1 | |
8337 | cat conftest.err >&5 | |
8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8339 | (exit $ac_status); } && { |
8340 | test -z "$ac_c_werror_flag" || | |
8341 | test ! -s conftest.err | |
8342 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8343 | ac_cv_type_u_int16_t=yes |
8344 | else | |
8345 | echo "$as_me: failed program was:" >&5 | |
8346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8347 | ||
631ef239 | 8348 | ac_cv_type_u_int16_t=no |
212380e3 | 8349 | fi |
631ef239 AC |
8350 | |
8351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8352 | fi |
631ef239 AC |
8353 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8354 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
212380e3 AC |
8355 | if test $ac_cv_type_u_int16_t = yes; then |
8356 | : | |
8357 | else | |
8358 | ||
631ef239 AC |
8359 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8360 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8361 | if test "${ac_cv_type_uint16_t+set}" = set; then |
8362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8363 | else | |
8364 | cat >conftest.$ac_ext <<_ACEOF | |
8365 | /* confdefs.h. */ | |
8366 | _ACEOF | |
8367 | cat confdefs.h >>conftest.$ac_ext | |
8368 | cat >>conftest.$ac_ext <<_ACEOF | |
8369 | /* end confdefs.h. */ | |
8370 | $ac_includes_default | |
631ef239 | 8371 | typedef uint16_t ac__type_new_; |
212380e3 AC |
8372 | int |
8373 | main () | |
8374 | { | |
631ef239 | 8375 | if ((ac__type_new_ *) 0) |
212380e3 | 8376 | return 0; |
631ef239 | 8377 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8378 | return 0; |
8379 | ; | |
8380 | return 0; | |
8381 | } | |
8382 | _ACEOF | |
8383 | rm -f conftest.$ac_objext | |
631ef239 AC |
8384 | if { (ac_try="$ac_compile" |
8385 | case "(($ac_try" in | |
8386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8387 | *) ac_try_echo=$ac_try;; | |
8388 | esac | |
8389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8390 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8391 | ac_status=$? |
8392 | grep -v '^ *+' conftest.er1 >conftest.err | |
8393 | rm -f conftest.er1 | |
8394 | cat conftest.err >&5 | |
8395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8396 | (exit $ac_status); } && { |
8397 | test -z "$ac_c_werror_flag" || | |
8398 | test ! -s conftest.err | |
8399 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8400 | ac_cv_type_uint16_t=yes |
8401 | else | |
8402 | echo "$as_me: failed program was:" >&5 | |
8403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8404 | ||
631ef239 | 8405 | ac_cv_type_uint16_t=no |
212380e3 | 8406 | fi |
631ef239 AC |
8407 | |
8408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8409 | fi |
631ef239 AC |
8410 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8411 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
212380e3 AC |
8412 | if test $ac_cv_type_uint16_t = yes; then |
8413 | ||
8414 | ||
8415 | cat >>confdefs.h <<\_ACEOF | |
8416 | #define u_int16_t uint16_t | |
8417 | _ACEOF | |
8418 | ||
8419 | ||
8420 | else | |
8421 | ||
8422 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8423 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8424 | ||
8425 | cat >>confdefs.h <<\_ACEOF | |
8426 | #define u_int16_t unsigned short int | |
8427 | _ACEOF | |
8428 | ||
8429 | ||
8430 | fi | |
8431 | ||
8432 | ||
8433 | fi | |
8434 | ||
8435 | ||
631ef239 AC |
8436 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8437 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
212380e3 AC |
8438 | if test "${ac_cv_type_in_port_t+set}" = set; then |
8439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8440 | else | |
8441 | cat >conftest.$ac_ext <<_ACEOF | |
8442 | /* confdefs.h. */ | |
8443 | _ACEOF | |
8444 | cat confdefs.h >>conftest.$ac_ext | |
8445 | cat >>conftest.$ac_ext <<_ACEOF | |
8446 | /* end confdefs.h. */ | |
8447 | #include <sys/types.h> | |
8448 | #include <netinet/in.h> | |
8449 | ||
631ef239 | 8450 | typedef in_port_t ac__type_new_; |
212380e3 AC |
8451 | int |
8452 | main () | |
8453 | { | |
631ef239 | 8454 | if ((ac__type_new_ *) 0) |
212380e3 | 8455 | return 0; |
631ef239 | 8456 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8457 | return 0; |
8458 | ; | |
8459 | return 0; | |
8460 | } | |
8461 | _ACEOF | |
8462 | rm -f conftest.$ac_objext | |
631ef239 AC |
8463 | if { (ac_try="$ac_compile" |
8464 | case "(($ac_try" in | |
8465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8466 | *) ac_try_echo=$ac_try;; | |
8467 | esac | |
8468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8469 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8470 | ac_status=$? |
8471 | grep -v '^ *+' conftest.er1 >conftest.err | |
8472 | rm -f conftest.er1 | |
8473 | cat conftest.err >&5 | |
8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8475 | (exit $ac_status); } && { |
8476 | test -z "$ac_c_werror_flag" || | |
8477 | test ! -s conftest.err | |
8478 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8479 | ac_cv_type_in_port_t=yes |
8480 | else | |
8481 | echo "$as_me: failed program was:" >&5 | |
8482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8483 | ||
631ef239 | 8484 | ac_cv_type_in_port_t=no |
212380e3 | 8485 | fi |
631ef239 AC |
8486 | |
8487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8488 | fi |
631ef239 AC |
8489 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8490 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
212380e3 AC |
8491 | if test $ac_cv_type_in_port_t = yes; then |
8492 | : | |
8493 | else | |
8494 | ||
8495 | cat >>confdefs.h <<\_ACEOF | |
8496 | #define in_port_t u_int16_t | |
8497 | _ACEOF | |
8498 | ||
8499 | fi | |
8500 | ||
8501 | ||
631ef239 AC |
8502 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8503 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
212380e3 AC |
8504 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
8505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8506 | else | |
8507 | cat >conftest.$ac_ext <<_ACEOF | |
8508 | /* confdefs.h. */ | |
8509 | _ACEOF | |
8510 | cat confdefs.h >>conftest.$ac_ext | |
8511 | cat >>conftest.$ac_ext <<_ACEOF | |
8512 | /* end confdefs.h. */ | |
8513 | #include <sys/types.h> | |
8514 | #include <sys/socket.h> | |
8515 | ||
631ef239 | 8516 | typedef sa_family_t ac__type_new_; |
212380e3 AC |
8517 | int |
8518 | main () | |
8519 | { | |
631ef239 | 8520 | if ((ac__type_new_ *) 0) |
212380e3 | 8521 | return 0; |
631ef239 | 8522 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8523 | return 0; |
8524 | ; | |
8525 | return 0; | |
8526 | } | |
8527 | _ACEOF | |
8528 | rm -f conftest.$ac_objext | |
631ef239 AC |
8529 | if { (ac_try="$ac_compile" |
8530 | case "(($ac_try" in | |
8531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8532 | *) ac_try_echo=$ac_try;; | |
8533 | esac | |
8534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8535 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8536 | ac_status=$? |
8537 | grep -v '^ *+' conftest.er1 >conftest.err | |
8538 | rm -f conftest.er1 | |
8539 | cat conftest.err >&5 | |
8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8541 | (exit $ac_status); } && { |
8542 | test -z "$ac_c_werror_flag" || | |
8543 | test ! -s conftest.err | |
8544 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8545 | ac_cv_type_sa_family_t=yes |
8546 | else | |
8547 | echo "$as_me: failed program was:" >&5 | |
8548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8549 | ||
631ef239 | 8550 | ac_cv_type_sa_family_t=no |
212380e3 | 8551 | fi |
631ef239 AC |
8552 | |
8553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8554 | fi |
631ef239 AC |
8555 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8556 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
212380e3 AC |
8557 | if test $ac_cv_type_sa_family_t = yes; then |
8558 | : | |
8559 | else | |
8560 | ||
8561 | cat >>confdefs.h <<\_ACEOF | |
8562 | #define sa_family_t u_int16_t | |
8563 | _ACEOF | |
8564 | ||
8565 | fi | |
8566 | ||
8567 | ||
631ef239 AC |
8568 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
8569 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
212380e3 AC |
8570 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
8571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8572 | else | |
8573 | cat >conftest.$ac_ext <<_ACEOF | |
8574 | /* confdefs.h. */ | |
8575 | _ACEOF | |
8576 | cat confdefs.h >>conftest.$ac_ext | |
8577 | cat >>conftest.$ac_ext <<_ACEOF | |
8578 | /* end confdefs.h. */ | |
8579 | $ac_includes_default | |
631ef239 | 8580 | typedef uintptr_t ac__type_new_; |
212380e3 AC |
8581 | int |
8582 | main () | |
8583 | { | |
631ef239 | 8584 | if ((ac__type_new_ *) 0) |
212380e3 | 8585 | return 0; |
631ef239 | 8586 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8587 | return 0; |
8588 | ; | |
8589 | return 0; | |
8590 | } | |
8591 | _ACEOF | |
8592 | rm -f conftest.$ac_objext | |
631ef239 AC |
8593 | if { (ac_try="$ac_compile" |
8594 | case "(($ac_try" in | |
8595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8596 | *) ac_try_echo=$ac_try;; | |
8597 | esac | |
8598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8599 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8600 | ac_status=$? |
8601 | grep -v '^ *+' conftest.er1 >conftest.err | |
8602 | rm -f conftest.er1 | |
8603 | cat conftest.err >&5 | |
8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8605 | (exit $ac_status); } && { |
8606 | test -z "$ac_c_werror_flag" || | |
8607 | test ! -s conftest.err | |
8608 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8609 | ac_cv_type_uintptr_t=yes |
8610 | else | |
8611 | echo "$as_me: failed program was:" >&5 | |
8612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8613 | ||
631ef239 | 8614 | ac_cv_type_uintptr_t=no |
212380e3 | 8615 | fi |
631ef239 AC |
8616 | |
8617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8618 | fi |
631ef239 AC |
8619 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
8620 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
212380e3 AC |
8621 | if test $ac_cv_type_uintptr_t = yes; then |
8622 | ||
8623 | cat >>confdefs.h <<_ACEOF | |
8624 | #define HAVE_UINTPTR_T 1 | |
8625 | _ACEOF | |
8626 | ||
8627 | ||
8628 | fi | |
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8638 | do | |
8639 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8640 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8641 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8642 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8644 | else | |
8645 | cat >conftest.$ac_ext <<_ACEOF | |
8646 | /* confdefs.h. */ | |
8647 | _ACEOF | |
8648 | cat confdefs.h >>conftest.$ac_ext | |
8649 | cat >>conftest.$ac_ext <<_ACEOF | |
8650 | /* end confdefs.h. */ | |
8651 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8652 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8653 | #define $ac_func innocuous_$ac_func | |
8654 | ||
8655 | /* System header to define __stub macros and hopefully few prototypes, | |
8656 | which can conflict with char $ac_func (); below. | |
8657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8658 | <limits.h> exists even on freestanding compilers. */ | |
8659 | ||
8660 | #ifdef __STDC__ | |
8661 | # include <limits.h> | |
8662 | #else | |
8663 | # include <assert.h> | |
8664 | #endif | |
8665 | ||
8666 | #undef $ac_func | |
8667 | ||
631ef239 AC |
8668 | /* Override any GCC internal prototype to avoid an error. |
8669 | Use char because int might match the return type of a GCC | |
8670 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8671 | #ifdef __cplusplus |
8672 | extern "C" | |
212380e3 | 8673 | #endif |
212380e3 AC |
8674 | char $ac_func (); |
8675 | /* The GNU C library defines this for functions which it implements | |
8676 | to always fail with ENOSYS. Some functions are actually named | |
8677 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8678 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8679 | choke me |
212380e3 AC |
8680 | #endif |
8681 | ||
8682 | int | |
8683 | main () | |
8684 | { | |
631ef239 | 8685 | return $ac_func (); |
212380e3 AC |
8686 | ; |
8687 | return 0; | |
8688 | } | |
8689 | _ACEOF | |
8690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8691 | if { (ac_try="$ac_link" |
8692 | case "(($ac_try" in | |
8693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8694 | *) ac_try_echo=$ac_try;; | |
8695 | esac | |
8696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8697 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8698 | ac_status=$? |
8699 | grep -v '^ *+' conftest.er1 >conftest.err | |
8700 | rm -f conftest.er1 | |
8701 | cat conftest.err >&5 | |
8702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8703 | (exit $ac_status); } && { |
8704 | test -z "$ac_c_werror_flag" || | |
8705 | test ! -s conftest.err | |
8706 | } && test -s conftest$ac_exeext && | |
8707 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8708 | eval "$as_ac_var=yes" |
8709 | else | |
8710 | echo "$as_me: failed program was:" >&5 | |
8711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8712 | ||
631ef239 | 8713 | eval "$as_ac_var=no" |
212380e3 | 8714 | fi |
631ef239 AC |
8715 | |
8716 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8717 | conftest$ac_exeext conftest.$ac_ext |
8718 | fi | |
631ef239 AC |
8719 | ac_res=`eval echo '${'$as_ac_var'}'` |
8720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8721 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8722 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8723 | cat >>confdefs.h <<_ACEOF | |
8724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8725 | _ACEOF | |
8726 | ||
8727 | fi | |
8728 | done | |
8729 | ||
8730 | ||
8731 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8732 | # for constant arguments. Useless! | |
631ef239 AC |
8733 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8734 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
212380e3 AC |
8735 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8737 | else | |
8738 | cat >conftest.$ac_ext <<_ACEOF | |
8739 | /* confdefs.h. */ | |
8740 | _ACEOF | |
8741 | cat confdefs.h >>conftest.$ac_ext | |
8742 | cat >>conftest.$ac_ext <<_ACEOF | |
8743 | /* end confdefs.h. */ | |
8744 | #include <alloca.h> | |
8745 | int | |
8746 | main () | |
8747 | { | |
8748 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 8749 | if (p) return 0; |
212380e3 AC |
8750 | ; |
8751 | return 0; | |
8752 | } | |
8753 | _ACEOF | |
8754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8755 | if { (ac_try="$ac_link" |
8756 | case "(($ac_try" in | |
8757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8758 | *) ac_try_echo=$ac_try;; | |
8759 | esac | |
8760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8761 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8762 | ac_status=$? |
8763 | grep -v '^ *+' conftest.er1 >conftest.err | |
8764 | rm -f conftest.er1 | |
8765 | cat conftest.err >&5 | |
8766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8767 | (exit $ac_status); } && { |
8768 | test -z "$ac_c_werror_flag" || | |
8769 | test ! -s conftest.err | |
8770 | } && test -s conftest$ac_exeext && | |
8771 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8772 | ac_cv_working_alloca_h=yes |
8773 | else | |
8774 | echo "$as_me: failed program was:" >&5 | |
8775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8776 | ||
631ef239 | 8777 | ac_cv_working_alloca_h=no |
212380e3 | 8778 | fi |
631ef239 AC |
8779 | |
8780 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8781 | conftest$ac_exeext conftest.$ac_ext |
8782 | fi | |
631ef239 AC |
8783 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8784 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
8785 | if test $ac_cv_working_alloca_h = yes; then |
8786 | ||
8787 | cat >>confdefs.h <<\_ACEOF | |
8788 | #define HAVE_ALLOCA_H 1 | |
8789 | _ACEOF | |
8790 | ||
8791 | fi | |
8792 | ||
631ef239 AC |
8793 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
8794 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8795 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8797 | else | |
8798 | cat >conftest.$ac_ext <<_ACEOF | |
8799 | /* confdefs.h. */ | |
8800 | _ACEOF | |
8801 | cat confdefs.h >>conftest.$ac_ext | |
8802 | cat >>conftest.$ac_ext <<_ACEOF | |
8803 | /* end confdefs.h. */ | |
8804 | #ifdef __GNUC__ | |
8805 | # define alloca __builtin_alloca | |
8806 | #else | |
8807 | # ifdef _MSC_VER | |
8808 | # include <malloc.h> | |
8809 | # define alloca _alloca | |
8810 | # else | |
631ef239 | 8811 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
8812 | # include <alloca.h> |
8813 | # else | |
8814 | # ifdef _AIX | |
8815 | #pragma alloca | |
8816 | # else | |
8817 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8818 | char *alloca (); | |
8819 | # endif | |
8820 | # endif | |
8821 | # endif | |
8822 | # endif | |
8823 | #endif | |
8824 | ||
8825 | int | |
8826 | main () | |
8827 | { | |
8828 | char *p = (char *) alloca (1); | |
631ef239 | 8829 | if (p) return 0; |
212380e3 AC |
8830 | ; |
8831 | return 0; | |
8832 | } | |
8833 | _ACEOF | |
8834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8835 | if { (ac_try="$ac_link" |
8836 | case "(($ac_try" in | |
8837 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8838 | *) ac_try_echo=$ac_try;; | |
8839 | esac | |
8840 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8841 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8842 | ac_status=$? |
8843 | grep -v '^ *+' conftest.er1 >conftest.err | |
8844 | rm -f conftest.er1 | |
8845 | cat conftest.err >&5 | |
8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8847 | (exit $ac_status); } && { |
8848 | test -z "$ac_c_werror_flag" || | |
8849 | test ! -s conftest.err | |
8850 | } && test -s conftest$ac_exeext && | |
8851 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8852 | ac_cv_func_alloca_works=yes |
8853 | else | |
8854 | echo "$as_me: failed program was:" >&5 | |
8855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8856 | ||
631ef239 | 8857 | ac_cv_func_alloca_works=no |
212380e3 | 8858 | fi |
631ef239 AC |
8859 | |
8860 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8861 | conftest$ac_exeext conftest.$ac_ext |
8862 | fi | |
631ef239 AC |
8863 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8864 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
8865 | |
8866 | if test $ac_cv_func_alloca_works = yes; then | |
8867 | ||
8868 | cat >>confdefs.h <<\_ACEOF | |
8869 | #define HAVE_ALLOCA 1 | |
8870 | _ACEOF | |
8871 | ||
8872 | else | |
8873 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8874 | # that cause trouble. Some versions do not even contain alloca or | |
8875 | # contain a buggy version. If you still want to use their alloca, | |
8876 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8877 | ||
631ef239 | 8878 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 AC |
8879 | |
8880 | cat >>confdefs.h <<\_ACEOF | |
8881 | #define C_ALLOCA 1 | |
8882 | _ACEOF | |
8883 | ||
8884 | ||
631ef239 AC |
8885 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8886 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
212380e3 AC |
8887 | if test "${ac_cv_os_cray+set}" = set; then |
8888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8889 | else | |
8890 | cat >conftest.$ac_ext <<_ACEOF | |
8891 | /* confdefs.h. */ | |
8892 | _ACEOF | |
8893 | cat confdefs.h >>conftest.$ac_ext | |
8894 | cat >>conftest.$ac_ext <<_ACEOF | |
8895 | /* end confdefs.h. */ | |
631ef239 | 8896 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
8897 | webecray |
8898 | #else | |
8899 | wenotbecray | |
8900 | #endif | |
8901 | ||
8902 | _ACEOF | |
8903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8904 | $EGREP "webecray" >/dev/null 2>&1; then | |
8905 | ac_cv_os_cray=yes | |
8906 | else | |
8907 | ac_cv_os_cray=no | |
8908 | fi | |
8909 | rm -f conftest* | |
8910 | ||
8911 | fi | |
631ef239 AC |
8912 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8913 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
212380e3 AC |
8914 | if test $ac_cv_os_cray = yes; then |
8915 | for ac_func in _getb67 GETB67 getb67; do | |
8916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8917 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8919 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8921 | else | |
8922 | cat >conftest.$ac_ext <<_ACEOF | |
8923 | /* confdefs.h. */ | |
8924 | _ACEOF | |
8925 | cat confdefs.h >>conftest.$ac_ext | |
8926 | cat >>conftest.$ac_ext <<_ACEOF | |
8927 | /* end confdefs.h. */ | |
8928 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8930 | #define $ac_func innocuous_$ac_func | |
8931 | ||
8932 | /* System header to define __stub macros and hopefully few prototypes, | |
8933 | which can conflict with char $ac_func (); below. | |
8934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8935 | <limits.h> exists even on freestanding compilers. */ | |
8936 | ||
8937 | #ifdef __STDC__ | |
8938 | # include <limits.h> | |
8939 | #else | |
8940 | # include <assert.h> | |
8941 | #endif | |
8942 | ||
8943 | #undef $ac_func | |
8944 | ||
631ef239 AC |
8945 | /* Override any GCC internal prototype to avoid an error. |
8946 | Use char because int might match the return type of a GCC | |
8947 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8948 | #ifdef __cplusplus |
8949 | extern "C" | |
212380e3 | 8950 | #endif |
212380e3 AC |
8951 | char $ac_func (); |
8952 | /* The GNU C library defines this for functions which it implements | |
8953 | to always fail with ENOSYS. Some functions are actually named | |
8954 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8955 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8956 | choke me |
212380e3 AC |
8957 | #endif |
8958 | ||
8959 | int | |
8960 | main () | |
8961 | { | |
631ef239 | 8962 | return $ac_func (); |
212380e3 AC |
8963 | ; |
8964 | return 0; | |
8965 | } | |
8966 | _ACEOF | |
8967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8968 | if { (ac_try="$ac_link" |
8969 | case "(($ac_try" in | |
8970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8971 | *) ac_try_echo=$ac_try;; | |
8972 | esac | |
8973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8974 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8975 | ac_status=$? |
8976 | grep -v '^ *+' conftest.er1 >conftest.err | |
8977 | rm -f conftest.er1 | |
8978 | cat conftest.err >&5 | |
8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8980 | (exit $ac_status); } && { |
8981 | test -z "$ac_c_werror_flag" || | |
8982 | test ! -s conftest.err | |
8983 | } && test -s conftest$ac_exeext && | |
8984 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8985 | eval "$as_ac_var=yes" |
8986 | else | |
8987 | echo "$as_me: failed program was:" >&5 | |
8988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8989 | ||
631ef239 | 8990 | eval "$as_ac_var=no" |
212380e3 | 8991 | fi |
631ef239 AC |
8992 | |
8993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8994 | conftest$ac_exeext conftest.$ac_ext |
8995 | fi | |
631ef239 AC |
8996 | ac_res=`eval echo '${'$as_ac_var'}'` |
8997 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8998 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8999 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9000 | ||
9001 | cat >>confdefs.h <<_ACEOF | |
9002 | #define CRAY_STACKSEG_END $ac_func | |
9003 | _ACEOF | |
9004 | ||
9005 | break | |
9006 | fi | |
9007 | ||
9008 | done | |
9009 | fi | |
9010 | ||
631ef239 AC |
9011 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
9012 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
212380e3 AC |
9013 | if test "${ac_cv_c_stack_direction+set}" = set; then |
9014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9015 | else | |
9016 | if test "$cross_compiling" = yes; then | |
9017 | ac_cv_c_stack_direction=0 | |
9018 | else | |
9019 | cat >conftest.$ac_ext <<_ACEOF | |
9020 | /* confdefs.h. */ | |
9021 | _ACEOF | |
9022 | cat confdefs.h >>conftest.$ac_ext | |
9023 | cat >>conftest.$ac_ext <<_ACEOF | |
9024 | /* end confdefs.h. */ | |
631ef239 | 9025 | $ac_includes_default |
212380e3 AC |
9026 | int |
9027 | find_stack_direction () | |
9028 | { | |
9029 | static char *addr = 0; | |
9030 | auto char dummy; | |
9031 | if (addr == 0) | |
9032 | { | |
9033 | addr = &dummy; | |
9034 | return find_stack_direction (); | |
9035 | } | |
9036 | else | |
9037 | return (&dummy > addr) ? 1 : -1; | |
9038 | } | |
9039 | ||
9040 | int | |
9041 | main () | |
9042 | { | |
631ef239 | 9043 | return find_stack_direction () < 0; |
212380e3 AC |
9044 | } |
9045 | _ACEOF | |
9046 | rm -f conftest$ac_exeext | |
631ef239 AC |
9047 | if { (ac_try="$ac_link" |
9048 | case "(($ac_try" in | |
9049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9050 | *) ac_try_echo=$ac_try;; | |
9051 | esac | |
9052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9053 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9054 | ac_status=$? |
9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9056 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9057 | { (case "(($ac_try" in |
9058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9059 | *) ac_try_echo=$ac_try;; | |
9060 | esac | |
9061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9062 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9063 | ac_status=$? |
9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9065 | (exit $ac_status); }; }; then | |
9066 | ac_cv_c_stack_direction=1 | |
9067 | else | |
9068 | echo "$as_me: program exited with status $ac_status" >&5 | |
9069 | echo "$as_me: failed program was:" >&5 | |
9070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9071 | ||
9072 | ( exit $ac_status ) | |
9073 | ac_cv_c_stack_direction=-1 | |
9074 | fi | |
631ef239 | 9075 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 9076 | fi |
631ef239 AC |
9077 | |
9078 | ||
212380e3 | 9079 | fi |
631ef239 AC |
9080 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
9081 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
9082 | |
9083 | cat >>confdefs.h <<_ACEOF | |
9084 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
9085 | _ACEOF | |
9086 | ||
9087 | ||
9088 | fi | |
9089 | ||
9090 | ||
9091 | ||
631ef239 AC |
9092 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
9093 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
212380e3 AC |
9094 | if test "${ac_cv_func_nanosleep+set}" = set; then |
9095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9096 | else | |
9097 | cat >conftest.$ac_ext <<_ACEOF | |
9098 | /* confdefs.h. */ | |
9099 | _ACEOF | |
9100 | cat confdefs.h >>conftest.$ac_ext | |
9101 | cat >>conftest.$ac_ext <<_ACEOF | |
9102 | /* end confdefs.h. */ | |
9103 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
9104 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9105 | #define nanosleep innocuous_nanosleep | |
9106 | ||
9107 | /* System header to define __stub macros and hopefully few prototypes, | |
9108 | which can conflict with char nanosleep (); below. | |
9109 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9110 | <limits.h> exists even on freestanding compilers. */ | |
9111 | ||
9112 | #ifdef __STDC__ | |
9113 | # include <limits.h> | |
9114 | #else | |
9115 | # include <assert.h> | |
9116 | #endif | |
9117 | ||
9118 | #undef nanosleep | |
9119 | ||
631ef239 AC |
9120 | /* Override any GCC internal prototype to avoid an error. |
9121 | Use char because int might match the return type of a GCC | |
9122 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9123 | #ifdef __cplusplus |
9124 | extern "C" | |
212380e3 | 9125 | #endif |
212380e3 AC |
9126 | char nanosleep (); |
9127 | /* The GNU C library defines this for functions which it implements | |
9128 | to always fail with ENOSYS. Some functions are actually named | |
9129 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9130 | #if defined __stub_nanosleep || defined __stub___nanosleep |
212380e3 | 9131 | choke me |
212380e3 AC |
9132 | #endif |
9133 | ||
9134 | int | |
9135 | main () | |
9136 | { | |
631ef239 | 9137 | return nanosleep (); |
212380e3 AC |
9138 | ; |
9139 | return 0; | |
9140 | } | |
9141 | _ACEOF | |
9142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9143 | if { (ac_try="$ac_link" |
9144 | case "(($ac_try" in | |
9145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9146 | *) ac_try_echo=$ac_try;; | |
9147 | esac | |
9148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9149 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9150 | ac_status=$? |
9151 | grep -v '^ *+' conftest.er1 >conftest.err | |
9152 | rm -f conftest.er1 | |
9153 | cat conftest.err >&5 | |
9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9155 | (exit $ac_status); } && { |
9156 | test -z "$ac_c_werror_flag" || | |
9157 | test ! -s conftest.err | |
9158 | } && test -s conftest$ac_exeext && | |
9159 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9160 | ac_cv_func_nanosleep=yes |
9161 | else | |
9162 | echo "$as_me: failed program was:" >&5 | |
9163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9164 | ||
631ef239 | 9165 | ac_cv_func_nanosleep=no |
212380e3 | 9166 | fi |
631ef239 AC |
9167 | |
9168 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9169 | conftest$ac_exeext conftest.$ac_ext |
9170 | fi | |
631ef239 AC |
9171 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
9172 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
212380e3 AC |
9173 | if test $ac_cv_func_nanosleep = yes; then |
9174 | : | |
9175 | else | |
631ef239 AC |
9176 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
9177 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
212380e3 AC |
9178 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
9179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9180 | else | |
9181 | ac_check_lib_save_LIBS=$LIBS | |
9182 | LIBS="-lrt $LIBS" | |
9183 | cat >conftest.$ac_ext <<_ACEOF | |
9184 | /* confdefs.h. */ | |
9185 | _ACEOF | |
9186 | cat confdefs.h >>conftest.$ac_ext | |
9187 | cat >>conftest.$ac_ext <<_ACEOF | |
9188 | /* end confdefs.h. */ | |
9189 | ||
631ef239 AC |
9190 | /* Override any GCC internal prototype to avoid an error. |
9191 | Use char because int might match the return type of a GCC | |
9192 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9193 | #ifdef __cplusplus |
9194 | extern "C" | |
9195 | #endif | |
212380e3 AC |
9196 | char nanosleep (); |
9197 | int | |
9198 | main () | |
9199 | { | |
631ef239 | 9200 | return nanosleep (); |
212380e3 AC |
9201 | ; |
9202 | return 0; | |
9203 | } | |
9204 | _ACEOF | |
9205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9206 | if { (ac_try="$ac_link" |
9207 | case "(($ac_try" in | |
9208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9209 | *) ac_try_echo=$ac_try;; | |
9210 | esac | |
9211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9212 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9213 | ac_status=$? |
9214 | grep -v '^ *+' conftest.er1 >conftest.err | |
9215 | rm -f conftest.er1 | |
9216 | cat conftest.err >&5 | |
9217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9218 | (exit $ac_status); } && { |
9219 | test -z "$ac_c_werror_flag" || | |
9220 | test ! -s conftest.err | |
9221 | } && test -s conftest$ac_exeext && | |
9222 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9223 | ac_cv_lib_rt_nanosleep=yes |
9224 | else | |
9225 | echo "$as_me: failed program was:" >&5 | |
9226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9227 | ||
631ef239 | 9228 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 9229 | fi |
631ef239 AC |
9230 | |
9231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9232 | conftest$ac_exeext conftest.$ac_ext |
9233 | LIBS=$ac_check_lib_save_LIBS | |
9234 | fi | |
631ef239 AC |
9235 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
9236 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
212380e3 AC |
9237 | if test $ac_cv_lib_rt_nanosleep = yes; then |
9238 | LIBS="${LIBS} -lrt" | |
9239 | else | |
631ef239 AC |
9240 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
9241 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
212380e3 AC |
9242 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
9243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9244 | else | |
9245 | ac_check_lib_save_LIBS=$LIBS | |
9246 | LIBS="-lposix4 $LIBS" | |
9247 | cat >conftest.$ac_ext <<_ACEOF | |
9248 | /* confdefs.h. */ | |
9249 | _ACEOF | |
9250 | cat confdefs.h >>conftest.$ac_ext | |
9251 | cat >>conftest.$ac_ext <<_ACEOF | |
9252 | /* end confdefs.h. */ | |
9253 | ||
631ef239 AC |
9254 | /* Override any GCC internal prototype to avoid an error. |
9255 | Use char because int might match the return type of a GCC | |
9256 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9257 | #ifdef __cplusplus |
9258 | extern "C" | |
9259 | #endif | |
212380e3 AC |
9260 | char nanosleep (); |
9261 | int | |
9262 | main () | |
9263 | { | |
631ef239 | 9264 | return nanosleep (); |
212380e3 AC |
9265 | ; |
9266 | return 0; | |
9267 | } | |
9268 | _ACEOF | |
9269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9270 | if { (ac_try="$ac_link" |
9271 | case "(($ac_try" in | |
9272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9273 | *) ac_try_echo=$ac_try;; | |
9274 | esac | |
9275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9276 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9277 | ac_status=$? |
9278 | grep -v '^ *+' conftest.er1 >conftest.err | |
9279 | rm -f conftest.er1 | |
9280 | cat conftest.err >&5 | |
9281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9282 | (exit $ac_status); } && { |
9283 | test -z "$ac_c_werror_flag" || | |
9284 | test ! -s conftest.err | |
9285 | } && test -s conftest$ac_exeext && | |
9286 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9287 | ac_cv_lib_posix4_nanosleep=yes |
9288 | else | |
9289 | echo "$as_me: failed program was:" >&5 | |
9290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9291 | ||
631ef239 | 9292 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 9293 | fi |
631ef239 AC |
9294 | |
9295 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9296 | conftest$ac_exeext conftest.$ac_ext |
9297 | LIBS=$ac_check_lib_save_LIBS | |
9298 | fi | |
631ef239 AC |
9299 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
9300 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
212380e3 AC |
9301 | if test $ac_cv_lib_posix4_nanosleep = yes; then |
9302 | LIBS="${LIBS} -lposix4" | |
9303 | ||
9304 | fi | |
9305 | ||
9306 | fi | |
9307 | ||
9308 | fi | |
9309 | ||
9310 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
9311 | then | |
631ef239 AC |
9312 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 |
9313 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
9314 | else |
9315 | ||
9316 | cat >>confdefs.h <<\_ACEOF | |
9317 | #define HAVE_NANOSLEEP 1 | |
9318 | _ACEOF | |
9319 | ||
9320 | fi | |
9321 | ||
631ef239 AC |
9322 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
9323 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
9324 | # Check whether --enable-openssl was given. | |
212380e3 | 9325 | if test "${enable_openssl+set}" = set; then |
631ef239 | 9326 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
9327 | else |
9328 | cf_enable_openssl="auto" | |
631ef239 AC |
9329 | fi |
9330 | ||
212380e3 AC |
9331 | |
9332 | if test "$cf_enable_openssl" != "no" ; then | |
9333 | cf_openssl_basedir="" | |
9334 | if test "$cf_enable_openssl" != "auto" && | |
9335 | test "$cf_enable_openssl" != "yes" ; then | |
9336 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9337 | else | |
9338 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9339 | /usr/local/openssl ; do | |
9340 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9341 | cf_openssl_basedir="${dirs}" | |
9342 | break | |
9343 | fi | |
9344 | done | |
9345 | unset dirs | |
9346 | fi | |
9347 | if test ! -z "$cf_openssl_basedir"; then | |
9348 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9349 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9350 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9351 | else | |
9352 | cf_openssl_basedir="" | |
9353 | fi | |
9354 | else | |
9355 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9356 | cf_openssl_basedir="/usr" | |
9357 | fi | |
9358 | fi | |
9359 | ||
9360 | if test ! -z "$cf_openssl_basedir"; then | |
631ef239 AC |
9361 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
9362 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
212380e3 AC |
9363 | cf_enable_openssl="yes" |
9364 | else | |
631ef239 AC |
9365 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
9366 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
212380e3 AC |
9367 | cf_enable_openssl="no" |
9368 | fi | |
9369 | unset cf_openssl_basedir | |
9370 | else | |
631ef239 AC |
9371 | { echo "$as_me:$LINENO: result: disabled" >&5 |
9372 | echo "${ECHO_T}disabled" >&6; } | |
212380e3 AC |
9373 | fi |
9374 | ||
9375 | save_CPPFLAGS="$CPPFLAGS" | |
9376 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9377 | save_LIBS="$LIBS" | |
9378 | LIBS="$LIBS $SSL_LIBS" | |
9379 | if test "$cf_enable_openssl" != no; then | |
631ef239 AC |
9380 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
9381 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
212380e3 AC |
9382 | if test "$cross_compiling" = yes; then |
9383 | cf_openssl_version_ok=no | |
9384 | else | |
9385 | cat >conftest.$ac_ext <<_ACEOF | |
9386 | /* confdefs.h. */ | |
9387 | _ACEOF | |
9388 | cat confdefs.h >>conftest.$ac_ext | |
9389 | cat >>conftest.$ac_ext <<_ACEOF | |
9390 | /* end confdefs.h. */ | |
9391 | #include <openssl/opensslv.h> | |
9392 | #include <stdlib.h> | |
9393 | int | |
9394 | main () | |
9395 | { | |
9396 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9397 | exit(0); else exit(1); | |
9398 | ; | |
9399 | return 0; | |
9400 | } | |
9401 | _ACEOF | |
9402 | rm -f conftest$ac_exeext | |
631ef239 AC |
9403 | if { (ac_try="$ac_link" |
9404 | case "(($ac_try" in | |
9405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9406 | *) ac_try_echo=$ac_try;; | |
9407 | esac | |
9408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9409 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9410 | ac_status=$? |
9411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9413 | { (case "(($ac_try" in |
9414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9415 | *) ac_try_echo=$ac_try;; | |
9416 | esac | |
9417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9418 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9419 | ac_status=$? |
9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9421 | (exit $ac_status); }; }; then | |
9422 | cf_openssl_version_ok=yes | |
9423 | else | |
9424 | echo "$as_me: program exited with status $ac_status" >&5 | |
9425 | echo "$as_me: failed program was:" >&5 | |
9426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9427 | ||
9428 | ( exit $ac_status ) | |
9429 | cf_openssl_version_ok=no | |
9430 | fi | |
631ef239 | 9431 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9432 | fi |
9433 | ||
631ef239 AC |
9434 | |
9435 | ||
212380e3 | 9436 | if test "$cf_openssl_version_ok" = yes; then |
631ef239 AC |
9437 | { echo "$as_me:$LINENO: result: found" >&5 |
9438 | echo "${ECHO_T}found" >&6; } | |
212380e3 AC |
9439 | |
9440 | ENCSPEED=encspeed | |
9441 | ||
9442 | ||
9443 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9444 | ||
631ef239 AC |
9445 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
9446 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
212380e3 AC |
9447 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
9448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9449 | else | |
9450 | ac_check_lib_save_LIBS=$LIBS | |
9451 | LIBS="-lcrypto $LIBS" | |
9452 | cat >conftest.$ac_ext <<_ACEOF | |
9453 | /* confdefs.h. */ | |
9454 | _ACEOF | |
9455 | cat confdefs.h >>conftest.$ac_ext | |
9456 | cat >>conftest.$ac_ext <<_ACEOF | |
9457 | /* end confdefs.h. */ | |
9458 | ||
631ef239 AC |
9459 | /* Override any GCC internal prototype to avoid an error. |
9460 | Use char because int might match the return type of a GCC | |
9461 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9462 | #ifdef __cplusplus |
9463 | extern "C" | |
9464 | #endif | |
212380e3 AC |
9465 | char RSA_free (); |
9466 | int | |
9467 | main () | |
9468 | { | |
631ef239 | 9469 | return RSA_free (); |
212380e3 AC |
9470 | ; |
9471 | return 0; | |
9472 | } | |
9473 | _ACEOF | |
9474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9475 | if { (ac_try="$ac_link" |
9476 | case "(($ac_try" in | |
9477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9478 | *) ac_try_echo=$ac_try;; | |
9479 | esac | |
9480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9481 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9482 | ac_status=$? |
9483 | grep -v '^ *+' conftest.er1 >conftest.err | |
9484 | rm -f conftest.er1 | |
9485 | cat conftest.err >&5 | |
9486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9487 | (exit $ac_status); } && { |
9488 | test -z "$ac_c_werror_flag" || | |
9489 | test ! -s conftest.err | |
9490 | } && test -s conftest$ac_exeext && | |
9491 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9492 | ac_cv_lib_crypto_RSA_free=yes |
9493 | else | |
9494 | echo "$as_me: failed program was:" >&5 | |
9495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9496 | ||
631ef239 | 9497 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 9498 | fi |
631ef239 AC |
9499 | |
9500 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9501 | conftest$ac_exeext conftest.$ac_ext |
9502 | LIBS=$ac_check_lib_save_LIBS | |
9503 | fi | |
631ef239 AC |
9504 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
9505 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
212380e3 AC |
9506 | if test $ac_cv_lib_crypto_RSA_free = yes; then |
9507 | cat >>confdefs.h <<_ACEOF | |
9508 | #define HAVE_LIBCRYPTO 1 | |
9509 | _ACEOF | |
9510 | ||
9511 | LIBS="-lcrypto $LIBS" | |
9512 | ||
9513 | fi | |
9514 | ||
9515 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9516 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9517 | else | |
631ef239 AC |
9518 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9519 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
9520 | fi |
9521 | fi | |
9522 | ||
9523 | CPPFLAGS="$save_CPPFLAGS" | |
9524 | LIBS="$save_LIBS" | |
9525 | ||
9526 | ||
9527 | ||
9528 | ||
9529 | ||
631ef239 | 9530 | # Check whether --with-zlib-path was given. |
212380e3 | 9531 | if test "${with_zlib_path+set}" = set; then |
631ef239 AC |
9532 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9533 | fi | |
212380e3 | 9534 | |
631ef239 AC |
9535 | |
9536 | # Check whether --enable-zlib was given. | |
212380e3 | 9537 | if test "${enable_zlib+set}" = set; then |
631ef239 | 9538 | enableval=$enable_zlib; zlib=$enableval |
212380e3 AC |
9539 | else |
9540 | zlib=yes | |
631ef239 AC |
9541 | fi |
9542 | ||
212380e3 AC |
9543 | |
9544 | if test "$zlib" = yes; then | |
9545 | ||
9546 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
631ef239 AC |
9547 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9548 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9549 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9551 | fi | |
631ef239 AC |
9552 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9553 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9554 | else |
9555 | # Is the header compilable? | |
631ef239 AC |
9556 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9557 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
9558 | cat >conftest.$ac_ext <<_ACEOF |
9559 | /* confdefs.h. */ | |
9560 | _ACEOF | |
9561 | cat confdefs.h >>conftest.$ac_ext | |
9562 | cat >>conftest.$ac_ext <<_ACEOF | |
9563 | /* end confdefs.h. */ | |
9564 | $ac_includes_default | |
9565 | #include <zlib.h> | |
9566 | _ACEOF | |
9567 | rm -f conftest.$ac_objext | |
631ef239 AC |
9568 | if { (ac_try="$ac_compile" |
9569 | case "(($ac_try" in | |
9570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9571 | *) ac_try_echo=$ac_try;; | |
9572 | esac | |
9573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9574 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
9575 | ac_status=$? |
9576 | grep -v '^ *+' conftest.er1 >conftest.err | |
9577 | rm -f conftest.er1 | |
9578 | cat conftest.err >&5 | |
9579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9580 | (exit $ac_status); } && { |
9581 | test -z "$ac_c_werror_flag" || | |
9582 | test ! -s conftest.err | |
9583 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
9584 | ac_header_compiler=yes |
9585 | else | |
9586 | echo "$as_me: failed program was:" >&5 | |
9587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9588 | ||
631ef239 | 9589 | ac_header_compiler=no |
212380e3 | 9590 | fi |
631ef239 AC |
9591 | |
9592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9593 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9594 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
9595 | |
9596 | # Is the header present? | |
631ef239 AC |
9597 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9598 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
9599 | cat >conftest.$ac_ext <<_ACEOF |
9600 | /* confdefs.h. */ | |
9601 | _ACEOF | |
9602 | cat confdefs.h >>conftest.$ac_ext | |
9603 | cat >>conftest.$ac_ext <<_ACEOF | |
9604 | /* end confdefs.h. */ | |
9605 | #include <zlib.h> | |
9606 | _ACEOF | |
631ef239 AC |
9607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9608 | case "(($ac_try" in | |
9609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9610 | *) ac_try_echo=$ac_try;; | |
9611 | esac | |
9612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
9614 | ac_status=$? |
9615 | grep -v '^ *+' conftest.er1 >conftest.err | |
9616 | rm -f conftest.er1 | |
9617 | cat conftest.err >&5 | |
9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9619 | (exit $ac_status); } >/dev/null && { |
9620 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9621 | test ! -s conftest.err | |
9622 | }; then | |
212380e3 AC |
9623 | ac_header_preproc=yes |
9624 | else | |
9625 | echo "$as_me: failed program was:" >&5 | |
9626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9627 | ||
9628 | ac_header_preproc=no | |
9629 | fi | |
631ef239 | 9630 | |
212380e3 | 9631 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
9632 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9633 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
9634 | |
9635 | # So? What about this header? | |
9636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9637 | yes:no: ) | |
9638 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9639 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9640 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9641 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9642 | ac_header_preproc=yes | |
9643 | ;; | |
9644 | no:yes:* ) | |
9645 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9646 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9647 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9648 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9649 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9650 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9651 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9652 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9653 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9654 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9655 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9656 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9657 | |
212380e3 AC |
9658 | ;; |
9659 | esac | |
631ef239 AC |
9660 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9661 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9662 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9664 | else | |
9665 | ac_cv_header_zlib_h=$ac_header_preproc | |
9666 | fi | |
631ef239 AC |
9667 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9668 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9669 | |
9670 | fi | |
9671 | if test $ac_cv_header_zlib_h = yes; then | |
9672 | ||
631ef239 AC |
9673 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9674 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
212380e3 AC |
9675 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9677 | else | |
9678 | ac_check_lib_save_LIBS=$LIBS | |
9679 | LIBS="-lz $LIBS" | |
9680 | cat >conftest.$ac_ext <<_ACEOF | |
9681 | /* confdefs.h. */ | |
9682 | _ACEOF | |
9683 | cat confdefs.h >>conftest.$ac_ext | |
9684 | cat >>conftest.$ac_ext <<_ACEOF | |
9685 | /* end confdefs.h. */ | |
9686 | ||
631ef239 AC |
9687 | /* Override any GCC internal prototype to avoid an error. |
9688 | Use char because int might match the return type of a GCC | |
9689 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9690 | #ifdef __cplusplus |
9691 | extern "C" | |
9692 | #endif | |
212380e3 AC |
9693 | char zlibVersion (); |
9694 | int | |
9695 | main () | |
9696 | { | |
631ef239 | 9697 | return zlibVersion (); |
212380e3 AC |
9698 | ; |
9699 | return 0; | |
9700 | } | |
9701 | _ACEOF | |
9702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9703 | if { (ac_try="$ac_link" |
9704 | case "(($ac_try" in | |
9705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9706 | *) ac_try_echo=$ac_try;; | |
9707 | esac | |
9708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9709 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9710 | ac_status=$? |
9711 | grep -v '^ *+' conftest.er1 >conftest.err | |
9712 | rm -f conftest.er1 | |
9713 | cat conftest.err >&5 | |
9714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9715 | (exit $ac_status); } && { |
9716 | test -z "$ac_c_werror_flag" || | |
9717 | test ! -s conftest.err | |
9718 | } && test -s conftest$ac_exeext && | |
9719 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9720 | ac_cv_lib_z_zlibVersion=yes |
9721 | else | |
9722 | echo "$as_me: failed program was:" >&5 | |
9723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9724 | ||
631ef239 | 9725 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 9726 | fi |
631ef239 AC |
9727 | |
9728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9729 | conftest$ac_exeext conftest.$ac_ext |
9730 | LIBS=$ac_check_lib_save_LIBS | |
9731 | fi | |
631ef239 AC |
9732 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9733 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
212380e3 AC |
9734 | if test $ac_cv_lib_z_zlibVersion = yes; then |
9735 | ||
9736 | ZLIB_LD=-lz | |
9737 | ||
9738 | ||
9739 | cat >>confdefs.h <<\_ACEOF | |
9740 | #define HAVE_LIBZ 1 | |
9741 | _ACEOF | |
9742 | ||
9743 | ||
9744 | else | |
9745 | zlib=no | |
9746 | fi | |
9747 | ||
9748 | ||
9749 | else | |
9750 | zlib=no | |
9751 | fi | |
9752 | ||
9753 | ||
9754 | ||
9755 | fi | |
9756 | ||
9757 | ||
631ef239 | 9758 | # Check whether --enable-poll was given. |
212380e3 | 9759 | if test "${enable_poll+set}" = set; then |
631ef239 | 9760 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
9761 | SELECT_TYPE_EXPLICIT="poll" |
9762 | else | |
9763 | use_poll=no | |
9764 | fi | |
9765 | ||
631ef239 AC |
9766 | fi |
9767 | ||
212380e3 | 9768 | |
631ef239 | 9769 | # Check whether --enable-select was given. |
212380e3 | 9770 | if test "${enable_select+set}" = set; then |
631ef239 | 9771 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
9772 | SELECT_TYPE_EXPLICIT="select" |
9773 | else | |
9774 | use_select=no | |
9775 | fi | |
9776 | ||
631ef239 AC |
9777 | fi |
9778 | ||
212380e3 | 9779 | |
631ef239 | 9780 | # Check whether --enable-kqueue was given. |
212380e3 | 9781 | if test "${enable_kqueue+set}" = set; then |
631ef239 | 9782 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
9783 | SELECT_TYPE_EXPLICIT="kqueue" |
9784 | else | |
9785 | use_kqueue=no | |
9786 | fi | |
9787 | ||
631ef239 AC |
9788 | fi |
9789 | ||
212380e3 | 9790 | |
631ef239 | 9791 | # Check whether --enable-epoll was given. |
212380e3 | 9792 | if test "${enable_epoll+set}" = set; then |
631ef239 | 9793 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 9794 | SELECT_TYPE_EXPLICIT="epoll" |
3ad1a781 JT |
9795 | |
9796 | for ac_func in epoll_ctl | |
9797 | do | |
9798 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9799 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9800 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9801 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3ad1a781 JT |
9802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9803 | else | |
9804 | cat >conftest.$ac_ext <<_ACEOF | |
9805 | /* confdefs.h. */ | |
9806 | _ACEOF | |
9807 | cat confdefs.h >>conftest.$ac_ext | |
9808 | cat >>conftest.$ac_ext <<_ACEOF | |
9809 | /* end confdefs.h. */ | |
9810 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9811 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9812 | #define $ac_func innocuous_$ac_func | |
9813 | ||
9814 | /* System header to define __stub macros and hopefully few prototypes, | |
9815 | which can conflict with char $ac_func (); below. | |
9816 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9817 | <limits.h> exists even on freestanding compilers. */ | |
9818 | ||
9819 | #ifdef __STDC__ | |
9820 | # include <limits.h> | |
9821 | #else | |
9822 | # include <assert.h> | |
9823 | #endif | |
9824 | ||
9825 | #undef $ac_func | |
9826 | ||
631ef239 AC |
9827 | /* Override any GCC internal prototype to avoid an error. |
9828 | Use char because int might match the return type of a GCC | |
9829 | builtin and then its argument prototype would still apply. */ | |
3ad1a781 JT |
9830 | #ifdef __cplusplus |
9831 | extern "C" | |
3ad1a781 | 9832 | #endif |
3ad1a781 JT |
9833 | char $ac_func (); |
9834 | /* The GNU C library defines this for functions which it implements | |
9835 | to always fail with ENOSYS. Some functions are actually named | |
9836 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9837 | #if defined __stub_$ac_func || defined __stub___$ac_func |
3ad1a781 | 9838 | choke me |
3ad1a781 JT |
9839 | #endif |
9840 | ||
9841 | int | |
9842 | main () | |
9843 | { | |
631ef239 | 9844 | return $ac_func (); |
3ad1a781 JT |
9845 | ; |
9846 | return 0; | |
9847 | } | |
9848 | _ACEOF | |
9849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9850 | if { (ac_try="$ac_link" |
9851 | case "(($ac_try" in | |
9852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9853 | *) ac_try_echo=$ac_try;; | |
9854 | esac | |
9855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9856 | (eval "$ac_link") 2>conftest.er1 | |
3ad1a781 JT |
9857 | ac_status=$? |
9858 | grep -v '^ *+' conftest.er1 >conftest.err | |
9859 | rm -f conftest.er1 | |
9860 | cat conftest.err >&5 | |
9861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9862 | (exit $ac_status); } && { |
9863 | test -z "$ac_c_werror_flag" || | |
9864 | test ! -s conftest.err | |
9865 | } && test -s conftest$ac_exeext && | |
9866 | $as_test_x conftest$ac_exeext; then | |
3ad1a781 JT |
9867 | eval "$as_ac_var=yes" |
9868 | else | |
9869 | echo "$as_me: failed program was:" >&5 | |
9870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9871 | ||
631ef239 | 9872 | eval "$as_ac_var=no" |
3ad1a781 | 9873 | fi |
631ef239 AC |
9874 | |
9875 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3ad1a781 JT |
9876 | conftest$ac_exeext conftest.$ac_ext |
9877 | fi | |
631ef239 AC |
9878 | ac_res=`eval echo '${'$as_ac_var'}'` |
9879 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9880 | echo "${ECHO_T}$ac_res" >&6; } | |
3ad1a781 JT |
9881 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9882 | cat >>confdefs.h <<_ACEOF | |
9883 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9884 | _ACEOF | |
9885 | haveepoll=yes | |
9886 | else | |
9887 | haveepoll=no | |
9888 | fi | |
9889 | done | |
9890 | ||
212380e3 AC |
9891 | else |
9892 | use_epoll=no | |
9893 | fi | |
9894 | ||
631ef239 AC |
9895 | fi |
9896 | ||
212380e3 AC |
9897 | |
9898 | ||
631ef239 AC |
9899 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 |
9900 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
212380e3 | 9901 | |
631ef239 | 9902 | # Check whether --with-confdir was given. |
212380e3 | 9903 | if test "${with_confdir+set}" = set; then |
631ef239 AC |
9904 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
9905 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9906 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9907 | |
9908 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9909 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9910 | ac_define_dir=`eval echo $confdir` | |
9911 | ac_define_dir=`eval echo $ac_define_dir` | |
9912 | ETC_DIR="$ac_define_dir" | |
9913 | ||
9914 | ||
9915 | cat >>confdefs.h <<_ACEOF | |
9916 | #define ETC_DIR "$ac_define_dir" | |
9917 | _ACEOF | |
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | confdir=`( | |
9923 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9924 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9925 | eval echo \""$confdir"\" | |
9926 | )` | |
9927 | ||
9928 | ||
9929 | else | |
9930 | confdir='${prefix}/etc' | |
631ef239 AC |
9931 | { echo "$as_me:$LINENO: result: no" >&5 |
9932 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9933 | |
9934 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9935 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9936 | ac_define_dir=`eval echo $confdir` | |
9937 | ac_define_dir=`eval echo $ac_define_dir` | |
9938 | ETC_DIR="$ac_define_dir" | |
9939 | ||
9940 | ||
9941 | cat >>confdefs.h <<_ACEOF | |
9942 | #define ETC_DIR "$ac_define_dir" | |
9943 | _ACEOF | |
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | confdir=`( | |
9949 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9950 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9951 | eval echo \""$confdir"\" | |
9952 | )` | |
9953 | ||
9954 | ||
9955 | ||
631ef239 AC |
9956 | fi |
9957 | ||
212380e3 AC |
9958 | |
9959 | ||
631ef239 AC |
9960 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 |
9961 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
212380e3 | 9962 | |
631ef239 | 9963 | # Check whether --with-logdir was given. |
212380e3 | 9964 | if test "${with_logdir+set}" = set; then |
631ef239 AC |
9965 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
9966 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9967 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9968 | |
9969 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9970 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9971 | ac_define_dir=`eval echo $logdir` | |
9972 | ac_define_dir=`eval echo $ac_define_dir` | |
9973 | LOG_DIR="$ac_define_dir" | |
9974 | ||
9975 | ||
9976 | cat >>confdefs.h <<_ACEOF | |
9977 | #define LOG_DIR "$ac_define_dir" | |
9978 | _ACEOF | |
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | logdir=`( | |
9984 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9985 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9986 | eval echo \""$logdir"\" | |
9987 | )` | |
9988 | ||
9989 | ||
9990 | else | |
9991 | logdir='${prefix}/logs' | |
631ef239 AC |
9992 | { echo "$as_me:$LINENO: result: no" >&5 |
9993 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9994 | |
9995 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9996 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9997 | ac_define_dir=`eval echo $logdir` | |
9998 | ac_define_dir=`eval echo $ac_define_dir` | |
9999 | LOG_DIR="$ac_define_dir" | |
10000 | ||
10001 | ||
10002 | cat >>confdefs.h <<_ACEOF | |
10003 | #define LOG_DIR "$ac_define_dir" | |
10004 | _ACEOF | |
10005 | ||
10006 | ||
10007 | ||
10008 | ||
10009 | logdir=`( | |
10010 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10011 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10012 | eval echo \""$logdir"\" | |
10013 | )` | |
10014 | ||
10015 | ||
10016 | ||
631ef239 AC |
10017 | fi |
10018 | ||
212380e3 AC |
10019 | |
10020 | ||
631ef239 AC |
10021 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 |
10022 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
212380e3 | 10023 | |
631ef239 | 10024 | # Check whether --with-helpdir was given. |
212380e3 | 10025 | if test "${with_helpdir+set}" = set; then |
631ef239 AC |
10026 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
10027 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10028 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10029 | |
10030 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10031 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10032 | ac_define_dir=`eval echo $helpdir` | |
10033 | ac_define_dir=`eval echo $ac_define_dir` | |
10034 | HELP_DIR="$ac_define_dir" | |
10035 | ||
10036 | ||
10037 | cat >>confdefs.h <<_ACEOF | |
10038 | #define HELP_DIR "$ac_define_dir" | |
10039 | _ACEOF | |
10040 | ||
10041 | ||
10042 | ||
10043 | ||
10044 | helpdir=`( | |
10045 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10046 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10047 | eval echo \""$helpdir"\" | |
10048 | )` | |
10049 | ||
10050 | ||
10051 | else | |
10052 | helpdir='${prefix}/help' | |
631ef239 AC |
10053 | { echo "$as_me:$LINENO: result: no" >&5 |
10054 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10055 | |
10056 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10057 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10058 | ac_define_dir=`eval echo $helpdir` | |
10059 | ac_define_dir=`eval echo $ac_define_dir` | |
10060 | HELP_DIR="$ac_define_dir" | |
10061 | ||
10062 | ||
10063 | cat >>confdefs.h <<_ACEOF | |
10064 | #define HELP_DIR "$ac_define_dir" | |
10065 | _ACEOF | |
10066 | ||
10067 | ||
10068 | ||
10069 | ||
10070 | helpdir=`( | |
10071 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10072 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10073 | eval echo \""$helpdir"\" | |
10074 | )` | |
10075 | ||
10076 | ||
10077 | ||
631ef239 AC |
10078 | fi |
10079 | ||
212380e3 AC |
10080 | |
10081 | ||
631ef239 AC |
10082 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 |
10083 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
212380e3 | 10084 | |
631ef239 | 10085 | # Check whether --with-moduledir was given. |
212380e3 | 10086 | if test "${with_moduledir+set}" = set; then |
631ef239 AC |
10087 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
10088 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10089 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10090 | |
10091 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10092 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10093 | ac_define_dir=`eval echo $moduledir` | |
10094 | ac_define_dir=`eval echo $ac_define_dir` | |
10095 | MODULE_DIR="$ac_define_dir" | |
10096 | ||
10097 | ||
10098 | cat >>confdefs.h <<_ACEOF | |
10099 | #define MODULE_DIR "$ac_define_dir" | |
10100 | _ACEOF | |
10101 | ||
10102 | ||
10103 | ||
10104 | ||
10105 | moduledir=`( | |
10106 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10107 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10108 | eval echo \""$moduledir"\" | |
10109 | )` | |
10110 | ||
10111 | ||
10112 | else | |
10113 | moduledir='${prefix}/modules' | |
631ef239 AC |
10114 | { echo "$as_me:$LINENO: result: no" >&5 |
10115 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10116 | |
10117 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10118 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10119 | ac_define_dir=`eval echo $moduledir` | |
10120 | ac_define_dir=`eval echo $ac_define_dir` | |
10121 | MODULE_DIR="$ac_define_dir" | |
10122 | ||
10123 | ||
10124 | cat >>confdefs.h <<_ACEOF | |
10125 | #define MODULE_DIR "$ac_define_dir" | |
10126 | _ACEOF | |
10127 | ||
10128 | ||
10129 | ||
10130 | ||
10131 | moduledir=`( | |
10132 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
10133 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
10134 | eval echo \""$moduledir"\" | |
10135 | )` | |
10136 | ||
10137 | ||
10138 | ||
631ef239 AC |
10139 | fi |
10140 | ||
212380e3 AC |
10141 | |
10142 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
10143 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
10144 | echo "Forcing $SELECT_TYPE to be enabled" | |
10145 | else | |
10146 | ||
10147 | if test ! "x$use_select" = "xno"; then | |
10148 | ||
10149 | for ac_func in select | |
10150 | do | |
10151 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10152 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10153 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10154 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10156 | else | |
10157 | cat >conftest.$ac_ext <<_ACEOF | |
10158 | /* confdefs.h. */ | |
10159 | _ACEOF | |
10160 | cat confdefs.h >>conftest.$ac_ext | |
10161 | cat >>conftest.$ac_ext <<_ACEOF | |
10162 | /* end confdefs.h. */ | |
10163 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10164 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10165 | #define $ac_func innocuous_$ac_func | |
10166 | ||
10167 | /* System header to define __stub macros and hopefully few prototypes, | |
10168 | which can conflict with char $ac_func (); below. | |
10169 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10170 | <limits.h> exists even on freestanding compilers. */ | |
10171 | ||
10172 | #ifdef __STDC__ | |
10173 | # include <limits.h> | |
10174 | #else | |
10175 | # include <assert.h> | |
10176 | #endif | |
10177 | ||
10178 | #undef $ac_func | |
10179 | ||
631ef239 AC |
10180 | /* Override any GCC internal prototype to avoid an error. |
10181 | Use char because int might match the return type of a GCC | |
10182 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10183 | #ifdef __cplusplus |
10184 | extern "C" | |
212380e3 | 10185 | #endif |
212380e3 AC |
10186 | char $ac_func (); |
10187 | /* The GNU C library defines this for functions which it implements | |
10188 | to always fail with ENOSYS. Some functions are actually named | |
10189 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10190 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10191 | choke me |
212380e3 AC |
10192 | #endif |
10193 | ||
10194 | int | |
10195 | main () | |
10196 | { | |
631ef239 | 10197 | return $ac_func (); |
212380e3 AC |
10198 | ; |
10199 | return 0; | |
10200 | } | |
10201 | _ACEOF | |
10202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10203 | if { (ac_try="$ac_link" |
10204 | case "(($ac_try" in | |
10205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10206 | *) ac_try_echo=$ac_try;; | |
10207 | esac | |
10208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10209 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10210 | ac_status=$? |
10211 | grep -v '^ *+' conftest.er1 >conftest.err | |
10212 | rm -f conftest.er1 | |
10213 | cat conftest.err >&5 | |
10214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10215 | (exit $ac_status); } && { |
10216 | test -z "$ac_c_werror_flag" || | |
10217 | test ! -s conftest.err | |
10218 | } && test -s conftest$ac_exeext && | |
10219 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10220 | eval "$as_ac_var=yes" |
10221 | else | |
10222 | echo "$as_me: failed program was:" >&5 | |
10223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10224 | ||
631ef239 | 10225 | eval "$as_ac_var=no" |
212380e3 | 10226 | fi |
631ef239 AC |
10227 | |
10228 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10229 | conftest$ac_exeext conftest.$ac_ext |
10230 | fi | |
631ef239 AC |
10231 | ac_res=`eval echo '${'$as_ac_var'}'` |
10232 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10233 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10234 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10235 | cat >>confdefs.h <<_ACEOF | |
10236 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10237 | _ACEOF | |
10238 | haveselect=yes | |
10239 | else | |
10240 | haveselect=no | |
10241 | fi | |
10242 | done | |
10243 | ||
10244 | if test "x$haveselect" = "xyes" ; then | |
10245 | SELECT_TYPE="select" | |
10246 | fi | |
10247 | fi | |
10248 | ||
10249 | if test ! "x$use_poll" = "xno"; then | |
10250 | ||
10251 | for ac_func in poll | |
10252 | do | |
10253 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10254 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10255 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10256 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10258 | else | |
10259 | cat >conftest.$ac_ext <<_ACEOF | |
10260 | /* confdefs.h. */ | |
10261 | _ACEOF | |
10262 | cat confdefs.h >>conftest.$ac_ext | |
10263 | cat >>conftest.$ac_ext <<_ACEOF | |
10264 | /* end confdefs.h. */ | |
10265 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10266 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10267 | #define $ac_func innocuous_$ac_func | |
10268 | ||
10269 | /* System header to define __stub macros and hopefully few prototypes, | |
10270 | which can conflict with char $ac_func (); below. | |
10271 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10272 | <limits.h> exists even on freestanding compilers. */ | |
10273 | ||
10274 | #ifdef __STDC__ | |
10275 | # include <limits.h> | |
10276 | #else | |
10277 | # include <assert.h> | |
10278 | #endif | |
10279 | ||
10280 | #undef $ac_func | |
10281 | ||
631ef239 AC |
10282 | /* Override any GCC internal prototype to avoid an error. |
10283 | Use char because int might match the return type of a GCC | |
10284 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10285 | #ifdef __cplusplus |
10286 | extern "C" | |
212380e3 | 10287 | #endif |
212380e3 AC |
10288 | char $ac_func (); |
10289 | /* The GNU C library defines this for functions which it implements | |
10290 | to always fail with ENOSYS. Some functions are actually named | |
10291 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10292 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10293 | choke me |
212380e3 AC |
10294 | #endif |
10295 | ||
10296 | int | |
10297 | main () | |
10298 | { | |
631ef239 | 10299 | return $ac_func (); |
212380e3 AC |
10300 | ; |
10301 | return 0; | |
10302 | } | |
10303 | _ACEOF | |
10304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10305 | if { (ac_try="$ac_link" |
10306 | case "(($ac_try" in | |
10307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10308 | *) ac_try_echo=$ac_try;; | |
10309 | esac | |
10310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10311 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10312 | ac_status=$? |
10313 | grep -v '^ *+' conftest.er1 >conftest.err | |
10314 | rm -f conftest.er1 | |
10315 | cat conftest.err >&5 | |
10316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10317 | (exit $ac_status); } && { |
10318 | test -z "$ac_c_werror_flag" || | |
10319 | test ! -s conftest.err | |
10320 | } && test -s conftest$ac_exeext && | |
10321 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10322 | eval "$as_ac_var=yes" |
10323 | else | |
10324 | echo "$as_me: failed program was:" >&5 | |
10325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10326 | ||
631ef239 | 10327 | eval "$as_ac_var=no" |
212380e3 | 10328 | fi |
631ef239 AC |
10329 | |
10330 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10331 | conftest$ac_exeext conftest.$ac_ext |
10332 | fi | |
631ef239 AC |
10333 | ac_res=`eval echo '${'$as_ac_var'}'` |
10334 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10335 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10336 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10337 | cat >>confdefs.h <<_ACEOF | |
10338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10339 | _ACEOF | |
10340 | havepoll=yes | |
10341 | else | |
10342 | havepoll=no | |
10343 | fi | |
10344 | done | |
10345 | ||
10346 | if test "x$havepoll" = "xyes" ; then | |
10347 | SELECT_TYPE="poll" | |
10348 | fi | |
10349 | fi | |
10350 | ||
212380e3 AC |
10351 | if test ! "x$use_kqueue" = "xno"; then |
10352 | ||
10353 | for ac_func in kevent | |
10354 | do | |
10355 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10356 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10357 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10358 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10360 | else | |
10361 | cat >conftest.$ac_ext <<_ACEOF | |
10362 | /* confdefs.h. */ | |
10363 | _ACEOF | |
10364 | cat confdefs.h >>conftest.$ac_ext | |
10365 | cat >>conftest.$ac_ext <<_ACEOF | |
10366 | /* end confdefs.h. */ | |
10367 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10369 | #define $ac_func innocuous_$ac_func | |
10370 | ||
10371 | /* System header to define __stub macros and hopefully few prototypes, | |
10372 | which can conflict with char $ac_func (); below. | |
10373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10374 | <limits.h> exists even on freestanding compilers. */ | |
10375 | ||
10376 | #ifdef __STDC__ | |
10377 | # include <limits.h> | |
10378 | #else | |
10379 | # include <assert.h> | |
10380 | #endif | |
10381 | ||
10382 | #undef $ac_func | |
10383 | ||
631ef239 AC |
10384 | /* Override any GCC internal prototype to avoid an error. |
10385 | Use char because int might match the return type of a GCC | |
10386 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10387 | #ifdef __cplusplus |
10388 | extern "C" | |
212380e3 | 10389 | #endif |
212380e3 AC |
10390 | char $ac_func (); |
10391 | /* The GNU C library defines this for functions which it implements | |
10392 | to always fail with ENOSYS. Some functions are actually named | |
10393 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10394 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10395 | choke me |
212380e3 AC |
10396 | #endif |
10397 | ||
10398 | int | |
10399 | main () | |
10400 | { | |
631ef239 | 10401 | return $ac_func (); |
212380e3 AC |
10402 | ; |
10403 | return 0; | |
10404 | } | |
10405 | _ACEOF | |
10406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10407 | if { (ac_try="$ac_link" |
10408 | case "(($ac_try" in | |
10409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10410 | *) ac_try_echo=$ac_try;; | |
10411 | esac | |
10412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10413 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10414 | ac_status=$? |
10415 | grep -v '^ *+' conftest.er1 >conftest.err | |
10416 | rm -f conftest.er1 | |
10417 | cat conftest.err >&5 | |
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10419 | (exit $ac_status); } && { |
10420 | test -z "$ac_c_werror_flag" || | |
10421 | test ! -s conftest.err | |
10422 | } && test -s conftest$ac_exeext && | |
10423 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10424 | eval "$as_ac_var=yes" |
10425 | else | |
10426 | echo "$as_me: failed program was:" >&5 | |
10427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10428 | ||
631ef239 | 10429 | eval "$as_ac_var=no" |
212380e3 | 10430 | fi |
631ef239 AC |
10431 | |
10432 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10433 | conftest$ac_exeext conftest.$ac_ext |
10434 | fi | |
631ef239 AC |
10435 | ac_res=`eval echo '${'$as_ac_var'}'` |
10436 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10437 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10438 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10439 | cat >>confdefs.h <<_ACEOF | |
10440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10441 | _ACEOF | |
10442 | havekqueue=yes | |
10443 | else | |
10444 | havekqueue=no | |
10445 | fi | |
10446 | done | |
10447 | ||
10448 | if test "x$havekqueue" = "xyes" ; then | |
10449 | SELECT_TYPE="kqueue" | |
10450 | fi | |
10451 | fi | |
10452 | ||
10453 | if test ! "x$use_epoll" = "xno"; then | |
10454 | ||
10455 | for ac_func in epoll_ctl | |
10456 | do | |
10457 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10458 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10459 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10460 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10462 | else | |
10463 | cat >conftest.$ac_ext <<_ACEOF | |
10464 | /* confdefs.h. */ | |
10465 | _ACEOF | |
10466 | cat confdefs.h >>conftest.$ac_ext | |
10467 | cat >>conftest.$ac_ext <<_ACEOF | |
10468 | /* end confdefs.h. */ | |
10469 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10470 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10471 | #define $ac_func innocuous_$ac_func | |
10472 | ||
10473 | /* System header to define __stub macros and hopefully few prototypes, | |
10474 | which can conflict with char $ac_func (); below. | |
10475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10476 | <limits.h> exists even on freestanding compilers. */ | |
10477 | ||
10478 | #ifdef __STDC__ | |
10479 | # include <limits.h> | |
10480 | #else | |
10481 | # include <assert.h> | |
10482 | #endif | |
10483 | ||
10484 | #undef $ac_func | |
10485 | ||
631ef239 AC |
10486 | /* Override any GCC internal prototype to avoid an error. |
10487 | Use char because int might match the return type of a GCC | |
10488 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10489 | #ifdef __cplusplus |
10490 | extern "C" | |
212380e3 | 10491 | #endif |
212380e3 AC |
10492 | char $ac_func (); |
10493 | /* The GNU C library defines this for functions which it implements | |
10494 | to always fail with ENOSYS. Some functions are actually named | |
10495 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10496 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10497 | choke me |
212380e3 AC |
10498 | #endif |
10499 | ||
10500 | int | |
10501 | main () | |
10502 | { | |
631ef239 | 10503 | return $ac_func (); |
212380e3 AC |
10504 | ; |
10505 | return 0; | |
10506 | } | |
10507 | _ACEOF | |
10508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10509 | if { (ac_try="$ac_link" |
10510 | case "(($ac_try" in | |
10511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10512 | *) ac_try_echo=$ac_try;; | |
10513 | esac | |
10514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10515 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10516 | ac_status=$? |
10517 | grep -v '^ *+' conftest.er1 >conftest.err | |
10518 | rm -f conftest.er1 | |
10519 | cat conftest.err >&5 | |
10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10521 | (exit $ac_status); } && { |
10522 | test -z "$ac_c_werror_flag" || | |
10523 | test ! -s conftest.err | |
10524 | } && test -s conftest$ac_exeext && | |
10525 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10526 | eval "$as_ac_var=yes" |
10527 | else | |
10528 | echo "$as_me: failed program was:" >&5 | |
10529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10530 | ||
631ef239 | 10531 | eval "$as_ac_var=no" |
212380e3 | 10532 | fi |
631ef239 AC |
10533 | |
10534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10535 | conftest$ac_exeext conftest.$ac_ext |
10536 | fi | |
631ef239 AC |
10537 | ac_res=`eval echo '${'$as_ac_var'}'` |
10538 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10539 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10540 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10541 | cat >>confdefs.h <<_ACEOF | |
10542 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10543 | _ACEOF | |
10544 | haveepoll=yes | |
10545 | else | |
10546 | haveepoll=no | |
10547 | fi | |
10548 | done | |
10549 | ||
10550 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10551 | if test "x$haveepoll" = "xyes" ; then | |
631ef239 AC |
10552 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10553 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
212380e3 | 10554 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10555 | { echo "$as_me:$LINENO: result: no" >&5 |
10556 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10557 | else |
10558 | cat >conftest.$ac_ext <<_ACEOF | |
10559 | /* confdefs.h. */ | |
10560 | _ACEOF | |
10561 | cat confdefs.h >>conftest.$ac_ext | |
10562 | cat >>conftest.$ac_ext <<_ACEOF | |
10563 | /* end confdefs.h. */ | |
10564 | #include <stdint.h> | |
10565 | #include <sys/param.h> | |
10566 | #include <sys/types.h> | |
10567 | #include <sys/epoll.h> | |
10568 | #include <sys/syscall.h> | |
10569 | #include <unistd.h> | |
10570 | ||
10571 | int | |
10572 | main(int argc, char **argv) | |
10573 | { | |
10574 | int epfd; | |
10575 | ||
10576 | epfd = epoll_create(256); | |
10577 | exit (epfd == -1 ? 1 : 0); | |
10578 | } | |
10579 | _ACEOF | |
10580 | rm -f conftest$ac_exeext | |
631ef239 AC |
10581 | if { (ac_try="$ac_link" |
10582 | case "(($ac_try" in | |
10583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10584 | *) ac_try_echo=$ac_try;; | |
10585 | esac | |
10586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10587 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10588 | ac_status=$? |
10589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10590 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10591 | { (case "(($ac_try" in |
10592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10593 | *) ac_try_echo=$ac_try;; | |
10594 | esac | |
10595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10596 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10597 | ac_status=$? |
10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10599 | (exit $ac_status); }; }; then | |
631ef239 AC |
10600 | { echo "$as_me:$LINENO: result: yes" >&5 |
10601 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10602 | |
10603 | cat >>confdefs.h <<\_ACEOF | |
10604 | #define HAVE_EPOLL 1 | |
10605 | _ACEOF | |
10606 | ||
10607 | SELECT_TYPE="epoll" | |
10608 | else | |
10609 | echo "$as_me: program exited with status $ac_status" >&5 | |
10610 | echo "$as_me: failed program was:" >&5 | |
10611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10612 | ||
10613 | ( exit $ac_status ) | |
631ef239 AC |
10614 | { echo "$as_me:$LINENO: result: no" >&5 |
10615 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10616 | fi |
631ef239 | 10617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10618 | fi |
631ef239 AC |
10619 | |
10620 | ||
212380e3 AC |
10621 | fi |
10622 | fi | |
10623 | ||
10624 | haveepollsyscall=no | |
10625 | ||
10626 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10627 | if test "x$haveepoll" = "xno" ; then | |
631ef239 AC |
10628 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 |
10629 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
212380e3 | 10630 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10631 | { echo "$as_me:$LINENO: result: no" >&5 |
10632 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10633 | else |
10634 | cat >conftest.$ac_ext <<_ACEOF | |
10635 | /* confdefs.h. */ | |
10636 | _ACEOF | |
10637 | cat confdefs.h >>conftest.$ac_ext | |
10638 | cat >>conftest.$ac_ext <<_ACEOF | |
10639 | /* end confdefs.h. */ | |
10640 | #include <stdint.h> | |
10641 | #include <sys/param.h> | |
10642 | #include <sys/types.h> | |
10643 | #include <sys/epoll.h> | |
10644 | #include <sys/syscall.h> | |
10645 | #include <unistd.h> | |
10646 | ||
10647 | int | |
10648 | epoll_create(int size) | |
10649 | { | |
10650 | return (syscall(__NR_epoll_create, size)); | |
10651 | } | |
10652 | ||
10653 | int | |
10654 | main(int argc, char **argv) | |
10655 | { | |
10656 | int epfd; | |
10657 | ||
10658 | epfd = epoll_create(256); | |
10659 | exit (epfd == -1 ? 1 : 0); | |
10660 | } | |
10661 | _ACEOF | |
10662 | rm -f conftest$ac_exeext | |
631ef239 AC |
10663 | if { (ac_try="$ac_link" |
10664 | case "(($ac_try" in | |
10665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10666 | *) ac_try_echo=$ac_try;; | |
10667 | esac | |
10668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10669 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10670 | ac_status=$? |
10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10673 | { (case "(($ac_try" in |
10674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10675 | *) ac_try_echo=$ac_try;; | |
10676 | esac | |
10677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10678 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10679 | ac_status=$? |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; }; then | |
631ef239 AC |
10682 | { echo "$as_me:$LINENO: result: yes" >&5 |
10683 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10684 | |
10685 | cat >>confdefs.h <<\_ACEOF | |
10686 | #define HAVE_EPOLL 1 | |
10687 | _ACEOF | |
10688 | ||
10689 | SELECT_TYPE="epoll" | |
10690 | else | |
10691 | echo "$as_me: program exited with status $ac_status" >&5 | |
10692 | echo "$as_me: failed program was:" >&5 | |
10693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10694 | ||
10695 | ( exit $ac_status ) | |
631ef239 AC |
10696 | { echo "$as_me:$LINENO: result: no" >&5 |
10697 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10698 | fi |
631ef239 | 10699 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10700 | fi |
631ef239 AC |
10701 | |
10702 | ||
212380e3 AC |
10703 | fi |
10704 | fi | |
10705 | ||
10706 | fi | |
10707 | ||
10708 | fi | |
10709 | ||
10710 | if test -z "$SELECT_TYPE"; then | |
10711 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
10712 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
10713 | { (exit 1); exit 1; }; } | |
10714 | fi | |
10715 | ||
10716 | echo "Using $SELECT_TYPE for select loop." | |
10717 | ||
10718 | ||
10719 | cat >>confdefs.h <<_ACEOF | |
10720 | #define SELECT_TYPE "$SELECT_TYPE" | |
10721 | _ACEOF | |
10722 | ||
10723 | ||
10724 | ||
10725 | ||
10726 | ||
631ef239 | 10727 | # Check whether --enable-assert was given. |
212380e3 | 10728 | if test "${enable_assert+set}" = set; then |
631ef239 | 10729 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
10730 | else |
10731 | assert=no | |
631ef239 AC |
10732 | fi |
10733 | ||
212380e3 AC |
10734 | |
10735 | if test "$assert" = no; then | |
10736 | ||
10737 | cat >>confdefs.h <<\_ACEOF | |
10738 | #define NDEBUG 1 | |
10739 | _ACEOF | |
10740 | ||
10741 | elif test "$assert" = soft; then | |
10742 | ||
10743 | cat >>confdefs.h <<\_ACEOF | |
10744 | #define SOFT_ASSERT 1 | |
10745 | _ACEOF | |
10746 | ||
10747 | ||
10748 | cat >>confdefs.h <<\_ACEOF | |
10749 | #define NDEBUG 1 | |
10750 | _ACEOF | |
10751 | ||
10752 | elif test "$assert" = yes; then | |
10753 | assert = "hard"; | |
10754 | fi | |
10755 | ||
631ef239 AC |
10756 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 |
10757 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
10758 | # Check whether --enable-iodebug was given. | |
212380e3 | 10759 | if test "${enable_iodebug+set}" = set; then |
631ef239 | 10760 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
10761 | else |
10762 | iodebug=no | |
631ef239 AC |
10763 | fi |
10764 | ||
212380e3 AC |
10765 | |
10766 | if test "$iodebug" = yes; then | |
10767 | ||
10768 | cat >>confdefs.h <<\_ACEOF | |
10769 | #define USE_IODEBUG_HOOKS 1 | |
10770 | _ACEOF | |
10771 | ||
631ef239 AC |
10772 | { echo "$as_me:$LINENO: result: yes" >&5 |
10773 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10774 | else |
631ef239 AC |
10775 | { echo "$as_me:$LINENO: result: no" >&5 |
10776 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10777 | fi |
10778 | ||
10779 | ||
631ef239 AC |
10780 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
10781 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
10782 | # Check whether --enable-profile was given. | |
212380e3 | 10783 | if test "${enable_profile+set}" = set; then |
631ef239 | 10784 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
10785 | else |
10786 | profile=no | |
631ef239 AC |
10787 | fi |
10788 | ||
212380e3 AC |
10789 | |
10790 | if test "$profile" = yes; then | |
10791 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
10792 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
631ef239 AC |
10793 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 |
10794 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
212380e3 AC |
10795 | |
10796 | cat >>confdefs.h <<\_ACEOF | |
10797 | #define CHARYBDIS_PROFILE 1 | |
10798 | _ACEOF | |
10799 | ||
10800 | else | |
631ef239 AC |
10801 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
10802 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
10803 | fi |
10804 | else | |
631ef239 AC |
10805 | { echo "$as_me:$LINENO: result: no" >&5 |
10806 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10807 | fi |
10808 | ||
631ef239 | 10809 | # Check whether --enable-balloc was given. |
212380e3 | 10810 | if test "${enable_balloc+set}" = set; then |
631ef239 | 10811 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
10812 | else |
10813 | balloc=yes | |
631ef239 AC |
10814 | fi |
10815 | ||
212380e3 AC |
10816 | |
10817 | if test "$balloc" = no; then | |
10818 | ||
10819 | cat >>confdefs.h <<\_ACEOF | |
10820 | #define NOBALLOC 1 | |
10821 | _ACEOF | |
10822 | ||
10823 | fi | |
10824 | ||
631ef239 | 10825 | # Check whether --enable-small-net was given. |
212380e3 | 10826 | if test "${enable_small_net+set}" = set; then |
631ef239 | 10827 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
10828 | else |
10829 | small_net=no | |
631ef239 AC |
10830 | fi |
10831 | ||
212380e3 AC |
10832 | |
10833 | if test "$small_net" = yes; then | |
10834 | ||
10835 | cat >>confdefs.h <<\_ACEOF | |
10836 | #define NICKNAMEHISTORYLENGTH 1500 | |
10837 | _ACEOF | |
10838 | ||
10839 | ||
10840 | cat >>confdefs.h <<\_ACEOF | |
10841 | #define CHANNEL_HEAP_SIZE 256 | |
10842 | _ACEOF | |
10843 | ||
10844 | ||
10845 | cat >>confdefs.h <<\_ACEOF | |
10846 | #define BAN_HEAP_SIZE 128 | |
10847 | _ACEOF | |
10848 | ||
10849 | ||
10850 | cat >>confdefs.h <<\_ACEOF | |
10851 | #define CLIENT_HEAP_SIZE 256 | |
10852 | _ACEOF | |
10853 | ||
10854 | ||
10855 | cat >>confdefs.h <<\_ACEOF | |
10856 | #define LCLIENT_HEAP_SIZE 128 | |
10857 | _ACEOF | |
10858 | ||
10859 | ||
10860 | cat >>confdefs.h <<\_ACEOF | |
10861 | #define PCLIENT_HEAP_SIZE 32 | |
10862 | _ACEOF | |
10863 | ||
10864 | ||
10865 | cat >>confdefs.h <<\_ACEOF | |
10866 | #define USER_HEAP_SIZE 128 | |
10867 | _ACEOF | |
10868 | ||
10869 | ||
10870 | cat >>confdefs.h <<\_ACEOF | |
10871 | #define DNODE_HEAP_SIZE 256 | |
10872 | _ACEOF | |
10873 | ||
10874 | ||
10875 | cat >>confdefs.h <<\_ACEOF | |
10876 | #define TOPIC_HEAP_SIZE 256 | |
10877 | _ACEOF | |
10878 | ||
10879 | ||
10880 | cat >>confdefs.h <<\_ACEOF | |
10881 | #define LINEBUF_HEAP_SIZE 128 | |
10882 | _ACEOF | |
10883 | ||
10884 | ||
10885 | cat >>confdefs.h <<\_ACEOF | |
10886 | #define MEMBER_HEAP_SIZE 256 | |
10887 | _ACEOF | |
10888 | ||
10889 | ||
10890 | cat >>confdefs.h <<\_ACEOF | |
10891 | #define ND_HEAP_SIZE 128 | |
10892 | _ACEOF | |
10893 | ||
10894 | ||
10895 | cat >>confdefs.h <<\_ACEOF | |
10896 | #define CONFITEM_HEAP_SIZE 128 | |
10897 | _ACEOF | |
10898 | ||
10899 | ||
10900 | cat >>confdefs.h <<\_ACEOF | |
10901 | #define MONITOR_HEAP_SIZE 128 | |
10902 | _ACEOF | |
10903 | ||
10904 | else | |
10905 | ||
10906 | cat >>confdefs.h <<\_ACEOF | |
10907 | #define NICKNAMEHISTORYLENGTH 15000 | |
10908 | _ACEOF | |
10909 | ||
10910 | ||
10911 | cat >>confdefs.h <<\_ACEOF | |
10912 | #define CHANNEL_HEAP_SIZE 8192 | |
10913 | _ACEOF | |
10914 | ||
10915 | ||
10916 | cat >>confdefs.h <<\_ACEOF | |
10917 | #define BAN_HEAP_SIZE 4096 | |
10918 | _ACEOF | |
10919 | ||
10920 | ||
10921 | cat >>confdefs.h <<\_ACEOF | |
10922 | #define CLIENT_HEAP_SIZE 8192 | |
10923 | _ACEOF | |
10924 | ||
10925 | ||
10926 | cat >>confdefs.h <<\_ACEOF | |
10927 | #define LCLIENT_HEAP_SIZE 1024 | |
10928 | _ACEOF | |
10929 | ||
10930 | ||
10931 | cat >>confdefs.h <<\_ACEOF | |
10932 | #define PCLIENT_HEAP_SIZE 256 | |
10933 | _ACEOF | |
10934 | ||
10935 | ||
10936 | cat >>confdefs.h <<\_ACEOF | |
10937 | #define USER_HEAP_SIZE 8192 | |
10938 | _ACEOF | |
10939 | ||
10940 | ||
10941 | cat >>confdefs.h <<\_ACEOF | |
10942 | #define DNODE_HEAP_SIZE 8192 | |
10943 | _ACEOF | |
10944 | ||
10945 | ||
10946 | cat >>confdefs.h <<\_ACEOF | |
10947 | #define TOPIC_HEAP_SIZE 4096 | |
10948 | _ACEOF | |
10949 | ||
10950 | ||
10951 | cat >>confdefs.h <<\_ACEOF | |
10952 | #define LINEBUF_HEAP_SIZE 2048 | |
10953 | _ACEOF | |
10954 | ||
10955 | ||
10956 | cat >>confdefs.h <<\_ACEOF | |
10957 | #define MEMBER_HEAP_SIZE 32768 | |
10958 | _ACEOF | |
10959 | ||
10960 | ||
10961 | cat >>confdefs.h <<\_ACEOF | |
10962 | #define ND_HEAP_SIZE 512 | |
10963 | _ACEOF | |
10964 | ||
10965 | ||
10966 | cat >>confdefs.h <<\_ACEOF | |
10967 | #define CONFITEM_HEAP_SIZE 256 | |
10968 | _ACEOF | |
10969 | ||
10970 | ||
10971 | cat >>confdefs.h <<\_ACEOF | |
10972 | #define MONITOR_HEAP_SIZE 1024 | |
10973 | _ACEOF | |
10974 | ||
10975 | fi | |
10976 | ||
10977 | ||
631ef239 | 10978 | # Check whether --with-nicklen was given. |
212380e3 | 10979 | if test "${with_nicklen+set}" = set; then |
631ef239 | 10980 | withval=$with_nicklen; |
212380e3 AC |
10981 | if test $withval -ge 50; then |
10982 | NICKLEN=50 | |
10983 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
10984 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
10985 | else | |
10986 | NICKLEN="$withval" | |
10987 | fi | |
10988 | ||
10989 | else | |
10990 | NICKLEN=15 | |
631ef239 | 10991 | fi |
212380e3 AC |
10992 | |
10993 | ||
212380e3 | 10994 | |
631ef239 AC |
10995 | # Check whether --with-topiclen was given. |
10996 | if test "${with_topiclen+set}" = set; then | |
10997 | withval=$with_topiclen; | |
212380e3 AC |
10998 | if test $withval -ge 390; then |
10999 | TOPICLEN=390 | |
11000 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
11001 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
11002 | else | |
11003 | TOPICLEN=$withval | |
11004 | fi | |
11005 | ||
11006 | else | |
11007 | TOPICLEN=390 | |
212380e3 AC |
11008 | fi |
11009 | ||
212380e3 AC |
11010 | |
11011 | ||
11012 | cat >>confdefs.h <<_ACEOF | |
11013 | #define TOPICLEN ${TOPICLEN} | |
11014 | _ACEOF | |
11015 | ||
11016 | ||
11017 | cat >>confdefs.h <<_ACEOF | |
11018 | #define NICKLEN (${NICKLEN}+1) | |
11019 | _ACEOF | |
11020 | ||
11021 | ||
631ef239 | 11022 | # Check whether --enable-shared-modules was given. |
212380e3 | 11023 | if test "${enable_shared_modules+set}" = set; then |
631ef239 | 11024 | enableval=$enable_shared_modules; shared_modules=$enableval |
212380e3 AC |
11025 | else |
11026 | shared_modules="yes" | |
631ef239 AC |
11027 | fi |
11028 | ||
212380e3 AC |
11029 | |
11030 | if test "$shared_modules" = yes; then | |
11031 | ||
11032 | if test "$CYGWIN" = yes; then | |
11033 | { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5 | |
11034 | echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;} | |
11035 | shared_modules="no" | |
11036 | fi | |
11037 | ||
11038 | if test "$CC" = tcc -a "$TenDRA" = "no"; then | |
11039 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
11040 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
11041 | shared_modules="no" | |
11042 | fi | |
11043 | fi | |
11044 | ||
11045 | if test "$shared_modules" = yes; then | |
11046 | DYNLINK_C=dynlink.c | |
11047 | ||
11048 | for ac_header in dlfcn.h | |
11049 | do | |
11050 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11052 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11054 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11056 | fi | |
631ef239 AC |
11057 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11059 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11060 | else |
11061 | # Is the header compilable? | |
631ef239 AC |
11062 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11064 | cat >conftest.$ac_ext <<_ACEOF |
11065 | /* confdefs.h. */ | |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | $ac_includes_default | |
11071 | #include <$ac_header> | |
11072 | _ACEOF | |
11073 | rm -f conftest.$ac_objext | |
631ef239 AC |
11074 | if { (ac_try="$ac_compile" |
11075 | case "(($ac_try" in | |
11076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11077 | *) ac_try_echo=$ac_try;; | |
11078 | esac | |
11079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11080 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11081 | ac_status=$? |
11082 | grep -v '^ *+' conftest.er1 >conftest.err | |
11083 | rm -f conftest.er1 | |
11084 | cat conftest.err >&5 | |
11085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11086 | (exit $ac_status); } && { |
11087 | test -z "$ac_c_werror_flag" || | |
11088 | test ! -s conftest.err | |
11089 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11090 | ac_header_compiler=yes |
11091 | else | |
11092 | echo "$as_me: failed program was:" >&5 | |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11094 | ||
631ef239 | 11095 | ac_header_compiler=no |
212380e3 | 11096 | fi |
631ef239 AC |
11097 | |
11098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11099 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11100 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11101 | |
11102 | # Is the header present? | |
631ef239 AC |
11103 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11105 | cat >conftest.$ac_ext <<_ACEOF |
11106 | /* confdefs.h. */ | |
11107 | _ACEOF | |
11108 | cat confdefs.h >>conftest.$ac_ext | |
11109 | cat >>conftest.$ac_ext <<_ACEOF | |
11110 | /* end confdefs.h. */ | |
11111 | #include <$ac_header> | |
11112 | _ACEOF | |
631ef239 AC |
11113 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11114 | case "(($ac_try" in | |
11115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11116 | *) ac_try_echo=$ac_try;; | |
11117 | esac | |
11118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11120 | ac_status=$? |
11121 | grep -v '^ *+' conftest.er1 >conftest.err | |
11122 | rm -f conftest.er1 | |
11123 | cat conftest.err >&5 | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11125 | (exit $ac_status); } >/dev/null && { |
11126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11127 | test ! -s conftest.err | |
11128 | }; then | |
212380e3 AC |
11129 | ac_header_preproc=yes |
11130 | else | |
11131 | echo "$as_me: failed program was:" >&5 | |
11132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11133 | ||
11134 | ac_header_preproc=no | |
11135 | fi | |
631ef239 | 11136 | |
212380e3 | 11137 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11138 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11139 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11140 | |
11141 | # So? What about this header? | |
11142 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11143 | yes:no: ) | |
11144 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11145 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11146 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11147 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11148 | ac_header_preproc=yes | |
11149 | ;; | |
11150 | no:yes:* ) | |
11151 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11152 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11153 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11154 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11155 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11156 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11158 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11161 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11162 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11163 | |
212380e3 AC |
11164 | ;; |
11165 | esac | |
631ef239 AC |
11166 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11167 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11168 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11170 | else | |
11171 | eval "$as_ac_Header=\$ac_header_preproc" | |
11172 | fi | |
631ef239 AC |
11173 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11175 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11176 | |
11177 | fi | |
11178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11179 | cat >>confdefs.h <<_ACEOF | |
11180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11181 | _ACEOF | |
11182 | ||
11183 | fi | |
11184 | ||
11185 | done | |
11186 | ||
631ef239 AC |
11187 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
11188 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
212380e3 AC |
11189 | if test "${ac_cv_search_shl_load+set}" = set; then |
11190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11191 | else | |
11192 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11193 | cat >conftest.$ac_ext <<_ACEOF |
11194 | /* confdefs.h. */ | |
11195 | _ACEOF | |
11196 | cat confdefs.h >>conftest.$ac_ext | |
11197 | cat >>conftest.$ac_ext <<_ACEOF | |
11198 | /* end confdefs.h. */ | |
11199 | ||
631ef239 AC |
11200 | /* Override any GCC internal prototype to avoid an error. |
11201 | Use char because int might match the return type of a GCC | |
11202 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11203 | #ifdef __cplusplus |
11204 | extern "C" | |
11205 | #endif | |
212380e3 AC |
11206 | char shl_load (); |
11207 | int | |
11208 | main () | |
11209 | { | |
631ef239 | 11210 | return shl_load (); |
212380e3 AC |
11211 | ; |
11212 | return 0; | |
11213 | } | |
11214 | _ACEOF | |
631ef239 AC |
11215 | for ac_lib in '' dld; do |
11216 | if test -z "$ac_lib"; then | |
11217 | ac_res="none required" | |
11218 | else | |
11219 | ac_res=-l$ac_lib | |
11220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11221 | fi | |
11222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11223 | if { (ac_try="$ac_link" | |
11224 | case "(($ac_try" in | |
11225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11226 | *) ac_try_echo=$ac_try;; | |
11227 | esac | |
11228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11229 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11230 | ac_status=$? |
11231 | grep -v '^ *+' conftest.er1 >conftest.err | |
11232 | rm -f conftest.er1 | |
11233 | cat conftest.err >&5 | |
11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11235 | (exit $ac_status); } && { |
11236 | test -z "$ac_c_werror_flag" || | |
11237 | test ! -s conftest.err | |
11238 | } && test -s conftest$ac_exeext && | |
11239 | $as_test_x conftest$ac_exeext; then | |
11240 | ac_cv_search_shl_load=$ac_res | |
212380e3 AC |
11241 | else |
11242 | echo "$as_me: failed program was:" >&5 | |
11243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11244 | ||
212380e3 | 11245 | |
631ef239 | 11246 | fi |
212380e3 | 11247 | |
631ef239 AC |
11248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11249 | conftest$ac_exeext | |
11250 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11251 | break | |
212380e3 | 11252 | fi |
631ef239 AC |
11253 | done |
11254 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11255 | : | |
11256 | else | |
11257 | ac_cv_search_shl_load=no | |
212380e3 | 11258 | fi |
631ef239 | 11259 | rm conftest.$ac_ext |
212380e3 AC |
11260 | LIBS=$ac_func_search_save_LIBS |
11261 | fi | |
631ef239 AC |
11262 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11263 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11264 | ac_res=$ac_cv_search_shl_load | |
11265 | if test "$ac_res" != no; then | |
11266 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11267 | |
11268 | ||
11269 | cat >>confdefs.h <<\_ACEOF | |
11270 | #define HAVE_SHL_LOAD 1 | |
11271 | _ACEOF | |
11272 | ||
11273 | SUFFIX=".sl" | |
11274 | MOD_TARGET=hpux_shared | |
11275 | SEDOBJ="s/\.o/.sl/g" | |
11276 | ||
11277 | else | |
11278 | ||
631ef239 AC |
11279 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11280 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
212380e3 AC |
11281 | if test "${ac_cv_search_dlopen+set}" = set; then |
11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11283 | else | |
11284 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11285 | cat >conftest.$ac_ext <<_ACEOF |
11286 | /* confdefs.h. */ | |
11287 | _ACEOF | |
11288 | cat confdefs.h >>conftest.$ac_ext | |
11289 | cat >>conftest.$ac_ext <<_ACEOF | |
11290 | /* end confdefs.h. */ | |
11291 | ||
631ef239 AC |
11292 | /* Override any GCC internal prototype to avoid an error. |
11293 | Use char because int might match the return type of a GCC | |
11294 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11295 | #ifdef __cplusplus |
11296 | extern "C" | |
11297 | #endif | |
212380e3 AC |
11298 | char dlopen (); |
11299 | int | |
11300 | main () | |
11301 | { | |
631ef239 | 11302 | return dlopen (); |
212380e3 AC |
11303 | ; |
11304 | return 0; | |
11305 | } | |
11306 | _ACEOF | |
631ef239 AC |
11307 | for ac_lib in '' dl c_r; do |
11308 | if test -z "$ac_lib"; then | |
11309 | ac_res="none required" | |
11310 | else | |
11311 | ac_res=-l$ac_lib | |
11312 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11313 | fi | |
11314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11315 | if { (ac_try="$ac_link" | |
11316 | case "(($ac_try" in | |
11317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11318 | *) ac_try_echo=$ac_try;; | |
11319 | esac | |
11320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11321 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11322 | ac_status=$? |
11323 | grep -v '^ *+' conftest.er1 >conftest.err | |
11324 | rm -f conftest.er1 | |
11325 | cat conftest.err >&5 | |
11326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11327 | (exit $ac_status); } && { |
11328 | test -z "$ac_c_werror_flag" || | |
11329 | test ! -s conftest.err | |
11330 | } && test -s conftest$ac_exeext && | |
11331 | $as_test_x conftest$ac_exeext; then | |
11332 | ac_cv_search_dlopen=$ac_res | |
212380e3 AC |
11333 | else |
11334 | echo "$as_me: failed program was:" >&5 | |
11335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11336 | ||
212380e3 | 11337 | |
631ef239 | 11338 | fi |
212380e3 | 11339 | |
631ef239 AC |
11340 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11341 | conftest$ac_exeext | |
11342 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11343 | break | |
212380e3 | 11344 | fi |
631ef239 AC |
11345 | done |
11346 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11347 | : | |
11348 | else | |
11349 | ac_cv_search_dlopen=no | |
212380e3 | 11350 | fi |
631ef239 | 11351 | rm conftest.$ac_ext |
212380e3 AC |
11352 | LIBS=$ac_func_search_save_LIBS |
11353 | fi | |
631ef239 AC |
11354 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11355 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11356 | ac_res=$ac_cv_search_dlopen | |
11357 | if test "$ac_res" != no; then | |
11358 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11359 | |
11360 | ||
11361 | cat >>confdefs.h <<\_ACEOF | |
11362 | #define HAVE_DLOPEN 1 | |
11363 | _ACEOF | |
11364 | ||
11365 | SUFFIX=".so" | |
11366 | MOD_TARGET=shared_modules | |
11367 | SEDOBJ="s/\.o/.so/g" | |
11368 | if test "$AppleGCC" = yes; then | |
11369 | ||
11370 | for ac_header in mach-o/dyld.h | |
11371 | do | |
11372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11374 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11378 | fi | |
631ef239 AC |
11379 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11380 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11381 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11382 | else |
11383 | # Is the header compilable? | |
631ef239 AC |
11384 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11385 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11386 | cat >conftest.$ac_ext <<_ACEOF |
11387 | /* confdefs.h. */ | |
11388 | _ACEOF | |
11389 | cat confdefs.h >>conftest.$ac_ext | |
11390 | cat >>conftest.$ac_ext <<_ACEOF | |
11391 | /* end confdefs.h. */ | |
11392 | $ac_includes_default | |
11393 | #include <$ac_header> | |
11394 | _ACEOF | |
11395 | rm -f conftest.$ac_objext | |
631ef239 AC |
11396 | if { (ac_try="$ac_compile" |
11397 | case "(($ac_try" in | |
11398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11399 | *) ac_try_echo=$ac_try;; | |
11400 | esac | |
11401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11402 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11403 | ac_status=$? |
11404 | grep -v '^ *+' conftest.er1 >conftest.err | |
11405 | rm -f conftest.er1 | |
11406 | cat conftest.err >&5 | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11408 | (exit $ac_status); } && { |
11409 | test -z "$ac_c_werror_flag" || | |
11410 | test ! -s conftest.err | |
11411 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11412 | ac_header_compiler=yes |
11413 | else | |
11414 | echo "$as_me: failed program was:" >&5 | |
11415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11416 | ||
631ef239 | 11417 | ac_header_compiler=no |
212380e3 | 11418 | fi |
631ef239 AC |
11419 | |
11420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11421 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11422 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11423 | |
11424 | # Is the header present? | |
631ef239 AC |
11425 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11427 | cat >conftest.$ac_ext <<_ACEOF |
11428 | /* confdefs.h. */ | |
11429 | _ACEOF | |
11430 | cat confdefs.h >>conftest.$ac_ext | |
11431 | cat >>conftest.$ac_ext <<_ACEOF | |
11432 | /* end confdefs.h. */ | |
11433 | #include <$ac_header> | |
11434 | _ACEOF | |
631ef239 AC |
11435 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11436 | case "(($ac_try" in | |
11437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11438 | *) ac_try_echo=$ac_try;; | |
11439 | esac | |
11440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11442 | ac_status=$? |
11443 | grep -v '^ *+' conftest.er1 >conftest.err | |
11444 | rm -f conftest.er1 | |
11445 | cat conftest.err >&5 | |
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11447 | (exit $ac_status); } >/dev/null && { |
11448 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11449 | test ! -s conftest.err | |
11450 | }; then | |
212380e3 AC |
11451 | ac_header_preproc=yes |
11452 | else | |
11453 | echo "$as_me: failed program was:" >&5 | |
11454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11455 | ||
11456 | ac_header_preproc=no | |
11457 | fi | |
631ef239 | 11458 | |
212380e3 | 11459 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11460 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11461 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11462 | |
11463 | # So? What about this header? | |
11464 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11465 | yes:no: ) | |
11466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11469 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11470 | ac_header_preproc=yes | |
11471 | ;; | |
11472 | no:yes:* ) | |
11473 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11474 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11475 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11476 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11477 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11478 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11479 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11480 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11482 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11483 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11484 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11485 | |
212380e3 AC |
11486 | ;; |
11487 | esac | |
631ef239 AC |
11488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11492 | else | |
11493 | eval "$as_ac_Header=\$ac_header_preproc" | |
11494 | fi | |
631ef239 AC |
11495 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11496 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11497 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11498 | |
11499 | fi | |
11500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11501 | cat >>confdefs.h <<_ACEOF | |
11502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11503 | _ACEOF | |
11504 | ||
11505 | fi | |
11506 | ||
11507 | done | |
11508 | ||
11509 | fi | |
631ef239 AC |
11510 | { echo "$as_me:$LINENO: checking for dlsym" >&5 |
11511 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
212380e3 AC |
11512 | if test "${ac_cv_func_dlsym+set}" = set; then |
11513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11514 | else | |
11515 | cat >conftest.$ac_ext <<_ACEOF | |
11516 | /* confdefs.h. */ | |
11517 | _ACEOF | |
11518 | cat confdefs.h >>conftest.$ac_ext | |
11519 | cat >>conftest.$ac_ext <<_ACEOF | |
11520 | /* end confdefs.h. */ | |
11521 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11522 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11523 | #define dlsym innocuous_dlsym | |
11524 | ||
11525 | /* System header to define __stub macros and hopefully few prototypes, | |
11526 | which can conflict with char dlsym (); below. | |
11527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11528 | <limits.h> exists even on freestanding compilers. */ | |
11529 | ||
11530 | #ifdef __STDC__ | |
11531 | # include <limits.h> | |
11532 | #else | |
11533 | # include <assert.h> | |
11534 | #endif | |
11535 | ||
11536 | #undef dlsym | |
11537 | ||
631ef239 AC |
11538 | /* Override any GCC internal prototype to avoid an error. |
11539 | Use char because int might match the return type of a GCC | |
11540 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11541 | #ifdef __cplusplus |
11542 | extern "C" | |
212380e3 | 11543 | #endif |
212380e3 AC |
11544 | char dlsym (); |
11545 | /* The GNU C library defines this for functions which it implements | |
11546 | to always fail with ENOSYS. Some functions are actually named | |
11547 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11548 | #if defined __stub_dlsym || defined __stub___dlsym |
212380e3 | 11549 | choke me |
212380e3 AC |
11550 | #endif |
11551 | ||
11552 | int | |
11553 | main () | |
11554 | { | |
631ef239 | 11555 | return dlsym (); |
212380e3 AC |
11556 | ; |
11557 | return 0; | |
11558 | } | |
11559 | _ACEOF | |
11560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11561 | if { (ac_try="$ac_link" |
11562 | case "(($ac_try" in | |
11563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11564 | *) ac_try_echo=$ac_try;; | |
11565 | esac | |
11566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11567 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11568 | ac_status=$? |
11569 | grep -v '^ *+' conftest.er1 >conftest.err | |
11570 | rm -f conftest.er1 | |
11571 | cat conftest.err >&5 | |
11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11573 | (exit $ac_status); } && { |
11574 | test -z "$ac_c_werror_flag" || | |
11575 | test ! -s conftest.err | |
11576 | } && test -s conftest$ac_exeext && | |
11577 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11578 | ac_cv_func_dlsym=yes |
11579 | else | |
11580 | echo "$as_me: failed program was:" >&5 | |
11581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11582 | ||
631ef239 | 11583 | ac_cv_func_dlsym=no |
212380e3 | 11584 | fi |
631ef239 AC |
11585 | |
11586 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11587 | conftest$ac_exeext conftest.$ac_ext |
11588 | fi | |
631ef239 AC |
11589 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11590 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
212380e3 AC |
11591 | if test $ac_cv_func_dlsym = yes; then |
11592 | : | |
11593 | else | |
11594 | ||
11595 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11596 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11597 | shared_modules=no | |
11598 | ||
11599 | fi | |
11600 | ||
11601 | ||
11602 | for ac_func in dlfunc | |
11603 | do | |
11604 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
11605 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11606 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11607 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11609 | else | |
11610 | cat >conftest.$ac_ext <<_ACEOF | |
11611 | /* confdefs.h. */ | |
11612 | _ACEOF | |
11613 | cat confdefs.h >>conftest.$ac_ext | |
11614 | cat >>conftest.$ac_ext <<_ACEOF | |
11615 | /* end confdefs.h. */ | |
11616 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11617 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11618 | #define $ac_func innocuous_$ac_func | |
11619 | ||
11620 | /* System header to define __stub macros and hopefully few prototypes, | |
11621 | which can conflict with char $ac_func (); below. | |
11622 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11623 | <limits.h> exists even on freestanding compilers. */ | |
11624 | ||
11625 | #ifdef __STDC__ | |
11626 | # include <limits.h> | |
11627 | #else | |
11628 | # include <assert.h> | |
11629 | #endif | |
11630 | ||
11631 | #undef $ac_func | |
11632 | ||
631ef239 AC |
11633 | /* Override any GCC internal prototype to avoid an error. |
11634 | Use char because int might match the return type of a GCC | |
11635 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11636 | #ifdef __cplusplus |
11637 | extern "C" | |
212380e3 | 11638 | #endif |
212380e3 AC |
11639 | char $ac_func (); |
11640 | /* The GNU C library defines this for functions which it implements | |
11641 | to always fail with ENOSYS. Some functions are actually named | |
11642 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11643 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 11644 | choke me |
212380e3 AC |
11645 | #endif |
11646 | ||
11647 | int | |
11648 | main () | |
11649 | { | |
631ef239 | 11650 | return $ac_func (); |
212380e3 AC |
11651 | ; |
11652 | return 0; | |
11653 | } | |
11654 | _ACEOF | |
11655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11656 | if { (ac_try="$ac_link" |
11657 | case "(($ac_try" in | |
11658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11659 | *) ac_try_echo=$ac_try;; | |
11660 | esac | |
11661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11662 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11663 | ac_status=$? |
11664 | grep -v '^ *+' conftest.er1 >conftest.err | |
11665 | rm -f conftest.er1 | |
11666 | cat conftest.err >&5 | |
11667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11668 | (exit $ac_status); } && { |
11669 | test -z "$ac_c_werror_flag" || | |
11670 | test ! -s conftest.err | |
11671 | } && test -s conftest$ac_exeext && | |
11672 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11673 | eval "$as_ac_var=yes" |
11674 | else | |
11675 | echo "$as_me: failed program was:" >&5 | |
11676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11677 | ||
631ef239 | 11678 | eval "$as_ac_var=no" |
212380e3 | 11679 | fi |
631ef239 AC |
11680 | |
11681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11682 | conftest$ac_exeext conftest.$ac_ext |
11683 | fi | |
631ef239 AC |
11684 | ac_res=`eval echo '${'$as_ac_var'}'` |
11685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11686 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11687 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11688 | cat >>confdefs.h <<_ACEOF | |
11689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11690 | _ACEOF | |
11691 | ||
11692 | fi | |
11693 | done | |
11694 | ||
11695 | ||
11696 | else | |
11697 | ||
11698 | shared_modules=no | |
11699 | ||
11700 | fi | |
11701 | ||
11702 | ||
11703 | fi | |
11704 | ||
11705 | fi | |
11706 | ||
11707 | ||
11708 | cat >>confdefs.h <<_ACEOF | |
11709 | #define SHARED_SUFFIX "$SUFFIX" | |
11710 | _ACEOF | |
11711 | ||
11712 | ||
11713 | if test "$shared_modules" = yes; then | |
11714 | # The GNU linker requires the -export-dynamic option to make | |
11715 | # all symbols visible in the dynamic symbol table. | |
11716 | hold_ldflags=$LDFLAGS | |
631ef239 AC |
11717 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
11718 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
212380e3 AC |
11719 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
11720 | cat >conftest.$ac_ext <<_ACEOF | |
11721 | /* confdefs.h. */ | |
11722 | _ACEOF | |
11723 | cat confdefs.h >>conftest.$ac_ext | |
11724 | cat >>conftest.$ac_ext <<_ACEOF | |
11725 | /* end confdefs.h. */ | |
11726 | ||
11727 | int | |
11728 | main () | |
11729 | { | |
11730 | int i; | |
11731 | ; | |
11732 | return 0; | |
11733 | } | |
11734 | _ACEOF | |
11735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11736 | if { (ac_try="$ac_link" |
11737 | case "(($ac_try" in | |
11738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11739 | *) ac_try_echo=$ac_try;; | |
11740 | esac | |
11741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11742 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11743 | ac_status=$? |
11744 | grep -v '^ *+' conftest.er1 >conftest.err | |
11745 | rm -f conftest.er1 | |
11746 | cat conftest.err >&5 | |
11747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11748 | (exit $ac_status); } && { |
11749 | test -z "$ac_c_werror_flag" || | |
11750 | test ! -s conftest.err | |
11751 | } && test -s conftest$ac_exeext && | |
11752 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11753 | found=yes |
11754 | else | |
11755 | echo "$as_me: failed program was:" >&5 | |
11756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11757 | ||
631ef239 | 11758 | found=no |
212380e3 | 11759 | fi |
631ef239 AC |
11760 | |
11761 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11762 | conftest$ac_exeext conftest.$ac_ext |
11763 | LDFLAGS=$hold_ldflags | |
11764 | ||
11765 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
11766 | found="no, IRIX ld uses -B,dynamic" | |
11767 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
11768 | fi | |
11769 | ||
11770 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
11771 | found="no, AIX ld uses -G -brtl" | |
11772 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
11773 | fi | |
11774 | ||
631ef239 AC |
11775 | { echo "$as_me:$LINENO: result: $found" >&5 |
11776 | echo "${ECHO_T}$found" >&6; } | |
212380e3 AC |
11777 | |
11778 | if test "$found" = yes; then | |
11779 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
11780 | fi | |
11781 | ||
631ef239 AC |
11782 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
11783 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
212380e3 | 11784 | if test "$SGS" = "yes"; then |
631ef239 AC |
11785 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
11786 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
11787 | PICFLAGS="-KPIC -DPIC -G" |
11788 | fi | |
11789 | ||
11790 | if test "$AppleGCC" = "yes"; then | |
631ef239 AC |
11791 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
11792 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
11793 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
11794 | fi | |
11795 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
631ef239 AC |
11796 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
11797 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 11798 | PICFLAGS="+z -r -q -n -c" |
631ef239 AC |
11799 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
11800 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
212380e3 AC |
11801 | |
11802 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
631ef239 AC |
11803 | { echo "$as_me:$LINENO: result: no" >&5 |
11804 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11805 | else |
631ef239 AC |
11806 | { echo "$as_me:$LINENO: result: yes" >&5 |
11807 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
11808 | PICFLAGS="$PICFLAGS +ESfic" |
11809 | fi | |
11810 | ||
11811 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
11812 | fi | |
11813 | if test "$Tru" = yes -a "$CC" != gcc; then | |
631ef239 AC |
11814 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
11815 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
11816 | PICFLAGS="-shared -expect_unresolved '*' " |
11817 | LDFLAGS="-call_shared" | |
11818 | fi | |
11819 | if test -z "$PICFLAGS"; then | |
11820 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
631ef239 AC |
11821 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
11822 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
11823 | PICFLAGS="-fPIC -DPIC -shared" |
11824 | else | |
631ef239 AC |
11825 | { echo "$as_me:$LINENO: result: no" >&5 |
11826 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11827 | shared_modules=no |
11828 | fi | |
11829 | fi | |
11830 | fi | |
11831 | ||
11832 | # This must be down here, or it will mess up checks like the ones | |
11833 | # for -Wl,-export-dynamic | |
11834 | # -- jilles | |
631ef239 | 11835 | # Check whether --enable-warnings was given. |
212380e3 | 11836 | if test "${enable_warnings+set}" = set; then |
631ef239 | 11837 | enableval=$enable_warnings; |
212380e3 AC |
11838 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
11839 | CFLAGS="$IRC_CFLAGS" | |
11840 | ||
11841 | ||
631ef239 AC |
11842 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 |
11843 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
212380e3 AC |
11844 | if test "${GCC-no}" = yes |
11845 | then | |
11846 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11848 | else | |
11849 | ||
11850 | oldcflags="${CFLAGS-}" | |
11851 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
11852 | cat >conftest.$ac_ext <<_ACEOF | |
11853 | /* confdefs.h. */ | |
11854 | _ACEOF | |
11855 | cat confdefs.h >>conftest.$ac_ext | |
11856 | cat >>conftest.$ac_ext <<_ACEOF | |
11857 | /* end confdefs.h. */ | |
11858 | ||
11859 | #include <string.h> | |
11860 | #include <stdio.h> | |
11861 | int main(void); | |
11862 | ||
11863 | int | |
11864 | main () | |
11865 | { | |
11866 | ||
b1fc1658 | 11867 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11868 | |
11869 | ; | |
11870 | return 0; | |
11871 | } | |
11872 | _ACEOF | |
11873 | rm -f conftest.$ac_objext | |
631ef239 AC |
11874 | if { (ac_try="$ac_compile" |
11875 | case "(($ac_try" in | |
11876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11877 | *) ac_try_echo=$ac_try;; | |
11878 | esac | |
11879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11880 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11881 | ac_status=$? |
11882 | grep -v '^ *+' conftest.er1 >conftest.err | |
11883 | rm -f conftest.er1 | |
11884 | cat conftest.err >&5 | |
11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11886 | (exit $ac_status); } && { |
11887 | test -z "$ac_c_werror_flag" || | |
11888 | test ! -s conftest.err | |
11889 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11890 | charybdis_cv_c_gcc_w_all=yes |
11891 | else | |
11892 | echo "$as_me: failed program was:" >&5 | |
11893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11894 | ||
631ef239 | 11895 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 11896 | fi |
631ef239 AC |
11897 | |
11898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11899 | CFLAGS="${oldcflags}" |
11900 | fi | |
11901 | ||
11902 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
11903 | CWARNS="${CWARNS}-Wall " | |
631ef239 AC |
11904 | { echo "$as_me:$LINENO: result: ok" >&5 |
11905 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11906 | else |
11907 | charybdis_cv_c_gcc_w_all='' | |
631ef239 AC |
11908 | { echo "$as_me:$LINENO: result: no" >&5 |
11909 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11910 | fi |
11911 | else | |
631ef239 AC |
11912 | { echo "$as_me:$LINENO: result: no" >&5 |
11913 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11914 | fi |
11915 | ||
11916 | ||
631ef239 AC |
11917 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 |
11918 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
212380e3 AC |
11919 | if test "${GCC-no}" = yes |
11920 | then | |
11921 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
11922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11923 | else | |
11924 | ||
11925 | oldcflags="${CFLAGS-}" | |
11926 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
11927 | cat >conftest.$ac_ext <<_ACEOF | |
11928 | /* confdefs.h. */ | |
11929 | _ACEOF | |
11930 | cat confdefs.h >>conftest.$ac_ext | |
11931 | cat >>conftest.$ac_ext <<_ACEOF | |
11932 | /* end confdefs.h. */ | |
11933 | ||
11934 | #include <string.h> | |
11935 | #include <stdio.h> | |
11936 | int main(void); | |
11937 | ||
11938 | int | |
11939 | main () | |
11940 | { | |
11941 | ||
b1fc1658 | 11942 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11943 | |
11944 | ; | |
11945 | return 0; | |
11946 | } | |
11947 | _ACEOF | |
11948 | rm -f conftest.$ac_objext | |
631ef239 AC |
11949 | if { (ac_try="$ac_compile" |
11950 | case "(($ac_try" in | |
11951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11952 | *) ac_try_echo=$ac_try;; | |
11953 | esac | |
11954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11955 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11956 | ac_status=$? |
11957 | grep -v '^ *+' conftest.er1 >conftest.err | |
11958 | rm -f conftest.er1 | |
11959 | cat conftest.err >&5 | |
11960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11961 | (exit $ac_status); } && { |
11962 | test -z "$ac_c_werror_flag" || | |
11963 | test ! -s conftest.err | |
11964 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11965 | charybdis_cv_c_gcc_w_pointer_arith=yes |
11966 | else | |
11967 | echo "$as_me: failed program was:" >&5 | |
11968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11969 | ||
631ef239 | 11970 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 11971 | fi |
631ef239 AC |
11972 | |
11973 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11974 | CFLAGS="${oldcflags}" |
11975 | fi | |
11976 | ||
11977 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
11978 | CWARNS="${CWARNS}-Wpointer-arith " | |
631ef239 AC |
11979 | { echo "$as_me:$LINENO: result: ok" >&5 |
11980 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11981 | else |
11982 | charybdis_cv_c_gcc_w_pointer_arith='' | |
631ef239 AC |
11983 | { echo "$as_me:$LINENO: result: no" >&5 |
11984 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11985 | fi |
11986 | else | |
631ef239 AC |
11987 | { echo "$as_me:$LINENO: result: no" >&5 |
11988 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11989 | fi |
11990 | ||
11991 | ||
631ef239 AC |
11992 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
11993 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
11994 | if test "${GCC-no}" = yes |
11995 | then | |
11996 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
11997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11998 | else | |
11999 | ||
12000 | oldcflags="${CFLAGS-}" | |
12001 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
12002 | cat >conftest.$ac_ext <<_ACEOF | |
12003 | /* confdefs.h. */ | |
12004 | _ACEOF | |
12005 | cat confdefs.h >>conftest.$ac_ext | |
12006 | cat >>conftest.$ac_ext <<_ACEOF | |
12007 | /* end confdefs.h. */ | |
12008 | ||
12009 | #include <string.h> | |
12010 | #include <stdio.h> | |
12011 | int main(void); | |
12012 | ||
12013 | int | |
12014 | main () | |
12015 | { | |
12016 | ||
b1fc1658 | 12017 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12018 | |
12019 | ; | |
12020 | return 0; | |
12021 | } | |
12022 | _ACEOF | |
12023 | rm -f conftest.$ac_objext | |
631ef239 AC |
12024 | if { (ac_try="$ac_compile" |
12025 | case "(($ac_try" in | |
12026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12027 | *) ac_try_echo=$ac_try;; | |
12028 | esac | |
12029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12030 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12031 | ac_status=$? |
12032 | grep -v '^ *+' conftest.er1 >conftest.err | |
12033 | rm -f conftest.er1 | |
12034 | cat conftest.err >&5 | |
12035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12036 | (exit $ac_status); } && { |
12037 | test -z "$ac_c_werror_flag" || | |
12038 | test ! -s conftest.err | |
12039 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12040 | charybdis_cv_c_gcc_w_implicit=yes |
12041 | else | |
12042 | echo "$as_me: failed program was:" >&5 | |
12043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12044 | ||
631ef239 | 12045 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 12046 | fi |
631ef239 AC |
12047 | |
12048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12049 | CFLAGS="${oldcflags}" |
12050 | fi | |
12051 | ||
12052 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
12053 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
631ef239 AC |
12054 | { echo "$as_me:$LINENO: result: ok" >&5 |
12055 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12056 | else |
12057 | charybdis_cv_c_gcc_w_implicit='' | |
631ef239 AC |
12058 | { echo "$as_me:$LINENO: result: no" >&5 |
12059 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12060 | fi |
12061 | else | |
631ef239 AC |
12062 | { echo "$as_me:$LINENO: result: no" >&5 |
12063 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12064 | fi |
12065 | ||
12066 | ||
631ef239 AC |
12067 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 |
12068 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
212380e3 AC |
12069 | if test "${GCC-no}" = yes |
12070 | then | |
12071 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
12072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12073 | else | |
12074 | ||
12075 | oldcflags="${CFLAGS-}" | |
12076 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
12077 | cat >conftest.$ac_ext <<_ACEOF | |
12078 | /* confdefs.h. */ | |
12079 | _ACEOF | |
12080 | cat confdefs.h >>conftest.$ac_ext | |
12081 | cat >>conftest.$ac_ext <<_ACEOF | |
12082 | /* end confdefs.h. */ | |
12083 | ||
12084 | #include <string.h> | |
12085 | #include <stdio.h> | |
12086 | int main(void); | |
12087 | ||
12088 | int | |
12089 | main () | |
12090 | { | |
12091 | ||
b1fc1658 | 12092 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12093 | |
12094 | ; | |
12095 | return 0; | |
12096 | } | |
12097 | _ACEOF | |
12098 | rm -f conftest.$ac_objext | |
631ef239 AC |
12099 | if { (ac_try="$ac_compile" |
12100 | case "(($ac_try" in | |
12101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12102 | *) ac_try_echo=$ac_try;; | |
12103 | esac | |
12104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12105 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12106 | ac_status=$? |
12107 | grep -v '^ *+' conftest.er1 >conftest.err | |
12108 | rm -f conftest.er1 | |
12109 | cat conftest.err >&5 | |
12110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12111 | (exit $ac_status); } && { |
12112 | test -z "$ac_c_werror_flag" || | |
12113 | test ! -s conftest.err | |
12114 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12115 | charybdis_cv_c_gcc_w_cast_align=yes |
12116 | else | |
12117 | echo "$as_me: failed program was:" >&5 | |
12118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12119 | ||
631ef239 | 12120 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 12121 | fi |
631ef239 AC |
12122 | |
12123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12124 | CFLAGS="${oldcflags}" |
12125 | fi | |
12126 | ||
12127 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
12128 | CWARNS="${CWARNS}-Wcast-align " | |
631ef239 AC |
12129 | { echo "$as_me:$LINENO: result: ok" >&5 |
12130 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12131 | else |
12132 | charybdis_cv_c_gcc_w_cast_align='' | |
631ef239 AC |
12133 | { echo "$as_me:$LINENO: result: no" >&5 |
12134 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12135 | fi |
12136 | else | |
631ef239 AC |
12137 | { echo "$as_me:$LINENO: result: no" >&5 |
12138 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12139 | fi |
12140 | ||
12141 | ||
631ef239 AC |
12142 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 |
12143 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
212380e3 AC |
12144 | if test "${GCC-no}" = yes |
12145 | then | |
12146 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
12147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12148 | else | |
12149 | ||
12150 | oldcflags="${CFLAGS-}" | |
12151 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12152 | cat >conftest.$ac_ext <<_ACEOF | |
12153 | /* confdefs.h. */ | |
12154 | _ACEOF | |
12155 | cat confdefs.h >>conftest.$ac_ext | |
12156 | cat >>conftest.$ac_ext <<_ACEOF | |
12157 | /* end confdefs.h. */ | |
12158 | ||
12159 | #include <string.h> | |
12160 | #include <stdio.h> | |
12161 | int main(void); | |
12162 | ||
12163 | int | |
12164 | main () | |
12165 | { | |
12166 | ||
b1fc1658 | 12167 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12168 | |
12169 | ; | |
12170 | return 0; | |
12171 | } | |
12172 | _ACEOF | |
12173 | rm -f conftest.$ac_objext | |
631ef239 AC |
12174 | if { (ac_try="$ac_compile" |
12175 | case "(($ac_try" in | |
12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12177 | *) ac_try_echo=$ac_try;; | |
12178 | esac | |
12179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12180 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12181 | ac_status=$? |
12182 | grep -v '^ *+' conftest.er1 >conftest.err | |
12183 | rm -f conftest.er1 | |
12184 | cat conftest.err >&5 | |
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12186 | (exit $ac_status); } && { |
12187 | test -z "$ac_c_werror_flag" || | |
12188 | test ! -s conftest.err | |
12189 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12190 | charybdis_cv_c_gcc_w_cast_qual=yes |
12191 | else | |
12192 | echo "$as_me: failed program was:" >&5 | |
12193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12194 | ||
631ef239 | 12195 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 12196 | fi |
631ef239 AC |
12197 | |
12198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12199 | CFLAGS="${oldcflags}" |
12200 | fi | |
12201 | ||
12202 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12203 | CWARNS="${CWARNS}-Wcast-qual " | |
631ef239 AC |
12204 | { echo "$as_me:$LINENO: result: ok" >&5 |
12205 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12206 | else |
12207 | charybdis_cv_c_gcc_w_cast_qual='' | |
631ef239 AC |
12208 | { echo "$as_me:$LINENO: result: no" >&5 |
12209 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12210 | fi |
12211 | else | |
631ef239 AC |
12212 | { echo "$as_me:$LINENO: result: no" >&5 |
12213 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12214 | fi |
12215 | ||
12216 | ||
631ef239 AC |
12217 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
12218 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
212380e3 AC |
12219 | if test "${GCC-no}" = yes |
12220 | then | |
12221 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12223 | else | |
12224 | ||
12225 | oldcflags="${CFLAGS-}" | |
12226 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12227 | cat >conftest.$ac_ext <<_ACEOF | |
12228 | /* confdefs.h. */ | |
12229 | _ACEOF | |
12230 | cat confdefs.h >>conftest.$ac_ext | |
12231 | cat >>conftest.$ac_ext <<_ACEOF | |
12232 | /* end confdefs.h. */ | |
12233 | ||
12234 | #include <string.h> | |
12235 | #include <stdio.h> | |
12236 | int main(void); | |
12237 | ||
12238 | int | |
12239 | main () | |
12240 | { | |
12241 | ||
b1fc1658 | 12242 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12243 | |
12244 | ; | |
12245 | return 0; | |
12246 | } | |
12247 | _ACEOF | |
12248 | rm -f conftest.$ac_objext | |
631ef239 AC |
12249 | if { (ac_try="$ac_compile" |
12250 | case "(($ac_try" in | |
12251 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12252 | *) ac_try_echo=$ac_try;; | |
12253 | esac | |
12254 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12255 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12256 | ac_status=$? |
12257 | grep -v '^ *+' conftest.er1 >conftest.err | |
12258 | rm -f conftest.er1 | |
12259 | cat conftest.err >&5 | |
12260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12261 | (exit $ac_status); } && { |
12262 | test -z "$ac_c_werror_flag" || | |
12263 | test ! -s conftest.err | |
12264 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12265 | charybdis_cv_c_gcc_prototypes=yes |
12266 | else | |
12267 | echo "$as_me: failed program was:" >&5 | |
12268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12269 | ||
631ef239 | 12270 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 12271 | fi |
631ef239 AC |
12272 | |
12273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12274 | CFLAGS="${oldcflags}" |
12275 | fi | |
12276 | ||
12277 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12278 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
631ef239 AC |
12279 | { echo "$as_me:$LINENO: result: ok" >&5 |
12280 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12281 | else |
12282 | charybdis_cv_c_gcc_prototypes='' | |
631ef239 AC |
12283 | { echo "$as_me:$LINENO: result: no" >&5 |
12284 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12285 | fi |
12286 | else | |
631ef239 AC |
12287 | { echo "$as_me:$LINENO: result: no" >&5 |
12288 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12289 | fi |
12290 | ||
12291 | ||
631ef239 AC |
12292 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 |
12293 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
212380e3 AC |
12294 | if test "${GCC-no}" = yes |
12295 | then | |
12296 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12298 | else | |
12299 | ||
12300 | oldcflags="${CFLAGS-}" | |
12301 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12302 | cat >conftest.$ac_ext <<_ACEOF | |
12303 | /* confdefs.h. */ | |
12304 | _ACEOF | |
12305 | cat confdefs.h >>conftest.$ac_ext | |
12306 | cat >>conftest.$ac_ext <<_ACEOF | |
12307 | /* end confdefs.h. */ | |
12308 | ||
12309 | #include <string.h> | |
12310 | #include <stdio.h> | |
12311 | int main(void); | |
12312 | ||
12313 | int | |
12314 | main () | |
12315 | { | |
12316 | ||
b1fc1658 | 12317 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12318 | |
12319 | ; | |
12320 | return 0; | |
12321 | } | |
12322 | _ACEOF | |
12323 | rm -f conftest.$ac_objext | |
631ef239 AC |
12324 | if { (ac_try="$ac_compile" |
12325 | case "(($ac_try" in | |
12326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12327 | *) ac_try_echo=$ac_try;; | |
12328 | esac | |
12329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12330 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12331 | ac_status=$? |
12332 | grep -v '^ *+' conftest.er1 >conftest.err | |
12333 | rm -f conftest.er1 | |
12334 | cat conftest.err >&5 | |
12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12336 | (exit $ac_status); } && { |
12337 | test -z "$ac_c_werror_flag" || | |
12338 | test ! -s conftest.err | |
12339 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12340 | charybdis_cv_c_gcc_parenthesis=yes |
12341 | else | |
12342 | echo "$as_me: failed program was:" >&5 | |
12343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12344 | ||
631ef239 | 12345 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 12346 | fi |
631ef239 AC |
12347 | |
12348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12349 | CFLAGS="${oldcflags}" |
12350 | fi | |
12351 | ||
12352 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12353 | CWARNS="${CWARNS}-Wparenthesis " | |
631ef239 AC |
12354 | { echo "$as_me:$LINENO: result: ok" >&5 |
12355 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12356 | else |
12357 | charybdis_cv_c_gcc_parenthesis='' | |
631ef239 AC |
12358 | { echo "$as_me:$LINENO: result: no" >&5 |
12359 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12360 | fi |
12361 | else | |
631ef239 AC |
12362 | { echo "$as_me:$LINENO: result: no" >&5 |
12363 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12364 | fi |
12365 | ||
12366 | ||
631ef239 AC |
12367 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 |
12368 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
212380e3 AC |
12369 | if test "${GCC-no}" = yes |
12370 | then | |
12371 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12373 | else | |
12374 | ||
12375 | oldcflags="${CFLAGS-}" | |
12376 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12377 | cat >conftest.$ac_ext <<_ACEOF | |
12378 | /* confdefs.h. */ | |
12379 | _ACEOF | |
12380 | cat confdefs.h >>conftest.$ac_ext | |
12381 | cat >>conftest.$ac_ext <<_ACEOF | |
12382 | /* end confdefs.h. */ | |
12383 | ||
12384 | #include <string.h> | |
12385 | #include <stdio.h> | |
12386 | int main(void); | |
12387 | ||
12388 | int | |
12389 | main () | |
12390 | { | |
12391 | ||
b1fc1658 | 12392 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12393 | |
12394 | ; | |
12395 | return 0; | |
12396 | } | |
12397 | _ACEOF | |
12398 | rm -f conftest.$ac_objext | |
631ef239 AC |
12399 | if { (ac_try="$ac_compile" |
12400 | case "(($ac_try" in | |
12401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12402 | *) ac_try_echo=$ac_try;; | |
12403 | esac | |
12404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12405 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12406 | ac_status=$? |
12407 | grep -v '^ *+' conftest.er1 >conftest.err | |
12408 | rm -f conftest.er1 | |
12409 | cat conftest.err >&5 | |
12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12411 | (exit $ac_status); } && { |
12412 | test -z "$ac_c_werror_flag" || | |
12413 | test ! -s conftest.err | |
12414 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12415 | charybdis_cv_c_gcc_w=yes |
12416 | else | |
12417 | echo "$as_me: failed program was:" >&5 | |
12418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12419 | ||
631ef239 | 12420 | charybdis_cv_c_gcc_w=no |
212380e3 | 12421 | fi |
631ef239 AC |
12422 | |
12423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12424 | CFLAGS="${oldcflags}" |
12425 | fi | |
12426 | ||
12427 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12428 | CWARNS="${CWARNS}-W -Wno-unused " | |
631ef239 AC |
12429 | { echo "$as_me:$LINENO: result: ok" >&5 |
12430 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12431 | else |
12432 | charybdis_cv_c_gcc_w='' | |
631ef239 AC |
12433 | { echo "$as_me:$LINENO: result: no" >&5 |
12434 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12435 | fi |
12436 | else | |
631ef239 AC |
12437 | { echo "$as_me:$LINENO: result: no" >&5 |
12438 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12439 | fi |
12440 | ||
12441 | ||
631ef239 AC |
12442 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 |
12443 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
212380e3 AC |
12444 | if test "${GCC-no}" = yes |
12445 | then | |
12446 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12448 | else | |
12449 | ||
12450 | oldcflags="${CFLAGS-}" | |
12451 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12452 | cat >conftest.$ac_ext <<_ACEOF | |
12453 | /* confdefs.h. */ | |
12454 | _ACEOF | |
12455 | cat confdefs.h >>conftest.$ac_ext | |
12456 | cat >>conftest.$ac_ext <<_ACEOF | |
12457 | /* end confdefs.h. */ | |
12458 | ||
12459 | #include <string.h> | |
12460 | #include <stdio.h> | |
12461 | int main(void); | |
12462 | ||
12463 | int | |
12464 | main () | |
12465 | { | |
12466 | ||
b1fc1658 | 12467 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12468 | |
12469 | ; | |
12470 | return 0; | |
12471 | } | |
12472 | _ACEOF | |
12473 | rm -f conftest.$ac_objext | |
631ef239 AC |
12474 | if { (ac_try="$ac_compile" |
12475 | case "(($ac_try" in | |
12476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12477 | *) ac_try_echo=$ac_try;; | |
12478 | esac | |
12479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12480 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12481 | ac_status=$? |
12482 | grep -v '^ *+' conftest.er1 >conftest.err | |
12483 | rm -f conftest.er1 | |
12484 | cat conftest.err >&5 | |
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12486 | (exit $ac_status); } && { |
12487 | test -z "$ac_c_werror_flag" || | |
12488 | test ! -s conftest.err | |
12489 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12490 | charybdis_cv_c_gcc_w_extra=yes |
12491 | else | |
12492 | echo "$as_me: failed program was:" >&5 | |
12493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12494 | ||
631ef239 | 12495 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 12496 | fi |
631ef239 AC |
12497 | |
12498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12499 | CFLAGS="${oldcflags}" |
12500 | fi | |
12501 | ||
12502 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12503 | CWARNS="${CWARNS}-Wextra " | |
631ef239 AC |
12504 | { echo "$as_me:$LINENO: result: ok" >&5 |
12505 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12506 | else |
12507 | charybdis_cv_c_gcc_w_extra='' | |
631ef239 AC |
12508 | { echo "$as_me:$LINENO: result: no" >&5 |
12509 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12510 | fi |
12511 | else | |
631ef239 AC |
12512 | { echo "$as_me:$LINENO: result: no" >&5 |
12513 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12514 | fi |
12515 | ||
12516 | ||
631ef239 AC |
12517 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 |
12518 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
212380e3 AC |
12519 | if test "${GCC-no}" = yes |
12520 | then | |
12521 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12523 | else | |
12524 | ||
12525 | oldcflags="${CFLAGS-}" | |
12526 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12527 | cat >conftest.$ac_ext <<_ACEOF | |
12528 | /* confdefs.h. */ | |
12529 | _ACEOF | |
12530 | cat confdefs.h >>conftest.$ac_ext | |
12531 | cat >>conftest.$ac_ext <<_ACEOF | |
12532 | /* end confdefs.h. */ | |
12533 | ||
12534 | #include <string.h> | |
12535 | #include <stdio.h> | |
12536 | int main(void); | |
12537 | ||
12538 | int | |
12539 | main () | |
12540 | { | |
12541 | ||
b1fc1658 | 12542 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12543 | |
12544 | ; | |
12545 | return 0; | |
12546 | } | |
12547 | _ACEOF | |
12548 | rm -f conftest.$ac_objext | |
631ef239 AC |
12549 | if { (ac_try="$ac_compile" |
12550 | case "(($ac_try" in | |
12551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12552 | *) ac_try_echo=$ac_try;; | |
12553 | esac | |
12554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12555 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12556 | ac_status=$? |
12557 | grep -v '^ *+' conftest.er1 >conftest.err | |
12558 | rm -f conftest.er1 | |
12559 | cat conftest.err >&5 | |
12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12561 | (exit $ac_status); } && { |
12562 | test -z "$ac_c_werror_flag" || | |
12563 | test ! -s conftest.err | |
12564 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12565 | charybdis_cv_c_gcc_w_shadow=yes |
12566 | else | |
12567 | echo "$as_me: failed program was:" >&5 | |
12568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12569 | ||
631ef239 | 12570 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 12571 | fi |
631ef239 AC |
12572 | |
12573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12574 | CFLAGS="${oldcflags}" |
12575 | fi | |
12576 | ||
12577 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12578 | CWARNS="${CWARNS}-Wshadow " | |
631ef239 AC |
12579 | { echo "$as_me:$LINENO: result: ok" >&5 |
12580 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12581 | else |
12582 | charybdis_cv_c_gcc_w_shadow='' | |
631ef239 AC |
12583 | { echo "$as_me:$LINENO: result: no" >&5 |
12584 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12585 | fi |
12586 | else | |
631ef239 AC |
12587 | { echo "$as_me:$LINENO: result: no" >&5 |
12588 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12589 | fi |
12590 | ||
12591 | ||
631ef239 AC |
12592 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 |
12593 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
212380e3 AC |
12594 | if test "${GCC-no}" = yes |
12595 | then | |
12596 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12598 | else | |
12599 | ||
12600 | oldcflags="${CFLAGS-}" | |
12601 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12602 | cat >conftest.$ac_ext <<_ACEOF | |
12603 | /* confdefs.h. */ | |
12604 | _ACEOF | |
12605 | cat confdefs.h >>conftest.$ac_ext | |
12606 | cat >>conftest.$ac_ext <<_ACEOF | |
12607 | /* end confdefs.h. */ | |
12608 | ||
12609 | #include <string.h> | |
12610 | #include <stdio.h> | |
12611 | int main(void); | |
12612 | ||
12613 | int | |
12614 | main () | |
12615 | { | |
12616 | ||
b1fc1658 | 12617 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12618 | |
12619 | ; | |
12620 | return 0; | |
12621 | } | |
12622 | _ACEOF | |
12623 | rm -f conftest.$ac_objext | |
631ef239 AC |
12624 | if { (ac_try="$ac_compile" |
12625 | case "(($ac_try" in | |
12626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12627 | *) ac_try_echo=$ac_try;; | |
12628 | esac | |
12629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12630 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12631 | ac_status=$? |
12632 | grep -v '^ *+' conftest.er1 >conftest.err | |
12633 | rm -f conftest.er1 | |
12634 | cat conftest.err >&5 | |
12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12636 | (exit $ac_status); } && { |
12637 | test -z "$ac_c_werror_flag" || | |
12638 | test ! -s conftest.err | |
12639 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12640 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
12641 | else | |
12642 | echo "$as_me: failed program was:" >&5 | |
12643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12644 | ||
631ef239 | 12645 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 12646 | fi |
631ef239 AC |
12647 | |
12648 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12649 | CFLAGS="${oldcflags}" |
12650 | fi | |
12651 | ||
12652 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12653 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
631ef239 AC |
12654 | { echo "$as_me:$LINENO: result: ok" >&5 |
12655 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12656 | else |
12657 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
631ef239 AC |
12658 | { echo "$as_me:$LINENO: result: no" >&5 |
12659 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12660 | fi |
12661 | else | |
631ef239 AC |
12662 | { echo "$as_me:$LINENO: result: no" >&5 |
12663 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12664 | fi |
12665 | ||
12666 | ||
631ef239 AC |
12667 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 |
12668 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
212380e3 AC |
12669 | if test "${GCC-no}" = yes |
12670 | then | |
12671 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
12672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12673 | else | |
12674 | ||
12675 | oldcflags="${CFLAGS-}" | |
12676 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
12677 | cat >conftest.$ac_ext <<_ACEOF | |
12678 | /* confdefs.h. */ | |
12679 | _ACEOF | |
12680 | cat confdefs.h >>conftest.$ac_ext | |
12681 | cat >>conftest.$ac_ext <<_ACEOF | |
12682 | /* end confdefs.h. */ | |
12683 | ||
12684 | #include <string.h> | |
12685 | #include <stdio.h> | |
12686 | int main(void); | |
12687 | ||
12688 | int | |
12689 | main () | |
12690 | { | |
12691 | ||
b1fc1658 | 12692 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12693 | |
12694 | ; | |
12695 | return 0; | |
12696 | } | |
12697 | _ACEOF | |
12698 | rm -f conftest.$ac_objext | |
631ef239 AC |
12699 | if { (ac_try="$ac_compile" |
12700 | case "(($ac_try" in | |
12701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12702 | *) ac_try_echo=$ac_try;; | |
12703 | esac | |
12704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12705 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12706 | ac_status=$? |
12707 | grep -v '^ *+' conftest.er1 >conftest.err | |
12708 | rm -f conftest.er1 | |
12709 | cat conftest.err >&5 | |
12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12711 | (exit $ac_status); } && { |
12712 | test -z "$ac_c_werror_flag" || | |
12713 | test ! -s conftest.err | |
12714 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12715 | charybdis_cv_c_gcc_w_undef=yes |
12716 | else | |
12717 | echo "$as_me: failed program was:" >&5 | |
12718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12719 | ||
631ef239 | 12720 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 12721 | fi |
631ef239 AC |
12722 | |
12723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12724 | CFLAGS="${oldcflags}" |
12725 | fi | |
12726 | ||
12727 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
12728 | CWARNS="${CWARNS}-Wundef " | |
631ef239 AC |
12729 | { echo "$as_me:$LINENO: result: ok" >&5 |
12730 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12731 | else |
12732 | charybdis_cv_c_gcc_w_undef='' | |
631ef239 AC |
12733 | { echo "$as_me:$LINENO: result: no" >&5 |
12734 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12735 | fi |
12736 | else | |
631ef239 AC |
12737 | { echo "$as_me:$LINENO: result: no" >&5 |
12738 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12739 | fi |
12740 | ||
12741 | ||
631ef239 AC |
12742 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 |
12743 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
212380e3 AC |
12744 | if test "${GCC-no}" = yes |
12745 | then | |
12746 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
12747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12748 | else | |
12749 | ||
12750 | oldcflags="${CFLAGS-}" | |
12751 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
12752 | cat >conftest.$ac_ext <<_ACEOF | |
12753 | /* confdefs.h. */ | |
12754 | _ACEOF | |
12755 | cat confdefs.h >>conftest.$ac_ext | |
12756 | cat >>conftest.$ac_ext <<_ACEOF | |
12757 | /* end confdefs.h. */ | |
12758 | ||
12759 | #include <string.h> | |
12760 | #include <stdio.h> | |
12761 | int main(void); | |
12762 | ||
12763 | int | |
12764 | main () | |
12765 | { | |
12766 | ||
b1fc1658 | 12767 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12768 | |
12769 | ; | |
12770 | return 0; | |
12771 | } | |
12772 | _ACEOF | |
12773 | rm -f conftest.$ac_objext | |
631ef239 AC |
12774 | if { (ac_try="$ac_compile" |
12775 | case "(($ac_try" in | |
12776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12777 | *) ac_try_echo=$ac_try;; | |
12778 | esac | |
12779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12780 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12781 | ac_status=$? |
12782 | grep -v '^ *+' conftest.er1 >conftest.err | |
12783 | rm -f conftest.er1 | |
12784 | cat conftest.err >&5 | |
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12786 | (exit $ac_status); } && { |
12787 | test -z "$ac_c_werror_flag" || | |
12788 | test ! -s conftest.err | |
12789 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12790 | charybdis_cv_c_gcc_w_packed=yes |
12791 | else | |
12792 | echo "$as_me: failed program was:" >&5 | |
12793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12794 | ||
631ef239 | 12795 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 12796 | fi |
631ef239 AC |
12797 | |
12798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12799 | CFLAGS="${oldcflags}" |
12800 | fi | |
12801 | ||
12802 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
12803 | CWARNS="${CWARNS}-Wpacked " | |
631ef239 AC |
12804 | { echo "$as_me:$LINENO: result: ok" >&5 |
12805 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12806 | else |
12807 | charybdis_cv_c_gcc_w_packed='' | |
631ef239 AC |
12808 | { echo "$as_me:$LINENO: result: no" >&5 |
12809 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12810 | fi |
12811 | else | |
631ef239 AC |
12812 | { echo "$as_me:$LINENO: result: no" >&5 |
12813 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12814 | fi |
12815 | ||
12816 | ||
631ef239 AC |
12817 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 |
12818 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
12819 | if test "${GCC-no}" = yes |
12820 | then | |
12821 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12823 | else | |
12824 | ||
12825 | oldcflags="${CFLAGS-}" | |
12826 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
12827 | cat >conftest.$ac_ext <<_ACEOF | |
12828 | /* confdefs.h. */ | |
12829 | _ACEOF | |
12830 | cat confdefs.h >>conftest.$ac_ext | |
12831 | cat >>conftest.$ac_ext <<_ACEOF | |
12832 | /* end confdefs.h. */ | |
12833 | ||
12834 | #include <string.h> | |
12835 | #include <stdio.h> | |
12836 | int main(void); | |
12837 | ||
12838 | int | |
12839 | main () | |
12840 | { | |
12841 | ||
b1fc1658 | 12842 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12843 | |
12844 | ; | |
12845 | return 0; | |
12846 | } | |
12847 | _ACEOF | |
12848 | rm -f conftest.$ac_objext | |
631ef239 AC |
12849 | if { (ac_try="$ac_compile" |
12850 | case "(($ac_try" in | |
12851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12852 | *) ac_try_echo=$ac_try;; | |
12853 | esac | |
12854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12855 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12856 | ac_status=$? |
12857 | grep -v '^ *+' conftest.er1 >conftest.err | |
12858 | rm -f conftest.er1 | |
12859 | cat conftest.err >&5 | |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12861 | (exit $ac_status); } && { |
12862 | test -z "$ac_c_werror_flag" || | |
12863 | test ! -s conftest.err | |
12864 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12865 | charybdis_cv_c_gcc_w_nested_externs=yes |
12866 | else | |
12867 | echo "$as_me: failed program was:" >&5 | |
12868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12869 | ||
631ef239 | 12870 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 12871 | fi |
631ef239 AC |
12872 | |
12873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12874 | CFLAGS="${oldcflags}" |
12875 | fi | |
12876 | ||
12877 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
12878 | CWARNS="${CWARNS}-Wnested-externs " | |
631ef239 AC |
12879 | { echo "$as_me:$LINENO: result: ok" >&5 |
12880 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12881 | else |
12882 | charybdis_cv_c_gcc_w_nested_externs='' | |
631ef239 AC |
12883 | { echo "$as_me:$LINENO: result: no" >&5 |
12884 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12885 | fi |
12886 | else | |
631ef239 AC |
12887 | { echo "$as_me:$LINENO: result: no" >&5 |
12888 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12889 | fi |
12890 | ||
12891 | ||
631ef239 AC |
12892 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5 |
12893 | echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; } | |
212380e3 AC |
12894 | if test "${GCC-no}" = yes |
12895 | then | |
12896 | if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then | |
12897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12898 | else | |
12899 | ||
12900 | oldcflags="${CFLAGS-}" | |
12901 | CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror" | |
12902 | cat >conftest.$ac_ext <<_ACEOF | |
12903 | /* confdefs.h. */ | |
12904 | _ACEOF | |
12905 | cat confdefs.h >>conftest.$ac_ext | |
12906 | cat >>conftest.$ac_ext <<_ACEOF | |
12907 | /* end confdefs.h. */ | |
12908 | ||
12909 | #include <string.h> | |
12910 | #include <stdio.h> | |
12911 | int main(void); | |
12912 | ||
12913 | int | |
12914 | main () | |
12915 | { | |
12916 | ||
b1fc1658 | 12917 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12918 | |
12919 | ; | |
12920 | return 0; | |
12921 | } | |
12922 | _ACEOF | |
12923 | rm -f conftest.$ac_objext | |
631ef239 AC |
12924 | if { (ac_try="$ac_compile" |
12925 | case "(($ac_try" in | |
12926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12927 | *) ac_try_echo=$ac_try;; | |
12928 | esac | |
12929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12930 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12931 | ac_status=$? |
12932 | grep -v '^ *+' conftest.er1 >conftest.err | |
12933 | rm -f conftest.er1 | |
12934 | cat conftest.err >&5 | |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12936 | (exit $ac_status); } && { |
12937 | test -z "$ac_c_werror_flag" || | |
12938 | test ! -s conftest.err | |
12939 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12940 | charybdis_cv_c_gcc_w_bad_function_cast=yes |
12941 | else | |
12942 | echo "$as_me: failed program was:" >&5 | |
12943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12944 | ||
631ef239 | 12945 | charybdis_cv_c_gcc_w_bad_function_cast=no |
212380e3 | 12946 | fi |
631ef239 AC |
12947 | |
12948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12949 | CFLAGS="${oldcflags}" |
12950 | fi | |
12951 | ||
12952 | if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then | |
12953 | CWARNS="${CWARNS}-Wbad-function-cast " | |
631ef239 AC |
12954 | { echo "$as_me:$LINENO: result: ok" >&5 |
12955 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12956 | else |
12957 | charybdis_cv_c_gcc_w_bad_function_cast='' | |
631ef239 AC |
12958 | { echo "$as_me:$LINENO: result: no" >&5 |
12959 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12960 | fi |
12961 | else | |
631ef239 AC |
12962 | { echo "$as_me:$LINENO: result: no" >&5 |
12963 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12964 | fi |
12965 | ||
12966 | ||
631ef239 AC |
12967 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
12968 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
212380e3 AC |
12969 | if test "${GCC-no}" = yes |
12970 | then | |
12971 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
12972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12973 | else | |
12974 | ||
12975 | oldcflags="${CFLAGS-}" | |
12976 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
12977 | cat >conftest.$ac_ext <<_ACEOF | |
12978 | /* confdefs.h. */ | |
12979 | _ACEOF | |
12980 | cat confdefs.h >>conftest.$ac_ext | |
12981 | cat >>conftest.$ac_ext <<_ACEOF | |
12982 | /* end confdefs.h. */ | |
12983 | ||
12984 | #include <string.h> | |
12985 | #include <stdio.h> | |
12986 | int main(void); | |
12987 | ||
12988 | int | |
12989 | main () | |
12990 | { | |
12991 | ||
b1fc1658 | 12992 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12993 | |
12994 | ; | |
12995 | return 0; | |
12996 | } | |
12997 | _ACEOF | |
12998 | rm -f conftest.$ac_objext | |
631ef239 AC |
12999 | if { (ac_try="$ac_compile" |
13000 | case "(($ac_try" in | |
13001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13002 | *) ac_try_echo=$ac_try;; | |
13003 | esac | |
13004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13005 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13006 | ac_status=$? |
13007 | grep -v '^ *+' conftest.er1 >conftest.err | |
13008 | rm -f conftest.er1 | |
13009 | cat conftest.err >&5 | |
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13011 | (exit $ac_status); } && { |
13012 | test -z "$ac_c_werror_flag" || | |
13013 | test ! -s conftest.err | |
13014 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13015 | charybdis_cv_c_gcc_w_unused=yes |
13016 | else | |
13017 | echo "$as_me: failed program was:" >&5 | |
13018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13019 | ||
631ef239 | 13020 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 13021 | fi |
631ef239 AC |
13022 | |
13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13024 | CFLAGS="${oldcflags}" |
13025 | fi | |
13026 | ||
13027 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
13028 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
631ef239 AC |
13029 | { echo "$as_me:$LINENO: result: ok" >&5 |
13030 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13031 | else |
13032 | charybdis_cv_c_gcc_w_unused='' | |
631ef239 AC |
13033 | { echo "$as_me:$LINENO: result: no" >&5 |
13034 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13035 | fi |
13036 | else | |
631ef239 AC |
13037 | { echo "$as_me:$LINENO: result: no" >&5 |
13038 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13039 | fi |
13040 | ||
13041 | ||
631ef239 AC |
13042 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 |
13043 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
212380e3 AC |
13044 | if test "${GCC-no}" = yes |
13045 | then | |
13046 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
13047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13048 | else | |
13049 | ||
13050 | oldcflags="${CFLAGS-}" | |
13051 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
13052 | cat >conftest.$ac_ext <<_ACEOF | |
13053 | /* confdefs.h. */ | |
13054 | _ACEOF | |
13055 | cat confdefs.h >>conftest.$ac_ext | |
13056 | cat >>conftest.$ac_ext <<_ACEOF | |
13057 | /* end confdefs.h. */ | |
13058 | ||
13059 | #include <string.h> | |
13060 | #include <stdio.h> | |
13061 | int main(void); | |
13062 | ||
13063 | int | |
13064 | main () | |
13065 | { | |
13066 | ||
b1fc1658 | 13067 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13068 | |
13069 | ; | |
13070 | return 0; | |
13071 | } | |
13072 | _ACEOF | |
13073 | rm -f conftest.$ac_objext | |
631ef239 AC |
13074 | if { (ac_try="$ac_compile" |
13075 | case "(($ac_try" in | |
13076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13077 | *) ac_try_echo=$ac_try;; | |
13078 | esac | |
13079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13080 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13081 | ac_status=$? |
13082 | grep -v '^ *+' conftest.er1 >conftest.err | |
13083 | rm -f conftest.er1 | |
13084 | cat conftest.err >&5 | |
13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13086 | (exit $ac_status); } && { |
13087 | test -z "$ac_c_werror_flag" || | |
13088 | test ! -s conftest.err | |
13089 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13090 | charybdis_cv_c_gcc_w_redundant_decls=yes |
13091 | else | |
13092 | echo "$as_me: failed program was:" >&5 | |
13093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13094 | ||
631ef239 | 13095 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 13096 | fi |
631ef239 AC |
13097 | |
13098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13099 | CFLAGS="${oldcflags}" |
13100 | fi | |
13101 | ||
13102 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13103 | CWARNS="${CWARNS}-Wredundant-decls " | |
631ef239 AC |
13104 | { echo "$as_me:$LINENO: result: ok" >&5 |
13105 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13106 | else |
13107 | charybdis_cv_c_gcc_w_redundant_decls='' | |
631ef239 AC |
13108 | { echo "$as_me:$LINENO: result: no" >&5 |
13109 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13110 | fi |
13111 | else | |
631ef239 AC |
13112 | { echo "$as_me:$LINENO: result: no" >&5 |
13113 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13114 | fi |
13115 | ||
13116 | ||
631ef239 AC |
13117 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 |
13118 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
212380e3 AC |
13119 | if test "${GCC-no}" = yes |
13120 | then | |
13121 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13123 | else | |
13124 | ||
13125 | oldcflags="${CFLAGS-}" | |
13126 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13127 | cat >conftest.$ac_ext <<_ACEOF | |
13128 | /* confdefs.h. */ | |
13129 | _ACEOF | |
13130 | cat confdefs.h >>conftest.$ac_ext | |
13131 | cat >>conftest.$ac_ext <<_ACEOF | |
13132 | /* end confdefs.h. */ | |
13133 | ||
13134 | #include <string.h> | |
13135 | #include <stdio.h> | |
13136 | int main(void); | |
13137 | ||
13138 | int | |
13139 | main () | |
13140 | { | |
13141 | ||
b1fc1658 | 13142 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13143 | |
13144 | ; | |
13145 | return 0; | |
13146 | } | |
13147 | _ACEOF | |
13148 | rm -f conftest.$ac_objext | |
631ef239 AC |
13149 | if { (ac_try="$ac_compile" |
13150 | case "(($ac_try" in | |
13151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13152 | *) ac_try_echo=$ac_try;; | |
13153 | esac | |
13154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13155 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13156 | ac_status=$? |
13157 | grep -v '^ *+' conftest.er1 >conftest.err | |
13158 | rm -f conftest.er1 | |
13159 | cat conftest.err >&5 | |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13161 | (exit $ac_status); } && { |
13162 | test -z "$ac_c_werror_flag" || | |
13163 | test ! -s conftest.err | |
13164 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13165 | charybdis_cv_c_gcc_w_float_equal=yes |
13166 | else | |
13167 | echo "$as_me: failed program was:" >&5 | |
13168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13169 | ||
631ef239 | 13170 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 13171 | fi |
631ef239 AC |
13172 | |
13173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13174 | CFLAGS="${oldcflags}" |
13175 | fi | |
13176 | ||
13177 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13178 | CWARNS="${CWARNS}-Wfloat-equal " | |
631ef239 AC |
13179 | { echo "$as_me:$LINENO: result: ok" >&5 |
13180 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13181 | else |
13182 | charybdis_cv_c_gcc_w_float_equal='' | |
631ef239 AC |
13183 | { echo "$as_me:$LINENO: result: no" >&5 |
13184 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13185 | fi |
13186 | else | |
631ef239 AC |
13187 | { echo "$as_me:$LINENO: result: no" >&5 |
13188 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13189 | fi |
13190 | ||
13191 | ||
631ef239 AC |
13192 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5 |
13193 | echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; } | |
212380e3 AC |
13194 | if test "${GCC-no}" = yes |
13195 | then | |
13196 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13198 | else | |
13199 | ||
13200 | oldcflags="${CFLAGS-}" | |
13201 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror" | |
13202 | cat >conftest.$ac_ext <<_ACEOF | |
13203 | /* confdefs.h. */ | |
13204 | _ACEOF | |
13205 | cat confdefs.h >>conftest.$ac_ext | |
13206 | cat >>conftest.$ac_ext <<_ACEOF | |
13207 | /* end confdefs.h. */ | |
13208 | ||
13209 | #include <string.h> | |
13210 | #include <stdio.h> | |
13211 | int main(void); | |
13212 | ||
13213 | int | |
13214 | main () | |
13215 | { | |
13216 | ||
b1fc1658 | 13217 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13218 | |
13219 | ; | |
13220 | return 0; | |
13221 | } | |
13222 | _ACEOF | |
13223 | rm -f conftest.$ac_objext | |
631ef239 AC |
13224 | if { (ac_try="$ac_compile" |
13225 | case "(($ac_try" in | |
13226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13227 | *) ac_try_echo=$ac_try;; | |
13228 | esac | |
13229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13230 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13231 | ac_status=$? |
13232 | grep -v '^ *+' conftest.er1 >conftest.err | |
13233 | rm -f conftest.er1 | |
13234 | cat conftest.err >&5 | |
13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13236 | (exit $ac_status); } && { |
13237 | test -z "$ac_c_werror_flag" || | |
13238 | test ! -s conftest.err | |
13239 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13240 | charybdis_cv_c_gcc_w_format=yes |
13241 | else | |
13242 | echo "$as_me: failed program was:" >&5 | |
13243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13244 | ||
631ef239 | 13245 | charybdis_cv_c_gcc_w_format=no |
212380e3 | 13246 | fi |
631ef239 AC |
13247 | |
13248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13249 | CFLAGS="${oldcflags}" |
13250 | fi | |
13251 | ||
13252 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
13253 | CWARNS="${CWARNS}-Wformat=2 " | |
631ef239 AC |
13254 | { echo "$as_me:$LINENO: result: ok" >&5 |
13255 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13256 | else |
13257 | charybdis_cv_c_gcc_w_format='' | |
631ef239 AC |
13258 | { echo "$as_me:$LINENO: result: no" >&5 |
13259 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13260 | fi |
13261 | else | |
631ef239 AC |
13262 | { echo "$as_me:$LINENO: result: no" >&5 |
13263 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13264 | fi |
13265 | ||
13266 | ||
631ef239 AC |
13267 | { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5 |
13268 | echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; } | |
212380e3 AC |
13269 | if test "${GCC-no}" = yes |
13270 | then | |
13271 | if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then | |
13272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13273 | else | |
13274 | ||
13275 | oldcflags="${CFLAGS-}" | |
13276 | CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror" | |
13277 | cat >conftest.$ac_ext <<_ACEOF | |
13278 | /* confdefs.h. */ | |
13279 | _ACEOF | |
13280 | cat confdefs.h >>conftest.$ac_ext | |
13281 | cat >>conftest.$ac_ext <<_ACEOF | |
13282 | /* end confdefs.h. */ | |
13283 | ||
13284 | #include <string.h> | |
13285 | #include <stdio.h> | |
13286 | int main(void); | |
13287 | ||
13288 | int | |
13289 | main () | |
13290 | { | |
13291 | ||
b1fc1658 | 13292 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13293 | |
13294 | ; | |
13295 | return 0; | |
13296 | } | |
13297 | _ACEOF | |
13298 | rm -f conftest.$ac_objext | |
631ef239 AC |
13299 | if { (ac_try="$ac_compile" |
13300 | case "(($ac_try" in | |
13301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13302 | *) ac_try_echo=$ac_try;; | |
13303 | esac | |
13304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13305 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13306 | ac_status=$? |
13307 | grep -v '^ *+' conftest.er1 >conftest.err | |
13308 | rm -f conftest.er1 | |
13309 | cat conftest.err >&5 | |
13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13311 | (exit $ac_status); } && { |
13312 | test -z "$ac_c_werror_flag" || | |
13313 | test ! -s conftest.err | |
13314 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13315 | charybdis_cv_c_gcc_pedantic=yes |
13316 | else | |
13317 | echo "$as_me: failed program was:" >&5 | |
13318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13319 | ||
631ef239 | 13320 | charybdis_cv_c_gcc_pedantic=no |
212380e3 | 13321 | fi |
631ef239 AC |
13322 | |
13323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13324 | CFLAGS="${oldcflags}" |
13325 | fi | |
13326 | ||
13327 | if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then | |
13328 | CWARNS="${CWARNS}-pedantic " | |
631ef239 AC |
13329 | { echo "$as_me:$LINENO: result: ok" >&5 |
13330 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13331 | else |
13332 | charybdis_cv_c_gcc_pedantic='' | |
631ef239 AC |
13333 | { echo "$as_me:$LINENO: result: no" >&5 |
13334 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13335 | fi |
13336 | else | |
631ef239 AC |
13337 | { echo "$as_me:$LINENO: result: no" >&5 |
13338 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13339 | fi |
13340 | ||
13341 | ||
13342 | IRC_CFLAGS="$CFLAGS" | |
13343 | ||
631ef239 AC |
13344 | fi |
13345 | ||
212380e3 AC |
13346 | |
13347 | if test "$shared_modules" = no; then | |
13348 | DYNLINK_C="" | |
13349 | MOD_TARGET="libmodules.a" | |
13350 | MODULES_LIBS="../modules/libmodules.a" | |
13351 | SEDOBJ="" | |
13352 | ||
13353 | cat >>confdefs.h <<\_ACEOF | |
13354 | #define STATIC_MODULES 1 | |
13355 | _ACEOF | |
13356 | ||
13357 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13358 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13359 | fi | |
13360 | ||
13361 | if test "$shared_modules" = yes; then | |
13362 | ||
631ef239 AC |
13363 | { echo "$as_me:$LINENO: checking for nlist" >&5 |
13364 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
212380e3 AC |
13365 | if test "${ac_cv_func_nlist+set}" = set; then |
13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13367 | else | |
13368 | cat >conftest.$ac_ext <<_ACEOF | |
13369 | /* confdefs.h. */ | |
13370 | _ACEOF | |
13371 | cat confdefs.h >>conftest.$ac_ext | |
13372 | cat >>conftest.$ac_ext <<_ACEOF | |
13373 | /* end confdefs.h. */ | |
13374 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13375 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13376 | #define nlist innocuous_nlist | |
13377 | ||
13378 | /* System header to define __stub macros and hopefully few prototypes, | |
13379 | which can conflict with char nlist (); below. | |
13380 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13381 | <limits.h> exists even on freestanding compilers. */ | |
13382 | ||
13383 | #ifdef __STDC__ | |
13384 | # include <limits.h> | |
13385 | #else | |
13386 | # include <assert.h> | |
13387 | #endif | |
13388 | ||
13389 | #undef nlist | |
13390 | ||
631ef239 AC |
13391 | /* Override any GCC internal prototype to avoid an error. |
13392 | Use char because int might match the return type of a GCC | |
13393 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13394 | #ifdef __cplusplus |
13395 | extern "C" | |
212380e3 | 13396 | #endif |
212380e3 AC |
13397 | char nlist (); |
13398 | /* The GNU C library defines this for functions which it implements | |
13399 | to always fail with ENOSYS. Some functions are actually named | |
13400 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 13401 | #if defined __stub_nlist || defined __stub___nlist |
212380e3 | 13402 | choke me |
212380e3 AC |
13403 | #endif |
13404 | ||
13405 | int | |
13406 | main () | |
13407 | { | |
631ef239 | 13408 | return nlist (); |
212380e3 AC |
13409 | ; |
13410 | return 0; | |
13411 | } | |
13412 | _ACEOF | |
13413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13414 | if { (ac_try="$ac_link" |
13415 | case "(($ac_try" in | |
13416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13417 | *) ac_try_echo=$ac_try;; | |
13418 | esac | |
13419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13420 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13421 | ac_status=$? |
13422 | grep -v '^ *+' conftest.er1 >conftest.err | |
13423 | rm -f conftest.er1 | |
13424 | cat conftest.err >&5 | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13426 | (exit $ac_status); } && { |
13427 | test -z "$ac_c_werror_flag" || | |
13428 | test ! -s conftest.err | |
13429 | } && test -s conftest$ac_exeext && | |
13430 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13431 | ac_cv_func_nlist=yes |
13432 | else | |
13433 | echo "$as_me: failed program was:" >&5 | |
13434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13435 | ||
631ef239 | 13436 | ac_cv_func_nlist=no |
212380e3 | 13437 | fi |
631ef239 AC |
13438 | |
13439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13440 | conftest$ac_exeext conftest.$ac_ext |
13441 | fi | |
631ef239 AC |
13442 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 |
13443 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
212380e3 AC |
13444 | if test $ac_cv_func_nlist = yes; then |
13445 | : | |
13446 | else | |
631ef239 AC |
13447 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 |
13448 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
212380e3 AC |
13449 | if test "${ac_cv_lib_dl_nlist+set}" = set; then |
13450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13451 | else | |
13452 | ac_check_lib_save_LIBS=$LIBS | |
13453 | LIBS="-ldl $LIBS" | |
13454 | cat >conftest.$ac_ext <<_ACEOF | |
13455 | /* confdefs.h. */ | |
13456 | _ACEOF | |
13457 | cat confdefs.h >>conftest.$ac_ext | |
13458 | cat >>conftest.$ac_ext <<_ACEOF | |
13459 | /* end confdefs.h. */ | |
13460 | ||
631ef239 AC |
13461 | /* Override any GCC internal prototype to avoid an error. |
13462 | Use char because int might match the return type of a GCC | |
13463 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13464 | #ifdef __cplusplus |
13465 | extern "C" | |
13466 | #endif | |
212380e3 AC |
13467 | char nlist (); |
13468 | int | |
13469 | main () | |
13470 | { | |
631ef239 | 13471 | return nlist (); |
212380e3 AC |
13472 | ; |
13473 | return 0; | |
13474 | } | |
13475 | _ACEOF | |
13476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13477 | if { (ac_try="$ac_link" |
13478 | case "(($ac_try" in | |
13479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13480 | *) ac_try_echo=$ac_try;; | |
13481 | esac | |
13482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13483 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13484 | ac_status=$? |
13485 | grep -v '^ *+' conftest.er1 >conftest.err | |
13486 | rm -f conftest.er1 | |
13487 | cat conftest.err >&5 | |
13488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13489 | (exit $ac_status); } && { |
13490 | test -z "$ac_c_werror_flag" || | |
13491 | test ! -s conftest.err | |
13492 | } && test -s conftest$ac_exeext && | |
13493 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13494 | ac_cv_lib_dl_nlist=yes |
13495 | else | |
13496 | echo "$as_me: failed program was:" >&5 | |
13497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13498 | ||
631ef239 | 13499 | ac_cv_lib_dl_nlist=no |
212380e3 | 13500 | fi |
631ef239 AC |
13501 | |
13502 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13503 | conftest$ac_exeext conftest.$ac_ext |
13504 | LIBS=$ac_check_lib_save_LIBS | |
13505 | fi | |
631ef239 AC |
13506 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 |
13507 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
212380e3 AC |
13508 | if test $ac_cv_lib_dl_nlist = yes; then |
13509 | nlist_lib="-ldl" | |
13510 | else | |
631ef239 AC |
13511 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 |
13512 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
212380e3 AC |
13513 | if test "${ac_cv_lib_elf_nlist+set}" = set; then |
13514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13515 | else | |
13516 | ac_check_lib_save_LIBS=$LIBS | |
13517 | LIBS="-lelf $LIBS" | |
13518 | cat >conftest.$ac_ext <<_ACEOF | |
13519 | /* confdefs.h. */ | |
13520 | _ACEOF | |
13521 | cat confdefs.h >>conftest.$ac_ext | |
13522 | cat >>conftest.$ac_ext <<_ACEOF | |
13523 | /* end confdefs.h. */ | |
13524 | ||
631ef239 AC |
13525 | /* Override any GCC internal prototype to avoid an error. |
13526 | Use char because int might match the return type of a GCC | |
13527 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13528 | #ifdef __cplusplus |
13529 | extern "C" | |
13530 | #endif | |
212380e3 AC |
13531 | char nlist (); |
13532 | int | |
13533 | main () | |
13534 | { | |
631ef239 | 13535 | return nlist (); |
212380e3 AC |
13536 | ; |
13537 | return 0; | |
13538 | } | |
13539 | _ACEOF | |
13540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13541 | if { (ac_try="$ac_link" |
13542 | case "(($ac_try" in | |
13543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13544 | *) ac_try_echo=$ac_try;; | |
13545 | esac | |
13546 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13547 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13548 | ac_status=$? |
13549 | grep -v '^ *+' conftest.er1 >conftest.err | |
13550 | rm -f conftest.er1 | |
13551 | cat conftest.err >&5 | |
13552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13553 | (exit $ac_status); } && { |
13554 | test -z "$ac_c_werror_flag" || | |
13555 | test ! -s conftest.err | |
13556 | } && test -s conftest$ac_exeext && | |
13557 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13558 | ac_cv_lib_elf_nlist=yes |
13559 | else | |
13560 | echo "$as_me: failed program was:" >&5 | |
13561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13562 | ||
631ef239 | 13563 | ac_cv_lib_elf_nlist=no |
212380e3 | 13564 | fi |
631ef239 AC |
13565 | |
13566 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13567 | conftest$ac_exeext conftest.$ac_ext |
13568 | LIBS=$ac_check_lib_save_LIBS | |
13569 | fi | |
631ef239 AC |
13570 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 |
13571 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
212380e3 AC |
13572 | if test $ac_cv_lib_elf_nlist = yes; then |
13573 | nlist_lib="-lelf" | |
13574 | fi | |
13575 | ||
13576 | ||
13577 | fi | |
13578 | ||
13579 | ||
13580 | fi | |
13581 | ||
13582 | ||
13583 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
631ef239 AC |
13584 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13585 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13586 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13588 | fi | |
631ef239 AC |
13589 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13590 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13591 | else |
13592 | # Is the header compilable? | |
631ef239 AC |
13593 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 |
13594 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13595 | cat >conftest.$ac_ext <<_ACEOF |
13596 | /* confdefs.h. */ | |
13597 | _ACEOF | |
13598 | cat confdefs.h >>conftest.$ac_ext | |
13599 | cat >>conftest.$ac_ext <<_ACEOF | |
13600 | /* end confdefs.h. */ | |
13601 | $ac_includes_default | |
13602 | #include <libelf/nlist.h> | |
13603 | _ACEOF | |
13604 | rm -f conftest.$ac_objext | |
631ef239 AC |
13605 | if { (ac_try="$ac_compile" |
13606 | case "(($ac_try" in | |
13607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13608 | *) ac_try_echo=$ac_try;; | |
13609 | esac | |
13610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13611 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13612 | ac_status=$? |
13613 | grep -v '^ *+' conftest.er1 >conftest.err | |
13614 | rm -f conftest.er1 | |
13615 | cat conftest.err >&5 | |
13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13617 | (exit $ac_status); } && { |
13618 | test -z "$ac_c_werror_flag" || | |
13619 | test ! -s conftest.err | |
13620 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13621 | ac_header_compiler=yes |
13622 | else | |
13623 | echo "$as_me: failed program was:" >&5 | |
13624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13625 | ||
631ef239 | 13626 | ac_header_compiler=no |
212380e3 | 13627 | fi |
631ef239 AC |
13628 | |
13629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13630 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13631 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13632 | |
13633 | # Is the header present? | |
631ef239 AC |
13634 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 |
13635 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13636 | cat >conftest.$ac_ext <<_ACEOF |
13637 | /* confdefs.h. */ | |
13638 | _ACEOF | |
13639 | cat confdefs.h >>conftest.$ac_ext | |
13640 | cat >>conftest.$ac_ext <<_ACEOF | |
13641 | /* end confdefs.h. */ | |
13642 | #include <libelf/nlist.h> | |
13643 | _ACEOF | |
631ef239 AC |
13644 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13645 | case "(($ac_try" in | |
13646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13647 | *) ac_try_echo=$ac_try;; | |
13648 | esac | |
13649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13650 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13651 | ac_status=$? |
13652 | grep -v '^ *+' conftest.er1 >conftest.err | |
13653 | rm -f conftest.er1 | |
13654 | cat conftest.err >&5 | |
13655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13656 | (exit $ac_status); } >/dev/null && { |
13657 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13658 | test ! -s conftest.err | |
13659 | }; then | |
212380e3 AC |
13660 | ac_header_preproc=yes |
13661 | else | |
13662 | echo "$as_me: failed program was:" >&5 | |
13663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13664 | ||
13665 | ac_header_preproc=no | |
13666 | fi | |
631ef239 | 13667 | |
212380e3 | 13668 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13669 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13670 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13671 | |
13672 | # So? What about this header? | |
13673 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13674 | yes:no: ) | |
13675 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13676 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13677 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
13678 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
13679 | ac_header_preproc=yes | |
13680 | ;; | |
13681 | no:yes:* ) | |
13682 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
13683 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
13684 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
13685 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13686 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
13687 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
13688 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13689 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13690 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13691 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13692 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13693 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13694 | |
212380e3 AC |
13695 | ;; |
13696 | esac | |
631ef239 AC |
13697 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13698 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13699 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13701 | else | |
13702 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
13703 | fi | |
631ef239 AC |
13704 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13705 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13706 | |
13707 | fi | |
13708 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
13709 | nlist_h="libelf/nlist.h" | |
13710 | fi | |
13711 | ||
13712 | ||
13713 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
631ef239 AC |
13714 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13715 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13716 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13718 | fi | |
631ef239 AC |
13719 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13720 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13721 | else |
13722 | # Is the header compilable? | |
631ef239 AC |
13723 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 |
13724 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13725 | cat >conftest.$ac_ext <<_ACEOF |
13726 | /* confdefs.h. */ | |
13727 | _ACEOF | |
13728 | cat confdefs.h >>conftest.$ac_ext | |
13729 | cat >>conftest.$ac_ext <<_ACEOF | |
13730 | /* end confdefs.h. */ | |
13731 | $ac_includes_default | |
13732 | #include <elf/nlist.h> | |
13733 | _ACEOF | |
13734 | rm -f conftest.$ac_objext | |
631ef239 AC |
13735 | if { (ac_try="$ac_compile" |
13736 | case "(($ac_try" in | |
13737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13738 | *) ac_try_echo=$ac_try;; | |
13739 | esac | |
13740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13741 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13742 | ac_status=$? |
13743 | grep -v '^ *+' conftest.er1 >conftest.err | |
13744 | rm -f conftest.er1 | |
13745 | cat conftest.err >&5 | |
13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13747 | (exit $ac_status); } && { |
13748 | test -z "$ac_c_werror_flag" || | |
13749 | test ! -s conftest.err | |
13750 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13751 | ac_header_compiler=yes |
13752 | else | |
13753 | echo "$as_me: failed program was:" >&5 | |
13754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13755 | ||
631ef239 | 13756 | ac_header_compiler=no |
212380e3 | 13757 | fi |
631ef239 AC |
13758 | |
13759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13760 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13761 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13762 | |
13763 | # Is the header present? | |
631ef239 AC |
13764 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 |
13765 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13766 | cat >conftest.$ac_ext <<_ACEOF |
13767 | /* confdefs.h. */ | |
13768 | _ACEOF | |
13769 | cat confdefs.h >>conftest.$ac_ext | |
13770 | cat >>conftest.$ac_ext <<_ACEOF | |
13771 | /* end confdefs.h. */ | |
13772 | #include <elf/nlist.h> | |
13773 | _ACEOF | |
631ef239 AC |
13774 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13775 | case "(($ac_try" in | |
13776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13777 | *) ac_try_echo=$ac_try;; | |
13778 | esac | |
13779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13780 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13781 | ac_status=$? |
13782 | grep -v '^ *+' conftest.er1 >conftest.err | |
13783 | rm -f conftest.er1 | |
13784 | cat conftest.err >&5 | |
13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13786 | (exit $ac_status); } >/dev/null && { |
13787 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13788 | test ! -s conftest.err | |
13789 | }; then | |
212380e3 AC |
13790 | ac_header_preproc=yes |
13791 | else | |
13792 | echo "$as_me: failed program was:" >&5 | |
13793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13794 | ||
13795 | ac_header_preproc=no | |
13796 | fi | |
631ef239 | 13797 | |
212380e3 | 13798 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13799 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13800 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13801 | |
13802 | # So? What about this header? | |
13803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13804 | yes:no: ) | |
13805 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13806 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13807 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
13808 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
13809 | ac_header_preproc=yes | |
13810 | ;; | |
13811 | no:yes:* ) | |
13812 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
13813 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
13814 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
13815 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13816 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
13817 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
13818 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13819 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13820 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13821 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13822 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13823 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13824 | |
212380e3 AC |
13825 | ;; |
13826 | esac | |
631ef239 AC |
13827 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13828 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13829 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13831 | else | |
13832 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
13833 | fi | |
631ef239 AC |
13834 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13835 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13836 | |
13837 | fi | |
13838 | if test $ac_cv_header_elf_nlist_h = yes; then | |
13839 | nlist_h="elf/nlist.h" | |
13840 | fi | |
13841 | ||
13842 | ||
13843 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
631ef239 AC |
13844 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13845 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13846 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13848 | fi | |
631ef239 AC |
13849 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13850 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13851 | else |
13852 | # Is the header compilable? | |
631ef239 AC |
13853 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 |
13854 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13855 | cat >conftest.$ac_ext <<_ACEOF |
13856 | /* confdefs.h. */ | |
13857 | _ACEOF | |
13858 | cat confdefs.h >>conftest.$ac_ext | |
13859 | cat >>conftest.$ac_ext <<_ACEOF | |
13860 | /* end confdefs.h. */ | |
13861 | $ac_includes_default | |
13862 | #include <nlist.h> | |
13863 | _ACEOF | |
13864 | rm -f conftest.$ac_objext | |
631ef239 AC |
13865 | if { (ac_try="$ac_compile" |
13866 | case "(($ac_try" in | |
13867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13868 | *) ac_try_echo=$ac_try;; | |
13869 | esac | |
13870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13871 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13872 | ac_status=$? |
13873 | grep -v '^ *+' conftest.er1 >conftest.err | |
13874 | rm -f conftest.er1 | |
13875 | cat conftest.err >&5 | |
13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13877 | (exit $ac_status); } && { |
13878 | test -z "$ac_c_werror_flag" || | |
13879 | test ! -s conftest.err | |
13880 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13881 | ac_header_compiler=yes |
13882 | else | |
13883 | echo "$as_me: failed program was:" >&5 | |
13884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13885 | ||
631ef239 | 13886 | ac_header_compiler=no |
212380e3 | 13887 | fi |
631ef239 AC |
13888 | |
13889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13890 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13891 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13892 | |
13893 | # Is the header present? | |
631ef239 AC |
13894 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 |
13895 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13896 | cat >conftest.$ac_ext <<_ACEOF |
13897 | /* confdefs.h. */ | |
13898 | _ACEOF | |
13899 | cat confdefs.h >>conftest.$ac_ext | |
13900 | cat >>conftest.$ac_ext <<_ACEOF | |
13901 | /* end confdefs.h. */ | |
13902 | #include <nlist.h> | |
13903 | _ACEOF | |
631ef239 AC |
13904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13905 | case "(($ac_try" in | |
13906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13907 | *) ac_try_echo=$ac_try;; | |
13908 | esac | |
13909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13911 | ac_status=$? |
13912 | grep -v '^ *+' conftest.er1 >conftest.err | |
13913 | rm -f conftest.er1 | |
13914 | cat conftest.err >&5 | |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13916 | (exit $ac_status); } >/dev/null && { |
13917 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13918 | test ! -s conftest.err | |
13919 | }; then | |
212380e3 AC |
13920 | ac_header_preproc=yes |
13921 | else | |
13922 | echo "$as_me: failed program was:" >&5 | |
13923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13924 | ||
13925 | ac_header_preproc=no | |
13926 | fi | |
631ef239 | 13927 | |
212380e3 | 13928 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13929 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13930 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13931 | |
13932 | # So? What about this header? | |
13933 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13934 | yes:no: ) | |
13935 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13936 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13937 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
13938 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
13939 | ac_header_preproc=yes | |
13940 | ;; | |
13941 | no:yes:* ) | |
13942 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
13943 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
13944 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
13945 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
13946 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
13947 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
13948 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13949 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13950 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
13951 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
13952 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
13953 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13954 | |
212380e3 AC |
13955 | ;; |
13956 | esac | |
631ef239 AC |
13957 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13958 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13959 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13961 | else | |
13962 | ac_cv_header_nlist_h=$ac_header_preproc | |
13963 | fi | |
631ef239 AC |
13964 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13965 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13966 | |
13967 | fi | |
13968 | if test $ac_cv_header_nlist_h = yes; then | |
13969 | nlist_h="nlist.h" | |
13970 | fi | |
13971 | ||
13972 | ||
13973 | if test x"$nlist_h" = "x"; then | |
13974 | ||
13975 | cat >>confdefs.h <<_ACEOF | |
13976 | #define SYMBOL_PREFIX "" | |
13977 | _ACEOF | |
13978 | ||
13979 | else | |
631ef239 AC |
13980 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 |
13981 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
212380e3 AC |
13982 | if test "${symbol_underscores+set}" = set; then |
13983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13984 | else | |
13985 | ||
13986 | cat << EOF > conftest.c | |
13987 | #include <$nlist_h> | |
13988 | #include <stdio.h> | |
13989 | #include <stdlib.h> | |
13990 | void _modinit(void); | |
13991 | int main(int argc, char *argv[]) { | |
13992 | int i; | |
13993 | struct nlist nl[5]; | |
13994 | ||
13995 | /* fill the names in this way, so it'll work almost everywhere */ | |
13996 | nl[0].n_name = "_modinit"; | |
13997 | nl[1].n_name = "__modinit"; | |
13998 | nl[2].n_name = "___modinit"; | |
13999 | nl[3].n_name = "____modinit"; | |
14000 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
14001 | ||
14002 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
14003 | for(i = 0; i < 4; i++) { | |
14004 | if(nl[i].n_value != NULL) | |
14005 | { | |
14006 | int j; | |
14007 | for(j = 0; j < i; j++) | |
14008 | printf("_"); | |
14009 | exit(i); | |
14010 | } | |
14011 | } | |
14012 | exit(-1); | |
14013 | } | |
14014 | void _modinit(void) { return; } | |
14015 | EOF | |
14016 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
14017 | symbol_underscores=`./conftest conftest` | |
631ef239 AC |
14018 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 |
14019 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
212380e3 AC |
14020 | $RM -f conftest conftest.c |
14021 | ||
14022 | fi | |
14023 | ||
14024 | ||
14025 | cat >>confdefs.h <<_ACEOF | |
14026 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
14027 | _ACEOF | |
14028 | ||
14029 | fi | |
14030 | fi | |
14031 | ||
14032 | ||
14033 | ||
14034 | ||
14035 | ||
14036 | ||
14037 | ||
14038 | ||
14039 | ||
14040 | ||
14041 | ||
14042 | ||
14043 | ||
14044 | ||
14045 | if test "$prefix" = "NONE"; then | |
14046 | ||
14047 | cat >>confdefs.h <<_ACEOF | |
14048 | #define IRCD_PREFIX "$ac_default_prefix" | |
14049 | _ACEOF | |
14050 | ||
14051 | ||
14052 | else | |
14053 | ||
14054 | ||
14055 | prefix=`echo $prefix | sed 's/\/$//'` | |
14056 | ||
14057 | cat >>confdefs.h <<_ACEOF | |
14058 | #define IRCD_PREFIX "$prefix" | |
14059 | _ACEOF | |
14060 | ||
14061 | ||
14062 | fi | |
14063 | ||
631ef239 | 14064 | ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
14065 | |
14066 | ||
14067 | cat >confcache <<\_ACEOF | |
14068 | # This file is a shell script that caches the results of configure | |
14069 | # tests run on this system so they can be shared between configure | |
14070 | # scripts and configure runs, see configure's option --config-cache. | |
14071 | # It is not useful on other systems. If it contains results you don't | |
14072 | # want to keep, you may remove or edit it. | |
14073 | # | |
14074 | # config.status only pays attention to the cache file if you give it | |
14075 | # the --recheck option to rerun configure. | |
14076 | # | |
14077 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14078 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14079 | # following values. | |
14080 | ||
14081 | _ACEOF | |
14082 | ||
14083 | # The following way of writing the cache mishandles newlines in values, | |
14084 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 14085 | # So, we kill variables containing newlines. |
212380e3 AC |
14086 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14087 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
14088 | ( |
14089 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14090 | eval ac_val=\$$ac_var | |
14091 | case $ac_val in #( | |
14092 | *${as_nl}*) | |
14093 | case $ac_var in #( | |
14094 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
14095 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
14096 | esac | |
14097 | case $ac_var in #( | |
14098 | _ | IFS | as_nl) ;; #( | |
14099 | *) $as_unset $ac_var ;; | |
14100 | esac ;; | |
14101 | esac | |
14102 | done | |
14103 | ||
212380e3 | 14104 | (set) 2>&1 | |
631ef239 AC |
14105 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14106 | *${as_nl}ac_space=\ *) | |
212380e3 AC |
14107 | # `set' does not quote correctly, so add quotes (double-quote |
14108 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14109 | sed -n \ | |
14110 | "s/'/'\\\\''/g; | |
14111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 14112 | ;; #( |
212380e3 AC |
14113 | *) |
14114 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 14115 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 14116 | ;; |
631ef239 AC |
14117 | esac | |
14118 | sort | |
14119 | ) | | |
212380e3 | 14120 | sed ' |
631ef239 | 14121 | /^ac_cv_env_/b end |
212380e3 | 14122 | t clear |
631ef239 | 14123 | :clear |
212380e3 AC |
14124 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14125 | t end | |
631ef239 AC |
14126 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14127 | :end' >>confcache | |
14128 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14129 | if test -w "$cache_file"; then | |
14130 | test "x$cache_file" != "x/dev/null" && | |
14131 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
14132 | echo "$as_me: updating cache $cache_file" >&6;} | |
212380e3 AC |
14133 | cat confcache >$cache_file |
14134 | else | |
631ef239 AC |
14135 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
14136 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
14137 | fi |
14138 | fi | |
14139 | rm -f confcache | |
14140 | ||
14141 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14142 | # Let make expand exec_prefix. | |
14143 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14144 | ||
212380e3 AC |
14145 | DEFS=-DHAVE_CONFIG_H |
14146 | ||
14147 | ac_libobjs= | |
14148 | ac_ltlibobjs= | |
14149 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14150 | # 1. Remove the extension, and $U if already installed. | |
631ef239 AC |
14151 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14152 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14153 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14154 | # will be set to the directory where LIBOBJS objects are built. | |
14155 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14156 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
14157 | done |
14158 | LIBOBJS=$ac_libobjs | |
14159 | ||
14160 | LTLIBOBJS=$ac_ltlibobjs | |
14161 | ||
14162 | ||
14163 | ||
14164 | : ${CONFIG_STATUS=./config.status} | |
14165 | ac_clean_files_save=$ac_clean_files | |
14166 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14167 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14168 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14169 | cat >$CONFIG_STATUS <<_ACEOF | |
14170 | #! $SHELL | |
14171 | # Generated by $as_me. | |
14172 | # Run this file to recreate the current configuration. | |
14173 | # Compiler output produced by configure, useful for debugging | |
14174 | # configure, is in config.log if it exists. | |
14175 | ||
14176 | debug=false | |
14177 | ac_cs_recheck=false | |
14178 | ac_cs_silent=false | |
14179 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14180 | _ACEOF | |
14181 | ||
14182 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14183 | ## --------------------- ## | |
14184 | ## M4sh Initialization. ## | |
14185 | ## --------------------- ## | |
14186 | ||
631ef239 AC |
14187 | # Be more Bourne compatible |
14188 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
14189 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14190 | emulate sh | |
14191 | NULLCMD=: | |
14192 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14193 | # is contrary to our usage. Disable this feature. | |
14194 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 14195 | setopt NO_GLOB_SUBST |
212380e3 | 14196 | else |
631ef239 AC |
14197 | case `(set -o) 2>/dev/null` in |
14198 | *posix*) set -o posix ;; | |
14199 | esac | |
14200 | ||
212380e3 AC |
14201 | fi |
14202 | ||
14203 | ||
631ef239 AC |
14204 | |
14205 | ||
14206 | # PATH needs CR | |
14207 | # Avoid depending upon Character Ranges. | |
14208 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14209 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14210 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14211 | as_cr_digits='0123456789' | |
14212 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14213 | ||
14214 | # The user is always right. | |
14215 | if test "${PATH_SEPARATOR+set}" != set; then | |
14216 | echo "#! /bin/sh" >conf$$.sh | |
14217 | echo "exit 0" >>conf$$.sh | |
14218 | chmod +x conf$$.sh | |
14219 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14220 | PATH_SEPARATOR=';' | |
14221 | else | |
14222 | PATH_SEPARATOR=: | |
14223 | fi | |
14224 | rm -f conf$$.sh | |
14225 | fi | |
14226 | ||
14227 | # Support unset when possible. | |
14228 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14229 | as_unset=unset | |
14230 | else | |
14231 | as_unset=false | |
14232 | fi | |
14233 | ||
14234 | ||
14235 | # IFS | |
14236 | # We need space, tab and new line, in precisely that order. Quoting is | |
14237 | # there to prevent editors from complaining about space-tab. | |
14238 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14239 | # splitting by setting IFS to empty value.) | |
14240 | as_nl=' | |
14241 | ' | |
14242 | IFS=" "" $as_nl" | |
14243 | ||
14244 | # Find who we are. Look in the path if we contain no directory separator. | |
14245 | case $0 in | |
14246 | *[\\/]* ) as_myself=$0 ;; | |
14247 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14248 | for as_dir in $PATH | |
14249 | do | |
14250 | IFS=$as_save_IFS | |
14251 | test -z "$as_dir" && as_dir=. | |
14252 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14253 | done | |
14254 | IFS=$as_save_IFS | |
14255 | ||
14256 | ;; | |
14257 | esac | |
14258 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14259 | # in which case we are not to be found in the path. | |
14260 | if test "x$as_myself" = x; then | |
14261 | as_myself=$0 | |
14262 | fi | |
14263 | if test ! -f "$as_myself"; then | |
14264 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14265 | { (exit 1); exit 1; } | |
14266 | fi | |
14267 | ||
212380e3 | 14268 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
14269 | for as_var in ENV MAIL MAILPATH |
14270 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14271 | done | |
212380e3 AC |
14272 | PS1='$ ' |
14273 | PS2='> ' | |
14274 | PS4='+ ' | |
14275 | ||
14276 | # NLS nuisances. | |
14277 | for as_var in \ | |
14278 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14279 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14280 | LC_TELEPHONE LC_TIME | |
14281 | do | |
14282 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14283 | eval $as_var=C; export $as_var | |
14284 | else | |
631ef239 | 14285 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
14286 | fi |
14287 | done | |
14288 | ||
14289 | # Required to use basename. | |
631ef239 AC |
14290 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14291 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14292 | as_expr=expr |
14293 | else | |
14294 | as_expr=false | |
14295 | fi | |
14296 | ||
631ef239 | 14297 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
14298 | as_basename=basename |
14299 | else | |
14300 | as_basename=false | |
14301 | fi | |
14302 | ||
14303 | ||
14304 | # Name of the executable. | |
631ef239 | 14305 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
14306 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14307 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 14308 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14309 | echo X/"$0" | |
631ef239 AC |
14310 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14311 | s//\1/ | |
14312 | q | |
14313 | } | |
14314 | /^X\/\(\/\/\)$/{ | |
14315 | s//\1/ | |
14316 | q | |
14317 | } | |
14318 | /^X\/\(\/\).*/{ | |
14319 | s//\1/ | |
14320 | q | |
14321 | } | |
14322 | s/.*/./; q'` | |
212380e3 | 14323 | |
631ef239 AC |
14324 | # CDPATH. |
14325 | $as_unset CDPATH | |
212380e3 | 14326 | |
212380e3 AC |
14327 | |
14328 | ||
14329 | as_lineno_1=$LINENO | |
14330 | as_lineno_2=$LINENO | |
212380e3 | 14331 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 14332 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
212380e3 AC |
14333 | |
14334 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14335 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
14336 | # line-number line after each line using $LINENO; the second 'sed' |
14337 | # does the real work. The second script uses 'N' to pair each | |
14338 | # line-number line with the line containing $LINENO, and appends | |
14339 | # trailing '-' during substitution so that $LINENO is not a special | |
14340 | # case at line end. | |
212380e3 | 14341 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
14342 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
14343 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14344 | sed -n ' | |
14345 | p | |
14346 | /[$]LINENO/= | |
14347 | ' <$as_myself | | |
212380e3 | 14348 | sed ' |
631ef239 AC |
14349 | s/[$]LINENO.*/&-/ |
14350 | t lineno | |
14351 | b | |
14352 | :lineno | |
212380e3 | 14353 | N |
631ef239 AC |
14354 | :loop |
14355 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 14356 | t loop |
631ef239 | 14357 | s/-\n.*// |
212380e3 | 14358 | ' >$as_me.lineno && |
631ef239 AC |
14359 | chmod +x "$as_me.lineno" || |
14360 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
212380e3 AC |
14361 | { (exit 1); exit 1; }; } |
14362 | ||
14363 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14364 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
14365 | # original and so on. Autoconf is especially sensitive to this). |
14366 | . "./$as_me.lineno" | |
212380e3 AC |
14367 | # Exit status is that of the last command. |
14368 | exit | |
14369 | } | |
14370 | ||
14371 | ||
631ef239 AC |
14372 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14373 | as_dirname=dirname | |
14374 | else | |
14375 | as_dirname=false | |
14376 | fi | |
14377 | ||
14378 | ECHO_C= ECHO_N= ECHO_T= | |
14379 | case `echo -n x` in | |
14380 | -n*) | |
14381 | case `echo 'x\c'` in | |
14382 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14383 | *) ECHO_C='\c';; | |
14384 | esac;; | |
14385 | *) | |
14386 | ECHO_N='-n';; | |
212380e3 AC |
14387 | esac |
14388 | ||
631ef239 AC |
14389 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14390 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14391 | as_expr=expr |
14392 | else | |
14393 | as_expr=false | |
14394 | fi | |
14395 | ||
14396 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
14397 | if test -d conf$$.dir; then |
14398 | rm -f conf$$.dir/conf$$.file | |
14399 | else | |
14400 | rm -f conf$$.dir | |
14401 | mkdir conf$$.dir | |
14402 | fi | |
212380e3 AC |
14403 | echo >conf$$.file |
14404 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
14405 | as_ln_s='ln -s' |
14406 | # ... but there are two gotchas: | |
14407 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14408 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14409 | # In both cases, we have to default to `cp -p'. | |
14410 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 14411 | as_ln_s='cp -p' |
212380e3 AC |
14412 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14413 | as_ln_s=ln | |
14414 | else | |
14415 | as_ln_s='cp -p' | |
14416 | fi | |
631ef239 AC |
14417 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14418 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
14419 | |
14420 | if mkdir -p . 2>/dev/null; then | |
14421 | as_mkdir_p=: | |
14422 | else | |
14423 | test -d ./-p && rmdir ./-p | |
14424 | as_mkdir_p=false | |
14425 | fi | |
14426 | ||
631ef239 AC |
14427 | if test -x / >/dev/null 2>&1; then |
14428 | as_test_x='test -x' | |
14429 | else | |
14430 | if ls -dL / >/dev/null 2>&1; then | |
14431 | as_ls_L_option=L | |
14432 | else | |
14433 | as_ls_L_option= | |
14434 | fi | |
14435 | as_test_x=' | |
14436 | eval sh -c '\'' | |
14437 | if test -d "$1"; then | |
14438 | test -d "$1/."; | |
14439 | else | |
14440 | case $1 in | |
14441 | -*)set "./$1";; | |
14442 | esac; | |
14443 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14444 | ???[sx]*):;;*)false;;esac;fi | |
14445 | '\'' sh | |
14446 | ' | |
14447 | fi | |
14448 | as_executable_p=$as_test_x | |
212380e3 AC |
14449 | |
14450 | # Sed expression to map a string onto a valid CPP name. | |
14451 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14452 | ||
14453 | # Sed expression to map a string onto a valid variable name. | |
14454 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14455 | ||
14456 | ||
212380e3 AC |
14457 | exec 6>&1 |
14458 | ||
631ef239 | 14459 | # Save the log message, to keep $[0] and so on meaningful, and to |
212380e3 | 14460 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
14461 | # values after options handling. |
14462 | ac_log=" | |
b1fc1658 | 14463 | This file was extended by charybdis $as_me 2.2.0, which was |
631ef239 | 14464 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
14465 | |
14466 | CONFIG_FILES = $CONFIG_FILES | |
14467 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14468 | CONFIG_LINKS = $CONFIG_LINKS | |
14469 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14470 | $ $0 $@ | |
14471 | ||
631ef239 AC |
14472 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14473 | " | |
14474 | ||
212380e3 AC |
14475 | _ACEOF |
14476 | ||
631ef239 | 14477 | cat >>$CONFIG_STATUS <<_ACEOF |
212380e3 | 14478 | # Files that config.status was made for. |
631ef239 AC |
14479 | config_files="$ac_config_files" |
14480 | config_headers="$ac_config_headers" | |
212380e3 | 14481 | |
631ef239 | 14482 | _ACEOF |
212380e3 AC |
14483 | |
14484 | cat >>$CONFIG_STATUS <<\_ACEOF | |
212380e3 AC |
14485 | ac_cs_usage="\ |
14486 | \`$as_me' instantiates files from templates according to the | |
14487 | current configuration. | |
14488 | ||
14489 | Usage: $0 [OPTIONS] [FILE]... | |
14490 | ||
14491 | -h, --help print this help, then exit | |
631ef239 | 14492 | -V, --version print version number and configuration settings, then exit |
212380e3 AC |
14493 | -q, --quiet do not print progress messages |
14494 | -d, --debug don't remove temporary files | |
14495 | --recheck update $as_me by reconfiguring in the same conditions | |
14496 | --file=FILE[:TEMPLATE] | |
14497 | instantiate the configuration file FILE | |
14498 | --header=FILE[:TEMPLATE] | |
14499 | instantiate the configuration header FILE | |
14500 | ||
14501 | Configuration files: | |
14502 | $config_files | |
14503 | ||
14504 | Configuration headers: | |
14505 | $config_headers | |
14506 | ||
14507 | Report bugs to <bug-autoconf@gnu.org>." | |
212380e3 | 14508 | |
631ef239 | 14509 | _ACEOF |
212380e3 AC |
14510 | cat >>$CONFIG_STATUS <<_ACEOF |
14511 | ac_cs_version="\\ | |
b1fc1658 | 14512 | charybdis config.status 2.2.0 |
631ef239 AC |
14513 | configured by $0, generated by GNU Autoconf 2.61, |
14514 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
212380e3 | 14515 | |
631ef239 | 14516 | Copyright (C) 2006 Free Software Foundation, Inc. |
212380e3 AC |
14517 | This config.status script is free software; the Free Software Foundation |
14518 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
14519 | |
14520 | ac_pwd='$ac_pwd' | |
14521 | srcdir='$srcdir' | |
14522 | INSTALL='$INSTALL' | |
212380e3 AC |
14523 | _ACEOF |
14524 | ||
14525 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14526 | # If no file are specified by the user, then we need to provide default | |
14527 | # value. By we need to know if files were specified by the user. | |
14528 | ac_need_defaults=: | |
14529 | while test $# != 0 | |
14530 | do | |
14531 | case $1 in | |
14532 | --*=*) | |
631ef239 AC |
14533 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14534 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
14535 | ac_shift=: |
14536 | ;; | |
631ef239 | 14537 | *) |
212380e3 AC |
14538 | ac_option=$1 |
14539 | ac_optarg=$2 | |
14540 | ac_shift=shift | |
14541 | ;; | |
212380e3 AC |
14542 | esac |
14543 | ||
14544 | case $ac_option in | |
14545 | # Handling of the options. | |
212380e3 AC |
14546 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14547 | ac_cs_recheck=: ;; | |
631ef239 AC |
14548 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14549 | echo "$ac_cs_version"; exit ;; | |
14550 | --debug | --debu | --deb | --de | --d | -d ) | |
212380e3 AC |
14551 | debug=: ;; |
14552 | --file | --fil | --fi | --f ) | |
14553 | $ac_shift | |
14554 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14555 | ac_need_defaults=false;; | |
14556 | --header | --heade | --head | --hea ) | |
14557 | $ac_shift | |
14558 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14559 | ac_need_defaults=false;; | |
631ef239 AC |
14560 | --he | --h) |
14561 | # Conflict between --help and --header | |
14562 | { echo "$as_me: error: ambiguous option: $1 | |
14563 | Try \`$0 --help' for more information." >&2 | |
14564 | { (exit 1); exit 1; }; };; | |
14565 | --help | --hel | -h ) | |
14566 | echo "$ac_cs_usage"; exit ;; | |
212380e3 AC |
14567 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14568 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14569 | ac_cs_silent=: ;; | |
14570 | ||
14571 | # This is an error. | |
631ef239 AC |
14572 | -*) { echo "$as_me: error: unrecognized option: $1 |
14573 | Try \`$0 --help' for more information." >&2 | |
212380e3 AC |
14574 | { (exit 1); exit 1; }; } ;; |
14575 | ||
631ef239 AC |
14576 | *) ac_config_targets="$ac_config_targets $1" |
14577 | ac_need_defaults=false ;; | |
212380e3 AC |
14578 | |
14579 | esac | |
14580 | shift | |
14581 | done | |
14582 | ||
14583 | ac_configure_extra_args= | |
14584 | ||
14585 | if $ac_cs_silent; then | |
14586 | exec 6>/dev/null | |
14587 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14588 | fi | |
14589 | ||
14590 | _ACEOF | |
14591 | cat >>$CONFIG_STATUS <<_ACEOF | |
14592 | if \$ac_cs_recheck; then | |
631ef239 AC |
14593 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
14594 | CONFIG_SHELL=$SHELL | |
14595 | export CONFIG_SHELL | |
14596 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
212380e3 AC |
14597 | fi |
14598 | ||
14599 | _ACEOF | |
631ef239 AC |
14600 | cat >>$CONFIG_STATUS <<\_ACEOF |
14601 | exec 5>>config.log | |
14602 | { | |
14603 | echo | |
14604 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14605 | ## Running $as_me. ## | |
14606 | _ASBOX | |
14607 | echo "$ac_log" | |
14608 | } >&5 | |
212380e3 | 14609 | |
631ef239 AC |
14610 | _ACEOF |
14611 | cat >>$CONFIG_STATUS <<_ACEOF | |
14612 | _ACEOF | |
212380e3 AC |
14613 | |
14614 | cat >>$CONFIG_STATUS <<\_ACEOF | |
631ef239 AC |
14615 | |
14616 | # Handling of arguments. | |
212380e3 AC |
14617 | for ac_config_target in $ac_config_targets |
14618 | do | |
631ef239 AC |
14619 | case $ac_config_target in |
14620 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14621 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14622 | "libcharybdis/Makefile") CONFIG_FILES="$CONFIG_FILES libcharybdis/Makefile" ;; | |
14623 | "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;; | |
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 | |
14736 | MKDEP!$MKDEP$ac_delim | |
14737 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
14738 | STDOUT!$STDOUT$ac_delim | |
14739 | CPP!$CPP$ac_delim | |
14740 | GREP!$GREP$ac_delim | |
14741 | EGREP!$EGREP$ac_delim | |
14742 | SET_MAKE!$SET_MAKE$ac_delim | |
14743 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
14744 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
14745 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
14746 | RM!$RM$ac_delim | |
14747 | CP!$CP$ac_delim | |
14748 | MV!$MV$ac_delim | |
14749 | LN!$LN$ac_delim | |
14750 | SED!$SED$ac_delim | |
14751 | AR!$AR$ac_delim | |
14752 | LD!$LD$ac_delim | |
14753 | RANLIB!$RANLIB$ac_delim | |
14754 | TOUCH!$TOUCH$ac_delim | |
14755 | YACC!$YACC$ac_delim | |
14756 | YFLAGS!$YFLAGS$ac_delim | |
14757 | LEX!$LEX$ac_delim | |
14758 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
14759 | LEXLIB!$LEXLIB$ac_delim | |
14760 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
14761 | VICONF!$VICONF$ac_delim | |
14762 | ALLOCA!$ALLOCA$ac_delim | |
14763 | ENCSPEED!$ENCSPEED$ac_delim | |
14764 | ZLIB_LD!$ZLIB_LD$ac_delim | |
14765 | ETC_DIR!$ETC_DIR$ac_delim | |
14766 | confdir!$confdir$ac_delim | |
14767 | LOG_DIR!$LOG_DIR$ac_delim | |
14768 | logdir!$logdir$ac_delim | |
14769 | HELP_DIR!$HELP_DIR$ac_delim | |
14770 | helpdir!$helpdir$ac_delim | |
14771 | MODULE_DIR!$MODULE_DIR$ac_delim | |
14772 | moduledir!$moduledir$ac_delim | |
14773 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
631ef239 AC |
14774 | MODULES_LIBS!$MODULES_LIBS$ac_delim |
14775 | MOD_TARGET!$MOD_TARGET$ac_delim | |
14776 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
14777 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
14778 | SSL_LIBS!$SSL_LIBS$ac_delim | |
14779 | PICFLAGS!$PICFLAGS$ac_delim | |
14780 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
14781 | SEDOBJ!$SEDOBJ$ac_delim | |
14782 | LIBOBJS!$LIBOBJS$ac_delim | |
14783 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
14784 | _ACEOF | |
14785 | ||
4536ee25 | 14786 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then |
631ef239 AC |
14787 | break |
14788 | elif $ac_last_try; then | |
14789 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14790 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14791 | { (exit 1); exit 1; }; } | |
14792 | else | |
14793 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 14794 | fi |
631ef239 | 14795 | done |
212380e3 | 14796 | |
631ef239 AC |
14797 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
14798 | if test -n "$ac_eof"; then | |
14799 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
14800 | ac_eof=`expr $ac_eof + 1` | |
14801 | fi | |
14802 | ||
14803 | cat >>$CONFIG_STATUS <<_ACEOF | |
14804 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
14805 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
14806 | _ACEOF | |
14807 | sed ' | |
14808 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
14809 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
14810 | :n | |
14811 | t n | |
14812 | s/'"$ac_delim"'$/,g/; t | |
14813 | s/$/\\/; p | |
14814 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
14815 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
14816 | rm -f conf$$subs.sed | |
14817 | cat >>$CONFIG_STATUS <<_ACEOF | |
14818 | :end | |
14819 | s/|#_!!_#|//g | |
14820 | CEOF$ac_eof | |
212380e3 | 14821 | _ACEOF |
631ef239 AC |
14822 | |
14823 | ||
14824 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14825 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14826 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14827 | # (actually we leave an empty line to preserve line numbers). | |
14828 | if test "x$srcdir" = x.; then | |
14829 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14830 | s/:*\$(srcdir):*/:/ | |
14831 | s/:*\${srcdir}:*/:/ | |
14832 | s/:*@srcdir@:*/:/ | |
14833 | s/^\([^=]*=[ ]*\):*/\1/ | |
14834 | s/:*$// | |
14835 | s/^[^=]*=[ ]*$// | |
14836 | }' | |
14837 | fi | |
14838 | ||
212380e3 | 14839 | cat >>$CONFIG_STATUS <<\_ACEOF |
631ef239 AC |
14840 | fi # test -n "$CONFIG_FILES" |
14841 | ||
14842 | ||
14843 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
14844 | do | |
14845 | case $ac_tag in | |
14846 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14847 | esac | |
14848 | case $ac_mode$ac_tag in | |
14849 | :[FHL]*:*);; | |
14850 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
14851 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
14852 | { (exit 1); exit 1; }; };; | |
14853 | :[FH]-) ac_tag=-:-;; | |
14854 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 14855 | esac |
631ef239 AC |
14856 | ac_save_IFS=$IFS |
14857 | IFS=: | |
14858 | set x $ac_tag | |
14859 | IFS=$ac_save_IFS | |
14860 | shift | |
14861 | ac_file=$1 | |
14862 | shift | |
212380e3 | 14863 | |
631ef239 AC |
14864 | case $ac_mode in |
14865 | :L) ac_source=$1;; | |
14866 | :[FH]) | |
14867 | ac_file_inputs= | |
14868 | for ac_f | |
14869 | do | |
14870 | case $ac_f in | |
14871 | -) ac_f="$tmp/stdin";; | |
14872 | *) # Look for the file first in the build tree, then in the source tree | |
14873 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14874 | # because $ac_f cannot contain `:'. | |
14875 | test -f "$ac_f" || | |
14876 | case $ac_f in | |
14877 | [\\/$]*) false;; | |
14878 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14879 | esac || | |
14880 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14881 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14882 | { (exit 1); exit 1; }; };; | |
14883 | esac | |
14884 | ac_file_inputs="$ac_file_inputs $ac_f" | |
14885 | done | |
14886 | ||
14887 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14888 | # use $as_me), people would be surprised to read: | |
14889 | # /* config.h. Generated by config.status. */ | |
14890 | configure_input="Generated from "`IFS=: | |
14891 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
14892 | if test x"$ac_file" != x-; then | |
14893 | configure_input="$ac_file. $configure_input" | |
14894 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14895 | echo "$as_me: creating $ac_file" >&6;} | |
14896 | fi | |
14897 | ||
14898 | case $ac_tag in | |
14899 | *:-:* | *:-) cat >"$tmp/stdin";; | |
14900 | esac | |
14901 | ;; | |
14902 | esac | |
14903 | ||
14904 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
14905 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14906 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14907 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 14908 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14909 | echo X"$ac_file" | |
631ef239 AC |
14910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14911 | s//\1/ | |
14912 | q | |
14913 | } | |
14914 | /^X\(\/\/\)[^/].*/{ | |
14915 | s//\1/ | |
14916 | q | |
14917 | } | |
14918 | /^X\(\/\/\)$/{ | |
14919 | s//\1/ | |
14920 | q | |
14921 | } | |
14922 | /^X\(\/\).*/{ | |
14923 | s//\1/ | |
14924 | q | |
14925 | } | |
14926 | s/.*/./; q'` | |
14927 | { as_dir="$ac_dir" | |
14928 | case $as_dir in #( | |
14929 | -*) as_dir=./$as_dir;; | |
14930 | esac | |
14931 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
212380e3 | 14932 | as_dirs= |
631ef239 AC |
14933 | while :; do |
14934 | case $as_dir in #( | |
14935 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
14936 | *) as_qdir=$as_dir;; | |
14937 | esac | |
14938 | as_dirs="'$as_qdir' $as_dirs" | |
14939 | as_dir=`$as_dirname -- "$as_dir" || | |
212380e3 AC |
14940 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14941 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14942 | X"$as_dir" : 'X\(//\)$' \| \ | |
631ef239 | 14943 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14944 | echo X"$as_dir" | |
631ef239 AC |
14945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14946 | s//\1/ | |
14947 | q | |
14948 | } | |
14949 | /^X\(\/\/\)[^/].*/{ | |
14950 | s//\1/ | |
14951 | q | |
14952 | } | |
14953 | /^X\(\/\/\)$/{ | |
14954 | s//\1/ | |
14955 | q | |
14956 | } | |
14957 | /^X\(\/\).*/{ | |
14958 | s//\1/ | |
14959 | q | |
14960 | } | |
14961 | s/.*/./; q'` | |
14962 | test -d "$as_dir" && break | |
212380e3 | 14963 | done |
631ef239 AC |
14964 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14965 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14966 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
212380e3 | 14967 | { (exit 1); exit 1; }; }; } |
212380e3 AC |
14968 | ac_builddir=. |
14969 | ||
631ef239 AC |
14970 | case "$ac_dir" in |
14971 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14972 | *) | |
212380e3 | 14973 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
14974 | # A ".." for each directory in $ac_dir_suffix. |
14975 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
14976 | case $ac_top_builddir_sub in | |
14977 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14978 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14979 | esac ;; | |
14980 | esac | |
14981 | ac_abs_top_builddir=$ac_pwd | |
14982 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14983 | # for backward compatibility: | |
14984 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
14985 | |
14986 | case $srcdir in | |
631ef239 | 14987 | .) # We are building in place. |
212380e3 | 14988 | ac_srcdir=. |
631ef239 AC |
14989 | ac_top_srcdir=$ac_top_builddir_sub |
14990 | ac_abs_top_srcdir=$ac_pwd ;; | |
14991 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 14992 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
14993 | ac_top_srcdir=$srcdir |
14994 | ac_abs_top_srcdir=$srcdir ;; | |
14995 | *) # Relative name. | |
14996 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14997 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14998 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 14999 | esac |
631ef239 | 15000 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 15001 | |
212380e3 | 15002 | |
631ef239 AC |
15003 | case $ac_mode in |
15004 | :F) | |
15005 | # | |
15006 | # CONFIG_FILE | |
15007 | # | |
212380e3 AC |
15008 | |
15009 | case $INSTALL in | |
15010 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 15011 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 15012 | esac |
631ef239 | 15013 | _ACEOF |
212380e3 | 15014 | |
631ef239 AC |
15015 | cat >>$CONFIG_STATUS <<\_ACEOF |
15016 | # If the template does not know about datarootdir, expand it. | |
15017 | # FIXME: This hack should be removed a few years after 2.60. | |
15018 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15019 | ||
15020 | case `sed -n '/datarootdir/ { | |
15021 | p | |
15022 | q | |
15023 | } | |
15024 | /@datadir@/p | |
15025 | /@docdir@/p | |
15026 | /@infodir@/p | |
15027 | /@localedir@/p | |
15028 | /@mandir@/p | |
15029 | ' $ac_file_inputs` in | |
15030 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15031 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15032 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15033 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
15034 | _ACEOF | |
15035 | cat >>$CONFIG_STATUS <<_ACEOF | |
15036 | ac_datarootdir_hack=' | |
15037 | s&@datadir@&$datadir&g | |
15038 | s&@docdir@&$docdir&g | |
15039 | s&@infodir@&$infodir&g | |
15040 | s&@localedir@&$localedir&g | |
15041 | s&@mandir@&$mandir&g | |
15042 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15043 | esac | |
212380e3 | 15044 | _ACEOF |
631ef239 AC |
15045 | |
15046 | # Neutralize VPATH when `$srcdir' = `.'. | |
15047 | # Shell code in configure.ac might set extrasub. | |
15048 | # FIXME: do we really want to maintain this feature? | |
212380e3 AC |
15049 | cat >>$CONFIG_STATUS <<_ACEOF |
15050 | sed "$ac_vpsub | |
15051 | $extrasub | |
15052 | _ACEOF | |
15053 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15054 | :t | |
15055 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
631ef239 AC |
15056 | s&@configure_input@&$configure_input&;t t |
15057 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15058 | s&@srcdir@&$ac_srcdir&;t t | |
15059 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15060 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15061 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15062 | s&@builddir@&$ac_builddir&;t t | |
15063 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15064 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15065 | s&@INSTALL@&$ac_INSTALL&;t t | |
15066 | $ac_datarootdir_hack | |
15067 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
15068 | ||
15069 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15070 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15071 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15072 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15073 | which seems to be undefined. Please make sure it is defined." >&5 | |
15074 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15075 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15076 | ||
15077 | rm -f "$tmp/stdin" | |
212380e3 | 15078 | case $ac_file in |
631ef239 AC |
15079 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
15080 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
212380e3 | 15081 | esac |
631ef239 AC |
15082 | ;; |
15083 | :H) | |
15084 | # | |
15085 | # CONFIG_HEADER | |
15086 | # | |
15087 | _ACEOF | |
15088 | ||
15089 | # Transform confdefs.h into a sed script `conftest.defines', that | |
15090 | # substitutes the proper values into config.h.in to produce config.h. | |
15091 | rm -f conftest.defines conftest.tail | |
15092 | # First, append a space to every undef/define line, to ease matching. | |
15093 | echo 's/$/ /' >conftest.defines | |
15094 | # Then, protect against being on the right side of a sed subst, or in | |
15095 | # an unquoted here document, in config.status. If some macros were | |
15096 | # called several times there might be several #defines for the same | |
15097 | # symbol, which is useless. But do not sort them, since the last | |
15098 | # AC_DEFINE must be honored. | |
15099 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
15100 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
15101 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
15102 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
15103 | # just an empty string. | |
15104 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
15105 | ac_dB='\\)[ (].*,\\1define\\2' | |
15106 | ac_dC=' ' | |
15107 | ac_dD=' ,' | |
15108 | ||
15109 | uniq confdefs.h | | |
15110 | sed -n ' | |
15111 | t rset | |
15112 | :rset | |
15113 | s/^[ ]*#[ ]*define[ ][ ]*// | |
15114 | t ok | |
15115 | d | |
15116 | :ok | |
15117 | s/[\\&,]/\\&/g | |
15118 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
15119 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
15120 | ' >>conftest.defines | |
15121 | ||
15122 | # Remove the space that was appended to ease matching. | |
15123 | # Then replace #undef with comments. This is necessary, for | |
212380e3 AC |
15124 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
15125 | # on some systems where configure will not decide to define it. | |
631ef239 AC |
15126 | # (The regexp can be short, since the line contains either #define or #undef.) |
15127 | echo 's/ $// | |
15128 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
15129 | ||
15130 | # Break up conftest.defines: | |
15131 | ac_max_sed_lines=50 | |
15132 | ||
15133 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
15134 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
15135 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
15136 | # et cetera. | |
15137 | ac_in='$ac_file_inputs' | |
15138 | ac_out='"$tmp/out1"' | |
15139 | ac_nxt='"$tmp/out2"' | |
15140 | ||
15141 | while : | |
212380e3 | 15142 | do |
631ef239 AC |
15143 | # Write a here document: |
15144 | cat >>$CONFIG_STATUS <<_ACEOF | |
15145 | # First, check the format of the line: | |
15146 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15147 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15148 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15149 | b | |
15150 | :def | |
15151 | _ACEOF | |
15152 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
212380e3 | 15153 | echo 'CEOF |
631ef239 AC |
15154 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15155 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15156 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15157 | grep . conftest.tail >/dev/null || break | |
212380e3 AC |
15158 | rm -f conftest.defines |
15159 | mv conftest.tail conftest.defines | |
15160 | done | |
631ef239 | 15161 | rm -f conftest.defines conftest.tail |
212380e3 | 15162 | |
631ef239 | 15163 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
212380e3 | 15164 | cat >>$CONFIG_STATUS <<\_ACEOF |
212380e3 | 15165 | if test x"$ac_file" != x-; then |
631ef239 AC |
15166 | echo "/* $configure_input */" >"$tmp/config.h" |
15167 | cat "$ac_result" >>"$tmp/config.h" | |
15168 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
212380e3 AC |
15169 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15170 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15171 | else | |
212380e3 | 15172 | rm -f $ac_file |
631ef239 | 15173 | mv "$tmp/config.h" $ac_file |
212380e3 AC |
15174 | fi |
15175 | else | |
631ef239 AC |
15176 | echo "/* $configure_input */" |
15177 | cat "$ac_result" | |
212380e3 | 15178 | fi |
631ef239 AC |
15179 | rm -f "$tmp/out12" |
15180 | ;; | |
15181 | ||
15182 | ||
15183 | esac | |
15184 | ||
15185 | done # for ac_tag | |
212380e3 | 15186 | |
212380e3 AC |
15187 | |
15188 | { (exit 0); exit 0; } | |
15189 | _ACEOF | |
15190 | chmod +x $CONFIG_STATUS | |
15191 | ac_clean_files=$ac_clean_files_save | |
15192 | ||
15193 | ||
15194 | # configure is writing to config.log, and then calls config.status. | |
15195 | # config.status does its own redirection, appending to config.log. | |
15196 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15197 | # by configure, so config.status won't be able to write to it; its | |
15198 | # output is simply discarded. So we exec the FD to /dev/null, | |
15199 | # effectively closing config.log, so it can be properly (re)opened and | |
15200 | # appended to by config.status. When coming back to configure, we | |
15201 | # need to make the FD available again. | |
15202 | if test "$no_create" != yes; then | |
15203 | ac_cs_success=: | |
15204 | ac_config_status_args= | |
15205 | test "$silent" = yes && | |
15206 | ac_config_status_args="$ac_config_status_args --quiet" | |
15207 | exec 5>/dev/null | |
15208 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15209 | exec 5>>config.log | |
15210 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15211 | # would make configure fail if this is the last instruction. | |
15212 | $ac_cs_success || { (exit 1); exit 1; } | |
15213 | fi | |
15214 | ||
15215 | ||
15216 | if test "$cf_openssl_version_ok" = yes; then | |
15217 | openssl="yes" | |
15218 | else | |
15219 | openssl="no" | |
15220 | fi | |
15221 | ||
15222 | if test "$shared_modules" = yes; then | |
15223 | modules=shared | |
15224 | else | |
15225 | modules=static | |
15226 | fi | |
15227 | ||
15228 | echo " | |
15229 | Configuration: | |
15230 | Install directory : $prefix | |
15231 | ||
15232 | Ziplinks : $zlib | |
15233 | OpenSSL : $openssl | |
15234 | Modules : $modules | |
15235 | IPv6 support : $have_v6 | |
15236 | Socket Engine : $SELECT_TYPE | |
15237 | Small network : $small_net | |
15238 | Block allocator : $balloc | |
15239 | ASM hashing code : $ricer_hashing | |
15240 | ||
15241 | Nickname length : $NICKLEN | |
15242 | Topic length : $TOPICLEN | |
15243 | ||
15244 | Use make to compile Charybdis, then make install to install it. | |
15245 | " |