]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
aa150eb9 | 3 | # Generated by GNU Autoconf 2.61 for charybdis 3.1.0. |
212380e3 | 4 | # |
b676ea3b | 5 | # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 6 | # |
631ef239 AC |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
212380e3 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
631ef239 AC |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
212380e3 | 53 | fi |
212380e3 AC |
54 | |
55 | # Support unset when possible. | |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
631ef239 AC |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
212380e3 | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
212380e3 AC |
100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
631ef239 | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
631ef239 AC |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
631ef239 | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
631ef239 | 133 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 137 | echo X/"$0" | |
631ef239 AC |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
212380e3 | 151 | |
631ef239 AC |
152 | # CDPATH. |
153 | $as_unset CDPATH | |
212380e3 | 154 | |
212380e3 | 155 | |
631ef239 AC |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
212380e3 AC |
161 | fi |
162 | ||
631ef239 AC |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
212380e3 | 179 | |
631ef239 AC |
180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
212380e3 | 187 | |
631ef239 AC |
188 | if as_func_failure; then |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
212380e3 AC |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
631ef239 | 228 | case $as_dir in |
212380e3 | 229 | /*) |
631ef239 AC |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
212380e3 AC |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
212380e3 | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 AC |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
212380e3 AC |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
212380e3 | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
212380e3 | 444 | sed ' |
631ef239 AC |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
212380e3 | 449 | N |
631ef239 AC |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 452 | t loop |
631ef239 | 453 | s/-\n.*// |
212380e3 | 454 | ' >$as_me.lineno && |
631ef239 | 455 | chmod +x "$as_me.lineno" || |
212380e3 AC |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
212380e3 AC |
463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
631ef239 AC |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
212380e3 AC |
483 | esac |
484 | ||
631ef239 AC |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
212380e3 AC |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 507 | as_ln_s='cp -p' |
212380e3 AC |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
631ef239 AC |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
515 | |
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
631ef239 AC |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
212380e3 AC |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
212380e3 | 553 | |
631ef239 | 554 | exec 7<&0 </dev/null 6>&1 |
212380e3 AC |
555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
212380e3 AC |
561 | # |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
631ef239 | 565 | ac_clean_files= |
212380e3 | 566 | ac_config_libobj_dir=. |
631ef239 | 567 | LIBOBJS= |
212380e3 AC |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
212380e3 AC |
574 | # Identity of this package. |
575 | PACKAGE_NAME='charybdis' | |
576 | PACKAGE_TARNAME='charybdis' | |
aa150eb9 JT |
577 | PACKAGE_VERSION='3.1.0' |
578 | PACKAGE_STRING='charybdis 3.1.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 | |
b676ea3b | 662 | subdirs |
631ef239 AC |
663 | MKDEP |
664 | MAKEDEPEND | |
665 | STDOUT | |
666 | CPP | |
667 | GREP | |
668 | EGREP | |
669 | SET_MAKE | |
670 | INSTALL_PROGRAM | |
671 | INSTALL_SCRIPT | |
672 | INSTALL_DATA | |
673 | RM | |
674 | CP | |
675 | MV | |
676 | LN | |
677 | SED | |
678 | AR | |
679 | LD | |
680 | RANLIB | |
681 | TOUCH | |
682 | YACC | |
683 | YFLAGS | |
684 | LEX | |
685 | LEX_OUTPUT_ROOT | |
686 | LEXLIB | |
687 | CRYPT_LIB | |
688 | VICONF | |
689 | ALLOCA | |
690 | ENCSPEED | |
691 | ZLIB_LD | |
692 | ETC_DIR | |
693 | confdir | |
694 | LOG_DIR | |
695 | logdir | |
696 | HELP_DIR | |
697 | helpdir | |
698 | MODULE_DIR | |
699 | moduledir | |
700 | SELECT_TYPE | |
631ef239 AC |
701 | MODULES_LIBS |
702 | MOD_TARGET | |
703 | SSL_SRCS_ENABLE | |
704 | SSL_INCLUDES | |
705 | SSL_LIBS | |
706 | PICFLAGS | |
707 | IRC_CFLAGS | |
708 | SEDOBJ | |
709 | LIBOBJS | |
710 | LTLIBOBJS' | |
212380e3 | 711 | ac_subst_files='' |
631ef239 AC |
712 | ac_precious_vars='build_alias |
713 | host_alias | |
714 | target_alias | |
715 | CC | |
716 | CFLAGS | |
717 | LDFLAGS | |
718 | LIBS | |
719 | CPPFLAGS | |
720 | CPP | |
721 | YACC | |
722 | YFLAGS' | |
b676ea3b | 723 | ac_subdirs_all='libratbox' |
212380e3 AC |
724 | |
725 | # Initialize some variables set by options. | |
726 | ac_init_help= | |
727 | ac_init_version=false | |
728 | # The variables have the same names as the options, with | |
729 | # dashes changed to underlines. | |
730 | cache_file=/dev/null | |
731 | exec_prefix=NONE | |
732 | no_create= | |
733 | no_recursion= | |
734 | prefix=NONE | |
735 | program_prefix=NONE | |
736 | program_suffix=NONE | |
737 | program_transform_name=s,x,x, | |
738 | silent= | |
739 | site= | |
740 | srcdir= | |
741 | verbose= | |
742 | x_includes=NONE | |
743 | x_libraries=NONE | |
744 | ||
745 | # Installation directory options. | |
746 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
747 | # and all the variables that are supposed to be based on exec_prefix | |
748 | # by default will actually change. | |
749 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 750 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
751 | bindir='${exec_prefix}/bin' |
752 | sbindir='${exec_prefix}/sbin' | |
753 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
754 | datarootdir='${prefix}/share' |
755 | datadir='${datarootdir}' | |
212380e3 AC |
756 | sysconfdir='${prefix}/etc' |
757 | sharedstatedir='${prefix}/com' | |
758 | localstatedir='${prefix}/var' | |
212380e3 AC |
759 | includedir='${prefix}/include' |
760 | oldincludedir='/usr/include' | |
631ef239 AC |
761 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
762 | infodir='${datarootdir}/info' | |
763 | htmldir='${docdir}' | |
764 | dvidir='${docdir}' | |
765 | pdfdir='${docdir}' | |
766 | psdir='${docdir}' | |
767 | libdir='${exec_prefix}/lib' | |
768 | localedir='${datarootdir}/locale' | |
769 | mandir='${datarootdir}/man' | |
212380e3 AC |
770 | |
771 | ac_prev= | |
631ef239 | 772 | ac_dashdash= |
212380e3 AC |
773 | for ac_option |
774 | do | |
775 | # If the previous option needs an argument, assign it. | |
776 | if test -n "$ac_prev"; then | |
631ef239 | 777 | eval $ac_prev=\$ac_option |
212380e3 AC |
778 | ac_prev= |
779 | continue | |
780 | fi | |
781 | ||
631ef239 AC |
782 | case $ac_option in |
783 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
784 | *) ac_optarg=yes ;; | |
785 | esac | |
212380e3 AC |
786 | |
787 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
788 | ||
631ef239 AC |
789 | case $ac_dashdash$ac_option in |
790 | --) | |
791 | ac_dashdash=yes ;; | |
212380e3 AC |
792 | |
793 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
794 | ac_prev=bindir ;; | |
795 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
796 | bindir=$ac_optarg ;; | |
797 | ||
798 | -build | --build | --buil | --bui | --bu) | |
799 | ac_prev=build_alias ;; | |
800 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
801 | build_alias=$ac_optarg ;; | |
802 | ||
803 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
804 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
805 | ac_prev=cache_file ;; | |
806 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
807 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
808 | cache_file=$ac_optarg ;; | |
809 | ||
810 | --config-cache | -C) | |
811 | cache_file=config.cache ;; | |
812 | ||
631ef239 | 813 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 814 | ac_prev=datadir ;; |
631ef239 | 815 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
816 | datadir=$ac_optarg ;; |
817 | ||
631ef239 AC |
818 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
819 | | --dataroo | --dataro | --datar) | |
820 | ac_prev=datarootdir ;; | |
821 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
822 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
823 | datarootdir=$ac_optarg ;; | |
824 | ||
212380e3 AC |
825 | -disable-* | --disable-*) |
826 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
827 | # Reject names that are not valid shell variable names. | |
631ef239 | 828 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
829 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
830 | { (exit 1); exit 1; }; } | |
631ef239 AC |
831 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
832 | eval enable_$ac_feature=no ;; | |
833 | ||
834 | -docdir | --docdir | --docdi | --doc | --do) | |
835 | ac_prev=docdir ;; | |
836 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
837 | docdir=$ac_optarg ;; | |
838 | ||
839 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
840 | ac_prev=dvidir ;; | |
841 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
842 | dvidir=$ac_optarg ;; | |
212380e3 AC |
843 | |
844 | -enable-* | --enable-*) | |
845 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
846 | # Reject names that are not valid shell variable names. | |
631ef239 | 847 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
848 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
849 | { (exit 1); exit 1; }; } | |
631ef239 AC |
850 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
851 | eval enable_$ac_feature=\$ac_optarg ;; | |
212380e3 AC |
852 | |
853 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
854 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
855 | | --exec | --exe | --ex) | |
856 | ac_prev=exec_prefix ;; | |
857 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
858 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
859 | | --exec=* | --exe=* | --ex=*) | |
860 | exec_prefix=$ac_optarg ;; | |
861 | ||
862 | -gas | --gas | --ga | --g) | |
863 | # Obsolete; use --with-gas. | |
864 | with_gas=yes ;; | |
865 | ||
866 | -help | --help | --hel | --he | -h) | |
867 | ac_init_help=long ;; | |
868 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
869 | ac_init_help=recursive ;; | |
870 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
871 | ac_init_help=short ;; | |
872 | ||
873 | -host | --host | --hos | --ho) | |
874 | ac_prev=host_alias ;; | |
875 | -host=* | --host=* | --hos=* | --ho=*) | |
876 | host_alias=$ac_optarg ;; | |
877 | ||
631ef239 AC |
878 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
879 | ac_prev=htmldir ;; | |
880 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
881 | | --ht=*) | |
882 | htmldir=$ac_optarg ;; | |
883 | ||
212380e3 AC |
884 | -includedir | --includedir | --includedi | --included | --include \ |
885 | | --includ | --inclu | --incl | --inc) | |
886 | ac_prev=includedir ;; | |
887 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
888 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
889 | includedir=$ac_optarg ;; | |
890 | ||
891 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
892 | ac_prev=infodir ;; | |
893 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
894 | infodir=$ac_optarg ;; | |
895 | ||
896 | -libdir | --libdir | --libdi | --libd) | |
897 | ac_prev=libdir ;; | |
898 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
899 | libdir=$ac_optarg ;; | |
900 | ||
901 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
902 | | --libexe | --libex | --libe) | |
903 | ac_prev=libexecdir ;; | |
904 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
905 | | --libexe=* | --libex=* | --libe=*) | |
906 | libexecdir=$ac_optarg ;; | |
907 | ||
631ef239 AC |
908 | -localedir | --localedir | --localedi | --localed | --locale) |
909 | ac_prev=localedir ;; | |
910 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
911 | localedir=$ac_optarg ;; | |
912 | ||
212380e3 | 913 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 914 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
915 | ac_prev=localstatedir ;; |
916 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 917 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
918 | localstatedir=$ac_optarg ;; |
919 | ||
920 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
921 | ac_prev=mandir ;; | |
922 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
923 | mandir=$ac_optarg ;; | |
924 | ||
925 | -nfp | --nfp | --nf) | |
926 | # Obsolete; use --without-fp. | |
927 | with_fp=no ;; | |
928 | ||
929 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
930 | | --no-cr | --no-c | -n) | |
931 | no_create=yes ;; | |
932 | ||
933 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
934 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
935 | no_recursion=yes ;; | |
936 | ||
937 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
938 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
939 | | --oldin | --oldi | --old | --ol | --o) | |
940 | ac_prev=oldincludedir ;; | |
941 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
942 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
943 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
944 | oldincludedir=$ac_optarg ;; | |
945 | ||
946 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
947 | ac_prev=prefix ;; | |
948 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
949 | prefix=$ac_optarg ;; | |
950 | ||
951 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
952 | | --program-pre | --program-pr | --program-p) | |
953 | ac_prev=program_prefix ;; | |
954 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
955 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
956 | program_prefix=$ac_optarg ;; | |
957 | ||
958 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
959 | | --program-suf | --program-su | --program-s) | |
960 | ac_prev=program_suffix ;; | |
961 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
962 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
963 | program_suffix=$ac_optarg ;; | |
964 | ||
965 | -program-transform-name | --program-transform-name \ | |
966 | | --program-transform-nam | --program-transform-na \ | |
967 | | --program-transform-n | --program-transform- \ | |
968 | | --program-transform | --program-transfor \ | |
969 | | --program-transfo | --program-transf \ | |
970 | | --program-trans | --program-tran \ | |
971 | | --progr-tra | --program-tr | --program-t) | |
972 | ac_prev=program_transform_name ;; | |
973 | -program-transform-name=* | --program-transform-name=* \ | |
974 | | --program-transform-nam=* | --program-transform-na=* \ | |
975 | | --program-transform-n=* | --program-transform-=* \ | |
976 | | --program-transform=* | --program-transfor=* \ | |
977 | | --program-transfo=* | --program-transf=* \ | |
978 | | --program-trans=* | --program-tran=* \ | |
979 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
980 | program_transform_name=$ac_optarg ;; | |
981 | ||
631ef239 AC |
982 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
983 | ac_prev=pdfdir ;; | |
984 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
985 | pdfdir=$ac_optarg ;; | |
986 | ||
987 | -psdir | --psdir | --psdi | --psd | --ps) | |
988 | ac_prev=psdir ;; | |
989 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
990 | psdir=$ac_optarg ;; | |
991 | ||
212380e3 AC |
992 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
993 | | -silent | --silent | --silen | --sile | --sil) | |
994 | silent=yes ;; | |
995 | ||
996 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
997 | ac_prev=sbindir ;; | |
998 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
999 | | --sbi=* | --sb=*) | |
1000 | sbindir=$ac_optarg ;; | |
1001 | ||
1002 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1003 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1004 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1005 | | --sha | --sh) | |
1006 | ac_prev=sharedstatedir ;; | |
1007 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1008 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1009 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1010 | | --sha=* | --sh=*) | |
1011 | sharedstatedir=$ac_optarg ;; | |
1012 | ||
1013 | -site | --site | --sit) | |
1014 | ac_prev=site ;; | |
1015 | -site=* | --site=* | --sit=*) | |
1016 | site=$ac_optarg ;; | |
1017 | ||
1018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1019 | ac_prev=srcdir ;; | |
1020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1021 | srcdir=$ac_optarg ;; | |
1022 | ||
1023 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1024 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1025 | ac_prev=sysconfdir ;; | |
1026 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1027 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1028 | sysconfdir=$ac_optarg ;; | |
1029 | ||
1030 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1031 | ac_prev=target_alias ;; | |
1032 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1033 | target_alias=$ac_optarg ;; | |
1034 | ||
1035 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1036 | verbose=yes ;; | |
1037 | ||
1038 | -version | --version | --versio | --versi | --vers | -V) | |
1039 | ac_init_version=: ;; | |
1040 | ||
1041 | -with-* | --with-*) | |
1042 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1043 | # Reject names that are not valid shell variable names. | |
631ef239 | 1044 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1045 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1046 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1047 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1048 | eval with_$ac_package=\$ac_optarg ;; | |
212380e3 AC |
1049 | |
1050 | -without-* | --without-*) | |
1051 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1052 | # Reject names that are not valid shell variable names. | |
631ef239 | 1053 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
212380e3 AC |
1054 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1055 | { (exit 1); exit 1; }; } | |
631ef239 AC |
1056 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1057 | eval with_$ac_package=no ;; | |
212380e3 AC |
1058 | |
1059 | --x) | |
1060 | # Obsolete; use --with-x. | |
1061 | with_x=yes ;; | |
1062 | ||
1063 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1064 | | --x-incl | --x-inc | --x-in | --x-i) | |
1065 | ac_prev=x_includes ;; | |
1066 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1067 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1068 | x_includes=$ac_optarg ;; | |
1069 | ||
1070 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1071 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1072 | ac_prev=x_libraries ;; | |
1073 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1074 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1075 | x_libraries=$ac_optarg ;; | |
1076 | ||
1077 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1078 | Try \`$0 --help' for more information." >&2 | |
1079 | { (exit 1); exit 1; }; } | |
1080 | ;; | |
1081 | ||
1082 | *=*) | |
1083 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1084 | # Reject names that are not valid shell variable names. | |
1085 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1086 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1087 | { (exit 1); exit 1; }; } | |
631ef239 | 1088 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1089 | export $ac_envvar ;; |
1090 | ||
1091 | *) | |
1092 | # FIXME: should be removed in autoconf 3.0. | |
1093 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1094 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1095 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1096 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1097 | ;; | |
1098 | ||
1099 | esac | |
1100 | done | |
1101 | ||
1102 | if test -n "$ac_prev"; then | |
1103 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1104 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1105 | { (exit 1); exit 1; }; } | |
1106 | fi | |
1107 | ||
631ef239 AC |
1108 | # Be sure to have absolute directory names. |
1109 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1110 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1111 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1112 | libdir localedir mandir | |
212380e3 | 1113 | do |
631ef239 | 1114 | eval ac_val=\$$ac_var |
212380e3 | 1115 | case $ac_val in |
631ef239 AC |
1116 | [\\/$]* | ?:[\\/]* ) continue;; |
1117 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1118 | esac |
631ef239 AC |
1119 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1120 | { (exit 1); exit 1; }; } | |
212380e3 AC |
1121 | done |
1122 | ||
1123 | # There might be people who depend on the old broken behavior: `$host' | |
1124 | # used to hold the argument of --host etc. | |
1125 | # FIXME: To remove some day. | |
1126 | build=$build_alias | |
1127 | host=$host_alias | |
1128 | target=$target_alias | |
1129 | ||
1130 | # FIXME: To remove some day. | |
1131 | if test "x$host_alias" != x; then | |
1132 | if test "x$build_alias" = x; then | |
1133 | cross_compiling=maybe | |
1134 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1135 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1136 | elif test "x$build_alias" != "x$host_alias"; then | |
1137 | cross_compiling=yes | |
1138 | fi | |
1139 | fi | |
1140 | ||
1141 | ac_tool_prefix= | |
1142 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1143 | ||
1144 | test "$silent" = yes && exec 6>/dev/null | |
1145 | ||
1146 | ||
631ef239 AC |
1147 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1148 | ac_ls_di=`ls -di .` && | |
1149 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1150 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1151 | { (exit 1); exit 1; }; } | |
1152 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1153 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1154 | { (exit 1); exit 1; }; } | |
1155 | ||
1156 | ||
1157 | # Find the source files, if location was not specified. | |
1158 | if test -z "$srcdir"; then | |
212380e3 | 1159 | ac_srcdir_defaulted=yes |
631ef239 AC |
1160 | # Try the directory containing this script, then the parent directory. |
1161 | ac_confdir=`$as_dirname -- "$0" || | |
212380e3 AC |
1162 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1163 | X"$0" : 'X\(//\)[^/]' \| \ | |
1164 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 1165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 1166 | echo X"$0" | |
631ef239 AC |
1167 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1168 | s//\1/ | |
1169 | q | |
1170 | } | |
1171 | /^X\(\/\/\)[^/].*/{ | |
1172 | s//\1/ | |
1173 | q | |
1174 | } | |
1175 | /^X\(\/\/\)$/{ | |
1176 | s//\1/ | |
1177 | q | |
1178 | } | |
1179 | /^X\(\/\).*/{ | |
1180 | s//\1/ | |
1181 | q | |
1182 | } | |
1183 | s/.*/./; q'` | |
212380e3 | 1184 | srcdir=$ac_confdir |
631ef239 | 1185 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1186 | srcdir=.. |
1187 | fi | |
1188 | else | |
1189 | ac_srcdir_defaulted=no | |
1190 | fi | |
631ef239 AC |
1191 | if test ! -r "$srcdir/$ac_unique_file"; then |
1192 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1193 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
212380e3 | 1194 | { (exit 1); exit 1; }; } |
212380e3 | 1195 | fi |
631ef239 AC |
1196 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1197 | ac_abs_confdir=`( | |
1198 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
212380e3 | 1199 | { (exit 1); exit 1; }; } |
631ef239 AC |
1200 | pwd)` |
1201 | # When building in place, set srcdir=. | |
1202 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1203 | srcdir=. | |
1204 | fi | |
1205 | # Remove unnecessary trailing slashes from srcdir. | |
1206 | # Double slashes in file names in object file debugging info | |
1207 | # mess up M-x gdb in Emacs. | |
1208 | case $srcdir in | |
1209 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1210 | esac | |
1211 | for ac_var in $ac_precious_vars; do | |
1212 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1213 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1214 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1215 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1216 | done | |
212380e3 AC |
1217 | |
1218 | # | |
1219 | # Report the --help message. | |
1220 | # | |
1221 | if test "$ac_init_help" = "long"; then | |
1222 | # Omit some internal or obsolete options to make the list less imposing. | |
1223 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1224 | cat <<_ACEOF | |
aa150eb9 | 1225 | \`configure' configures charybdis 3.1.0 to adapt to many kinds of systems. |
212380e3 AC |
1226 | |
1227 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1228 | ||
1229 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1230 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1231 | ||
1232 | Defaults for the options are specified in brackets. | |
1233 | ||
1234 | Configuration: | |
1235 | -h, --help display this help and exit | |
1236 | --help=short display options specific to this package | |
1237 | --help=recursive display the short help of all the included packages | |
1238 | -V, --version display version information and exit | |
1239 | -q, --quiet, --silent do not print \`checking...' messages | |
1240 | --cache-file=FILE cache test results in FILE [disabled] | |
1241 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1242 | -n, --no-create do not create output files | |
1243 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1244 | ||
212380e3 AC |
1245 | Installation directories: |
1246 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1247 | [$ac_default_prefix] | |
1248 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1249 | [PREFIX] | |
1250 | ||
1251 | By default, \`make install' will install all the files in | |
1252 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1253 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1254 | for instance \`--prefix=\$HOME'. | |
1255 | ||
1256 | For better control, use the options below. | |
1257 | ||
1258 | Fine tuning of the installation directories: | |
1259 | --bindir=DIR user executables [EPREFIX/bin] | |
1260 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1261 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
212380e3 AC |
1262 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1263 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1264 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1265 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1266 | --includedir=DIR C header files [PREFIX/include] | |
1267 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
631ef239 AC |
1268 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1269 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1270 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1271 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1272 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1273 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1274 | --htmldir=DIR html documentation [DOCDIR] | |
1275 | --dvidir=DIR dvi documentation [DOCDIR] | |
1276 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1277 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1278 | _ACEOF |
1279 | ||
1280 | cat <<\_ACEOF | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | case $ac_init_help in | |
aa150eb9 | 1286 | short | recursive ) echo "Configuration of charybdis 3.1.0:";; |
212380e3 AC |
1287 | esac |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1293 | --enable-ipv6 Enable IPv6 support | |
631ef239 | 1294 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1295 | --disable-openssl Disable OpenSSL support. |
1296 | --disable-zlib Disable ziplinks support | |
c1c5fdc4 | 1297 | --enable-ports Force solaris I/O ports subsystem usage. |
212380e3 AC |
1298 | --enable-poll Force poll() usage. |
1299 | --enable-select Force select() usage. | |
1300 | --enable-kqueue Force kqueue() usage. | |
212380e3 AC |
1301 | --enable-epoll Force sys_epoll usage (Linux only). |
1302 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1303 | hard(aborts the daemon) | |
1304 | --enable-iodebug Enable IO Debugging hooks | |
1305 | --enable-profile Enable profiling | |
1306 | --disable-balloc Disable the block allocator. | |
212380e3 | 1307 | --enable-small-net Enable small network support. |
212380e3 AC |
1308 | --enable-warnings Enable all sorts of warnings for debugging. |
1309 | ||
1310 | Optional Packages: | |
1311 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1312 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1313 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1314 | --with-confdir=DIR Directory to install config files. | |
1315 | --with-logdir=DIR Directory where to write logfiles. | |
1316 | --with-helpdir=DIR Directory to install help files. | |
1317 | --with-moduledir=DIR Directory to install modules. | |
1318 | --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50) | |
1319 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1320 | 390) | |
212380e3 AC |
1321 | |
1322 | Some influential environment variables: | |
1323 | CC C compiler command | |
1324 | CFLAGS C compiler flags | |
1325 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1326 | nonstandard directory <lib dir> | |
631ef239 AC |
1327 | LIBS libraries to pass to the linker, e.g. -l<library> |
1328 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1329 | you have headers in a nonstandard directory <include dir> | |
212380e3 | 1330 | CPP C preprocessor |
631ef239 AC |
1331 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1332 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1333 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1334 | This script will default YFLAGS to the empty string to avoid a | |
1335 | default value of `-d' given by some make applications. | |
212380e3 AC |
1336 | |
1337 | Use these variables to override the choices made by `configure' or to help | |
1338 | it to find libraries and programs with nonstandard names/locations. | |
1339 | ||
1340 | _ACEOF | |
631ef239 | 1341 | ac_status=$? |
212380e3 AC |
1342 | fi |
1343 | ||
1344 | if test "$ac_init_help" = "recursive"; then | |
1345 | # If there are subdirs, report their specific --help. | |
212380e3 | 1346 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
631ef239 | 1347 | test -d "$ac_dir" || continue |
212380e3 AC |
1348 | ac_builddir=. |
1349 | ||
631ef239 AC |
1350 | case "$ac_dir" in |
1351 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1352 | *) | |
212380e3 | 1353 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
1354 | # A ".." for each directory in $ac_dir_suffix. |
1355 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1356 | case $ac_top_builddir_sub in | |
1357 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1358 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1359 | esac ;; | |
1360 | esac | |
1361 | ac_abs_top_builddir=$ac_pwd | |
1362 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1363 | # for backward compatibility: | |
1364 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1365 | |
1366 | case $srcdir in | |
631ef239 | 1367 | .) # We are building in place. |
212380e3 | 1368 | ac_srcdir=. |
631ef239 AC |
1369 | ac_top_srcdir=$ac_top_builddir_sub |
1370 | ac_abs_top_srcdir=$ac_pwd ;; | |
1371 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1372 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1373 | ac_top_srcdir=$srcdir |
1374 | ac_abs_top_srcdir=$srcdir ;; | |
1375 | *) # Relative name. | |
1376 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1377 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1378 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1379 | esac |
631ef239 AC |
1380 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1381 | ||
1382 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1383 | # Check for guested configure. | |
1384 | if test -f "$ac_srcdir/configure.gnu"; then | |
1385 | echo && | |
1386 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1387 | elif test -f "$ac_srcdir/configure"; then | |
1388 | echo && | |
1389 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 AC |
1390 | else |
1391 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
631ef239 AC |
1392 | fi || ac_status=$? |
1393 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1394 | done |
1395 | fi | |
1396 | ||
631ef239 | 1397 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1398 | if $ac_init_version; then |
1399 | cat <<\_ACEOF | |
aa150eb9 | 1400 | charybdis configure 3.1.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 | ||
b676ea3b | 1408 | $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $ |
212380e3 | 1409 | _ACEOF |
631ef239 | 1410 | exit |
212380e3 | 1411 | fi |
631ef239 | 1412 | cat >config.log <<_ACEOF |
212380e3 AC |
1413 | This file contains any messages produced by compilers while |
1414 | running configure, to aid debugging if configure makes a mistake. | |
1415 | ||
aa150eb9 | 1416 | It was created by charybdis $as_me 3.1.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 | ||
b676ea3b AC |
2711 | ac_aux_dir= |
2712 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2713 | if test -f "$ac_dir/install-sh"; then | |
2714 | ac_aux_dir=$ac_dir | |
2715 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2716 | break | |
2717 | elif test -f "$ac_dir/install.sh"; then | |
2718 | ac_aux_dir=$ac_dir | |
2719 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2720 | break | |
2721 | elif test -f "$ac_dir/shtool"; then | |
2722 | ac_aux_dir=$ac_dir | |
2723 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2724 | break | |
2725 | fi | |
2726 | done | |
2727 | if test -z "$ac_aux_dir"; then | |
2728 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2729 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2730 | { (exit 1); exit 1; }; } | |
2731 | fi | |
2732 | ||
2733 | # These three variables are undocumented and unsupported, | |
2734 | # and are intended to be withdrawn in a future Autoconf release. | |
2735 | # They can cause serious problems if a builder's source tree is in a directory | |
2736 | # whose full name contains unusual characters. | |
2737 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2738 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2739 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2740 | ||
2741 | ||
2742 | subdirs="$subdirs libratbox" | |
2743 | ||
2744 | ||
212380e3 AC |
2745 | |
2746 | if test "$ac_cv_c_compiler_gnu" != yes; then | |
2747 | ||
2748 | SGS=no | |
631ef239 AC |
2749 | { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5 |
2750 | echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; } | |
212380e3 AC |
2751 | case `$CC -version 2>&1` in |
2752 | *TenDRA*) | |
631ef239 AC |
2753 | { echo "$as_me:$LINENO: result: yes, TenDRA" >&5 |
2754 | echo "${ECHO_T}yes, TenDRA" >&6; } | |
212380e3 AC |
2755 | IRC_CFLAGS="" |
2756 | CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include" | |
2757 | SGS=yes | |
2758 | TenDRA=yes | |
2759 | ;; | |
2760 | *MIPSpro*) | |
631ef239 AC |
2761 | { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5 |
2762 | echo "${ECHO_T}yes, MIPSpro" >&6; } | |
212380e3 AC |
2763 | MIPSpro=yes |
2764 | SGS=yes | |
2765 | ;; | |
2766 | *) | |
631ef239 AC |
2767 | { echo "$as_me:$LINENO: result: no" >&5 |
2768 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2769 | TenDRA=no |
2770 | MIPSpro=no | |
2771 | ;; | |
2772 | esac | |
2773 | ||
631ef239 AC |
2774 | { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5 |
2775 | echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; } | |
212380e3 AC |
2776 | case `$CC -V 2>&1` in |
2777 | *Sun*WorkShop* | *Forte*Developer*) | |
631ef239 AC |
2778 | { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5 |
2779 | echo "${ECHO_T}Sun Workshop/Forte" >&6; } | |
212380e3 AC |
2780 | IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString" |
2781 | SunWorkShop=yes | |
2782 | SGS=yes | |
2783 | ;; | |
2784 | *Tru64*) | |
631ef239 AC |
2785 | { echo "$as_me:$LINENO: result: Tru64 cc" >&5 |
2786 | echo "${ECHO_T}Tru64 cc" >&6; } | |
212380e3 AC |
2787 | IRC_CFLAGS="-O2" |
2788 | CPPFLAGS="-I/usr/local/include" | |
2789 | Tru=yes | |
2790 | ;; | |
2791 | *HP*ANSI*) | |
631ef239 AC |
2792 | { echo "$as_me:$LINENO: result: HPUX cc" >&5 |
2793 | echo "${ECHO_T}HPUX cc" >&6; } | |
212380e3 AC |
2794 | HPUX=yes |
2795 | IRC_CFLAGS="+e" | |
2796 | ;; | |
2797 | *) | |
631ef239 AC |
2798 | { echo "$as_me:$LINENO: result: no" >&5 |
2799 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2800 | ;; |
2801 | esac | |
2802 | ||
2803 | fi | |
2804 | ||
bbe58888 VY |
2805 | { echo "$as_me:$LINENO: checking uname -s for Solaris, AIX or HPUX" >&5 |
2806 | echo $ECHO_N "checking uname -s for Solaris, AIX or HPUX... $ECHO_C" >&6; } | |
212380e3 AC |
2807 | OSNAME=`uname -s` |
2808 | case "$OSNAME" in | |
2809 | HP-UX*) | |
2810 | ||
2811 | if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then | |
631ef239 AC |
2812 | { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5 |
2813 | echo "${ECHO_T}assuming old HPUX with its own cc" >&6; } | |
212380e3 AC |
2814 | IRC_CFLAGS="$IRC_CFLAGS +e" |
2815 | HPUX=yes | |
2816 | else | |
631ef239 AC |
2817 | { echo "$as_me:$LINENO: result: already using newer HPUX" >&5 |
2818 | echo "${ECHO_T}already using newer HPUX" >&6; } | |
212380e3 AC |
2819 | fi |
2820 | ;; | |
212380e3 | 2821 | SunOS*) |
631ef239 AC |
2822 | { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5 |
2823 | echo "${ECHO_T}SunOS or Solaris" >&6; } | |
212380e3 AC |
2824 | |
2825 | cat >>confdefs.h <<\_ACEOF | |
2826 | #define __EXTENSIONS__ 1 | |
2827 | _ACEOF | |
2828 | ||
2829 | SUN=yes | |
2830 | ;; | |
2831 | AIX*) | |
631ef239 AC |
2832 | { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5 |
2833 | echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; } | |
212380e3 AC |
2834 | IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G" |
2835 | ;; | |
2836 | *) | |
631ef239 AC |
2837 | { echo "$as_me:$LINENO: result: no" >&5 |
2838 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2839 | ;; |
2840 | esac | |
2841 | ||
2842 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2843 | { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5 |
2844 | echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; } | |
212380e3 AC |
2845 | |
2846 | case `$CC -v 2>&1 | tail -n 1` in | |
2847 | *Apple*) | |
631ef239 AC |
2848 | { echo "$as_me:$LINENO: result: yes" >&5 |
2849 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
2850 | AppleGCC=yes |
2851 | ;; | |
2852 | *) | |
631ef239 AC |
2853 | { echo "$as_me:$LINENO: result: no" >&5 |
2854 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2855 | AppleGCC=no |
2856 | ;; | |
2857 | esac | |
2858 | ||
d2c5159a | 2859 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" |
212380e3 AC |
2860 | fi |
2861 | ||
2862 | if test "$ac_cv_prog_cc_g" = yes; then | |
2863 | if test "$Tru" = yes; then | |
2864 | IRC_CFLAGS="$IRC_CFLAGS -g3" | |
2865 | else | |
2866 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
2867 | fi | |
2868 | fi | |
2869 | ||
631ef239 AC |
2870 | { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5 |
2871 | echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; } | |
212380e3 | 2872 | if test "$SGS" = "yes"; then |
631ef239 AC |
2873 | { echo "$as_me:$LINENO: result: yes" >&5 |
2874 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 2875 | else |
631ef239 AC |
2876 | { echo "$as_me:$LINENO: result: no" >&5 |
2877 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2878 | fi |
2879 | ||
2880 | # Extract the first word of "mkdep", so it can be a program name with args. | |
2881 | set dummy mkdep; ac_word=$2 | |
631ef239 AC |
2882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2884 | if test "${ac_cv_path_MKDEP+set}" = set; then |
2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2886 | else | |
2887 | case $MKDEP in | |
2888 | [\\/]* | ?:[\\/]*) | |
2889 | ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path. | |
2890 | ;; | |
2891 | *) | |
2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2893 | for as_dir in $PATH | |
2894 | do | |
2895 | IFS=$as_save_IFS | |
2896 | test -z "$as_dir" && as_dir=. | |
2897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2899 | ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext" |
2900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2901 | break 2 | |
2902 | fi | |
2903 | done | |
2904 | done | |
631ef239 | 2905 | IFS=$as_save_IFS |
212380e3 AC |
2906 | |
2907 | ;; | |
2908 | esac | |
2909 | fi | |
2910 | MKDEP=$ac_cv_path_MKDEP | |
212380e3 | 2911 | if test -n "$MKDEP"; then |
631ef239 AC |
2912 | { echo "$as_me:$LINENO: result: $MKDEP" >&5 |
2913 | echo "${ECHO_T}$MKDEP" >&6; } | |
212380e3 | 2914 | else |
631ef239 AC |
2915 | { echo "$as_me:$LINENO: result: no" >&5 |
2916 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2917 | fi |
2918 | ||
631ef239 | 2919 | |
212380e3 AC |
2920 | # Extract the first word of "makedepend", so it can be a program name with args. |
2921 | set dummy makedepend; ac_word=$2 | |
631ef239 AC |
2922 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2923 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
2924 | if test "${ac_cv_path_MAKEDEPEND+set}" = set; then |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2926 | else | |
2927 | case $MAKEDEPEND in | |
2928 | [\\/]* | ?:[\\/]*) | |
2929 | ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path. | |
2930 | ;; | |
2931 | *) | |
2932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2933 | for as_dir in $PATH | |
2934 | do | |
2935 | IFS=$as_save_IFS | |
2936 | test -z "$as_dir" && as_dir=. | |
2937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 2938 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
2939 | ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext" |
2940 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2941 | break 2 | |
2942 | fi | |
2943 | done | |
2944 | done | |
631ef239 | 2945 | IFS=$as_save_IFS |
212380e3 AC |
2946 | |
2947 | ;; | |
2948 | esac | |
2949 | fi | |
2950 | MAKEDEPEND=$ac_cv_path_MAKEDEPEND | |
212380e3 | 2951 | if test -n "$MAKEDEPEND"; then |
631ef239 AC |
2952 | { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5 |
2953 | echo "${ECHO_T}$MAKEDEPEND" >&6; } | |
212380e3 | 2954 | else |
631ef239 AC |
2955 | { echo "$as_me:$LINENO: result: no" >&5 |
2956 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
2957 | fi |
2958 | ||
2959 | ||
631ef239 AC |
2960 | |
2961 | { echo "$as_me:$LINENO: checking how to generate dependency info" >&5 | |
2962 | echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; } | |
212380e3 AC |
2963 | |
2964 | STDOUT="> .depend" | |
2965 | ||
2966 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
631ef239 AC |
2967 | { echo "$as_me:$LINENO: result: gcc -MM" >&5 |
2968 | echo "${ECHO_T}gcc -MM" >&6; } | |
212380e3 AC |
2969 | MKDEP="$CC -MM" |
2970 | elif test ! -z "$MKDEP"; then | |
631ef239 AC |
2971 | { echo "$as_me:$LINENO: result: mkdep" >&5 |
2972 | echo "${ECHO_T}mkdep" >&6; } | |
212380e3 AC |
2973 | |
2974 | if test -z "$Tru"; then | |
2975 | STDOUT="" | |
2976 | else | |
2977 | STDOUT=" 2> /dev/null" | |
2978 | fi | |
2979 | elif test "$SunWorkShop" = yes; then | |
631ef239 AC |
2980 | { echo "$as_me:$LINENO: result: $CC -xM" >&5 |
2981 | echo "${ECHO_T}$CC -xM" >&6; } | |
212380e3 AC |
2982 | MKDEP="$CC -xM" |
2983 | STDOUT="> .depend 2> /dev/null" | |
2984 | elif test ! -z "$MAKEDEPEND"; then | |
631ef239 AC |
2985 | { echo "$as_me:$LINENO: result: makedepend" >&5 |
2986 | echo "${ECHO_T}makedepend" >&6; } | |
212380e3 AC |
2987 | MKDEP="$MAKEDEPEND -f-" |
2988 | else | |
631ef239 AC |
2989 | { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5 |
2990 | echo "${ECHO_T}nothing suitable.. forget it!" >&6; } | |
212380e3 AC |
2991 | MKDEP=":" |
2992 | fi | |
2993 | ||
2994 | ||
2995 | ||
2996 | ||
631ef239 AC |
2997 | { echo "$as_me:$LINENO: checking for /dev/null" >&5 |
2998 | echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; } | |
212380e3 AC |
2999 | if test -c /dev/null ; then |
3000 | ||
3001 | cat >>confdefs.h <<\_ACEOF | |
3002 | #define PATH_DEVNULL "/dev/null" | |
3003 | _ACEOF | |
3004 | ||
631ef239 AC |
3005 | { echo "$as_me:$LINENO: result: yes" >&5 |
3006 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3007 | else |
3008 | ||
3009 | cat >>confdefs.h <<\_ACEOF | |
3010 | #define PATH_DEVNULL "devnull.log" | |
3011 | _ACEOF | |
3012 | ||
631ef239 AC |
3013 | { echo "$as_me:$LINENO: result: no - using devnull.log" >&5 |
3014 | echo "${ECHO_T}no - using devnull.log" >&6; } | |
212380e3 AC |
3015 | fi |
3016 | ||
3017 | if test ! -z "$CFLAGS"; then | |
3018 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
3019 | fi | |
3020 | ||
3021 | ||
631ef239 AC |
3022 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3023 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
212380e3 AC |
3024 | if test "${ac_cv_search_strerror+set}" = set; then |
3025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3026 | else | |
3027 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
3028 | cat >conftest.$ac_ext <<_ACEOF |
3029 | /* confdefs.h. */ | |
3030 | _ACEOF | |
3031 | cat confdefs.h >>conftest.$ac_ext | |
3032 | cat >>conftest.$ac_ext <<_ACEOF | |
3033 | /* end confdefs.h. */ | |
3034 | ||
631ef239 AC |
3035 | /* Override any GCC internal prototype to avoid an error. |
3036 | Use char because int might match the return type of a GCC | |
3037 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
3038 | #ifdef __cplusplus |
3039 | extern "C" | |
3040 | #endif | |
212380e3 AC |
3041 | char strerror (); |
3042 | int | |
3043 | main () | |
3044 | { | |
631ef239 | 3045 | return strerror (); |
212380e3 AC |
3046 | ; |
3047 | return 0; | |
3048 | } | |
3049 | _ACEOF | |
631ef239 AC |
3050 | for ac_lib in '' cposix; do |
3051 | if test -z "$ac_lib"; then | |
3052 | ac_res="none required" | |
3053 | else | |
3054 | ac_res=-l$ac_lib | |
3055 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3056 | fi | |
3057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3058 | if { (ac_try="$ac_link" | |
3059 | case "(($ac_try" in | |
3060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3061 | *) ac_try_echo=$ac_try;; | |
3062 | esac | |
3063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3064 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
3065 | ac_status=$? |
3066 | grep -v '^ *+' conftest.er1 >conftest.err | |
3067 | rm -f conftest.er1 | |
3068 | cat conftest.err >&5 | |
3069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3070 | (exit $ac_status); } && { |
3071 | test -z "$ac_c_werror_flag" || | |
3072 | test ! -s conftest.err | |
3073 | } && test -s conftest$ac_exeext && | |
3074 | $as_test_x conftest$ac_exeext; then | |
3075 | ac_cv_search_strerror=$ac_res | |
212380e3 AC |
3076 | else |
3077 | echo "$as_me: failed program was:" >&5 | |
3078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3079 | ||
212380e3 | 3080 | |
631ef239 | 3081 | fi |
212380e3 | 3082 | |
631ef239 AC |
3083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3084 | conftest$ac_exeext | |
3085 | if test "${ac_cv_search_strerror+set}" = set; then | |
3086 | break | |
212380e3 | 3087 | fi |
631ef239 AC |
3088 | done |
3089 | if test "${ac_cv_search_strerror+set}" = set; then | |
3090 | : | |
3091 | else | |
3092 | ac_cv_search_strerror=no | |
212380e3 | 3093 | fi |
631ef239 | 3094 | rm conftest.$ac_ext |
212380e3 AC |
3095 | LIBS=$ac_func_search_save_LIBS |
3096 | fi | |
631ef239 AC |
3097 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3098 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3099 | ac_res=$ac_cv_search_strerror | |
3100 | if test "$ac_res" != no; then | |
3101 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
3102 | |
3103 | fi | |
3104 | ||
631ef239 AC |
3105 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3106 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
212380e3 AC |
3107 | if test "${ac_cv_c_inline+set}" = set; then |
3108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3109 | else | |
3110 | ac_cv_c_inline=no | |
3111 | for ac_kw in inline __inline__ __inline; do | |
3112 | cat >conftest.$ac_ext <<_ACEOF | |
3113 | /* confdefs.h. */ | |
3114 | _ACEOF | |
3115 | cat confdefs.h >>conftest.$ac_ext | |
3116 | cat >>conftest.$ac_ext <<_ACEOF | |
3117 | /* end confdefs.h. */ | |
3118 | #ifndef __cplusplus | |
3119 | typedef int foo_t; | |
3120 | static $ac_kw foo_t static_foo () {return 0; } | |
3121 | $ac_kw foo_t foo () {return 0; } | |
3122 | #endif | |
3123 | ||
3124 | _ACEOF | |
3125 | rm -f conftest.$ac_objext | |
631ef239 AC |
3126 | if { (ac_try="$ac_compile" |
3127 | case "(($ac_try" in | |
3128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3129 | *) ac_try_echo=$ac_try;; | |
3130 | esac | |
3131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3132 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
3133 | ac_status=$? |
3134 | grep -v '^ *+' conftest.er1 >conftest.err | |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3138 | (exit $ac_status); } && { |
3139 | test -z "$ac_c_werror_flag" || | |
3140 | test ! -s conftest.err | |
3141 | } && test -s conftest.$ac_objext; then | |
3142 | ac_cv_c_inline=$ac_kw | |
212380e3 AC |
3143 | else |
3144 | echo "$as_me: failed program was:" >&5 | |
3145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3146 | ||
631ef239 | 3147 | |
212380e3 | 3148 | fi |
631ef239 AC |
3149 | |
3150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3151 | test "$ac_cv_c_inline" != no && break | |
212380e3 AC |
3152 | done |
3153 | ||
3154 | fi | |
631ef239 AC |
3155 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3156 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
212380e3 AC |
3157 | |
3158 | ||
3159 | case $ac_cv_c_inline in | |
3160 | inline | yes) ;; | |
3161 | *) | |
3162 | case $ac_cv_c_inline in | |
3163 | no) ac_val=;; | |
3164 | *) ac_val=$ac_cv_c_inline;; | |
3165 | esac | |
3166 | cat >>confdefs.h <<_ACEOF | |
3167 | #ifndef __cplusplus | |
3168 | #define inline $ac_val | |
3169 | #endif | |
3170 | _ACEOF | |
3171 | ;; | |
3172 | esac | |
3173 | ||
3174 | ac_ext=c | |
3175 | ac_cpp='$CPP $CPPFLAGS' | |
3176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 AC |
3179 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3180 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
212380e3 AC |
3181 | # On Suns, sometimes $CPP names a directory. |
3182 | if test -n "$CPP" && test -d "$CPP"; then | |
3183 | CPP= | |
3184 | fi | |
3185 | if test -z "$CPP"; then | |
3186 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3188 | else | |
3189 | # Double quotes because CPP needs to be expanded | |
3190 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3191 | do | |
3192 | ac_preproc_ok=false | |
3193 | for ac_c_preproc_warn_flag in '' yes | |
3194 | do | |
3195 | # Use a header file that comes with gcc, so configuring glibc | |
3196 | # with a fresh cross-compiler works. | |
3197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3198 | # <limits.h> exists even on freestanding compilers. | |
3199 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3200 | # not just through cpp. "Syntax error" is here to catch this case. | |
3201 | cat >conftest.$ac_ext <<_ACEOF | |
3202 | /* confdefs.h. */ | |
3203 | _ACEOF | |
3204 | cat confdefs.h >>conftest.$ac_ext | |
3205 | cat >>conftest.$ac_ext <<_ACEOF | |
3206 | /* end confdefs.h. */ | |
3207 | #ifdef __STDC__ | |
3208 | # include <limits.h> | |
3209 | #else | |
3210 | # include <assert.h> | |
3211 | #endif | |
3212 | Syntax error | |
3213 | _ACEOF | |
631ef239 AC |
3214 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3215 | case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3220 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3221 | ac_status=$? |
3222 | grep -v '^ *+' conftest.er1 >conftest.err | |
3223 | rm -f conftest.er1 | |
3224 | cat conftest.err >&5 | |
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3226 | (exit $ac_status); } >/dev/null && { |
3227 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3228 | test ! -s conftest.err | |
3229 | }; then | |
212380e3 AC |
3230 | : |
3231 | else | |
3232 | echo "$as_me: failed program was:" >&5 | |
3233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3234 | ||
3235 | # Broken: fails on valid input. | |
3236 | continue | |
3237 | fi | |
631ef239 | 3238 | |
212380e3 AC |
3239 | rm -f conftest.err conftest.$ac_ext |
3240 | ||
631ef239 | 3241 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3242 | # can be detected and how. |
3243 | cat >conftest.$ac_ext <<_ACEOF | |
3244 | /* confdefs.h. */ | |
3245 | _ACEOF | |
3246 | cat confdefs.h >>conftest.$ac_ext | |
3247 | cat >>conftest.$ac_ext <<_ACEOF | |
3248 | /* end confdefs.h. */ | |
3249 | #include <ac_nonexistent.h> | |
3250 | _ACEOF | |
631ef239 AC |
3251 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3252 | case "(($ac_try" in | |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3254 | *) ac_try_echo=$ac_try;; | |
3255 | esac | |
3256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3258 | ac_status=$? |
3259 | grep -v '^ *+' conftest.er1 >conftest.err | |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3263 | (exit $ac_status); } >/dev/null && { |
3264 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3265 | test ! -s conftest.err | |
3266 | }; then | |
212380e3 AC |
3267 | # Broken: success on invalid input. |
3268 | continue | |
3269 | else | |
3270 | echo "$as_me: failed program was:" >&5 | |
3271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3272 | ||
3273 | # Passes both tests. | |
3274 | ac_preproc_ok=: | |
3275 | break | |
3276 | fi | |
631ef239 | 3277 | |
212380e3 AC |
3278 | rm -f conftest.err conftest.$ac_ext |
3279 | ||
3280 | done | |
3281 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3282 | rm -f conftest.err conftest.$ac_ext | |
3283 | if $ac_preproc_ok; then | |
3284 | break | |
3285 | fi | |
3286 | ||
3287 | done | |
3288 | ac_cv_prog_CPP=$CPP | |
3289 | ||
3290 | fi | |
3291 | CPP=$ac_cv_prog_CPP | |
3292 | else | |
3293 | ac_cv_prog_CPP=$CPP | |
3294 | fi | |
631ef239 AC |
3295 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3296 | echo "${ECHO_T}$CPP" >&6; } | |
212380e3 AC |
3297 | ac_preproc_ok=false |
3298 | for ac_c_preproc_warn_flag in '' yes | |
3299 | do | |
3300 | # Use a header file that comes with gcc, so configuring glibc | |
3301 | # with a fresh cross-compiler works. | |
3302 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3303 | # <limits.h> exists even on freestanding compilers. | |
3304 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3305 | # not just through cpp. "Syntax error" is here to catch this case. | |
3306 | cat >conftest.$ac_ext <<_ACEOF | |
3307 | /* confdefs.h. */ | |
3308 | _ACEOF | |
3309 | cat confdefs.h >>conftest.$ac_ext | |
3310 | cat >>conftest.$ac_ext <<_ACEOF | |
3311 | /* end confdefs.h. */ | |
3312 | #ifdef __STDC__ | |
3313 | # include <limits.h> | |
3314 | #else | |
3315 | # include <assert.h> | |
3316 | #endif | |
3317 | Syntax error | |
3318 | _ACEOF | |
631ef239 AC |
3319 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3320 | case "(($ac_try" in | |
3321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3322 | *) ac_try_echo=$ac_try;; | |
3323 | esac | |
3324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3325 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3326 | ac_status=$? |
3327 | grep -v '^ *+' conftest.er1 >conftest.err | |
3328 | rm -f conftest.er1 | |
3329 | cat conftest.err >&5 | |
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3331 | (exit $ac_status); } >/dev/null && { |
3332 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3333 | test ! -s conftest.err | |
3334 | }; then | |
212380e3 AC |
3335 | : |
3336 | else | |
3337 | echo "$as_me: failed program was:" >&5 | |
3338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3339 | ||
3340 | # Broken: fails on valid input. | |
3341 | continue | |
3342 | fi | |
631ef239 | 3343 | |
212380e3 AC |
3344 | rm -f conftest.err conftest.$ac_ext |
3345 | ||
631ef239 | 3346 | # OK, works on sane cases. Now check whether nonexistent headers |
212380e3 AC |
3347 | # can be detected and how. |
3348 | cat >conftest.$ac_ext <<_ACEOF | |
3349 | /* confdefs.h. */ | |
3350 | _ACEOF | |
3351 | cat confdefs.h >>conftest.$ac_ext | |
3352 | cat >>conftest.$ac_ext <<_ACEOF | |
3353 | /* end confdefs.h. */ | |
3354 | #include <ac_nonexistent.h> | |
3355 | _ACEOF | |
631ef239 AC |
3356 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3357 | case "(($ac_try" in | |
3358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3359 | *) ac_try_echo=$ac_try;; | |
3360 | esac | |
3361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3362 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
3363 | ac_status=$? |
3364 | grep -v '^ *+' conftest.er1 >conftest.err | |
3365 | rm -f conftest.er1 | |
3366 | cat conftest.err >&5 | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
3368 | (exit $ac_status); } >/dev/null && { |
3369 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3370 | test ! -s conftest.err | |
3371 | }; then | |
212380e3 AC |
3372 | # Broken: success on invalid input. |
3373 | continue | |
3374 | else | |
3375 | echo "$as_me: failed program was:" >&5 | |
3376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3377 | ||
3378 | # Passes both tests. | |
3379 | ac_preproc_ok=: | |
3380 | break | |
3381 | fi | |
631ef239 | 3382 | |
212380e3 AC |
3383 | rm -f conftest.err conftest.$ac_ext |
3384 | ||
3385 | done | |
3386 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3387 | rm -f conftest.err conftest.$ac_ext | |
3388 | if $ac_preproc_ok; then | |
3389 | : | |
3390 | else | |
3391 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3392 | See \`config.log' for more details." >&5 | |
3393 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3394 | See \`config.log' for more details." >&2;} | |
3395 | { (exit 1); exit 1; }; } | |
3396 | fi | |
3397 | ||
3398 | ac_ext=c | |
3399 | ac_cpp='$CPP $CPPFLAGS' | |
3400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3403 | ||
3404 | ||
631ef239 AC |
3405 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3406 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3407 | if test "${ac_cv_path_GREP+set}" = set; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3409 | else | |
3410 | # Extract the first word of "grep ggrep" to use in msg output | |
3411 | if test -z "$GREP"; then | |
3412 | set dummy grep ggrep; ac_prog_name=$2 | |
3413 | if test "${ac_cv_path_GREP+set}" = set; then | |
3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3415 | else | |
3416 | ac_path_GREP_found=false | |
3417 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3419 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3420 | do | |
3421 | IFS=$as_save_IFS | |
3422 | test -z "$as_dir" && as_dir=. | |
3423 | for ac_prog in grep ggrep; do | |
3424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3425 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3426 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3427 | # Check for GNU ac_path_GREP and select it if it is found. | |
3428 | # Check for GNU $ac_path_GREP | |
3429 | case `"$ac_path_GREP" --version 2>&1` in | |
3430 | *GNU*) | |
3431 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3432 | *) | |
3433 | ac_count=0 | |
3434 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3435 | while : | |
3436 | do | |
3437 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3438 | mv "conftest.tmp" "conftest.in" | |
3439 | cp "conftest.in" "conftest.nl" | |
3440 | echo 'GREP' >> "conftest.nl" | |
3441 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3442 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3443 | ac_count=`expr $ac_count + 1` | |
3444 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3445 | # Best one so far, save it but keep looking for a better one | |
3446 | ac_cv_path_GREP="$ac_path_GREP" | |
3447 | ac_path_GREP_max=$ac_count | |
3448 | fi | |
3449 | # 10*(2^10) chars as input seems more than enough | |
3450 | test $ac_count -gt 10 && break | |
3451 | done | |
3452 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3453 | esac | |
3454 | ||
3455 | ||
3456 | $ac_path_GREP_found && break 3 | |
3457 | done | |
3458 | done | |
3459 | ||
3460 | done | |
3461 | IFS=$as_save_IFS | |
3462 | ||
3463 | ||
3464 | fi | |
3465 | ||
3466 | GREP="$ac_cv_path_GREP" | |
3467 | if test -z "$GREP"; then | |
3468 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3469 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3470 | { (exit 1); exit 1; }; } | |
3471 | fi | |
3472 | ||
3473 | else | |
3474 | ac_cv_path_GREP=$GREP | |
3475 | fi | |
3476 | ||
3477 | ||
3478 | fi | |
3479 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3480 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3481 | GREP="$ac_cv_path_GREP" | |
3482 | ||
3483 | ||
3484 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3485 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3486 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3488 | else | |
3489 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3490 | then ac_cv_path_EGREP="$GREP -E" | |
3491 | else | |
3492 | # Extract the first word of "egrep" to use in msg output | |
3493 | if test -z "$EGREP"; then | |
3494 | set dummy egrep; ac_prog_name=$2 | |
3495 | if test "${ac_cv_path_EGREP+set}" = set; then | |
212380e3 AC |
3496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3497 | else | |
631ef239 AC |
3498 | ac_path_EGREP_found=false |
3499 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3501 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3502 | do | |
3503 | IFS=$as_save_IFS | |
3504 | test -z "$as_dir" && as_dir=. | |
3505 | for ac_prog in egrep; do | |
3506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3507 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3508 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3509 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3510 | # Check for GNU $ac_path_EGREP | |
3511 | case `"$ac_path_EGREP" --version 2>&1` in | |
3512 | *GNU*) | |
3513 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3514 | *) | |
3515 | ac_count=0 | |
3516 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3517 | while : | |
3518 | do | |
3519 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3520 | mv "conftest.tmp" "conftest.in" | |
3521 | cp "conftest.in" "conftest.nl" | |
3522 | echo 'EGREP' >> "conftest.nl" | |
3523 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3524 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3525 | ac_count=`expr $ac_count + 1` | |
3526 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3527 | # Best one so far, save it but keep looking for a better one | |
3528 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3529 | ac_path_EGREP_max=$ac_count | |
212380e3 | 3530 | fi |
631ef239 AC |
3531 | # 10*(2^10) chars as input seems more than enough |
3532 | test $ac_count -gt 10 && break | |
3533 | done | |
3534 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3535 | esac | |
3536 | ||
3537 | ||
3538 | $ac_path_EGREP_found && break 3 | |
3539 | done | |
3540 | done | |
3541 | ||
3542 | done | |
3543 | IFS=$as_save_IFS | |
3544 | ||
3545 | ||
3546 | fi | |
3547 | ||
3548 | EGREP="$ac_cv_path_EGREP" | |
3549 | if test -z "$EGREP"; then | |
3550 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3551 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3552 | { (exit 1); exit 1; }; } | |
3553 | fi | |
3554 | ||
3555 | else | |
3556 | ac_cv_path_EGREP=$EGREP | |
212380e3 | 3557 | fi |
631ef239 AC |
3558 | |
3559 | ||
3560 | fi | |
3561 | fi | |
3562 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
3563 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3564 | EGREP="$ac_cv_path_EGREP" | |
212380e3 AC |
3565 | |
3566 | ||
3567 | if test $ac_cv_c_compiler_gnu = yes; then | |
631ef239 AC |
3568 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
3569 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
212380e3 AC |
3570 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
3571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3572 | else | |
3573 | ac_pattern="Autoconf.*'x'" | |
3574 | cat >conftest.$ac_ext <<_ACEOF | |
3575 | /* confdefs.h. */ | |
3576 | _ACEOF | |
3577 | cat confdefs.h >>conftest.$ac_ext | |
3578 | cat >>conftest.$ac_ext <<_ACEOF | |
3579 | /* end confdefs.h. */ | |
3580 | #include <sgtty.h> | |
3581 | Autoconf TIOCGETP | |
3582 | _ACEOF | |
3583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3584 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3585 | ac_cv_prog_gcc_traditional=yes | |
3586 | else | |
3587 | ac_cv_prog_gcc_traditional=no | |
3588 | fi | |
3589 | rm -f conftest* | |
3590 | ||
3591 | ||
3592 | if test $ac_cv_prog_gcc_traditional = no; then | |
3593 | cat >conftest.$ac_ext <<_ACEOF | |
3594 | /* confdefs.h. */ | |
3595 | _ACEOF | |
3596 | cat confdefs.h >>conftest.$ac_ext | |
3597 | cat >>conftest.$ac_ext <<_ACEOF | |
3598 | /* end confdefs.h. */ | |
3599 | #include <termio.h> | |
3600 | Autoconf TCGETA | |
3601 | _ACEOF | |
3602 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3603 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3604 | ac_cv_prog_gcc_traditional=yes | |
3605 | fi | |
3606 | rm -f conftest* | |
3607 | ||
3608 | fi | |
3609 | fi | |
631ef239 AC |
3610 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
3611 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
212380e3 AC |
3612 | if test $ac_cv_prog_gcc_traditional = yes; then |
3613 | CC="$CC -traditional" | |
3614 | fi | |
3615 | fi | |
3616 | ||
631ef239 AC |
3617 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3618 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
3619 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3620 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3622 | else | |
3623 | cat >conftest.make <<\_ACEOF | |
631ef239 | 3624 | SHELL = /bin/sh |
212380e3 | 3625 | all: |
631ef239 | 3626 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
212380e3 AC |
3627 | _ACEOF |
3628 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
631ef239 AC |
3629 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3630 | *@@@%%%=?*=@@@%%%*) | |
3631 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3632 | *) | |
3633 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3634 | esac | |
212380e3 AC |
3635 | rm -f conftest.make |
3636 | fi | |
631ef239 AC |
3637 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3638 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3639 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
3640 | SET_MAKE= |
3641 | else | |
631ef239 AC |
3642 | { echo "$as_me:$LINENO: result: no" >&5 |
3643 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3644 | SET_MAKE="MAKE=${MAKE-make}" |
3645 | fi | |
3646 | ||
212380e3 AC |
3647 | # Find a good install program. We prefer a C program (faster), |
3648 | # so one script is as good as another. But avoid the broken or | |
3649 | # incompatible versions: | |
3650 | # SysV /etc/install, /usr/sbin/install | |
3651 | # SunOS /usr/etc/install | |
3652 | # IRIX /sbin/install | |
3653 | # AIX /bin/install | |
3654 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3655 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3656 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3657 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3658 | # OS/2's system install, which has a completely different semantic | |
3659 | # ./install, which can be erroneously created by make from ./install.sh. | |
631ef239 AC |
3660 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3661 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
212380e3 AC |
3662 | if test -z "$INSTALL"; then |
3663 | if test "${ac_cv_path_install+set}" = set; then | |
3664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3665 | else | |
3666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3667 | for as_dir in $PATH | |
3668 | do | |
3669 | IFS=$as_save_IFS | |
3670 | test -z "$as_dir" && as_dir=. | |
3671 | # Account for people who put trailing slashes in PATH elements. | |
3672 | case $as_dir/ in | |
3673 | ./ | .// | /cC/* | \ | |
3674 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3675 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3676 | /usr/ucb/* ) ;; | |
3677 | *) | |
3678 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3679 | # Don't use installbsd from OSF since it installs stuff as root | |
3680 | # by default. | |
3681 | for ac_prog in ginstall scoinst install; do | |
3682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3683 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
212380e3 AC |
3684 | if test $ac_prog = install && |
3685 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3686 | # AIX install. It has an incompatible calling convention. | |
3687 | : | |
3688 | elif test $ac_prog = install && | |
3689 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3690 | # program-specific install script used by HP pwplus--don't use. | |
3691 | : | |
3692 | else | |
3693 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3694 | break 3 | |
3695 | fi | |
3696 | fi | |
3697 | done | |
3698 | done | |
3699 | ;; | |
3700 | esac | |
3701 | done | |
631ef239 | 3702 | IFS=$as_save_IFS |
212380e3 AC |
3703 | |
3704 | ||
3705 | fi | |
3706 | if test "${ac_cv_path_install+set}" = set; then | |
3707 | INSTALL=$ac_cv_path_install | |
3708 | else | |
631ef239 AC |
3709 | # As a last resort, use the slow shell script. Don't cache a |
3710 | # value for INSTALL within a source directory, because that will | |
212380e3 | 3711 | # break other packages using the cache if that directory is |
631ef239 | 3712 | # removed, or if the value is a relative name. |
212380e3 AC |
3713 | INSTALL=$ac_install_sh |
3714 | fi | |
3715 | fi | |
631ef239 AC |
3716 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3717 | echo "${ECHO_T}$INSTALL" >&6; } | |
212380e3 AC |
3718 | |
3719 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3720 | # It thinks the first close brace ends the variable substitution. | |
3721 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3722 | ||
3723 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3724 | ||
3725 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3726 | ||
3727 | # Extract the first word of "rm", so it can be a program name with args. | |
3728 | set dummy rm; ac_word=$2 | |
631ef239 AC |
3729 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3731 | if test "${ac_cv_path_RM+set}" = set; then |
3732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3733 | else | |
3734 | case $RM in | |
3735 | [\\/]* | ?:[\\/]*) | |
3736 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3737 | ;; | |
3738 | *) | |
3739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3740 | for as_dir in $PATH | |
3741 | do | |
3742 | IFS=$as_save_IFS | |
3743 | test -z "$as_dir" && as_dir=. | |
3744 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3746 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
3747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3748 | break 2 | |
3749 | fi | |
3750 | done | |
3751 | done | |
631ef239 | 3752 | IFS=$as_save_IFS |
212380e3 AC |
3753 | |
3754 | ;; | |
3755 | esac | |
3756 | fi | |
3757 | RM=$ac_cv_path_RM | |
212380e3 | 3758 | if test -n "$RM"; then |
631ef239 AC |
3759 | { echo "$as_me:$LINENO: result: $RM" >&5 |
3760 | echo "${ECHO_T}$RM" >&6; } | |
212380e3 | 3761 | else |
631ef239 AC |
3762 | { echo "$as_me:$LINENO: result: no" >&5 |
3763 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3764 | fi |
3765 | ||
631ef239 | 3766 | |
212380e3 AC |
3767 | # Extract the first word of "cp", so it can be a program name with args. |
3768 | set dummy cp; ac_word=$2 | |
631ef239 AC |
3769 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3771 | if test "${ac_cv_path_CP+set}" = set; then |
3772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3773 | else | |
3774 | case $CP in | |
3775 | [\\/]* | ?:[\\/]*) | |
3776 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
3777 | ;; | |
3778 | *) | |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
3783 | test -z "$as_dir" && as_dir=. | |
3784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3786 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
3787 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3788 | break 2 | |
3789 | fi | |
3790 | done | |
3791 | done | |
631ef239 | 3792 | IFS=$as_save_IFS |
212380e3 AC |
3793 | |
3794 | ;; | |
3795 | esac | |
3796 | fi | |
3797 | CP=$ac_cv_path_CP | |
212380e3 | 3798 | if test -n "$CP"; then |
631ef239 AC |
3799 | { echo "$as_me:$LINENO: result: $CP" >&5 |
3800 | echo "${ECHO_T}$CP" >&6; } | |
212380e3 | 3801 | else |
631ef239 AC |
3802 | { echo "$as_me:$LINENO: result: no" >&5 |
3803 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3804 | fi |
3805 | ||
631ef239 | 3806 | |
212380e3 AC |
3807 | # Extract the first word of "mv", so it can be a program name with args. |
3808 | set dummy mv; ac_word=$2 | |
631ef239 AC |
3809 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3811 | if test "${ac_cv_path_MV+set}" = set; then |
3812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3813 | else | |
3814 | case $MV in | |
3815 | [\\/]* | ?:[\\/]*) | |
3816 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3817 | ;; | |
3818 | *) | |
3819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3820 | for as_dir in $PATH | |
3821 | do | |
3822 | IFS=$as_save_IFS | |
3823 | test -z "$as_dir" && as_dir=. | |
3824 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3826 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
3827 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3828 | break 2 | |
3829 | fi | |
3830 | done | |
3831 | done | |
631ef239 | 3832 | IFS=$as_save_IFS |
212380e3 AC |
3833 | |
3834 | ;; | |
3835 | esac | |
3836 | fi | |
3837 | MV=$ac_cv_path_MV | |
212380e3 | 3838 | if test -n "$MV"; then |
631ef239 AC |
3839 | { echo "$as_me:$LINENO: result: $MV" >&5 |
3840 | echo "${ECHO_T}$MV" >&6; } | |
212380e3 | 3841 | else |
631ef239 AC |
3842 | { echo "$as_me:$LINENO: result: no" >&5 |
3843 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3844 | fi |
3845 | ||
631ef239 | 3846 | |
212380e3 AC |
3847 | # Extract the first word of "ln", so it can be a program name with args. |
3848 | set dummy ln; ac_word=$2 | |
631ef239 AC |
3849 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3850 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3851 | if test "${ac_cv_path_LN+set}" = set; then |
3852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3853 | else | |
3854 | case $LN in | |
3855 | [\\/]* | ?:[\\/]*) | |
3856 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3857 | ;; | |
3858 | *) | |
3859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3860 | for as_dir in $PATH | |
3861 | do | |
3862 | IFS=$as_save_IFS | |
3863 | test -z "$as_dir" && as_dir=. | |
3864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3866 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3868 | break 2 | |
3869 | fi | |
3870 | done | |
3871 | done | |
631ef239 | 3872 | IFS=$as_save_IFS |
212380e3 AC |
3873 | |
3874 | ;; | |
3875 | esac | |
3876 | fi | |
3877 | LN=$ac_cv_path_LN | |
212380e3 | 3878 | if test -n "$LN"; then |
631ef239 AC |
3879 | { echo "$as_me:$LINENO: result: $LN" >&5 |
3880 | echo "${ECHO_T}$LN" >&6; } | |
212380e3 | 3881 | else |
631ef239 AC |
3882 | { echo "$as_me:$LINENO: result: no" >&5 |
3883 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3884 | fi |
3885 | ||
631ef239 | 3886 | |
212380e3 AC |
3887 | # Extract the first word of "sed", so it can be a program name with args. |
3888 | set dummy sed; ac_word=$2 | |
631ef239 AC |
3889 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3891 | if test "${ac_cv_path_SED+set}" = set; then |
3892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3893 | else | |
3894 | case $SED in | |
3895 | [\\/]* | ?:[\\/]*) | |
3896 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
3897 | ;; | |
3898 | *) | |
3899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3900 | for as_dir in $PATH | |
3901 | do | |
3902 | IFS=$as_save_IFS | |
3903 | test -z "$as_dir" && as_dir=. | |
3904 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3906 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
3907 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3908 | break 2 | |
3909 | fi | |
3910 | done | |
3911 | done | |
631ef239 | 3912 | IFS=$as_save_IFS |
212380e3 AC |
3913 | |
3914 | ;; | |
3915 | esac | |
3916 | fi | |
3917 | SED=$ac_cv_path_SED | |
212380e3 | 3918 | if test -n "$SED"; then |
631ef239 AC |
3919 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3920 | echo "${ECHO_T}$SED" >&6; } | |
212380e3 | 3921 | else |
631ef239 AC |
3922 | { echo "$as_me:$LINENO: result: no" >&5 |
3923 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3924 | fi |
3925 | ||
631ef239 | 3926 | |
212380e3 AC |
3927 | # Extract the first word of "ar", so it can be a program name with args. |
3928 | set dummy ar; ac_word=$2 | |
631ef239 AC |
3929 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3930 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3931 | if test "${ac_cv_path_AR+set}" = set; then |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3933 | else | |
3934 | case $AR in | |
3935 | [\\/]* | ?:[\\/]*) | |
3936 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3937 | ;; | |
3938 | *) | |
3939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3940 | for as_dir in $PATH | |
3941 | do | |
3942 | IFS=$as_save_IFS | |
3943 | test -z "$as_dir" && as_dir=. | |
3944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3946 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3948 | break 2 | |
3949 | fi | |
3950 | done | |
3951 | done | |
631ef239 | 3952 | IFS=$as_save_IFS |
212380e3 AC |
3953 | |
3954 | ;; | |
3955 | esac | |
3956 | fi | |
3957 | AR=$ac_cv_path_AR | |
212380e3 | 3958 | if test -n "$AR"; then |
631ef239 AC |
3959 | { echo "$as_me:$LINENO: result: $AR" >&5 |
3960 | echo "${ECHO_T}$AR" >&6; } | |
212380e3 | 3961 | else |
631ef239 AC |
3962 | { echo "$as_me:$LINENO: result: no" >&5 |
3963 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
3964 | fi |
3965 | ||
631ef239 | 3966 | |
212380e3 AC |
3967 | # Extract the first word of "ld", so it can be a program name with args. |
3968 | set dummy ld; ac_word=$2 | |
631ef239 AC |
3969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
3971 | if test "${ac_cv_path_LD+set}" = set; then |
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3973 | else | |
3974 | case $LD in | |
3975 | [\\/]* | ?:[\\/]*) | |
3976 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3977 | ;; | |
3978 | *) | |
3979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3980 | for as_dir in $PATH | |
3981 | do | |
3982 | IFS=$as_save_IFS | |
3983 | test -z "$as_dir" && as_dir=. | |
3984 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 3985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
3986 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3987 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3988 | break 2 | |
3989 | fi | |
3990 | done | |
3991 | done | |
631ef239 | 3992 | IFS=$as_save_IFS |
212380e3 AC |
3993 | |
3994 | ;; | |
3995 | esac | |
3996 | fi | |
3997 | LD=$ac_cv_path_LD | |
212380e3 | 3998 | if test -n "$LD"; then |
631ef239 AC |
3999 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4000 | echo "${ECHO_T}$LD" >&6; } | |
212380e3 | 4001 | else |
631ef239 AC |
4002 | { echo "$as_me:$LINENO: result: no" >&5 |
4003 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4004 | fi |
4005 | ||
631ef239 | 4006 | |
212380e3 AC |
4007 | # Extract the first word of "ranlib", so it can be a program name with args. |
4008 | set dummy ranlib; ac_word=$2 | |
631ef239 AC |
4009 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4010 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4011 | if test "${ac_cv_path_RANLIB+set}" = set; then |
4012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4013 | else | |
4014 | case $RANLIB in | |
4015 | [\\/]* | ?:[\\/]*) | |
4016 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
4017 | ;; | |
4018 | *) | |
4019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4020 | for as_dir in $PATH | |
4021 | do | |
4022 | IFS=$as_save_IFS | |
4023 | test -z "$as_dir" && as_dir=. | |
4024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4026 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
4027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4028 | break 2 | |
4029 | fi | |
4030 | done | |
4031 | done | |
631ef239 | 4032 | IFS=$as_save_IFS |
212380e3 AC |
4033 | |
4034 | ;; | |
4035 | esac | |
4036 | fi | |
4037 | RANLIB=$ac_cv_path_RANLIB | |
212380e3 | 4038 | if test -n "$RANLIB"; then |
631ef239 AC |
4039 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4040 | echo "${ECHO_T}$RANLIB" >&6; } | |
212380e3 | 4041 | else |
631ef239 AC |
4042 | { echo "$as_me:$LINENO: result: no" >&5 |
4043 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4044 | fi |
4045 | ||
631ef239 | 4046 | |
212380e3 AC |
4047 | # Extract the first word of "touch", so it can be a program name with args. |
4048 | set dummy touch; ac_word=$2 | |
631ef239 AC |
4049 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4051 | if test "${ac_cv_path_TOUCH+set}" = set; then |
4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4053 | else | |
4054 | case $TOUCH in | |
4055 | [\\/]* | ?:[\\/]*) | |
4056 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
4057 | ;; | |
4058 | *) | |
4059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4060 | for as_dir in $PATH | |
4061 | do | |
4062 | IFS=$as_save_IFS | |
4063 | test -z "$as_dir" && as_dir=. | |
4064 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4066 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
4067 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4068 | break 2 | |
4069 | fi | |
4070 | done | |
4071 | done | |
631ef239 | 4072 | IFS=$as_save_IFS |
212380e3 AC |
4073 | |
4074 | ;; | |
4075 | esac | |
4076 | fi | |
4077 | TOUCH=$ac_cv_path_TOUCH | |
212380e3 | 4078 | if test -n "$TOUCH"; then |
631ef239 AC |
4079 | { echo "$as_me:$LINENO: result: $TOUCH" >&5 |
4080 | echo "${ECHO_T}$TOUCH" >&6; } | |
212380e3 | 4081 | else |
631ef239 AC |
4082 | { echo "$as_me:$LINENO: result: no" >&5 |
4083 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4084 | fi |
4085 | ||
4086 | ||
631ef239 | 4087 | |
212380e3 AC |
4088 | for ac_prog in 'bison -y' byacc |
4089 | do | |
4090 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4091 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4094 | if test "${ac_cv_prog_YACC+set}" = set; then |
4095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4096 | else | |
4097 | if test -n "$YACC"; then | |
4098 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4099 | else | |
4100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4101 | for as_dir in $PATH | |
4102 | do | |
4103 | IFS=$as_save_IFS | |
4104 | test -z "$as_dir" && as_dir=. | |
4105 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4107 | ac_cv_prog_YACC="$ac_prog" |
4108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4109 | break 2 | |
4110 | fi | |
4111 | done | |
4112 | done | |
631ef239 | 4113 | IFS=$as_save_IFS |
212380e3 AC |
4114 | |
4115 | fi | |
4116 | fi | |
4117 | YACC=$ac_cv_prog_YACC | |
4118 | if test -n "$YACC"; then | |
631ef239 AC |
4119 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
4120 | echo "${ECHO_T}$YACC" >&6; } | |
212380e3 | 4121 | else |
631ef239 AC |
4122 | { echo "$as_me:$LINENO: result: no" >&5 |
4123 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4124 | fi |
4125 | ||
631ef239 | 4126 | |
212380e3 AC |
4127 | test -n "$YACC" && break |
4128 | done | |
4129 | test -n "$YACC" || YACC="yacc" | |
4130 | ||
4131 | ||
4132 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
4133 | { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5 | |
4134 | echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;} | |
4135 | { (exit 1); exit 1; }; } | |
4136 | fi | |
4137 | ||
4138 | for ac_prog in flex lex | |
4139 | do | |
4140 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4141 | set dummy $ac_prog; ac_word=$2 | |
631ef239 AC |
4142 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
212380e3 AC |
4144 | if test "${ac_cv_prog_LEX+set}" = set; then |
4145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4146 | else | |
4147 | if test -n "$LEX"; then | |
4148 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
4149 | else | |
4150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4151 | for as_dir in $PATH | |
4152 | do | |
4153 | IFS=$as_save_IFS | |
4154 | test -z "$as_dir" && as_dir=. | |
4155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
631ef239 | 4156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
212380e3 AC |
4157 | ac_cv_prog_LEX="$ac_prog" |
4158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4159 | break 2 | |
4160 | fi | |
4161 | done | |
4162 | done | |
631ef239 | 4163 | IFS=$as_save_IFS |
212380e3 AC |
4164 | |
4165 | fi | |
4166 | fi | |
4167 | LEX=$ac_cv_prog_LEX | |
4168 | if test -n "$LEX"; then | |
631ef239 AC |
4169 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
4170 | echo "${ECHO_T}$LEX" >&6; } | |
212380e3 | 4171 | else |
631ef239 AC |
4172 | { echo "$as_me:$LINENO: result: no" >&5 |
4173 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
4174 | fi |
4175 | ||
631ef239 | 4176 | |
212380e3 AC |
4177 | test -n "$LEX" && break |
4178 | done | |
4179 | test -n "$LEX" || LEX=":" | |
4180 | ||
631ef239 AC |
4181 | if test "x$LEX" != "x:"; then |
4182 | cat >conftest.l <<_ACEOF | |
4183 | %% | |
4184 | a { ECHO; } | |
4185 | b { REJECT; } | |
4186 | c { yymore (); } | |
4187 | d { yyless (1); } | |
4188 | e { yyless (input () != 0); } | |
4189 | f { unput (yytext[0]); } | |
4190 | . { BEGIN INITIAL; } | |
4191 | %% | |
4192 | #ifdef YYTEXT_POINTER | |
4193 | extern char *yytext; | |
212380e3 | 4194 | #endif |
212380e3 | 4195 | int |
631ef239 | 4196 | main (void) |
212380e3 | 4197 | { |
631ef239 | 4198 | return ! yylex () + ! yywrap (); |
212380e3 AC |
4199 | } |
4200 | _ACEOF | |
631ef239 AC |
4201 | { (ac_try="$LEX conftest.l" |
4202 | case "(($ac_try" in | |
4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4204 | *) ac_try_echo=$ac_try;; | |
4205 | esac | |
4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4207 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 AC |
4208 | ac_status=$? |
4209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4210 | (exit $ac_status); } |
4211 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | |
4212 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
4213 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
4214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
212380e3 | 4215 | else |
212380e3 | 4216 | |
631ef239 AC |
4217 | if test -f lex.yy.c; then |
4218 | ac_cv_prog_lex_root=lex.yy | |
4219 | elif test -f lexyy.c; then | |
4220 | ac_cv_prog_lex_root=lexyy | |
212380e3 | 4221 | else |
631ef239 AC |
4222 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
4223 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
4224 | { (exit 1); exit 1; }; } | |
4225 | fi | |
4226 | fi | |
4227 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
4228 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
4229 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
4230 | ||
4231 | if test -z "${LEXLIB+set}"; then | |
4232 | { echo "$as_me:$LINENO: checking lex library" >&5 | |
4233 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | |
4234 | if test "${ac_cv_lib_lex+set}" = set; then | |
212380e3 AC |
4235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4236 | else | |
212380e3 | 4237 | |
631ef239 AC |
4238 | ac_save_LIBS=$LIBS |
4239 | ac_cv_lib_lex='none needed' | |
4240 | for ac_lib in '' -lfl -ll; do | |
4241 | LIBS="$ac_lib $ac_save_LIBS" | |
4242 | cat >conftest.$ac_ext <<_ACEOF | |
4243 | `cat $LEX_OUTPUT_ROOT.c` | |
212380e3 AC |
4244 | _ACEOF |
4245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4246 | if { (ac_try="$ac_link" |
4247 | case "(($ac_try" in | |
4248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4249 | *) ac_try_echo=$ac_try;; | |
4250 | esac | |
4251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4252 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4253 | ac_status=$? |
4254 | grep -v '^ *+' conftest.er1 >conftest.err | |
4255 | rm -f conftest.er1 | |
4256 | cat conftest.err >&5 | |
4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4258 | (exit $ac_status); } && { |
4259 | test -z "$ac_c_werror_flag" || | |
4260 | test ! -s conftest.err | |
4261 | } && test -s conftest$ac_exeext && | |
4262 | $as_test_x conftest$ac_exeext; then | |
4263 | ac_cv_lib_lex=$ac_lib | |
212380e3 AC |
4264 | else |
4265 | echo "$as_me: failed program was:" >&5 | |
4266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4267 | ||
212380e3 AC |
4268 | |
4269 | fi | |
4270 | ||
631ef239 AC |
4271 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4272 | conftest$ac_exeext conftest.$ac_ext | |
4273 | test "$ac_cv_lib_lex" != 'none needed' && break | |
4274 | done | |
4275 | LIBS=$ac_save_LIBS | |
212380e3 | 4276 | |
212380e3 | 4277 | fi |
631ef239 AC |
4278 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 |
4279 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | |
4280 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
212380e3 | 4281 | fi |
212380e3 | 4282 | |
631ef239 AC |
4283 | |
4284 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
4285 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
212380e3 AC |
4286 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4288 | else | |
4289 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
631ef239 | 4290 | # default is implementation-dependent. Figure out which it is, since |
212380e3 AC |
4291 | # not all implementations provide the %pointer and %array declarations. |
4292 | ac_cv_prog_lex_yytext_pointer=no | |
212380e3 | 4293 | ac_save_LIBS=$LIBS |
631ef239 | 4294 | LIBS="$LEXLIB $ac_save_LIBS" |
212380e3 | 4295 | cat >conftest.$ac_ext <<_ACEOF |
631ef239 | 4296 | #define YYTEXT_POINTER 1 |
212380e3 AC |
4297 | `cat $LEX_OUTPUT_ROOT.c` |
4298 | _ACEOF | |
4299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
4300 | if { (ac_try="$ac_link" |
4301 | case "(($ac_try" in | |
4302 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4303 | *) ac_try_echo=$ac_try;; | |
4304 | esac | |
4305 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4306 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
4307 | ac_status=$? |
4308 | grep -v '^ *+' conftest.er1 >conftest.err | |
4309 | rm -f conftest.er1 | |
4310 | cat conftest.err >&5 | |
4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4312 | (exit $ac_status); } && { |
4313 | test -z "$ac_c_werror_flag" || | |
4314 | test ! -s conftest.err | |
4315 | } && test -s conftest$ac_exeext && | |
4316 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
4317 | ac_cv_prog_lex_yytext_pointer=yes |
4318 | else | |
4319 | echo "$as_me: failed program was:" >&5 | |
4320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4321 | ||
631ef239 | 4322 | |
212380e3 | 4323 | fi |
631ef239 AC |
4324 | |
4325 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
4326 | conftest$ac_exeext conftest.$ac_ext |
4327 | LIBS=$ac_save_LIBS | |
212380e3 AC |
4328 | |
4329 | fi | |
631ef239 AC |
4330 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
4331 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
212380e3 AC |
4332 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
4333 | ||
4334 | cat >>confdefs.h <<\_ACEOF | |
4335 | #define YYTEXT_POINTER 1 | |
4336 | _ACEOF | |
4337 | ||
4338 | fi | |
631ef239 | 4339 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
212380e3 AC |
4340 | |
4341 | fi | |
4342 | ||
4343 | if test "$LEX" = ":"; then | |
4344 | { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5 | |
4345 | echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;} | |
4346 | { (exit 1); exit 1; }; } | |
4347 | fi | |
4348 | ||
4349 | if test "$libexecdir" = '${exec_prefix}/libexec' && | |
4350 | test "$localstatedir" = '${prefix}/var'; then | |
4351 | libexecdir='${bindir}' | |
4352 | localstatedir='${prefix}' | |
4353 | fi | |
4354 | ||
631ef239 AC |
4355 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4356 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
212380e3 AC |
4357 | if test "${ac_cv_header_stdc+set}" = set; then |
4358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4359 | else | |
4360 | cat >conftest.$ac_ext <<_ACEOF | |
4361 | /* confdefs.h. */ | |
4362 | _ACEOF | |
4363 | cat confdefs.h >>conftest.$ac_ext | |
4364 | cat >>conftest.$ac_ext <<_ACEOF | |
4365 | /* end confdefs.h. */ | |
4366 | #include <stdlib.h> | |
4367 | #include <stdarg.h> | |
4368 | #include <string.h> | |
4369 | #include <float.h> | |
4370 | ||
4371 | int | |
4372 | main () | |
4373 | { | |
4374 | ||
4375 | ; | |
4376 | return 0; | |
4377 | } | |
4378 | _ACEOF | |
4379 | rm -f conftest.$ac_objext | |
631ef239 AC |
4380 | if { (ac_try="$ac_compile" |
4381 | case "(($ac_try" in | |
4382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4383 | *) ac_try_echo=$ac_try;; | |
4384 | esac | |
4385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4386 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4387 | ac_status=$? |
4388 | grep -v '^ *+' conftest.er1 >conftest.err | |
4389 | rm -f conftest.er1 | |
4390 | cat conftest.err >&5 | |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4392 | (exit $ac_status); } && { |
4393 | test -z "$ac_c_werror_flag" || | |
4394 | test ! -s conftest.err | |
4395 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4396 | ac_cv_header_stdc=yes |
4397 | else | |
4398 | echo "$as_me: failed program was:" >&5 | |
4399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4400 | ||
631ef239 | 4401 | ac_cv_header_stdc=no |
212380e3 | 4402 | fi |
631ef239 AC |
4403 | |
4404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4405 | |
4406 | if test $ac_cv_header_stdc = yes; then | |
4407 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4408 | cat >conftest.$ac_ext <<_ACEOF | |
4409 | /* confdefs.h. */ | |
4410 | _ACEOF | |
4411 | cat confdefs.h >>conftest.$ac_ext | |
4412 | cat >>conftest.$ac_ext <<_ACEOF | |
4413 | /* end confdefs.h. */ | |
4414 | #include <string.h> | |
4415 | ||
4416 | _ACEOF | |
4417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4418 | $EGREP "memchr" >/dev/null 2>&1; then | |
4419 | : | |
4420 | else | |
4421 | ac_cv_header_stdc=no | |
4422 | fi | |
4423 | rm -f conftest* | |
4424 | ||
4425 | fi | |
4426 | ||
4427 | if test $ac_cv_header_stdc = yes; then | |
4428 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4429 | cat >conftest.$ac_ext <<_ACEOF | |
4430 | /* confdefs.h. */ | |
4431 | _ACEOF | |
4432 | cat confdefs.h >>conftest.$ac_ext | |
4433 | cat >>conftest.$ac_ext <<_ACEOF | |
4434 | /* end confdefs.h. */ | |
4435 | #include <stdlib.h> | |
4436 | ||
4437 | _ACEOF | |
4438 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4439 | $EGREP "free" >/dev/null 2>&1; then | |
4440 | : | |
4441 | else | |
4442 | ac_cv_header_stdc=no | |
4443 | fi | |
4444 | rm -f conftest* | |
4445 | ||
4446 | fi | |
4447 | ||
4448 | if test $ac_cv_header_stdc = yes; then | |
4449 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4450 | if test "$cross_compiling" = yes; then | |
4451 | : | |
4452 | else | |
4453 | cat >conftest.$ac_ext <<_ACEOF | |
4454 | /* confdefs.h. */ | |
4455 | _ACEOF | |
4456 | cat confdefs.h >>conftest.$ac_ext | |
4457 | cat >>conftest.$ac_ext <<_ACEOF | |
4458 | /* end confdefs.h. */ | |
4459 | #include <ctype.h> | |
631ef239 | 4460 | #include <stdlib.h> |
212380e3 AC |
4461 | #if ((' ' & 0x0FF) == 0x020) |
4462 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4463 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4464 | #else | |
4465 | # define ISLOWER(c) \ | |
4466 | (('a' <= (c) && (c) <= 'i') \ | |
4467 | || ('j' <= (c) && (c) <= 'r') \ | |
4468 | || ('s' <= (c) && (c) <= 'z')) | |
4469 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4470 | #endif | |
4471 | ||
4472 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4473 | int | |
4474 | main () | |
4475 | { | |
4476 | int i; | |
4477 | for (i = 0; i < 256; i++) | |
4478 | if (XOR (islower (i), ISLOWER (i)) | |
4479 | || toupper (i) != TOUPPER (i)) | |
631ef239 AC |
4480 | return 2; |
4481 | return 0; | |
212380e3 AC |
4482 | } |
4483 | _ACEOF | |
4484 | rm -f conftest$ac_exeext | |
631ef239 AC |
4485 | if { (ac_try="$ac_link" |
4486 | case "(($ac_try" in | |
4487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4488 | *) ac_try_echo=$ac_try;; | |
4489 | esac | |
4490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4491 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
4492 | ac_status=$? |
4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4494 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
4495 | { (case "(($ac_try" in |
4496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4497 | *) ac_try_echo=$ac_try;; | |
4498 | esac | |
4499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4500 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
4501 | ac_status=$? |
4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4503 | (exit $ac_status); }; }; then | |
4504 | : | |
4505 | else | |
4506 | echo "$as_me: program exited with status $ac_status" >&5 | |
4507 | echo "$as_me: failed program was:" >&5 | |
4508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4509 | ||
4510 | ( exit $ac_status ) | |
4511 | ac_cv_header_stdc=no | |
4512 | fi | |
631ef239 | 4513 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 4514 | fi |
631ef239 AC |
4515 | |
4516 | ||
212380e3 AC |
4517 | fi |
4518 | fi | |
631ef239 AC |
4519 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4520 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
212380e3 AC |
4521 | if test $ac_cv_header_stdc = yes; then |
4522 | ||
4523 | cat >>confdefs.h <<\_ACEOF | |
4524 | #define STDC_HEADERS 1 | |
4525 | _ACEOF | |
4526 | ||
4527 | fi | |
4528 | ||
4529 | ||
4530 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ||
4539 | ||
4540 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4541 | inttypes.h stdint.h unistd.h | |
4542 | do | |
4543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4544 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4548 | else | |
4549 | cat >conftest.$ac_ext <<_ACEOF | |
4550 | /* confdefs.h. */ | |
4551 | _ACEOF | |
4552 | cat confdefs.h >>conftest.$ac_ext | |
4553 | cat >>conftest.$ac_ext <<_ACEOF | |
4554 | /* end confdefs.h. */ | |
4555 | $ac_includes_default | |
4556 | ||
4557 | #include <$ac_header> | |
4558 | _ACEOF | |
4559 | rm -f conftest.$ac_objext | |
631ef239 AC |
4560 | if { (ac_try="$ac_compile" |
4561 | case "(($ac_try" in | |
4562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4563 | *) ac_try_echo=$ac_try;; | |
4564 | esac | |
4565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4566 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4567 | ac_status=$? |
4568 | grep -v '^ *+' conftest.er1 >conftest.err | |
4569 | rm -f conftest.er1 | |
4570 | cat conftest.err >&5 | |
4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4572 | (exit $ac_status); } && { |
4573 | test -z "$ac_c_werror_flag" || | |
4574 | test ! -s conftest.err | |
4575 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4576 | eval "$as_ac_Header=yes" |
4577 | else | |
4578 | echo "$as_me: failed program was:" >&5 | |
4579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4580 | ||
631ef239 | 4581 | eval "$as_ac_Header=no" |
212380e3 | 4582 | fi |
631ef239 AC |
4583 | |
4584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4585 | fi |
631ef239 AC |
4586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4588 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4590 | cat >>confdefs.h <<_ACEOF | |
4591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4592 | _ACEOF | |
4593 | ||
4594 | fi | |
4595 | ||
4596 | done | |
4597 | ||
4598 | ||
4599 | ||
4600 | ||
4601 | ||
4602 | ||
4603 | ||
4604 | ||
4605 | ||
4606 | ||
4607 | ||
4608 | ||
4609 | ||
4610 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h | |
4611 | do | |
4612 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
4613 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4614 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4616 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4618 | fi | |
631ef239 AC |
4619 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4620 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4621 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4622 | else |
4623 | # Is the header compilable? | |
631ef239 AC |
4624 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4625 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
4626 | cat >conftest.$ac_ext <<_ACEOF |
4627 | /* confdefs.h. */ | |
4628 | _ACEOF | |
4629 | cat confdefs.h >>conftest.$ac_ext | |
4630 | cat >>conftest.$ac_ext <<_ACEOF | |
4631 | /* end confdefs.h. */ | |
4632 | $ac_includes_default | |
4633 | #include <$ac_header> | |
4634 | _ACEOF | |
4635 | rm -f conftest.$ac_objext | |
631ef239 AC |
4636 | if { (ac_try="$ac_compile" |
4637 | case "(($ac_try" in | |
4638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4639 | *) ac_try_echo=$ac_try;; | |
4640 | esac | |
4641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4642 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4643 | ac_status=$? |
4644 | grep -v '^ *+' conftest.er1 >conftest.err | |
4645 | rm -f conftest.er1 | |
4646 | cat conftest.err >&5 | |
4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4648 | (exit $ac_status); } && { |
4649 | test -z "$ac_c_werror_flag" || | |
4650 | test ! -s conftest.err | |
4651 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4652 | ac_header_compiler=yes |
4653 | else | |
4654 | echo "$as_me: failed program was:" >&5 | |
4655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4656 | ||
631ef239 | 4657 | ac_header_compiler=no |
212380e3 | 4658 | fi |
631ef239 AC |
4659 | |
4660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4661 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4662 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
4663 | |
4664 | # Is the header present? | |
631ef239 AC |
4665 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4666 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
4667 | cat >conftest.$ac_ext <<_ACEOF |
4668 | /* confdefs.h. */ | |
4669 | _ACEOF | |
4670 | cat confdefs.h >>conftest.$ac_ext | |
4671 | cat >>conftest.$ac_ext <<_ACEOF | |
4672 | /* end confdefs.h. */ | |
4673 | #include <$ac_header> | |
4674 | _ACEOF | |
631ef239 AC |
4675 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4676 | case "(($ac_try" in | |
4677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4678 | *) ac_try_echo=$ac_try;; | |
4679 | esac | |
4680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
4682 | ac_status=$? |
4683 | grep -v '^ *+' conftest.er1 >conftest.err | |
4684 | rm -f conftest.er1 | |
4685 | cat conftest.err >&5 | |
4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4687 | (exit $ac_status); } >/dev/null && { |
4688 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4689 | test ! -s conftest.err | |
4690 | }; then | |
212380e3 AC |
4691 | ac_header_preproc=yes |
4692 | else | |
4693 | echo "$as_me: failed program was:" >&5 | |
4694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4695 | ||
4696 | ac_header_preproc=no | |
4697 | fi | |
631ef239 | 4698 | |
212380e3 | 4699 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
4700 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4701 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
4702 | |
4703 | # So? What about this header? | |
4704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4705 | yes:no: ) | |
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4710 | ac_header_preproc=yes | |
4711 | ;; | |
4712 | no:yes:* ) | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 4725 | |
212380e3 AC |
4726 | ;; |
4727 | esac | |
631ef239 AC |
4728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
4731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4732 | else | |
4733 | eval "$as_ac_Header=\$ac_header_preproc" | |
4734 | fi | |
631ef239 AC |
4735 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4736 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4737 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
4738 | |
4739 | fi | |
4740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4741 | cat >>confdefs.h <<_ACEOF | |
4742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4743 | _ACEOF | |
4744 | ||
4745 | fi | |
4746 | ||
4747 | done | |
4748 | ||
4749 | ||
4750 | ||
631ef239 AC |
4751 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4752 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
212380e3 AC |
4753 | if test "${ac_cv_c_const+set}" = set; then |
4754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4755 | else | |
4756 | cat >conftest.$ac_ext <<_ACEOF | |
4757 | /* confdefs.h. */ | |
4758 | _ACEOF | |
4759 | cat confdefs.h >>conftest.$ac_ext | |
4760 | cat >>conftest.$ac_ext <<_ACEOF | |
4761 | /* end confdefs.h. */ | |
4762 | ||
4763 | int | |
4764 | main () | |
4765 | { | |
4766 | /* FIXME: Include the comments suggested by Paul. */ | |
4767 | #ifndef __cplusplus | |
4768 | /* Ultrix mips cc rejects this. */ | |
4769 | typedef int charset[2]; | |
631ef239 | 4770 | const charset cs; |
212380e3 | 4771 | /* SunOS 4.1.1 cc rejects this. */ |
631ef239 AC |
4772 | char const *const *pcpcc; |
4773 | char **ppc; | |
212380e3 AC |
4774 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4775 | struct point {int x, y;}; | |
4776 | static struct point const zero = {0,0}; | |
4777 | /* AIX XL C 1.02.0.0 rejects this. | |
4778 | It does not let you subtract one const X* pointer from another in | |
4779 | an arm of an if-expression whose if-part is not a constant | |
4780 | expression */ | |
4781 | const char *g = "string"; | |
631ef239 | 4782 | pcpcc = &g + (g ? g-g : 0); |
212380e3 | 4783 | /* HPUX 7.0 cc rejects these. */ |
631ef239 AC |
4784 | ++pcpcc; |
4785 | ppc = (char**) pcpcc; | |
4786 | pcpcc = (char const *const *) ppc; | |
212380e3 AC |
4787 | { /* SCO 3.2v4 cc rejects this. */ |
4788 | char *t; | |
4789 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4790 | ||
4791 | *t++ = 0; | |
631ef239 | 4792 | if (s) return 0; |
212380e3 AC |
4793 | } |
4794 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4795 | int x[] = {25, 17}; | |
4796 | const int *foo = &x[0]; | |
4797 | ++foo; | |
4798 | } | |
4799 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4800 | typedef const int *iptr; | |
4801 | iptr p = 0; | |
4802 | ++p; | |
4803 | } | |
4804 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4805 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4806 | struct s { int j; const int *ap[3]; }; | |
4807 | struct s *b; b->j = 5; | |
4808 | } | |
4809 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4810 | const int foo = 10; | |
631ef239 | 4811 | if (!foo) return 0; |
212380e3 | 4812 | } |
631ef239 | 4813 | return !cs[0] && !zero.x; |
212380e3 AC |
4814 | #endif |
4815 | ||
4816 | ; | |
4817 | return 0; | |
4818 | } | |
4819 | _ACEOF | |
4820 | rm -f conftest.$ac_objext | |
631ef239 AC |
4821 | if { (ac_try="$ac_compile" |
4822 | case "(($ac_try" in | |
4823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4824 | *) ac_try_echo=$ac_try;; | |
4825 | esac | |
4826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4827 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4828 | ac_status=$? |
4829 | grep -v '^ *+' conftest.er1 >conftest.err | |
4830 | rm -f conftest.er1 | |
4831 | cat conftest.err >&5 | |
4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4833 | (exit $ac_status); } && { |
4834 | test -z "$ac_c_werror_flag" || | |
4835 | test ! -s conftest.err | |
4836 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4837 | ac_cv_c_const=yes |
4838 | else | |
4839 | echo "$as_me: failed program was:" >&5 | |
4840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4841 | ||
631ef239 | 4842 | ac_cv_c_const=no |
212380e3 | 4843 | fi |
631ef239 AC |
4844 | |
4845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 4846 | fi |
631ef239 AC |
4847 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4848 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
212380e3 AC |
4849 | if test $ac_cv_c_const = no; then |
4850 | ||
4851 | cat >>confdefs.h <<\_ACEOF | |
4852 | #define const | |
4853 | _ACEOF | |
4854 | ||
4855 | fi | |
4856 | ||
4857 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
631ef239 AC |
4858 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
4859 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
4860 | if test "${ac_cv_c_bigendian+set}" = set; then |
4861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4862 | else | |
4863 | # See if sys/param.h defines the BYTE_ORDER macro. | |
4864 | cat >conftest.$ac_ext <<_ACEOF | |
4865 | /* confdefs.h. */ | |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
4870 | #include <sys/types.h> | |
4871 | #include <sys/param.h> | |
4872 | ||
4873 | int | |
4874 | main () | |
4875 | { | |
631ef239 AC |
4876 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
4877 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
4878 | bogus endian macros |
4879 | #endif | |
4880 | ||
4881 | ; | |
4882 | return 0; | |
4883 | } | |
4884 | _ACEOF | |
4885 | rm -f conftest.$ac_objext | |
631ef239 AC |
4886 | if { (ac_try="$ac_compile" |
4887 | case "(($ac_try" in | |
4888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4889 | *) ac_try_echo=$ac_try;; | |
4890 | esac | |
4891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4892 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4893 | ac_status=$? |
4894 | grep -v '^ *+' conftest.er1 >conftest.err | |
4895 | rm -f conftest.er1 | |
4896 | cat conftest.err >&5 | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4898 | (exit $ac_status); } && { |
4899 | test -z "$ac_c_werror_flag" || | |
4900 | test ! -s conftest.err | |
4901 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4902 | # It does; now see whether it defined to BIG_ENDIAN or not. |
4903 | cat >conftest.$ac_ext <<_ACEOF | |
4904 | /* confdefs.h. */ | |
4905 | _ACEOF | |
4906 | cat confdefs.h >>conftest.$ac_ext | |
4907 | cat >>conftest.$ac_ext <<_ACEOF | |
4908 | /* end confdefs.h. */ | |
4909 | #include <sys/types.h> | |
4910 | #include <sys/param.h> | |
4911 | ||
4912 | int | |
4913 | main () | |
4914 | { | |
4915 | #if BYTE_ORDER != BIG_ENDIAN | |
4916 | not big endian | |
4917 | #endif | |
4918 | ||
4919 | ; | |
4920 | return 0; | |
4921 | } | |
4922 | _ACEOF | |
4923 | rm -f conftest.$ac_objext | |
631ef239 AC |
4924 | if { (ac_try="$ac_compile" |
4925 | case "(($ac_try" in | |
4926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4927 | *) ac_try_echo=$ac_try;; | |
4928 | esac | |
4929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4930 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4931 | ac_status=$? |
4932 | grep -v '^ *+' conftest.er1 >conftest.err | |
4933 | rm -f conftest.er1 | |
4934 | cat conftest.err >&5 | |
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4936 | (exit $ac_status); } && { |
4937 | test -z "$ac_c_werror_flag" || | |
4938 | test ! -s conftest.err | |
4939 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4940 | ac_cv_c_bigendian=yes |
4941 | else | |
4942 | echo "$as_me: failed program was:" >&5 | |
4943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4944 | ||
631ef239 | 4945 | ac_cv_c_bigendian=no |
212380e3 | 4946 | fi |
631ef239 AC |
4947 | |
4948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
4949 | else |
4950 | echo "$as_me: failed program was:" >&5 | |
4951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4952 | ||
631ef239 | 4953 | # It does not; compile a test program. |
212380e3 AC |
4954 | if test "$cross_compiling" = yes; then |
4955 | # try to guess the endianness by grepping values into an object file | |
4956 | ac_cv_c_bigendian=unknown | |
4957 | cat >conftest.$ac_ext <<_ACEOF | |
4958 | /* confdefs.h. */ | |
4959 | _ACEOF | |
4960 | cat confdefs.h >>conftest.$ac_ext | |
4961 | cat >>conftest.$ac_ext <<_ACEOF | |
4962 | /* end confdefs.h. */ | |
631ef239 AC |
4963 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
4964 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 4965 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
4966 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
4967 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
4968 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
4969 | int | |
4970 | main () | |
4971 | { | |
4972 | _ascii (); _ebcdic (); | |
4973 | ; | |
4974 | return 0; | |
4975 | } | |
4976 | _ACEOF | |
4977 | rm -f conftest.$ac_objext | |
631ef239 AC |
4978 | if { (ac_try="$ac_compile" |
4979 | case "(($ac_try" in | |
4980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4981 | *) ac_try_echo=$ac_try;; | |
4982 | esac | |
4983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4984 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
4985 | ac_status=$? |
4986 | grep -v '^ *+' conftest.er1 >conftest.err | |
4987 | rm -f conftest.er1 | |
4988 | cat conftest.err >&5 | |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
4990 | (exit $ac_status); } && { |
4991 | test -z "$ac_c_werror_flag" || | |
4992 | test ! -s conftest.err | |
4993 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
4994 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
4995 | ac_cv_c_bigendian=yes | |
4996 | fi | |
4997 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
4998 | if test "$ac_cv_c_bigendian" = unknown; then | |
4999 | ac_cv_c_bigendian=no | |
5000 | else | |
5001 | # finding both strings is unlikely to happen, but who knows? | |
5002 | ac_cv_c_bigendian=unknown | |
5003 | fi | |
5004 | fi | |
5005 | else | |
5006 | echo "$as_me: failed program was:" >&5 | |
5007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5008 | ||
631ef239 | 5009 | |
212380e3 | 5010 | fi |
631ef239 AC |
5011 | |
5012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5013 | else |
5014 | cat >conftest.$ac_ext <<_ACEOF | |
5015 | /* confdefs.h. */ | |
5016 | _ACEOF | |
5017 | cat confdefs.h >>conftest.$ac_ext | |
5018 | cat >>conftest.$ac_ext <<_ACEOF | |
5019 | /* end confdefs.h. */ | |
631ef239 | 5020 | $ac_includes_default |
212380e3 AC |
5021 | int |
5022 | main () | |
5023 | { | |
631ef239 | 5024 | |
212380e3 AC |
5025 | /* Are we little or big endian? From Harbison&Steele. */ |
5026 | union | |
5027 | { | |
631ef239 AC |
5028 | long int l; |
5029 | char c[sizeof (long int)]; | |
212380e3 AC |
5030 | } u; |
5031 | u.l = 1; | |
631ef239 AC |
5032 | return u.c[sizeof (long int) - 1] == 1; |
5033 | ||
5034 | ; | |
5035 | return 0; | |
212380e3 AC |
5036 | } |
5037 | _ACEOF | |
5038 | rm -f conftest$ac_exeext | |
631ef239 AC |
5039 | if { (ac_try="$ac_link" |
5040 | case "(($ac_try" in | |
5041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5042 | *) ac_try_echo=$ac_try;; | |
5043 | esac | |
5044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5045 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5046 | ac_status=$? |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5049 | { (case "(($ac_try" in |
5050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5051 | *) ac_try_echo=$ac_try;; | |
5052 | esac | |
5053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5054 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5055 | ac_status=$? |
5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5057 | (exit $ac_status); }; }; then | |
5058 | ac_cv_c_bigendian=no | |
5059 | else | |
5060 | echo "$as_me: program exited with status $ac_status" >&5 | |
5061 | echo "$as_me: failed program was:" >&5 | |
5062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5063 | ||
5064 | ( exit $ac_status ) | |
5065 | ac_cv_c_bigendian=yes | |
5066 | fi | |
631ef239 | 5067 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 5068 | fi |
631ef239 AC |
5069 | |
5070 | ||
212380e3 | 5071 | fi |
631ef239 AC |
5072 | |
5073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5074 | fi |
631ef239 AC |
5075 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5076 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
5077 | case $ac_cv_c_bigendian in |
5078 | yes) | |
5079 | ||
5080 | cat >>confdefs.h <<\_ACEOF | |
5081 | #define WORDS_BIGENDIAN 1 | |
5082 | _ACEOF | |
5083 | ;; | |
5084 | no) | |
5085 | ;; | |
5086 | *) | |
5087 | { { echo "$as_me:$LINENO: error: unknown endianness | |
5088 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
5089 | echo "$as_me: error: unknown endianness | |
5090 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
5091 | { (exit 1); exit 1; }; } ;; | |
5092 | esac | |
5093 | ||
5094 | fi | |
631ef239 AC |
5095 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5096 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
212380e3 AC |
5097 | if test "${ac_cv_type_pid_t+set}" = set; then |
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5099 | else | |
5100 | cat >conftest.$ac_ext <<_ACEOF | |
5101 | /* confdefs.h. */ | |
5102 | _ACEOF | |
5103 | cat confdefs.h >>conftest.$ac_ext | |
5104 | cat >>conftest.$ac_ext <<_ACEOF | |
5105 | /* end confdefs.h. */ | |
5106 | $ac_includes_default | |
631ef239 | 5107 | typedef pid_t ac__type_new_; |
212380e3 AC |
5108 | int |
5109 | main () | |
5110 | { | |
631ef239 | 5111 | if ((ac__type_new_ *) 0) |
212380e3 | 5112 | return 0; |
631ef239 | 5113 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5114 | return 0; |
5115 | ; | |
5116 | return 0; | |
5117 | } | |
5118 | _ACEOF | |
5119 | rm -f conftest.$ac_objext | |
631ef239 AC |
5120 | if { (ac_try="$ac_compile" |
5121 | case "(($ac_try" in | |
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5123 | *) ac_try_echo=$ac_try;; | |
5124 | esac | |
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5126 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5127 | ac_status=$? |
5128 | grep -v '^ *+' conftest.er1 >conftest.err | |
5129 | rm -f conftest.er1 | |
5130 | cat conftest.err >&5 | |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5132 | (exit $ac_status); } && { |
5133 | test -z "$ac_c_werror_flag" || | |
5134 | test ! -s conftest.err | |
5135 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5136 | ac_cv_type_pid_t=yes |
5137 | else | |
5138 | echo "$as_me: failed program was:" >&5 | |
5139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5140 | ||
631ef239 | 5141 | ac_cv_type_pid_t=no |
212380e3 | 5142 | fi |
631ef239 AC |
5143 | |
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5145 | fi |
631ef239 AC |
5146 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5147 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
212380e3 AC |
5148 | if test $ac_cv_type_pid_t = yes; then |
5149 | : | |
5150 | else | |
5151 | ||
5152 | cat >>confdefs.h <<_ACEOF | |
5153 | #define pid_t int | |
5154 | _ACEOF | |
5155 | ||
5156 | fi | |
5157 | ||
631ef239 AC |
5158 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5159 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
212380e3 AC |
5160 | if test "${ac_cv_type_size_t+set}" = set; then |
5161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5162 | else | |
5163 | cat >conftest.$ac_ext <<_ACEOF | |
5164 | /* confdefs.h. */ | |
5165 | _ACEOF | |
5166 | cat confdefs.h >>conftest.$ac_ext | |
5167 | cat >>conftest.$ac_ext <<_ACEOF | |
5168 | /* end confdefs.h. */ | |
5169 | $ac_includes_default | |
631ef239 | 5170 | typedef size_t ac__type_new_; |
212380e3 AC |
5171 | int |
5172 | main () | |
5173 | { | |
631ef239 | 5174 | if ((ac__type_new_ *) 0) |
212380e3 | 5175 | return 0; |
631ef239 | 5176 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5177 | return 0; |
5178 | ; | |
5179 | return 0; | |
5180 | } | |
5181 | _ACEOF | |
5182 | rm -f conftest.$ac_objext | |
631ef239 AC |
5183 | if { (ac_try="$ac_compile" |
5184 | case "(($ac_try" in | |
5185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5186 | *) ac_try_echo=$ac_try;; | |
5187 | esac | |
5188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5189 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5190 | ac_status=$? |
5191 | grep -v '^ *+' conftest.er1 >conftest.err | |
5192 | rm -f conftest.er1 | |
5193 | cat conftest.err >&5 | |
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5195 | (exit $ac_status); } && { |
5196 | test -z "$ac_c_werror_flag" || | |
5197 | test ! -s conftest.err | |
5198 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5199 | ac_cv_type_size_t=yes |
5200 | else | |
5201 | echo "$as_me: failed program was:" >&5 | |
5202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5203 | ||
631ef239 | 5204 | ac_cv_type_size_t=no |
212380e3 | 5205 | fi |
631ef239 AC |
5206 | |
5207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5208 | fi |
631ef239 AC |
5209 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5210 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
212380e3 AC |
5211 | if test $ac_cv_type_size_t = yes; then |
5212 | : | |
5213 | else | |
5214 | ||
5215 | cat >>confdefs.h <<_ACEOF | |
631ef239 | 5216 | #define size_t unsigned int |
212380e3 AC |
5217 | _ACEOF |
5218 | ||
5219 | fi | |
5220 | ||
631ef239 AC |
5221 | { echo "$as_me:$LINENO: checking for short" >&5 |
5222 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
212380e3 AC |
5223 | if test "${ac_cv_type_short+set}" = set; then |
5224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5225 | else | |
5226 | cat >conftest.$ac_ext <<_ACEOF | |
5227 | /* confdefs.h. */ | |
5228 | _ACEOF | |
5229 | cat confdefs.h >>conftest.$ac_ext | |
5230 | cat >>conftest.$ac_ext <<_ACEOF | |
5231 | /* end confdefs.h. */ | |
5232 | $ac_includes_default | |
631ef239 | 5233 | typedef short ac__type_new_; |
212380e3 AC |
5234 | int |
5235 | main () | |
5236 | { | |
631ef239 | 5237 | if ((ac__type_new_ *) 0) |
212380e3 | 5238 | return 0; |
631ef239 | 5239 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5240 | return 0; |
5241 | ; | |
5242 | return 0; | |
5243 | } | |
5244 | _ACEOF | |
5245 | rm -f conftest.$ac_objext | |
631ef239 AC |
5246 | if { (ac_try="$ac_compile" |
5247 | case "(($ac_try" in | |
5248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5249 | *) ac_try_echo=$ac_try;; | |
5250 | esac | |
5251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5252 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5253 | ac_status=$? |
5254 | grep -v '^ *+' conftest.er1 >conftest.err | |
5255 | rm -f conftest.er1 | |
5256 | cat conftest.err >&5 | |
5257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5258 | (exit $ac_status); } && { |
5259 | test -z "$ac_c_werror_flag" || | |
5260 | test ! -s conftest.err | |
5261 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5262 | ac_cv_type_short=yes |
5263 | else | |
5264 | echo "$as_me: failed program was:" >&5 | |
5265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5266 | ||
631ef239 | 5267 | ac_cv_type_short=no |
212380e3 | 5268 | fi |
631ef239 AC |
5269 | |
5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5271 | fi |
631ef239 AC |
5272 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
5273 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
212380e3 | 5274 | |
631ef239 AC |
5275 | # The cast to long int works around a bug in the HP C Compiler |
5276 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5277 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5278 | # This bug is HP SR number 8606223364. | |
5279 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
5280 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
212380e3 AC |
5281 | if test "${ac_cv_sizeof_short+set}" = set; then |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5283 | else | |
212380e3 AC |
5284 | if test "$cross_compiling" = yes; then |
5285 | # Depending upon the size, compute the lo and hi bounds. | |
5286 | cat >conftest.$ac_ext <<_ACEOF | |
5287 | /* confdefs.h. */ | |
5288 | _ACEOF | |
5289 | cat confdefs.h >>conftest.$ac_ext | |
5290 | cat >>conftest.$ac_ext <<_ACEOF | |
5291 | /* end confdefs.h. */ | |
5292 | $ac_includes_default | |
631ef239 | 5293 | typedef short ac__type_sizeof_; |
212380e3 AC |
5294 | int |
5295 | main () | |
5296 | { | |
631ef239 | 5297 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5298 | test_array [0] = 0 |
5299 | ||
5300 | ; | |
5301 | return 0; | |
5302 | } | |
5303 | _ACEOF | |
5304 | rm -f conftest.$ac_objext | |
631ef239 AC |
5305 | if { (ac_try="$ac_compile" |
5306 | case "(($ac_try" in | |
5307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5308 | *) ac_try_echo=$ac_try;; | |
5309 | esac | |
5310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5311 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5312 | ac_status=$? |
5313 | grep -v '^ *+' conftest.er1 >conftest.err | |
5314 | rm -f conftest.er1 | |
5315 | cat conftest.err >&5 | |
5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5317 | (exit $ac_status); } && { |
5318 | test -z "$ac_c_werror_flag" || | |
5319 | test ! -s conftest.err | |
5320 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5321 | ac_lo=0 ac_mid=0 |
5322 | while :; do | |
5323 | cat >conftest.$ac_ext <<_ACEOF | |
5324 | /* confdefs.h. */ | |
5325 | _ACEOF | |
5326 | cat confdefs.h >>conftest.$ac_ext | |
5327 | cat >>conftest.$ac_ext <<_ACEOF | |
5328 | /* end confdefs.h. */ | |
5329 | $ac_includes_default | |
631ef239 | 5330 | typedef short ac__type_sizeof_; |
212380e3 AC |
5331 | int |
5332 | main () | |
5333 | { | |
631ef239 | 5334 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5335 | test_array [0] = 0 |
5336 | ||
5337 | ; | |
5338 | return 0; | |
5339 | } | |
5340 | _ACEOF | |
5341 | rm -f conftest.$ac_objext | |
631ef239 AC |
5342 | if { (ac_try="$ac_compile" |
5343 | case "(($ac_try" in | |
5344 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5345 | *) ac_try_echo=$ac_try;; | |
5346 | esac | |
5347 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5348 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5349 | ac_status=$? |
5350 | grep -v '^ *+' conftest.er1 >conftest.err | |
5351 | rm -f conftest.er1 | |
5352 | cat conftest.err >&5 | |
5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5354 | (exit $ac_status); } && { |
5355 | test -z "$ac_c_werror_flag" || | |
5356 | test ! -s conftest.err | |
5357 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5358 | ac_hi=$ac_mid; break |
5359 | else | |
5360 | echo "$as_me: failed program was:" >&5 | |
5361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5362 | ||
631ef239 AC |
5363 | ac_lo=`expr $ac_mid + 1` |
5364 | if test $ac_lo -le $ac_mid; then | |
5365 | ac_lo= ac_hi= | |
5366 | break | |
5367 | fi | |
5368 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5369 | fi |
631ef239 AC |
5370 | |
5371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5372 | done |
5373 | else | |
5374 | echo "$as_me: failed program was:" >&5 | |
5375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5376 | ||
631ef239 | 5377 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5378 | /* confdefs.h. */ |
5379 | _ACEOF | |
5380 | cat confdefs.h >>conftest.$ac_ext | |
5381 | cat >>conftest.$ac_ext <<_ACEOF | |
5382 | /* end confdefs.h. */ | |
5383 | $ac_includes_default | |
631ef239 | 5384 | typedef short ac__type_sizeof_; |
212380e3 AC |
5385 | int |
5386 | main () | |
5387 | { | |
631ef239 | 5388 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5389 | test_array [0] = 0 |
5390 | ||
5391 | ; | |
5392 | return 0; | |
5393 | } | |
5394 | _ACEOF | |
5395 | rm -f conftest.$ac_objext | |
631ef239 AC |
5396 | if { (ac_try="$ac_compile" |
5397 | case "(($ac_try" in | |
5398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5399 | *) ac_try_echo=$ac_try;; | |
5400 | esac | |
5401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5402 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5403 | ac_status=$? |
5404 | grep -v '^ *+' conftest.er1 >conftest.err | |
5405 | rm -f conftest.er1 | |
5406 | cat conftest.err >&5 | |
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5408 | (exit $ac_status); } && { |
5409 | test -z "$ac_c_werror_flag" || | |
5410 | test ! -s conftest.err | |
5411 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5412 | ac_hi=-1 ac_mid=-1 |
5413 | while :; do | |
5414 | cat >conftest.$ac_ext <<_ACEOF | |
5415 | /* confdefs.h. */ | |
5416 | _ACEOF | |
5417 | cat confdefs.h >>conftest.$ac_ext | |
5418 | cat >>conftest.$ac_ext <<_ACEOF | |
5419 | /* end confdefs.h. */ | |
5420 | $ac_includes_default | |
631ef239 | 5421 | typedef short ac__type_sizeof_; |
212380e3 AC |
5422 | int |
5423 | main () | |
5424 | { | |
631ef239 | 5425 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5426 | test_array [0] = 0 |
5427 | ||
5428 | ; | |
5429 | return 0; | |
5430 | } | |
5431 | _ACEOF | |
5432 | rm -f conftest.$ac_objext | |
631ef239 AC |
5433 | if { (ac_try="$ac_compile" |
5434 | case "(($ac_try" in | |
5435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5436 | *) ac_try_echo=$ac_try;; | |
5437 | esac | |
5438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5439 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5440 | ac_status=$? |
5441 | grep -v '^ *+' conftest.er1 >conftest.err | |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5445 | (exit $ac_status); } && { |
5446 | test -z "$ac_c_werror_flag" || | |
5447 | test ! -s conftest.err | |
5448 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5449 | ac_lo=$ac_mid; break |
5450 | else | |
5451 | echo "$as_me: failed program was:" >&5 | |
5452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5453 | ||
631ef239 AC |
5454 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5455 | if test $ac_mid -le $ac_hi; then | |
5456 | ac_lo= ac_hi= | |
5457 | break | |
5458 | fi | |
5459 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5460 | fi |
631ef239 AC |
5461 | |
5462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5463 | done |
5464 | else | |
5465 | echo "$as_me: failed program was:" >&5 | |
5466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5467 | ||
631ef239 | 5468 | ac_lo= ac_hi= |
212380e3 | 5469 | fi |
631ef239 AC |
5470 | |
5471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5472 | fi |
631ef239 AC |
5473 | |
5474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5475 | # Binary search between lo and hi bounds. |
5476 | while test "x$ac_lo" != "x$ac_hi"; do | |
5477 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5478 | cat >conftest.$ac_ext <<_ACEOF | |
5479 | /* confdefs.h. */ | |
5480 | _ACEOF | |
5481 | cat confdefs.h >>conftest.$ac_ext | |
5482 | cat >>conftest.$ac_ext <<_ACEOF | |
5483 | /* end confdefs.h. */ | |
5484 | $ac_includes_default | |
631ef239 | 5485 | typedef short ac__type_sizeof_; |
212380e3 AC |
5486 | int |
5487 | main () | |
5488 | { | |
631ef239 | 5489 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5490 | test_array [0] = 0 |
5491 | ||
5492 | ; | |
5493 | return 0; | |
5494 | } | |
5495 | _ACEOF | |
5496 | rm -f conftest.$ac_objext | |
631ef239 AC |
5497 | if { (ac_try="$ac_compile" |
5498 | case "(($ac_try" in | |
5499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5500 | *) ac_try_echo=$ac_try;; | |
5501 | esac | |
5502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5503 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5504 | ac_status=$? |
5505 | grep -v '^ *+' conftest.er1 >conftest.err | |
5506 | rm -f conftest.er1 | |
5507 | cat conftest.err >&5 | |
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5509 | (exit $ac_status); } && { |
5510 | test -z "$ac_c_werror_flag" || | |
5511 | test ! -s conftest.err | |
5512 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5513 | ac_hi=$ac_mid |
5514 | else | |
5515 | echo "$as_me: failed program was:" >&5 | |
5516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5517 | ||
631ef239 | 5518 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5519 | fi |
631ef239 AC |
5520 | |
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5522 | done |
5523 | case $ac_lo in | |
5524 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
631ef239 AC |
5525 | '') if test "$ac_cv_type_short" = yes; then |
5526 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5527 | See \`config.log' for more details." >&5 |
631ef239 | 5528 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5529 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5530 | { (exit 77); exit 77; }; } |
5531 | else | |
5532 | ac_cv_sizeof_short=0 | |
5533 | fi ;; | |
212380e3 | 5534 | esac |
212380e3 AC |
5535 | else |
5536 | cat >conftest.$ac_ext <<_ACEOF | |
5537 | /* confdefs.h. */ | |
5538 | _ACEOF | |
5539 | cat confdefs.h >>conftest.$ac_ext | |
5540 | cat >>conftest.$ac_ext <<_ACEOF | |
5541 | /* end confdefs.h. */ | |
5542 | $ac_includes_default | |
631ef239 AC |
5543 | typedef short ac__type_sizeof_; |
5544 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5545 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5546 | #include <stdio.h> |
5547 | #include <stdlib.h> | |
5548 | int | |
5549 | main () | |
5550 | { | |
5551 | ||
5552 | FILE *f = fopen ("conftest.val", "w"); | |
5553 | if (! f) | |
631ef239 AC |
5554 | return 1; |
5555 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5556 | { |
631ef239 AC |
5557 | long int i = longval (); |
5558 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5559 | return 1; | |
212380e3 AC |
5560 | fprintf (f, "%ld\n", i); |
5561 | } | |
5562 | else | |
5563 | { | |
631ef239 AC |
5564 | unsigned long int i = ulongval (); |
5565 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5566 | return 1; | |
212380e3 AC |
5567 | fprintf (f, "%lu\n", i); |
5568 | } | |
631ef239 | 5569 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5570 | |
5571 | ; | |
5572 | return 0; | |
5573 | } | |
5574 | _ACEOF | |
5575 | rm -f conftest$ac_exeext | |
631ef239 AC |
5576 | if { (ac_try="$ac_link" |
5577 | case "(($ac_try" in | |
5578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5579 | *) ac_try_echo=$ac_try;; | |
5580 | esac | |
5581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5582 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5583 | ac_status=$? |
5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5585 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5586 | { (case "(($ac_try" in |
5587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5588 | *) ac_try_echo=$ac_try;; | |
5589 | esac | |
5590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5591 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5592 | ac_status=$? |
5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5594 | (exit $ac_status); }; }; then | |
5595 | ac_cv_sizeof_short=`cat conftest.val` | |
5596 | else | |
5597 | echo "$as_me: program exited with status $ac_status" >&5 | |
5598 | echo "$as_me: failed program was:" >&5 | |
5599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5600 | ||
5601 | ( exit $ac_status ) | |
631ef239 AC |
5602 | if test "$ac_cv_type_short" = yes; then |
5603 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
212380e3 | 5604 | See \`config.log' for more details." >&5 |
631ef239 | 5605 | echo "$as_me: error: cannot compute sizeof (short) |
212380e3 | 5606 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5607 | { (exit 77); exit 77; }; } |
5608 | else | |
5609 | ac_cv_sizeof_short=0 | |
5610 | fi | |
212380e3 | 5611 | fi |
631ef239 | 5612 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
5613 | fi |
5614 | rm -f conftest.val | |
212380e3 | 5615 | fi |
631ef239 AC |
5616 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
5617 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
5618 | ||
5619 | ||
5620 | ||
212380e3 AC |
5621 | cat >>confdefs.h <<_ACEOF |
5622 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
5623 | _ACEOF | |
5624 | ||
5625 | ||
631ef239 AC |
5626 | { echo "$as_me:$LINENO: checking for int" >&5 |
5627 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
212380e3 AC |
5628 | if test "${ac_cv_type_int+set}" = set; then |
5629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5630 | else | |
5631 | cat >conftest.$ac_ext <<_ACEOF | |
5632 | /* confdefs.h. */ | |
5633 | _ACEOF | |
5634 | cat confdefs.h >>conftest.$ac_ext | |
5635 | cat >>conftest.$ac_ext <<_ACEOF | |
5636 | /* end confdefs.h. */ | |
5637 | $ac_includes_default | |
631ef239 | 5638 | typedef int ac__type_new_; |
212380e3 AC |
5639 | int |
5640 | main () | |
5641 | { | |
631ef239 | 5642 | if ((ac__type_new_ *) 0) |
212380e3 | 5643 | return 0; |
631ef239 | 5644 | if (sizeof (ac__type_new_)) |
212380e3 AC |
5645 | return 0; |
5646 | ; | |
5647 | return 0; | |
5648 | } | |
5649 | _ACEOF | |
5650 | rm -f conftest.$ac_objext | |
631ef239 AC |
5651 | if { (ac_try="$ac_compile" |
5652 | case "(($ac_try" in | |
5653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5654 | *) ac_try_echo=$ac_try;; | |
5655 | esac | |
5656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5657 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5658 | ac_status=$? |
5659 | grep -v '^ *+' conftest.er1 >conftest.err | |
5660 | rm -f conftest.er1 | |
5661 | cat conftest.err >&5 | |
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5663 | (exit $ac_status); } && { |
5664 | test -z "$ac_c_werror_flag" || | |
5665 | test ! -s conftest.err | |
5666 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5667 | ac_cv_type_int=yes |
5668 | else | |
5669 | echo "$as_me: failed program was:" >&5 | |
5670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5671 | ||
631ef239 | 5672 | ac_cv_type_int=no |
212380e3 | 5673 | fi |
631ef239 AC |
5674 | |
5675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5676 | fi |
631ef239 AC |
5677 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
5678 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
212380e3 | 5679 | |
631ef239 AC |
5680 | # The cast to long int works around a bug in the HP C Compiler |
5681 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
5682 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
5683 | # This bug is HP SR number 8606223364. | |
5684 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
5685 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
212380e3 AC |
5686 | if test "${ac_cv_sizeof_int+set}" = set; then |
5687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5688 | else | |
212380e3 AC |
5689 | if test "$cross_compiling" = yes; then |
5690 | # Depending upon the size, compute the lo and hi bounds. | |
5691 | cat >conftest.$ac_ext <<_ACEOF | |
5692 | /* confdefs.h. */ | |
5693 | _ACEOF | |
5694 | cat confdefs.h >>conftest.$ac_ext | |
5695 | cat >>conftest.$ac_ext <<_ACEOF | |
5696 | /* end confdefs.h. */ | |
5697 | $ac_includes_default | |
631ef239 | 5698 | typedef int ac__type_sizeof_; |
212380e3 AC |
5699 | int |
5700 | main () | |
5701 | { | |
631ef239 | 5702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
5703 | test_array [0] = 0 |
5704 | ||
5705 | ; | |
5706 | return 0; | |
5707 | } | |
5708 | _ACEOF | |
5709 | rm -f conftest.$ac_objext | |
631ef239 AC |
5710 | if { (ac_try="$ac_compile" |
5711 | case "(($ac_try" in | |
5712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5713 | *) ac_try_echo=$ac_try;; | |
5714 | esac | |
5715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5716 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5717 | ac_status=$? |
5718 | grep -v '^ *+' conftest.er1 >conftest.err | |
5719 | rm -f conftest.er1 | |
5720 | cat conftest.err >&5 | |
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5722 | (exit $ac_status); } && { |
5723 | test -z "$ac_c_werror_flag" || | |
5724 | test ! -s conftest.err | |
5725 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5726 | ac_lo=0 ac_mid=0 |
5727 | while :; do | |
5728 | cat >conftest.$ac_ext <<_ACEOF | |
5729 | /* confdefs.h. */ | |
5730 | _ACEOF | |
5731 | cat confdefs.h >>conftest.$ac_ext | |
5732 | cat >>conftest.$ac_ext <<_ACEOF | |
5733 | /* end confdefs.h. */ | |
5734 | $ac_includes_default | |
631ef239 | 5735 | typedef int ac__type_sizeof_; |
212380e3 AC |
5736 | int |
5737 | main () | |
5738 | { | |
631ef239 | 5739 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5740 | test_array [0] = 0 |
5741 | ||
5742 | ; | |
5743 | return 0; | |
5744 | } | |
5745 | _ACEOF | |
5746 | rm -f conftest.$ac_objext | |
631ef239 AC |
5747 | if { (ac_try="$ac_compile" |
5748 | case "(($ac_try" in | |
5749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5750 | *) ac_try_echo=$ac_try;; | |
5751 | esac | |
5752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5753 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5754 | ac_status=$? |
5755 | grep -v '^ *+' conftest.er1 >conftest.err | |
5756 | rm -f conftest.er1 | |
5757 | cat conftest.err >&5 | |
5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5759 | (exit $ac_status); } && { |
5760 | test -z "$ac_c_werror_flag" || | |
5761 | test ! -s conftest.err | |
5762 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5763 | ac_hi=$ac_mid; break |
5764 | else | |
5765 | echo "$as_me: failed program was:" >&5 | |
5766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5767 | ||
631ef239 AC |
5768 | ac_lo=`expr $ac_mid + 1` |
5769 | if test $ac_lo -le $ac_mid; then | |
5770 | ac_lo= ac_hi= | |
5771 | break | |
5772 | fi | |
5773 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 5774 | fi |
631ef239 AC |
5775 | |
5776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5777 | done |
5778 | else | |
5779 | echo "$as_me: failed program was:" >&5 | |
5780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5781 | ||
631ef239 | 5782 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
5783 | /* confdefs.h. */ |
5784 | _ACEOF | |
5785 | cat confdefs.h >>conftest.$ac_ext | |
5786 | cat >>conftest.$ac_ext <<_ACEOF | |
5787 | /* end confdefs.h. */ | |
5788 | $ac_includes_default | |
631ef239 | 5789 | typedef int ac__type_sizeof_; |
212380e3 AC |
5790 | int |
5791 | main () | |
5792 | { | |
631ef239 | 5793 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
5794 | test_array [0] = 0 |
5795 | ||
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
5800 | rm -f conftest.$ac_objext | |
631ef239 AC |
5801 | if { (ac_try="$ac_compile" |
5802 | case "(($ac_try" in | |
5803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5804 | *) ac_try_echo=$ac_try;; | |
5805 | esac | |
5806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5807 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5808 | ac_status=$? |
5809 | grep -v '^ *+' conftest.er1 >conftest.err | |
5810 | rm -f conftest.er1 | |
5811 | cat conftest.err >&5 | |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5813 | (exit $ac_status); } && { |
5814 | test -z "$ac_c_werror_flag" || | |
5815 | test ! -s conftest.err | |
5816 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5817 | ac_hi=-1 ac_mid=-1 |
5818 | while :; do | |
5819 | cat >conftest.$ac_ext <<_ACEOF | |
5820 | /* confdefs.h. */ | |
5821 | _ACEOF | |
5822 | cat confdefs.h >>conftest.$ac_ext | |
5823 | cat >>conftest.$ac_ext <<_ACEOF | |
5824 | /* end confdefs.h. */ | |
5825 | $ac_includes_default | |
631ef239 | 5826 | typedef int ac__type_sizeof_; |
212380e3 AC |
5827 | int |
5828 | main () | |
5829 | { | |
631ef239 | 5830 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
5831 | test_array [0] = 0 |
5832 | ||
5833 | ; | |
5834 | return 0; | |
5835 | } | |
5836 | _ACEOF | |
5837 | rm -f conftest.$ac_objext | |
631ef239 AC |
5838 | if { (ac_try="$ac_compile" |
5839 | case "(($ac_try" in | |
5840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5841 | *) ac_try_echo=$ac_try;; | |
5842 | esac | |
5843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5844 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5845 | ac_status=$? |
5846 | grep -v '^ *+' conftest.er1 >conftest.err | |
5847 | rm -f conftest.er1 | |
5848 | cat conftest.err >&5 | |
5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5850 | (exit $ac_status); } && { |
5851 | test -z "$ac_c_werror_flag" || | |
5852 | test ! -s conftest.err | |
5853 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5854 | ac_lo=$ac_mid; break |
5855 | else | |
5856 | echo "$as_me: failed program was:" >&5 | |
5857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5858 | ||
631ef239 AC |
5859 | ac_hi=`expr '(' $ac_mid ')' - 1` |
5860 | if test $ac_mid -le $ac_hi; then | |
5861 | ac_lo= ac_hi= | |
5862 | break | |
5863 | fi | |
5864 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 5865 | fi |
631ef239 AC |
5866 | |
5867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5868 | done |
5869 | else | |
5870 | echo "$as_me: failed program was:" >&5 | |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5872 | ||
631ef239 | 5873 | ac_lo= ac_hi= |
212380e3 | 5874 | fi |
631ef239 AC |
5875 | |
5876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 5877 | fi |
631ef239 AC |
5878 | |
5879 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5880 | # Binary search between lo and hi bounds. |
5881 | while test "x$ac_lo" != "x$ac_hi"; do | |
5882 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5883 | cat >conftest.$ac_ext <<_ACEOF | |
5884 | /* confdefs.h. */ | |
5885 | _ACEOF | |
5886 | cat confdefs.h >>conftest.$ac_ext | |
5887 | cat >>conftest.$ac_ext <<_ACEOF | |
5888 | /* end confdefs.h. */ | |
5889 | $ac_includes_default | |
631ef239 | 5890 | typedef int ac__type_sizeof_; |
212380e3 AC |
5891 | int |
5892 | main () | |
5893 | { | |
631ef239 | 5894 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
5895 | test_array [0] = 0 |
5896 | ||
5897 | ; | |
5898 | return 0; | |
5899 | } | |
5900 | _ACEOF | |
5901 | rm -f conftest.$ac_objext | |
631ef239 AC |
5902 | if { (ac_try="$ac_compile" |
5903 | case "(($ac_try" in | |
5904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5905 | *) ac_try_echo=$ac_try;; | |
5906 | esac | |
5907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5908 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
5909 | ac_status=$? |
5910 | grep -v '^ *+' conftest.er1 >conftest.err | |
5911 | rm -f conftest.er1 | |
5912 | cat conftest.err >&5 | |
5913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
5914 | (exit $ac_status); } && { |
5915 | test -z "$ac_c_werror_flag" || | |
5916 | test ! -s conftest.err | |
5917 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
5918 | ac_hi=$ac_mid |
5919 | else | |
5920 | echo "$as_me: failed program was:" >&5 | |
5921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5922 | ||
631ef239 | 5923 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 5924 | fi |
631ef239 AC |
5925 | |
5926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
5927 | done |
5928 | case $ac_lo in | |
5929 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
631ef239 AC |
5930 | '') if test "$ac_cv_type_int" = yes; then |
5931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 5932 | See \`config.log' for more details." >&5 |
631ef239 | 5933 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 5934 | See \`config.log' for more details." >&2;} |
631ef239 AC |
5935 | { (exit 77); exit 77; }; } |
5936 | else | |
5937 | ac_cv_sizeof_int=0 | |
5938 | fi ;; | |
212380e3 | 5939 | esac |
212380e3 AC |
5940 | else |
5941 | cat >conftest.$ac_ext <<_ACEOF | |
5942 | /* confdefs.h. */ | |
5943 | _ACEOF | |
5944 | cat confdefs.h >>conftest.$ac_ext | |
5945 | cat >>conftest.$ac_ext <<_ACEOF | |
5946 | /* end confdefs.h. */ | |
5947 | $ac_includes_default | |
631ef239 AC |
5948 | typedef int ac__type_sizeof_; |
5949 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5950 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
5951 | #include <stdio.h> |
5952 | #include <stdlib.h> | |
5953 | int | |
5954 | main () | |
5955 | { | |
5956 | ||
5957 | FILE *f = fopen ("conftest.val", "w"); | |
5958 | if (! f) | |
631ef239 AC |
5959 | return 1; |
5960 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 5961 | { |
631ef239 AC |
5962 | long int i = longval (); |
5963 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5964 | return 1; | |
212380e3 AC |
5965 | fprintf (f, "%ld\n", i); |
5966 | } | |
5967 | else | |
5968 | { | |
631ef239 AC |
5969 | unsigned long int i = ulongval (); |
5970 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5971 | return 1; | |
212380e3 AC |
5972 | fprintf (f, "%lu\n", i); |
5973 | } | |
631ef239 | 5974 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
5975 | |
5976 | ; | |
5977 | return 0; | |
5978 | } | |
5979 | _ACEOF | |
5980 | rm -f conftest$ac_exeext | |
631ef239 AC |
5981 | if { (ac_try="$ac_link" |
5982 | case "(($ac_try" in | |
5983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5984 | *) ac_try_echo=$ac_try;; | |
5985 | esac | |
5986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5987 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
5988 | ac_status=$? |
5989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5990 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
5991 | { (case "(($ac_try" in |
5992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5993 | *) ac_try_echo=$ac_try;; | |
5994 | esac | |
5995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5996 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
5997 | ac_status=$? |
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5999 | (exit $ac_status); }; }; then | |
6000 | ac_cv_sizeof_int=`cat conftest.val` | |
6001 | else | |
6002 | echo "$as_me: program exited with status $ac_status" >&5 | |
6003 | echo "$as_me: failed program was:" >&5 | |
6004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6005 | ||
6006 | ( exit $ac_status ) | |
631ef239 AC |
6007 | if test "$ac_cv_type_int" = yes; then |
6008 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
212380e3 | 6009 | See \`config.log' for more details." >&5 |
631ef239 | 6010 | echo "$as_me: error: cannot compute sizeof (int) |
212380e3 | 6011 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6012 | { (exit 77); exit 77; }; } |
6013 | else | |
6014 | ac_cv_sizeof_int=0 | |
6015 | fi | |
212380e3 | 6016 | fi |
631ef239 | 6017 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6018 | fi |
6019 | rm -f conftest.val | |
212380e3 | 6020 | fi |
631ef239 AC |
6021 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
6022 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
6023 | ||
6024 | ||
6025 | ||
212380e3 AC |
6026 | cat >>confdefs.h <<_ACEOF |
6027 | #define SIZEOF_INT $ac_cv_sizeof_int | |
6028 | _ACEOF | |
6029 | ||
6030 | ||
631ef239 AC |
6031 | { echo "$as_me:$LINENO: checking for long" >&5 |
6032 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
212380e3 AC |
6033 | if test "${ac_cv_type_long+set}" = set; then |
6034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6035 | else | |
6036 | cat >conftest.$ac_ext <<_ACEOF | |
6037 | /* confdefs.h. */ | |
6038 | _ACEOF | |
6039 | cat confdefs.h >>conftest.$ac_ext | |
6040 | cat >>conftest.$ac_ext <<_ACEOF | |
6041 | /* end confdefs.h. */ | |
6042 | $ac_includes_default | |
631ef239 | 6043 | typedef long ac__type_new_; |
212380e3 AC |
6044 | int |
6045 | main () | |
6046 | { | |
631ef239 | 6047 | if ((ac__type_new_ *) 0) |
212380e3 | 6048 | return 0; |
631ef239 | 6049 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6050 | return 0; |
6051 | ; | |
6052 | return 0; | |
6053 | } | |
6054 | _ACEOF | |
6055 | rm -f conftest.$ac_objext | |
631ef239 AC |
6056 | if { (ac_try="$ac_compile" |
6057 | case "(($ac_try" in | |
6058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6059 | *) ac_try_echo=$ac_try;; | |
6060 | esac | |
6061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6062 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6063 | ac_status=$? |
6064 | grep -v '^ *+' conftest.er1 >conftest.err | |
6065 | rm -f conftest.er1 | |
6066 | cat conftest.err >&5 | |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6068 | (exit $ac_status); } && { |
6069 | test -z "$ac_c_werror_flag" || | |
6070 | test ! -s conftest.err | |
6071 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6072 | ac_cv_type_long=yes |
6073 | else | |
6074 | echo "$as_me: failed program was:" >&5 | |
6075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6076 | ||
631ef239 | 6077 | ac_cv_type_long=no |
212380e3 | 6078 | fi |
631ef239 AC |
6079 | |
6080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6081 | fi |
631ef239 AC |
6082 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
6083 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
212380e3 | 6084 | |
631ef239 AC |
6085 | # The cast to long int works around a bug in the HP C Compiler |
6086 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6087 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6088 | # This bug is HP SR number 8606223364. | |
6089 | { echo "$as_me:$LINENO: checking size of long" >&5 | |
6090 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
212380e3 AC |
6091 | if test "${ac_cv_sizeof_long+set}" = set; then |
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6093 | else | |
212380e3 AC |
6094 | if test "$cross_compiling" = yes; then |
6095 | # Depending upon the size, compute the lo and hi bounds. | |
6096 | cat >conftest.$ac_ext <<_ACEOF | |
6097 | /* confdefs.h. */ | |
6098 | _ACEOF | |
6099 | cat confdefs.h >>conftest.$ac_ext | |
6100 | cat >>conftest.$ac_ext <<_ACEOF | |
6101 | /* end confdefs.h. */ | |
6102 | $ac_includes_default | |
631ef239 | 6103 | typedef long ac__type_sizeof_; |
212380e3 AC |
6104 | int |
6105 | main () | |
6106 | { | |
631ef239 | 6107 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6108 | test_array [0] = 0 |
6109 | ||
6110 | ; | |
6111 | return 0; | |
6112 | } | |
6113 | _ACEOF | |
6114 | rm -f conftest.$ac_objext | |
631ef239 AC |
6115 | if { (ac_try="$ac_compile" |
6116 | case "(($ac_try" in | |
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6118 | *) ac_try_echo=$ac_try;; | |
6119 | esac | |
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6121 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6122 | ac_status=$? |
6123 | grep -v '^ *+' conftest.er1 >conftest.err | |
6124 | rm -f conftest.er1 | |
6125 | cat conftest.err >&5 | |
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6127 | (exit $ac_status); } && { |
6128 | test -z "$ac_c_werror_flag" || | |
6129 | test ! -s conftest.err | |
6130 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6131 | ac_lo=0 ac_mid=0 |
6132 | while :; do | |
6133 | cat >conftest.$ac_ext <<_ACEOF | |
6134 | /* confdefs.h. */ | |
6135 | _ACEOF | |
6136 | cat confdefs.h >>conftest.$ac_ext | |
6137 | cat >>conftest.$ac_ext <<_ACEOF | |
6138 | /* end confdefs.h. */ | |
6139 | $ac_includes_default | |
631ef239 | 6140 | typedef long ac__type_sizeof_; |
212380e3 AC |
6141 | int |
6142 | main () | |
6143 | { | |
631ef239 | 6144 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6145 | test_array [0] = 0 |
6146 | ||
6147 | ; | |
6148 | return 0; | |
6149 | } | |
6150 | _ACEOF | |
6151 | rm -f conftest.$ac_objext | |
631ef239 AC |
6152 | if { (ac_try="$ac_compile" |
6153 | case "(($ac_try" in | |
6154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6155 | *) ac_try_echo=$ac_try;; | |
6156 | esac | |
6157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6158 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6159 | ac_status=$? |
6160 | grep -v '^ *+' conftest.er1 >conftest.err | |
6161 | rm -f conftest.er1 | |
6162 | cat conftest.err >&5 | |
6163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6164 | (exit $ac_status); } && { |
6165 | test -z "$ac_c_werror_flag" || | |
6166 | test ! -s conftest.err | |
6167 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6168 | ac_hi=$ac_mid; break |
6169 | else | |
6170 | echo "$as_me: failed program was:" >&5 | |
6171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6172 | ||
631ef239 AC |
6173 | ac_lo=`expr $ac_mid + 1` |
6174 | if test $ac_lo -le $ac_mid; then | |
6175 | ac_lo= ac_hi= | |
6176 | break | |
6177 | fi | |
6178 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6179 | fi |
631ef239 AC |
6180 | |
6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6182 | done |
6183 | else | |
6184 | echo "$as_me: failed program was:" >&5 | |
6185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6186 | ||
631ef239 | 6187 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6188 | /* confdefs.h. */ |
6189 | _ACEOF | |
6190 | cat confdefs.h >>conftest.$ac_ext | |
6191 | cat >>conftest.$ac_ext <<_ACEOF | |
6192 | /* end confdefs.h. */ | |
6193 | $ac_includes_default | |
631ef239 | 6194 | typedef long ac__type_sizeof_; |
212380e3 AC |
6195 | int |
6196 | main () | |
6197 | { | |
631ef239 | 6198 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6199 | test_array [0] = 0 |
6200 | ||
6201 | ; | |
6202 | return 0; | |
6203 | } | |
6204 | _ACEOF | |
6205 | rm -f conftest.$ac_objext | |
631ef239 AC |
6206 | if { (ac_try="$ac_compile" |
6207 | case "(($ac_try" in | |
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6209 | *) ac_try_echo=$ac_try;; | |
6210 | esac | |
6211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6212 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6213 | ac_status=$? |
6214 | grep -v '^ *+' conftest.er1 >conftest.err | |
6215 | rm -f conftest.er1 | |
6216 | cat conftest.err >&5 | |
6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6218 | (exit $ac_status); } && { |
6219 | test -z "$ac_c_werror_flag" || | |
6220 | test ! -s conftest.err | |
6221 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6222 | ac_hi=-1 ac_mid=-1 |
6223 | while :; do | |
6224 | cat >conftest.$ac_ext <<_ACEOF | |
6225 | /* confdefs.h. */ | |
6226 | _ACEOF | |
6227 | cat confdefs.h >>conftest.$ac_ext | |
6228 | cat >>conftest.$ac_ext <<_ACEOF | |
6229 | /* end confdefs.h. */ | |
6230 | $ac_includes_default | |
631ef239 | 6231 | typedef long ac__type_sizeof_; |
212380e3 AC |
6232 | int |
6233 | main () | |
6234 | { | |
631ef239 | 6235 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6236 | test_array [0] = 0 |
6237 | ||
6238 | ; | |
6239 | return 0; | |
6240 | } | |
6241 | _ACEOF | |
6242 | rm -f conftest.$ac_objext | |
631ef239 AC |
6243 | if { (ac_try="$ac_compile" |
6244 | case "(($ac_try" in | |
6245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6246 | *) ac_try_echo=$ac_try;; | |
6247 | esac | |
6248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6249 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6250 | ac_status=$? |
6251 | grep -v '^ *+' conftest.er1 >conftest.err | |
6252 | rm -f conftest.er1 | |
6253 | cat conftest.err >&5 | |
6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6255 | (exit $ac_status); } && { |
6256 | test -z "$ac_c_werror_flag" || | |
6257 | test ! -s conftest.err | |
6258 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6259 | ac_lo=$ac_mid; break |
6260 | else | |
6261 | echo "$as_me: failed program was:" >&5 | |
6262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6263 | ||
631ef239 AC |
6264 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6265 | if test $ac_mid -le $ac_hi; then | |
6266 | ac_lo= ac_hi= | |
6267 | break | |
6268 | fi | |
6269 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6270 | fi |
631ef239 AC |
6271 | |
6272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6273 | done |
6274 | else | |
6275 | echo "$as_me: failed program was:" >&5 | |
6276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6277 | ||
631ef239 | 6278 | ac_lo= ac_hi= |
212380e3 | 6279 | fi |
631ef239 AC |
6280 | |
6281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6282 | fi |
631ef239 AC |
6283 | |
6284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6285 | # Binary search between lo and hi bounds. |
6286 | while test "x$ac_lo" != "x$ac_hi"; do | |
6287 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6288 | cat >conftest.$ac_ext <<_ACEOF | |
6289 | /* confdefs.h. */ | |
6290 | _ACEOF | |
6291 | cat confdefs.h >>conftest.$ac_ext | |
6292 | cat >>conftest.$ac_ext <<_ACEOF | |
6293 | /* end confdefs.h. */ | |
6294 | $ac_includes_default | |
631ef239 | 6295 | typedef long ac__type_sizeof_; |
212380e3 AC |
6296 | int |
6297 | main () | |
6298 | { | |
631ef239 | 6299 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6300 | test_array [0] = 0 |
6301 | ||
6302 | ; | |
6303 | return 0; | |
6304 | } | |
6305 | _ACEOF | |
6306 | rm -f conftest.$ac_objext | |
631ef239 AC |
6307 | if { (ac_try="$ac_compile" |
6308 | case "(($ac_try" in | |
6309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6310 | *) ac_try_echo=$ac_try;; | |
6311 | esac | |
6312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6313 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6314 | ac_status=$? |
6315 | grep -v '^ *+' conftest.er1 >conftest.err | |
6316 | rm -f conftest.er1 | |
6317 | cat conftest.err >&5 | |
6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6319 | (exit $ac_status); } && { |
6320 | test -z "$ac_c_werror_flag" || | |
6321 | test ! -s conftest.err | |
6322 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6323 | ac_hi=$ac_mid |
6324 | else | |
6325 | echo "$as_me: failed program was:" >&5 | |
6326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6327 | ||
631ef239 | 6328 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6329 | fi |
631ef239 AC |
6330 | |
6331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6332 | done |
6333 | case $ac_lo in | |
6334 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
631ef239 AC |
6335 | '') if test "$ac_cv_type_long" = yes; then |
6336 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6337 | See \`config.log' for more details." >&5 |
631ef239 | 6338 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6339 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6340 | { (exit 77); exit 77; }; } |
6341 | else | |
6342 | ac_cv_sizeof_long=0 | |
6343 | fi ;; | |
212380e3 | 6344 | esac |
212380e3 AC |
6345 | else |
6346 | cat >conftest.$ac_ext <<_ACEOF | |
6347 | /* confdefs.h. */ | |
6348 | _ACEOF | |
6349 | cat confdefs.h >>conftest.$ac_ext | |
6350 | cat >>conftest.$ac_ext <<_ACEOF | |
6351 | /* end confdefs.h. */ | |
6352 | $ac_includes_default | |
631ef239 AC |
6353 | typedef long ac__type_sizeof_; |
6354 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6355 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6356 | #include <stdio.h> |
6357 | #include <stdlib.h> | |
6358 | int | |
6359 | main () | |
6360 | { | |
6361 | ||
6362 | FILE *f = fopen ("conftest.val", "w"); | |
6363 | if (! f) | |
631ef239 AC |
6364 | return 1; |
6365 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6366 | { |
631ef239 AC |
6367 | long int i = longval (); |
6368 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6369 | return 1; | |
212380e3 AC |
6370 | fprintf (f, "%ld\n", i); |
6371 | } | |
6372 | else | |
6373 | { | |
631ef239 AC |
6374 | unsigned long int i = ulongval (); |
6375 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6376 | return 1; | |
212380e3 AC |
6377 | fprintf (f, "%lu\n", i); |
6378 | } | |
631ef239 | 6379 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6380 | |
6381 | ; | |
6382 | return 0; | |
6383 | } | |
6384 | _ACEOF | |
6385 | rm -f conftest$ac_exeext | |
631ef239 AC |
6386 | if { (ac_try="$ac_link" |
6387 | case "(($ac_try" in | |
6388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6389 | *) ac_try_echo=$ac_try;; | |
6390 | esac | |
6391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6392 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6393 | ac_status=$? |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6396 | { (case "(($ac_try" in |
6397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6398 | *) ac_try_echo=$ac_try;; | |
6399 | esac | |
6400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6401 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6402 | ac_status=$? |
6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6404 | (exit $ac_status); }; }; then | |
6405 | ac_cv_sizeof_long=`cat conftest.val` | |
6406 | else | |
6407 | echo "$as_me: program exited with status $ac_status" >&5 | |
6408 | echo "$as_me: failed program was:" >&5 | |
6409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6410 | ||
6411 | ( exit $ac_status ) | |
631ef239 AC |
6412 | if test "$ac_cv_type_long" = yes; then |
6413 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
212380e3 | 6414 | See \`config.log' for more details." >&5 |
631ef239 | 6415 | echo "$as_me: error: cannot compute sizeof (long) |
212380e3 | 6416 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6417 | { (exit 77); exit 77; }; } |
6418 | else | |
6419 | ac_cv_sizeof_long=0 | |
6420 | fi | |
212380e3 | 6421 | fi |
631ef239 | 6422 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6423 | fi |
6424 | rm -f conftest.val | |
212380e3 | 6425 | fi |
631ef239 AC |
6426 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
6427 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
6428 | ||
6429 | ||
6430 | ||
212380e3 AC |
6431 | cat >>confdefs.h <<_ACEOF |
6432 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
6433 | _ACEOF | |
6434 | ||
6435 | ||
631ef239 AC |
6436 | { echo "$as_me:$LINENO: checking for long long" >&5 |
6437 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
212380e3 AC |
6438 | if test "${ac_cv_type_long_long+set}" = set; then |
6439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6440 | else | |
6441 | cat >conftest.$ac_ext <<_ACEOF | |
6442 | /* confdefs.h. */ | |
6443 | _ACEOF | |
6444 | cat confdefs.h >>conftest.$ac_ext | |
6445 | cat >>conftest.$ac_ext <<_ACEOF | |
6446 | /* end confdefs.h. */ | |
6447 | $ac_includes_default | |
631ef239 | 6448 | typedef long long ac__type_new_; |
212380e3 AC |
6449 | int |
6450 | main () | |
6451 | { | |
631ef239 | 6452 | if ((ac__type_new_ *) 0) |
212380e3 | 6453 | return 0; |
631ef239 | 6454 | if (sizeof (ac__type_new_)) |
212380e3 AC |
6455 | return 0; |
6456 | ; | |
6457 | return 0; | |
6458 | } | |
6459 | _ACEOF | |
6460 | rm -f conftest.$ac_objext | |
631ef239 AC |
6461 | if { (ac_try="$ac_compile" |
6462 | case "(($ac_try" in | |
6463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6464 | *) ac_try_echo=$ac_try;; | |
6465 | esac | |
6466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6467 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6468 | ac_status=$? |
6469 | grep -v '^ *+' conftest.er1 >conftest.err | |
6470 | rm -f conftest.er1 | |
6471 | cat conftest.err >&5 | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6473 | (exit $ac_status); } && { |
6474 | test -z "$ac_c_werror_flag" || | |
6475 | test ! -s conftest.err | |
6476 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6477 | ac_cv_type_long_long=yes |
6478 | else | |
6479 | echo "$as_me: failed program was:" >&5 | |
6480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6481 | ||
631ef239 | 6482 | ac_cv_type_long_long=no |
212380e3 | 6483 | fi |
631ef239 AC |
6484 | |
6485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6486 | fi |
631ef239 AC |
6487 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
6488 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
212380e3 | 6489 | |
631ef239 AC |
6490 | # The cast to long int works around a bug in the HP C Compiler |
6491 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
6492 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
6493 | # This bug is HP SR number 8606223364. | |
6494 | { echo "$as_me:$LINENO: checking size of long long" >&5 | |
6495 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
212380e3 AC |
6496 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
6497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6498 | else | |
212380e3 AC |
6499 | if test "$cross_compiling" = yes; then |
6500 | # Depending upon the size, compute the lo and hi bounds. | |
6501 | cat >conftest.$ac_ext <<_ACEOF | |
6502 | /* confdefs.h. */ | |
6503 | _ACEOF | |
6504 | cat confdefs.h >>conftest.$ac_ext | |
6505 | cat >>conftest.$ac_ext <<_ACEOF | |
6506 | /* end confdefs.h. */ | |
6507 | $ac_includes_default | |
631ef239 | 6508 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6509 | int |
6510 | main () | |
6511 | { | |
631ef239 | 6512 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
212380e3 AC |
6513 | test_array [0] = 0 |
6514 | ||
6515 | ; | |
6516 | return 0; | |
6517 | } | |
6518 | _ACEOF | |
6519 | rm -f conftest.$ac_objext | |
631ef239 AC |
6520 | if { (ac_try="$ac_compile" |
6521 | case "(($ac_try" in | |
6522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6523 | *) ac_try_echo=$ac_try;; | |
6524 | esac | |
6525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6526 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6527 | ac_status=$? |
6528 | grep -v '^ *+' conftest.er1 >conftest.err | |
6529 | rm -f conftest.er1 | |
6530 | cat conftest.err >&5 | |
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6532 | (exit $ac_status); } && { |
6533 | test -z "$ac_c_werror_flag" || | |
6534 | test ! -s conftest.err | |
6535 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6536 | ac_lo=0 ac_mid=0 |
6537 | while :; do | |
6538 | cat >conftest.$ac_ext <<_ACEOF | |
6539 | /* confdefs.h. */ | |
6540 | _ACEOF | |
6541 | cat confdefs.h >>conftest.$ac_ext | |
6542 | cat >>conftest.$ac_ext <<_ACEOF | |
6543 | /* end confdefs.h. */ | |
6544 | $ac_includes_default | |
631ef239 | 6545 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6546 | int |
6547 | main () | |
6548 | { | |
631ef239 | 6549 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6550 | test_array [0] = 0 |
6551 | ||
6552 | ; | |
6553 | return 0; | |
6554 | } | |
6555 | _ACEOF | |
6556 | rm -f conftest.$ac_objext | |
631ef239 AC |
6557 | if { (ac_try="$ac_compile" |
6558 | case "(($ac_try" in | |
6559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6560 | *) ac_try_echo=$ac_try;; | |
6561 | esac | |
6562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6563 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6564 | ac_status=$? |
6565 | grep -v '^ *+' conftest.er1 >conftest.err | |
6566 | rm -f conftest.er1 | |
6567 | cat conftest.err >&5 | |
6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6569 | (exit $ac_status); } && { |
6570 | test -z "$ac_c_werror_flag" || | |
6571 | test ! -s conftest.err | |
6572 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6573 | ac_hi=$ac_mid; break |
6574 | else | |
6575 | echo "$as_me: failed program was:" >&5 | |
6576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6577 | ||
631ef239 AC |
6578 | ac_lo=`expr $ac_mid + 1` |
6579 | if test $ac_lo -le $ac_mid; then | |
6580 | ac_lo= ac_hi= | |
6581 | break | |
6582 | fi | |
6583 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
212380e3 | 6584 | fi |
631ef239 AC |
6585 | |
6586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6587 | done |
6588 | else | |
6589 | echo "$as_me: failed program was:" >&5 | |
6590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6591 | ||
631ef239 | 6592 | cat >conftest.$ac_ext <<_ACEOF |
212380e3 AC |
6593 | /* confdefs.h. */ |
6594 | _ACEOF | |
6595 | cat confdefs.h >>conftest.$ac_ext | |
6596 | cat >>conftest.$ac_ext <<_ACEOF | |
6597 | /* end confdefs.h. */ | |
6598 | $ac_includes_default | |
631ef239 | 6599 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6600 | int |
6601 | main () | |
6602 | { | |
631ef239 | 6603 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
212380e3 AC |
6604 | test_array [0] = 0 |
6605 | ||
6606 | ; | |
6607 | return 0; | |
6608 | } | |
6609 | _ACEOF | |
6610 | rm -f conftest.$ac_objext | |
631ef239 AC |
6611 | if { (ac_try="$ac_compile" |
6612 | case "(($ac_try" in | |
6613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6614 | *) ac_try_echo=$ac_try;; | |
6615 | esac | |
6616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6617 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6618 | ac_status=$? |
6619 | grep -v '^ *+' conftest.er1 >conftest.err | |
6620 | rm -f conftest.er1 | |
6621 | cat conftest.err >&5 | |
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6623 | (exit $ac_status); } && { |
6624 | test -z "$ac_c_werror_flag" || | |
6625 | test ! -s conftest.err | |
6626 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6627 | ac_hi=-1 ac_mid=-1 |
6628 | while :; do | |
6629 | cat >conftest.$ac_ext <<_ACEOF | |
6630 | /* confdefs.h. */ | |
6631 | _ACEOF | |
6632 | cat confdefs.h >>conftest.$ac_ext | |
6633 | cat >>conftest.$ac_ext <<_ACEOF | |
6634 | /* end confdefs.h. */ | |
6635 | $ac_includes_default | |
631ef239 | 6636 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6637 | int |
6638 | main () | |
6639 | { | |
631ef239 | 6640 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
212380e3 AC |
6641 | test_array [0] = 0 |
6642 | ||
6643 | ; | |
6644 | return 0; | |
6645 | } | |
6646 | _ACEOF | |
6647 | rm -f conftest.$ac_objext | |
631ef239 AC |
6648 | if { (ac_try="$ac_compile" |
6649 | case "(($ac_try" in | |
6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6651 | *) ac_try_echo=$ac_try;; | |
6652 | esac | |
6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6654 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6655 | ac_status=$? |
6656 | grep -v '^ *+' conftest.er1 >conftest.err | |
6657 | rm -f conftest.er1 | |
6658 | cat conftest.err >&5 | |
6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6660 | (exit $ac_status); } && { |
6661 | test -z "$ac_c_werror_flag" || | |
6662 | test ! -s conftest.err | |
6663 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6664 | ac_lo=$ac_mid; break |
6665 | else | |
6666 | echo "$as_me: failed program was:" >&5 | |
6667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6668 | ||
631ef239 AC |
6669 | ac_hi=`expr '(' $ac_mid ')' - 1` |
6670 | if test $ac_mid -le $ac_hi; then | |
6671 | ac_lo= ac_hi= | |
6672 | break | |
6673 | fi | |
6674 | ac_mid=`expr 2 '*' $ac_mid` | |
212380e3 | 6675 | fi |
631ef239 AC |
6676 | |
6677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6678 | done |
6679 | else | |
6680 | echo "$as_me: failed program was:" >&5 | |
6681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6682 | ||
631ef239 | 6683 | ac_lo= ac_hi= |
212380e3 | 6684 | fi |
631ef239 AC |
6685 | |
6686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 6687 | fi |
631ef239 AC |
6688 | |
6689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6690 | # Binary search between lo and hi bounds. |
6691 | while test "x$ac_lo" != "x$ac_hi"; do | |
6692 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
6693 | cat >conftest.$ac_ext <<_ACEOF | |
6694 | /* confdefs.h. */ | |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
6698 | /* end confdefs.h. */ | |
6699 | $ac_includes_default | |
631ef239 | 6700 | typedef long long ac__type_sizeof_; |
212380e3 AC |
6701 | int |
6702 | main () | |
6703 | { | |
631ef239 | 6704 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
212380e3 AC |
6705 | test_array [0] = 0 |
6706 | ||
6707 | ; | |
6708 | return 0; | |
6709 | } | |
6710 | _ACEOF | |
6711 | rm -f conftest.$ac_objext | |
631ef239 AC |
6712 | if { (ac_try="$ac_compile" |
6713 | case "(($ac_try" in | |
6714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6715 | *) ac_try_echo=$ac_try;; | |
6716 | esac | |
6717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6718 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
6719 | ac_status=$? |
6720 | grep -v '^ *+' conftest.er1 >conftest.err | |
6721 | rm -f conftest.er1 | |
6722 | cat conftest.err >&5 | |
6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6724 | (exit $ac_status); } && { |
6725 | test -z "$ac_c_werror_flag" || | |
6726 | test ! -s conftest.err | |
6727 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
6728 | ac_hi=$ac_mid |
6729 | else | |
6730 | echo "$as_me: failed program was:" >&5 | |
6731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6732 | ||
631ef239 | 6733 | ac_lo=`expr '(' $ac_mid ')' + 1` |
212380e3 | 6734 | fi |
631ef239 AC |
6735 | |
6736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
6737 | done |
6738 | case $ac_lo in | |
6739 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
631ef239 AC |
6740 | '') if test "$ac_cv_type_long_long" = yes; then |
6741 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6742 | See \`config.log' for more details." >&5 |
631ef239 | 6743 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6744 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6745 | { (exit 77); exit 77; }; } |
6746 | else | |
6747 | ac_cv_sizeof_long_long=0 | |
6748 | fi ;; | |
212380e3 | 6749 | esac |
212380e3 AC |
6750 | else |
6751 | cat >conftest.$ac_ext <<_ACEOF | |
6752 | /* confdefs.h. */ | |
6753 | _ACEOF | |
6754 | cat confdefs.h >>conftest.$ac_ext | |
6755 | cat >>conftest.$ac_ext <<_ACEOF | |
6756 | /* end confdefs.h. */ | |
6757 | $ac_includes_default | |
631ef239 AC |
6758 | typedef long long ac__type_sizeof_; |
6759 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
6760 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
212380e3 AC |
6761 | #include <stdio.h> |
6762 | #include <stdlib.h> | |
6763 | int | |
6764 | main () | |
6765 | { | |
6766 | ||
6767 | FILE *f = fopen ("conftest.val", "w"); | |
6768 | if (! f) | |
631ef239 AC |
6769 | return 1; |
6770 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
212380e3 | 6771 | { |
631ef239 AC |
6772 | long int i = longval (); |
6773 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6774 | return 1; | |
212380e3 AC |
6775 | fprintf (f, "%ld\n", i); |
6776 | } | |
6777 | else | |
6778 | { | |
631ef239 AC |
6779 | unsigned long int i = ulongval (); |
6780 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
6781 | return 1; | |
212380e3 AC |
6782 | fprintf (f, "%lu\n", i); |
6783 | } | |
631ef239 | 6784 | return ferror (f) || fclose (f) != 0; |
212380e3 AC |
6785 | |
6786 | ; | |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
6790 | rm -f conftest$ac_exeext | |
631ef239 AC |
6791 | if { (ac_try="$ac_link" |
6792 | case "(($ac_try" in | |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
6796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6797 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
6798 | ac_status=$? |
6799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6800 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
6801 | { (case "(($ac_try" in |
6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6803 | *) ac_try_echo=$ac_try;; | |
6804 | esac | |
6805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6806 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
6807 | ac_status=$? |
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6809 | (exit $ac_status); }; }; then | |
6810 | ac_cv_sizeof_long_long=`cat conftest.val` | |
6811 | else | |
6812 | echo "$as_me: program exited with status $ac_status" >&5 | |
6813 | echo "$as_me: failed program was:" >&5 | |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6815 | ||
6816 | ( exit $ac_status ) | |
631ef239 AC |
6817 | if test "$ac_cv_type_long_long" = yes; then |
6818 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
212380e3 | 6819 | See \`config.log' for more details." >&5 |
631ef239 | 6820 | echo "$as_me: error: cannot compute sizeof (long long) |
212380e3 | 6821 | See \`config.log' for more details." >&2;} |
631ef239 AC |
6822 | { (exit 77); exit 77; }; } |
6823 | else | |
6824 | ac_cv_sizeof_long_long=0 | |
6825 | fi | |
212380e3 | 6826 | fi |
631ef239 | 6827 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
6828 | fi |
6829 | rm -f conftest.val | |
212380e3 | 6830 | fi |
631ef239 AC |
6831 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
6832 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
6833 | ||
6834 | ||
6835 | ||
212380e3 AC |
6836 | cat >>confdefs.h <<_ACEOF |
6837 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
6838 | _ACEOF | |
6839 | ||
6840 | ||
6841 | ||
6842 | ||
631ef239 AC |
6843 | { echo "$as_me:$LINENO: checking for library containing socket" >&5 |
6844 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; } | |
212380e3 AC |
6845 | if test "${ac_cv_search_socket+set}" = set; then |
6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6847 | else | |
6848 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
6849 | cat >conftest.$ac_ext <<_ACEOF |
6850 | /* confdefs.h. */ | |
6851 | _ACEOF | |
6852 | cat confdefs.h >>conftest.$ac_ext | |
6853 | cat >>conftest.$ac_ext <<_ACEOF | |
6854 | /* end confdefs.h. */ | |
6855 | ||
631ef239 AC |
6856 | /* Override any GCC internal prototype to avoid an error. |
6857 | Use char because int might match the return type of a GCC | |
6858 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6859 | #ifdef __cplusplus |
6860 | extern "C" | |
6861 | #endif | |
212380e3 AC |
6862 | char socket (); |
6863 | int | |
6864 | main () | |
6865 | { | |
631ef239 | 6866 | return socket (); |
212380e3 AC |
6867 | ; |
6868 | return 0; | |
6869 | } | |
6870 | _ACEOF | |
631ef239 AC |
6871 | for ac_lib in '' socket; do |
6872 | if test -z "$ac_lib"; then | |
6873 | ac_res="none required" | |
6874 | else | |
6875 | ac_res=-l$ac_lib | |
6876 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6877 | fi | |
6878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6879 | if { (ac_try="$ac_link" | |
6880 | case "(($ac_try" in | |
6881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6882 | *) ac_try_echo=$ac_try;; | |
6883 | esac | |
6884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6885 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
6886 | ac_status=$? |
6887 | grep -v '^ *+' conftest.er1 >conftest.err | |
6888 | rm -f conftest.er1 | |
6889 | cat conftest.err >&5 | |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6891 | (exit $ac_status); } && { |
6892 | test -z "$ac_c_werror_flag" || | |
6893 | test ! -s conftest.err | |
6894 | } && test -s conftest$ac_exeext && | |
6895 | $as_test_x conftest$ac_exeext; then | |
6896 | ac_cv_search_socket=$ac_res | |
212380e3 AC |
6897 | else |
6898 | echo "$as_me: failed program was:" >&5 | |
6899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6900 | ||
631ef239 | 6901 | |
212380e3 | 6902 | fi |
631ef239 AC |
6903 | |
6904 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6905 | conftest$ac_exeext | |
6906 | if test "${ac_cv_search_socket+set}" = set; then | |
6907 | break | |
6908 | fi | |
6909 | done | |
6910 | if test "${ac_cv_search_socket+set}" = set; then | |
6911 | : | |
6912 | else | |
6913 | ac_cv_search_socket=no | |
6914 | fi | |
6915 | rm conftest.$ac_ext | |
6916 | LIBS=$ac_func_search_save_LIBS | |
6917 | fi | |
6918 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 | |
6919 | echo "${ECHO_T}$ac_cv_search_socket" >&6; } | |
6920 | ac_res=$ac_cv_search_socket | |
6921 | if test "$ac_res" != no; then | |
6922 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6923 | ||
6924 | else | |
6925 | { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5 | |
6926 | echo "$as_me: error: You have no socket()! Aborting." >&2;} | |
6927 | { (exit 1); exit 1; }; } | |
6928 | fi | |
6929 | ||
6930 | ||
6931 | if test x"$SUN" = xyes; then | |
6932 | { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5 | |
6933 | echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; } | |
6934 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6936 | else | |
6937 | ac_func_search_save_LIBS=$LIBS | |
6938 | cat >conftest.$ac_ext <<_ACEOF | |
212380e3 AC |
6939 | /* confdefs.h. */ |
6940 | _ACEOF | |
6941 | cat confdefs.h >>conftest.$ac_ext | |
6942 | cat >>conftest.$ac_ext <<_ACEOF | |
6943 | /* end confdefs.h. */ | |
6944 | ||
631ef239 AC |
6945 | /* Override any GCC internal prototype to avoid an error. |
6946 | Use char because int might match the return type of a GCC | |
6947 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
6948 | #ifdef __cplusplus |
6949 | extern "C" | |
6950 | #endif | |
631ef239 | 6951 | char inet_ntoa (); |
212380e3 AC |
6952 | int |
6953 | main () | |
6954 | { | |
631ef239 | 6955 | return inet_ntoa (); |
212380e3 AC |
6956 | ; |
6957 | return 0; | |
6958 | } | |
6959 | _ACEOF | |
631ef239 AC |
6960 | for ac_lib in '' nsl; do |
6961 | if test -z "$ac_lib"; then | |
6962 | ac_res="none required" | |
6963 | else | |
6964 | ac_res=-l$ac_lib | |
6965 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6966 | fi | |
6967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6968 | if { (ac_try="$ac_link" | |
6969 | case "(($ac_try" in | |
6970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6971 | *) ac_try_echo=$ac_try;; | |
6972 | esac | |
6973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6974 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
6975 | ac_status=$? |
6976 | grep -v '^ *+' conftest.er1 >conftest.err | |
6977 | rm -f conftest.er1 | |
6978 | cat conftest.err >&5 | |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
6980 | (exit $ac_status); } && { |
6981 | test -z "$ac_c_werror_flag" || | |
6982 | test ! -s conftest.err | |
6983 | } && test -s conftest$ac_exeext && | |
6984 | $as_test_x conftest$ac_exeext; then | |
6985 | ac_cv_search_inet_ntoa=$ac_res | |
212380e3 AC |
6986 | else |
6987 | echo "$as_me: failed program was:" >&5 | |
6988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6989 | ||
631ef239 | 6990 | |
212380e3 | 6991 | fi |
631ef239 AC |
6992 | |
6993 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6994 | conftest$ac_exeext | |
6995 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
6996 | break | |
6997 | fi | |
6998 | done | |
6999 | if test "${ac_cv_search_inet_ntoa+set}" = set; then | |
7000 | : | |
7001 | else | |
7002 | ac_cv_search_inet_ntoa=no | |
212380e3 | 7003 | fi |
631ef239 | 7004 | rm conftest.$ac_ext |
212380e3 AC |
7005 | LIBS=$ac_func_search_save_LIBS |
7006 | fi | |
631ef239 AC |
7007 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5 |
7008 | echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; } | |
7009 | ac_res=$ac_cv_search_inet_ntoa | |
7010 | if test "$ac_res" != no; then | |
7011 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7012 | |
7013 | else | |
631ef239 AC |
7014 | { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5 |
7015 | echo "$as_me: error: libnsl not found! Aborting." >&2;} | |
212380e3 AC |
7016 | { (exit 1); exit 1; }; } |
7017 | fi | |
7018 | ||
631ef239 | 7019 | fi |
212380e3 | 7020 | |
631ef239 AC |
7021 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 |
7022 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
212380e3 AC |
7023 | if test "${ac_cv_type_socklen_t+set}" = set; then |
7024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7025 | else | |
7026 | cat >conftest.$ac_ext <<_ACEOF | |
7027 | /* confdefs.h. */ | |
7028 | _ACEOF | |
7029 | cat confdefs.h >>conftest.$ac_ext | |
7030 | cat >>conftest.$ac_ext <<_ACEOF | |
7031 | /* end confdefs.h. */ | |
7032 | #include <sys/types.h> | |
7033 | #include <sys/socket.h> | |
7034 | ||
631ef239 | 7035 | typedef socklen_t ac__type_new_; |
212380e3 AC |
7036 | int |
7037 | main () | |
7038 | { | |
631ef239 | 7039 | if ((ac__type_new_ *) 0) |
212380e3 | 7040 | return 0; |
631ef239 | 7041 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7042 | return 0; |
7043 | ; | |
7044 | return 0; | |
7045 | } | |
7046 | _ACEOF | |
7047 | rm -f conftest.$ac_objext | |
631ef239 AC |
7048 | if { (ac_try="$ac_compile" |
7049 | case "(($ac_try" in | |
7050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7051 | *) ac_try_echo=$ac_try;; | |
7052 | esac | |
7053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7054 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7055 | ac_status=$? |
7056 | grep -v '^ *+' conftest.er1 >conftest.err | |
7057 | rm -f conftest.er1 | |
7058 | cat conftest.err >&5 | |
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7060 | (exit $ac_status); } && { |
7061 | test -z "$ac_c_werror_flag" || | |
7062 | test ! -s conftest.err | |
7063 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7064 | ac_cv_type_socklen_t=yes |
7065 | else | |
7066 | echo "$as_me: failed program was:" >&5 | |
7067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7068 | ||
631ef239 | 7069 | ac_cv_type_socklen_t=no |
212380e3 | 7070 | fi |
631ef239 AC |
7071 | |
7072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7073 | fi |
631ef239 AC |
7074 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
7075 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
212380e3 AC |
7076 | if test $ac_cv_type_socklen_t = yes; then |
7077 | : | |
7078 | else | |
7079 | ||
7080 | cat >>confdefs.h <<\_ACEOF | |
7081 | #define socklen_t unsigned int | |
7082 | _ACEOF | |
7083 | ||
7084 | fi | |
7085 | ||
7086 | ||
631ef239 | 7087 | # Check whether --enable-ipv6 was given. |
212380e3 | 7088 | if test "${enable_ipv6+set}" = set; then |
631ef239 | 7089 | enableval=$enable_ipv6; ipv6=$enableval |
212380e3 AC |
7090 | else |
7091 | ipv6=no | |
631ef239 AC |
7092 | fi |
7093 | ||
212380e3 | 7094 | |
631ef239 AC |
7095 | { echo "$as_me:$LINENO: checking for library containing crypt" >&5 |
7096 | echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; } | |
212380e3 AC |
7097 | if test "${ac_cv_search_crypt+set}" = set; then |
7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7099 | else | |
7100 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
7101 | cat >conftest.$ac_ext <<_ACEOF |
7102 | /* confdefs.h. */ | |
7103 | _ACEOF | |
7104 | cat confdefs.h >>conftest.$ac_ext | |
7105 | cat >>conftest.$ac_ext <<_ACEOF | |
7106 | /* end confdefs.h. */ | |
7107 | ||
631ef239 AC |
7108 | /* Override any GCC internal prototype to avoid an error. |
7109 | Use char because int might match the return type of a GCC | |
7110 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7111 | #ifdef __cplusplus |
7112 | extern "C" | |
7113 | #endif | |
212380e3 AC |
7114 | char crypt (); |
7115 | int | |
7116 | main () | |
7117 | { | |
631ef239 | 7118 | return crypt (); |
212380e3 AC |
7119 | ; |
7120 | return 0; | |
7121 | } | |
7122 | _ACEOF | |
631ef239 AC |
7123 | for ac_lib in '' crypt descrypt; do |
7124 | if test -z "$ac_lib"; then | |
7125 | ac_res="none required" | |
7126 | else | |
7127 | ac_res=-l$ac_lib | |
7128 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7129 | fi | |
7130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7131 | if { (ac_try="$ac_link" | |
7132 | case "(($ac_try" in | |
7133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7134 | *) ac_try_echo=$ac_try;; | |
7135 | esac | |
7136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7137 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7138 | ac_status=$? |
7139 | grep -v '^ *+' conftest.er1 >conftest.err | |
7140 | rm -f conftest.er1 | |
7141 | cat conftest.err >&5 | |
7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7143 | (exit $ac_status); } && { |
7144 | test -z "$ac_c_werror_flag" || | |
7145 | test ! -s conftest.err | |
7146 | } && test -s conftest$ac_exeext && | |
7147 | $as_test_x conftest$ac_exeext; then | |
7148 | ac_cv_search_crypt=$ac_res | |
212380e3 AC |
7149 | else |
7150 | echo "$as_me: failed program was:" >&5 | |
7151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7152 | ||
212380e3 | 7153 | |
631ef239 | 7154 | fi |
212380e3 | 7155 | |
631ef239 AC |
7156 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7157 | conftest$ac_exeext | |
7158 | if test "${ac_cv_search_crypt+set}" = set; then | |
7159 | break | |
212380e3 | 7160 | fi |
631ef239 AC |
7161 | done |
7162 | if test "${ac_cv_search_crypt+set}" = set; then | |
7163 | : | |
7164 | else | |
7165 | ac_cv_search_crypt=no | |
212380e3 | 7166 | fi |
631ef239 | 7167 | rm conftest.$ac_ext |
212380e3 AC |
7168 | LIBS=$ac_func_search_save_LIBS |
7169 | fi | |
631ef239 AC |
7170 | { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5 |
7171 | echo "${ECHO_T}$ac_cv_search_crypt" >&6; } | |
7172 | ac_res=$ac_cv_search_crypt | |
7173 | if test "$ac_res" != no; then | |
7174 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
7175 | |
7176 | fi | |
7177 | ||
7178 | ||
7179 | CRYPT_LIB=$ac_cv_search_crypt | |
7180 | ||
7181 | if test "$CRYPT_LIB" = "none required"; then | |
7182 | unset CRYPT_LIB | |
7183 | elif test "$CRYPT_LIB" = no; then | |
7184 | unset CRYPT_LIB | |
7185 | fi | |
7186 | ||
7187 | ||
7188 | ||
7189 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
7190 | VICONF=viconf | |
7191 | else | |
7192 | VICONF="" | |
7193 | fi | |
7194 | ||
7195 | ||
7196 | ||
631ef239 AC |
7197 | { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 |
7198 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; } | |
212380e3 AC |
7199 | if test "${gcc_cv_header_string+set}" = set; then |
7200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7201 | else | |
7202 | ||
7203 | cat >conftest.$ac_ext <<_ACEOF | |
7204 | #include <string.h> | |
7205 | #include <strings.h> | |
7206 | _ACEOF | |
7207 | rm -f conftest.$ac_objext | |
631ef239 AC |
7208 | if { (ac_try="$ac_compile" |
7209 | case "(($ac_try" in | |
7210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7211 | *) ac_try_echo=$ac_try;; | |
7212 | esac | |
7213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7214 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7215 | ac_status=$? |
7216 | grep -v '^ *+' conftest.er1 >conftest.err | |
7217 | rm -f conftest.er1 | |
7218 | cat conftest.err >&5 | |
7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7220 | (exit $ac_status); } && { |
7221 | test -z "$ac_c_werror_flag" || | |
7222 | test ! -s conftest.err | |
7223 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7224 | gcc_cv_header_string=yes |
7225 | else | |
7226 | echo "$as_me: failed program was:" >&5 | |
7227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7228 | ||
631ef239 | 7229 | gcc_cv_header_string=no |
212380e3 | 7230 | fi |
631ef239 AC |
7231 | |
7232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7233 | |
7234 | fi | |
631ef239 AC |
7235 | { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 |
7236 | echo "${ECHO_T}$gcc_cv_header_string" >&6; } | |
212380e3 AC |
7237 | |
7238 | if test "$gcc_cv_header_string" = "yes"; then | |
7239 | ||
7240 | cat >>confdefs.h <<\_ACEOF | |
7241 | #define STRING_WITH_STRINGS 1 | |
7242 | _ACEOF | |
7243 | ||
7244 | fi | |
7245 | ||
631ef239 AC |
7246 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
7247 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } | |
212380e3 AC |
7248 | if test "${ac_cv_c_bigendian+set}" = set; then |
7249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7250 | else | |
7251 | # See if sys/param.h defines the BYTE_ORDER macro. | |
7252 | cat >conftest.$ac_ext <<_ACEOF | |
7253 | /* confdefs.h. */ | |
7254 | _ACEOF | |
7255 | cat confdefs.h >>conftest.$ac_ext | |
7256 | cat >>conftest.$ac_ext <<_ACEOF | |
7257 | /* end confdefs.h. */ | |
7258 | #include <sys/types.h> | |
7259 | #include <sys/param.h> | |
7260 | ||
7261 | int | |
7262 | main () | |
7263 | { | |
631ef239 AC |
7264 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
7265 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) | |
212380e3 AC |
7266 | bogus endian macros |
7267 | #endif | |
7268 | ||
7269 | ; | |
7270 | return 0; | |
7271 | } | |
7272 | _ACEOF | |
7273 | rm -f conftest.$ac_objext | |
631ef239 AC |
7274 | if { (ac_try="$ac_compile" |
7275 | case "(($ac_try" in | |
7276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7277 | *) ac_try_echo=$ac_try;; | |
7278 | esac | |
7279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7280 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7281 | ac_status=$? |
7282 | grep -v '^ *+' conftest.er1 >conftest.err | |
7283 | rm -f conftest.er1 | |
7284 | cat conftest.err >&5 | |
7285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7286 | (exit $ac_status); } && { |
7287 | test -z "$ac_c_werror_flag" || | |
7288 | test ! -s conftest.err | |
7289 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7290 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7291 | cat >conftest.$ac_ext <<_ACEOF | |
7292 | /* confdefs.h. */ | |
7293 | _ACEOF | |
7294 | cat confdefs.h >>conftest.$ac_ext | |
7295 | cat >>conftest.$ac_ext <<_ACEOF | |
7296 | /* end confdefs.h. */ | |
7297 | #include <sys/types.h> | |
7298 | #include <sys/param.h> | |
7299 | ||
7300 | int | |
7301 | main () | |
7302 | { | |
7303 | #if BYTE_ORDER != BIG_ENDIAN | |
7304 | not big endian | |
7305 | #endif | |
7306 | ||
7307 | ; | |
7308 | return 0; | |
7309 | } | |
7310 | _ACEOF | |
7311 | rm -f conftest.$ac_objext | |
631ef239 AC |
7312 | if { (ac_try="$ac_compile" |
7313 | case "(($ac_try" in | |
7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7315 | *) ac_try_echo=$ac_try;; | |
7316 | esac | |
7317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7318 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7319 | ac_status=$? |
7320 | grep -v '^ *+' conftest.er1 >conftest.err | |
7321 | rm -f conftest.er1 | |
7322 | cat conftest.err >&5 | |
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7324 | (exit $ac_status); } && { |
7325 | test -z "$ac_c_werror_flag" || | |
7326 | test ! -s conftest.err | |
7327 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7328 | ac_cv_c_bigendian=yes |
7329 | else | |
7330 | echo "$as_me: failed program was:" >&5 | |
7331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7332 | ||
631ef239 | 7333 | ac_cv_c_bigendian=no |
212380e3 | 7334 | fi |
631ef239 AC |
7335 | |
7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7337 | else |
7338 | echo "$as_me: failed program was:" >&5 | |
7339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7340 | ||
631ef239 | 7341 | # It does not; compile a test program. |
212380e3 AC |
7342 | if test "$cross_compiling" = yes; then |
7343 | # try to guess the endianness by grepping values into an object file | |
7344 | ac_cv_c_bigendian=unknown | |
7345 | cat >conftest.$ac_ext <<_ACEOF | |
7346 | /* confdefs.h. */ | |
7347 | _ACEOF | |
7348 | cat confdefs.h >>conftest.$ac_ext | |
7349 | cat >>conftest.$ac_ext <<_ACEOF | |
7350 | /* end confdefs.h. */ | |
631ef239 AC |
7351 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
7352 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
212380e3 | 7353 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
631ef239 AC |
7354 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
7355 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
212380e3 AC |
7356 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
7357 | int | |
7358 | main () | |
7359 | { | |
7360 | _ascii (); _ebcdic (); | |
7361 | ; | |
7362 | return 0; | |
7363 | } | |
7364 | _ACEOF | |
7365 | rm -f conftest.$ac_objext | |
631ef239 AC |
7366 | if { (ac_try="$ac_compile" |
7367 | case "(($ac_try" in | |
7368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7369 | *) ac_try_echo=$ac_try;; | |
7370 | esac | |
7371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7372 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7373 | ac_status=$? |
7374 | grep -v '^ *+' conftest.er1 >conftest.err | |
7375 | rm -f conftest.er1 | |
7376 | cat conftest.err >&5 | |
7377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7378 | (exit $ac_status); } && { |
7379 | test -z "$ac_c_werror_flag" || | |
7380 | test ! -s conftest.err | |
7381 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7382 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
7383 | ac_cv_c_bigendian=yes | |
7384 | fi | |
7385 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
7386 | if test "$ac_cv_c_bigendian" = unknown; then | |
7387 | ac_cv_c_bigendian=no | |
7388 | else | |
7389 | # finding both strings is unlikely to happen, but who knows? | |
7390 | ac_cv_c_bigendian=unknown | |
7391 | fi | |
7392 | fi | |
7393 | else | |
7394 | echo "$as_me: failed program was:" >&5 | |
7395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7396 | ||
631ef239 | 7397 | |
212380e3 | 7398 | fi |
631ef239 AC |
7399 | |
7400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
7401 | else |
7402 | cat >conftest.$ac_ext <<_ACEOF | |
7403 | /* confdefs.h. */ | |
7404 | _ACEOF | |
7405 | cat confdefs.h >>conftest.$ac_ext | |
7406 | cat >>conftest.$ac_ext <<_ACEOF | |
7407 | /* end confdefs.h. */ | |
631ef239 | 7408 | $ac_includes_default |
212380e3 AC |
7409 | int |
7410 | main () | |
7411 | { | |
631ef239 | 7412 | |
212380e3 AC |
7413 | /* Are we little or big endian? From Harbison&Steele. */ |
7414 | union | |
7415 | { | |
631ef239 AC |
7416 | long int l; |
7417 | char c[sizeof (long int)]; | |
212380e3 AC |
7418 | } u; |
7419 | u.l = 1; | |
631ef239 AC |
7420 | return u.c[sizeof (long int) - 1] == 1; |
7421 | ||
7422 | ; | |
7423 | return 0; | |
212380e3 AC |
7424 | } |
7425 | _ACEOF | |
7426 | rm -f conftest$ac_exeext | |
631ef239 AC |
7427 | if { (ac_try="$ac_link" |
7428 | case "(($ac_try" in | |
7429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7430 | *) ac_try_echo=$ac_try;; | |
7431 | esac | |
7432 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7433 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
7434 | ac_status=$? |
7435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7436 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
7437 | { (case "(($ac_try" in |
7438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7439 | *) ac_try_echo=$ac_try;; | |
7440 | esac | |
7441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7442 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
7443 | ac_status=$? |
7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7445 | (exit $ac_status); }; }; then | |
7446 | ac_cv_c_bigendian=no | |
7447 | else | |
7448 | echo "$as_me: program exited with status $ac_status" >&5 | |
7449 | echo "$as_me: failed program was:" >&5 | |
7450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7451 | ||
7452 | ( exit $ac_status ) | |
7453 | ac_cv_c_bigendian=yes | |
7454 | fi | |
631ef239 | 7455 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 7456 | fi |
631ef239 AC |
7457 | |
7458 | ||
212380e3 | 7459 | fi |
631ef239 AC |
7460 | |
7461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7462 | fi |
631ef239 AC |
7463 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
7464 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } | |
212380e3 AC |
7465 | case $ac_cv_c_bigendian in |
7466 | yes) | |
7467 | ||
7468 | cat >>confdefs.h <<\_ACEOF | |
7469 | #define WORDS_BIGENDIAN 1 | |
7470 | _ACEOF | |
7471 | ;; | |
7472 | no) | |
7473 | ;; | |
7474 | *) | |
7475 | { { echo "$as_me:$LINENO: error: unknown endianness | |
7476 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
7477 | echo "$as_me: error: unknown endianness | |
7478 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
7479 | { (exit 1); exit 1; }; } ;; | |
7480 | esac | |
7481 | ||
7482 | ||
7483 | if test "${ac_cv_header_stdarg_h+set}" = set; then | |
631ef239 AC |
7484 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7485 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7486 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7488 | fi | |
631ef239 AC |
7489 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7490 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7491 | else |
7492 | # Is the header compilable? | |
631ef239 AC |
7493 | { echo "$as_me:$LINENO: checking stdarg.h usability" >&5 |
7494 | echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
7495 | cat >conftest.$ac_ext <<_ACEOF |
7496 | /* confdefs.h. */ | |
7497 | _ACEOF | |
7498 | cat confdefs.h >>conftest.$ac_ext | |
7499 | cat >>conftest.$ac_ext <<_ACEOF | |
7500 | /* end confdefs.h. */ | |
7501 | $ac_includes_default | |
7502 | #include <stdarg.h> | |
7503 | _ACEOF | |
7504 | rm -f conftest.$ac_objext | |
631ef239 AC |
7505 | if { (ac_try="$ac_compile" |
7506 | case "(($ac_try" in | |
7507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7508 | *) ac_try_echo=$ac_try;; | |
7509 | esac | |
7510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7511 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7512 | ac_status=$? |
7513 | grep -v '^ *+' conftest.er1 >conftest.err | |
7514 | rm -f conftest.er1 | |
7515 | cat conftest.err >&5 | |
7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7517 | (exit $ac_status); } && { |
7518 | test -z "$ac_c_werror_flag" || | |
7519 | test ! -s conftest.err | |
7520 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7521 | ac_header_compiler=yes |
7522 | else | |
7523 | echo "$as_me: failed program was:" >&5 | |
7524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7525 | ||
631ef239 | 7526 | ac_header_compiler=no |
212380e3 | 7527 | fi |
631ef239 AC |
7528 | |
7529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7530 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7531 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
7532 | |
7533 | # Is the header present? | |
631ef239 AC |
7534 | { echo "$as_me:$LINENO: checking stdarg.h presence" >&5 |
7535 | echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
7536 | cat >conftest.$ac_ext <<_ACEOF |
7537 | /* confdefs.h. */ | |
7538 | _ACEOF | |
7539 | cat confdefs.h >>conftest.$ac_ext | |
7540 | cat >>conftest.$ac_ext <<_ACEOF | |
7541 | /* end confdefs.h. */ | |
7542 | #include <stdarg.h> | |
7543 | _ACEOF | |
631ef239 AC |
7544 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7545 | case "(($ac_try" in | |
7546 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7547 | *) ac_try_echo=$ac_try;; | |
7548 | esac | |
7549 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7550 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
7551 | ac_status=$? |
7552 | grep -v '^ *+' conftest.er1 >conftest.err | |
7553 | rm -f conftest.er1 | |
7554 | cat conftest.err >&5 | |
7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7556 | (exit $ac_status); } >/dev/null && { |
7557 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7558 | test ! -s conftest.err | |
7559 | }; then | |
212380e3 AC |
7560 | ac_header_preproc=yes |
7561 | else | |
7562 | echo "$as_me: failed program was:" >&5 | |
7563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7564 | ||
7565 | ac_header_preproc=no | |
7566 | fi | |
631ef239 | 7567 | |
212380e3 | 7568 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
7569 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7570 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
7571 | |
7572 | # So? What about this header? | |
7573 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7574 | yes:no: ) | |
7575 | { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7576 | echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7577 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5 | |
7578 | echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;} | |
7579 | ac_header_preproc=yes | |
7580 | ;; | |
7581 | no:yes:* ) | |
7582 | { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5 | |
7583 | echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;} | |
7584 | { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5 | |
7585 | echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;} | |
7586 | { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5 | |
7587 | echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;} | |
7588 | { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7589 | echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7590 | { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5 | |
7591 | echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;} | |
7592 | { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5 | |
7593 | echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 7594 | |
212380e3 AC |
7595 | ;; |
7596 | esac | |
631ef239 AC |
7597 | { echo "$as_me:$LINENO: checking for stdarg.h" >&5 |
7598 | echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; } | |
212380e3 AC |
7599 | if test "${ac_cv_header_stdarg_h+set}" = set; then |
7600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7601 | else | |
7602 | ac_cv_header_stdarg_h=$ac_header_preproc | |
7603 | fi | |
631ef239 AC |
7604 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5 |
7605 | echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; } | |
212380e3 AC |
7606 | |
7607 | fi | |
7608 | if test $ac_cv_header_stdarg_h = yes; then | |
7609 | : | |
7610 | else | |
bbe58888 VY |
7611 | { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&5 |
7612 | echo "$as_me: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&2;} | |
212380e3 AC |
7613 | { (exit 1); exit 1; }; } |
7614 | fi | |
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
7620 | ||
631ef239 AC |
7621 | { echo "$as_me:$LINENO: checking for strlcpy" >&5 |
7622 | echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; } | |
212380e3 AC |
7623 | save_CFLAGS=$CFLAGS |
7624 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
7625 | ||
7626 | cat >conftest.$ac_ext <<_ACEOF | |
7627 | /* confdefs.h. */ | |
7628 | _ACEOF | |
7629 | cat confdefs.h >>conftest.$ac_ext | |
7630 | cat >>conftest.$ac_ext <<_ACEOF | |
7631 | /* end confdefs.h. */ | |
7632 | #include <string.h> | |
7633 | #include <stdlib.h> | |
7634 | int | |
7635 | main () | |
7636 | { | |
7637 | char *a = malloc(6); | |
7638 | strlcpy(a, "hello", 6); | |
7639 | ||
7640 | ; | |
7641 | return 0; | |
7642 | } | |
7643 | _ACEOF | |
7644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7645 | if { (ac_try="$ac_link" |
7646 | case "(($ac_try" in | |
7647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7648 | *) ac_try_echo=$ac_try;; | |
7649 | esac | |
7650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7651 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7652 | ac_status=$? |
7653 | grep -v '^ *+' conftest.er1 >conftest.err | |
7654 | rm -f conftest.er1 | |
7655 | cat conftest.err >&5 | |
7656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7657 | (exit $ac_status); } && { |
7658 | test -z "$ac_c_werror_flag" || | |
7659 | test ! -s conftest.err | |
7660 | } && test -s conftest$ac_exeext && | |
7661 | $as_test_x conftest$ac_exeext; then | |
7662 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7663 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7664 | |
7665 | cat >>confdefs.h <<\_ACEOF | |
7666 | #define HAVE_STRLCPY 1 | |
7667 | _ACEOF | |
7668 | ||
7669 | else | |
7670 | echo "$as_me: failed program was:" >&5 | |
7671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7672 | ||
631ef239 AC |
7673 | { echo "$as_me:$LINENO: result: no" >&5 |
7674 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7675 | |
7676 | fi | |
631ef239 AC |
7677 | |
7678 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7679 | conftest$ac_exeext conftest.$ac_ext |
7680 | ||
631ef239 AC |
7681 | { echo "$as_me:$LINENO: checking for strlcat" >&5 |
7682 | echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; } | |
212380e3 AC |
7683 | cat >conftest.$ac_ext <<_ACEOF |
7684 | /* confdefs.h. */ | |
7685 | _ACEOF | |
7686 | cat confdefs.h >>conftest.$ac_ext | |
7687 | cat >>conftest.$ac_ext <<_ACEOF | |
7688 | /* end confdefs.h. */ | |
7689 | #include <string.h> | |
7690 | #include <stdlib.h> | |
7691 | int | |
7692 | main () | |
7693 | { | |
7694 | char *a = malloc(6); | |
7695 | a[0] = '\0'; | |
7696 | strlcat(a, "hello", 6); | |
7697 | ||
7698 | ; | |
7699 | return 0; | |
7700 | } | |
7701 | _ACEOF | |
7702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7703 | if { (ac_try="$ac_link" |
7704 | case "(($ac_try" in | |
7705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7706 | *) ac_try_echo=$ac_try;; | |
7707 | esac | |
7708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7709 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7710 | ac_status=$? |
7711 | grep -v '^ *+' conftest.er1 >conftest.err | |
7712 | rm -f conftest.er1 | |
7713 | cat conftest.err >&5 | |
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7715 | (exit $ac_status); } && { |
7716 | test -z "$ac_c_werror_flag" || | |
7717 | test ! -s conftest.err | |
7718 | } && test -s conftest$ac_exeext && | |
7719 | $as_test_x conftest$ac_exeext; then | |
7720 | { echo "$as_me:$LINENO: result: yes" >&5 | |
7721 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
7722 | |
7723 | cat >>confdefs.h <<\_ACEOF | |
7724 | #define HAVE_STRLCAT 1 | |
7725 | _ACEOF | |
7726 | ||
7727 | else | |
7728 | echo "$as_me: failed program was:" >&5 | |
7729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7730 | ||
631ef239 AC |
7731 | { echo "$as_me:$LINENO: result: no" >&5 |
7732 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
7733 | |
7734 | fi | |
631ef239 AC |
7735 | |
7736 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7737 | conftest$ac_exeext conftest.$ac_ext |
7738 | ||
7739 | CFLAGS=$save_CFLAGS | |
7740 | ||
7741 | else | |
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | for ac_func in strlcat strlcpy | |
7747 | do | |
7748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
7749 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7751 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
7752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7753 | else | |
7754 | cat >conftest.$ac_ext <<_ACEOF | |
7755 | /* confdefs.h. */ | |
7756 | _ACEOF | |
7757 | cat confdefs.h >>conftest.$ac_ext | |
7758 | cat >>conftest.$ac_ext <<_ACEOF | |
7759 | /* end confdefs.h. */ | |
7760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7762 | #define $ac_func innocuous_$ac_func | |
7763 | ||
7764 | /* System header to define __stub macros and hopefully few prototypes, | |
7765 | which can conflict with char $ac_func (); below. | |
7766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7767 | <limits.h> exists even on freestanding compilers. */ | |
7768 | ||
7769 | #ifdef __STDC__ | |
7770 | # include <limits.h> | |
7771 | #else | |
7772 | # include <assert.h> | |
7773 | #endif | |
7774 | ||
7775 | #undef $ac_func | |
7776 | ||
631ef239 AC |
7777 | /* Override any GCC internal prototype to avoid an error. |
7778 | Use char because int might match the return type of a GCC | |
7779 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
7780 | #ifdef __cplusplus |
7781 | extern "C" | |
212380e3 | 7782 | #endif |
212380e3 AC |
7783 | char $ac_func (); |
7784 | /* The GNU C library defines this for functions which it implements | |
7785 | to always fail with ENOSYS. Some functions are actually named | |
7786 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 7787 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 7788 | choke me |
212380e3 AC |
7789 | #endif |
7790 | ||
7791 | int | |
7792 | main () | |
7793 | { | |
631ef239 | 7794 | return $ac_func (); |
212380e3 AC |
7795 | ; |
7796 | return 0; | |
7797 | } | |
7798 | _ACEOF | |
7799 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
7800 | if { (ac_try="$ac_link" |
7801 | case "(($ac_try" in | |
7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7803 | *) ac_try_echo=$ac_try;; | |
7804 | esac | |
7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7806 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
7807 | ac_status=$? |
7808 | grep -v '^ *+' conftest.er1 >conftest.err | |
7809 | rm -f conftest.er1 | |
7810 | cat conftest.err >&5 | |
7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7812 | (exit $ac_status); } && { |
7813 | test -z "$ac_c_werror_flag" || | |
7814 | test ! -s conftest.err | |
7815 | } && test -s conftest$ac_exeext && | |
7816 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
7817 | eval "$as_ac_var=yes" |
7818 | else | |
7819 | echo "$as_me: failed program was:" >&5 | |
7820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7821 | ||
631ef239 | 7822 | eval "$as_ac_var=no" |
212380e3 | 7823 | fi |
631ef239 AC |
7824 | |
7825 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
7826 | conftest$ac_exeext conftest.$ac_ext |
7827 | fi | |
631ef239 AC |
7828 | ac_res=`eval echo '${'$as_ac_var'}'` |
7829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7830 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
7831 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7832 | cat >>confdefs.h <<_ACEOF | |
7833 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7834 | _ACEOF | |
7835 | ||
7836 | fi | |
7837 | done | |
7838 | ||
7839 | ||
7840 | fi | |
7841 | ||
631ef239 AC |
7842 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
7843 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
212380e3 AC |
7844 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
7845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7846 | else | |
7847 | cat >conftest.$ac_ext <<_ACEOF | |
7848 | /* confdefs.h. */ | |
7849 | _ACEOF | |
7850 | cat confdefs.h >>conftest.$ac_ext | |
7851 | cat >>conftest.$ac_ext <<_ACEOF | |
7852 | /* end confdefs.h. */ | |
7853 | $ac_includes_default | |
631ef239 | 7854 | typedef u_int32_t ac__type_new_; |
212380e3 AC |
7855 | int |
7856 | main () | |
7857 | { | |
631ef239 | 7858 | if ((ac__type_new_ *) 0) |
212380e3 | 7859 | return 0; |
631ef239 | 7860 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7861 | return 0; |
7862 | ; | |
7863 | return 0; | |
7864 | } | |
7865 | _ACEOF | |
7866 | rm -f conftest.$ac_objext | |
631ef239 AC |
7867 | if { (ac_try="$ac_compile" |
7868 | case "(($ac_try" in | |
7869 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7870 | *) ac_try_echo=$ac_try;; | |
7871 | esac | |
7872 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7873 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7874 | ac_status=$? |
7875 | grep -v '^ *+' conftest.er1 >conftest.err | |
7876 | rm -f conftest.er1 | |
7877 | cat conftest.err >&5 | |
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7879 | (exit $ac_status); } && { |
7880 | test -z "$ac_c_werror_flag" || | |
7881 | test ! -s conftest.err | |
7882 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7883 | ac_cv_type_u_int32_t=yes |
7884 | else | |
7885 | echo "$as_me: failed program was:" >&5 | |
7886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7887 | ||
631ef239 | 7888 | ac_cv_type_u_int32_t=no |
212380e3 | 7889 | fi |
631ef239 AC |
7890 | |
7891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7892 | fi |
631ef239 AC |
7893 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
7894 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
212380e3 AC |
7895 | if test $ac_cv_type_u_int32_t = yes; then |
7896 | : | |
7897 | else | |
7898 | ||
631ef239 AC |
7899 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
7900 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
212380e3 AC |
7901 | if test "${ac_cv_type_uint32_t+set}" = set; then |
7902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7903 | else | |
7904 | cat >conftest.$ac_ext <<_ACEOF | |
7905 | /* confdefs.h. */ | |
7906 | _ACEOF | |
7907 | cat confdefs.h >>conftest.$ac_ext | |
7908 | cat >>conftest.$ac_ext <<_ACEOF | |
7909 | /* end confdefs.h. */ | |
7910 | $ac_includes_default | |
631ef239 | 7911 | typedef uint32_t ac__type_new_; |
212380e3 AC |
7912 | int |
7913 | main () | |
7914 | { | |
631ef239 | 7915 | if ((ac__type_new_ *) 0) |
212380e3 | 7916 | return 0; |
631ef239 | 7917 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7918 | return 0; |
7919 | ; | |
7920 | return 0; | |
7921 | } | |
7922 | _ACEOF | |
7923 | rm -f conftest.$ac_objext | |
631ef239 AC |
7924 | if { (ac_try="$ac_compile" |
7925 | case "(($ac_try" in | |
7926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7927 | *) ac_try_echo=$ac_try;; | |
7928 | esac | |
7929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7930 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
7931 | ac_status=$? |
7932 | grep -v '^ *+' conftest.er1 >conftest.err | |
7933 | rm -f conftest.er1 | |
7934 | cat conftest.err >&5 | |
7935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
7936 | (exit $ac_status); } && { |
7937 | test -z "$ac_c_werror_flag" || | |
7938 | test ! -s conftest.err | |
7939 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
7940 | ac_cv_type_uint32_t=yes |
7941 | else | |
7942 | echo "$as_me: failed program was:" >&5 | |
7943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7944 | ||
631ef239 | 7945 | ac_cv_type_uint32_t=no |
212380e3 | 7946 | fi |
631ef239 AC |
7947 | |
7948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 7949 | fi |
631ef239 AC |
7950 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
7951 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
212380e3 AC |
7952 | if test $ac_cv_type_uint32_t = yes; then |
7953 | ||
7954 | ||
7955 | cat >>confdefs.h <<\_ACEOF | |
7956 | #define u_int32_t uint32_t | |
7957 | _ACEOF | |
7958 | ||
7959 | ||
7960 | else | |
7961 | ||
7962 | { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
7963 | echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
7964 | ||
7965 | cat >>confdefs.h <<\_ACEOF | |
7966 | #define u_int32_t unsigned long int | |
7967 | _ACEOF | |
7968 | ||
7969 | ||
7970 | fi | |
7971 | ||
7972 | ||
7973 | fi | |
7974 | ||
7975 | ||
631ef239 AC |
7976 | { echo "$as_me:$LINENO: checking for u_int16_t" >&5 |
7977 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; } | |
212380e3 AC |
7978 | if test "${ac_cv_type_u_int16_t+set}" = set; then |
7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7980 | else | |
7981 | cat >conftest.$ac_ext <<_ACEOF | |
7982 | /* confdefs.h. */ | |
7983 | _ACEOF | |
7984 | cat confdefs.h >>conftest.$ac_ext | |
7985 | cat >>conftest.$ac_ext <<_ACEOF | |
7986 | /* end confdefs.h. */ | |
7987 | $ac_includes_default | |
631ef239 | 7988 | typedef u_int16_t ac__type_new_; |
212380e3 AC |
7989 | int |
7990 | main () | |
7991 | { | |
631ef239 | 7992 | if ((ac__type_new_ *) 0) |
212380e3 | 7993 | return 0; |
631ef239 | 7994 | if (sizeof (ac__type_new_)) |
212380e3 AC |
7995 | return 0; |
7996 | ; | |
7997 | return 0; | |
7998 | } | |
7999 | _ACEOF | |
8000 | rm -f conftest.$ac_objext | |
631ef239 AC |
8001 | if { (ac_try="$ac_compile" |
8002 | case "(($ac_try" in | |
8003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8004 | *) ac_try_echo=$ac_try;; | |
8005 | esac | |
8006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8007 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8008 | ac_status=$? |
8009 | grep -v '^ *+' conftest.er1 >conftest.err | |
8010 | rm -f conftest.er1 | |
8011 | cat conftest.err >&5 | |
8012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8013 | (exit $ac_status); } && { |
8014 | test -z "$ac_c_werror_flag" || | |
8015 | test ! -s conftest.err | |
8016 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8017 | ac_cv_type_u_int16_t=yes |
8018 | else | |
8019 | echo "$as_me: failed program was:" >&5 | |
8020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8021 | ||
631ef239 | 8022 | ac_cv_type_u_int16_t=no |
212380e3 | 8023 | fi |
631ef239 AC |
8024 | |
8025 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8026 | fi |
631ef239 AC |
8027 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
8028 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; } | |
212380e3 AC |
8029 | if test $ac_cv_type_u_int16_t = yes; then |
8030 | : | |
8031 | else | |
8032 | ||
631ef239 AC |
8033 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
8034 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } | |
212380e3 AC |
8035 | if test "${ac_cv_type_uint16_t+set}" = set; then |
8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8037 | else | |
8038 | cat >conftest.$ac_ext <<_ACEOF | |
8039 | /* confdefs.h. */ | |
8040 | _ACEOF | |
8041 | cat confdefs.h >>conftest.$ac_ext | |
8042 | cat >>conftest.$ac_ext <<_ACEOF | |
8043 | /* end confdefs.h. */ | |
8044 | $ac_includes_default | |
631ef239 | 8045 | typedef uint16_t ac__type_new_; |
212380e3 AC |
8046 | int |
8047 | main () | |
8048 | { | |
631ef239 | 8049 | if ((ac__type_new_ *) 0) |
212380e3 | 8050 | return 0; |
631ef239 | 8051 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8052 | return 0; |
8053 | ; | |
8054 | return 0; | |
8055 | } | |
8056 | _ACEOF | |
8057 | rm -f conftest.$ac_objext | |
631ef239 AC |
8058 | if { (ac_try="$ac_compile" |
8059 | case "(($ac_try" in | |
8060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8061 | *) ac_try_echo=$ac_try;; | |
8062 | esac | |
8063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8064 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8065 | ac_status=$? |
8066 | grep -v '^ *+' conftest.er1 >conftest.err | |
8067 | rm -f conftest.er1 | |
8068 | cat conftest.err >&5 | |
8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8070 | (exit $ac_status); } && { |
8071 | test -z "$ac_c_werror_flag" || | |
8072 | test ! -s conftest.err | |
8073 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8074 | ac_cv_type_uint16_t=yes |
8075 | else | |
8076 | echo "$as_me: failed program was:" >&5 | |
8077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8078 | ||
631ef239 | 8079 | ac_cv_type_uint16_t=no |
212380e3 | 8080 | fi |
631ef239 AC |
8081 | |
8082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8083 | fi |
631ef239 AC |
8084 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 |
8085 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; } | |
212380e3 AC |
8086 | if test $ac_cv_type_uint16_t = yes; then |
8087 | ||
8088 | ||
8089 | cat >>confdefs.h <<\_ACEOF | |
8090 | #define u_int16_t uint16_t | |
8091 | _ACEOF | |
8092 | ||
8093 | ||
8094 | else | |
8095 | ||
8096 | { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
8097 | echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
8098 | ||
8099 | cat >>confdefs.h <<\_ACEOF | |
8100 | #define u_int16_t unsigned short int | |
8101 | _ACEOF | |
8102 | ||
8103 | ||
8104 | fi | |
8105 | ||
8106 | ||
8107 | fi | |
8108 | ||
8109 | ||
631ef239 AC |
8110 | { echo "$as_me:$LINENO: checking for in_port_t" >&5 |
8111 | echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; } | |
212380e3 AC |
8112 | if test "${ac_cv_type_in_port_t+set}" = set; then |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8114 | else | |
8115 | cat >conftest.$ac_ext <<_ACEOF | |
8116 | /* confdefs.h. */ | |
8117 | _ACEOF | |
8118 | cat confdefs.h >>conftest.$ac_ext | |
8119 | cat >>conftest.$ac_ext <<_ACEOF | |
8120 | /* end confdefs.h. */ | |
8121 | #include <sys/types.h> | |
8122 | #include <netinet/in.h> | |
8123 | ||
631ef239 | 8124 | typedef in_port_t ac__type_new_; |
212380e3 AC |
8125 | int |
8126 | main () | |
8127 | { | |
631ef239 | 8128 | if ((ac__type_new_ *) 0) |
212380e3 | 8129 | return 0; |
631ef239 | 8130 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8131 | return 0; |
8132 | ; | |
8133 | return 0; | |
8134 | } | |
8135 | _ACEOF | |
8136 | rm -f conftest.$ac_objext | |
631ef239 AC |
8137 | if { (ac_try="$ac_compile" |
8138 | case "(($ac_try" in | |
8139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8140 | *) ac_try_echo=$ac_try;; | |
8141 | esac | |
8142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8143 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8144 | ac_status=$? |
8145 | grep -v '^ *+' conftest.er1 >conftest.err | |
8146 | rm -f conftest.er1 | |
8147 | cat conftest.err >&5 | |
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8149 | (exit $ac_status); } && { |
8150 | test -z "$ac_c_werror_flag" || | |
8151 | test ! -s conftest.err | |
8152 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8153 | ac_cv_type_in_port_t=yes |
8154 | else | |
8155 | echo "$as_me: failed program was:" >&5 | |
8156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8157 | ||
631ef239 | 8158 | ac_cv_type_in_port_t=no |
212380e3 | 8159 | fi |
631ef239 AC |
8160 | |
8161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8162 | fi |
631ef239 AC |
8163 | { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5 |
8164 | echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; } | |
212380e3 AC |
8165 | if test $ac_cv_type_in_port_t = yes; then |
8166 | : | |
8167 | else | |
8168 | ||
8169 | cat >>confdefs.h <<\_ACEOF | |
8170 | #define in_port_t u_int16_t | |
8171 | _ACEOF | |
8172 | ||
8173 | fi | |
8174 | ||
8175 | ||
631ef239 AC |
8176 | { echo "$as_me:$LINENO: checking for sa_family_t" >&5 |
8177 | echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; } | |
212380e3 AC |
8178 | if test "${ac_cv_type_sa_family_t+set}" = set; then |
8179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8180 | else | |
8181 | cat >conftest.$ac_ext <<_ACEOF | |
8182 | /* confdefs.h. */ | |
8183 | _ACEOF | |
8184 | cat confdefs.h >>conftest.$ac_ext | |
8185 | cat >>conftest.$ac_ext <<_ACEOF | |
8186 | /* end confdefs.h. */ | |
8187 | #include <sys/types.h> | |
8188 | #include <sys/socket.h> | |
8189 | ||
631ef239 | 8190 | typedef sa_family_t ac__type_new_; |
212380e3 AC |
8191 | int |
8192 | main () | |
8193 | { | |
631ef239 | 8194 | if ((ac__type_new_ *) 0) |
212380e3 | 8195 | return 0; |
631ef239 | 8196 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8197 | return 0; |
8198 | ; | |
8199 | return 0; | |
8200 | } | |
8201 | _ACEOF | |
8202 | rm -f conftest.$ac_objext | |
631ef239 AC |
8203 | if { (ac_try="$ac_compile" |
8204 | case "(($ac_try" in | |
8205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8206 | *) ac_try_echo=$ac_try;; | |
8207 | esac | |
8208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8209 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8210 | ac_status=$? |
8211 | grep -v '^ *+' conftest.er1 >conftest.err | |
8212 | rm -f conftest.er1 | |
8213 | cat conftest.err >&5 | |
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8215 | (exit $ac_status); } && { |
8216 | test -z "$ac_c_werror_flag" || | |
8217 | test ! -s conftest.err | |
8218 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8219 | ac_cv_type_sa_family_t=yes |
8220 | else | |
8221 | echo "$as_me: failed program was:" >&5 | |
8222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8223 | ||
631ef239 | 8224 | ac_cv_type_sa_family_t=no |
212380e3 | 8225 | fi |
631ef239 AC |
8226 | |
8227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8228 | fi |
631ef239 AC |
8229 | { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 |
8230 | echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; } | |
212380e3 AC |
8231 | if test $ac_cv_type_sa_family_t = yes; then |
8232 | : | |
8233 | else | |
8234 | ||
8235 | cat >>confdefs.h <<\_ACEOF | |
8236 | #define sa_family_t u_int16_t | |
8237 | _ACEOF | |
8238 | ||
8239 | fi | |
8240 | ||
8241 | ||
631ef239 AC |
8242 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
8243 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
212380e3 AC |
8244 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
8245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8246 | else | |
8247 | cat >conftest.$ac_ext <<_ACEOF | |
8248 | /* confdefs.h. */ | |
8249 | _ACEOF | |
8250 | cat confdefs.h >>conftest.$ac_ext | |
8251 | cat >>conftest.$ac_ext <<_ACEOF | |
8252 | /* end confdefs.h. */ | |
8253 | $ac_includes_default | |
631ef239 | 8254 | typedef uintptr_t ac__type_new_; |
212380e3 AC |
8255 | int |
8256 | main () | |
8257 | { | |
631ef239 | 8258 | if ((ac__type_new_ *) 0) |
212380e3 | 8259 | return 0; |
631ef239 | 8260 | if (sizeof (ac__type_new_)) |
212380e3 AC |
8261 | return 0; |
8262 | ; | |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
8266 | rm -f conftest.$ac_objext | |
631ef239 AC |
8267 | if { (ac_try="$ac_compile" |
8268 | case "(($ac_try" in | |
8269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8270 | *) ac_try_echo=$ac_try;; | |
8271 | esac | |
8272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8273 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
8274 | ac_status=$? |
8275 | grep -v '^ *+' conftest.er1 >conftest.err | |
8276 | rm -f conftest.er1 | |
8277 | cat conftest.err >&5 | |
8278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8279 | (exit $ac_status); } && { |
8280 | test -z "$ac_c_werror_flag" || | |
8281 | test ! -s conftest.err | |
8282 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
8283 | ac_cv_type_uintptr_t=yes |
8284 | else | |
8285 | echo "$as_me: failed program was:" >&5 | |
8286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8287 | ||
631ef239 | 8288 | ac_cv_type_uintptr_t=no |
212380e3 | 8289 | fi |
631ef239 AC |
8290 | |
8291 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 | 8292 | fi |
631ef239 AC |
8293 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
8294 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
212380e3 AC |
8295 | if test $ac_cv_type_uintptr_t = yes; then |
8296 | ||
8297 | cat >>confdefs.h <<_ACEOF | |
8298 | #define HAVE_UINTPTR_T 1 | |
8299 | _ACEOF | |
8300 | ||
8301 | ||
8302 | fi | |
8303 | ||
8304 | ||
8305 | ||
8306 | ||
8307 | ||
8308 | ||
8309 | ||
8310 | ||
8311 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
8312 | do | |
8313 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8314 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8315 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8316 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8318 | else | |
8319 | cat >conftest.$ac_ext <<_ACEOF | |
8320 | /* confdefs.h. */ | |
8321 | _ACEOF | |
8322 | cat confdefs.h >>conftest.$ac_ext | |
8323 | cat >>conftest.$ac_ext <<_ACEOF | |
8324 | /* end confdefs.h. */ | |
8325 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8326 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8327 | #define $ac_func innocuous_$ac_func | |
8328 | ||
8329 | /* System header to define __stub macros and hopefully few prototypes, | |
8330 | which can conflict with char $ac_func (); below. | |
8331 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8332 | <limits.h> exists even on freestanding compilers. */ | |
8333 | ||
8334 | #ifdef __STDC__ | |
8335 | # include <limits.h> | |
8336 | #else | |
8337 | # include <assert.h> | |
8338 | #endif | |
8339 | ||
8340 | #undef $ac_func | |
8341 | ||
631ef239 AC |
8342 | /* Override any GCC internal prototype to avoid an error. |
8343 | Use char because int might match the return type of a GCC | |
8344 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8345 | #ifdef __cplusplus |
8346 | extern "C" | |
212380e3 | 8347 | #endif |
212380e3 AC |
8348 | char $ac_func (); |
8349 | /* The GNU C library defines this for functions which it implements | |
8350 | to always fail with ENOSYS. Some functions are actually named | |
8351 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8352 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8353 | choke me |
212380e3 AC |
8354 | #endif |
8355 | ||
8356 | int | |
8357 | main () | |
8358 | { | |
631ef239 | 8359 | return $ac_func (); |
212380e3 AC |
8360 | ; |
8361 | return 0; | |
8362 | } | |
8363 | _ACEOF | |
8364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8365 | if { (ac_try="$ac_link" |
8366 | case "(($ac_try" in | |
8367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8368 | *) ac_try_echo=$ac_try;; | |
8369 | esac | |
8370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8371 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8372 | ac_status=$? |
8373 | grep -v '^ *+' conftest.er1 >conftest.err | |
8374 | rm -f conftest.er1 | |
8375 | cat conftest.err >&5 | |
8376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8377 | (exit $ac_status); } && { |
8378 | test -z "$ac_c_werror_flag" || | |
8379 | test ! -s conftest.err | |
8380 | } && test -s conftest$ac_exeext && | |
8381 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8382 | eval "$as_ac_var=yes" |
8383 | else | |
8384 | echo "$as_me: failed program was:" >&5 | |
8385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8386 | ||
631ef239 | 8387 | eval "$as_ac_var=no" |
212380e3 | 8388 | fi |
631ef239 AC |
8389 | |
8390 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8391 | conftest$ac_exeext conftest.$ac_ext |
8392 | fi | |
631ef239 AC |
8393 | ac_res=`eval echo '${'$as_ac_var'}'` |
8394 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8395 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8396 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8397 | cat >>confdefs.h <<_ACEOF | |
8398 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8399 | _ACEOF | |
8400 | ||
8401 | fi | |
8402 | done | |
8403 | ||
8404 | ||
8405 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
8406 | # for constant arguments. Useless! | |
631ef239 AC |
8407 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
8408 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
212380e3 AC |
8409 | if test "${ac_cv_working_alloca_h+set}" = set; then |
8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8411 | else | |
8412 | cat >conftest.$ac_ext <<_ACEOF | |
8413 | /* confdefs.h. */ | |
8414 | _ACEOF | |
8415 | cat confdefs.h >>conftest.$ac_ext | |
8416 | cat >>conftest.$ac_ext <<_ACEOF | |
8417 | /* end confdefs.h. */ | |
8418 | #include <alloca.h> | |
8419 | int | |
8420 | main () | |
8421 | { | |
8422 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 8423 | if (p) return 0; |
212380e3 AC |
8424 | ; |
8425 | return 0; | |
8426 | } | |
8427 | _ACEOF | |
8428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8429 | if { (ac_try="$ac_link" |
8430 | case "(($ac_try" in | |
8431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8432 | *) ac_try_echo=$ac_try;; | |
8433 | esac | |
8434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8435 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8436 | ac_status=$? |
8437 | grep -v '^ *+' conftest.er1 >conftest.err | |
8438 | rm -f conftest.er1 | |
8439 | cat conftest.err >&5 | |
8440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8441 | (exit $ac_status); } && { |
8442 | test -z "$ac_c_werror_flag" || | |
8443 | test ! -s conftest.err | |
8444 | } && test -s conftest$ac_exeext && | |
8445 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8446 | ac_cv_working_alloca_h=yes |
8447 | else | |
8448 | echo "$as_me: failed program was:" >&5 | |
8449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8450 | ||
631ef239 | 8451 | ac_cv_working_alloca_h=no |
212380e3 | 8452 | fi |
631ef239 AC |
8453 | |
8454 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8455 | conftest$ac_exeext conftest.$ac_ext |
8456 | fi | |
631ef239 AC |
8457 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
8458 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
8459 | if test $ac_cv_working_alloca_h = yes; then |
8460 | ||
8461 | cat >>confdefs.h <<\_ACEOF | |
8462 | #define HAVE_ALLOCA_H 1 | |
8463 | _ACEOF | |
8464 | ||
8465 | fi | |
8466 | ||
631ef239 AC |
8467 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
8468 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8469 | if test "${ac_cv_func_alloca_works+set}" = set; then |
8470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8471 | else | |
8472 | cat >conftest.$ac_ext <<_ACEOF | |
8473 | /* confdefs.h. */ | |
8474 | _ACEOF | |
8475 | cat confdefs.h >>conftest.$ac_ext | |
8476 | cat >>conftest.$ac_ext <<_ACEOF | |
8477 | /* end confdefs.h. */ | |
8478 | #ifdef __GNUC__ | |
8479 | # define alloca __builtin_alloca | |
8480 | #else | |
8481 | # ifdef _MSC_VER | |
8482 | # include <malloc.h> | |
8483 | # define alloca _alloca | |
8484 | # else | |
631ef239 | 8485 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
8486 | # include <alloca.h> |
8487 | # else | |
8488 | # ifdef _AIX | |
8489 | #pragma alloca | |
8490 | # else | |
8491 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
8492 | char *alloca (); | |
8493 | # endif | |
8494 | # endif | |
8495 | # endif | |
8496 | # endif | |
8497 | #endif | |
8498 | ||
8499 | int | |
8500 | main () | |
8501 | { | |
8502 | char *p = (char *) alloca (1); | |
631ef239 | 8503 | if (p) return 0; |
212380e3 AC |
8504 | ; |
8505 | return 0; | |
8506 | } | |
8507 | _ACEOF | |
8508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8509 | if { (ac_try="$ac_link" |
8510 | case "(($ac_try" in | |
8511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8512 | *) ac_try_echo=$ac_try;; | |
8513 | esac | |
8514 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8515 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8516 | ac_status=$? |
8517 | grep -v '^ *+' conftest.er1 >conftest.err | |
8518 | rm -f conftest.er1 | |
8519 | cat conftest.err >&5 | |
8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8521 | (exit $ac_status); } && { |
8522 | test -z "$ac_c_werror_flag" || | |
8523 | test ! -s conftest.err | |
8524 | } && test -s conftest$ac_exeext && | |
8525 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8526 | ac_cv_func_alloca_works=yes |
8527 | else | |
8528 | echo "$as_me: failed program was:" >&5 | |
8529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8530 | ||
631ef239 | 8531 | ac_cv_func_alloca_works=no |
212380e3 | 8532 | fi |
631ef239 AC |
8533 | |
8534 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8535 | conftest$ac_exeext conftest.$ac_ext |
8536 | fi | |
631ef239 AC |
8537 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
8538 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
8539 | |
8540 | if test $ac_cv_func_alloca_works = yes; then | |
8541 | ||
8542 | cat >>confdefs.h <<\_ACEOF | |
8543 | #define HAVE_ALLOCA 1 | |
8544 | _ACEOF | |
8545 | ||
8546 | else | |
8547 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
8548 | # that cause trouble. Some versions do not even contain alloca or | |
8549 | # contain a buggy version. If you still want to use their alloca, | |
8550 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
8551 | ||
631ef239 | 8552 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 AC |
8553 | |
8554 | cat >>confdefs.h <<\_ACEOF | |
8555 | #define C_ALLOCA 1 | |
8556 | _ACEOF | |
8557 | ||
8558 | ||
631ef239 AC |
8559 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
8560 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
212380e3 AC |
8561 | if test "${ac_cv_os_cray+set}" = set; then |
8562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8563 | else | |
8564 | cat >conftest.$ac_ext <<_ACEOF | |
8565 | /* confdefs.h. */ | |
8566 | _ACEOF | |
8567 | cat confdefs.h >>conftest.$ac_ext | |
8568 | cat >>conftest.$ac_ext <<_ACEOF | |
8569 | /* end confdefs.h. */ | |
631ef239 | 8570 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
8571 | webecray |
8572 | #else | |
8573 | wenotbecray | |
8574 | #endif | |
8575 | ||
8576 | _ACEOF | |
8577 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8578 | $EGREP "webecray" >/dev/null 2>&1; then | |
8579 | ac_cv_os_cray=yes | |
8580 | else | |
8581 | ac_cv_os_cray=no | |
8582 | fi | |
8583 | rm -f conftest* | |
8584 | ||
8585 | fi | |
631ef239 AC |
8586 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
8587 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
212380e3 AC |
8588 | if test $ac_cv_os_cray = yes; then |
8589 | for ac_func in _getb67 GETB67 getb67; do | |
8590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
8591 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
8593 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
8594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8595 | else | |
8596 | cat >conftest.$ac_ext <<_ACEOF | |
8597 | /* confdefs.h. */ | |
8598 | _ACEOF | |
8599 | cat confdefs.h >>conftest.$ac_ext | |
8600 | cat >>conftest.$ac_ext <<_ACEOF | |
8601 | /* end confdefs.h. */ | |
8602 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
8603 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8604 | #define $ac_func innocuous_$ac_func | |
8605 | ||
8606 | /* System header to define __stub macros and hopefully few prototypes, | |
8607 | which can conflict with char $ac_func (); below. | |
8608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8609 | <limits.h> exists even on freestanding compilers. */ | |
8610 | ||
8611 | #ifdef __STDC__ | |
8612 | # include <limits.h> | |
8613 | #else | |
8614 | # include <assert.h> | |
8615 | #endif | |
8616 | ||
8617 | #undef $ac_func | |
8618 | ||
631ef239 AC |
8619 | /* Override any GCC internal prototype to avoid an error. |
8620 | Use char because int might match the return type of a GCC | |
8621 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8622 | #ifdef __cplusplus |
8623 | extern "C" | |
212380e3 | 8624 | #endif |
212380e3 AC |
8625 | char $ac_func (); |
8626 | /* The GNU C library defines this for functions which it implements | |
8627 | to always fail with ENOSYS. Some functions are actually named | |
8628 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8629 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 8630 | choke me |
212380e3 AC |
8631 | #endif |
8632 | ||
8633 | int | |
8634 | main () | |
8635 | { | |
631ef239 | 8636 | return $ac_func (); |
212380e3 AC |
8637 | ; |
8638 | return 0; | |
8639 | } | |
8640 | _ACEOF | |
8641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8642 | if { (ac_try="$ac_link" |
8643 | case "(($ac_try" in | |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8645 | *) ac_try_echo=$ac_try;; | |
8646 | esac | |
8647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8648 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8649 | ac_status=$? |
8650 | grep -v '^ *+' conftest.er1 >conftest.err | |
8651 | rm -f conftest.er1 | |
8652 | cat conftest.err >&5 | |
8653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8654 | (exit $ac_status); } && { |
8655 | test -z "$ac_c_werror_flag" || | |
8656 | test ! -s conftest.err | |
8657 | } && test -s conftest$ac_exeext && | |
8658 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8659 | eval "$as_ac_var=yes" |
8660 | else | |
8661 | echo "$as_me: failed program was:" >&5 | |
8662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8663 | ||
631ef239 | 8664 | eval "$as_ac_var=no" |
212380e3 | 8665 | fi |
631ef239 AC |
8666 | |
8667 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8668 | conftest$ac_exeext conftest.$ac_ext |
8669 | fi | |
631ef239 AC |
8670 | ac_res=`eval echo '${'$as_ac_var'}'` |
8671 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8672 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
8673 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
8674 | ||
8675 | cat >>confdefs.h <<_ACEOF | |
8676 | #define CRAY_STACKSEG_END $ac_func | |
8677 | _ACEOF | |
8678 | ||
8679 | break | |
8680 | fi | |
8681 | ||
8682 | done | |
8683 | fi | |
8684 | ||
631ef239 AC |
8685 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
8686 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
212380e3 AC |
8687 | if test "${ac_cv_c_stack_direction+set}" = set; then |
8688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8689 | else | |
8690 | if test "$cross_compiling" = yes; then | |
8691 | ac_cv_c_stack_direction=0 | |
8692 | else | |
8693 | cat >conftest.$ac_ext <<_ACEOF | |
8694 | /* confdefs.h. */ | |
8695 | _ACEOF | |
8696 | cat confdefs.h >>conftest.$ac_ext | |
8697 | cat >>conftest.$ac_ext <<_ACEOF | |
8698 | /* end confdefs.h. */ | |
631ef239 | 8699 | $ac_includes_default |
212380e3 AC |
8700 | int |
8701 | find_stack_direction () | |
8702 | { | |
8703 | static char *addr = 0; | |
8704 | auto char dummy; | |
8705 | if (addr == 0) | |
8706 | { | |
8707 | addr = &dummy; | |
8708 | return find_stack_direction (); | |
8709 | } | |
8710 | else | |
8711 | return (&dummy > addr) ? 1 : -1; | |
8712 | } | |
8713 | ||
8714 | int | |
8715 | main () | |
8716 | { | |
631ef239 | 8717 | return find_stack_direction () < 0; |
212380e3 AC |
8718 | } |
8719 | _ACEOF | |
8720 | rm -f conftest$ac_exeext | |
631ef239 AC |
8721 | if { (ac_try="$ac_link" |
8722 | case "(($ac_try" in | |
8723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8724 | *) ac_try_echo=$ac_try;; | |
8725 | esac | |
8726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8727 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
8728 | ac_status=$? |
8729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
8731 | { (case "(($ac_try" in |
8732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8733 | *) ac_try_echo=$ac_try;; | |
8734 | esac | |
8735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8736 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
8737 | ac_status=$? |
8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8739 | (exit $ac_status); }; }; then | |
8740 | ac_cv_c_stack_direction=1 | |
8741 | else | |
8742 | echo "$as_me: program exited with status $ac_status" >&5 | |
8743 | echo "$as_me: failed program was:" >&5 | |
8744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8745 | ||
8746 | ( exit $ac_status ) | |
8747 | ac_cv_c_stack_direction=-1 | |
8748 | fi | |
631ef239 | 8749 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 8750 | fi |
631ef239 AC |
8751 | |
8752 | ||
212380e3 | 8753 | fi |
631ef239 AC |
8754 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
8755 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
8756 | |
8757 | cat >>confdefs.h <<_ACEOF | |
8758 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
8759 | _ACEOF | |
8760 | ||
8761 | ||
8762 | fi | |
8763 | ||
8764 | ||
8765 | ||
631ef239 AC |
8766 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
8767 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } | |
212380e3 AC |
8768 | if test "${ac_cv_func_nanosleep+set}" = set; then |
8769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8770 | else | |
8771 | cat >conftest.$ac_ext <<_ACEOF | |
8772 | /* confdefs.h. */ | |
8773 | _ACEOF | |
8774 | cat confdefs.h >>conftest.$ac_ext | |
8775 | cat >>conftest.$ac_ext <<_ACEOF | |
8776 | /* end confdefs.h. */ | |
8777 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. | |
8778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8779 | #define nanosleep innocuous_nanosleep | |
8780 | ||
8781 | /* System header to define __stub macros and hopefully few prototypes, | |
8782 | which can conflict with char nanosleep (); below. | |
8783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8784 | <limits.h> exists even on freestanding compilers. */ | |
8785 | ||
8786 | #ifdef __STDC__ | |
8787 | # include <limits.h> | |
8788 | #else | |
8789 | # include <assert.h> | |
8790 | #endif | |
8791 | ||
8792 | #undef nanosleep | |
8793 | ||
631ef239 AC |
8794 | /* Override any GCC internal prototype to avoid an error. |
8795 | Use char because int might match the return type of a GCC | |
8796 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8797 | #ifdef __cplusplus |
8798 | extern "C" | |
212380e3 | 8799 | #endif |
212380e3 AC |
8800 | char nanosleep (); |
8801 | /* The GNU C library defines this for functions which it implements | |
8802 | to always fail with ENOSYS. Some functions are actually named | |
8803 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 8804 | #if defined __stub_nanosleep || defined __stub___nanosleep |
212380e3 | 8805 | choke me |
212380e3 AC |
8806 | #endif |
8807 | ||
8808 | int | |
8809 | main () | |
8810 | { | |
631ef239 | 8811 | return nanosleep (); |
212380e3 AC |
8812 | ; |
8813 | return 0; | |
8814 | } | |
8815 | _ACEOF | |
8816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8817 | if { (ac_try="$ac_link" |
8818 | case "(($ac_try" in | |
8819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8820 | *) ac_try_echo=$ac_try;; | |
8821 | esac | |
8822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8823 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8824 | ac_status=$? |
8825 | grep -v '^ *+' conftest.er1 >conftest.err | |
8826 | rm -f conftest.er1 | |
8827 | cat conftest.err >&5 | |
8828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8829 | (exit $ac_status); } && { |
8830 | test -z "$ac_c_werror_flag" || | |
8831 | test ! -s conftest.err | |
8832 | } && test -s conftest$ac_exeext && | |
8833 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8834 | ac_cv_func_nanosleep=yes |
8835 | else | |
8836 | echo "$as_me: failed program was:" >&5 | |
8837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8838 | ||
631ef239 | 8839 | ac_cv_func_nanosleep=no |
212380e3 | 8840 | fi |
631ef239 AC |
8841 | |
8842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8843 | conftest$ac_exeext conftest.$ac_ext |
8844 | fi | |
631ef239 AC |
8845 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
8846 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } | |
212380e3 AC |
8847 | if test $ac_cv_func_nanosleep = yes; then |
8848 | : | |
8849 | else | |
631ef239 AC |
8850 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
8851 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } | |
212380e3 AC |
8852 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
8853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8854 | else | |
8855 | ac_check_lib_save_LIBS=$LIBS | |
8856 | LIBS="-lrt $LIBS" | |
8857 | cat >conftest.$ac_ext <<_ACEOF | |
8858 | /* confdefs.h. */ | |
8859 | _ACEOF | |
8860 | cat confdefs.h >>conftest.$ac_ext | |
8861 | cat >>conftest.$ac_ext <<_ACEOF | |
8862 | /* end confdefs.h. */ | |
8863 | ||
631ef239 AC |
8864 | /* Override any GCC internal prototype to avoid an error. |
8865 | Use char because int might match the return type of a GCC | |
8866 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8867 | #ifdef __cplusplus |
8868 | extern "C" | |
8869 | #endif | |
212380e3 AC |
8870 | char nanosleep (); |
8871 | int | |
8872 | main () | |
8873 | { | |
631ef239 | 8874 | return nanosleep (); |
212380e3 AC |
8875 | ; |
8876 | return 0; | |
8877 | } | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8880 | if { (ac_try="$ac_link" |
8881 | case "(($ac_try" in | |
8882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8883 | *) ac_try_echo=$ac_try;; | |
8884 | esac | |
8885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8886 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8887 | ac_status=$? |
8888 | grep -v '^ *+' conftest.er1 >conftest.err | |
8889 | rm -f conftest.er1 | |
8890 | cat conftest.err >&5 | |
8891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8892 | (exit $ac_status); } && { |
8893 | test -z "$ac_c_werror_flag" || | |
8894 | test ! -s conftest.err | |
8895 | } && test -s conftest$ac_exeext && | |
8896 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8897 | ac_cv_lib_rt_nanosleep=yes |
8898 | else | |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8901 | ||
631ef239 | 8902 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 8903 | fi |
631ef239 AC |
8904 | |
8905 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8906 | conftest$ac_exeext conftest.$ac_ext |
8907 | LIBS=$ac_check_lib_save_LIBS | |
8908 | fi | |
631ef239 AC |
8909 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
8910 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } | |
212380e3 AC |
8911 | if test $ac_cv_lib_rt_nanosleep = yes; then |
8912 | LIBS="${LIBS} -lrt" | |
8913 | else | |
631ef239 AC |
8914 | { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 |
8915 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; } | |
212380e3 AC |
8916 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then |
8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8918 | else | |
8919 | ac_check_lib_save_LIBS=$LIBS | |
8920 | LIBS="-lposix4 $LIBS" | |
8921 | cat >conftest.$ac_ext <<_ACEOF | |
8922 | /* confdefs.h. */ | |
8923 | _ACEOF | |
8924 | cat confdefs.h >>conftest.$ac_ext | |
8925 | cat >>conftest.$ac_ext <<_ACEOF | |
8926 | /* end confdefs.h. */ | |
8927 | ||
631ef239 AC |
8928 | /* Override any GCC internal prototype to avoid an error. |
8929 | Use char because int might match the return type of a GCC | |
8930 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
8931 | #ifdef __cplusplus |
8932 | extern "C" | |
8933 | #endif | |
212380e3 AC |
8934 | char nanosleep (); |
8935 | int | |
8936 | main () | |
8937 | { | |
631ef239 | 8938 | return nanosleep (); |
212380e3 AC |
8939 | ; |
8940 | return 0; | |
8941 | } | |
8942 | _ACEOF | |
8943 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
8944 | if { (ac_try="$ac_link" |
8945 | case "(($ac_try" in | |
8946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8947 | *) ac_try_echo=$ac_try;; | |
8948 | esac | |
8949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8950 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
8951 | ac_status=$? |
8952 | grep -v '^ *+' conftest.er1 >conftest.err | |
8953 | rm -f conftest.er1 | |
8954 | cat conftest.err >&5 | |
8955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
8956 | (exit $ac_status); } && { |
8957 | test -z "$ac_c_werror_flag" || | |
8958 | test ! -s conftest.err | |
8959 | } && test -s conftest$ac_exeext && | |
8960 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
8961 | ac_cv_lib_posix4_nanosleep=yes |
8962 | else | |
8963 | echo "$as_me: failed program was:" >&5 | |
8964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8965 | ||
631ef239 | 8966 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 8967 | fi |
631ef239 AC |
8968 | |
8969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
8970 | conftest$ac_exeext conftest.$ac_ext |
8971 | LIBS=$ac_check_lib_save_LIBS | |
8972 | fi | |
631ef239 AC |
8973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 |
8974 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; } | |
212380e3 AC |
8975 | if test $ac_cv_lib_posix4_nanosleep = yes; then |
8976 | LIBS="${LIBS} -lposix4" | |
8977 | ||
8978 | fi | |
8979 | ||
8980 | fi | |
8981 | ||
8982 | fi | |
8983 | ||
8984 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
8985 | then | |
631ef239 AC |
8986 | { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5 |
8987 | echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
8988 | else |
8989 | ||
8990 | cat >>confdefs.h <<\_ACEOF | |
8991 | #define HAVE_NANOSLEEP 1 | |
8992 | _ACEOF | |
8993 | ||
8994 | fi | |
8995 | ||
631ef239 AC |
8996 | { echo "$as_me:$LINENO: checking for OpenSSL" >&5 |
8997 | echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; } | |
8998 | # Check whether --enable-openssl was given. | |
212380e3 | 8999 | if test "${enable_openssl+set}" = set; then |
631ef239 | 9000 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
9001 | else |
9002 | cf_enable_openssl="auto" | |
631ef239 AC |
9003 | fi |
9004 | ||
212380e3 AC |
9005 | |
9006 | if test "$cf_enable_openssl" != "no" ; then | |
9007 | cf_openssl_basedir="" | |
9008 | if test "$cf_enable_openssl" != "auto" && | |
9009 | test "$cf_enable_openssl" != "yes" ; then | |
9010 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
9011 | else | |
9012 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
9013 | /usr/local/openssl ; do | |
9014 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
9015 | cf_openssl_basedir="${dirs}" | |
9016 | break | |
9017 | fi | |
9018 | done | |
9019 | unset dirs | |
9020 | fi | |
9021 | if test ! -z "$cf_openssl_basedir"; then | |
9022 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
9023 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
9024 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
9025 | else | |
9026 | cf_openssl_basedir="" | |
9027 | fi | |
9028 | else | |
9029 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
9030 | cf_openssl_basedir="/usr" | |
9031 | fi | |
9032 | fi | |
9033 | ||
9034 | if test ! -z "$cf_openssl_basedir"; then | |
631ef239 AC |
9035 | { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5 |
9036 | echo "${ECHO_T}$cf_openssl_basedir" >&6; } | |
212380e3 AC |
9037 | cf_enable_openssl="yes" |
9038 | else | |
631ef239 AC |
9039 | { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5 |
9040 | echo "${ECHO_T}not found. Specify a correct path?" >&6; } | |
212380e3 AC |
9041 | cf_enable_openssl="no" |
9042 | fi | |
9043 | unset cf_openssl_basedir | |
9044 | else | |
631ef239 AC |
9045 | { echo "$as_me:$LINENO: result: disabled" >&5 |
9046 | echo "${ECHO_T}disabled" >&6; } | |
212380e3 AC |
9047 | fi |
9048 | ||
9049 | save_CPPFLAGS="$CPPFLAGS" | |
9050 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
9051 | save_LIBS="$LIBS" | |
9052 | LIBS="$LIBS $SSL_LIBS" | |
9053 | if test "$cf_enable_openssl" != no; then | |
631ef239 AC |
9054 | { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5 |
9055 | echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; } | |
212380e3 AC |
9056 | if test "$cross_compiling" = yes; then |
9057 | cf_openssl_version_ok=no | |
9058 | else | |
9059 | cat >conftest.$ac_ext <<_ACEOF | |
9060 | /* confdefs.h. */ | |
9061 | _ACEOF | |
9062 | cat confdefs.h >>conftest.$ac_ext | |
9063 | cat >>conftest.$ac_ext <<_ACEOF | |
9064 | /* end confdefs.h. */ | |
9065 | #include <openssl/opensslv.h> | |
9066 | #include <stdlib.h> | |
9067 | int | |
9068 | main () | |
9069 | { | |
9070 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
9071 | exit(0); else exit(1); | |
9072 | ; | |
9073 | return 0; | |
9074 | } | |
9075 | _ACEOF | |
9076 | rm -f conftest$ac_exeext | |
631ef239 AC |
9077 | if { (ac_try="$ac_link" |
9078 | case "(($ac_try" in | |
9079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9080 | *) ac_try_echo=$ac_try;; | |
9081 | esac | |
9082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9083 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
9084 | ac_status=$? |
9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9086 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
9087 | { (case "(($ac_try" in |
9088 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9089 | *) ac_try_echo=$ac_try;; | |
9090 | esac | |
9091 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9092 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
9093 | ac_status=$? |
9094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9095 | (exit $ac_status); }; }; then | |
9096 | cf_openssl_version_ok=yes | |
9097 | else | |
9098 | echo "$as_me: program exited with status $ac_status" >&5 | |
9099 | echo "$as_me: failed program was:" >&5 | |
9100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9101 | ||
9102 | ( exit $ac_status ) | |
9103 | cf_openssl_version_ok=no | |
9104 | fi | |
631ef239 | 9105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
9106 | fi |
9107 | ||
631ef239 AC |
9108 | |
9109 | ||
212380e3 | 9110 | if test "$cf_openssl_version_ok" = yes; then |
631ef239 AC |
9111 | { echo "$as_me:$LINENO: result: found" >&5 |
9112 | echo "${ECHO_T}found" >&6; } | |
212380e3 AC |
9113 | |
9114 | ENCSPEED=encspeed | |
9115 | ||
9116 | ||
9117 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
9118 | ||
631ef239 AC |
9119 | { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5 |
9120 | echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; } | |
212380e3 AC |
9121 | if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then |
9122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9123 | else | |
9124 | ac_check_lib_save_LIBS=$LIBS | |
9125 | LIBS="-lcrypto $LIBS" | |
9126 | cat >conftest.$ac_ext <<_ACEOF | |
9127 | /* confdefs.h. */ | |
9128 | _ACEOF | |
9129 | cat confdefs.h >>conftest.$ac_ext | |
9130 | cat >>conftest.$ac_ext <<_ACEOF | |
9131 | /* end confdefs.h. */ | |
9132 | ||
631ef239 AC |
9133 | /* Override any GCC internal prototype to avoid an error. |
9134 | Use char because int might match the return type of a GCC | |
9135 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9136 | #ifdef __cplusplus |
9137 | extern "C" | |
9138 | #endif | |
212380e3 AC |
9139 | char RSA_free (); |
9140 | int | |
9141 | main () | |
9142 | { | |
631ef239 | 9143 | return RSA_free (); |
212380e3 AC |
9144 | ; |
9145 | return 0; | |
9146 | } | |
9147 | _ACEOF | |
9148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9149 | if { (ac_try="$ac_link" |
9150 | case "(($ac_try" in | |
9151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9152 | *) ac_try_echo=$ac_try;; | |
9153 | esac | |
9154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9155 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9156 | ac_status=$? |
9157 | grep -v '^ *+' conftest.er1 >conftest.err | |
9158 | rm -f conftest.er1 | |
9159 | cat conftest.err >&5 | |
9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9161 | (exit $ac_status); } && { |
9162 | test -z "$ac_c_werror_flag" || | |
9163 | test ! -s conftest.err | |
9164 | } && test -s conftest$ac_exeext && | |
9165 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9166 | ac_cv_lib_crypto_RSA_free=yes |
9167 | else | |
9168 | echo "$as_me: failed program was:" >&5 | |
9169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9170 | ||
631ef239 | 9171 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 9172 | fi |
631ef239 AC |
9173 | |
9174 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9175 | conftest$ac_exeext conftest.$ac_ext |
9176 | LIBS=$ac_check_lib_save_LIBS | |
9177 | fi | |
631ef239 AC |
9178 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5 |
9179 | echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; } | |
212380e3 AC |
9180 | if test $ac_cv_lib_crypto_RSA_free = yes; then |
9181 | cat >>confdefs.h <<_ACEOF | |
9182 | #define HAVE_LIBCRYPTO 1 | |
9183 | _ACEOF | |
9184 | ||
9185 | LIBS="-lcrypto $LIBS" | |
9186 | ||
9187 | fi | |
9188 | ||
9189 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
9190 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
9191 | else | |
631ef239 AC |
9192 | { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5 |
9193 | echo "${ECHO_T}no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
9194 | fi |
9195 | fi | |
9196 | ||
9197 | CPPFLAGS="$save_CPPFLAGS" | |
9198 | LIBS="$save_LIBS" | |
9199 | ||
9200 | ||
9201 | ||
9202 | ||
9203 | ||
631ef239 | 9204 | # Check whether --with-zlib-path was given. |
212380e3 | 9205 | if test "${with_zlib_path+set}" = set; then |
631ef239 AC |
9206 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
9207 | fi | |
212380e3 | 9208 | |
631ef239 AC |
9209 | |
9210 | # Check whether --enable-zlib was given. | |
212380e3 | 9211 | if test "${enable_zlib+set}" = set; then |
631ef239 | 9212 | enableval=$enable_zlib; zlib=$enableval |
212380e3 AC |
9213 | else |
9214 | zlib=yes | |
631ef239 AC |
9215 | fi |
9216 | ||
212380e3 AC |
9217 | |
9218 | if test "$zlib" = yes; then | |
9219 | ||
9220 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
631ef239 AC |
9221 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9222 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9223 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9225 | fi | |
631ef239 AC |
9226 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9227 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9228 | else |
9229 | # Is the header compilable? | |
631ef239 AC |
9230 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 |
9231 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
9232 | cat >conftest.$ac_ext <<_ACEOF |
9233 | /* confdefs.h. */ | |
9234 | _ACEOF | |
9235 | cat confdefs.h >>conftest.$ac_ext | |
9236 | cat >>conftest.$ac_ext <<_ACEOF | |
9237 | /* end confdefs.h. */ | |
9238 | $ac_includes_default | |
9239 | #include <zlib.h> | |
9240 | _ACEOF | |
9241 | rm -f conftest.$ac_objext | |
631ef239 AC |
9242 | if { (ac_try="$ac_compile" |
9243 | case "(($ac_try" in | |
9244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9245 | *) ac_try_echo=$ac_try;; | |
9246 | esac | |
9247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9248 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
9249 | ac_status=$? |
9250 | grep -v '^ *+' conftest.er1 >conftest.err | |
9251 | rm -f conftest.er1 | |
9252 | cat conftest.err >&5 | |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9254 | (exit $ac_status); } && { |
9255 | test -z "$ac_c_werror_flag" || | |
9256 | test ! -s conftest.err | |
9257 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
9258 | ac_header_compiler=yes |
9259 | else | |
9260 | echo "$as_me: failed program was:" >&5 | |
9261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9262 | ||
631ef239 | 9263 | ac_header_compiler=no |
212380e3 | 9264 | fi |
631ef239 AC |
9265 | |
9266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9267 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9268 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
9269 | |
9270 | # Is the header present? | |
631ef239 AC |
9271 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 |
9272 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
9273 | cat >conftest.$ac_ext <<_ACEOF |
9274 | /* confdefs.h. */ | |
9275 | _ACEOF | |
9276 | cat confdefs.h >>conftest.$ac_ext | |
9277 | cat >>conftest.$ac_ext <<_ACEOF | |
9278 | /* end confdefs.h. */ | |
9279 | #include <zlib.h> | |
9280 | _ACEOF | |
631ef239 AC |
9281 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9282 | case "(($ac_try" in | |
9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9284 | *) ac_try_echo=$ac_try;; | |
9285 | esac | |
9286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9287 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
9288 | ac_status=$? |
9289 | grep -v '^ *+' conftest.er1 >conftest.err | |
9290 | rm -f conftest.er1 | |
9291 | cat conftest.err >&5 | |
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9293 | (exit $ac_status); } >/dev/null && { |
9294 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9295 | test ! -s conftest.err | |
9296 | }; then | |
212380e3 AC |
9297 | ac_header_preproc=yes |
9298 | else | |
9299 | echo "$as_me: failed program was:" >&5 | |
9300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9301 | ||
9302 | ac_header_preproc=no | |
9303 | fi | |
631ef239 | 9304 | |
212380e3 | 9305 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
9306 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9307 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
9308 | |
9309 | # So? What about this header? | |
9310 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9311 | yes:no: ) | |
9312 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9313 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9314 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | |
9315 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
9316 | ac_header_preproc=yes | |
9317 | ;; | |
9318 | no:yes:* ) | |
9319 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
9320 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
9321 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
9322 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
9323 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
9324 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
9325 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9326 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
9327 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
9328 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
9329 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | |
9330 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 9331 | |
212380e3 AC |
9332 | ;; |
9333 | esac | |
631ef239 AC |
9334 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 |
9335 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | |
212380e3 AC |
9336 | if test "${ac_cv_header_zlib_h+set}" = set; then |
9337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9338 | else | |
9339 | ac_cv_header_zlib_h=$ac_header_preproc | |
9340 | fi | |
631ef239 AC |
9341 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
9342 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | |
212380e3 AC |
9343 | |
9344 | fi | |
9345 | if test $ac_cv_header_zlib_h = yes; then | |
9346 | ||
631ef239 AC |
9347 | { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5 |
9348 | echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; } | |
212380e3 AC |
9349 | if test "${ac_cv_lib_z_zlibVersion+set}" = set; then |
9350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9351 | else | |
9352 | ac_check_lib_save_LIBS=$LIBS | |
9353 | LIBS="-lz $LIBS" | |
9354 | cat >conftest.$ac_ext <<_ACEOF | |
9355 | /* confdefs.h. */ | |
9356 | _ACEOF | |
9357 | cat confdefs.h >>conftest.$ac_ext | |
9358 | cat >>conftest.$ac_ext <<_ACEOF | |
9359 | /* end confdefs.h. */ | |
9360 | ||
631ef239 AC |
9361 | /* Override any GCC internal prototype to avoid an error. |
9362 | Use char because int might match the return type of a GCC | |
9363 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9364 | #ifdef __cplusplus |
9365 | extern "C" | |
9366 | #endif | |
212380e3 AC |
9367 | char zlibVersion (); |
9368 | int | |
9369 | main () | |
9370 | { | |
631ef239 | 9371 | return zlibVersion (); |
212380e3 AC |
9372 | ; |
9373 | return 0; | |
9374 | } | |
9375 | _ACEOF | |
9376 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9377 | if { (ac_try="$ac_link" |
9378 | case "(($ac_try" in | |
9379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9380 | *) ac_try_echo=$ac_try;; | |
9381 | esac | |
9382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9383 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9384 | ac_status=$? |
9385 | grep -v '^ *+' conftest.er1 >conftest.err | |
9386 | rm -f conftest.er1 | |
9387 | cat conftest.err >&5 | |
9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9389 | (exit $ac_status); } && { |
9390 | test -z "$ac_c_werror_flag" || | |
9391 | test ! -s conftest.err | |
9392 | } && test -s conftest$ac_exeext && | |
9393 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
9394 | ac_cv_lib_z_zlibVersion=yes |
9395 | else | |
9396 | echo "$as_me: failed program was:" >&5 | |
9397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9398 | ||
631ef239 | 9399 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 9400 | fi |
631ef239 AC |
9401 | |
9402 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
9403 | conftest$ac_exeext conftest.$ac_ext |
9404 | LIBS=$ac_check_lib_save_LIBS | |
9405 | fi | |
631ef239 AC |
9406 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5 |
9407 | echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; } | |
212380e3 AC |
9408 | if test $ac_cv_lib_z_zlibVersion = yes; then |
9409 | ||
9410 | ZLIB_LD=-lz | |
9411 | ||
9412 | ||
9413 | cat >>confdefs.h <<\_ACEOF | |
9414 | #define HAVE_LIBZ 1 | |
9415 | _ACEOF | |
9416 | ||
9417 | ||
9418 | else | |
9419 | zlib=no | |
9420 | fi | |
9421 | ||
9422 | ||
9423 | else | |
9424 | zlib=no | |
9425 | fi | |
9426 | ||
9427 | ||
9428 | ||
9429 | fi | |
9430 | ||
9431 | ||
c1c5fdc4 AC |
9432 | # Check whether --enable-ports was given. |
9433 | if test "${enable_ports+set}" = set; then | |
9434 | enableval=$enable_ports; if test $enableval = yes; then | |
9435 | SELECT_TYPE_EXPLICIT="ports" | |
9436 | else | |
9437 | use_ports=no | |
9438 | fi | |
9439 | ||
9440 | fi | |
9441 | ||
9442 | ||
631ef239 | 9443 | # Check whether --enable-poll was given. |
212380e3 | 9444 | if test "${enable_poll+set}" = set; then |
631ef239 | 9445 | enableval=$enable_poll; if test $enableval = yes; then |
212380e3 AC |
9446 | SELECT_TYPE_EXPLICIT="poll" |
9447 | else | |
9448 | use_poll=no | |
9449 | fi | |
9450 | ||
631ef239 AC |
9451 | fi |
9452 | ||
212380e3 | 9453 | |
631ef239 | 9454 | # Check whether --enable-select was given. |
212380e3 | 9455 | if test "${enable_select+set}" = set; then |
631ef239 | 9456 | enableval=$enable_select; if test $enableval = yes; then |
212380e3 AC |
9457 | SELECT_TYPE_EXPLICIT="select" |
9458 | else | |
9459 | use_select=no | |
9460 | fi | |
9461 | ||
631ef239 AC |
9462 | fi |
9463 | ||
212380e3 | 9464 | |
631ef239 | 9465 | # Check whether --enable-kqueue was given. |
212380e3 | 9466 | if test "${enable_kqueue+set}" = set; then |
631ef239 | 9467 | enableval=$enable_kqueue; if test $enableval = yes; then |
212380e3 AC |
9468 | SELECT_TYPE_EXPLICIT="kqueue" |
9469 | else | |
9470 | use_kqueue=no | |
9471 | fi | |
9472 | ||
631ef239 AC |
9473 | fi |
9474 | ||
212380e3 | 9475 | |
631ef239 | 9476 | # Check whether --enable-epoll was given. |
212380e3 | 9477 | if test "${enable_epoll+set}" = set; then |
631ef239 | 9478 | enableval=$enable_epoll; if test $enableval = yes; then |
212380e3 | 9479 | SELECT_TYPE_EXPLICIT="epoll" |
3ad1a781 JT |
9480 | |
9481 | for ac_func in epoll_ctl | |
9482 | do | |
9483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9484 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9486 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3ad1a781 JT |
9487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9488 | else | |
9489 | cat >conftest.$ac_ext <<_ACEOF | |
9490 | /* confdefs.h. */ | |
9491 | _ACEOF | |
9492 | cat confdefs.h >>conftest.$ac_ext | |
9493 | cat >>conftest.$ac_ext <<_ACEOF | |
9494 | /* end confdefs.h. */ | |
9495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9497 | #define $ac_func innocuous_$ac_func | |
9498 | ||
9499 | /* System header to define __stub macros and hopefully few prototypes, | |
9500 | which can conflict with char $ac_func (); below. | |
9501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9502 | <limits.h> exists even on freestanding compilers. */ | |
9503 | ||
9504 | #ifdef __STDC__ | |
9505 | # include <limits.h> | |
9506 | #else | |
9507 | # include <assert.h> | |
9508 | #endif | |
9509 | ||
9510 | #undef $ac_func | |
9511 | ||
631ef239 AC |
9512 | /* Override any GCC internal prototype to avoid an error. |
9513 | Use char because int might match the return type of a GCC | |
9514 | builtin and then its argument prototype would still apply. */ | |
3ad1a781 JT |
9515 | #ifdef __cplusplus |
9516 | extern "C" | |
3ad1a781 | 9517 | #endif |
3ad1a781 JT |
9518 | char $ac_func (); |
9519 | /* The GNU C library defines this for functions which it implements | |
9520 | to always fail with ENOSYS. Some functions are actually named | |
9521 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9522 | #if defined __stub_$ac_func || defined __stub___$ac_func |
3ad1a781 | 9523 | choke me |
3ad1a781 JT |
9524 | #endif |
9525 | ||
9526 | int | |
9527 | main () | |
9528 | { | |
631ef239 | 9529 | return $ac_func (); |
3ad1a781 JT |
9530 | ; |
9531 | return 0; | |
9532 | } | |
9533 | _ACEOF | |
9534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9535 | if { (ac_try="$ac_link" |
9536 | case "(($ac_try" in | |
9537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9538 | *) ac_try_echo=$ac_try;; | |
9539 | esac | |
9540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9541 | (eval "$ac_link") 2>conftest.er1 | |
3ad1a781 JT |
9542 | ac_status=$? |
9543 | grep -v '^ *+' conftest.er1 >conftest.err | |
9544 | rm -f conftest.er1 | |
9545 | cat conftest.err >&5 | |
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
9547 | (exit $ac_status); } && { |
9548 | test -z "$ac_c_werror_flag" || | |
9549 | test ! -s conftest.err | |
9550 | } && test -s conftest$ac_exeext && | |
9551 | $as_test_x conftest$ac_exeext; then | |
3ad1a781 JT |
9552 | eval "$as_ac_var=yes" |
9553 | else | |
9554 | echo "$as_me: failed program was:" >&5 | |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9556 | ||
631ef239 | 9557 | eval "$as_ac_var=no" |
3ad1a781 | 9558 | fi |
631ef239 AC |
9559 | |
9560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3ad1a781 JT |
9561 | conftest$ac_exeext conftest.$ac_ext |
9562 | fi | |
631ef239 AC |
9563 | ac_res=`eval echo '${'$as_ac_var'}'` |
9564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9565 | echo "${ECHO_T}$ac_res" >&6; } | |
3ad1a781 JT |
9566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
9567 | cat >>confdefs.h <<_ACEOF | |
9568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9569 | _ACEOF | |
9570 | haveepoll=yes | |
9571 | else | |
9572 | haveepoll=no | |
9573 | fi | |
9574 | done | |
9575 | ||
212380e3 AC |
9576 | else |
9577 | use_epoll=no | |
9578 | fi | |
9579 | ||
631ef239 AC |
9580 | fi |
9581 | ||
212380e3 AC |
9582 | |
9583 | ||
631ef239 AC |
9584 | { echo "$as_me:$LINENO: checking whether to modify confdir" >&5 |
9585 | echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; } | |
212380e3 | 9586 | |
631ef239 | 9587 | # Check whether --with-confdir was given. |
212380e3 | 9588 | if test "${with_confdir+set}" = set; then |
631ef239 AC |
9589 | withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'` |
9590 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9591 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9592 | |
9593 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9594 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9595 | ac_define_dir=`eval echo $confdir` | |
9596 | ac_define_dir=`eval echo $ac_define_dir` | |
9597 | ETC_DIR="$ac_define_dir" | |
9598 | ||
9599 | ||
9600 | cat >>confdefs.h <<_ACEOF | |
9601 | #define ETC_DIR "$ac_define_dir" | |
9602 | _ACEOF | |
9603 | ||
9604 | ||
9605 | ||
9606 | ||
9607 | confdir=`( | |
9608 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9609 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9610 | eval echo \""$confdir"\" | |
9611 | )` | |
9612 | ||
9613 | ||
9614 | else | |
9615 | confdir='${prefix}/etc' | |
631ef239 AC |
9616 | { echo "$as_me:$LINENO: result: no" >&5 |
9617 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9618 | |
9619 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9620 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9621 | ac_define_dir=`eval echo $confdir` | |
9622 | ac_define_dir=`eval echo $ac_define_dir` | |
9623 | ETC_DIR="$ac_define_dir" | |
9624 | ||
9625 | ||
9626 | cat >>confdefs.h <<_ACEOF | |
9627 | #define ETC_DIR "$ac_define_dir" | |
9628 | _ACEOF | |
9629 | ||
9630 | ||
9631 | ||
9632 | ||
9633 | confdir=`( | |
9634 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9635 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9636 | eval echo \""$confdir"\" | |
9637 | )` | |
9638 | ||
9639 | ||
9640 | ||
631ef239 AC |
9641 | fi |
9642 | ||
212380e3 AC |
9643 | |
9644 | ||
631ef239 AC |
9645 | { echo "$as_me:$LINENO: checking whether to modify logdir" >&5 |
9646 | echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; } | |
212380e3 | 9647 | |
631ef239 | 9648 | # Check whether --with-logdir was given. |
212380e3 | 9649 | if test "${with_logdir+set}" = set; then |
631ef239 AC |
9650 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
9651 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9652 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9653 | |
9654 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9655 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9656 | ac_define_dir=`eval echo $logdir` | |
9657 | ac_define_dir=`eval echo $ac_define_dir` | |
9658 | LOG_DIR="$ac_define_dir" | |
9659 | ||
9660 | ||
9661 | cat >>confdefs.h <<_ACEOF | |
9662 | #define LOG_DIR "$ac_define_dir" | |
9663 | _ACEOF | |
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | logdir=`( | |
9669 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9670 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9671 | eval echo \""$logdir"\" | |
9672 | )` | |
9673 | ||
9674 | ||
9675 | else | |
9676 | logdir='${prefix}/logs' | |
631ef239 AC |
9677 | { echo "$as_me:$LINENO: result: no" >&5 |
9678 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9679 | |
9680 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9681 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9682 | ac_define_dir=`eval echo $logdir` | |
9683 | ac_define_dir=`eval echo $ac_define_dir` | |
9684 | LOG_DIR="$ac_define_dir" | |
9685 | ||
9686 | ||
9687 | cat >>confdefs.h <<_ACEOF | |
9688 | #define LOG_DIR "$ac_define_dir" | |
9689 | _ACEOF | |
9690 | ||
9691 | ||
9692 | ||
9693 | ||
9694 | logdir=`( | |
9695 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9696 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9697 | eval echo \""$logdir"\" | |
9698 | )` | |
9699 | ||
9700 | ||
9701 | ||
631ef239 AC |
9702 | fi |
9703 | ||
212380e3 AC |
9704 | |
9705 | ||
631ef239 AC |
9706 | { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5 |
9707 | echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; } | |
212380e3 | 9708 | |
631ef239 | 9709 | # Check whether --with-helpdir was given. |
212380e3 | 9710 | if test "${with_helpdir+set}" = set; then |
631ef239 AC |
9711 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
9712 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9713 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9714 | |
9715 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9716 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9717 | ac_define_dir=`eval echo $helpdir` | |
9718 | ac_define_dir=`eval echo $ac_define_dir` | |
9719 | HELP_DIR="$ac_define_dir" | |
9720 | ||
9721 | ||
9722 | cat >>confdefs.h <<_ACEOF | |
9723 | #define HELP_DIR "$ac_define_dir" | |
9724 | _ACEOF | |
9725 | ||
9726 | ||
9727 | ||
9728 | ||
9729 | helpdir=`( | |
9730 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9731 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9732 | eval echo \""$helpdir"\" | |
9733 | )` | |
9734 | ||
9735 | ||
9736 | else | |
9737 | helpdir='${prefix}/help' | |
631ef239 AC |
9738 | { echo "$as_me:$LINENO: result: no" >&5 |
9739 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9740 | |
9741 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9743 | ac_define_dir=`eval echo $helpdir` | |
9744 | ac_define_dir=`eval echo $ac_define_dir` | |
9745 | HELP_DIR="$ac_define_dir" | |
9746 | ||
9747 | ||
9748 | cat >>confdefs.h <<_ACEOF | |
9749 | #define HELP_DIR "$ac_define_dir" | |
9750 | _ACEOF | |
9751 | ||
9752 | ||
9753 | ||
9754 | ||
9755 | helpdir=`( | |
9756 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9757 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9758 | eval echo \""$helpdir"\" | |
9759 | )` | |
9760 | ||
9761 | ||
9762 | ||
631ef239 AC |
9763 | fi |
9764 | ||
212380e3 AC |
9765 | |
9766 | ||
631ef239 AC |
9767 | { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5 |
9768 | echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; } | |
212380e3 | 9769 | |
631ef239 | 9770 | # Check whether --with-moduledir was given. |
212380e3 | 9771 | if test "${with_moduledir+set}" = set; then |
631ef239 AC |
9772 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
9773 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9774 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
9775 | |
9776 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9777 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9778 | ac_define_dir=`eval echo $moduledir` | |
9779 | ac_define_dir=`eval echo $ac_define_dir` | |
9780 | MODULE_DIR="$ac_define_dir" | |
9781 | ||
9782 | ||
9783 | cat >>confdefs.h <<_ACEOF | |
9784 | #define MODULE_DIR "$ac_define_dir" | |
9785 | _ACEOF | |
9786 | ||
9787 | ||
9788 | ||
9789 | ||
9790 | moduledir=`( | |
9791 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9792 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9793 | eval echo \""$moduledir"\" | |
9794 | )` | |
9795 | ||
9796 | ||
9797 | else | |
9798 | moduledir='${prefix}/modules' | |
631ef239 AC |
9799 | { echo "$as_me:$LINENO: result: no" >&5 |
9800 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
9801 | |
9802 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9803 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9804 | ac_define_dir=`eval echo $moduledir` | |
9805 | ac_define_dir=`eval echo $ac_define_dir` | |
9806 | MODULE_DIR="$ac_define_dir" | |
9807 | ||
9808 | ||
9809 | cat >>confdefs.h <<_ACEOF | |
9810 | #define MODULE_DIR "$ac_define_dir" | |
9811 | _ACEOF | |
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | moduledir=`( | |
9817 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
9818 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
9819 | eval echo \""$moduledir"\" | |
9820 | )` | |
9821 | ||
9822 | ||
9823 | ||
631ef239 AC |
9824 | fi |
9825 | ||
212380e3 AC |
9826 | |
9827 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
9828 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
9829 | echo "Forcing $SELECT_TYPE to be enabled" | |
9830 | else | |
9831 | ||
c1c5fdc4 AC |
9832 | if test ! "x$use_ports" = "xno"; then |
9833 | ||
9834 | for ac_func in port_getn | |
9835 | do | |
9836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9837 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9839 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9841 | else | |
9842 | cat >conftest.$ac_ext <<_ACEOF | |
9843 | /* confdefs.h. */ | |
9844 | _ACEOF | |
9845 | cat confdefs.h >>conftest.$ac_ext | |
9846 | cat >>conftest.$ac_ext <<_ACEOF | |
9847 | /* end confdefs.h. */ | |
9848 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9850 | #define $ac_func innocuous_$ac_func | |
9851 | ||
9852 | /* System header to define __stub macros and hopefully few prototypes, | |
9853 | which can conflict with char $ac_func (); below. | |
9854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9855 | <limits.h> exists even on freestanding compilers. */ | |
9856 | ||
9857 | #ifdef __STDC__ | |
9858 | # include <limits.h> | |
9859 | #else | |
9860 | # include <assert.h> | |
9861 | #endif | |
9862 | ||
9863 | #undef $ac_func | |
9864 | ||
9865 | /* Override any GCC internal prototype to avoid an error. | |
9866 | Use char because int might match the return type of a GCC | |
9867 | builtin and then its argument prototype would still apply. */ | |
9868 | #ifdef __cplusplus | |
9869 | extern "C" | |
9870 | #endif | |
9871 | char $ac_func (); | |
9872 | /* The GNU C library defines this for functions which it implements | |
9873 | to always fail with ENOSYS. Some functions are actually named | |
9874 | something starting with __ and the normal name is an alias. */ | |
9875 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
9876 | choke me | |
9877 | #endif | |
9878 | ||
9879 | int | |
9880 | main () | |
9881 | { | |
9882 | return $ac_func (); | |
9883 | ; | |
9884 | return 0; | |
9885 | } | |
9886 | _ACEOF | |
9887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9888 | if { (ac_try="$ac_link" | |
9889 | case "(($ac_try" in | |
9890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9891 | *) ac_try_echo=$ac_try;; | |
9892 | esac | |
9893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9894 | (eval "$ac_link") 2>conftest.er1 | |
9895 | ac_status=$? | |
9896 | grep -v '^ *+' conftest.er1 >conftest.err | |
9897 | rm -f conftest.er1 | |
9898 | cat conftest.err >&5 | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); } && { | |
9901 | test -z "$ac_c_werror_flag" || | |
9902 | test ! -s conftest.err | |
9903 | } && test -s conftest$ac_exeext && | |
9904 | $as_test_x conftest$ac_exeext; then | |
9905 | eval "$as_ac_var=yes" | |
9906 | else | |
9907 | echo "$as_me: failed program was:" >&5 | |
9908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9909 | ||
9910 | eval "$as_ac_var=no" | |
9911 | fi | |
9912 | ||
9913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9914 | conftest$ac_exeext conftest.$ac_ext | |
9915 | fi | |
9916 | ac_res=`eval echo '${'$as_ac_var'}'` | |
9917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9918 | echo "${ECHO_T}$ac_res" >&6; } | |
9919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9920 | cat >>confdefs.h <<_ACEOF | |
9921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9922 | _ACEOF | |
9923 | haveports=yes | |
9924 | else | |
9925 | haveports=no | |
9926 | fi | |
9927 | done | |
9928 | ||
9929 | if test "x$haveports" = "xyes" ; then | |
9930 | SELECT_TYPE="ports" | |
9931 | fi | |
9932 | fi | |
9933 | ||
212380e3 AC |
9934 | if test ! "x$use_select" = "xno"; then |
9935 | ||
9936 | for ac_func in select | |
9937 | do | |
9938 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
9939 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9940 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
9941 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
9942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9943 | else | |
9944 | cat >conftest.$ac_ext <<_ACEOF | |
9945 | /* confdefs.h. */ | |
9946 | _ACEOF | |
9947 | cat confdefs.h >>conftest.$ac_ext | |
9948 | cat >>conftest.$ac_ext <<_ACEOF | |
9949 | /* end confdefs.h. */ | |
9950 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9951 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9952 | #define $ac_func innocuous_$ac_func | |
9953 | ||
9954 | /* System header to define __stub macros and hopefully few prototypes, | |
9955 | which can conflict with char $ac_func (); below. | |
9956 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9957 | <limits.h> exists even on freestanding compilers. */ | |
9958 | ||
9959 | #ifdef __STDC__ | |
9960 | # include <limits.h> | |
9961 | #else | |
9962 | # include <assert.h> | |
9963 | #endif | |
9964 | ||
9965 | #undef $ac_func | |
9966 | ||
631ef239 AC |
9967 | /* Override any GCC internal prototype to avoid an error. |
9968 | Use char because int might match the return type of a GCC | |
9969 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
9970 | #ifdef __cplusplus |
9971 | extern "C" | |
212380e3 | 9972 | #endif |
212380e3 AC |
9973 | char $ac_func (); |
9974 | /* The GNU C library defines this for functions which it implements | |
9975 | to always fail with ENOSYS. Some functions are actually named | |
9976 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 9977 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 9978 | choke me |
212380e3 AC |
9979 | #endif |
9980 | ||
9981 | int | |
9982 | main () | |
9983 | { | |
631ef239 | 9984 | return $ac_func (); |
212380e3 AC |
9985 | ; |
9986 | return 0; | |
9987 | } | |
9988 | _ACEOF | |
9989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
9990 | if { (ac_try="$ac_link" |
9991 | case "(($ac_try" in | |
9992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9993 | *) ac_try_echo=$ac_try;; | |
9994 | esac | |
9995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9996 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
9997 | ac_status=$? |
9998 | grep -v '^ *+' conftest.er1 >conftest.err | |
9999 | rm -f conftest.er1 | |
10000 | cat conftest.err >&5 | |
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10002 | (exit $ac_status); } && { |
10003 | test -z "$ac_c_werror_flag" || | |
10004 | test ! -s conftest.err | |
10005 | } && test -s conftest$ac_exeext && | |
10006 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10007 | eval "$as_ac_var=yes" |
10008 | else | |
10009 | echo "$as_me: failed program was:" >&5 | |
10010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10011 | ||
631ef239 | 10012 | eval "$as_ac_var=no" |
212380e3 | 10013 | fi |
631ef239 AC |
10014 | |
10015 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10016 | conftest$ac_exeext conftest.$ac_ext |
10017 | fi | |
631ef239 AC |
10018 | ac_res=`eval echo '${'$as_ac_var'}'` |
10019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10020 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10021 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10022 | cat >>confdefs.h <<_ACEOF | |
10023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10024 | _ACEOF | |
10025 | haveselect=yes | |
10026 | else | |
10027 | haveselect=no | |
10028 | fi | |
10029 | done | |
10030 | ||
10031 | if test "x$haveselect" = "xyes" ; then | |
10032 | SELECT_TYPE="select" | |
10033 | fi | |
10034 | fi | |
10035 | ||
10036 | if test ! "x$use_poll" = "xno"; then | |
10037 | ||
10038 | for ac_func in poll | |
10039 | do | |
10040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10041 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10043 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10045 | else | |
10046 | cat >conftest.$ac_ext <<_ACEOF | |
10047 | /* confdefs.h. */ | |
10048 | _ACEOF | |
10049 | cat confdefs.h >>conftest.$ac_ext | |
10050 | cat >>conftest.$ac_ext <<_ACEOF | |
10051 | /* end confdefs.h. */ | |
10052 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10053 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10054 | #define $ac_func innocuous_$ac_func | |
10055 | ||
10056 | /* System header to define __stub macros and hopefully few prototypes, | |
10057 | which can conflict with char $ac_func (); below. | |
10058 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10059 | <limits.h> exists even on freestanding compilers. */ | |
10060 | ||
10061 | #ifdef __STDC__ | |
10062 | # include <limits.h> | |
10063 | #else | |
10064 | # include <assert.h> | |
10065 | #endif | |
10066 | ||
10067 | #undef $ac_func | |
10068 | ||
631ef239 AC |
10069 | /* Override any GCC internal prototype to avoid an error. |
10070 | Use char because int might match the return type of a GCC | |
10071 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10072 | #ifdef __cplusplus |
10073 | extern "C" | |
212380e3 | 10074 | #endif |
212380e3 AC |
10075 | char $ac_func (); |
10076 | /* The GNU C library defines this for functions which it implements | |
10077 | to always fail with ENOSYS. Some functions are actually named | |
10078 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10079 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10080 | choke me |
212380e3 AC |
10081 | #endif |
10082 | ||
10083 | int | |
10084 | main () | |
10085 | { | |
631ef239 | 10086 | return $ac_func (); |
212380e3 AC |
10087 | ; |
10088 | return 0; | |
10089 | } | |
10090 | _ACEOF | |
10091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10092 | if { (ac_try="$ac_link" |
10093 | case "(($ac_try" in | |
10094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10095 | *) ac_try_echo=$ac_try;; | |
10096 | esac | |
10097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10098 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10099 | ac_status=$? |
10100 | grep -v '^ *+' conftest.er1 >conftest.err | |
10101 | rm -f conftest.er1 | |
10102 | cat conftest.err >&5 | |
10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10104 | (exit $ac_status); } && { |
10105 | test -z "$ac_c_werror_flag" || | |
10106 | test ! -s conftest.err | |
10107 | } && test -s conftest$ac_exeext && | |
10108 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10109 | eval "$as_ac_var=yes" |
10110 | else | |
10111 | echo "$as_me: failed program was:" >&5 | |
10112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10113 | ||
631ef239 | 10114 | eval "$as_ac_var=no" |
212380e3 | 10115 | fi |
631ef239 AC |
10116 | |
10117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10118 | conftest$ac_exeext conftest.$ac_ext |
10119 | fi | |
631ef239 AC |
10120 | ac_res=`eval echo '${'$as_ac_var'}'` |
10121 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10122 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10123 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10124 | cat >>confdefs.h <<_ACEOF | |
10125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10126 | _ACEOF | |
10127 | havepoll=yes | |
10128 | else | |
10129 | havepoll=no | |
10130 | fi | |
10131 | done | |
10132 | ||
10133 | if test "x$havepoll" = "xyes" ; then | |
10134 | SELECT_TYPE="poll" | |
10135 | fi | |
10136 | fi | |
10137 | ||
212380e3 AC |
10138 | if test ! "x$use_kqueue" = "xno"; then |
10139 | ||
10140 | for ac_func in kevent | |
10141 | do | |
10142 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10143 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10144 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10145 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10147 | else | |
10148 | cat >conftest.$ac_ext <<_ACEOF | |
10149 | /* confdefs.h. */ | |
10150 | _ACEOF | |
10151 | cat confdefs.h >>conftest.$ac_ext | |
10152 | cat >>conftest.$ac_ext <<_ACEOF | |
10153 | /* end confdefs.h. */ | |
10154 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10155 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10156 | #define $ac_func innocuous_$ac_func | |
10157 | ||
10158 | /* System header to define __stub macros and hopefully few prototypes, | |
10159 | which can conflict with char $ac_func (); below. | |
10160 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10161 | <limits.h> exists even on freestanding compilers. */ | |
10162 | ||
10163 | #ifdef __STDC__ | |
10164 | # include <limits.h> | |
10165 | #else | |
10166 | # include <assert.h> | |
10167 | #endif | |
10168 | ||
10169 | #undef $ac_func | |
10170 | ||
631ef239 AC |
10171 | /* Override any GCC internal prototype to avoid an error. |
10172 | Use char because int might match the return type of a GCC | |
10173 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10174 | #ifdef __cplusplus |
10175 | extern "C" | |
212380e3 | 10176 | #endif |
212380e3 AC |
10177 | char $ac_func (); |
10178 | /* The GNU C library defines this for functions which it implements | |
10179 | to always fail with ENOSYS. Some functions are actually named | |
10180 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10181 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10182 | choke me |
212380e3 AC |
10183 | #endif |
10184 | ||
10185 | int | |
10186 | main () | |
10187 | { | |
631ef239 | 10188 | return $ac_func (); |
212380e3 AC |
10189 | ; |
10190 | return 0; | |
10191 | } | |
10192 | _ACEOF | |
10193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10194 | if { (ac_try="$ac_link" |
10195 | case "(($ac_try" in | |
10196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10197 | *) ac_try_echo=$ac_try;; | |
10198 | esac | |
10199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10200 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10201 | ac_status=$? |
10202 | grep -v '^ *+' conftest.er1 >conftest.err | |
10203 | rm -f conftest.er1 | |
10204 | cat conftest.err >&5 | |
10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10206 | (exit $ac_status); } && { |
10207 | test -z "$ac_c_werror_flag" || | |
10208 | test ! -s conftest.err | |
10209 | } && test -s conftest$ac_exeext && | |
10210 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10211 | eval "$as_ac_var=yes" |
10212 | else | |
10213 | echo "$as_me: failed program was:" >&5 | |
10214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10215 | ||
631ef239 | 10216 | eval "$as_ac_var=no" |
212380e3 | 10217 | fi |
631ef239 AC |
10218 | |
10219 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10220 | conftest$ac_exeext conftest.$ac_ext |
10221 | fi | |
631ef239 AC |
10222 | ac_res=`eval echo '${'$as_ac_var'}'` |
10223 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10224 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10225 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10226 | cat >>confdefs.h <<_ACEOF | |
10227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10228 | _ACEOF | |
10229 | havekqueue=yes | |
10230 | else | |
10231 | havekqueue=no | |
10232 | fi | |
10233 | done | |
10234 | ||
10235 | if test "x$havekqueue" = "xyes" ; then | |
10236 | SELECT_TYPE="kqueue" | |
10237 | fi | |
10238 | fi | |
10239 | ||
10240 | if test ! "x$use_epoll" = "xno"; then | |
10241 | ||
10242 | for ac_func in epoll_ctl | |
10243 | do | |
10244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
10245 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10247 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10249 | else | |
10250 | cat >conftest.$ac_ext <<_ACEOF | |
10251 | /* confdefs.h. */ | |
10252 | _ACEOF | |
10253 | cat confdefs.h >>conftest.$ac_ext | |
10254 | cat >>conftest.$ac_ext <<_ACEOF | |
10255 | /* end confdefs.h. */ | |
10256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10258 | #define $ac_func innocuous_$ac_func | |
10259 | ||
10260 | /* System header to define __stub macros and hopefully few prototypes, | |
10261 | which can conflict with char $ac_func (); below. | |
10262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10263 | <limits.h> exists even on freestanding compilers. */ | |
10264 | ||
10265 | #ifdef __STDC__ | |
10266 | # include <limits.h> | |
10267 | #else | |
10268 | # include <assert.h> | |
10269 | #endif | |
10270 | ||
10271 | #undef $ac_func | |
10272 | ||
631ef239 AC |
10273 | /* Override any GCC internal prototype to avoid an error. |
10274 | Use char because int might match the return type of a GCC | |
10275 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
10276 | #ifdef __cplusplus |
10277 | extern "C" | |
212380e3 | 10278 | #endif |
212380e3 AC |
10279 | char $ac_func (); |
10280 | /* The GNU C library defines this for functions which it implements | |
10281 | to always fail with ENOSYS. Some functions are actually named | |
10282 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 10283 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 10284 | choke me |
212380e3 AC |
10285 | #endif |
10286 | ||
10287 | int | |
10288 | main () | |
10289 | { | |
631ef239 | 10290 | return $ac_func (); |
212380e3 AC |
10291 | ; |
10292 | return 0; | |
10293 | } | |
10294 | _ACEOF | |
10295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
10296 | if { (ac_try="$ac_link" |
10297 | case "(($ac_try" in | |
10298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10299 | *) ac_try_echo=$ac_try;; | |
10300 | esac | |
10301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10302 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
10303 | ac_status=$? |
10304 | grep -v '^ *+' conftest.er1 >conftest.err | |
10305 | rm -f conftest.er1 | |
10306 | cat conftest.err >&5 | |
10307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10308 | (exit $ac_status); } && { |
10309 | test -z "$ac_c_werror_flag" || | |
10310 | test ! -s conftest.err | |
10311 | } && test -s conftest$ac_exeext && | |
10312 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
10313 | eval "$as_ac_var=yes" |
10314 | else | |
10315 | echo "$as_me: failed program was:" >&5 | |
10316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10317 | ||
631ef239 | 10318 | eval "$as_ac_var=no" |
212380e3 | 10319 | fi |
631ef239 AC |
10320 | |
10321 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
10322 | conftest$ac_exeext conftest.$ac_ext |
10323 | fi | |
631ef239 AC |
10324 | ac_res=`eval echo '${'$as_ac_var'}'` |
10325 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10326 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10327 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10328 | cat >>confdefs.h <<_ACEOF | |
10329 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10330 | _ACEOF | |
10331 | haveepoll=yes | |
10332 | else | |
10333 | haveepoll=no | |
10334 | fi | |
10335 | done | |
10336 | ||
10337 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10338 | if test "x$haveepoll" = "xyes" ; then | |
631ef239 AC |
10339 | { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5 |
10340 | echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; } | |
212380e3 | 10341 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10342 | { echo "$as_me:$LINENO: result: no" >&5 |
10343 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10344 | else |
10345 | cat >conftest.$ac_ext <<_ACEOF | |
10346 | /* confdefs.h. */ | |
10347 | _ACEOF | |
10348 | cat confdefs.h >>conftest.$ac_ext | |
10349 | cat >>conftest.$ac_ext <<_ACEOF | |
10350 | /* end confdefs.h. */ | |
10351 | #include <stdint.h> | |
10352 | #include <sys/param.h> | |
10353 | #include <sys/types.h> | |
10354 | #include <sys/epoll.h> | |
10355 | #include <sys/syscall.h> | |
10356 | #include <unistd.h> | |
10357 | ||
10358 | int | |
10359 | main(int argc, char **argv) | |
10360 | { | |
10361 | int epfd; | |
10362 | ||
10363 | epfd = epoll_create(256); | |
b676ea3b | 10364 | return (epfd == -1 ? 1 : 0); |
212380e3 AC |
10365 | } |
10366 | _ACEOF | |
10367 | rm -f conftest$ac_exeext | |
631ef239 AC |
10368 | if { (ac_try="$ac_link" |
10369 | case "(($ac_try" in | |
10370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10371 | *) ac_try_echo=$ac_try;; | |
10372 | esac | |
10373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10374 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10375 | ac_status=$? |
10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10378 | { (case "(($ac_try" in |
10379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10380 | *) ac_try_echo=$ac_try;; | |
10381 | esac | |
10382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10383 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10384 | ac_status=$? |
10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10386 | (exit $ac_status); }; }; then | |
631ef239 AC |
10387 | { echo "$as_me:$LINENO: result: yes" >&5 |
10388 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10389 | |
10390 | cat >>confdefs.h <<\_ACEOF | |
10391 | #define HAVE_EPOLL 1 | |
10392 | _ACEOF | |
10393 | ||
10394 | SELECT_TYPE="epoll" | |
10395 | else | |
10396 | echo "$as_me: program exited with status $ac_status" >&5 | |
10397 | echo "$as_me: failed program was:" >&5 | |
10398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10399 | ||
10400 | ( exit $ac_status ) | |
631ef239 AC |
10401 | { echo "$as_me:$LINENO: result: no" >&5 |
10402 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10403 | fi |
631ef239 | 10404 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10405 | fi |
631ef239 AC |
10406 | |
10407 | ||
212380e3 AC |
10408 | fi |
10409 | fi | |
10410 | ||
10411 | haveepollsyscall=no | |
10412 | ||
10413 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
10414 | if test "x$haveepoll" = "xno" ; then | |
631ef239 AC |
10415 | { echo "$as_me:$LINENO: checking for epoll system call" >&5 |
10416 | echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; } | |
212380e3 | 10417 | if test "$cross_compiling" = yes; then |
631ef239 AC |
10418 | { echo "$as_me:$LINENO: result: no" >&5 |
10419 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10420 | else |
10421 | cat >conftest.$ac_ext <<_ACEOF | |
10422 | /* confdefs.h. */ | |
10423 | _ACEOF | |
10424 | cat confdefs.h >>conftest.$ac_ext | |
10425 | cat >>conftest.$ac_ext <<_ACEOF | |
10426 | /* end confdefs.h. */ | |
10427 | #include <stdint.h> | |
10428 | #include <sys/param.h> | |
10429 | #include <sys/types.h> | |
10430 | #include <sys/epoll.h> | |
10431 | #include <sys/syscall.h> | |
10432 | #include <unistd.h> | |
10433 | ||
10434 | int | |
10435 | epoll_create(int size) | |
10436 | { | |
10437 | return (syscall(__NR_epoll_create, size)); | |
10438 | } | |
10439 | ||
10440 | int | |
10441 | main(int argc, char **argv) | |
10442 | { | |
10443 | int epfd; | |
10444 | ||
10445 | epfd = epoll_create(256); | |
10446 | exit (epfd == -1 ? 1 : 0); | |
10447 | } | |
10448 | _ACEOF | |
10449 | rm -f conftest$ac_exeext | |
631ef239 AC |
10450 | if { (ac_try="$ac_link" |
10451 | case "(($ac_try" in | |
10452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10453 | *) ac_try_echo=$ac_try;; | |
10454 | esac | |
10455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10456 | (eval "$ac_link") 2>&5 | |
212380e3 AC |
10457 | ac_status=$? |
10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10459 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
631ef239 AC |
10460 | { (case "(($ac_try" in |
10461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10462 | *) ac_try_echo=$ac_try;; | |
10463 | esac | |
10464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10465 | (eval "$ac_try") 2>&5 | |
212380e3 AC |
10466 | ac_status=$? |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); }; }; then | |
631ef239 AC |
10469 | { echo "$as_me:$LINENO: result: yes" >&5 |
10470 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
10471 | |
10472 | cat >>confdefs.h <<\_ACEOF | |
10473 | #define HAVE_EPOLL 1 | |
10474 | _ACEOF | |
10475 | ||
10476 | SELECT_TYPE="epoll" | |
10477 | else | |
10478 | echo "$as_me: program exited with status $ac_status" >&5 | |
10479 | echo "$as_me: failed program was:" >&5 | |
10480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10481 | ||
10482 | ( exit $ac_status ) | |
631ef239 AC |
10483 | { echo "$as_me:$LINENO: result: no" >&5 |
10484 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 10485 | fi |
631ef239 | 10486 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
212380e3 | 10487 | fi |
631ef239 AC |
10488 | |
10489 | ||
212380e3 AC |
10490 | fi |
10491 | fi | |
10492 | ||
10493 | fi | |
10494 | ||
10495 | fi | |
10496 | ||
10497 | if test -z "$SELECT_TYPE"; then | |
10498 | { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5 | |
10499 | echo "$as_me: error: Unable to find a usable IO interface" >&2;} | |
10500 | { (exit 1); exit 1; }; } | |
10501 | fi | |
10502 | ||
10503 | echo "Using $SELECT_TYPE for select loop." | |
10504 | ||
10505 | ||
10506 | cat >>confdefs.h <<_ACEOF | |
10507 | #define SELECT_TYPE "$SELECT_TYPE" | |
10508 | _ACEOF | |
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
631ef239 | 10514 | # Check whether --enable-assert was given. |
212380e3 | 10515 | if test "${enable_assert+set}" = set; then |
631ef239 | 10516 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
10517 | else |
10518 | assert=no | |
631ef239 AC |
10519 | fi |
10520 | ||
212380e3 AC |
10521 | |
10522 | if test "$assert" = no; then | |
10523 | ||
10524 | cat >>confdefs.h <<\_ACEOF | |
10525 | #define NDEBUG 1 | |
10526 | _ACEOF | |
10527 | ||
10528 | elif test "$assert" = soft; then | |
10529 | ||
10530 | cat >>confdefs.h <<\_ACEOF | |
10531 | #define SOFT_ASSERT 1 | |
10532 | _ACEOF | |
10533 | ||
10534 | ||
10535 | cat >>confdefs.h <<\_ACEOF | |
10536 | #define NDEBUG 1 | |
10537 | _ACEOF | |
10538 | ||
10539 | elif test "$assert" = yes; then | |
10540 | assert = "hard"; | |
10541 | fi | |
10542 | ||
631ef239 AC |
10543 | { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5 |
10544 | echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; } | |
10545 | # Check whether --enable-iodebug was given. | |
212380e3 | 10546 | if test "${enable_iodebug+set}" = set; then |
631ef239 | 10547 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
10548 | else |
10549 | iodebug=no | |
631ef239 AC |
10550 | fi |
10551 | ||
212380e3 AC |
10552 | |
10553 | if test "$iodebug" = yes; then | |
10554 | ||
10555 | cat >>confdefs.h <<\_ACEOF | |
10556 | #define USE_IODEBUG_HOOKS 1 | |
10557 | _ACEOF | |
10558 | ||
631ef239 AC |
10559 | { echo "$as_me:$LINENO: result: yes" >&5 |
10560 | echo "${ECHO_T}yes" >&6; } | |
212380e3 | 10561 | else |
631ef239 AC |
10562 | { echo "$as_me:$LINENO: result: no" >&5 |
10563 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10564 | fi |
10565 | ||
10566 | ||
631ef239 AC |
10567 | { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5 |
10568 | echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; } | |
10569 | # Check whether --enable-profile was given. | |
212380e3 | 10570 | if test "${enable_profile+set}" = set; then |
631ef239 | 10571 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
10572 | else |
10573 | profile=no | |
631ef239 AC |
10574 | fi |
10575 | ||
212380e3 AC |
10576 | |
10577 | if test "$profile" = yes; then | |
10578 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
10579 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
631ef239 AC |
10580 | { echo "$as_me:$LINENO: result: yes, adding -pg" >&5 |
10581 | echo "${ECHO_T}yes, adding -pg" >&6; } | |
212380e3 AC |
10582 | |
10583 | cat >>confdefs.h <<\_ACEOF | |
10584 | #define CHARYBDIS_PROFILE 1 | |
10585 | _ACEOF | |
10586 | ||
10587 | else | |
631ef239 AC |
10588 | { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5 |
10589 | echo "${ECHO_T}no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
10590 | fi |
10591 | else | |
631ef239 AC |
10592 | { echo "$as_me:$LINENO: result: no" >&5 |
10593 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
10594 | fi |
10595 | ||
631ef239 | 10596 | # Check whether --enable-balloc was given. |
212380e3 | 10597 | if test "${enable_balloc+set}" = set; then |
631ef239 | 10598 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
10599 | else |
10600 | balloc=yes | |
631ef239 AC |
10601 | fi |
10602 | ||
212380e3 AC |
10603 | |
10604 | if test "$balloc" = no; then | |
10605 | ||
10606 | cat >>confdefs.h <<\_ACEOF | |
10607 | #define NOBALLOC 1 | |
10608 | _ACEOF | |
10609 | ||
10610 | fi | |
10611 | ||
631ef239 | 10612 | # Check whether --enable-small-net was given. |
212380e3 | 10613 | if test "${enable_small_net+set}" = set; then |
631ef239 | 10614 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
10615 | else |
10616 | small_net=no | |
631ef239 AC |
10617 | fi |
10618 | ||
212380e3 AC |
10619 | |
10620 | if test "$small_net" = yes; then | |
10621 | ||
10622 | cat >>confdefs.h <<\_ACEOF | |
10623 | #define NICKNAMEHISTORYLENGTH 1500 | |
10624 | _ACEOF | |
10625 | ||
10626 | ||
10627 | cat >>confdefs.h <<\_ACEOF | |
10628 | #define CHANNEL_HEAP_SIZE 256 | |
10629 | _ACEOF | |
10630 | ||
10631 | ||
10632 | cat >>confdefs.h <<\_ACEOF | |
10633 | #define BAN_HEAP_SIZE 128 | |
10634 | _ACEOF | |
10635 | ||
10636 | ||
10637 | cat >>confdefs.h <<\_ACEOF | |
10638 | #define CLIENT_HEAP_SIZE 256 | |
10639 | _ACEOF | |
10640 | ||
10641 | ||
10642 | cat >>confdefs.h <<\_ACEOF | |
10643 | #define LCLIENT_HEAP_SIZE 128 | |
10644 | _ACEOF | |
10645 | ||
10646 | ||
10647 | cat >>confdefs.h <<\_ACEOF | |
10648 | #define PCLIENT_HEAP_SIZE 32 | |
10649 | _ACEOF | |
10650 | ||
10651 | ||
10652 | cat >>confdefs.h <<\_ACEOF | |
10653 | #define USER_HEAP_SIZE 128 | |
10654 | _ACEOF | |
10655 | ||
10656 | ||
10657 | cat >>confdefs.h <<\_ACEOF | |
10658 | #define DNODE_HEAP_SIZE 256 | |
10659 | _ACEOF | |
10660 | ||
10661 | ||
10662 | cat >>confdefs.h <<\_ACEOF | |
10663 | #define TOPIC_HEAP_SIZE 256 | |
10664 | _ACEOF | |
10665 | ||
10666 | ||
10667 | cat >>confdefs.h <<\_ACEOF | |
10668 | #define LINEBUF_HEAP_SIZE 128 | |
10669 | _ACEOF | |
10670 | ||
10671 | ||
10672 | cat >>confdefs.h <<\_ACEOF | |
10673 | #define MEMBER_HEAP_SIZE 256 | |
10674 | _ACEOF | |
10675 | ||
10676 | ||
10677 | cat >>confdefs.h <<\_ACEOF | |
10678 | #define ND_HEAP_SIZE 128 | |
10679 | _ACEOF | |
10680 | ||
10681 | ||
10682 | cat >>confdefs.h <<\_ACEOF | |
10683 | #define CONFITEM_HEAP_SIZE 128 | |
10684 | _ACEOF | |
10685 | ||
10686 | ||
10687 | cat >>confdefs.h <<\_ACEOF | |
10688 | #define MONITOR_HEAP_SIZE 128 | |
10689 | _ACEOF | |
10690 | ||
f589ec6f | 10691 | |
2b428185 AC |
10692 | cat >>confdefs.h <<\_ACEOF |
10693 | #define FD_HEAP_SIZE 128 | |
10694 | _ACEOF | |
10695 | ||
10696 | ||
f589ec6f AC |
10697 | cat >>confdefs.h <<\_ACEOF |
10698 | #define AWAY_HEAP_SIZE 128 | |
10699 | _ACEOF | |
10700 | ||
212380e3 AC |
10701 | else |
10702 | ||
10703 | cat >>confdefs.h <<\_ACEOF | |
10704 | #define NICKNAMEHISTORYLENGTH 15000 | |
10705 | _ACEOF | |
10706 | ||
10707 | ||
10708 | cat >>confdefs.h <<\_ACEOF | |
10709 | #define CHANNEL_HEAP_SIZE 8192 | |
10710 | _ACEOF | |
10711 | ||
10712 | ||
10713 | cat >>confdefs.h <<\_ACEOF | |
10714 | #define BAN_HEAP_SIZE 4096 | |
10715 | _ACEOF | |
10716 | ||
10717 | ||
10718 | cat >>confdefs.h <<\_ACEOF | |
10719 | #define CLIENT_HEAP_SIZE 8192 | |
10720 | _ACEOF | |
10721 | ||
10722 | ||
10723 | cat >>confdefs.h <<\_ACEOF | |
10724 | #define LCLIENT_HEAP_SIZE 1024 | |
10725 | _ACEOF | |
10726 | ||
10727 | ||
10728 | cat >>confdefs.h <<\_ACEOF | |
10729 | #define PCLIENT_HEAP_SIZE 256 | |
10730 | _ACEOF | |
10731 | ||
10732 | ||
10733 | cat >>confdefs.h <<\_ACEOF | |
10734 | #define USER_HEAP_SIZE 8192 | |
10735 | _ACEOF | |
10736 | ||
10737 | ||
10738 | cat >>confdefs.h <<\_ACEOF | |
10739 | #define DNODE_HEAP_SIZE 8192 | |
10740 | _ACEOF | |
10741 | ||
10742 | ||
10743 | cat >>confdefs.h <<\_ACEOF | |
10744 | #define TOPIC_HEAP_SIZE 4096 | |
10745 | _ACEOF | |
10746 | ||
10747 | ||
10748 | cat >>confdefs.h <<\_ACEOF | |
10749 | #define LINEBUF_HEAP_SIZE 2048 | |
10750 | _ACEOF | |
10751 | ||
10752 | ||
10753 | cat >>confdefs.h <<\_ACEOF | |
10754 | #define MEMBER_HEAP_SIZE 32768 | |
10755 | _ACEOF | |
10756 | ||
10757 | ||
10758 | cat >>confdefs.h <<\_ACEOF | |
10759 | #define ND_HEAP_SIZE 512 | |
10760 | _ACEOF | |
10761 | ||
10762 | ||
10763 | cat >>confdefs.h <<\_ACEOF | |
10764 | #define CONFITEM_HEAP_SIZE 256 | |
10765 | _ACEOF | |
10766 | ||
10767 | ||
10768 | cat >>confdefs.h <<\_ACEOF | |
10769 | #define MONITOR_HEAP_SIZE 1024 | |
10770 | _ACEOF | |
10771 | ||
f589ec6f | 10772 | |
2b428185 AC |
10773 | cat >>confdefs.h <<\_ACEOF |
10774 | #define FD_HEAP_SIZE 1024 | |
10775 | _ACEOF | |
10776 | ||
10777 | ||
f589ec6f AC |
10778 | cat >>confdefs.h <<\_ACEOF |
10779 | #define AWAY_HEAP_SIZE 512 | |
10780 | _ACEOF | |
10781 | ||
212380e3 AC |
10782 | fi |
10783 | ||
10784 | ||
631ef239 | 10785 | # Check whether --with-nicklen was given. |
212380e3 | 10786 | if test "${with_nicklen+set}" = set; then |
631ef239 | 10787 | withval=$with_nicklen; |
aa769893 JT |
10788 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
10789 | { { echo "$as_me:$LINENO: error: NICKLEN must be a numeric value" >&5 | |
10790 | echo "$as_me: error: NICKLEN must be a numeric value" >&2;} | |
10791 | { (exit 1); exit 1; }; } | |
10792 | fi | |
212380e3 AC |
10793 | if test $withval -ge 50; then |
10794 | NICKLEN=50 | |
10795 | { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
10796 | echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
10797 | else | |
10798 | NICKLEN="$withval" | |
10799 | fi | |
10800 | ||
10801 | else | |
10802 | NICKLEN=15 | |
631ef239 | 10803 | fi |
212380e3 AC |
10804 | |
10805 | ||
212380e3 | 10806 | |
631ef239 AC |
10807 | # Check whether --with-topiclen was given. |
10808 | if test "${with_topiclen+set}" = set; then | |
10809 | withval=$with_topiclen; | |
212380e3 AC |
10810 | if test $withval -ge 390; then |
10811 | TOPICLEN=390 | |
10812 | { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
10813 | echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
10814 | else | |
10815 | TOPICLEN=$withval | |
10816 | fi | |
10817 | ||
10818 | else | |
10819 | TOPICLEN=390 | |
212380e3 AC |
10820 | fi |
10821 | ||
212380e3 AC |
10822 | |
10823 | ||
10824 | cat >>confdefs.h <<_ACEOF | |
10825 | #define TOPICLEN ${TOPICLEN} | |
10826 | _ACEOF | |
10827 | ||
10828 | ||
10829 | cat >>confdefs.h <<_ACEOF | |
10830 | #define NICKLEN (${NICKLEN}+1) | |
10831 | _ACEOF | |
10832 | ||
10833 | ||
b676ea3b | 10834 | shared_modules="yes" |
212380e3 | 10835 | if test "$shared_modules" = yes; then |
212380e3 AC |
10836 | if test "$CC" = tcc -a "$TenDRA" = "no"; then |
10837 | { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5 | |
10838 | echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;} | |
10839 | shared_modules="no" | |
10840 | fi | |
10841 | fi | |
10842 | ||
10843 | if test "$shared_modules" = yes; then | |
10844 | DYNLINK_C=dynlink.c | |
10845 | ||
10846 | for ac_header in dlfcn.h | |
10847 | do | |
10848 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
10849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10850 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10852 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10854 | fi | |
631ef239 AC |
10855 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10856 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10857 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10858 | else |
10859 | # Is the header compilable? | |
631ef239 AC |
10860 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10861 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
10862 | cat >conftest.$ac_ext <<_ACEOF |
10863 | /* confdefs.h. */ | |
10864 | _ACEOF | |
10865 | cat confdefs.h >>conftest.$ac_ext | |
10866 | cat >>conftest.$ac_ext <<_ACEOF | |
10867 | /* end confdefs.h. */ | |
10868 | $ac_includes_default | |
10869 | #include <$ac_header> | |
10870 | _ACEOF | |
10871 | rm -f conftest.$ac_objext | |
631ef239 AC |
10872 | if { (ac_try="$ac_compile" |
10873 | case "(($ac_try" in | |
10874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10875 | *) ac_try_echo=$ac_try;; | |
10876 | esac | |
10877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10878 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
10879 | ac_status=$? |
10880 | grep -v '^ *+' conftest.er1 >conftest.err | |
10881 | rm -f conftest.er1 | |
10882 | cat conftest.err >&5 | |
10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10884 | (exit $ac_status); } && { |
10885 | test -z "$ac_c_werror_flag" || | |
10886 | test ! -s conftest.err | |
10887 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
10888 | ac_header_compiler=yes |
10889 | else | |
10890 | echo "$as_me: failed program was:" >&5 | |
10891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10892 | ||
631ef239 | 10893 | ac_header_compiler=no |
212380e3 | 10894 | fi |
631ef239 AC |
10895 | |
10896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
10897 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10898 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
10899 | |
10900 | # Is the header present? | |
631ef239 AC |
10901 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10902 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
10903 | cat >conftest.$ac_ext <<_ACEOF |
10904 | /* confdefs.h. */ | |
10905 | _ACEOF | |
10906 | cat confdefs.h >>conftest.$ac_ext | |
10907 | cat >>conftest.$ac_ext <<_ACEOF | |
10908 | /* end confdefs.h. */ | |
10909 | #include <$ac_header> | |
10910 | _ACEOF | |
631ef239 AC |
10911 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10912 | case "(($ac_try" in | |
10913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10914 | *) ac_try_echo=$ac_try;; | |
10915 | esac | |
10916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10917 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
10918 | ac_status=$? |
10919 | grep -v '^ *+' conftest.er1 >conftest.err | |
10920 | rm -f conftest.er1 | |
10921 | cat conftest.err >&5 | |
10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
10923 | (exit $ac_status); } >/dev/null && { |
10924 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10925 | test ! -s conftest.err | |
10926 | }; then | |
212380e3 AC |
10927 | ac_header_preproc=yes |
10928 | else | |
10929 | echo "$as_me: failed program was:" >&5 | |
10930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10931 | ||
10932 | ac_header_preproc=no | |
10933 | fi | |
631ef239 | 10934 | |
212380e3 | 10935 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
10936 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10937 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
10938 | |
10939 | # So? What about this header? | |
10940 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10941 | yes:no: ) | |
10942 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10943 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10944 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10945 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10946 | ac_header_preproc=yes | |
10947 | ;; | |
10948 | no:yes:* ) | |
10949 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10950 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10951 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10952 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10953 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10954 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10955 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10956 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10958 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10959 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10960 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 10961 | |
212380e3 AC |
10962 | ;; |
10963 | esac | |
631ef239 AC |
10964 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10965 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10966 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
10967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10968 | else | |
10969 | eval "$as_ac_Header=\$ac_header_preproc" | |
10970 | fi | |
631ef239 AC |
10971 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10972 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10973 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
10974 | |
10975 | fi | |
10976 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10977 | cat >>confdefs.h <<_ACEOF | |
10978 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10979 | _ACEOF | |
10980 | ||
10981 | fi | |
10982 | ||
10983 | done | |
10984 | ||
631ef239 AC |
10985 | { echo "$as_me:$LINENO: checking for library containing shl_load" >&5 |
10986 | echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; } | |
212380e3 AC |
10987 | if test "${ac_cv_search_shl_load+set}" = set; then |
10988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10989 | else | |
10990 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
10991 | cat >conftest.$ac_ext <<_ACEOF |
10992 | /* confdefs.h. */ | |
10993 | _ACEOF | |
10994 | cat confdefs.h >>conftest.$ac_ext | |
10995 | cat >>conftest.$ac_ext <<_ACEOF | |
10996 | /* end confdefs.h. */ | |
10997 | ||
631ef239 AC |
10998 | /* Override any GCC internal prototype to avoid an error. |
10999 | Use char because int might match the return type of a GCC | |
11000 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11001 | #ifdef __cplusplus |
11002 | extern "C" | |
11003 | #endif | |
212380e3 AC |
11004 | char shl_load (); |
11005 | int | |
11006 | main () | |
11007 | { | |
631ef239 | 11008 | return shl_load (); |
212380e3 AC |
11009 | ; |
11010 | return 0; | |
11011 | } | |
11012 | _ACEOF | |
631ef239 AC |
11013 | for ac_lib in '' dld; do |
11014 | if test -z "$ac_lib"; then | |
11015 | ac_res="none required" | |
11016 | else | |
11017 | ac_res=-l$ac_lib | |
11018 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11019 | fi | |
11020 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11021 | if { (ac_try="$ac_link" | |
11022 | case "(($ac_try" in | |
11023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11024 | *) ac_try_echo=$ac_try;; | |
11025 | esac | |
11026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11027 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11028 | ac_status=$? |
11029 | grep -v '^ *+' conftest.er1 >conftest.err | |
11030 | rm -f conftest.er1 | |
11031 | cat conftest.err >&5 | |
11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11033 | (exit $ac_status); } && { |
11034 | test -z "$ac_c_werror_flag" || | |
11035 | test ! -s conftest.err | |
11036 | } && test -s conftest$ac_exeext && | |
11037 | $as_test_x conftest$ac_exeext; then | |
11038 | ac_cv_search_shl_load=$ac_res | |
212380e3 AC |
11039 | else |
11040 | echo "$as_me: failed program was:" >&5 | |
11041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11042 | ||
212380e3 | 11043 | |
631ef239 | 11044 | fi |
212380e3 | 11045 | |
631ef239 AC |
11046 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11047 | conftest$ac_exeext | |
11048 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11049 | break | |
212380e3 | 11050 | fi |
631ef239 AC |
11051 | done |
11052 | if test "${ac_cv_search_shl_load+set}" = set; then | |
11053 | : | |
11054 | else | |
11055 | ac_cv_search_shl_load=no | |
212380e3 | 11056 | fi |
631ef239 | 11057 | rm conftest.$ac_ext |
212380e3 AC |
11058 | LIBS=$ac_func_search_save_LIBS |
11059 | fi | |
631ef239 AC |
11060 | { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5 |
11061 | echo "${ECHO_T}$ac_cv_search_shl_load" >&6; } | |
11062 | ac_res=$ac_cv_search_shl_load | |
11063 | if test "$ac_res" != no; then | |
11064 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11065 | |
11066 | ||
11067 | cat >>confdefs.h <<\_ACEOF | |
11068 | #define HAVE_SHL_LOAD 1 | |
11069 | _ACEOF | |
11070 | ||
11071 | SUFFIX=".sl" | |
11072 | MOD_TARGET=hpux_shared | |
11073 | SEDOBJ="s/\.o/.sl/g" | |
11074 | ||
11075 | else | |
11076 | ||
631ef239 AC |
11077 | { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 |
11078 | echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } | |
212380e3 AC |
11079 | if test "${ac_cv_search_dlopen+set}" = set; then |
11080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11081 | else | |
11082 | ac_func_search_save_LIBS=$LIBS | |
212380e3 AC |
11083 | cat >conftest.$ac_ext <<_ACEOF |
11084 | /* confdefs.h. */ | |
11085 | _ACEOF | |
11086 | cat confdefs.h >>conftest.$ac_ext | |
11087 | cat >>conftest.$ac_ext <<_ACEOF | |
11088 | /* end confdefs.h. */ | |
11089 | ||
631ef239 AC |
11090 | /* Override any GCC internal prototype to avoid an error. |
11091 | Use char because int might match the return type of a GCC | |
11092 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11093 | #ifdef __cplusplus |
11094 | extern "C" | |
11095 | #endif | |
212380e3 AC |
11096 | char dlopen (); |
11097 | int | |
11098 | main () | |
11099 | { | |
631ef239 | 11100 | return dlopen (); |
212380e3 AC |
11101 | ; |
11102 | return 0; | |
11103 | } | |
11104 | _ACEOF | |
631ef239 AC |
11105 | for ac_lib in '' dl c_r; do |
11106 | if test -z "$ac_lib"; then | |
11107 | ac_res="none required" | |
11108 | else | |
11109 | ac_res=-l$ac_lib | |
11110 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11111 | fi | |
11112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11113 | if { (ac_try="$ac_link" | |
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_link") 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); } && { |
11126 | test -z "$ac_c_werror_flag" || | |
11127 | test ! -s conftest.err | |
11128 | } && test -s conftest$ac_exeext && | |
11129 | $as_test_x conftest$ac_exeext; then | |
11130 | ac_cv_search_dlopen=$ac_res | |
212380e3 AC |
11131 | else |
11132 | echo "$as_me: failed program was:" >&5 | |
11133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11134 | ||
212380e3 | 11135 | |
631ef239 | 11136 | fi |
212380e3 | 11137 | |
631ef239 AC |
11138 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11139 | conftest$ac_exeext | |
11140 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11141 | break | |
212380e3 | 11142 | fi |
631ef239 AC |
11143 | done |
11144 | if test "${ac_cv_search_dlopen+set}" = set; then | |
11145 | : | |
11146 | else | |
11147 | ac_cv_search_dlopen=no | |
212380e3 | 11148 | fi |
631ef239 | 11149 | rm conftest.$ac_ext |
212380e3 AC |
11150 | LIBS=$ac_func_search_save_LIBS |
11151 | fi | |
631ef239 AC |
11152 | { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 |
11153 | echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } | |
11154 | ac_res=$ac_cv_search_dlopen | |
11155 | if test "$ac_res" != no; then | |
11156 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 AC |
11157 | |
11158 | ||
11159 | cat >>confdefs.h <<\_ACEOF | |
11160 | #define HAVE_DLOPEN 1 | |
11161 | _ACEOF | |
11162 | ||
11163 | SUFFIX=".so" | |
11164 | MOD_TARGET=shared_modules | |
11165 | SEDOBJ="s/\.o/.so/g" | |
11166 | if test "$AppleGCC" = yes; then | |
11167 | ||
11168 | for ac_header in mach-o/dyld.h | |
11169 | do | |
11170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
631ef239 AC |
11171 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11172 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11174 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11176 | fi | |
631ef239 AC |
11177 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11178 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11179 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11180 | else |
11181 | # Is the header compilable? | |
631ef239 AC |
11182 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11183 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
212380e3 AC |
11184 | cat >conftest.$ac_ext <<_ACEOF |
11185 | /* confdefs.h. */ | |
11186 | _ACEOF | |
11187 | cat confdefs.h >>conftest.$ac_ext | |
11188 | cat >>conftest.$ac_ext <<_ACEOF | |
11189 | /* end confdefs.h. */ | |
11190 | $ac_includes_default | |
11191 | #include <$ac_header> | |
11192 | _ACEOF | |
11193 | rm -f conftest.$ac_objext | |
631ef239 AC |
11194 | if { (ac_try="$ac_compile" |
11195 | case "(($ac_try" in | |
11196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11197 | *) ac_try_echo=$ac_try;; | |
11198 | esac | |
11199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11200 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11201 | ac_status=$? |
11202 | grep -v '^ *+' conftest.er1 >conftest.err | |
11203 | rm -f conftest.er1 | |
11204 | cat conftest.err >&5 | |
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11206 | (exit $ac_status); } && { |
11207 | test -z "$ac_c_werror_flag" || | |
11208 | test ! -s conftest.err | |
11209 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11210 | ac_header_compiler=yes |
11211 | else | |
11212 | echo "$as_me: failed program was:" >&5 | |
11213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11214 | ||
631ef239 | 11215 | ac_header_compiler=no |
212380e3 | 11216 | fi |
631ef239 AC |
11217 | |
11218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11219 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11220 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
11221 | |
11222 | # Is the header present? | |
631ef239 AC |
11223 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11224 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
212380e3 AC |
11225 | cat >conftest.$ac_ext <<_ACEOF |
11226 | /* confdefs.h. */ | |
11227 | _ACEOF | |
11228 | cat confdefs.h >>conftest.$ac_ext | |
11229 | cat >>conftest.$ac_ext <<_ACEOF | |
11230 | /* end confdefs.h. */ | |
11231 | #include <$ac_header> | |
11232 | _ACEOF | |
631ef239 AC |
11233 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11234 | case "(($ac_try" in | |
11235 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11236 | *) ac_try_echo=$ac_try;; | |
11237 | esac | |
11238 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11239 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
11240 | ac_status=$? |
11241 | grep -v '^ *+' conftest.er1 >conftest.err | |
11242 | rm -f conftest.er1 | |
11243 | cat conftest.err >&5 | |
11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11245 | (exit $ac_status); } >/dev/null && { |
11246 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11247 | test ! -s conftest.err | |
11248 | }; then | |
212380e3 AC |
11249 | ac_header_preproc=yes |
11250 | else | |
11251 | echo "$as_me: failed program was:" >&5 | |
11252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11253 | ||
11254 | ac_header_preproc=no | |
11255 | fi | |
631ef239 | 11256 | |
212380e3 | 11257 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
11258 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11259 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
11260 | |
11261 | # So? What about this header? | |
11262 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11263 | yes:no: ) | |
11264 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11265 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11267 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11268 | ac_header_preproc=yes | |
11269 | ;; | |
11270 | no:yes:* ) | |
11271 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11272 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11273 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11274 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11275 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11276 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11277 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11278 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11279 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11280 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11281 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11282 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 11283 | |
212380e3 AC |
11284 | ;; |
11285 | esac | |
631ef239 AC |
11286 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11288 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11290 | else | |
11291 | eval "$as_ac_Header=\$ac_header_preproc" | |
11292 | fi | |
631ef239 AC |
11293 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11294 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11295 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11296 | |
11297 | fi | |
11298 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11299 | cat >>confdefs.h <<_ACEOF | |
11300 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11301 | _ACEOF | |
11302 | ||
11303 | fi | |
11304 | ||
11305 | done | |
11306 | ||
11307 | fi | |
631ef239 AC |
11308 | { echo "$as_me:$LINENO: checking for dlsym" >&5 |
11309 | echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; } | |
212380e3 AC |
11310 | if test "${ac_cv_func_dlsym+set}" = set; then |
11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11312 | else | |
11313 | cat >conftest.$ac_ext <<_ACEOF | |
11314 | /* confdefs.h. */ | |
11315 | _ACEOF | |
11316 | cat confdefs.h >>conftest.$ac_ext | |
11317 | cat >>conftest.$ac_ext <<_ACEOF | |
11318 | /* end confdefs.h. */ | |
11319 | /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym. | |
11320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11321 | #define dlsym innocuous_dlsym | |
11322 | ||
11323 | /* System header to define __stub macros and hopefully few prototypes, | |
11324 | which can conflict with char dlsym (); below. | |
11325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11326 | <limits.h> exists even on freestanding compilers. */ | |
11327 | ||
11328 | #ifdef __STDC__ | |
11329 | # include <limits.h> | |
11330 | #else | |
11331 | # include <assert.h> | |
11332 | #endif | |
11333 | ||
11334 | #undef dlsym | |
11335 | ||
631ef239 AC |
11336 | /* Override any GCC internal prototype to avoid an error. |
11337 | Use char because int might match the return type of a GCC | |
11338 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11339 | #ifdef __cplusplus |
11340 | extern "C" | |
212380e3 | 11341 | #endif |
212380e3 AC |
11342 | char dlsym (); |
11343 | /* The GNU C library defines this for functions which it implements | |
11344 | to always fail with ENOSYS. Some functions are actually named | |
11345 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11346 | #if defined __stub_dlsym || defined __stub___dlsym |
212380e3 | 11347 | choke me |
212380e3 AC |
11348 | #endif |
11349 | ||
11350 | int | |
11351 | main () | |
11352 | { | |
631ef239 | 11353 | return dlsym (); |
212380e3 AC |
11354 | ; |
11355 | return 0; | |
11356 | } | |
11357 | _ACEOF | |
11358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11359 | if { (ac_try="$ac_link" |
11360 | case "(($ac_try" in | |
11361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11362 | *) ac_try_echo=$ac_try;; | |
11363 | esac | |
11364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11365 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11366 | ac_status=$? |
11367 | grep -v '^ *+' conftest.er1 >conftest.err | |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11371 | (exit $ac_status); } && { |
11372 | test -z "$ac_c_werror_flag" || | |
11373 | test ! -s conftest.err | |
11374 | } && test -s conftest$ac_exeext && | |
11375 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11376 | ac_cv_func_dlsym=yes |
11377 | else | |
11378 | echo "$as_me: failed program was:" >&5 | |
11379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11380 | ||
631ef239 | 11381 | ac_cv_func_dlsym=no |
212380e3 | 11382 | fi |
631ef239 AC |
11383 | |
11384 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11385 | conftest$ac_exeext conftest.$ac_ext |
11386 | fi | |
631ef239 AC |
11387 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5 |
11388 | echo "${ECHO_T}$ac_cv_func_dlsym" >&6; } | |
212380e3 AC |
11389 | if test $ac_cv_func_dlsym = yes; then |
11390 | : | |
11391 | else | |
11392 | ||
11393 | { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5 | |
11394 | echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;} | |
11395 | shared_modules=no | |
11396 | ||
11397 | fi | |
11398 | ||
11399 | ||
11400 | for ac_func in dlfunc | |
11401 | do | |
11402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
631ef239 AC |
11403 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11405 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
212380e3 AC |
11406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11407 | else | |
11408 | cat >conftest.$ac_ext <<_ACEOF | |
11409 | /* confdefs.h. */ | |
11410 | _ACEOF | |
11411 | cat confdefs.h >>conftest.$ac_ext | |
11412 | cat >>conftest.$ac_ext <<_ACEOF | |
11413 | /* end confdefs.h. */ | |
11414 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11416 | #define $ac_func innocuous_$ac_func | |
11417 | ||
11418 | /* System header to define __stub macros and hopefully few prototypes, | |
11419 | which can conflict with char $ac_func (); below. | |
11420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11421 | <limits.h> exists even on freestanding compilers. */ | |
11422 | ||
11423 | #ifdef __STDC__ | |
11424 | # include <limits.h> | |
11425 | #else | |
11426 | # include <assert.h> | |
11427 | #endif | |
11428 | ||
11429 | #undef $ac_func | |
11430 | ||
631ef239 AC |
11431 | /* Override any GCC internal prototype to avoid an error. |
11432 | Use char because int might match the return type of a GCC | |
11433 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
11434 | #ifdef __cplusplus |
11435 | extern "C" | |
212380e3 | 11436 | #endif |
212380e3 AC |
11437 | char $ac_func (); |
11438 | /* The GNU C library defines this for functions which it implements | |
11439 | to always fail with ENOSYS. Some functions are actually named | |
11440 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 11441 | #if defined __stub_$ac_func || defined __stub___$ac_func |
212380e3 | 11442 | choke me |
212380e3 AC |
11443 | #endif |
11444 | ||
11445 | int | |
11446 | main () | |
11447 | { | |
631ef239 | 11448 | return $ac_func (); |
212380e3 AC |
11449 | ; |
11450 | return 0; | |
11451 | } | |
11452 | _ACEOF | |
11453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11454 | if { (ac_try="$ac_link" |
11455 | case "(($ac_try" in | |
11456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11457 | *) ac_try_echo=$ac_try;; | |
11458 | esac | |
11459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11460 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11461 | ac_status=$? |
11462 | grep -v '^ *+' conftest.er1 >conftest.err | |
11463 | rm -f conftest.er1 | |
11464 | cat conftest.err >&5 | |
11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11466 | (exit $ac_status); } && { |
11467 | test -z "$ac_c_werror_flag" || | |
11468 | test ! -s conftest.err | |
11469 | } && test -s conftest$ac_exeext && | |
11470 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11471 | eval "$as_ac_var=yes" |
11472 | else | |
11473 | echo "$as_me: failed program was:" >&5 | |
11474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11475 | ||
631ef239 | 11476 | eval "$as_ac_var=no" |
212380e3 | 11477 | fi |
631ef239 AC |
11478 | |
11479 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11480 | conftest$ac_exeext conftest.$ac_ext |
11481 | fi | |
631ef239 AC |
11482 | ac_res=`eval echo '${'$as_ac_var'}'` |
11483 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11484 | echo "${ECHO_T}$ac_res" >&6; } | |
212380e3 AC |
11485 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11486 | cat >>confdefs.h <<_ACEOF | |
11487 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11488 | _ACEOF | |
11489 | ||
11490 | fi | |
11491 | done | |
11492 | ||
11493 | ||
11494 | else | |
11495 | ||
11496 | shared_modules=no | |
11497 | ||
11498 | fi | |
11499 | ||
11500 | ||
11501 | fi | |
11502 | ||
11503 | fi | |
11504 | ||
11505 | ||
11506 | cat >>confdefs.h <<_ACEOF | |
11507 | #define SHARED_SUFFIX "$SUFFIX" | |
11508 | _ACEOF | |
11509 | ||
11510 | ||
11511 | if test "$shared_modules" = yes; then | |
11512 | # The GNU linker requires the -export-dynamic option to make | |
11513 | # all symbols visible in the dynamic symbol table. | |
11514 | hold_ldflags=$LDFLAGS | |
631ef239 AC |
11515 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
11516 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
212380e3 AC |
11517 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror" |
11518 | cat >conftest.$ac_ext <<_ACEOF | |
11519 | /* confdefs.h. */ | |
11520 | _ACEOF | |
11521 | cat confdefs.h >>conftest.$ac_ext | |
11522 | cat >>conftest.$ac_ext <<_ACEOF | |
11523 | /* end confdefs.h. */ | |
11524 | ||
11525 | int | |
11526 | main () | |
11527 | { | |
11528 | int i; | |
11529 | ; | |
11530 | return 0; | |
11531 | } | |
11532 | _ACEOF | |
11533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
11534 | if { (ac_try="$ac_link" |
11535 | case "(($ac_try" in | |
11536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11537 | *) ac_try_echo=$ac_try;; | |
11538 | esac | |
11539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11540 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
11541 | ac_status=$? |
11542 | grep -v '^ *+' conftest.er1 >conftest.err | |
11543 | rm -f conftest.er1 | |
11544 | cat conftest.err >&5 | |
11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11546 | (exit $ac_status); } && { |
11547 | test -z "$ac_c_werror_flag" || | |
11548 | test ! -s conftest.err | |
11549 | } && test -s conftest$ac_exeext && | |
11550 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
11551 | found=yes |
11552 | else | |
11553 | echo "$as_me: failed program was:" >&5 | |
11554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11555 | ||
631ef239 | 11556 | found=no |
212380e3 | 11557 | fi |
631ef239 AC |
11558 | |
11559 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
11560 | conftest$ac_exeext conftest.$ac_ext |
11561 | LDFLAGS=$hold_ldflags | |
11562 | ||
11563 | if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then | |
11564 | found="no, IRIX ld uses -B,dynamic" | |
11565 | LDFLAGS="${LDFLAGS} -Wl,-B,dynamic" | |
11566 | fi | |
11567 | ||
11568 | if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then | |
11569 | found="no, AIX ld uses -G -brtl" | |
11570 | LDFLAGS="${LDFLAGS} -Wl,-G,-brtl" | |
11571 | fi | |
11572 | ||
631ef239 AC |
11573 | { echo "$as_me:$LINENO: result: $found" >&5 |
11574 | echo "${ECHO_T}$found" >&6; } | |
212380e3 AC |
11575 | |
11576 | if test "$found" = yes; then | |
11577 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" | |
11578 | fi | |
11579 | ||
631ef239 AC |
11580 | { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5 |
11581 | echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; } | |
212380e3 | 11582 | if test "$SGS" = "yes"; then |
631ef239 AC |
11583 | { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5 |
11584 | echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; } | |
212380e3 AC |
11585 | PICFLAGS="-KPIC -DPIC -G" |
11586 | fi | |
11587 | ||
11588 | if test "$AppleGCC" = "yes"; then | |
631ef239 AC |
11589 | { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5 |
11590 | echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; } | |
212380e3 AC |
11591 | PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress" |
11592 | fi | |
11593 | if test "$HPUX" = "yes" -a "$CC" != gcc; then | |
631ef239 AC |
11594 | { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5 |
11595 | echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; } | |
212380e3 | 11596 | PICFLAGS="+z -r -q -n -c" |
631ef239 AC |
11597 | { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5 |
11598 | echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; } | |
212380e3 AC |
11599 | |
11600 | if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then | |
631ef239 AC |
11601 | { echo "$as_me:$LINENO: result: no" >&5 |
11602 | echo "${ECHO_T}no" >&6; } | |
212380e3 | 11603 | else |
631ef239 AC |
11604 | { echo "$as_me:$LINENO: result: yes" >&5 |
11605 | echo "${ECHO_T}yes" >&6; } | |
212380e3 AC |
11606 | PICFLAGS="$PICFLAGS +ESfic" |
11607 | fi | |
11608 | ||
11609 | LDFLAGS="${LDFLAGS} -Wl,-E" | |
11610 | fi | |
11611 | if test "$Tru" = yes -a "$CC" != gcc; then | |
631ef239 AC |
11612 | { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5 |
11613 | echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; } | |
212380e3 AC |
11614 | PICFLAGS="-shared -expect_unresolved '*' " |
11615 | LDFLAGS="-call_shared" | |
11616 | fi | |
11617 | if test -z "$PICFLAGS"; then | |
11618 | if test "$ac_cv_c_compiler_gnu" = "yes"; then | |
631ef239 AC |
11619 | { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5 |
11620 | echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; } | |
212380e3 AC |
11621 | PICFLAGS="-fPIC -DPIC -shared" |
11622 | else | |
631ef239 AC |
11623 | { echo "$as_me:$LINENO: result: no" >&5 |
11624 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11625 | shared_modules=no |
11626 | fi | |
11627 | fi | |
11628 | fi | |
11629 | ||
1a82970f JT |
11630 | # rpath, for finding libratbox.so at run time |
11631 | hold_ldflags=$LDFLAGS | |
11632 | { echo "$as_me:$LINENO: checking for the ld -rpath flag" >&5 | |
11633 | echo $ECHO_N "checking for the ld -rpath flag... $ECHO_C" >&6; } | |
11634 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" | |
11635 | cat >conftest.$ac_ext <<_ACEOF | |
11636 | /* confdefs.h. */ | |
11637 | _ACEOF | |
11638 | cat confdefs.h >>conftest.$ac_ext | |
11639 | cat >>conftest.$ac_ext <<_ACEOF | |
11640 | /* end confdefs.h. */ | |
11641 | ||
11642 | int | |
11643 | main () | |
11644 | { | |
11645 | int i; | |
11646 | ; | |
11647 | return 0; | |
11648 | } | |
11649 | _ACEOF | |
11650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11651 | if { (ac_try="$ac_link" | |
11652 | case "(($ac_try" in | |
11653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11654 | *) ac_try_echo=$ac_try;; | |
11655 | esac | |
11656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11657 | (eval "$ac_link") 2>conftest.er1 | |
11658 | ac_status=$? | |
11659 | grep -v '^ *+' conftest.er1 >conftest.err | |
11660 | rm -f conftest.er1 | |
11661 | cat conftest.err >&5 | |
11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11663 | (exit $ac_status); } && { | |
11664 | test -z "$ac_c_werror_flag" || | |
11665 | test ! -s conftest.err | |
11666 | } && test -s conftest$ac_exeext && | |
11667 | $as_test_x conftest$ac_exeext; then | |
11668 | found=yes | |
11669 | else | |
11670 | echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
11673 | found=no | |
11674 | fi | |
11675 | ||
11676 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11677 | conftest$ac_exeext conftest.$ac_ext | |
11678 | LDFLAGS=$hold_ldflags | |
11679 | { echo "$as_me:$LINENO: result: $found" >&5 | |
11680 | echo "${ECHO_T}$found" >&6; } | |
11681 | if test "$found" = yes; then | |
11682 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
11683 | fi | |
11684 | ||
212380e3 AC |
11685 | # This must be down here, or it will mess up checks like the ones |
11686 | # for -Wl,-export-dynamic | |
11687 | # -- jilles | |
d2c5159a | 11688 | CWARNS="" |
631ef239 | 11689 | # Check whether --enable-warnings was given. |
212380e3 | 11690 | if test "${enable_warnings+set}" = set; then |
631ef239 | 11691 | enableval=$enable_warnings; |
212380e3 AC |
11692 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
11693 | CFLAGS="$IRC_CFLAGS" | |
11694 | ||
11695 | ||
631ef239 AC |
11696 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5 |
11697 | echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; } | |
212380e3 AC |
11698 | if test "${GCC-no}" = yes |
11699 | then | |
11700 | if test "${charybdis_cv_c_gcc_w_all+set}" = set; then | |
11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11702 | else | |
11703 | ||
11704 | oldcflags="${CFLAGS-}" | |
11705 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
11706 | cat >conftest.$ac_ext <<_ACEOF | |
11707 | /* confdefs.h. */ | |
11708 | _ACEOF | |
11709 | cat confdefs.h >>conftest.$ac_ext | |
11710 | cat >>conftest.$ac_ext <<_ACEOF | |
11711 | /* end confdefs.h. */ | |
11712 | ||
11713 | #include <string.h> | |
11714 | #include <stdio.h> | |
11715 | int main(void); | |
11716 | ||
11717 | int | |
11718 | main () | |
11719 | { | |
11720 | ||
b1fc1658 | 11721 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11722 | |
11723 | ; | |
11724 | return 0; | |
11725 | } | |
11726 | _ACEOF | |
11727 | rm -f conftest.$ac_objext | |
631ef239 AC |
11728 | if { (ac_try="$ac_compile" |
11729 | case "(($ac_try" in | |
11730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11731 | *) ac_try_echo=$ac_try;; | |
11732 | esac | |
11733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11734 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11735 | ac_status=$? |
11736 | grep -v '^ *+' conftest.er1 >conftest.err | |
11737 | rm -f conftest.er1 | |
11738 | cat conftest.err >&5 | |
11739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11740 | (exit $ac_status); } && { |
11741 | test -z "$ac_c_werror_flag" || | |
11742 | test ! -s conftest.err | |
11743 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11744 | charybdis_cv_c_gcc_w_all=yes |
11745 | else | |
11746 | echo "$as_me: failed program was:" >&5 | |
11747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11748 | ||
631ef239 | 11749 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 11750 | fi |
631ef239 AC |
11751 | |
11752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11753 | CFLAGS="${oldcflags}" |
11754 | fi | |
11755 | ||
11756 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
11757 | CWARNS="${CWARNS}-Wall " | |
631ef239 AC |
11758 | { echo "$as_me:$LINENO: result: ok" >&5 |
11759 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11760 | else |
11761 | charybdis_cv_c_gcc_w_all='' | |
631ef239 AC |
11762 | { echo "$as_me:$LINENO: result: no" >&5 |
11763 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11764 | fi |
11765 | else | |
631ef239 AC |
11766 | { echo "$as_me:$LINENO: result: no" >&5 |
11767 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11768 | fi |
11769 | ||
11770 | ||
631ef239 AC |
11771 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5 |
11772 | echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; } | |
212380e3 AC |
11773 | if test "${GCC-no}" = yes |
11774 | then | |
11775 | if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then | |
11776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11777 | else | |
11778 | ||
11779 | oldcflags="${CFLAGS-}" | |
11780 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
11781 | cat >conftest.$ac_ext <<_ACEOF | |
11782 | /* confdefs.h. */ | |
11783 | _ACEOF | |
11784 | cat confdefs.h >>conftest.$ac_ext | |
11785 | cat >>conftest.$ac_ext <<_ACEOF | |
11786 | /* end confdefs.h. */ | |
11787 | ||
11788 | #include <string.h> | |
11789 | #include <stdio.h> | |
11790 | int main(void); | |
11791 | ||
11792 | int | |
11793 | main () | |
11794 | { | |
11795 | ||
b1fc1658 | 11796 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11797 | |
11798 | ; | |
11799 | return 0; | |
11800 | } | |
11801 | _ACEOF | |
11802 | rm -f conftest.$ac_objext | |
631ef239 AC |
11803 | if { (ac_try="$ac_compile" |
11804 | case "(($ac_try" in | |
11805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11806 | *) ac_try_echo=$ac_try;; | |
11807 | esac | |
11808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11809 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11810 | ac_status=$? |
11811 | grep -v '^ *+' conftest.er1 >conftest.err | |
11812 | rm -f conftest.er1 | |
11813 | cat conftest.err >&5 | |
11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11815 | (exit $ac_status); } && { |
11816 | test -z "$ac_c_werror_flag" || | |
11817 | test ! -s conftest.err | |
11818 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11819 | charybdis_cv_c_gcc_w_pointer_arith=yes |
11820 | else | |
11821 | echo "$as_me: failed program was:" >&5 | |
11822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11823 | ||
631ef239 | 11824 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 11825 | fi |
631ef239 AC |
11826 | |
11827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11828 | CFLAGS="${oldcflags}" |
11829 | fi | |
11830 | ||
11831 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
11832 | CWARNS="${CWARNS}-Wpointer-arith " | |
631ef239 AC |
11833 | { echo "$as_me:$LINENO: result: ok" >&5 |
11834 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11835 | else |
11836 | charybdis_cv_c_gcc_w_pointer_arith='' | |
631ef239 AC |
11837 | { echo "$as_me:$LINENO: result: no" >&5 |
11838 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11839 | fi |
11840 | else | |
631ef239 AC |
11841 | { echo "$as_me:$LINENO: result: no" >&5 |
11842 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11843 | fi |
11844 | ||
11845 | ||
631ef239 AC |
11846 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
11847 | echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
11848 | if test "${GCC-no}" = yes |
11849 | then | |
11850 | if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then | |
11851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11852 | else | |
11853 | ||
11854 | oldcflags="${CFLAGS-}" | |
11855 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
11856 | cat >conftest.$ac_ext <<_ACEOF | |
11857 | /* confdefs.h. */ | |
11858 | _ACEOF | |
11859 | cat confdefs.h >>conftest.$ac_ext | |
11860 | cat >>conftest.$ac_ext <<_ACEOF | |
11861 | /* end confdefs.h. */ | |
11862 | ||
11863 | #include <string.h> | |
11864 | #include <stdio.h> | |
11865 | int main(void); | |
11866 | ||
11867 | int | |
11868 | main () | |
11869 | { | |
11870 | ||
b1fc1658 | 11871 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11872 | |
11873 | ; | |
11874 | return 0; | |
11875 | } | |
11876 | _ACEOF | |
11877 | rm -f conftest.$ac_objext | |
631ef239 AC |
11878 | if { (ac_try="$ac_compile" |
11879 | case "(($ac_try" in | |
11880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11881 | *) ac_try_echo=$ac_try;; | |
11882 | esac | |
11883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11884 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11885 | ac_status=$? |
11886 | grep -v '^ *+' conftest.er1 >conftest.err | |
11887 | rm -f conftest.er1 | |
11888 | cat conftest.err >&5 | |
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11890 | (exit $ac_status); } && { |
11891 | test -z "$ac_c_werror_flag" || | |
11892 | test ! -s conftest.err | |
11893 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11894 | charybdis_cv_c_gcc_w_implicit=yes |
11895 | else | |
11896 | echo "$as_me: failed program was:" >&5 | |
11897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11898 | ||
631ef239 | 11899 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 11900 | fi |
631ef239 AC |
11901 | |
11902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11903 | CFLAGS="${oldcflags}" |
11904 | fi | |
11905 | ||
11906 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
11907 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
631ef239 AC |
11908 | { echo "$as_me:$LINENO: result: ok" >&5 |
11909 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11910 | else |
11911 | charybdis_cv_c_gcc_w_implicit='' | |
631ef239 AC |
11912 | { echo "$as_me:$LINENO: result: no" >&5 |
11913 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11914 | fi |
11915 | else | |
631ef239 AC |
11916 | { echo "$as_me:$LINENO: result: no" >&5 |
11917 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11918 | fi |
11919 | ||
11920 | ||
631ef239 AC |
11921 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5 |
11922 | echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; } | |
212380e3 AC |
11923 | if test "${GCC-no}" = yes |
11924 | then | |
11925 | if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then | |
11926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11927 | else | |
11928 | ||
11929 | oldcflags="${CFLAGS-}" | |
11930 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
11931 | cat >conftest.$ac_ext <<_ACEOF | |
11932 | /* confdefs.h. */ | |
11933 | _ACEOF | |
11934 | cat confdefs.h >>conftest.$ac_ext | |
11935 | cat >>conftest.$ac_ext <<_ACEOF | |
11936 | /* end confdefs.h. */ | |
11937 | ||
11938 | #include <string.h> | |
11939 | #include <stdio.h> | |
11940 | int main(void); | |
11941 | ||
11942 | int | |
11943 | main () | |
11944 | { | |
11945 | ||
b1fc1658 | 11946 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
11947 | |
11948 | ; | |
11949 | return 0; | |
11950 | } | |
11951 | _ACEOF | |
11952 | rm -f conftest.$ac_objext | |
631ef239 AC |
11953 | if { (ac_try="$ac_compile" |
11954 | case "(($ac_try" in | |
11955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11956 | *) ac_try_echo=$ac_try;; | |
11957 | esac | |
11958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11959 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
11960 | ac_status=$? |
11961 | grep -v '^ *+' conftest.er1 >conftest.err | |
11962 | rm -f conftest.er1 | |
11963 | cat conftest.err >&5 | |
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
11965 | (exit $ac_status); } && { |
11966 | test -z "$ac_c_werror_flag" || | |
11967 | test ! -s conftest.err | |
11968 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
11969 | charybdis_cv_c_gcc_w_cast_align=yes |
11970 | else | |
11971 | echo "$as_me: failed program was:" >&5 | |
11972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11973 | ||
631ef239 | 11974 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 11975 | fi |
631ef239 AC |
11976 | |
11977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
11978 | CFLAGS="${oldcflags}" |
11979 | fi | |
11980 | ||
11981 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
11982 | CWARNS="${CWARNS}-Wcast-align " | |
631ef239 AC |
11983 | { echo "$as_me:$LINENO: result: ok" >&5 |
11984 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
11985 | else |
11986 | charybdis_cv_c_gcc_w_cast_align='' | |
631ef239 AC |
11987 | { echo "$as_me:$LINENO: result: no" >&5 |
11988 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11989 | fi |
11990 | else | |
631ef239 AC |
11991 | { echo "$as_me:$LINENO: result: no" >&5 |
11992 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
11993 | fi |
11994 | ||
11995 | ||
631ef239 AC |
11996 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5 |
11997 | echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; } | |
212380e3 AC |
11998 | if test "${GCC-no}" = yes |
11999 | then | |
12000 | if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then | |
12001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12002 | else | |
12003 | ||
12004 | oldcflags="${CFLAGS-}" | |
12005 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
12006 | cat >conftest.$ac_ext <<_ACEOF | |
12007 | /* confdefs.h. */ | |
12008 | _ACEOF | |
12009 | cat confdefs.h >>conftest.$ac_ext | |
12010 | cat >>conftest.$ac_ext <<_ACEOF | |
12011 | /* end confdefs.h. */ | |
12012 | ||
12013 | #include <string.h> | |
12014 | #include <stdio.h> | |
12015 | int main(void); | |
12016 | ||
12017 | int | |
12018 | main () | |
12019 | { | |
12020 | ||
b1fc1658 | 12021 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12022 | |
12023 | ; | |
12024 | return 0; | |
12025 | } | |
12026 | _ACEOF | |
12027 | rm -f conftest.$ac_objext | |
631ef239 AC |
12028 | if { (ac_try="$ac_compile" |
12029 | case "(($ac_try" in | |
12030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12031 | *) ac_try_echo=$ac_try;; | |
12032 | esac | |
12033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12034 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12035 | ac_status=$? |
12036 | grep -v '^ *+' conftest.er1 >conftest.err | |
12037 | rm -f conftest.er1 | |
12038 | cat conftest.err >&5 | |
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12040 | (exit $ac_status); } && { |
12041 | test -z "$ac_c_werror_flag" || | |
12042 | test ! -s conftest.err | |
12043 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12044 | charybdis_cv_c_gcc_w_cast_qual=yes |
12045 | else | |
12046 | echo "$as_me: failed program was:" >&5 | |
12047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12048 | ||
631ef239 | 12049 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 12050 | fi |
631ef239 AC |
12051 | |
12052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12053 | CFLAGS="${oldcflags}" |
12054 | fi | |
12055 | ||
12056 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
12057 | CWARNS="${CWARNS}-Wcast-qual " | |
631ef239 AC |
12058 | { echo "$as_me:$LINENO: result: ok" >&5 |
12059 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12060 | else |
12061 | charybdis_cv_c_gcc_w_cast_qual='' | |
631ef239 AC |
12062 | { echo "$as_me:$LINENO: result: no" >&5 |
12063 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12064 | fi |
12065 | else | |
631ef239 AC |
12066 | { echo "$as_me:$LINENO: result: no" >&5 |
12067 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12068 | fi |
12069 | ||
12070 | ||
d2c5159a JT |
12071 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5 |
12072 | echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; } | |
12073 | if test "${GCC-no}" = yes | |
12074 | then | |
bbe58888 | 12075 | if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then |
d2c5159a JT |
12076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12077 | else | |
12078 | ||
12079 | oldcflags="${CFLAGS-}" | |
12080 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
12081 | cat >conftest.$ac_ext <<_ACEOF | |
12082 | /* confdefs.h. */ | |
12083 | _ACEOF | |
12084 | cat confdefs.h >>conftest.$ac_ext | |
12085 | cat >>conftest.$ac_ext <<_ACEOF | |
12086 | /* end confdefs.h. */ | |
12087 | ||
12088 | #include <string.h> | |
12089 | #include <stdio.h> | |
12090 | int main(void); | |
12091 | ||
12092 | int | |
12093 | main () | |
12094 | { | |
12095 | ||
12096 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12097 | ||
12098 | ; | |
12099 | return 0; | |
12100 | } | |
12101 | _ACEOF | |
12102 | rm -f conftest.$ac_objext | |
12103 | if { (ac_try="$ac_compile" | |
12104 | case "(($ac_try" in | |
12105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12106 | *) ac_try_echo=$ac_try;; | |
12107 | esac | |
12108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12109 | (eval "$ac_compile") 2>conftest.er1 | |
12110 | ac_status=$? | |
12111 | grep -v '^ *+' conftest.er1 >conftest.err | |
12112 | rm -f conftest.er1 | |
12113 | cat conftest.err >&5 | |
12114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12115 | (exit $ac_status); } && { | |
12116 | test -z "$ac_c_werror_flag" || | |
12117 | test ! -s conftest.err | |
12118 | } && test -s conftest.$ac_objext; then | |
bbe58888 | 12119 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a JT |
12120 | else |
12121 | echo "$as_me: failed program was:" >&5 | |
12122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12123 | ||
bbe58888 | 12124 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a JT |
12125 | fi |
12126 | ||
12127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12128 | CFLAGS="${oldcflags}" | |
12129 | fi | |
12130 | ||
bbe58888 | 12131 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a JT |
12132 | CWARNS="${CWARNS}-Wwrite-strings " |
12133 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12134 | echo "${ECHO_T}ok" >&6; } | |
12135 | else | |
bbe58888 VY |
12136 | charybdis_cv_c_gcc_w_write_strings='' |
12137 | { echo "$as_me:$LINENO: result: no" >&5 | |
12138 | echo "${ECHO_T}no" >&6; } | |
12139 | fi | |
12140 | else | |
12141 | { echo "$as_me:$LINENO: result: no" >&5 | |
12142 | echo "${ECHO_T}no" >&6; } | |
12143 | fi | |
12144 | ||
12145 | ||
12146 | { echo "$as_me:$LINENO: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 | |
12147 | echo $ECHO_N "checking GCC flag(s) -Werror-implicit-function-declaration... $ECHO_C" >&6; } | |
12148 | if test "${GCC-no}" = yes | |
12149 | then | |
12150 | if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then | |
12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12152 | else | |
12153 | ||
12154 | oldcflags="${CFLAGS-}" | |
12155 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
12156 | cat >conftest.$ac_ext <<_ACEOF | |
12157 | /* confdefs.h. */ | |
12158 | _ACEOF | |
12159 | cat confdefs.h >>conftest.$ac_ext | |
12160 | cat >>conftest.$ac_ext <<_ACEOF | |
12161 | /* end confdefs.h. */ | |
12162 | ||
12163 | #include <string.h> | |
12164 | #include <stdio.h> | |
12165 | int main(void); | |
12166 | ||
12167 | int | |
12168 | main () | |
12169 | { | |
12170 | ||
12171 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
12172 | ||
12173 | ; | |
12174 | return 0; | |
12175 | } | |
12176 | _ACEOF | |
12177 | rm -f conftest.$ac_objext | |
12178 | if { (ac_try="$ac_compile" | |
12179 | case "(($ac_try" in | |
12180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12181 | *) ac_try_echo=$ac_try;; | |
12182 | esac | |
12183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12184 | (eval "$ac_compile") 2>conftest.er1 | |
12185 | ac_status=$? | |
12186 | grep -v '^ *+' conftest.er1 >conftest.err | |
12187 | rm -f conftest.er1 | |
12188 | cat conftest.err >&5 | |
12189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12190 | (exit $ac_status); } && { | |
12191 | test -z "$ac_c_werror_flag" || | |
12192 | test ! -s conftest.err | |
12193 | } && test -s conftest.$ac_objext; then | |
12194 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes | |
12195 | else | |
12196 | echo "$as_me: failed program was:" >&5 | |
12197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12198 | ||
12199 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no | |
12200 | fi | |
12201 | ||
12202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12203 | CFLAGS="${oldcflags}" | |
12204 | fi | |
12205 | ||
12206 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
12207 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
12208 | { echo "$as_me:$LINENO: result: ok" >&5 | |
12209 | echo "${ECHO_T}ok" >&6; } | |
12210 | else | |
12211 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
d2c5159a JT |
12212 | { echo "$as_me:$LINENO: result: no" >&5 |
12213 | echo "${ECHO_T}no" >&6; } | |
12214 | fi | |
12215 | else | |
12216 | { echo "$as_me:$LINENO: result: no" >&5 | |
12217 | echo "${ECHO_T}no" >&6; } | |
12218 | fi | |
12219 | ||
12220 | ||
631ef239 AC |
12221 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
12222 | echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; } | |
212380e3 AC |
12223 | if test "${GCC-no}" = yes |
12224 | then | |
12225 | if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then | |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12227 | else | |
12228 | ||
12229 | oldcflags="${CFLAGS-}" | |
12230 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
12231 | cat >conftest.$ac_ext <<_ACEOF | |
12232 | /* confdefs.h. */ | |
12233 | _ACEOF | |
12234 | cat confdefs.h >>conftest.$ac_ext | |
12235 | cat >>conftest.$ac_ext <<_ACEOF | |
12236 | /* end confdefs.h. */ | |
12237 | ||
12238 | #include <string.h> | |
12239 | #include <stdio.h> | |
12240 | int main(void); | |
12241 | ||
12242 | int | |
12243 | main () | |
12244 | { | |
12245 | ||
b1fc1658 | 12246 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12247 | |
12248 | ; | |
12249 | return 0; | |
12250 | } | |
12251 | _ACEOF | |
12252 | rm -f conftest.$ac_objext | |
631ef239 AC |
12253 | if { (ac_try="$ac_compile" |
12254 | case "(($ac_try" in | |
12255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12256 | *) ac_try_echo=$ac_try;; | |
12257 | esac | |
12258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12259 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12260 | ac_status=$? |
12261 | grep -v '^ *+' conftest.er1 >conftest.err | |
12262 | rm -f conftest.er1 | |
12263 | cat conftest.err >&5 | |
12264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12265 | (exit $ac_status); } && { |
12266 | test -z "$ac_c_werror_flag" || | |
12267 | test ! -s conftest.err | |
12268 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12269 | charybdis_cv_c_gcc_prototypes=yes |
12270 | else | |
12271 | echo "$as_me: failed program was:" >&5 | |
12272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12273 | ||
631ef239 | 12274 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 12275 | fi |
631ef239 AC |
12276 | |
12277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12278 | CFLAGS="${oldcflags}" |
12279 | fi | |
12280 | ||
12281 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
12282 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
631ef239 AC |
12283 | { echo "$as_me:$LINENO: result: ok" >&5 |
12284 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12285 | else |
12286 | charybdis_cv_c_gcc_prototypes='' | |
631ef239 AC |
12287 | { echo "$as_me:$LINENO: result: no" >&5 |
12288 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12289 | fi |
12290 | else | |
631ef239 AC |
12291 | { echo "$as_me:$LINENO: result: no" >&5 |
12292 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12293 | fi |
12294 | ||
12295 | ||
631ef239 AC |
12296 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5 |
12297 | echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; } | |
212380e3 AC |
12298 | if test "${GCC-no}" = yes |
12299 | then | |
12300 | if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then | |
12301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12302 | else | |
12303 | ||
12304 | oldcflags="${CFLAGS-}" | |
12305 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
12306 | cat >conftest.$ac_ext <<_ACEOF | |
12307 | /* confdefs.h. */ | |
12308 | _ACEOF | |
12309 | cat confdefs.h >>conftest.$ac_ext | |
12310 | cat >>conftest.$ac_ext <<_ACEOF | |
12311 | /* end confdefs.h. */ | |
12312 | ||
12313 | #include <string.h> | |
12314 | #include <stdio.h> | |
12315 | int main(void); | |
12316 | ||
12317 | int | |
12318 | main () | |
12319 | { | |
12320 | ||
b1fc1658 | 12321 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12322 | |
12323 | ; | |
12324 | return 0; | |
12325 | } | |
12326 | _ACEOF | |
12327 | rm -f conftest.$ac_objext | |
631ef239 AC |
12328 | if { (ac_try="$ac_compile" |
12329 | case "(($ac_try" in | |
12330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12331 | *) ac_try_echo=$ac_try;; | |
12332 | esac | |
12333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12334 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12335 | ac_status=$? |
12336 | grep -v '^ *+' conftest.er1 >conftest.err | |
12337 | rm -f conftest.er1 | |
12338 | cat conftest.err >&5 | |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12340 | (exit $ac_status); } && { |
12341 | test -z "$ac_c_werror_flag" || | |
12342 | test ! -s conftest.err | |
12343 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12344 | charybdis_cv_c_gcc_parenthesis=yes |
12345 | else | |
12346 | echo "$as_me: failed program was:" >&5 | |
12347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12348 | ||
631ef239 | 12349 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 12350 | fi |
631ef239 AC |
12351 | |
12352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12353 | CFLAGS="${oldcflags}" |
12354 | fi | |
12355 | ||
12356 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
12357 | CWARNS="${CWARNS}-Wparenthesis " | |
631ef239 AC |
12358 | { echo "$as_me:$LINENO: result: ok" >&5 |
12359 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12360 | else |
12361 | charybdis_cv_c_gcc_parenthesis='' | |
631ef239 AC |
12362 | { echo "$as_me:$LINENO: result: no" >&5 |
12363 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12364 | fi |
12365 | else | |
631ef239 AC |
12366 | { echo "$as_me:$LINENO: result: no" >&5 |
12367 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12368 | fi |
12369 | ||
12370 | ||
631ef239 AC |
12371 | { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5 |
12372 | echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; } | |
212380e3 AC |
12373 | if test "${GCC-no}" = yes |
12374 | then | |
12375 | if test "${charybdis_cv_c_gcc_w+set}" = set; then | |
12376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12377 | else | |
12378 | ||
12379 | oldcflags="${CFLAGS-}" | |
12380 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
12381 | cat >conftest.$ac_ext <<_ACEOF | |
12382 | /* confdefs.h. */ | |
12383 | _ACEOF | |
12384 | cat confdefs.h >>conftest.$ac_ext | |
12385 | cat >>conftest.$ac_ext <<_ACEOF | |
12386 | /* end confdefs.h. */ | |
12387 | ||
12388 | #include <string.h> | |
12389 | #include <stdio.h> | |
12390 | int main(void); | |
12391 | ||
12392 | int | |
12393 | main () | |
12394 | { | |
12395 | ||
b1fc1658 | 12396 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12397 | |
12398 | ; | |
12399 | return 0; | |
12400 | } | |
12401 | _ACEOF | |
12402 | rm -f conftest.$ac_objext | |
631ef239 AC |
12403 | if { (ac_try="$ac_compile" |
12404 | case "(($ac_try" in | |
12405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12406 | *) ac_try_echo=$ac_try;; | |
12407 | esac | |
12408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12409 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12410 | ac_status=$? |
12411 | grep -v '^ *+' conftest.er1 >conftest.err | |
12412 | rm -f conftest.er1 | |
12413 | cat conftest.err >&5 | |
12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12415 | (exit $ac_status); } && { |
12416 | test -z "$ac_c_werror_flag" || | |
12417 | test ! -s conftest.err | |
12418 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12419 | charybdis_cv_c_gcc_w=yes |
12420 | else | |
12421 | echo "$as_me: failed program was:" >&5 | |
12422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12423 | ||
631ef239 | 12424 | charybdis_cv_c_gcc_w=no |
212380e3 | 12425 | fi |
631ef239 AC |
12426 | |
12427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12428 | CFLAGS="${oldcflags}" |
12429 | fi | |
12430 | ||
12431 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
12432 | CWARNS="${CWARNS}-W -Wno-unused " | |
631ef239 AC |
12433 | { echo "$as_me:$LINENO: result: ok" >&5 |
12434 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12435 | else |
12436 | charybdis_cv_c_gcc_w='' | |
631ef239 AC |
12437 | { echo "$as_me:$LINENO: result: no" >&5 |
12438 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12439 | fi |
12440 | else | |
631ef239 AC |
12441 | { echo "$as_me:$LINENO: result: no" >&5 |
12442 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12443 | fi |
12444 | ||
12445 | ||
631ef239 AC |
12446 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5 |
12447 | echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; } | |
212380e3 AC |
12448 | if test "${GCC-no}" = yes |
12449 | then | |
12450 | if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then | |
12451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12452 | else | |
12453 | ||
12454 | oldcflags="${CFLAGS-}" | |
12455 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
12456 | cat >conftest.$ac_ext <<_ACEOF | |
12457 | /* confdefs.h. */ | |
12458 | _ACEOF | |
12459 | cat confdefs.h >>conftest.$ac_ext | |
12460 | cat >>conftest.$ac_ext <<_ACEOF | |
12461 | /* end confdefs.h. */ | |
12462 | ||
12463 | #include <string.h> | |
12464 | #include <stdio.h> | |
12465 | int main(void); | |
12466 | ||
12467 | int | |
12468 | main () | |
12469 | { | |
12470 | ||
b1fc1658 | 12471 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12472 | |
12473 | ; | |
12474 | return 0; | |
12475 | } | |
12476 | _ACEOF | |
12477 | rm -f conftest.$ac_objext | |
631ef239 AC |
12478 | if { (ac_try="$ac_compile" |
12479 | case "(($ac_try" in | |
12480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12481 | *) ac_try_echo=$ac_try;; | |
12482 | esac | |
12483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12484 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12485 | ac_status=$? |
12486 | grep -v '^ *+' conftest.er1 >conftest.err | |
12487 | rm -f conftest.er1 | |
12488 | cat conftest.err >&5 | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12490 | (exit $ac_status); } && { |
12491 | test -z "$ac_c_werror_flag" || | |
12492 | test ! -s conftest.err | |
12493 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12494 | charybdis_cv_c_gcc_w_extra=yes |
12495 | else | |
12496 | echo "$as_me: failed program was:" >&5 | |
12497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12498 | ||
631ef239 | 12499 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 12500 | fi |
631ef239 AC |
12501 | |
12502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12503 | CFLAGS="${oldcflags}" |
12504 | fi | |
12505 | ||
12506 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
12507 | CWARNS="${CWARNS}-Wextra " | |
631ef239 AC |
12508 | { echo "$as_me:$LINENO: result: ok" >&5 |
12509 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12510 | else |
12511 | charybdis_cv_c_gcc_w_extra='' | |
631ef239 AC |
12512 | { echo "$as_me:$LINENO: result: no" >&5 |
12513 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12514 | fi |
12515 | else | |
631ef239 AC |
12516 | { echo "$as_me:$LINENO: result: no" >&5 |
12517 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12518 | fi |
12519 | ||
12520 | ||
631ef239 AC |
12521 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5 |
12522 | echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; } | |
212380e3 AC |
12523 | if test "${GCC-no}" = yes |
12524 | then | |
12525 | if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then | |
12526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12527 | else | |
12528 | ||
12529 | oldcflags="${CFLAGS-}" | |
12530 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
12531 | cat >conftest.$ac_ext <<_ACEOF | |
12532 | /* confdefs.h. */ | |
12533 | _ACEOF | |
12534 | cat confdefs.h >>conftest.$ac_ext | |
12535 | cat >>conftest.$ac_ext <<_ACEOF | |
12536 | /* end confdefs.h. */ | |
12537 | ||
12538 | #include <string.h> | |
12539 | #include <stdio.h> | |
12540 | int main(void); | |
12541 | ||
12542 | int | |
12543 | main () | |
12544 | { | |
12545 | ||
b1fc1658 | 12546 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12547 | |
12548 | ; | |
12549 | return 0; | |
12550 | } | |
12551 | _ACEOF | |
12552 | rm -f conftest.$ac_objext | |
631ef239 AC |
12553 | if { (ac_try="$ac_compile" |
12554 | case "(($ac_try" in | |
12555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12556 | *) ac_try_echo=$ac_try;; | |
12557 | esac | |
12558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12559 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12560 | ac_status=$? |
12561 | grep -v '^ *+' conftest.er1 >conftest.err | |
12562 | rm -f conftest.er1 | |
12563 | cat conftest.err >&5 | |
12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12565 | (exit $ac_status); } && { |
12566 | test -z "$ac_c_werror_flag" || | |
12567 | test ! -s conftest.err | |
12568 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12569 | charybdis_cv_c_gcc_w_shadow=yes |
12570 | else | |
12571 | echo "$as_me: failed program was:" >&5 | |
12572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12573 | ||
631ef239 | 12574 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 12575 | fi |
631ef239 AC |
12576 | |
12577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12578 | CFLAGS="${oldcflags}" |
12579 | fi | |
12580 | ||
12581 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
12582 | CWARNS="${CWARNS}-Wshadow " | |
631ef239 AC |
12583 | { echo "$as_me:$LINENO: result: ok" >&5 |
12584 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12585 | else |
12586 | charybdis_cv_c_gcc_w_shadow='' | |
631ef239 AC |
12587 | { echo "$as_me:$LINENO: result: no" >&5 |
12588 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12589 | fi |
12590 | else | |
631ef239 AC |
12591 | { echo "$as_me:$LINENO: result: no" >&5 |
12592 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12593 | fi |
12594 | ||
12595 | ||
631ef239 AC |
12596 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5 |
12597 | echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; } | |
212380e3 AC |
12598 | if test "${GCC-no}" = yes |
12599 | then | |
12600 | if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then | |
12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12602 | else | |
12603 | ||
12604 | oldcflags="${CFLAGS-}" | |
12605 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | /* confdefs.h. */ | |
12608 | _ACEOF | |
12609 | cat confdefs.h >>conftest.$ac_ext | |
12610 | cat >>conftest.$ac_ext <<_ACEOF | |
12611 | /* end confdefs.h. */ | |
12612 | ||
12613 | #include <string.h> | |
12614 | #include <stdio.h> | |
12615 | int main(void); | |
12616 | ||
12617 | int | |
12618 | main () | |
12619 | { | |
12620 | ||
b1fc1658 | 12621 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12622 | |
12623 | ; | |
12624 | return 0; | |
12625 | } | |
12626 | _ACEOF | |
12627 | rm -f conftest.$ac_objext | |
631ef239 AC |
12628 | if { (ac_try="$ac_compile" |
12629 | case "(($ac_try" in | |
12630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12631 | *) ac_try_echo=$ac_try;; | |
12632 | esac | |
12633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12634 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12635 | ac_status=$? |
12636 | grep -v '^ *+' conftest.er1 >conftest.err | |
12637 | rm -f conftest.er1 | |
12638 | cat conftest.err >&5 | |
12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12640 | (exit $ac_status); } && { |
12641 | test -z "$ac_c_werror_flag" || | |
12642 | test ! -s conftest.err | |
12643 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12644 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
12645 | else | |
12646 | echo "$as_me: failed program was:" >&5 | |
12647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12648 | ||
631ef239 | 12649 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 12650 | fi |
631ef239 AC |
12651 | |
12652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12653 | CFLAGS="${oldcflags}" |
12654 | fi | |
12655 | ||
12656 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
12657 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
631ef239 AC |
12658 | { echo "$as_me:$LINENO: result: ok" >&5 |
12659 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12660 | else |
12661 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
631ef239 AC |
12662 | { echo "$as_me:$LINENO: result: no" >&5 |
12663 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12664 | fi |
12665 | else | |
631ef239 AC |
12666 | { echo "$as_me:$LINENO: result: no" >&5 |
12667 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12668 | fi |
12669 | ||
12670 | ||
631ef239 AC |
12671 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5 |
12672 | echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; } | |
212380e3 AC |
12673 | if test "${GCC-no}" = yes |
12674 | then | |
12675 | if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then | |
12676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12677 | else | |
12678 | ||
12679 | oldcflags="${CFLAGS-}" | |
12680 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
12681 | cat >conftest.$ac_ext <<_ACEOF | |
12682 | /* confdefs.h. */ | |
12683 | _ACEOF | |
12684 | cat confdefs.h >>conftest.$ac_ext | |
12685 | cat >>conftest.$ac_ext <<_ACEOF | |
12686 | /* end confdefs.h. */ | |
12687 | ||
12688 | #include <string.h> | |
12689 | #include <stdio.h> | |
12690 | int main(void); | |
12691 | ||
12692 | int | |
12693 | main () | |
12694 | { | |
12695 | ||
b1fc1658 | 12696 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12697 | |
12698 | ; | |
12699 | return 0; | |
12700 | } | |
12701 | _ACEOF | |
12702 | rm -f conftest.$ac_objext | |
631ef239 AC |
12703 | if { (ac_try="$ac_compile" |
12704 | case "(($ac_try" in | |
12705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12706 | *) ac_try_echo=$ac_try;; | |
12707 | esac | |
12708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12709 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12710 | ac_status=$? |
12711 | grep -v '^ *+' conftest.er1 >conftest.err | |
12712 | rm -f conftest.er1 | |
12713 | cat conftest.err >&5 | |
12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12715 | (exit $ac_status); } && { |
12716 | test -z "$ac_c_werror_flag" || | |
12717 | test ! -s conftest.err | |
12718 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12719 | charybdis_cv_c_gcc_w_undef=yes |
12720 | else | |
12721 | echo "$as_me: failed program was:" >&5 | |
12722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12723 | ||
631ef239 | 12724 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 12725 | fi |
631ef239 AC |
12726 | |
12727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12728 | CFLAGS="${oldcflags}" |
12729 | fi | |
12730 | ||
12731 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
12732 | CWARNS="${CWARNS}-Wundef " | |
631ef239 AC |
12733 | { echo "$as_me:$LINENO: result: ok" >&5 |
12734 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12735 | else |
12736 | charybdis_cv_c_gcc_w_undef='' | |
631ef239 AC |
12737 | { echo "$as_me:$LINENO: result: no" >&5 |
12738 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12739 | fi |
12740 | else | |
631ef239 AC |
12741 | { echo "$as_me:$LINENO: result: no" >&5 |
12742 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12743 | fi |
12744 | ||
12745 | ||
631ef239 AC |
12746 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5 |
12747 | echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; } | |
212380e3 AC |
12748 | if test "${GCC-no}" = yes |
12749 | then | |
12750 | if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then | |
12751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12752 | else | |
12753 | ||
12754 | oldcflags="${CFLAGS-}" | |
12755 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
12756 | cat >conftest.$ac_ext <<_ACEOF | |
12757 | /* confdefs.h. */ | |
12758 | _ACEOF | |
12759 | cat confdefs.h >>conftest.$ac_ext | |
12760 | cat >>conftest.$ac_ext <<_ACEOF | |
12761 | /* end confdefs.h. */ | |
12762 | ||
12763 | #include <string.h> | |
12764 | #include <stdio.h> | |
12765 | int main(void); | |
12766 | ||
12767 | int | |
12768 | main () | |
12769 | { | |
12770 | ||
b1fc1658 | 12771 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12772 | |
12773 | ; | |
12774 | return 0; | |
12775 | } | |
12776 | _ACEOF | |
12777 | rm -f conftest.$ac_objext | |
631ef239 AC |
12778 | if { (ac_try="$ac_compile" |
12779 | case "(($ac_try" in | |
12780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12781 | *) ac_try_echo=$ac_try;; | |
12782 | esac | |
12783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12784 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12785 | ac_status=$? |
12786 | grep -v '^ *+' conftest.er1 >conftest.err | |
12787 | rm -f conftest.er1 | |
12788 | cat conftest.err >&5 | |
12789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12790 | (exit $ac_status); } && { |
12791 | test -z "$ac_c_werror_flag" || | |
12792 | test ! -s conftest.err | |
12793 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12794 | charybdis_cv_c_gcc_w_packed=yes |
12795 | else | |
12796 | echo "$as_me: failed program was:" >&5 | |
12797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12798 | ||
631ef239 | 12799 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 12800 | fi |
631ef239 AC |
12801 | |
12802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12803 | CFLAGS="${oldcflags}" |
12804 | fi | |
12805 | ||
12806 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
12807 | CWARNS="${CWARNS}-Wpacked " | |
631ef239 AC |
12808 | { echo "$as_me:$LINENO: result: ok" >&5 |
12809 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12810 | else |
12811 | charybdis_cv_c_gcc_w_packed='' | |
631ef239 AC |
12812 | { echo "$as_me:$LINENO: result: no" >&5 |
12813 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12814 | fi |
12815 | else | |
631ef239 AC |
12816 | { echo "$as_me:$LINENO: result: no" >&5 |
12817 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12818 | fi |
12819 | ||
12820 | ||
631ef239 AC |
12821 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5 |
12822 | echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; } | |
212380e3 AC |
12823 | if test "${GCC-no}" = yes |
12824 | then | |
12825 | if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then | |
12826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12827 | else | |
12828 | ||
12829 | oldcflags="${CFLAGS-}" | |
12830 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
12831 | cat >conftest.$ac_ext <<_ACEOF | |
12832 | /* confdefs.h. */ | |
12833 | _ACEOF | |
12834 | cat confdefs.h >>conftest.$ac_ext | |
12835 | cat >>conftest.$ac_ext <<_ACEOF | |
12836 | /* end confdefs.h. */ | |
12837 | ||
12838 | #include <string.h> | |
12839 | #include <stdio.h> | |
12840 | int main(void); | |
12841 | ||
12842 | int | |
12843 | main () | |
12844 | { | |
12845 | ||
b1fc1658 | 12846 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12847 | |
12848 | ; | |
12849 | return 0; | |
12850 | } | |
12851 | _ACEOF | |
12852 | rm -f conftest.$ac_objext | |
631ef239 AC |
12853 | if { (ac_try="$ac_compile" |
12854 | case "(($ac_try" in | |
12855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12856 | *) ac_try_echo=$ac_try;; | |
12857 | esac | |
12858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12859 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12860 | ac_status=$? |
12861 | grep -v '^ *+' conftest.er1 >conftest.err | |
12862 | rm -f conftest.er1 | |
12863 | cat conftest.err >&5 | |
12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12865 | (exit $ac_status); } && { |
12866 | test -z "$ac_c_werror_flag" || | |
12867 | test ! -s conftest.err | |
12868 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12869 | charybdis_cv_c_gcc_w_nested_externs=yes |
12870 | else | |
12871 | echo "$as_me: failed program was:" >&5 | |
12872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12873 | ||
631ef239 | 12874 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 12875 | fi |
631ef239 AC |
12876 | |
12877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12878 | CFLAGS="${oldcflags}" |
12879 | fi | |
12880 | ||
12881 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
12882 | CWARNS="${CWARNS}-Wnested-externs " | |
631ef239 AC |
12883 | { echo "$as_me:$LINENO: result: ok" >&5 |
12884 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12885 | else |
12886 | charybdis_cv_c_gcc_w_nested_externs='' | |
631ef239 AC |
12887 | { echo "$as_me:$LINENO: result: no" >&5 |
12888 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12889 | fi |
12890 | else | |
631ef239 AC |
12891 | { echo "$as_me:$LINENO: result: no" >&5 |
12892 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12893 | fi |
12894 | ||
12895 | ||
631ef239 AC |
12896 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
12897 | echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; } | |
212380e3 AC |
12898 | if test "${GCC-no}" = yes |
12899 | then | |
12900 | if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then | |
12901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12902 | else | |
12903 | ||
12904 | oldcflags="${CFLAGS-}" | |
12905 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
12906 | cat >conftest.$ac_ext <<_ACEOF | |
12907 | /* confdefs.h. */ | |
12908 | _ACEOF | |
12909 | cat confdefs.h >>conftest.$ac_ext | |
12910 | cat >>conftest.$ac_ext <<_ACEOF | |
12911 | /* end confdefs.h. */ | |
12912 | ||
12913 | #include <string.h> | |
12914 | #include <stdio.h> | |
12915 | int main(void); | |
12916 | ||
12917 | int | |
12918 | main () | |
12919 | { | |
12920 | ||
b1fc1658 | 12921 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12922 | |
12923 | ; | |
12924 | return 0; | |
12925 | } | |
12926 | _ACEOF | |
12927 | rm -f conftest.$ac_objext | |
631ef239 AC |
12928 | if { (ac_try="$ac_compile" |
12929 | case "(($ac_try" in | |
12930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12931 | *) ac_try_echo=$ac_try;; | |
12932 | esac | |
12933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12934 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
12935 | ac_status=$? |
12936 | grep -v '^ *+' conftest.er1 >conftest.err | |
12937 | rm -f conftest.er1 | |
12938 | cat conftest.err >&5 | |
12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
12940 | (exit $ac_status); } && { |
12941 | test -z "$ac_c_werror_flag" || | |
12942 | test ! -s conftest.err | |
12943 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
12944 | charybdis_cv_c_gcc_w_unused=yes |
12945 | else | |
12946 | echo "$as_me: failed program was:" >&5 | |
12947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12948 | ||
631ef239 | 12949 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 12950 | fi |
631ef239 AC |
12951 | |
12952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
12953 | CFLAGS="${oldcflags}" |
12954 | fi | |
12955 | ||
12956 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
12957 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
631ef239 AC |
12958 | { echo "$as_me:$LINENO: result: ok" >&5 |
12959 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
12960 | else |
12961 | charybdis_cv_c_gcc_w_unused='' | |
631ef239 AC |
12962 | { echo "$as_me:$LINENO: result: no" >&5 |
12963 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12964 | fi |
12965 | else | |
631ef239 AC |
12966 | { echo "$as_me:$LINENO: result: no" >&5 |
12967 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
12968 | fi |
12969 | ||
12970 | ||
631ef239 AC |
12971 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5 |
12972 | echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; } | |
212380e3 AC |
12973 | if test "${GCC-no}" = yes |
12974 | then | |
12975 | if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then | |
12976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12977 | else | |
12978 | ||
12979 | oldcflags="${CFLAGS-}" | |
12980 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
12981 | cat >conftest.$ac_ext <<_ACEOF | |
12982 | /* confdefs.h. */ | |
12983 | _ACEOF | |
12984 | cat confdefs.h >>conftest.$ac_ext | |
12985 | cat >>conftest.$ac_ext <<_ACEOF | |
12986 | /* end confdefs.h. */ | |
12987 | ||
12988 | #include <string.h> | |
12989 | #include <stdio.h> | |
12990 | int main(void); | |
12991 | ||
12992 | int | |
12993 | main () | |
12994 | { | |
12995 | ||
b1fc1658 | 12996 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
12997 | |
12998 | ; | |
12999 | return 0; | |
13000 | } | |
13001 | _ACEOF | |
13002 | rm -f conftest.$ac_objext | |
631ef239 AC |
13003 | if { (ac_try="$ac_compile" |
13004 | case "(($ac_try" in | |
13005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13006 | *) ac_try_echo=$ac_try;; | |
13007 | esac | |
13008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13009 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13010 | ac_status=$? |
13011 | grep -v '^ *+' conftest.er1 >conftest.err | |
13012 | rm -f conftest.er1 | |
13013 | cat conftest.err >&5 | |
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13015 | (exit $ac_status); } && { |
13016 | test -z "$ac_c_werror_flag" || | |
13017 | test ! -s conftest.err | |
13018 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13019 | charybdis_cv_c_gcc_w_redundant_decls=yes |
13020 | else | |
13021 | echo "$as_me: failed program was:" >&5 | |
13022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13023 | ||
631ef239 | 13024 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 13025 | fi |
631ef239 AC |
13026 | |
13027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13028 | CFLAGS="${oldcflags}" |
13029 | fi | |
13030 | ||
13031 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
13032 | CWARNS="${CWARNS}-Wredundant-decls " | |
631ef239 AC |
13033 | { echo "$as_me:$LINENO: result: ok" >&5 |
13034 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13035 | else |
13036 | charybdis_cv_c_gcc_w_redundant_decls='' | |
631ef239 AC |
13037 | { echo "$as_me:$LINENO: result: no" >&5 |
13038 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13039 | fi |
13040 | else | |
631ef239 AC |
13041 | { echo "$as_me:$LINENO: result: no" >&5 |
13042 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13043 | fi |
13044 | ||
13045 | ||
631ef239 AC |
13046 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5 |
13047 | echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; } | |
212380e3 AC |
13048 | if test "${GCC-no}" = yes |
13049 | then | |
13050 | if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then | |
13051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13052 | else | |
13053 | ||
13054 | oldcflags="${CFLAGS-}" | |
13055 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
13056 | cat >conftest.$ac_ext <<_ACEOF | |
13057 | /* confdefs.h. */ | |
13058 | _ACEOF | |
13059 | cat confdefs.h >>conftest.$ac_ext | |
13060 | cat >>conftest.$ac_ext <<_ACEOF | |
13061 | /* end confdefs.h. */ | |
13062 | ||
13063 | #include <string.h> | |
13064 | #include <stdio.h> | |
13065 | int main(void); | |
13066 | ||
13067 | int | |
13068 | main () | |
13069 | { | |
13070 | ||
b1fc1658 | 13071 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13072 | |
13073 | ; | |
13074 | return 0; | |
13075 | } | |
13076 | _ACEOF | |
13077 | rm -f conftest.$ac_objext | |
631ef239 AC |
13078 | if { (ac_try="$ac_compile" |
13079 | case "(($ac_try" in | |
13080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13081 | *) ac_try_echo=$ac_try;; | |
13082 | esac | |
13083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13084 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13085 | ac_status=$? |
13086 | grep -v '^ *+' conftest.er1 >conftest.err | |
13087 | rm -f conftest.er1 | |
13088 | cat conftest.err >&5 | |
13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13090 | (exit $ac_status); } && { |
13091 | test -z "$ac_c_werror_flag" || | |
13092 | test ! -s conftest.err | |
13093 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13094 | charybdis_cv_c_gcc_w_float_equal=yes |
13095 | else | |
13096 | echo "$as_me: failed program was:" >&5 | |
13097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13098 | ||
631ef239 | 13099 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 13100 | fi |
631ef239 AC |
13101 | |
13102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13103 | CFLAGS="${oldcflags}" |
13104 | fi | |
13105 | ||
13106 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
13107 | CWARNS="${CWARNS}-Wfloat-equal " | |
631ef239 AC |
13108 | { echo "$as_me:$LINENO: result: ok" >&5 |
13109 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13110 | else |
13111 | charybdis_cv_c_gcc_w_float_equal='' | |
631ef239 AC |
13112 | { echo "$as_me:$LINENO: result: no" >&5 |
13113 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13114 | fi |
13115 | else | |
631ef239 AC |
13116 | { echo "$as_me:$LINENO: result: no" >&5 |
13117 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13118 | fi |
13119 | ||
13120 | ||
4a584d41 JT |
13121 | { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
13122 | echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... $ECHO_C" >&6; } | |
212380e3 AC |
13123 | if test "${GCC-no}" = yes |
13124 | then | |
13125 | if test "${charybdis_cv_c_gcc_w_format+set}" = set; then | |
13126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13127 | else | |
13128 | ||
13129 | oldcflags="${CFLAGS-}" | |
4a584d41 | 13130 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
212380e3 AC |
13131 | cat >conftest.$ac_ext <<_ACEOF |
13132 | /* confdefs.h. */ | |
13133 | _ACEOF | |
13134 | cat confdefs.h >>conftest.$ac_ext | |
13135 | cat >>conftest.$ac_ext <<_ACEOF | |
13136 | /* end confdefs.h. */ | |
13137 | ||
13138 | #include <string.h> | |
13139 | #include <stdio.h> | |
13140 | int main(void); | |
13141 | ||
13142 | int | |
13143 | main () | |
13144 | { | |
13145 | ||
b1fc1658 | 13146 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
13147 | |
13148 | ; | |
13149 | return 0; | |
13150 | } | |
13151 | _ACEOF | |
13152 | rm -f conftest.$ac_objext | |
631ef239 AC |
13153 | if { (ac_try="$ac_compile" |
13154 | case "(($ac_try" in | |
13155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13156 | *) ac_try_echo=$ac_try;; | |
13157 | esac | |
13158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13159 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13160 | ac_status=$? |
13161 | grep -v '^ *+' conftest.er1 >conftest.err | |
13162 | rm -f conftest.er1 | |
13163 | cat conftest.err >&5 | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13165 | (exit $ac_status); } && { |
13166 | test -z "$ac_c_werror_flag" || | |
13167 | test ! -s conftest.err | |
13168 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13169 | charybdis_cv_c_gcc_w_format=yes |
13170 | else | |
13171 | echo "$as_me: failed program was:" >&5 | |
13172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13173 | ||
631ef239 | 13174 | charybdis_cv_c_gcc_w_format=no |
212380e3 | 13175 | fi |
631ef239 AC |
13176 | |
13177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
212380e3 AC |
13178 | CFLAGS="${oldcflags}" |
13179 | fi | |
13180 | ||
13181 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
4a584d41 | 13182 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " |
631ef239 AC |
13183 | { echo "$as_me:$LINENO: result: ok" >&5 |
13184 | echo "${ECHO_T}ok" >&6; } | |
212380e3 AC |
13185 | else |
13186 | charybdis_cv_c_gcc_w_format='' | |
631ef239 AC |
13187 | { echo "$as_me:$LINENO: result: no" >&5 |
13188 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13189 | fi |
13190 | else | |
631ef239 AC |
13191 | { echo "$as_me:$LINENO: result: no" >&5 |
13192 | echo "${ECHO_T}no" >&6; } | |
212380e3 AC |
13193 | fi |
13194 | ||
13195 | ||
212380e3 AC |
13196 | IRC_CFLAGS="$CFLAGS" |
13197 | ||
631ef239 AC |
13198 | fi |
13199 | ||
212380e3 AC |
13200 | |
13201 | if test "$shared_modules" = no; then | |
13202 | DYNLINK_C="" | |
13203 | MOD_TARGET="libmodules.a" | |
13204 | MODULES_LIBS="../modules/libmodules.a" | |
13205 | SEDOBJ="" | |
13206 | ||
13207 | cat >>confdefs.h <<\_ACEOF | |
13208 | #define STATIC_MODULES 1 | |
13209 | _ACEOF | |
13210 | ||
13211 | { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5 | |
13212 | echo "$as_me: WARNING: shared module support has been disabled!" >&2;} | |
13213 | fi | |
13214 | ||
13215 | if test "$shared_modules" = yes; then | |
13216 | ||
631ef239 AC |
13217 | { echo "$as_me:$LINENO: checking for nlist" >&5 |
13218 | echo $ECHO_N "checking for nlist... $ECHO_C" >&6; } | |
212380e3 AC |
13219 | if test "${ac_cv_func_nlist+set}" = set; then |
13220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13221 | else | |
13222 | cat >conftest.$ac_ext <<_ACEOF | |
13223 | /* confdefs.h. */ | |
13224 | _ACEOF | |
13225 | cat confdefs.h >>conftest.$ac_ext | |
13226 | cat >>conftest.$ac_ext <<_ACEOF | |
13227 | /* end confdefs.h. */ | |
13228 | /* Define nlist to an innocuous variant, in case <limits.h> declares nlist. | |
13229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13230 | #define nlist innocuous_nlist | |
13231 | ||
13232 | /* System header to define __stub macros and hopefully few prototypes, | |
13233 | which can conflict with char nlist (); below. | |
13234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13235 | <limits.h> exists even on freestanding compilers. */ | |
13236 | ||
13237 | #ifdef __STDC__ | |
13238 | # include <limits.h> | |
13239 | #else | |
13240 | # include <assert.h> | |
13241 | #endif | |
13242 | ||
13243 | #undef nlist | |
13244 | ||
631ef239 AC |
13245 | /* Override any GCC internal prototype to avoid an error. |
13246 | Use char because int might match the return type of a GCC | |
13247 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13248 | #ifdef __cplusplus |
13249 | extern "C" | |
212380e3 | 13250 | #endif |
212380e3 AC |
13251 | char nlist (); |
13252 | /* The GNU C library defines this for functions which it implements | |
13253 | to always fail with ENOSYS. Some functions are actually named | |
13254 | something starting with __ and the normal name is an alias. */ | |
631ef239 | 13255 | #if defined __stub_nlist || defined __stub___nlist |
212380e3 | 13256 | choke me |
212380e3 AC |
13257 | #endif |
13258 | ||
13259 | int | |
13260 | main () | |
13261 | { | |
631ef239 | 13262 | return nlist (); |
212380e3 AC |
13263 | ; |
13264 | return 0; | |
13265 | } | |
13266 | _ACEOF | |
13267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13268 | if { (ac_try="$ac_link" |
13269 | case "(($ac_try" in | |
13270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13271 | *) ac_try_echo=$ac_try;; | |
13272 | esac | |
13273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13274 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13275 | ac_status=$? |
13276 | grep -v '^ *+' conftest.er1 >conftest.err | |
13277 | rm -f conftest.er1 | |
13278 | cat conftest.err >&5 | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13280 | (exit $ac_status); } && { |
13281 | test -z "$ac_c_werror_flag" || | |
13282 | test ! -s conftest.err | |
13283 | } && test -s conftest$ac_exeext && | |
13284 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13285 | ac_cv_func_nlist=yes |
13286 | else | |
13287 | echo "$as_me: failed program was:" >&5 | |
13288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13289 | ||
631ef239 | 13290 | ac_cv_func_nlist=no |
212380e3 | 13291 | fi |
631ef239 AC |
13292 | |
13293 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13294 | conftest$ac_exeext conftest.$ac_ext |
13295 | fi | |
631ef239 AC |
13296 | { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5 |
13297 | echo "${ECHO_T}$ac_cv_func_nlist" >&6; } | |
212380e3 AC |
13298 | if test $ac_cv_func_nlist = yes; then |
13299 | : | |
13300 | else | |
631ef239 AC |
13301 | { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5 |
13302 | echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; } | |
212380e3 AC |
13303 | if test "${ac_cv_lib_dl_nlist+set}" = set; then |
13304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13305 | else | |
13306 | ac_check_lib_save_LIBS=$LIBS | |
13307 | LIBS="-ldl $LIBS" | |
13308 | cat >conftest.$ac_ext <<_ACEOF | |
13309 | /* confdefs.h. */ | |
13310 | _ACEOF | |
13311 | cat confdefs.h >>conftest.$ac_ext | |
13312 | cat >>conftest.$ac_ext <<_ACEOF | |
13313 | /* end confdefs.h. */ | |
13314 | ||
631ef239 AC |
13315 | /* Override any GCC internal prototype to avoid an error. |
13316 | Use char because int might match the return type of a GCC | |
13317 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13318 | #ifdef __cplusplus |
13319 | extern "C" | |
13320 | #endif | |
212380e3 AC |
13321 | char nlist (); |
13322 | int | |
13323 | main () | |
13324 | { | |
631ef239 | 13325 | return nlist (); |
212380e3 AC |
13326 | ; |
13327 | return 0; | |
13328 | } | |
13329 | _ACEOF | |
13330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13331 | if { (ac_try="$ac_link" |
13332 | case "(($ac_try" in | |
13333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13334 | *) ac_try_echo=$ac_try;; | |
13335 | esac | |
13336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13337 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13338 | ac_status=$? |
13339 | grep -v '^ *+' conftest.er1 >conftest.err | |
13340 | rm -f conftest.er1 | |
13341 | cat conftest.err >&5 | |
13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13343 | (exit $ac_status); } && { |
13344 | test -z "$ac_c_werror_flag" || | |
13345 | test ! -s conftest.err | |
13346 | } && test -s conftest$ac_exeext && | |
13347 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13348 | ac_cv_lib_dl_nlist=yes |
13349 | else | |
13350 | echo "$as_me: failed program was:" >&5 | |
13351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13352 | ||
631ef239 | 13353 | ac_cv_lib_dl_nlist=no |
212380e3 | 13354 | fi |
631ef239 AC |
13355 | |
13356 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13357 | conftest$ac_exeext conftest.$ac_ext |
13358 | LIBS=$ac_check_lib_save_LIBS | |
13359 | fi | |
631ef239 AC |
13360 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5 |
13361 | echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; } | |
212380e3 AC |
13362 | if test $ac_cv_lib_dl_nlist = yes; then |
13363 | nlist_lib="-ldl" | |
13364 | else | |
631ef239 AC |
13365 | { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5 |
13366 | echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; } | |
212380e3 AC |
13367 | if test "${ac_cv_lib_elf_nlist+set}" = set; then |
13368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13369 | else | |
13370 | ac_check_lib_save_LIBS=$LIBS | |
13371 | LIBS="-lelf $LIBS" | |
13372 | cat >conftest.$ac_ext <<_ACEOF | |
13373 | /* confdefs.h. */ | |
13374 | _ACEOF | |
13375 | cat confdefs.h >>conftest.$ac_ext | |
13376 | cat >>conftest.$ac_ext <<_ACEOF | |
13377 | /* end confdefs.h. */ | |
13378 | ||
631ef239 AC |
13379 | /* Override any GCC internal prototype to avoid an error. |
13380 | Use char because int might match the return type of a GCC | |
13381 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
13382 | #ifdef __cplusplus |
13383 | extern "C" | |
13384 | #endif | |
212380e3 AC |
13385 | char nlist (); |
13386 | int | |
13387 | main () | |
13388 | { | |
631ef239 | 13389 | return nlist (); |
212380e3 AC |
13390 | ; |
13391 | return 0; | |
13392 | } | |
13393 | _ACEOF | |
13394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
631ef239 AC |
13395 | if { (ac_try="$ac_link" |
13396 | case "(($ac_try" in | |
13397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13398 | *) ac_try_echo=$ac_try;; | |
13399 | esac | |
13400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13401 | (eval "$ac_link") 2>conftest.er1 | |
212380e3 AC |
13402 | ac_status=$? |
13403 | grep -v '^ *+' conftest.er1 >conftest.err | |
13404 | rm -f conftest.er1 | |
13405 | cat conftest.err >&5 | |
13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13407 | (exit $ac_status); } && { |
13408 | test -z "$ac_c_werror_flag" || | |
13409 | test ! -s conftest.err | |
13410 | } && test -s conftest$ac_exeext && | |
13411 | $as_test_x conftest$ac_exeext; then | |
212380e3 AC |
13412 | ac_cv_lib_elf_nlist=yes |
13413 | else | |
13414 | echo "$as_me: failed program was:" >&5 | |
13415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13416 | ||
631ef239 | 13417 | ac_cv_lib_elf_nlist=no |
212380e3 | 13418 | fi |
631ef239 AC |
13419 | |
13420 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
212380e3 AC |
13421 | conftest$ac_exeext conftest.$ac_ext |
13422 | LIBS=$ac_check_lib_save_LIBS | |
13423 | fi | |
631ef239 AC |
13424 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5 |
13425 | echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; } | |
212380e3 AC |
13426 | if test $ac_cv_lib_elf_nlist = yes; then |
13427 | nlist_lib="-lelf" | |
13428 | fi | |
13429 | ||
13430 | ||
13431 | fi | |
13432 | ||
13433 | ||
13434 | fi | |
13435 | ||
13436 | ||
13437 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then | |
631ef239 AC |
13438 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13439 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13440 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13442 | fi | |
631ef239 AC |
13443 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13444 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13445 | else |
13446 | # Is the header compilable? | |
631ef239 AC |
13447 | { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5 |
13448 | echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13449 | cat >conftest.$ac_ext <<_ACEOF |
13450 | /* confdefs.h. */ | |
13451 | _ACEOF | |
13452 | cat confdefs.h >>conftest.$ac_ext | |
13453 | cat >>conftest.$ac_ext <<_ACEOF | |
13454 | /* end confdefs.h. */ | |
13455 | $ac_includes_default | |
13456 | #include <libelf/nlist.h> | |
13457 | _ACEOF | |
13458 | rm -f conftest.$ac_objext | |
631ef239 AC |
13459 | if { (ac_try="$ac_compile" |
13460 | case "(($ac_try" in | |
13461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13462 | *) ac_try_echo=$ac_try;; | |
13463 | esac | |
13464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13465 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13466 | ac_status=$? |
13467 | grep -v '^ *+' conftest.er1 >conftest.err | |
13468 | rm -f conftest.er1 | |
13469 | cat conftest.err >&5 | |
13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13471 | (exit $ac_status); } && { |
13472 | test -z "$ac_c_werror_flag" || | |
13473 | test ! -s conftest.err | |
13474 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13475 | ac_header_compiler=yes |
13476 | else | |
13477 | echo "$as_me: failed program was:" >&5 | |
13478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13479 | ||
631ef239 | 13480 | ac_header_compiler=no |
212380e3 | 13481 | fi |
631ef239 AC |
13482 | |
13483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13484 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13485 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13486 | |
13487 | # Is the header present? | |
631ef239 AC |
13488 | { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5 |
13489 | echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13490 | cat >conftest.$ac_ext <<_ACEOF |
13491 | /* confdefs.h. */ | |
13492 | _ACEOF | |
13493 | cat confdefs.h >>conftest.$ac_ext | |
13494 | cat >>conftest.$ac_ext <<_ACEOF | |
13495 | /* end confdefs.h. */ | |
13496 | #include <libelf/nlist.h> | |
13497 | _ACEOF | |
631ef239 AC |
13498 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13499 | case "(($ac_try" in | |
13500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13501 | *) ac_try_echo=$ac_try;; | |
13502 | esac | |
13503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13504 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13505 | ac_status=$? |
13506 | grep -v '^ *+' conftest.er1 >conftest.err | |
13507 | rm -f conftest.er1 | |
13508 | cat conftest.err >&5 | |
13509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13510 | (exit $ac_status); } >/dev/null && { |
13511 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13512 | test ! -s conftest.err | |
13513 | }; then | |
212380e3 AC |
13514 | ac_header_preproc=yes |
13515 | else | |
13516 | echo "$as_me: failed program was:" >&5 | |
13517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13518 | ||
13519 | ac_header_preproc=no | |
13520 | fi | |
631ef239 | 13521 | |
212380e3 | 13522 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13523 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13524 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13525 | |
13526 | # So? What about this header? | |
13527 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13528 | yes:no: ) | |
13529 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13530 | echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13531 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5 | |
13532 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;} | |
13533 | ac_header_preproc=yes | |
13534 | ;; | |
13535 | no:yes:* ) | |
13536 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5 | |
13537 | echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;} | |
13538 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5 | |
13539 | echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13540 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5 | |
13541 | echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;} | |
13542 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13543 | echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13544 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13545 | echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13546 | { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13547 | echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13548 | |
212380e3 AC |
13549 | ;; |
13550 | esac | |
631ef239 AC |
13551 | { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5 |
13552 | echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13553 | if test "${ac_cv_header_libelf_nlist_h+set}" = set; then |
13554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13555 | else | |
13556 | ac_cv_header_libelf_nlist_h=$ac_header_preproc | |
13557 | fi | |
631ef239 AC |
13558 | { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5 |
13559 | echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; } | |
212380e3 AC |
13560 | |
13561 | fi | |
13562 | if test $ac_cv_header_libelf_nlist_h = yes; then | |
13563 | nlist_h="libelf/nlist.h" | |
13564 | fi | |
13565 | ||
13566 | ||
13567 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then | |
631ef239 AC |
13568 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13569 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13570 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13572 | fi | |
631ef239 AC |
13573 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13574 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13575 | else |
13576 | # Is the header compilable? | |
631ef239 AC |
13577 | { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5 |
13578 | echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13579 | cat >conftest.$ac_ext <<_ACEOF |
13580 | /* confdefs.h. */ | |
13581 | _ACEOF | |
13582 | cat confdefs.h >>conftest.$ac_ext | |
13583 | cat >>conftest.$ac_ext <<_ACEOF | |
13584 | /* end confdefs.h. */ | |
13585 | $ac_includes_default | |
13586 | #include <elf/nlist.h> | |
13587 | _ACEOF | |
13588 | rm -f conftest.$ac_objext | |
631ef239 AC |
13589 | if { (ac_try="$ac_compile" |
13590 | case "(($ac_try" in | |
13591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13592 | *) ac_try_echo=$ac_try;; | |
13593 | esac | |
13594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13595 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13596 | ac_status=$? |
13597 | grep -v '^ *+' conftest.er1 >conftest.err | |
13598 | rm -f conftest.er1 | |
13599 | cat conftest.err >&5 | |
13600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13601 | (exit $ac_status); } && { |
13602 | test -z "$ac_c_werror_flag" || | |
13603 | test ! -s conftest.err | |
13604 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13605 | ac_header_compiler=yes |
13606 | else | |
13607 | echo "$as_me: failed program was:" >&5 | |
13608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13609 | ||
631ef239 | 13610 | ac_header_compiler=no |
212380e3 | 13611 | fi |
631ef239 AC |
13612 | |
13613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13614 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13615 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13616 | |
13617 | # Is the header present? | |
631ef239 AC |
13618 | { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5 |
13619 | echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13620 | cat >conftest.$ac_ext <<_ACEOF |
13621 | /* confdefs.h. */ | |
13622 | _ACEOF | |
13623 | cat confdefs.h >>conftest.$ac_ext | |
13624 | cat >>conftest.$ac_ext <<_ACEOF | |
13625 | /* end confdefs.h. */ | |
13626 | #include <elf/nlist.h> | |
13627 | _ACEOF | |
631ef239 AC |
13628 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13629 | case "(($ac_try" in | |
13630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13631 | *) ac_try_echo=$ac_try;; | |
13632 | esac | |
13633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13635 | ac_status=$? |
13636 | grep -v '^ *+' conftest.er1 >conftest.err | |
13637 | rm -f conftest.er1 | |
13638 | cat conftest.err >&5 | |
13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13640 | (exit $ac_status); } >/dev/null && { |
13641 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13642 | test ! -s conftest.err | |
13643 | }; then | |
212380e3 AC |
13644 | ac_header_preproc=yes |
13645 | else | |
13646 | echo "$as_me: failed program was:" >&5 | |
13647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13648 | ||
13649 | ac_header_preproc=no | |
13650 | fi | |
631ef239 | 13651 | |
212380e3 | 13652 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13653 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13654 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13655 | |
13656 | # So? What about this header? | |
13657 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13658 | yes:no: ) | |
13659 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13660 | echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13661 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5 | |
13662 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;} | |
13663 | ac_header_preproc=yes | |
13664 | ;; | |
13665 | no:yes:* ) | |
13666 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5 | |
13667 | echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;} | |
13668 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5 | |
13669 | echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;} | |
13670 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5 | |
13671 | echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;} | |
13672 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13673 | echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13674 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5 | |
13675 | echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;} | |
13676 | { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5 | |
13677 | echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13678 | |
212380e3 AC |
13679 | ;; |
13680 | esac | |
631ef239 AC |
13681 | { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5 |
13682 | echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13683 | if test "${ac_cv_header_elf_nlist_h+set}" = set; then |
13684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13685 | else | |
13686 | ac_cv_header_elf_nlist_h=$ac_header_preproc | |
13687 | fi | |
631ef239 AC |
13688 | { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5 |
13689 | echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; } | |
212380e3 AC |
13690 | |
13691 | fi | |
13692 | if test $ac_cv_header_elf_nlist_h = yes; then | |
13693 | nlist_h="elf/nlist.h" | |
13694 | fi | |
13695 | ||
13696 | ||
13697 | if test "${ac_cv_header_nlist_h+set}" = set; then | |
631ef239 AC |
13698 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13699 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13700 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13702 | fi | |
631ef239 AC |
13703 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13704 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13705 | else |
13706 | # Is the header compilable? | |
631ef239 AC |
13707 | { echo "$as_me:$LINENO: checking nlist.h usability" >&5 |
13708 | echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; } | |
212380e3 AC |
13709 | cat >conftest.$ac_ext <<_ACEOF |
13710 | /* confdefs.h. */ | |
13711 | _ACEOF | |
13712 | cat confdefs.h >>conftest.$ac_ext | |
13713 | cat >>conftest.$ac_ext <<_ACEOF | |
13714 | /* end confdefs.h. */ | |
13715 | $ac_includes_default | |
13716 | #include <nlist.h> | |
13717 | _ACEOF | |
13718 | rm -f conftest.$ac_objext | |
631ef239 AC |
13719 | if { (ac_try="$ac_compile" |
13720 | case "(($ac_try" in | |
13721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13722 | *) ac_try_echo=$ac_try;; | |
13723 | esac | |
13724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13725 | (eval "$ac_compile") 2>conftest.er1 | |
212380e3 AC |
13726 | ac_status=$? |
13727 | grep -v '^ *+' conftest.er1 >conftest.err | |
13728 | rm -f conftest.er1 | |
13729 | cat conftest.err >&5 | |
13730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13731 | (exit $ac_status); } && { |
13732 | test -z "$ac_c_werror_flag" || | |
13733 | test ! -s conftest.err | |
13734 | } && test -s conftest.$ac_objext; then | |
212380e3 AC |
13735 | ac_header_compiler=yes |
13736 | else | |
13737 | echo "$as_me: failed program was:" >&5 | |
13738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13739 | ||
631ef239 | 13740 | ac_header_compiler=no |
212380e3 | 13741 | fi |
631ef239 AC |
13742 | |
13743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13744 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13745 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
212380e3 AC |
13746 | |
13747 | # Is the header present? | |
631ef239 AC |
13748 | { echo "$as_me:$LINENO: checking nlist.h presence" >&5 |
13749 | echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; } | |
212380e3 AC |
13750 | cat >conftest.$ac_ext <<_ACEOF |
13751 | /* confdefs.h. */ | |
13752 | _ACEOF | |
13753 | cat confdefs.h >>conftest.$ac_ext | |
13754 | cat >>conftest.$ac_ext <<_ACEOF | |
13755 | /* end confdefs.h. */ | |
13756 | #include <nlist.h> | |
13757 | _ACEOF | |
631ef239 AC |
13758 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13759 | case "(($ac_try" in | |
13760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13761 | *) ac_try_echo=$ac_try;; | |
13762 | esac | |
13763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13764 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
212380e3 AC |
13765 | ac_status=$? |
13766 | grep -v '^ *+' conftest.er1 >conftest.err | |
13767 | rm -f conftest.er1 | |
13768 | cat conftest.err >&5 | |
13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
631ef239 AC |
13770 | (exit $ac_status); } >/dev/null && { |
13771 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13772 | test ! -s conftest.err | |
13773 | }; then | |
212380e3 AC |
13774 | ac_header_preproc=yes |
13775 | else | |
13776 | echo "$as_me: failed program was:" >&5 | |
13777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13778 | ||
13779 | ac_header_preproc=no | |
13780 | fi | |
631ef239 | 13781 | |
212380e3 | 13782 | rm -f conftest.err conftest.$ac_ext |
631ef239 AC |
13783 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13784 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
212380e3 AC |
13785 | |
13786 | # So? What about this header? | |
13787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13788 | yes:no: ) | |
13789 | { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13790 | echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13791 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5 | |
13792 | echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;} | |
13793 | ac_header_preproc=yes | |
13794 | ;; | |
13795 | no:yes:* ) | |
13796 | { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5 | |
13797 | echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;} | |
13798 | { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5 | |
13799 | echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;} | |
13800 | { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5 | |
13801 | echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;} | |
13802 | { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13803 | echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
13804 | { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5 | |
13805 | echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;} | |
13806 | { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5 | |
13807 | echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;} | |
631ef239 | 13808 | |
212380e3 AC |
13809 | ;; |
13810 | esac | |
631ef239 AC |
13811 | { echo "$as_me:$LINENO: checking for nlist.h" >&5 |
13812 | echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; } | |
212380e3 AC |
13813 | if test "${ac_cv_header_nlist_h+set}" = set; then |
13814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13815 | else | |
13816 | ac_cv_header_nlist_h=$ac_header_preproc | |
13817 | fi | |
631ef239 AC |
13818 | { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5 |
13819 | echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; } | |
212380e3 AC |
13820 | |
13821 | fi | |
13822 | if test $ac_cv_header_nlist_h = yes; then | |
13823 | nlist_h="nlist.h" | |
13824 | fi | |
13825 | ||
13826 | ||
13827 | if test x"$nlist_h" = "x"; then | |
13828 | ||
13829 | cat >>confdefs.h <<_ACEOF | |
13830 | #define SYMBOL_PREFIX "" | |
13831 | _ACEOF | |
13832 | ||
13833 | else | |
631ef239 AC |
13834 | { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5 |
13835 | echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; } | |
212380e3 AC |
13836 | if test "${symbol_underscores+set}" = set; then |
13837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13838 | else | |
13839 | ||
13840 | cat << EOF > conftest.c | |
13841 | #include <$nlist_h> | |
13842 | #include <stdio.h> | |
13843 | #include <stdlib.h> | |
13844 | void _modinit(void); | |
13845 | int main(int argc, char *argv[]) { | |
13846 | int i; | |
13847 | struct nlist nl[5]; | |
13848 | ||
13849 | /* fill the names in this way, so it'll work almost everywhere */ | |
13850 | nl[0].n_name = "_modinit"; | |
13851 | nl[1].n_name = "__modinit"; | |
13852 | nl[2].n_name = "___modinit"; | |
13853 | nl[3].n_name = "____modinit"; | |
13854 | nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL; | |
13855 | ||
13856 | if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1); | |
13857 | for(i = 0; i < 4; i++) { | |
13858 | if(nl[i].n_value != NULL) | |
13859 | { | |
13860 | int j; | |
13861 | for(j = 0; j < i; j++) | |
13862 | printf("_"); | |
13863 | exit(i); | |
13864 | } | |
13865 | } | |
13866 | exit(-1); | |
13867 | } | |
13868 | void _modinit(void) { return; } | |
13869 | EOF | |
13870 | $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1 | |
13871 | symbol_underscores=`./conftest conftest` | |
631ef239 AC |
13872 | { echo "$as_me:$LINENO: result: $symbol_underscores" >&5 |
13873 | echo "${ECHO_T}$symbol_underscores" >&6; } | |
212380e3 AC |
13874 | $RM -f conftest conftest.c |
13875 | ||
13876 | fi | |
13877 | ||
13878 | ||
13879 | cat >>confdefs.h <<_ACEOF | |
13880 | #define SYMBOL_PREFIX "${symbol_underscores}" | |
13881 | _ACEOF | |
13882 | ||
13883 | fi | |
13884 | fi | |
13885 | ||
d2c5159a JT |
13886 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
13887 | ||
212380e3 AC |
13888 | |
13889 | ||
13890 | ||
13891 | ||
13892 | ||
13893 | ||
13894 | ||
13895 | ||
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
13901 | if test "$prefix" = "NONE"; then | |
13902 | ||
13903 | cat >>confdefs.h <<_ACEOF | |
13904 | #define IRCD_PREFIX "$ac_default_prefix" | |
13905 | _ACEOF | |
13906 | ||
13907 | ||
13908 | else | |
13909 | ||
13910 | ||
13911 | prefix=`echo $prefix | sed 's/\/$//'` | |
13912 | ||
13913 | cat >>confdefs.h <<_ACEOF | |
13914 | #define IRCD_PREFIX "$prefix" | |
13915 | _ACEOF | |
13916 | ||
13917 | ||
13918 | fi | |
13919 | ||
fb440e64 | 13920 | ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile" |
212380e3 AC |
13921 | |
13922 | ||
13923 | cat >confcache <<\_ACEOF | |
13924 | # This file is a shell script that caches the results of configure | |
13925 | # tests run on this system so they can be shared between configure | |
13926 | # scripts and configure runs, see configure's option --config-cache. | |
13927 | # It is not useful on other systems. If it contains results you don't | |
13928 | # want to keep, you may remove or edit it. | |
13929 | # | |
13930 | # config.status only pays attention to the cache file if you give it | |
13931 | # the --recheck option to rerun configure. | |
13932 | # | |
13933 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13934 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13935 | # following values. | |
13936 | ||
13937 | _ACEOF | |
13938 | ||
13939 | # The following way of writing the cache mishandles newlines in values, | |
13940 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 13941 | # So, we kill variables containing newlines. |
212380e3 AC |
13942 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13943 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
13944 | ( |
13945 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
13946 | eval ac_val=\$$ac_var | |
13947 | case $ac_val in #( | |
13948 | *${as_nl}*) | |
13949 | case $ac_var in #( | |
13950 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
13951 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
13952 | esac | |
13953 | case $ac_var in #( | |
13954 | _ | IFS | as_nl) ;; #( | |
13955 | *) $as_unset $ac_var ;; | |
13956 | esac ;; | |
13957 | esac | |
13958 | done | |
13959 | ||
212380e3 | 13960 | (set) 2>&1 | |
631ef239 AC |
13961 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
13962 | *${as_nl}ac_space=\ *) | |
212380e3 AC |
13963 | # `set' does not quote correctly, so add quotes (double-quote |
13964 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
13965 | sed -n \ | |
13966 | "s/'/'\\\\''/g; | |
13967 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 13968 | ;; #( |
212380e3 AC |
13969 | *) |
13970 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 13971 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 13972 | ;; |
631ef239 AC |
13973 | esac | |
13974 | sort | |
13975 | ) | | |
212380e3 | 13976 | sed ' |
631ef239 | 13977 | /^ac_cv_env_/b end |
212380e3 | 13978 | t clear |
631ef239 | 13979 | :clear |
212380e3 AC |
13980 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
13981 | t end | |
631ef239 AC |
13982 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
13983 | :end' >>confcache | |
13984 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
13985 | if test -w "$cache_file"; then | |
13986 | test "x$cache_file" != "x/dev/null" && | |
13987 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
13988 | echo "$as_me: updating cache $cache_file" >&6;} | |
212380e3 AC |
13989 | cat confcache >$cache_file |
13990 | else | |
631ef239 AC |
13991 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
13992 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
13993 | fi |
13994 | fi | |
13995 | rm -f confcache | |
13996 | ||
13997 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13998 | # Let make expand exec_prefix. | |
13999 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14000 | ||
212380e3 AC |
14001 | DEFS=-DHAVE_CONFIG_H |
14002 | ||
14003 | ac_libobjs= | |
14004 | ac_ltlibobjs= | |
14005 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14006 | # 1. Remove the extension, and $U if already installed. | |
631ef239 AC |
14007 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14008 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
14009 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14010 | # will be set to the directory where LIBOBJS objects are built. | |
14011 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14012 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
14013 | done |
14014 | LIBOBJS=$ac_libobjs | |
14015 | ||
14016 | LTLIBOBJS=$ac_ltlibobjs | |
14017 | ||
14018 | ||
14019 | ||
14020 | : ${CONFIG_STATUS=./config.status} | |
14021 | ac_clean_files_save=$ac_clean_files | |
14022 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14023 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14024 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14025 | cat >$CONFIG_STATUS <<_ACEOF | |
14026 | #! $SHELL | |
14027 | # Generated by $as_me. | |
14028 | # Run this file to recreate the current configuration. | |
14029 | # Compiler output produced by configure, useful for debugging | |
14030 | # configure, is in config.log if it exists. | |
14031 | ||
14032 | debug=false | |
14033 | ac_cs_recheck=false | |
14034 | ac_cs_silent=false | |
14035 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14036 | _ACEOF | |
14037 | ||
14038 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14039 | ## --------------------- ## | |
14040 | ## M4sh Initialization. ## | |
14041 | ## --------------------- ## | |
14042 | ||
631ef239 AC |
14043 | # Be more Bourne compatible |
14044 | DUALCASE=1; export DUALCASE # for MKS sh | |
212380e3 AC |
14045 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
14046 | emulate sh | |
14047 | NULLCMD=: | |
14048 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14049 | # is contrary to our usage. Disable this feature. | |
14050 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 14051 | setopt NO_GLOB_SUBST |
212380e3 | 14052 | else |
631ef239 AC |
14053 | case `(set -o) 2>/dev/null` in |
14054 | *posix*) set -o posix ;; | |
14055 | esac | |
14056 | ||
212380e3 AC |
14057 | fi |
14058 | ||
14059 | ||
631ef239 AC |
14060 | |
14061 | ||
14062 | # PATH needs CR | |
14063 | # Avoid depending upon Character Ranges. | |
14064 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14065 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14066 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14067 | as_cr_digits='0123456789' | |
14068 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14069 | ||
14070 | # The user is always right. | |
14071 | if test "${PATH_SEPARATOR+set}" != set; then | |
14072 | echo "#! /bin/sh" >conf$$.sh | |
14073 | echo "exit 0" >>conf$$.sh | |
14074 | chmod +x conf$$.sh | |
14075 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14076 | PATH_SEPARATOR=';' | |
14077 | else | |
14078 | PATH_SEPARATOR=: | |
14079 | fi | |
14080 | rm -f conf$$.sh | |
14081 | fi | |
14082 | ||
14083 | # Support unset when possible. | |
14084 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14085 | as_unset=unset | |
14086 | else | |
14087 | as_unset=false | |
14088 | fi | |
14089 | ||
14090 | ||
14091 | # IFS | |
14092 | # We need space, tab and new line, in precisely that order. Quoting is | |
14093 | # there to prevent editors from complaining about space-tab. | |
14094 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14095 | # splitting by setting IFS to empty value.) | |
14096 | as_nl=' | |
14097 | ' | |
14098 | IFS=" "" $as_nl" | |
14099 | ||
14100 | # Find who we are. Look in the path if we contain no directory separator. | |
14101 | case $0 in | |
14102 | *[\\/]* ) as_myself=$0 ;; | |
14103 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14104 | for as_dir in $PATH | |
14105 | do | |
14106 | IFS=$as_save_IFS | |
14107 | test -z "$as_dir" && as_dir=. | |
14108 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14109 | done | |
14110 | IFS=$as_save_IFS | |
14111 | ||
14112 | ;; | |
14113 | esac | |
14114 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14115 | # in which case we are not to be found in the path. | |
14116 | if test "x$as_myself" = x; then | |
14117 | as_myself=$0 | |
14118 | fi | |
14119 | if test ! -f "$as_myself"; then | |
14120 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14121 | { (exit 1); exit 1; } | |
14122 | fi | |
14123 | ||
212380e3 | 14124 | # Work around bugs in pre-3.0 UWIN ksh. |
631ef239 AC |
14125 | for as_var in ENV MAIL MAILPATH |
14126 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
14127 | done | |
212380e3 AC |
14128 | PS1='$ ' |
14129 | PS2='> ' | |
14130 | PS4='+ ' | |
14131 | ||
14132 | # NLS nuisances. | |
14133 | for as_var in \ | |
14134 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14135 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14136 | LC_TELEPHONE LC_TIME | |
14137 | do | |
14138 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14139 | eval $as_var=C; export $as_var | |
14140 | else | |
631ef239 | 14141 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
212380e3 AC |
14142 | fi |
14143 | done | |
14144 | ||
14145 | # Required to use basename. | |
631ef239 AC |
14146 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14147 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14148 | as_expr=expr |
14149 | else | |
14150 | as_expr=false | |
14151 | fi | |
14152 | ||
631ef239 | 14153 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
14154 | as_basename=basename |
14155 | else | |
14156 | as_basename=false | |
14157 | fi | |
14158 | ||
14159 | ||
14160 | # Name of the executable. | |
631ef239 | 14161 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
14162 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14163 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 14164 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14165 | echo X/"$0" | |
631ef239 AC |
14166 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
14167 | s//\1/ | |
14168 | q | |
14169 | } | |
14170 | /^X\/\(\/\/\)$/{ | |
14171 | s//\1/ | |
14172 | q | |
14173 | } | |
14174 | /^X\/\(\/\).*/{ | |
14175 | s//\1/ | |
14176 | q | |
14177 | } | |
14178 | s/.*/./; q'` | |
212380e3 | 14179 | |
631ef239 AC |
14180 | # CDPATH. |
14181 | $as_unset CDPATH | |
212380e3 | 14182 | |
212380e3 AC |
14183 | |
14184 | ||
14185 | as_lineno_1=$LINENO | |
14186 | as_lineno_2=$LINENO | |
212380e3 | 14187 | test "x$as_lineno_1" != "x$as_lineno_2" && |
631ef239 | 14188 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
212380e3 AC |
14189 | |
14190 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14191 | # uniformly replaced by the line number. The first 'sed' inserts a | |
631ef239 AC |
14192 | # line-number line after each line using $LINENO; the second 'sed' |
14193 | # does the real work. The second script uses 'N' to pair each | |
14194 | # line-number line with the line containing $LINENO, and appends | |
14195 | # trailing '-' during substitution so that $LINENO is not a special | |
14196 | # case at line end. | |
212380e3 | 14197 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
631ef239 AC |
14198 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
14199 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
14200 | sed -n ' | |
14201 | p | |
14202 | /[$]LINENO/= | |
14203 | ' <$as_myself | | |
212380e3 | 14204 | sed ' |
631ef239 AC |
14205 | s/[$]LINENO.*/&-/ |
14206 | t lineno | |
14207 | b | |
14208 | :lineno | |
212380e3 | 14209 | N |
631ef239 AC |
14210 | :loop |
14211 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
212380e3 | 14212 | t loop |
631ef239 | 14213 | s/-\n.*// |
212380e3 | 14214 | ' >$as_me.lineno && |
631ef239 AC |
14215 | chmod +x "$as_me.lineno" || |
14216 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
212380e3 AC |
14217 | { (exit 1); exit 1; }; } |
14218 | ||
14219 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14220 | # (the dirname of $[0] is not the place where we might find the | |
631ef239 AC |
14221 | # original and so on. Autoconf is especially sensitive to this). |
14222 | . "./$as_me.lineno" | |
212380e3 AC |
14223 | # Exit status is that of the last command. |
14224 | exit | |
14225 | } | |
14226 | ||
14227 | ||
631ef239 AC |
14228 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14229 | as_dirname=dirname | |
14230 | else | |
14231 | as_dirname=false | |
14232 | fi | |
14233 | ||
14234 | ECHO_C= ECHO_N= ECHO_T= | |
14235 | case `echo -n x` in | |
14236 | -n*) | |
14237 | case `echo 'x\c'` in | |
14238 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14239 | *) ECHO_C='\c';; | |
14240 | esac;; | |
14241 | *) | |
14242 | ECHO_N='-n';; | |
212380e3 AC |
14243 | esac |
14244 | ||
631ef239 AC |
14245 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14246 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
14247 | as_expr=expr |
14248 | else | |
14249 | as_expr=false | |
14250 | fi | |
14251 | ||
14252 | rm -f conf$$ conf$$.exe conf$$.file | |
631ef239 AC |
14253 | if test -d conf$$.dir; then |
14254 | rm -f conf$$.dir/conf$$.file | |
14255 | else | |
14256 | rm -f conf$$.dir | |
14257 | mkdir conf$$.dir | |
14258 | fi | |
212380e3 AC |
14259 | echo >conf$$.file |
14260 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
631ef239 AC |
14261 | as_ln_s='ln -s' |
14262 | # ... but there are two gotchas: | |
14263 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14264 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14265 | # In both cases, we have to default to `cp -p'. | |
14266 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
212380e3 | 14267 | as_ln_s='cp -p' |
212380e3 AC |
14268 | elif ln conf$$.file conf$$ 2>/dev/null; then |
14269 | as_ln_s=ln | |
14270 | else | |
14271 | as_ln_s='cp -p' | |
14272 | fi | |
631ef239 AC |
14273 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14274 | rmdir conf$$.dir 2>/dev/null | |
212380e3 AC |
14275 | |
14276 | if mkdir -p . 2>/dev/null; then | |
14277 | as_mkdir_p=: | |
14278 | else | |
14279 | test -d ./-p && rmdir ./-p | |
14280 | as_mkdir_p=false | |
14281 | fi | |
14282 | ||
631ef239 AC |
14283 | if test -x / >/dev/null 2>&1; then |
14284 | as_test_x='test -x' | |
14285 | else | |
14286 | if ls -dL / >/dev/null 2>&1; then | |
14287 | as_ls_L_option=L | |
14288 | else | |
14289 | as_ls_L_option= | |
14290 | fi | |
14291 | as_test_x=' | |
14292 | eval sh -c '\'' | |
14293 | if test -d "$1"; then | |
14294 | test -d "$1/."; | |
14295 | else | |
14296 | case $1 in | |
14297 | -*)set "./$1";; | |
14298 | esac; | |
14299 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
14300 | ???[sx]*):;;*)false;;esac;fi | |
14301 | '\'' sh | |
14302 | ' | |
14303 | fi | |
14304 | as_executable_p=$as_test_x | |
212380e3 AC |
14305 | |
14306 | # Sed expression to map a string onto a valid CPP name. | |
14307 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14308 | ||
14309 | # Sed expression to map a string onto a valid variable name. | |
14310 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14311 | ||
14312 | ||
212380e3 AC |
14313 | exec 6>&1 |
14314 | ||
631ef239 | 14315 | # Save the log message, to keep $[0] and so on meaningful, and to |
212380e3 | 14316 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
14317 | # values after options handling. |
14318 | ac_log=" | |
aa150eb9 | 14319 | This file was extended by charybdis $as_me 3.1.0, which was |
631ef239 | 14320 | generated by GNU Autoconf 2.61. Invocation command line was |
212380e3 AC |
14321 | |
14322 | CONFIG_FILES = $CONFIG_FILES | |
14323 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14324 | CONFIG_LINKS = $CONFIG_LINKS | |
14325 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14326 | $ $0 $@ | |
14327 | ||
631ef239 AC |
14328 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14329 | " | |
14330 | ||
212380e3 AC |
14331 | _ACEOF |
14332 | ||
631ef239 | 14333 | cat >>$CONFIG_STATUS <<_ACEOF |
212380e3 | 14334 | # Files that config.status was made for. |
631ef239 AC |
14335 | config_files="$ac_config_files" |
14336 | config_headers="$ac_config_headers" | |
212380e3 | 14337 | |
631ef239 | 14338 | _ACEOF |
212380e3 AC |
14339 | |
14340 | cat >>$CONFIG_STATUS <<\_ACEOF | |
212380e3 AC |
14341 | ac_cs_usage="\ |
14342 | \`$as_me' instantiates files from templates according to the | |
14343 | current configuration. | |
14344 | ||
14345 | Usage: $0 [OPTIONS] [FILE]... | |
14346 | ||
14347 | -h, --help print this help, then exit | |
631ef239 | 14348 | -V, --version print version number and configuration settings, then exit |
212380e3 AC |
14349 | -q, --quiet do not print progress messages |
14350 | -d, --debug don't remove temporary files | |
14351 | --recheck update $as_me by reconfiguring in the same conditions | |
14352 | --file=FILE[:TEMPLATE] | |
14353 | instantiate the configuration file FILE | |
14354 | --header=FILE[:TEMPLATE] | |
14355 | instantiate the configuration header FILE | |
14356 | ||
14357 | Configuration files: | |
14358 | $config_files | |
14359 | ||
14360 | Configuration headers: | |
14361 | $config_headers | |
14362 | ||
14363 | Report bugs to <bug-autoconf@gnu.org>." | |
212380e3 | 14364 | |
631ef239 | 14365 | _ACEOF |
212380e3 AC |
14366 | cat >>$CONFIG_STATUS <<_ACEOF |
14367 | ac_cs_version="\\ | |
aa150eb9 | 14368 | charybdis config.status 3.1.0 |
631ef239 AC |
14369 | configured by $0, generated by GNU Autoconf 2.61, |
14370 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
212380e3 | 14371 | |
631ef239 | 14372 | Copyright (C) 2006 Free Software Foundation, Inc. |
212380e3 AC |
14373 | This config.status script is free software; the Free Software Foundation |
14374 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
14375 | |
14376 | ac_pwd='$ac_pwd' | |
14377 | srcdir='$srcdir' | |
14378 | INSTALL='$INSTALL' | |
212380e3 AC |
14379 | _ACEOF |
14380 | ||
14381 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14382 | # If no file are specified by the user, then we need to provide default | |
14383 | # value. By we need to know if files were specified by the user. | |
14384 | ac_need_defaults=: | |
14385 | while test $# != 0 | |
14386 | do | |
14387 | case $1 in | |
14388 | --*=*) | |
631ef239 AC |
14389 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14390 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
14391 | ac_shift=: |
14392 | ;; | |
631ef239 | 14393 | *) |
212380e3 AC |
14394 | ac_option=$1 |
14395 | ac_optarg=$2 | |
14396 | ac_shift=shift | |
14397 | ;; | |
212380e3 AC |
14398 | esac |
14399 | ||
14400 | case $ac_option in | |
14401 | # Handling of the options. | |
212380e3 AC |
14402 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
14403 | ac_cs_recheck=: ;; | |
631ef239 AC |
14404 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14405 | echo "$ac_cs_version"; exit ;; | |
14406 | --debug | --debu | --deb | --de | --d | -d ) | |
212380e3 AC |
14407 | debug=: ;; |
14408 | --file | --fil | --fi | --f ) | |
14409 | $ac_shift | |
14410 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14411 | ac_need_defaults=false;; | |
14412 | --header | --heade | --head | --hea ) | |
14413 | $ac_shift | |
14414 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14415 | ac_need_defaults=false;; | |
631ef239 AC |
14416 | --he | --h) |
14417 | # Conflict between --help and --header | |
14418 | { echo "$as_me: error: ambiguous option: $1 | |
14419 | Try \`$0 --help' for more information." >&2 | |
14420 | { (exit 1); exit 1; }; };; | |
14421 | --help | --hel | -h ) | |
14422 | echo "$ac_cs_usage"; exit ;; | |
212380e3 AC |
14423 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14424 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14425 | ac_cs_silent=: ;; | |
14426 | ||
14427 | # This is an error. | |
631ef239 AC |
14428 | -*) { echo "$as_me: error: unrecognized option: $1 |
14429 | Try \`$0 --help' for more information." >&2 | |
212380e3 AC |
14430 | { (exit 1); exit 1; }; } ;; |
14431 | ||
631ef239 AC |
14432 | *) ac_config_targets="$ac_config_targets $1" |
14433 | ac_need_defaults=false ;; | |
212380e3 AC |
14434 | |
14435 | esac | |
14436 | shift | |
14437 | done | |
14438 | ||
14439 | ac_configure_extra_args= | |
14440 | ||
14441 | if $ac_cs_silent; then | |
14442 | exec 6>/dev/null | |
14443 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14444 | fi | |
14445 | ||
14446 | _ACEOF | |
14447 | cat >>$CONFIG_STATUS <<_ACEOF | |
14448 | if \$ac_cs_recheck; then | |
631ef239 AC |
14449 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
14450 | CONFIG_SHELL=$SHELL | |
14451 | export CONFIG_SHELL | |
14452 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
212380e3 AC |
14453 | fi |
14454 | ||
14455 | _ACEOF | |
631ef239 AC |
14456 | cat >>$CONFIG_STATUS <<\_ACEOF |
14457 | exec 5>>config.log | |
14458 | { | |
14459 | echo | |
14460 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14461 | ## Running $as_me. ## | |
14462 | _ASBOX | |
14463 | echo "$ac_log" | |
14464 | } >&5 | |
212380e3 | 14465 | |
631ef239 AC |
14466 | _ACEOF |
14467 | cat >>$CONFIG_STATUS <<_ACEOF | |
14468 | _ACEOF | |
212380e3 AC |
14469 | |
14470 | cat >>$CONFIG_STATUS <<\_ACEOF | |
631ef239 AC |
14471 | |
14472 | # Handling of arguments. | |
212380e3 AC |
14473 | for ac_config_target in $ac_config_targets |
14474 | do | |
631ef239 AC |
14475 | case $ac_config_target in |
14476 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
14477 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
53970d07 | 14478 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 AC |
14479 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
14480 | "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;; | |
14481 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
14482 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
14483 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
14484 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14485 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
14486 | ||
212380e3 AC |
14487 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14488 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14489 | { (exit 1); exit 1; }; };; | |
14490 | esac | |
14491 | done | |
14492 | ||
631ef239 | 14493 | |
212380e3 AC |
14494 | # If the user did not use the arguments to specify the items to instantiate, |
14495 | # then the envvar interface is used. Set only those that are not. | |
14496 | # We use the long form for the default assignment because of an extremely | |
14497 | # bizarre bug on SunOS 4.1.3. | |
14498 | if $ac_need_defaults; then | |
14499 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14500 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14501 | fi | |
14502 | ||
14503 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 14504 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 14505 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
14506 | # Hook for its removal unless debugging. |
14507 | # Note that there is a small window in which the directory will not be cleaned: | |
14508 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
14509 | $debug || |
14510 | { | |
631ef239 AC |
14511 | tmp= |
14512 | trap 'exit_status=$? | |
14513 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14514 | ' 0 | |
212380e3 AC |
14515 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
14516 | } | |
212380e3 AC |
14517 | # Create a (secure) tmp directory for tmp files. |
14518 | ||
14519 | { | |
631ef239 | 14520 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
212380e3 AC |
14521 | test -n "$tmp" && test -d "$tmp" |
14522 | } || | |
14523 | { | |
631ef239 AC |
14524 | tmp=./conf$$-$RANDOM |
14525 | (umask 077 && mkdir "$tmp") | |
212380e3 AC |
14526 | } || |
14527 | { | |
14528 | echo "$me: cannot create a temporary directory in ." >&2 | |
14529 | { (exit 1); exit 1; } | |
14530 | } | |
14531 | ||
212380e3 | 14532 | # |
631ef239 | 14533 | # Set up the sed scripts for CONFIG_FILES section. |
212380e3 AC |
14534 | # |
14535 | ||
14536 | # No need to generate the scripts if there are no CONFIG_FILES. | |
14537 | # This happens for instance when ./config.status config.h | |
631ef239 AC |
14538 | if test -n "$CONFIG_FILES"; then |
14539 | ||
14540 | _ACEOF | |
14541 | ||
14542 | ||
14543 | ||
14544 | ac_delim='%!_!# ' | |
14545 | for ac_last_try in false false false false false :; do | |
14546 | cat >conf$$subs.sed <<_ACEOF | |
14547 | SHELL!$SHELL$ac_delim | |
14548 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
14549 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
14550 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
14551 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
14552 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
14553 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
14554 | exec_prefix!$exec_prefix$ac_delim | |
14555 | prefix!$prefix$ac_delim | |
14556 | program_transform_name!$program_transform_name$ac_delim | |
14557 | bindir!$bindir$ac_delim | |
14558 | sbindir!$sbindir$ac_delim | |
14559 | libexecdir!$libexecdir$ac_delim | |
14560 | datarootdir!$datarootdir$ac_delim | |
14561 | datadir!$datadir$ac_delim | |
14562 | sysconfdir!$sysconfdir$ac_delim | |
14563 | sharedstatedir!$sharedstatedir$ac_delim | |
14564 | localstatedir!$localstatedir$ac_delim | |
14565 | includedir!$includedir$ac_delim | |
14566 | oldincludedir!$oldincludedir$ac_delim | |
14567 | docdir!$docdir$ac_delim | |
14568 | infodir!$infodir$ac_delim | |
14569 | htmldir!$htmldir$ac_delim | |
14570 | dvidir!$dvidir$ac_delim | |
14571 | pdfdir!$pdfdir$ac_delim | |
14572 | psdir!$psdir$ac_delim | |
14573 | libdir!$libdir$ac_delim | |
14574 | localedir!$localedir$ac_delim | |
14575 | mandir!$mandir$ac_delim | |
14576 | DEFS!$DEFS$ac_delim | |
14577 | ECHO_C!$ECHO_C$ac_delim | |
14578 | ECHO_N!$ECHO_N$ac_delim | |
14579 | ECHO_T!$ECHO_T$ac_delim | |
14580 | LIBS!$LIBS$ac_delim | |
14581 | build_alias!$build_alias$ac_delim | |
14582 | host_alias!$host_alias$ac_delim | |
14583 | target_alias!$target_alias$ac_delim | |
14584 | CC!$CC$ac_delim | |
14585 | CFLAGS!$CFLAGS$ac_delim | |
14586 | LDFLAGS!$LDFLAGS$ac_delim | |
14587 | CPPFLAGS!$CPPFLAGS$ac_delim | |
14588 | ac_ct_CC!$ac_ct_CC$ac_delim | |
14589 | EXEEXT!$EXEEXT$ac_delim | |
14590 | OBJEXT!$OBJEXT$ac_delim | |
b676ea3b | 14591 | subdirs!$subdirs$ac_delim |
631ef239 AC |
14592 | MKDEP!$MKDEP$ac_delim |
14593 | MAKEDEPEND!$MAKEDEPEND$ac_delim | |
14594 | STDOUT!$STDOUT$ac_delim | |
14595 | CPP!$CPP$ac_delim | |
14596 | GREP!$GREP$ac_delim | |
14597 | EGREP!$EGREP$ac_delim | |
14598 | SET_MAKE!$SET_MAKE$ac_delim | |
14599 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
14600 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
14601 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
14602 | RM!$RM$ac_delim | |
14603 | CP!$CP$ac_delim | |
14604 | MV!$MV$ac_delim | |
14605 | LN!$LN$ac_delim | |
14606 | SED!$SED$ac_delim | |
14607 | AR!$AR$ac_delim | |
14608 | LD!$LD$ac_delim | |
14609 | RANLIB!$RANLIB$ac_delim | |
14610 | TOUCH!$TOUCH$ac_delim | |
14611 | YACC!$YACC$ac_delim | |
14612 | YFLAGS!$YFLAGS$ac_delim | |
14613 | LEX!$LEX$ac_delim | |
14614 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
14615 | LEXLIB!$LEXLIB$ac_delim | |
14616 | CRYPT_LIB!$CRYPT_LIB$ac_delim | |
14617 | VICONF!$VICONF$ac_delim | |
14618 | ALLOCA!$ALLOCA$ac_delim | |
14619 | ENCSPEED!$ENCSPEED$ac_delim | |
14620 | ZLIB_LD!$ZLIB_LD$ac_delim | |
14621 | ETC_DIR!$ETC_DIR$ac_delim | |
14622 | confdir!$confdir$ac_delim | |
14623 | LOG_DIR!$LOG_DIR$ac_delim | |
14624 | logdir!$logdir$ac_delim | |
14625 | HELP_DIR!$HELP_DIR$ac_delim | |
14626 | helpdir!$helpdir$ac_delim | |
14627 | MODULE_DIR!$MODULE_DIR$ac_delim | |
14628 | moduledir!$moduledir$ac_delim | |
14629 | SELECT_TYPE!$SELECT_TYPE$ac_delim | |
631ef239 AC |
14630 | MODULES_LIBS!$MODULES_LIBS$ac_delim |
14631 | MOD_TARGET!$MOD_TARGET$ac_delim | |
14632 | SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim | |
14633 | SSL_INCLUDES!$SSL_INCLUDES$ac_delim | |
14634 | SSL_LIBS!$SSL_LIBS$ac_delim | |
14635 | PICFLAGS!$PICFLAGS$ac_delim | |
14636 | IRC_CFLAGS!$IRC_CFLAGS$ac_delim | |
14637 | SEDOBJ!$SEDOBJ$ac_delim | |
14638 | LIBOBJS!$LIBOBJS$ac_delim | |
14639 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
14640 | _ACEOF | |
14641 | ||
b676ea3b | 14642 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then |
631ef239 AC |
14643 | break |
14644 | elif $ac_last_try; then | |
14645 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
14646 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
14647 | { (exit 1); exit 1; }; } | |
14648 | else | |
14649 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 14650 | fi |
631ef239 | 14651 | done |
212380e3 | 14652 | |
631ef239 AC |
14653 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
14654 | if test -n "$ac_eof"; then | |
14655 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
14656 | ac_eof=`expr $ac_eof + 1` | |
14657 | fi | |
14658 | ||
14659 | cat >>$CONFIG_STATUS <<_ACEOF | |
14660 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
14661 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
14662 | _ACEOF | |
14663 | sed ' | |
14664 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
14665 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
14666 | :n | |
14667 | t n | |
14668 | s/'"$ac_delim"'$/,g/; t | |
14669 | s/$/\\/; p | |
14670 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
14671 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
14672 | rm -f conf$$subs.sed | |
14673 | cat >>$CONFIG_STATUS <<_ACEOF | |
14674 | :end | |
14675 | s/|#_!!_#|//g | |
14676 | CEOF$ac_eof | |
212380e3 | 14677 | _ACEOF |
631ef239 AC |
14678 | |
14679 | ||
14680 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14681 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14682 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14683 | # (actually we leave an empty line to preserve line numbers). | |
14684 | if test "x$srcdir" = x.; then | |
14685 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14686 | s/:*\$(srcdir):*/:/ | |
14687 | s/:*\${srcdir}:*/:/ | |
14688 | s/:*@srcdir@:*/:/ | |
14689 | s/^\([^=]*=[ ]*\):*/\1/ | |
14690 | s/:*$// | |
14691 | s/^[^=]*=[ ]*$// | |
14692 | }' | |
14693 | fi | |
14694 | ||
212380e3 | 14695 | cat >>$CONFIG_STATUS <<\_ACEOF |
631ef239 AC |
14696 | fi # test -n "$CONFIG_FILES" |
14697 | ||
14698 | ||
14699 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | |
14700 | do | |
14701 | case $ac_tag in | |
14702 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14703 | esac | |
14704 | case $ac_mode$ac_tag in | |
14705 | :[FHL]*:*);; | |
14706 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
14707 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
14708 | { (exit 1); exit 1; }; };; | |
14709 | :[FH]-) ac_tag=-:-;; | |
14710 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 14711 | esac |
631ef239 AC |
14712 | ac_save_IFS=$IFS |
14713 | IFS=: | |
14714 | set x $ac_tag | |
14715 | IFS=$ac_save_IFS | |
14716 | shift | |
14717 | ac_file=$1 | |
14718 | shift | |
212380e3 | 14719 | |
631ef239 AC |
14720 | case $ac_mode in |
14721 | :L) ac_source=$1;; | |
14722 | :[FH]) | |
14723 | ac_file_inputs= | |
14724 | for ac_f | |
14725 | do | |
14726 | case $ac_f in | |
14727 | -) ac_f="$tmp/stdin";; | |
14728 | *) # Look for the file first in the build tree, then in the source tree | |
14729 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14730 | # because $ac_f cannot contain `:'. | |
14731 | test -f "$ac_f" || | |
14732 | case $ac_f in | |
14733 | [\\/$]*) false;; | |
14734 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14735 | esac || | |
14736 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
14737 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
14738 | { (exit 1); exit 1; }; };; | |
14739 | esac | |
14740 | ac_file_inputs="$ac_file_inputs $ac_f" | |
14741 | done | |
14742 | ||
14743 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14744 | # use $as_me), people would be surprised to read: | |
14745 | # /* config.h. Generated by config.status. */ | |
14746 | configure_input="Generated from "`IFS=: | |
14747 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
14748 | if test x"$ac_file" != x-; then | |
14749 | configure_input="$ac_file. $configure_input" | |
14750 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14751 | echo "$as_me: creating $ac_file" >&6;} | |
14752 | fi | |
14753 | ||
14754 | case $ac_tag in | |
14755 | *:-:* | *:-) cat >"$tmp/stdin";; | |
14756 | esac | |
14757 | ;; | |
14758 | esac | |
14759 | ||
14760 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
14761 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14762 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14763 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 14764 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14765 | echo X"$ac_file" | |
631ef239 AC |
14766 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14767 | s//\1/ | |
14768 | q | |
14769 | } | |
14770 | /^X\(\/\/\)[^/].*/{ | |
14771 | s//\1/ | |
14772 | q | |
14773 | } | |
14774 | /^X\(\/\/\)$/{ | |
14775 | s//\1/ | |
14776 | q | |
14777 | } | |
14778 | /^X\(\/\).*/{ | |
14779 | s//\1/ | |
14780 | q | |
14781 | } | |
14782 | s/.*/./; q'` | |
14783 | { as_dir="$ac_dir" | |
14784 | case $as_dir in #( | |
14785 | -*) as_dir=./$as_dir;; | |
14786 | esac | |
14787 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
212380e3 | 14788 | as_dirs= |
631ef239 AC |
14789 | while :; do |
14790 | case $as_dir in #( | |
14791 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
14792 | *) as_qdir=$as_dir;; | |
14793 | esac | |
14794 | as_dirs="'$as_qdir' $as_dirs" | |
14795 | as_dir=`$as_dirname -- "$as_dir" || | |
212380e3 AC |
14796 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14797 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14798 | X"$as_dir" : 'X\(//\)$' \| \ | |
631ef239 | 14799 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
212380e3 | 14800 | echo X"$as_dir" | |
631ef239 AC |
14801 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
14802 | s//\1/ | |
14803 | q | |
14804 | } | |
14805 | /^X\(\/\/\)[^/].*/{ | |
14806 | s//\1/ | |
14807 | q | |
14808 | } | |
14809 | /^X\(\/\/\)$/{ | |
14810 | s//\1/ | |
14811 | q | |
14812 | } | |
14813 | /^X\(\/\).*/{ | |
14814 | s//\1/ | |
14815 | q | |
14816 | } | |
14817 | s/.*/./; q'` | |
14818 | test -d "$as_dir" && break | |
212380e3 | 14819 | done |
631ef239 AC |
14820 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
14821 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
14822 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
212380e3 | 14823 | { (exit 1); exit 1; }; }; } |
212380e3 AC |
14824 | ac_builddir=. |
14825 | ||
631ef239 AC |
14826 | case "$ac_dir" in |
14827 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14828 | *) | |
212380e3 | 14829 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
631ef239 AC |
14830 | # A ".." for each directory in $ac_dir_suffix. |
14831 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
14832 | case $ac_top_builddir_sub in | |
14833 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14834 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14835 | esac ;; | |
14836 | esac | |
14837 | ac_abs_top_builddir=$ac_pwd | |
14838 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14839 | # for backward compatibility: | |
14840 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
14841 | |
14842 | case $srcdir in | |
631ef239 | 14843 | .) # We are building in place. |
212380e3 | 14844 | ac_srcdir=. |
631ef239 AC |
14845 | ac_top_srcdir=$ac_top_builddir_sub |
14846 | ac_abs_top_srcdir=$ac_pwd ;; | |
14847 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 14848 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
14849 | ac_top_srcdir=$srcdir |
14850 | ac_abs_top_srcdir=$srcdir ;; | |
14851 | *) # Relative name. | |
14852 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14853 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14854 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 14855 | esac |
631ef239 | 14856 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 14857 | |
212380e3 | 14858 | |
631ef239 AC |
14859 | case $ac_mode in |
14860 | :F) | |
14861 | # | |
14862 | # CONFIG_FILE | |
14863 | # | |
212380e3 AC |
14864 | |
14865 | case $INSTALL in | |
14866 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 14867 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 14868 | esac |
631ef239 | 14869 | _ACEOF |
212380e3 | 14870 | |
631ef239 AC |
14871 | cat >>$CONFIG_STATUS <<\_ACEOF |
14872 | # If the template does not know about datarootdir, expand it. | |
14873 | # FIXME: This hack should be removed a few years after 2.60. | |
14874 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
14875 | ||
14876 | case `sed -n '/datarootdir/ { | |
14877 | p | |
14878 | q | |
14879 | } | |
14880 | /@datadir@/p | |
14881 | /@docdir@/p | |
14882 | /@infodir@/p | |
14883 | /@localedir@/p | |
14884 | /@mandir@/p | |
14885 | ' $ac_file_inputs` in | |
14886 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14887 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
14888 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
14889 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
14890 | _ACEOF | |
14891 | cat >>$CONFIG_STATUS <<_ACEOF | |
14892 | ac_datarootdir_hack=' | |
14893 | s&@datadir@&$datadir&g | |
14894 | s&@docdir@&$docdir&g | |
14895 | s&@infodir@&$infodir&g | |
14896 | s&@localedir@&$localedir&g | |
14897 | s&@mandir@&$mandir&g | |
14898 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
14899 | esac | |
212380e3 | 14900 | _ACEOF |
631ef239 AC |
14901 | |
14902 | # Neutralize VPATH when `$srcdir' = `.'. | |
14903 | # Shell code in configure.ac might set extrasub. | |
14904 | # FIXME: do we really want to maintain this feature? | |
212380e3 AC |
14905 | cat >>$CONFIG_STATUS <<_ACEOF |
14906 | sed "$ac_vpsub | |
14907 | $extrasub | |
14908 | _ACEOF | |
14909 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14910 | :t | |
14911 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
631ef239 AC |
14912 | s&@configure_input@&$configure_input&;t t |
14913 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14914 | s&@srcdir@&$ac_srcdir&;t t | |
14915 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14916 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14917 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14918 | s&@builddir@&$ac_builddir&;t t | |
14919 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14920 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14921 | s&@INSTALL@&$ac_INSTALL&;t t | |
14922 | $ac_datarootdir_hack | |
14923 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
14924 | ||
14925 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
14926 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14927 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
14928 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14929 | which seems to be undefined. Please make sure it is defined." >&5 | |
14930 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14931 | which seems to be undefined. Please make sure it is defined." >&2;} | |
14932 | ||
14933 | rm -f "$tmp/stdin" | |
212380e3 | 14934 | case $ac_file in |
631ef239 AC |
14935 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
14936 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
212380e3 | 14937 | esac |
631ef239 AC |
14938 | ;; |
14939 | :H) | |
14940 | # | |
14941 | # CONFIG_HEADER | |
14942 | # | |
14943 | _ACEOF | |
14944 | ||
14945 | # Transform confdefs.h into a sed script `conftest.defines', that | |
14946 | # substitutes the proper values into config.h.in to produce config.h. | |
14947 | rm -f conftest.defines conftest.tail | |
14948 | # First, append a space to every undef/define line, to ease matching. | |
14949 | echo 's/$/ /' >conftest.defines | |
14950 | # Then, protect against being on the right side of a sed subst, or in | |
14951 | # an unquoted here document, in config.status. If some macros were | |
14952 | # called several times there might be several #defines for the same | |
14953 | # symbol, which is useless. But do not sort them, since the last | |
14954 | # AC_DEFINE must be honored. | |
14955 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14956 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
14957 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
14958 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
14959 | # just an empty string. | |
14960 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
14961 | ac_dB='\\)[ (].*,\\1define\\2' | |
14962 | ac_dC=' ' | |
14963 | ac_dD=' ,' | |
14964 | ||
14965 | uniq confdefs.h | | |
14966 | sed -n ' | |
14967 | t rset | |
14968 | :rset | |
14969 | s/^[ ]*#[ ]*define[ ][ ]*// | |
14970 | t ok | |
14971 | d | |
14972 | :ok | |
14973 | s/[\\&,]/\\&/g | |
14974 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
14975 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
14976 | ' >>conftest.defines | |
14977 | ||
14978 | # Remove the space that was appended to ease matching. | |
14979 | # Then replace #undef with comments. This is necessary, for | |
212380e3 AC |
14980 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
14981 | # on some systems where configure will not decide to define it. | |
631ef239 AC |
14982 | # (The regexp can be short, since the line contains either #define or #undef.) |
14983 | echo 's/ $// | |
14984 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
14985 | ||
14986 | # Break up conftest.defines: | |
14987 | ac_max_sed_lines=50 | |
14988 | ||
14989 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
14990 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
14991 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
14992 | # et cetera. | |
14993 | ac_in='$ac_file_inputs' | |
14994 | ac_out='"$tmp/out1"' | |
14995 | ac_nxt='"$tmp/out2"' | |
14996 | ||
14997 | while : | |
212380e3 | 14998 | do |
631ef239 AC |
14999 | # Write a here document: |
15000 | cat >>$CONFIG_STATUS <<_ACEOF | |
15001 | # First, check the format of the line: | |
15002 | cat >"\$tmp/defines.sed" <<\\CEOF | |
15003 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
15004 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
15005 | b | |
15006 | :def | |
15007 | _ACEOF | |
15008 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
212380e3 | 15009 | echo 'CEOF |
631ef239 AC |
15010 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
15011 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
15012 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
15013 | grep . conftest.tail >/dev/null || break | |
212380e3 AC |
15014 | rm -f conftest.defines |
15015 | mv conftest.tail conftest.defines | |
15016 | done | |
631ef239 | 15017 | rm -f conftest.defines conftest.tail |
212380e3 | 15018 | |
631ef239 | 15019 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
212380e3 | 15020 | cat >>$CONFIG_STATUS <<\_ACEOF |
212380e3 | 15021 | if test x"$ac_file" != x-; then |
631ef239 AC |
15022 | echo "/* $configure_input */" >"$tmp/config.h" |
15023 | cat "$ac_result" >>"$tmp/config.h" | |
15024 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
212380e3 AC |
15025 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
15026 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15027 | else | |
212380e3 | 15028 | rm -f $ac_file |
631ef239 | 15029 | mv "$tmp/config.h" $ac_file |
212380e3 AC |
15030 | fi |
15031 | else | |
631ef239 AC |
15032 | echo "/* $configure_input */" |
15033 | cat "$ac_result" | |
212380e3 | 15034 | fi |
631ef239 AC |
15035 | rm -f "$tmp/out12" |
15036 | ;; | |
15037 | ||
15038 | ||
15039 | esac | |
15040 | ||
15041 | done # for ac_tag | |
212380e3 | 15042 | |
212380e3 AC |
15043 | |
15044 | { (exit 0); exit 0; } | |
15045 | _ACEOF | |
15046 | chmod +x $CONFIG_STATUS | |
15047 | ac_clean_files=$ac_clean_files_save | |
15048 | ||
15049 | ||
15050 | # configure is writing to config.log, and then calls config.status. | |
15051 | # config.status does its own redirection, appending to config.log. | |
15052 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15053 | # by configure, so config.status won't be able to write to it; its | |
15054 | # output is simply discarded. So we exec the FD to /dev/null, | |
15055 | # effectively closing config.log, so it can be properly (re)opened and | |
15056 | # appended to by config.status. When coming back to configure, we | |
15057 | # need to make the FD available again. | |
15058 | if test "$no_create" != yes; then | |
15059 | ac_cs_success=: | |
15060 | ac_config_status_args= | |
15061 | test "$silent" = yes && | |
15062 | ac_config_status_args="$ac_config_status_args --quiet" | |
15063 | exec 5>/dev/null | |
15064 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15065 | exec 5>>config.log | |
15066 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15067 | # would make configure fail if this is the last instruction. | |
15068 | $ac_cs_success || { (exit 1); exit 1; } | |
15069 | fi | |
15070 | ||
b676ea3b AC |
15071 | # |
15072 | # CONFIG_SUBDIRS section. | |
15073 | # | |
15074 | if test "$no_recursion" != yes; then | |
15075 | ||
15076 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15077 | ac_sub_configure_args= | |
15078 | ac_prev= | |
15079 | eval "set x $ac_configure_args" | |
15080 | shift | |
15081 | for ac_arg | |
15082 | do | |
15083 | if test -n "$ac_prev"; then | |
15084 | ac_prev= | |
15085 | continue | |
15086 | fi | |
15087 | case $ac_arg in | |
15088 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15089 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15090 | ac_prev=cache_file ;; | |
15091 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15092 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
15093 | | --c=*) | |
15094 | ;; | |
15095 | --config-cache | -C) | |
15096 | ;; | |
15097 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15098 | ac_prev=srcdir ;; | |
15099 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15100 | ;; | |
15101 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
15102 | ac_prev=prefix ;; | |
15103 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
15104 | ;; | |
15105 | *) | |
15106 | case $ac_arg in | |
15107 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15108 | esac | |
15109 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
15110 | esac | |
15111 | done | |
15112 | ||
15113 | # Always prepend --prefix to ensure using the same prefix | |
15114 | # in subdir configurations. | |
15115 | ac_arg="--prefix=$prefix" | |
15116 | case $ac_arg in | |
15117 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15118 | esac | |
15119 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
15120 | ||
15121 | # Pass --silent | |
15122 | if test "$silent" = yes; then | |
15123 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
15124 | fi | |
15125 | ||
15126 | ac_popdir=`pwd` | |
15127 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
15128 | ||
15129 | # Do not complain, so a configure script can configure whichever | |
15130 | # parts of a large source tree are present. | |
15131 | test -d "$srcdir/$ac_dir" || continue | |
15132 | ||
15133 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
15134 | echo "$as_me:$LINENO: $ac_msg" >&5 | |
15135 | echo "$ac_msg" >&6 | |
15136 | { as_dir="$ac_dir" | |
15137 | case $as_dir in #( | |
15138 | -*) as_dir=./$as_dir;; | |
15139 | esac | |
15140 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
15141 | as_dirs= | |
15142 | while :; do | |
15143 | case $as_dir in #( | |
15144 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
15145 | *) as_qdir=$as_dir;; | |
15146 | esac | |
15147 | as_dirs="'$as_qdir' $as_dirs" | |
15148 | as_dir=`$as_dirname -- "$as_dir" || | |
15149 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15150 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15151 | X"$as_dir" : 'X\(//\)$' \| \ | |
15152 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15153 | echo X"$as_dir" | | |
15154 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15155 | s//\1/ | |
15156 | q | |
15157 | } | |
15158 | /^X\(\/\/\)[^/].*/{ | |
15159 | s//\1/ | |
15160 | q | |
15161 | } | |
15162 | /^X\(\/\/\)$/{ | |
15163 | s//\1/ | |
15164 | q | |
15165 | } | |
15166 | /^X\(\/\).*/{ | |
15167 | s//\1/ | |
15168 | q | |
15169 | } | |
15170 | s/.*/./; q'` | |
15171 | test -d "$as_dir" && break | |
15172 | done | |
15173 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15174 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
15175 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
15176 | { (exit 1); exit 1; }; }; } | |
15177 | ac_builddir=. | |
15178 | ||
15179 | case "$ac_dir" in | |
15180 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15181 | *) | |
15182 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15183 | # A ".." for each directory in $ac_dir_suffix. | |
15184 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
15185 | case $ac_top_builddir_sub in | |
15186 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15187 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15188 | esac ;; | |
15189 | esac | |
15190 | ac_abs_top_builddir=$ac_pwd | |
15191 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15192 | # for backward compatibility: | |
15193 | ac_top_builddir=$ac_top_build_prefix | |
15194 | ||
15195 | case $srcdir in | |
15196 | .) # We are building in place. | |
15197 | ac_srcdir=. | |
15198 | ac_top_srcdir=$ac_top_builddir_sub | |
15199 | ac_abs_top_srcdir=$ac_pwd ;; | |
15200 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
15201 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15202 | ac_top_srcdir=$srcdir | |
15203 | ac_abs_top_srcdir=$srcdir ;; | |
15204 | *) # Relative name. | |
15205 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15206 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15207 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
15208 | esac | |
15209 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
15210 | ||
15211 | ||
15212 | cd "$ac_dir" | |
15213 | ||
15214 | # Check for guested configure; otherwise get Cygnus style configure. | |
15215 | if test -f "$ac_srcdir/configure.gnu"; then | |
15216 | ac_sub_configure=$ac_srcdir/configure.gnu | |
15217 | elif test -f "$ac_srcdir/configure"; then | |
15218 | ac_sub_configure=$ac_srcdir/configure | |
15219 | elif test -f "$ac_srcdir/configure.in"; then | |
15220 | # This should be Cygnus configure. | |
15221 | ac_sub_configure=$ac_aux_dir/configure | |
15222 | else | |
15223 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
15224 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
15225 | ac_sub_configure= | |
15226 | fi | |
15227 | ||
15228 | # The recursion is here. | |
15229 | if test -n "$ac_sub_configure"; then | |
15230 | # Make the cache file name correct relative to the subdirectory. | |
15231 | case $cache_file in | |
15232 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
15233 | *) # Relative name. | |
15234 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
15235 | esac | |
15236 | ||
15237 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
15238 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
15239 | # The eval makes quoting arguments work. | |
15240 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
15241 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
15242 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
15243 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
15244 | { (exit 1); exit 1; }; } | |
15245 | fi | |
15246 | ||
15247 | cd "$ac_popdir" | |
15248 | done | |
15249 | fi | |
15250 | ||
212380e3 AC |
15251 | |
15252 | if test "$cf_openssl_version_ok" = yes; then | |
15253 | openssl="yes" | |
15254 | else | |
15255 | openssl="no" | |
15256 | fi | |
15257 | ||
15258 | if test "$shared_modules" = yes; then | |
15259 | modules=shared | |
15260 | else | |
15261 | modules=static | |
15262 | fi | |
15263 | ||
15264 | echo " | |
15265 | Configuration: | |
15266 | Install directory : $prefix | |
15267 | ||
15268 | Ziplinks : $zlib | |
15269 | OpenSSL : $openssl | |
212380e3 AC |
15270 | Socket Engine : $SELECT_TYPE |
15271 | Small network : $small_net | |
15272 | Block allocator : $balloc | |
212380e3 AC |
15273 | |
15274 | Nickname length : $NICKLEN | |
15275 | Topic length : $TOPICLEN | |
15276 | ||
4271aa89 | 15277 | Use (g)make to compile Charybdis, then (g)make install to install it. |
212380e3 | 15278 | " |