Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
4e8d927d | 3 | # Generated by GNU Autoconf 2.59d. |
c906108c | 4 | # |
4e8d927d DJ |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
c906108c SS |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
bec39cab AC |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
12 | ||
13 | # Be Bourne compatible | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
4e8d927d DJ |
20 | setopt NO_GLOB_SUBST |
21 | else | |
22 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
bec39cab | 23 | fi |
4e8d927d | 24 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bec39cab AC |
25 | DUALCASE=1; export DUALCASE # for MKS sh |
26 | ||
4e8d927d DJ |
27 | |
28 | # PATH needs CR | |
29 | # Avoid depending upon Character Ranges. | |
30 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
31 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
32 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
33 | as_cr_digits='0123456789' | |
34 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35 | ||
36 | # The user is always right. | |
37 | if test "${PATH_SEPARATOR+set}" != set; then | |
38 | echo "#! /bin/sh" >conf$$.sh | |
39 | echo "exit 0" >>conf$$.sh | |
40 | chmod +x conf$$.sh | |
41 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
42 | PATH_SEPARATOR=';' | |
43 | else | |
44 | PATH_SEPARATOR=: | |
45 | fi | |
46 | rm -f conf$$.sh | |
47 | fi | |
48 | ||
bec39cab AC |
49 | # Support unset when possible. |
50 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
51 | as_unset=unset | |
52 | else | |
53 | as_unset=false | |
54 | fi | |
55 | ||
56 | ||
4e8d927d DJ |
57 | # IFS |
58 | # We need space, tab and new line, in precisely that order. Quoting is | |
59 | # there to prevent editors from complaining about space-tab. | |
60 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
61 | # splitting by setting IFS to empty value.) | |
62 | as_nl=' | |
63 | ' | |
64 | IFS=" "" $as_nl" | |
65 | ||
66 | # Find who we are. Look in the path if we contain no directory separator. | |
67 | case $0 in | |
68 | *[\\/]* ) as_myself=$0 ;; | |
69 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
70 | for as_dir in $PATH | |
71 | do | |
72 | IFS=$as_save_IFS | |
73 | test -z "$as_dir" && as_dir=. | |
74 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
75 | done | |
76 | IFS=$as_save_IFS | |
77 | ||
78 | ;; | |
79 | esac | |
80 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
81 | # in which case we are not to be found in the path. | |
82 | if test "x$as_myself" = x; then | |
83 | as_myself=$0 | |
84 | fi | |
85 | if test ! -f "$as_myself"; then | |
86 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
87 | { (exit 1); exit 1; } | |
88 | fi | |
89 | ||
bec39cab | 90 | # Work around bugs in pre-3.0 UWIN ksh. |
4e8d927d DJ |
91 | for as_var in ENV MAIL MAILPATH |
92 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
93 | done | |
bec39cab AC |
94 | PS1='$ ' |
95 | PS2='> ' | |
96 | PS4='+ ' | |
97 | ||
98 | # NLS nuisances. | |
99 | for as_var in \ | |
100 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
101 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
102 | LC_TELEPHONE LC_TIME | |
103 | do | |
104 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
105 | eval $as_var=C; export $as_var | |
106 | else | |
4e8d927d | 107 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
bec39cab AC |
108 | fi |
109 | done | |
110 | ||
111 | # Required to use basename. | |
4e8d927d DJ |
112 | if expr a : '\(a\)' >/dev/null 2>&1 && |
113 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
114 | as_expr=expr |
115 | else | |
116 | as_expr=false | |
117 | fi | |
118 | ||
4e8d927d | 119 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
120 | as_basename=basename |
121 | else | |
122 | as_basename=false | |
123 | fi | |
124 | ||
125 | ||
126 | # Name of the executable. | |
4e8d927d | 127 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
128 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
129 | X"$0" : 'X\(//\)$' \| \ | |
4e8d927d | 130 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bec39cab | 131 | echo X/"$0" | |
4e8d927d DJ |
132 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
133 | s//\1/ | |
134 | q | |
135 | } | |
136 | /^X\/\(\/\/\)$/{ | |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\).*/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | s/.*/./; q'` | |
bec39cab | 145 | |
4e8d927d DJ |
146 | # CDPATH. |
147 | $as_unset CDPATH | |
bec39cab | 148 | |
bec39cab | 149 | |
4e8d927d DJ |
150 | if test "x$CONFIG_SHELL" = x; then |
151 | if (eval ":") 2>/dev/null; then | |
152 | as_have_required=yes | |
153 | else | |
154 | as_have_required=no | |
bec39cab AC |
155 | fi |
156 | ||
4e8d927d DJ |
157 | if test $as_have_required = yes && (eval ": |
158 | (as_func_return () { | |
159 | (exit \$1) | |
160 | } | |
161 | as_func_success () { | |
162 | as_func_return 0 | |
163 | } | |
164 | as_func_failure () { | |
165 | as_func_return 1 | |
166 | } | |
167 | as_func_ret_success () { | |
168 | return 0 | |
169 | } | |
170 | as_func_ret_failure () { | |
171 | return 1 | |
172 | } | |
bec39cab | 173 | |
4e8d927d DJ |
174 | exitcode=0 |
175 | if as_func_success; then | |
176 | : | |
177 | else | |
178 | exitcode=1 | |
179 | echo as_func_success failed. | |
180 | fi | |
bec39cab | 181 | |
4e8d927d DJ |
182 | if as_func_failure; then |
183 | exitcode=1 | |
184 | echo as_func_failure succeeded. | |
185 | fi | |
186 | ||
187 | if as_func_ret_success; then | |
188 | : | |
189 | else | |
190 | exitcode=1 | |
191 | echo as_func_ret_success failed. | |
192 | fi | |
193 | ||
194 | if as_func_ret_failure; then | |
195 | exitcode=1 | |
196 | echo as_func_ret_failure succeeded. | |
197 | fi | |
198 | ||
199 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
200 | : | |
201 | else | |
202 | exitcode=1 | |
203 | echo positional parameters were not saved. | |
204 | fi | |
205 | ||
206 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
207 | ||
208 | ( | |
209 | as_lineno_1=\$LINENO | |
210 | as_lineno_2=\$LINENO | |
211 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
212 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
213 | ") 2> /dev/null; then | |
214 | : | |
215 | else | |
216 | as_candidate_shells= | |
bec39cab | 217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4e8d927d | 218 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bec39cab AC |
219 | do |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
4e8d927d | 222 | case $as_dir in |
bec39cab | 223 | /*) |
4e8d927d DJ |
224 | for as_base in sh bash ksh sh5; do |
225 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
226 | done;; | |
227 | esac | |
228 | done | |
229 | IFS=$as_save_IFS | |
230 | ||
231 | ||
232 | for as_shell in $as_candidate_shells $SHELL; do | |
233 | # Try only shells which exist, to save several forks. | |
234 | if test -f $as_shell && | |
235 | { ($as_shell) 2> /dev/null <<\_ASEOF | |
236 | # Be Bourne compatible | |
237 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
238 | emulate sh | |
239 | NULLCMD=: | |
240 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
241 | # is contrary to our usage. Disable this feature. | |
242 | alias -g '${1+"$@"}'='"$@"' | |
243 | setopt NO_GLOB_SUBST | |
244 | else | |
245 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
246 | fi | |
247 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
248 | DUALCASE=1; export DUALCASE # for MKS sh | |
249 | ||
250 | : | |
251 | _ASEOF | |
252 | }; then | |
253 | CONFIG_SHELL=$as_shell | |
254 | as_have_required=yes | |
255 | if { $as_shell 2> /dev/null <<\_ASEOF | |
256 | # Be Bourne compatible | |
257 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
258 | emulate sh | |
259 | NULLCMD=: | |
260 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
261 | # is contrary to our usage. Disable this feature. | |
262 | alias -g '${1+"$@"}'='"$@"' | |
263 | setopt NO_GLOB_SUBST | |
264 | else | |
265 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
266 | fi | |
267 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
268 | DUALCASE=1; export DUALCASE # for MKS sh | |
269 | ||
270 | : | |
271 | (as_func_return () { | |
272 | (exit $1) | |
273 | } | |
274 | as_func_success () { | |
275 | as_func_return 0 | |
276 | } | |
277 | as_func_failure () { | |
278 | as_func_return 1 | |
279 | } | |
280 | as_func_ret_success () { | |
281 | return 0 | |
282 | } | |
283 | as_func_ret_failure () { | |
284 | return 1 | |
285 | } | |
286 | ||
287 | exitcode=0 | |
288 | if as_func_success; then | |
289 | : | |
290 | else | |
291 | exitcode=1 | |
292 | echo as_func_success failed. | |
293 | fi | |
294 | ||
295 | if as_func_failure; then | |
296 | exitcode=1 | |
297 | echo as_func_failure succeeded. | |
298 | fi | |
299 | ||
300 | if as_func_ret_success; then | |
301 | : | |
302 | else | |
303 | exitcode=1 | |
304 | echo as_func_ret_success failed. | |
305 | fi | |
306 | ||
307 | if as_func_ret_failure; then | |
308 | exitcode=1 | |
309 | echo as_func_ret_failure succeeded. | |
310 | fi | |
311 | ||
312 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
313 | : | |
314 | else | |
315 | exitcode=1 | |
316 | echo positional parameters were not saved. | |
317 | fi | |
318 | ||
319 | test $exitcode = 0) || { (exit 1); exit 1; } | |
320 | ||
321 | ( | |
bec39cab AC |
322 | as_lineno_1=$LINENO |
323 | as_lineno_2=$LINENO | |
bec39cab | 324 | test "x$as_lineno_1" != "x$as_lineno_2" && |
4e8d927d DJ |
325 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
326 | ||
327 | _ASEOF | |
328 | }; then | |
329 | break | |
330 | fi | |
331 | ||
332 | fi | |
333 | ||
334 | done | |
335 | ||
336 | if test "x$CONFIG_SHELL" != x; then | |
337 | for as_var in BASH_ENV ENV | |
338 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
339 | done | |
340 | export CONFIG_SHELL | |
341 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
342 | fi | |
343 | ||
344 | ||
345 | if test $as_have_required = no; then | |
346 | echo This script requires a shell more modern than all the | |
347 | echo shells that I found on your system. Please install a | |
348 | echo modern shell, or manually run the script under such a | |
349 | echo shell if you do have one. | |
350 | { (exit 1); exit 1; } | |
351 | fi | |
352 | ||
353 | ||
354 | fi | |
355 | ||
356 | fi | |
357 | ||
358 | ||
359 | ||
360 | (eval "as_func_return () { | |
361 | (exit \$1) | |
362 | } | |
363 | as_func_success () { | |
364 | as_func_return 0 | |
365 | } | |
366 | as_func_failure () { | |
367 | as_func_return 1 | |
368 | } | |
369 | as_func_ret_success () { | |
370 | return 0 | |
371 | } | |
372 | as_func_ret_failure () { | |
373 | return 1 | |
374 | } | |
375 | ||
376 | exitcode=0 | |
377 | if as_func_success; then | |
378 | : | |
379 | else | |
380 | exitcode=1 | |
381 | echo as_func_success failed. | |
382 | fi | |
383 | ||
384 | if as_func_failure; then | |
385 | exitcode=1 | |
386 | echo as_func_failure succeeded. | |
387 | fi | |
388 | ||
389 | if as_func_ret_success; then | |
390 | : | |
391 | else | |
392 | exitcode=1 | |
393 | echo as_func_ret_success failed. | |
394 | fi | |
395 | ||
396 | if as_func_ret_failure; then | |
397 | exitcode=1 | |
398 | echo as_func_ret_failure succeeded. | |
399 | fi | |
400 | ||
401 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
402 | : | |
403 | else | |
404 | exitcode=1 | |
405 | echo positional parameters were not saved. | |
406 | fi | |
407 | ||
408 | test \$exitcode = 0") || { | |
409 | echo No shell found that supports shell functions. | |
410 | echo Please tell autoconf@gnu.org about your system, | |
411 | echo including any error possibly output before this | |
412 | echo message | |
413 | } | |
414 | ||
415 | ||
416 | ||
417 | as_lineno_1=$LINENO | |
418 | as_lineno_2=$LINENO | |
419 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
420 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
bec39cab AC |
421 | |
422 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
423 | # uniformly replaced by the line number. The first 'sed' inserts a | |
4e8d927d DJ |
424 | # line-number line after each line using $LINENO; the second 'sed' |
425 | # does the real work. The second script uses 'N' to pair each | |
426 | # line-number line with the line containing $LINENO, and appends | |
427 | # trailing '-' during substitution so that $LINENO is not a special | |
428 | # case at line end. | |
bec39cab | 429 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
4e8d927d DJ |
430 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
431 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
bec39cab | 436 | sed ' |
4e8d927d DJ |
437 | s/[$]LINENO.*/&-/ |
438 | t lineno | |
439 | b | |
440 | :lineno | |
bec39cab | 441 | N |
4e8d927d DJ |
442 | :loop |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bec39cab | 444 | t loop |
4e8d927d | 445 | s/-\n.*// |
bec39cab | 446 | ' >$as_me.lineno && |
4e8d927d | 447 | chmod +x "$as_me.lineno" || |
bec39cab AC |
448 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
449 | { (exit 1); exit 1; }; } | |
450 | ||
451 | # Don't try to exec as it changes $[0], causing all sort of problems | |
452 | # (the dirname of $[0] is not the place where we might find the | |
4e8d927d DJ |
453 | # original and so on. Autoconf is especially sensitive to this). |
454 | . "./$as_me.lineno" | |
bec39cab AC |
455 | # Exit status is that of the last command. |
456 | exit | |
457 | } | |
458 | ||
459 | ||
4e8d927d DJ |
460 | if (dirname -- /) >/dev/null 2>&1; then |
461 | as_dirname=dirname | |
462 | else | |
463 | as_dirname=false | |
464 | fi | |
465 | ||
466 | ECHO_C= ECHO_N= ECHO_T= | |
467 | case `echo -n x` in | |
468 | -n*) | |
469 | case `echo 'x\c'` in | |
470 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
471 | *) ECHO_C='\c';; | |
472 | esac;; | |
473 | *) | |
474 | ECHO_N='-n';; | |
bec39cab AC |
475 | esac |
476 | ||
4e8d927d DJ |
477 | if expr a : '\(a\)' >/dev/null 2>&1 && |
478 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
479 | as_expr=expr |
480 | else | |
481 | as_expr=false | |
482 | fi | |
483 | ||
484 | rm -f conf$$ conf$$.exe conf$$.file | |
4e8d927d DJ |
485 | if test -d conf$$.dir; then |
486 | rm -f conf$$.dir/conf$$.file | |
487 | else | |
488 | rm -f conf$$.dir | |
489 | mkdir conf$$.dir | |
490 | fi | |
bec39cab AC |
491 | echo >conf$$.file |
492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4e8d927d DJ |
493 | as_ln_s='ln -s' |
494 | # ... but there are two gotchas: | |
495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
497 | # In both cases, we have to default to `cp -p'. | |
498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
bec39cab | 499 | as_ln_s='cp -p' |
bec39cab AC |
500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
501 | as_ln_s=ln | |
502 | else | |
503 | as_ln_s='cp -p' | |
504 | fi | |
4e8d927d DJ |
505 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
506 | rmdir conf$$.dir 2>/dev/null | |
bec39cab AC |
507 | |
508 | if mkdir -p . 2>/dev/null; then | |
509 | as_mkdir_p=: | |
510 | else | |
511 | test -d ./-p && rmdir ./-p | |
512 | as_mkdir_p=false | |
513 | fi | |
514 | ||
4e8d927d DJ |
515 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
516 | # systems may use methods other than mode bits to determine executability. | |
517 | cat >conf$$.file <<_ASEOF | |
518 | #! /bin/sh | |
519 | exit 0 | |
520 | _ASEOF | |
521 | chmod +x conf$$.file | |
522 | if test -x conf$$.file >/dev/null 2>&1; then | |
523 | as_executable_p="test -x" | |
524 | else | |
525 | as_executable_p=: | |
526 | fi | |
527 | rm -f conf$$.file | |
bec39cab AC |
528 | |
529 | # Sed expression to map a string onto a valid CPP name. | |
530 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
531 | ||
532 | # Sed expression to map a string onto a valid variable name. | |
533 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
534 | ||
535 | ||
bec39cab | 536 | |
4e8d927d | 537 | exec 7<&0 </dev/null 6>&1 |
c906108c | 538 | |
bec39cab AC |
539 | # Name of the host. |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
bec39cab AC |
544 | # |
545 | # Initializations. | |
546 | # | |
c906108c | 547 | ac_default_prefix=/usr/local |
4e8d927d | 548 | ac_clean_files= |
bec39cab | 549 | ac_config_libobj_dir=. |
4e8d927d | 550 | LIBOBJS= |
bec39cab AC |
551 | cross_compiling=no |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
555 | SHELL=${CONFIG_SHELL-/bin/sh} | |
556 | ||
bec39cab AC |
557 | # Identity of this package. |
558 | PACKAGE_NAME= | |
559 | PACKAGE_TARNAME= | |
560 | PACKAGE_VERSION= | |
561 | PACKAGE_STRING= | |
562 | PACKAGE_BUGREPORT= | |
563 | ||
564 | ac_unique_file="main.c" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
568 | #if HAVE_SYS_TYPES_H | |
569 | # include <sys/types.h> | |
570 | #endif | |
571 | #if HAVE_SYS_STAT_H | |
572 | # include <sys/stat.h> | |
573 | #endif | |
574 | #if STDC_HEADERS | |
575 | # include <stdlib.h> | |
576 | # include <stddef.h> | |
577 | #else | |
578 | # if HAVE_STDLIB_H | |
579 | # include <stdlib.h> | |
580 | # endif | |
581 | #endif | |
582 | #if HAVE_STRING_H | |
583 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
584 | # include <memory.h> | |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
588 | #if HAVE_STRINGS_H | |
589 | # include <strings.h> | |
590 | #endif | |
591 | #if HAVE_INTTYPES_H | |
592 | # include <inttypes.h> | |
4e8d927d DJ |
593 | #endif |
594 | #if HAVE_STDINT_H | |
595 | # include <stdint.h> | |
bec39cab AC |
596 | #endif |
597 | #if HAVE_UNISTD_H | |
598 | # include <unistd.h> | |
599 | #endif" | |
600 | ||
4e8d927d DJ |
601 | ac_subst_vars='SHELL |
602 | PATH_SEPARATOR | |
603 | PACKAGE_NAME | |
604 | PACKAGE_TARNAME | |
605 | PACKAGE_VERSION | |
606 | PACKAGE_STRING | |
607 | PACKAGE_BUGREPORT | |
608 | exec_prefix | |
609 | prefix | |
610 | program_transform_name | |
611 | bindir | |
612 | sbindir | |
613 | libexecdir | |
614 | datarootdir | |
615 | datadir | |
616 | sysconfdir | |
617 | sharedstatedir | |
618 | localstatedir | |
619 | includedir | |
620 | oldincludedir | |
621 | docdir | |
622 | infodir | |
623 | htmldir | |
624 | dvidir | |
625 | pdfdir | |
626 | psdir | |
627 | libdir | |
628 | localedir | |
629 | mandir | |
630 | DEFS | |
631 | ECHO_C | |
632 | ECHO_N | |
633 | ECHO_T | |
634 | LIBS | |
635 | build_alias | |
636 | host_alias | |
637 | target_alias | |
638 | MAINTAINER_MODE_TRUE | |
639 | MAINTAINER_MODE_FALSE | |
640 | MAINT | |
641 | CC | |
642 | CFLAGS | |
643 | LDFLAGS | |
644 | CPPFLAGS | |
645 | ac_ct_CC | |
646 | EXEEXT | |
647 | OBJEXT | |
648 | CPP | |
649 | GREP | |
650 | EGREP | |
651 | build | |
652 | build_cpu | |
653 | build_vendor | |
654 | build_os | |
655 | host | |
656 | host_cpu | |
657 | host_vendor | |
658 | host_os | |
659 | target | |
660 | target_cpu | |
661 | target_vendor | |
662 | target_os | |
663 | SET_MAKE | |
664 | RANLIB | |
665 | ALLOCA | |
666 | USE_NLS | |
667 | MSGFMT | |
668 | GMSGFMT | |
669 | XGETTEXT | |
670 | USE_INCLUDED_LIBINTL | |
671 | CATALOGS | |
672 | CATOBJEXT | |
673 | DATADIRNAME | |
674 | GMOFILES | |
675 | INSTOBJEXT | |
676 | INTLDEPS | |
677 | INTLLIBS | |
678 | INTLOBJS | |
679 | POFILES | |
680 | POSUB | |
681 | INCLUDE_LOCALE_H | |
682 | GT_NO | |
683 | GT_YES | |
684 | MKINSTALLDIRS | |
685 | l | |
686 | PACKAGE | |
687 | subdirs | |
688 | AWK | |
689 | INSTALL_PROGRAM | |
690 | INSTALL_SCRIPT | |
691 | INSTALL_DATA | |
692 | LN_S | |
693 | YACC | |
694 | YFLAGS | |
695 | AR | |
696 | DLLTOOL | |
697 | WINDRES | |
698 | MIG | |
699 | CONFIG_LDFLAGS | |
700 | TARGET_SYSTEM_ROOT | |
701 | TARGET_SYSTEM_ROOT_DEFINE | |
702 | WARN_CFLAGS | |
703 | WERROR_CFLAGS | |
704 | SER_HARDWIRE | |
705 | WIN32LIBS | |
706 | LIBGUI | |
707 | GUI_CFLAGS_X | |
708 | WIN32LDAPP | |
709 | TCL_VERSION | |
710 | TCL_MAJOR_VERSION | |
711 | TCL_MINOR_VERSION | |
712 | TCL_CC | |
713 | TCL_DEFS | |
714 | TCL_SHLIB_CFLAGS | |
715 | TCL_SHLIB_LD | |
716 | TCL_SHLIB_LD_LIBS | |
717 | TCL_SHLIB_SUFFIX | |
718 | TCL_DL_LIBS | |
719 | TCL_LD_FLAGS | |
720 | TCL_LD_SEARCH_FLAGS | |
721 | TCL_CC_SEARCH_FLAGS | |
722 | TCL_COMPAT_OBJS | |
723 | TCL_RANLIB | |
724 | TCL_BUILD_LIB_SPEC | |
725 | TCL_LIB_SPEC | |
726 | TCL_LIB_VERSIONS_OK | |
727 | TK_VERSION | |
728 | TK_DEFS | |
729 | TK_BUILD_INCLUDES | |
730 | TK_XINCLUDES | |
731 | TK_XLIBSW | |
732 | TK_BUILD_LIB_SPEC | |
733 | TK_LIB_SPEC | |
734 | TCLHDIR | |
735 | TKHDIR | |
736 | ITCLHDIR | |
737 | ITKHDIR | |
738 | ITCL_VERSION | |
739 | ITCL_DEFS | |
740 | ITCL_BUILD_INCLUDES | |
741 | ITCL_BUILD_LIB_SPEC | |
742 | ITCL_LIB_SPEC | |
743 | ITK_VERSION | |
744 | ITK_DEFS | |
745 | ITK_BUILD_INCLUDES | |
746 | ITK_BUILD_LIB_SPEC | |
747 | ITK_LIB_SPEC | |
748 | X_CFLAGS | |
749 | X_LDFLAGS | |
750 | X_LIBS | |
751 | TCL_DEPS | |
752 | TK_DEPS | |
753 | ITCLLIB | |
754 | ITCL_DEPS | |
755 | ITKLIB | |
756 | ITK_DEPS | |
757 | GDBTKLIBS | |
758 | GDBTK_CFLAGS | |
759 | GDBTK_SRC_DIR | |
760 | XMKMF | |
761 | IGNORE_SIM | |
762 | IGNORE_SIM_OBS | |
763 | ENABLE_CFLAGS | |
764 | PROFILE_CFLAGS | |
765 | CONFIG_OBS | |
766 | CONFIG_DEPS | |
767 | CONFIG_SRCS | |
768 | CONFIG_ALL | |
769 | CONFIG_CLEAN | |
770 | CONFIG_INSTALL | |
771 | CONFIG_UNINSTALL | |
772 | target_subdir | |
773 | frags | |
774 | xm_h | |
775 | tm_h | |
776 | nm_h | |
777 | LIBICONV | |
778 | LIBOBJS | |
779 | LTLIBOBJS' | |
780 | ac_subst_files='host_makefile_frag | |
781 | target_makefile_frag' | |
782 | ac_precious_vars='build_alias | |
783 | host_alias | |
784 | target_alias | |
785 | CC | |
786 | CFLAGS | |
787 | LDFLAGS | |
788 | CPPFLAGS | |
789 | CPP | |
790 | YACC | |
791 | YFLAGS | |
792 | XMKMF' | |
793 | ac_subdirs_all='doc testsuite | |
794 | gdbtk | |
795 | multi-ice | |
796 | gdbserver' | |
c906108c SS |
797 | |
798 | # Initialize some variables set by options. | |
bec39cab AC |
799 | ac_init_help= |
800 | ac_init_version=false | |
c906108c SS |
801 | # The variables have the same names as the options, with |
802 | # dashes changed to underlines. | |
bec39cab | 803 | cache_file=/dev/null |
c906108c | 804 | exec_prefix=NONE |
c906108c | 805 | no_create= |
c906108c SS |
806 | no_recursion= |
807 | prefix=NONE | |
808 | program_prefix=NONE | |
809 | program_suffix=NONE | |
810 | program_transform_name=s,x,x, | |
811 | silent= | |
812 | site= | |
813 | srcdir= | |
c906108c SS |
814 | verbose= |
815 | x_includes=NONE | |
816 | x_libraries=NONE | |
bec39cab AC |
817 | |
818 | # Installation directory options. | |
819 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
820 | # and all the variables that are supposed to be based on exec_prefix | |
821 | # by default will actually change. | |
822 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
4e8d927d | 823 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
824 | bindir='${exec_prefix}/bin' |
825 | sbindir='${exec_prefix}/sbin' | |
826 | libexecdir='${exec_prefix}/libexec' | |
4e8d927d DJ |
827 | datarootdir='${prefix}/share' |
828 | datadir='${datarootdir}' | |
c906108c SS |
829 | sysconfdir='${prefix}/etc' |
830 | sharedstatedir='${prefix}/com' | |
831 | localstatedir='${prefix}/var' | |
c906108c SS |
832 | includedir='${prefix}/include' |
833 | oldincludedir='/usr/include' | |
4e8d927d DJ |
834 | docdir='${datarootdir}/doc/${PACKAGE}' |
835 | infodir='${datarootdir}/info' | |
836 | htmldir='${docdir}' | |
837 | dvidir='${docdir}' | |
838 | pdfdir='${docdir}' | |
839 | psdir='${docdir}' | |
840 | libdir='${exec_prefix}/lib' | |
841 | localedir='${datarootdir}/locale' | |
842 | mandir='${datarootdir}/man' | |
c906108c | 843 | |
c906108c | 844 | ac_prev= |
4e8d927d | 845 | ac_dashdash= |
c906108c SS |
846 | for ac_option |
847 | do | |
c906108c SS |
848 | # If the previous option needs an argument, assign it. |
849 | if test -n "$ac_prev"; then | |
4e8d927d | 850 | eval $ac_prev=\$ac_option |
c906108c SS |
851 | ac_prev= |
852 | continue | |
853 | fi | |
854 | ||
4e8d927d DJ |
855 | case $ac_option in |
856 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
857 | *) ac_optarg=yes ;; | |
858 | esac | |
c906108c SS |
859 | |
860 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
861 | ||
4e8d927d DJ |
862 | case $ac_dashdash$ac_option in |
863 | --) | |
864 | ac_dashdash=yes ;; | |
c906108c SS |
865 | |
866 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
867 | ac_prev=bindir ;; | |
868 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 869 | bindir=$ac_optarg ;; |
c906108c SS |
870 | |
871 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 872 | ac_prev=build_alias ;; |
c906108c | 873 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 874 | build_alias=$ac_optarg ;; |
c906108c SS |
875 | |
876 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
877 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
878 | ac_prev=cache_file ;; | |
879 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
880 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
881 | cache_file=$ac_optarg ;; |
882 | ||
883 | --config-cache | -C) | |
884 | cache_file=config.cache ;; | |
c906108c | 885 | |
4e8d927d | 886 | -datadir | --datadir | --datadi | --datad) |
c906108c | 887 | ac_prev=datadir ;; |
4e8d927d | 888 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bec39cab | 889 | datadir=$ac_optarg ;; |
c906108c | 890 | |
4e8d927d DJ |
891 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
892 | | --dataroo | --dataro | --datar) | |
893 | ac_prev=datarootdir ;; | |
894 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
895 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
896 | datarootdir=$ac_optarg ;; | |
897 | ||
c906108c | 898 | -disable-* | --disable-*) |
bec39cab | 899 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 900 | # Reject names that are not valid shell variable names. |
bec39cab AC |
901 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
902 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
903 | { (exit 1); exit 1; }; } | |
904 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
4e8d927d DJ |
905 | eval enable_$ac_feature=no ;; |
906 | ||
907 | -docdir | --docdir | --docdi | --doc | --do) | |
908 | ac_prev=docdir ;; | |
909 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
910 | docdir=$ac_optarg ;; | |
911 | ||
912 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
913 | ac_prev=dvidir ;; | |
914 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
915 | dvidir=$ac_optarg ;; | |
c906108c SS |
916 | |
917 | -enable-* | --enable-*) | |
bec39cab | 918 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 919 | # Reject names that are not valid shell variable names. |
bec39cab AC |
920 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
921 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
922 | { (exit 1); exit 1; }; } | |
923 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
4e8d927d | 924 | eval enable_$ac_feature=\$ac_optarg ;; |
c906108c SS |
925 | |
926 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
927 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
928 | | --exec | --exe | --ex) | |
929 | ac_prev=exec_prefix ;; | |
930 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
931 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
932 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 933 | exec_prefix=$ac_optarg ;; |
c906108c SS |
934 | |
935 | -gas | --gas | --ga | --g) | |
936 | # Obsolete; use --with-gas. | |
937 | with_gas=yes ;; | |
938 | ||
bec39cab AC |
939 | -help | --help | --hel | --he | -h) |
940 | ac_init_help=long ;; | |
941 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
942 | ac_init_help=recursive ;; | |
943 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
944 | ac_init_help=short ;; | |
c906108c SS |
945 | |
946 | -host | --host | --hos | --ho) | |
bec39cab | 947 | ac_prev=host_alias ;; |
c906108c | 948 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 949 | host_alias=$ac_optarg ;; |
c906108c | 950 | |
4e8d927d DJ |
951 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
952 | ac_prev=htmldir ;; | |
953 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
954 | | --ht=*) | |
955 | htmldir=$ac_optarg ;; | |
956 | ||
c906108c SS |
957 | -includedir | --includedir | --includedi | --included | --include \ |
958 | | --includ | --inclu | --incl | --inc) | |
959 | ac_prev=includedir ;; | |
960 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
961 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 962 | includedir=$ac_optarg ;; |
c906108c SS |
963 | |
964 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
965 | ac_prev=infodir ;; | |
966 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 967 | infodir=$ac_optarg ;; |
c906108c SS |
968 | |
969 | -libdir | --libdir | --libdi | --libd) | |
970 | ac_prev=libdir ;; | |
971 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 972 | libdir=$ac_optarg ;; |
c906108c SS |
973 | |
974 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
975 | | --libexe | --libex | --libe) | |
976 | ac_prev=libexecdir ;; | |
977 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
978 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 979 | libexecdir=$ac_optarg ;; |
c906108c | 980 | |
4e8d927d DJ |
981 | -localedir | --localedir | --localedi | --localed | --locale) |
982 | ac_prev=localedir ;; | |
983 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
984 | localedir=$ac_optarg ;; | |
985 | ||
c906108c | 986 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
4e8d927d | 987 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
988 | ac_prev=localstatedir ;; |
989 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
4e8d927d | 990 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bec39cab | 991 | localstatedir=$ac_optarg ;; |
c906108c SS |
992 | |
993 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
994 | ac_prev=mandir ;; | |
995 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 996 | mandir=$ac_optarg ;; |
c906108c SS |
997 | |
998 | -nfp | --nfp | --nf) | |
999 | # Obsolete; use --without-fp. | |
1000 | with_fp=no ;; | |
1001 | ||
1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 1003 | | --no-cr | --no-c | -n) |
c906108c SS |
1004 | no_create=yes ;; |
1005 | ||
1006 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1007 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1008 | no_recursion=yes ;; | |
1009 | ||
1010 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1011 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1012 | | --oldin | --oldi | --old | --ol | --o) | |
1013 | ac_prev=oldincludedir ;; | |
1014 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1015 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1016 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 1017 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1018 | |
1019 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1020 | ac_prev=prefix ;; | |
1021 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 1022 | prefix=$ac_optarg ;; |
c906108c SS |
1023 | |
1024 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1025 | | --program-pre | --program-pr | --program-p) | |
1026 | ac_prev=program_prefix ;; | |
1027 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1028 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 1029 | program_prefix=$ac_optarg ;; |
c906108c SS |
1030 | |
1031 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1032 | | --program-suf | --program-su | --program-s) | |
1033 | ac_prev=program_suffix ;; | |
1034 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1035 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 1036 | program_suffix=$ac_optarg ;; |
c906108c SS |
1037 | |
1038 | -program-transform-name | --program-transform-name \ | |
1039 | | --program-transform-nam | --program-transform-na \ | |
1040 | | --program-transform-n | --program-transform- \ | |
1041 | | --program-transform | --program-transfor \ | |
1042 | | --program-transfo | --program-transf \ | |
1043 | | --program-trans | --program-tran \ | |
1044 | | --progr-tra | --program-tr | --program-t) | |
1045 | ac_prev=program_transform_name ;; | |
1046 | -program-transform-name=* | --program-transform-name=* \ | |
1047 | | --program-transform-nam=* | --program-transform-na=* \ | |
1048 | | --program-transform-n=* | --program-transform-=* \ | |
1049 | | --program-transform=* | --program-transfor=* \ | |
1050 | | --program-transfo=* | --program-transf=* \ | |
1051 | | --program-trans=* | --program-tran=* \ | |
1052 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 1053 | program_transform_name=$ac_optarg ;; |
c906108c | 1054 | |
4e8d927d DJ |
1055 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1056 | ac_prev=pdfdir ;; | |
1057 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1058 | pdfdir=$ac_optarg ;; | |
1059 | ||
1060 | -psdir | --psdir | --psdi | --psd | --ps) | |
1061 | ac_prev=psdir ;; | |
1062 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1063 | psdir=$ac_optarg ;; | |
1064 | ||
c906108c SS |
1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1066 | | -silent | --silent | --silen | --sile | --sil) | |
1067 | silent=yes ;; | |
1068 | ||
1069 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1070 | ac_prev=sbindir ;; | |
1071 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1072 | | --sbi=* | --sb=*) | |
bec39cab | 1073 | sbindir=$ac_optarg ;; |
c906108c SS |
1074 | |
1075 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1076 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1077 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1078 | | --sha | --sh) | |
1079 | ac_prev=sharedstatedir ;; | |
1080 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1081 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1082 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1083 | | --sha=* | --sh=*) | |
bec39cab | 1084 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1085 | |
1086 | -site | --site | --sit) | |
1087 | ac_prev=site ;; | |
1088 | -site=* | --site=* | --sit=*) | |
bec39cab | 1089 | site=$ac_optarg ;; |
3ace7edb | 1090 | |
c906108c SS |
1091 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1092 | ac_prev=srcdir ;; | |
1093 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 1094 | srcdir=$ac_optarg ;; |
c906108c SS |
1095 | |
1096 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1097 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1098 | ac_prev=sysconfdir ;; | |
1099 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1100 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 1101 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1102 | |
1103 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 1104 | ac_prev=target_alias ;; |
c906108c | 1105 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 1106 | target_alias=$ac_optarg ;; |
c906108c SS |
1107 | |
1108 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1109 | verbose=yes ;; | |
1110 | ||
bec39cab AC |
1111 | -version | --version | --versio | --versi | --vers | -V) |
1112 | ac_init_version=: ;; | |
c906108c SS |
1113 | |
1114 | -with-* | --with-*) | |
bec39cab | 1115 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1116 | # Reject names that are not valid shell variable names. |
bec39cab AC |
1117 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1118 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1119 | { (exit 1); exit 1; }; } | |
c906108c | 1120 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
4e8d927d | 1121 | eval with_$ac_package=\$ac_optarg ;; |
c906108c SS |
1122 | |
1123 | -without-* | --without-*) | |
bec39cab | 1124 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1125 | # Reject names that are not valid shell variable names. |
bec39cab AC |
1126 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1127 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1128 | { (exit 1); exit 1; }; } | |
1129 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
4e8d927d | 1130 | eval with_$ac_package=no ;; |
c906108c SS |
1131 | |
1132 | --x) | |
1133 | # Obsolete; use --with-x. | |
1134 | with_x=yes ;; | |
1135 | ||
1136 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1137 | | --x-incl | --x-inc | --x-in | --x-i) | |
1138 | ac_prev=x_includes ;; | |
1139 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1140 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 1141 | x_includes=$ac_optarg ;; |
c906108c SS |
1142 | |
1143 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1144 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1145 | ac_prev=x_libraries ;; | |
1146 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1147 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 1148 | x_libraries=$ac_optarg ;; |
c906108c | 1149 | |
bec39cab AC |
1150 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1151 | Try \`$0 --help' for more information." >&2 | |
1152 | { (exit 1); exit 1; }; } | |
c906108c SS |
1153 | ;; |
1154 | ||
bec39cab AC |
1155 | *=*) |
1156 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1157 | # Reject names that are not valid shell variable names. | |
1158 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1159 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1160 | { (exit 1); exit 1; }; } | |
4e8d927d | 1161 | eval $ac_envvar=\$ac_optarg |
bec39cab AC |
1162 | export $ac_envvar ;; |
1163 | ||
c906108c | 1164 | *) |
bec39cab AC |
1165 | # FIXME: should be removed in autoconf 3.0. |
1166 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1167 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1168 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1169 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
1170 | ;; |
1171 | ||
1172 | esac | |
1173 | done | |
1174 | ||
1175 | if test -n "$ac_prev"; then | |
bec39cab AC |
1176 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1177 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1178 | { (exit 1); exit 1; }; } | |
c906108c | 1179 | fi |
c906108c | 1180 | |
4e8d927d DJ |
1181 | # Be sure to have absolute directory names. |
1182 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1183 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1184 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1185 | libdir localedir mandir | |
c906108c | 1186 | do |
4e8d927d | 1187 | eval ac_val=\$$ac_var |
bec39cab | 1188 | case $ac_val in |
4e8d927d DJ |
1189 | [\\/$]* | ?:[\\/]* ) continue;; |
1190 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1191 | esac |
4e8d927d DJ |
1192 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1193 | { (exit 1); exit 1; }; } | |
c906108c SS |
1194 | done |
1195 | ||
bec39cab AC |
1196 | # There might be people who depend on the old broken behavior: `$host' |
1197 | # used to hold the argument of --host etc. | |
1198 | # FIXME: To remove some day. | |
1199 | build=$build_alias | |
1200 | host=$host_alias | |
1201 | target=$target_alias | |
1202 | ||
1203 | # FIXME: To remove some day. | |
1204 | if test "x$host_alias" != x; then | |
1205 | if test "x$build_alias" = x; then | |
1206 | cross_compiling=maybe | |
1207 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1208 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1209 | elif test "x$build_alias" != "x$host_alias"; then | |
1210 | cross_compiling=yes | |
1211 | fi | |
1212 | fi | |
c906108c | 1213 | |
bec39cab AC |
1214 | ac_tool_prefix= |
1215 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1216 | ||
1217 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1218 | |
c906108c | 1219 | |
4e8d927d DJ |
1220 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1221 | ac_ls_di=`ls -di .` && | |
1222 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1223 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1224 | { (exit 1); exit 1; }; } | |
1225 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1226 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1227 | { (exit 1); exit 1; }; } | |
1228 | ||
1229 | ||
c906108c SS |
1230 | # Find the source files, if location was not specified. |
1231 | if test -z "$srcdir"; then | |
1232 | ac_srcdir_defaulted=yes | |
4e8d927d DJ |
1233 | # Try the directory containing this script, then the parent directory. |
1234 | ac_confdir=`$as_dirname -- "$0" || | |
bec39cab AC |
1235 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1236 | X"$0" : 'X\(//\)[^/]' \| \ | |
1237 | X"$0" : 'X\(//\)$' \| \ | |
4e8d927d | 1238 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bec39cab | 1239 | echo X"$0" | |
4e8d927d DJ |
1240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1241 | s//\1/ | |
1242 | q | |
1243 | } | |
1244 | /^X\(\/\/\)[^/].*/{ | |
1245 | s//\1/ | |
1246 | q | |
1247 | } | |
1248 | /^X\(\/\/\)$/{ | |
1249 | s//\1/ | |
1250 | q | |
1251 | } | |
1252 | /^X\(\/\).*/{ | |
1253 | s//\1/ | |
1254 | q | |
1255 | } | |
1256 | s/.*/./; q'` | |
c906108c | 1257 | srcdir=$ac_confdir |
4e8d927d | 1258 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1259 | srcdir=.. |
1260 | fi | |
1261 | else | |
1262 | ac_srcdir_defaulted=no | |
1263 | fi | |
4e8d927d DJ |
1264 | if test ! -r "$srcdir/$ac_unique_file"; then |
1265 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1266 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 1267 | { (exit 1); exit 1; }; } |
c906108c | 1268 | fi |
4e8d927d DJ |
1269 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1270 | ac_abs_confdir=`( | |
1271 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
bec39cab | 1272 | { (exit 1); exit 1; }; } |
4e8d927d DJ |
1273 | pwd)` |
1274 | # When building in place, set srcdir=. | |
1275 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1276 | srcdir=. | |
1277 | fi | |
1278 | # Remove unnecessary trailing slashes from srcdir. | |
1279 | # Double slashes in file names in object file debugging info | |
1280 | # mess up M-x gdb in Emacs. | |
1281 | case $srcdir in | |
1282 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1283 | esac | |
1284 | for ac_var in $ac_precious_vars; do | |
1285 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1286 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1287 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1288 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1289 | done | |
c906108c | 1290 | |
bec39cab AC |
1291 | # |
1292 | # Report the --help message. | |
1293 | # | |
1294 | if test "$ac_init_help" = "long"; then | |
1295 | # Omit some internal or obsolete options to make the list less imposing. | |
1296 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1297 | cat <<_ACEOF | |
1298 | \`configure' configures this package to adapt to many kinds of systems. | |
1299 | ||
1300 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1301 | ||
1302 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1303 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1304 | ||
1305 | Defaults for the options are specified in brackets. | |
1306 | ||
1307 | Configuration: | |
1308 | -h, --help display this help and exit | |
1309 | --help=short display options specific to this package | |
1310 | --help=recursive display the short help of all the included packages | |
1311 | -V, --version display version information and exit | |
1312 | -q, --quiet, --silent do not print \`checking...' messages | |
1313 | --cache-file=FILE cache test results in FILE [disabled] | |
1314 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1315 | -n, --no-create do not create output files | |
1316 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1317 | ||
bec39cab AC |
1318 | Installation directories: |
1319 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1320 | [$ac_default_prefix] | |
1321 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1322 | [PREFIX] | |
1323 | ||
1324 | By default, \`make install' will install all the files in | |
1325 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1326 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1327 | for instance \`--prefix=\$HOME'. | |
1328 | ||
1329 | For better control, use the options below. | |
1330 | ||
1331 | Fine tuning of the installation directories: | |
1332 | --bindir=DIR user executables [EPREFIX/bin] | |
1333 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1334 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
bec39cab AC |
1335 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1336 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1337 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1338 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1339 | --includedir=DIR C header files [PREFIX/include] | |
1340 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
4e8d927d DJ |
1341 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1342 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1343 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1344 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1345 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1346 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1347 | --htmldir=DIR html documentation [DOCDIR] | |
1348 | --dvidir=DIR dvi documentation [DOCDIR] | |
1349 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1350 | --psdir=DIR ps documentation [DOCDIR] | |
bec39cab AC |
1351 | _ACEOF |
1352 | ||
1353 | cat <<\_ACEOF | |
1354 | ||
1355 | Program names: | |
1356 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1357 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1358 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1359 | ||
1360 | X features: | |
1361 | --x-includes=DIR X include files are in DIR | |
1362 | --x-libraries=DIR X library files are in DIR | |
1363 | ||
1364 | System types: | |
1365 | --build=BUILD configure for building on BUILD [guessed] | |
1366 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1367 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1368 | _ACEOF | |
1369 | fi | |
1370 | ||
1371 | if test -n "$ac_init_help"; then | |
1372 | ||
1373 | cat <<\_ACEOF | |
1374 | ||
1375 | Optional Features: | |
1376 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1377 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
1378 | --enable-maintainer-mode enable make rules and dependencies not useful |
1379 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
1380 | --disable-nls do not use Native Language Support |
1381 | --disable-gdbcli disable command-line interface (CLI) | |
1382 | --disable-gdbmi disable machine-interface (MI) | |
1383 | --enable-tui enable full-screen terminal user interface (TUI) | |
1384 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
1385 | --enable-profiling enable profiling of GDB | |
094a342e | 1386 | --enable-werror treat compile warnings as errors |
bec39cab AC |
1387 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
1388 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
1389 | --enable-sim Link gdb with simulator | |
1390 | --enable-multi-ice build the multi-ice-gdb-server | |
1391 | ||
1392 | Optional Packages: | |
1393 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1394 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1395 | --with-included-gettext use the GNU gettext library included here | |
1396 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug | |
1397 | --with-libunwind Use libunwind frame unwinding support | |
1398 | --without-included-regex don't use included regex; this is the default | |
1399 | on systems with version 2 of the GNU C library | |
1400 | (use with caution on other system) | |
1401 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
1402 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
1403 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
1404 | --with-tclinclude=DIR Directory where tcl private headers are | |
1405 | --with-tkinclude=DIR Directory where tk private headers are | |
1406 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
1407 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
1408 | --with-x use the X Window System | |
1409 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1410 | ||
1411 | Some influential environment variables: | |
1412 | CC C compiler command | |
1413 | CFLAGS C compiler flags | |
1414 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1415 | nonstandard directory <lib dir> | |
4e8d927d DJ |
1416 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1417 | you have headers in a nonstandard directory <include dir> | |
bec39cab | 1418 | CPP C preprocessor |
4e8d927d DJ |
1419 | YACC The `Yet Another C Compiler' implementation to use. Defaults to |
1420 | the first program found out of: `bison -y', `byacc', `yacc'. | |
1421 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1422 | This script will default YFLAGS to the empty string to avoid a | |
1423 | default value of `-d' given by some make applications. | |
1424 | XMKMF Path to xmkmf, Makefile generator for X Window System | |
bec39cab AC |
1425 | |
1426 | Use these variables to override the choices made by `configure' or to help | |
1427 | it to find libraries and programs with nonstandard names/locations. | |
1428 | ||
1429 | _ACEOF | |
4e8d927d | 1430 | ac_status=$? |
bec39cab AC |
1431 | fi |
1432 | ||
1433 | if test "$ac_init_help" = "recursive"; then | |
1434 | # If there are subdirs, report their specific --help. | |
bec39cab AC |
1435 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1436 | test -d $ac_dir || continue | |
1437 | ac_builddir=. | |
1438 | ||
4e8d927d DJ |
1439 | case "$ac_dir" in |
1440 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1441 | *) | |
bec39cab | 1442 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
4e8d927d DJ |
1443 | # A ".." for each directory in $ac_dir_suffix. |
1444 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1445 | case $ac_top_builddir_sub in | |
1446 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1447 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1448 | esac ;; | |
1449 | esac | |
1450 | ac_abs_top_builddir=$ac_pwd | |
1451 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1452 | # for backward compatibility: | |
1453 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
1454 | |
1455 | case $srcdir in | |
4e8d927d | 1456 | .) # We are building in place. |
bec39cab | 1457 | ac_srcdir=. |
4e8d927d DJ |
1458 | ac_top_srcdir=$ac_top_builddir_sub |
1459 | ac_abs_top_srcdir=$ac_pwd ;; | |
1460 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 1461 | ac_srcdir=$srcdir$ac_dir_suffix; |
4e8d927d DJ |
1462 | ac_top_srcdir=$srcdir |
1463 | ac_abs_top_srcdir=$srcdir ;; | |
1464 | *) # Relative name. | |
1465 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1466 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1467 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 1468 | esac |
4e8d927d | 1469 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 1470 | |
4e8d927d DJ |
1471 | cd "$ac_dir" || { ac_status=$?; continue; } |
1472 | # Check for guested configure. | |
bec39cab | 1473 | if test -f $ac_srcdir/configure.gnu; then |
4e8d927d | 1474 | echo && |
bec39cab AC |
1475 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
1476 | elif test -f $ac_srcdir/configure; then | |
4e8d927d | 1477 | echo && |
bec39cab | 1478 | $SHELL $ac_srcdir/configure --help=recursive |
3ace7edb | 1479 | else |
bec39cab | 1480 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
4e8d927d DJ |
1481 | fi || ac_status=$? |
1482 | cd "$ac_pwd" || { ac_status=$?; break; } | |
bec39cab AC |
1483 | done |
1484 | fi | |
1485 | ||
4e8d927d | 1486 | test -n "$ac_init_help" && exit $ac_status |
bec39cab AC |
1487 | if $ac_init_version; then |
1488 | cat <<\_ACEOF | |
4e8d927d DJ |
1489 | configure |
1490 | generated by GNU Autoconf 2.59d | |
bec39cab | 1491 | |
4e8d927d DJ |
1492 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1493 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
bec39cab AC |
1494 | This configure script is free software; the Free Software Foundation |
1495 | gives unlimited permission to copy, distribute and modify it. | |
1496 | _ACEOF | |
4e8d927d | 1497 | exit |
bec39cab | 1498 | fi |
4e8d927d | 1499 | cat >config.log <<_ACEOF |
bec39cab AC |
1500 | This file contains any messages produced by compilers while |
1501 | running configure, to aid debugging if configure makes a mistake. | |
1502 | ||
1503 | It was created by $as_me, which was | |
4e8d927d | 1504 | generated by GNU Autoconf 2.59d. Invocation command line was |
bec39cab AC |
1505 | |
1506 | $ $0 $@ | |
1507 | ||
1508 | _ACEOF | |
4e8d927d | 1509 | exec 5>>config.log |
bec39cab AC |
1510 | { |
1511 | cat <<_ASUNAME | |
1512 | ## --------- ## | |
1513 | ## Platform. ## | |
1514 | ## --------- ## | |
1515 | ||
1516 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1517 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1518 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1519 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1520 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1521 | ||
1522 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1523 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1524 | ||
1525 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1526 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1527 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
4e8d927d | 1528 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1529 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1530 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1531 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1532 | ||
1533 | _ASUNAME | |
1534 | ||
1535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1536 | for as_dir in $PATH | |
1537 | do | |
1538 | IFS=$as_save_IFS | |
1539 | test -z "$as_dir" && as_dir=. | |
1540 | echo "PATH: $as_dir" | |
1541 | done | |
4e8d927d | 1542 | IFS=$as_save_IFS |
bec39cab AC |
1543 | |
1544 | } >&5 | |
1545 | ||
1546 | cat >&5 <<_ACEOF | |
1547 | ||
1548 | ||
1549 | ## ----------- ## | |
1550 | ## Core tests. ## | |
1551 | ## ----------- ## | |
1552 | ||
1553 | _ACEOF | |
1554 | ||
1555 | ||
1556 | # Keep a trace of the command line. | |
1557 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1558 | # Strip out --silent because we don't want to record it for future runs. | |
1559 | # Also quote any args containing shell meta-characters. | |
1560 | # Make two passes to allow for proper duplicate-argument suppression. | |
1561 | ac_configure_args= | |
1562 | ac_configure_args0= | |
1563 | ac_configure_args1= | |
1564 | ac_sep= | |
1565 | ac_must_keep_next=false | |
1566 | for ac_pass in 1 2 | |
1567 | do | |
1568 | for ac_arg | |
1569 | do | |
1570 | case $ac_arg in | |
1571 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1572 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1573 | | -silent | --silent | --silen | --sile | --sil) | |
1574 | continue ;; | |
4e8d927d | 1575 | *\'*) |
bec39cab AC |
1576 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1577 | esac | |
1578 | case $ac_pass in | |
1579 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1580 | 2) | |
1581 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1582 | if test $ac_must_keep_next = true; then | |
1583 | ac_must_keep_next=false # Got value, back to normal. | |
1584 | else | |
1585 | case $ac_arg in | |
1586 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1587 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1588 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1589 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1590 | case "$ac_configure_args0 " in | |
1591 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1592 | esac | |
1593 | ;; | |
1594 | -* ) ac_must_keep_next=true ;; | |
1595 | esac | |
1596 | fi | |
1597 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1598 | # Get rid of the leading space. | |
1599 | ac_sep=" " | |
1600 | ;; | |
1601 | esac | |
1602 | done | |
1603 | done | |
1604 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1605 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1606 | ||
1607 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1608 | # config.log. We remove comments because anyway the quotes in there | |
1609 | # would cause problems or look ugly. | |
4e8d927d DJ |
1610 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1611 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
bec39cab AC |
1612 | trap 'exit_status=$? |
1613 | # Save into config.log some information that might help in debugging. | |
1614 | { | |
1615 | echo | |
1616 | ||
1617 | cat <<\_ASBOX | |
1618 | ## ---------------- ## | |
1619 | ## Cache variables. ## | |
1620 | ## ---------------- ## | |
1621 | _ASBOX | |
1622 | echo | |
1623 | # The following way of writing the cache mishandles newlines in values, | |
4e8d927d DJ |
1624 | ( |
1625 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1626 | eval ac_val=\$$ac_var | |
1627 | case $ac_val in #( | |
1628 | *${as_nl}*) | |
1629 | case $ac_var in #( | |
1630 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1631 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1632 | esac | |
1633 | case $ac_var in #( | |
1634 | _ | IFS | as_nl) ;; #( | |
1635 | *) $as_unset $ac_var ;; | |
1636 | esac ;; | |
1637 | esac | |
1638 | done | |
bec39cab | 1639 | (set) 2>&1 | |
4e8d927d DJ |
1640 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1641 | *${as_nl}ac_space=\ *) | |
bec39cab | 1642 | sed -n \ |
4e8d927d DJ |
1643 | "s/'\''/'\''\\\\'\'''\''/g; |
1644 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1645 | ;; #( | |
bec39cab | 1646 | *) |
4e8d927d | 1647 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 1648 | ;; |
4e8d927d DJ |
1649 | esac | |
1650 | sort | |
1651 | ) | |
bec39cab AC |
1652 | echo |
1653 | ||
1654 | cat <<\_ASBOX | |
1655 | ## ----------------- ## | |
1656 | ## Output variables. ## | |
1657 | ## ----------------- ## | |
1658 | _ASBOX | |
1659 | echo | |
1660 | for ac_var in $ac_subst_vars | |
1661 | do | |
4e8d927d DJ |
1662 | eval ac_val=\$$ac_var |
1663 | echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
1664 | done | sort |
1665 | echo | |
1666 | ||
1667 | if test -n "$ac_subst_files"; then | |
1668 | cat <<\_ASBOX | |
4e8d927d DJ |
1669 | ## ------------------- ## |
1670 | ## File substitutions. ## | |
1671 | ## ------------------- ## | |
bec39cab AC |
1672 | _ASBOX |
1673 | echo | |
1674 | for ac_var in $ac_subst_files | |
1675 | do | |
4e8d927d DJ |
1676 | eval ac_val=\$$ac_var |
1677 | echo "$ac_var='\''$ac_val'\''" | |
bec39cab AC |
1678 | done | sort |
1679 | echo | |
1680 | fi | |
1681 | ||
1682 | if test -s confdefs.h; then | |
1683 | cat <<\_ASBOX | |
1684 | ## ----------- ## | |
1685 | ## confdefs.h. ## | |
1686 | ## ----------- ## | |
1687 | _ASBOX | |
1688 | echo | |
4e8d927d | 1689 | cat confdefs.h |
bec39cab | 1690 | echo |
3ace7edb | 1691 | fi |
bec39cab AC |
1692 | test "$ac_signal" != 0 && |
1693 | echo "$as_me: caught signal $ac_signal" | |
1694 | echo "$as_me: exit $exit_status" | |
1695 | } >&5 | |
4e8d927d DJ |
1696 | rm -f core *.core core.conftest.* && |
1697 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1698 | exit $exit_status |
4e8d927d | 1699 | ' 0 |
bec39cab AC |
1700 | for ac_signal in 1 2 13 15; do |
1701 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1702 | done | |
1703 | ac_signal=0 | |
1704 | ||
1705 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
4e8d927d | 1706 | rm -f -r conftest* confdefs.h |
bec39cab AC |
1707 | |
1708 | # Predefined preprocessor variables. | |
1709 | ||
1710 | cat >>confdefs.h <<_ACEOF | |
1711 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1712 | _ACEOF | |
1713 | ||
1714 | ||
1715 | cat >>confdefs.h <<_ACEOF | |
1716 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1717 | _ACEOF | |
1718 | ||
1719 | ||
1720 | cat >>confdefs.h <<_ACEOF | |
1721 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1722 | _ACEOF | |
1723 | ||
1724 | ||
1725 | cat >>confdefs.h <<_ACEOF | |
1726 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1727 | _ACEOF | |
1728 | ||
1729 | ||
1730 | cat >>confdefs.h <<_ACEOF | |
1731 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1732 | _ACEOF | |
1733 | ||
1734 | ||
1735 | # Let the site file select an alternate cache file if it wants to. | |
1736 | # Prefer explicitly selected file to automatically selected ones. | |
4e8d927d DJ |
1737 | if test -n "$CONFIG_SITE"; then |
1738 | set x "$CONFIG_SITE" | |
1739 | elif test "x$prefix" != xNONE; then | |
1740 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1741 | else | |
1742 | set x "$ac_default_prefix/share/config.site" \ | |
1743 | "$ac_default_prefix/etc/config.site" | |
c906108c | 1744 | fi |
4e8d927d DJ |
1745 | shift |
1746 | for ac_site_file | |
1747 | do | |
c906108c | 1748 | if test -r "$ac_site_file"; then |
bec39cab AC |
1749 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1750 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1751 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1752 | . "$ac_site_file" |
1753 | fi | |
1754 | done | |
1755 | ||
1756 | if test -r "$cache_file"; then | |
bec39cab AC |
1757 | # Some versions of bash will fail to source /dev/null (special |
1758 | # files actually), so we avoid doing that. | |
1759 | if test -f "$cache_file"; then | |
1760 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1761 | echo "$as_me: loading cache $cache_file" >&6;} | |
1762 | case $cache_file in | |
1763 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1764 | *) . ./$cache_file;; | |
1765 | esac | |
1766 | fi | |
c906108c | 1767 | else |
bec39cab AC |
1768 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1769 | echo "$as_me: creating cache $cache_file" >&6;} | |
1770 | >$cache_file | |
1771 | fi | |
1772 | ||
1773 | # Check that the precious variables saved in the cache have kept the same | |
1774 | # value. | |
1775 | ac_cache_corrupted=false | |
4e8d927d | 1776 | for ac_var in $ac_precious_vars; do |
bec39cab AC |
1777 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1778 | eval ac_new_set=\$ac_env_${ac_var}_set | |
4e8d927d DJ |
1779 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1780 | eval ac_new_val=\$ac_env_${ac_var}_value | |
bec39cab AC |
1781 | case $ac_old_set,$ac_new_set in |
1782 | set,) | |
1783 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1784 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1785 | ac_cache_corrupted=: ;; | |
1786 | ,set) | |
1787 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1788 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1789 | ac_cache_corrupted=: ;; | |
1790 | ,);; | |
1791 | *) | |
1792 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1793 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1794 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1795 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1796 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1797 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1798 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1799 | ac_cache_corrupted=: | |
1800 | fi;; | |
1801 | esac | |
1802 | # Pass precious variables to config.status. | |
1803 | if test "$ac_new_set" = set; then | |
1804 | case $ac_new_val in | |
4e8d927d | 1805 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bec39cab AC |
1806 | *) ac_arg=$ac_var=$ac_new_val ;; |
1807 | esac | |
1808 | case " $ac_configure_args " in | |
1809 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1810 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1811 | esac | |
1812 | fi | |
1813 | done | |
1814 | if $ac_cache_corrupted; then | |
1815 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1816 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1817 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1818 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1819 | { (exit 1); exit 1; }; } | |
c906108c SS |
1820 | fi |
1821 | ||
c906108c SS |
1822 | |
1823 | ||
bec39cab AC |
1824 | |
1825 | ||
1826 | ||
1827 | ||
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | ||
1834 | ||
1835 | ||
1836 | ||
1837 | ||
4e8d927d DJ |
1838 | ac_ext=c |
1839 | ac_cpp='$CPP $CPPFLAGS' | |
1840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
bec39cab AC |
1843 | |
1844 | ||
4e8d927d | 1845 | ac_config_headers="$ac_config_headers config.h:config.in" |
bec39cab | 1846 | |
4e8d927d DJ |
1847 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1848 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
1849 | # Check whether --enable-maintainer-mode was given. | |
413ccac7 | 1850 | if test "${enable_maintainer_mode+set}" = set; then |
4e8d927d | 1851 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
413ccac7 AC |
1852 | else |
1853 | USE_MAINTAINER_MODE=no | |
4e8d927d DJ |
1854 | fi |
1855 | ||
1856 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1857 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
413ccac7 | 1858 | |
413ccac7 AC |
1859 | |
1860 | if test $USE_MAINTAINER_MODE = yes; then | |
1861 | MAINTAINER_MODE_TRUE= | |
1862 | MAINTAINER_MODE_FALSE='#' | |
1863 | else | |
1864 | MAINTAINER_MODE_TRUE='#' | |
1865 | MAINTAINER_MODE_FALSE= | |
1866 | fi | |
85981d60 | 1867 | |
413ccac7 | 1868 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1869 | |
c906108c | 1870 | |
bec39cab AC |
1871 | |
1872 | ac_ext=c | |
1873 | ac_cpp='$CPP $CPPFLAGS' | |
1874 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1875 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1876 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1877 | if test -n "$ac_tool_prefix"; then | |
1878 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1879 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4e8d927d DJ |
1880 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
1882 | if test "${ac_cv_prog_CC+set}" = set; then |
1883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1884 | else | |
1885 | if test -n "$CC"; then | |
1886 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1887 | else | |
1888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1889 | for as_dir in $PATH | |
1890 | do | |
1891 | IFS=$as_save_IFS | |
1892 | test -z "$as_dir" && as_dir=. | |
1893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 1894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
1895 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1897 | break 2 | |
1898 | fi | |
1899 | done | |
1900 | done | |
4e8d927d | 1901 | IFS=$as_save_IFS |
bec39cab AC |
1902 | |
1903 | fi | |
1904 | fi | |
1905 | CC=$ac_cv_prog_CC | |
1906 | if test -n "$CC"; then | |
4e8d927d DJ |
1907 | { echo "$as_me:$LINENO: result: $CC" >&5 |
1908 | echo "${ECHO_T}$CC" >&6; } | |
bec39cab | 1909 | else |
4e8d927d DJ |
1910 | { echo "$as_me:$LINENO: result: no" >&5 |
1911 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
1912 | fi |
1913 | ||
4e8d927d | 1914 | |
bec39cab AC |
1915 | fi |
1916 | if test -z "$ac_cv_prog_CC"; then | |
1917 | ac_ct_CC=$CC | |
1918 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1919 | set dummy gcc; ac_word=$2 |
4e8d927d DJ |
1920 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
1922 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1924 | else | |
1925 | if test -n "$ac_ct_CC"; then | |
1926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1927 | else | |
1928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1929 | for as_dir in $PATH | |
1930 | do | |
1931 | IFS=$as_save_IFS | |
1932 | test -z "$as_dir" && as_dir=. | |
1933 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 1934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
1935 | ac_cv_prog_ac_ct_CC="gcc" |
1936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1937 | break 2 | |
1938 | fi | |
1939 | done | |
1940 | done | |
4e8d927d | 1941 | IFS=$as_save_IFS |
bec39cab AC |
1942 | |
1943 | fi | |
1944 | fi | |
1945 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1946 | if test -n "$ac_ct_CC"; then | |
4e8d927d DJ |
1947 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1948 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
bec39cab | 1949 | else |
4e8d927d DJ |
1950 | { echo "$as_me:$LINENO: result: no" >&5 |
1951 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
1952 | fi |
1953 | ||
4e8d927d DJ |
1954 | if test "x$ac_ct_CC" = x; then |
1955 | CC="" | |
1956 | else | |
1957 | case $cross_compiling:$ac_tool_warned in | |
1958 | yes:) | |
1959 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1960 | whose name does not start with the host triplet. If you think this | |
1961 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1962 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1963 | whose name does not start with the host triplet. If you think this | |
1964 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1965 | ac_tool_warned=yes ;; | |
1966 | esac | |
1967 | CC=$ac_ct_CC | |
1968 | fi | |
bec39cab AC |
1969 | else |
1970 | CC="$ac_cv_prog_CC" | |
1971 | fi | |
1972 | ||
1973 | if test -z "$CC"; then | |
4e8d927d DJ |
1974 | if test -n "$ac_tool_prefix"; then |
1975 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1976 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
4e8d927d DJ |
1977 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
1979 | if test "${ac_cv_prog_CC+set}" = set; then |
1980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1981 | else |
1982 | if test -n "$CC"; then | |
1983 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1984 | else | |
bec39cab AC |
1985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1986 | for as_dir in $PATH | |
1987 | do | |
1988 | IFS=$as_save_IFS | |
1989 | test -z "$as_dir" && as_dir=. | |
1990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 1991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
1992 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1994 | break 2 | |
1995 | fi | |
1996 | done | |
1997 | done | |
4e8d927d | 1998 | IFS=$as_save_IFS |
bec39cab | 1999 | |
c906108c SS |
2000 | fi |
2001 | fi | |
bec39cab | 2002 | CC=$ac_cv_prog_CC |
c906108c | 2003 | if test -n "$CC"; then |
4e8d927d DJ |
2004 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2005 | echo "${ECHO_T}$CC" >&6; } | |
c906108c | 2006 | else |
4e8d927d DJ |
2007 | { echo "$as_me:$LINENO: result: no" >&5 |
2008 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
2009 | fi |
2010 | ||
bec39cab | 2011 | |
4e8d927d | 2012 | fi |
bec39cab | 2013 | fi |
c906108c SS |
2014 | if test -z "$CC"; then |
2015 | # Extract the first word of "cc", so it can be a program name with args. | |
2016 | set dummy cc; ac_word=$2 | |
4e8d927d DJ |
2017 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
2019 | if test "${ac_cv_prog_CC+set}" = set; then |
2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2021 | else |
2022 | if test -n "$CC"; then | |
2023 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2024 | else | |
c906108c | 2025 | ac_prog_rejected=no |
bec39cab AC |
2026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2027 | for as_dir in $PATH | |
2028 | do | |
2029 | IFS=$as_save_IFS | |
2030 | test -z "$as_dir" && as_dir=. | |
2031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 2032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
2033 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2034 | ac_prog_rejected=yes | |
2035 | continue | |
2036 | fi | |
2037 | ac_cv_prog_CC="cc" | |
2038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2039 | break 2 | |
2040 | fi | |
2041 | done | |
2042 | done | |
4e8d927d | 2043 | IFS=$as_save_IFS |
bec39cab | 2044 | |
c906108c SS |
2045 | if test $ac_prog_rejected = yes; then |
2046 | # We found a bogon in the path, so make sure we never use it. | |
2047 | set dummy $ac_cv_prog_CC | |
2048 | shift | |
bec39cab | 2049 | if test $# != 0; then |
c906108c SS |
2050 | # We chose a different compiler from the bogus one. |
2051 | # However, it has the same basename, so the bogon will be chosen | |
2052 | # first if we set CC to just the basename; use the full file name. | |
2053 | shift | |
bec39cab | 2054 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
2055 | fi |
2056 | fi | |
2057 | fi | |
2058 | fi | |
bec39cab | 2059 | CC=$ac_cv_prog_CC |
c906108c | 2060 | if test -n "$CC"; then |
4e8d927d DJ |
2061 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2062 | echo "${ECHO_T}$CC" >&6; } | |
c906108c | 2063 | else |
4e8d927d DJ |
2064 | { echo "$as_me:$LINENO: result: no" >&5 |
2065 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
2066 | fi |
2067 | ||
4e8d927d | 2068 | |
bec39cab AC |
2069 | fi |
2070 | if test -z "$CC"; then | |
2071 | if test -n "$ac_tool_prefix"; then | |
4e8d927d | 2072 | for ac_prog in cl.exe |
bec39cab AC |
2073 | do |
2074 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2075 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4e8d927d DJ |
2076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
2078 | if test "${ac_cv_prog_CC+set}" = set; then |
2079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2080 | else |
2081 | if test -n "$CC"; then | |
2082 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2083 | else | |
bec39cab AC |
2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2085 | for as_dir in $PATH | |
2086 | do | |
2087 | IFS=$as_save_IFS | |
2088 | test -z "$as_dir" && as_dir=. | |
2089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 2090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
2091 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2093 | break 2 | |
2094 | fi | |
2095 | done | |
2096 | done | |
4e8d927d | 2097 | IFS=$as_save_IFS |
bec39cab | 2098 | |
c906108c SS |
2099 | fi |
2100 | fi | |
bec39cab | 2101 | CC=$ac_cv_prog_CC |
c906108c | 2102 | if test -n "$CC"; then |
4e8d927d DJ |
2103 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2104 | echo "${ECHO_T}$CC" >&6; } | |
c906108c | 2105 | else |
4e8d927d DJ |
2106 | { echo "$as_me:$LINENO: result: no" >&5 |
2107 | echo "${ECHO_T}no" >&6; } | |
c906108c | 2108 | fi |
bec39cab | 2109 | |
4e8d927d | 2110 | |
bec39cab AC |
2111 | test -n "$CC" && break |
2112 | done | |
2113 | fi | |
2114 | if test -z "$CC"; then | |
2115 | ac_ct_CC=$CC | |
4e8d927d | 2116 | for ac_prog in cl.exe |
bec39cab AC |
2117 | do |
2118 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2119 | set dummy $ac_prog; ac_word=$2 | |
4e8d927d DJ |
2120 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
2122 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2124 | else | |
2125 | if test -n "$ac_ct_CC"; then | |
2126 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2127 | else | |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2129 | for as_dir in $PATH | |
2130 | do | |
2131 | IFS=$as_save_IFS | |
2132 | test -z "$as_dir" && as_dir=. | |
2133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 2134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
2135 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2137 | break 2 | |
c906108c | 2138 | fi |
bec39cab AC |
2139 | done |
2140 | done | |
4e8d927d | 2141 | IFS=$as_save_IFS |
bec39cab AC |
2142 | |
2143 | fi | |
2144 | fi | |
2145 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2146 | if test -n "$ac_ct_CC"; then | |
4e8d927d DJ |
2147 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2148 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
bec39cab | 2149 | else |
4e8d927d DJ |
2150 | { echo "$as_me:$LINENO: result: no" >&5 |
2151 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
2152 | fi |
2153 | ||
4e8d927d | 2154 | |
bec39cab AC |
2155 | test -n "$ac_ct_CC" && break |
2156 | done | |
c906108c | 2157 | |
4e8d927d DJ |
2158 | if test "x$ac_ct_CC" = x; then |
2159 | CC="" | |
2160 | else | |
2161 | case $cross_compiling:$ac_tool_warned in | |
2162 | yes:) | |
2163 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2164 | whose name does not start with the host triplet. If you think this | |
2165 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2166 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2167 | whose name does not start with the host triplet. If you think this | |
2168 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2169 | ac_tool_warned=yes ;; | |
2170 | esac | |
2171 | CC=$ac_ct_CC | |
2172 | fi | |
bec39cab AC |
2173 | fi |
2174 | ||
2175 | fi | |
2176 | ||
2177 | ||
2178 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2179 | See \`config.log' for more details." >&5 | |
2180 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2181 | See \`config.log' for more details." >&2;} | |
2182 | { (exit 1); exit 1; }; } | |
2183 | ||
2184 | # Provide some information about the compiler. | |
4e8d927d | 2185 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
bec39cab | 2186 | ac_compiler=`set X $ac_compile; echo $2` |
4e8d927d DJ |
2187 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5 |
2188 | (eval $ac_compiler --version >&5) 2>&5 | |
bec39cab AC |
2189 | ac_status=$? |
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2191 | (exit $ac_status); } | |
4e8d927d DJ |
2192 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5 |
2193 | (eval $ac_compiler -v >&5) 2>&5 | |
bec39cab AC |
2194 | ac_status=$? |
2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2196 | (exit $ac_status); } | |
4e8d927d DJ |
2197 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5 |
2198 | (eval $ac_compiler -V >&5) 2>&5 | |
bec39cab AC |
2199 | ac_status=$? |
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2201 | (exit $ac_status); } | |
2202 | ||
4e8d927d DJ |
2203 | |
2204 | # List of possible output files. We want to start from the most likely, | |
2205 | # but we have to check foo.exe before foo, because Cygwin `test -f' looks | |
2206 | # also for foo.exe. b.out is created by i960 compilers. | |
2207 | # As a last resort, we also try wildcards: `conftest.*' and `a.*'. | |
2208 | # But we are not allowed to rm a.*, and we do not want always remove | |
2209 | # conftest.*, so we will list them literally, when appropriate. | |
2210 | ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out" | |
2211 | ||
2212 | # The IRIX 6 linker writes into existing files which may not be | |
2213 | # executable, retaining their permissions. Remove them first so a | |
2214 | # subsequent execution test works. | |
2215 | rm -f $ac_outfiles conftest.* | |
2216 | ||
bec39cab AC |
2217 | cat >conftest.$ac_ext <<_ACEOF |
2218 | /* confdefs.h. */ | |
2219 | _ACEOF | |
2220 | cat confdefs.h >>conftest.$ac_ext | |
2221 | cat >>conftest.$ac_ext <<_ACEOF | |
2222 | /* end confdefs.h. */ | |
2223 | ||
2224 | int | |
2225 | main () | |
2226 | { | |
2227 | ||
2228 | ; | |
2229 | return 0; | |
2230 | } | |
2231 | _ACEOF | |
4e8d927d | 2232 | |
bec39cab | 2233 | ac_clean_files_save=$ac_clean_files |
4e8d927d DJ |
2234 | ac_clean_files="$ac_clean_files $ac_outfiles" |
2235 | ||
2236 | # The following tests should remove their output except files matching conftest.*. | |
bec39cab AC |
2237 | # Try to create an executable without -o first, disregard a.out. |
2238 | # It will help us diagnose broken compilers, and finding out an intuition | |
2239 | # of exeext. | |
4e8d927d DJ |
2240 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2241 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
bec39cab | 2242 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4e8d927d | 2243 | |
bec39cab AC |
2244 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2245 | (eval $ac_link_default) 2>&5 | |
2246 | ac_status=$? | |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; then | |
4e8d927d | 2249 | for ac_file in $ac_outfiles a.* conftest.* NO |
bec39cab AC |
2250 | do |
2251 | test -f "$ac_file" || continue | |
2252 | case $ac_file in | |
4e8d927d DJ |
2253 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2254 | * ) break;; | |
bec39cab AC |
2255 | esac |
2256 | done | |
4e8d927d DJ |
2257 | if test "$ac_file" = NO; then |
2258 | { { echo "$as_me:$LINENO: error: no output file found | |
2259 | See \`config.log' for more details." >&5 | |
2260 | echo "$as_me: error: no output file found | |
2261 | See \`config.log' for more details." >&2;} | |
2262 | { (exit 1); exit 1; }; } | |
2263 | fi | |
2264 | ||
2265 | ||
bec39cab AC |
2266 | else |
2267 | echo "$as_me: failed program was:" >&5 | |
2268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2269 | ||
2270 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2271 | See \`config.log' for more details." >&5 | |
2272 | echo "$as_me: error: C compiler cannot create executables | |
2273 | See \`config.log' for more details." >&2;} | |
2274 | { (exit 77); exit 77; }; } | |
2275 | fi | |
2276 | ||
4e8d927d DJ |
2277 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2278 | echo "${ECHO_T}$ac_file" >&6; } | |
2279 | # Check that the compiler produces executables we can run. If not, either | |
bec39cab | 2280 | # the compiler is broken, or we cross compile. |
4e8d927d DJ |
2281 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2282 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
bec39cab AC |
2283 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2284 | # If not cross compiling, check that we can run a simple program. | |
2285 | if test "$cross_compiling" != yes; then | |
2286 | if { ac_try='./$ac_file' | |
2287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2288 | (eval $ac_try) 2>&5 | |
2289 | ac_status=$? | |
2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2291 | (exit $ac_status); }; }; then | |
2292 | cross_compiling=no | |
c906108c | 2293 | else |
bec39cab AC |
2294 | if test "$cross_compiling" = maybe; then |
2295 | cross_compiling=yes | |
2296 | else | |
2297 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2298 | If you meant to cross compile, use \`--host'. | |
2299 | See \`config.log' for more details." >&5 | |
2300 | echo "$as_me: error: cannot run C compiled programs. | |
2301 | If you meant to cross compile, use \`--host'. | |
2302 | See \`config.log' for more details." >&2;} | |
2303 | { (exit 1); exit 1; }; } | |
2304 | fi | |
c906108c | 2305 | fi |
bec39cab | 2306 | fi |
4e8d927d DJ |
2307 | { echo "$as_me:$LINENO: result: yes" >&5 |
2308 | echo "${ECHO_T}yes" >&6; } | |
bec39cab | 2309 | |
4e8d927d DJ |
2310 | # Clean up; list also $ac_file, in case it matched a wildcard entry. |
2311 | rm -f $ac_outfiles $ac_file | |
bec39cab | 2312 | |
4e8d927d DJ |
2313 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2314 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2315 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2316 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2317 | ||
2318 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2319 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2320 | if test "${ac_cv_exeext+set}" = set; then | |
2321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2322 | else | |
2323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
2324 | (eval $ac_link) 2>&5 |
2325 | ac_status=$? | |
2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2327 | (exit $ac_status); }; then | |
4e8d927d DJ |
2328 | # If both `conftest.exe' and `conftest' are `present' (well, observable), |
2329 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2330 | # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'. | |
2331 | for ac_file in conftest.exe conftest conftest.* NO; do | |
2332 | test -f "$ac_file" || continue | |
2333 | case $ac_file in | |
2334 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2335 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2336 | break;; | |
2337 | * ) break;; | |
2338 | esac | |
2339 | done | |
2340 | if test "$ac_file" = NO; then | |
2341 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found | |
2342 | See \`config.log' for more details." >&5 | |
2343 | echo "$as_me: error: cannot compute suffix of executables: no output file found | |
2344 | See \`config.log' for more details." >&2;} | |
2345 | { (exit 1); exit 1; }; } | |
2346 | fi | |
2347 | ||
2348 | # Clean up; list also $ac_file, in case it matched conftest.*. | |
2349 | rm -f $ac_outfiles $ac_file | |
2350 | ||
c906108c | 2351 | else |
bec39cab AC |
2352 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2353 | See \`config.log' for more details." >&5 | |
2354 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2355 | See \`config.log' for more details." >&2;} | |
2356 | { (exit 1); exit 1; }; } | |
4e8d927d | 2357 | |
c906108c | 2358 | fi |
c906108c | 2359 | |
c906108c | 2360 | |
4e8d927d DJ |
2361 | fi |
2362 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2363 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
bec39cab AC |
2364 | EXEEXT=$ac_cv_exeext |
2365 | ac_exeext=$EXEEXT | |
4e8d927d DJ |
2366 | |
2367 | ||
2368 | ac_clean_files=$ac_clean_files_save | |
2369 | ||
2370 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2371 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
bec39cab AC |
2372 | if test "${ac_cv_objext+set}" = set; then |
2373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2374 | else | |
4e8d927d | 2375 | rm -f conftest.o conftest.obj |
bec39cab AC |
2376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2377 | (eval $ac_compile) 2>&5 | |
2378 | ac_status=$? | |
2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2380 | (exit $ac_status); }; then | |
4e8d927d DJ |
2381 | for ac_file in conftest.o conftest.obj conftest.*; do |
2382 | test -f "$ac_file" || continue; | |
bec39cab | 2383 | case $ac_file in |
4e8d927d | 2384 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
bec39cab AC |
2385 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2386 | break;; | |
2387 | esac | |
2388 | done | |
c906108c | 2389 | else |
bec39cab AC |
2390 | echo "$as_me: failed program was:" >&5 |
2391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2392 | ||
2393 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2394 | See \`config.log' for more details." >&5 | |
2395 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2396 | See \`config.log' for more details." >&2;} | |
2397 | { (exit 1); exit 1; }; } | |
c906108c SS |
2398 | fi |
2399 | ||
bec39cab | 2400 | fi |
4e8d927d DJ |
2401 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2402 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
bec39cab AC |
2403 | OBJEXT=$ac_cv_objext |
2404 | ac_objext=$OBJEXT | |
4e8d927d DJ |
2405 | |
2406 | ||
2407 | rm -f conftest.* | |
2408 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2409 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
bec39cab AC |
2410 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2412 | else |
bec39cab AC |
2413 | cat >conftest.$ac_ext <<_ACEOF |
2414 | /* confdefs.h. */ | |
2415 | _ACEOF | |
2416 | cat confdefs.h >>conftest.$ac_ext | |
2417 | cat >>conftest.$ac_ext <<_ACEOF | |
2418 | /* end confdefs.h. */ | |
2419 | ||
2420 | int | |
2421 | main () | |
2422 | { | |
2423 | #ifndef __GNUC__ | |
2424 | choke me | |
2425 | #endif | |
2426 | ||
2427 | ; | |
2428 | return 0; | |
2429 | } | |
2430 | _ACEOF | |
2431 | rm -f conftest.$ac_objext | |
2432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2433 | (eval $ac_compile) 2>conftest.er1 | |
2434 | ac_status=$? | |
2435 | grep -v '^ *+' conftest.er1 >conftest.err | |
2436 | rm -f conftest.er1 | |
2437 | cat conftest.err >&5 | |
2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2439 | (exit $ac_status); } && | |
121ce6e5 | 2440 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2442 | (eval $ac_try) 2>&5 | |
2443 | ac_status=$? | |
2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2445 | (exit $ac_status); }; } && | |
2446 | { ac_try='test -s conftest.$ac_objext' | |
2447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2448 | (eval $ac_try) 2>&5 | |
2449 | ac_status=$? | |
2450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2451 | (exit $ac_status); }; }; then | |
2452 | ac_compiler_gnu=yes | |
2453 | else | |
2454 | echo "$as_me: failed program was:" >&5 | |
2455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2456 | ||
4e8d927d | 2457 | ac_compiler_gnu=no |
bec39cab | 2458 | fi |
4e8d927d | 2459 | |
bec39cab AC |
2460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2461 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2462 | ||
2463 | fi | |
4e8d927d DJ |
2464 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2465 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
bec39cab AC |
2466 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2467 | ac_test_CFLAGS=${CFLAGS+set} | |
2468 | ac_save_CFLAGS=$CFLAGS | |
4e8d927d DJ |
2469 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2470 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
bec39cab AC |
2471 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2473 | else | |
4e8d927d DJ |
2474 | ac_save_c_werror_flag=$ac_c_werror_flag |
2475 | ac_c_werror_flag=yes | |
2476 | ac_cv_prog_cc_g=no | |
2477 | CFLAGS="-g" | |
2478 | cat >conftest.$ac_ext <<_ACEOF | |
2479 | /* confdefs.h. */ | |
2480 | _ACEOF | |
2481 | cat confdefs.h >>conftest.$ac_ext | |
2482 | cat >>conftest.$ac_ext <<_ACEOF | |
2483 | /* end confdefs.h. */ | |
2484 | ||
2485 | int | |
2486 | main () | |
2487 | { | |
2488 | ||
2489 | ; | |
2490 | return 0; | |
2491 | } | |
2492 | _ACEOF | |
2493 | rm -f conftest.$ac_objext | |
2494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2495 | (eval $ac_compile) 2>conftest.er1 | |
2496 | ac_status=$? | |
2497 | grep -v '^ *+' conftest.er1 >conftest.err | |
2498 | rm -f conftest.er1 | |
2499 | cat conftest.err >&5 | |
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2501 | (exit $ac_status); } && | |
2502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2504 | (eval $ac_try) 2>&5 | |
2505 | ac_status=$? | |
2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2507 | (exit $ac_status); }; } && | |
2508 | { ac_try='test -s conftest.$ac_objext' | |
2509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2510 | (eval $ac_try) 2>&5 | |
2511 | ac_status=$? | |
2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2513 | (exit $ac_status); }; }; then | |
2514 | ac_cv_prog_cc_g=yes | |
2515 | else | |
2516 | echo "$as_me: failed program was:" >&5 | |
2517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2518 | ||
2519 | CFLAGS="" | |
2520 | cat >conftest.$ac_ext <<_ACEOF | |
2521 | /* confdefs.h. */ | |
2522 | _ACEOF | |
2523 | cat confdefs.h >>conftest.$ac_ext | |
2524 | cat >>conftest.$ac_ext <<_ACEOF | |
2525 | /* end confdefs.h. */ | |
2526 | ||
2527 | int | |
2528 | main () | |
2529 | { | |
2530 | ||
2531 | ; | |
2532 | return 0; | |
2533 | } | |
2534 | _ACEOF | |
2535 | rm -f conftest.$ac_objext | |
2536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2537 | (eval $ac_compile) 2>conftest.er1 | |
2538 | ac_status=$? | |
2539 | grep -v '^ *+' conftest.er1 >conftest.err | |
2540 | rm -f conftest.er1 | |
2541 | cat conftest.err >&5 | |
2542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2543 | (exit $ac_status); } && | |
2544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2546 | (eval $ac_try) 2>&5 | |
2547 | ac_status=$? | |
2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2549 | (exit $ac_status); }; } && | |
2550 | { ac_try='test -s conftest.$ac_objext' | |
2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2552 | (eval $ac_try) 2>&5 | |
2553 | ac_status=$? | |
2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2555 | (exit $ac_status); }; }; then | |
2556 | : | |
2557 | else | |
2558 | echo "$as_me: failed program was:" >&5 | |
2559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2560 | ||
2561 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2562 | CFLAGS="-g" | |
2563 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
2564 | /* confdefs.h. */ |
2565 | _ACEOF | |
2566 | cat confdefs.h >>conftest.$ac_ext | |
2567 | cat >>conftest.$ac_ext <<_ACEOF | |
2568 | /* end confdefs.h. */ | |
2569 | ||
2570 | int | |
2571 | main () | |
2572 | { | |
2573 | ||
2574 | ; | |
2575 | return 0; | |
2576 | } | |
2577 | _ACEOF | |
2578 | rm -f conftest.$ac_objext | |
2579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2580 | (eval $ac_compile) 2>conftest.er1 | |
2581 | ac_status=$? | |
2582 | grep -v '^ *+' conftest.er1 >conftest.err | |
2583 | rm -f conftest.er1 | |
2584 | cat conftest.err >&5 | |
2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2586 | (exit $ac_status); } && | |
121ce6e5 | 2587 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2589 | (eval $ac_try) 2>&5 | |
2590 | ac_status=$? | |
2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2592 | (exit $ac_status); }; } && | |
2593 | { ac_try='test -s conftest.$ac_objext' | |
2594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2595 | (eval $ac_try) 2>&5 | |
2596 | ac_status=$? | |
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2598 | (exit $ac_status); }; }; then | |
c906108c SS |
2599 | ac_cv_prog_cc_g=yes |
2600 | else | |
bec39cab AC |
2601 | echo "$as_me: failed program was:" >&5 |
2602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2603 | |
4e8d927d DJ |
2604 | |
2605 | fi | |
2606 | ||
2607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 2608 | fi |
4e8d927d DJ |
2609 | |
2610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2611 | fi | |
2612 | ||
bec39cab | 2613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d | 2614 | ac_c_werror_flag=$ac_save_c_werror_flag |
bec39cab | 2615 | fi |
4e8d927d DJ |
2616 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2617 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
c906108c | 2618 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2619 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2620 | elif test $ac_cv_prog_cc_g = yes; then |
2621 | if test "$GCC" = yes; then | |
2622 | CFLAGS="-g -O2" | |
2623 | else | |
2624 | CFLAGS="-g" | |
2625 | fi | |
2626 | else | |
2627 | if test "$GCC" = yes; then | |
2628 | CFLAGS="-O2" | |
2629 | else | |
2630 | CFLAGS= | |
2631 | fi | |
2632 | fi | |
4e8d927d DJ |
2633 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2634 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2635 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
bec39cab AC |
2636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2637 | else | |
4e8d927d | 2638 | ac_cv_prog_cc_c89=no |
bec39cab AC |
2639 | ac_save_CC=$CC |
2640 | cat >conftest.$ac_ext <<_ACEOF | |
2641 | /* confdefs.h. */ | |
2642 | _ACEOF | |
2643 | cat confdefs.h >>conftest.$ac_ext | |
2644 | cat >>conftest.$ac_ext <<_ACEOF | |
2645 | /* end confdefs.h. */ | |
c906108c SS |
2646 | #include <stdarg.h> |
2647 | #include <stdio.h> | |
2648 | #include <sys/types.h> | |
2649 | #include <sys/stat.h> | |
2650 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2651 | struct buf { int x; }; | |
2652 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2653 | static char *e (p, i) | |
2654 | char **p; | |
2655 | int i; | |
2656 | { | |
2657 | return p[i]; | |
2658 | } | |
2659 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2660 | { | |
2661 | char *s; | |
2662 | va_list v; | |
2663 | va_start (v,p); | |
2664 | s = g (p, va_arg (v,int)); | |
2665 | va_end (v); | |
2666 | return s; | |
2667 | } | |
bec39cab AC |
2668 | |
2669 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2670 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2671 | These don't provoke an error unfortunately, instead are silently treated | |
4e8d927d | 2672 | as 'x'. The following induces an error, until -std is added to get |
bec39cab AC |
2673 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2674 | array size at least. It's necessary to write '\x00'==0 to get something | |
4e8d927d | 2675 | that's true only with -std. */ |
bec39cab AC |
2676 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2677 | ||
c906108c SS |
2678 | int test (int i, double x); |
2679 | struct s1 {int (*f) (int a);}; | |
2680 | struct s2 {int (*f) (double a);}; | |
2681 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2682 | int argc; | |
2683 | char **argv; | |
bec39cab AC |
2684 | int |
2685 | main () | |
2686 | { | |
c906108c | 2687 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2688 | ; |
2689 | return 0; | |
2690 | } | |
2691 | _ACEOF | |
4e8d927d DJ |
2692 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2693 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2694 | do |
2695 | CC="$ac_save_CC $ac_arg" | |
2696 | rm -f conftest.$ac_objext | |
2697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2698 | (eval $ac_compile) 2>conftest.er1 | |
2699 | ac_status=$? | |
2700 | grep -v '^ *+' conftest.er1 >conftest.err | |
2701 | rm -f conftest.er1 | |
2702 | cat conftest.err >&5 | |
2703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2704 | (exit $ac_status); } && | |
121ce6e5 | 2705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
2706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2707 | (eval $ac_try) 2>&5 | |
2708 | ac_status=$? | |
2709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2710 | (exit $ac_status); }; } && | |
2711 | { ac_try='test -s conftest.$ac_objext' | |
2712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2713 | (eval $ac_try) 2>&5 | |
2714 | ac_status=$? | |
2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2716 | (exit $ac_status); }; }; then | |
4e8d927d | 2717 | ac_cv_prog_cc_c89=$ac_arg |
c906108c | 2718 | else |
bec39cab AC |
2719 | echo "$as_me: failed program was:" >&5 |
2720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2721 | ||
4e8d927d | 2722 | |
c906108c | 2723 | fi |
4e8d927d | 2724 | |
bec39cab | 2725 | rm -f conftest.err conftest.$ac_objext |
4e8d927d | 2726 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
c906108c | 2727 | done |
4e8d927d | 2728 | rm -f conftest.$ac_ext |
bec39cab | 2729 | CC=$ac_save_CC |
c906108c SS |
2730 | |
2731 | fi | |
4e8d927d DJ |
2732 | # AC_CACHE_VAL |
2733 | case "x$ac_cv_prog_cc_c89" in | |
2734 | x) | |
2735 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
2736 | echo "${ECHO_T}none needed" >&6; } ;; | |
2737 | xno) | |
2738 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2739 | echo "${ECHO_T}unsupported" >&6; } ;; | |
bec39cab | 2740 | *) |
4e8d927d DJ |
2741 | CC="$CC $ac_cv_prog_cc_c89" |
2742 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2743 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
c906108c SS |
2744 | esac |
2745 | ||
c906108c | 2746 | |
bec39cab AC |
2747 | ac_ext=c |
2748 | ac_cpp='$CPP $CPPFLAGS' | |
2749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2752 | |
60ca704f | 2753 | |
bec39cab AC |
2754 | cat >>confdefs.h <<\_ACEOF |
2755 | #define _GNU_SOURCE 1 | |
2756 | _ACEOF | |
c906108c SS |
2757 | |
2758 | ||
8bb2c122 | 2759 | |
bec39cab AC |
2760 | ac_ext=c |
2761 | ac_cpp='$CPP $CPPFLAGS' | |
2762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4e8d927d DJ |
2765 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2766 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
bec39cab AC |
2767 | # On Suns, sometimes $CPP names a directory. |
2768 | if test -n "$CPP" && test -d "$CPP"; then | |
2769 | CPP= | |
8bb2c122 | 2770 | fi |
bec39cab AC |
2771 | if test -z "$CPP"; then |
2772 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2774 | else | |
2775 | # Double quotes because CPP needs to be expanded | |
2776 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2777 | do | |
2778 | ac_preproc_ok=false | |
2779 | for ac_c_preproc_warn_flag in '' yes | |
2780 | do | |
2781 | # Use a header file that comes with gcc, so configuring glibc | |
2782 | # with a fresh cross-compiler works. | |
2783 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2784 | # <limits.h> exists even on freestanding compilers. | |
2785 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2786 | # not just through cpp. "Syntax error" is here to catch this case. | |
2787 | cat >conftest.$ac_ext <<_ACEOF | |
2788 | /* confdefs.h. */ | |
2789 | _ACEOF | |
2790 | cat confdefs.h >>conftest.$ac_ext | |
2791 | cat >>conftest.$ac_ext <<_ACEOF | |
2792 | /* end confdefs.h. */ | |
2793 | #ifdef __STDC__ | |
2794 | # include <limits.h> | |
2795 | #else | |
2796 | # include <assert.h> | |
2797 | #endif | |
2798 | Syntax error | |
2799 | _ACEOF | |
2800 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2801 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2802 | ac_status=$? | |
2803 | grep -v '^ *+' conftest.er1 >conftest.err | |
2804 | rm -f conftest.er1 | |
2805 | cat conftest.err >&5 | |
2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2807 | (exit $ac_status); } >/dev/null; then | |
2808 | if test -s conftest.err; then | |
2809 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2810 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2811 | else | |
2812 | ac_cpp_err= | |
2813 | fi | |
8bb2c122 | 2814 | else |
bec39cab | 2815 | ac_cpp_err=yes |
8bb2c122 | 2816 | fi |
bec39cab AC |
2817 | if test -z "$ac_cpp_err"; then |
2818 | : | |
8bb2c122 | 2819 | else |
bec39cab AC |
2820 | echo "$as_me: failed program was:" >&5 |
2821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2822 | ||
2823 | # Broken: fails on valid input. | |
2824 | continue | |
2825 | fi | |
4e8d927d | 2826 | |
bec39cab AC |
2827 | rm -f conftest.err conftest.$ac_ext |
2828 | ||
4e8d927d | 2829 | # OK, works on sane cases. Now check whether nonexistent headers |
bec39cab AC |
2830 | # can be detected and how. |
2831 | cat >conftest.$ac_ext <<_ACEOF | |
2832 | /* confdefs.h. */ | |
2833 | _ACEOF | |
2834 | cat confdefs.h >>conftest.$ac_ext | |
2835 | cat >>conftest.$ac_ext <<_ACEOF | |
2836 | /* end confdefs.h. */ | |
2837 | #include <ac_nonexistent.h> | |
2838 | _ACEOF | |
2839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2841 | ac_status=$? | |
2842 | grep -v '^ *+' conftest.er1 >conftest.err | |
2843 | rm -f conftest.er1 | |
2844 | cat conftest.err >&5 | |
2845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2846 | (exit $ac_status); } >/dev/null; then | |
2847 | if test -s conftest.err; then | |
2848 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2849 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2850 | else | |
2851 | ac_cpp_err= | |
2852 | fi | |
8bb2c122 | 2853 | else |
bec39cab | 2854 | ac_cpp_err=yes |
8bb2c122 | 2855 | fi |
bec39cab AC |
2856 | if test -z "$ac_cpp_err"; then |
2857 | # Broken: success on invalid input. | |
2858 | continue | |
8bb2c122 | 2859 | else |
bec39cab AC |
2860 | echo "$as_me: failed program was:" >&5 |
2861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2862 | |
bec39cab AC |
2863 | # Passes both tests. |
2864 | ac_preproc_ok=: | |
2865 | break | |
8bb2c122 | 2866 | fi |
4e8d927d | 2867 | |
bec39cab | 2868 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2869 | |
bec39cab AC |
2870 | done |
2871 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2872 | rm -f conftest.err conftest.$ac_ext | |
2873 | if $ac_preproc_ok; then | |
2874 | break | |
2875 | fi | |
8bb2c122 | 2876 | |
bec39cab AC |
2877 | done |
2878 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2879 | |
c906108c | 2880 | fi |
bec39cab AC |
2881 | CPP=$ac_cv_prog_CPP |
2882 | else | |
2883 | ac_cv_prog_CPP=$CPP | |
c906108c | 2884 | fi |
4e8d927d DJ |
2885 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
2886 | echo "${ECHO_T}$CPP" >&6; } | |
bec39cab AC |
2887 | ac_preproc_ok=false |
2888 | for ac_c_preproc_warn_flag in '' yes | |
2889 | do | |
2890 | # Use a header file that comes with gcc, so configuring glibc | |
2891 | # with a fresh cross-compiler works. | |
2892 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2893 | # <limits.h> exists even on freestanding compilers. | |
2894 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2895 | # not just through cpp. "Syntax error" is here to catch this case. | |
2896 | cat >conftest.$ac_ext <<_ACEOF | |
2897 | /* confdefs.h. */ | |
2898 | _ACEOF | |
2899 | cat confdefs.h >>conftest.$ac_ext | |
2900 | cat >>conftest.$ac_ext <<_ACEOF | |
2901 | /* end confdefs.h. */ | |
2902 | #ifdef __STDC__ | |
2903 | # include <limits.h> | |
2904 | #else | |
2905 | # include <assert.h> | |
2906 | #endif | |
2907 | Syntax error | |
2908 | _ACEOF | |
2909 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2910 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2911 | ac_status=$? | |
2912 | grep -v '^ *+' conftest.er1 >conftest.err | |
2913 | rm -f conftest.er1 | |
2914 | cat conftest.err >&5 | |
2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2916 | (exit $ac_status); } >/dev/null; then | |
2917 | if test -s conftest.err; then | |
2918 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2919 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2920 | else | |
2921 | ac_cpp_err= | |
2922 | fi | |
c906108c | 2923 | else |
bec39cab | 2924 | ac_cpp_err=yes |
c906108c | 2925 | fi |
bec39cab AC |
2926 | if test -z "$ac_cpp_err"; then |
2927 | : | |
c906108c | 2928 | else |
bec39cab AC |
2929 | echo "$as_me: failed program was:" >&5 |
2930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2931 | ||
2932 | # Broken: fails on valid input. | |
2933 | continue | |
2934 | fi | |
4e8d927d | 2935 | |
bec39cab AC |
2936 | rm -f conftest.err conftest.$ac_ext |
2937 | ||
4e8d927d | 2938 | # OK, works on sane cases. Now check whether nonexistent headers |
bec39cab AC |
2939 | # can be detected and how. |
2940 | cat >conftest.$ac_ext <<_ACEOF | |
2941 | /* confdefs.h. */ | |
2942 | _ACEOF | |
2943 | cat confdefs.h >>conftest.$ac_ext | |
2944 | cat >>conftest.$ac_ext <<_ACEOF | |
2945 | /* end confdefs.h. */ | |
2946 | #include <ac_nonexistent.h> | |
2947 | _ACEOF | |
2948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2950 | ac_status=$? | |
2951 | grep -v '^ *+' conftest.er1 >conftest.err | |
2952 | rm -f conftest.er1 | |
2953 | cat conftest.err >&5 | |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2955 | (exit $ac_status); } >/dev/null; then | |
2956 | if test -s conftest.err; then | |
2957 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2958 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2959 | else | |
2960 | ac_cpp_err= | |
2961 | fi | |
c906108c | 2962 | else |
bec39cab | 2963 | ac_cpp_err=yes |
c906108c | 2964 | fi |
bec39cab AC |
2965 | if test -z "$ac_cpp_err"; then |
2966 | # Broken: success on invalid input. | |
2967 | continue | |
c906108c | 2968 | else |
bec39cab AC |
2969 | echo "$as_me: failed program was:" >&5 |
2970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2971 | |
bec39cab AC |
2972 | # Passes both tests. |
2973 | ac_preproc_ok=: | |
2974 | break | |
c906108c | 2975 | fi |
4e8d927d | 2976 | |
bec39cab | 2977 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2978 | |
bec39cab AC |
2979 | done |
2980 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2981 | rm -f conftest.err conftest.$ac_ext | |
2982 | if $ac_preproc_ok; then | |
c906108c SS |
2983 | : |
2984 | else | |
bec39cab AC |
2985 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2986 | See \`config.log' for more details." >&5 | |
2987 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2988 | See \`config.log' for more details." >&2;} | |
2989 | { (exit 1); exit 1; }; } | |
c906108c | 2990 | fi |
c906108c | 2991 | |
bec39cab AC |
2992 | ac_ext=c |
2993 | ac_cpp='$CPP $CPPFLAGS' | |
2994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2997 | ||
2998 | ||
4e8d927d DJ |
2999 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3000 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
3001 | if test "${ac_cv_path_GREP+set}" = set; then | |
bec39cab AC |
3002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3003 | else | |
4e8d927d DJ |
3004 | # Extract the first word of "grep ggrep" to use in msg output |
3005 | if test -z "$GREP"; then | |
3006 | set dummy grep ggrep; ac_prog_name=$2 | |
3007 | if test "${ac_cv_path_GREP+set}" = set; then | |
3008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3009 | else | |
3010 | ac_path_GREP_found=false | |
3011 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3013 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3014 | do | |
3015 | IFS=$as_save_IFS | |
3016 | test -z "$as_dir" && as_dir=. | |
3017 | for ac_prog in grep ggrep; do | |
3018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3019 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3020 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | |
3021 | # Check for GNU ac_path_GREP and select it if it is found. | |
3022 | # Check for GNU $ac_path_GREP | |
3023 | case `"$ac_path_GREP" --version 2>&1` in | |
3024 | *GNU*) | |
3025 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3026 | *) | |
3027 | ac_count=0 | |
3028 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3029 | while : | |
3030 | do | |
3031 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3032 | mv "conftest.tmp" "conftest.in" | |
3033 | cp "conftest.in" "conftest.nl" | |
3034 | echo 'GREP' >> "conftest.nl" | |
3035 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3036 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3037 | ac_count=`expr $ac_count + 1` | |
3038 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3039 | # Best one so far, save it but keep looking for a better one | |
3040 | ac_cv_path_GREP="$ac_path_GREP" | |
3041 | ac_path_GREP_max=$ac_count | |
3042 | fi | |
3043 | # 10*(2^10) chars as input seems more than enough | |
3044 | test $ac_count -gt 10 && break | |
3045 | done | |
3046 | rm -f conftest.*;; | |
3047 | esac | |
3048 | ||
3049 | ||
3050 | $ac_path_GREP_found && break 3 | |
3051 | done | |
3052 | done | |
3053 | ||
3054 | done | |
3055 | IFS=$as_save_IFS | |
3056 | ||
3057 | ||
3058 | fi | |
3059 | ||
3060 | GREP="$ac_cv_path_GREP" | |
3061 | if test -z "$GREP"; then | |
3062 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3063 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3064 | { (exit 1); exit 1; }; } | |
3065 | fi | |
3066 | ||
3067 | else | |
3068 | ac_cv_path_GREP=$GREP | |
3069 | fi | |
3070 | ||
3071 | ||
3072 | fi | |
3073 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
3074 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
3075 | GREP="$ac_cv_path_GREP" | |
3076 | ||
3077 | ||
3078 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
3079 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
3080 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3082 | else | |
3083 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3084 | then ac_cv_path_EGREP="$GREP -E" | |
3085 | else | |
3086 | # Extract the first word of "egrep" to use in msg output | |
3087 | if test -z "$EGREP"; then | |
3088 | set dummy egrep; ac_prog_name=$2 | |
3089 | if test "${ac_cv_path_EGREP+set}" = set; then | |
3090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3091 | else | |
3092 | ac_path_EGREP_found=false | |
3093 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3095 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3096 | do | |
3097 | IFS=$as_save_IFS | |
3098 | test -z "$as_dir" && as_dir=. | |
3099 | for ac_prog in egrep; do | |
3100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3101 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3102 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | |
3103 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3104 | # Check for GNU $ac_path_EGREP | |
3105 | case `"$ac_path_EGREP" --version 2>&1` in | |
3106 | *GNU*) | |
3107 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3108 | *) | |
3109 | ac_count=0 | |
3110 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3111 | while : | |
3112 | do | |
3113 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3114 | mv "conftest.tmp" "conftest.in" | |
3115 | cp "conftest.in" "conftest.nl" | |
3116 | echo 'EGREP' >> "conftest.nl" | |
3117 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3118 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3119 | ac_count=`expr $ac_count + 1` | |
3120 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3121 | # Best one so far, save it but keep looking for a better one | |
3122 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3123 | ac_path_EGREP_max=$ac_count | |
bec39cab | 3124 | fi |
4e8d927d DJ |
3125 | # 10*(2^10) chars as input seems more than enough |
3126 | test $ac_count -gt 10 && break | |
3127 | done | |
3128 | rm -f conftest.*;; | |
3129 | esac | |
3130 | ||
3131 | ||
3132 | $ac_path_EGREP_found && break 3 | |
3133 | done | |
3134 | done | |
3135 | ||
3136 | done | |
3137 | IFS=$as_save_IFS | |
3138 | ||
3139 | ||
3140 | fi | |
3141 | ||
3142 | EGREP="$ac_cv_path_EGREP" | |
3143 | if test -z "$EGREP"; then | |
3144 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
3145 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
3146 | { (exit 1); exit 1; }; } | |
3147 | fi | |
3148 | ||
3149 | else | |
3150 | ac_cv_path_EGREP=$EGREP | |
3151 | fi | |
3152 | ||
3153 | ||
3154 | fi | |
c906108c | 3155 | fi |
4e8d927d DJ |
3156 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3157 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
3158 | EGREP="$ac_cv_path_EGREP" | |
c906108c | 3159 | |
bec39cab AC |
3160 | |
3161 | ||
4e8d927d DJ |
3162 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
3163 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } | |
bec39cab AC |
3164 | cat >conftest.$ac_ext <<_ACEOF |
3165 | /* confdefs.h. */ | |
3166 | _ACEOF | |
3167 | cat confdefs.h >>conftest.$ac_ext | |
3168 | cat >>conftest.$ac_ext <<_ACEOF | |
3169 | /* end confdefs.h. */ | |
3170 | #ifdef _AIX | |
3171 | yes | |
3172 | #endif | |
3173 | ||
3174 | _ACEOF | |
c906108c | 3175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 3176 | $EGREP "yes" >/dev/null 2>&1; then |
4e8d927d DJ |
3177 | { echo "$as_me:$LINENO: result: yes" >&5 |
3178 | echo "${ECHO_T}yes" >&6; } | |
bec39cab AC |
3179 | cat >>confdefs.h <<\_ACEOF |
3180 | #define _ALL_SOURCE 1 | |
3181 | _ACEOF | |
3182 | ||
c906108c | 3183 | else |
4e8d927d DJ |
3184 | { echo "$as_me:$LINENO: result: no" >&5 |
3185 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
3186 | fi |
3187 | rm -f conftest* | |
3188 | ||
c906108c | 3189 | |
4e8d927d DJ |
3190 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3191 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } | |
bec39cab AC |
3192 | if test "${ac_cv_search_strerror+set}" = set; then |
3193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3194 | else |
bec39cab | 3195 | ac_func_search_save_LIBS=$LIBS |
bec39cab AC |
3196 | cat >conftest.$ac_ext <<_ACEOF |
3197 | /* confdefs.h. */ | |
3198 | _ACEOF | |
3199 | cat confdefs.h >>conftest.$ac_ext | |
3200 | cat >>conftest.$ac_ext <<_ACEOF | |
3201 | /* end confdefs.h. */ | |
c906108c | 3202 | |
4e8d927d DJ |
3203 | /* Override any GCC internal prototype to avoid an error. |
3204 | Use char because int might match the return type of a GCC | |
bec39cab | 3205 | builtin and then its argument prototype would still apply. */ |
bec39cab AC |
3206 | #ifdef __cplusplus |
3207 | extern "C" | |
3208 | #endif | |
bec39cab AC |
3209 | char strerror (); |
3210 | int | |
3211 | main () | |
3212 | { | |
4e8d927d | 3213 | return strerror (); |
bec39cab AC |
3214 | ; |
3215 | return 0; | |
3216 | } | |
3217 | _ACEOF | |
4e8d927d DJ |
3218 | for ac_lib in '' cposix; do |
3219 | if test -z "$ac_lib"; then | |
3220 | ac_res="none required" | |
3221 | else | |
3222 | ac_res=-l$ac_lib | |
3223 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3224 | fi | |
3225 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
3226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3227 | (eval $ac_link) 2>conftest.er1 | |
3228 | ac_status=$? | |
3229 | grep -v '^ *+' conftest.er1 >conftest.err | |
3230 | rm -f conftest.er1 | |
3231 | cat conftest.err >&5 | |
3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3233 | (exit $ac_status); } && | |
121ce6e5 | 3234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3236 | (eval $ac_try) 2>&5 | |
3237 | ac_status=$? | |
3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3239 | (exit $ac_status); }; } && | |
3240 | { ac_try='test -s conftest$ac_exeext' | |
3241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3242 | (eval $ac_try) 2>&5 | |
3243 | ac_status=$? | |
3244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3245 | (exit $ac_status); }; }; then | |
4e8d927d | 3246 | ac_cv_search_strerror=$ac_res |
c906108c | 3247 | else |
bec39cab AC |
3248 | echo "$as_me: failed program was:" >&5 |
3249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3250 | |
4e8d927d | 3251 | |
c906108c | 3252 | fi |
4e8d927d | 3253 | |
bec39cab | 3254 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
3255 | conftest$ac_exeext |
3256 | if test "${ac_cv_search_strerror+set}" = set; then | |
3257 | break | |
3258 | fi | |
3259 | done | |
3260 | if test "${ac_cv_search_strerror+set}" = set; then | |
3261 | : | |
3262 | else | |
3263 | ac_cv_search_strerror=no | |
c906108c | 3264 | fi |
4e8d927d | 3265 | rm conftest.$ac_ext |
bec39cab | 3266 | LIBS=$ac_func_search_save_LIBS |
c906108c | 3267 | fi |
4e8d927d DJ |
3268 | { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
3269 | echo "${ECHO_T}$ac_cv_search_strerror" >&6; } | |
3270 | ac_res=$ac_cv_search_strerror | |
3271 | if test "$ac_res" != no; then | |
3272 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
bec39cab | 3273 | |
c906108c SS |
3274 | fi |
3275 | ||
c906108c | 3276 | |
c906108c | 3277 | |
bec39cab | 3278 | |
4e8d927d DJ |
3279 | { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
3280 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; } | |
bec39cab AC |
3281 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
3282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3283 | else |
bec39cab AC |
3284 | am_cv_prog_cc_stdc=no |
3285 | ac_save_CC="$CC" | |
3286 | # Don't try gcc -ansi; that turns off useful extensions and | |
3287 | # breaks some systems' header files. | |
3288 | # AIX -qlanglvl=ansi | |
3289 | # Ultrix and OSF/1 -std1 | |
3290 | # HP-UX 10.20 and later -Ae | |
3291 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3292 | # SVR4 -Xc -D__EXTENSIONS__ | |
3293 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3294 | do | |
3295 | CC="$ac_save_CC $ac_arg" | |
3296 | cat >conftest.$ac_ext <<_ACEOF | |
3297 | /* confdefs.h. */ | |
3298 | _ACEOF | |
3299 | cat confdefs.h >>conftest.$ac_ext | |
3300 | cat >>conftest.$ac_ext <<_ACEOF | |
3301 | /* end confdefs.h. */ | |
3302 | #include <stdarg.h> | |
3303 | #include <stdio.h> | |
3304 | #include <sys/types.h> | |
3305 | #include <sys/stat.h> | |
3306 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3307 | struct buf { int x; }; | |
3308 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3309 | static char *e (p, i) | |
3310 | char **p; | |
3311 | int i; | |
3312 | { | |
3313 | return p[i]; | |
3314 | } | |
3315 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3316 | { | |
3317 | char *s; | |
3318 | va_list v; | |
3319 | va_start (v,p); | |
3320 | s = g (p, va_arg (v,int)); | |
3321 | va_end (v); | |
3322 | return s; | |
3323 | } | |
3324 | int test (int i, double x); | |
3325 | struct s1 {int (*f) (int a);}; | |
3326 | struct s2 {int (*f) (double a);}; | |
3327 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3328 | int argc; | |
3329 | char **argv; | |
c906108c | 3330 | |
bec39cab AC |
3331 | int |
3332 | main () | |
3333 | { | |
c906108c | 3334 | |
bec39cab | 3335 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 3336 | |
bec39cab AC |
3337 | ; |
3338 | return 0; | |
3339 | } | |
3340 | _ACEOF | |
3341 | rm -f conftest.$ac_objext | |
3342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3343 | (eval $ac_compile) 2>conftest.er1 | |
3344 | ac_status=$? | |
3345 | grep -v '^ *+' conftest.er1 >conftest.err | |
3346 | rm -f conftest.er1 | |
3347 | cat conftest.err >&5 | |
3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3349 | (exit $ac_status); } && | |
121ce6e5 | 3350 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3352 | (eval $ac_try) 2>&5 | |
3353 | ac_status=$? | |
3354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3355 | (exit $ac_status); }; } && | |
3356 | { ac_try='test -s conftest.$ac_objext' | |
3357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3358 | (eval $ac_try) 2>&5 | |
3359 | ac_status=$? | |
3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3361 | (exit $ac_status); }; }; then | |
3362 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 3363 | else |
bec39cab AC |
3364 | echo "$as_me: failed program was:" >&5 |
3365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3366 | |
4e8d927d | 3367 | |
c906108c | 3368 | fi |
4e8d927d | 3369 | |
bec39cab AC |
3370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3371 | done | |
3372 | CC="$ac_save_CC" | |
c906108c SS |
3373 | |
3374 | fi | |
3375 | ||
bec39cab | 3376 | if test -z "$am_cv_prog_cc_stdc"; then |
4e8d927d DJ |
3377 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3378 | echo "${ECHO_T}none needed" >&6; } | |
c906108c | 3379 | else |
4e8d927d DJ |
3380 | { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
3381 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; } | |
c906108c | 3382 | fi |
bec39cab AC |
3383 | case "x$am_cv_prog_cc_stdc" in |
3384 | x|xno) ;; | |
3385 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
3386 | esac | |
c906108c | 3387 | |
c906108c | 3388 | |
bec39cab AC |
3389 | ac_aux_dir= |
3390 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
3391 | if test -f $ac_dir/install-sh; then | |
3392 | ac_aux_dir=$ac_dir | |
3393 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3394 | break | |
3395 | elif test -f $ac_dir/install.sh; then | |
3396 | ac_aux_dir=$ac_dir | |
3397 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3398 | break | |
3399 | elif test -f $ac_dir/shtool; then | |
3400 | ac_aux_dir=$ac_dir | |
3401 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3402 | break | |
3403 | fi | |
3404 | done | |
3405 | if test -z "$ac_aux_dir"; then | |
3406 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
3407 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
3408 | { (exit 1); exit 1; }; } | |
c906108c | 3409 | fi |
bec39cab AC |
3410 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
3411 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
3412 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 3413 | |
bec39cab AC |
3414 | # Make sure we can run config.sub. |
3415 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3416 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3417 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3418 | { (exit 1); exit 1; }; } | |
3419 | ||
4e8d927d DJ |
3420 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3421 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
bec39cab AC |
3422 | if test "${ac_cv_build+set}" = set; then |
3423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3424 | else | |
4e8d927d DJ |
3425 | ac_build_alias=$build_alias |
3426 | test "x$ac_build_alias" = x && | |
3427 | ac_build_alias=`$ac_config_guess` | |
3428 | test "x$ac_build_alias" = x && | |
bec39cab AC |
3429 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3430 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3431 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
3432 | ac_cv_build=`$ac_config_sub $ac_build_alias` || |
3433 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5 | |
3434 | echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;} | |
bec39cab AC |
3435 | { (exit 1); exit 1; }; } |
3436 | ||
3437 | fi | |
4e8d927d DJ |
3438 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3439 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
3440 | case $ac_cv_build in | |
3441 | *-*-*) ;; | |
3442 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
3443 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
3444 | { (exit 1); exit 1; }; };; | |
3445 | esac | |
bec39cab | 3446 | build=$ac_cv_build |
4e8d927d DJ |
3447 | ac_save_IFS=$IFS; IFS='-' |
3448 | set x $ac_cv_build | |
3449 | shift | |
3450 | build_cpu=$1 | |
3451 | build_vendor=$2 | |
3452 | shift; shift | |
3453 | # Remember, the first character of IFS is used to create $*, | |
3454 | # except with old shells: | |
3455 | build_os=$* | |
3456 | IFS=$ac_save_IFS | |
3457 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
bec39cab AC |
3458 | |
3459 | ||
4e8d927d DJ |
3460 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3461 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
bec39cab AC |
3462 | if test "${ac_cv_host+set}" = set; then |
3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3464 | else | |
4e8d927d DJ |
3465 | if test "x$host_alias" = x; then |
3466 | ac_cv_host=$ac_cv_build | |
3467 | else | |
3468 | ac_cv_host=`$ac_config_sub $host_alias` || | |
3469 | { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5 | |
3470 | echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;} | |
bec39cab | 3471 | { (exit 1); exit 1; }; } |
4e8d927d | 3472 | fi |
bec39cab AC |
3473 | |
3474 | fi | |
4e8d927d DJ |
3475 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3476 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
3477 | case $ac_cv_host in | |
3478 | *-*-*) ;; | |
3479 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
3480 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
3481 | { (exit 1); exit 1; }; };; | |
3482 | esac | |
bec39cab | 3483 | host=$ac_cv_host |
4e8d927d DJ |
3484 | ac_save_IFS=$IFS; IFS='-' |
3485 | set x $ac_cv_host | |
3486 | shift | |
3487 | host_cpu=$1 | |
3488 | host_vendor=$2 | |
3489 | shift; shift | |
3490 | # Remember, the first character of IFS is used to create $*, | |
3491 | # except with old shells: | |
3492 | host_os=$* | |
3493 | IFS=$ac_save_IFS | |
3494 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
bec39cab AC |
3495 | |
3496 | ||
4e8d927d DJ |
3497 | { echo "$as_me:$LINENO: checking target system type" >&5 |
3498 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
bec39cab AC |
3499 | if test "${ac_cv_target+set}" = set; then |
3500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3501 | else | |
4e8d927d DJ |
3502 | if test "x$target_alias" = x; then |
3503 | ac_cv_target=$ac_cv_host | |
3504 | else | |
3505 | ac_cv_target=`$ac_config_sub $target_alias` || | |
3506 | { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5 | |
3507 | echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;} | |
bec39cab | 3508 | { (exit 1); exit 1; }; } |
4e8d927d | 3509 | fi |
bec39cab AC |
3510 | |
3511 | fi | |
4e8d927d DJ |
3512 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
3513 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
3514 | case $ac_cv_target in | |
3515 | *-*-*) ;; | |
3516 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
3517 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
3518 | { (exit 1); exit 1; }; };; | |
3519 | esac | |
bec39cab | 3520 | target=$ac_cv_target |
4e8d927d DJ |
3521 | ac_save_IFS=$IFS; IFS='-' |
3522 | set x $ac_cv_target | |
3523 | shift | |
3524 | target_cpu=$1 | |
3525 | target_vendor=$2 | |
3526 | shift; shift | |
3527 | # Remember, the first character of IFS is used to create $*, | |
3528 | # except with old shells: | |
3529 | target_os=$* | |
3530 | IFS=$ac_save_IFS | |
3531 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c906108c | 3532 | |
c906108c | 3533 | |
bec39cab AC |
3534 | # The aliases save the names the user supplied, while $host etc. |
3535 | # will get canonicalized. | |
3536 | test -n "$target_alias" && | |
3537 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3538 | NONENONEs,x,x, && | |
3539 | program_prefix=${target_alias}- | |
c906108c | 3540 | |
c906108c | 3541 | |
bec39cab AC |
3542 | CONFIG_OBS= |
3543 | CONFIG_DEPS= | |
3544 | CONFIG_SRCS= | |
3545 | ENABLE_CFLAGS= | |
c906108c | 3546 | |
bec39cab AC |
3547 | CONFIG_ALL= |
3548 | CONFIG_CLEAN= | |
3549 | CONFIG_INSTALL= | |
3550 | CONFIG_UNINSTALL= | |
3551 | ||
3552 | ||
4e8d927d DJ |
3553 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3554 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
bec39cab | 3555 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
4e8d927d | 3556 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
bec39cab AC |
3557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3558 | else | |
3559 | cat >conftest.make <<\_ACEOF | |
4e8d927d | 3560 | SHELL = /bin/sh |
bec39cab | 3561 | all: |
4e8d927d | 3562 | @echo 'ac_maketemp=X"$(MAKE)"' |
bec39cab AC |
3563 | _ACEOF |
3564 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3565 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
4e8d927d | 3566 | if test "$ac_maketemp" != X ; then |
bec39cab | 3567 | eval ac_cv_prog_make_${ac_make}_set=yes |
c906108c | 3568 | else |
bec39cab | 3569 | eval ac_cv_prog_make_${ac_make}_set=no |
c906108c | 3570 | fi |
bec39cab AC |
3571 | rm -f conftest.make |
3572 | fi | |
3573 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
4e8d927d DJ |
3574 | { echo "$as_me:$LINENO: result: yes" >&5 |
3575 | echo "${ECHO_T}yes" >&6; } | |
bec39cab AC |
3576 | SET_MAKE= |
3577 | else | |
4e8d927d DJ |
3578 | { echo "$as_me:$LINENO: result: no" >&5 |
3579 | echo "${ECHO_T}no" >&6; } | |
bec39cab | 3580 | SET_MAKE="MAKE=${MAKE-make}" |
c906108c SS |
3581 | fi |
3582 | ||
bec39cab AC |
3583 | if test -n "$ac_tool_prefix"; then |
3584 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3585 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4e8d927d DJ |
3586 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3587 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
3588 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3590 | else | |
3591 | if test -n "$RANLIB"; then | |
3592 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3593 | else | |
3594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3595 | for as_dir in $PATH | |
3596 | do | |
3597 | IFS=$as_save_IFS | |
3598 | test -z "$as_dir" && as_dir=. | |
3599 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 3600 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
3601 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3602 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3603 | break 2 | |
3604 | fi | |
3605 | done | |
3606 | done | |
4e8d927d | 3607 | IFS=$as_save_IFS |
c906108c | 3608 | |
bec39cab AC |
3609 | fi |
3610 | fi | |
3611 | RANLIB=$ac_cv_prog_RANLIB | |
3612 | if test -n "$RANLIB"; then | |
4e8d927d DJ |
3613 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3614 | echo "${ECHO_T}$RANLIB" >&6; } | |
c906108c | 3615 | else |
4e8d927d DJ |
3616 | { echo "$as_me:$LINENO: result: no" >&5 |
3617 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
3618 | fi |
3619 | ||
4e8d927d | 3620 | |
bec39cab AC |
3621 | fi |
3622 | if test -z "$ac_cv_prog_RANLIB"; then | |
3623 | ac_ct_RANLIB=$RANLIB | |
3624 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3625 | set dummy ranlib; ac_word=$2 | |
4e8d927d DJ |
3626 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
3628 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3630 | else | |
3631 | if test -n "$ac_ct_RANLIB"; then | |
3632 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3633 | else | |
3634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3635 | for as_dir in $PATH | |
3636 | do | |
3637 | IFS=$as_save_IFS | |
3638 | test -z "$as_dir" && as_dir=. | |
3639 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 3640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
3641 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3643 | break 2 | |
3644 | fi | |
3645 | done | |
c906108c | 3646 | done |
4e8d927d | 3647 | IFS=$as_save_IFS |
bec39cab | 3648 | |
bec39cab AC |
3649 | fi |
3650 | fi | |
3651 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3652 | if test -n "$ac_ct_RANLIB"; then | |
4e8d927d DJ |
3653 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3654 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
bec39cab | 3655 | else |
4e8d927d DJ |
3656 | { echo "$as_me:$LINENO: result: no" >&5 |
3657 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
3658 | fi |
3659 | ||
4e8d927d DJ |
3660 | if test "x$ac_ct_RANLIB" = x; then |
3661 | RANLIB=":" | |
3662 | else | |
3663 | case $cross_compiling:$ac_tool_warned in | |
3664 | yes:) | |
3665 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3666 | whose name does not start with the host triplet. If you think this | |
3667 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3668 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3669 | whose name does not start with the host triplet. If you think this | |
3670 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3671 | ac_tool_warned=yes ;; | |
3672 | esac | |
3673 | RANLIB=$ac_ct_RANLIB | |
3674 | fi | |
c906108c | 3675 | else |
bec39cab AC |
3676 | RANLIB="$ac_cv_prog_RANLIB" |
3677 | fi | |
3678 | ||
4e8d927d DJ |
3679 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3680 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
bec39cab AC |
3681 | if test "${ac_cv_header_stdc+set}" = set; then |
3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3683 | else |
bec39cab AC |
3684 | cat >conftest.$ac_ext <<_ACEOF |
3685 | /* confdefs.h. */ | |
3686 | _ACEOF | |
3687 | cat confdefs.h >>conftest.$ac_ext | |
3688 | cat >>conftest.$ac_ext <<_ACEOF | |
3689 | /* end confdefs.h. */ | |
3690 | #include <stdlib.h> | |
3691 | #include <stdarg.h> | |
3692 | #include <string.h> | |
3693 | #include <float.h> | |
3694 | ||
3695 | int | |
c906108c SS |
3696 | main () |
3697 | { | |
bec39cab AC |
3698 | |
3699 | ; | |
3700 | return 0; | |
c906108c | 3701 | } |
bec39cab AC |
3702 | _ACEOF |
3703 | rm -f conftest.$ac_objext | |
3704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3705 | (eval $ac_compile) 2>conftest.er1 | |
3706 | ac_status=$? | |
3707 | grep -v '^ *+' conftest.er1 >conftest.err | |
3708 | rm -f conftest.er1 | |
3709 | cat conftest.err >&5 | |
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3711 | (exit $ac_status); } && | |
121ce6e5 | 3712 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3714 | (eval $ac_try) 2>&5 | |
3715 | ac_status=$? | |
3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3717 | (exit $ac_status); }; } && | |
3718 | { ac_try='test -s conftest.$ac_objext' | |
3719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3720 | (eval $ac_try) 2>&5 | |
3721 | ac_status=$? | |
3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3723 | (exit $ac_status); }; }; then | |
3724 | ac_cv_header_stdc=yes | |
c906108c | 3725 | else |
bec39cab AC |
3726 | echo "$as_me: failed program was:" >&5 |
3727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3728 | |
4e8d927d | 3729 | ac_cv_header_stdc=no |
c906108c | 3730 | fi |
4e8d927d | 3731 | |
bec39cab | 3732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3733 | |
bec39cab AC |
3734 | if test $ac_cv_header_stdc = yes; then |
3735 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3736 | cat >conftest.$ac_ext <<_ACEOF | |
3737 | /* confdefs.h. */ | |
3738 | _ACEOF | |
3739 | cat confdefs.h >>conftest.$ac_ext | |
3740 | cat >>conftest.$ac_ext <<_ACEOF | |
3741 | /* end confdefs.h. */ | |
3742 | #include <string.h> | |
c906108c | 3743 | |
bec39cab AC |
3744 | _ACEOF |
3745 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3746 | $EGREP "memchr" >/dev/null 2>&1; then | |
3747 | : | |
c906108c | 3748 | else |
bec39cab | 3749 | ac_cv_header_stdc=no |
c906108c | 3750 | fi |
bec39cab | 3751 | rm -f conftest* |
c906108c | 3752 | |
bec39cab | 3753 | fi |
c906108c | 3754 | |
bec39cab AC |
3755 | if test $ac_cv_header_stdc = yes; then |
3756 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3757 | cat >conftest.$ac_ext <<_ACEOF | |
3758 | /* confdefs.h. */ | |
3759 | _ACEOF | |
3760 | cat confdefs.h >>conftest.$ac_ext | |
3761 | cat >>conftest.$ac_ext <<_ACEOF | |
3762 | /* end confdefs.h. */ | |
3763 | #include <stdlib.h> | |
c906108c | 3764 | |
bec39cab AC |
3765 | _ACEOF |
3766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3767 | $EGREP "free" >/dev/null 2>&1; then | |
3768 | : | |
c906108c | 3769 | else |
bec39cab | 3770 | ac_cv_header_stdc=no |
c906108c SS |
3771 | fi |
3772 | rm -f conftest* | |
c906108c | 3773 | |
c906108c | 3774 | fi |
c906108c | 3775 | |
bec39cab AC |
3776 | if test $ac_cv_header_stdc = yes; then |
3777 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
c906108c | 3778 | if test "$cross_compiling" = yes; then |
bec39cab | 3779 | : |
c906108c | 3780 | else |
bec39cab AC |
3781 | cat >conftest.$ac_ext <<_ACEOF |
3782 | /* confdefs.h. */ | |
3783 | _ACEOF | |
3784 | cat confdefs.h >>conftest.$ac_ext | |
3785 | cat >>conftest.$ac_ext <<_ACEOF | |
3786 | /* end confdefs.h. */ | |
3787 | #include <ctype.h> | |
4e8d927d | 3788 | #include <stdlib.h> |
bec39cab AC |
3789 | #if ((' ' & 0x0FF) == 0x020) |
3790 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3791 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3792 | #else | |
3793 | # define ISLOWER(c) \ | |
3794 | (('a' <= (c) && (c) <= 'i') \ | |
3795 | || ('j' <= (c) && (c) <= 'r') \ | |
3796 | || ('s' <= (c) && (c) <= 'z')) | |
3797 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3798 | #endif | |
c906108c | 3799 | |
bec39cab AC |
3800 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3801 | int | |
3802 | main () | |
3803 | { | |
3804 | int i; | |
3805 | for (i = 0; i < 256; i++) | |
3806 | if (XOR (islower (i), ISLOWER (i)) | |
3807 | || toupper (i) != TOUPPER (i)) | |
4e8d927d DJ |
3808 | return 2; |
3809 | return 0; | |
bec39cab AC |
3810 | } |
3811 | _ACEOF | |
3812 | rm -f conftest$ac_exeext | |
3813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3814 | (eval $ac_link) 2>&5 | |
3815 | ac_status=$? | |
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3819 | (eval $ac_try) 2>&5 | |
3820 | ac_status=$? | |
3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3822 | (exit $ac_status); }; }; then | |
3823 | : | |
3824 | else | |
3825 | echo "$as_me: program exited with status $ac_status" >&5 | |
3826 | echo "$as_me: failed program was:" >&5 | |
3827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3828 | |
bec39cab AC |
3829 | ( exit $ac_status ) |
3830 | ac_cv_header_stdc=no | |
3831 | fi | |
4e8d927d | 3832 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 3833 | fi |
4e8d927d DJ |
3834 | |
3835 | ||
bec39cab AC |
3836 | fi |
3837 | fi | |
4e8d927d DJ |
3838 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3839 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
bec39cab | 3840 | if test $ac_cv_header_stdc = yes; then |
c906108c | 3841 | |
bec39cab AC |
3842 | cat >>confdefs.h <<\_ACEOF |
3843 | #define STDC_HEADERS 1 | |
3844 | _ACEOF | |
c906108c | 3845 | |
bec39cab | 3846 | fi |
c906108c | 3847 | |
4e8d927d DJ |
3848 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3849 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
bec39cab AC |
3850 | if test "${ac_cv_c_const+set}" = set; then |
3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3852 | else | |
3853 | cat >conftest.$ac_ext <<_ACEOF | |
3854 | /* confdefs.h. */ | |
3855 | _ACEOF | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
c906108c | 3859 | |
bec39cab AC |
3860 | int |
3861 | main () | |
3862 | { | |
3863 | /* FIXME: Include the comments suggested by Paul. */ | |
3864 | #ifndef __cplusplus | |
3865 | /* Ultrix mips cc rejects this. */ | |
3866 | typedef int charset[2]; | |
3867 | const charset x; | |
3868 | /* SunOS 4.1.1 cc rejects this. */ | |
3869 | char const *const *ccp; | |
3870 | char **p; | |
3871 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3872 | struct point {int x, y;}; | |
3873 | static struct point const zero = {0,0}; | |
3874 | /* AIX XL C 1.02.0.0 rejects this. | |
3875 | It does not let you subtract one const X* pointer from another in | |
3876 | an arm of an if-expression whose if-part is not a constant | |
3877 | expression */ | |
3878 | const char *g = "string"; | |
3879 | ccp = &g + (g ? g-g : 0); | |
3880 | /* HPUX 7.0 cc rejects these. */ | |
3881 | ++ccp; | |
3882 | p = (char**) ccp; | |
3883 | ccp = (char const *const *) p; | |
3884 | { /* SCO 3.2v4 cc rejects this. */ | |
3885 | char *t; | |
3886 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3887 | ||
3888 | *t++ = 0; | |
4e8d927d | 3889 | if (s) return 0; |
bec39cab AC |
3890 | } |
3891 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3892 | int x[] = {25, 17}; | |
3893 | const int *foo = &x[0]; | |
3894 | ++foo; | |
3895 | } | |
3896 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3897 | typedef const int *iptr; | |
3898 | iptr p = 0; | |
3899 | ++p; | |
3900 | } | |
3901 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3902 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3903 | struct s { int j; const int *ap[3]; }; | |
3904 | struct s *b; b->j = 5; | |
3905 | } | |
3906 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3907 | const int foo = 10; | |
4e8d927d | 3908 | if (!foo) return 0; |
bec39cab | 3909 | } |
4e8d927d | 3910 | return !x[0] && !zero.x; |
bec39cab | 3911 | #endif |
c906108c | 3912 | |
bec39cab AC |
3913 | ; |
3914 | return 0; | |
3915 | } | |
3916 | _ACEOF | |
3917 | rm -f conftest.$ac_objext | |
3918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3919 | (eval $ac_compile) 2>conftest.er1 | |
3920 | ac_status=$? | |
3921 | grep -v '^ *+' conftest.er1 >conftest.err | |
3922 | rm -f conftest.er1 | |
3923 | cat conftest.err >&5 | |
3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3925 | (exit $ac_status); } && | |
121ce6e5 | 3926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3928 | (eval $ac_try) 2>&5 | |
3929 | ac_status=$? | |
3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3931 | (exit $ac_status); }; } && | |
3932 | { ac_try='test -s conftest.$ac_objext' | |
3933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3934 | (eval $ac_try) 2>&5 | |
3935 | ac_status=$? | |
3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3937 | (exit $ac_status); }; }; then | |
3938 | ac_cv_c_const=yes | |
c906108c | 3939 | else |
bec39cab AC |
3940 | echo "$as_me: failed program was:" >&5 |
3941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3942 | |
4e8d927d | 3943 | ac_cv_c_const=no |
bec39cab | 3944 | fi |
4e8d927d | 3945 | |
bec39cab | 3946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3947 | fi |
4e8d927d DJ |
3948 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3949 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
bec39cab | 3950 | if test $ac_cv_c_const = no; then |
c906108c | 3951 | |
bec39cab AC |
3952 | cat >>confdefs.h <<\_ACEOF |
3953 | #define const | |
3954 | _ACEOF | |
c906108c SS |
3955 | |
3956 | fi | |
3957 | ||
4e8d927d DJ |
3958 | { echo "$as_me:$LINENO: checking for inline" >&5 |
3959 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
bec39cab AC |
3960 | if test "${ac_cv_c_inline+set}" = set; then |
3961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3962 | else |
bec39cab AC |
3963 | ac_cv_c_inline=no |
3964 | for ac_kw in inline __inline__ __inline; do | |
3965 | cat >conftest.$ac_ext <<_ACEOF | |
3966 | /* confdefs.h. */ | |
3967 | _ACEOF | |
3968 | cat confdefs.h >>conftest.$ac_ext | |
3969 | cat >>conftest.$ac_ext <<_ACEOF | |
3970 | /* end confdefs.h. */ | |
3971 | #ifndef __cplusplus | |
3972 | typedef int foo_t; | |
3973 | static $ac_kw foo_t static_foo () {return 0; } | |
3974 | $ac_kw foo_t foo () {return 0; } | |
c906108c SS |
3975 | #endif |
3976 | ||
bec39cab AC |
3977 | _ACEOF |
3978 | rm -f conftest.$ac_objext | |
3979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3980 | (eval $ac_compile) 2>conftest.er1 | |
3981 | ac_status=$? | |
3982 | grep -v '^ *+' conftest.er1 >conftest.err | |
3983 | rm -f conftest.er1 | |
3984 | cat conftest.err >&5 | |
3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3986 | (exit $ac_status); } && | |
121ce6e5 | 3987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3989 | (eval $ac_try) 2>&5 | |
3990 | ac_status=$? | |
3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3992 | (exit $ac_status); }; } && | |
3993 | { ac_try='test -s conftest.$ac_objext' | |
3994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3995 | (eval $ac_try) 2>&5 | |
3996 | ac_status=$? | |
3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3998 | (exit $ac_status); }; }; then | |
4e8d927d | 3999 | ac_cv_c_inline=$ac_kw |
c906108c | 4000 | else |
bec39cab AC |
4001 | echo "$as_me: failed program was:" >&5 |
4002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 4003 | |
4e8d927d | 4004 | |
c906108c | 4005 | fi |
4e8d927d | 4006 | |
bec39cab | 4007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d | 4008 | test "$ac_cv_c_inline" != no && break |
c906108c SS |
4009 | done |
4010 | ||
bec39cab | 4011 | fi |
4e8d927d DJ |
4012 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
4013 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
c906108c | 4014 | |
c906108c | 4015 | |
bec39cab AC |
4016 | case $ac_cv_c_inline in |
4017 | inline | yes) ;; | |
4018 | *) | |
4019 | case $ac_cv_c_inline in | |
4020 | no) ac_val=;; | |
4021 | *) ac_val=$ac_cv_c_inline;; | |
4022 | esac | |
4023 | cat >>confdefs.h <<_ACEOF | |
4024 | #ifndef __cplusplus | |
4025 | #define inline $ac_val | |
c906108c | 4026 | #endif |
bec39cab AC |
4027 | _ACEOF |
4028 | ;; | |
4029 | esac | |
c906108c | 4030 | |
bec39cab | 4031 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
c906108c | 4032 | |
c906108c | 4033 | |
c906108c | 4034 | |
c906108c | 4035 | |
c906108c | 4036 | |
c906108c | 4037 | |
c906108c | 4038 | |
c906108c | 4039 | |
c906108c | 4040 | |
bec39cab AC |
4041 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4042 | inttypes.h stdint.h unistd.h | |
4043 | do | |
4044 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
4045 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4047 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
4048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4049 | else | |
4050 | cat >conftest.$ac_ext <<_ACEOF | |
4051 | /* confdefs.h. */ | |
4052 | _ACEOF | |
4053 | cat confdefs.h >>conftest.$ac_ext | |
4054 | cat >>conftest.$ac_ext <<_ACEOF | |
4055 | /* end confdefs.h. */ | |
4056 | $ac_includes_default | |
4057 | ||
4058 | #include <$ac_header> | |
4059 | _ACEOF | |
4060 | rm -f conftest.$ac_objext | |
4061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4062 | (eval $ac_compile) 2>conftest.er1 | |
4063 | ac_status=$? | |
4064 | grep -v '^ *+' conftest.er1 >conftest.err | |
4065 | rm -f conftest.er1 | |
4066 | cat conftest.err >&5 | |
4067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4068 | (exit $ac_status); } && | |
121ce6e5 | 4069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4071 | (eval $ac_try) 2>&5 | |
4072 | ac_status=$? | |
4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4074 | (exit $ac_status); }; } && | |
4075 | { ac_try='test -s conftest.$ac_objext' | |
4076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4077 | (eval $ac_try) 2>&5 | |
4078 | ac_status=$? | |
4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4080 | (exit $ac_status); }; }; then | |
4081 | eval "$as_ac_Header=yes" | |
4082 | else | |
4083 | echo "$as_me: failed program was:" >&5 | |
4084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4085 | ||
4e8d927d | 4086 | eval "$as_ac_Header=no" |
bec39cab | 4087 | fi |
4e8d927d | 4088 | |
bec39cab AC |
4089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4090 | fi | |
4e8d927d DJ |
4091 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4092 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4093 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
4094 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4095 | cat >>confdefs.h <<_ACEOF | |
4096 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4097 | _ACEOF | |
c906108c | 4098 | |
c906108c SS |
4099 | fi |
4100 | ||
bec39cab | 4101 | done |
c906108c | 4102 | |
c906108c | 4103 | |
4e8d927d DJ |
4104 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
4105 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
bec39cab AC |
4106 | if test "${ac_cv_type_off_t+set}" = set; then |
4107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4108 | else |
bec39cab AC |
4109 | cat >conftest.$ac_ext <<_ACEOF |
4110 | /* confdefs.h. */ | |
4111 | _ACEOF | |
4112 | cat confdefs.h >>conftest.$ac_ext | |
4113 | cat >>conftest.$ac_ext <<_ACEOF | |
4114 | /* end confdefs.h. */ | |
4115 | $ac_includes_default | |
4e8d927d | 4116 | typedef off_t ac__type_new_; |
bec39cab AC |
4117 | int |
4118 | main () | |
4119 | { | |
4e8d927d | 4120 | if ((ac__type_new_ *) 0) |
bec39cab | 4121 | return 0; |
4e8d927d | 4122 | if (sizeof (ac__type_new_)) |
bec39cab AC |
4123 | return 0; |
4124 | ; | |
4125 | return 0; | |
4126 | } | |
4127 | _ACEOF | |
4128 | rm -f conftest.$ac_objext | |
4129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4130 | (eval $ac_compile) 2>conftest.er1 | |
4131 | ac_status=$? | |
4132 | grep -v '^ *+' conftest.er1 >conftest.err | |
4133 | rm -f conftest.er1 | |
4134 | cat conftest.err >&5 | |
4135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4136 | (exit $ac_status); } && | |
121ce6e5 | 4137 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4139 | (eval $ac_try) 2>&5 | |
4140 | ac_status=$? | |
4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4142 | (exit $ac_status); }; } && | |
4143 | { ac_try='test -s conftest.$ac_objext' | |
4144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4145 | (eval $ac_try) 2>&5 | |
4146 | ac_status=$? | |
4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4148 | (exit $ac_status); }; }; then | |
4149 | ac_cv_type_off_t=yes | |
4150 | else | |
4151 | echo "$as_me: failed program was:" >&5 | |
4152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4153 | ||
4e8d927d | 4154 | ac_cv_type_off_t=no |
c906108c | 4155 | fi |
4e8d927d | 4156 | |
bec39cab | 4157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4158 | fi |
4e8d927d DJ |
4159 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
4160 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
bec39cab AC |
4161 | if test $ac_cv_type_off_t = yes; then |
4162 | : | |
c906108c | 4163 | else |
bec39cab AC |
4164 | |
4165 | cat >>confdefs.h <<_ACEOF | |
4e8d927d | 4166 | #define off_t long int |
bec39cab AC |
4167 | _ACEOF |
4168 | ||
4169 | fi | |
4170 | ||
4e8d927d DJ |
4171 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
4172 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
bec39cab AC |
4173 | if test "${ac_cv_type_size_t+set}" = set; then |
4174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4175 | else | |
4176 | cat >conftest.$ac_ext <<_ACEOF | |
4177 | /* confdefs.h. */ | |
4178 | _ACEOF | |
4179 | cat confdefs.h >>conftest.$ac_ext | |
4180 | cat >>conftest.$ac_ext <<_ACEOF | |
4181 | /* end confdefs.h. */ | |
4182 | $ac_includes_default | |
4e8d927d | 4183 | typedef size_t ac__type_new_; |
bec39cab AC |
4184 | int |
4185 | main () | |
4186 | { | |
4e8d927d | 4187 | if ((ac__type_new_ *) 0) |
bec39cab | 4188 | return 0; |
4e8d927d | 4189 | if (sizeof (ac__type_new_)) |
bec39cab AC |
4190 | return 0; |
4191 | ; | |
4192 | return 0; | |
4193 | } | |
4194 | _ACEOF | |
4195 | rm -f conftest.$ac_objext | |
4196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4197 | (eval $ac_compile) 2>conftest.er1 | |
4198 | ac_status=$? | |
4199 | grep -v '^ *+' conftest.er1 >conftest.err | |
4200 | rm -f conftest.er1 | |
4201 | cat conftest.err >&5 | |
4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4203 | (exit $ac_status); } && | |
121ce6e5 | 4204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4206 | (eval $ac_try) 2>&5 | |
4207 | ac_status=$? | |
4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4209 | (exit $ac_status); }; } && | |
4210 | { ac_try='test -s conftest.$ac_objext' | |
4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4212 | (eval $ac_try) 2>&5 | |
4213 | ac_status=$? | |
4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4215 | (exit $ac_status); }; }; then | |
4216 | ac_cv_type_size_t=yes | |
c906108c | 4217 | else |
bec39cab AC |
4218 | echo "$as_me: failed program was:" >&5 |
4219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4220 | ||
4e8d927d | 4221 | ac_cv_type_size_t=no |
c906108c | 4222 | fi |
4e8d927d | 4223 | |
bec39cab | 4224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 4225 | fi |
4e8d927d DJ |
4226 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
4227 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
bec39cab AC |
4228 | if test $ac_cv_type_size_t = yes; then |
4229 | : | |
4230 | else | |
c906108c | 4231 | |
bec39cab | 4232 | cat >>confdefs.h <<_ACEOF |
4e8d927d | 4233 | #define size_t unsigned int |
bec39cab | 4234 | _ACEOF |
c906108c | 4235 | |
c906108c | 4236 | fi |
bec39cab AC |
4237 | |
4238 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
4239 | # for constant arguments. Useless! | |
4e8d927d DJ |
4240 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
4241 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
bec39cab AC |
4242 | if test "${ac_cv_working_alloca_h+set}" = set; then |
4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4244 | else | |
4245 | cat >conftest.$ac_ext <<_ACEOF | |
4246 | /* confdefs.h. */ | |
4247 | _ACEOF | |
4248 | cat confdefs.h >>conftest.$ac_ext | |
4249 | cat >>conftest.$ac_ext <<_ACEOF | |
4250 | /* end confdefs.h. */ | |
4251 | #include <alloca.h> | |
4252 | int | |
4253 | main () | |
4254 | { | |
4255 | char *p = (char *) alloca (2 * sizeof (int)); | |
4256 | ; | |
4257 | return 0; | |
4258 | } | |
4259 | _ACEOF | |
4260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4262 | (eval $ac_link) 2>conftest.er1 | |
4263 | ac_status=$? | |
4264 | grep -v '^ *+' conftest.er1 >conftest.err | |
4265 | rm -f conftest.er1 | |
4266 | cat conftest.err >&5 | |
4267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4268 | (exit $ac_status); } && | |
121ce6e5 | 4269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4271 | (eval $ac_try) 2>&5 | |
4272 | ac_status=$? | |
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4274 | (exit $ac_status); }; } && | |
4275 | { ac_try='test -s conftest$ac_exeext' | |
4276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4277 | (eval $ac_try) 2>&5 | |
4278 | ac_status=$? | |
4279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4280 | (exit $ac_status); }; }; then | |
4281 | ac_cv_working_alloca_h=yes | |
4282 | else | |
4283 | echo "$as_me: failed program was:" >&5 | |
4284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4285 | ||
4e8d927d | 4286 | ac_cv_working_alloca_h=no |
bec39cab | 4287 | fi |
4e8d927d | 4288 | |
bec39cab AC |
4289 | rm -f conftest.err conftest.$ac_objext \ |
4290 | conftest$ac_exeext conftest.$ac_ext | |
4291 | fi | |
4e8d927d DJ |
4292 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
4293 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
bec39cab AC |
4294 | if test $ac_cv_working_alloca_h = yes; then |
4295 | ||
4296 | cat >>confdefs.h <<\_ACEOF | |
4297 | #define HAVE_ALLOCA_H 1 | |
4298 | _ACEOF | |
c906108c SS |
4299 | |
4300 | fi | |
bec39cab | 4301 | |
4e8d927d DJ |
4302 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
4303 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
bec39cab AC |
4304 | if test "${ac_cv_func_alloca_works+set}" = set; then |
4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4306 | else |
bec39cab AC |
4307 | cat >conftest.$ac_ext <<_ACEOF |
4308 | /* confdefs.h. */ | |
4309 | _ACEOF | |
4310 | cat confdefs.h >>conftest.$ac_ext | |
4311 | cat >>conftest.$ac_ext <<_ACEOF | |
4312 | /* end confdefs.h. */ | |
4313 | #ifdef __GNUC__ | |
4314 | # define alloca __builtin_alloca | |
4315 | #else | |
4316 | # ifdef _MSC_VER | |
4317 | # include <malloc.h> | |
4318 | # define alloca _alloca | |
4319 | # else | |
4320 | # if HAVE_ALLOCA_H | |
4321 | # include <alloca.h> | |
4322 | # else | |
4323 | # ifdef _AIX | |
4324 | #pragma alloca | |
4325 | # else | |
4326 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
4327 | char *alloca (); | |
4328 | # endif | |
4329 | # endif | |
4330 | # endif | |
4331 | # endif | |
4332 | #endif | |
c906108c | 4333 | |
bec39cab AC |
4334 | int |
4335 | main () | |
4336 | { | |
4337 | char *p = (char *) alloca (1); | |
4338 | ; | |
4339 | return 0; | |
4340 | } | |
4341 | _ACEOF | |
4342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4344 | (eval $ac_link) 2>conftest.er1 | |
4345 | ac_status=$? | |
4346 | grep -v '^ *+' conftest.er1 >conftest.err | |
4347 | rm -f conftest.er1 | |
4348 | cat conftest.err >&5 | |
4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4350 | (exit $ac_status); } && | |
121ce6e5 | 4351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4353 | (eval $ac_try) 2>&5 | |
4354 | ac_status=$? | |
4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4356 | (exit $ac_status); }; } && | |
4357 | { ac_try='test -s conftest$ac_exeext' | |
4358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4359 | (eval $ac_try) 2>&5 | |
4360 | ac_status=$? | |
4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4362 | (exit $ac_status); }; }; then | |
4363 | ac_cv_func_alloca_works=yes | |
c906108c | 4364 | else |
bec39cab AC |
4365 | echo "$as_me: failed program was:" >&5 |
4366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4367 | ||
4e8d927d | 4368 | ac_cv_func_alloca_works=no |
c906108c | 4369 | fi |
4e8d927d | 4370 | |
bec39cab AC |
4371 | rm -f conftest.err conftest.$ac_objext \ |
4372 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4373 | fi |
4e8d927d DJ |
4374 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
4375 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
bec39cab AC |
4376 | |
4377 | if test $ac_cv_func_alloca_works = yes; then | |
4378 | ||
4379 | cat >>confdefs.h <<\_ACEOF | |
4380 | #define HAVE_ALLOCA 1 | |
4381 | _ACEOF | |
c906108c | 4382 | |
c906108c | 4383 | else |
bec39cab AC |
4384 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
4385 | # that cause trouble. Some versions do not even contain alloca or | |
4386 | # contain a buggy version. If you still want to use their alloca, | |
4387 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
c906108c | 4388 | |
4e8d927d | 4389 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
c906108c | 4390 | |
bec39cab AC |
4391 | cat >>confdefs.h <<\_ACEOF |
4392 | #define C_ALLOCA 1 | |
4393 | _ACEOF | |
c906108c | 4394 | |
bec39cab | 4395 | |
4e8d927d DJ |
4396 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
4397 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
bec39cab AC |
4398 | if test "${ac_cv_os_cray+set}" = set; then |
4399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4400 | else |
bec39cab AC |
4401 | cat >conftest.$ac_ext <<_ACEOF |
4402 | /* confdefs.h. */ | |
4403 | _ACEOF | |
4404 | cat confdefs.h >>conftest.$ac_ext | |
4405 | cat >>conftest.$ac_ext <<_ACEOF | |
4406 | /* end confdefs.h. */ | |
4e8d927d | 4407 | #if defined CRAY && ! defined CRAY2 |
bec39cab AC |
4408 | webecray |
4409 | #else | |
4410 | wenotbecray | |
4411 | #endif | |
4412 | ||
4413 | _ACEOF | |
4414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4415 | $EGREP "webecray" >/dev/null 2>&1; then | |
4416 | ac_cv_os_cray=yes | |
c906108c | 4417 | else |
bec39cab | 4418 | ac_cv_os_cray=no |
c906108c | 4419 | fi |
bec39cab AC |
4420 | rm -f conftest* |
4421 | ||
4422 | fi | |
4e8d927d DJ |
4423 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
4424 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
bec39cab AC |
4425 | if test $ac_cv_os_cray = yes; then |
4426 | for ac_func in _getb67 GETB67 getb67; do | |
4427 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
4428 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4429 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
4430 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4432 | else | |
4433 | cat >conftest.$ac_ext <<_ACEOF | |
4434 | /* confdefs.h. */ | |
4435 | _ACEOF | |
4436 | cat confdefs.h >>conftest.$ac_ext | |
4437 | cat >>conftest.$ac_ext <<_ACEOF | |
4438 | /* end confdefs.h. */ | |
4439 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4441 | #define $ac_func innocuous_$ac_func | |
4442 | ||
c906108c | 4443 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
4444 | which can conflict with char $ac_func (); below. |
4445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4446 | <limits.h> exists even on freestanding compilers. */ | |
4447 | ||
4448 | #ifdef __STDC__ | |
4449 | # include <limits.h> | |
4450 | #else | |
4451 | # include <assert.h> | |
4452 | #endif | |
c906108c | 4453 | |
bec39cab | 4454 | #undef $ac_func |
c906108c | 4455 | |
4e8d927d DJ |
4456 | /* Override any GCC internal prototype to avoid an error. |
4457 | Use char because int might match the return type of a GCC | |
4458 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4459 | #ifdef __cplusplus |
4460 | extern "C" | |
bec39cab | 4461 | #endif |
bec39cab | 4462 | char $ac_func (); |
c906108c SS |
4463 | /* The GNU C library defines this for functions which it implements |
4464 | to always fail with ENOSYS. Some functions are actually named | |
4465 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 4466 | #if defined __stub_$ac_func || defined __stub___$ac_func |
c906108c | 4467 | choke me |
c906108c SS |
4468 | #endif |
4469 | ||
bec39cab AC |
4470 | int |
4471 | main () | |
4472 | { | |
4e8d927d | 4473 | return $ac_func (); |
bec39cab AC |
4474 | ; |
4475 | return 0; | |
4476 | } | |
4477 | _ACEOF | |
4478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4480 | (eval $ac_link) 2>conftest.er1 | |
4481 | ac_status=$? | |
4482 | grep -v '^ *+' conftest.er1 >conftest.err | |
4483 | rm -f conftest.er1 | |
4484 | cat conftest.err >&5 | |
4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4486 | (exit $ac_status); } && | |
121ce6e5 | 4487 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4489 | (eval $ac_try) 2>&5 | |
4490 | ac_status=$? | |
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4492 | (exit $ac_status); }; } && | |
4493 | { ac_try='test -s conftest$ac_exeext' | |
4494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4495 | (eval $ac_try) 2>&5 | |
4496 | ac_status=$? | |
4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4498 | (exit $ac_status); }; }; then | |
4499 | eval "$as_ac_var=yes" | |
4500 | else | |
4501 | echo "$as_me: failed program was:" >&5 | |
4502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4503 | ||
4e8d927d | 4504 | eval "$as_ac_var=no" |
bec39cab | 4505 | fi |
4e8d927d | 4506 | |
bec39cab AC |
4507 | rm -f conftest.err conftest.$ac_objext \ |
4508 | conftest$ac_exeext conftest.$ac_ext | |
4509 | fi | |
4e8d927d DJ |
4510 | ac_res=`eval echo '${'$as_ac_var'}'` |
4511 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4512 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
4513 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4514 | ||
4515 | cat >>confdefs.h <<_ACEOF | |
4516 | #define CRAY_STACKSEG_END $ac_func | |
4517 | _ACEOF | |
c906108c | 4518 | |
bec39cab | 4519 | break |
c906108c | 4520 | fi |
c906108c | 4521 | |
c906108c | 4522 | done |
c906108c | 4523 | fi |
bec39cab | 4524 | |
4e8d927d DJ |
4525 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
4526 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
bec39cab AC |
4527 | if test "${ac_cv_c_stack_direction+set}" = set; then |
4528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4529 | else |
bec39cab AC |
4530 | if test "$cross_compiling" = yes; then |
4531 | ac_cv_c_stack_direction=0 | |
4532 | else | |
4533 | cat >conftest.$ac_ext <<_ACEOF | |
4534 | /* confdefs.h. */ | |
4535 | _ACEOF | |
4536 | cat confdefs.h >>conftest.$ac_ext | |
4537 | cat >>conftest.$ac_ext <<_ACEOF | |
4538 | /* end confdefs.h. */ | |
4e8d927d | 4539 | $ac_includes_default |
bec39cab AC |
4540 | int |
4541 | find_stack_direction () | |
4542 | { | |
4543 | static char *addr = 0; | |
4544 | auto char dummy; | |
4545 | if (addr == 0) | |
4546 | { | |
4547 | addr = &dummy; | |
4548 | return find_stack_direction (); | |
4549 | } | |
4550 | else | |
4551 | return (&dummy > addr) ? 1 : -1; | |
4552 | } | |
c906108c | 4553 | |
bec39cab AC |
4554 | int |
4555 | main () | |
4556 | { | |
4e8d927d | 4557 | return find_stack_direction () < 0; |
bec39cab AC |
4558 | } |
4559 | _ACEOF | |
4560 | rm -f conftest$ac_exeext | |
4561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4562 | (eval $ac_link) 2>&5 | |
4563 | ac_status=$? | |
4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4567 | (eval $ac_try) 2>&5 | |
4568 | ac_status=$? | |
4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4570 | (exit $ac_status); }; }; then | |
4571 | ac_cv_c_stack_direction=1 | |
c906108c | 4572 | else |
bec39cab AC |
4573 | echo "$as_me: program exited with status $ac_status" >&5 |
4574 | echo "$as_me: failed program was:" >&5 | |
4575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4576 | ||
4577 | ( exit $ac_status ) | |
4578 | ac_cv_c_stack_direction=-1 | |
4579 | fi | |
4e8d927d | 4580 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 4581 | fi |
4e8d927d DJ |
4582 | |
4583 | ||
c906108c | 4584 | fi |
4e8d927d DJ |
4585 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
4586 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
bec39cab AC |
4587 | |
4588 | cat >>confdefs.h <<_ACEOF | |
4589 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4590 | _ACEOF | |
c906108c | 4591 | |
c906108c | 4592 | |
c906108c SS |
4593 | fi |
4594 | ||
4595 | ||
c906108c | 4596 | |
bec39cab AC |
4597 | for ac_header in stdlib.h unistd.h |
4598 | do | |
4599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
4600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4601 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4603 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
4604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4605 | fi | |
4e8d927d DJ |
4606 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4607 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4608 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
4609 | else |
4610 | # Is the header compilable? | |
4e8d927d DJ |
4611 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4612 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
4613 | cat >conftest.$ac_ext <<_ACEOF |
4614 | /* confdefs.h. */ | |
4615 | _ACEOF | |
4616 | cat confdefs.h >>conftest.$ac_ext | |
4617 | cat >>conftest.$ac_ext <<_ACEOF | |
4618 | /* end confdefs.h. */ | |
4619 | $ac_includes_default | |
4620 | #include <$ac_header> | |
4621 | _ACEOF | |
4622 | rm -f conftest.$ac_objext | |
4623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4624 | (eval $ac_compile) 2>conftest.er1 | |
4625 | ac_status=$? | |
4626 | grep -v '^ *+' conftest.er1 >conftest.err | |
4627 | rm -f conftest.er1 | |
4628 | cat conftest.err >&5 | |
4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4630 | (exit $ac_status); } && | |
121ce6e5 | 4631 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4633 | (eval $ac_try) 2>&5 | |
4634 | ac_status=$? | |
4635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4636 | (exit $ac_status); }; } && | |
4637 | { ac_try='test -s conftest.$ac_objext' | |
4638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4639 | (eval $ac_try) 2>&5 | |
4640 | ac_status=$? | |
4641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4642 | (exit $ac_status); }; }; then | |
4643 | ac_header_compiler=yes | |
4644 | else | |
4645 | echo "$as_me: failed program was:" >&5 | |
4646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4647 | ||
4e8d927d | 4648 | ac_header_compiler=no |
bec39cab | 4649 | fi |
4e8d927d | 4650 | |
bec39cab | 4651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
4652 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4653 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
4654 | |
4655 | # Is the header present? | |
4e8d927d DJ |
4656 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4657 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
4658 | cat >conftest.$ac_ext <<_ACEOF |
4659 | /* confdefs.h. */ | |
4660 | _ACEOF | |
4661 | cat confdefs.h >>conftest.$ac_ext | |
4662 | cat >>conftest.$ac_ext <<_ACEOF | |
4663 | /* end confdefs.h. */ | |
4664 | #include <$ac_header> | |
4665 | _ACEOF | |
4666 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4667 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4668 | ac_status=$? | |
4669 | grep -v '^ *+' conftest.er1 >conftest.err | |
4670 | rm -f conftest.er1 | |
4671 | cat conftest.err >&5 | |
4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4673 | (exit $ac_status); } >/dev/null; then | |
4674 | if test -s conftest.err; then | |
4675 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4676 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4677 | else | |
4678 | ac_cpp_err= | |
4679 | fi | |
c906108c | 4680 | else |
bec39cab | 4681 | ac_cpp_err=yes |
c906108c | 4682 | fi |
bec39cab AC |
4683 | if test -z "$ac_cpp_err"; then |
4684 | ac_header_preproc=yes | |
c906108c | 4685 | else |
bec39cab AC |
4686 | echo "$as_me: failed program was:" >&5 |
4687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4688 | ||
4689 | ac_header_preproc=no | |
c906108c | 4690 | fi |
4e8d927d | 4691 | |
bec39cab | 4692 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
4693 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4694 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c906108c | 4695 | |
bec39cab AC |
4696 | # So? What about this header? |
4697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4698 | yes:no: ) | |
4699 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4700 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4702 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4703 | ac_header_preproc=yes | |
4704 | ;; | |
4705 | no:yes:* ) | |
4706 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4707 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4708 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4709 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4710 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4711 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4712 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4713 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4715 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4716 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4717 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 4718 | |
bec39cab AC |
4719 | ;; |
4720 | esac | |
4e8d927d DJ |
4721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4723 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
4724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4725 | else | |
4726 | eval "$as_ac_Header=\$ac_header_preproc" | |
4727 | fi | |
4e8d927d DJ |
4728 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4729 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4730 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
4731 | |
4732 | fi | |
4733 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4734 | cat >>confdefs.h <<_ACEOF | |
4735 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4736 | _ACEOF | |
4737 | ||
4738 | fi | |
4739 | ||
4740 | done | |
4741 | ||
4742 | ||
4743 | for ac_func in getpagesize | |
4744 | do | |
4745 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
4746 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
4748 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
4749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4750 | else | |
4751 | cat >conftest.$ac_ext <<_ACEOF | |
4752 | /* confdefs.h. */ | |
4753 | _ACEOF | |
4754 | cat confdefs.h >>conftest.$ac_ext | |
4755 | cat >>conftest.$ac_ext <<_ACEOF | |
4756 | /* end confdefs.h. */ | |
4757 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4758 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4759 | #define $ac_func innocuous_$ac_func | |
4760 | ||
4761 | /* System header to define __stub macros and hopefully few prototypes, | |
4762 | which can conflict with char $ac_func (); below. | |
4763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4764 | <limits.h> exists even on freestanding compilers. */ | |
4765 | ||
4766 | #ifdef __STDC__ | |
4767 | # include <limits.h> | |
4768 | #else | |
4769 | # include <assert.h> | |
4770 | #endif | |
4771 | ||
4772 | #undef $ac_func | |
4773 | ||
4e8d927d DJ |
4774 | /* Override any GCC internal prototype to avoid an error. |
4775 | Use char because int might match the return type of a GCC | |
4776 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4777 | #ifdef __cplusplus |
4778 | extern "C" | |
bec39cab | 4779 | #endif |
bec39cab AC |
4780 | char $ac_func (); |
4781 | /* The GNU C library defines this for functions which it implements | |
4782 | to always fail with ENOSYS. Some functions are actually named | |
4783 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 4784 | #if defined __stub_$ac_func || defined __stub___$ac_func |
bec39cab | 4785 | choke me |
bec39cab AC |
4786 | #endif |
4787 | ||
4788 | int | |
4789 | main () | |
4790 | { | |
4e8d927d | 4791 | return $ac_func (); |
bec39cab AC |
4792 | ; |
4793 | return 0; | |
4794 | } | |
4795 | _ACEOF | |
4796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4798 | (eval $ac_link) 2>conftest.er1 | |
4799 | ac_status=$? | |
4800 | grep -v '^ *+' conftest.er1 >conftest.err | |
4801 | rm -f conftest.er1 | |
4802 | cat conftest.err >&5 | |
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4804 | (exit $ac_status); } && | |
121ce6e5 | 4805 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
4806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4807 | (eval $ac_try) 2>&5 | |
4808 | ac_status=$? | |
4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4810 | (exit $ac_status); }; } && | |
4811 | { ac_try='test -s conftest$ac_exeext' | |
4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4813 | (eval $ac_try) 2>&5 | |
4814 | ac_status=$? | |
4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4816 | (exit $ac_status); }; }; then | |
4817 | eval "$as_ac_var=yes" | |
4818 | else | |
4819 | echo "$as_me: failed program was:" >&5 | |
4820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4821 | ||
4e8d927d | 4822 | eval "$as_ac_var=no" |
bec39cab | 4823 | fi |
4e8d927d | 4824 | |
bec39cab AC |
4825 | rm -f conftest.err conftest.$ac_objext \ |
4826 | conftest$ac_exeext conftest.$ac_ext | |
4827 | fi | |
4e8d927d DJ |
4828 | ac_res=`eval echo '${'$as_ac_var'}'` |
4829 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4830 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
4831 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4832 | cat >>confdefs.h <<_ACEOF | |
4833 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4834 | _ACEOF | |
4835 | ||
4836 | fi | |
4837 | done | |
4838 | ||
4e8d927d DJ |
4839 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
4840 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
bec39cab AC |
4841 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
4842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4843 | else | |
4844 | if test "$cross_compiling" = yes; then | |
4845 | ac_cv_func_mmap_fixed_mapped=no | |
4846 | else | |
4847 | cat >conftest.$ac_ext <<_ACEOF | |
4848 | /* confdefs.h. */ | |
4849 | _ACEOF | |
4850 | cat confdefs.h >>conftest.$ac_ext | |
4851 | cat >>conftest.$ac_ext <<_ACEOF | |
4852 | /* end confdefs.h. */ | |
4853 | $ac_includes_default | |
4854 | /* malloc might have been renamed as rpl_malloc. */ | |
4855 | #undef malloc | |
4856 | ||
4857 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4858 | Here is a matrix of mmap possibilities: | |
4859 | mmap private not fixed | |
4860 | mmap private fixed at somewhere currently unmapped | |
4861 | mmap private fixed at somewhere already mapped | |
4862 | mmap shared not fixed | |
4863 | mmap shared fixed at somewhere currently unmapped | |
4864 | mmap shared fixed at somewhere already mapped | |
4865 | For private mappings, we should verify that changes cannot be read() | |
4866 | back from the file, nor mmap's back from the file at a different | |
4867 | address. (There have been systems where private was not correctly | |
4868 | implemented like the infamous i386 svr4.0, and systems where the | |
4869 | VM page cache was not coherent with the file system buffer cache | |
4870 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4871 | For shared mappings, we should conversely verify that changes get | |
4872 | propagated back to all the places they're supposed to be. | |
4873 | ||
4874 | Grep wants private fixed already mapped. | |
4875 | The main things grep needs to know about mmap are: | |
4876 | * does it exist and is it safe to write into the mmap'd area | |
4877 | * how to use it (BSD variants) */ | |
4878 | ||
4879 | #include <fcntl.h> | |
4880 | #include <sys/mman.h> | |
4881 | ||
4882 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
4883 | char *malloc (); | |
4884 | #endif | |
4885 | ||
4886 | /* This mess was copied from the GNU getpagesize.h. */ | |
4887 | #if !HAVE_GETPAGESIZE | |
4888 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4889 | # if !HAVE_SYS_PARAM_H | |
4890 | # define HAVE_SYS_PARAM_H 1 | |
4891 | # endif | |
4892 | ||
4893 | # ifdef _SC_PAGESIZE | |
4894 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4895 | # else /* no _SC_PAGESIZE */ | |
4896 | # if HAVE_SYS_PARAM_H | |
4897 | # include <sys/param.h> | |
4898 | # ifdef EXEC_PAGESIZE | |
4899 | # define getpagesize() EXEC_PAGESIZE | |
4900 | # else /* no EXEC_PAGESIZE */ | |
4901 | # ifdef NBPG | |
4902 | # define getpagesize() NBPG * CLSIZE | |
4903 | # ifndef CLSIZE | |
4904 | # define CLSIZE 1 | |
4905 | # endif /* no CLSIZE */ | |
4906 | # else /* no NBPG */ | |
4907 | # ifdef NBPC | |
4908 | # define getpagesize() NBPC | |
4909 | # else /* no NBPC */ | |
4910 | # ifdef PAGESIZE | |
4911 | # define getpagesize() PAGESIZE | |
4912 | # endif /* PAGESIZE */ | |
4913 | # endif /* no NBPC */ | |
4914 | # endif /* no NBPG */ | |
4915 | # endif /* no EXEC_PAGESIZE */ | |
4916 | # else /* no HAVE_SYS_PARAM_H */ | |
4917 | # define getpagesize() 8192 /* punt totally */ | |
4918 | # endif /* no HAVE_SYS_PARAM_H */ | |
4919 | # endif /* no _SC_PAGESIZE */ | |
4920 | ||
4921 | #endif /* no HAVE_GETPAGESIZE */ | |
4922 | ||
4923 | int | |
4924 | main () | |
4925 | { | |
4926 | char *data, *data2, *data3; | |
4927 | int i, pagesize; | |
4928 | int fd; | |
4929 | ||
4930 | pagesize = getpagesize (); | |
4931 | ||
4932 | /* First, make a file with some known garbage in it. */ | |
4933 | data = (char *) malloc (pagesize); | |
4934 | if (!data) | |
4e8d927d | 4935 | return 1; |
bec39cab AC |
4936 | for (i = 0; i < pagesize; ++i) |
4937 | *(data + i) = rand (); | |
4938 | umask (0); | |
4939 | fd = creat ("conftest.mmap", 0600); | |
4940 | if (fd < 0) | |
4e8d927d | 4941 | return 1; |
bec39cab | 4942 | if (write (fd, data, pagesize) != pagesize) |
4e8d927d | 4943 | return 1; |
bec39cab AC |
4944 | close (fd); |
4945 | ||
4946 | /* Next, try to mmap the file at a fixed address which already has | |
4947 | something else allocated at it. If we can, also make sure that | |
4948 | we see the same garbage. */ | |
4949 | fd = open ("conftest.mmap", O_RDWR); | |
4950 | if (fd < 0) | |
4e8d927d | 4951 | return 1; |
bec39cab AC |
4952 | data2 = (char *) malloc (2 * pagesize); |
4953 | if (!data2) | |
4e8d927d DJ |
4954 | return 1; |
4955 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
bec39cab AC |
4956 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
4957 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4e8d927d | 4958 | return 1; |
bec39cab AC |
4959 | for (i = 0; i < pagesize; ++i) |
4960 | if (*(data + i) != *(data2 + i)) | |
4e8d927d | 4961 | return 1; |
bec39cab AC |
4962 | |
4963 | /* Finally, make sure that changes to the mapped area do not | |
4964 | percolate back to the file as seen by read(). (This is a bug on | |
4965 | some variants of i386 svr4.0.) */ | |
4966 | for (i = 0; i < pagesize; ++i) | |
4967 | *(data2 + i) = *(data2 + i) + 1; | |
4968 | data3 = (char *) malloc (pagesize); | |
4969 | if (!data3) | |
4e8d927d | 4970 | return 1; |
bec39cab | 4971 | if (read (fd, data3, pagesize) != pagesize) |
4e8d927d | 4972 | return 1; |
bec39cab AC |
4973 | for (i = 0; i < pagesize; ++i) |
4974 | if (*(data + i) != *(data3 + i)) | |
4e8d927d | 4975 | return 1; |
bec39cab | 4976 | close (fd); |
4e8d927d | 4977 | return 0; |
bec39cab AC |
4978 | } |
4979 | _ACEOF | |
4980 | rm -f conftest$ac_exeext | |
4981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4982 | (eval $ac_link) 2>&5 | |
4983 | ac_status=$? | |
4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4987 | (eval $ac_try) 2>&5 | |
4988 | ac_status=$? | |
4989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4990 | (exit $ac_status); }; }; then | |
4991 | ac_cv_func_mmap_fixed_mapped=yes | |
4992 | else | |
4993 | echo "$as_me: program exited with status $ac_status" >&5 | |
4994 | echo "$as_me: failed program was:" >&5 | |
4995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4996 | ||
4997 | ( exit $ac_status ) | |
4998 | ac_cv_func_mmap_fixed_mapped=no | |
4999 | fi | |
4e8d927d | 5000 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 5001 | fi |
4e8d927d DJ |
5002 | |
5003 | ||
bec39cab | 5004 | fi |
4e8d927d DJ |
5005 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
5006 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
bec39cab AC |
5007 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
5008 | ||
5009 | cat >>confdefs.h <<\_ACEOF | |
5010 | #define HAVE_MMAP 1 | |
5011 | _ACEOF | |
5012 | ||
5013 | fi | |
5014 | rm -f conftest.mmap | |
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | ||
5020 | ||
5021 | ||
5022 | ||
5023 | ||
5024 | ||
5025 | ||
5026 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
5027 | unistd.h values.h sys/param.h | |
5028 | do | |
5029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
5030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5031 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5032 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
5034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5035 | fi | |
4e8d927d DJ |
5036 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5038 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
5039 | else |
5040 | # Is the header compilable? | |
4e8d927d DJ |
5041 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5042 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
5043 | cat >conftest.$ac_ext <<_ACEOF |
5044 | /* confdefs.h. */ | |
5045 | _ACEOF | |
5046 | cat confdefs.h >>conftest.$ac_ext | |
5047 | cat >>conftest.$ac_ext <<_ACEOF | |
5048 | /* end confdefs.h. */ | |
5049 | $ac_includes_default | |
5050 | #include <$ac_header> | |
5051 | _ACEOF | |
5052 | rm -f conftest.$ac_objext | |
5053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5054 | (eval $ac_compile) 2>conftest.er1 | |
5055 | ac_status=$? | |
5056 | grep -v '^ *+' conftest.er1 >conftest.err | |
5057 | rm -f conftest.er1 | |
5058 | cat conftest.err >&5 | |
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5060 | (exit $ac_status); } && | |
121ce6e5 | 5061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5063 | (eval $ac_try) 2>&5 | |
5064 | ac_status=$? | |
5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5066 | (exit $ac_status); }; } && | |
5067 | { ac_try='test -s conftest.$ac_objext' | |
5068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5069 | (eval $ac_try) 2>&5 | |
5070 | ac_status=$? | |
5071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5072 | (exit $ac_status); }; }; then | |
5073 | ac_header_compiler=yes | |
5074 | else | |
5075 | echo "$as_me: failed program was:" >&5 | |
5076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5077 | ||
4e8d927d | 5078 | ac_header_compiler=no |
bec39cab | 5079 | fi |
4e8d927d | 5080 | |
bec39cab | 5081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
5082 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5083 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
5084 | |
5085 | # Is the header present? | |
4e8d927d DJ |
5086 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5087 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
5088 | cat >conftest.$ac_ext <<_ACEOF |
5089 | /* confdefs.h. */ | |
5090 | _ACEOF | |
5091 | cat confdefs.h >>conftest.$ac_ext | |
5092 | cat >>conftest.$ac_ext <<_ACEOF | |
5093 | /* end confdefs.h. */ | |
5094 | #include <$ac_header> | |
5095 | _ACEOF | |
5096 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5097 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5098 | ac_status=$? | |
5099 | grep -v '^ *+' conftest.er1 >conftest.err | |
5100 | rm -f conftest.er1 | |
5101 | cat conftest.err >&5 | |
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5103 | (exit $ac_status); } >/dev/null; then | |
5104 | if test -s conftest.err; then | |
5105 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5106 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5107 | else | |
5108 | ac_cpp_err= | |
5109 | fi | |
5110 | else | |
5111 | ac_cpp_err=yes | |
5112 | fi | |
5113 | if test -z "$ac_cpp_err"; then | |
5114 | ac_header_preproc=yes | |
5115 | else | |
5116 | echo "$as_me: failed program was:" >&5 | |
5117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5118 | ||
5119 | ac_header_preproc=no | |
5120 | fi | |
4e8d927d | 5121 | |
bec39cab | 5122 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
5123 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5124 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
5125 | |
5126 | # So? What about this header? | |
5127 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5128 | yes:no: ) | |
5129 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5130 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5131 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5132 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5133 | ac_header_preproc=yes | |
5134 | ;; | |
5135 | no:yes:* ) | |
5136 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5137 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5138 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5139 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5140 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5141 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5142 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5143 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5144 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5145 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5146 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5147 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 5148 | |
bec39cab AC |
5149 | ;; |
5150 | esac | |
4e8d927d DJ |
5151 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5153 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5155 | else | |
5156 | eval "$as_ac_Header=\$ac_header_preproc" | |
5157 | fi | |
4e8d927d DJ |
5158 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5159 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5160 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
5161 | |
5162 | fi | |
5163 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5164 | cat >>confdefs.h <<_ACEOF | |
5165 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5166 | _ACEOF | |
5167 | ||
5168 | fi | |
5169 | ||
5170 | done | |
5171 | ||
5172 | ||
5173 | ||
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
5183 | __argz_count __argz_stringify __argz_next | |
5184 | do | |
5185 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
5186 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5187 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5188 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
5189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5190 | else | |
5191 | cat >conftest.$ac_ext <<_ACEOF | |
5192 | /* confdefs.h. */ | |
5193 | _ACEOF | |
5194 | cat confdefs.h >>conftest.$ac_ext | |
5195 | cat >>conftest.$ac_ext <<_ACEOF | |
5196 | /* end confdefs.h. */ | |
5197 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5198 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5199 | #define $ac_func innocuous_$ac_func | |
5200 | ||
5201 | /* System header to define __stub macros and hopefully few prototypes, | |
5202 | which can conflict with char $ac_func (); below. | |
5203 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5204 | <limits.h> exists even on freestanding compilers. */ | |
5205 | ||
5206 | #ifdef __STDC__ | |
5207 | # include <limits.h> | |
5208 | #else | |
5209 | # include <assert.h> | |
5210 | #endif | |
5211 | ||
5212 | #undef $ac_func | |
5213 | ||
4e8d927d DJ |
5214 | /* Override any GCC internal prototype to avoid an error. |
5215 | Use char because int might match the return type of a GCC | |
5216 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5217 | #ifdef __cplusplus |
5218 | extern "C" | |
bec39cab | 5219 | #endif |
bec39cab AC |
5220 | char $ac_func (); |
5221 | /* The GNU C library defines this for functions which it implements | |
5222 | to always fail with ENOSYS. Some functions are actually named | |
5223 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 5224 | #if defined __stub_$ac_func || defined __stub___$ac_func |
bec39cab | 5225 | choke me |
bec39cab AC |
5226 | #endif |
5227 | ||
5228 | int | |
5229 | main () | |
5230 | { | |
4e8d927d | 5231 | return $ac_func (); |
bec39cab AC |
5232 | ; |
5233 | return 0; | |
5234 | } | |
5235 | _ACEOF | |
5236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5238 | (eval $ac_link) 2>conftest.er1 | |
5239 | ac_status=$? | |
5240 | grep -v '^ *+' conftest.er1 >conftest.err | |
5241 | rm -f conftest.er1 | |
5242 | cat conftest.err >&5 | |
5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5244 | (exit $ac_status); } && | |
121ce6e5 | 5245 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5247 | (eval $ac_try) 2>&5 | |
5248 | ac_status=$? | |
5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5250 | (exit $ac_status); }; } && | |
5251 | { ac_try='test -s conftest$ac_exeext' | |
5252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5253 | (eval $ac_try) 2>&5 | |
5254 | ac_status=$? | |
5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5256 | (exit $ac_status); }; }; then | |
5257 | eval "$as_ac_var=yes" | |
5258 | else | |
5259 | echo "$as_me: failed program was:" >&5 | |
5260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5261 | ||
4e8d927d | 5262 | eval "$as_ac_var=no" |
bec39cab | 5263 | fi |
4e8d927d | 5264 | |
bec39cab AC |
5265 | rm -f conftest.err conftest.$ac_objext \ |
5266 | conftest$ac_exeext conftest.$ac_ext | |
5267 | fi | |
4e8d927d DJ |
5268 | ac_res=`eval echo '${'$as_ac_var'}'` |
5269 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5270 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
5271 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
5272 | cat >>confdefs.h <<_ACEOF | |
5273 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5274 | _ACEOF | |
5275 | ||
5276 | fi | |
5277 | done | |
5278 | ||
5279 | ||
5280 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
5281 | ||
5282 | for ac_func in stpcpy | |
5283 | do | |
5284 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
5285 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5286 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5287 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
5288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5289 | else | |
5290 | cat >conftest.$ac_ext <<_ACEOF | |
5291 | /* confdefs.h. */ | |
5292 | _ACEOF | |
5293 | cat confdefs.h >>conftest.$ac_ext | |
5294 | cat >>conftest.$ac_ext <<_ACEOF | |
5295 | /* end confdefs.h. */ | |
5296 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5297 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5298 | #define $ac_func innocuous_$ac_func | |
5299 | ||
5300 | /* System header to define __stub macros and hopefully few prototypes, | |
5301 | which can conflict with char $ac_func (); below. | |
5302 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5303 | <limits.h> exists even on freestanding compilers. */ | |
5304 | ||
5305 | #ifdef __STDC__ | |
5306 | # include <limits.h> | |
5307 | #else | |
5308 | # include <assert.h> | |
5309 | #endif | |
5310 | ||
5311 | #undef $ac_func | |
5312 | ||
4e8d927d DJ |
5313 | /* Override any GCC internal prototype to avoid an error. |
5314 | Use char because int might match the return type of a GCC | |
5315 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5316 | #ifdef __cplusplus |
5317 | extern "C" | |
bec39cab | 5318 | #endif |
bec39cab AC |
5319 | char $ac_func (); |
5320 | /* The GNU C library defines this for functions which it implements | |
5321 | to always fail with ENOSYS. Some functions are actually named | |
5322 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 5323 | #if defined __stub_$ac_func || defined __stub___$ac_func |
bec39cab | 5324 | choke me |
bec39cab AC |
5325 | #endif |
5326 | ||
5327 | int | |
5328 | main () | |
5329 | { | |
4e8d927d | 5330 | return $ac_func (); |
bec39cab AC |
5331 | ; |
5332 | return 0; | |
5333 | } | |
5334 | _ACEOF | |
5335 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5337 | (eval $ac_link) 2>conftest.er1 | |
5338 | ac_status=$? | |
5339 | grep -v '^ *+' conftest.er1 >conftest.err | |
5340 | rm -f conftest.er1 | |
5341 | cat conftest.err >&5 | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); } && | |
121ce6e5 | 5344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5346 | (eval $ac_try) 2>&5 | |
5347 | ac_status=$? | |
5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5349 | (exit $ac_status); }; } && | |
5350 | { ac_try='test -s conftest$ac_exeext' | |
5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5352 | (eval $ac_try) 2>&5 | |
5353 | ac_status=$? | |
5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5355 | (exit $ac_status); }; }; then | |
5356 | eval "$as_ac_var=yes" | |
5357 | else | |
5358 | echo "$as_me: failed program was:" >&5 | |
5359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5360 | ||
4e8d927d | 5361 | eval "$as_ac_var=no" |
bec39cab | 5362 | fi |
4e8d927d | 5363 | |
bec39cab AC |
5364 | rm -f conftest.err conftest.$ac_objext \ |
5365 | conftest$ac_exeext conftest.$ac_ext | |
5366 | fi | |
4e8d927d DJ |
5367 | ac_res=`eval echo '${'$as_ac_var'}'` |
5368 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5369 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
5370 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
5371 | cat >>confdefs.h <<_ACEOF | |
5372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5373 | _ACEOF | |
5374 | ||
5375 | fi | |
5376 | done | |
5377 | ||
5378 | fi | |
5379 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
5380 | ||
5381 | cat >>confdefs.h <<\_ACEOF | |
5382 | #define HAVE_STPCPY 1 | |
5383 | _ACEOF | |
5384 | ||
5385 | fi | |
5386 | ||
5387 | if test $ac_cv_header_locale_h = yes; then | |
4e8d927d DJ |
5388 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
5389 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } | |
bec39cab AC |
5390 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5392 | else | |
5393 | cat >conftest.$ac_ext <<_ACEOF | |
5394 | /* confdefs.h. */ | |
5395 | _ACEOF | |
5396 | cat confdefs.h >>conftest.$ac_ext | |
5397 | cat >>conftest.$ac_ext <<_ACEOF | |
5398 | /* end confdefs.h. */ | |
5399 | #include <locale.h> | |
5400 | int | |
5401 | main () | |
5402 | { | |
5403 | return LC_MESSAGES | |
5404 | ; | |
5405 | return 0; | |
5406 | } | |
5407 | _ACEOF | |
5408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5410 | (eval $ac_link) 2>conftest.er1 | |
5411 | ac_status=$? | |
5412 | grep -v '^ *+' conftest.er1 >conftest.err | |
5413 | rm -f conftest.er1 | |
5414 | cat conftest.err >&5 | |
5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5416 | (exit $ac_status); } && | |
121ce6e5 | 5417 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5419 | (eval $ac_try) 2>&5 | |
5420 | ac_status=$? | |
5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5422 | (exit $ac_status); }; } && | |
5423 | { ac_try='test -s conftest$ac_exeext' | |
5424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5425 | (eval $ac_try) 2>&5 | |
5426 | ac_status=$? | |
5427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5428 | (exit $ac_status); }; }; then | |
5429 | am_cv_val_LC_MESSAGES=yes | |
5430 | else | |
5431 | echo "$as_me: failed program was:" >&5 | |
5432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5433 | ||
4e8d927d | 5434 | am_cv_val_LC_MESSAGES=no |
bec39cab | 5435 | fi |
4e8d927d | 5436 | |
bec39cab AC |
5437 | rm -f conftest.err conftest.$ac_objext \ |
5438 | conftest$ac_exeext conftest.$ac_ext | |
5439 | fi | |
4e8d927d DJ |
5440 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
5441 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } | |
bec39cab AC |
5442 | if test $am_cv_val_LC_MESSAGES = yes; then |
5443 | ||
5444 | cat >>confdefs.h <<\_ACEOF | |
5445 | #define HAVE_LC_MESSAGES 1 | |
5446 | _ACEOF | |
5447 | ||
5448 | fi | |
5449 | fi | |
4e8d927d DJ |
5450 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
5451 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } | |
5452 | # Check whether --enable-nls was given. | |
bec39cab | 5453 | if test "${enable_nls+set}" = set; then |
4e8d927d | 5454 | enableval=$enable_nls; USE_NLS=$enableval |
bec39cab AC |
5455 | else |
5456 | USE_NLS=yes | |
4e8d927d DJ |
5457 | fi |
5458 | ||
5459 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
5460 | echo "${ECHO_T}$USE_NLS" >&6; } | |
bec39cab AC |
5461 | |
5462 | ||
5463 | USE_INCLUDED_LIBINTL=no | |
5464 | ||
5465 | if test "$USE_NLS" = "yes"; then | |
4e8d927d DJ |
5466 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
5467 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } | |
bec39cab | 5468 | |
4e8d927d | 5469 | # Check whether --with-included-gettext was given. |
bec39cab | 5470 | if test "${with_included_gettext+set}" = set; then |
4e8d927d | 5471 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
bec39cab AC |
5472 | else |
5473 | nls_cv_force_use_gnu_gettext=no | |
4e8d927d DJ |
5474 | fi |
5475 | ||
5476 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
5477 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } | |
bec39cab AC |
5478 | |
5479 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
5480 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
5481 | nls_cv_header_intl= | |
5482 | nls_cv_header_libgt= | |
a53bf506 | 5483 | CATOBJEXT= |
bec39cab AC |
5484 | |
5485 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4e8d927d DJ |
5486 | { echo "$as_me:$LINENO: checking for libintl.h" >&5 |
5487 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } | |
bec39cab AC |
5488 | if test "${ac_cv_header_libintl_h+set}" = set; then |
5489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5490 | fi | |
4e8d927d DJ |
5491 | { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
5492 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } | |
bec39cab AC |
5493 | else |
5494 | # Is the header compilable? | |
4e8d927d DJ |
5495 | { echo "$as_me:$LINENO: checking libintl.h usability" >&5 |
5496 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; } | |
bec39cab AC |
5497 | cat >conftest.$ac_ext <<_ACEOF |
5498 | /* confdefs.h. */ | |
5499 | _ACEOF | |
5500 | cat confdefs.h >>conftest.$ac_ext | |
5501 | cat >>conftest.$ac_ext <<_ACEOF | |
5502 | /* end confdefs.h. */ | |
5503 | $ac_includes_default | |
5504 | #include <libintl.h> | |
5505 | _ACEOF | |
5506 | rm -f conftest.$ac_objext | |
5507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5508 | (eval $ac_compile) 2>conftest.er1 | |
5509 | ac_status=$? | |
5510 | grep -v '^ *+' conftest.er1 >conftest.err | |
5511 | rm -f conftest.er1 | |
5512 | cat conftest.err >&5 | |
5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5514 | (exit $ac_status); } && | |
121ce6e5 | 5515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5517 | (eval $ac_try) 2>&5 | |
5518 | ac_status=$? | |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5520 | (exit $ac_status); }; } && | |
5521 | { ac_try='test -s conftest.$ac_objext' | |
5522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5523 | (eval $ac_try) 2>&5 | |
5524 | ac_status=$? | |
5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5526 | (exit $ac_status); }; }; then | |
5527 | ac_header_compiler=yes | |
5528 | else | |
5529 | echo "$as_me: failed program was:" >&5 | |
5530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5531 | ||
4e8d927d | 5532 | ac_header_compiler=no |
bec39cab | 5533 | fi |
4e8d927d | 5534 | |
bec39cab | 5535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
5536 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5537 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
5538 | |
5539 | # Is the header present? | |
4e8d927d DJ |
5540 | { echo "$as_me:$LINENO: checking libintl.h presence" >&5 |
5541 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; } | |
bec39cab AC |
5542 | cat >conftest.$ac_ext <<_ACEOF |
5543 | /* confdefs.h. */ | |
5544 | _ACEOF | |
5545 | cat confdefs.h >>conftest.$ac_ext | |
5546 | cat >>conftest.$ac_ext <<_ACEOF | |
5547 | /* end confdefs.h. */ | |
5548 | #include <libintl.h> | |
5549 | _ACEOF | |
5550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5552 | ac_status=$? | |
5553 | grep -v '^ *+' conftest.er1 >conftest.err | |
5554 | rm -f conftest.er1 | |
5555 | cat conftest.err >&5 | |
5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5557 | (exit $ac_status); } >/dev/null; then | |
5558 | if test -s conftest.err; then | |
5559 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5561 | else | |
5562 | ac_cpp_err= | |
5563 | fi | |
5564 | else | |
5565 | ac_cpp_err=yes | |
5566 | fi | |
5567 | if test -z "$ac_cpp_err"; then | |
5568 | ac_header_preproc=yes | |
5569 | else | |
5570 | echo "$as_me: failed program was:" >&5 | |
5571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5572 | ||
5573 | ac_header_preproc=no | |
5574 | fi | |
4e8d927d | 5575 | |
bec39cab | 5576 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
5577 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5578 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
5579 | |
5580 | # So? What about this header? | |
5581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5582 | yes:no: ) | |
5583 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5584 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5585 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
5586 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
5587 | ac_header_preproc=yes | |
5588 | ;; | |
5589 | no:yes:* ) | |
5590 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
5591 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
5592 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
5593 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
5594 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
5595 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
5596 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5597 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5598 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
5599 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
5600 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
5601 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 5602 | |
bec39cab AC |
5603 | ;; |
5604 | esac | |
4e8d927d DJ |
5605 | { echo "$as_me:$LINENO: checking for libintl.h" >&5 |
5606 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; } | |
bec39cab AC |
5607 | if test "${ac_cv_header_libintl_h+set}" = set; then |
5608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5609 | else | |
5610 | ac_cv_header_libintl_h=$ac_header_preproc | |
5611 | fi | |
4e8d927d DJ |
5612 | { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
5613 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; } | |
bec39cab AC |
5614 | |
5615 | fi | |
5616 | if test $ac_cv_header_libintl_h = yes; then | |
4e8d927d DJ |
5617 | { echo "$as_me:$LINENO: checking for gettext in libc" >&5 |
5618 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6; } | |
bec39cab AC |
5619 | if test "${gt_cv_func_gettext_libc+set}" = set; then |
5620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5621 | else | |
5622 | cat >conftest.$ac_ext <<_ACEOF | |
5623 | /* confdefs.h. */ | |
5624 | _ACEOF | |
5625 | cat confdefs.h >>conftest.$ac_ext | |
5626 | cat >>conftest.$ac_ext <<_ACEOF | |
5627 | /* end confdefs.h. */ | |
5628 | #include <libintl.h> | |
5629 | int | |
5630 | main () | |
5631 | { | |
5632 | return (int) gettext ("") | |
5633 | ; | |
5634 | return 0; | |
5635 | } | |
5636 | _ACEOF | |
5637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5639 | (eval $ac_link) 2>conftest.er1 | |
5640 | ac_status=$? | |
5641 | grep -v '^ *+' conftest.er1 >conftest.err | |
5642 | rm -f conftest.er1 | |
5643 | cat conftest.err >&5 | |
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5645 | (exit $ac_status); } && | |
121ce6e5 | 5646 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5648 | (eval $ac_try) 2>&5 | |
5649 | ac_status=$? | |
5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5651 | (exit $ac_status); }; } && | |
5652 | { ac_try='test -s conftest$ac_exeext' | |
5653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5654 | (eval $ac_try) 2>&5 | |
5655 | ac_status=$? | |
5656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5657 | (exit $ac_status); }; }; then | |
5658 | gt_cv_func_gettext_libc=yes | |
5659 | else | |
5660 | echo "$as_me: failed program was:" >&5 | |
5661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5662 | ||
4e8d927d | 5663 | gt_cv_func_gettext_libc=no |
bec39cab | 5664 | fi |
4e8d927d | 5665 | |
bec39cab AC |
5666 | rm -f conftest.err conftest.$ac_objext \ |
5667 | conftest$ac_exeext conftest.$ac_ext | |
5668 | fi | |
4e8d927d DJ |
5669 | { echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
5670 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6; } | |
bec39cab AC |
5671 | |
5672 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
4e8d927d DJ |
5673 | { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
5674 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; } | |
bec39cab AC |
5675 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then |
5676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5677 | else | |
5678 | ac_check_lib_save_LIBS=$LIBS | |
5679 | LIBS="-lintl $LIBS" | |
5680 | cat >conftest.$ac_ext <<_ACEOF | |
5681 | /* confdefs.h. */ | |
5682 | _ACEOF | |
5683 | cat confdefs.h >>conftest.$ac_ext | |
5684 | cat >>conftest.$ac_ext <<_ACEOF | |
5685 | /* end confdefs.h. */ | |
5686 | ||
4e8d927d DJ |
5687 | /* Override any GCC internal prototype to avoid an error. |
5688 | Use char because int might match the return type of a GCC | |
5689 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5690 | #ifdef __cplusplus |
5691 | extern "C" | |
5692 | #endif | |
bec39cab AC |
5693 | char bindtextdomain (); |
5694 | int | |
5695 | main () | |
5696 | { | |
4e8d927d | 5697 | return bindtextdomain (); |
bec39cab AC |
5698 | ; |
5699 | return 0; | |
5700 | } | |
5701 | _ACEOF | |
5702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5704 | (eval $ac_link) 2>conftest.er1 | |
5705 | ac_status=$? | |
5706 | grep -v '^ *+' conftest.er1 >conftest.err | |
5707 | rm -f conftest.er1 | |
5708 | cat conftest.err >&5 | |
5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5710 | (exit $ac_status); } && | |
121ce6e5 | 5711 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5713 | (eval $ac_try) 2>&5 | |
5714 | ac_status=$? | |
5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5716 | (exit $ac_status); }; } && | |
5717 | { ac_try='test -s conftest$ac_exeext' | |
5718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5719 | (eval $ac_try) 2>&5 | |
5720 | ac_status=$? | |
5721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5722 | (exit $ac_status); }; }; then | |
5723 | ac_cv_lib_intl_bindtextdomain=yes | |
5724 | else | |
5725 | echo "$as_me: failed program was:" >&5 | |
5726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5727 | ||
4e8d927d | 5728 | ac_cv_lib_intl_bindtextdomain=no |
bec39cab | 5729 | fi |
4e8d927d | 5730 | |
bec39cab AC |
5731 | rm -f conftest.err conftest.$ac_objext \ |
5732 | conftest$ac_exeext conftest.$ac_ext | |
5733 | LIBS=$ac_check_lib_save_LIBS | |
5734 | fi | |
4e8d927d DJ |
5735 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 |
5736 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; } | |
bec39cab | 5737 | if test $ac_cv_lib_intl_bindtextdomain = yes; then |
4e8d927d DJ |
5738 | { echo "$as_me:$LINENO: checking for gettext in libintl" >&5 |
5739 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6; } | |
bec39cab AC |
5740 | if test "${gt_cv_func_gettext_libintl+set}" = set; then |
5741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5742 | else | |
5743 | cat >conftest.$ac_ext <<_ACEOF | |
5744 | /* confdefs.h. */ | |
5745 | _ACEOF | |
5746 | cat confdefs.h >>conftest.$ac_ext | |
5747 | cat >>conftest.$ac_ext <<_ACEOF | |
5748 | /* end confdefs.h. */ | |
5749 | ||
5750 | int | |
5751 | main () | |
5752 | { | |
5753 | return (int) gettext ("") | |
5754 | ; | |
5755 | return 0; | |
5756 | } | |
5757 | _ACEOF | |
5758 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5760 | (eval $ac_link) 2>conftest.er1 | |
5761 | ac_status=$? | |
5762 | grep -v '^ *+' conftest.er1 >conftest.err | |
5763 | rm -f conftest.er1 | |
5764 | cat conftest.err >&5 | |
5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5766 | (exit $ac_status); } && | |
121ce6e5 | 5767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5769 | (eval $ac_try) 2>&5 | |
5770 | ac_status=$? | |
5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5772 | (exit $ac_status); }; } && | |
5773 | { ac_try='test -s conftest$ac_exeext' | |
5774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5775 | (eval $ac_try) 2>&5 | |
5776 | ac_status=$? | |
5777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5778 | (exit $ac_status); }; }; then | |
5779 | gt_cv_func_gettext_libintl=yes | |
5780 | else | |
5781 | echo "$as_me: failed program was:" >&5 | |
5782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5783 | ||
4e8d927d | 5784 | gt_cv_func_gettext_libintl=no |
bec39cab | 5785 | fi |
4e8d927d | 5786 | |
bec39cab AC |
5787 | rm -f conftest.err conftest.$ac_objext \ |
5788 | conftest$ac_exeext conftest.$ac_ext | |
5789 | fi | |
4e8d927d DJ |
5790 | { echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5791 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6; } | |
bec39cab AC |
5792 | fi |
5793 | ||
5794 | fi | |
5795 | ||
5796 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5797 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5798 | ||
5799 | cat >>confdefs.h <<\_ACEOF | |
5800 | #define HAVE_GETTEXT 1 | |
5801 | _ACEOF | |
5802 | ||
5803 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5804 | set dummy msgfmt; ac_word=$2 | |
4e8d927d DJ |
5805 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
5807 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
5808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5809 | else | |
5810 | case "$MSGFMT" in | |
5811 | /*) | |
5812 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5813 | ;; | |
5814 | *) | |
5815 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5816 | for ac_dir in $PATH; do | |
5817 | test -z "$ac_dir" && ac_dir=. | |
5818 | if test -f $ac_dir/$ac_word; then | |
5819 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5820 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5821 | break | |
5822 | fi | |
5823 | fi | |
5824 | done | |
5825 | IFS="$ac_save_ifs" | |
5826 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5827 | ;; | |
5828 | esac | |
5829 | fi | |
5830 | MSGFMT="$ac_cv_path_MSGFMT" | |
5831 | if test -n "$MSGFMT"; then | |
4e8d927d DJ |
5832 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5833 | echo "${ECHO_T}$MSGFMT" >&6; } | |
bec39cab | 5834 | else |
4e8d927d DJ |
5835 | { echo "$as_me:$LINENO: result: no" >&5 |
5836 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
5837 | fi |
5838 | if test "$MSGFMT" != "no"; then | |
5839 | ||
5840 | for ac_func in dcgettext | |
5841 | do | |
5842 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
5843 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5844 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5845 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5847 | else | |
5848 | cat >conftest.$ac_ext <<_ACEOF | |
5849 | /* confdefs.h. */ | |
5850 | _ACEOF | |
5851 | cat confdefs.h >>conftest.$ac_ext | |
5852 | cat >>conftest.$ac_ext <<_ACEOF | |
5853 | /* end confdefs.h. */ | |
5854 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5855 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5856 | #define $ac_func innocuous_$ac_func | |
5857 | ||
5858 | /* System header to define __stub macros and hopefully few prototypes, | |
5859 | which can conflict with char $ac_func (); below. | |
5860 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5861 | <limits.h> exists even on freestanding compilers. */ | |
5862 | ||
5863 | #ifdef __STDC__ | |
5864 | # include <limits.h> | |
5865 | #else | |
5866 | # include <assert.h> | |
5867 | #endif | |
5868 | ||
5869 | #undef $ac_func | |
5870 | ||
4e8d927d DJ |
5871 | /* Override any GCC internal prototype to avoid an error. |
5872 | Use char because int might match the return type of a GCC | |
5873 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5874 | #ifdef __cplusplus |
5875 | extern "C" | |
bec39cab | 5876 | #endif |
bec39cab AC |
5877 | char $ac_func (); |
5878 | /* The GNU C library defines this for functions which it implements | |
5879 | to always fail with ENOSYS. Some functions are actually named | |
5880 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 5881 | #if defined __stub_$ac_func || defined __stub___$ac_func |
bec39cab | 5882 | choke me |
bec39cab AC |
5883 | #endif |
5884 | ||
5885 | int | |
5886 | main () | |
5887 | { | |
4e8d927d | 5888 | return $ac_func (); |
bec39cab AC |
5889 | ; |
5890 | return 0; | |
5891 | } | |
5892 | _ACEOF | |
5893 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5894 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5895 | (eval $ac_link) 2>conftest.er1 | |
5896 | ac_status=$? | |
5897 | grep -v '^ *+' conftest.er1 >conftest.err | |
5898 | rm -f conftest.er1 | |
5899 | cat conftest.err >&5 | |
5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5901 | (exit $ac_status); } && | |
121ce6e5 | 5902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5904 | (eval $ac_try) 2>&5 | |
5905 | ac_status=$? | |
5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5907 | (exit $ac_status); }; } && | |
5908 | { ac_try='test -s conftest$ac_exeext' | |
5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5910 | (eval $ac_try) 2>&5 | |
5911 | ac_status=$? | |
5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5913 | (exit $ac_status); }; }; then | |
5914 | eval "$as_ac_var=yes" | |
5915 | else | |
5916 | echo "$as_me: failed program was:" >&5 | |
5917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5918 | ||
4e8d927d | 5919 | eval "$as_ac_var=no" |
bec39cab | 5920 | fi |
4e8d927d | 5921 | |
bec39cab AC |
5922 | rm -f conftest.err conftest.$ac_objext \ |
5923 | conftest$ac_exeext conftest.$ac_ext | |
5924 | fi | |
4e8d927d DJ |
5925 | ac_res=`eval echo '${'$as_ac_var'}'` |
5926 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5927 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
5928 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
5929 | cat >>confdefs.h <<_ACEOF | |
5930 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5931 | _ACEOF | |
5932 | ||
5933 | fi | |
5934 | done | |
5935 | ||
5936 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5937 | set dummy gmsgfmt; ac_word=$2 | |
4e8d927d DJ |
5938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
5940 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
5941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5942 | else | |
5943 | case $GMSGFMT in | |
5944 | [\\/]* | ?:[\\/]*) | |
5945 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5946 | ;; | |
5947 | *) | |
5948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5949 | for as_dir in $PATH | |
5950 | do | |
5951 | IFS=$as_save_IFS | |
5952 | test -z "$as_dir" && as_dir=. | |
5953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 5954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
5955 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
5956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5957 | break 2 | |
5958 | fi | |
5959 | done | |
5960 | done | |
4e8d927d | 5961 | IFS=$as_save_IFS |
bec39cab AC |
5962 | |
5963 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5964 | ;; | |
5965 | esac | |
5966 | fi | |
5967 | GMSGFMT=$ac_cv_path_GMSGFMT | |
bec39cab | 5968 | if test -n "$GMSGFMT"; then |
4e8d927d DJ |
5969 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5970 | echo "${ECHO_T}$GMSGFMT" >&6; } | |
bec39cab | 5971 | else |
4e8d927d DJ |
5972 | { echo "$as_me:$LINENO: result: no" >&5 |
5973 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
5974 | fi |
5975 | ||
4e8d927d | 5976 | |
bec39cab AC |
5977 | # Extract the first word of "xgettext", so it can be a program name with args. |
5978 | set dummy xgettext; ac_word=$2 | |
4e8d927d DJ |
5979 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
5981 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
5982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5983 | else | |
5984 | case "$XGETTEXT" in | |
5985 | /*) | |
5986 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5987 | ;; | |
5988 | *) | |
5989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5990 | for ac_dir in $PATH; do | |
5991 | test -z "$ac_dir" && ac_dir=. | |
5992 | if test -f $ac_dir/$ac_word; then | |
5993 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5994 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5995 | break | |
5996 | fi | |
5997 | fi | |
5998 | done | |
5999 | IFS="$ac_save_ifs" | |
6000 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6001 | ;; | |
6002 | esac | |
6003 | fi | |
6004 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6005 | if test -n "$XGETTEXT"; then | |
4e8d927d DJ |
6006 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
6007 | echo "${ECHO_T}$XGETTEXT" >&6; } | |
bec39cab | 6008 | else |
4e8d927d DJ |
6009 | { echo "$as_me:$LINENO: result: no" >&5 |
6010 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
6011 | fi |
6012 | ||
6013 | cat >conftest.$ac_ext <<_ACEOF | |
6014 | /* confdefs.h. */ | |
6015 | _ACEOF | |
6016 | cat confdefs.h >>conftest.$ac_ext | |
6017 | cat >>conftest.$ac_ext <<_ACEOF | |
6018 | /* end confdefs.h. */ | |
6019 | ||
6020 | int | |
6021 | main () | |
6022 | { | |
6023 | extern int _nl_msg_cat_cntr; | |
6024 | return _nl_msg_cat_cntr | |
6025 | ; | |
6026 | return 0; | |
6027 | } | |
6028 | _ACEOF | |
6029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6031 | (eval $ac_link) 2>conftest.er1 | |
6032 | ac_status=$? | |
6033 | grep -v '^ *+' conftest.er1 >conftest.err | |
6034 | rm -f conftest.er1 | |
6035 | cat conftest.err >&5 | |
6036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6037 | (exit $ac_status); } && | |
121ce6e5 | 6038 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6040 | (eval $ac_try) 2>&5 | |
6041 | ac_status=$? | |
6042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6043 | (exit $ac_status); }; } && | |
6044 | { ac_try='test -s conftest$ac_exeext' | |
6045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6046 | (eval $ac_try) 2>&5 | |
6047 | ac_status=$? | |
6048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6049 | (exit $ac_status); }; }; then | |
6050 | CATOBJEXT=.gmo | |
6051 | DATADIRNAME=share | |
6052 | else | |
6053 | echo "$as_me: failed program was:" >&5 | |
6054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6055 | ||
4e8d927d | 6056 | CATOBJEXT=.mo |
bec39cab AC |
6057 | DATADIRNAME=lib |
6058 | fi | |
4e8d927d | 6059 | |
bec39cab AC |
6060 | rm -f conftest.err conftest.$ac_objext \ |
6061 | conftest$ac_exeext conftest.$ac_ext | |
6062 | INSTOBJEXT=.mo | |
6063 | fi | |
6064 | fi | |
6065 | ||
6066 | fi | |
6067 | ||
6068 | ||
6069 | ||
6070 | ||
a53bf506 | 6071 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
6072 | # Neither gettext nor catgets in included in the C library. |
6073 | # Fall back on GNU gettext library (assuming it is present). | |
6074 | nls_cv_use_gnu_gettext=yes | |
bec39cab AC |
6075 | fi |
6076 | fi | |
6077 | ||
6078 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6079 | INTLOBJS="\$(GETTOBJS)" | |
6080 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6081 | set dummy msgfmt; ac_word=$2 | |
4e8d927d DJ |
6082 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
6084 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
6085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6086 | else | |
6087 | case "$MSGFMT" in | |
6088 | /*) | |
6089 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6090 | ;; | |
6091 | *) | |
6092 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6093 | for ac_dir in $PATH; do | |
6094 | test -z "$ac_dir" && ac_dir=. | |
6095 | if test -f $ac_dir/$ac_word; then | |
6096 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6097 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6098 | break | |
6099 | fi | |
6100 | fi | |
6101 | done | |
6102 | IFS="$ac_save_ifs" | |
6103 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
6104 | ;; | |
6105 | esac | |
6106 | fi | |
6107 | MSGFMT="$ac_cv_path_MSGFMT" | |
6108 | if test -n "$MSGFMT"; then | |
4e8d927d DJ |
6109 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
6110 | echo "${ECHO_T}$MSGFMT" >&6; } | |
bec39cab | 6111 | else |
4e8d927d DJ |
6112 | { echo "$as_me:$LINENO: result: no" >&5 |
6113 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
6114 | fi |
6115 | ||
6116 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
c906108c | 6117 | set dummy gmsgfmt; ac_word=$2 |
4e8d927d DJ |
6118 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
6120 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6122 | else | |
6123 | case $GMSGFMT in | |
6124 | [\\/]* | ?:[\\/]*) | |
6125 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6126 | ;; | |
6127 | *) | |
6128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6129 | for as_dir in $PATH | |
6130 | do | |
6131 | IFS=$as_save_IFS | |
6132 | test -z "$as_dir" && as_dir=. | |
6133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 6134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
6135 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
6136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6137 | break 2 | |
6138 | fi | |
6139 | done | |
6140 | done | |
4e8d927d | 6141 | IFS=$as_save_IFS |
bec39cab AC |
6142 | |
6143 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
6144 | ;; | |
6145 | esac | |
6146 | fi | |
6147 | GMSGFMT=$ac_cv_path_GMSGFMT | |
bec39cab | 6148 | if test -n "$GMSGFMT"; then |
4e8d927d DJ |
6149 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
6150 | echo "${ECHO_T}$GMSGFMT" >&6; } | |
bec39cab | 6151 | else |
4e8d927d DJ |
6152 | { echo "$as_me:$LINENO: result: no" >&5 |
6153 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
6154 | fi |
6155 | ||
4e8d927d | 6156 | |
bec39cab AC |
6157 | # Extract the first word of "xgettext", so it can be a program name with args. |
6158 | set dummy xgettext; ac_word=$2 | |
4e8d927d DJ |
6159 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
6161 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
6162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6163 | else | |
6164 | case "$XGETTEXT" in | |
6165 | /*) | |
6166 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6167 | ;; | |
6168 | *) | |
6169 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6170 | for ac_dir in $PATH; do | |
6171 | test -z "$ac_dir" && ac_dir=. | |
6172 | if test -f $ac_dir/$ac_word; then | |
6173 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6174 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6175 | break | |
6176 | fi | |
6177 | fi | |
6178 | done | |
6179 | IFS="$ac_save_ifs" | |
6180 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6181 | ;; | |
6182 | esac | |
6183 | fi | |
6184 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6185 | if test -n "$XGETTEXT"; then | |
4e8d927d DJ |
6186 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
6187 | echo "${ECHO_T}$XGETTEXT" >&6; } | |
bec39cab | 6188 | else |
4e8d927d DJ |
6189 | { echo "$as_me:$LINENO: result: no" >&5 |
6190 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
6191 | fi |
6192 | ||
6193 | ||
6194 | USE_INCLUDED_LIBINTL=yes | |
6195 | CATOBJEXT=.gmo | |
6196 | INSTOBJEXT=.mo | |
6197 | DATADIRNAME=share | |
6198 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
6199 | INTLLIBS=$INTLDEPS | |
6200 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
6201 | nls_cv_header_intl=libintl.h | |
6202 | nls_cv_header_libgt=libgettext.h | |
6203 | fi | |
6204 | ||
6205 | if test "$XGETTEXT" != ":"; then | |
6206 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
6207 | : ; | |
6208 | else | |
4e8d927d DJ |
6209 | { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
6210 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; } | |
bec39cab AC |
6211 | XGETTEXT=":" |
6212 | fi | |
6213 | fi | |
6214 | ||
6215 | # We need to process the po/ directory. | |
6216 | POSUB=po | |
6217 | else | |
6218 | DATADIRNAME=share | |
6219 | nls_cv_header_intl=libintl.h | |
6220 | nls_cv_header_libgt=libgettext.h | |
6221 | fi | |
6222 | ||
6223 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
6224 | # because some of the sources are only built for this goal. | |
6225 | if test "$PACKAGE" = gettext; then | |
6226 | USE_NLS=yes | |
6227 | USE_INCLUDED_LIBINTL=yes | |
6228 | fi | |
6229 | ||
6230 | for lang in $ALL_LINGUAS; do | |
6231 | GMOFILES="$GMOFILES $lang.gmo" | |
6232 | POFILES="$POFILES $lang.po" | |
6233 | done | |
6234 | ||
6235 | ||
6236 | ||
6237 | ||
6238 | ||
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | ||
c46f8c51 AC |
6246 | if test "x$CATOBJEXT" != "x"; then |
6247 | ||
6248 | cat >>confdefs.h <<\_ACEOF | |
6249 | #define ENABLE_NLS 1 | |
6250 | _ACEOF | |
6251 | ||
6252 | fi | |
bec39cab AC |
6253 | |
6254 | ||
6255 | if test "x$CATOBJEXT" != "x"; then | |
6256 | if test "x$ALL_LINGUAS" = "x"; then | |
6257 | LINGUAS= | |
6258 | else | |
4e8d927d DJ |
6259 | { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
6260 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } | |
bec39cab AC |
6261 | NEW_LINGUAS= |
6262 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
6263 | case "$ALL_LINGUAS" in | |
6264 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
6265 | esac | |
6266 | done | |
6267 | LINGUAS=$NEW_LINGUAS | |
4e8d927d DJ |
6268 | { echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
6269 | echo "${ECHO_T}$LINGUAS" >&6; } | |
bec39cab AC |
6270 | fi |
6271 | ||
6272 | if test -n "$LINGUAS"; then | |
6273 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
6274 | fi | |
6275 | fi | |
6276 | ||
6277 | if test $ac_cv_header_locale_h = yes; then | |
6278 | INCLUDE_LOCALE_H="#include <locale.h>" | |
6279 | else | |
6280 | INCLUDE_LOCALE_H="\ | |
6281 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
6282 | fi | |
6283 | ||
6284 | ||
6285 | if test -f $srcdir/po2tbl.sed.in; then | |
6286 | if test "$CATOBJEXT" = ".cat"; then | |
6287 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
4e8d927d DJ |
6288 | { echo "$as_me:$LINENO: checking for linux/version.h" >&5 |
6289 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; } | |
bec39cab AC |
6290 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
6291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6292 | fi | |
4e8d927d DJ |
6293 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
6294 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; } | |
bec39cab AC |
6295 | else |
6296 | # Is the header compilable? | |
4e8d927d DJ |
6297 | { echo "$as_me:$LINENO: checking linux/version.h usability" >&5 |
6298 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; } | |
bec39cab AC |
6299 | cat >conftest.$ac_ext <<_ACEOF |
6300 | /* confdefs.h. */ | |
6301 | _ACEOF | |
6302 | cat confdefs.h >>conftest.$ac_ext | |
6303 | cat >>conftest.$ac_ext <<_ACEOF | |
6304 | /* end confdefs.h. */ | |
6305 | $ac_includes_default | |
6306 | #include <linux/version.h> | |
6307 | _ACEOF | |
6308 | rm -f conftest.$ac_objext | |
6309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6310 | (eval $ac_compile) 2>conftest.er1 | |
6311 | ac_status=$? | |
6312 | grep -v '^ *+' conftest.er1 >conftest.err | |
6313 | rm -f conftest.er1 | |
6314 | cat conftest.err >&5 | |
6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6316 | (exit $ac_status); } && | |
121ce6e5 | 6317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6319 | (eval $ac_try) 2>&5 | |
6320 | ac_status=$? | |
6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6322 | (exit $ac_status); }; } && | |
6323 | { ac_try='test -s conftest.$ac_objext' | |
6324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6325 | (eval $ac_try) 2>&5 | |
6326 | ac_status=$? | |
6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6328 | (exit $ac_status); }; }; then | |
6329 | ac_header_compiler=yes | |
6330 | else | |
6331 | echo "$as_me: failed program was:" >&5 | |
6332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6333 | ||
4e8d927d | 6334 | ac_header_compiler=no |
bec39cab | 6335 | fi |
4e8d927d | 6336 | |
bec39cab | 6337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
6338 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6339 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
6340 | |
6341 | # Is the header present? | |
4e8d927d DJ |
6342 | { echo "$as_me:$LINENO: checking linux/version.h presence" >&5 |
6343 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; } | |
bec39cab AC |
6344 | cat >conftest.$ac_ext <<_ACEOF |
6345 | /* confdefs.h. */ | |
6346 | _ACEOF | |
6347 | cat confdefs.h >>conftest.$ac_ext | |
6348 | cat >>conftest.$ac_ext <<_ACEOF | |
6349 | /* end confdefs.h. */ | |
6350 | #include <linux/version.h> | |
6351 | _ACEOF | |
6352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6354 | ac_status=$? | |
6355 | grep -v '^ *+' conftest.er1 >conftest.err | |
6356 | rm -f conftest.er1 | |
6357 | cat conftest.err >&5 | |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6359 | (exit $ac_status); } >/dev/null; then | |
6360 | if test -s conftest.err; then | |
6361 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6363 | else | |
6364 | ac_cpp_err= | |
6365 | fi | |
6366 | else | |
6367 | ac_cpp_err=yes | |
6368 | fi | |
6369 | if test -z "$ac_cpp_err"; then | |
6370 | ac_header_preproc=yes | |
6371 | else | |
6372 | echo "$as_me: failed program was:" >&5 | |
6373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6374 | ||
6375 | ac_header_preproc=no | |
6376 | fi | |
4e8d927d | 6377 | |
bec39cab | 6378 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
6379 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6380 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
6381 | |
6382 | # So? What about this header? | |
6383 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6384 | yes:no: ) | |
6385 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6386 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6387 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
6388 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
6389 | ac_header_preproc=yes | |
6390 | ;; | |
6391 | no:yes:* ) | |
6392 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
6393 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
6394 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
6395 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
6396 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
6397 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
6398 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6399 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6400 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
6401 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
6402 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
6403 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 6404 | |
bec39cab AC |
6405 | ;; |
6406 | esac | |
4e8d927d DJ |
6407 | { echo "$as_me:$LINENO: checking for linux/version.h" >&5 |
6408 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; } | |
bec39cab AC |
6409 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
6410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6411 | else | |
6412 | ac_cv_header_linux_version_h=$ac_header_preproc | |
6413 | fi | |
4e8d927d DJ |
6414 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
6415 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; } | |
bec39cab AC |
6416 | |
6417 | fi | |
6418 | if test $ac_cv_header_linux_version_h = yes; then | |
6419 | msgformat=linux | |
6420 | else | |
6421 | msgformat=xopen | |
6422 | fi | |
6423 | ||
6424 | ||
6425 | ||
6426 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
6427 | fi | |
6428 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
6429 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
6430 | fi | |
6431 | ||
6432 | if test "$PACKAGE" = "gettext"; then | |
6433 | GT_NO="#NO#" | |
6434 | GT_YES= | |
6435 | else | |
6436 | GT_NO= | |
6437 | GT_YES="#YES#" | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | ||
6442 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
6443 | ||
6444 | ||
6445 | l= | |
6446 | ||
6447 | ||
6448 | if test -f $srcdir/po/POTFILES.in; then | |
6449 | test -d po || mkdir po | |
6450 | if test "x$srcdir" != "x."; then | |
6451 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
6452 | posrcprefix="$srcdir/" | |
6453 | else | |
6454 | posrcprefix="../$srcdir/" | |
6455 | fi | |
6456 | else | |
6457 | posrcprefix="../" | |
6458 | fi | |
6459 | rm -f po/POTFILES | |
6460 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
6461 | < $srcdir/po/POTFILES.in > po/POTFILES | |
6462 | fi | |
6463 | ||
6464 | ||
6465 | localedir='${datadir}/locale' | |
6466 | ||
6467 | ||
6468 | if test "x$POSUB" != x; then | |
6469 | ||
4e8d927d DJ |
6470 | { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
6471 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; } | |
bec39cab AC |
6472 | # Look for .po and .gmo files in the source directory. |
6473 | CATALOGS= | |
6474 | XLINGUAS= | |
6475 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
6476 | # If there aren't any .gmo files the shell will give us the | |
6477 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
6478 | # weeded out. | |
6479 | case "$cat" in *\**) | |
6480 | continue;; | |
6481 | esac | |
6482 | # The quadruple backslash is collapsed to a double backslash | |
6483 | # by the backticks, then collapsed again by the double quotes, | |
6484 | # leaving us with one backslash in the sed expression (right | |
6485 | # before the dot that mustn't act as a wildcard). | |
6486 | cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"` | |
6487 | lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"` | |
6488 | # The user is allowed to set LINGUAS to a list of languages to | |
6489 | # install catalogs for. If it's empty that means "all of them." | |
6490 | if test "x$LINGUAS" = x; then | |
6491 | CATALOGS="$CATALOGS $cat" | |
6492 | XLINGUAS="$XLINGUAS $lang" | |
6493 | else | |
6494 | case "$LINGUAS" in *$lang*) | |
6495 | CATALOGS="$CATALOGS $cat" | |
6496 | XLINGUAS="$XLINGUAS $lang" | |
6497 | ;; | |
6498 | esac | |
6499 | fi | |
6500 | done | |
6501 | LINGUAS="$XLINGUAS" | |
4e8d927d DJ |
6502 | { echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
6503 | echo "${ECHO_T}$LINGUAS" >&6; } | |
bec39cab AC |
6504 | |
6505 | CONFIG_ALL="$CONFIG_ALL all-po" | |
6506 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
6507 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
6508 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
6509 | fi | |
6510 | ||
6511 | PACKAGE=gdb | |
6512 | ||
6513 | cat >>confdefs.h <<_ACEOF | |
6514 | #define PACKAGE "$PACKAGE" | |
6515 | _ACEOF | |
6516 | ||
6517 | ||
6518 | ||
6519 | debugdir=${libdir}/debug | |
6520 | ||
6521 | ||
4e8d927d | 6522 | # Check whether --with-separate-debug-dir was given. |
bec39cab | 6523 | if test "${with_separate_debug_dir+set}" = set; then |
4e8d927d DJ |
6524 | withval=$with_separate_debug_dir; debugdir="${withval}" |
6525 | fi | |
6526 | ||
bec39cab AC |
6527 | |
6528 | ||
6529 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
6530 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6531 | ac_define_dir=`eval echo $debugdir` | |
6532 | ac_define_dir=`eval echo $ac_define_dir` | |
6533 | ||
6534 | cat >>confdefs.h <<_ACEOF | |
6535 | #define DEBUGDIR "$ac_define_dir" | |
6536 | _ACEOF | |
6537 | ||
6538 | ||
6539 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
6540 | ||
bec39cab AC |
6541 | subdirs="$subdirs doc testsuite" |
6542 | ||
6543 | ||
121ce6e5 DJ |
6544 | # Provide defaults for some variables set by the per-host and per-target |
6545 | # configuration. | |
6546 | gdb_host_obs=posix-hdep.o | |
6547 | ||
bec39cab AC |
6548 | . $srcdir/configure.host |
6549 | ||
6550 | . $srcdir/configure.tgt | |
6551 | ||
6552 | # Fetch the default architecture and default target vector from BFD. | |
6553 | targ=$target; . $srcdir/../bfd/config.bfd | |
6554 | ||
6555 | # We only want the first architecture, so strip off the others if | |
6556 | # there is more than one. | |
6557 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
6558 | ||
6559 | if test "x$targ_archs" != x; then | |
6560 | ||
6561 | cat >>confdefs.h <<_ACEOF | |
6562 | #define DEFAULT_BFD_ARCH $targ_archs | |
6563 | _ACEOF | |
6564 | ||
6565 | fi | |
6566 | if test "x$targ_defvec" != x; then | |
6567 | ||
6568 | cat >>confdefs.h <<_ACEOF | |
6569 | #define DEFAULT_BFD_VEC $targ_defvec | |
6570 | _ACEOF | |
6571 | ||
6572 | fi | |
6573 | ||
6574 | test "$program_prefix" != NONE && | |
4e8d927d | 6575 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bec39cab AC |
6576 | # Use a double $ so make ignores it. |
6577 | test "$program_suffix" != NONE && | |
4e8d927d | 6578 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
bec39cab AC |
6579 | # Double any \ or $. echo might interpret backslashes. |
6580 | # By default was `s,x,x', remove it if useless. | |
6581 | cat <<\_ACEOF >conftest.sed | |
6582 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6583 | _ACEOF | |
6584 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
4e8d927d | 6585 | rm -f conftest.sed |
bec39cab AC |
6586 | |
6587 | ||
6588 | # The CLI cannot be disabled yet, but may be in the future. | |
6589 | ||
6590 | # Enable CLI. | |
4e8d927d | 6591 | # Check whether --enable-gdbcli was given. |
bec39cab | 6592 | if test "${enable_gdbcli+set}" = set; then |
4e8d927d | 6593 | enableval=$enable_gdbcli; case $enableval in |
bec39cab AC |
6594 | yes) |
6595 | ;; | |
6596 | no) | |
6597 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
6598 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
6599 | { (exit 1); exit 1; }; } ;; | |
6600 | *) | |
6601 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
6602 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
6603 | { (exit 1); exit 1; }; } ;; | |
6604 | esac | |
6605 | else | |
6606 | enable_gdbcli=yes | |
4e8d927d DJ |
6607 | fi |
6608 | ||
bec39cab AC |
6609 | if test x"$enable_gdbcli" = xyes; then |
6610 | if test -d $srcdir/cli; then | |
6611 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
6612 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
6613 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
6614 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
6615 | fi | |
6616 | fi | |
6617 | ||
6618 | # Enable MI. | |
4e8d927d | 6619 | # Check whether --enable-gdbmi was given. |
bec39cab | 6620 | if test "${enable_gdbmi+set}" = set; then |
4e8d927d | 6621 | enableval=$enable_gdbmi; case $enableval in |
bec39cab AC |
6622 | yes | no) |
6623 | ;; | |
6624 | *) | |
6625 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
6626 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
6627 | { (exit 1); exit 1; }; } ;; | |
6628 | esac | |
6629 | else | |
6630 | enable_gdbmi=yes | |
4e8d927d DJ |
6631 | fi |
6632 | ||
bec39cab AC |
6633 | if test x"$enable_gdbmi" = xyes; then |
6634 | if test -d $srcdir/mi; then | |
6635 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
6636 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
6637 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
6638 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
6639 | fi | |
6640 | fi | |
6641 | ||
6642 | # Enable TUI. | |
4e8d927d | 6643 | # Check whether --enable-tui was given. |
bec39cab | 6644 | if test "${enable_tui+set}" = set; then |
4e8d927d | 6645 | enableval=$enable_tui; case $enableval in |
bec39cab AC |
6646 | yes | no) |
6647 | ;; | |
6648 | *) | |
6649 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
6650 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
6651 | { (exit 1); exit 1; }; } ;; | |
6652 | esac | |
6653 | else | |
6654 | enable_tui=yes | |
4e8d927d DJ |
6655 | fi |
6656 | ||
bec39cab AC |
6657 | |
6658 | # Enable gdbtk. | |
4e8d927d | 6659 | # Check whether --enable-gdbtk was given. |
bec39cab | 6660 | if test "${enable_gdbtk+set}" = set; then |
4e8d927d | 6661 | enableval=$enable_gdbtk; case $enableval in |
bec39cab AC |
6662 | yes | no) |
6663 | ;; | |
6664 | *) | |
6665 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
6666 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
6667 | { (exit 1); exit 1; }; } ;; | |
6668 | esac | |
6669 | else | |
04ac69aa | 6670 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
6671 | enable_gdbtk=yes |
6672 | else | |
6673 | enable_gdbtk=no | |
6674 | fi | |
4e8d927d DJ |
6675 | fi |
6676 | ||
bec39cab AC |
6677 | # We unconditionally disable gdbtk tests on selected platforms. |
6678 | case $host_os in | |
6679 | go32* | windows*) | |
6680 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
6681 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
6682 | enable_gdbtk=no ;; | |
6683 | esac | |
6684 | ||
6685 | # Libunwind support. | |
6686 | ||
4e8d927d | 6687 | # Check whether --with-libunwind was given. |
bec39cab | 6688 | if test "${with_libunwind+set}" = set; then |
4e8d927d | 6689 | withval=$with_libunwind; case "${withval}" in |
bec39cab AC |
6690 | yes) enable_libunwind=yes ;; |
6691 | no) enable_libunwind=no ;; | |
6692 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
6693 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
6694 | { (exit 1); exit 1; }; } ;; | |
6695 | esac | |
6696 | else | |
6697 | ||
6698 | ||
6699 | for ac_header in libunwind.h | |
6700 | do | |
6701 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
6702 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6703 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6705 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
6706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6707 | fi | |
4e8d927d DJ |
6708 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6709 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6710 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
6711 | else |
6712 | # Is the header compilable? | |
4e8d927d DJ |
6713 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6714 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
6715 | cat >conftest.$ac_ext <<_ACEOF |
6716 | /* confdefs.h. */ | |
6717 | _ACEOF | |
6718 | cat confdefs.h >>conftest.$ac_ext | |
6719 | cat >>conftest.$ac_ext <<_ACEOF | |
6720 | /* end confdefs.h. */ | |
6721 | $ac_includes_default | |
6722 | #include <$ac_header> | |
6723 | _ACEOF | |
6724 | rm -f conftest.$ac_objext | |
6725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6726 | (eval $ac_compile) 2>conftest.er1 | |
6727 | ac_status=$? | |
6728 | grep -v '^ *+' conftest.er1 >conftest.err | |
6729 | rm -f conftest.er1 | |
6730 | cat conftest.err >&5 | |
6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6732 | (exit $ac_status); } && | |
121ce6e5 | 6733 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6735 | (eval $ac_try) 2>&5 | |
6736 | ac_status=$? | |
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6738 | (exit $ac_status); }; } && | |
6739 | { ac_try='test -s conftest.$ac_objext' | |
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6741 | (eval $ac_try) 2>&5 | |
6742 | ac_status=$? | |
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6744 | (exit $ac_status); }; }; then | |
6745 | ac_header_compiler=yes | |
6746 | else | |
6747 | echo "$as_me: failed program was:" >&5 | |
6748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6749 | ||
4e8d927d | 6750 | ac_header_compiler=no |
bec39cab | 6751 | fi |
4e8d927d | 6752 | |
bec39cab | 6753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
6754 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6755 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
6756 | |
6757 | # Is the header present? | |
4e8d927d DJ |
6758 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6759 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
6760 | cat >conftest.$ac_ext <<_ACEOF |
6761 | /* confdefs.h. */ | |
6762 | _ACEOF | |
6763 | cat confdefs.h >>conftest.$ac_ext | |
6764 | cat >>conftest.$ac_ext <<_ACEOF | |
6765 | /* end confdefs.h. */ | |
6766 | #include <$ac_header> | |
6767 | _ACEOF | |
6768 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6769 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6770 | ac_status=$? | |
6771 | grep -v '^ *+' conftest.er1 >conftest.err | |
6772 | rm -f conftest.er1 | |
6773 | cat conftest.err >&5 | |
6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6775 | (exit $ac_status); } >/dev/null; then | |
6776 | if test -s conftest.err; then | |
6777 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6778 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6779 | else | |
6780 | ac_cpp_err= | |
6781 | fi | |
6782 | else | |
6783 | ac_cpp_err=yes | |
6784 | fi | |
6785 | if test -z "$ac_cpp_err"; then | |
6786 | ac_header_preproc=yes | |
6787 | else | |
6788 | echo "$as_me: failed program was:" >&5 | |
6789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6790 | ||
6791 | ac_header_preproc=no | |
6792 | fi | |
4e8d927d | 6793 | |
bec39cab | 6794 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
6795 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6796 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
6797 | |
6798 | # So? What about this header? | |
6799 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6800 | yes:no: ) | |
6801 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6802 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6803 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6804 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6805 | ac_header_preproc=yes | |
6806 | ;; | |
6807 | no:yes:* ) | |
6808 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6809 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6810 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6811 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6812 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6813 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6814 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6815 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6818 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6819 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 6820 | |
bec39cab AC |
6821 | ;; |
6822 | esac | |
4e8d927d DJ |
6823 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6824 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6825 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6827 | else | |
6828 | eval "$as_ac_Header=\$ac_header_preproc" | |
6829 | fi | |
4e8d927d DJ |
6830 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6832 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
6833 | |
6834 | fi | |
6835 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6836 | cat >>confdefs.h <<_ACEOF | |
6837 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6838 | _ACEOF | |
6839 | ||
6840 | fi | |
6841 | ||
6842 | done | |
6843 | ||
6844 | ||
6845 | for ac_header in libunwind-ia64.h | |
6846 | do | |
6847 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
6848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6849 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6850 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6851 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
6852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6853 | fi | |
4e8d927d DJ |
6854 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6856 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
6857 | else |
6858 | # Is the header compilable? | |
4e8d927d DJ |
6859 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6860 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
6861 | cat >conftest.$ac_ext <<_ACEOF |
6862 | /* confdefs.h. */ | |
6863 | _ACEOF | |
6864 | cat confdefs.h >>conftest.$ac_ext | |
6865 | cat >>conftest.$ac_ext <<_ACEOF | |
6866 | /* end confdefs.h. */ | |
6867 | $ac_includes_default | |
6868 | #include <$ac_header> | |
6869 | _ACEOF | |
6870 | rm -f conftest.$ac_objext | |
6871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6872 | (eval $ac_compile) 2>conftest.er1 | |
6873 | ac_status=$? | |
6874 | grep -v '^ *+' conftest.er1 >conftest.err | |
6875 | rm -f conftest.er1 | |
6876 | cat conftest.err >&5 | |
6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6878 | (exit $ac_status); } && | |
121ce6e5 | 6879 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6881 | (eval $ac_try) 2>&5 | |
6882 | ac_status=$? | |
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6884 | (exit $ac_status); }; } && | |
6885 | { ac_try='test -s conftest.$ac_objext' | |
6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6887 | (eval $ac_try) 2>&5 | |
6888 | ac_status=$? | |
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6890 | (exit $ac_status); }; }; then | |
6891 | ac_header_compiler=yes | |
6892 | else | |
6893 | echo "$as_me: failed program was:" >&5 | |
6894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6895 | ||
4e8d927d | 6896 | ac_header_compiler=no |
bec39cab | 6897 | fi |
4e8d927d | 6898 | |
bec39cab | 6899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
6900 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6901 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
6902 | |
6903 | # Is the header present? | |
4e8d927d DJ |
6904 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6905 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
6906 | cat >conftest.$ac_ext <<_ACEOF |
6907 | /* confdefs.h. */ | |
6908 | _ACEOF | |
6909 | cat confdefs.h >>conftest.$ac_ext | |
6910 | cat >>conftest.$ac_ext <<_ACEOF | |
6911 | /* end confdefs.h. */ | |
6912 | #include <$ac_header> | |
6913 | _ACEOF | |
6914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6916 | ac_status=$? | |
6917 | grep -v '^ *+' conftest.er1 >conftest.err | |
6918 | rm -f conftest.er1 | |
6919 | cat conftest.err >&5 | |
6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6921 | (exit $ac_status); } >/dev/null; then | |
6922 | if test -s conftest.err; then | |
6923 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6924 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6925 | else | |
6926 | ac_cpp_err= | |
6927 | fi | |
6928 | else | |
6929 | ac_cpp_err=yes | |
6930 | fi | |
6931 | if test -z "$ac_cpp_err"; then | |
6932 | ac_header_preproc=yes | |
6933 | else | |
6934 | echo "$as_me: failed program was:" >&5 | |
6935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6936 | ||
6937 | ac_header_preproc=no | |
6938 | fi | |
4e8d927d | 6939 | |
bec39cab | 6940 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
6941 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6942 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
6943 | |
6944 | # So? What about this header? | |
6945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6946 | yes:no: ) | |
6947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6951 | ac_header_preproc=yes | |
6952 | ;; | |
6953 | no:yes:* ) | |
6954 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6956 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6957 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6958 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6960 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6961 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6963 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6964 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6965 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 6966 | |
bec39cab AC |
6967 | ;; |
6968 | esac | |
4e8d927d DJ |
6969 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6971 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
6972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6973 | else | |
6974 | eval "$as_ac_Header=\$ac_header_preproc" | |
6975 | fi | |
4e8d927d DJ |
6976 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6977 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6978 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
6979 | |
6980 | fi | |
6981 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6982 | cat >>confdefs.h <<_ACEOF | |
6983 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6984 | _ACEOF | |
6985 | ||
6986 | fi | |
6987 | ||
6988 | done | |
6989 | ||
6990 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
6991 | enable_libunwind=yes; | |
6992 | fi | |
6993 | ||
4e8d927d DJ |
6994 | fi |
6995 | ||
bec39cab AC |
6996 | |
6997 | if test x"$enable_libunwind" = xyes; then | |
6998 | ||
6999 | for ac_header in libunwind.h | |
7000 | do | |
7001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
7002 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7003 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7005 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
7006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7007 | fi | |
4e8d927d DJ |
7008 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7009 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7010 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
7011 | else |
7012 | # Is the header compilable? | |
4e8d927d DJ |
7013 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7014 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
7015 | cat >conftest.$ac_ext <<_ACEOF |
7016 | /* confdefs.h. */ | |
7017 | _ACEOF | |
7018 | cat confdefs.h >>conftest.$ac_ext | |
7019 | cat >>conftest.$ac_ext <<_ACEOF | |
7020 | /* end confdefs.h. */ | |
7021 | $ac_includes_default | |
7022 | #include <$ac_header> | |
7023 | _ACEOF | |
7024 | rm -f conftest.$ac_objext | |
7025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7026 | (eval $ac_compile) 2>conftest.er1 | |
7027 | ac_status=$? | |
7028 | grep -v '^ *+' conftest.er1 >conftest.err | |
7029 | rm -f conftest.er1 | |
7030 | cat conftest.err >&5 | |
7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7032 | (exit $ac_status); } && | |
121ce6e5 | 7033 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7035 | (eval $ac_try) 2>&5 | |
7036 | ac_status=$? | |
7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7038 | (exit $ac_status); }; } && | |
7039 | { ac_try='test -s conftest.$ac_objext' | |
7040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7041 | (eval $ac_try) 2>&5 | |
7042 | ac_status=$? | |
7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7044 | (exit $ac_status); }; }; then | |
7045 | ac_header_compiler=yes | |
7046 | else | |
7047 | echo "$as_me: failed program was:" >&5 | |
7048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7049 | ||
4e8d927d | 7050 | ac_header_compiler=no |
bec39cab | 7051 | fi |
4e8d927d | 7052 | |
bec39cab | 7053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
7054 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7055 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
7056 | |
7057 | # Is the header present? | |
4e8d927d DJ |
7058 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7059 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
7060 | cat >conftest.$ac_ext <<_ACEOF |
7061 | /* confdefs.h. */ | |
7062 | _ACEOF | |
7063 | cat confdefs.h >>conftest.$ac_ext | |
7064 | cat >>conftest.$ac_ext <<_ACEOF | |
7065 | /* end confdefs.h. */ | |
7066 | #include <$ac_header> | |
7067 | _ACEOF | |
7068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7069 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7070 | ac_status=$? | |
7071 | grep -v '^ *+' conftest.er1 >conftest.err | |
7072 | rm -f conftest.er1 | |
7073 | cat conftest.err >&5 | |
7074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7075 | (exit $ac_status); } >/dev/null; then | |
7076 | if test -s conftest.err; then | |
7077 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7078 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7079 | else | |
7080 | ac_cpp_err= | |
7081 | fi | |
7082 | else | |
7083 | ac_cpp_err=yes | |
7084 | fi | |
7085 | if test -z "$ac_cpp_err"; then | |
7086 | ac_header_preproc=yes | |
7087 | else | |
7088 | echo "$as_me: failed program was:" >&5 | |
7089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7090 | ||
7091 | ac_header_preproc=no | |
7092 | fi | |
4e8d927d | 7093 | |
bec39cab | 7094 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
7095 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7096 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
7097 | |
7098 | # So? What about this header? | |
7099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7100 | yes:no: ) | |
7101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7104 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7105 | ac_header_preproc=yes | |
7106 | ;; | |
7107 | no:yes:* ) | |
7108 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7109 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7110 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7111 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7112 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7113 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7114 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7115 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7116 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7117 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7118 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7119 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 7120 | |
bec39cab AC |
7121 | ;; |
7122 | esac | |
4e8d927d DJ |
7123 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7124 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7125 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
7126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7127 | else | |
7128 | eval "$as_ac_Header=\$ac_header_preproc" | |
7129 | fi | |
4e8d927d DJ |
7130 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7131 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7132 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
7133 | |
7134 | fi | |
7135 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7136 | cat >>confdefs.h <<_ACEOF | |
7137 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7138 | _ACEOF | |
7139 | ||
7140 | fi | |
7141 | ||
7142 | done | |
7143 | ||
7144 | ||
7145 | for ac_header in libunwind-ia64.h | |
7146 | do | |
7147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
7148 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7149 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
7152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7153 | fi | |
4e8d927d DJ |
7154 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7156 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
7157 | else |
7158 | # Is the header compilable? | |
4e8d927d DJ |
7159 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7160 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
7161 | cat >conftest.$ac_ext <<_ACEOF |
7162 | /* confdefs.h. */ | |
7163 | _ACEOF | |
7164 | cat confdefs.h >>conftest.$ac_ext | |
7165 | cat >>conftest.$ac_ext <<_ACEOF | |
7166 | /* end confdefs.h. */ | |
7167 | $ac_includes_default | |
7168 | #include <$ac_header> | |
7169 | _ACEOF | |
7170 | rm -f conftest.$ac_objext | |
7171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7172 | (eval $ac_compile) 2>conftest.er1 | |
7173 | ac_status=$? | |
7174 | grep -v '^ *+' conftest.er1 >conftest.err | |
7175 | rm -f conftest.er1 | |
7176 | cat conftest.err >&5 | |
7177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7178 | (exit $ac_status); } && | |
121ce6e5 | 7179 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7181 | (eval $ac_try) 2>&5 | |
7182 | ac_status=$? | |
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 | (exit $ac_status); }; } && | |
7185 | { ac_try='test -s conftest.$ac_objext' | |
7186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7187 | (eval $ac_try) 2>&5 | |
7188 | ac_status=$? | |
7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7190 | (exit $ac_status); }; }; then | |
7191 | ac_header_compiler=yes | |
7192 | else | |
7193 | echo "$as_me: failed program was:" >&5 | |
7194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7195 | ||
4e8d927d | 7196 | ac_header_compiler=no |
bec39cab | 7197 | fi |
4e8d927d | 7198 | |
bec39cab | 7199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
7200 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7201 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
7202 | |
7203 | # Is the header present? | |
4e8d927d DJ |
7204 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7205 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
7206 | cat >conftest.$ac_ext <<_ACEOF |
7207 | /* confdefs.h. */ | |
7208 | _ACEOF | |
7209 | cat confdefs.h >>conftest.$ac_ext | |
7210 | cat >>conftest.$ac_ext <<_ACEOF | |
7211 | /* end confdefs.h. */ | |
7212 | #include <$ac_header> | |
7213 | _ACEOF | |
7214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7216 | ac_status=$? | |
7217 | grep -v '^ *+' conftest.er1 >conftest.err | |
7218 | rm -f conftest.er1 | |
7219 | cat conftest.err >&5 | |
7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7221 | (exit $ac_status); } >/dev/null; then | |
7222 | if test -s conftest.err; then | |
7223 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7224 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7225 | else | |
7226 | ac_cpp_err= | |
7227 | fi | |
7228 | else | |
7229 | ac_cpp_err=yes | |
7230 | fi | |
7231 | if test -z "$ac_cpp_err"; then | |
7232 | ac_header_preproc=yes | |
7233 | else | |
7234 | echo "$as_me: failed program was:" >&5 | |
7235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7236 | ||
7237 | ac_header_preproc=no | |
7238 | fi | |
4e8d927d | 7239 | |
bec39cab | 7240 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
7241 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7242 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
7243 | |
7244 | # So? What about this header? | |
7245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7246 | yes:no: ) | |
7247 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7248 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7250 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7251 | ac_header_preproc=yes | |
7252 | ;; | |
7253 | no:yes:* ) | |
7254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7258 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7259 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7260 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7261 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7264 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7265 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 7266 | |
bec39cab AC |
7267 | ;; |
7268 | esac | |
4e8d927d DJ |
7269 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7271 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
7272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7273 | else | |
7274 | eval "$as_ac_Header=\$ac_header_preproc" | |
7275 | fi | |
4e8d927d DJ |
7276 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7277 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7278 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
7279 | |
7280 | fi | |
7281 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7282 | cat >>confdefs.h <<_ACEOF | |
7283 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7284 | _ACEOF | |
7285 | ||
7286 | fi | |
7287 | ||
7288 | done | |
7289 | ||
60ca704f SE |
7290 | |
7291 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
7292 | #define HAVE_LIBUNWIND 1 |
7293 | _ACEOF | |
7294 | ||
7295 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
7296 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
7297 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
7298 | fi | |
7299 | ||
7300 | # Profiling support. | |
4e8d927d | 7301 | # Check whether --enable-profiling was given. |
bec39cab | 7302 | if test "${enable_profiling+set}" = set; then |
4e8d927d | 7303 | enableval=$enable_profiling; case $enableval in |
bec39cab AC |
7304 | yes | no) |
7305 | ;; | |
7306 | *) | |
7307 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
7308 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
7309 | { (exit 1); exit 1; }; } ;; | |
7310 | esac | |
7311 | else | |
7312 | enable_profiling=no | |
4e8d927d DJ |
7313 | fi |
7314 | ||
bec39cab AC |
7315 | |
7316 | ||
7317 | ||
7318 | for ac_func in monstartup _mcleanup | |
7319 | do | |
7320 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
7321 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7322 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7323 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
7324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7325 | else | |
7326 | cat >conftest.$ac_ext <<_ACEOF | |
7327 | /* confdefs.h. */ | |
7328 | _ACEOF | |
7329 | cat confdefs.h >>conftest.$ac_ext | |
7330 | cat >>conftest.$ac_ext <<_ACEOF | |
7331 | /* end confdefs.h. */ | |
7332 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7333 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7334 | #define $ac_func innocuous_$ac_func | |
7335 | ||
7336 | /* System header to define __stub macros and hopefully few prototypes, | |
7337 | which can conflict with char $ac_func (); below. | |
7338 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7339 | <limits.h> exists even on freestanding compilers. */ | |
7340 | ||
7341 | #ifdef __STDC__ | |
7342 | # include <limits.h> | |
7343 | #else | |
7344 | # include <assert.h> | |
7345 | #endif | |
7346 | ||
7347 | #undef $ac_func | |
7348 | ||
4e8d927d DJ |
7349 | /* Override any GCC internal prototype to avoid an error. |
7350 | Use char because int might match the return type of a GCC | |
7351 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
7352 | #ifdef __cplusplus |
7353 | extern "C" | |
bec39cab | 7354 | #endif |
bec39cab AC |
7355 | char $ac_func (); |
7356 | /* The GNU C library defines this for functions which it implements | |
7357 | to always fail with ENOSYS. Some functions are actually named | |
7358 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 7359 | #if defined __stub_$ac_func || defined __stub___$ac_func |
bec39cab | 7360 | choke me |
bec39cab AC |
7361 | #endif |
7362 | ||
7363 | int | |
7364 | main () | |
7365 | { | |
4e8d927d | 7366 | return $ac_func (); |
bec39cab AC |
7367 | ; |
7368 | return 0; | |
7369 | } | |
7370 | _ACEOF | |
7371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7373 | (eval $ac_link) 2>conftest.er1 | |
7374 | ac_status=$? | |
7375 | grep -v '^ *+' conftest.er1 >conftest.err | |
7376 | rm -f conftest.er1 | |
7377 | cat conftest.err >&5 | |
7378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7379 | (exit $ac_status); } && | |
121ce6e5 | 7380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7382 | (eval $ac_try) 2>&5 | |
7383 | ac_status=$? | |
7384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7385 | (exit $ac_status); }; } && | |
7386 | { ac_try='test -s conftest$ac_exeext' | |
7387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7388 | (eval $ac_try) 2>&5 | |
7389 | ac_status=$? | |
7390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7391 | (exit $ac_status); }; }; then | |
7392 | eval "$as_ac_var=yes" | |
7393 | else | |
7394 | echo "$as_me: failed program was:" >&5 | |
7395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7396 | ||
4e8d927d | 7397 | eval "$as_ac_var=no" |
bec39cab | 7398 | fi |
4e8d927d | 7399 | |
bec39cab AC |
7400 | rm -f conftest.err conftest.$ac_objext \ |
7401 | conftest$ac_exeext conftest.$ac_ext | |
7402 | fi | |
4e8d927d DJ |
7403 | ac_res=`eval echo '${'$as_ac_var'}'` |
7404 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7405 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
7406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7407 | cat >>confdefs.h <<_ACEOF | |
7408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7409 | _ACEOF | |
7410 | ||
7411 | fi | |
7412 | done | |
7413 | ||
4e8d927d DJ |
7414 | { echo "$as_me:$LINENO: checking for _etext" >&5 |
7415 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6; } | |
bec39cab AC |
7416 | if test "${ac_cv_var__etext+set}" = set; then |
7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7418 | else | |
7419 | cat >conftest.$ac_ext <<_ACEOF | |
7420 | /* confdefs.h. */ | |
7421 | _ACEOF | |
7422 | cat confdefs.h >>conftest.$ac_ext | |
7423 | cat >>conftest.$ac_ext <<_ACEOF | |
7424 | /* end confdefs.h. */ | |
7425 | #include <stdlib.h> | |
7426 | extern char _etext; | |
7427 | ||
7428 | int | |
7429 | main () | |
7430 | { | |
7431 | free (&_etext); | |
7432 | ; | |
7433 | return 0; | |
7434 | } | |
7435 | _ACEOF | |
7436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7438 | (eval $ac_link) 2>conftest.er1 | |
7439 | ac_status=$? | |
7440 | grep -v '^ *+' conftest.er1 >conftest.err | |
7441 | rm -f conftest.er1 | |
7442 | cat conftest.err >&5 | |
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7444 | (exit $ac_status); } && | |
121ce6e5 | 7445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7447 | (eval $ac_try) 2>&5 | |
7448 | ac_status=$? | |
7449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7450 | (exit $ac_status); }; } && | |
7451 | { ac_try='test -s conftest$ac_exeext' | |
7452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7453 | (eval $ac_try) 2>&5 | |
7454 | ac_status=$? | |
7455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7456 | (exit $ac_status); }; }; then | |
7457 | ac_cv_var__etext=yes | |
7458 | else | |
7459 | echo "$as_me: failed program was:" >&5 | |
7460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7461 | ||
4e8d927d | 7462 | ac_cv_var__etext=no |
bec39cab | 7463 | fi |
4e8d927d | 7464 | |
bec39cab AC |
7465 | rm -f conftest.err conftest.$ac_objext \ |
7466 | conftest$ac_exeext conftest.$ac_ext | |
7467 | fi | |
4e8d927d DJ |
7468 | { echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
7469 | echo "${ECHO_T}$ac_cv_var__etext" >&6; } | |
bec39cab AC |
7470 | if test $ac_cv_var__etext = yes; then |
7471 | ||
7472 | cat >>confdefs.h <<\_ACEOF | |
7473 | #define HAVE__ETEXT 1 | |
7474 | _ACEOF | |
7475 | ||
7476 | fi | |
7477 | if test "$enable_profiling" = yes ; then | |
7478 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
7479 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
7480 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
7481 | { (exit 1); exit 1; }; } | |
7482 | fi | |
7483 | PROFILE_CFLAGS=-pg | |
7484 | OLD_CFLAGS="$CFLAGS" | |
7485 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
7486 | ||
4e8d927d DJ |
7487 | { echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
7488 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6; } | |
bec39cab AC |
7489 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
7490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7491 | else |
bec39cab AC |
7492 | cat >conftest.$ac_ext <<_ACEOF |
7493 | /* confdefs.h. */ | |
7494 | _ACEOF | |
7495 | cat confdefs.h >>conftest.$ac_ext | |
7496 | cat >>conftest.$ac_ext <<_ACEOF | |
7497 | /* end confdefs.h. */ | |
7498 | ||
7499 | int | |
7500 | main () | |
7501 | { | |
7502 | int x; | |
7503 | ; | |
7504 | return 0; | |
7505 | } | |
7506 | _ACEOF | |
7507 | rm -f conftest.$ac_objext | |
7508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7509 | (eval $ac_compile) 2>conftest.er1 | |
7510 | ac_status=$? | |
7511 | grep -v '^ *+' conftest.er1 >conftest.err | |
7512 | rm -f conftest.er1 | |
7513 | cat conftest.err >&5 | |
7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7515 | (exit $ac_status); } && | |
121ce6e5 | 7516 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
7517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7518 | (eval $ac_try) 2>&5 | |
7519 | ac_status=$? | |
7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7521 | (exit $ac_status); }; } && | |
7522 | { ac_try='test -s conftest.$ac_objext' | |
7523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7524 | (eval $ac_try) 2>&5 | |
7525 | ac_status=$? | |
7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7527 | (exit $ac_status); }; }; then | |
7528 | ac_cv_cc_supports_pg=yes | |
7529 | else | |
7530 | echo "$as_me: failed program was:" >&5 | |
7531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7532 | ||
4e8d927d | 7533 | ac_cv_cc_supports_pg=no |
bec39cab | 7534 | fi |
4e8d927d | 7535 | |
bec39cab AC |
7536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7537 | fi | |
4e8d927d DJ |
7538 | { echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
7539 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6; } | |
bec39cab AC |
7540 | |
7541 | if test $ac_cv_cc_supports_pg = no; then | |
7542 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
7543 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
7544 | { (exit 1); exit 1; }; } | |
7545 | fi | |
7546 | ||
7547 | CFLAGS="$OLD_CFLAGS" | |
7548 | fi | |
7549 | ||
7550 | # --------------------- # | |
7551 | # Checks for programs. # | |
7552 | # --------------------- # | |
7553 | ||
7554 | for ac_prog in gawk mawk nawk awk | |
7555 | do | |
7556 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7557 | set dummy $ac_prog; ac_word=$2 | |
4e8d927d DJ |
7558 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7560 | if test "${ac_cv_prog_AWK+set}" = set; then |
7561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7562 | else | |
7563 | if test -n "$AWK"; then | |
7564 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7565 | else | |
7566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7567 | for as_dir in $PATH | |
7568 | do | |
7569 | IFS=$as_save_IFS | |
7570 | test -z "$as_dir" && as_dir=. | |
7571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7573 | ac_cv_prog_AWK="$ac_prog" |
7574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7575 | break 2 | |
7576 | fi | |
7577 | done | |
7578 | done | |
4e8d927d | 7579 | IFS=$as_save_IFS |
bec39cab AC |
7580 | |
7581 | fi | |
7582 | fi | |
7583 | AWK=$ac_cv_prog_AWK | |
7584 | if test -n "$AWK"; then | |
4e8d927d DJ |
7585 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
7586 | echo "${ECHO_T}$AWK" >&6; } | |
bec39cab | 7587 | else |
4e8d927d DJ |
7588 | { echo "$as_me:$LINENO: result: no" >&5 |
7589 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7590 | fi |
7591 | ||
4e8d927d | 7592 | |
bec39cab AC |
7593 | test -n "$AWK" && break |
7594 | done | |
7595 | ||
7596 | # Find a good install program. We prefer a C program (faster), | |
7597 | # so one script is as good as another. But avoid the broken or | |
7598 | # incompatible versions: | |
7599 | # SysV /etc/install, /usr/sbin/install | |
7600 | # SunOS /usr/etc/install | |
7601 | # IRIX /sbin/install | |
7602 | # AIX /bin/install | |
7603 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
7604 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7605 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7606 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7607 | # OS/2's system install, which has a completely different semantic | |
7608 | # ./install, which can be erroneously created by make from ./install.sh. | |
4e8d927d DJ |
7609 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
7610 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
bec39cab AC |
7611 | if test -z "$INSTALL"; then |
7612 | if test "${ac_cv_path_install+set}" = set; then | |
7613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7614 | else | |
7615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7616 | for as_dir in $PATH | |
7617 | do | |
7618 | IFS=$as_save_IFS | |
7619 | test -z "$as_dir" && as_dir=. | |
7620 | # Account for people who put trailing slashes in PATH elements. | |
7621 | case $as_dir/ in | |
7622 | ./ | .// | /cC/* | \ | |
7623 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7624 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
7625 | /usr/ucb/* ) ;; | |
c906108c | 7626 | *) |
bec39cab AC |
7627 | # OSF1 and SCO ODT 3.0 have their own names for install. |
7628 | # Don't use installbsd from OSF since it installs stuff as root | |
7629 | # by default. | |
7630 | for ac_prog in ginstall scoinst install; do | |
7631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7632 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bec39cab AC |
7633 | if test $ac_prog = install && |
7634 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7635 | # AIX install. It has an incompatible calling convention. | |
7636 | : | |
7637 | elif test $ac_prog = install && | |
7638 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7639 | # program-specific install script used by HP pwplus--don't use. | |
7640 | : | |
7641 | else | |
7642 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7643 | break 3 | |
7644 | fi | |
7645 | fi | |
7646 | done | |
7647 | done | |
7648 | ;; | |
c906108c | 7649 | esac |
bec39cab | 7650 | done |
4e8d927d | 7651 | IFS=$as_save_IFS |
bec39cab AC |
7652 | |
7653 | ||
7654 | fi | |
7655 | if test "${ac_cv_path_install+set}" = set; then | |
7656 | INSTALL=$ac_cv_path_install | |
7657 | else | |
4e8d927d DJ |
7658 | # As a last resort, use the slow shell script. Don't cache a |
7659 | # value for INSTALL within a source directory, because that will | |
bec39cab | 7660 | # break other packages using the cache if that directory is |
4e8d927d | 7661 | # removed, or if the value is a relative name. |
bec39cab AC |
7662 | INSTALL=$ac_install_sh |
7663 | fi | |
7664 | fi | |
4e8d927d DJ |
7665 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
7666 | echo "${ECHO_T}$INSTALL" >&6; } | |
bec39cab AC |
7667 | |
7668 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7669 | # It thinks the first close brace ends the variable substitution. | |
7670 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7671 | ||
7672 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7673 | ||
7674 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7675 | ||
4e8d927d DJ |
7676 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
7677 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
bec39cab AC |
7678 | LN_S=$as_ln_s |
7679 | if test "$LN_S" = "ln -s"; then | |
4e8d927d DJ |
7680 | { echo "$as_me:$LINENO: result: yes" >&5 |
7681 | echo "${ECHO_T}yes" >&6; } | |
bec39cab | 7682 | else |
4e8d927d DJ |
7683 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
7684 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
bec39cab AC |
7685 | fi |
7686 | ||
7687 | if test -n "$ac_tool_prefix"; then | |
7688 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7689 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4e8d927d DJ |
7690 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7692 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7694 | else | |
7695 | if test -n "$RANLIB"; then | |
7696 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7697 | else | |
7698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7699 | for as_dir in $PATH | |
7700 | do | |
7701 | IFS=$as_save_IFS | |
7702 | test -z "$as_dir" && as_dir=. | |
7703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7705 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7707 | break 2 | |
7708 | fi | |
7709 | done | |
7710 | done | |
4e8d927d | 7711 | IFS=$as_save_IFS |
bec39cab AC |
7712 | |
7713 | fi | |
7714 | fi | |
7715 | RANLIB=$ac_cv_prog_RANLIB | |
7716 | if test -n "$RANLIB"; then | |
4e8d927d DJ |
7717 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7718 | echo "${ECHO_T}$RANLIB" >&6; } | |
bec39cab | 7719 | else |
4e8d927d DJ |
7720 | { echo "$as_me:$LINENO: result: no" >&5 |
7721 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7722 | fi |
7723 | ||
4e8d927d | 7724 | |
bec39cab AC |
7725 | fi |
7726 | if test -z "$ac_cv_prog_RANLIB"; then | |
7727 | ac_ct_RANLIB=$RANLIB | |
7728 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7729 | set dummy ranlib; ac_word=$2 | |
4e8d927d DJ |
7730 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7732 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
7733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7734 | else | |
7735 | if test -n "$ac_ct_RANLIB"; then | |
7736 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7737 | else | |
7738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7739 | for as_dir in $PATH | |
7740 | do | |
7741 | IFS=$as_save_IFS | |
7742 | test -z "$as_dir" && as_dir=. | |
7743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7745 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7747 | break 2 | |
7748 | fi | |
7749 | done | |
7750 | done | |
4e8d927d | 7751 | IFS=$as_save_IFS |
bec39cab | 7752 | |
bec39cab AC |
7753 | fi |
7754 | fi | |
7755 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7756 | if test -n "$ac_ct_RANLIB"; then | |
4e8d927d DJ |
7757 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
7758 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
bec39cab | 7759 | else |
4e8d927d DJ |
7760 | { echo "$as_me:$LINENO: result: no" >&5 |
7761 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7762 | fi |
7763 | ||
4e8d927d DJ |
7764 | if test "x$ac_ct_RANLIB" = x; then |
7765 | RANLIB=":" | |
7766 | else | |
7767 | case $cross_compiling:$ac_tool_warned in | |
7768 | yes:) | |
7769 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7770 | whose name does not start with the host triplet. If you think this | |
7771 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7772 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7773 | whose name does not start with the host triplet. If you think this | |
7774 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7775 | ac_tool_warned=yes ;; | |
7776 | esac | |
7777 | RANLIB=$ac_ct_RANLIB | |
7778 | fi | |
bec39cab AC |
7779 | else |
7780 | RANLIB="$ac_cv_prog_RANLIB" | |
7781 | fi | |
7782 | ||
7783 | for ac_prog in 'bison -y' byacc | |
7784 | do | |
7785 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7786 | set dummy $ac_prog; ac_word=$2 | |
4e8d927d DJ |
7787 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7789 | if test "${ac_cv_prog_YACC+set}" = set; then |
7790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7791 | else | |
7792 | if test -n "$YACC"; then | |
7793 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7794 | else | |
7795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7796 | for as_dir in $PATH | |
7797 | do | |
7798 | IFS=$as_save_IFS | |
7799 | test -z "$as_dir" && as_dir=. | |
7800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7802 | ac_cv_prog_YACC="$ac_prog" |
7803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7804 | break 2 | |
7805 | fi | |
7806 | done | |
7807 | done | |
4e8d927d | 7808 | IFS=$as_save_IFS |
bec39cab AC |
7809 | |
7810 | fi | |
7811 | fi | |
7812 | YACC=$ac_cv_prog_YACC | |
7813 | if test -n "$YACC"; then | |
4e8d927d DJ |
7814 | { echo "$as_me:$LINENO: result: $YACC" >&5 |
7815 | echo "${ECHO_T}$YACC" >&6; } | |
bec39cab | 7816 | else |
4e8d927d DJ |
7817 | { echo "$as_me:$LINENO: result: no" >&5 |
7818 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7819 | fi |
7820 | ||
4e8d927d | 7821 | |
bec39cab AC |
7822 | test -n "$YACC" && break |
7823 | done | |
7824 | test -n "$YACC" || YACC="yacc" | |
7825 | ||
7826 | ||
7827 | if test -n "$ac_tool_prefix"; then | |
7828 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7829 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4e8d927d DJ |
7830 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7832 | if test "${ac_cv_prog_AR+set}" = set; then |
7833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7834 | else | |
7835 | if test -n "$AR"; then | |
7836 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7837 | else | |
7838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7839 | for as_dir in $PATH | |
7840 | do | |
7841 | IFS=$as_save_IFS | |
7842 | test -z "$as_dir" && as_dir=. | |
7843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7845 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
7846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7847 | break 2 | |
7848 | fi | |
7849 | done | |
7850 | done | |
4e8d927d | 7851 | IFS=$as_save_IFS |
bec39cab AC |
7852 | |
7853 | fi | |
7854 | fi | |
7855 | AR=$ac_cv_prog_AR | |
7856 | if test -n "$AR"; then | |
4e8d927d DJ |
7857 | { echo "$as_me:$LINENO: result: $AR" >&5 |
7858 | echo "${ECHO_T}$AR" >&6; } | |
bec39cab | 7859 | else |
4e8d927d DJ |
7860 | { echo "$as_me:$LINENO: result: no" >&5 |
7861 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7862 | fi |
7863 | ||
4e8d927d | 7864 | |
bec39cab AC |
7865 | fi |
7866 | if test -z "$ac_cv_prog_AR"; then | |
7867 | ac_ct_AR=$AR | |
7868 | # Extract the first word of "ar", so it can be a program name with args. | |
7869 | set dummy ar; ac_word=$2 | |
4e8d927d DJ |
7870 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7872 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
7873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7874 | else | |
7875 | if test -n "$ac_ct_AR"; then | |
7876 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7877 | else | |
7878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7879 | for as_dir in $PATH | |
7880 | do | |
7881 | IFS=$as_save_IFS | |
7882 | test -z "$as_dir" && as_dir=. | |
7883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7885 | ac_cv_prog_ac_ct_AR="ar" |
7886 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7887 | break 2 | |
7888 | fi | |
7889 | done | |
7890 | done | |
4e8d927d | 7891 | IFS=$as_save_IFS |
bec39cab AC |
7892 | |
7893 | fi | |
7894 | fi | |
7895 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7896 | if test -n "$ac_ct_AR"; then | |
4e8d927d DJ |
7897 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
7898 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
bec39cab | 7899 | else |
4e8d927d DJ |
7900 | { echo "$as_me:$LINENO: result: no" >&5 |
7901 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7902 | fi |
7903 | ||
4e8d927d DJ |
7904 | if test "x$ac_ct_AR" = x; then |
7905 | AR="" | |
7906 | else | |
7907 | case $cross_compiling:$ac_tool_warned in | |
7908 | yes:) | |
7909 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7910 | whose name does not start with the host triplet. If you think this | |
7911 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7912 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7913 | whose name does not start with the host triplet. If you think this | |
7914 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7915 | ac_tool_warned=yes ;; | |
7916 | esac | |
7917 | AR=$ac_ct_AR | |
7918 | fi | |
bec39cab AC |
7919 | else |
7920 | AR="$ac_cv_prog_AR" | |
7921 | fi | |
7922 | ||
7923 | if test -n "$ac_tool_prefix"; then | |
7924 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
7925 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
4e8d927d DJ |
7926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7928 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
7929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7930 | else | |
7931 | if test -n "$DLLTOOL"; then | |
7932 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7933 | else | |
7934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7935 | for as_dir in $PATH | |
7936 | do | |
7937 | IFS=$as_save_IFS | |
7938 | test -z "$as_dir" && as_dir=. | |
7939 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7941 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
7942 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7943 | break 2 | |
7944 | fi | |
7945 | done | |
7946 | done | |
4e8d927d | 7947 | IFS=$as_save_IFS |
bec39cab AC |
7948 | |
7949 | fi | |
7950 | fi | |
7951 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7952 | if test -n "$DLLTOOL"; then | |
4e8d927d DJ |
7953 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
7954 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
bec39cab | 7955 | else |
4e8d927d DJ |
7956 | { echo "$as_me:$LINENO: result: no" >&5 |
7957 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7958 | fi |
7959 | ||
4e8d927d | 7960 | |
bec39cab AC |
7961 | fi |
7962 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
7963 | ac_ct_DLLTOOL=$DLLTOOL | |
7964 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7965 | set dummy dlltool; ac_word=$2 | |
4e8d927d DJ |
7966 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7967 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
7968 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
7969 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7970 | else | |
7971 | if test -n "$ac_ct_DLLTOOL"; then | |
7972 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
7973 | else | |
7974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7975 | for as_dir in $PATH | |
7976 | do | |
7977 | IFS=$as_save_IFS | |
7978 | test -z "$as_dir" && as_dir=. | |
7979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 7980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
7981 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
7982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7983 | break 2 | |
7984 | fi | |
7985 | done | |
7986 | done | |
4e8d927d | 7987 | IFS=$as_save_IFS |
bec39cab AC |
7988 | |
7989 | fi | |
7990 | fi | |
7991 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
7992 | if test -n "$ac_ct_DLLTOOL"; then | |
4e8d927d DJ |
7993 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
7994 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } | |
bec39cab | 7995 | else |
4e8d927d DJ |
7996 | { echo "$as_me:$LINENO: result: no" >&5 |
7997 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
7998 | fi |
7999 | ||
4e8d927d DJ |
8000 | if test "x$ac_ct_DLLTOOL" = x; then |
8001 | DLLTOOL="" | |
8002 | else | |
8003 | case $cross_compiling:$ac_tool_warned in | |
8004 | yes:) | |
8005 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8006 | whose name does not start with the host triplet. If you think this | |
8007 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8008 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8009 | whose name does not start with the host triplet. If you think this | |
8010 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8011 | ac_tool_warned=yes ;; | |
8012 | esac | |
8013 | DLLTOOL=$ac_ct_DLLTOOL | |
8014 | fi | |
bec39cab AC |
8015 | else |
8016 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
8017 | fi | |
8018 | ||
8019 | if test -n "$ac_tool_prefix"; then | |
8020 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
8021 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
4e8d927d DJ |
8022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
8024 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8026 | else | |
8027 | if test -n "$WINDRES"; then | |
8028 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8029 | else | |
8030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8031 | for as_dir in $PATH | |
8032 | do | |
8033 | IFS=$as_save_IFS | |
8034 | test -z "$as_dir" && as_dir=. | |
8035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 8036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
8037 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
8038 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8039 | break 2 | |
8040 | fi | |
8041 | done | |
8042 | done | |
4e8d927d | 8043 | IFS=$as_save_IFS |
bec39cab AC |
8044 | |
8045 | fi | |
8046 | fi | |
8047 | WINDRES=$ac_cv_prog_WINDRES | |
8048 | if test -n "$WINDRES"; then | |
4e8d927d DJ |
8049 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
8050 | echo "${ECHO_T}$WINDRES" >&6; } | |
bec39cab | 8051 | else |
4e8d927d DJ |
8052 | { echo "$as_me:$LINENO: result: no" >&5 |
8053 | echo "${ECHO_T}no" >&6; } | |
bec39cab AC |
8054 | fi |
8055 | ||
4e8d927d | 8056 | |
bec39cab AC |
8057 | fi |
8058 | if test -z "$ac_cv_prog_WINDRES"; then | |
8059 | ac_ct_WINDRES=$WINDRES | |
8060 | # Extract the first word of "windres", so it can be a program name with args. | |
8061 | set dummy windres; ac_word=$2 | |
4e8d927d DJ |
8062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
8064 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8066 | else | |
8067 | if test -n "$ac_ct_WINDRES"; then | |
8068 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8069 | else | |
8070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8071 | for as_dir in $PATH | |
8072 | do | |
8073 | IFS=$as_save_IFS | |
8074 | test -z "$as_dir" && as_dir=. | |
8075 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 8076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
8077 | ac_cv_prog_ac_ct_WINDRES="windres" |
8078 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8079 | break 2 | |
8080 | fi | |
8081 | done | |
8082 | done | |
4e8d927d | 8083 | IFS=$as_save_IFS |
bec39cab AC |
8084 | |
8085 | fi | |
8086 | fi | |
8087 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
8088 | if test -n "$ac_ct_WINDRES"; then | |
4e8d927d DJ |
8089 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
8090 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } | |
bec39cab | 8091 | else |
4e8d927d DJ |
8092 | { echo "$as_me:$LINENO: result: no" >&5 |
8093 | echo "${ECHO_T}no" >&6; } | |
c906108c | 8094 | fi |
bec39cab | 8095 | |
4e8d927d DJ |
8096 | if test "x$ac_ct_WINDRES" = x; then |
8097 | WINDRES="" | |
8098 | else | |
8099 | case $cross_compiling:$ac_tool_warned in | |
8100 | yes:) | |
8101 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8102 | whose name does not start with the host triplet. If you think this | |
8103 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8104 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8105 | whose name does not start with the host triplet. If you think this | |
8106 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8107 | ac_tool_warned=yes ;; | |
8108 | esac | |
8109 | WINDRES=$ac_ct_WINDRES | |
8110 | fi | |
c906108c | 8111 | else |
bec39cab | 8112 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
8113 | fi |
8114 | ||
bec39cab AC |
8115 | |
8116 | # Needed for GNU/Hurd. | |
8117 | if test -n "$ac_tool_prefix"; then | |
8118 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
8119 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
4e8d927d DJ |
8120 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
8122 | if test "${ac_cv_prog_MIG+set}" = set; then |
8123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 8124 | else |
bec39cab AC |
8125 | if test -n "$MIG"; then |
8126 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
8127 | else | |
8128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8129 | for as_dir in $PATH | |
8130 | do | |
8131 | IFS=$as_save_IFS | |
8132 | test -z "$as_dir" && as_dir=. | |
8133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 8134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
8135 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
8136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8137 | break 2 | |
8138 | fi | |
8139 | done | |
8140 | done | |
4e8d927d | 8141 | IFS=$as_save_IFS |
bec39cab | 8142 | |
c906108c | 8143 | fi |
bec39cab AC |
8144 | fi |
8145 | MIG=$ac_cv_prog_MIG | |
8146 | if test -n "$MIG"; then | |
4e8d927d DJ |
8147 | { echo "$as_me:$LINENO: result: $MIG" >&5 |
8148 | echo "${ECHO_T}$MIG" >&6; } | |
c906108c | 8149 | else |
4e8d927d DJ |
8150 | { echo "$as_me:$LINENO: result: no" >&5 |
8151 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
8152 | fi |
8153 | ||
4e8d927d | 8154 | |
bec39cab AC |
8155 | fi |
8156 | if test -z "$ac_cv_prog_MIG"; then | |
8157 | ac_ct_MIG=$MIG | |
8158 | # Extract the first word of "mig", so it can be a program name with args. | |
8159 | set dummy mig; ac_word=$2 | |
4e8d927d DJ |
8160 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
bec39cab AC |
8162 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
8163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8164 | else | |
8165 | if test -n "$ac_ct_MIG"; then | |
8166 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
8167 | else | |
8168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8169 | for as_dir in $PATH | |
8170 | do | |
8171 | IFS=$as_save_IFS | |
8172 | test -z "$as_dir" && as_dir=. | |
8173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4e8d927d | 8174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
bec39cab AC |
8175 | ac_cv_prog_ac_ct_MIG="mig" |
8176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8177 | break 2 | |
8178 | fi | |
8179 | done | |
8180 | done | |
4e8d927d | 8181 | IFS=$as_save_IFS |
c906108c | 8182 | |
bec39cab AC |
8183 | fi |
8184 | fi | |
8185 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
8186 | if test -n "$ac_ct_MIG"; then | |
4e8d927d DJ |
8187 | { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
8188 | echo "${ECHO_T}$ac_ct_MIG" >&6; } | |
bec39cab | 8189 | else |
4e8d927d DJ |
8190 | { echo "$as_me:$LINENO: result: no" >&5 |
8191 | echo "${ECHO_T}no" >&6; } | |
bec39cab | 8192 | fi |
c906108c | 8193 | |
4e8d927d DJ |
8194 | if test "x$ac_ct_MIG" = x; then |
8195 | MIG="" | |
8196 | else | |
8197 | case $cross_compiling:$ac_tool_warned in | |
8198 | yes:) | |
8199 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8200 | whose name does not start with the host triplet. If you think this | |
8201 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8202 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8203 | whose name does not start with the host triplet. If you think this | |
8204 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8205 | ac_tool_warned=yes ;; | |
8206 | esac | |
8207 | MIG=$ac_ct_MIG | |
8208 | fi | |
bec39cab AC |
8209 | else |
8210 | MIG="$ac_cv_prog_MIG" | |
8211 | fi | |
c906108c | 8212 | |
c906108c | 8213 | |
bec39cab AC |
8214 | # ---------------------- # |
8215 | # Checks for libraries. # | |
8216 | # ---------------------- # | |
c906108c | 8217 | |
bec39cab | 8218 | # We might need to link with -lm; most simulators need it. |
c906108c | 8219 | |
4e8d927d DJ |
8220 | { echo "$as_me:$LINENO: checking for main in -lm" >&5 |
8221 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; } | |
bec39cab AC |
8222 | if test "${ac_cv_lib_m_main+set}" = set; then |
8223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8224 | else | |
8225 | ac_check_lib_save_LIBS=$LIBS | |
8226 | LIBS="-lm $LIBS" | |
8227 | cat >conftest.$ac_ext <<_ACEOF | |
8228 | /* confdefs.h. */ | |
8229 | _ACEOF | |
8230 | cat confdefs.h >>conftest.$ac_ext | |
8231 | cat >>conftest.$ac_ext <<_ACEOF | |
8232 | /* end confdefs.h. */ | |
c906108c | 8233 | |
c906108c | 8234 | |
bec39cab AC |
8235 | int |
8236 | main () | |
8237 | { | |
4e8d927d | 8238 | return main (); |
bec39cab AC |
8239 | ; |
8240 | return 0; | |
8241 | } | |
8242 | _ACEOF | |
8243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8245 | (eval $ac_link) 2>conftest.er1 | |
8246 | ac_status=$? | |
8247 | grep -v '^ *+' conftest.er1 >conftest.err | |
8248 | rm -f conftest.er1 | |
8249 | cat conftest.err >&5 | |
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8251 | (exit $ac_status); } && | |
121ce6e5 | 8252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8254 | (eval $ac_try) 2>&5 | |
8255 | ac_status=$? | |
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8257 | (exit $ac_status); }; } && | |
8258 | { ac_try='test -s conftest$ac_exeext' | |
8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8260 | (eval $ac_try) 2>&5 | |
8261 | ac_status=$? | |
8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8263 | (exit $ac_status); }; }; then | |
8264 | ac_cv_lib_m_main=yes | |
8265 | else | |
8266 | echo "$as_me: failed program was:" >&5 | |
8267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8268 | ||
4e8d927d | 8269 | ac_cv_lib_m_main=no |
bec39cab | 8270 | fi |
4e8d927d | 8271 | |
bec39cab AC |
8272 | rm -f conftest.err conftest.$ac_objext \ |
8273 | conftest$ac_exeext conftest.$ac_ext | |
8274 | LIBS=$ac_check_lib_save_LIBS | |
8275 | fi | |
4e8d927d DJ |
8276 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
8277 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6; } | |
bec39cab AC |
8278 | if test $ac_cv_lib_m_main = yes; then |
8279 | cat >>confdefs.h <<_ACEOF | |
8280 | #define HAVE_LIBM 1 | |
8281 | _ACEOF | |
8282 | ||
8283 | LIBS="-lm $LIBS" | |
c906108c | 8284 | |
c906108c | 8285 | fi |
bec39cab AC |
8286 | |
8287 | ||
8288 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
8289 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
8290 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
8291 | # is known to have this problem). Therefore we avoid libw if we can. | |
4e8d927d DJ |
8292 | { echo "$as_me:$LINENO: checking for wctype" >&5 |
8293 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6; } | |
bec39cab AC |
8294 | if test "${ac_cv_func_wctype+set}" = set; then |
8295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8296 | else | |
8297 | cat >conftest.$ac_ext <<_ACEOF | |
8298 | /* confdefs.h. */ | |
8299 | _ACEOF | |
8300 | cat confdefs.h >>conftest.$ac_ext | |
8301 | cat >>conftest.$ac_ext <<_ACEOF | |
8302 | /* end confdefs.h. */ | |
8303 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
8304 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
8305 | #define wctype innocuous_wctype | |
8306 | ||
8307 | /* System header to define __stub macros and hopefully few prototypes, | |
8308 | which can conflict with char wctype (); below. | |
8309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8310 | <limits.h> exists even on freestanding compilers. */ | |
8311 | ||
8312 | #ifdef __STDC__ | |
8313 | # include <limits.h> | |
8314 | #else | |
8315 | # include <assert.h> | |
8316 | #endif | |
8317 | ||
8318 | #undef wctype | |
8319 | ||
4e8d927d DJ |
8320 | /* Override any GCC internal prototype to avoid an error. |
8321 | Use char because int might match the return type of a GCC | |
8322 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8323 | #ifdef __cplusplus |
8324 | extern "C" | |
bec39cab | 8325 | #endif |
bec39cab AC |
8326 | char wctype (); |
8327 | /* The GNU C library defines this for functions which it implements | |
8328 | to always fail with ENOSYS. Some functions are actually named | |
8329 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 8330 | #if defined __stub_wctype || defined __stub___wctype |
bec39cab | 8331 | choke me |
bec39cab AC |
8332 | #endif |
8333 | ||
8334 | int | |
8335 | main () | |
8336 | { | |
4e8d927d | 8337 | return wctype (); |
bec39cab AC |
8338 | ; |
8339 | return 0; | |
8340 | } | |
8341 | _ACEOF | |
8342 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8344 | (eval $ac_link) 2>conftest.er1 | |
8345 | ac_status=$? | |
8346 | grep -v '^ *+' conftest.er1 >conftest.err | |
8347 | rm -f conftest.er1 | |
8348 | cat conftest.err >&5 | |
8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8350 | (exit $ac_status); } && | |
121ce6e5 | 8351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8353 | (eval $ac_try) 2>&5 | |
8354 | ac_status=$? | |
8355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8356 | (exit $ac_status); }; } && | |
8357 | { ac_try='test -s conftest$ac_exeext' | |
8358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8359 | (eval $ac_try) 2>&5 | |
8360 | ac_status=$? | |
8361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8362 | (exit $ac_status); }; }; then | |
8363 | ac_cv_func_wctype=yes | |
8364 | else | |
8365 | echo "$as_me: failed program was:" >&5 | |
8366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8367 | ||
4e8d927d | 8368 | ac_cv_func_wctype=no |
bec39cab | 8369 | fi |
4e8d927d | 8370 | |
bec39cab AC |
8371 | rm -f conftest.err conftest.$ac_objext \ |
8372 | conftest$ac_exeext conftest.$ac_ext | |
8373 | fi | |
4e8d927d DJ |
8374 | { echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
8375 | echo "${ECHO_T}$ac_cv_func_wctype" >&6; } | |
bec39cab AC |
8376 | if test $ac_cv_func_wctype = yes; then |
8377 | : | |
c906108c | 8378 | else |
c906108c | 8379 | |
4e8d927d DJ |
8380 | { echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
8381 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6; } | |
bec39cab AC |
8382 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
8383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8384 | else | |
8385 | ac_check_lib_save_LIBS=$LIBS | |
8386 | LIBS="-lw $LIBS" | |
8387 | cat >conftest.$ac_ext <<_ACEOF | |
8388 | /* confdefs.h. */ | |
8389 | _ACEOF | |
8390 | cat confdefs.h >>conftest.$ac_ext | |
8391 | cat >>conftest.$ac_ext <<_ACEOF | |
8392 | /* end confdefs.h. */ | |
c906108c | 8393 | |
4e8d927d DJ |
8394 | /* Override any GCC internal prototype to avoid an error. |
8395 | Use char because int might match the return type of a GCC | |
8396 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8397 | #ifdef __cplusplus |
8398 | extern "C" | |
8399 | #endif | |
bec39cab AC |
8400 | char wctype (); |
8401 | int | |
8402 | main () | |
8403 | { | |
4e8d927d | 8404 | return wctype (); |
bec39cab AC |
8405 | ; |
8406 | return 0; | |
8407 | } | |
8408 | _ACEOF | |
8409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8411 | (eval $ac_link) 2>conftest.er1 | |
8412 | ac_status=$? | |
8413 | grep -v '^ *+' conftest.er1 >conftest.err | |
8414 | rm -f conftest.er1 | |
8415 | cat conftest.err >&5 | |
8416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8417 | (exit $ac_status); } && | |
121ce6e5 | 8418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8420 | (eval $ac_try) 2>&5 | |
8421 | ac_status=$? | |
8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8423 | (exit $ac_status); }; } && | |
8424 | { ac_try='test -s conftest$ac_exeext' | |
8425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8426 | (eval $ac_try) 2>&5 | |
8427 | ac_status=$? | |
8428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8429 | (exit $ac_status); }; }; then | |
8430 | ac_cv_lib_w_wctype=yes | |
8431 | else | |
8432 | echo "$as_me: failed program was:" >&5 | |
8433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8434 | ||
4e8d927d | 8435 | ac_cv_lib_w_wctype=no |
bec39cab | 8436 | fi |
4e8d927d | 8437 | |
bec39cab AC |
8438 | rm -f conftest.err conftest.$ac_objext \ |
8439 | conftest$ac_exeext conftest.$ac_ext | |
8440 | LIBS=$ac_check_lib_save_LIBS | |
8441 | fi | |
4e8d927d DJ |
8442 | { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
8443 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6; } | |
bec39cab AC |
8444 | if test $ac_cv_lib_w_wctype = yes; then |
8445 | cat >>confdefs.h <<_ACEOF | |
8446 | #define HAVE_LIBW 1 | |
8447 | _ACEOF | |
c906108c | 8448 | |
bec39cab | 8449 | LIBS="-lw $LIBS" |
c906108c | 8450 | |
bec39cab | 8451 | fi |
c906108c | 8452 | |
bec39cab | 8453 | fi |
c906108c | 8454 | |
ddc9cd0f | 8455 | |
bec39cab | 8456 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
4e8d927d DJ |
8457 | { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
8458 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; } | |
bec39cab AC |
8459 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
8460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8461 | else | |
8462 | ac_func_search_save_LIBS=$LIBS | |
bec39cab AC |
8463 | cat >conftest.$ac_ext <<_ACEOF |
8464 | /* confdefs.h. */ | |
8465 | _ACEOF | |
8466 | cat confdefs.h >>conftest.$ac_ext | |
8467 | cat >>conftest.$ac_ext <<_ACEOF | |
8468 | /* end confdefs.h. */ | |
ddc9cd0f | 8469 | |
4e8d927d DJ |
8470 | /* Override any GCC internal prototype to avoid an error. |
8471 | Use char because int might match the return type of a GCC | |
8472 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8473 | #ifdef __cplusplus |
8474 | extern "C" | |
8475 | #endif | |
bec39cab AC |
8476 | char gethostbyname (); |
8477 | int | |
8478 | main () | |
8479 | { | |
4e8d927d | 8480 | return gethostbyname (); |
bec39cab AC |
8481 | ; |
8482 | return 0; | |
8483 | } | |
8484 | _ACEOF | |
4e8d927d DJ |
8485 | for ac_lib in '' nsl; do |
8486 | if test -z "$ac_lib"; then | |
8487 | ac_res="none required" | |
8488 | else | |
8489 | ac_res=-l$ac_lib | |
8490 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8491 | fi | |
8492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
8493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8494 | (eval $ac_link) 2>conftest.er1 | |
8495 | ac_status=$? | |
8496 | grep -v '^ *+' conftest.er1 >conftest.err | |
8497 | rm -f conftest.er1 | |
8498 | cat conftest.err >&5 | |
8499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8500 | (exit $ac_status); } && | |
121ce6e5 | 8501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8503 | (eval $ac_try) 2>&5 | |
8504 | ac_status=$? | |
8505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8506 | (exit $ac_status); }; } && | |
8507 | { ac_try='test -s conftest$ac_exeext' | |
8508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8509 | (eval $ac_try) 2>&5 | |
8510 | ac_status=$? | |
8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8512 | (exit $ac_status); }; }; then | |
4e8d927d | 8513 | ac_cv_search_gethostbyname=$ac_res |
bec39cab AC |
8514 | else |
8515 | echo "$as_me: failed program was:" >&5 | |
8516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 8517 | |
4e8d927d | 8518 | |
bec39cab | 8519 | fi |
4e8d927d | 8520 | |
bec39cab | 8521 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
8522 | conftest$ac_exeext |
8523 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
8524 | break | |
8525 | fi | |
8526 | done | |
8527 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
8528 | : | |
8529 | else | |
8530 | ac_cv_search_gethostbyname=no | |
8531 | fi | |
8532 | rm conftest.$ac_ext | |
8533 | LIBS=$ac_func_search_save_LIBS | |
8534 | fi | |
8535 | { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
8536 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; } | |
8537 | ac_res=$ac_cv_search_gethostbyname | |
8538 | if test "$ac_res" != no; then | |
8539 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
8540 | ||
8541 | fi | |
8542 | ||
8543 | ||
8544 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. | |
8545 | { echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
8546 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6; } | |
8547 | if test "${ac_cv_search_socketpair+set}" = set; then | |
8548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8549 | else | |
8550 | ac_func_search_save_LIBS=$LIBS | |
8551 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
8552 | /* confdefs.h. */ |
8553 | _ACEOF | |
8554 | cat confdefs.h >>conftest.$ac_ext | |
8555 | cat >>conftest.$ac_ext <<_ACEOF | |
8556 | /* end confdefs.h. */ | |
ddc9cd0f | 8557 | |
4e8d927d DJ |
8558 | /* Override any GCC internal prototype to avoid an error. |
8559 | Use char because int might match the return type of a GCC | |
8560 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8561 | #ifdef __cplusplus |
8562 | extern "C" | |
8563 | #endif | |
4e8d927d | 8564 | char socketpair (); |
bec39cab AC |
8565 | int |
8566 | main () | |
8567 | { | |
4e8d927d | 8568 | return socketpair (); |
bec39cab AC |
8569 | ; |
8570 | return 0; | |
8571 | } | |
8572 | _ACEOF | |
4e8d927d DJ |
8573 | for ac_lib in '' socket; do |
8574 | if test -z "$ac_lib"; then | |
8575 | ac_res="none required" | |
8576 | else | |
8577 | ac_res=-l$ac_lib | |
8578 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8579 | fi | |
8580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
8581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8582 | (eval $ac_link) 2>conftest.er1 | |
8583 | ac_status=$? | |
8584 | grep -v '^ *+' conftest.er1 >conftest.err | |
8585 | rm -f conftest.er1 | |
8586 | cat conftest.err >&5 | |
8587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8588 | (exit $ac_status); } && | |
121ce6e5 | 8589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8591 | (eval $ac_try) 2>&5 | |
8592 | ac_status=$? | |
8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8594 | (exit $ac_status); }; } && | |
8595 | { ac_try='test -s conftest$ac_exeext' | |
8596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8597 | (eval $ac_try) 2>&5 | |
8598 | ac_status=$? | |
8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8600 | (exit $ac_status); }; }; then | |
4e8d927d | 8601 | ac_cv_search_socketpair=$ac_res |
bec39cab AC |
8602 | else |
8603 | echo "$as_me: failed program was:" >&5 | |
8604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8605 | ||
4e8d927d | 8606 | |
bec39cab | 8607 | fi |
4e8d927d | 8608 | |
bec39cab | 8609 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
8610 | conftest$ac_exeext |
8611 | if test "${ac_cv_search_socketpair+set}" = set; then | |
8612 | break | |
ddc9cd0f | 8613 | fi |
4e8d927d | 8614 | done |
bec39cab | 8615 | if test "${ac_cv_search_socketpair+set}" = set; then |
4e8d927d | 8616 | : |
bec39cab | 8617 | else |
4e8d927d | 8618 | ac_cv_search_socketpair=no |
bec39cab | 8619 | fi |
4e8d927d | 8620 | rm conftest.$ac_ext |
bec39cab AC |
8621 | LIBS=$ac_func_search_save_LIBS |
8622 | fi | |
4e8d927d DJ |
8623 | { echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 |
8624 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6; } | |
8625 | ac_res=$ac_cv_search_socketpair | |
8626 | if test "$ac_res" != no; then | |
8627 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
96baa820 | 8628 | |
bec39cab | 8629 | fi |
96baa820 | 8630 | |
c906108c | 8631 | |
bec39cab AC |
8632 | # For the TUI, we need enhanced curses functionality. |
8633 | # | |
8634 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
8635 | # curses library because the latter might not provide all the | |
8636 | # functionality we need. However, this leads to problems on systems | |
8637 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
8638 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
8639 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
8640 | # a situation. | |
4e8d927d DJ |
8641 | { echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
8642 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6; } | |
bec39cab AC |
8643 | if test "${ac_cv_search_waddstr+set}" = set; then |
8644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8645 | else | |
8646 | ac_func_search_save_LIBS=$LIBS | |
bec39cab AC |
8647 | cat >conftest.$ac_ext <<_ACEOF |
8648 | /* confdefs.h. */ | |
8649 | _ACEOF | |
8650 | cat confdefs.h >>conftest.$ac_ext | |
8651 | cat >>conftest.$ac_ext <<_ACEOF | |
8652 | /* end confdefs.h. */ | |
c906108c | 8653 | |
4e8d927d DJ |
8654 | /* Override any GCC internal prototype to avoid an error. |
8655 | Use char because int might match the return type of a GCC | |
bec39cab | 8656 | builtin and then its argument prototype would still apply. */ |
bec39cab AC |
8657 | #ifdef __cplusplus |
8658 | extern "C" | |
8659 | #endif | |
bec39cab AC |
8660 | char waddstr (); |
8661 | int | |
8662 | main () | |
8663 | { | |
4e8d927d | 8664 | return waddstr (); |
bec39cab AC |
8665 | ; |
8666 | return 0; | |
8667 | } | |
8668 | _ACEOF | |
4e8d927d DJ |
8669 | for ac_lib in '' ncurses cursesX curses; do |
8670 | if test -z "$ac_lib"; then | |
8671 | ac_res="none required" | |
8672 | else | |
8673 | ac_res=-l$ac_lib | |
8674 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8675 | fi | |
8676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
8677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8678 | (eval $ac_link) 2>conftest.er1 | |
8679 | ac_status=$? | |
8680 | grep -v '^ *+' conftest.er1 >conftest.err | |
8681 | rm -f conftest.er1 | |
8682 | cat conftest.err >&5 | |
8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8684 | (exit $ac_status); } && | |
121ce6e5 | 8685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8687 | (eval $ac_try) 2>&5 | |
8688 | ac_status=$? | |
8689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8690 | (exit $ac_status); }; } && | |
8691 | { ac_try='test -s conftest$ac_exeext' | |
8692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8693 | (eval $ac_try) 2>&5 | |
8694 | ac_status=$? | |
8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8696 | (exit $ac_status); }; }; then | |
4e8d927d | 8697 | ac_cv_search_waddstr=$ac_res |
bec39cab AC |
8698 | else |
8699 | echo "$as_me: failed program was:" >&5 | |
8700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad | 8701 | |
4e8d927d | 8702 | |
1ba607ad | 8703 | fi |
4e8d927d | 8704 | |
bec39cab | 8705 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
8706 | conftest$ac_exeext |
8707 | if test "${ac_cv_search_waddstr+set}" = set; then | |
8708 | break | |
8709 | fi | |
8710 | done | |
8711 | if test "${ac_cv_search_waddstr+set}" = set; then | |
8712 | : | |
8713 | else | |
8714 | ac_cv_search_waddstr=no | |
1ba607ad | 8715 | fi |
4e8d927d | 8716 | rm conftest.$ac_ext |
bec39cab AC |
8717 | LIBS=$ac_func_search_save_LIBS |
8718 | fi | |
4e8d927d DJ |
8719 | { echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
8720 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6; } | |
8721 | ac_res=$ac_cv_search_waddstr | |
8722 | if test "$ac_res" != no; then | |
8723 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
c906108c | 8724 | |
8bb2c122 | 8725 | fi |
8bb2c122 | 8726 | |
8bb2c122 | 8727 | |
bec39cab AC |
8728 | # Since GDB uses Readline, we need termcap functionality. In many |
8729 | # cases this will be provided by the curses library, but some systems | |
8730 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 8731 | |
bec39cab AC |
8732 | case $host_os in |
8733 | cygwin*) | |
8734 | if test -d $srcdir/libtermcap; then | |
8735 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
8736 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
8737 | fi ;; | |
8738 | go32* | *djgpp*) | |
8739 | ac_cv_search_tgetent="none required" | |
8740 | ;; | |
7ef34f2c MM |
8741 | *mingw32*) |
8742 | ac_cv_search_tgetent="none required" | |
8743 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
8744 | ;; | |
bec39cab | 8745 | esac |
627af7ea | 8746 | |
bec39cab | 8747 | # These are the libraries checked by Readline. |
4e8d927d DJ |
8748 | { echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
8749 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; } | |
bec39cab AC |
8750 | if test "${ac_cv_search_tgetent+set}" = set; then |
8751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8752 | else | |
8753 | ac_func_search_save_LIBS=$LIBS | |
bec39cab AC |
8754 | cat >conftest.$ac_ext <<_ACEOF |
8755 | /* confdefs.h. */ | |
8756 | _ACEOF | |
8757 | cat confdefs.h >>conftest.$ac_ext | |
8758 | cat >>conftest.$ac_ext <<_ACEOF | |
8759 | /* end confdefs.h. */ | |
8760 | ||
4e8d927d DJ |
8761 | /* Override any GCC internal prototype to avoid an error. |
8762 | Use char because int might match the return type of a GCC | |
bec39cab | 8763 | builtin and then its argument prototype would still apply. */ |
bec39cab AC |
8764 | #ifdef __cplusplus |
8765 | extern "C" | |
8766 | #endif | |
bec39cab AC |
8767 | char tgetent (); |
8768 | int | |
8769 | main () | |
8770 | { | |
4e8d927d | 8771 | return tgetent (); |
bec39cab AC |
8772 | ; |
8773 | return 0; | |
8774 | } | |
8775 | _ACEOF | |
4e8d927d DJ |
8776 | for ac_lib in '' termcap tinfo curses ncurses; do |
8777 | if test -z "$ac_lib"; then | |
8778 | ac_res="none required" | |
8779 | else | |
8780 | ac_res=-l$ac_lib | |
8781 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8782 | fi | |
8783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
8784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8785 | (eval $ac_link) 2>conftest.er1 | |
8786 | ac_status=$? | |
8787 | grep -v '^ *+' conftest.er1 >conftest.err | |
8788 | rm -f conftest.er1 | |
8789 | cat conftest.err >&5 | |
8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8791 | (exit $ac_status); } && | |
121ce6e5 | 8792 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8794 | (eval $ac_try) 2>&5 | |
8795 | ac_status=$? | |
8796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8797 | (exit $ac_status); }; } && | |
8798 | { ac_try='test -s conftest$ac_exeext' | |
8799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8800 | (eval $ac_try) 2>&5 | |
8801 | ac_status=$? | |
8802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8803 | (exit $ac_status); }; }; then | |
4e8d927d | 8804 | ac_cv_search_tgetent=$ac_res |
627af7ea | 8805 | else |
bec39cab AC |
8806 | echo "$as_me: failed program was:" >&5 |
8807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8808 | |
4e8d927d | 8809 | |
627af7ea | 8810 | fi |
4e8d927d | 8811 | |
bec39cab | 8812 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
8813 | conftest$ac_exeext |
8814 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8815 | break | |
8816 | fi | |
8817 | done | |
8818 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8819 | : | |
8820 | else | |
8821 | ac_cv_search_tgetent=no | |
bec39cab | 8822 | fi |
4e8d927d | 8823 | rm conftest.$ac_ext |
bec39cab AC |
8824 | LIBS=$ac_func_search_save_LIBS |
8825 | fi | |
4e8d927d DJ |
8826 | { echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
8827 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6; } | |
8828 | ac_res=$ac_cv_search_tgetent | |
8829 | if test "$ac_res" != no; then | |
8830 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
627af7ea | 8831 | |
06825bd1 MK |
8832 | fi |
8833 | ||
06825bd1 | 8834 | |
bec39cab AC |
8835 | if test "$ac_cv_search_tgetent" = no; then |
8836 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
8837 | echo "$as_me: error: no termcap library found" >&2;} | |
8838 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
8839 | fi |
8840 | ||
bec39cab AC |
8841 | # ------------------------- # |
8842 | # Checks for header files. # | |
8843 | # ------------------------- # | |
8ee53726 | 8844 | |
0e5d83e3 | 8845 | |
bec39cab AC |
8846 | |
8847 | ||
8848 | ||
8849 | ||
8850 | ac_header_dirent=no | |
8851 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8852 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
4e8d927d DJ |
8853 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
8854 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
8855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
8856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8857 | else | |
8858 | cat >conftest.$ac_ext <<_ACEOF | |
8859 | /* confdefs.h. */ | |
8860 | _ACEOF | |
8861 | cat confdefs.h >>conftest.$ac_ext | |
8862 | cat >>conftest.$ac_ext <<_ACEOF | |
8863 | /* end confdefs.h. */ | |
8864 | #include <sys/types.h> | |
0e5d83e3 | 8865 | #include <$ac_hdr> |
bec39cab AC |
8866 | |
8867 | int | |
8868 | main () | |
8869 | { | |
8870 | if ((DIR *) 0) | |
8871 | return 0; | |
8872 | ; | |
8873 | return 0; | |
8874 | } | |
8875 | _ACEOF | |
8876 | rm -f conftest.$ac_objext | |
8877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8878 | (eval $ac_compile) 2>conftest.er1 | |
8879 | ac_status=$? | |
8880 | grep -v '^ *+' conftest.er1 >conftest.err | |
8881 | rm -f conftest.er1 | |
8882 | cat conftest.err >&5 | |
8883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8884 | (exit $ac_status); } && | |
121ce6e5 | 8885 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8887 | (eval $ac_try) 2>&5 | |
8888 | ac_status=$? | |
8889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8890 | (exit $ac_status); }; } && | |
8891 | { ac_try='test -s conftest.$ac_objext' | |
8892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8893 | (eval $ac_try) 2>&5 | |
8894 | ac_status=$? | |
8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8896 | (exit $ac_status); }; }; then | |
8897 | eval "$as_ac_Header=yes" | |
8898 | else | |
8899 | echo "$as_me: failed program was:" >&5 | |
8900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8901 | ||
4e8d927d | 8902 | eval "$as_ac_Header=no" |
bec39cab | 8903 | fi |
4e8d927d | 8904 | |
bec39cab AC |
8905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8906 | fi | |
4e8d927d DJ |
8907 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8909 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
8910 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8911 | cat >>confdefs.h <<_ACEOF | |
8912 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8913 | _ACEOF | |
8914 | ||
8915 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 8916 | fi |
0e5d83e3 | 8917 | |
bec39cab AC |
8918 | done |
8919 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8920 | if test $ac_header_dirent = dirent.h; then | |
4e8d927d DJ |
8921 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8922 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
bec39cab AC |
8923 | if test "${ac_cv_search_opendir+set}" = set; then |
8924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8925 | else | |
8926 | ac_func_search_save_LIBS=$LIBS | |
bec39cab AC |
8927 | cat >conftest.$ac_ext <<_ACEOF |
8928 | /* confdefs.h. */ | |
8929 | _ACEOF | |
8930 | cat confdefs.h >>conftest.$ac_ext | |
8931 | cat >>conftest.$ac_ext <<_ACEOF | |
8932 | /* end confdefs.h. */ | |
0e5d83e3 | 8933 | |
4e8d927d DJ |
8934 | /* Override any GCC internal prototype to avoid an error. |
8935 | Use char because int might match the return type of a GCC | |
8936 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
8937 | #ifdef __cplusplus |
8938 | extern "C" | |
8939 | #endif | |
bec39cab AC |
8940 | char opendir (); |
8941 | int | |
8942 | main () | |
8943 | { | |
4e8d927d | 8944 | return opendir (); |
bec39cab AC |
8945 | ; |
8946 | return 0; | |
8947 | } | |
8948 | _ACEOF | |
4e8d927d DJ |
8949 | for ac_lib in '' dir; do |
8950 | if test -z "$ac_lib"; then | |
8951 | ac_res="none required" | |
8952 | else | |
8953 | ac_res=-l$ac_lib | |
8954 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8955 | fi | |
8956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
8957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8958 | (eval $ac_link) 2>conftest.er1 | |
8959 | ac_status=$? | |
8960 | grep -v '^ *+' conftest.er1 >conftest.err | |
8961 | rm -f conftest.er1 | |
8962 | cat conftest.err >&5 | |
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8964 | (exit $ac_status); } && | |
121ce6e5 | 8965 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
8966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8967 | (eval $ac_try) 2>&5 | |
8968 | ac_status=$? | |
8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8970 | (exit $ac_status); }; } && | |
8971 | { ac_try='test -s conftest$ac_exeext' | |
8972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8973 | (eval $ac_try) 2>&5 | |
8974 | ac_status=$? | |
8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8976 | (exit $ac_status); }; }; then | |
4e8d927d | 8977 | ac_cv_search_opendir=$ac_res |
bec39cab AC |
8978 | else |
8979 | echo "$as_me: failed program was:" >&5 | |
8980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8981 | ||
4e8d927d | 8982 | |
bec39cab | 8983 | fi |
0e5d83e3 | 8984 | |
bec39cab | 8985 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
8986 | conftest$ac_exeext |
8987 | if test "${ac_cv_search_opendir+set}" = set; then | |
8988 | break | |
8989 | fi | |
8990 | done | |
8991 | if test "${ac_cv_search_opendir+set}" = set; then | |
8992 | : | |
8993 | else | |
8994 | ac_cv_search_opendir=no | |
0e5d83e3 | 8995 | fi |
4e8d927d | 8996 | rm conftest.$ac_ext |
bec39cab | 8997 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 8998 | fi |
4e8d927d DJ |
8999 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9000 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
9001 | ac_res=$ac_cv_search_opendir | |
9002 | if test "$ac_res" != no; then | |
9003 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
0e5d83e3 | 9004 | |
0e5d83e3 JJ |
9005 | fi |
9006 | ||
d28f9cdf | 9007 | else |
4e8d927d DJ |
9008 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9009 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
bec39cab AC |
9010 | if test "${ac_cv_search_opendir+set}" = set; then |
9011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9012 | else | |
9013 | ac_func_search_save_LIBS=$LIBS | |
bec39cab AC |
9014 | cat >conftest.$ac_ext <<_ACEOF |
9015 | /* confdefs.h. */ | |
9016 | _ACEOF | |
9017 | cat confdefs.h >>conftest.$ac_ext | |
9018 | cat >>conftest.$ac_ext <<_ACEOF | |
9019 | /* end confdefs.h. */ | |
d28f9cdf | 9020 | |
4e8d927d DJ |
9021 | /* Override any GCC internal prototype to avoid an error. |
9022 | Use char because int might match the return type of a GCC | |
bec39cab | 9023 | builtin and then its argument prototype would still apply. */ |
bec39cab AC |
9024 | #ifdef __cplusplus |
9025 | extern "C" | |
d28f9cdf | 9026 | #endif |
bec39cab AC |
9027 | char opendir (); |
9028 | int | |
9029 | main () | |
9030 | { | |
4e8d927d | 9031 | return opendir (); |
bec39cab AC |
9032 | ; |
9033 | return 0; | |
9034 | } | |
9035 | _ACEOF | |
4e8d927d DJ |
9036 | for ac_lib in '' x; do |
9037 | if test -z "$ac_lib"; then | |
9038 | ac_res="none required" | |
9039 | else | |
9040 | ac_res=-l$ac_lib | |
9041 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9042 | fi | |
9043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
bec39cab AC |
9044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9045 | (eval $ac_link) 2>conftest.er1 | |
9046 | ac_status=$? | |
9047 | grep -v '^ *+' conftest.er1 >conftest.err | |
9048 | rm -f conftest.er1 | |
9049 | cat conftest.err >&5 | |
9050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9051 | (exit $ac_status); } && | |
121ce6e5 | 9052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9054 | (eval $ac_try) 2>&5 | |
9055 | ac_status=$? | |
9056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9057 | (exit $ac_status); }; } && | |
9058 | { ac_try='test -s conftest$ac_exeext' | |
9059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9060 | (eval $ac_try) 2>&5 | |
9061 | ac_status=$? | |
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9063 | (exit $ac_status); }; }; then | |
4e8d927d | 9064 | ac_cv_search_opendir=$ac_res |
d28f9cdf | 9065 | else |
bec39cab AC |
9066 | echo "$as_me: failed program was:" >&5 |
9067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9068 | ||
4e8d927d | 9069 | |
d28f9cdf | 9070 | fi |
4e8d927d | 9071 | |
bec39cab | 9072 | rm -f conftest.err conftest.$ac_objext \ |
4e8d927d DJ |
9073 | conftest$ac_exeext |
9074 | if test "${ac_cv_search_opendir+set}" = set; then | |
9075 | break | |
9076 | fi | |
9077 | done | |
9078 | if test "${ac_cv_search_opendir+set}" = set; then | |
9079 | : | |
9080 | else | |
9081 | ac_cv_search_opendir=no | |
bec39cab | 9082 | fi |
4e8d927d | 9083 | rm conftest.$ac_ext |
bec39cab | 9084 | LIBS=$ac_func_search_save_LIBS |
d28f9cdf | 9085 | fi |
4e8d927d DJ |
9086 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9087 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
9088 | ac_res=$ac_cv_search_opendir | |
9089 | if test "$ac_res" != no; then | |
9090 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
d28f9cdf | 9091 | |
d28f9cdf DJ |
9092 | fi |
9093 | ||
bec39cab | 9094 | fi |
b0b1c2c0 | 9095 | |
4e8d927d DJ |
9096 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
9097 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } | |
bec39cab AC |
9098 | if test "${ac_cv_header_stat_broken+set}" = set; then |
9099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 9100 | else |
bec39cab AC |
9101 | cat >conftest.$ac_ext <<_ACEOF |
9102 | /* confdefs.h. */ | |
9103 | _ACEOF | |
9104 | cat confdefs.h >>conftest.$ac_ext | |
9105 | cat >>conftest.$ac_ext <<_ACEOF | |
9106 | /* end confdefs.h. */ | |
9107 | #include <sys/types.h> | |
9108 | #include <sys/stat.h> | |
b0b1c2c0 | 9109 | |
4e8d927d | 9110 | #if defined S_ISBLK && defined S_IFDIR |
bec39cab AC |
9111 | # if S_ISBLK (S_IFDIR) |
9112 | You lose. | |
9113 | # endif | |
9114 | #endif | |
b0b1c2c0 | 9115 | |
4e8d927d | 9116 | #if defined S_ISBLK && defined S_IFCHR |
bec39cab AC |
9117 | # if S_ISBLK (S_IFCHR) |
9118 | You lose. | |
9119 | # endif | |
9120 | #endif | |
d28f9cdf | 9121 | |
4e8d927d | 9122 | #if defined S_ISLNK && defined S_IFREG |
bec39cab AC |
9123 | # if S_ISLNK (S_IFREG) |
9124 | You lose. | |
9125 | # endif | |
9126 | #endif | |
d28f9cdf | 9127 | |
4e8d927d | 9128 | #if defined S_ISSOCK && defined S_IFREG |
bec39cab AC |
9129 | # if S_ISSOCK (S_IFREG) |
9130 | You lose. | |
9131 | # endif | |
9132 | #endif | |
9133 | ||
9134 | _ACEOF | |
9135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9136 | $EGREP "You lose" >/dev/null 2>&1; then | |
9137 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 9138 | else |
bec39cab | 9139 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
9140 | fi |
9141 | rm -f conftest* | |
d28f9cdf | 9142 | |
d28f9cdf | 9143 | fi |
4e8d927d DJ |
9144 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
9145 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } | |
bec39cab | 9146 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 9147 | |
bec39cab AC |
9148 | cat >>confdefs.h <<\_ACEOF |
9149 | #define STAT_MACROS_BROKEN 1 | |
9150 | _ACEOF | |
8bb2c122 | 9151 | |
7a292a7a | 9152 | fi |
bec39cab | 9153 | |
4e8d927d DJ |
9154 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
9155 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
bec39cab AC |
9156 | if test "${ac_cv_header_stdc+set}" = set; then |
9157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 9158 | else |
bec39cab AC |
9159 | cat >conftest.$ac_ext <<_ACEOF |
9160 | /* confdefs.h. */ | |
9161 | _ACEOF | |
9162 | cat confdefs.h >>conftest.$ac_ext | |
9163 | cat >>conftest.$ac_ext <<_ACEOF | |
9164 | /* end confdefs.h. */ | |
9165 | #include <stdlib.h> | |
9166 | #include <stdarg.h> | |
9167 | #include <string.h> | |
9168 | #include <float.h> | |
7a292a7a | 9169 | |
bec39cab AC |
9170 | int |
9171 | main () | |
9172 | { | |
7a292a7a | 9173 | |
bec39cab AC |
9174 | ; |
9175 | return 0; | |
9176 | } | |
9177 | _ACEOF | |
9178 | rm -f conftest.$ac_objext | |
9179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9180 | (eval $ac_compile) 2>conftest.er1 | |
9181 | ac_status=$? | |
9182 | grep -v '^ *+' conftest.er1 >conftest.err | |
9183 | rm -f conftest.er1 | |
9184 | cat conftest.err >&5 | |
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9186 | (exit $ac_status); } && | |
121ce6e5 | 9187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9189 | (eval $ac_try) 2>&5 | |
9190 | ac_status=$? | |
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9192 | (exit $ac_status); }; } && | |
9193 | { ac_try='test -s conftest.$ac_objext' | |
9194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9195 | (eval $ac_try) 2>&5 | |
9196 | ac_status=$? | |
9197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9198 | (exit $ac_status); }; }; then | |
9199 | ac_cv_header_stdc=yes | |
c906108c | 9200 | else |
bec39cab AC |
9201 | echo "$as_me: failed program was:" >&5 |
9202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 9203 | |
4e8d927d | 9204 | ac_cv_header_stdc=no |
c906108c | 9205 | fi |
4e8d927d | 9206 | |
bec39cab | 9207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 9208 | |
bec39cab AC |
9209 | if test $ac_cv_header_stdc = yes; then |
9210 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9211 | cat >conftest.$ac_ext <<_ACEOF | |
9212 | /* confdefs.h. */ | |
9213 | _ACEOF | |
9214 | cat confdefs.h >>conftest.$ac_ext | |
9215 | cat >>conftest.$ac_ext <<_ACEOF | |
9216 | /* end confdefs.h. */ | |
9217 | #include <string.h> | |
c906108c | 9218 | |
bec39cab AC |
9219 | _ACEOF |
9220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9221 | $EGREP "memchr" >/dev/null 2>&1; then | |
9222 | : | |
8bb2c122 | 9223 | else |
bec39cab | 9224 | ac_cv_header_stdc=no |
8bb2c122 | 9225 | fi |
bec39cab AC |
9226 | rm -f conftest* |
9227 | ||
c906108c SS |
9228 | fi |
9229 | ||
bec39cab AC |
9230 | if test $ac_cv_header_stdc = yes; then |
9231 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
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 | #include <stdlib.h> | |
9239 | ||
9240 | _ACEOF | |
9241 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9242 | $EGREP "free" >/dev/null 2>&1; then | |
9243 | : | |
c906108c | 9244 | else |
bec39cab | 9245 | ac_cv_header_stdc=no |
c906108c | 9246 | fi |
bec39cab AC |
9247 | rm -f conftest* |
9248 | ||
c906108c SS |
9249 | fi |
9250 | ||
bec39cab AC |
9251 | if test $ac_cv_header_stdc = yes; then |
9252 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9253 | if test "$cross_compiling" = yes; then | |
9254 | : | |
c906108c | 9255 | else |
bec39cab AC |
9256 | cat >conftest.$ac_ext <<_ACEOF |
9257 | /* confdefs.h. */ | |
9258 | _ACEOF | |
9259 | cat confdefs.h >>conftest.$ac_ext | |
9260 | cat >>conftest.$ac_ext <<_ACEOF | |
9261 | /* end confdefs.h. */ | |
9262 | #include <ctype.h> | |
4e8d927d | 9263 | #include <stdlib.h> |
bec39cab AC |
9264 | #if ((' ' & 0x0FF) == 0x020) |
9265 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9266 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9267 | #else | |
9268 | # define ISLOWER(c) \ | |
9269 | (('a' <= (c) && (c) <= 'i') \ | |
9270 | || ('j' <= (c) && (c) <= 'r') \ | |
9271 | || ('s' <= (c) && (c) <= 'z')) | |
9272 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
9273 | #endif | |
9274 | ||
9275 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9276 | int | |
9277 | main () | |
9278 | { | |
9279 | int i; | |
9280 | for (i = 0; i < 256; i++) | |
9281 | if (XOR (islower (i), ISLOWER (i)) | |
9282 | || toupper (i) != TOUPPER (i)) | |
4e8d927d DJ |
9283 | return 2; |
9284 | return 0; | |
bec39cab AC |
9285 | } |
9286 | _ACEOF | |
9287 | rm -f conftest$ac_exeext | |
9288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9289 | (eval $ac_link) 2>&5 | |
9290 | ac_status=$? | |
9291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9292 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
9293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9294 | (eval $ac_try) 2>&5 | |
9295 | ac_status=$? | |
9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9297 | (exit $ac_status); }; }; then | |
9298 | : | |
9299 | else | |
9300 | echo "$as_me: program exited with status $ac_status" >&5 | |
9301 | echo "$as_me: failed program was:" >&5 | |
9302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9303 | ||
9304 | ( exit $ac_status ) | |
9305 | ac_cv_header_stdc=no | |
c906108c | 9306 | fi |
4e8d927d | 9307 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 9308 | fi |
4e8d927d DJ |
9309 | |
9310 | ||
c906108c | 9311 | fi |
bec39cab | 9312 | fi |
4e8d927d DJ |
9313 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
9314 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
bec39cab | 9315 | if test $ac_cv_header_stdc = yes; then |
c906108c | 9316 | |
bec39cab AC |
9317 | cat >>confdefs.h <<\_ACEOF |
9318 | #define STDC_HEADERS 1 | |
9319 | _ACEOF | |
c906108c | 9320 | |
bec39cab | 9321 | fi |
8bb2c122 | 9322 | |
bec39cab | 9323 | |
7cb9022a | 9324 | for ac_header in nlist.h |
bec39cab AC |
9325 | do |
9326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
9327 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9328 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9332 | fi | |
4e8d927d DJ |
9333 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9334 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9335 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
9336 | else |
9337 | # Is the header compilable? | |
4e8d927d DJ |
9338 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
9340 | cat >conftest.$ac_ext <<_ACEOF |
9341 | /* confdefs.h. */ | |
9342 | _ACEOF | |
9343 | cat confdefs.h >>conftest.$ac_ext | |
9344 | cat >>conftest.$ac_ext <<_ACEOF | |
9345 | /* end confdefs.h. */ | |
9346 | $ac_includes_default | |
9347 | #include <$ac_header> | |
9348 | _ACEOF | |
9349 | rm -f conftest.$ac_objext | |
9350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9351 | (eval $ac_compile) 2>conftest.er1 | |
9352 | ac_status=$? | |
9353 | grep -v '^ *+' conftest.er1 >conftest.err | |
9354 | rm -f conftest.er1 | |
9355 | cat conftest.err >&5 | |
9356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9357 | (exit $ac_status); } && | |
121ce6e5 | 9358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9360 | (eval $ac_try) 2>&5 | |
9361 | ac_status=$? | |
9362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9363 | (exit $ac_status); }; } && | |
9364 | { ac_try='test -s conftest.$ac_objext' | |
9365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9366 | (eval $ac_try) 2>&5 | |
9367 | ac_status=$? | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); }; }; then | |
9370 | ac_header_compiler=yes | |
9371 | else | |
9372 | echo "$as_me: failed program was:" >&5 | |
9373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9374 | ||
4e8d927d | 9375 | ac_header_compiler=no |
bec39cab | 9376 | fi |
4e8d927d | 9377 | |
bec39cab | 9378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
9379 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9380 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
9381 | |
9382 | # Is the header present? | |
4e8d927d DJ |
9383 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9384 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
9385 | cat >conftest.$ac_ext <<_ACEOF |
9386 | /* confdefs.h. */ | |
9387 | _ACEOF | |
9388 | cat confdefs.h >>conftest.$ac_ext | |
9389 | cat >>conftest.$ac_ext <<_ACEOF | |
9390 | /* end confdefs.h. */ | |
9391 | #include <$ac_header> | |
9392 | _ACEOF | |
9393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9395 | ac_status=$? | |
9396 | grep -v '^ *+' conftest.er1 >conftest.err | |
9397 | rm -f conftest.er1 | |
9398 | cat conftest.err >&5 | |
9399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9400 | (exit $ac_status); } >/dev/null; then | |
9401 | if test -s conftest.err; then | |
9402 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9404 | else | |
9405 | ac_cpp_err= | |
9406 | fi | |
c906108c | 9407 | else |
bec39cab | 9408 | ac_cpp_err=yes |
c906108c | 9409 | fi |
bec39cab AC |
9410 | if test -z "$ac_cpp_err"; then |
9411 | ac_header_preproc=yes | |
c906108c | 9412 | else |
bec39cab AC |
9413 | echo "$as_me: failed program was:" >&5 |
9414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 9415 | |
bec39cab AC |
9416 | ac_header_preproc=no |
9417 | fi | |
4e8d927d | 9418 | |
bec39cab | 9419 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
9420 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9421 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c906108c | 9422 | |
bec39cab AC |
9423 | # So? What about this header? |
9424 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9425 | yes:no: ) | |
9426 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9427 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9429 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9430 | ac_header_preproc=yes | |
9431 | ;; | |
9432 | no:yes:* ) | |
9433 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9434 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9435 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9436 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9437 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9438 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9439 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9440 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9442 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9443 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9444 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 9445 | |
bec39cab AC |
9446 | ;; |
9447 | esac | |
4e8d927d DJ |
9448 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 9451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 9452 | else |
bec39cab | 9453 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 9454 | fi |
4e8d927d DJ |
9455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9457 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 9458 | |
95ca63c4 | 9459 | fi |
bec39cab AC |
9460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9461 | cat >>confdefs.h <<_ACEOF | |
9462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9463 | _ACEOF | |
9464 | ||
95ca63c4 CF |
9465 | fi |
9466 | ||
bec39cab | 9467 | done |
95ca63c4 CF |
9468 | |
9469 | ||
7cb9022a | 9470 | for ac_header in link.h |
bec39cab AC |
9471 | do |
9472 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
9473 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9474 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9475 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 9476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9477 | else |
7cb9022a | 9478 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9479 | /* confdefs.h. */ |
9480 | _ACEOF | |
9481 | cat confdefs.h >>conftest.$ac_ext | |
9482 | cat >>conftest.$ac_ext <<_ACEOF | |
9483 | /* end confdefs.h. */ | |
7cb9022a MK |
9484 | #if HAVE_SYS_TYPES_H |
9485 | # include <sys/types.h> | |
9486 | #endif | |
9487 | #if HAVE_NLIST_H | |
9488 | # include <nlist.h> | |
9489 | #endif | |
9490 | ||
9491 | ||
bec39cab AC |
9492 | #include <$ac_header> |
9493 | _ACEOF | |
9494 | rm -f conftest.$ac_objext | |
9495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9496 | (eval $ac_compile) 2>conftest.er1 | |
9497 | ac_status=$? | |
9498 | grep -v '^ *+' conftest.er1 >conftest.err | |
9499 | rm -f conftest.er1 | |
9500 | cat conftest.err >&5 | |
9501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9502 | (exit $ac_status); } && | |
121ce6e5 | 9503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9505 | (eval $ac_try) 2>&5 | |
9506 | ac_status=$? | |
9507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9508 | (exit $ac_status); }; } && | |
9509 | { ac_try='test -s conftest.$ac_objext' | |
9510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9511 | (eval $ac_try) 2>&5 | |
9512 | ac_status=$? | |
9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9514 | (exit $ac_status); }; }; then | |
7cb9022a | 9515 | eval "$as_ac_Header=yes" |
bec39cab AC |
9516 | else |
9517 | echo "$as_me: failed program was:" >&5 | |
9518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9519 | ||
4e8d927d | 9520 | eval "$as_ac_Header=no" |
bec39cab | 9521 | fi |
4e8d927d | 9522 | |
bec39cab | 9523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 9524 | fi |
4e8d927d DJ |
9525 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9526 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9527 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
9528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9529 | cat >>confdefs.h <<_ACEOF | |
9530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9531 | _ACEOF | |
95ca63c4 | 9532 | |
bec39cab | 9533 | fi |
95ca63c4 | 9534 | |
bec39cab | 9535 | done |
95ca63c4 | 9536 | |
c906108c | 9537 | |
7cb9022a | 9538 | for ac_header in machine/reg.h |
bec39cab AC |
9539 | do |
9540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
9541 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9542 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9544 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9546 | fi | |
4e8d927d DJ |
9547 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9548 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9549 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
9550 | else |
9551 | # Is the header compilable? | |
4e8d927d DJ |
9552 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9553 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
9554 | cat >conftest.$ac_ext <<_ACEOF |
9555 | /* confdefs.h. */ | |
9556 | _ACEOF | |
9557 | cat confdefs.h >>conftest.$ac_ext | |
9558 | cat >>conftest.$ac_ext <<_ACEOF | |
9559 | /* end confdefs.h. */ | |
9560 | $ac_includes_default | |
9561 | #include <$ac_header> | |
9562 | _ACEOF | |
9563 | rm -f conftest.$ac_objext | |
9564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9565 | (eval $ac_compile) 2>conftest.er1 | |
9566 | ac_status=$? | |
9567 | grep -v '^ *+' conftest.er1 >conftest.err | |
9568 | rm -f conftest.er1 | |
9569 | cat conftest.err >&5 | |
9570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9571 | (exit $ac_status); } && | |
121ce6e5 | 9572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9574 | (eval $ac_try) 2>&5 | |
9575 | ac_status=$? | |
9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9577 | (exit $ac_status); }; } && | |
9578 | { ac_try='test -s conftest.$ac_objext' | |
9579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9580 | (eval $ac_try) 2>&5 | |
9581 | ac_status=$? | |
9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9583 | (exit $ac_status); }; }; then | |
9584 | ac_header_compiler=yes | |
9585 | else | |
9586 | echo "$as_me: failed program was:" >&5 | |
9587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9588 | ||
4e8d927d | 9589 | ac_header_compiler=no |
bec39cab | 9590 | fi |
4e8d927d | 9591 | |
bec39cab | 9592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
9593 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9594 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
9595 | |
9596 | # Is the header present? | |
4e8d927d DJ |
9597 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9598 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
9599 | cat >conftest.$ac_ext <<_ACEOF |
9600 | /* confdefs.h. */ | |
9601 | _ACEOF | |
9602 | cat confdefs.h >>conftest.$ac_ext | |
9603 | cat >>conftest.$ac_ext <<_ACEOF | |
9604 | /* end confdefs.h. */ | |
9605 | #include <$ac_header> | |
9606 | _ACEOF | |
9607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9609 | ac_status=$? | |
9610 | grep -v '^ *+' conftest.er1 >conftest.err | |
9611 | rm -f conftest.er1 | |
9612 | cat conftest.err >&5 | |
9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9614 | (exit $ac_status); } >/dev/null; then | |
9615 | if test -s conftest.err; then | |
9616 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9617 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9618 | else | |
9619 | ac_cpp_err= | |
9620 | fi | |
75c6e08a | 9621 | else |
bec39cab | 9622 | ac_cpp_err=yes |
75c6e08a | 9623 | fi |
bec39cab AC |
9624 | if test -z "$ac_cpp_err"; then |
9625 | ac_header_preproc=yes | |
9626 | else | |
9627 | echo "$as_me: failed program was:" >&5 | |
9628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9629 | ||
9630 | ac_header_preproc=no | |
75c6e08a | 9631 | fi |
4e8d927d | 9632 | |
bec39cab | 9633 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
9634 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9635 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
9636 | |
9637 | # So? What about this header? | |
9638 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9639 | yes:no: ) | |
9640 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9641 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9642 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9643 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9644 | ac_header_preproc=yes | |
9645 | ;; | |
9646 | no:yes:* ) | |
9647 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9648 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9649 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9650 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9651 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9652 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9653 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9654 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9655 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9656 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9657 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9658 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 9659 | |
bec39cab AC |
9660 | ;; |
9661 | esac | |
4e8d927d DJ |
9662 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9663 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 9665 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 9666 | else |
bec39cab AC |
9667 | eval "$as_ac_Header=\$ac_header_preproc" |
9668 | fi | |
4e8d927d DJ |
9669 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9670 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9671 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 9672 | |
75c6e08a | 9673 | fi |
bec39cab AC |
9674 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9675 | cat >>confdefs.h <<_ACEOF | |
9676 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9677 | _ACEOF | |
75c6e08a | 9678 | |
bec39cab | 9679 | fi |
75c6e08a | 9680 | |
bec39cab | 9681 | done |
75c6e08a MK |
9682 | |
9683 | ||
9a156167 | 9684 | |
bec39cab AC |
9685 | for ac_header in poll.h sys/poll.h |
9686 | do | |
9687 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
9688 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9689 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9691 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
9692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9693 | fi | |
4e8d927d DJ |
9694 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9695 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9696 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
9697 | else |
9698 | # Is the header compilable? | |
4e8d927d DJ |
9699 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9700 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
9701 | cat >conftest.$ac_ext <<_ACEOF |
9702 | /* confdefs.h. */ | |
9703 | _ACEOF | |
9704 | cat confdefs.h >>conftest.$ac_ext | |
9705 | cat >>conftest.$ac_ext <<_ACEOF | |
9706 | /* end confdefs.h. */ | |
9707 | $ac_includes_default | |
9708 | #include <$ac_header> | |
9709 | _ACEOF | |
9710 | rm -f conftest.$ac_objext | |
9711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9712 | (eval $ac_compile) 2>conftest.er1 | |
9713 | ac_status=$? | |
9714 | grep -v '^ *+' conftest.er1 >conftest.err | |
9715 | rm -f conftest.er1 | |
9716 | cat conftest.err >&5 | |
9717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9718 | (exit $ac_status); } && | |
121ce6e5 | 9719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9721 | (eval $ac_try) 2>&5 | |
9722 | ac_status=$? | |
9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9724 | (exit $ac_status); }; } && | |
9725 | { ac_try='test -s conftest.$ac_objext' | |
9726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9727 | (eval $ac_try) 2>&5 | |
9728 | ac_status=$? | |
9729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9730 | (exit $ac_status); }; }; then | |
9731 | ac_header_compiler=yes | |
9732 | else | |
9733 | echo "$as_me: failed program was:" >&5 | |
9734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9735 | ||
4e8d927d | 9736 | ac_header_compiler=no |
bec39cab | 9737 | fi |
4e8d927d | 9738 | |
bec39cab | 9739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
9740 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9741 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
9742 | |
9743 | # Is the header present? | |
4e8d927d DJ |
9744 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9745 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
9746 | cat >conftest.$ac_ext <<_ACEOF |
9747 | /* confdefs.h. */ | |
9748 | _ACEOF | |
9749 | cat confdefs.h >>conftest.$ac_ext | |
9750 | cat >>conftest.$ac_ext <<_ACEOF | |
9751 | /* end confdefs.h. */ | |
9752 | #include <$ac_header> | |
9753 | _ACEOF | |
9754 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9755 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9756 | ac_status=$? | |
9757 | grep -v '^ *+' conftest.er1 >conftest.err | |
9758 | rm -f conftest.er1 | |
9759 | cat conftest.err >&5 | |
9760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9761 | (exit $ac_status); } >/dev/null; then | |
9762 | if test -s conftest.err; then | |
9763 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9764 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9765 | else | |
9766 | ac_cpp_err= | |
9767 | fi | |
9a156167 | 9768 | else |
bec39cab | 9769 | ac_cpp_err=yes |
9a156167 | 9770 | fi |
bec39cab AC |
9771 | if test -z "$ac_cpp_err"; then |
9772 | ac_header_preproc=yes | |
9773 | else | |
9774 | echo "$as_me: failed program was:" >&5 | |
9775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9776 | |
bec39cab | 9777 | ac_header_preproc=no |
9a156167 | 9778 | fi |
4e8d927d | 9779 | |
bec39cab | 9780 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
9781 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9782 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9a156167 | 9783 | |
bec39cab AC |
9784 | # So? What about this header? |
9785 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9786 | yes:no: ) | |
9787 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9788 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9789 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9790 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9791 | ac_header_preproc=yes | |
9792 | ;; | |
9793 | no:yes:* ) | |
9794 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9795 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9796 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9797 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9798 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9799 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9800 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9801 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9804 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9805 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 9806 | |
bec39cab AC |
9807 | ;; |
9808 | esac | |
4e8d927d DJ |
9809 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9811 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 9812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 9813 | else |
bec39cab | 9814 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9815 | fi |
4e8d927d DJ |
9816 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9817 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9818 | echo "${ECHO_T}$ac_res" >&6; } | |
9a156167 | 9819 | |
bec39cab AC |
9820 | fi |
9821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9822 | cat >>confdefs.h <<_ACEOF | |
9823 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9824 | _ACEOF | |
9a156167 | 9825 | |
bec39cab | 9826 | fi |
9a156167 | 9827 | |
bec39cab | 9828 | done |
9a156167 | 9829 | |
9a156167 | 9830 | |
9a156167 | 9831 | |
bec39cab AC |
9832 | |
9833 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
9834 | do | |
9835 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
9836 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9837 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9839 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
9840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9841 | fi | |
4e8d927d DJ |
9842 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9844 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
9845 | else |
9846 | # Is the header compilable? | |
4e8d927d DJ |
9847 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9848 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
9849 | cat >conftest.$ac_ext <<_ACEOF |
9850 | /* confdefs.h. */ | |
9851 | _ACEOF | |
9852 | cat confdefs.h >>conftest.$ac_ext | |
9853 | cat >>conftest.$ac_ext <<_ACEOF | |
9854 | /* end confdefs.h. */ | |
9855 | $ac_includes_default | |
9856 | #include <$ac_header> | |
9857 | _ACEOF | |
9858 | rm -f conftest.$ac_objext | |
9859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9860 | (eval $ac_compile) 2>conftest.er1 | |
9861 | ac_status=$? | |
9862 | grep -v '^ *+' conftest.er1 >conftest.err | |
9863 | rm -f conftest.er1 | |
9864 | cat conftest.err >&5 | |
9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9866 | (exit $ac_status); } && | |
121ce6e5 | 9867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9869 | (eval $ac_try) 2>&5 | |
9870 | ac_status=$? | |
9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9872 | (exit $ac_status); }; } && | |
9873 | { ac_try='test -s conftest.$ac_objext' | |
9874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9875 | (eval $ac_try) 2>&5 | |
9876 | ac_status=$? | |
9877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9878 | (exit $ac_status); }; }; then | |
9879 | ac_header_compiler=yes | |
9880 | else | |
9881 | echo "$as_me: failed program was:" >&5 | |
9882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9883 | ||
4e8d927d | 9884 | ac_header_compiler=no |
bec39cab | 9885 | fi |
4e8d927d | 9886 | |
bec39cab | 9887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
9888 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9889 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
9890 | |
9891 | # Is the header present? | |
4e8d927d DJ |
9892 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9893 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
9894 | cat >conftest.$ac_ext <<_ACEOF |
9895 | /* confdefs.h. */ | |
9896 | _ACEOF | |
9897 | cat confdefs.h >>conftest.$ac_ext | |
9898 | cat >>conftest.$ac_ext <<_ACEOF | |
9899 | /* end confdefs.h. */ | |
9900 | #include <$ac_header> | |
9901 | _ACEOF | |
9902 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9903 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9904 | ac_status=$? | |
9905 | grep -v '^ *+' conftest.er1 >conftest.err | |
9906 | rm -f conftest.er1 | |
9907 | cat conftest.err >&5 | |
9908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9909 | (exit $ac_status); } >/dev/null; then | |
9910 | if test -s conftest.err; then | |
9911 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9912 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9913 | else | |
9914 | ac_cpp_err= | |
9915 | fi | |
9a156167 | 9916 | else |
bec39cab | 9917 | ac_cpp_err=yes |
9a156167 | 9918 | fi |
bec39cab AC |
9919 | if test -z "$ac_cpp_err"; then |
9920 | ac_header_preproc=yes | |
9921 | else | |
9922 | echo "$as_me: failed program was:" >&5 | |
9923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9924 | |
bec39cab | 9925 | ac_header_preproc=no |
9a156167 | 9926 | fi |
4e8d927d | 9927 | |
bec39cab | 9928 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
9929 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9930 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9a156167 | 9931 | |
bec39cab AC |
9932 | # So? What about this header? |
9933 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9934 | yes:no: ) | |
9935 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9936 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9937 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9938 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9939 | ac_header_preproc=yes | |
9940 | ;; | |
9941 | no:yes:* ) | |
9942 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9943 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9944 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9945 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9946 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9947 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9948 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9949 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9950 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9951 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9952 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9953 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 9954 | |
bec39cab AC |
9955 | ;; |
9956 | esac | |
4e8d927d DJ |
9957 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9959 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 9961 | else |
bec39cab | 9962 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9963 | fi |
4e8d927d DJ |
9964 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9965 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9966 | echo "${ECHO_T}$ac_res" >&6; } | |
9a156167 MK |
9967 | |
9968 | fi | |
bec39cab AC |
9969 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9970 | cat >>confdefs.h <<_ACEOF | |
9971 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9972 | _ACEOF | |
9a156167 | 9973 | |
bec39cab AC |
9974 | fi |
9975 | ||
9976 | done | |
9a156167 | 9977 | |
c890192f | 9978 | |
bec39cab AC |
9979 | for ac_header in stddef.h |
9980 | do | |
9981 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
9982 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9983 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9984 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9985 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
9986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9987 | fi | |
4e8d927d DJ |
9988 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9989 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9990 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
9991 | else |
9992 | # Is the header compilable? | |
4e8d927d DJ |
9993 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9994 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
9995 | cat >conftest.$ac_ext <<_ACEOF |
9996 | /* confdefs.h. */ | |
9997 | _ACEOF | |
9998 | cat confdefs.h >>conftest.$ac_ext | |
9999 | cat >>conftest.$ac_ext <<_ACEOF | |
10000 | /* end confdefs.h. */ | |
10001 | $ac_includes_default | |
10002 | #include <$ac_header> | |
10003 | _ACEOF | |
10004 | rm -f conftest.$ac_objext | |
10005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10006 | (eval $ac_compile) 2>conftest.er1 | |
10007 | ac_status=$? | |
10008 | grep -v '^ *+' conftest.er1 >conftest.err | |
10009 | rm -f conftest.er1 | |
10010 | cat conftest.err >&5 | |
10011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10012 | (exit $ac_status); } && | |
121ce6e5 | 10013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10015 | (eval $ac_try) 2>&5 | |
10016 | ac_status=$? | |
10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10018 | (exit $ac_status); }; } && | |
10019 | { ac_try='test -s conftest.$ac_objext' | |
10020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10021 | (eval $ac_try) 2>&5 | |
10022 | ac_status=$? | |
10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10024 | (exit $ac_status); }; }; then | |
10025 | ac_header_compiler=yes | |
10026 | else | |
10027 | echo "$as_me: failed program was:" >&5 | |
10028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10029 | ||
4e8d927d | 10030 | ac_header_compiler=no |
bec39cab | 10031 | fi |
4e8d927d | 10032 | |
bec39cab | 10033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10034 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10035 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10036 | |
10037 | # Is the header present? | |
4e8d927d DJ |
10038 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10039 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10040 | cat >conftest.$ac_ext <<_ACEOF |
10041 | /* confdefs.h. */ | |
10042 | _ACEOF | |
10043 | cat confdefs.h >>conftest.$ac_ext | |
10044 | cat >>conftest.$ac_ext <<_ACEOF | |
10045 | /* end confdefs.h. */ | |
10046 | #include <$ac_header> | |
10047 | _ACEOF | |
10048 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10049 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10050 | ac_status=$? | |
10051 | grep -v '^ *+' conftest.er1 >conftest.err | |
10052 | rm -f conftest.er1 | |
10053 | cat conftest.err >&5 | |
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10055 | (exit $ac_status); } >/dev/null; then | |
10056 | if test -s conftest.err; then | |
10057 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10058 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10059 | else | |
10060 | ac_cpp_err= | |
10061 | fi | |
c890192f | 10062 | else |
bec39cab AC |
10063 | ac_cpp_err=yes |
10064 | fi | |
10065 | if test -z "$ac_cpp_err"; then | |
10066 | ac_header_preproc=yes | |
c890192f | 10067 | else |
bec39cab AC |
10068 | echo "$as_me: failed program was:" >&5 |
10069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10070 | ||
10071 | ac_header_preproc=no | |
c890192f | 10072 | fi |
4e8d927d | 10073 | |
bec39cab | 10074 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10075 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10076 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
10077 | |
10078 | # So? What about this header? | |
10079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10080 | yes:no: ) | |
10081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10085 | ac_header_preproc=yes | |
10086 | ;; | |
10087 | no:yes:* ) | |
10088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10100 | |
bec39cab AC |
10101 | ;; |
10102 | esac | |
4e8d927d DJ |
10103 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 10106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 10107 | else |
bec39cab | 10108 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 10109 | fi |
4e8d927d DJ |
10110 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10112 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 10113 | |
c890192f | 10114 | fi |
bec39cab AC |
10115 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10116 | cat >>confdefs.h <<_ACEOF | |
10117 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10118 | _ACEOF | |
c890192f | 10119 | |
c890192f MK |
10120 | fi |
10121 | ||
bec39cab | 10122 | done |
9a156167 | 10123 | |
bec39cab AC |
10124 | |
10125 | for ac_header in stdlib.h | |
10126 | do | |
10127 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
10128 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10129 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10130 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10131 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10133 | fi | |
4e8d927d DJ |
10134 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10135 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10136 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
10137 | else |
10138 | # Is the header compilable? | |
4e8d927d DJ |
10139 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10140 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
10141 | cat >conftest.$ac_ext <<_ACEOF |
10142 | /* confdefs.h. */ | |
10143 | _ACEOF | |
10144 | cat confdefs.h >>conftest.$ac_ext | |
10145 | cat >>conftest.$ac_ext <<_ACEOF | |
10146 | /* end confdefs.h. */ | |
10147 | $ac_includes_default | |
10148 | #include <$ac_header> | |
10149 | _ACEOF | |
10150 | rm -f conftest.$ac_objext | |
10151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10152 | (eval $ac_compile) 2>conftest.er1 | |
10153 | ac_status=$? | |
10154 | grep -v '^ *+' conftest.er1 >conftest.err | |
10155 | rm -f conftest.er1 | |
10156 | cat conftest.err >&5 | |
10157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10158 | (exit $ac_status); } && | |
121ce6e5 | 10159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10161 | (eval $ac_try) 2>&5 | |
10162 | ac_status=$? | |
10163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10164 | (exit $ac_status); }; } && | |
10165 | { ac_try='test -s conftest.$ac_objext' | |
10166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10167 | (eval $ac_try) 2>&5 | |
10168 | ac_status=$? | |
10169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10170 | (exit $ac_status); }; }; then | |
10171 | ac_header_compiler=yes | |
10172 | else | |
10173 | echo "$as_me: failed program was:" >&5 | |
10174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10175 | ||
4e8d927d | 10176 | ac_header_compiler=no |
bec39cab | 10177 | fi |
4e8d927d | 10178 | |
bec39cab | 10179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10180 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10181 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10182 | |
10183 | # Is the header present? | |
4e8d927d DJ |
10184 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10185 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10186 | cat >conftest.$ac_ext <<_ACEOF |
10187 | /* confdefs.h. */ | |
10188 | _ACEOF | |
10189 | cat confdefs.h >>conftest.$ac_ext | |
10190 | cat >>conftest.$ac_ext <<_ACEOF | |
10191 | /* end confdefs.h. */ | |
10192 | #include <$ac_header> | |
10193 | _ACEOF | |
10194 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10195 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10196 | ac_status=$? | |
10197 | grep -v '^ *+' conftest.er1 >conftest.err | |
10198 | rm -f conftest.er1 | |
10199 | cat conftest.err >&5 | |
10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10201 | (exit $ac_status); } >/dev/null; then | |
10202 | if test -s conftest.err; then | |
10203 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10204 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10205 | else | |
10206 | ac_cpp_err= | |
10207 | fi | |
9a156167 | 10208 | else |
bec39cab AC |
10209 | ac_cpp_err=yes |
10210 | fi | |
10211 | if test -z "$ac_cpp_err"; then | |
10212 | ac_header_preproc=yes | |
9a156167 | 10213 | else |
bec39cab AC |
10214 | echo "$as_me: failed program was:" >&5 |
10215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10216 | ||
10217 | ac_header_preproc=no | |
9a156167 | 10218 | fi |
4e8d927d | 10219 | |
bec39cab | 10220 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10221 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10222 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
10223 | |
10224 | # So? What about this header? | |
10225 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10226 | yes:no: ) | |
10227 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10228 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10230 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10231 | ac_header_preproc=yes | |
10232 | ;; | |
10233 | no:yes:* ) | |
10234 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10235 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10236 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10237 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10238 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10239 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10240 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10241 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10243 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10244 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10245 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10246 | |
bec39cab AC |
10247 | ;; |
10248 | esac | |
4e8d927d DJ |
10249 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10251 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 10252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 10253 | else |
bec39cab | 10254 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 10255 | fi |
4e8d927d DJ |
10256 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10257 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10258 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 10259 | |
9a156167 | 10260 | fi |
bec39cab AC |
10261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10262 | cat >>confdefs.h <<_ACEOF | |
10263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10264 | _ACEOF | |
9a156167 | 10265 | |
9a156167 MK |
10266 | fi |
10267 | ||
bec39cab AC |
10268 | done |
10269 | ||
06825bd1 | 10270 | |
bec39cab AC |
10271 | for ac_header in stdint.h |
10272 | do | |
10273 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
10274 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10275 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10277 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10279 | fi | |
4e8d927d DJ |
10280 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10281 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10282 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
10283 | else |
10284 | # Is the header compilable? | |
4e8d927d DJ |
10285 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10286 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
10287 | cat >conftest.$ac_ext <<_ACEOF |
10288 | /* confdefs.h. */ | |
10289 | _ACEOF | |
10290 | cat confdefs.h >>conftest.$ac_ext | |
10291 | cat >>conftest.$ac_ext <<_ACEOF | |
10292 | /* end confdefs.h. */ | |
10293 | $ac_includes_default | |
10294 | #include <$ac_header> | |
10295 | _ACEOF | |
10296 | rm -f conftest.$ac_objext | |
10297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10298 | (eval $ac_compile) 2>conftest.er1 | |
10299 | ac_status=$? | |
10300 | grep -v '^ *+' conftest.er1 >conftest.err | |
10301 | rm -f conftest.er1 | |
10302 | cat conftest.err >&5 | |
10303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10304 | (exit $ac_status); } && | |
121ce6e5 | 10305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10307 | (eval $ac_try) 2>&5 | |
10308 | ac_status=$? | |
10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10310 | (exit $ac_status); }; } && | |
10311 | { ac_try='test -s conftest.$ac_objext' | |
10312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10313 | (eval $ac_try) 2>&5 | |
10314 | ac_status=$? | |
10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10316 | (exit $ac_status); }; }; then | |
10317 | ac_header_compiler=yes | |
10318 | else | |
10319 | echo "$as_me: failed program was:" >&5 | |
10320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10321 | ||
4e8d927d | 10322 | ac_header_compiler=no |
bec39cab | 10323 | fi |
4e8d927d | 10324 | |
bec39cab | 10325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10326 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10327 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10328 | |
10329 | # Is the header present? | |
4e8d927d DJ |
10330 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10331 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10332 | cat >conftest.$ac_ext <<_ACEOF |
10333 | /* confdefs.h. */ | |
10334 | _ACEOF | |
10335 | cat confdefs.h >>conftest.$ac_ext | |
10336 | cat >>conftest.$ac_ext <<_ACEOF | |
10337 | /* end confdefs.h. */ | |
10338 | #include <$ac_header> | |
10339 | _ACEOF | |
10340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10342 | ac_status=$? | |
10343 | grep -v '^ *+' conftest.er1 >conftest.err | |
10344 | rm -f conftest.er1 | |
10345 | cat conftest.err >&5 | |
10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10347 | (exit $ac_status); } >/dev/null; then | |
10348 | if test -s conftest.err; then | |
10349 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10351 | else | |
10352 | ac_cpp_err= | |
10353 | fi | |
06825bd1 | 10354 | else |
bec39cab AC |
10355 | ac_cpp_err=yes |
10356 | fi | |
10357 | if test -z "$ac_cpp_err"; then | |
10358 | ac_header_preproc=yes | |
06825bd1 | 10359 | else |
bec39cab AC |
10360 | echo "$as_me: failed program was:" >&5 |
10361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10362 | ||
10363 | ac_header_preproc=no | |
06825bd1 | 10364 | fi |
4e8d927d | 10365 | |
bec39cab | 10366 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10367 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10368 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
10369 | |
10370 | # So? What about this header? | |
10371 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10372 | yes:no: ) | |
10373 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10374 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10375 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10376 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10377 | ac_header_preproc=yes | |
10378 | ;; | |
10379 | no:yes:* ) | |
10380 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10381 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10382 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10383 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10384 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10385 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10386 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10387 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10389 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10390 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10391 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10392 | |
bec39cab AC |
10393 | ;; |
10394 | esac | |
4e8d927d DJ |
10395 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10397 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 10398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 10399 | else |
bec39cab | 10400 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 10401 | fi |
4e8d927d DJ |
10402 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10403 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10404 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 10405 | |
06825bd1 | 10406 | fi |
bec39cab AC |
10407 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10408 | cat >>confdefs.h <<_ACEOF | |
10409 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10410 | _ACEOF | |
06825bd1 | 10411 | |
06825bd1 | 10412 | fi |
4f0be353 | 10413 | |
bec39cab | 10414 | done |
4f0be353 | 10415 | |
06825bd1 | 10416 | |
06825bd1 | 10417 | |
bec39cab AC |
10418 | |
10419 | for ac_header in string.h memory.h strings.h | |
10420 | do | |
10421 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
10422 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10423 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10424 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10425 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10427 | fi | |
4e8d927d DJ |
10428 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10429 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10430 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
10431 | else |
10432 | # Is the header compilable? | |
4e8d927d DJ |
10433 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10434 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
10435 | cat >conftest.$ac_ext <<_ACEOF |
10436 | /* confdefs.h. */ | |
10437 | _ACEOF | |
10438 | cat confdefs.h >>conftest.$ac_ext | |
10439 | cat >>conftest.$ac_ext <<_ACEOF | |
10440 | /* end confdefs.h. */ | |
10441 | $ac_includes_default | |
10442 | #include <$ac_header> | |
10443 | _ACEOF | |
10444 | rm -f conftest.$ac_objext | |
10445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10446 | (eval $ac_compile) 2>conftest.er1 | |
10447 | ac_status=$? | |
10448 | grep -v '^ *+' conftest.er1 >conftest.err | |
10449 | rm -f conftest.er1 | |
10450 | cat conftest.err >&5 | |
10451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10452 | (exit $ac_status); } && | |
121ce6e5 | 10453 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10455 | (eval $ac_try) 2>&5 | |
10456 | ac_status=$? | |
10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10458 | (exit $ac_status); }; } && | |
10459 | { ac_try='test -s conftest.$ac_objext' | |
10460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10461 | (eval $ac_try) 2>&5 | |
10462 | ac_status=$? | |
10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10464 | (exit $ac_status); }; }; then | |
10465 | ac_header_compiler=yes | |
10466 | else | |
10467 | echo "$as_me: failed program was:" >&5 | |
10468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10469 | ||
4e8d927d | 10470 | ac_header_compiler=no |
bec39cab | 10471 | fi |
4e8d927d | 10472 | |
bec39cab | 10473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10474 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10475 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10476 | |
10477 | # Is the header present? | |
4e8d927d DJ |
10478 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10479 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10480 | cat >conftest.$ac_ext <<_ACEOF |
10481 | /* confdefs.h. */ | |
10482 | _ACEOF | |
10483 | cat confdefs.h >>conftest.$ac_ext | |
10484 | cat >>conftest.$ac_ext <<_ACEOF | |
10485 | /* end confdefs.h. */ | |
10486 | #include <$ac_header> | |
10487 | _ACEOF | |
10488 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10489 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10490 | ac_status=$? | |
10491 | grep -v '^ *+' conftest.er1 >conftest.err | |
10492 | rm -f conftest.er1 | |
10493 | cat conftest.err >&5 | |
10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10495 | (exit $ac_status); } >/dev/null; then | |
10496 | if test -s conftest.err; then | |
10497 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10498 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10499 | else | |
10500 | ac_cpp_err= | |
10501 | fi | |
06825bd1 | 10502 | else |
bec39cab AC |
10503 | ac_cpp_err=yes |
10504 | fi | |
10505 | if test -z "$ac_cpp_err"; then | |
10506 | ac_header_preproc=yes | |
06825bd1 | 10507 | else |
bec39cab AC |
10508 | echo "$as_me: failed program was:" >&5 |
10509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10510 | ||
10511 | ac_header_preproc=no | |
06825bd1 | 10512 | fi |
4e8d927d | 10513 | |
bec39cab | 10514 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10515 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10516 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
10517 | |
10518 | # So? What about this header? | |
10519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10520 | yes:no: ) | |
10521 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10522 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10524 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10525 | ac_header_preproc=yes | |
10526 | ;; | |
10527 | no:yes:* ) | |
10528 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10529 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10530 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10531 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10532 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10533 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10534 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10535 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10537 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10538 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10539 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10540 | |
bec39cab AC |
10541 | ;; |
10542 | esac | |
4e8d927d DJ |
10543 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10544 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10545 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10547 | else | |
10548 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 10549 | fi |
4e8d927d DJ |
10550 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10551 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10552 | echo "${ECHO_T}$ac_res" >&6; } | |
06825bd1 | 10553 | |
06825bd1 | 10554 | fi |
bec39cab AC |
10555 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10556 | cat >>confdefs.h <<_ACEOF | |
10557 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10558 | _ACEOF | |
06825bd1 | 10559 | |
06825bd1 MK |
10560 | fi |
10561 | ||
bec39cab | 10562 | done |
5ee754fc | 10563 | |
bec39cab AC |
10564 | |
10565 | for ac_header in sys/fault.h | |
5ee754fc | 10566 | do |
bec39cab | 10567 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
10568 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10569 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10570 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10571 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10573 | fi | |
4e8d927d DJ |
10574 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10575 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10576 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
10577 | else |
10578 | # Is the header compilable? | |
4e8d927d DJ |
10579 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10580 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
10581 | cat >conftest.$ac_ext <<_ACEOF |
10582 | /* confdefs.h. */ | |
10583 | _ACEOF | |
10584 | cat confdefs.h >>conftest.$ac_ext | |
10585 | cat >>conftest.$ac_ext <<_ACEOF | |
10586 | /* end confdefs.h. */ | |
10587 | $ac_includes_default | |
10588 | #include <$ac_header> | |
10589 | _ACEOF | |
10590 | rm -f conftest.$ac_objext | |
10591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10592 | (eval $ac_compile) 2>conftest.er1 | |
10593 | ac_status=$? | |
10594 | grep -v '^ *+' conftest.er1 >conftest.err | |
10595 | rm -f conftest.er1 | |
10596 | cat conftest.err >&5 | |
10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10598 | (exit $ac_status); } && | |
121ce6e5 | 10599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10601 | (eval $ac_try) 2>&5 | |
10602 | ac_status=$? | |
10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10604 | (exit $ac_status); }; } && | |
10605 | { ac_try='test -s conftest.$ac_objext' | |
10606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10607 | (eval $ac_try) 2>&5 | |
10608 | ac_status=$? | |
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10610 | (exit $ac_status); }; }; then | |
10611 | ac_header_compiler=yes | |
10612 | else | |
10613 | echo "$as_me: failed program was:" >&5 | |
10614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10615 | ||
4e8d927d | 10616 | ac_header_compiler=no |
bec39cab | 10617 | fi |
4e8d927d | 10618 | |
bec39cab | 10619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10620 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10621 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10622 | |
10623 | # Is the header present? | |
4e8d927d DJ |
10624 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10625 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10626 | cat >conftest.$ac_ext <<_ACEOF |
10627 | /* confdefs.h. */ | |
10628 | _ACEOF | |
10629 | cat confdefs.h >>conftest.$ac_ext | |
10630 | cat >>conftest.$ac_ext <<_ACEOF | |
10631 | /* end confdefs.h. */ | |
10632 | #include <$ac_header> | |
10633 | _ACEOF | |
10634 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10635 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10636 | ac_status=$? | |
10637 | grep -v '^ *+' conftest.er1 >conftest.err | |
10638 | rm -f conftest.er1 | |
10639 | cat conftest.err >&5 | |
10640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10641 | (exit $ac_status); } >/dev/null; then | |
10642 | if test -s conftest.err; then | |
10643 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10644 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10645 | else | |
10646 | ac_cpp_err= | |
10647 | fi | |
5ee754fc | 10648 | else |
bec39cab | 10649 | ac_cpp_err=yes |
5ee754fc | 10650 | fi |
bec39cab AC |
10651 | if test -z "$ac_cpp_err"; then |
10652 | ac_header_preproc=yes | |
10653 | else | |
10654 | echo "$as_me: failed program was:" >&5 | |
10655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10656 | |
bec39cab | 10657 | ac_header_preproc=no |
5ee754fc | 10658 | fi |
4e8d927d | 10659 | |
bec39cab | 10660 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10661 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10662 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
10663 | |
10664 | # So? What about this header? | |
10665 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10666 | yes:no: ) | |
10667 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10668 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10669 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10670 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10671 | ac_header_preproc=yes | |
10672 | ;; | |
10673 | no:yes:* ) | |
10674 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10675 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10676 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10677 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10678 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10679 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10680 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10681 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10682 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10683 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10684 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10685 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10686 | |
bec39cab AC |
10687 | ;; |
10688 | esac | |
4e8d927d DJ |
10689 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10690 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10691 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 10692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 10693 | else |
bec39cab | 10694 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10695 | fi |
4e8d927d DJ |
10696 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10697 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10698 | echo "${ECHO_T}$ac_res" >&6; } | |
c906108c | 10699 | |
5ee754fc | 10700 | fi |
bec39cab AC |
10701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10702 | cat >>confdefs.h <<_ACEOF | |
10703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10704 | _ACEOF | |
c906108c | 10705 | |
5ee754fc | 10706 | fi |
bec39cab AC |
10707 | |
10708 | done | |
10709 | ||
10710 | ||
10711 | for ac_header in sys/file.h | |
10712 | do | |
10713 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
10714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10715 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10717 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10719 | fi | |
4e8d927d DJ |
10720 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10721 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10722 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
10723 | else |
10724 | # Is the header compilable? | |
4e8d927d DJ |
10725 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10726 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
10727 | cat >conftest.$ac_ext <<_ACEOF |
10728 | /* confdefs.h. */ | |
10729 | _ACEOF | |
10730 | cat confdefs.h >>conftest.$ac_ext | |
10731 | cat >>conftest.$ac_ext <<_ACEOF | |
10732 | /* end confdefs.h. */ | |
10733 | $ac_includes_default | |
10734 | #include <$ac_header> | |
10735 | _ACEOF | |
10736 | rm -f conftest.$ac_objext | |
10737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10738 | (eval $ac_compile) 2>conftest.er1 | |
10739 | ac_status=$? | |
10740 | grep -v '^ *+' conftest.er1 >conftest.err | |
10741 | rm -f conftest.er1 | |
10742 | cat conftest.err >&5 | |
10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10744 | (exit $ac_status); } && | |
121ce6e5 | 10745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10747 | (eval $ac_try) 2>&5 | |
10748 | ac_status=$? | |
10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10750 | (exit $ac_status); }; } && | |
10751 | { ac_try='test -s conftest.$ac_objext' | |
10752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10753 | (eval $ac_try) 2>&5 | |
10754 | ac_status=$? | |
10755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10756 | (exit $ac_status); }; }; then | |
10757 | ac_header_compiler=yes | |
10758 | else | |
10759 | echo "$as_me: failed program was:" >&5 | |
10760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10761 | ||
4e8d927d | 10762 | ac_header_compiler=no |
bec39cab | 10763 | fi |
4e8d927d | 10764 | |
bec39cab | 10765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10766 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10767 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10768 | |
10769 | # Is the header present? | |
4e8d927d DJ |
10770 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10771 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10772 | cat >conftest.$ac_ext <<_ACEOF |
10773 | /* confdefs.h. */ | |
10774 | _ACEOF | |
10775 | cat confdefs.h >>conftest.$ac_ext | |
10776 | cat >>conftest.$ac_ext <<_ACEOF | |
10777 | /* end confdefs.h. */ | |
10778 | #include <$ac_header> | |
10779 | _ACEOF | |
10780 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10781 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10782 | ac_status=$? | |
10783 | grep -v '^ *+' conftest.er1 >conftest.err | |
10784 | rm -f conftest.er1 | |
10785 | cat conftest.err >&5 | |
10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10787 | (exit $ac_status); } >/dev/null; then | |
10788 | if test -s conftest.err; then | |
10789 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10790 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10791 | else | |
10792 | ac_cpp_err= | |
10793 | fi | |
5ee754fc | 10794 | else |
bec39cab | 10795 | ac_cpp_err=yes |
5ee754fc | 10796 | fi |
bec39cab AC |
10797 | if test -z "$ac_cpp_err"; then |
10798 | ac_header_preproc=yes | |
10799 | else | |
10800 | echo "$as_me: failed program was:" >&5 | |
10801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 10802 | |
bec39cab | 10803 | ac_header_preproc=no |
5ee754fc | 10804 | fi |
4e8d927d | 10805 | |
bec39cab | 10806 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10807 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10808 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c906108c | 10809 | |
bec39cab AC |
10810 | # So? What about this header? |
10811 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10812 | yes:no: ) | |
10813 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10814 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10815 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10816 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10817 | ac_header_preproc=yes | |
10818 | ;; | |
10819 | no:yes:* ) | |
10820 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10821 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10822 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10823 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10824 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10825 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10826 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10827 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10829 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10830 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10831 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10832 | |
bec39cab AC |
10833 | ;; |
10834 | esac | |
4e8d927d DJ |
10835 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10837 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 10838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 10839 | else |
bec39cab AC |
10840 | eval "$as_ac_Header=\$ac_header_preproc" |
10841 | fi | |
4e8d927d DJ |
10842 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10843 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10844 | echo "${ECHO_T}$ac_res" >&6; } | |
5ee754fc | 10845 | |
bec39cab AC |
10846 | fi |
10847 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10848 | cat >>confdefs.h <<_ACEOF | |
10849 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10850 | _ACEOF | |
5ee754fc | 10851 | |
bec39cab | 10852 | fi |
5ee754fc | 10853 | |
bec39cab | 10854 | done |
5ee754fc | 10855 | |
5ee754fc | 10856 | |
bec39cab AC |
10857 | for ac_header in sys/filio.h |
10858 | do | |
10859 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
10860 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10861 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10862 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10863 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
10864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10865 | fi | |
4e8d927d DJ |
10866 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10867 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10868 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
10869 | else |
10870 | # Is the header compilable? | |
4e8d927d DJ |
10871 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10872 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
10873 | cat >conftest.$ac_ext <<_ACEOF |
10874 | /* confdefs.h. */ | |
10875 | _ACEOF | |
10876 | cat confdefs.h >>conftest.$ac_ext | |
10877 | cat >>conftest.$ac_ext <<_ACEOF | |
10878 | /* end confdefs.h. */ | |
10879 | $ac_includes_default | |
10880 | #include <$ac_header> | |
10881 | _ACEOF | |
10882 | rm -f conftest.$ac_objext | |
10883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10884 | (eval $ac_compile) 2>conftest.er1 | |
10885 | ac_status=$? | |
10886 | grep -v '^ *+' conftest.er1 >conftest.err | |
10887 | rm -f conftest.er1 | |
10888 | cat conftest.err >&5 | |
10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10890 | (exit $ac_status); } && | |
121ce6e5 | 10891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
10892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10893 | (eval $ac_try) 2>&5 | |
10894 | ac_status=$? | |
10895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10896 | (exit $ac_status); }; } && | |
10897 | { ac_try='test -s conftest.$ac_objext' | |
10898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10899 | (eval $ac_try) 2>&5 | |
10900 | ac_status=$? | |
10901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10902 | (exit $ac_status); }; }; then | |
10903 | ac_header_compiler=yes | |
10904 | else | |
10905 | echo "$as_me: failed program was:" >&5 | |
10906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10907 | ||
4e8d927d | 10908 | ac_header_compiler=no |
bec39cab | 10909 | fi |
4e8d927d | 10910 | |
bec39cab | 10911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
10912 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10913 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
10914 | |
10915 | # Is the header present? | |
4e8d927d DJ |
10916 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10917 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
10918 | cat >conftest.$ac_ext <<_ACEOF |
10919 | /* confdefs.h. */ | |
10920 | _ACEOF | |
10921 | cat confdefs.h >>conftest.$ac_ext | |
10922 | cat >>conftest.$ac_ext <<_ACEOF | |
10923 | /* end confdefs.h. */ | |
10924 | #include <$ac_header> | |
10925 | _ACEOF | |
10926 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10927 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10928 | ac_status=$? | |
10929 | grep -v '^ *+' conftest.er1 >conftest.err | |
10930 | rm -f conftest.er1 | |
10931 | cat conftest.err >&5 | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); } >/dev/null; then | |
10934 | if test -s conftest.err; then | |
10935 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10936 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10937 | else | |
10938 | ac_cpp_err= | |
10939 | fi | |
5ee754fc | 10940 | else |
bec39cab | 10941 | ac_cpp_err=yes |
5ee754fc | 10942 | fi |
bec39cab AC |
10943 | if test -z "$ac_cpp_err"; then |
10944 | ac_header_preproc=yes | |
10945 | else | |
10946 | echo "$as_me: failed program was:" >&5 | |
10947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10948 | |
bec39cab | 10949 | ac_header_preproc=no |
5ee754fc | 10950 | fi |
4e8d927d | 10951 | |
bec39cab | 10952 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
10953 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10954 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 10955 | |
bec39cab AC |
10956 | # So? What about this header? |
10957 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10958 | yes:no: ) | |
10959 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10960 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10961 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10962 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10963 | ac_header_preproc=yes | |
10964 | ;; | |
10965 | no:yes:* ) | |
10966 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10967 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10968 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10969 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10970 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10971 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10972 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10973 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10975 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10976 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10977 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 10978 | |
bec39cab AC |
10979 | ;; |
10980 | esac | |
4e8d927d DJ |
10981 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10982 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10983 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 10984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 10985 | else |
bec39cab | 10986 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10987 | fi |
4e8d927d DJ |
10988 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10989 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10990 | echo "${ECHO_T}$ac_res" >&6; } | |
5ee754fc | 10991 | |
5ee754fc | 10992 | fi |
bec39cab AC |
10993 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10994 | cat >>confdefs.h <<_ACEOF | |
10995 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10996 | _ACEOF | |
5ee754fc MK |
10997 | |
10998 | fi | |
10999 | ||
bec39cab AC |
11000 | done |
11001 | ||
11002 | ||
11003 | for ac_header in sys/ioctl.h | |
11004 | do | |
11005 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
11006 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11007 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11009 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11011 | fi | |
4e8d927d DJ |
11012 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11013 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11014 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11015 | else |
11016 | # Is the header compilable? | |
4e8d927d DJ |
11017 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11018 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11019 | cat >conftest.$ac_ext <<_ACEOF |
11020 | /* confdefs.h. */ | |
11021 | _ACEOF | |
11022 | cat confdefs.h >>conftest.$ac_ext | |
11023 | cat >>conftest.$ac_ext <<_ACEOF | |
11024 | /* end confdefs.h. */ | |
11025 | $ac_includes_default | |
11026 | #include <$ac_header> | |
11027 | _ACEOF | |
11028 | rm -f conftest.$ac_objext | |
11029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11030 | (eval $ac_compile) 2>conftest.er1 | |
11031 | ac_status=$? | |
11032 | grep -v '^ *+' conftest.er1 >conftest.err | |
11033 | rm -f conftest.er1 | |
11034 | cat conftest.err >&5 | |
11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11036 | (exit $ac_status); } && | |
121ce6e5 | 11037 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11039 | (eval $ac_try) 2>&5 | |
11040 | ac_status=$? | |
11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11042 | (exit $ac_status); }; } && | |
11043 | { ac_try='test -s conftest.$ac_objext' | |
11044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11045 | (eval $ac_try) 2>&5 | |
11046 | ac_status=$? | |
11047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11048 | (exit $ac_status); }; }; then | |
11049 | ac_header_compiler=yes | |
11050 | else | |
11051 | echo "$as_me: failed program was:" >&5 | |
11052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11053 | ||
4e8d927d | 11054 | ac_header_compiler=no |
bec39cab | 11055 | fi |
4e8d927d | 11056 | |
bec39cab | 11057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
11058 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11059 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
11060 | |
11061 | # Is the header present? | |
4e8d927d DJ |
11062 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11063 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
11064 | cat >conftest.$ac_ext <<_ACEOF |
11065 | /* confdefs.h. */ | |
11066 | _ACEOF | |
11067 | cat confdefs.h >>conftest.$ac_ext | |
11068 | cat >>conftest.$ac_ext <<_ACEOF | |
11069 | /* end confdefs.h. */ | |
11070 | #include <$ac_header> | |
11071 | _ACEOF | |
11072 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11073 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11074 | ac_status=$? | |
11075 | grep -v '^ *+' conftest.er1 >conftest.err | |
11076 | rm -f conftest.er1 | |
11077 | cat conftest.err >&5 | |
11078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11079 | (exit $ac_status); } >/dev/null; then | |
11080 | if test -s conftest.err; then | |
11081 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11082 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11083 | else | |
11084 | ac_cpp_err= | |
11085 | fi | |
5ee754fc | 11086 | else |
bec39cab | 11087 | ac_cpp_err=yes |
5ee754fc | 11088 | fi |
bec39cab AC |
11089 | if test -z "$ac_cpp_err"; then |
11090 | ac_header_preproc=yes | |
11091 | else | |
11092 | echo "$as_me: failed program was:" >&5 | |
11093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 11094 | |
bec39cab | 11095 | ac_header_preproc=no |
5ee754fc | 11096 | fi |
4e8d927d | 11097 | |
bec39cab | 11098 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
11099 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11100 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 11101 | |
bec39cab AC |
11102 | # So? What about this header? |
11103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11104 | yes:no: ) | |
11105 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11106 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11108 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11109 | ac_header_preproc=yes | |
11110 | ;; | |
11111 | no:yes:* ) | |
11112 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11113 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11114 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11115 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11116 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11117 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11118 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11119 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11120 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11121 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11122 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11123 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 11124 | |
bec39cab AC |
11125 | ;; |
11126 | esac | |
4e8d927d DJ |
11127 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 11130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 11131 | else |
bec39cab | 11132 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 11133 | fi |
4e8d927d DJ |
11134 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11135 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11136 | echo "${ECHO_T}$ac_res" >&6; } | |
5ee754fc MK |
11137 | |
11138 | fi | |
bec39cab AC |
11139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11140 | cat >>confdefs.h <<_ACEOF | |
11141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11142 | _ACEOF | |
11143 | ||
5ee754fc MK |
11144 | fi |
11145 | ||
bec39cab | 11146 | done |
5ee754fc | 11147 | |
5ee754fc | 11148 | |
bec39cab | 11149 | for ac_header in sys/param.h |
5ee754fc | 11150 | do |
bec39cab | 11151 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11153 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11155 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11157 | fi | |
4e8d927d DJ |
11158 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11159 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11160 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11161 | else |
11162 | # Is the header compilable? | |
4e8d927d DJ |
11163 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11164 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11165 | cat >conftest.$ac_ext <<_ACEOF |
11166 | /* confdefs.h. */ | |
11167 | _ACEOF | |
11168 | cat confdefs.h >>conftest.$ac_ext | |
11169 | cat >>conftest.$ac_ext <<_ACEOF | |
11170 | /* end confdefs.h. */ | |
11171 | $ac_includes_default | |
11172 | #include <$ac_header> | |
11173 | _ACEOF | |
11174 | rm -f conftest.$ac_objext | |
11175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11176 | (eval $ac_compile) 2>conftest.er1 | |
11177 | ac_status=$? | |
11178 | grep -v '^ *+' conftest.er1 >conftest.err | |
11179 | rm -f conftest.er1 | |
11180 | cat conftest.err >&5 | |
11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11182 | (exit $ac_status); } && | |
121ce6e5 | 11183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11185 | (eval $ac_try) 2>&5 | |
11186 | ac_status=$? | |
11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11188 | (exit $ac_status); }; } && | |
11189 | { ac_try='test -s conftest.$ac_objext' | |
11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11191 | (eval $ac_try) 2>&5 | |
11192 | ac_status=$? | |
11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11194 | (exit $ac_status); }; }; then | |
11195 | ac_header_compiler=yes | |
11196 | else | |
11197 | echo "$as_me: failed program was:" >&5 | |
11198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11199 | ||
4e8d927d | 11200 | ac_header_compiler=no |
bec39cab | 11201 | fi |
4e8d927d | 11202 | |
bec39cab | 11203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
11204 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11205 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
11206 | |
11207 | # Is the header present? | |
4e8d927d DJ |
11208 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11209 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
11210 | cat >conftest.$ac_ext <<_ACEOF |
11211 | /* confdefs.h. */ | |
11212 | _ACEOF | |
11213 | cat confdefs.h >>conftest.$ac_ext | |
11214 | cat >>conftest.$ac_ext <<_ACEOF | |
11215 | /* end confdefs.h. */ | |
11216 | #include <$ac_header> | |
11217 | _ACEOF | |
11218 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11219 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11220 | ac_status=$? | |
11221 | grep -v '^ *+' conftest.er1 >conftest.err | |
11222 | rm -f conftest.er1 | |
11223 | cat conftest.err >&5 | |
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11225 | (exit $ac_status); } >/dev/null; then | |
11226 | if test -s conftest.err; then | |
11227 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11228 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11229 | else | |
11230 | ac_cpp_err= | |
11231 | fi | |
5ee754fc | 11232 | else |
bec39cab | 11233 | ac_cpp_err=yes |
5ee754fc | 11234 | fi |
bec39cab AC |
11235 | if test -z "$ac_cpp_err"; then |
11236 | ac_header_preproc=yes | |
11237 | else | |
11238 | echo "$as_me: failed program was:" >&5 | |
11239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 11240 | |
bec39cab | 11241 | ac_header_preproc=no |
5ee754fc | 11242 | fi |
4e8d927d | 11243 | |
bec39cab | 11244 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
11245 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11246 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
11247 | |
11248 | # So? What about this header? | |
11249 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11250 | yes:no: ) | |
11251 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11252 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11254 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11255 | ac_header_preproc=yes | |
11256 | ;; | |
11257 | no:yes:* ) | |
11258 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11259 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11260 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11261 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11262 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11263 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11264 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11265 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11267 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11268 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11269 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 11270 | |
bec39cab AC |
11271 | ;; |
11272 | esac | |
4e8d927d DJ |
11273 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11275 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 11276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 11277 | else |
bec39cab | 11278 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 11279 | fi |
4e8d927d DJ |
11280 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11281 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11282 | echo "${ECHO_T}$ac_res" >&6; } | |
5ee754fc | 11283 | |
5ee754fc | 11284 | fi |
bec39cab AC |
11285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11286 | cat >>confdefs.h <<_ACEOF | |
11287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11288 | _ACEOF | |
11289 | ||
5ee754fc | 11290 | fi |
bec39cab | 11291 | |
5ee754fc MK |
11292 | done |
11293 | ||
bec39cab AC |
11294 | |
11295 | for ac_header in sys/proc.h | |
5ee754fc | 11296 | do |
bec39cab | 11297 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11298 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11299 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 11301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 11302 | else |
7cb9022a | 11303 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11304 | /* confdefs.h. */ |
11305 | _ACEOF | |
11306 | cat confdefs.h >>conftest.$ac_ext | |
11307 | cat >>conftest.$ac_ext <<_ACEOF | |
11308 | /* end confdefs.h. */ | |
7cb9022a MK |
11309 | #if HAVE_SYS_PARAM_H |
11310 | # include <sys/param.h> | |
11311 | #endif | |
11312 | ||
11313 | ||
bec39cab AC |
11314 | #include <$ac_header> |
11315 | _ACEOF | |
11316 | rm -f conftest.$ac_objext | |
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11318 | (eval $ac_compile) 2>conftest.er1 | |
11319 | ac_status=$? | |
11320 | grep -v '^ *+' conftest.er1 >conftest.err | |
11321 | rm -f conftest.er1 | |
11322 | cat conftest.err >&5 | |
11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11324 | (exit $ac_status); } && | |
121ce6e5 | 11325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11327 | (eval $ac_try) 2>&5 | |
11328 | ac_status=$? | |
11329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11330 | (exit $ac_status); }; } && | |
11331 | { ac_try='test -s conftest.$ac_objext' | |
11332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11333 | (eval $ac_try) 2>&5 | |
11334 | ac_status=$? | |
11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11336 | (exit $ac_status); }; }; then | |
7cb9022a | 11337 | eval "$as_ac_Header=yes" |
bec39cab AC |
11338 | else |
11339 | echo "$as_me: failed program was:" >&5 | |
11340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11341 | ||
4e8d927d | 11342 | eval "$as_ac_Header=no" |
bec39cab | 11343 | fi |
4e8d927d | 11344 | |
bec39cab | 11345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5ee754fc | 11346 | fi |
4e8d927d DJ |
11347 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11348 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11349 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11350 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11351 | cat >>confdefs.h <<_ACEOF | |
11352 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11353 | _ACEOF | |
11354 | ||
5ee754fc | 11355 | fi |
bec39cab | 11356 | |
5ee754fc MK |
11357 | done |
11358 | ||
bec39cab AC |
11359 | |
11360 | for ac_header in sys/procfs.h | |
5ee754fc | 11361 | do |
bec39cab | 11362 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11363 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11364 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11366 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11368 | fi | |
4e8d927d DJ |
11369 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11371 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11372 | else |
11373 | # Is the header compilable? | |
4e8d927d DJ |
11374 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11375 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11376 | cat >conftest.$ac_ext <<_ACEOF |
11377 | /* confdefs.h. */ | |
11378 | _ACEOF | |
11379 | cat confdefs.h >>conftest.$ac_ext | |
11380 | cat >>conftest.$ac_ext <<_ACEOF | |
11381 | /* end confdefs.h. */ | |
11382 | $ac_includes_default | |
11383 | #include <$ac_header> | |
11384 | _ACEOF | |
11385 | rm -f conftest.$ac_objext | |
11386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11387 | (eval $ac_compile) 2>conftest.er1 | |
11388 | ac_status=$? | |
11389 | grep -v '^ *+' conftest.er1 >conftest.err | |
11390 | rm -f conftest.er1 | |
11391 | cat conftest.err >&5 | |
11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11393 | (exit $ac_status); } && | |
121ce6e5 | 11394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11396 | (eval $ac_try) 2>&5 | |
11397 | ac_status=$? | |
11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11399 | (exit $ac_status); }; } && | |
11400 | { ac_try='test -s conftest.$ac_objext' | |
11401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11402 | (eval $ac_try) 2>&5 | |
11403 | ac_status=$? | |
11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11405 | (exit $ac_status); }; }; then | |
11406 | ac_header_compiler=yes | |
11407 | else | |
11408 | echo "$as_me: failed program was:" >&5 | |
11409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11410 | ||
4e8d927d | 11411 | ac_header_compiler=no |
bec39cab | 11412 | fi |
4e8d927d | 11413 | |
bec39cab | 11414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
11415 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11416 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
11417 | |
11418 | # Is the header present? | |
4e8d927d DJ |
11419 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11420 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
11421 | cat >conftest.$ac_ext <<_ACEOF |
11422 | /* confdefs.h. */ | |
11423 | _ACEOF | |
11424 | cat confdefs.h >>conftest.$ac_ext | |
11425 | cat >>conftest.$ac_ext <<_ACEOF | |
11426 | /* end confdefs.h. */ | |
11427 | #include <$ac_header> | |
11428 | _ACEOF | |
11429 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11430 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11431 | ac_status=$? | |
11432 | grep -v '^ *+' conftest.er1 >conftest.err | |
11433 | rm -f conftest.er1 | |
11434 | cat conftest.err >&5 | |
11435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11436 | (exit $ac_status); } >/dev/null; then | |
11437 | if test -s conftest.err; then | |
11438 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11439 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11440 | else | |
11441 | ac_cpp_err= | |
11442 | fi | |
11443 | else | |
11444 | ac_cpp_err=yes | |
5ee754fc | 11445 | fi |
bec39cab AC |
11446 | if test -z "$ac_cpp_err"; then |
11447 | ac_header_preproc=yes | |
5ee754fc | 11448 | else |
bec39cab AC |
11449 | echo "$as_me: failed program was:" >&5 |
11450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11451 | ||
11452 | ac_header_preproc=no | |
5ee754fc | 11453 | fi |
4e8d927d | 11454 | |
bec39cab | 11455 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
11456 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11457 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 11458 | |
bec39cab AC |
11459 | # So? What about this header? |
11460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11461 | yes:no: ) | |
11462 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11463 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11465 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11466 | ac_header_preproc=yes | |
11467 | ;; | |
11468 | no:yes:* ) | |
11469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11473 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11474 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11475 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11476 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11478 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11479 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11480 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 11481 | |
bec39cab AC |
11482 | ;; |
11483 | esac | |
4e8d927d DJ |
11484 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11486 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11488 | else | |
11489 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11490 | fi |
4e8d927d DJ |
11491 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11492 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11493 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 11494 | |
5ee754fc | 11495 | fi |
bec39cab AC |
11496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11497 | cat >>confdefs.h <<_ACEOF | |
11498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11499 | _ACEOF | |
11500 | ||
5ee754fc | 11501 | fi |
bec39cab | 11502 | |
5ee754fc MK |
11503 | done |
11504 | ||
bec39cab AC |
11505 | |
11506 | ||
11507 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 11508 | do |
bec39cab | 11509 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11510 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11511 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11512 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11515 | fi | |
4e8d927d DJ |
11516 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11517 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11518 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11519 | else |
11520 | # Is the header compilable? | |
4e8d927d DJ |
11521 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11522 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11523 | cat >conftest.$ac_ext <<_ACEOF |
11524 | /* confdefs.h. */ | |
11525 | _ACEOF | |
11526 | cat confdefs.h >>conftest.$ac_ext | |
11527 | cat >>conftest.$ac_ext <<_ACEOF | |
11528 | /* end confdefs.h. */ | |
11529 | $ac_includes_default | |
11530 | #include <$ac_header> | |
11531 | _ACEOF | |
11532 | rm -f conftest.$ac_objext | |
11533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11534 | (eval $ac_compile) 2>conftest.er1 | |
11535 | ac_status=$? | |
11536 | grep -v '^ *+' conftest.er1 >conftest.err | |
11537 | rm -f conftest.er1 | |
11538 | cat conftest.err >&5 | |
11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); } && | |
121ce6e5 | 11541 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11543 | (eval $ac_try) 2>&5 | |
11544 | ac_status=$? | |
11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11546 | (exit $ac_status); }; } && | |
11547 | { ac_try='test -s conftest.$ac_objext' | |
11548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11549 | (eval $ac_try) 2>&5 | |
11550 | ac_status=$? | |
11551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11552 | (exit $ac_status); }; }; then | |
11553 | ac_header_compiler=yes | |
11554 | else | |
11555 | echo "$as_me: failed program was:" >&5 | |
11556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11557 | ||
4e8d927d | 11558 | ac_header_compiler=no |
bec39cab | 11559 | fi |
4e8d927d | 11560 | |
bec39cab | 11561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
11562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11563 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
11564 | |
11565 | # Is the header present? | |
4e8d927d DJ |
11566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
11568 | cat >conftest.$ac_ext <<_ACEOF |
11569 | /* confdefs.h. */ | |
11570 | _ACEOF | |
11571 | cat confdefs.h >>conftest.$ac_ext | |
11572 | cat >>conftest.$ac_ext <<_ACEOF | |
11573 | /* end confdefs.h. */ | |
11574 | #include <$ac_header> | |
11575 | _ACEOF | |
11576 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11577 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11578 | ac_status=$? | |
11579 | grep -v '^ *+' conftest.er1 >conftest.err | |
11580 | rm -f conftest.er1 | |
11581 | cat conftest.err >&5 | |
11582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11583 | (exit $ac_status); } >/dev/null; then | |
11584 | if test -s conftest.err; then | |
11585 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11586 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11587 | else | |
11588 | ac_cpp_err= | |
11589 | fi | |
11590 | else | |
11591 | ac_cpp_err=yes | |
5ee754fc | 11592 | fi |
bec39cab AC |
11593 | if test -z "$ac_cpp_err"; then |
11594 | ac_header_preproc=yes | |
5ee754fc | 11595 | else |
bec39cab AC |
11596 | echo "$as_me: failed program was:" >&5 |
11597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11598 | ||
11599 | ac_header_preproc=no | |
5ee754fc | 11600 | fi |
4e8d927d | 11601 | |
bec39cab | 11602 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
11603 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11604 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 11605 | |
bec39cab AC |
11606 | # So? What about this header? |
11607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11608 | yes:no: ) | |
11609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11613 | ac_header_preproc=yes | |
11614 | ;; | |
11615 | no:yes:* ) | |
11616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 11628 | |
bec39cab AC |
11629 | ;; |
11630 | esac | |
4e8d927d DJ |
11631 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11632 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11633 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11635 | else | |
11636 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11637 | fi |
4e8d927d DJ |
11638 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11639 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11640 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 11641 | |
5ee754fc | 11642 | fi |
bec39cab AC |
11643 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11644 | cat >>confdefs.h <<_ACEOF | |
11645 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11646 | _ACEOF | |
11647 | ||
5ee754fc | 11648 | fi |
bec39cab | 11649 | |
5ee754fc MK |
11650 | done |
11651 | ||
bec39cab AC |
11652 | |
11653 | ||
11654 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 11655 | do |
bec39cab | 11656 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11657 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11658 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11660 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11662 | fi | |
4e8d927d DJ |
11663 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11664 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11665 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11666 | else |
11667 | # Is the header compilable? | |
4e8d927d DJ |
11668 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11669 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11670 | cat >conftest.$ac_ext <<_ACEOF |
11671 | /* confdefs.h. */ | |
11672 | _ACEOF | |
11673 | cat confdefs.h >>conftest.$ac_ext | |
11674 | cat >>conftest.$ac_ext <<_ACEOF | |
11675 | /* end confdefs.h. */ | |
11676 | $ac_includes_default | |
11677 | #include <$ac_header> | |
11678 | _ACEOF | |
11679 | rm -f conftest.$ac_objext | |
11680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11681 | (eval $ac_compile) 2>conftest.er1 | |
11682 | ac_status=$? | |
11683 | grep -v '^ *+' conftest.er1 >conftest.err | |
11684 | rm -f conftest.er1 | |
11685 | cat conftest.err >&5 | |
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11687 | (exit $ac_status); } && | |
121ce6e5 | 11688 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11690 | (eval $ac_try) 2>&5 | |
11691 | ac_status=$? | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); }; } && | |
11694 | { ac_try='test -s conftest.$ac_objext' | |
11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11696 | (eval $ac_try) 2>&5 | |
11697 | ac_status=$? | |
11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11699 | (exit $ac_status); }; }; then | |
11700 | ac_header_compiler=yes | |
11701 | else | |
11702 | echo "$as_me: failed program was:" >&5 | |
11703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11704 | ||
4e8d927d | 11705 | ac_header_compiler=no |
bec39cab | 11706 | fi |
4e8d927d | 11707 | |
bec39cab | 11708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
11709 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11710 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
11711 | |
11712 | # Is the header present? | |
4e8d927d DJ |
11713 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11714 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
11715 | cat >conftest.$ac_ext <<_ACEOF |
11716 | /* confdefs.h. */ | |
11717 | _ACEOF | |
11718 | cat confdefs.h >>conftest.$ac_ext | |
11719 | cat >>conftest.$ac_ext <<_ACEOF | |
11720 | /* end confdefs.h. */ | |
11721 | #include <$ac_header> | |
11722 | _ACEOF | |
11723 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11724 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11725 | ac_status=$? | |
11726 | grep -v '^ *+' conftest.er1 >conftest.err | |
11727 | rm -f conftest.er1 | |
11728 | cat conftest.err >&5 | |
11729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11730 | (exit $ac_status); } >/dev/null; then | |
11731 | if test -s conftest.err; then | |
11732 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11733 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11734 | else | |
11735 | ac_cpp_err= | |
11736 | fi | |
11737 | else | |
11738 | ac_cpp_err=yes | |
5ee754fc | 11739 | fi |
bec39cab AC |
11740 | if test -z "$ac_cpp_err"; then |
11741 | ac_header_preproc=yes | |
5ee754fc | 11742 | else |
bec39cab AC |
11743 | echo "$as_me: failed program was:" >&5 |
11744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11745 | ||
11746 | ac_header_preproc=no | |
5ee754fc | 11747 | fi |
4e8d927d | 11748 | |
bec39cab | 11749 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
11750 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11751 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 11752 | |
bec39cab AC |
11753 | # So? What about this header? |
11754 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11755 | yes:no: ) | |
11756 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11757 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11758 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11759 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11760 | ac_header_preproc=yes | |
11761 | ;; | |
11762 | no:yes:* ) | |
11763 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11764 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11765 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11766 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11767 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11768 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11769 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11770 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11772 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11773 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11774 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 11775 | |
bec39cab AC |
11776 | ;; |
11777 | esac | |
4e8d927d DJ |
11778 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11779 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11780 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11782 | else | |
11783 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11784 | fi |
4e8d927d DJ |
11785 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11786 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11787 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 11788 | |
5ee754fc | 11789 | fi |
bec39cab AC |
11790 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11791 | cat >>confdefs.h <<_ACEOF | |
11792 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11793 | _ACEOF | |
11794 | ||
5ee754fc | 11795 | fi |
bec39cab | 11796 | |
5ee754fc MK |
11797 | done |
11798 | ||
bec39cab AC |
11799 | |
11800 | for ac_header in sys/select.h | |
5ee754fc | 11801 | do |
bec39cab | 11802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11803 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11804 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11808 | fi | |
4e8d927d DJ |
11809 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11810 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11811 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11812 | else |
11813 | # Is the header compilable? | |
4e8d927d DJ |
11814 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11815 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11816 | cat >conftest.$ac_ext <<_ACEOF |
11817 | /* confdefs.h. */ | |
11818 | _ACEOF | |
11819 | cat confdefs.h >>conftest.$ac_ext | |
11820 | cat >>conftest.$ac_ext <<_ACEOF | |
11821 | /* end confdefs.h. */ | |
11822 | $ac_includes_default | |
11823 | #include <$ac_header> | |
11824 | _ACEOF | |
11825 | rm -f conftest.$ac_objext | |
11826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11827 | (eval $ac_compile) 2>conftest.er1 | |
11828 | ac_status=$? | |
11829 | grep -v '^ *+' conftest.er1 >conftest.err | |
11830 | rm -f conftest.er1 | |
11831 | cat conftest.err >&5 | |
11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11833 | (exit $ac_status); } && | |
121ce6e5 | 11834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11836 | (eval $ac_try) 2>&5 | |
11837 | ac_status=$? | |
11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11839 | (exit $ac_status); }; } && | |
11840 | { ac_try='test -s conftest.$ac_objext' | |
11841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11842 | (eval $ac_try) 2>&5 | |
11843 | ac_status=$? | |
11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11845 | (exit $ac_status); }; }; then | |
11846 | ac_header_compiler=yes | |
11847 | else | |
11848 | echo "$as_me: failed program was:" >&5 | |
11849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11850 | ||
4e8d927d | 11851 | ac_header_compiler=no |
bec39cab | 11852 | fi |
4e8d927d | 11853 | |
bec39cab | 11854 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
11855 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11856 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
11857 | |
11858 | # Is the header present? | |
4e8d927d DJ |
11859 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11860 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
11861 | cat >conftest.$ac_ext <<_ACEOF |
11862 | /* confdefs.h. */ | |
11863 | _ACEOF | |
11864 | cat confdefs.h >>conftest.$ac_ext | |
11865 | cat >>conftest.$ac_ext <<_ACEOF | |
11866 | /* end confdefs.h. */ | |
11867 | #include <$ac_header> | |
11868 | _ACEOF | |
11869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11871 | ac_status=$? | |
11872 | grep -v '^ *+' conftest.er1 >conftest.err | |
11873 | rm -f conftest.er1 | |
11874 | cat conftest.err >&5 | |
11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11876 | (exit $ac_status); } >/dev/null; then | |
11877 | if test -s conftest.err; then | |
11878 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11880 | else | |
11881 | ac_cpp_err= | |
11882 | fi | |
11883 | else | |
11884 | ac_cpp_err=yes | |
5ee754fc | 11885 | fi |
bec39cab AC |
11886 | if test -z "$ac_cpp_err"; then |
11887 | ac_header_preproc=yes | |
5ee754fc | 11888 | else |
bec39cab AC |
11889 | echo "$as_me: failed program was:" >&5 |
11890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11891 | ||
11892 | ac_header_preproc=no | |
5ee754fc | 11893 | fi |
4e8d927d | 11894 | |
bec39cab | 11895 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
11896 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11897 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 11898 | |
bec39cab AC |
11899 | # So? What about this header? |
11900 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11901 | yes:no: ) | |
11902 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11903 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11904 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11905 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11906 | ac_header_preproc=yes | |
11907 | ;; | |
11908 | no:yes:* ) | |
11909 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11910 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11911 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11912 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11913 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11914 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11915 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11916 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11917 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11918 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11919 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11920 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 11921 | |
bec39cab AC |
11922 | ;; |
11923 | esac | |
4e8d927d DJ |
11924 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11926 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11928 | else | |
11929 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11930 | fi |
4e8d927d DJ |
11931 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11932 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11933 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 11934 | |
5ee754fc | 11935 | fi |
bec39cab AC |
11936 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11937 | cat >>confdefs.h <<_ACEOF | |
11938 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11939 | _ACEOF | |
11940 | ||
5ee754fc | 11941 | fi |
bec39cab | 11942 | |
5ee754fc MK |
11943 | done |
11944 | ||
bec39cab AC |
11945 | |
11946 | for ac_header in sys/syscall.h | |
5ee754fc | 11947 | do |
bec39cab | 11948 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
11949 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11950 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11951 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11952 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
11953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11954 | fi | |
4e8d927d DJ |
11955 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11956 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11957 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
11958 | else |
11959 | # Is the header compilable? | |
4e8d927d DJ |
11960 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11961 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
11962 | cat >conftest.$ac_ext <<_ACEOF |
11963 | /* confdefs.h. */ | |
11964 | _ACEOF | |
11965 | cat confdefs.h >>conftest.$ac_ext | |
11966 | cat >>conftest.$ac_ext <<_ACEOF | |
11967 | /* end confdefs.h. */ | |
11968 | $ac_includes_default | |
11969 | #include <$ac_header> | |
11970 | _ACEOF | |
11971 | rm -f conftest.$ac_objext | |
11972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11973 | (eval $ac_compile) 2>conftest.er1 | |
11974 | ac_status=$? | |
11975 | grep -v '^ *+' conftest.er1 >conftest.err | |
11976 | rm -f conftest.er1 | |
11977 | cat conftest.err >&5 | |
11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11979 | (exit $ac_status); } && | |
121ce6e5 | 11980 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
11981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11982 | (eval $ac_try) 2>&5 | |
11983 | ac_status=$? | |
11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 | (exit $ac_status); }; } && | |
11986 | { ac_try='test -s conftest.$ac_objext' | |
11987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11988 | (eval $ac_try) 2>&5 | |
11989 | ac_status=$? | |
11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11991 | (exit $ac_status); }; }; then | |
11992 | ac_header_compiler=yes | |
11993 | else | |
11994 | echo "$as_me: failed program was:" >&5 | |
11995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11996 | ||
4e8d927d | 11997 | ac_header_compiler=no |
bec39cab | 11998 | fi |
4e8d927d | 11999 | |
bec39cab | 12000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12001 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12002 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12003 | |
12004 | # Is the header present? | |
4e8d927d DJ |
12005 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12006 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12007 | cat >conftest.$ac_ext <<_ACEOF |
12008 | /* confdefs.h. */ | |
12009 | _ACEOF | |
12010 | cat confdefs.h >>conftest.$ac_ext | |
12011 | cat >>conftest.$ac_ext <<_ACEOF | |
12012 | /* end confdefs.h. */ | |
12013 | #include <$ac_header> | |
12014 | _ACEOF | |
12015 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12016 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12017 | ac_status=$? | |
12018 | grep -v '^ *+' conftest.er1 >conftest.err | |
12019 | rm -f conftest.er1 | |
12020 | cat conftest.err >&5 | |
12021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12022 | (exit $ac_status); } >/dev/null; then | |
12023 | if test -s conftest.err; then | |
12024 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12025 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12026 | else | |
12027 | ac_cpp_err= | |
12028 | fi | |
12029 | else | |
12030 | ac_cpp_err=yes | |
5ee754fc | 12031 | fi |
bec39cab AC |
12032 | if test -z "$ac_cpp_err"; then |
12033 | ac_header_preproc=yes | |
5ee754fc | 12034 | else |
bec39cab AC |
12035 | echo "$as_me: failed program was:" >&5 |
12036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12037 | ||
12038 | ac_header_preproc=no | |
5ee754fc | 12039 | fi |
4e8d927d | 12040 | |
bec39cab | 12041 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
12042 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12043 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 12044 | |
bec39cab AC |
12045 | # So? What about this header? |
12046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12047 | yes:no: ) | |
12048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12051 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12052 | ac_header_preproc=yes | |
12053 | ;; | |
12054 | no:yes:* ) | |
12055 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12056 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12057 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12058 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12059 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12060 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12061 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12062 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12065 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12066 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 12067 | |
bec39cab AC |
12068 | ;; |
12069 | esac | |
4e8d927d DJ |
12070 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12072 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12074 | else | |
12075 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 12076 | fi |
4e8d927d DJ |
12077 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12078 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12079 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 12080 | |
5ee754fc | 12081 | fi |
bec39cab AC |
12082 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12083 | cat >>confdefs.h <<_ACEOF | |
12084 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12085 | _ACEOF | |
12086 | ||
5ee754fc | 12087 | fi |
bec39cab | 12088 | |
5ee754fc MK |
12089 | done |
12090 | ||
bec39cab AC |
12091 | |
12092 | for ac_header in sys/types.h | |
5ee754fc | 12093 | do |
bec39cab | 12094 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12095 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12096 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12097 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12098 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12100 | fi | |
4e8d927d DJ |
12101 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12102 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12103 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12104 | else |
12105 | # Is the header compilable? | |
4e8d927d DJ |
12106 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
12108 | cat >conftest.$ac_ext <<_ACEOF |
12109 | /* confdefs.h. */ | |
12110 | _ACEOF | |
12111 | cat confdefs.h >>conftest.$ac_ext | |
12112 | cat >>conftest.$ac_ext <<_ACEOF | |
12113 | /* end confdefs.h. */ | |
12114 | $ac_includes_default | |
12115 | #include <$ac_header> | |
12116 | _ACEOF | |
12117 | rm -f conftest.$ac_objext | |
12118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12119 | (eval $ac_compile) 2>conftest.er1 | |
12120 | ac_status=$? | |
12121 | grep -v '^ *+' conftest.er1 >conftest.err | |
12122 | rm -f conftest.er1 | |
12123 | cat conftest.err >&5 | |
12124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12125 | (exit $ac_status); } && | |
121ce6e5 | 12126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12128 | (eval $ac_try) 2>&5 | |
12129 | ac_status=$? | |
12130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12131 | (exit $ac_status); }; } && | |
12132 | { ac_try='test -s conftest.$ac_objext' | |
12133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12134 | (eval $ac_try) 2>&5 | |
12135 | ac_status=$? | |
12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12137 | (exit $ac_status); }; }; then | |
12138 | ac_header_compiler=yes | |
12139 | else | |
12140 | echo "$as_me: failed program was:" >&5 | |
12141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12142 | ||
4e8d927d | 12143 | ac_header_compiler=no |
bec39cab | 12144 | fi |
4e8d927d | 12145 | |
bec39cab | 12146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12147 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12148 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12149 | |
12150 | # Is the header present? | |
4e8d927d DJ |
12151 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12153 | cat >conftest.$ac_ext <<_ACEOF |
12154 | /* confdefs.h. */ | |
12155 | _ACEOF | |
12156 | cat confdefs.h >>conftest.$ac_ext | |
12157 | cat >>conftest.$ac_ext <<_ACEOF | |
12158 | /* end confdefs.h. */ | |
12159 | #include <$ac_header> | |
12160 | _ACEOF | |
12161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12163 | ac_status=$? | |
12164 | grep -v '^ *+' conftest.er1 >conftest.err | |
12165 | rm -f conftest.er1 | |
12166 | cat conftest.err >&5 | |
12167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12168 | (exit $ac_status); } >/dev/null; then | |
12169 | if test -s conftest.err; then | |
12170 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12172 | else | |
12173 | ac_cpp_err= | |
12174 | fi | |
12175 | else | |
12176 | ac_cpp_err=yes | |
5ee754fc | 12177 | fi |
bec39cab AC |
12178 | if test -z "$ac_cpp_err"; then |
12179 | ac_header_preproc=yes | |
5ee754fc | 12180 | else |
bec39cab AC |
12181 | echo "$as_me: failed program was:" >&5 |
12182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12183 | ||
12184 | ac_header_preproc=no | |
5ee754fc | 12185 | fi |
4e8d927d | 12186 | |
bec39cab | 12187 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
12188 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12189 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 12190 | |
bec39cab AC |
12191 | # So? What about this header? |
12192 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12193 | yes:no: ) | |
12194 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12195 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12196 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12197 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12198 | ac_header_preproc=yes | |
12199 | ;; | |
12200 | no:yes:* ) | |
12201 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12202 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12203 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12204 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12205 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12206 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12207 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12208 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12209 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12210 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12211 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12212 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 12213 | |
bec39cab AC |
12214 | ;; |
12215 | esac | |
4e8d927d DJ |
12216 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12218 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12220 | else | |
12221 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 12222 | fi |
4e8d927d DJ |
12223 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12224 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12225 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 12226 | |
5ee754fc | 12227 | fi |
bec39cab AC |
12228 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12229 | cat >>confdefs.h <<_ACEOF | |
12230 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12231 | _ACEOF | |
12232 | ||
5ee754fc | 12233 | fi |
bec39cab | 12234 | |
5ee754fc MK |
12235 | done |
12236 | ||
bec39cab AC |
12237 | |
12238 | for ac_header in sys/user.h | |
5ee754fc | 12239 | do |
bec39cab | 12240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12241 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 12244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12245 | else |
7cb9022a | 12246 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12247 | /* confdefs.h. */ |
12248 | _ACEOF | |
12249 | cat confdefs.h >>conftest.$ac_ext | |
12250 | cat >>conftest.$ac_ext <<_ACEOF | |
12251 | /* end confdefs.h. */ | |
7cb9022a MK |
12252 | #if HAVE_SYS_PARAM_H |
12253 | # include <sys/param.h> | |
12254 | #endif | |
12255 | ||
12256 | ||
bec39cab AC |
12257 | #include <$ac_header> |
12258 | _ACEOF | |
12259 | rm -f conftest.$ac_objext | |
12260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12261 | (eval $ac_compile) 2>conftest.er1 | |
12262 | ac_status=$? | |
12263 | grep -v '^ *+' conftest.er1 >conftest.err | |
12264 | rm -f conftest.er1 | |
12265 | cat conftest.err >&5 | |
12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12267 | (exit $ac_status); } && | |
121ce6e5 | 12268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12270 | (eval $ac_try) 2>&5 | |
12271 | ac_status=$? | |
12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12273 | (exit $ac_status); }; } && | |
12274 | { ac_try='test -s conftest.$ac_objext' | |
12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12276 | (eval $ac_try) 2>&5 | |
12277 | ac_status=$? | |
12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12279 | (exit $ac_status); }; }; then | |
7cb9022a | 12280 | eval "$as_ac_Header=yes" |
bec39cab AC |
12281 | else |
12282 | echo "$as_me: failed program was:" >&5 | |
12283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12284 | ||
4e8d927d | 12285 | eval "$as_ac_Header=no" |
bec39cab | 12286 | fi |
4e8d927d | 12287 | |
bec39cab | 12288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5ee754fc | 12289 | fi |
4e8d927d DJ |
12290 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12291 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12292 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12294 | cat >>confdefs.h <<_ACEOF | |
12295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12296 | _ACEOF | |
12297 | ||
5ee754fc | 12298 | fi |
bec39cab | 12299 | |
5ee754fc MK |
12300 | done |
12301 | ||
bec39cab AC |
12302 | |
12303 | ||
12304 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 12305 | do |
bec39cab | 12306 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12307 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12308 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12309 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12310 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12312 | fi | |
4e8d927d DJ |
12313 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12314 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12315 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12316 | else |
12317 | # Is the header compilable? | |
4e8d927d DJ |
12318 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
12320 | cat >conftest.$ac_ext <<_ACEOF |
12321 | /* confdefs.h. */ | |
12322 | _ACEOF | |
12323 | cat confdefs.h >>conftest.$ac_ext | |
12324 | cat >>conftest.$ac_ext <<_ACEOF | |
12325 | /* end confdefs.h. */ | |
12326 | $ac_includes_default | |
12327 | #include <$ac_header> | |
12328 | _ACEOF | |
12329 | rm -f conftest.$ac_objext | |
12330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12331 | (eval $ac_compile) 2>conftest.er1 | |
12332 | ac_status=$? | |
12333 | grep -v '^ *+' conftest.er1 >conftest.err | |
12334 | rm -f conftest.er1 | |
12335 | cat conftest.err >&5 | |
12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12337 | (exit $ac_status); } && | |
121ce6e5 | 12338 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12340 | (eval $ac_try) 2>&5 | |
12341 | ac_status=$? | |
12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12343 | (exit $ac_status); }; } && | |
12344 | { ac_try='test -s conftest.$ac_objext' | |
12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12346 | (eval $ac_try) 2>&5 | |
12347 | ac_status=$? | |
12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12349 | (exit $ac_status); }; }; then | |
12350 | ac_header_compiler=yes | |
12351 | else | |
12352 | echo "$as_me: failed program was:" >&5 | |
12353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12354 | ||
4e8d927d | 12355 | ac_header_compiler=no |
bec39cab | 12356 | fi |
4e8d927d | 12357 | |
bec39cab | 12358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12359 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12360 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12361 | |
12362 | # Is the header present? | |
4e8d927d DJ |
12363 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12365 | cat >conftest.$ac_ext <<_ACEOF |
12366 | /* confdefs.h. */ | |
12367 | _ACEOF | |
12368 | cat confdefs.h >>conftest.$ac_ext | |
12369 | cat >>conftest.$ac_ext <<_ACEOF | |
12370 | /* end confdefs.h. */ | |
12371 | #include <$ac_header> | |
12372 | _ACEOF | |
12373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12375 | ac_status=$? | |
12376 | grep -v '^ *+' conftest.er1 >conftest.err | |
12377 | rm -f conftest.er1 | |
12378 | cat conftest.err >&5 | |
12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12380 | (exit $ac_status); } >/dev/null; then | |
12381 | if test -s conftest.err; then | |
12382 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12384 | else | |
12385 | ac_cpp_err= | |
12386 | fi | |
12387 | else | |
12388 | ac_cpp_err=yes | |
5ee754fc | 12389 | fi |
bec39cab AC |
12390 | if test -z "$ac_cpp_err"; then |
12391 | ac_header_preproc=yes | |
5ee754fc | 12392 | else |
bec39cab AC |
12393 | echo "$as_me: failed program was:" >&5 |
12394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12395 | ||
12396 | ac_header_preproc=no | |
5ee754fc | 12397 | fi |
4e8d927d | 12398 | |
bec39cab | 12399 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
12400 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12401 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5ee754fc | 12402 | |
bec39cab AC |
12403 | # So? What about this header? |
12404 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12405 | yes:no: ) | |
12406 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12407 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12409 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12410 | ac_header_preproc=yes | |
12411 | ;; | |
12412 | no:yes:* ) | |
12413 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12414 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12415 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12416 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12417 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12418 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12419 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12420 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12422 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12423 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12424 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 12425 | |
bec39cab AC |
12426 | ;; |
12427 | esac | |
4e8d927d DJ |
12428 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12430 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12432 | else | |
12433 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12434 | fi |
4e8d927d DJ |
12435 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12436 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12437 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 12438 | |
9608ab8b | 12439 | fi |
bec39cab AC |
12440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12441 | cat >>confdefs.h <<_ACEOF | |
12442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12443 | _ACEOF | |
12444 | ||
9608ab8b | 12445 | fi |
bec39cab | 12446 | |
9608ab8b | 12447 | done |
5ee754fc | 12448 | |
bec39cab AC |
12449 | |
12450 | ||
12451 | ||
12452 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 12453 | do |
bec39cab | 12454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12456 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12457 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12458 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12460 | fi | |
4e8d927d DJ |
12461 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12462 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12463 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12464 | else |
12465 | # Is the header compilable? | |
4e8d927d DJ |
12466 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12467 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
12468 | cat >conftest.$ac_ext <<_ACEOF |
12469 | /* confdefs.h. */ | |
12470 | _ACEOF | |
12471 | cat confdefs.h >>conftest.$ac_ext | |
12472 | cat >>conftest.$ac_ext <<_ACEOF | |
12473 | /* end confdefs.h. */ | |
12474 | $ac_includes_default | |
12475 | #include <$ac_header> | |
12476 | _ACEOF | |
12477 | rm -f conftest.$ac_objext | |
12478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12479 | (eval $ac_compile) 2>conftest.er1 | |
12480 | ac_status=$? | |
12481 | grep -v '^ *+' conftest.er1 >conftest.err | |
12482 | rm -f conftest.er1 | |
12483 | cat conftest.err >&5 | |
12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12485 | (exit $ac_status); } && | |
121ce6e5 | 12486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12488 | (eval $ac_try) 2>&5 | |
12489 | ac_status=$? | |
12490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12491 | (exit $ac_status); }; } && | |
12492 | { ac_try='test -s conftest.$ac_objext' | |
12493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12494 | (eval $ac_try) 2>&5 | |
12495 | ac_status=$? | |
12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12497 | (exit $ac_status); }; }; then | |
12498 | ac_header_compiler=yes | |
12499 | else | |
12500 | echo "$as_me: failed program was:" >&5 | |
12501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12502 | ||
4e8d927d | 12503 | ac_header_compiler=no |
bec39cab | 12504 | fi |
4e8d927d | 12505 | |
bec39cab | 12506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12507 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12508 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12509 | |
12510 | # Is the header present? | |
4e8d927d DJ |
12511 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12512 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12513 | cat >conftest.$ac_ext <<_ACEOF |
12514 | /* confdefs.h. */ | |
12515 | _ACEOF | |
12516 | cat confdefs.h >>conftest.$ac_ext | |
12517 | cat >>conftest.$ac_ext <<_ACEOF | |
12518 | /* end confdefs.h. */ | |
12519 | #include <$ac_header> | |
12520 | _ACEOF | |
12521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12523 | ac_status=$? | |
12524 | grep -v '^ *+' conftest.er1 >conftest.err | |
12525 | rm -f conftest.er1 | |
12526 | cat conftest.err >&5 | |
12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12528 | (exit $ac_status); } >/dev/null; then | |
12529 | if test -s conftest.err; then | |
12530 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12531 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12532 | else | |
12533 | ac_cpp_err= | |
12534 | fi | |
12535 | else | |
12536 | ac_cpp_err=yes | |
9608ab8b | 12537 | fi |
bec39cab AC |
12538 | if test -z "$ac_cpp_err"; then |
12539 | ac_header_preproc=yes | |
9608ab8b | 12540 | else |
bec39cab AC |
12541 | echo "$as_me: failed program was:" >&5 |
12542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12543 | ||
12544 | ac_header_preproc=no | |
9608ab8b | 12545 | fi |
4e8d927d | 12546 | |
bec39cab | 12547 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
12548 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12549 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
9608ab8b | 12550 | |
bec39cab AC |
12551 | # So? What about this header? |
12552 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12553 | yes:no: ) | |
12554 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12555 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12556 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12557 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12558 | ac_header_preproc=yes | |
12559 | ;; | |
12560 | no:yes:* ) | |
12561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12565 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12566 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12567 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12568 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12571 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12572 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 12573 | |
bec39cab AC |
12574 | ;; |
12575 | esac | |
4e8d927d DJ |
12576 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12578 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12580 | else | |
12581 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12582 | fi |
4e8d927d DJ |
12583 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12584 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12585 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 12586 | |
9608ab8b | 12587 | fi |
bec39cab AC |
12588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12589 | cat >>confdefs.h <<_ACEOF | |
12590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12591 | _ACEOF | |
12592 | ||
9608ab8b | 12593 | fi |
bec39cab | 12594 | |
5ee754fc | 12595 | done |
9608ab8b | 12596 | |
bec39cab AC |
12597 | |
12598 | for ac_header in unistd.h | |
78434e59 | 12599 | do |
bec39cab | 12600 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12602 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12604 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12606 | fi | |
4e8d927d DJ |
12607 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12608 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12609 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12610 | else |
12611 | # Is the header compilable? | |
4e8d927d DJ |
12612 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12613 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
12614 | cat >conftest.$ac_ext <<_ACEOF |
12615 | /* confdefs.h. */ | |
12616 | _ACEOF | |
12617 | cat confdefs.h >>conftest.$ac_ext | |
12618 | cat >>conftest.$ac_ext <<_ACEOF | |
12619 | /* end confdefs.h. */ | |
12620 | $ac_includes_default | |
12621 | #include <$ac_header> | |
12622 | _ACEOF | |
12623 | rm -f conftest.$ac_objext | |
12624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12625 | (eval $ac_compile) 2>conftest.er1 | |
12626 | ac_status=$? | |
12627 | grep -v '^ *+' conftest.er1 >conftest.err | |
12628 | rm -f conftest.er1 | |
12629 | cat conftest.err >&5 | |
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12631 | (exit $ac_status); } && | |
121ce6e5 | 12632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12634 | (eval $ac_try) 2>&5 | |
12635 | ac_status=$? | |
12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12637 | (exit $ac_status); }; } && | |
12638 | { ac_try='test -s conftest.$ac_objext' | |
12639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12640 | (eval $ac_try) 2>&5 | |
12641 | ac_status=$? | |
12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12643 | (exit $ac_status); }; }; then | |
12644 | ac_header_compiler=yes | |
12645 | else | |
12646 | echo "$as_me: failed program was:" >&5 | |
12647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12648 | ||
4e8d927d | 12649 | ac_header_compiler=no |
bec39cab | 12650 | fi |
4e8d927d | 12651 | |
bec39cab | 12652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12653 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12654 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12655 | |
12656 | # Is the header present? | |
4e8d927d DJ |
12657 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12658 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12659 | cat >conftest.$ac_ext <<_ACEOF |
12660 | /* confdefs.h. */ | |
12661 | _ACEOF | |
12662 | cat confdefs.h >>conftest.$ac_ext | |
12663 | cat >>conftest.$ac_ext <<_ACEOF | |
12664 | /* end confdefs.h. */ | |
12665 | #include <$ac_header> | |
12666 | _ACEOF | |
12667 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12668 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12669 | ac_status=$? | |
12670 | grep -v '^ *+' conftest.er1 >conftest.err | |
12671 | rm -f conftest.er1 | |
12672 | cat conftest.err >&5 | |
12673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12674 | (exit $ac_status); } >/dev/null; then | |
12675 | if test -s conftest.err; then | |
12676 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12677 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12678 | else | |
12679 | ac_cpp_err= | |
12680 | fi | |
12681 | else | |
12682 | ac_cpp_err=yes | |
78434e59 | 12683 | fi |
bec39cab AC |
12684 | if test -z "$ac_cpp_err"; then |
12685 | ac_header_preproc=yes | |
78434e59 | 12686 | else |
bec39cab AC |
12687 | echo "$as_me: failed program was:" >&5 |
12688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12689 | ||
12690 | ac_header_preproc=no | |
78434e59 | 12691 | fi |
4e8d927d | 12692 | |
bec39cab | 12693 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
12694 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12695 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
78434e59 | 12696 | |
bec39cab AC |
12697 | # So? What about this header? |
12698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12699 | yes:no: ) | |
12700 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12701 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12703 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12704 | ac_header_preproc=yes | |
12705 | ;; | |
12706 | no:yes:* ) | |
12707 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12708 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12709 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12710 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12711 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12712 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12713 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12714 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12716 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12717 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12718 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 12719 | |
bec39cab AC |
12720 | ;; |
12721 | esac | |
4e8d927d DJ |
12722 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12724 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12726 | else | |
12727 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 12728 | fi |
4e8d927d DJ |
12729 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12730 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12731 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 12732 | |
086ec9eb | 12733 | fi |
bec39cab AC |
12734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12735 | cat >>confdefs.h <<_ACEOF | |
12736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12737 | _ACEOF | |
12738 | ||
086ec9eb | 12739 | fi |
bec39cab | 12740 | |
086ec9eb MK |
12741 | done |
12742 | ||
9608ab8b | 12743 | |
b1d19a62 | 12744 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
12745 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
12746 | # think that we don't have <curses.h> if we're using GCC. | |
12747 | case $host_os in | |
b1d19a62 | 12748 | solaris2.[789]) |
5ee754fc | 12749 | if test "$GCC" = yes; then |
bec39cab AC |
12750 | |
12751 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 12752 | #define _MSE_INT_H 1 |
bec39cab | 12753 | _ACEOF |
5ee754fc MK |
12754 | |
12755 | fi ;; | |
12756 | esac | |
bec39cab AC |
12757 | |
12758 | ||
12759 | ||
12760 | ||
12761 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 12762 | do |
bec39cab | 12763 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12764 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12765 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12767 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12769 | fi | |
4e8d927d DJ |
12770 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12771 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12772 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12773 | else |
12774 | # Is the header compilable? | |
4e8d927d DJ |
12775 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12776 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
12777 | cat >conftest.$ac_ext <<_ACEOF |
12778 | /* confdefs.h. */ | |
12779 | _ACEOF | |
12780 | cat confdefs.h >>conftest.$ac_ext | |
12781 | cat >>conftest.$ac_ext <<_ACEOF | |
12782 | /* end confdefs.h. */ | |
12783 | $ac_includes_default | |
12784 | #include <$ac_header> | |
12785 | _ACEOF | |
12786 | rm -f conftest.$ac_objext | |
12787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12788 | (eval $ac_compile) 2>conftest.er1 | |
12789 | ac_status=$? | |
12790 | grep -v '^ *+' conftest.er1 >conftest.err | |
12791 | rm -f conftest.er1 | |
12792 | cat conftest.err >&5 | |
12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12794 | (exit $ac_status); } && | |
121ce6e5 | 12795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12797 | (eval $ac_try) 2>&5 | |
12798 | ac_status=$? | |
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12800 | (exit $ac_status); }; } && | |
12801 | { ac_try='test -s conftest.$ac_objext' | |
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12803 | (eval $ac_try) 2>&5 | |
12804 | ac_status=$? | |
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12806 | (exit $ac_status); }; }; then | |
12807 | ac_header_compiler=yes | |
12808 | else | |
12809 | echo "$as_me: failed program was:" >&5 | |
12810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12811 | ||
4e8d927d | 12812 | ac_header_compiler=no |
bec39cab | 12813 | fi |
4e8d927d | 12814 | |
bec39cab | 12815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12816 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12817 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12818 | |
12819 | # Is the header present? | |
4e8d927d DJ |
12820 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12821 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12822 | cat >conftest.$ac_ext <<_ACEOF |
12823 | /* confdefs.h. */ | |
12824 | _ACEOF | |
12825 | cat confdefs.h >>conftest.$ac_ext | |
12826 | cat >>conftest.$ac_ext <<_ACEOF | |
12827 | /* end confdefs.h. */ | |
12828 | #include <$ac_header> | |
12829 | _ACEOF | |
12830 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12831 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12832 | ac_status=$? | |
12833 | grep -v '^ *+' conftest.er1 >conftest.err | |
12834 | rm -f conftest.er1 | |
12835 | cat conftest.err >&5 | |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12837 | (exit $ac_status); } >/dev/null; then | |
12838 | if test -s conftest.err; then | |
12839 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12840 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12841 | else | |
12842 | ac_cpp_err= | |
12843 | fi | |
12844 | else | |
12845 | ac_cpp_err=yes | |
c906108c | 12846 | fi |
bec39cab AC |
12847 | if test -z "$ac_cpp_err"; then |
12848 | ac_header_preproc=yes | |
12849 | else | |
12850 | echo "$as_me: failed program was:" >&5 | |
12851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12852 | ||
12853 | ac_header_preproc=no | |
c906108c | 12854 | fi |
4e8d927d | 12855 | |
bec39cab | 12856 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
12857 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12858 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
12859 | |
12860 | # So? What about this header? | |
12861 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12862 | yes:no: ) | |
12863 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12864 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12865 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12866 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12867 | ac_header_preproc=yes | |
12868 | ;; | |
12869 | no:yes:* ) | |
12870 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12871 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12872 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12873 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12874 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12875 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12876 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12877 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12878 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12879 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12880 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12881 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 12882 | |
bec39cab AC |
12883 | ;; |
12884 | esac | |
4e8d927d DJ |
12885 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12887 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 12888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 12889 | else |
bec39cab | 12890 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 12891 | fi |
4e8d927d DJ |
12892 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12893 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12894 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12895 | |
12896 | fi | |
12897 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12898 | cat >>confdefs.h <<_ACEOF | |
12899 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12900 | _ACEOF | |
12901 | ||
12902 | fi | |
12903 | ||
5ee754fc | 12904 | done |
c906108c | 12905 | |
bec39cab | 12906 | |
065a1afc | 12907 | for ac_header in ncurses/term.h |
3b78cdbb | 12908 | do |
bec39cab | 12909 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
12910 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12911 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12912 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
12914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12915 | fi | |
4e8d927d DJ |
12916 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12917 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12918 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
12919 | else |
12920 | # Is the header compilable? | |
4e8d927d DJ |
12921 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
12922 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
12923 | cat >conftest.$ac_ext <<_ACEOF |
12924 | /* confdefs.h. */ | |
12925 | _ACEOF | |
12926 | cat confdefs.h >>conftest.$ac_ext | |
12927 | cat >>conftest.$ac_ext <<_ACEOF | |
12928 | /* end confdefs.h. */ | |
12929 | $ac_includes_default | |
12930 | #include <$ac_header> | |
12931 | _ACEOF | |
12932 | rm -f conftest.$ac_objext | |
12933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12934 | (eval $ac_compile) 2>conftest.er1 | |
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 | |
12940 | (exit $ac_status); } && | |
121ce6e5 | 12941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
12942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12943 | (eval $ac_try) 2>&5 | |
12944 | ac_status=$? | |
12945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12946 | (exit $ac_status); }; } && | |
12947 | { ac_try='test -s conftest.$ac_objext' | |
12948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12949 | (eval $ac_try) 2>&5 | |
12950 | ac_status=$? | |
12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12952 | (exit $ac_status); }; }; then | |
12953 | ac_header_compiler=yes | |
12954 | else | |
12955 | echo "$as_me: failed program was:" >&5 | |
12956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12957 | ||
4e8d927d | 12958 | ac_header_compiler=no |
bec39cab | 12959 | fi |
4e8d927d | 12960 | |
bec39cab | 12961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
12962 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12963 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
12964 | |
12965 | # Is the header present? | |
4e8d927d DJ |
12966 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
12967 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
12968 | cat >conftest.$ac_ext <<_ACEOF |
12969 | /* confdefs.h. */ | |
12970 | _ACEOF | |
12971 | cat confdefs.h >>conftest.$ac_ext | |
12972 | cat >>conftest.$ac_ext <<_ACEOF | |
12973 | /* end confdefs.h. */ | |
12974 | #include <$ac_header> | |
12975 | _ACEOF | |
12976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12978 | ac_status=$? | |
12979 | grep -v '^ *+' conftest.er1 >conftest.err | |
12980 | rm -f conftest.er1 | |
12981 | cat conftest.err >&5 | |
12982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12983 | (exit $ac_status); } >/dev/null; then | |
12984 | if test -s conftest.err; then | |
12985 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12987 | else | |
12988 | ac_cpp_err= | |
12989 | fi | |
12990 | else | |
12991 | ac_cpp_err=yes | |
3b78cdbb | 12992 | fi |
bec39cab AC |
12993 | if test -z "$ac_cpp_err"; then |
12994 | ac_header_preproc=yes | |
12995 | else | |
12996 | echo "$as_me: failed program was:" >&5 | |
12997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12998 | ||
12999 | ac_header_preproc=no | |
3b78cdbb | 13000 | fi |
4e8d927d | 13001 | |
bec39cab | 13002 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
13003 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13004 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
13005 | |
13006 | # So? What about this header? | |
13007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13008 | yes:no: ) | |
13009 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13010 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13011 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13012 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13013 | ac_header_preproc=yes | |
13014 | ;; | |
13015 | no:yes:* ) | |
13016 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13017 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13018 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13019 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13020 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13021 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13022 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13023 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13024 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13025 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13026 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13027 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 13028 | |
bec39cab AC |
13029 | ;; |
13030 | esac | |
4e8d927d DJ |
13031 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13032 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 13034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 13035 | else |
bec39cab AC |
13036 | eval "$as_ac_Header=\$ac_header_preproc" |
13037 | fi | |
4e8d927d DJ |
13038 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13039 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13040 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 13041 | |
3b78cdbb | 13042 | fi |
bec39cab AC |
13043 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13044 | cat >>confdefs.h <<_ACEOF | |
13045 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13046 | _ACEOF | |
13047 | ||
13048 | fi | |
13049 | ||
3b78cdbb DA |
13050 | done |
13051 | ||
c906108c | 13052 | |
065a1afc JB |
13053 | for ac_header in term.h |
13054 | do | |
13055 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
13056 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13057 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13058 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
065a1afc JB |
13059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13060 | else | |
13061 | cat >conftest.$ac_ext <<_ACEOF | |
13062 | /* confdefs.h. */ | |
13063 | _ACEOF | |
13064 | cat confdefs.h >>conftest.$ac_ext | |
13065 | cat >>conftest.$ac_ext <<_ACEOF | |
13066 | /* end confdefs.h. */ | |
13067 | #if HAVE_CURSES_H | |
13068 | # include <curses.h> | |
13069 | #endif | |
13070 | ||
13071 | ||
13072 | #include <$ac_header> | |
13073 | _ACEOF | |
13074 | rm -f conftest.$ac_objext | |
13075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13076 | (eval $ac_compile) 2>conftest.er1 | |
13077 | ac_status=$? | |
13078 | grep -v '^ *+' conftest.er1 >conftest.err | |
13079 | rm -f conftest.er1 | |
13080 | cat conftest.err >&5 | |
13081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13082 | (exit $ac_status); } && | |
121ce6e5 | 13083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
065a1afc JB |
13084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13085 | (eval $ac_try) 2>&5 | |
13086 | ac_status=$? | |
13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13088 | (exit $ac_status); }; } && | |
13089 | { ac_try='test -s conftest.$ac_objext' | |
13090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13091 | (eval $ac_try) 2>&5 | |
13092 | ac_status=$? | |
13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13094 | (exit $ac_status); }; }; then | |
13095 | eval "$as_ac_Header=yes" | |
13096 | else | |
13097 | echo "$as_me: failed program was:" >&5 | |
13098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13099 | ||
4e8d927d | 13100 | eval "$as_ac_Header=no" |
065a1afc | 13101 | fi |
4e8d927d | 13102 | |
065a1afc JB |
13103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13104 | fi | |
4e8d927d DJ |
13105 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13106 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13107 | echo "${ECHO_T}$ac_res" >&6; } | |
065a1afc JB |
13108 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13109 | cat >>confdefs.h <<_ACEOF | |
13110 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13111 | _ACEOF | |
13112 | ||
13113 | fi | |
13114 | ||
13115 | done | |
13116 | ||
13117 | ||
5ee754fc MK |
13118 | # FIXME: kettenis/20030102: In most cases we include these |
13119 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
13120 | |
13121 | ||
13122 | for ac_header in ctype.h time.h | |
c906108c | 13123 | do |
bec39cab | 13124 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
13125 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13126 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13127 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13128 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
13129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13130 | fi | |
4e8d927d DJ |
13131 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13132 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13133 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
13134 | else |
13135 | # Is the header compilable? | |
4e8d927d DJ |
13136 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13137 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
bec39cab AC |
13138 | cat >conftest.$ac_ext <<_ACEOF |
13139 | /* confdefs.h. */ | |
13140 | _ACEOF | |
13141 | cat confdefs.h >>conftest.$ac_ext | |
13142 | cat >>conftest.$ac_ext <<_ACEOF | |
13143 | /* end confdefs.h. */ | |
13144 | $ac_includes_default | |
13145 | #include <$ac_header> | |
13146 | _ACEOF | |
13147 | rm -f conftest.$ac_objext | |
13148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13149 | (eval $ac_compile) 2>conftest.er1 | |
13150 | ac_status=$? | |
13151 | grep -v '^ *+' conftest.er1 >conftest.err | |
13152 | rm -f conftest.er1 | |
13153 | cat conftest.err >&5 | |
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); } && | |
121ce6e5 | 13156 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13158 | (eval $ac_try) 2>&5 | |
13159 | ac_status=$? | |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13161 | (exit $ac_status); }; } && | |
13162 | { ac_try='test -s conftest.$ac_objext' | |
13163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13164 | (eval $ac_try) 2>&5 | |
13165 | ac_status=$? | |
13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13167 | (exit $ac_status); }; }; then | |
13168 | ac_header_compiler=yes | |
13169 | else | |
13170 | echo "$as_me: failed program was:" >&5 | |
13171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13172 | ||
4e8d927d | 13173 | ac_header_compiler=no |
bec39cab | 13174 | fi |
4e8d927d | 13175 | |
bec39cab | 13176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
13177 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13178 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
13179 | |
13180 | # Is the header present? | |
4e8d927d DJ |
13181 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13182 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
13183 | cat >conftest.$ac_ext <<_ACEOF |
13184 | /* confdefs.h. */ | |
13185 | _ACEOF | |
13186 | cat confdefs.h >>conftest.$ac_ext | |
13187 | cat >>conftest.$ac_ext <<_ACEOF | |
13188 | /* end confdefs.h. */ | |
13189 | #include <$ac_header> | |
13190 | _ACEOF | |
13191 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13192 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13193 | ac_status=$? | |
13194 | grep -v '^ *+' conftest.er1 >conftest.err | |
13195 | rm -f conftest.er1 | |
13196 | cat conftest.err >&5 | |
13197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13198 | (exit $ac_status); } >/dev/null; then | |
13199 | if test -s conftest.err; then | |
13200 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13201 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13202 | else | |
13203 | ac_cpp_err= | |
13204 | fi | |
13205 | else | |
13206 | ac_cpp_err=yes | |
c906108c | 13207 | fi |
bec39cab AC |
13208 | if test -z "$ac_cpp_err"; then |
13209 | ac_header_preproc=yes | |
13210 | else | |
13211 | echo "$as_me: failed program was:" >&5 | |
13212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13213 | ||
13214 | ac_header_preproc=no | |
c906108c | 13215 | fi |
4e8d927d | 13216 | |
bec39cab | 13217 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
13218 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13219 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
13220 | |
13221 | # So? What about this header? | |
13222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13223 | yes:no: ) | |
13224 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13225 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13227 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13228 | ac_header_preproc=yes | |
13229 | ;; | |
13230 | no:yes:* ) | |
13231 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13232 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13233 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13234 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13235 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13236 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13237 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13238 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13241 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13242 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 13243 | |
bec39cab AC |
13244 | ;; |
13245 | esac | |
4e8d927d DJ |
13246 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13248 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 13249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 13250 | else |
bec39cab AC |
13251 | eval "$as_ac_Header=\$ac_header_preproc" |
13252 | fi | |
4e8d927d DJ |
13253 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13255 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
13256 | |
13257 | fi | |
13258 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13259 | cat >>confdefs.h <<_ACEOF | |
13260 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13261 | _ACEOF | |
13262 | ||
c906108c | 13263 | fi |
bec39cab | 13264 | |
c906108c SS |
13265 | done |
13266 | ||
5ee754fc | 13267 | |
4e8d927d | 13268 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 13269 | |
4e8d927d DJ |
13270 | |
13271 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
13272 | ||
13273 | acx_cv_header_stdint=stddef.h | |
13274 | acx_cv_header_stdint_kind="(already complete)" | |
13275 | for i in stdint.h $inttype_headers; do | |
13276 | unset ac_cv_type_uintptr_t | |
13277 | unset ac_cv_type_uintmax_t | |
13278 | unset ac_cv_type_int_least32_t | |
13279 | unset ac_cv_type_int_fast32_t | |
13280 | unset ac_cv_type_uint64_t | |
13281 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
13282 | { echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
13283 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6; } | |
13284 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
bec39cab | 13285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 13286 | else |
bec39cab AC |
13287 | cat >conftest.$ac_ext <<_ACEOF |
13288 | /* confdefs.h. */ | |
13289 | _ACEOF | |
13290 | cat confdefs.h >>conftest.$ac_ext | |
13291 | cat >>conftest.$ac_ext <<_ACEOF | |
13292 | /* end confdefs.h. */ | |
4e8d927d DJ |
13293 | #include <sys/types.h> |
13294 | #include <$i> | |
13295 | ||
13296 | typedef uintmax_t ac__type_new_; | |
bec39cab AC |
13297 | int |
13298 | main () | |
13299 | { | |
4e8d927d DJ |
13300 | if ((ac__type_new_ *) 0) |
13301 | return 0; | |
13302 | if (sizeof (ac__type_new_)) | |
13303 | return 0; | |
13304 | ; | |
bec39cab AC |
13305 | return 0; |
13306 | } | |
13307 | _ACEOF | |
13308 | rm -f conftest.$ac_objext | |
13309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13310 | (eval $ac_compile) 2>conftest.er1 | |
13311 | ac_status=$? | |
13312 | grep -v '^ *+' conftest.er1 >conftest.err | |
13313 | rm -f conftest.er1 | |
13314 | cat conftest.err >&5 | |
13315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13316 | (exit $ac_status); } && | |
121ce6e5 | 13317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13319 | (eval $ac_try) 2>&5 | |
13320 | ac_status=$? | |
13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13322 | (exit $ac_status); }; } && | |
13323 | { ac_try='test -s conftest.$ac_objext' | |
13324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13325 | (eval $ac_try) 2>&5 | |
13326 | ac_status=$? | |
13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13328 | (exit $ac_status); }; }; then | |
4e8d927d | 13329 | ac_cv_type_uintmax_t=yes |
40a7debc | 13330 | else |
bec39cab AC |
13331 | echo "$as_me: failed program was:" >&5 |
13332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13333 | ||
4e8d927d | 13334 | ac_cv_type_uintmax_t=no |
40a7debc | 13335 | fi |
4e8d927d | 13336 | |
bec39cab | 13337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 13338 | fi |
4e8d927d DJ |
13339 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
13340 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6; } | |
13341 | if test $ac_cv_type_uintmax_t = yes; then | |
13342 | acx_cv_header_stdint=$i | |
666ec76f | 13343 | else |
4e8d927d | 13344 | continue |
666ec76f | 13345 | fi |
4e8d927d DJ |
13346 | |
13347 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
13348 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
13349 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
bec39cab AC |
13350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13351 | else | |
13352 | cat >conftest.$ac_ext <<_ACEOF | |
13353 | /* confdefs.h. */ | |
13354 | _ACEOF | |
13355 | cat confdefs.h >>conftest.$ac_ext | |
13356 | cat >>conftest.$ac_ext <<_ACEOF | |
13357 | /* end confdefs.h. */ | |
4e8d927d DJ |
13358 | #include <sys/types.h> |
13359 | #include <$i> | |
13360 | ||
13361 | typedef uintptr_t ac__type_new_; | |
666ec76f MK |
13362 | int |
13363 | main () | |
13364 | { | |
4e8d927d DJ |
13365 | if ((ac__type_new_ *) 0) |
13366 | return 0; | |
13367 | if (sizeof (ac__type_new_)) | |
13368 | return 0; | |
666ec76f MK |
13369 | ; |
13370 | return 0; | |
13371 | } | |
13372 | _ACEOF | |
13373 | rm -f conftest.$ac_objext | |
13374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13375 | (eval $ac_compile) 2>conftest.er1 | |
13376 | ac_status=$? | |
13377 | grep -v '^ *+' conftest.er1 >conftest.err | |
13378 | rm -f conftest.er1 | |
13379 | cat conftest.err >&5 | |
13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13381 | (exit $ac_status); } && | |
121ce6e5 | 13382 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
666ec76f MK |
13383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13384 | (eval $ac_try) 2>&5 | |
13385 | ac_status=$? | |
13386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13387 | (exit $ac_status); }; } && | |
13388 | { ac_try='test -s conftest.$ac_objext' | |
13389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13390 | (eval $ac_try) 2>&5 | |
13391 | ac_status=$? | |
13392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13393 | (exit $ac_status); }; }; then | |
4e8d927d | 13394 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
13395 | else |
13396 | echo "$as_me: failed program was:" >&5 | |
13397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 13398 | |
4e8d927d | 13399 | ac_cv_type_uintptr_t=no |
a3828db0 | 13400 | fi |
4e8d927d | 13401 | |
a3828db0 MK |
13402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13403 | fi | |
4e8d927d DJ |
13404 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
13405 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
13406 | if test $ac_cv_type_uintptr_t = yes; then | |
13407 | : | |
a3828db0 | 13408 | else |
4e8d927d | 13409 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 13410 | fi |
4e8d927d DJ |
13411 | |
13412 | { echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
13413 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6; } | |
13414 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
a3828db0 MK |
13415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13416 | else | |
13417 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
13418 | /* confdefs.h. */ |
13419 | _ACEOF | |
13420 | cat confdefs.h >>conftest.$ac_ext | |
13421 | cat >>conftest.$ac_ext <<_ACEOF | |
13422 | /* end confdefs.h. */ | |
4e8d927d DJ |
13423 | #include <sys/types.h> |
13424 | #include <$i> | |
13425 | ||
13426 | typedef int_least32_t ac__type_new_; | |
bec39cab AC |
13427 | int |
13428 | main () | |
13429 | { | |
4e8d927d DJ |
13430 | if ((ac__type_new_ *) 0) |
13431 | return 0; | |
13432 | if (sizeof (ac__type_new_)) | |
13433 | return 0; | |
bec39cab AC |
13434 | ; |
13435 | return 0; | |
13436 | } | |
13437 | _ACEOF | |
13438 | rm -f conftest.$ac_objext | |
13439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13440 | (eval $ac_compile) 2>conftest.er1 | |
13441 | ac_status=$? | |
13442 | grep -v '^ *+' conftest.er1 >conftest.err | |
13443 | rm -f conftest.er1 | |
13444 | cat conftest.err >&5 | |
13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); } && | |
121ce6e5 | 13447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13449 | (eval $ac_try) 2>&5 | |
13450 | ac_status=$? | |
13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13452 | (exit $ac_status); }; } && | |
13453 | { ac_try='test -s conftest.$ac_objext' | |
13454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13455 | (eval $ac_try) 2>&5 | |
13456 | ac_status=$? | |
13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13458 | (exit $ac_status); }; }; then | |
4e8d927d | 13459 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 13460 | else |
bec39cab AC |
13461 | echo "$as_me: failed program was:" >&5 |
13462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13463 | ||
4e8d927d | 13464 | ac_cv_type_int_least32_t=no |
b9362cc7 | 13465 | fi |
4e8d927d | 13466 | |
bec39cab | 13467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 13468 | fi |
4e8d927d DJ |
13469 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
13470 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6; } | |
13471 | if test $ac_cv_type_int_least32_t = yes; then | |
13472 | : | |
a3828db0 | 13473 | else |
4e8d927d | 13474 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 13475 | fi |
5ee754fc | 13476 | |
4e8d927d DJ |
13477 | { echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
13478 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6; } | |
13479 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
bec39cab AC |
13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13481 | else | |
13482 | cat >conftest.$ac_ext <<_ACEOF | |
13483 | /* confdefs.h. */ | |
13484 | _ACEOF | |
13485 | cat confdefs.h >>conftest.$ac_ext | |
13486 | cat >>conftest.$ac_ext <<_ACEOF | |
13487 | /* end confdefs.h. */ | |
4e8d927d DJ |
13488 | #include <sys/types.h> |
13489 | #include <$i> | |
13490 | ||
13491 | typedef int_fast32_t ac__type_new_; | |
bec39cab AC |
13492 | int |
13493 | main () | |
13494 | { | |
4e8d927d DJ |
13495 | if ((ac__type_new_ *) 0) |
13496 | return 0; | |
13497 | if (sizeof (ac__type_new_)) | |
13498 | return 0; | |
bec39cab AC |
13499 | ; |
13500 | return 0; | |
13501 | } | |
13502 | _ACEOF | |
13503 | rm -f conftest.$ac_objext | |
13504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13505 | (eval $ac_compile) 2>conftest.er1 | |
13506 | ac_status=$? | |
13507 | grep -v '^ *+' conftest.er1 >conftest.err | |
13508 | rm -f conftest.er1 | |
13509 | cat conftest.err >&5 | |
13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13511 | (exit $ac_status); } && | |
121ce6e5 | 13512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13514 | (eval $ac_try) 2>&5 | |
13515 | ac_status=$? | |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 | (exit $ac_status); }; } && | |
13518 | { ac_try='test -s conftest.$ac_objext' | |
13519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13520 | (eval $ac_try) 2>&5 | |
13521 | ac_status=$? | |
13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13523 | (exit $ac_status); }; }; then | |
4e8d927d | 13524 | ac_cv_type_int_fast32_t=yes |
c906108c | 13525 | else |
bec39cab AC |
13526 | echo "$as_me: failed program was:" >&5 |
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13528 | ||
4e8d927d | 13529 | ac_cv_type_int_fast32_t=no |
c906108c | 13530 | fi |
4e8d927d | 13531 | |
bec39cab | 13532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13533 | fi |
4e8d927d DJ |
13534 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
13535 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6; } | |
13536 | if test $ac_cv_type_int_fast32_t = yes; then | |
13537 | : | |
a3828db0 | 13538 | else |
4e8d927d | 13539 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 13540 | fi |
4e8d927d DJ |
13541 | |
13542 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
13543 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } | |
13544 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
bec39cab AC |
13545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13546 | else | |
13547 | cat >conftest.$ac_ext <<_ACEOF | |
13548 | /* confdefs.h. */ | |
13549 | _ACEOF | |
13550 | cat confdefs.h >>conftest.$ac_ext | |
13551 | cat >>conftest.$ac_ext <<_ACEOF | |
13552 | /* end confdefs.h. */ | |
4e8d927d DJ |
13553 | #include <sys/types.h> |
13554 | #include <$i> | |
13555 | ||
13556 | typedef uint64_t ac__type_new_; | |
bec39cab AC |
13557 | int |
13558 | main () | |
13559 | { | |
4e8d927d DJ |
13560 | if ((ac__type_new_ *) 0) |
13561 | return 0; | |
13562 | if (sizeof (ac__type_new_)) | |
13563 | return 0; | |
bec39cab AC |
13564 | ; |
13565 | return 0; | |
13566 | } | |
13567 | _ACEOF | |
13568 | rm -f conftest.$ac_objext | |
13569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13570 | (eval $ac_compile) 2>conftest.er1 | |
13571 | ac_status=$? | |
13572 | grep -v '^ *+' conftest.er1 >conftest.err | |
13573 | rm -f conftest.er1 | |
13574 | cat conftest.err >&5 | |
13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13576 | (exit $ac_status); } && | |
121ce6e5 | 13577 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13579 | (eval $ac_try) 2>&5 | |
13580 | ac_status=$? | |
13581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13582 | (exit $ac_status); }; } && | |
13583 | { ac_try='test -s conftest.$ac_objext' | |
13584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13585 | (eval $ac_try) 2>&5 | |
13586 | ac_status=$? | |
13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13588 | (exit $ac_status); }; }; then | |
4e8d927d | 13589 | ac_cv_type_uint64_t=yes |
c906108c | 13590 | else |
bec39cab AC |
13591 | echo "$as_me: failed program was:" >&5 |
13592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13593 | ||
4e8d927d | 13594 | ac_cv_type_uint64_t=no |
c906108c | 13595 | fi |
4e8d927d | 13596 | |
bec39cab | 13597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13598 | fi |
4e8d927d DJ |
13599 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
13600 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } | |
13601 | if test $ac_cv_type_uint64_t = yes; then | |
13602 | : | |
a3828db0 | 13603 | else |
4e8d927d | 13604 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
13605 | fi |
13606 | ||
4e8d927d DJ |
13607 | break |
13608 | done | |
13609 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13610 | acx_cv_header_stdint_kind="(lacks uintptr_t)" | |
13611 | for i in stdint.h $inttype_headers; do | |
13612 | unset ac_cv_type_uint32_t | |
13613 | unset ac_cv_type_uint64_t | |
13614 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
13615 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
13616 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } | |
13617 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
bec39cab | 13618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 13619 | else |
bec39cab 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. */ | |
4e8d927d DJ |
13626 | #include <sys/types.h> |
13627 | #include <$i> | |
13628 | ||
13629 | typedef uint32_t ac__type_new_; | |
a3828db0 MK |
13630 | int |
13631 | main () | |
13632 | { | |
4e8d927d DJ |
13633 | if ((ac__type_new_ *) 0) |
13634 | return 0; | |
13635 | if (sizeof (ac__type_new_)) | |
13636 | return 0; | |
a3828db0 MK |
13637 | ; |
13638 | return 0; | |
13639 | } | |
bec39cab AC |
13640 | _ACEOF |
13641 | rm -f conftest.$ac_objext | |
13642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13643 | (eval $ac_compile) 2>conftest.er1 | |
13644 | ac_status=$? | |
13645 | grep -v '^ *+' conftest.er1 >conftest.err | |
13646 | rm -f conftest.er1 | |
13647 | cat conftest.err >&5 | |
13648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13649 | (exit $ac_status); } && | |
121ce6e5 | 13650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13652 | (eval $ac_try) 2>&5 | |
13653 | ac_status=$? | |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13655 | (exit $ac_status); }; } && | |
13656 | { ac_try='test -s conftest.$ac_objext' | |
13657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13658 | (eval $ac_try) 2>&5 | |
13659 | ac_status=$? | |
13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13661 | (exit $ac_status); }; }; then | |
4e8d927d | 13662 | ac_cv_type_uint32_t=yes |
bce58c09 | 13663 | else |
bec39cab AC |
13664 | echo "$as_me: failed program was:" >&5 |
13665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13666 | ||
4e8d927d | 13667 | ac_cv_type_uint32_t=no |
bce58c09 | 13668 | fi |
4e8d927d | 13669 | |
bec39cab | 13670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 13671 | fi |
4e8d927d DJ |
13672 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
13673 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; } | |
13674 | if test $ac_cv_type_uint32_t = yes; then | |
13675 | acx_cv_header_stdint=$i | |
a3828db0 | 13676 | else |
4e8d927d | 13677 | continue |
e5a7de23 | 13678 | fi |
4e8d927d DJ |
13679 | |
13680 | { echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
13681 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } | |
13682 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
e5a7de23 EZ |
13683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13684 | else | |
13685 | cat >conftest.$ac_ext <<_ACEOF | |
13686 | /* confdefs.h. */ | |
13687 | _ACEOF | |
13688 | cat confdefs.h >>conftest.$ac_ext | |
13689 | cat >>conftest.$ac_ext <<_ACEOF | |
13690 | /* end confdefs.h. */ | |
4e8d927d DJ |
13691 | #include <sys/types.h> |
13692 | #include <$i> | |
13693 | ||
13694 | typedef uint64_t ac__type_new_; | |
e5a7de23 EZ |
13695 | int |
13696 | main () | |
13697 | { | |
4e8d927d DJ |
13698 | if ((ac__type_new_ *) 0) |
13699 | return 0; | |
13700 | if (sizeof (ac__type_new_)) | |
13701 | return 0; | |
e5a7de23 EZ |
13702 | ; |
13703 | return 0; | |
13704 | } | |
13705 | _ACEOF | |
13706 | rm -f conftest.$ac_objext | |
13707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13708 | (eval $ac_compile) 2>conftest.er1 | |
13709 | ac_status=$? | |
13710 | grep -v '^ *+' conftest.er1 >conftest.err | |
13711 | rm -f conftest.er1 | |
13712 | cat conftest.err >&5 | |
13713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13714 | (exit $ac_status); } && | |
121ce6e5 | 13715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e5a7de23 EZ |
13716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13717 | (eval $ac_try) 2>&5 | |
13718 | ac_status=$? | |
13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13720 | (exit $ac_status); }; } && | |
13721 | { ac_try='test -s conftest.$ac_objext' | |
13722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13723 | (eval $ac_try) 2>&5 | |
13724 | ac_status=$? | |
13725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13726 | (exit $ac_status); }; }; then | |
4e8d927d | 13727 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
13728 | else |
13729 | echo "$as_me: failed program was:" >&5 | |
13730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13731 | ||
4e8d927d | 13732 | ac_cv_type_uint64_t=no |
e5a7de23 | 13733 | fi |
4e8d927d | 13734 | |
e5a7de23 EZ |
13735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13736 | fi | |
4e8d927d DJ |
13737 | { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
13738 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } | |
13739 | if test $ac_cv_type_uint64_t = yes; then | |
13740 | : | |
e5a7de23 | 13741 | else |
4e8d927d DJ |
13742 | acx_cv_header_stdint_kind="(lacks uintptr_t and uint64_t)" |
13743 | fi | |
e5a7de23 | 13744 | |
4e8d927d DJ |
13745 | break |
13746 | done | |
e5a7de23 | 13747 | fi |
4e8d927d DJ |
13748 | if test "$acx_cv_header_stdint" = stddef.h; then |
13749 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
13750 | for i in sys/types.h $inttype_headers; do | |
13751 | unset ac_cv_type_u_int32_t | |
13752 | unset ac_cv_type_u_int64_t | |
13753 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
13754 | { echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
13755 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; } | |
13756 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
e5a7de23 EZ |
13757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13758 | else | |
13759 | cat >conftest.$ac_ext <<_ACEOF | |
13760 | /* confdefs.h. */ | |
13761 | _ACEOF | |
13762 | cat confdefs.h >>conftest.$ac_ext | |
13763 | cat >>conftest.$ac_ext <<_ACEOF | |
13764 | /* end confdefs.h. */ | |
4e8d927d DJ |
13765 | #include <sys/types.h> |
13766 | #include <$i> | |
13767 | ||
13768 | typedef u_int32_t ac__type_new_; | |
e5a7de23 EZ |
13769 | int |
13770 | main () | |
13771 | { | |
4e8d927d DJ |
13772 | if ((ac__type_new_ *) 0) |
13773 | return 0; | |
13774 | if (sizeof (ac__type_new_)) | |
13775 | return 0; | |
e5a7de23 EZ |
13776 | ; |
13777 | return 0; | |
13778 | } | |
13779 | _ACEOF | |
13780 | rm -f conftest.$ac_objext | |
13781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13782 | (eval $ac_compile) 2>conftest.er1 | |
13783 | ac_status=$? | |
13784 | grep -v '^ *+' conftest.er1 >conftest.err | |
13785 | rm -f conftest.er1 | |
13786 | cat conftest.err >&5 | |
13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13788 | (exit $ac_status); } && | |
121ce6e5 | 13789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e5a7de23 EZ |
13790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13791 | (eval $ac_try) 2>&5 | |
13792 | ac_status=$? | |
13793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13794 | (exit $ac_status); }; } && | |
13795 | { ac_try='test -s conftest.$ac_objext' | |
13796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13797 | (eval $ac_try) 2>&5 | |
13798 | ac_status=$? | |
13799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13800 | (exit $ac_status); }; }; then | |
4e8d927d | 13801 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
13802 | else |
13803 | echo "$as_me: failed program was:" >&5 | |
13804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13805 | ||
4e8d927d | 13806 | ac_cv_type_u_int32_t=no |
e5a7de23 | 13807 | fi |
4e8d927d | 13808 | |
e5a7de23 EZ |
13809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13810 | fi | |
4e8d927d DJ |
13811 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
13812 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; } | |
13813 | if test $ac_cv_type_u_int32_t = yes; then | |
13814 | acx_cv_header_stdint=$i | |
e5a7de23 | 13815 | else |
4e8d927d | 13816 | continue |
a3828db0 | 13817 | fi |
5ee754fc | 13818 | |
4e8d927d DJ |
13819 | { echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
13820 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } | |
13821 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
bec39cab AC |
13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13823 | else | |
13824 | cat >conftest.$ac_ext <<_ACEOF | |
13825 | /* confdefs.h. */ | |
13826 | _ACEOF | |
13827 | cat confdefs.h >>conftest.$ac_ext | |
13828 | cat >>conftest.$ac_ext <<_ACEOF | |
13829 | /* end confdefs.h. */ | |
4e8d927d DJ |
13830 | #include <sys/types.h> |
13831 | #include <$i> | |
13832 | ||
13833 | typedef u_int64_t ac__type_new_; | |
bec39cab AC |
13834 | int |
13835 | main () | |
13836 | { | |
4e8d927d DJ |
13837 | if ((ac__type_new_ *) 0) |
13838 | return 0; | |
13839 | if (sizeof (ac__type_new_)) | |
13840 | return 0; | |
bec39cab AC |
13841 | ; |
13842 | return 0; | |
13843 | } | |
13844 | _ACEOF | |
a3828db0 MK |
13845 | rm -f conftest.$ac_objext |
13846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13847 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13848 | ac_status=$? |
13849 | grep -v '^ *+' conftest.er1 >conftest.err | |
13850 | rm -f conftest.er1 | |
13851 | cat conftest.err >&5 | |
13852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13853 | (exit $ac_status); } && | |
121ce6e5 | 13854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13856 | (eval $ac_try) 2>&5 | |
13857 | ac_status=$? | |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13859 | (exit $ac_status); }; } && | |
a3828db0 | 13860 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); }; }; then | |
4e8d927d | 13866 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
13867 | else |
13868 | echo "$as_me: failed program was:" >&5 | |
13869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13870 | ||
4e8d927d DJ |
13871 | ac_cv_type_u_int64_t=no |
13872 | fi | |
13873 | ||
13874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13875 | fi | |
13876 | { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
13877 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } | |
13878 | if test $ac_cv_type_u_int64_t = yes; then | |
13879 | : | |
13880 | else | |
13881 | acx_cv_header_stdint_kind="(u_intXX_t style, lacks u_int64_t)" | |
13882 | fi | |
13883 | ||
13884 | break | |
13885 | done | |
13886 | fi | |
13887 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13888 | acx_cv_header_stdint_kind="(using manual detection)" | |
13889 | fi | |
13890 | ||
13891 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
13892 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
13893 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
13894 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
13895 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
13896 | ||
13897 | # ----------------- Summarize what we found so far | |
13898 | ||
13899 | { echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 | |
13900 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6; } | |
13901 | ||
13902 | case `$as_basename -- gdb_stdint.h || | |
13903 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
13904 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
13905 | Xgdb_stdint.h : 'X\(/\)' \| . 2>/dev/null || | |
13906 | echo X/gdb_stdint.h | | |
13907 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13908 | s//\1/ | |
13909 | q | |
13910 | } | |
13911 | /^X\/\(\/\/\)$/{ | |
13912 | s//\1/ | |
13913 | q | |
13914 | } | |
13915 | /^X\/\(\/\).*/{ | |
13916 | s//\1/ | |
13917 | q | |
13918 | } | |
13919 | s/.*/./; q'` in | |
13920 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
13921 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
13922 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
13923 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
13924 | *) ;; | |
13925 | esac | |
13926 | ||
13927 | { echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
13928 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } | |
13929 | ||
13930 | # ----------------- done included file, check C basic types -------- | |
13931 | ||
13932 | # Lacking an uintptr_t? Test size of void * | |
13933 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
13934 | stddef.h:* | *:no) { echo "$as_me:$LINENO: checking for void *" >&5 | |
13935 | echo $ECHO_N "checking for void *... $ECHO_C" >&6; } | |
13936 | if test "${ac_cv_type_void_p+set}" = set; then | |
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13938 | else | |
13939 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 13940 | /* confdefs.h. */ |
bec39cab AC |
13941 | _ACEOF |
13942 | cat confdefs.h >>conftest.$ac_ext | |
13943 | cat >>conftest.$ac_ext <<_ACEOF | |
13944 | /* end confdefs.h. */ | |
a3828db0 | 13945 | $ac_includes_default |
4e8d927d | 13946 | typedef void * ac__type_new_; |
bec39cab AC |
13947 | int |
13948 | main () | |
13949 | { | |
4e8d927d DJ |
13950 | if ((ac__type_new_ *) 0) |
13951 | return 0; | |
13952 | if (sizeof (ac__type_new_)) | |
13953 | return 0; | |
bec39cab AC |
13954 | ; |
13955 | return 0; | |
13956 | } | |
13957 | _ACEOF | |
a3828db0 MK |
13958 | rm -f conftest.$ac_objext |
13959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13960 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
13961 | ac_status=$? |
13962 | grep -v '^ *+' conftest.er1 >conftest.err | |
13963 | rm -f conftest.er1 | |
13964 | cat conftest.err >&5 | |
13965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13966 | (exit $ac_status); } && | |
121ce6e5 | 13967 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
13968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13969 | (eval $ac_try) 2>&5 | |
13970 | ac_status=$? | |
13971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13972 | (exit $ac_status); }; } && | |
a3828db0 | 13973 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
13974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13975 | (eval $ac_try) 2>&5 | |
13976 | ac_status=$? | |
13977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13978 | (exit $ac_status); }; }; then | |
4e8d927d | 13979 | ac_cv_type_void_p=yes |
46711df8 | 13980 | else |
bec39cab AC |
13981 | echo "$as_me: failed program was:" >&5 |
13982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13983 | ||
4e8d927d | 13984 | ac_cv_type_void_p=no |
a3828db0 | 13985 | fi |
46711df8 | 13986 | |
4e8d927d | 13987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 13988 | fi |
4e8d927d DJ |
13989 | { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
13990 | echo "${ECHO_T}$ac_cv_type_void_p" >&6; } | |
d3ea6809 | 13991 | |
4e8d927d DJ |
13992 | { echo "$as_me:$LINENO: checking size of void *" >&5 |
13993 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } | |
13994 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
d3ea6809 MM |
13995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13996 | else | |
4e8d927d DJ |
13997 | if test "$ac_cv_type_void_p" = yes; then |
13998 | # The cast to long int works around a bug in the HP C Compiler | |
13999 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14000 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14001 | # This bug is HP SR number 8606223364. | |
14002 | if test "$cross_compiling" = yes; then | |
14003 | # Depending upon the size, compute the lo and hi bounds. | |
14004 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
14005 | /* confdefs.h. */ |
14006 | _ACEOF | |
14007 | cat confdefs.h >>conftest.$ac_ext | |
14008 | cat >>conftest.$ac_ext <<_ACEOF | |
14009 | /* end confdefs.h. */ | |
14010 | $ac_includes_default | |
4e8d927d | 14011 | typedef void * ac__type_sizeof_; |
d3ea6809 MM |
14012 | int |
14013 | main () | |
14014 | { | |
4e8d927d DJ |
14015 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
14016 | test_array [0] = 0 | |
14017 | ||
d3ea6809 MM |
14018 | ; |
14019 | return 0; | |
14020 | } | |
14021 | _ACEOF | |
14022 | rm -f conftest.$ac_objext | |
14023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14024 | (eval $ac_compile) 2>conftest.er1 | |
14025 | ac_status=$? | |
14026 | grep -v '^ *+' conftest.er1 >conftest.err | |
14027 | rm -f conftest.er1 | |
14028 | cat conftest.err >&5 | |
14029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14030 | (exit $ac_status); } && | |
121ce6e5 | 14031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d3ea6809 MM |
14032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14033 | (eval $ac_try) 2>&5 | |
14034 | ac_status=$? | |
14035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14036 | (exit $ac_status); }; } && | |
14037 | { ac_try='test -s conftest.$ac_objext' | |
14038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14039 | (eval $ac_try) 2>&5 | |
14040 | ac_status=$? | |
14041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14042 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
14043 | ac_lo=0 ac_mid=0 |
14044 | while :; do | |
14045 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
14046 | /* confdefs.h. */ |
14047 | _ACEOF | |
14048 | cat confdefs.h >>conftest.$ac_ext | |
14049 | cat >>conftest.$ac_ext <<_ACEOF | |
14050 | /* end confdefs.h. */ | |
14051 | $ac_includes_default | |
4e8d927d | 14052 | typedef void * ac__type_sizeof_; |
d3ea6809 MM |
14053 | int |
14054 | main () | |
14055 | { | |
4e8d927d DJ |
14056 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
14057 | test_array [0] = 0 | |
14058 | ||
d3ea6809 MM |
14059 | ; |
14060 | return 0; | |
14061 | } | |
14062 | _ACEOF | |
14063 | rm -f conftest.$ac_objext | |
14064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14065 | (eval $ac_compile) 2>conftest.er1 | |
14066 | ac_status=$? | |
14067 | grep -v '^ *+' conftest.er1 >conftest.err | |
14068 | rm -f conftest.er1 | |
14069 | cat conftest.err >&5 | |
14070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14071 | (exit $ac_status); } && | |
121ce6e5 | 14072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d3ea6809 MM |
14073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14074 | (eval $ac_try) 2>&5 | |
14075 | ac_status=$? | |
14076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14077 | (exit $ac_status); }; } && | |
14078 | { ac_try='test -s conftest.$ac_objext' | |
14079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14080 | (eval $ac_try) 2>&5 | |
14081 | ac_status=$? | |
14082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14083 | (exit $ac_status); }; }; then | |
4e8d927d | 14084 | ac_hi=$ac_mid; break |
d3ea6809 MM |
14085 | else |
14086 | echo "$as_me: failed program was:" >&5 | |
14087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14088 | ||
4e8d927d DJ |
14089 | ac_lo=`expr $ac_mid + 1` |
14090 | if test $ac_lo -le $ac_mid; then | |
14091 | ac_lo= ac_hi= | |
14092 | break | |
14093 | fi | |
14094 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 14095 | fi |
46711df8 | 14096 | |
4e8d927d DJ |
14097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14098 | done | |
bec39cab | 14099 | else |
4e8d927d DJ |
14100 | echo "$as_me: failed program was:" >&5 |
14101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14102 | ||
14103 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14104 | /* confdefs.h. */ |
14105 | _ACEOF | |
14106 | cat confdefs.h >>conftest.$ac_ext | |
14107 | cat >>conftest.$ac_ext <<_ACEOF | |
14108 | /* end confdefs.h. */ | |
4e8d927d DJ |
14109 | $ac_includes_default |
14110 | typedef void * ac__type_sizeof_; | |
bec39cab AC |
14111 | int |
14112 | main () | |
14113 | { | |
4e8d927d DJ |
14114 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
14115 | test_array [0] = 0 | |
14116 | ||
bec39cab AC |
14117 | ; |
14118 | return 0; | |
14119 | } | |
14120 | _ACEOF | |
a3828db0 MK |
14121 | rm -f conftest.$ac_objext |
14122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14123 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
14124 | ac_status=$? |
14125 | grep -v '^ *+' conftest.er1 >conftest.err | |
14126 | rm -f conftest.er1 | |
14127 | cat conftest.err >&5 | |
14128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14129 | (exit $ac_status); } && | |
121ce6e5 | 14130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14132 | (eval $ac_try) 2>&5 | |
14133 | ac_status=$? | |
14134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14135 | (exit $ac_status); }; } && | |
a3828db0 | 14136 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
14137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14138 | (eval $ac_try) 2>&5 | |
14139 | ac_status=$? | |
14140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14141 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
14142 | ac_hi=-1 ac_mid=-1 |
14143 | while :; do | |
14144 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
14145 | /* confdefs.h. */ |
14146 | _ACEOF | |
14147 | cat confdefs.h >>conftest.$ac_ext | |
14148 | cat >>conftest.$ac_ext <<_ACEOF | |
14149 | /* end confdefs.h. */ | |
4e8d927d DJ |
14150 | $ac_includes_default |
14151 | typedef void * ac__type_sizeof_; | |
f9f87d2c MK |
14152 | int |
14153 | main () | |
14154 | { | |
4e8d927d DJ |
14155 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
14156 | test_array [0] = 0 | |
14157 | ||
f9f87d2c MK |
14158 | ; |
14159 | return 0; | |
14160 | } | |
14161 | _ACEOF | |
14162 | rm -f conftest.$ac_objext | |
14163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14164 | (eval $ac_compile) 2>conftest.er1 | |
14165 | ac_status=$? | |
14166 | grep -v '^ *+' conftest.er1 >conftest.err | |
14167 | rm -f conftest.er1 | |
14168 | cat conftest.err >&5 | |
14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14170 | (exit $ac_status); } && | |
121ce6e5 | 14171 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f9f87d2c MK |
14172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14173 | (eval $ac_try) 2>&5 | |
14174 | ac_status=$? | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); }; } && | |
14177 | { ac_try='test -s conftest.$ac_objext' | |
14178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14179 | (eval $ac_try) 2>&5 | |
14180 | ac_status=$? | |
14181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14182 | (exit $ac_status); }; }; then | |
4e8d927d | 14183 | ac_lo=$ac_mid; break |
f9f87d2c MK |
14184 | else |
14185 | echo "$as_me: failed program was:" >&5 | |
14186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14187 | ||
4e8d927d DJ |
14188 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14189 | if test $ac_mid -le $ac_hi; then | |
14190 | ac_lo= ac_hi= | |
14191 | break | |
14192 | fi | |
14193 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 14194 | fi |
f9f87d2c | 14195 | |
4e8d927d DJ |
14196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14197 | done | |
14198 | else | |
14199 | echo "$as_me: failed program was:" >&5 | |
14200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 14201 | |
4e8d927d DJ |
14202 | ac_lo= ac_hi= |
14203 | fi | |
f9f87d2c | 14204 | |
4e8d927d | 14205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d MK |
14206 | fi |
14207 | ||
4e8d927d DJ |
14208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14209 | # Binary search between lo and hi bounds. | |
14210 | while test "x$ac_lo" != "x$ac_hi"; do | |
14211 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
14212 | cat >conftest.$ac_ext <<_ACEOF |
14213 | /* confdefs.h. */ | |
14214 | _ACEOF | |
14215 | cat confdefs.h >>conftest.$ac_ext | |
14216 | cat >>conftest.$ac_ext <<_ACEOF | |
14217 | /* end confdefs.h. */ | |
4e8d927d DJ |
14218 | $ac_includes_default |
14219 | typedef void * ac__type_sizeof_; | |
3be60c3d MK |
14220 | int |
14221 | main () | |
14222 | { | |
4e8d927d DJ |
14223 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
14224 | test_array [0] = 0 | |
14225 | ||
3be60c3d MK |
14226 | ; |
14227 | return 0; | |
14228 | } | |
14229 | _ACEOF | |
14230 | rm -f conftest.$ac_objext | |
14231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14232 | (eval $ac_compile) 2>conftest.er1 | |
14233 | ac_status=$? | |
14234 | grep -v '^ *+' conftest.er1 >conftest.err | |
14235 | rm -f conftest.er1 | |
14236 | cat conftest.err >&5 | |
14237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14238 | (exit $ac_status); } && | |
121ce6e5 | 14239 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3be60c3d MK |
14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14241 | (eval $ac_try) 2>&5 | |
14242 | ac_status=$? | |
14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14244 | (exit $ac_status); }; } && | |
14245 | { ac_try='test -s conftest.$ac_objext' | |
14246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14247 | (eval $ac_try) 2>&5 | |
14248 | ac_status=$? | |
14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14250 | (exit $ac_status); }; }; then | |
4e8d927d | 14251 | ac_hi=$ac_mid |
3be60c3d MK |
14252 | else |
14253 | echo "$as_me: failed program was:" >&5 | |
14254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14255 | ||
4e8d927d | 14256 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 14257 | fi |
3be60c3d | 14258 | |
4e8d927d DJ |
14259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14260 | done | |
14261 | case $ac_lo in | |
14262 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14263 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) | |
14264 | See \`config.log' for more details." >&5 | |
14265 | echo "$as_me: error: cannot compute sizeof (void *) | |
14266 | See \`config.log' for more details." >&2;} | |
14267 | { (exit 77); exit 77; }; } ;; | |
14268 | esac | |
14269 | else | |
14270 | cat >conftest.$ac_ext <<_ACEOF | |
14271 | /* confdefs.h. */ | |
3be60c3d | 14272 | _ACEOF |
4e8d927d DJ |
14273 | cat confdefs.h >>conftest.$ac_ext |
14274 | cat >>conftest.$ac_ext <<_ACEOF | |
14275 | /* end confdefs.h. */ | |
14276 | $ac_includes_default | |
14277 | typedef void * ac__type_sizeof_; | |
14278 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
14279 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
14280 | #include <stdio.h> | |
14281 | #include <stdlib.h> | |
14282 | int | |
14283 | main () | |
14284 | { | |
14285 | ||
14286 | FILE *f = fopen ("conftest.val", "w"); | |
14287 | if (! f) | |
14288 | return 1; | |
14289 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
14290 | { | |
14291 | long int i = longval (); | |
14292 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
14293 | return 1; | |
14294 | fprintf (f, "%ld\n", i); | |
14295 | } | |
14296 | else | |
14297 | { | |
14298 | unsigned long int i = ulongval (); | |
14299 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
14300 | return 1; | |
14301 | fprintf (f, "%lu\n", i); | |
14302 | } | |
14303 | return ferror (f) || fclose (f) != 0; | |
3be60c3d | 14304 | |
4e8d927d DJ |
14305 | ; |
14306 | return 0; | |
14307 | } | |
14308 | _ACEOF | |
14309 | rm -f conftest$ac_exeext | |
14310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14311 | (eval $ac_link) 2>&5 | |
14312 | ac_status=$? | |
14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14314 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14316 | (eval $ac_try) 2>&5 | |
14317 | ac_status=$? | |
14318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14319 | (exit $ac_status); }; }; then | |
14320 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14321 | else | |
14322 | echo "$as_me: program exited with status $ac_status" >&5 | |
14323 | echo "$as_me: failed program was:" >&5 | |
14324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 14325 | |
4e8d927d DJ |
14326 | ( exit $ac_status ) |
14327 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) | |
14328 | See \`config.log' for more details." >&5 | |
14329 | echo "$as_me: error: cannot compute sizeof (void *) | |
14330 | See \`config.log' for more details." >&2;} | |
14331 | { (exit 77); exit 77; }; } | |
f9f87d2c | 14332 | fi |
4e8d927d DJ |
14333 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
14334 | fi | |
14335 | rm -f conftest.val | |
14336 | else | |
14337 | ac_cv_sizeof_void_p=0 | |
14338 | fi | |
14339 | fi | |
14340 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
14341 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } | |
14342 | cat >>confdefs.h <<_ACEOF | |
14343 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14344 | _ACEOF | |
f9f87d2c | 14345 | |
4e8d927d DJ |
14346 | ;; |
14347 | esac | |
46711df8 | 14348 | |
4e8d927d DJ |
14349 | # Lacking an uint64_t? Test size of long |
14350 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
14351 | stddef.h:*:* | *:no:no) { echo "$as_me:$LINENO: checking for long" >&5 | |
14352 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
14353 | if test "${ac_cv_type_long+set}" = set; then | |
bec39cab | 14354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 14355 | else |
bec39cab AC |
14356 | cat >conftest.$ac_ext <<_ACEOF |
14357 | /* confdefs.h. */ | |
14358 | _ACEOF | |
14359 | cat confdefs.h >>conftest.$ac_ext | |
14360 | cat >>conftest.$ac_ext <<_ACEOF | |
14361 | /* end confdefs.h. */ | |
4e8d927d DJ |
14362 | $ac_includes_default |
14363 | typedef long ac__type_new_; | |
bec39cab | 14364 | int |
46711df8 MK |
14365 | main () |
14366 | { | |
4e8d927d DJ |
14367 | if ((ac__type_new_ *) 0) |
14368 | return 0; | |
14369 | if (sizeof (ac__type_new_)) | |
14370 | return 0; | |
a3828db0 MK |
14371 | ; |
14372 | return 0; | |
46711df8 | 14373 | } |
bec39cab | 14374 | _ACEOF |
a3828db0 MK |
14375 | rm -f conftest.$ac_objext |
14376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14377 | (eval $ac_compile) 2>conftest.er1 | |
14378 | ac_status=$? | |
14379 | grep -v '^ *+' conftest.er1 >conftest.err | |
14380 | rm -f conftest.er1 | |
14381 | cat conftest.err >&5 | |
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 | (exit $ac_status); } && | |
121ce6e5 | 14384 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a3828db0 MK |
14385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14386 | (eval $ac_try) 2>&5 | |
bec39cab AC |
14387 | ac_status=$? |
14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
14389 | (exit $ac_status); }; } && |
14390 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
14391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14392 | (eval $ac_try) 2>&5 | |
14393 | ac_status=$? | |
14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); }; }; then | |
4e8d927d | 14396 | ac_cv_type_long=yes |
46711df8 | 14397 | else |
a3828db0 | 14398 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
14399 | sed 's/^/| /' conftest.$ac_ext >&5 |
14400 | ||
4e8d927d | 14401 | ac_cv_type_long=no |
46711df8 | 14402 | fi |
bec39cab | 14403 | |
4e8d927d | 14404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 14405 | fi |
4e8d927d DJ |
14406 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
14407 | echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
46711df8 | 14408 | |
4e8d927d DJ |
14409 | { echo "$as_me:$LINENO: checking size of long" >&5 |
14410 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
14411 | if test "${ac_cv_sizeof_long+set}" = set; then | |
bec39cab | 14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 14413 | else |
4e8d927d DJ |
14414 | if test "$ac_cv_type_long" = yes; then |
14415 | # The cast to long int works around a bug in the HP C Compiler | |
14416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14418 | # This bug is HP SR number 8606223364. | |
14419 | if test "$cross_compiling" = yes; then | |
14420 | # Depending upon the size, compute the lo and hi bounds. | |
14421 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
14422 | /* confdefs.h. */ |
14423 | _ACEOF | |
14424 | cat confdefs.h >>conftest.$ac_ext | |
14425 | cat >>conftest.$ac_ext <<_ACEOF | |
14426 | /* end confdefs.h. */ | |
4e8d927d DJ |
14427 | $ac_includes_default |
14428 | typedef long ac__type_sizeof_; | |
14429 | int | |
14430 | main () | |
14431 | { | |
14432 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
14433 | test_array [0] = 0 | |
a3828db0 | 14434 | |
4e8d927d DJ |
14435 | ; |
14436 | return 0; | |
14437 | } | |
bec39cab AC |
14438 | _ACEOF |
14439 | rm -f conftest.$ac_objext | |
14440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14441 | (eval $ac_compile) 2>conftest.er1 | |
14442 | ac_status=$? | |
14443 | grep -v '^ *+' conftest.er1 >conftest.err | |
14444 | rm -f conftest.er1 | |
14445 | cat conftest.err >&5 | |
14446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14447 | (exit $ac_status); } && | |
121ce6e5 | 14448 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
14449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14450 | (eval $ac_try) 2>&5 | |
14451 | ac_status=$? | |
14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 | (exit $ac_status); }; } && | |
14454 | { ac_try='test -s conftest.$ac_objext' | |
14455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14456 | (eval $ac_try) 2>&5 | |
14457 | ac_status=$? | |
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14459 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
14460 | ac_lo=0 ac_mid=0 |
14461 | while :; do | |
14462 | cat >conftest.$ac_ext <<_ACEOF | |
14463 | /* confdefs.h. */ | |
14464 | _ACEOF | |
14465 | cat confdefs.h >>conftest.$ac_ext | |
14466 | cat >>conftest.$ac_ext <<_ACEOF | |
14467 | /* end confdefs.h. */ | |
14468 | $ac_includes_default | |
14469 | typedef long ac__type_sizeof_; | |
14470 | int | |
14471 | main () | |
14472 | { | |
14473 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
14474 | test_array [0] = 0 | |
14475 | ||
14476 | ; | |
14477 | return 0; | |
14478 | } | |
14479 | _ACEOF | |
14480 | rm -f conftest.$ac_objext | |
14481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14482 | (eval $ac_compile) 2>conftest.er1 | |
14483 | ac_status=$? | |
14484 | grep -v '^ *+' conftest.er1 >conftest.err | |
14485 | rm -f conftest.er1 | |
14486 | cat conftest.err >&5 | |
14487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14488 | (exit $ac_status); } && | |
14489 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14491 | (eval $ac_try) 2>&5 | |
14492 | ac_status=$? | |
14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14494 | (exit $ac_status); }; } && | |
14495 | { ac_try='test -s conftest.$ac_objext' | |
14496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14497 | (eval $ac_try) 2>&5 | |
14498 | ac_status=$? | |
14499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14500 | (exit $ac_status); }; }; then | |
14501 | ac_hi=$ac_mid; break | |
14502 | else | |
14503 | echo "$as_me: failed program was:" >&5 | |
14504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14505 | ||
14506 | ac_lo=`expr $ac_mid + 1` | |
14507 | if test $ac_lo -le $ac_mid; then | |
14508 | ac_lo= ac_hi= | |
14509 | break | |
14510 | fi | |
14511 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14512 | fi | |
14513 | ||
14514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14515 | done | |
14516 | else | |
14517 | echo "$as_me: failed program was:" >&5 | |
14518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14519 | ||
14520 | cat >conftest.$ac_ext <<_ACEOF | |
14521 | /* confdefs.h. */ | |
14522 | _ACEOF | |
14523 | cat confdefs.h >>conftest.$ac_ext | |
14524 | cat >>conftest.$ac_ext <<_ACEOF | |
14525 | /* end confdefs.h. */ | |
14526 | $ac_includes_default | |
14527 | typedef long ac__type_sizeof_; | |
14528 | int | |
14529 | main () | |
14530 | { | |
14531 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
14532 | test_array [0] = 0 | |
14533 | ||
14534 | ; | |
14535 | return 0; | |
14536 | } | |
14537 | _ACEOF | |
14538 | rm -f conftest.$ac_objext | |
14539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14540 | (eval $ac_compile) 2>conftest.er1 | |
14541 | ac_status=$? | |
14542 | grep -v '^ *+' conftest.er1 >conftest.err | |
14543 | rm -f conftest.er1 | |
14544 | cat conftest.err >&5 | |
14545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14546 | (exit $ac_status); } && | |
14547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14549 | (eval $ac_try) 2>&5 | |
14550 | ac_status=$? | |
14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14552 | (exit $ac_status); }; } && | |
14553 | { ac_try='test -s conftest.$ac_objext' | |
14554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14555 | (eval $ac_try) 2>&5 | |
14556 | ac_status=$? | |
14557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14558 | (exit $ac_status); }; }; then | |
14559 | ac_hi=-1 ac_mid=-1 | |
14560 | while :; do | |
14561 | cat >conftest.$ac_ext <<_ACEOF | |
14562 | /* confdefs.h. */ | |
14563 | _ACEOF | |
14564 | cat confdefs.h >>conftest.$ac_ext | |
14565 | cat >>conftest.$ac_ext <<_ACEOF | |
14566 | /* end confdefs.h. */ | |
14567 | $ac_includes_default | |
14568 | typedef long ac__type_sizeof_; | |
14569 | int | |
14570 | main () | |
14571 | { | |
14572 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
14573 | test_array [0] = 0 | |
14574 | ||
14575 | ; | |
14576 | return 0; | |
14577 | } | |
14578 | _ACEOF | |
14579 | rm -f conftest.$ac_objext | |
14580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14581 | (eval $ac_compile) 2>conftest.er1 | |
14582 | ac_status=$? | |
14583 | grep -v '^ *+' conftest.er1 >conftest.err | |
14584 | rm -f conftest.er1 | |
14585 | cat conftest.err >&5 | |
14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14587 | (exit $ac_status); } && | |
14588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14590 | (eval $ac_try) 2>&5 | |
14591 | ac_status=$? | |
14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14593 | (exit $ac_status); }; } && | |
14594 | { ac_try='test -s conftest.$ac_objext' | |
14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14596 | (eval $ac_try) 2>&5 | |
14597 | ac_status=$? | |
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14599 | (exit $ac_status); }; }; then | |
14600 | ac_lo=$ac_mid; break | |
14601 | else | |
14602 | echo "$as_me: failed program was:" >&5 | |
14603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14604 | ||
14605 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14606 | if test $ac_mid -le $ac_hi; then | |
14607 | ac_lo= ac_hi= | |
14608 | break | |
14609 | fi | |
14610 | ac_mid=`expr 2 '*' $ac_mid` | |
14611 | fi | |
14612 | ||
14613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14614 | done | |
14615 | else | |
14616 | echo "$as_me: failed program was:" >&5 | |
14617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14618 | ||
14619 | ac_lo= ac_hi= | |
14620 | fi | |
14621 | ||
14622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14623 | fi | |
14624 | ||
14625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14626 | # Binary search between lo and hi bounds. | |
14627 | while test "x$ac_lo" != "x$ac_hi"; do | |
14628 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14629 | cat >conftest.$ac_ext <<_ACEOF | |
14630 | /* confdefs.h. */ | |
14631 | _ACEOF | |
14632 | cat confdefs.h >>conftest.$ac_ext | |
14633 | cat >>conftest.$ac_ext <<_ACEOF | |
14634 | /* end confdefs.h. */ | |
14635 | $ac_includes_default | |
14636 | typedef long ac__type_sizeof_; | |
14637 | int | |
14638 | main () | |
14639 | { | |
14640 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
14641 | test_array [0] = 0 | |
14642 | ||
14643 | ; | |
14644 | return 0; | |
14645 | } | |
14646 | _ACEOF | |
14647 | rm -f conftest.$ac_objext | |
14648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14649 | (eval $ac_compile) 2>conftest.er1 | |
14650 | ac_status=$? | |
14651 | grep -v '^ *+' conftest.er1 >conftest.err | |
14652 | rm -f conftest.er1 | |
14653 | cat conftest.err >&5 | |
14654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14655 | (exit $ac_status); } && | |
14656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14658 | (eval $ac_try) 2>&5 | |
14659 | ac_status=$? | |
14660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14661 | (exit $ac_status); }; } && | |
14662 | { ac_try='test -s conftest.$ac_objext' | |
14663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14664 | (eval $ac_try) 2>&5 | |
14665 | ac_status=$? | |
14666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14667 | (exit $ac_status); }; }; then | |
14668 | ac_hi=$ac_mid | |
14669 | else | |
14670 | echo "$as_me: failed program was:" >&5 | |
14671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14672 | ||
14673 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14674 | fi | |
14675 | ||
14676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14677 | done | |
14678 | case $ac_lo in | |
14679 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
14680 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
14681 | See \`config.log' for more details." >&5 | |
14682 | echo "$as_me: error: cannot compute sizeof (long) | |
14683 | See \`config.log' for more details." >&2;} | |
14684 | { (exit 77); exit 77; }; } ;; | |
14685 | esac | |
14686 | else | |
14687 | cat >conftest.$ac_ext <<_ACEOF | |
14688 | /* confdefs.h. */ | |
14689 | _ACEOF | |
14690 | cat confdefs.h >>conftest.$ac_ext | |
14691 | cat >>conftest.$ac_ext <<_ACEOF | |
14692 | /* end confdefs.h. */ | |
14693 | $ac_includes_default | |
14694 | typedef long ac__type_sizeof_; | |
14695 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
14696 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
14697 | #include <stdio.h> | |
14698 | #include <stdlib.h> | |
14699 | int | |
14700 | main () | |
14701 | { | |
14702 | ||
14703 | FILE *f = fopen ("conftest.val", "w"); | |
14704 | if (! f) | |
14705 | return 1; | |
14706 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
14707 | { | |
14708 | long int i = longval (); | |
14709 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
14710 | return 1; | |
14711 | fprintf (f, "%ld\n", i); | |
14712 | } | |
14713 | else | |
14714 | { | |
14715 | unsigned long int i = ulongval (); | |
14716 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
14717 | return 1; | |
14718 | fprintf (f, "%lu\n", i); | |
14719 | } | |
14720 | return ferror (f) || fclose (f) != 0; | |
14721 | ||
14722 | ; | |
14723 | return 0; | |
14724 | } | |
14725 | _ACEOF | |
14726 | rm -f conftest$ac_exeext | |
14727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14728 | (eval $ac_link) 2>&5 | |
14729 | ac_status=$? | |
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14731 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14733 | (eval $ac_try) 2>&5 | |
14734 | ac_status=$? | |
14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14736 | (exit $ac_status); }; }; then | |
14737 | ac_cv_sizeof_long=`cat conftest.val` | |
14738 | else | |
14739 | echo "$as_me: program exited with status $ac_status" >&5 | |
14740 | echo "$as_me: failed program was:" >&5 | |
14741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14742 | ||
14743 | ( exit $ac_status ) | |
14744 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
14745 | See \`config.log' for more details." >&5 | |
14746 | echo "$as_me: error: cannot compute sizeof (long) | |
14747 | See \`config.log' for more details." >&2;} | |
14748 | { (exit 77); exit 77; }; } | |
14749 | fi | |
14750 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14751 | fi | |
14752 | rm -f conftest.val | |
14753 | else | |
14754 | ac_cv_sizeof_long=0 | |
14755 | fi | |
14756 | fi | |
14757 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
14758 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
14759 | cat >>confdefs.h <<_ACEOF | |
14760 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14761 | _ACEOF | |
14762 | ||
14763 | ;; | |
14764 | esac | |
14765 | ||
14766 | if test $acx_cv_header_stdint = stddef.h; then | |
14767 | # Lacking a good header? Test size of everything and deduce all types. | |
14768 | { echo "$as_me:$LINENO: checking for int" >&5 | |
14769 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } | |
14770 | if test "${ac_cv_type_int+set}" = set; then | |
14771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14772 | else | |
14773 | cat >conftest.$ac_ext <<_ACEOF | |
14774 | /* confdefs.h. */ | |
14775 | _ACEOF | |
14776 | cat confdefs.h >>conftest.$ac_ext | |
14777 | cat >>conftest.$ac_ext <<_ACEOF | |
14778 | /* end confdefs.h. */ | |
14779 | $ac_includes_default | |
14780 | typedef int ac__type_new_; | |
14781 | int | |
14782 | main () | |
14783 | { | |
14784 | if ((ac__type_new_ *) 0) | |
14785 | return 0; | |
14786 | if (sizeof (ac__type_new_)) | |
14787 | return 0; | |
14788 | ; | |
14789 | return 0; | |
14790 | } | |
14791 | _ACEOF | |
14792 | rm -f conftest.$ac_objext | |
14793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14794 | (eval $ac_compile) 2>conftest.er1 | |
14795 | ac_status=$? | |
14796 | grep -v '^ *+' conftest.er1 >conftest.err | |
14797 | rm -f conftest.er1 | |
14798 | cat conftest.err >&5 | |
14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14800 | (exit $ac_status); } && | |
14801 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14803 | (eval $ac_try) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); }; } && | |
14807 | { ac_try='test -s conftest.$ac_objext' | |
14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14809 | (eval $ac_try) 2>&5 | |
14810 | ac_status=$? | |
14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14812 | (exit $ac_status); }; }; then | |
14813 | ac_cv_type_int=yes | |
14814 | else | |
14815 | echo "$as_me: failed program was:" >&5 | |
14816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14817 | ||
14818 | ac_cv_type_int=no | |
14819 | fi | |
14820 | ||
14821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14822 | fi | |
14823 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14824 | echo "${ECHO_T}$ac_cv_type_int" >&6; } | |
14825 | ||
14826 | { echo "$as_me:$LINENO: checking size of int" >&5 | |
14827 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } | |
14828 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14830 | else | |
14831 | if test "$ac_cv_type_int" = yes; then | |
14832 | # The cast to long int works around a bug in the HP C Compiler | |
14833 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14834 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14835 | # This bug is HP SR number 8606223364. | |
14836 | if test "$cross_compiling" = yes; then | |
14837 | # Depending upon the size, compute the lo and hi bounds. | |
14838 | cat >conftest.$ac_ext <<_ACEOF | |
14839 | /* confdefs.h. */ | |
14840 | _ACEOF | |
14841 | cat confdefs.h >>conftest.$ac_ext | |
14842 | cat >>conftest.$ac_ext <<_ACEOF | |
14843 | /* end confdefs.h. */ | |
14844 | $ac_includes_default | |
14845 | typedef int ac__type_sizeof_; | |
14846 | int | |
14847 | main () | |
14848 | { | |
14849 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
14850 | test_array [0] = 0 | |
14851 | ||
14852 | ; | |
14853 | return 0; | |
14854 | } | |
14855 | _ACEOF | |
14856 | rm -f conftest.$ac_objext | |
14857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14858 | (eval $ac_compile) 2>conftest.er1 | |
14859 | ac_status=$? | |
14860 | grep -v '^ *+' conftest.er1 >conftest.err | |
14861 | rm -f conftest.er1 | |
14862 | cat conftest.err >&5 | |
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); } && | |
14865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14867 | (eval $ac_try) 2>&5 | |
14868 | ac_status=$? | |
14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14870 | (exit $ac_status); }; } && | |
14871 | { ac_try='test -s conftest.$ac_objext' | |
14872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14873 | (eval $ac_try) 2>&5 | |
14874 | ac_status=$? | |
14875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14876 | (exit $ac_status); }; }; then | |
14877 | ac_lo=0 ac_mid=0 | |
14878 | while :; do | |
14879 | cat >conftest.$ac_ext <<_ACEOF | |
14880 | /* confdefs.h. */ | |
14881 | _ACEOF | |
14882 | cat confdefs.h >>conftest.$ac_ext | |
14883 | cat >>conftest.$ac_ext <<_ACEOF | |
14884 | /* end confdefs.h. */ | |
14885 | $ac_includes_default | |
14886 | typedef int ac__type_sizeof_; | |
14887 | int | |
14888 | main () | |
14889 | { | |
14890 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
14891 | test_array [0] = 0 | |
14892 | ||
14893 | ; | |
14894 | return 0; | |
14895 | } | |
14896 | _ACEOF | |
14897 | rm -f conftest.$ac_objext | |
14898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14899 | (eval $ac_compile) 2>conftest.er1 | |
14900 | ac_status=$? | |
14901 | grep -v '^ *+' conftest.er1 >conftest.err | |
14902 | rm -f conftest.er1 | |
14903 | cat conftest.err >&5 | |
14904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14905 | (exit $ac_status); } && | |
14906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14908 | (eval $ac_try) 2>&5 | |
14909 | ac_status=$? | |
14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14911 | (exit $ac_status); }; } && | |
14912 | { ac_try='test -s conftest.$ac_objext' | |
14913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14914 | (eval $ac_try) 2>&5 | |
14915 | ac_status=$? | |
14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14917 | (exit $ac_status); }; }; then | |
14918 | ac_hi=$ac_mid; break | |
14919 | else | |
14920 | echo "$as_me: failed program was:" >&5 | |
14921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14922 | ||
14923 | ac_lo=`expr $ac_mid + 1` | |
14924 | if test $ac_lo -le $ac_mid; then | |
14925 | ac_lo= ac_hi= | |
14926 | break | |
14927 | fi | |
14928 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14929 | fi | |
14930 | ||
14931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14932 | done | |
14933 | else | |
14934 | echo "$as_me: failed program was:" >&5 | |
14935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14936 | ||
14937 | cat >conftest.$ac_ext <<_ACEOF | |
14938 | /* confdefs.h. */ | |
14939 | _ACEOF | |
14940 | cat confdefs.h >>conftest.$ac_ext | |
14941 | cat >>conftest.$ac_ext <<_ACEOF | |
14942 | /* end confdefs.h. */ | |
14943 | $ac_includes_default | |
14944 | typedef int ac__type_sizeof_; | |
14945 | int | |
14946 | main () | |
14947 | { | |
14948 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
14949 | test_array [0] = 0 | |
14950 | ||
14951 | ; | |
14952 | return 0; | |
14953 | } | |
14954 | _ACEOF | |
14955 | rm -f conftest.$ac_objext | |
14956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14957 | (eval $ac_compile) 2>conftest.er1 | |
14958 | ac_status=$? | |
14959 | grep -v '^ *+' conftest.er1 >conftest.err | |
14960 | rm -f conftest.er1 | |
14961 | cat conftest.err >&5 | |
14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14963 | (exit $ac_status); } && | |
14964 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14966 | (eval $ac_try) 2>&5 | |
14967 | ac_status=$? | |
14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14969 | (exit $ac_status); }; } && | |
14970 | { ac_try='test -s conftest.$ac_objext' | |
14971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14972 | (eval $ac_try) 2>&5 | |
14973 | ac_status=$? | |
14974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14975 | (exit $ac_status); }; }; then | |
14976 | ac_hi=-1 ac_mid=-1 | |
14977 | while :; do | |
14978 | cat >conftest.$ac_ext <<_ACEOF | |
14979 | /* confdefs.h. */ | |
14980 | _ACEOF | |
14981 | cat confdefs.h >>conftest.$ac_ext | |
14982 | cat >>conftest.$ac_ext <<_ACEOF | |
14983 | /* end confdefs.h. */ | |
14984 | $ac_includes_default | |
14985 | typedef int ac__type_sizeof_; | |
14986 | int | |
14987 | main () | |
14988 | { | |
14989 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
14990 | test_array [0] = 0 | |
14991 | ||
14992 | ; | |
14993 | return 0; | |
14994 | } | |
14995 | _ACEOF | |
14996 | rm -f conftest.$ac_objext | |
14997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14998 | (eval $ac_compile) 2>conftest.er1 | |
14999 | ac_status=$? | |
15000 | grep -v '^ *+' conftest.er1 >conftest.err | |
15001 | rm -f conftest.er1 | |
15002 | cat conftest.err >&5 | |
15003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15004 | (exit $ac_status); } && | |
15005 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15007 | (eval $ac_try) 2>&5 | |
15008 | ac_status=$? | |
15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15010 | (exit $ac_status); }; } && | |
15011 | { ac_try='test -s conftest.$ac_objext' | |
15012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15013 | (eval $ac_try) 2>&5 | |
15014 | ac_status=$? | |
15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15016 | (exit $ac_status); }; }; then | |
15017 | ac_lo=$ac_mid; break | |
15018 | else | |
15019 | echo "$as_me: failed program was:" >&5 | |
15020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15021 | ||
15022 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15023 | if test $ac_mid -le $ac_hi; then | |
15024 | ac_lo= ac_hi= | |
15025 | break | |
15026 | fi | |
15027 | ac_mid=`expr 2 '*' $ac_mid` | |
15028 | fi | |
15029 | ||
15030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15031 | done | |
15032 | else | |
15033 | echo "$as_me: failed program was:" >&5 | |
15034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15035 | ||
15036 | ac_lo= ac_hi= | |
15037 | fi | |
15038 | ||
15039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15040 | fi | |
15041 | ||
15042 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15043 | # Binary search between lo and hi bounds. | |
15044 | while test "x$ac_lo" != "x$ac_hi"; do | |
15045 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15046 | cat >conftest.$ac_ext <<_ACEOF | |
15047 | /* confdefs.h. */ | |
15048 | _ACEOF | |
15049 | cat confdefs.h >>conftest.$ac_ext | |
15050 | cat >>conftest.$ac_ext <<_ACEOF | |
15051 | /* end confdefs.h. */ | |
15052 | $ac_includes_default | |
15053 | typedef int ac__type_sizeof_; | |
15054 | int | |
15055 | main () | |
15056 | { | |
15057 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
15058 | test_array [0] = 0 | |
15059 | ||
15060 | ; | |
15061 | return 0; | |
15062 | } | |
15063 | _ACEOF | |
15064 | rm -f conftest.$ac_objext | |
15065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15066 | (eval $ac_compile) 2>conftest.er1 | |
15067 | ac_status=$? | |
15068 | grep -v '^ *+' conftest.er1 >conftest.err | |
15069 | rm -f conftest.er1 | |
15070 | cat conftest.err >&5 | |
15071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15072 | (exit $ac_status); } && | |
15073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15075 | (eval $ac_try) 2>&5 | |
15076 | ac_status=$? | |
15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15078 | (exit $ac_status); }; } && | |
15079 | { ac_try='test -s conftest.$ac_objext' | |
15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15081 | (eval $ac_try) 2>&5 | |
15082 | ac_status=$? | |
15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15084 | (exit $ac_status); }; }; then | |
15085 | ac_hi=$ac_mid | |
15086 | else | |
15087 | echo "$as_me: failed program was:" >&5 | |
15088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15089 | ||
15090 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15091 | fi | |
15092 | ||
15093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15094 | done | |
15095 | case $ac_lo in | |
15096 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15097 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
15098 | See \`config.log' for more details." >&5 | |
15099 | echo "$as_me: error: cannot compute sizeof (int) | |
15100 | See \`config.log' for more details." >&2;} | |
15101 | { (exit 77); exit 77; }; } ;; | |
15102 | esac | |
15103 | else | |
15104 | cat >conftest.$ac_ext <<_ACEOF | |
15105 | /* confdefs.h. */ | |
15106 | _ACEOF | |
15107 | cat confdefs.h >>conftest.$ac_ext | |
15108 | cat >>conftest.$ac_ext <<_ACEOF | |
15109 | /* end confdefs.h. */ | |
15110 | $ac_includes_default | |
15111 | typedef int ac__type_sizeof_; | |
15112 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
15113 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
15114 | #include <stdio.h> | |
15115 | #include <stdlib.h> | |
15116 | int | |
15117 | main () | |
15118 | { | |
15119 | ||
15120 | FILE *f = fopen ("conftest.val", "w"); | |
15121 | if (! f) | |
15122 | return 1; | |
15123 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
15124 | { | |
15125 | long int i = longval (); | |
15126 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
15127 | return 1; | |
15128 | fprintf (f, "%ld\n", i); | |
15129 | } | |
15130 | else | |
15131 | { | |
15132 | unsigned long int i = ulongval (); | |
15133 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
15134 | return 1; | |
15135 | fprintf (f, "%lu\n", i); | |
15136 | } | |
15137 | return ferror (f) || fclose (f) != 0; | |
15138 | ||
15139 | ; | |
15140 | return 0; | |
15141 | } | |
15142 | _ACEOF | |
15143 | rm -f conftest$ac_exeext | |
15144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15145 | (eval $ac_link) 2>&5 | |
15146 | ac_status=$? | |
15147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15150 | (eval $ac_try) 2>&5 | |
15151 | ac_status=$? | |
15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15153 | (exit $ac_status); }; }; then | |
15154 | ac_cv_sizeof_int=`cat conftest.val` | |
15155 | else | |
15156 | echo "$as_me: program exited with status $ac_status" >&5 | |
15157 | echo "$as_me: failed program was:" >&5 | |
15158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15159 | ||
15160 | ( exit $ac_status ) | |
15161 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) | |
15162 | See \`config.log' for more details." >&5 | |
15163 | echo "$as_me: error: cannot compute sizeof (int) | |
15164 | See \`config.log' for more details." >&2;} | |
15165 | { (exit 77); exit 77; }; } | |
15166 | fi | |
15167 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15168 | fi | |
15169 | rm -f conftest.val | |
15170 | else | |
15171 | ac_cv_sizeof_int=0 | |
15172 | fi | |
15173 | fi | |
15174 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15175 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } | |
15176 | cat >>confdefs.h <<_ACEOF | |
15177 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15178 | _ACEOF | |
15179 | ||
15180 | ||
15181 | { echo "$as_me:$LINENO: checking for short" >&5 | |
15182 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } | |
15183 | if test "${ac_cv_type_short+set}" = set; then | |
15184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15185 | else | |
15186 | cat >conftest.$ac_ext <<_ACEOF | |
15187 | /* confdefs.h. */ | |
15188 | _ACEOF | |
15189 | cat confdefs.h >>conftest.$ac_ext | |
15190 | cat >>conftest.$ac_ext <<_ACEOF | |
15191 | /* end confdefs.h. */ | |
15192 | $ac_includes_default | |
15193 | typedef short ac__type_new_; | |
15194 | int | |
15195 | main () | |
15196 | { | |
15197 | if ((ac__type_new_ *) 0) | |
15198 | return 0; | |
15199 | if (sizeof (ac__type_new_)) | |
15200 | return 0; | |
15201 | ; | |
15202 | return 0; | |
15203 | } | |
15204 | _ACEOF | |
15205 | rm -f conftest.$ac_objext | |
15206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15207 | (eval $ac_compile) 2>conftest.er1 | |
15208 | ac_status=$? | |
15209 | grep -v '^ *+' conftest.er1 >conftest.err | |
15210 | rm -f conftest.er1 | |
15211 | cat conftest.err >&5 | |
15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15213 | (exit $ac_status); } && | |
15214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15216 | (eval $ac_try) 2>&5 | |
15217 | ac_status=$? | |
15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15219 | (exit $ac_status); }; } && | |
15220 | { ac_try='test -s conftest.$ac_objext' | |
15221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15222 | (eval $ac_try) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); }; }; then | |
15226 | ac_cv_type_short=yes | |
15227 | else | |
15228 | echo "$as_me: failed program was:" >&5 | |
15229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15230 | ||
15231 | ac_cv_type_short=no | |
15232 | fi | |
15233 | ||
15234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15235 | fi | |
15236 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
15237 | echo "${ECHO_T}$ac_cv_type_short" >&6; } | |
15238 | ||
15239 | { echo "$as_me:$LINENO: checking size of short" >&5 | |
15240 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } | |
15241 | if test "${ac_cv_sizeof_short+set}" = set; then | |
15242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15243 | else | |
15244 | if test "$ac_cv_type_short" = yes; then | |
15245 | # The cast to long int works around a bug in the HP C Compiler | |
15246 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15247 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15248 | # This bug is HP SR number 8606223364. | |
15249 | if test "$cross_compiling" = yes; then | |
15250 | # Depending upon the size, compute the lo and hi bounds. | |
15251 | cat >conftest.$ac_ext <<_ACEOF | |
15252 | /* confdefs.h. */ | |
15253 | _ACEOF | |
15254 | cat confdefs.h >>conftest.$ac_ext | |
15255 | cat >>conftest.$ac_ext <<_ACEOF | |
15256 | /* end confdefs.h. */ | |
15257 | $ac_includes_default | |
15258 | typedef short ac__type_sizeof_; | |
15259 | int | |
15260 | main () | |
15261 | { | |
15262 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
15263 | test_array [0] = 0 | |
15264 | ||
15265 | ; | |
15266 | return 0; | |
15267 | } | |
15268 | _ACEOF | |
15269 | rm -f conftest.$ac_objext | |
15270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15271 | (eval $ac_compile) 2>conftest.er1 | |
15272 | ac_status=$? | |
15273 | grep -v '^ *+' conftest.er1 >conftest.err | |
15274 | rm -f conftest.er1 | |
15275 | cat conftest.err >&5 | |
15276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15277 | (exit $ac_status); } && | |
15278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15280 | (eval $ac_try) 2>&5 | |
15281 | ac_status=$? | |
15282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15283 | (exit $ac_status); }; } && | |
15284 | { ac_try='test -s conftest.$ac_objext' | |
15285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15286 | (eval $ac_try) 2>&5 | |
15287 | ac_status=$? | |
15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15289 | (exit $ac_status); }; }; then | |
15290 | ac_lo=0 ac_mid=0 | |
15291 | while :; do | |
15292 | cat >conftest.$ac_ext <<_ACEOF | |
15293 | /* confdefs.h. */ | |
15294 | _ACEOF | |
15295 | cat confdefs.h >>conftest.$ac_ext | |
15296 | cat >>conftest.$ac_ext <<_ACEOF | |
15297 | /* end confdefs.h. */ | |
15298 | $ac_includes_default | |
15299 | typedef short ac__type_sizeof_; | |
15300 | int | |
15301 | main () | |
15302 | { | |
15303 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
15304 | test_array [0] = 0 | |
15305 | ||
15306 | ; | |
15307 | return 0; | |
15308 | } | |
15309 | _ACEOF | |
15310 | rm -f conftest.$ac_objext | |
15311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15312 | (eval $ac_compile) 2>conftest.er1 | |
15313 | ac_status=$? | |
15314 | grep -v '^ *+' conftest.er1 >conftest.err | |
15315 | rm -f conftest.er1 | |
15316 | cat conftest.err >&5 | |
15317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15318 | (exit $ac_status); } && | |
15319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15321 | (eval $ac_try) 2>&5 | |
15322 | ac_status=$? | |
15323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15324 | (exit $ac_status); }; } && | |
15325 | { ac_try='test -s conftest.$ac_objext' | |
15326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15327 | (eval $ac_try) 2>&5 | |
15328 | ac_status=$? | |
15329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15330 | (exit $ac_status); }; }; then | |
15331 | ac_hi=$ac_mid; break | |
15332 | else | |
15333 | echo "$as_me: failed program was:" >&5 | |
15334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15335 | ||
15336 | ac_lo=`expr $ac_mid + 1` | |
15337 | if test $ac_lo -le $ac_mid; then | |
15338 | ac_lo= ac_hi= | |
15339 | break | |
15340 | fi | |
15341 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15342 | fi | |
15343 | ||
15344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15345 | done | |
15346 | else | |
15347 | echo "$as_me: failed program was:" >&5 | |
15348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15349 | ||
15350 | cat >conftest.$ac_ext <<_ACEOF | |
15351 | /* confdefs.h. */ | |
15352 | _ACEOF | |
15353 | cat confdefs.h >>conftest.$ac_ext | |
15354 | cat >>conftest.$ac_ext <<_ACEOF | |
15355 | /* end confdefs.h. */ | |
15356 | $ac_includes_default | |
15357 | typedef short ac__type_sizeof_; | |
15358 | int | |
15359 | main () | |
15360 | { | |
15361 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
15362 | test_array [0] = 0 | |
15363 | ||
15364 | ; | |
15365 | return 0; | |
15366 | } | |
15367 | _ACEOF | |
15368 | rm -f conftest.$ac_objext | |
15369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15370 | (eval $ac_compile) 2>conftest.er1 | |
15371 | ac_status=$? | |
15372 | grep -v '^ *+' conftest.er1 >conftest.err | |
15373 | rm -f conftest.er1 | |
15374 | cat conftest.err >&5 | |
15375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15376 | (exit $ac_status); } && | |
15377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15379 | (eval $ac_try) 2>&5 | |
15380 | ac_status=$? | |
15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15382 | (exit $ac_status); }; } && | |
15383 | { ac_try='test -s conftest.$ac_objext' | |
15384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15385 | (eval $ac_try) 2>&5 | |
15386 | ac_status=$? | |
15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15388 | (exit $ac_status); }; }; then | |
15389 | ac_hi=-1 ac_mid=-1 | |
15390 | while :; do | |
15391 | cat >conftest.$ac_ext <<_ACEOF | |
15392 | /* confdefs.h. */ | |
15393 | _ACEOF | |
15394 | cat confdefs.h >>conftest.$ac_ext | |
15395 | cat >>conftest.$ac_ext <<_ACEOF | |
15396 | /* end confdefs.h. */ | |
15397 | $ac_includes_default | |
15398 | typedef short ac__type_sizeof_; | |
15399 | int | |
15400 | main () | |
15401 | { | |
15402 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
15403 | test_array [0] = 0 | |
15404 | ||
15405 | ; | |
15406 | return 0; | |
15407 | } | |
15408 | _ACEOF | |
15409 | rm -f conftest.$ac_objext | |
15410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15411 | (eval $ac_compile) 2>conftest.er1 | |
15412 | ac_status=$? | |
15413 | grep -v '^ *+' conftest.er1 >conftest.err | |
15414 | rm -f conftest.er1 | |
15415 | cat conftest.err >&5 | |
15416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15417 | (exit $ac_status); } && | |
15418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15420 | (eval $ac_try) 2>&5 | |
15421 | ac_status=$? | |
15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 | (exit $ac_status); }; } && | |
15424 | { ac_try='test -s conftest.$ac_objext' | |
15425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15426 | (eval $ac_try) 2>&5 | |
15427 | ac_status=$? | |
15428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15429 | (exit $ac_status); }; }; then | |
15430 | ac_lo=$ac_mid; break | |
15431 | else | |
15432 | echo "$as_me: failed program was:" >&5 | |
15433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15434 | ||
15435 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15436 | if test $ac_mid -le $ac_hi; then | |
15437 | ac_lo= ac_hi= | |
15438 | break | |
15439 | fi | |
15440 | ac_mid=`expr 2 '*' $ac_mid` | |
15441 | fi | |
15442 | ||
15443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15444 | done | |
15445 | else | |
15446 | echo "$as_me: failed program was:" >&5 | |
15447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15448 | ||
15449 | ac_lo= ac_hi= | |
15450 | fi | |
15451 | ||
15452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15453 | fi | |
15454 | ||
15455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15456 | # Binary search between lo and hi bounds. | |
15457 | while test "x$ac_lo" != "x$ac_hi"; do | |
15458 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15459 | cat >conftest.$ac_ext <<_ACEOF | |
15460 | /* confdefs.h. */ | |
15461 | _ACEOF | |
15462 | cat confdefs.h >>conftest.$ac_ext | |
15463 | cat >>conftest.$ac_ext <<_ACEOF | |
15464 | /* end confdefs.h. */ | |
15465 | $ac_includes_default | |
15466 | typedef short ac__type_sizeof_; | |
15467 | int | |
15468 | main () | |
15469 | { | |
15470 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
15471 | test_array [0] = 0 | |
15472 | ||
15473 | ; | |
15474 | return 0; | |
15475 | } | |
15476 | _ACEOF | |
15477 | rm -f conftest.$ac_objext | |
15478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15479 | (eval $ac_compile) 2>conftest.er1 | |
15480 | ac_status=$? | |
15481 | grep -v '^ *+' conftest.er1 >conftest.err | |
15482 | rm -f conftest.er1 | |
15483 | cat conftest.err >&5 | |
15484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15485 | (exit $ac_status); } && | |
15486 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15488 | (eval $ac_try) 2>&5 | |
15489 | ac_status=$? | |
15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15491 | (exit $ac_status); }; } && | |
15492 | { ac_try='test -s conftest.$ac_objext' | |
15493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15494 | (eval $ac_try) 2>&5 | |
15495 | ac_status=$? | |
15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15497 | (exit $ac_status); }; }; then | |
15498 | ac_hi=$ac_mid | |
15499 | else | |
15500 | echo "$as_me: failed program was:" >&5 | |
15501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15502 | ||
15503 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15504 | fi | |
15505 | ||
15506 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15507 | done | |
15508 | case $ac_lo in | |
15509 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15510 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
15511 | See \`config.log' for more details." >&5 | |
15512 | echo "$as_me: error: cannot compute sizeof (short) | |
15513 | See \`config.log' for more details." >&2;} | |
15514 | { (exit 77); exit 77; }; } ;; | |
15515 | esac | |
15516 | else | |
15517 | cat >conftest.$ac_ext <<_ACEOF | |
15518 | /* confdefs.h. */ | |
15519 | _ACEOF | |
15520 | cat confdefs.h >>conftest.$ac_ext | |
15521 | cat >>conftest.$ac_ext <<_ACEOF | |
15522 | /* end confdefs.h. */ | |
15523 | $ac_includes_default | |
15524 | typedef short ac__type_sizeof_; | |
15525 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
15526 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
15527 | #include <stdio.h> | |
15528 | #include <stdlib.h> | |
15529 | int | |
15530 | main () | |
15531 | { | |
15532 | ||
15533 | FILE *f = fopen ("conftest.val", "w"); | |
15534 | if (! f) | |
15535 | return 1; | |
15536 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
15537 | { | |
15538 | long int i = longval (); | |
15539 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
15540 | return 1; | |
15541 | fprintf (f, "%ld\n", i); | |
15542 | } | |
15543 | else | |
15544 | { | |
15545 | unsigned long int i = ulongval (); | |
15546 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
15547 | return 1; | |
15548 | fprintf (f, "%lu\n", i); | |
15549 | } | |
15550 | return ferror (f) || fclose (f) != 0; | |
15551 | ||
15552 | ; | |
15553 | return 0; | |
15554 | } | |
15555 | _ACEOF | |
15556 | rm -f conftest$ac_exeext | |
15557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15558 | (eval $ac_link) 2>&5 | |
15559 | ac_status=$? | |
15560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15563 | (eval $ac_try) 2>&5 | |
15564 | ac_status=$? | |
15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15566 | (exit $ac_status); }; }; then | |
15567 | ac_cv_sizeof_short=`cat conftest.val` | |
15568 | else | |
15569 | echo "$as_me: program exited with status $ac_status" >&5 | |
15570 | echo "$as_me: failed program was:" >&5 | |
15571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15572 | ||
15573 | ( exit $ac_status ) | |
15574 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) | |
15575 | See \`config.log' for more details." >&5 | |
15576 | echo "$as_me: error: cannot compute sizeof (short) | |
15577 | See \`config.log' for more details." >&2;} | |
15578 | { (exit 77); exit 77; }; } | |
15579 | fi | |
15580 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15581 | fi | |
15582 | rm -f conftest.val | |
15583 | else | |
15584 | ac_cv_sizeof_short=0 | |
15585 | fi | |
15586 | fi | |
15587 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15588 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } | |
15589 | cat >>confdefs.h <<_ACEOF | |
15590 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15591 | _ACEOF | |
15592 | ||
15593 | ||
15594 | { echo "$as_me:$LINENO: checking for char" >&5 | |
15595 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } | |
15596 | if test "${ac_cv_type_char+set}" = set; then | |
15597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15598 | else | |
15599 | cat >conftest.$ac_ext <<_ACEOF | |
15600 | /* confdefs.h. */ | |
15601 | _ACEOF | |
15602 | cat confdefs.h >>conftest.$ac_ext | |
15603 | cat >>conftest.$ac_ext <<_ACEOF | |
15604 | /* end confdefs.h. */ | |
15605 | $ac_includes_default | |
15606 | typedef char ac__type_new_; | |
15607 | int | |
15608 | main () | |
15609 | { | |
15610 | if ((ac__type_new_ *) 0) | |
15611 | return 0; | |
15612 | if (sizeof (ac__type_new_)) | |
15613 | return 0; | |
15614 | ; | |
15615 | return 0; | |
15616 | } | |
15617 | _ACEOF | |
15618 | rm -f conftest.$ac_objext | |
15619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15620 | (eval $ac_compile) 2>conftest.er1 | |
15621 | ac_status=$? | |
15622 | grep -v '^ *+' conftest.er1 >conftest.err | |
15623 | rm -f conftest.er1 | |
15624 | cat conftest.err >&5 | |
15625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15626 | (exit $ac_status); } && | |
15627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15629 | (eval $ac_try) 2>&5 | |
15630 | ac_status=$? | |
15631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15632 | (exit $ac_status); }; } && | |
15633 | { ac_try='test -s conftest.$ac_objext' | |
15634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15635 | (eval $ac_try) 2>&5 | |
15636 | ac_status=$? | |
15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15638 | (exit $ac_status); }; }; then | |
15639 | ac_cv_type_char=yes | |
15640 | else | |
15641 | echo "$as_me: failed program was:" >&5 | |
15642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15643 | ||
15644 | ac_cv_type_char=no | |
15645 | fi | |
15646 | ||
15647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15648 | fi | |
15649 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15650 | echo "${ECHO_T}$ac_cv_type_char" >&6; } | |
15651 | ||
15652 | { echo "$as_me:$LINENO: checking size of char" >&5 | |
15653 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } | |
15654 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15656 | else | |
15657 | if test "$ac_cv_type_char" = yes; then | |
15658 | # The cast to long int works around a bug in the HP C Compiler | |
15659 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15660 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15661 | # This bug is HP SR number 8606223364. | |
15662 | if test "$cross_compiling" = yes; then | |
15663 | # Depending upon the size, compute the lo and hi bounds. | |
15664 | cat >conftest.$ac_ext <<_ACEOF | |
15665 | /* confdefs.h. */ | |
15666 | _ACEOF | |
15667 | cat confdefs.h >>conftest.$ac_ext | |
15668 | cat >>conftest.$ac_ext <<_ACEOF | |
15669 | /* end confdefs.h. */ | |
15670 | $ac_includes_default | |
15671 | typedef char ac__type_sizeof_; | |
15672 | int | |
15673 | main () | |
15674 | { | |
15675 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
15676 | test_array [0] = 0 | |
15677 | ||
15678 | ; | |
15679 | return 0; | |
15680 | } | |
15681 | _ACEOF | |
15682 | rm -f conftest.$ac_objext | |
15683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15684 | (eval $ac_compile) 2>conftest.er1 | |
15685 | ac_status=$? | |
15686 | grep -v '^ *+' conftest.er1 >conftest.err | |
15687 | rm -f conftest.er1 | |
15688 | cat conftest.err >&5 | |
15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15690 | (exit $ac_status); } && | |
15691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15693 | (eval $ac_try) 2>&5 | |
15694 | ac_status=$? | |
15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15696 | (exit $ac_status); }; } && | |
15697 | { ac_try='test -s conftest.$ac_objext' | |
15698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15699 | (eval $ac_try) 2>&5 | |
15700 | ac_status=$? | |
15701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15702 | (exit $ac_status); }; }; then | |
15703 | ac_lo=0 ac_mid=0 | |
15704 | while :; do | |
15705 | cat >conftest.$ac_ext <<_ACEOF | |
15706 | /* confdefs.h. */ | |
15707 | _ACEOF | |
15708 | cat confdefs.h >>conftest.$ac_ext | |
15709 | cat >>conftest.$ac_ext <<_ACEOF | |
15710 | /* end confdefs.h. */ | |
15711 | $ac_includes_default | |
15712 | typedef char ac__type_sizeof_; | |
15713 | int | |
15714 | main () | |
15715 | { | |
15716 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
15717 | test_array [0] = 0 | |
15718 | ||
15719 | ; | |
15720 | return 0; | |
15721 | } | |
15722 | _ACEOF | |
15723 | rm -f conftest.$ac_objext | |
15724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15725 | (eval $ac_compile) 2>conftest.er1 | |
15726 | ac_status=$? | |
15727 | grep -v '^ *+' conftest.er1 >conftest.err | |
15728 | rm -f conftest.er1 | |
15729 | cat conftest.err >&5 | |
15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15731 | (exit $ac_status); } && | |
15732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15734 | (eval $ac_try) 2>&5 | |
15735 | ac_status=$? | |
15736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15737 | (exit $ac_status); }; } && | |
15738 | { ac_try='test -s conftest.$ac_objext' | |
15739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15740 | (eval $ac_try) 2>&5 | |
15741 | ac_status=$? | |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 | (exit $ac_status); }; }; then | |
15744 | ac_hi=$ac_mid; break | |
15745 | else | |
15746 | echo "$as_me: failed program was:" >&5 | |
15747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15748 | ||
15749 | ac_lo=`expr $ac_mid + 1` | |
15750 | if test $ac_lo -le $ac_mid; then | |
15751 | ac_lo= ac_hi= | |
15752 | break | |
15753 | fi | |
15754 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15755 | fi | |
15756 | ||
15757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15758 | done | |
15759 | else | |
15760 | echo "$as_me: failed program was:" >&5 | |
15761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15762 | ||
15763 | cat >conftest.$ac_ext <<_ACEOF | |
15764 | /* confdefs.h. */ | |
15765 | _ACEOF | |
15766 | cat confdefs.h >>conftest.$ac_ext | |
15767 | cat >>conftest.$ac_ext <<_ACEOF | |
15768 | /* end confdefs.h. */ | |
15769 | $ac_includes_default | |
15770 | typedef char ac__type_sizeof_; | |
15771 | int | |
15772 | main () | |
15773 | { | |
15774 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
15775 | test_array [0] = 0 | |
15776 | ||
15777 | ; | |
15778 | return 0; | |
15779 | } | |
15780 | _ACEOF | |
15781 | rm -f conftest.$ac_objext | |
15782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15783 | (eval $ac_compile) 2>conftest.er1 | |
15784 | ac_status=$? | |
15785 | grep -v '^ *+' conftest.er1 >conftest.err | |
15786 | rm -f conftest.er1 | |
15787 | cat conftest.err >&5 | |
15788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15789 | (exit $ac_status); } && | |
15790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15792 | (eval $ac_try) 2>&5 | |
15793 | ac_status=$? | |
15794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15795 | (exit $ac_status); }; } && | |
15796 | { ac_try='test -s conftest.$ac_objext' | |
15797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15798 | (eval $ac_try) 2>&5 | |
15799 | ac_status=$? | |
15800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15801 | (exit $ac_status); }; }; then | |
15802 | ac_hi=-1 ac_mid=-1 | |
15803 | while :; do | |
15804 | cat >conftest.$ac_ext <<_ACEOF | |
15805 | /* confdefs.h. */ | |
15806 | _ACEOF | |
15807 | cat confdefs.h >>conftest.$ac_ext | |
15808 | cat >>conftest.$ac_ext <<_ACEOF | |
15809 | /* end confdefs.h. */ | |
15810 | $ac_includes_default | |
15811 | typedef char ac__type_sizeof_; | |
15812 | int | |
15813 | main () | |
15814 | { | |
15815 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
15816 | test_array [0] = 0 | |
15817 | ||
15818 | ; | |
15819 | return 0; | |
15820 | } | |
15821 | _ACEOF | |
15822 | rm -f conftest.$ac_objext | |
15823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15824 | (eval $ac_compile) 2>conftest.er1 | |
15825 | ac_status=$? | |
15826 | grep -v '^ *+' conftest.er1 >conftest.err | |
15827 | rm -f conftest.er1 | |
15828 | cat conftest.err >&5 | |
15829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15830 | (exit $ac_status); } && | |
15831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15833 | (eval $ac_try) 2>&5 | |
15834 | ac_status=$? | |
15835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15836 | (exit $ac_status); }; } && | |
15837 | { ac_try='test -s conftest.$ac_objext' | |
15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15839 | (eval $ac_try) 2>&5 | |
15840 | ac_status=$? | |
15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15842 | (exit $ac_status); }; }; then | |
15843 | ac_lo=$ac_mid; break | |
15844 | else | |
15845 | echo "$as_me: failed program was:" >&5 | |
15846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15847 | ||
15848 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15849 | if test $ac_mid -le $ac_hi; then | |
15850 | ac_lo= ac_hi= | |
15851 | break | |
15852 | fi | |
15853 | ac_mid=`expr 2 '*' $ac_mid` | |
15854 | fi | |
15855 | ||
15856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15857 | done | |
15858 | else | |
15859 | echo "$as_me: failed program was:" >&5 | |
15860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15861 | ||
15862 | ac_lo= ac_hi= | |
15863 | fi | |
15864 | ||
15865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15866 | fi | |
15867 | ||
15868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15869 | # Binary search between lo and hi bounds. | |
15870 | while test "x$ac_lo" != "x$ac_hi"; do | |
15871 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15872 | cat >conftest.$ac_ext <<_ACEOF | |
15873 | /* confdefs.h. */ | |
15874 | _ACEOF | |
15875 | cat confdefs.h >>conftest.$ac_ext | |
15876 | cat >>conftest.$ac_ext <<_ACEOF | |
15877 | /* end confdefs.h. */ | |
15878 | $ac_includes_default | |
15879 | typedef char ac__type_sizeof_; | |
15880 | int | |
15881 | main () | |
15882 | { | |
15883 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
15884 | test_array [0] = 0 | |
15885 | ||
15886 | ; | |
15887 | return 0; | |
15888 | } | |
15889 | _ACEOF | |
15890 | rm -f conftest.$ac_objext | |
15891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15892 | (eval $ac_compile) 2>conftest.er1 | |
15893 | ac_status=$? | |
15894 | grep -v '^ *+' conftest.er1 >conftest.err | |
15895 | rm -f conftest.er1 | |
15896 | cat conftest.err >&5 | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); } && | |
15899 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15901 | (eval $ac_try) 2>&5 | |
15902 | ac_status=$? | |
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15904 | (exit $ac_status); }; } && | |
15905 | { ac_try='test -s conftest.$ac_objext' | |
15906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15907 | (eval $ac_try) 2>&5 | |
15908 | ac_status=$? | |
15909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15910 | (exit $ac_status); }; }; then | |
15911 | ac_hi=$ac_mid | |
15912 | else | |
15913 | echo "$as_me: failed program was:" >&5 | |
15914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15915 | ||
15916 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15917 | fi | |
15918 | ||
15919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15920 | done | |
15921 | case $ac_lo in | |
15922 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15923 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
15924 | See \`config.log' for more details." >&5 | |
15925 | echo "$as_me: error: cannot compute sizeof (char) | |
15926 | See \`config.log' for more details." >&2;} | |
15927 | { (exit 77); exit 77; }; } ;; | |
15928 | esac | |
15929 | else | |
15930 | cat >conftest.$ac_ext <<_ACEOF | |
15931 | /* confdefs.h. */ | |
15932 | _ACEOF | |
15933 | cat confdefs.h >>conftest.$ac_ext | |
15934 | cat >>conftest.$ac_ext <<_ACEOF | |
15935 | /* end confdefs.h. */ | |
15936 | $ac_includes_default | |
15937 | typedef char ac__type_sizeof_; | |
15938 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
15939 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
15940 | #include <stdio.h> | |
15941 | #include <stdlib.h> | |
15942 | int | |
15943 | main () | |
15944 | { | |
15945 | ||
15946 | FILE *f = fopen ("conftest.val", "w"); | |
15947 | if (! f) | |
15948 | return 1; | |
15949 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
15950 | { | |
15951 | long int i = longval (); | |
15952 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
15953 | return 1; | |
15954 | fprintf (f, "%ld\n", i); | |
15955 | } | |
15956 | else | |
15957 | { | |
15958 | unsigned long int i = ulongval (); | |
15959 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
15960 | return 1; | |
15961 | fprintf (f, "%lu\n", i); | |
15962 | } | |
15963 | return ferror (f) || fclose (f) != 0; | |
15964 | ||
15965 | ; | |
15966 | return 0; | |
15967 | } | |
15968 | _ACEOF | |
15969 | rm -f conftest$ac_exeext | |
15970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15971 | (eval $ac_link) 2>&5 | |
15972 | ac_status=$? | |
15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15976 | (eval $ac_try) 2>&5 | |
15977 | ac_status=$? | |
15978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15979 | (exit $ac_status); }; }; then | |
15980 | ac_cv_sizeof_char=`cat conftest.val` | |
15981 | else | |
15982 | echo "$as_me: program exited with status $ac_status" >&5 | |
15983 | echo "$as_me: failed program was:" >&5 | |
15984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15985 | ||
15986 | ( exit $ac_status ) | |
15987 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) | |
15988 | See \`config.log' for more details." >&5 | |
15989 | echo "$as_me: error: cannot compute sizeof (char) | |
15990 | See \`config.log' for more details." >&2;} | |
15991 | { (exit 77); exit 77; }; } | |
15992 | fi | |
15993 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15994 | fi | |
15995 | rm -f conftest.val | |
15996 | else | |
15997 | ac_cv_sizeof_char=0 | |
15998 | fi | |
15999 | fi | |
16000 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
16001 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } | |
16002 | cat >>confdefs.h <<_ACEOF | |
16003 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
16004 | _ACEOF | |
16005 | ||
16006 | ||
16007 | ||
16008 | { echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
16009 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6; } | |
16010 | case "$ac_cv_sizeof_char" in | |
16011 | 1) acx_cv_type_int8_t=char ;; | |
16012 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
16013 | echo "$as_me: error: no 8-bit type" >&2;} | |
16014 | { (exit please report a bug); exit please report a bug; }; } | |
16015 | esac | |
16016 | { echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
16017 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6; } | |
16018 | ||
16019 | { echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
16020 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6; } | |
16021 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
16022 | 2:*) acx_cv_type_int16_t=int ;; | |
16023 | *:2) acx_cv_type_int16_t=short ;; | |
16024 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
16025 | echo "$as_me: error: no 16-bit type" >&2;} | |
16026 | { (exit please report a bug); exit please report a bug; }; } | |
16027 | esac | |
16028 | { echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
16029 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6; } | |
16030 | ||
16031 | { echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
16032 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6; } | |
16033 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
16034 | 4:*) acx_cv_type_int32_t=int ;; | |
16035 | *:4) acx_cv_type_int32_t=long ;; | |
16036 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
16037 | echo "$as_me: error: no 32-bit type" >&2;} | |
16038 | { (exit please report a bug); exit please report a bug; }; } | |
16039 | esac | |
16040 | { echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
16041 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6; } | |
16042 | fi | |
16043 | ||
16044 | # These tests are here to make the output prettier | |
16045 | ||
16046 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
16047 | case "$ac_cv_sizeof_long" in | |
16048 | 8) acx_cv_type_int64_t=long ;; | |
16049 | esac | |
16050 | { echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
16051 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6; } | |
16052 | { echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
16053 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } | |
16054 | fi | |
16055 | ||
16056 | # Now we can use the above types | |
16057 | ||
16058 | if test "$ac_cv_type_uintptr_t" != yes; then | |
16059 | { echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
16060 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6; } | |
16061 | case $ac_cv_sizeof_void_p in | |
16062 | 2) acx_cv_type_intptr_t=int16_t ;; | |
16063 | 4) acx_cv_type_intptr_t=int32_t ;; | |
16064 | 8) acx_cv_type_intptr_t=int64_t ;; | |
16065 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
16066 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
16067 | { (exit please report a bug); exit please report a bug; }; } | |
16068 | esac | |
16069 | { echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
16070 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6; } | |
16071 | fi | |
16072 | ||
16073 | # ----------------- done all checks, emit header ------------- | |
16074 | ac_config_commands="$ac_config_commands gdb_stdint.h" | |
16075 | ||
16076 | ||
16077 | ||
16078 | ||
16079 | # ------------------------- # | |
16080 | # Checks for declarations. # | |
16081 | # ------------------------- # | |
16082 | ||
16083 | { echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
16084 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6; } | |
16085 | if test "${ac_cv_have_decl_free+set}" = set; then | |
16086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16087 | else | |
16088 | cat >conftest.$ac_ext <<_ACEOF | |
16089 | /* confdefs.h. */ | |
16090 | _ACEOF | |
16091 | cat confdefs.h >>conftest.$ac_ext | |
16092 | cat >>conftest.$ac_ext <<_ACEOF | |
16093 | /* end confdefs.h. */ | |
16094 | $ac_includes_default | |
16095 | int | |
16096 | main () | |
16097 | { | |
16098 | #ifndef free | |
16099 | char *p = (char *) free; | |
16100 | return !p; | |
16101 | #endif | |
16102 | ||
16103 | ; | |
16104 | return 0; | |
16105 | } | |
16106 | _ACEOF | |
16107 | rm -f conftest.$ac_objext | |
16108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16109 | (eval $ac_compile) 2>conftest.er1 | |
16110 | ac_status=$? | |
16111 | grep -v '^ *+' conftest.er1 >conftest.err | |
16112 | rm -f conftest.er1 | |
16113 | cat conftest.err >&5 | |
16114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16115 | (exit $ac_status); } && | |
16116 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16118 | (eval $ac_try) 2>&5 | |
16119 | ac_status=$? | |
16120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16121 | (exit $ac_status); }; } && | |
16122 | { ac_try='test -s conftest.$ac_objext' | |
16123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16124 | (eval $ac_try) 2>&5 | |
16125 | ac_status=$? | |
16126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16127 | (exit $ac_status); }; }; then | |
16128 | ac_cv_have_decl_free=yes | |
16129 | else | |
16130 | echo "$as_me: failed program was:" >&5 | |
16131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16132 | ||
16133 | ac_cv_have_decl_free=no | |
16134 | fi | |
16135 | ||
16136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16137 | fi | |
16138 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 | |
16139 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6; } | |
16140 | if test $ac_cv_have_decl_free = yes; then | |
16141 | ||
16142 | cat >>confdefs.h <<_ACEOF | |
16143 | #define HAVE_DECL_FREE 1 | |
16144 | _ACEOF | |
16145 | ||
16146 | ||
16147 | else | |
16148 | cat >>confdefs.h <<_ACEOF | |
16149 | #define HAVE_DECL_FREE 0 | |
16150 | _ACEOF | |
16151 | ||
16152 | ||
16153 | fi | |
16154 | { echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
16155 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6; } | |
16156 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
16157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16158 | else | |
16159 | cat >conftest.$ac_ext <<_ACEOF | |
16160 | /* confdefs.h. */ | |
16161 | _ACEOF | |
16162 | cat confdefs.h >>conftest.$ac_ext | |
16163 | cat >>conftest.$ac_ext <<_ACEOF | |
16164 | /* end confdefs.h. */ | |
16165 | $ac_includes_default | |
16166 | int | |
16167 | main () | |
16168 | { | |
16169 | #ifndef malloc | |
16170 | char *p = (char *) malloc; | |
16171 | return !p; | |
16172 | #endif | |
16173 | ||
16174 | ; | |
16175 | return 0; | |
16176 | } | |
16177 | _ACEOF | |
16178 | rm -f conftest.$ac_objext | |
16179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16180 | (eval $ac_compile) 2>conftest.er1 | |
16181 | ac_status=$? | |
16182 | grep -v '^ *+' conftest.er1 >conftest.err | |
16183 | rm -f conftest.er1 | |
16184 | cat conftest.err >&5 | |
16185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16186 | (exit $ac_status); } && | |
16187 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16189 | (eval $ac_try) 2>&5 | |
16190 | ac_status=$? | |
16191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16192 | (exit $ac_status); }; } && | |
16193 | { ac_try='test -s conftest.$ac_objext' | |
16194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16195 | (eval $ac_try) 2>&5 | |
16196 | ac_status=$? | |
16197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16198 | (exit $ac_status); }; }; then | |
16199 | ac_cv_have_decl_malloc=yes | |
16200 | else | |
16201 | echo "$as_me: failed program was:" >&5 | |
16202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16203 | ||
16204 | ac_cv_have_decl_malloc=no | |
16205 | fi | |
16206 | ||
16207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16208 | fi | |
16209 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 | |
16210 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6; } | |
16211 | if test $ac_cv_have_decl_malloc = yes; then | |
16212 | ||
16213 | cat >>confdefs.h <<_ACEOF | |
16214 | #define HAVE_DECL_MALLOC 1 | |
16215 | _ACEOF | |
16216 | ||
16217 | ||
16218 | else | |
16219 | cat >>confdefs.h <<_ACEOF | |
16220 | #define HAVE_DECL_MALLOC 0 | |
16221 | _ACEOF | |
16222 | ||
16223 | ||
16224 | fi | |
16225 | { echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
16226 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6; } | |
16227 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
16228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16229 | else | |
16230 | cat >conftest.$ac_ext <<_ACEOF | |
16231 | /* confdefs.h. */ | |
16232 | _ACEOF | |
16233 | cat confdefs.h >>conftest.$ac_ext | |
16234 | cat >>conftest.$ac_ext <<_ACEOF | |
16235 | /* end confdefs.h. */ | |
16236 | $ac_includes_default | |
16237 | int | |
16238 | main () | |
16239 | { | |
16240 | #ifndef realloc | |
16241 | char *p = (char *) realloc; | |
16242 | return !p; | |
16243 | #endif | |
16244 | ||
16245 | ; | |
16246 | return 0; | |
16247 | } | |
16248 | _ACEOF | |
16249 | rm -f conftest.$ac_objext | |
16250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16251 | (eval $ac_compile) 2>conftest.er1 | |
16252 | ac_status=$? | |
16253 | grep -v '^ *+' conftest.er1 >conftest.err | |
16254 | rm -f conftest.er1 | |
16255 | cat conftest.err >&5 | |
16256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16257 | (exit $ac_status); } && | |
16258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16260 | (eval $ac_try) 2>&5 | |
16261 | ac_status=$? | |
16262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16263 | (exit $ac_status); }; } && | |
16264 | { ac_try='test -s conftest.$ac_objext' | |
16265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16266 | (eval $ac_try) 2>&5 | |
16267 | ac_status=$? | |
16268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16269 | (exit $ac_status); }; }; then | |
16270 | ac_cv_have_decl_realloc=yes | |
16271 | else | |
16272 | echo "$as_me: failed program was:" >&5 | |
16273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16274 | ||
16275 | ac_cv_have_decl_realloc=no | |
16276 | fi | |
16277 | ||
16278 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16279 | fi | |
16280 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 | |
16281 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6; } | |
16282 | if test $ac_cv_have_decl_realloc = yes; then | |
16283 | ||
16284 | cat >>confdefs.h <<_ACEOF | |
16285 | #define HAVE_DECL_REALLOC 1 | |
16286 | _ACEOF | |
16287 | ||
16288 | ||
16289 | else | |
16290 | cat >>confdefs.h <<_ACEOF | |
16291 | #define HAVE_DECL_REALLOC 0 | |
16292 | _ACEOF | |
16293 | ||
16294 | ||
16295 | fi | |
16296 | ||
16297 | ||
16298 | { echo "$as_me:$LINENO: checking whether strerror is declared" >&5 | |
16299 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6; } | |
16300 | if test "${ac_cv_have_decl_strerror+set}" = set; then | |
16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16302 | else | |
16303 | cat >conftest.$ac_ext <<_ACEOF | |
16304 | /* confdefs.h. */ | |
16305 | _ACEOF | |
16306 | cat confdefs.h >>conftest.$ac_ext | |
16307 | cat >>conftest.$ac_ext <<_ACEOF | |
16308 | /* end confdefs.h. */ | |
16309 | $ac_includes_default | |
16310 | int | |
16311 | main () | |
16312 | { | |
16313 | #ifndef strerror | |
16314 | char *p = (char *) strerror; | |
16315 | return !p; | |
16316 | #endif | |
16317 | ||
16318 | ; | |
16319 | return 0; | |
16320 | } | |
16321 | _ACEOF | |
16322 | rm -f conftest.$ac_objext | |
16323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16324 | (eval $ac_compile) 2>conftest.er1 | |
16325 | ac_status=$? | |
16326 | grep -v '^ *+' conftest.er1 >conftest.err | |
16327 | rm -f conftest.er1 | |
16328 | cat conftest.err >&5 | |
16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16330 | (exit $ac_status); } && | |
16331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16333 | (eval $ac_try) 2>&5 | |
16334 | ac_status=$? | |
16335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16336 | (exit $ac_status); }; } && | |
16337 | { ac_try='test -s conftest.$ac_objext' | |
16338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16339 | (eval $ac_try) 2>&5 | |
16340 | ac_status=$? | |
16341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16342 | (exit $ac_status); }; }; then | |
16343 | ac_cv_have_decl_strerror=yes | |
16344 | else | |
16345 | echo "$as_me: failed program was:" >&5 | |
16346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16347 | ||
16348 | ac_cv_have_decl_strerror=no | |
16349 | fi | |
16350 | ||
16351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16352 | fi | |
16353 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 | |
16354 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6; } | |
16355 | if test $ac_cv_have_decl_strerror = yes; then | |
16356 | ||
16357 | cat >>confdefs.h <<_ACEOF | |
16358 | #define HAVE_DECL_STRERROR 1 | |
16359 | _ACEOF | |
16360 | ||
16361 | ||
16362 | else | |
16363 | cat >>confdefs.h <<_ACEOF | |
16364 | #define HAVE_DECL_STRERROR 0 | |
16365 | _ACEOF | |
16366 | ||
16367 | ||
16368 | fi | |
16369 | { echo "$as_me:$LINENO: checking whether strstr is declared" >&5 | |
16370 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6; } | |
16371 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
16372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16373 | else | |
16374 | cat >conftest.$ac_ext <<_ACEOF | |
16375 | /* confdefs.h. */ | |
16376 | _ACEOF | |
16377 | cat confdefs.h >>conftest.$ac_ext | |
16378 | cat >>conftest.$ac_ext <<_ACEOF | |
16379 | /* end confdefs.h. */ | |
16380 | $ac_includes_default | |
16381 | int | |
16382 | main () | |
16383 | { | |
16384 | #ifndef strstr | |
16385 | char *p = (char *) strstr; | |
16386 | return !p; | |
16387 | #endif | |
16388 | ||
16389 | ; | |
16390 | return 0; | |
16391 | } | |
16392 | _ACEOF | |
16393 | rm -f conftest.$ac_objext | |
16394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16395 | (eval $ac_compile) 2>conftest.er1 | |
16396 | ac_status=$? | |
16397 | grep -v '^ *+' conftest.er1 >conftest.err | |
16398 | rm -f conftest.er1 | |
16399 | cat conftest.err >&5 | |
16400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16401 | (exit $ac_status); } && | |
16402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16404 | (eval $ac_try) 2>&5 | |
16405 | ac_status=$? | |
16406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16407 | (exit $ac_status); }; } && | |
16408 | { ac_try='test -s conftest.$ac_objext' | |
16409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16410 | (eval $ac_try) 2>&5 | |
16411 | ac_status=$? | |
16412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16413 | (exit $ac_status); }; }; then | |
16414 | ac_cv_have_decl_strstr=yes | |
16415 | else | |
16416 | echo "$as_me: failed program was:" >&5 | |
16417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16418 | ||
16419 | ac_cv_have_decl_strstr=no | |
16420 | fi | |
16421 | ||
16422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16423 | fi | |
16424 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 | |
16425 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6; } | |
16426 | if test $ac_cv_have_decl_strstr = yes; then | |
16427 | ||
16428 | cat >>confdefs.h <<_ACEOF | |
16429 | #define HAVE_DECL_STRSTR 1 | |
16430 | _ACEOF | |
16431 | ||
16432 | ||
16433 | else | |
16434 | cat >>confdefs.h <<_ACEOF | |
16435 | #define HAVE_DECL_STRSTR 0 | |
16436 | _ACEOF | |
16437 | ||
16438 | ||
16439 | fi | |
16440 | ||
16441 | ||
16442 | { echo "$as_me:$LINENO: checking whether getopt is declared" >&5 | |
16443 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6; } | |
16444 | if test "${ac_cv_have_decl_getopt+set}" = set; then | |
16445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16446 | else | |
16447 | cat >conftest.$ac_ext <<_ACEOF | |
16448 | /* confdefs.h. */ | |
16449 | _ACEOF | |
16450 | cat confdefs.h >>conftest.$ac_ext | |
16451 | cat >>conftest.$ac_ext <<_ACEOF | |
16452 | /* end confdefs.h. */ | |
16453 | $ac_includes_default | |
16454 | int | |
16455 | main () | |
16456 | { | |
16457 | #ifndef getopt | |
16458 | char *p = (char *) getopt; | |
16459 | return !p; | |
16460 | #endif | |
16461 | ||
16462 | ; | |
16463 | return 0; | |
16464 | } | |
16465 | _ACEOF | |
16466 | rm -f conftest.$ac_objext | |
16467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16468 | (eval $ac_compile) 2>conftest.er1 | |
16469 | ac_status=$? | |
16470 | grep -v '^ *+' conftest.er1 >conftest.err | |
16471 | rm -f conftest.er1 | |
16472 | cat conftest.err >&5 | |
16473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16474 | (exit $ac_status); } && | |
16475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16477 | (eval $ac_try) 2>&5 | |
16478 | ac_status=$? | |
16479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16480 | (exit $ac_status); }; } && | |
16481 | { ac_try='test -s conftest.$ac_objext' | |
16482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16483 | (eval $ac_try) 2>&5 | |
16484 | ac_status=$? | |
16485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16486 | (exit $ac_status); }; }; then | |
16487 | ac_cv_have_decl_getopt=yes | |
16488 | else | |
16489 | echo "$as_me: failed program was:" >&5 | |
16490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16491 | ||
16492 | ac_cv_have_decl_getopt=no | |
16493 | fi | |
16494 | ||
16495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16496 | fi | |
16497 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 | |
16498 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6; } | |
16499 | if test $ac_cv_have_decl_getopt = yes; then | |
16500 | ||
16501 | cat >>confdefs.h <<_ACEOF | |
16502 | #define HAVE_DECL_GETOPT 1 | |
16503 | _ACEOF | |
16504 | ||
16505 | ||
16506 | else | |
16507 | cat >>confdefs.h <<_ACEOF | |
16508 | #define HAVE_DECL_GETOPT 0 | |
16509 | _ACEOF | |
16510 | ||
16511 | ||
16512 | fi | |
16513 | { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 | |
16514 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; } | |
16515 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
16516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16517 | else | |
16518 | cat >conftest.$ac_ext <<_ACEOF | |
16519 | /* confdefs.h. */ | |
16520 | _ACEOF | |
16521 | cat confdefs.h >>conftest.$ac_ext | |
16522 | cat >>conftest.$ac_ext <<_ACEOF | |
16523 | /* end confdefs.h. */ | |
16524 | $ac_includes_default | |
16525 | int | |
16526 | main () | |
16527 | { | |
16528 | #ifndef snprintf | |
16529 | char *p = (char *) snprintf; | |
16530 | return !p; | |
16531 | #endif | |
16532 | ||
16533 | ; | |
16534 | return 0; | |
16535 | } | |
16536 | _ACEOF | |
16537 | rm -f conftest.$ac_objext | |
16538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16539 | (eval $ac_compile) 2>conftest.er1 | |
16540 | ac_status=$? | |
16541 | grep -v '^ *+' conftest.er1 >conftest.err | |
16542 | rm -f conftest.er1 | |
16543 | cat conftest.err >&5 | |
16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16545 | (exit $ac_status); } && | |
16546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16548 | (eval $ac_try) 2>&5 | |
16549 | ac_status=$? | |
16550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16551 | (exit $ac_status); }; } && | |
16552 | { ac_try='test -s conftest.$ac_objext' | |
16553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16554 | (eval $ac_try) 2>&5 | |
16555 | ac_status=$? | |
16556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16557 | (exit $ac_status); }; }; then | |
16558 | ac_cv_have_decl_snprintf=yes | |
16559 | else | |
16560 | echo "$as_me: failed program was:" >&5 | |
16561 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16562 | ||
16563 | ac_cv_have_decl_snprintf=no | |
16564 | fi | |
16565 | ||
16566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16567 | fi | |
16568 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
16569 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; } | |
16570 | if test $ac_cv_have_decl_snprintf = yes; then | |
16571 | ||
16572 | cat >>confdefs.h <<_ACEOF | |
16573 | #define HAVE_DECL_SNPRINTF 1 | |
16574 | _ACEOF | |
16575 | ||
16576 | ||
16577 | else | |
16578 | cat >>confdefs.h <<_ACEOF | |
16579 | #define HAVE_DECL_SNPRINTF 0 | |
16580 | _ACEOF | |
16581 | ||
16582 | ||
16583 | fi | |
16584 | { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
16585 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; } | |
16586 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
16587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16588 | else | |
16589 | cat >conftest.$ac_ext <<_ACEOF | |
16590 | /* confdefs.h. */ | |
16591 | _ACEOF | |
16592 | cat confdefs.h >>conftest.$ac_ext | |
16593 | cat >>conftest.$ac_ext <<_ACEOF | |
16594 | /* end confdefs.h. */ | |
16595 | $ac_includes_default | |
16596 | int | |
16597 | main () | |
16598 | { | |
16599 | #ifndef vsnprintf | |
16600 | char *p = (char *) vsnprintf; | |
16601 | return !p; | |
16602 | #endif | |
16603 | ||
16604 | ; | |
16605 | return 0; | |
16606 | } | |
16607 | _ACEOF | |
16608 | rm -f conftest.$ac_objext | |
16609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16610 | (eval $ac_compile) 2>conftest.er1 | |
16611 | ac_status=$? | |
16612 | grep -v '^ *+' conftest.er1 >conftest.err | |
16613 | rm -f conftest.er1 | |
16614 | cat conftest.err >&5 | |
16615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16616 | (exit $ac_status); } && | |
16617 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16619 | (eval $ac_try) 2>&5 | |
16620 | ac_status=$? | |
16621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16622 | (exit $ac_status); }; } && | |
16623 | { ac_try='test -s conftest.$ac_objext' | |
16624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16625 | (eval $ac_try) 2>&5 | |
16626 | ac_status=$? | |
16627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16628 | (exit $ac_status); }; }; then | |
16629 | ac_cv_have_decl_vsnprintf=yes | |
16630 | else | |
16631 | echo "$as_me: failed program was:" >&5 | |
16632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16633 | ||
16634 | ac_cv_have_decl_vsnprintf=no | |
16635 | fi | |
16636 | ||
16637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16638 | fi | |
16639 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
16640 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; } | |
16641 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
16642 | ||
16643 | cat >>confdefs.h <<_ACEOF | |
16644 | #define HAVE_DECL_VSNPRINTF 1 | |
16645 | _ACEOF | |
16646 | ||
16647 | ||
16648 | else | |
16649 | cat >>confdefs.h <<_ACEOF | |
16650 | #define HAVE_DECL_VSNPRINTF 0 | |
16651 | _ACEOF | |
16652 | ||
16653 | ||
16654 | fi | |
16655 | ||
16656 | ||
16657 | ||
16658 | # ----------------------- # | |
16659 | # Checks for structures. # | |
16660 | # ----------------------- # | |
16661 | ||
16662 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
16663 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } | |
16664 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
16665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16666 | else | |
16667 | cat >conftest.$ac_ext <<_ACEOF | |
16668 | /* confdefs.h. */ | |
16669 | _ACEOF | |
16670 | cat confdefs.h >>conftest.$ac_ext | |
16671 | cat >>conftest.$ac_ext <<_ACEOF | |
16672 | /* end confdefs.h. */ | |
16673 | $ac_includes_default | |
16674 | int | |
16675 | main () | |
16676 | { | |
16677 | static struct stat ac_aggr; | |
16678 | if (ac_aggr.st_blocks) | |
16679 | return 0; | |
16680 | ; | |
16681 | return 0; | |
16682 | } | |
16683 | _ACEOF | |
16684 | rm -f conftest.$ac_objext | |
16685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16686 | (eval $ac_compile) 2>conftest.er1 | |
16687 | ac_status=$? | |
16688 | grep -v '^ *+' conftest.er1 >conftest.err | |
16689 | rm -f conftest.er1 | |
16690 | cat conftest.err >&5 | |
16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16692 | (exit $ac_status); } && | |
16693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16695 | (eval $ac_try) 2>&5 | |
16696 | ac_status=$? | |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16698 | (exit $ac_status); }; } && | |
16699 | { ac_try='test -s conftest.$ac_objext' | |
16700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16701 | (eval $ac_try) 2>&5 | |
16702 | ac_status=$? | |
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 | (exit $ac_status); }; }; then | |
16705 | ac_cv_member_struct_stat_st_blocks=yes | |
16706 | else | |
16707 | echo "$as_me: failed program was:" >&5 | |
16708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16709 | ||
16710 | cat >conftest.$ac_ext <<_ACEOF | |
16711 | /* confdefs.h. */ | |
16712 | _ACEOF | |
16713 | cat confdefs.h >>conftest.$ac_ext | |
16714 | cat >>conftest.$ac_ext <<_ACEOF | |
16715 | /* end confdefs.h. */ | |
16716 | $ac_includes_default | |
16717 | int | |
16718 | main () | |
16719 | { | |
16720 | static struct stat ac_aggr; | |
16721 | if (sizeof ac_aggr.st_blocks) | |
16722 | return 0; | |
16723 | ; | |
16724 | return 0; | |
16725 | } | |
16726 | _ACEOF | |
16727 | rm -f conftest.$ac_objext | |
16728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16729 | (eval $ac_compile) 2>conftest.er1 | |
16730 | ac_status=$? | |
16731 | grep -v '^ *+' conftest.er1 >conftest.err | |
16732 | rm -f conftest.er1 | |
16733 | cat conftest.err >&5 | |
16734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16735 | (exit $ac_status); } && | |
16736 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16738 | (eval $ac_try) 2>&5 | |
16739 | ac_status=$? | |
16740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16741 | (exit $ac_status); }; } && | |
16742 | { ac_try='test -s conftest.$ac_objext' | |
16743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16744 | (eval $ac_try) 2>&5 | |
16745 | ac_status=$? | |
16746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16747 | (exit $ac_status); }; }; then | |
16748 | ac_cv_member_struct_stat_st_blocks=yes | |
16749 | else | |
16750 | echo "$as_me: failed program was:" >&5 | |
16751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16752 | ||
16753 | ac_cv_member_struct_stat_st_blocks=no | |
16754 | fi | |
16755 | ||
16756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16757 | fi | |
16758 | ||
16759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16760 | fi | |
16761 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
16762 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } | |
16763 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
16764 | ||
16765 | cat >>confdefs.h <<_ACEOF | |
16766 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
16767 | _ACEOF | |
16768 | ||
16769 | ||
16770 | fi | |
16771 | ||
16772 | { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 | |
16773 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; } | |
16774 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
16775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16776 | else | |
16777 | cat >conftest.$ac_ext <<_ACEOF | |
16778 | /* confdefs.h. */ | |
16779 | _ACEOF | |
16780 | cat confdefs.h >>conftest.$ac_ext | |
16781 | cat >>conftest.$ac_ext <<_ACEOF | |
16782 | /* end confdefs.h. */ | |
16783 | $ac_includes_default | |
16784 | int | |
16785 | main () | |
16786 | { | |
16787 | static struct stat ac_aggr; | |
16788 | if (ac_aggr.st_blksize) | |
16789 | return 0; | |
16790 | ; | |
16791 | return 0; | |
16792 | } | |
16793 | _ACEOF | |
16794 | rm -f conftest.$ac_objext | |
16795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16796 | (eval $ac_compile) 2>conftest.er1 | |
16797 | ac_status=$? | |
16798 | grep -v '^ *+' conftest.er1 >conftest.err | |
16799 | rm -f conftest.er1 | |
16800 | cat conftest.err >&5 | |
16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16802 | (exit $ac_status); } && | |
16803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16805 | (eval $ac_try) 2>&5 | |
16806 | ac_status=$? | |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16808 | (exit $ac_status); }; } && | |
16809 | { ac_try='test -s conftest.$ac_objext' | |
16810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16811 | (eval $ac_try) 2>&5 | |
16812 | ac_status=$? | |
16813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16814 | (exit $ac_status); }; }; then | |
16815 | ac_cv_member_struct_stat_st_blksize=yes | |
16816 | else | |
16817 | echo "$as_me: failed program was:" >&5 | |
16818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16819 | ||
16820 | cat >conftest.$ac_ext <<_ACEOF | |
16821 | /* confdefs.h. */ | |
16822 | _ACEOF | |
16823 | cat confdefs.h >>conftest.$ac_ext | |
16824 | cat >>conftest.$ac_ext <<_ACEOF | |
16825 | /* end confdefs.h. */ | |
16826 | $ac_includes_default | |
16827 | int | |
16828 | main () | |
16829 | { | |
16830 | static struct stat ac_aggr; | |
16831 | if (sizeof ac_aggr.st_blksize) | |
16832 | return 0; | |
16833 | ; | |
16834 | return 0; | |
16835 | } | |
16836 | _ACEOF | |
16837 | rm -f conftest.$ac_objext | |
16838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16839 | (eval $ac_compile) 2>conftest.er1 | |
16840 | ac_status=$? | |
16841 | grep -v '^ *+' conftest.er1 >conftest.err | |
16842 | rm -f conftest.er1 | |
16843 | cat conftest.err >&5 | |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16845 | (exit $ac_status); } && | |
16846 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; } && | |
16852 | { ac_try='test -s conftest.$ac_objext' | |
16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16854 | (eval $ac_try) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); }; }; then | |
16858 | ac_cv_member_struct_stat_st_blksize=yes | |
16859 | else | |
16860 | echo "$as_me: failed program was:" >&5 | |
16861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16862 | ||
16863 | ac_cv_member_struct_stat_st_blksize=no | |
16864 | fi | |
16865 | ||
16866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16867 | fi | |
16868 | ||
16869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16870 | fi | |
16871 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
16872 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; } | |
16873 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
16874 | ||
16875 | cat >>confdefs.h <<_ACEOF | |
16876 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
16877 | _ACEOF | |
16878 | ||
16879 | ||
16880 | fi | |
16881 | ||
16882 | ||
16883 | # ------------------ # | |
16884 | # Checks for types. # | |
16885 | # ------------------ # | |
16886 | ||
16887 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
16888 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
16889 | if test "${ac_cv_type_signal+set}" = set; then | |
16890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16891 | else | |
16892 | cat >conftest.$ac_ext <<_ACEOF | |
16893 | /* confdefs.h. */ | |
16894 | _ACEOF | |
16895 | cat confdefs.h >>conftest.$ac_ext | |
16896 | cat >>conftest.$ac_ext <<_ACEOF | |
16897 | /* end confdefs.h. */ | |
16898 | #include <sys/types.h> | |
16899 | #include <signal.h> | |
16900 | ||
16901 | int | |
16902 | main () | |
16903 | { | |
16904 | return *(signal (0, 0)) (0) == 1; | |
16905 | ; | |
16906 | return 0; | |
16907 | } | |
16908 | _ACEOF | |
16909 | rm -f conftest.$ac_objext | |
16910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16911 | (eval $ac_compile) 2>conftest.er1 | |
16912 | ac_status=$? | |
16913 | grep -v '^ *+' conftest.er1 >conftest.err | |
16914 | rm -f conftest.er1 | |
16915 | cat conftest.err >&5 | |
16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); } && | |
16918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16920 | (eval $ac_try) 2>&5 | |
16921 | ac_status=$? | |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); }; } && | |
16924 | { ac_try='test -s conftest.$ac_objext' | |
16925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16926 | (eval $ac_try) 2>&5 | |
16927 | ac_status=$? | |
16928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16929 | (exit $ac_status); }; }; then | |
16930 | ac_cv_type_signal=int | |
16931 | else | |
16932 | echo "$as_me: failed program was:" >&5 | |
16933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16934 | ||
16935 | ac_cv_type_signal=void | |
16936 | fi | |
16937 | ||
16938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16939 | fi | |
16940 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 | |
16941 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
16942 | ||
16943 | cat >>confdefs.h <<_ACEOF | |
16944 | #define RETSIGTYPE $ac_cv_type_signal | |
16945 | _ACEOF | |
16946 | ||
16947 | ||
16948 | { echo "$as_me:$LINENO: checking for socklen_t" >&5 | |
16949 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; } | |
16950 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
16951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16952 | else | |
16953 | cat >conftest.$ac_ext <<_ACEOF | |
16954 | /* confdefs.h. */ | |
16955 | _ACEOF | |
16956 | cat confdefs.h >>conftest.$ac_ext | |
16957 | cat >>conftest.$ac_ext <<_ACEOF | |
16958 | /* end confdefs.h. */ | |
16959 | #include <sys/types.h> | |
16960 | #include <sys/socket.h> | |
16961 | ||
16962 | ||
16963 | typedef socklen_t ac__type_new_; | |
16964 | int | |
16965 | main () | |
16966 | { | |
16967 | if ((ac__type_new_ *) 0) | |
16968 | return 0; | |
16969 | if (sizeof (ac__type_new_)) | |
16970 | return 0; | |
16971 | ; | |
16972 | return 0; | |
16973 | } | |
16974 | _ACEOF | |
16975 | rm -f conftest.$ac_objext | |
16976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16977 | (eval $ac_compile) 2>conftest.er1 | |
16978 | ac_status=$? | |
16979 | grep -v '^ *+' conftest.er1 >conftest.err | |
16980 | rm -f conftest.er1 | |
16981 | cat conftest.err >&5 | |
16982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16983 | (exit $ac_status); } && | |
16984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16986 | (eval $ac_try) 2>&5 | |
16987 | ac_status=$? | |
16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16989 | (exit $ac_status); }; } && | |
16990 | { ac_try='test -s conftest.$ac_objext' | |
16991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16992 | (eval $ac_try) 2>&5 | |
16993 | ac_status=$? | |
16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16995 | (exit $ac_status); }; }; then | |
16996 | ac_cv_type_socklen_t=yes | |
16997 | else | |
16998 | echo "$as_me: failed program was:" >&5 | |
16999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17000 | ||
17001 | ac_cv_type_socklen_t=no | |
17002 | fi | |
17003 | ||
17004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17005 | fi | |
17006 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 | |
17007 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; } | |
17008 | if test $ac_cv_type_socklen_t = yes; then | |
17009 | ||
17010 | cat >>confdefs.h <<_ACEOF | |
17011 | #define HAVE_SOCKLEN_T 1 | |
17012 | _ACEOF | |
17013 | ||
17014 | ||
17015 | fi | |
17016 | ||
17017 | { echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
17018 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; } | |
17019 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
17020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17021 | else | |
17022 | cat >conftest.$ac_ext <<_ACEOF | |
17023 | /* confdefs.h. */ | |
17024 | _ACEOF | |
17025 | cat confdefs.h >>conftest.$ac_ext | |
17026 | cat >>conftest.$ac_ext <<_ACEOF | |
17027 | /* end confdefs.h. */ | |
17028 | #include <stdint.h> | |
17029 | ||
17030 | typedef uintptr_t ac__type_new_; | |
17031 | int | |
17032 | main () | |
17033 | { | |
17034 | if ((ac__type_new_ *) 0) | |
17035 | return 0; | |
17036 | if (sizeof (ac__type_new_)) | |
17037 | return 0; | |
17038 | ; | |
17039 | return 0; | |
17040 | } | |
17041 | _ACEOF | |
17042 | rm -f conftest.$ac_objext | |
17043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17044 | (eval $ac_compile) 2>conftest.er1 | |
17045 | ac_status=$? | |
17046 | grep -v '^ *+' conftest.er1 >conftest.err | |
17047 | rm -f conftest.er1 | |
17048 | cat conftest.err >&5 | |
17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17050 | (exit $ac_status); } && | |
17051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17053 | (eval $ac_try) 2>&5 | |
17054 | ac_status=$? | |
17055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17056 | (exit $ac_status); }; } && | |
17057 | { ac_try='test -s conftest.$ac_objext' | |
17058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17059 | (eval $ac_try) 2>&5 | |
17060 | ac_status=$? | |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17062 | (exit $ac_status); }; }; then | |
17063 | ac_cv_type_uintptr_t=yes | |
17064 | else | |
17065 | echo "$as_me: failed program was:" >&5 | |
17066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17067 | ||
17068 | ac_cv_type_uintptr_t=no | |
17069 | fi | |
17070 | ||
17071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17072 | fi | |
17073 | { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
17074 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; } | |
17075 | if test $ac_cv_type_uintptr_t = yes; then | |
17076 | ||
17077 | cat >>confdefs.h <<_ACEOF | |
17078 | #define HAVE_UINTPTR_T 1 | |
17079 | _ACEOF | |
17080 | ||
17081 | ||
17082 | fi | |
17083 | ||
17084 | ||
17085 | # ------------------------------------- # | |
17086 | # Checks for compiler characteristics. # | |
17087 | # ------------------------------------- # | |
17088 | ||
17089 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17090 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
17091 | if test "${ac_cv_c_const+set}" = set; then | |
17092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17093 | else | |
17094 | cat >conftest.$ac_ext <<_ACEOF | |
17095 | /* confdefs.h. */ | |
17096 | _ACEOF | |
17097 | cat confdefs.h >>conftest.$ac_ext | |
17098 | cat >>conftest.$ac_ext <<_ACEOF | |
17099 | /* end confdefs.h. */ | |
17100 | ||
17101 | int | |
17102 | main () | |
17103 | { | |
17104 | /* FIXME: Include the comments suggested by Paul. */ | |
17105 | #ifndef __cplusplus | |
17106 | /* Ultrix mips cc rejects this. */ | |
17107 | typedef int charset[2]; | |
17108 | const charset x; | |
17109 | /* SunOS 4.1.1 cc rejects this. */ | |
17110 | char const *const *ccp; | |
17111 | char **p; | |
17112 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17113 | struct point {int x, y;}; | |
17114 | static struct point const zero = {0,0}; | |
17115 | /* AIX XL C 1.02.0.0 rejects this. | |
17116 | It does not let you subtract one const X* pointer from another in | |
17117 | an arm of an if-expression whose if-part is not a constant | |
17118 | expression */ | |
17119 | const char *g = "string"; | |
17120 | ccp = &g + (g ? g-g : 0); | |
17121 | /* HPUX 7.0 cc rejects these. */ | |
17122 | ++ccp; | |
17123 | p = (char**) ccp; | |
17124 | ccp = (char const *const *) p; | |
17125 | { /* SCO 3.2v4 cc rejects this. */ | |
17126 | char *t; | |
17127 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17128 | ||
17129 | *t++ = 0; | |
17130 | if (s) return 0; | |
17131 | } | |
17132 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17133 | int x[] = {25, 17}; | |
17134 | const int *foo = &x[0]; | |
17135 | ++foo; | |
17136 | } | |
17137 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17138 | typedef const int *iptr; | |
17139 | iptr p = 0; | |
17140 | ++p; | |
17141 | } | |
17142 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17143 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17144 | struct s { int j; const int *ap[3]; }; | |
17145 | struct s *b; b->j = 5; | |
17146 | } | |
17147 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17148 | const int foo = 10; | |
17149 | if (!foo) return 0; | |
17150 | } | |
17151 | return !x[0] && !zero.x; | |
17152 | #endif | |
17153 | ||
17154 | ; | |
17155 | return 0; | |
17156 | } | |
17157 | _ACEOF | |
17158 | rm -f conftest.$ac_objext | |
17159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17160 | (eval $ac_compile) 2>conftest.er1 | |
17161 | ac_status=$? | |
17162 | grep -v '^ *+' conftest.er1 >conftest.err | |
17163 | rm -f conftest.er1 | |
17164 | cat conftest.err >&5 | |
17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17166 | (exit $ac_status); } && | |
17167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; } && | |
17173 | { ac_try='test -s conftest.$ac_objext' | |
17174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17175 | (eval $ac_try) 2>&5 | |
17176 | ac_status=$? | |
17177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17178 | (exit $ac_status); }; }; then | |
17179 | ac_cv_c_const=yes | |
17180 | else | |
17181 | echo "$as_me: failed program was:" >&5 | |
17182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17183 | ||
17184 | ac_cv_c_const=no | |
17185 | fi | |
17186 | ||
17187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17188 | fi | |
17189 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17190 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
17191 | if test $ac_cv_c_const = no; then | |
17192 | ||
17193 | cat >>confdefs.h <<\_ACEOF | |
17194 | #define const | |
17195 | _ACEOF | |
17196 | ||
17197 | fi | |
17198 | ||
17199 | { echo "$as_me:$LINENO: checking for inline" >&5 | |
17200 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
17201 | if test "${ac_cv_c_inline+set}" = set; then | |
17202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17203 | else | |
17204 | ac_cv_c_inline=no | |
17205 | for ac_kw in inline __inline__ __inline; do | |
17206 | cat >conftest.$ac_ext <<_ACEOF | |
17207 | /* confdefs.h. */ | |
17208 | _ACEOF | |
17209 | cat confdefs.h >>conftest.$ac_ext | |
17210 | cat >>conftest.$ac_ext <<_ACEOF | |
17211 | /* end confdefs.h. */ | |
17212 | #ifndef __cplusplus | |
17213 | typedef int foo_t; | |
17214 | static $ac_kw foo_t static_foo () {return 0; } | |
17215 | $ac_kw foo_t foo () {return 0; } | |
17216 | #endif | |
17217 | ||
17218 | _ACEOF | |
17219 | rm -f conftest.$ac_objext | |
17220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17221 | (eval $ac_compile) 2>conftest.er1 | |
17222 | ac_status=$? | |
17223 | grep -v '^ *+' conftest.er1 >conftest.err | |
17224 | rm -f conftest.er1 | |
17225 | cat conftest.err >&5 | |
17226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17227 | (exit $ac_status); } && | |
17228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17230 | (eval $ac_try) 2>&5 | |
17231 | ac_status=$? | |
17232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17233 | (exit $ac_status); }; } && | |
17234 | { ac_try='test -s conftest.$ac_objext' | |
17235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17236 | (eval $ac_try) 2>&5 | |
17237 | ac_status=$? | |
17238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17239 | (exit $ac_status); }; }; then | |
17240 | ac_cv_c_inline=$ac_kw | |
17241 | else | |
17242 | echo "$as_me: failed program was:" >&5 | |
17243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17244 | ||
17245 | ||
17246 | fi | |
17247 | ||
17248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17249 | test "$ac_cv_c_inline" != no && break | |
17250 | done | |
17251 | ||
17252 | fi | |
17253 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17254 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
bec39cab | 17255 | |
bec39cab | 17256 | |
a3828db0 MK |
17257 | case $ac_cv_c_inline in |
17258 | inline | yes) ;; | |
17259 | *) | |
17260 | case $ac_cv_c_inline in | |
17261 | no) ac_val=;; | |
17262 | *) ac_val=$ac_cv_c_inline;; | |
17263 | esac | |
17264 | cat >>confdefs.h <<_ACEOF | |
17265 | #ifndef __cplusplus | |
17266 | #define inline $ac_val | |
17267 | #endif | |
17268 | _ACEOF | |
bec39cab AC |
17269 | ;; |
17270 | esac | |
bec39cab | 17271 | |
74c1b268 | 17272 | |
a3828db0 MK |
17273 | # ------------------------------ # |
17274 | # Checks for library functions. # | |
17275 | # ------------------------------ # | |
bec39cab | 17276 | |
a3828db0 MK |
17277 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
17278 | # for constant arguments. Useless! | |
4e8d927d DJ |
17279 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
17280 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
a3828db0 | 17281 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
17282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17283 | else | |
17284 | cat >conftest.$ac_ext <<_ACEOF | |
17285 | /* confdefs.h. */ | |
17286 | _ACEOF | |
17287 | cat confdefs.h >>conftest.$ac_ext | |
17288 | cat >>conftest.$ac_ext <<_ACEOF | |
17289 | /* end confdefs.h. */ | |
a3828db0 | 17290 | #include <alloca.h> |
bec39cab AC |
17291 | int |
17292 | main () | |
17293 | { | |
a3828db0 | 17294 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
17295 | ; |
17296 | return 0; | |
17297 | } | |
17298 | _ACEOF | |
17299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17301 | (eval $ac_link) 2>conftest.er1 | |
17302 | ac_status=$? | |
17303 | grep -v '^ *+' conftest.er1 >conftest.err | |
17304 | rm -f conftest.er1 | |
17305 | cat conftest.err >&5 | |
17306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17307 | (exit $ac_status); } && | |
121ce6e5 | 17308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17310 | (eval $ac_try) 2>&5 | |
17311 | ac_status=$? | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); }; } && | |
17314 | { ac_try='test -s conftest$ac_exeext' | |
17315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17316 | (eval $ac_try) 2>&5 | |
17317 | ac_status=$? | |
17318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17319 | (exit $ac_status); }; }; then | |
a3828db0 | 17320 | ac_cv_working_alloca_h=yes |
bec39cab AC |
17321 | else |
17322 | echo "$as_me: failed program was:" >&5 | |
17323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17324 | ||
4e8d927d | 17325 | ac_cv_working_alloca_h=no |
bec39cab | 17326 | fi |
4e8d927d | 17327 | |
bec39cab AC |
17328 | rm -f conftest.err conftest.$ac_objext \ |
17329 | conftest$ac_exeext conftest.$ac_ext | |
17330 | fi | |
4e8d927d DJ |
17331 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
17332 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
a3828db0 MK |
17333 | if test $ac_cv_working_alloca_h = yes; then |
17334 | ||
17335 | cat >>confdefs.h <<\_ACEOF | |
17336 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 17337 | _ACEOF |
74c1b268 | 17338 | |
74c1b268 AC |
17339 | fi |
17340 | ||
4e8d927d DJ |
17341 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
17342 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
a3828db0 | 17343 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 17344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 17345 | else |
bec39cab AC |
17346 | cat >conftest.$ac_ext <<_ACEOF |
17347 | /* confdefs.h. */ | |
17348 | _ACEOF | |
17349 | cat confdefs.h >>conftest.$ac_ext | |
17350 | cat >>conftest.$ac_ext <<_ACEOF | |
17351 | /* end confdefs.h. */ | |
a3828db0 MK |
17352 | #ifdef __GNUC__ |
17353 | # define alloca __builtin_alloca | |
17354 | #else | |
17355 | # ifdef _MSC_VER | |
17356 | # include <malloc.h> | |
17357 | # define alloca _alloca | |
17358 | # else | |
17359 | # if HAVE_ALLOCA_H | |
17360 | # include <alloca.h> | |
17361 | # else | |
17362 | # ifdef _AIX | |
17363 | #pragma alloca | |
17364 | # else | |
17365 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
17366 | char *alloca (); | |
17367 | # endif | |
17368 | # endif | |
17369 | # endif | |
97bf5e38 | 17370 | # endif |
a3828db0 | 17371 | #endif |
97bf5e38 | 17372 | |
bec39cab AC |
17373 | int |
17374 | main () | |
17375 | { | |
a3828db0 | 17376 | char *p = (char *) alloca (1); |
bec39cab AC |
17377 | ; |
17378 | return 0; | |
17379 | } | |
17380 | _ACEOF | |
a3828db0 MK |
17381 | rm -f conftest.$ac_objext conftest$ac_exeext |
17382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17383 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17384 | ac_status=$? |
17385 | grep -v '^ *+' conftest.er1 >conftest.err | |
17386 | rm -f conftest.er1 | |
17387 | cat conftest.err >&5 | |
17388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17389 | (exit $ac_status); } && | |
121ce6e5 | 17390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17392 | (eval $ac_try) 2>&5 | |
17393 | ac_status=$? | |
17394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17395 | (exit $ac_status); }; } && | |
a3828db0 | 17396 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17398 | (eval $ac_try) 2>&5 | |
17399 | ac_status=$? | |
17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17401 | (exit $ac_status); }; }; then | |
a3828db0 | 17402 | ac_cv_func_alloca_works=yes |
0200359f | 17403 | else |
bec39cab AC |
17404 | echo "$as_me: failed program was:" >&5 |
17405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 17406 | |
4e8d927d | 17407 | ac_cv_func_alloca_works=no |
0200359f | 17408 | fi |
4e8d927d | 17409 | |
a3828db0 MK |
17410 | rm -f conftest.err conftest.$ac_objext \ |
17411 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 17412 | fi |
4e8d927d DJ |
17413 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
17414 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
bec39cab | 17415 | |
a3828db0 MK |
17416 | if test $ac_cv_func_alloca_works = yes; then |
17417 | ||
17418 | cat >>confdefs.h <<\_ACEOF | |
17419 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
17420 | _ACEOF |
17421 | ||
a3828db0 MK |
17422 | else |
17423 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
17424 | # that cause trouble. Some versions do not even contain alloca or | |
17425 | # contain a buggy version. If you still want to use their alloca, | |
17426 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 17427 | |
4e8d927d | 17428 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
bec39cab | 17429 | |
a3828db0 MK |
17430 | cat >>confdefs.h <<\_ACEOF |
17431 | #define C_ALLOCA 1 | |
17432 | _ACEOF | |
bec39cab | 17433 | |
a3828db0 | 17434 | |
4e8d927d DJ |
17435 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
17436 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
a3828db0 | 17437 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 17438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 17439 | else |
a3828db0 | 17440 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
17441 | /* confdefs.h. */ |
17442 | _ACEOF | |
17443 | cat confdefs.h >>conftest.$ac_ext | |
17444 | cat >>conftest.$ac_ext <<_ACEOF | |
17445 | /* end confdefs.h. */ | |
4e8d927d | 17446 | #if defined CRAY && ! defined CRAY2 |
a3828db0 MK |
17447 | webecray |
17448 | #else | |
17449 | wenotbecray | |
17450 | #endif | |
17451 | ||
17452 | _ACEOF | |
17453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
17454 | $EGREP "webecray" >/dev/null 2>&1; then | |
17455 | ac_cv_os_cray=yes | |
17456 | else | |
17457 | ac_cv_os_cray=no | |
17458 | fi | |
17459 | rm -f conftest* | |
17460 | ||
17461 | fi | |
4e8d927d DJ |
17462 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
17463 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
a3828db0 MK |
17464 | if test $ac_cv_os_cray = yes; then |
17465 | for ac_func in _getb67 GETB67 getb67; do | |
17466 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
17467 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17468 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17469 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
a3828db0 MK |
17470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17471 | else | |
17472 | cat >conftest.$ac_ext <<_ACEOF | |
17473 | /* confdefs.h. */ | |
17474 | _ACEOF | |
17475 | cat confdefs.h >>conftest.$ac_ext | |
17476 | cat >>conftest.$ac_ext <<_ACEOF | |
17477 | /* end confdefs.h. */ | |
17478 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17479 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17480 | #define $ac_func innocuous_$ac_func | |
17481 | ||
17482 | /* System header to define __stub macros and hopefully few prototypes, | |
17483 | which can conflict with char $ac_func (); below. | |
17484 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17485 | <limits.h> exists even on freestanding compilers. */ | |
17486 | ||
17487 | #ifdef __STDC__ | |
17488 | # include <limits.h> | |
17489 | #else | |
17490 | # include <assert.h> | |
17491 | #endif | |
17492 | ||
17493 | #undef $ac_func | |
17494 | ||
4e8d927d DJ |
17495 | /* Override any GCC internal prototype to avoid an error. |
17496 | Use char because int might match the return type of a GCC | |
17497 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17498 | #ifdef __cplusplus |
17499 | extern "C" | |
a3828db0 | 17500 | #endif |
a3828db0 MK |
17501 | char $ac_func (); |
17502 | /* The GNU C library defines this for functions which it implements | |
17503 | to always fail with ENOSYS. Some functions are actually named | |
17504 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 17505 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a3828db0 | 17506 | choke me |
a3828db0 MK |
17507 | #endif |
17508 | ||
17509 | int | |
17510 | main () | |
17511 | { | |
4e8d927d | 17512 | return $ac_func (); |
a3828db0 MK |
17513 | ; |
17514 | return 0; | |
17515 | } | |
17516 | _ACEOF | |
17517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17519 | (eval $ac_link) 2>conftest.er1 | |
17520 | ac_status=$? | |
17521 | grep -v '^ *+' conftest.er1 >conftest.err | |
17522 | rm -f conftest.er1 | |
17523 | cat conftest.err >&5 | |
17524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17525 | (exit $ac_status); } && | |
121ce6e5 | 17526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a3828db0 MK |
17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17528 | (eval $ac_try) 2>&5 | |
17529 | ac_status=$? | |
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17531 | (exit $ac_status); }; } && | |
17532 | { ac_try='test -s conftest$ac_exeext' | |
17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17534 | (eval $ac_try) 2>&5 | |
17535 | ac_status=$? | |
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17537 | (exit $ac_status); }; }; then | |
17538 | eval "$as_ac_var=yes" | |
17539 | else | |
17540 | echo "$as_me: failed program was:" >&5 | |
17541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17542 | ||
4e8d927d | 17543 | eval "$as_ac_var=no" |
a3828db0 | 17544 | fi |
4e8d927d | 17545 | |
a3828db0 MK |
17546 | rm -f conftest.err conftest.$ac_objext \ |
17547 | conftest$ac_exeext conftest.$ac_ext | |
17548 | fi | |
4e8d927d DJ |
17549 | ac_res=`eval echo '${'$as_ac_var'}'` |
17550 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17551 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
17552 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17553 | ||
17554 | cat >>confdefs.h <<_ACEOF | |
17555 | #define CRAY_STACKSEG_END $ac_func | |
17556 | _ACEOF | |
17557 | ||
17558 | break | |
17559 | fi | |
17560 | ||
17561 | done | |
17562 | fi | |
17563 | ||
4e8d927d DJ |
17564 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
17565 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
a3828db0 MK |
17566 | if test "${ac_cv_c_stack_direction+set}" = set; then |
17567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17568 | else | |
17569 | if test "$cross_compiling" = yes; then | |
17570 | ac_cv_c_stack_direction=0 | |
17571 | else | |
17572 | cat >conftest.$ac_ext <<_ACEOF | |
17573 | /* confdefs.h. */ | |
17574 | _ACEOF | |
17575 | cat confdefs.h >>conftest.$ac_ext | |
17576 | cat >>conftest.$ac_ext <<_ACEOF | |
17577 | /* end confdefs.h. */ | |
4e8d927d | 17578 | $ac_includes_default |
a3828db0 MK |
17579 | int |
17580 | find_stack_direction () | |
17581 | { | |
17582 | static char *addr = 0; | |
17583 | auto char dummy; | |
17584 | if (addr == 0) | |
17585 | { | |
17586 | addr = &dummy; | |
17587 | return find_stack_direction (); | |
17588 | } | |
17589 | else | |
17590 | return (&dummy > addr) ? 1 : -1; | |
17591 | } | |
17592 | ||
17593 | int | |
17594 | main () | |
17595 | { | |
4e8d927d | 17596 | return find_stack_direction () < 0; |
a3828db0 MK |
17597 | } |
17598 | _ACEOF | |
17599 | rm -f conftest$ac_exeext | |
17600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17601 | (eval $ac_link) 2>&5 | |
17602 | ac_status=$? | |
17603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17606 | (eval $ac_try) 2>&5 | |
17607 | ac_status=$? | |
17608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17609 | (exit $ac_status); }; }; then | |
17610 | ac_cv_c_stack_direction=1 | |
17611 | else | |
17612 | echo "$as_me: program exited with status $ac_status" >&5 | |
17613 | echo "$as_me: failed program was:" >&5 | |
17614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17615 | ||
17616 | ( exit $ac_status ) | |
17617 | ac_cv_c_stack_direction=-1 | |
17618 | fi | |
4e8d927d | 17619 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 | 17620 | fi |
4e8d927d DJ |
17621 | |
17622 | ||
a3828db0 | 17623 | fi |
4e8d927d DJ |
17624 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
17625 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
a3828db0 MK |
17626 | |
17627 | cat >>confdefs.h <<_ACEOF | |
17628 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
17629 | _ACEOF | |
17630 | ||
17631 | ||
17632 | fi | |
17633 | ||
17634 | ||
17635 | ||
17636 | for ac_header in stdlib.h unistd.h | |
17637 | do | |
17638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4e8d927d DJ |
17639 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
17640 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a3828db0 MK |
17643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17644 | fi | |
4e8d927d DJ |
17645 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17646 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17647 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
17648 | else |
17649 | # Is the header compilable? | |
4e8d927d DJ |
17650 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17651 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
a3828db0 MK |
17652 | cat >conftest.$ac_ext <<_ACEOF |
17653 | /* confdefs.h. */ | |
17654 | _ACEOF | |
17655 | cat confdefs.h >>conftest.$ac_ext | |
17656 | cat >>conftest.$ac_ext <<_ACEOF | |
17657 | /* end confdefs.h. */ | |
17658 | $ac_includes_default | |
17659 | #include <$ac_header> | |
17660 | _ACEOF | |
17661 | rm -f conftest.$ac_objext | |
17662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17663 | (eval $ac_compile) 2>conftest.er1 | |
17664 | ac_status=$? | |
bec39cab AC |
17665 | grep -v '^ *+' conftest.er1 >conftest.err |
17666 | rm -f conftest.er1 | |
17667 | cat conftest.err >&5 | |
17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17669 | (exit $ac_status); } && | |
121ce6e5 | 17670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17672 | (eval $ac_try) 2>&5 | |
17673 | ac_status=$? | |
17674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17675 | (exit $ac_status); }; } && | |
17676 | { ac_try='test -s conftest.$ac_objext' | |
17677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17678 | (eval $ac_try) 2>&5 | |
17679 | ac_status=$? | |
17680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17681 | (exit $ac_status); }; }; then | |
17682 | ac_header_compiler=yes | |
17683 | else | |
17684 | echo "$as_me: failed program was:" >&5 | |
17685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17686 | ||
4e8d927d | 17687 | ac_header_compiler=no |
bec39cab | 17688 | fi |
4e8d927d | 17689 | |
bec39cab | 17690 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
17691 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17692 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
17693 | |
17694 | # Is the header present? | |
4e8d927d DJ |
17695 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17696 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
bec39cab AC |
17697 | cat >conftest.$ac_ext <<_ACEOF |
17698 | /* confdefs.h. */ | |
17699 | _ACEOF | |
17700 | cat confdefs.h >>conftest.$ac_ext | |
17701 | cat >>conftest.$ac_ext <<_ACEOF | |
17702 | /* end confdefs.h. */ | |
17703 | #include <$ac_header> | |
17704 | _ACEOF | |
17705 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17706 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17707 | ac_status=$? | |
17708 | grep -v '^ *+' conftest.er1 >conftest.err | |
17709 | rm -f conftest.er1 | |
17710 | cat conftest.err >&5 | |
17711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17712 | (exit $ac_status); } >/dev/null; then | |
17713 | if test -s conftest.err; then | |
17714 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17715 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
17716 | else | |
17717 | ac_cpp_err= | |
17718 | fi | |
17719 | else | |
17720 | ac_cpp_err=yes | |
17721 | fi | |
17722 | if test -z "$ac_cpp_err"; then | |
17723 | ac_header_preproc=yes | |
97bf5e38 | 17724 | else |
bec39cab AC |
17725 | echo "$as_me: failed program was:" >&5 |
17726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17727 | ||
17728 | ac_header_preproc=no | |
72473524 | 17729 | fi |
4e8d927d | 17730 | |
bec39cab | 17731 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
17732 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17733 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c906108c | 17734 | |
bec39cab AC |
17735 | # So? What about this header? |
17736 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17737 | yes:no: ) | |
17738 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17739 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17741 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17742 | ac_header_preproc=yes | |
17743 | ;; | |
17744 | no:yes:* ) | |
17745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17749 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17750 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17751 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17752 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17754 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17755 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17756 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 17757 | |
bec39cab AC |
17758 | ;; |
17759 | esac | |
4e8d927d DJ |
17760 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17761 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17762 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 17763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 17764 | else |
bec39cab AC |
17765 | eval "$as_ac_Header=\$ac_header_preproc" |
17766 | fi | |
4e8d927d DJ |
17767 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17768 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17769 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
17770 | |
17771 | fi | |
17772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17773 | cat >>confdefs.h <<_ACEOF | |
17774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17775 | _ACEOF | |
17776 | ||
17777 | fi | |
17778 | ||
17779 | done | |
17780 | ||
17781 | ||
a3828db0 | 17782 | for ac_func in getpagesize |
bec39cab AC |
17783 | do |
17784 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
17785 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17786 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17787 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
17788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17789 | else | |
17790 | cat >conftest.$ac_ext <<_ACEOF | |
17791 | /* confdefs.h. */ | |
17792 | _ACEOF | |
17793 | cat confdefs.h >>conftest.$ac_ext | |
17794 | cat >>conftest.$ac_ext <<_ACEOF | |
17795 | /* end confdefs.h. */ | |
17796 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17798 | #define $ac_func innocuous_$ac_func | |
17799 | ||
97bf5e38 | 17800 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17801 | which can conflict with char $ac_func (); below. |
17802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17803 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 17804 | |
bec39cab AC |
17805 | #ifdef __STDC__ |
17806 | # include <limits.h> | |
17807 | #else | |
17808 | # include <assert.h> | |
17809 | #endif | |
97bf5e38 | 17810 | |
bec39cab AC |
17811 | #undef $ac_func |
17812 | ||
4e8d927d DJ |
17813 | /* Override any GCC internal prototype to avoid an error. |
17814 | Use char because int might match the return type of a GCC | |
17815 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
17816 | #ifdef __cplusplus |
17817 | extern "C" | |
bec39cab | 17818 | #endif |
bec39cab | 17819 | char $ac_func (); |
97bf5e38 MK |
17820 | /* The GNU C library defines this for functions which it implements |
17821 | to always fail with ENOSYS. Some functions are actually named | |
17822 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 17823 | #if defined __stub_$ac_func || defined __stub___$ac_func |
97bf5e38 | 17824 | choke me |
97bf5e38 MK |
17825 | #endif |
17826 | ||
bec39cab AC |
17827 | int |
17828 | main () | |
17829 | { | |
4e8d927d | 17830 | return $ac_func (); |
bec39cab AC |
17831 | ; |
17832 | return 0; | |
17833 | } | |
17834 | _ACEOF | |
17835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17837 | (eval $ac_link) 2>conftest.er1 | |
17838 | ac_status=$? | |
17839 | grep -v '^ *+' conftest.er1 >conftest.err | |
17840 | rm -f conftest.er1 | |
17841 | cat conftest.err >&5 | |
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17843 | (exit $ac_status); } && | |
121ce6e5 | 17844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
17845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17846 | (eval $ac_try) 2>&5 | |
17847 | ac_status=$? | |
17848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17849 | (exit $ac_status); }; } && | |
17850 | { ac_try='test -s conftest$ac_exeext' | |
17851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17852 | (eval $ac_try) 2>&5 | |
17853 | ac_status=$? | |
17854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17855 | (exit $ac_status); }; }; then | |
17856 | eval "$as_ac_var=yes" | |
17857 | else | |
17858 | echo "$as_me: failed program was:" >&5 | |
17859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17860 | ||
4e8d927d | 17861 | eval "$as_ac_var=no" |
bec39cab | 17862 | fi |
4e8d927d | 17863 | |
bec39cab AC |
17864 | rm -f conftest.err conftest.$ac_objext \ |
17865 | conftest$ac_exeext conftest.$ac_ext | |
17866 | fi | |
4e8d927d DJ |
17867 | ac_res=`eval echo '${'$as_ac_var'}'` |
17868 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17869 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
17870 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17871 | cat >>confdefs.h <<_ACEOF | |
17872 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17873 | _ACEOF | |
17874 | ||
2b2d558c | 17875 | fi |
bec39cab | 17876 | done |
2b2d558c | 17877 | |
4e8d927d DJ |
17878 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
17879 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
a3828db0 | 17880 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 17881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 17882 | else |
bec39cab | 17883 | if test "$cross_compiling" = yes; then |
a3828db0 | 17884 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
17885 | else |
17886 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 17887 | /* confdefs.h. */ |
bec39cab AC |
17888 | _ACEOF |
17889 | cat confdefs.h >>conftest.$ac_ext | |
17890 | cat >>conftest.$ac_ext <<_ACEOF | |
17891 | /* end confdefs.h. */ | |
a3828db0 MK |
17892 | $ac_includes_default |
17893 | /* malloc might have been renamed as rpl_malloc. */ | |
17894 | #undef malloc | |
bec39cab | 17895 | |
a3828db0 MK |
17896 | /* Thanks to Mike Haertel and Jim Avera for this test. |
17897 | Here is a matrix of mmap possibilities: | |
17898 | mmap private not fixed | |
17899 | mmap private fixed at somewhere currently unmapped | |
17900 | mmap private fixed at somewhere already mapped | |
17901 | mmap shared not fixed | |
17902 | mmap shared fixed at somewhere currently unmapped | |
17903 | mmap shared fixed at somewhere already mapped | |
17904 | For private mappings, we should verify that changes cannot be read() | |
17905 | back from the file, nor mmap's back from the file at a different | |
17906 | address. (There have been systems where private was not correctly | |
17907 | implemented like the infamous i386 svr4.0, and systems where the | |
17908 | VM page cache was not coherent with the file system buffer cache | |
17909 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
17910 | For shared mappings, we should conversely verify that changes get | |
17911 | propagated back to all the places they're supposed to be. | |
7dfa765c | 17912 | |
a3828db0 MK |
17913 | Grep wants private fixed already mapped. |
17914 | The main things grep needs to know about mmap are: | |
17915 | * does it exist and is it safe to write into the mmap'd area | |
17916 | * how to use it (BSD variants) */ | |
7dfa765c | 17917 | |
a3828db0 MK |
17918 | #include <fcntl.h> |
17919 | #include <sys/mman.h> | |
7dfa765c | 17920 | |
a3828db0 MK |
17921 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
17922 | char *malloc (); | |
17923 | #endif | |
7dfa765c | 17924 | |
a3828db0 MK |
17925 | /* This mess was copied from the GNU getpagesize.h. */ |
17926 | #if !HAVE_GETPAGESIZE | |
17927 | /* Assume that all systems that can run configure have sys/param.h. */ | |
17928 | # if !HAVE_SYS_PARAM_H | |
17929 | # define HAVE_SYS_PARAM_H 1 | |
17930 | # endif | |
64bb1671 | 17931 | |
a3828db0 MK |
17932 | # ifdef _SC_PAGESIZE |
17933 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
17934 | # else /* no _SC_PAGESIZE */ | |
17935 | # if HAVE_SYS_PARAM_H | |
17936 | # include <sys/param.h> | |
17937 | # ifdef EXEC_PAGESIZE | |
17938 | # define getpagesize() EXEC_PAGESIZE | |
17939 | # else /* no EXEC_PAGESIZE */ | |
17940 | # ifdef NBPG | |
17941 | # define getpagesize() NBPG * CLSIZE | |
17942 | # ifndef CLSIZE | |
17943 | # define CLSIZE 1 | |
17944 | # endif /* no CLSIZE */ | |
17945 | # else /* no NBPG */ | |
17946 | # ifdef NBPC | |
17947 | # define getpagesize() NBPC | |
17948 | # else /* no NBPC */ | |
17949 | # ifdef PAGESIZE | |
17950 | # define getpagesize() PAGESIZE | |
17951 | # endif /* PAGESIZE */ | |
17952 | # endif /* no NBPC */ | |
17953 | # endif /* no NBPG */ | |
17954 | # endif /* no EXEC_PAGESIZE */ | |
17955 | # else /* no HAVE_SYS_PARAM_H */ | |
17956 | # define getpagesize() 8192 /* punt totally */ | |
17957 | # endif /* no HAVE_SYS_PARAM_H */ | |
17958 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 17959 | |
a3828db0 | 17960 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 17961 | |
a3828db0 MK |
17962 | int |
17963 | main () | |
17964 | { | |
17965 | char *data, *data2, *data3; | |
17966 | int i, pagesize; | |
17967 | int fd; | |
97bf5e38 | 17968 | |
a3828db0 MK |
17969 | pagesize = getpagesize (); |
17970 | ||
17971 | /* First, make a file with some known garbage in it. */ | |
17972 | data = (char *) malloc (pagesize); | |
17973 | if (!data) | |
4e8d927d | 17974 | return 1; |
a3828db0 MK |
17975 | for (i = 0; i < pagesize; ++i) |
17976 | *(data + i) = rand (); | |
17977 | umask (0); | |
17978 | fd = creat ("conftest.mmap", 0600); | |
17979 | if (fd < 0) | |
4e8d927d | 17980 | return 1; |
a3828db0 | 17981 | if (write (fd, data, pagesize) != pagesize) |
4e8d927d | 17982 | return 1; |
a3828db0 MK |
17983 | close (fd); |
17984 | ||
17985 | /* Next, try to mmap the file at a fixed address which already has | |
17986 | something else allocated at it. If we can, also make sure that | |
17987 | we see the same garbage. */ | |
17988 | fd = open ("conftest.mmap", O_RDWR); | |
17989 | if (fd < 0) | |
4e8d927d | 17990 | return 1; |
a3828db0 MK |
17991 | data2 = (char *) malloc (2 * pagesize); |
17992 | if (!data2) | |
4e8d927d DJ |
17993 | return 1; |
17994 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
17995 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
17996 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4e8d927d | 17997 | return 1; |
a3828db0 MK |
17998 | for (i = 0; i < pagesize; ++i) |
17999 | if (*(data + i) != *(data2 + i)) | |
4e8d927d | 18000 | return 1; |
a3828db0 MK |
18001 | |
18002 | /* Finally, make sure that changes to the mapped area do not | |
18003 | percolate back to the file as seen by read(). (This is a bug on | |
18004 | some variants of i386 svr4.0.) */ | |
18005 | for (i = 0; i < pagesize; ++i) | |
18006 | *(data2 + i) = *(data2 + i) + 1; | |
18007 | data3 = (char *) malloc (pagesize); | |
18008 | if (!data3) | |
4e8d927d | 18009 | return 1; |
a3828db0 | 18010 | if (read (fd, data3, pagesize) != pagesize) |
4e8d927d | 18011 | return 1; |
a3828db0 MK |
18012 | for (i = 0; i < pagesize; ++i) |
18013 | if (*(data + i) != *(data3 + i)) | |
4e8d927d | 18014 | return 1; |
a3828db0 | 18015 | close (fd); |
4e8d927d | 18016 | return 0; |
97bf5e38 | 18017 | } |
bec39cab AC |
18018 | _ACEOF |
18019 | rm -f conftest$ac_exeext | |
18020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18021 | (eval $ac_link) 2>&5 | |
18022 | ac_status=$? | |
18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18026 | (eval $ac_try) 2>&5 | |
18027 | ac_status=$? | |
18028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18029 | (exit $ac_status); }; }; then | |
a3828db0 | 18030 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 18031 | else |
bec39cab AC |
18032 | echo "$as_me: program exited with status $ac_status" >&5 |
18033 | echo "$as_me: failed program was:" >&5 | |
18034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18035 | ||
18036 | ( exit $ac_status ) | |
a3828db0 | 18037 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 18038 | fi |
4e8d927d | 18039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 18040 | fi |
4e8d927d DJ |
18041 | |
18042 | ||
a3828db0 | 18043 | fi |
4e8d927d DJ |
18044 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
18045 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
a3828db0 | 18046 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
18047 | |
18048 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18049 | #define HAVE_MMAP 1 |
bec39cab | 18050 | _ACEOF |
0afdd437 MK |
18051 | |
18052 | fi | |
a3828db0 | 18053 | rm -f conftest.mmap |
0afdd437 | 18054 | |
4e8d927d DJ |
18055 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
18056 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
a3828db0 | 18057 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
18058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18059 | else | |
18060 | cat >conftest.$ac_ext <<_ACEOF | |
18061 | /* confdefs.h. */ | |
18062 | _ACEOF | |
18063 | cat confdefs.h >>conftest.$ac_ext | |
18064 | cat >>conftest.$ac_ext <<_ACEOF | |
18065 | /* end confdefs.h. */ | |
a3828db0 | 18066 | $ac_includes_default |
4e8d927d | 18067 | typedef pid_t ac__type_new_; |
bec39cab AC |
18068 | int |
18069 | main () | |
18070 | { | |
4e8d927d | 18071 | if ((ac__type_new_ *) 0) |
a3828db0 | 18072 | return 0; |
4e8d927d | 18073 | if (sizeof (ac__type_new_)) |
a3828db0 | 18074 | return 0; |
bec39cab AC |
18075 | ; |
18076 | return 0; | |
18077 | } | |
18078 | _ACEOF | |
a3828db0 MK |
18079 | rm -f conftest.$ac_objext |
18080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18081 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
18082 | ac_status=$? |
18083 | grep -v '^ *+' conftest.er1 >conftest.err | |
18084 | rm -f conftest.er1 | |
18085 | cat conftest.err >&5 | |
18086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18087 | (exit $ac_status); } && | |
121ce6e5 | 18088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18090 | (eval $ac_try) 2>&5 | |
18091 | ac_status=$? | |
18092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18093 | (exit $ac_status); }; } && | |
a3828db0 | 18094 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
18095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18096 | (eval $ac_try) 2>&5 | |
18097 | ac_status=$? | |
18098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18099 | (exit $ac_status); }; }; then | |
a3828db0 | 18100 | ac_cv_type_pid_t=yes |
bec39cab AC |
18101 | else |
18102 | echo "$as_me: failed program was:" >&5 | |
18103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18104 | ||
4e8d927d | 18105 | ac_cv_type_pid_t=no |
bec39cab | 18106 | fi |
4e8d927d | 18107 | |
a3828db0 | 18108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 18109 | fi |
4e8d927d DJ |
18110 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
18111 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
a3828db0 MK |
18112 | if test $ac_cv_type_pid_t = yes; then |
18113 | : | |
18114 | else | |
18115 | ||
18116 | cat >>confdefs.h <<_ACEOF | |
18117 | #define pid_t int | |
bec39cab | 18118 | _ACEOF |
7e89e357 | 18119 | |
7e89e357 JT |
18120 | fi |
18121 | ||
bec39cab | 18122 | |
4e8d927d | 18123 | for ac_header in vfork.h |
7be570e7 | 18124 | do |
a3828db0 | 18125 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4e8d927d DJ |
18126 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18127 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 18130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 18131 | fi |
4e8d927d DJ |
18132 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18133 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18134 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab | 18135 | else |
a3828db0 | 18136 | # Is the header compilable? |
4e8d927d DJ |
18137 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
a3828db0 | 18139 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
18140 | /* confdefs.h. */ |
18141 | _ACEOF | |
18142 | cat confdefs.h >>conftest.$ac_ext | |
18143 | cat >>conftest.$ac_ext <<_ACEOF | |
18144 | /* end confdefs.h. */ | |
a3828db0 MK |
18145 | $ac_includes_default |
18146 | #include <$ac_header> | |
bec39cab | 18147 | _ACEOF |
a3828db0 MK |
18148 | rm -f conftest.$ac_objext |
18149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18150 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
18151 | ac_status=$? |
18152 | grep -v '^ *+' conftest.er1 >conftest.err | |
18153 | rm -f conftest.er1 | |
18154 | cat conftest.err >&5 | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); } && | |
121ce6e5 | 18157 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18159 | (eval $ac_try) 2>&5 | |
18160 | ac_status=$? | |
18161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18162 | (exit $ac_status); }; } && | |
a3828db0 | 18163 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
18164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18165 | (eval $ac_try) 2>&5 | |
18166 | ac_status=$? | |
18167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18168 | (exit $ac_status); }; }; then | |
a3828db0 | 18169 | ac_header_compiler=yes |
bec39cab AC |
18170 | else |
18171 | echo "$as_me: failed program was:" >&5 | |
18172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18173 | ||
4e8d927d | 18174 | ac_header_compiler=no |
bec39cab | 18175 | fi |
4e8d927d | 18176 | |
a3828db0 | 18177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
18178 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18179 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
a3828db0 MK |
18180 | |
18181 | # Is the header present? | |
4e8d927d DJ |
18182 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18183 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
a3828db0 MK |
18184 | cat >conftest.$ac_ext <<_ACEOF |
18185 | /* confdefs.h. */ | |
18186 | _ACEOF | |
18187 | cat confdefs.h >>conftest.$ac_ext | |
18188 | cat >>conftest.$ac_ext <<_ACEOF | |
18189 | /* end confdefs.h. */ | |
18190 | #include <$ac_header> | |
18191 | _ACEOF | |
18192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18194 | ac_status=$? | |
18195 | grep -v '^ *+' conftest.er1 >conftest.err | |
18196 | rm -f conftest.er1 | |
18197 | cat conftest.err >&5 | |
18198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18199 | (exit $ac_status); } >/dev/null; then | |
18200 | if test -s conftest.err; then | |
18201 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
18203 | else | |
18204 | ac_cpp_err= | |
18205 | fi | |
18206 | else | |
18207 | ac_cpp_err=yes | |
18208 | fi | |
18209 | if test -z "$ac_cpp_err"; then | |
18210 | ac_header_preproc=yes | |
18211 | else | |
18212 | echo "$as_me: failed program was:" >&5 | |
18213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18214 | ||
18215 | ac_header_preproc=no | |
18216 | fi | |
4e8d927d | 18217 | |
a3828db0 | 18218 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
18219 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18220 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
a3828db0 MK |
18221 | |
18222 | # So? What about this header? | |
18223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18224 | yes:no: ) | |
18225 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18226 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18228 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18229 | ac_header_preproc=yes | |
18230 | ;; | |
18231 | no:yes:* ) | |
18232 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18233 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18234 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18235 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18236 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18237 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18238 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18239 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18240 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18241 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18242 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18243 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 18244 | |
a3828db0 MK |
18245 | ;; |
18246 | esac | |
4e8d927d DJ |
18247 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18249 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
a3828db0 MK |
18250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18251 | else | |
18252 | eval "$as_ac_Header=\$ac_header_preproc" | |
18253 | fi | |
4e8d927d DJ |
18254 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18255 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18256 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 | 18257 | |
bec39cab | 18258 | fi |
a3828db0 | 18259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 18260 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 18262 | _ACEOF |
14abd0fb | 18263 | |
14abd0fb | 18264 | fi |
a3828db0 | 18265 | |
14abd0fb MK |
18266 | done |
18267 | ||
bec39cab | 18268 | |
a3828db0 MK |
18269 | |
18270 | for ac_func in fork vfork | |
14abd0fb | 18271 | do |
bec39cab | 18272 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
18273 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18274 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18275 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
18276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18277 | else | |
18278 | cat >conftest.$ac_ext <<_ACEOF | |
18279 | /* confdefs.h. */ | |
18280 | _ACEOF | |
18281 | cat confdefs.h >>conftest.$ac_ext | |
18282 | cat >>conftest.$ac_ext <<_ACEOF | |
18283 | /* end confdefs.h. */ | |
18284 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18285 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18286 | #define $ac_func innocuous_$ac_func | |
18287 | ||
14abd0fb | 18288 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18289 | which can conflict with char $ac_func (); below. |
18290 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18291 | <limits.h> exists even on freestanding compilers. */ | |
18292 | ||
18293 | #ifdef __STDC__ | |
18294 | # include <limits.h> | |
18295 | #else | |
18296 | # include <assert.h> | |
18297 | #endif | |
14abd0fb | 18298 | |
bec39cab | 18299 | #undef $ac_func |
14abd0fb | 18300 | |
4e8d927d DJ |
18301 | /* Override any GCC internal prototype to avoid an error. |
18302 | Use char because int might match the return type of a GCC | |
18303 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
18304 | #ifdef __cplusplus |
18305 | extern "C" | |
bec39cab | 18306 | #endif |
bec39cab | 18307 | char $ac_func (); |
14abd0fb MK |
18308 | /* The GNU C library defines this for functions which it implements |
18309 | to always fail with ENOSYS. Some functions are actually named | |
18310 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 18311 | #if defined __stub_$ac_func || defined __stub___$ac_func |
14abd0fb | 18312 | choke me |
14abd0fb MK |
18313 | #endif |
18314 | ||
bec39cab AC |
18315 | int |
18316 | main () | |
18317 | { | |
4e8d927d | 18318 | return $ac_func (); |
bec39cab AC |
18319 | ; |
18320 | return 0; | |
18321 | } | |
18322 | _ACEOF | |
18323 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18325 | (eval $ac_link) 2>conftest.er1 | |
18326 | ac_status=$? | |
18327 | grep -v '^ *+' conftest.er1 >conftest.err | |
18328 | rm -f conftest.er1 | |
18329 | cat conftest.err >&5 | |
18330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18331 | (exit $ac_status); } && | |
121ce6e5 | 18332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18334 | (eval $ac_try) 2>&5 | |
18335 | ac_status=$? | |
18336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18337 | (exit $ac_status); }; } && | |
18338 | { ac_try='test -s conftest$ac_exeext' | |
18339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18340 | (eval $ac_try) 2>&5 | |
18341 | ac_status=$? | |
18342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18343 | (exit $ac_status); }; }; then | |
18344 | eval "$as_ac_var=yes" | |
18345 | else | |
18346 | echo "$as_me: failed program was:" >&5 | |
18347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18348 | ||
4e8d927d | 18349 | eval "$as_ac_var=no" |
bec39cab | 18350 | fi |
4e8d927d | 18351 | |
bec39cab AC |
18352 | rm -f conftest.err conftest.$ac_objext \ |
18353 | conftest$ac_exeext conftest.$ac_ext | |
18354 | fi | |
4e8d927d DJ |
18355 | ac_res=`eval echo '${'$as_ac_var'}'` |
18356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18357 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
18358 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18359 | cat >>confdefs.h <<_ACEOF | |
18360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18361 | _ACEOF | |
7be570e7 | 18362 | |
7be570e7 JM |
18363 | fi |
18364 | done | |
18365 | ||
a3828db0 | 18366 | if test "x$ac_cv_func_fork" = xyes; then |
4e8d927d DJ |
18367 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
18368 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
a3828db0 MK |
18369 | if test "${ac_cv_func_fork_works+set}" = set; then |
18370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18371 | else | |
18372 | if test "$cross_compiling" = yes; then | |
18373 | ac_cv_func_fork_works=cross | |
18374 | else | |
18375 | cat >conftest.$ac_ext <<_ACEOF | |
121ce6e5 DJ |
18376 | /* confdefs.h. */ |
18377 | _ACEOF | |
18378 | cat confdefs.h >>conftest.$ac_ext | |
18379 | cat >>conftest.$ac_ext <<_ACEOF | |
18380 | /* end confdefs.h. */ | |
18381 | $ac_includes_default | |
18382 | int | |
18383 | main () | |
18384 | { | |
18385 | ||
18386 | /* By Ruediger Kuhlmann. */ | |
4e8d927d | 18387 | return fork () < 0; |
121ce6e5 DJ |
18388 | |
18389 | ; | |
18390 | return 0; | |
18391 | } | |
a3828db0 MK |
18392 | _ACEOF |
18393 | rm -f conftest$ac_exeext | |
18394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18395 | (eval $ac_link) 2>&5 | |
18396 | ac_status=$? | |
18397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18398 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18400 | (eval $ac_try) 2>&5 | |
18401 | ac_status=$? | |
18402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18403 | (exit $ac_status); }; }; then | |
18404 | ac_cv_func_fork_works=yes | |
18405 | else | |
18406 | echo "$as_me: program exited with status $ac_status" >&5 | |
18407 | echo "$as_me: failed program was:" >&5 | |
18408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 18409 | |
a3828db0 MK |
18410 | ( exit $ac_status ) |
18411 | ac_cv_func_fork_works=no | |
18412 | fi | |
4e8d927d | 18413 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 | 18414 | fi |
4e8d927d DJ |
18415 | |
18416 | ||
a3828db0 | 18417 | fi |
4e8d927d DJ |
18418 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
18419 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
a3828db0 MK |
18420 | |
18421 | else | |
18422 | ac_cv_func_fork_works=$ac_cv_func_fork | |
18423 | fi | |
18424 | if test "x$ac_cv_func_fork_works" = xcross; then | |
18425 | case $host in | |
18426 | *-*-amigaos* | *-*-msdosdjgpp*) | |
18427 | # Override, as these systems have only a dummy fork() stub | |
18428 | ac_cv_func_fork_works=no | |
18429 | ;; | |
18430 | *) | |
18431 | ac_cv_func_fork_works=yes | |
18432 | ;; | |
18433 | esac | |
18434 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
18435 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
18436 | fi | |
18437 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
18438 | if test "x$ac_cv_func_vfork" = xyes; then | |
4e8d927d DJ |
18439 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
18440 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
a3828db0 | 18441 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 18442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
18443 | else |
18444 | if test "$cross_compiling" = yes; then | |
18445 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
18446 | else |
18447 | cat >conftest.$ac_ext <<_ACEOF | |
18448 | /* confdefs.h. */ | |
18449 | _ACEOF | |
18450 | cat confdefs.h >>conftest.$ac_ext | |
18451 | cat >>conftest.$ac_ext <<_ACEOF | |
18452 | /* end confdefs.h. */ | |
a3828db0 | 18453 | /* Thanks to Paul Eggert for this test. */ |
4e8d927d | 18454 | $ac_includes_default |
a3828db0 | 18455 | #include <sys/wait.h> |
a3828db0 MK |
18456 | #if HAVE_VFORK_H |
18457 | # include <vfork.h> | |
bec39cab | 18458 | #endif |
a3828db0 MK |
18459 | /* On some sparc systems, changes by the child to local and incoming |
18460 | argument registers are propagated back to the parent. The compiler | |
18461 | is told about this with #include <vfork.h>, but some compilers | |
18462 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
18463 | static variable whose address is put into a register that is | |
18464 | clobbered by the vfork. */ | |
18465 | static void | |
bec39cab | 18466 | #ifdef __cplusplus |
a3828db0 MK |
18467 | sparc_address_test (int arg) |
18468 | # else | |
18469 | sparc_address_test (arg) int arg; | |
c906108c | 18470 | #endif |
a3828db0 MK |
18471 | { |
18472 | static pid_t child; | |
18473 | if (!child) { | |
18474 | child = vfork (); | |
18475 | if (child < 0) { | |
18476 | perror ("vfork"); | |
18477 | _exit(2); | |
18478 | } | |
18479 | if (!child) { | |
18480 | arg = getpid(); | |
18481 | write(-1, "", 0); | |
18482 | _exit (arg); | |
18483 | } | |
18484 | } | |
18485 | } | |
97bf5e38 | 18486 | |
bec39cab AC |
18487 | int |
18488 | main () | |
18489 | { | |
a3828db0 MK |
18490 | pid_t parent = getpid (); |
18491 | pid_t child; | |
18492 | ||
18493 | sparc_address_test (0); | |
18494 | ||
18495 | child = vfork (); | |
18496 | ||
18497 | if (child == 0) { | |
18498 | /* Here is another test for sparc vfork register problems. This | |
18499 | test uses lots of local variables, at least as many local | |
18500 | variables as main has allocated so far including compiler | |
18501 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
18502 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
18503 | reuse the register of parent for one of the local variables, | |
18504 | since it will think that parent can't possibly be used any more | |
18505 | in this routine. Assigning to the local variable will thus | |
18506 | munge parent in the parent process. */ | |
18507 | pid_t | |
18508 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
18509 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
18510 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
18511 | use the same hardware register for all 8 local variables. */ | |
18512 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
18513 | || p != p5 || p != p6 || p != p7) | |
18514 | _exit(1); | |
18515 | ||
18516 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
18517 | from child file descriptors. If the child closes a descriptor | |
18518 | before it execs or exits, this munges the parent's descriptor | |
18519 | as well. Test for this by closing stdout in the child. */ | |
18520 | _exit(close(fileno(stdout)) != 0); | |
18521 | } else { | |
18522 | int status; | |
18523 | struct stat st; | |
18524 | ||
18525 | while (wait(&status) != child) | |
18526 | ; | |
4e8d927d | 18527 | return ( |
a3828db0 MK |
18528 | /* Was there some problem with vforking? */ |
18529 | child < 0 | |
18530 | ||
18531 | /* Did the child fail? (This shouldn't happen.) */ | |
18532 | || status | |
18533 | ||
18534 | /* Did the vfork/compiler bug occur? */ | |
18535 | || parent != getpid() | |
18536 | ||
18537 | /* Did the file descriptor bug occur? */ | |
18538 | || fstat(fileno(stdout), &st) != 0 | |
18539 | ); | |
18540 | } | |
bec39cab AC |
18541 | } |
18542 | _ACEOF | |
a3828db0 | 18543 | rm -f conftest$ac_exeext |
bec39cab | 18544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 18545 | (eval $ac_link) 2>&5 |
bec39cab AC |
18546 | ac_status=$? |
18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 18548 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
18549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18550 | (eval $ac_try) 2>&5 | |
18551 | ac_status=$? | |
18552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18553 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18554 | ac_cv_func_vfork_works=yes |
18555 | else | |
18556 | echo "$as_me: program exited with status $ac_status" >&5 | |
18557 | echo "$as_me: failed program was:" >&5 | |
18558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18559 | ||
18560 | ( exit $ac_status ) | |
18561 | ac_cv_func_vfork_works=no | |
18562 | fi | |
4e8d927d | 18563 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 | 18564 | fi |
4e8d927d DJ |
18565 | |
18566 | ||
a3828db0 | 18567 | fi |
4e8d927d DJ |
18568 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
18569 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
a3828db0 MK |
18570 | |
18571 | fi; | |
18572 | if test "x$ac_cv_func_fork_works" = xcross; then | |
18573 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
18574 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
18575 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
18576 | fi | |
18577 | ||
18578 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
18579 | ||
18580 | cat >>confdefs.h <<\_ACEOF | |
18581 | #define HAVE_WORKING_VFORK 1 | |
18582 | _ACEOF | |
18583 | ||
bec39cab | 18584 | else |
bec39cab | 18585 | |
a3828db0 MK |
18586 | cat >>confdefs.h <<\_ACEOF |
18587 | #define vfork fork | |
18588 | _ACEOF | |
18589 | ||
bec39cab | 18590 | fi |
a3828db0 MK |
18591 | if test "x$ac_cv_func_fork_works" = xyes; then |
18592 | ||
18593 | cat >>confdefs.h <<\_ACEOF | |
18594 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 18595 | _ACEOF |
c906108c | 18596 | |
c906108c SS |
18597 | fi |
18598 | ||
bec39cab AC |
18599 | |
18600 | ||
a3828db0 | 18601 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 18602 | do |
bec39cab | 18603 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
18604 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18605 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18606 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
18607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18608 | else | |
18609 | cat >conftest.$ac_ext <<_ACEOF | |
18610 | /* confdefs.h. */ | |
18611 | _ACEOF | |
18612 | cat confdefs.h >>conftest.$ac_ext | |
18613 | cat >>conftest.$ac_ext <<_ACEOF | |
18614 | /* end confdefs.h. */ | |
18615 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18616 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18617 | #define $ac_func innocuous_$ac_func | |
18618 | ||
d3ea6809 MM |
18619 | /* System header to define __stub macros and hopefully few prototypes, |
18620 | which can conflict with char $ac_func (); below. | |
18621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18622 | <limits.h> exists even on freestanding compilers. */ | |
18623 | ||
18624 | #ifdef __STDC__ | |
18625 | # include <limits.h> | |
18626 | #else | |
18627 | # include <assert.h> | |
18628 | #endif | |
18629 | ||
18630 | #undef $ac_func | |
18631 | ||
4e8d927d DJ |
18632 | /* Override any GCC internal prototype to avoid an error. |
18633 | Use char because int might match the return type of a GCC | |
18634 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
18635 | #ifdef __cplusplus |
18636 | extern "C" | |
d3ea6809 | 18637 | #endif |
d3ea6809 MM |
18638 | char $ac_func (); |
18639 | /* The GNU C library defines this for functions which it implements | |
18640 | to always fail with ENOSYS. Some functions are actually named | |
18641 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 18642 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d3ea6809 | 18643 | choke me |
d3ea6809 MM |
18644 | #endif |
18645 | ||
18646 | int | |
18647 | main () | |
18648 | { | |
4e8d927d | 18649 | return $ac_func (); |
d3ea6809 MM |
18650 | ; |
18651 | return 0; | |
18652 | } | |
18653 | _ACEOF | |
18654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18655 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18656 | (eval $ac_link) 2>conftest.er1 | |
18657 | ac_status=$? | |
18658 | grep -v '^ *+' conftest.er1 >conftest.err | |
18659 | rm -f conftest.er1 | |
18660 | cat conftest.err >&5 | |
18661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18662 | (exit $ac_status); } && | |
121ce6e5 | 18663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d3ea6809 MM |
18664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18665 | (eval $ac_try) 2>&5 | |
18666 | ac_status=$? | |
18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18668 | (exit $ac_status); }; } && | |
18669 | { ac_try='test -s conftest$ac_exeext' | |
18670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18671 | (eval $ac_try) 2>&5 | |
18672 | ac_status=$? | |
18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18674 | (exit $ac_status); }; }; then | |
18675 | eval "$as_ac_var=yes" | |
18676 | else | |
18677 | echo "$as_me: failed program was:" >&5 | |
18678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18679 | ||
4e8d927d | 18680 | eval "$as_ac_var=no" |
d3ea6809 | 18681 | fi |
4e8d927d | 18682 | |
d3ea6809 MM |
18683 | rm -f conftest.err conftest.$ac_objext \ |
18684 | conftest$ac_exeext conftest.$ac_ext | |
18685 | fi | |
4e8d927d DJ |
18686 | ac_res=`eval echo '${'$as_ac_var'}'` |
18687 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18688 | echo "${ECHO_T}$ac_res" >&6; } | |
d3ea6809 MM |
18689 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18690 | cat >>confdefs.h <<_ACEOF | |
18691 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18692 | _ACEOF | |
18693 | ||
18694 | fi | |
18695 | done | |
18696 | ||
18697 | ||
18698 | ||
18699 | for ac_func in getuid getgid | |
18700 | do | |
18701 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
18702 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18703 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18704 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
d3ea6809 MM |
18705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18706 | else | |
18707 | cat >conftest.$ac_ext <<_ACEOF | |
18708 | /* confdefs.h. */ | |
18709 | _ACEOF | |
18710 | cat confdefs.h >>conftest.$ac_ext | |
18711 | cat >>conftest.$ac_ext <<_ACEOF | |
18712 | /* end confdefs.h. */ | |
18713 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18715 | #define $ac_func innocuous_$ac_func | |
18716 | ||
97bf5e38 | 18717 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18718 | which can conflict with char $ac_func (); below. |
18719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18720 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 18721 | |
bec39cab AC |
18722 | #ifdef __STDC__ |
18723 | # include <limits.h> | |
18724 | #else | |
18725 | # include <assert.h> | |
18726 | #endif | |
97bf5e38 | 18727 | |
bec39cab AC |
18728 | #undef $ac_func |
18729 | ||
4e8d927d DJ |
18730 | /* Override any GCC internal prototype to avoid an error. |
18731 | Use char because int might match the return type of a GCC | |
18732 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
18733 | #ifdef __cplusplus |
18734 | extern "C" | |
bec39cab | 18735 | #endif |
bec39cab | 18736 | char $ac_func (); |
97bf5e38 MK |
18737 | /* The GNU C library defines this for functions which it implements |
18738 | to always fail with ENOSYS. Some functions are actually named | |
18739 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 18740 | #if defined __stub_$ac_func || defined __stub___$ac_func |
97bf5e38 | 18741 | choke me |
c906108c | 18742 | #endif |
97bf5e38 | 18743 | |
bec39cab AC |
18744 | int |
18745 | main () | |
18746 | { | |
4e8d927d | 18747 | return $ac_func (); |
bec39cab AC |
18748 | ; |
18749 | return 0; | |
18750 | } | |
18751 | _ACEOF | |
18752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18754 | (eval $ac_link) 2>conftest.er1 | |
18755 | ac_status=$? | |
18756 | grep -v '^ *+' conftest.er1 >conftest.err | |
18757 | rm -f conftest.er1 | |
18758 | cat conftest.err >&5 | |
18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18760 | (exit $ac_status); } && | |
121ce6e5 | 18761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18763 | (eval $ac_try) 2>&5 | |
18764 | ac_status=$? | |
18765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18766 | (exit $ac_status); }; } && | |
18767 | { ac_try='test -s conftest$ac_exeext' | |
18768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18769 | (eval $ac_try) 2>&5 | |
18770 | ac_status=$? | |
18771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18772 | (exit $ac_status); }; }; then | |
18773 | eval "$as_ac_var=yes" | |
18774 | else | |
18775 | echo "$as_me: failed program was:" >&5 | |
18776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18777 | ||
4e8d927d | 18778 | eval "$as_ac_var=no" |
bec39cab | 18779 | fi |
4e8d927d | 18780 | |
bec39cab AC |
18781 | rm -f conftest.err conftest.$ac_objext \ |
18782 | conftest$ac_exeext conftest.$ac_ext | |
18783 | fi | |
4e8d927d DJ |
18784 | ac_res=`eval echo '${'$as_ac_var'}'` |
18785 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18786 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
18787 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18788 | cat >>confdefs.h <<_ACEOF | |
18789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18790 | _ACEOF | |
c906108c | 18791 | |
c906108c | 18792 | fi |
97bf5e38 | 18793 | done |
c906108c | 18794 | |
bec39cab | 18795 | |
a3828db0 | 18796 | for ac_func in poll |
97bf5e38 | 18797 | do |
bec39cab | 18798 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
18799 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18800 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18801 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
18802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18803 | else | |
18804 | cat >conftest.$ac_ext <<_ACEOF | |
18805 | /* confdefs.h. */ | |
18806 | _ACEOF | |
18807 | cat confdefs.h >>conftest.$ac_ext | |
18808 | cat >>conftest.$ac_ext <<_ACEOF | |
18809 | /* end confdefs.h. */ | |
18810 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18811 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18812 | #define $ac_func innocuous_$ac_func | |
18813 | ||
97bf5e38 | 18814 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18815 | which can conflict with char $ac_func (); below. |
18816 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18817 | <limits.h> exists even on freestanding compilers. */ | |
18818 | ||
18819 | #ifdef __STDC__ | |
18820 | # include <limits.h> | |
18821 | #else | |
18822 | # include <assert.h> | |
18823 | #endif | |
c906108c | 18824 | |
bec39cab | 18825 | #undef $ac_func |
97bf5e38 | 18826 | |
4e8d927d DJ |
18827 | /* Override any GCC internal prototype to avoid an error. |
18828 | Use char because int might match the return type of a GCC | |
18829 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
18830 | #ifdef __cplusplus |
18831 | extern "C" | |
bec39cab | 18832 | #endif |
bec39cab | 18833 | char $ac_func (); |
97bf5e38 MK |
18834 | /* The GNU C library defines this for functions which it implements |
18835 | to always fail with ENOSYS. Some functions are actually named | |
18836 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 18837 | #if defined __stub_$ac_func || defined __stub___$ac_func |
97bf5e38 | 18838 | choke me |
c906108c | 18839 | #endif |
97bf5e38 | 18840 | |
bec39cab AC |
18841 | int |
18842 | main () | |
18843 | { | |
4e8d927d | 18844 | return $ac_func (); |
bec39cab AC |
18845 | ; |
18846 | return 0; | |
18847 | } | |
18848 | _ACEOF | |
18849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18851 | (eval $ac_link) 2>conftest.er1 | |
18852 | ac_status=$? | |
18853 | grep -v '^ *+' conftest.er1 >conftest.err | |
18854 | rm -f conftest.er1 | |
18855 | cat conftest.err >&5 | |
18856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18857 | (exit $ac_status); } && | |
121ce6e5 | 18858 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18860 | (eval $ac_try) 2>&5 | |
18861 | ac_status=$? | |
18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18863 | (exit $ac_status); }; } && | |
18864 | { ac_try='test -s conftest$ac_exeext' | |
18865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18866 | (eval $ac_try) 2>&5 | |
18867 | ac_status=$? | |
18868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18869 | (exit $ac_status); }; }; then | |
18870 | eval "$as_ac_var=yes" | |
18871 | else | |
18872 | echo "$as_me: failed program was:" >&5 | |
18873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18874 | ||
4e8d927d | 18875 | eval "$as_ac_var=no" |
bec39cab | 18876 | fi |
4e8d927d | 18877 | |
bec39cab AC |
18878 | rm -f conftest.err conftest.$ac_objext \ |
18879 | conftest$ac_exeext conftest.$ac_ext | |
18880 | fi | |
4e8d927d DJ |
18881 | ac_res=`eval echo '${'$as_ac_var'}'` |
18882 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18883 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
18884 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18885 | cat >>confdefs.h <<_ACEOF | |
18886 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18887 | _ACEOF | |
c906108c | 18888 | |
c906108c | 18889 | fi |
97bf5e38 | 18890 | done |
c906108c | 18891 | |
bec39cab | 18892 | |
a3828db0 | 18893 | for ac_func in pread64 |
97bf5e38 | 18894 | do |
bec39cab | 18895 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
18896 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18897 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18898 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
18899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18900 | else | |
18901 | cat >conftest.$ac_ext <<_ACEOF | |
18902 | /* confdefs.h. */ | |
18903 | _ACEOF | |
18904 | cat confdefs.h >>conftest.$ac_ext | |
18905 | cat >>conftest.$ac_ext <<_ACEOF | |
18906 | /* end confdefs.h. */ | |
18907 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18908 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18909 | #define $ac_func innocuous_$ac_func | |
18910 | ||
97bf5e38 | 18911 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18912 | which can conflict with char $ac_func (); below. |
18913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18914 | <limits.h> exists even on freestanding compilers. */ | |
18915 | ||
18916 | #ifdef __STDC__ | |
18917 | # include <limits.h> | |
18918 | #else | |
18919 | # include <assert.h> | |
18920 | #endif | |
c906108c | 18921 | |
bec39cab | 18922 | #undef $ac_func |
97bf5e38 | 18923 | |
4e8d927d DJ |
18924 | /* Override any GCC internal prototype to avoid an error. |
18925 | Use char because int might match the return type of a GCC | |
18926 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
18927 | #ifdef __cplusplus |
18928 | extern "C" | |
bec39cab | 18929 | #endif |
bec39cab | 18930 | char $ac_func (); |
97bf5e38 MK |
18931 | /* The GNU C library defines this for functions which it implements |
18932 | to always fail with ENOSYS. Some functions are actually named | |
18933 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 18934 | #if defined __stub_$ac_func || defined __stub___$ac_func |
97bf5e38 | 18935 | choke me |
c906108c | 18936 | #endif |
97bf5e38 | 18937 | |
bec39cab AC |
18938 | int |
18939 | main () | |
18940 | { | |
4e8d927d | 18941 | return $ac_func (); |
bec39cab AC |
18942 | ; |
18943 | return 0; | |
18944 | } | |
18945 | _ACEOF | |
18946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18948 | (eval $ac_link) 2>conftest.er1 | |
18949 | ac_status=$? | |
18950 | grep -v '^ *+' conftest.er1 >conftest.err | |
18951 | rm -f conftest.er1 | |
18952 | cat conftest.err >&5 | |
18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); } && | |
121ce6e5 | 18955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18957 | (eval $ac_try) 2>&5 | |
18958 | ac_status=$? | |
18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18960 | (exit $ac_status); }; } && | |
18961 | { ac_try='test -s conftest$ac_exeext' | |
18962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18963 | (eval $ac_try) 2>&5 | |
18964 | ac_status=$? | |
18965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18966 | (exit $ac_status); }; }; then | |
18967 | eval "$as_ac_var=yes" | |
18968 | else | |
18969 | echo "$as_me: failed program was:" >&5 | |
18970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18971 | ||
4e8d927d | 18972 | eval "$as_ac_var=no" |
bec39cab | 18973 | fi |
4e8d927d | 18974 | |
bec39cab AC |
18975 | rm -f conftest.err conftest.$ac_objext \ |
18976 | conftest$ac_exeext conftest.$ac_ext | |
18977 | fi | |
4e8d927d DJ |
18978 | ac_res=`eval echo '${'$as_ac_var'}'` |
18979 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18980 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
18981 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18982 | cat >>confdefs.h <<_ACEOF | |
18983 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18984 | _ACEOF | |
c906108c | 18985 | |
c906108c | 18986 | fi |
97bf5e38 | 18987 | done |
c906108c | 18988 | |
bec39cab | 18989 | |
a3828db0 | 18990 | for ac_func in sbrk |
b757528f | 18991 | do |
bec39cab | 18992 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
18993 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18994 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18995 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
18996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18997 | else | |
18998 | cat >conftest.$ac_ext <<_ACEOF | |
18999 | /* confdefs.h. */ | |
19000 | _ACEOF | |
19001 | cat confdefs.h >>conftest.$ac_ext | |
19002 | cat >>conftest.$ac_ext <<_ACEOF | |
19003 | /* end confdefs.h. */ | |
19004 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19005 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19006 | #define $ac_func innocuous_$ac_func | |
19007 | ||
b757528f | 19008 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19009 | which can conflict with char $ac_func (); below. |
19010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19011 | <limits.h> exists even on freestanding compilers. */ | |
19012 | ||
19013 | #ifdef __STDC__ | |
19014 | # include <limits.h> | |
19015 | #else | |
19016 | # include <assert.h> | |
19017 | #endif | |
b757528f | 19018 | |
bec39cab | 19019 | #undef $ac_func |
b757528f | 19020 | |
4e8d927d DJ |
19021 | /* Override any GCC internal prototype to avoid an error. |
19022 | Use char because int might match the return type of a GCC | |
19023 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
19024 | #ifdef __cplusplus |
19025 | extern "C" | |
bec39cab | 19026 | #endif |
bec39cab | 19027 | char $ac_func (); |
b757528f JJ |
19028 | /* The GNU C library defines this for functions which it implements |
19029 | to always fail with ENOSYS. Some functions are actually named | |
19030 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19031 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b757528f | 19032 | choke me |
b757528f JJ |
19033 | #endif |
19034 | ||
bec39cab AC |
19035 | int |
19036 | main () | |
19037 | { | |
4e8d927d | 19038 | return $ac_func (); |
bec39cab AC |
19039 | ; |
19040 | return 0; | |
19041 | } | |
19042 | _ACEOF | |
19043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19045 | (eval $ac_link) 2>conftest.er1 | |
19046 | ac_status=$? | |
19047 | grep -v '^ *+' conftest.er1 >conftest.err | |
19048 | rm -f conftest.er1 | |
19049 | cat conftest.err >&5 | |
19050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19051 | (exit $ac_status); } && | |
121ce6e5 | 19052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19054 | (eval $ac_try) 2>&5 | |
19055 | ac_status=$? | |
19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); }; } && | |
19058 | { ac_try='test -s conftest$ac_exeext' | |
19059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19060 | (eval $ac_try) 2>&5 | |
19061 | ac_status=$? | |
19062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19063 | (exit $ac_status); }; }; then | |
19064 | eval "$as_ac_var=yes" | |
19065 | else | |
19066 | echo "$as_me: failed program was:" >&5 | |
19067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19068 | ||
4e8d927d | 19069 | eval "$as_ac_var=no" |
bec39cab | 19070 | fi |
4e8d927d | 19071 | |
bec39cab AC |
19072 | rm -f conftest.err conftest.$ac_objext \ |
19073 | conftest$ac_exeext conftest.$ac_ext | |
19074 | fi | |
4e8d927d DJ |
19075 | ac_res=`eval echo '${'$as_ac_var'}'` |
19076 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19077 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
19078 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19079 | cat >>confdefs.h <<_ACEOF | |
19080 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19081 | _ACEOF | |
b757528f | 19082 | |
b757528f JJ |
19083 | fi |
19084 | done | |
19085 | ||
bec39cab | 19086 | |
a3828db0 MK |
19087 | |
19088 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 19089 | do |
bec39cab | 19090 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
19091 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19092 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19093 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
19094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19095 | else | |
19096 | cat >conftest.$ac_ext <<_ACEOF | |
19097 | /* confdefs.h. */ | |
19098 | _ACEOF | |
19099 | cat confdefs.h >>conftest.$ac_ext | |
19100 | cat >>conftest.$ac_ext <<_ACEOF | |
19101 | /* end confdefs.h. */ | |
19102 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19103 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19104 | #define $ac_func innocuous_$ac_func | |
19105 | ||
bcb3dc3d | 19106 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19107 | which can conflict with char $ac_func (); below. |
19108 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19109 | <limits.h> exists even on freestanding compilers. */ | |
19110 | ||
19111 | #ifdef __STDC__ | |
19112 | # include <limits.h> | |
19113 | #else | |
19114 | # include <assert.h> | |
19115 | #endif | |
bcb3dc3d | 19116 | |
bec39cab | 19117 | #undef $ac_func |
bcb3dc3d | 19118 | |
4e8d927d DJ |
19119 | /* Override any GCC internal prototype to avoid an error. |
19120 | Use char because int might match the return type of a GCC | |
19121 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
19122 | #ifdef __cplusplus |
19123 | extern "C" | |
bec39cab | 19124 | #endif |
bec39cab | 19125 | char $ac_func (); |
bcb3dc3d MK |
19126 | /* The GNU C library defines this for functions which it implements |
19127 | to always fail with ENOSYS. Some functions are actually named | |
19128 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19129 | #if defined __stub_$ac_func || defined __stub___$ac_func |
bcb3dc3d | 19130 | choke me |
bcb3dc3d MK |
19131 | #endif |
19132 | ||
bec39cab AC |
19133 | int |
19134 | main () | |
19135 | { | |
4e8d927d | 19136 | return $ac_func (); |
bec39cab AC |
19137 | ; |
19138 | return 0; | |
19139 | } | |
19140 | _ACEOF | |
19141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19143 | (eval $ac_link) 2>conftest.er1 | |
19144 | ac_status=$? | |
19145 | grep -v '^ *+' conftest.er1 >conftest.err | |
19146 | rm -f conftest.er1 | |
19147 | cat conftest.err >&5 | |
19148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19149 | (exit $ac_status); } && | |
121ce6e5 | 19150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19152 | (eval $ac_try) 2>&5 | |
19153 | ac_status=$? | |
19154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19155 | (exit $ac_status); }; } && | |
19156 | { ac_try='test -s conftest$ac_exeext' | |
19157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19158 | (eval $ac_try) 2>&5 | |
19159 | ac_status=$? | |
19160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19161 | (exit $ac_status); }; }; then | |
19162 | eval "$as_ac_var=yes" | |
19163 | else | |
19164 | echo "$as_me: failed program was:" >&5 | |
19165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19166 | ||
4e8d927d | 19167 | eval "$as_ac_var=no" |
bec39cab | 19168 | fi |
4e8d927d | 19169 | |
bec39cab AC |
19170 | rm -f conftest.err conftest.$ac_objext \ |
19171 | conftest$ac_exeext conftest.$ac_ext | |
19172 | fi | |
4e8d927d DJ |
19173 | ac_res=`eval echo '${'$as_ac_var'}'` |
19174 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19175 | echo "${ECHO_T}$ac_res" >&6; } | |
bec39cab AC |
19176 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19177 | cat >>confdefs.h <<_ACEOF | |
19178 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19179 | _ACEOF | |
bcb3dc3d | 19180 | |
bcb3dc3d MK |
19181 | fi |
19182 | done | |
19183 | ||
bec39cab | 19184 | |
a3828db0 MK |
19185 | |
19186 | ||
19187 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 19188 | do |
bec39cab | 19189 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4e8d927d DJ |
19190 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19191 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19192 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
19193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19194 | else | |
19195 | cat >conftest.$ac_ext <<_ACEOF | |
19196 | /* confdefs.h. */ | |
19197 | _ACEOF | |
19198 | cat confdefs.h >>conftest.$ac_ext | |
19199 | cat >>conftest.$ac_ext <<_ACEOF | |
19200 | /* end confdefs.h. */ | |
19201 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19202 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19203 | #define $ac_func innocuous_$ac_func | |
19204 | ||
8b9cf735 | 19205 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
19206 | which can conflict with char $ac_func (); below. |
19207 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19208 | <limits.h> exists even on freestanding compilers. */ | |
19209 | ||
19210 | #ifdef __STDC__ | |
19211 | # include <limits.h> | |
19212 | #else | |
19213 | # include <assert.h> | |
19214 | #endif | |
8b9cf735 | 19215 | |
bec39cab | 19216 | #undef $ac_func |
8b9cf735 | 19217 | |
4e8d927d DJ |
19218 | /* Override any GCC internal prototype to avoid an error. |
19219 | Use char because int might match the return type of a GCC | |
19220 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19221 | #ifdef __cplusplus |
19222 | extern "C" | |
a3828db0 | 19223 | #endif |
a3828db0 MK |
19224 | char $ac_func (); |
19225 | /* The GNU C library defines this for functions which it implements | |
19226 | to always fail with ENOSYS. Some functions are actually named | |
19227 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19228 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a3828db0 | 19229 | choke me |
a3828db0 MK |
19230 | #endif |
19231 | ||
bec39cab AC |
19232 | int |
19233 | main () | |
19234 | { | |
4e8d927d | 19235 | return $ac_func (); |
bec39cab AC |
19236 | ; |
19237 | return 0; | |
19238 | } | |
19239 | _ACEOF | |
a3828db0 MK |
19240 | rm -f conftest.$ac_objext conftest$ac_exeext |
19241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19242 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19243 | ac_status=$? |
19244 | grep -v '^ *+' conftest.er1 >conftest.err | |
19245 | rm -f conftest.er1 | |
19246 | cat conftest.err >&5 | |
19247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19248 | (exit $ac_status); } && | |
121ce6e5 | 19249 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19251 | (eval $ac_try) 2>&5 | |
19252 | ac_status=$? | |
19253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19254 | (exit $ac_status); }; } && | |
a3828db0 | 19255 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19257 | (eval $ac_try) 2>&5 | |
19258 | ac_status=$? | |
19259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19260 | (exit $ac_status); }; }; then | |
a3828db0 | 19261 | eval "$as_ac_var=yes" |
086ec9eb | 19262 | else |
bec39cab AC |
19263 | echo "$as_me: failed program was:" >&5 |
19264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19265 | ||
4e8d927d | 19266 | eval "$as_ac_var=no" |
a3828db0 | 19267 | fi |
4e8d927d | 19268 | |
a3828db0 MK |
19269 | rm -f conftest.err conftest.$ac_objext \ |
19270 | conftest$ac_exeext conftest.$ac_ext | |
19271 | fi | |
4e8d927d DJ |
19272 | ac_res=`eval echo '${'$as_ac_var'}'` |
19273 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19274 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
19275 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19276 | cat >>confdefs.h <<_ACEOF | |
19277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19278 | _ACEOF | |
19279 | ||
086ec9eb | 19280 | fi |
a3828db0 MK |
19281 | done |
19282 | ||
19283 | ||
19284 | for ac_func in socketpair | |
19285 | do | |
19286 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
19287 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19289 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
a3828db0 MK |
19290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19291 | else | |
19292 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
19293 | /* confdefs.h. */ |
19294 | _ACEOF | |
19295 | cat confdefs.h >>conftest.$ac_ext | |
19296 | cat >>conftest.$ac_ext <<_ACEOF | |
19297 | /* end confdefs.h. */ | |
a3828db0 MK |
19298 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19299 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19300 | #define $ac_func innocuous_$ac_func | |
19301 | ||
19302 | /* System header to define __stub macros and hopefully few prototypes, | |
19303 | which can conflict with char $ac_func (); below. | |
19304 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19305 | <limits.h> exists even on freestanding compilers. */ | |
19306 | ||
19307 | #ifdef __STDC__ | |
19308 | # include <limits.h> | |
19309 | #else | |
19310 | # include <assert.h> | |
19311 | #endif | |
19312 | ||
19313 | #undef $ac_func | |
19314 | ||
4e8d927d DJ |
19315 | /* Override any GCC internal prototype to avoid an error. |
19316 | Use char because int might match the return type of a GCC | |
19317 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19318 | #ifdef __cplusplus |
19319 | extern "C" | |
a3828db0 | 19320 | #endif |
a3828db0 MK |
19321 | char $ac_func (); |
19322 | /* The GNU C library defines this for functions which it implements | |
19323 | to always fail with ENOSYS. Some functions are actually named | |
19324 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19325 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a3828db0 | 19326 | choke me |
a3828db0 MK |
19327 | #endif |
19328 | ||
bec39cab AC |
19329 | int |
19330 | main () | |
19331 | { | |
4e8d927d | 19332 | return $ac_func (); |
bec39cab AC |
19333 | ; |
19334 | return 0; | |
19335 | } | |
19336 | _ACEOF | |
a3828db0 MK |
19337 | rm -f conftest.$ac_objext conftest$ac_exeext |
19338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19339 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19340 | ac_status=$? |
19341 | grep -v '^ *+' conftest.er1 >conftest.err | |
19342 | rm -f conftest.er1 | |
19343 | cat conftest.err >&5 | |
19344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19345 | (exit $ac_status); } && | |
121ce6e5 | 19346 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19348 | (eval $ac_try) 2>&5 | |
19349 | ac_status=$? | |
19350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19351 | (exit $ac_status); }; } && | |
a3828db0 | 19352 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19354 | (eval $ac_try) 2>&5 | |
19355 | ac_status=$? | |
19356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19357 | (exit $ac_status); }; }; then | |
a3828db0 | 19358 | eval "$as_ac_var=yes" |
086ec9eb | 19359 | else |
bec39cab AC |
19360 | echo "$as_me: failed program was:" >&5 |
19361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19362 | ||
4e8d927d | 19363 | eval "$as_ac_var=no" |
086ec9eb | 19364 | fi |
4e8d927d | 19365 | |
a3828db0 MK |
19366 | rm -f conftest.err conftest.$ac_objext \ |
19367 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 19368 | fi |
4e8d927d DJ |
19369 | ac_res=`eval echo '${'$as_ac_var'}'` |
19370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19371 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
19372 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19373 | cat >>confdefs.h <<_ACEOF | |
19374 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19375 | _ACEOF |
086ec9eb MK |
19376 | |
19377 | fi | |
a3828db0 | 19378 | done |
086ec9eb | 19379 | |
a3828db0 MK |
19380 | |
19381 | for ac_func in syscall | |
19382 | do | |
19383 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
19384 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19385 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19386 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 19387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
19388 | else |
19389 | cat >conftest.$ac_ext <<_ACEOF | |
19390 | /* confdefs.h. */ | |
19391 | _ACEOF | |
19392 | cat confdefs.h >>conftest.$ac_ext | |
19393 | cat >>conftest.$ac_ext <<_ACEOF | |
19394 | /* end confdefs.h. */ | |
a3828db0 MK |
19395 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19397 | #define $ac_func innocuous_$ac_func | |
19398 | ||
19399 | /* System header to define __stub macros and hopefully few prototypes, | |
19400 | which can conflict with char $ac_func (); below. | |
19401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19402 | <limits.h> exists even on freestanding compilers. */ | |
19403 | ||
19404 | #ifdef __STDC__ | |
19405 | # include <limits.h> | |
19406 | #else | |
19407 | # include <assert.h> | |
19408 | #endif | |
19409 | ||
19410 | #undef $ac_func | |
19411 | ||
4e8d927d DJ |
19412 | /* Override any GCC internal prototype to avoid an error. |
19413 | Use char because int might match the return type of a GCC | |
19414 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19415 | #ifdef __cplusplus |
19416 | extern "C" | |
a3828db0 | 19417 | #endif |
a3828db0 MK |
19418 | char $ac_func (); |
19419 | /* The GNU C library defines this for functions which it implements | |
19420 | to always fail with ENOSYS. Some functions are actually named | |
19421 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19422 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a3828db0 | 19423 | choke me |
c906108c | 19424 | #endif |
97bf5e38 | 19425 | |
bec39cab AC |
19426 | int |
19427 | main () | |
97bf5e38 | 19428 | { |
4e8d927d | 19429 | return $ac_func (); |
bec39cab AC |
19430 | ; |
19431 | return 0; | |
97bf5e38 | 19432 | } |
bec39cab | 19433 | _ACEOF |
a3828db0 | 19434 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 19435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 19436 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 19437 | ac_status=$? |
a3828db0 MK |
19438 | grep -v '^ *+' conftest.er1 >conftest.err |
19439 | rm -f conftest.er1 | |
19440 | cat conftest.err >&5 | |
bec39cab | 19441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 19442 | (exit $ac_status); } && |
121ce6e5 | 19443 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a3828db0 MK |
19444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19445 | (eval $ac_try) 2>&5 | |
19446 | ac_status=$? | |
19447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19448 | (exit $ac_status); }; } && | |
19449 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
19450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19451 | (eval $ac_try) 2>&5 | |
19452 | ac_status=$? | |
19453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19454 | (exit $ac_status); }; }; then | |
a3828db0 | 19455 | eval "$as_ac_var=yes" |
c906108c | 19456 | else |
a3828db0 | 19457 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
19458 | sed 's/^/| /' conftest.$ac_ext >&5 |
19459 | ||
4e8d927d | 19460 | eval "$as_ac_var=no" |
97bf5e38 | 19461 | fi |
4e8d927d | 19462 | |
a3828db0 MK |
19463 | rm -f conftest.err conftest.$ac_objext \ |
19464 | conftest$ac_exeext conftest.$ac_ext | |
19465 | fi | |
4e8d927d DJ |
19466 | ac_res=`eval echo '${'$as_ac_var'}'` |
19467 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19468 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
19469 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19470 | cat >>confdefs.h <<_ACEOF | |
19471 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19472 | _ACEOF |
c906108c SS |
19473 | |
19474 | fi | |
a3828db0 | 19475 | done |
c906108c | 19476 | |
a3828db0 MK |
19477 | |
19478 | for ac_func in ttrace | |
19479 | do | |
19480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
19481 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19483 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab | 19484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 19485 | else |
bec39cab AC |
19486 | cat >conftest.$ac_ext <<_ACEOF |
19487 | /* confdefs.h. */ | |
19488 | _ACEOF | |
19489 | cat confdefs.h >>conftest.$ac_ext | |
19490 | cat >>conftest.$ac_ext <<_ACEOF | |
19491 | /* end confdefs.h. */ | |
a3828db0 MK |
19492 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19494 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 19495 | |
a3828db0 MK |
19496 | /* System header to define __stub macros and hopefully few prototypes, |
19497 | which can conflict with char $ac_func (); below. | |
19498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19499 | <limits.h> exists even on freestanding compilers. */ | |
19500 | ||
19501 | #ifdef __STDC__ | |
19502 | # include <limits.h> | |
19503 | #else | |
19504 | # include <assert.h> | |
19505 | #endif | |
19506 | ||
19507 | #undef $ac_func | |
19508 | ||
4e8d927d DJ |
19509 | /* Override any GCC internal prototype to avoid an error. |
19510 | Use char because int might match the return type of a GCC | |
19511 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19512 | #ifdef __cplusplus |
19513 | extern "C" | |
a3828db0 | 19514 | #endif |
a3828db0 MK |
19515 | char $ac_func (); |
19516 | /* The GNU C library defines this for functions which it implements | |
19517 | to always fail with ENOSYS. Some functions are actually named | |
19518 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19519 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a3828db0 | 19520 | choke me |
a3828db0 | 19521 | #endif |
97bf5e38 | 19522 | |
bec39cab AC |
19523 | int |
19524 | main () | |
19525 | { | |
4e8d927d | 19526 | return $ac_func (); |
bec39cab AC |
19527 | ; |
19528 | return 0; | |
19529 | } | |
19530 | _ACEOF | |
a3828db0 MK |
19531 | rm -f conftest.$ac_objext conftest$ac_exeext |
19532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19533 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19534 | ac_status=$? |
19535 | grep -v '^ *+' conftest.er1 >conftest.err | |
19536 | rm -f conftest.er1 | |
19537 | cat conftest.err >&5 | |
19538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19539 | (exit $ac_status); } && | |
121ce6e5 | 19540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19542 | (eval $ac_try) 2>&5 | |
19543 | ac_status=$? | |
19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19545 | (exit $ac_status); }; } && | |
a3828db0 | 19546 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19548 | (eval $ac_try) 2>&5 | |
19549 | ac_status=$? | |
19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19551 | (exit $ac_status); }; }; then | |
a3828db0 | 19552 | eval "$as_ac_var=yes" |
b83266a0 | 19553 | else |
bec39cab AC |
19554 | echo "$as_me: failed program was:" >&5 |
19555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19556 | ||
4e8d927d | 19557 | eval "$as_ac_var=no" |
b83266a0 | 19558 | fi |
4e8d927d | 19559 | |
a3828db0 MK |
19560 | rm -f conftest.err conftest.$ac_objext \ |
19561 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 19562 | fi |
4e8d927d DJ |
19563 | ac_res=`eval echo '${'$as_ac_var'}'` |
19564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19565 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
19566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19567 | cat >>confdefs.h <<_ACEOF | |
19568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19569 | _ACEOF |
b83266a0 | 19570 | |
97bf5e38 | 19571 | fi |
a3828db0 | 19572 | done |
b83266a0 | 19573 | |
a3828db0 MK |
19574 | |
19575 | for ac_func in wborder | |
19576 | do | |
19577 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4e8d927d DJ |
19578 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19579 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19580 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
bec39cab AC |
19581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19582 | else | |
19583 | cat >conftest.$ac_ext <<_ACEOF | |
19584 | /* confdefs.h. */ | |
19585 | _ACEOF | |
19586 | cat confdefs.h >>conftest.$ac_ext | |
19587 | cat >>conftest.$ac_ext <<_ACEOF | |
19588 | /* end confdefs.h. */ | |
a3828db0 MK |
19589 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19591 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 19592 | |
a3828db0 MK |
19593 | /* System header to define __stub macros and hopefully few prototypes, |
19594 | which can conflict with char $ac_func (); below. | |
19595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19596 | <limits.h> exists even on freestanding compilers. */ | |
19597 | ||
19598 | #ifdef __STDC__ | |
19599 | # include <limits.h> | |
19600 | #else | |
19601 | # include <assert.h> | |
19602 | #endif | |
19603 | ||
19604 | #undef $ac_func | |
19605 | ||
4e8d927d DJ |
19606 | /* Override any GCC internal prototype to avoid an error. |
19607 | Use char because int might match the return type of a GCC | |
19608 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
19609 | #ifdef __cplusplus |
19610 | extern "C" | |
a3828db0 | 19611 | #endif |
a3828db0 MK |
19612 | char $ac_func (); |
19613 | /* The GNU C library defines this for functions which it implements | |
19614 | to always fail with ENOSYS. Some functions are actually named | |
19615 | something starting with __ and the normal name is an alias. */ | |
4e8d927d | 19616 | #if defined __stub_$ac_func || defined __stub___$ac_func |
a3828db0 | 19617 | choke me |
a3828db0 | 19618 | #endif |
97bf5e38 | 19619 | |
bec39cab AC |
19620 | int |
19621 | main () | |
19622 | { | |
4e8d927d | 19623 | return $ac_func (); |
bec39cab AC |
19624 | ; |
19625 | return 0; | |
19626 | } | |
19627 | _ACEOF | |
a3828db0 MK |
19628 | rm -f conftest.$ac_objext conftest$ac_exeext |
19629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19630 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
19631 | ac_status=$? |
19632 | grep -v '^ *+' conftest.er1 >conftest.err | |
19633 | rm -f conftest.er1 | |
19634 | cat conftest.err >&5 | |
19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19636 | (exit $ac_status); } && | |
121ce6e5 | 19637 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19639 | (eval $ac_try) 2>&5 | |
19640 | ac_status=$? | |
19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19642 | (exit $ac_status); }; } && | |
a3828db0 | 19643 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
19644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19645 | (eval $ac_try) 2>&5 | |
19646 | ac_status=$? | |
19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19648 | (exit $ac_status); }; }; then | |
a3828db0 | 19649 | eval "$as_ac_var=yes" |
a4db0f07 | 19650 | else |
bec39cab AC |
19651 | echo "$as_me: failed program was:" >&5 |
19652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19653 | ||
4e8d927d | 19654 | eval "$as_ac_var=no" |
a4db0f07 | 19655 | fi |
4e8d927d | 19656 | |
a3828db0 MK |
19657 | rm -f conftest.err conftest.$ac_objext \ |
19658 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 19659 | fi |
4e8d927d DJ |
19660 | ac_res=`eval echo '${'$as_ac_var'}'` |
19661 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19662 | echo "${ECHO_T}$ac_res" >&6; } | |
a3828db0 MK |
19663 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19664 | cat >>confdefs.h <<_ACEOF | |
19665 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 19666 | _ACEOF |
a4db0f07 RH |
19667 | |
19668 | fi | |
a3828db0 | 19669 | done |
c906108c | 19670 | |
06825bd1 | 19671 | |
a3828db0 MK |
19672 | # Check the return and argument types of ptrace. No canned test for |
19673 | # this, so roll our own. | |
19674 | gdb_ptrace_headers=' | |
19675 | #if HAVE_SYS_TYPES_H | |
19676 | # include <sys/types.h> | |
19677 | #endif | |
19678 | #if HAVE_SYS_PTRACE_H | |
19679 | # include <sys/ptrace.h> | |
19680 | #endif | |
19681 | #if HAVE_UNISTD_H | |
19682 | # include <unistd.h> | |
19683 | #endif | |
19684 | ' | |
19685 | # There is no point in checking if we don't have a prototype. | |
4e8d927d DJ |
19686 | { echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
19687 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6; } | |
a3828db0 | 19688 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
19689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19690 | else | |
19691 | cat >conftest.$ac_ext <<_ACEOF | |
19692 | /* confdefs.h. */ | |
19693 | _ACEOF | |
19694 | cat confdefs.h >>conftest.$ac_ext | |
19695 | cat >>conftest.$ac_ext <<_ACEOF | |
19696 | /* end confdefs.h. */ | |
a3828db0 MK |
19697 | $gdb_ptrace_headers |
19698 | ||
bec39cab AC |
19699 | int |
19700 | main () | |
19701 | { | |
a3828db0 MK |
19702 | #ifndef ptrace |
19703 | char *p = (char *) ptrace; | |
4e8d927d | 19704 | return !p; |
06825bd1 | 19705 | #endif |
a3828db0 | 19706 | |
bec39cab AC |
19707 | ; |
19708 | return 0; | |
19709 | } | |
19710 | _ACEOF | |
19711 | rm -f conftest.$ac_objext | |
19712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19713 | (eval $ac_compile) 2>conftest.er1 | |
19714 | ac_status=$? | |
19715 | grep -v '^ *+' conftest.er1 >conftest.err | |
19716 | rm -f conftest.er1 | |
19717 | cat conftest.err >&5 | |
19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19719 | (exit $ac_status); } && | |
121ce6e5 | 19720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19722 | (eval $ac_try) 2>&5 | |
19723 | ac_status=$? | |
19724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19725 | (exit $ac_status); }; } && | |
19726 | { ac_try='test -s conftest.$ac_objext' | |
19727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19728 | (eval $ac_try) 2>&5 | |
19729 | ac_status=$? | |
19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19731 | (exit $ac_status); }; }; then | |
a3828db0 | 19732 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 19733 | else |
bec39cab AC |
19734 | echo "$as_me: failed program was:" >&5 |
19735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19736 | ||
4e8d927d | 19737 | ac_cv_have_decl_ptrace=no |
06825bd1 | 19738 | fi |
4e8d927d | 19739 | |
bec39cab | 19740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 19741 | fi |
4e8d927d DJ |
19742 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
19743 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6; } | |
a3828db0 | 19744 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 19745 | |
a3828db0 MK |
19746 | cat >>confdefs.h <<_ACEOF |
19747 | #define HAVE_DECL_PTRACE 1 | |
19748 | _ACEOF | |
bec39cab | 19749 | |
bec39cab | 19750 | |
a3828db0 MK |
19751 | else |
19752 | cat >>confdefs.h <<_ACEOF | |
19753 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 19754 | _ACEOF |
06825bd1 | 19755 | |
a3828db0 MK |
19756 | |
19757 | : ${gdb_cv_func_ptrace_ret='int'} | |
19758 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
19759 | ||
06825bd1 MK |
19760 | fi |
19761 | ||
a3828db0 MK |
19762 | |
19763 | # Check return type. | |
4e8d927d DJ |
19764 | { echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
19765 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6; } | |
a3828db0 | 19766 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
19767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19768 | else | |
19769 | cat >conftest.$ac_ext <<_ACEOF | |
19770 | /* confdefs.h. */ | |
19771 | _ACEOF | |
19772 | cat confdefs.h >>conftest.$ac_ext | |
19773 | cat >>conftest.$ac_ext <<_ACEOF | |
19774 | /* end confdefs.h. */ | |
a3828db0 | 19775 | $gdb_ptrace_headers |
bec39cab AC |
19776 | int |
19777 | main () | |
19778 | { | |
a3828db0 | 19779 | extern int ptrace (); |
bec39cab AC |
19780 | ; |
19781 | return 0; | |
19782 | } | |
19783 | _ACEOF | |
19784 | rm -f conftest.$ac_objext | |
19785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19786 | (eval $ac_compile) 2>conftest.er1 | |
19787 | ac_status=$? | |
19788 | grep -v '^ *+' conftest.er1 >conftest.err | |
19789 | rm -f conftest.er1 | |
19790 | cat conftest.err >&5 | |
19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19792 | (exit $ac_status); } && | |
121ce6e5 | 19793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19795 | (eval $ac_try) 2>&5 | |
19796 | ac_status=$? | |
19797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19798 | (exit $ac_status); }; } && | |
19799 | { ac_try='test -s conftest.$ac_objext' | |
19800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19801 | (eval $ac_try) 2>&5 | |
19802 | ac_status=$? | |
19803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19804 | (exit $ac_status); }; }; then | |
a3828db0 | 19805 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 19806 | else |
bec39cab AC |
19807 | echo "$as_me: failed program was:" >&5 |
19808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19809 | ||
4e8d927d | 19810 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 19811 | fi |
4e8d927d | 19812 | |
bec39cab | 19813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 19814 | fi |
4e8d927d DJ |
19815 | { echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
19816 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6; } | |
bec39cab | 19817 | |
a3828db0 MK |
19818 | cat >>confdefs.h <<_ACEOF |
19819 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 19820 | _ACEOF |
70f9f479 | 19821 | |
a3828db0 | 19822 | # Check argument types. |
4e8d927d DJ |
19823 | { echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
19824 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6; } | |
a3828db0 | 19825 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
19826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19827 | else | |
a3828db0 MK |
19828 | |
19829 | for gdb_arg1 in 'int' 'long'; do | |
19830 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
19831 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
19832 | for gdb_arg4 in 'int' 'long'; do | |
19833 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
19834 | /* confdefs.h. */ |
19835 | _ACEOF | |
19836 | cat confdefs.h >>conftest.$ac_ext | |
19837 | cat >>conftest.$ac_ext <<_ACEOF | |
19838 | /* end confdefs.h. */ | |
a3828db0 | 19839 | $gdb_ptrace_headers |
bec39cab AC |
19840 | int |
19841 | main () | |
19842 | { | |
a3828db0 MK |
19843 | |
19844 | extern $gdb_cv_func_ptrace_ret | |
19845 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
19846 | ||
bec39cab AC |
19847 | ; |
19848 | return 0; | |
19849 | } | |
19850 | _ACEOF | |
19851 | rm -f conftest.$ac_objext | |
19852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19853 | (eval $ac_compile) 2>conftest.er1 | |
19854 | ac_status=$? | |
19855 | grep -v '^ *+' conftest.er1 >conftest.err | |
19856 | rm -f conftest.er1 | |
19857 | cat conftest.err >&5 | |
19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19859 | (exit $ac_status); } && | |
121ce6e5 | 19860 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19862 | (eval $ac_try) 2>&5 | |
19863 | ac_status=$? | |
19864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19865 | (exit $ac_status); }; } && | |
19866 | { ac_try='test -s conftest.$ac_objext' | |
19867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19868 | (eval $ac_try) 2>&5 | |
19869 | ac_status=$? | |
19870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19871 | (exit $ac_status); }; }; then | |
a3828db0 MK |
19872 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
19873 | break 4; | |
5c7f2947 | 19874 | else |
bec39cab AC |
19875 | echo "$as_me: failed program was:" >&5 |
19876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19877 | ||
4e8d927d | 19878 | |
5c7f2947 | 19879 | fi |
4e8d927d | 19880 | |
bec39cab | 19881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
19882 | for gdb_arg5 in 'int *' 'int' 'long'; do |
19883 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
19884 | /* confdefs.h. */ |
19885 | _ACEOF | |
19886 | cat confdefs.h >>conftest.$ac_ext | |
19887 | cat >>conftest.$ac_ext <<_ACEOF | |
19888 | /* end confdefs.h. */ | |
a3828db0 | 19889 | $gdb_ptrace_headers |
bec39cab AC |
19890 | int |
19891 | main () | |
19892 | { | |
a3828db0 MK |
19893 | |
19894 | extern $gdb_cv_func_ptrace_ret | |
19895 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
19896 | ||
bec39cab AC |
19897 | ; |
19898 | return 0; | |
19899 | } | |
19900 | _ACEOF | |
19901 | rm -f conftest.$ac_objext | |
19902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19903 | (eval $ac_compile) 2>conftest.er1 | |
19904 | ac_status=$? | |
19905 | grep -v '^ *+' conftest.er1 >conftest.err | |
19906 | rm -f conftest.er1 | |
19907 | cat conftest.err >&5 | |
19908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19909 | (exit $ac_status); } && | |
121ce6e5 | 19910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
19911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19912 | (eval $ac_try) 2>&5 | |
19913 | ac_status=$? | |
19914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19915 | (exit $ac_status); }; } && | |
19916 | { ac_try='test -s conftest.$ac_objext' | |
19917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19918 | (eval $ac_try) 2>&5 | |
19919 | ac_status=$? | |
19920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19921 | (exit $ac_status); }; }; then | |
a3828db0 MK |
19922 | |
19923 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
19924 | break 5; | |
78434e59 | 19925 | else |
bec39cab AC |
19926 | echo "$as_me: failed program was:" >&5 |
19927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19928 | ||
4e8d927d | 19929 | |
78434e59 | 19930 | fi |
4e8d927d | 19931 | |
bec39cab | 19932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
19933 | done |
19934 | done | |
19935 | done | |
19936 | done | |
19937 | done | |
19938 | # Provide a safe default value. | |
19939 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
19940 | ||
78434e59 | 19941 | fi |
4e8d927d DJ |
19942 | { echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
19943 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6; } | |
a3828db0 MK |
19944 | ac_save_IFS=$IFS; IFS=',' |
19945 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
19946 | IFS=$ac_save_IFS | |
19947 | shift | |
bec39cab | 19948 | |
a3828db0 MK |
19949 | cat >>confdefs.h <<_ACEOF |
19950 | #define PTRACE_TYPE_ARG3 $3 | |
19951 | _ACEOF | |
19952 | ||
19953 | if test -n "$5"; then | |
19954 | ||
19955 | cat >>confdefs.h <<_ACEOF | |
19956 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 19957 | _ACEOF |
78434e59 MK |
19958 | |
19959 | fi | |
19960 | ||
a3828db0 | 19961 | if test "$cross_compiling" = no; then |
4e8d927d DJ |
19962 | { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
19963 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } | |
a3828db0 | 19964 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 19965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
19966 | else |
19967 | if test "$cross_compiling" = yes; then | |
19968 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
19969 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
19970 | { (exit 1); exit 1; }; } | |
bec39cab AC |
19971 | else |
19972 | cat >conftest.$ac_ext <<_ACEOF | |
19973 | /* confdefs.h. */ | |
19974 | _ACEOF | |
19975 | cat confdefs.h >>conftest.$ac_ext | |
19976 | cat >>conftest.$ac_ext <<_ACEOF | |
19977 | /* end confdefs.h. */ | |
4e8d927d | 19978 | $ac_includes_default |
bec39cab AC |
19979 | int |
19980 | main () | |
19981 | { | |
a3828db0 MK |
19982 | /* If this system has a BSD-style setpgrp which takes arguments, |
19983 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
19984 | exit successfully. */ | |
4e8d927d | 19985 | return setpgrp (1,1) != -1; |
bec39cab AC |
19986 | ; |
19987 | return 0; | |
19988 | } | |
19989 | _ACEOF | |
a3828db0 MK |
19990 | rm -f conftest$ac_exeext |
19991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19992 | (eval $ac_link) 2>&5 | |
bec39cab AC |
19993 | ac_status=$? |
19994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 19995 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
19996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19997 | (eval $ac_try) 2>&5 | |
19998 | ac_status=$? | |
19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20000 | (exit $ac_status); }; }; then | |
a3828db0 | 20001 | ac_cv_func_setpgrp_void=no |
c906108c | 20002 | else |
a3828db0 MK |
20003 | echo "$as_me: program exited with status $ac_status" >&5 |
20004 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
20005 | sed 's/^/| /' conftest.$ac_ext >&5 |
20006 | ||
a3828db0 MK |
20007 | ( exit $ac_status ) |
20008 | ac_cv_func_setpgrp_void=yes | |
c906108c | 20009 | fi |
4e8d927d | 20010 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20011 | fi |
4e8d927d DJ |
20012 | |
20013 | ||
a3828db0 | 20014 | fi |
4e8d927d DJ |
20015 | { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
20016 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } | |
a3828db0 MK |
20017 | if test $ac_cv_func_setpgrp_void = yes; then |
20018 | ||
20019 | cat >>confdefs.h <<\_ACEOF | |
20020 | #define SETPGRP_VOID 1 | |
bec39cab | 20021 | _ACEOF |
97bf5e38 MK |
20022 | |
20023 | fi | |
a3828db0 MK |
20024 | |
20025 | else | |
4e8d927d DJ |
20026 | { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
20027 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; } | |
a3828db0 | 20028 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 20029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20030 | else |
bec39cab AC |
20031 | cat >conftest.$ac_ext <<_ACEOF |
20032 | /* confdefs.h. */ | |
20033 | _ACEOF | |
20034 | cat confdefs.h >>conftest.$ac_ext | |
20035 | cat >>conftest.$ac_ext <<_ACEOF | |
20036 | /* end confdefs.h. */ | |
a3828db0 MK |
20037 | |
20038 | #include <unistd.h> | |
20039 | ||
bec39cab AC |
20040 | int |
20041 | main () | |
20042 | { | |
a3828db0 MK |
20043 | |
20044 | if (setpgrp(1,1) == -1) | |
20045 | exit (0); | |
20046 | else | |
20047 | exit (1); | |
20048 | ||
bec39cab AC |
20049 | ; |
20050 | return 0; | |
20051 | } | |
20052 | _ACEOF | |
20053 | rm -f conftest.$ac_objext | |
20054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20055 | (eval $ac_compile) 2>conftest.er1 | |
20056 | ac_status=$? | |
20057 | grep -v '^ *+' conftest.er1 >conftest.err | |
20058 | rm -f conftest.er1 | |
20059 | cat conftest.err >&5 | |
20060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20061 | (exit $ac_status); } && | |
121ce6e5 | 20062 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20064 | (eval $ac_try) 2>&5 | |
20065 | ac_status=$? | |
20066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20067 | (exit $ac_status); }; } && | |
20068 | { ac_try='test -s conftest.$ac_objext' | |
20069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20070 | (eval $ac_try) 2>&5 | |
20071 | ac_status=$? | |
20072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20073 | (exit $ac_status); }; }; then | |
a3828db0 | 20074 | ac_cv_func_setpgrp_void=no |
c906108c | 20075 | else |
bec39cab AC |
20076 | echo "$as_me: failed program was:" >&5 |
20077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20078 | ||
4e8d927d | 20079 | ac_cv_func_setpgrp_void=yes |
c906108c | 20080 | fi |
4e8d927d | 20081 | |
bec39cab | 20082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20083 | fi |
4e8d927d DJ |
20084 | { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
20085 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; } | |
a3828db0 | 20086 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 20087 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 20088 | #define SETPGRP_VOID 1 |
bec39cab | 20089 | _ACEOF |
c3f6f71d | 20090 | |
a3828db0 | 20091 | fi |
c906108c SS |
20092 | fi |
20093 | ||
a3828db0 MK |
20094 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
20095 | # since sigsetjmp might only be defined as a macro. | |
4e8d927d DJ |
20096 | { echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
20097 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; } | |
a3828db0 | 20098 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
20099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20100 | else | |
20101 | cat >conftest.$ac_ext <<_ACEOF | |
20102 | /* confdefs.h. */ | |
20103 | _ACEOF | |
20104 | cat confdefs.h >>conftest.$ac_ext | |
20105 | cat >>conftest.$ac_ext <<_ACEOF | |
20106 | /* end confdefs.h. */ | |
a3828db0 MK |
20107 | |
20108 | #include <setjmp.h> | |
20109 | ||
bec39cab AC |
20110 | int |
20111 | main () | |
20112 | { | |
a3828db0 | 20113 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
20114 | ; |
20115 | return 0; | |
20116 | } | |
20117 | _ACEOF | |
20118 | rm -f conftest.$ac_objext | |
20119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20120 | (eval $ac_compile) 2>conftest.er1 | |
20121 | ac_status=$? | |
20122 | grep -v '^ *+' conftest.er1 >conftest.err | |
20123 | rm -f conftest.er1 | |
20124 | cat conftest.err >&5 | |
20125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20126 | (exit $ac_status); } && | |
121ce6e5 | 20127 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20129 | (eval $ac_try) 2>&5 | |
20130 | ac_status=$? | |
20131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20132 | (exit $ac_status); }; } && | |
20133 | { ac_try='test -s conftest.$ac_objext' | |
20134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20135 | (eval $ac_try) 2>&5 | |
20136 | ac_status=$? | |
20137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20138 | (exit $ac_status); }; }; then | |
a3828db0 | 20139 | gdb_cv_func_sigsetjmp=yes |
c906108c | 20140 | else |
bec39cab AC |
20141 | echo "$as_me: failed program was:" >&5 |
20142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20143 | ||
4e8d927d | 20144 | gdb_cv_func_sigsetjmp=no |
c906108c | 20145 | fi |
4e8d927d | 20146 | |
bec39cab | 20147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20148 | fi |
4e8d927d DJ |
20149 | { echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
20150 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6; } | |
a3828db0 | 20151 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 20152 | |
a3828db0 MK |
20153 | cat >>confdefs.h <<\_ACEOF |
20154 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 20155 | _ACEOF |
c906108c | 20156 | |
97bf5e38 | 20157 | fi |
c906108c | 20158 | |
a3828db0 MK |
20159 | # Assume we'll default to using the included libiberty regex. |
20160 | gdb_use_included_regex=yes | |
20161 | ||
20162 | # However, if the system regex is GNU regex, then default to *not* | |
20163 | # using the included regex. | |
4e8d927d DJ |
20164 | { echo "$as_me:$LINENO: checking for GNU regex" >&5 |
20165 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6; } | |
a3828db0 | 20166 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
20167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20168 | else | |
20169 | cat >conftest.$ac_ext <<_ACEOF | |
20170 | /* confdefs.h. */ | |
20171 | _ACEOF | |
20172 | cat confdefs.h >>conftest.$ac_ext | |
20173 | cat >>conftest.$ac_ext <<_ACEOF | |
20174 | /* end confdefs.h. */ | |
a3828db0 | 20175 | #include <gnu-versions.h> |
bec39cab AC |
20176 | int |
20177 | main () | |
20178 | { | |
a3828db0 MK |
20179 | #define REGEX_INTERFACE_VERSION 1 |
20180 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
20181 | # error "Version mismatch" | |
20182 | #endif | |
bec39cab AC |
20183 | ; |
20184 | return 0; | |
20185 | } | |
20186 | _ACEOF | |
20187 | rm -f conftest.$ac_objext | |
20188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20189 | (eval $ac_compile) 2>conftest.er1 | |
20190 | ac_status=$? | |
20191 | grep -v '^ *+' conftest.er1 >conftest.err | |
20192 | rm -f conftest.er1 | |
20193 | cat conftest.err >&5 | |
20194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20195 | (exit $ac_status); } && | |
121ce6e5 | 20196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20198 | (eval $ac_try) 2>&5 | |
20199 | ac_status=$? | |
20200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20201 | (exit $ac_status); }; } && | |
20202 | { ac_try='test -s conftest.$ac_objext' | |
20203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20204 | (eval $ac_try) 2>&5 | |
20205 | ac_status=$? | |
20206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20207 | (exit $ac_status); }; }; then | |
a3828db0 | 20208 | gdb_cv_have_gnu_regex=yes |
c906108c | 20209 | else |
bec39cab AC |
20210 | echo "$as_me: failed program was:" >&5 |
20211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20212 | ||
4e8d927d | 20213 | gdb_cv_have_gnu_regex=no |
c906108c | 20214 | fi |
4e8d927d | 20215 | |
bec39cab | 20216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20217 | fi |
4e8d927d DJ |
20218 | { echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
20219 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6; } | |
a3828db0 MK |
20220 | if test $gdb_cv_have_gnu_regex = yes; then |
20221 | gdb_use_included_regex=no | |
20222 | fi | |
c906108c | 20223 | |
a3828db0 | 20224 | |
4e8d927d | 20225 | # Check whether --with-included-regex was given. |
a3828db0 | 20226 | if test "${with_included_regex+set}" = set; then |
4e8d927d | 20227 | withval=$with_included_regex; gdb_with_regex=$withval |
a3828db0 MK |
20228 | else |
20229 | gdb_with_regex=$gdb_use_included_regex | |
4e8d927d DJ |
20230 | fi |
20231 | ||
a3828db0 MK |
20232 | if test "$gdb_with_regex" = yes; then |
20233 | ||
20234 | cat >>confdefs.h <<\_ACEOF | |
20235 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 20236 | _ACEOF |
c906108c | 20237 | |
97bf5e38 | 20238 | fi |
c906108c | 20239 | |
5c45e068 | 20240 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
4e8d927d DJ |
20241 | { echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
20242 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6; } | |
5c45e068 | 20243 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
20244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20245 | else | |
20246 | cat >conftest.$ac_ext <<_ACEOF | |
20247 | /* confdefs.h. */ | |
20248 | _ACEOF | |
20249 | cat confdefs.h >>conftest.$ac_ext | |
20250 | cat >>conftest.$ac_ext <<_ACEOF | |
20251 | /* end confdefs.h. */ | |
a3828db0 MK |
20252 | #include <sys/param.h> |
20253 | #include <sys/proc.h> | |
5c45e068 MK |
20254 | |
20255 | ||
bec39cab AC |
20256 | int |
20257 | main () | |
20258 | { | |
5c45e068 MK |
20259 | static struct thread ac_aggr; |
20260 | if (ac_aggr.td_pcb) | |
20261 | return 0; | |
bec39cab AC |
20262 | ; |
20263 | return 0; | |
20264 | } | |
20265 | _ACEOF | |
20266 | rm -f conftest.$ac_objext | |
20267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20268 | (eval $ac_compile) 2>conftest.er1 | |
20269 | ac_status=$? | |
20270 | grep -v '^ *+' conftest.er1 >conftest.err | |
20271 | rm -f conftest.er1 | |
20272 | cat conftest.err >&5 | |
20273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20274 | (exit $ac_status); } && | |
121ce6e5 | 20275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20277 | (eval $ac_try) 2>&5 | |
20278 | ac_status=$? | |
20279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20280 | (exit $ac_status); }; } && | |
20281 | { ac_try='test -s conftest.$ac_objext' | |
20282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20283 | (eval $ac_try) 2>&5 | |
20284 | ac_status=$? | |
20285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20286 | (exit $ac_status); }; }; then | |
5c45e068 | 20287 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 20288 | else |
bec39cab AC |
20289 | echo "$as_me: failed program was:" >&5 |
20290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20291 | ||
4e8d927d | 20292 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
20293 | /* confdefs.h. */ |
20294 | _ACEOF | |
20295 | cat confdefs.h >>conftest.$ac_ext | |
20296 | cat >>conftest.$ac_ext <<_ACEOF | |
20297 | /* end confdefs.h. */ | |
20298 | #include <sys/param.h> | |
20299 | #include <sys/proc.h> | |
20300 | ||
20301 | ||
20302 | int | |
20303 | main () | |
20304 | { | |
20305 | static struct thread ac_aggr; | |
20306 | if (sizeof ac_aggr.td_pcb) | |
20307 | return 0; | |
20308 | ; | |
20309 | return 0; | |
20310 | } | |
20311 | _ACEOF | |
20312 | rm -f conftest.$ac_objext | |
20313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20314 | (eval $ac_compile) 2>conftest.er1 | |
20315 | ac_status=$? | |
20316 | grep -v '^ *+' conftest.er1 >conftest.err | |
20317 | rm -f conftest.er1 | |
20318 | cat conftest.err >&5 | |
20319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20320 | (exit $ac_status); } && | |
121ce6e5 | 20321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5c45e068 MK |
20322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20323 | (eval $ac_try) 2>&5 | |
20324 | ac_status=$? | |
20325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20326 | (exit $ac_status); }; } && | |
20327 | { ac_try='test -s conftest.$ac_objext' | |
20328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20329 | (eval $ac_try) 2>&5 | |
20330 | ac_status=$? | |
20331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20332 | (exit $ac_status); }; }; then | |
20333 | ac_cv_member_struct_thread_td_pcb=yes | |
20334 | else | |
20335 | echo "$as_me: failed program was:" >&5 | |
20336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20337 | ||
4e8d927d | 20338 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 | 20339 | fi |
4e8d927d | 20340 | |
5c45e068 | 20341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20342 | fi |
4e8d927d | 20343 | |
bec39cab | 20344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20345 | fi |
4e8d927d DJ |
20346 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
20347 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6; } | |
5c45e068 | 20348 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 20349 | |
5c45e068 | 20350 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 20351 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 20352 | _ACEOF |
c906108c | 20353 | |
5c45e068 | 20354 | |
97bf5e38 | 20355 | fi |
c906108c | 20356 | |
5c45e068 | 20357 | |
a3828db0 | 20358 | # See if <sys/lwp.h> defines `struct lwp`. |
4e8d927d DJ |
20359 | { echo "$as_me:$LINENO: checking for struct lwp" >&5 |
20360 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6; } | |
a3828db0 | 20361 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
20362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20363 | else | |
20364 | cat >conftest.$ac_ext <<_ACEOF | |
20365 | /* confdefs.h. */ | |
20366 | _ACEOF | |
20367 | cat confdefs.h >>conftest.$ac_ext | |
20368 | cat >>conftest.$ac_ext <<_ACEOF | |
20369 | /* end confdefs.h. */ | |
a3828db0 MK |
20370 | #include <sys/param.h> |
20371 | #include <sys/lwp.h> | |
bec39cab AC |
20372 | int |
20373 | main () | |
20374 | { | |
a3828db0 | 20375 | struct lwp l; |
bec39cab AC |
20376 | ; |
20377 | return 0; | |
20378 | } | |
20379 | _ACEOF | |
20380 | rm -f conftest.$ac_objext | |
20381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20382 | (eval $ac_compile) 2>conftest.er1 | |
20383 | ac_status=$? | |
20384 | grep -v '^ *+' conftest.er1 >conftest.err | |
20385 | rm -f conftest.er1 | |
20386 | cat conftest.err >&5 | |
20387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20388 | (exit $ac_status); } && | |
121ce6e5 | 20389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20391 | (eval $ac_try) 2>&5 | |
20392 | ac_status=$? | |
20393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20394 | (exit $ac_status); }; } && | |
20395 | { ac_try='test -s conftest.$ac_objext' | |
20396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20397 | (eval $ac_try) 2>&5 | |
20398 | ac_status=$? | |
20399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20400 | (exit $ac_status); }; }; then | |
a3828db0 | 20401 | gdb_cv_struct_lwp=yes |
c906108c | 20402 | else |
bec39cab AC |
20403 | echo "$as_me: failed program was:" >&5 |
20404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20405 | ||
4e8d927d | 20406 | gdb_cv_struct_lwp=no |
c906108c | 20407 | fi |
4e8d927d | 20408 | |
bec39cab | 20409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20410 | fi |
4e8d927d DJ |
20411 | { echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
20412 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6; } | |
a3828db0 | 20413 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 20414 | |
a3828db0 MK |
20415 | cat >>confdefs.h <<\_ACEOF |
20416 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 20417 | _ACEOF |
c906108c | 20418 | |
97bf5e38 | 20419 | fi |
c906108c | 20420 | |
a3828db0 | 20421 | # See if <machine/reg.h> degines `struct reg'. |
4e8d927d DJ |
20422 | { echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
20423 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6; } | |
a3828db0 | 20424 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
20425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20426 | else | |
20427 | cat >conftest.$ac_ext <<_ACEOF | |
20428 | /* confdefs.h. */ | |
20429 | _ACEOF | |
20430 | cat confdefs.h >>conftest.$ac_ext | |
20431 | cat >>conftest.$ac_ext <<_ACEOF | |
20432 | /* end confdefs.h. */ | |
a3828db0 MK |
20433 | #include <sys/types.h> |
20434 | #include <machine/reg.h> | |
bec39cab AC |
20435 | int |
20436 | main () | |
20437 | { | |
a3828db0 | 20438 | struct reg r; |
bec39cab AC |
20439 | ; |
20440 | return 0; | |
20441 | } | |
20442 | _ACEOF | |
20443 | rm -f conftest.$ac_objext | |
20444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20445 | (eval $ac_compile) 2>conftest.er1 | |
20446 | ac_status=$? | |
20447 | grep -v '^ *+' conftest.er1 >conftest.err | |
20448 | rm -f conftest.er1 | |
20449 | cat conftest.err >&5 | |
20450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20451 | (exit $ac_status); } && | |
121ce6e5 | 20452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20454 | (eval $ac_try) 2>&5 | |
20455 | ac_status=$? | |
20456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20457 | (exit $ac_status); }; } && | |
20458 | { ac_try='test -s conftest.$ac_objext' | |
20459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20460 | (eval $ac_try) 2>&5 | |
20461 | ac_status=$? | |
20462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20463 | (exit $ac_status); }; }; then | |
a3828db0 | 20464 | gdb_cv_struct_reg=yes |
27ca5dad | 20465 | else |
bec39cab AC |
20466 | echo "$as_me: failed program was:" >&5 |
20467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20468 | ||
4e8d927d | 20469 | gdb_cv_struct_reg=no |
27ca5dad | 20470 | fi |
4e8d927d | 20471 | |
bec39cab | 20472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 20473 | fi |
4e8d927d DJ |
20474 | { echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
20475 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6; } | |
a3828db0 | 20476 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
20477 | |
20478 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 20479 | #define HAVE_STRUCT_REG 1 |
bec39cab | 20480 | _ACEOF |
27ca5dad MC |
20481 | |
20482 | fi | |
97bf5e38 | 20483 | |
a3828db0 MK |
20484 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
20485 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
4e8d927d DJ |
20486 | { echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
20487 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6; } | |
5c45e068 | 20488 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 20489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 20490 | else |
bec39cab AC |
20491 | cat >conftest.$ac_ext <<_ACEOF |
20492 | /* confdefs.h. */ | |
20493 | _ACEOF | |
20494 | cat confdefs.h >>conftest.$ac_ext | |
20495 | cat >>conftest.$ac_ext <<_ACEOF | |
20496 | /* end confdefs.h. */ | |
a3828db0 | 20497 | #include <machine/reg.h> |
5c45e068 MK |
20498 | |
20499 | int | |
20500 | main () | |
20501 | { | |
20502 | static struct reg ac_aggr; | |
20503 | if (ac_aggr.r_fs) | |
20504 | return 0; | |
20505 | ; | |
20506 | return 0; | |
20507 | } | |
20508 | _ACEOF | |
20509 | rm -f conftest.$ac_objext | |
20510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20511 | (eval $ac_compile) 2>conftest.er1 | |
20512 | ac_status=$? | |
20513 | grep -v '^ *+' conftest.er1 >conftest.err | |
20514 | rm -f conftest.er1 | |
20515 | cat conftest.err >&5 | |
20516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20517 | (exit $ac_status); } && | |
121ce6e5 | 20518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5c45e068 MK |
20519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20520 | (eval $ac_try) 2>&5 | |
20521 | ac_status=$? | |
20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20523 | (exit $ac_status); }; } && | |
20524 | { ac_try='test -s conftest.$ac_objext' | |
20525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20526 | (eval $ac_try) 2>&5 | |
20527 | ac_status=$? | |
20528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20529 | (exit $ac_status); }; }; then | |
20530 | ac_cv_member_struct_reg_r_fs=yes | |
20531 | else | |
20532 | echo "$as_me: failed program was:" >&5 | |
20533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20534 | ||
4e8d927d | 20535 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
20536 | /* confdefs.h. */ |
20537 | _ACEOF | |
20538 | cat confdefs.h >>conftest.$ac_ext | |
20539 | cat >>conftest.$ac_ext <<_ACEOF | |
20540 | /* end confdefs.h. */ | |
20541 | #include <machine/reg.h> | |
20542 | ||
bec39cab AC |
20543 | int |
20544 | main () | |
20545 | { | |
5c45e068 MK |
20546 | static struct reg ac_aggr; |
20547 | if (sizeof ac_aggr.r_fs) | |
20548 | return 0; | |
bec39cab AC |
20549 | ; |
20550 | return 0; | |
20551 | } | |
20552 | _ACEOF | |
20553 | rm -f conftest.$ac_objext | |
20554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20555 | (eval $ac_compile) 2>conftest.er1 | |
20556 | ac_status=$? | |
20557 | grep -v '^ *+' conftest.er1 >conftest.err | |
20558 | rm -f conftest.er1 | |
20559 | cat conftest.err >&5 | |
20560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20561 | (exit $ac_status); } && | |
121ce6e5 | 20562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20564 | (eval $ac_try) 2>&5 | |
20565 | ac_status=$? | |
20566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20567 | (exit $ac_status); }; } && | |
20568 | { ac_try='test -s conftest.$ac_objext' | |
20569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20570 | (eval $ac_try) 2>&5 | |
20571 | ac_status=$? | |
20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20573 | (exit $ac_status); }; }; then | |
5c45e068 | 20574 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 20575 | else |
bec39cab AC |
20576 | echo "$as_me: failed program was:" >&5 |
20577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20578 | ||
4e8d927d | 20579 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 20580 | fi |
4e8d927d | 20581 | |
bec39cab | 20582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 20583 | fi |
4e8d927d | 20584 | |
5c45e068 MK |
20585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20586 | fi | |
4e8d927d DJ |
20587 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
20588 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6; } | |
5c45e068 MK |
20589 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
20590 | ||
20591 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 20592 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 20593 | _ACEOF |
3862412b | 20594 | |
5c45e068 | 20595 | |
97bf5e38 | 20596 | fi |
4e8d927d DJ |
20597 | { echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
20598 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6; } | |
5c45e068 | 20599 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 20600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 20601 | else |
bec39cab AC |
20602 | cat >conftest.$ac_ext <<_ACEOF |
20603 | /* confdefs.h. */ | |
20604 | _ACEOF | |
20605 | cat confdefs.h >>conftest.$ac_ext | |
20606 | cat >>conftest.$ac_ext <<_ACEOF | |
20607 | /* end confdefs.h. */ | |
a3828db0 | 20608 | #include <machine/reg.h> |
5c45e068 | 20609 | |
bec39cab AC |
20610 | int |
20611 | main () | |
20612 | { | |
5c45e068 MK |
20613 | static struct reg ac_aggr; |
20614 | if (ac_aggr.r_gs) | |
20615 | return 0; | |
bec39cab AC |
20616 | ; |
20617 | return 0; | |
20618 | } | |
20619 | _ACEOF | |
20620 | rm -f conftest.$ac_objext | |
20621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20622 | (eval $ac_compile) 2>conftest.er1 | |
20623 | ac_status=$? | |
20624 | grep -v '^ *+' conftest.er1 >conftest.err | |
20625 | rm -f conftest.er1 | |
20626 | cat conftest.err >&5 | |
20627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20628 | (exit $ac_status); } && | |
121ce6e5 | 20629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20631 | (eval $ac_try) 2>&5 | |
20632 | ac_status=$? | |
20633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20634 | (exit $ac_status); }; } && | |
20635 | { ac_try='test -s conftest.$ac_objext' | |
20636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20637 | (eval $ac_try) 2>&5 | |
20638 | ac_status=$? | |
20639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20640 | (exit $ac_status); }; }; then | |
5c45e068 | 20641 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 20642 | else |
bec39cab AC |
20643 | echo "$as_me: failed program was:" >&5 |
20644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20645 | ||
4e8d927d | 20646 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
20647 | /* confdefs.h. */ |
20648 | _ACEOF | |
20649 | cat confdefs.h >>conftest.$ac_ext | |
20650 | cat >>conftest.$ac_ext <<_ACEOF | |
20651 | /* end confdefs.h. */ | |
20652 | #include <machine/reg.h> | |
20653 | ||
20654 | int | |
20655 | main () | |
20656 | { | |
20657 | static struct reg ac_aggr; | |
20658 | if (sizeof ac_aggr.r_gs) | |
20659 | return 0; | |
20660 | ; | |
20661 | return 0; | |
20662 | } | |
20663 | _ACEOF | |
20664 | rm -f conftest.$ac_objext | |
20665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20666 | (eval $ac_compile) 2>conftest.er1 | |
20667 | ac_status=$? | |
20668 | grep -v '^ *+' conftest.er1 >conftest.err | |
20669 | rm -f conftest.er1 | |
20670 | cat conftest.err >&5 | |
20671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20672 | (exit $ac_status); } && | |
121ce6e5 | 20673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5c45e068 MK |
20674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20675 | (eval $ac_try) 2>&5 | |
20676 | ac_status=$? | |
20677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20678 | (exit $ac_status); }; } && | |
20679 | { ac_try='test -s conftest.$ac_objext' | |
20680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20681 | (eval $ac_try) 2>&5 | |
20682 | ac_status=$? | |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 | (exit $ac_status); }; }; then | |
20685 | ac_cv_member_struct_reg_r_gs=yes | |
20686 | else | |
20687 | echo "$as_me: failed program was:" >&5 | |
20688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20689 | ||
4e8d927d | 20690 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 20691 | fi |
4e8d927d | 20692 | |
bec39cab | 20693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 20694 | fi |
4e8d927d | 20695 | |
5c45e068 MK |
20696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20697 | fi | |
4e8d927d DJ |
20698 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
20699 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6; } | |
5c45e068 MK |
20700 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
20701 | ||
20702 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 20703 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 20704 | _ACEOF |
3862412b | 20705 | |
5c45e068 | 20706 | |
97bf5e38 | 20707 | fi |
3862412b | 20708 | |
5c45e068 | 20709 | |
a3828db0 | 20710 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
4e8d927d DJ |
20711 | { echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
20712 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6; } | |
a3828db0 | 20713 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 20714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 20715 | else |
bec39cab AC |
20716 | cat >conftest.$ac_ext <<_ACEOF |
20717 | /* confdefs.h. */ | |
20718 | _ACEOF | |
20719 | cat confdefs.h >>conftest.$ac_ext | |
20720 | cat >>conftest.$ac_ext <<_ACEOF | |
20721 | /* end confdefs.h. */ | |
a3828db0 | 20722 | #include <sys/ptrace.h> |
bec39cab AC |
20723 | int |
20724 | main () | |
20725 | { | |
a3828db0 | 20726 | PTRACE_GETREGS; |
bec39cab AC |
20727 | ; |
20728 | return 0; | |
20729 | } | |
20730 | _ACEOF | |
20731 | rm -f conftest.$ac_objext | |
20732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20733 | (eval $ac_compile) 2>conftest.er1 | |
20734 | ac_status=$? | |
20735 | grep -v '^ *+' conftest.er1 >conftest.err | |
20736 | rm -f conftest.er1 | |
20737 | cat conftest.err >&5 | |
20738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20739 | (exit $ac_status); } && | |
121ce6e5 | 20740 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20742 | (eval $ac_try) 2>&5 | |
20743 | ac_status=$? | |
20744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20745 | (exit $ac_status); }; } && | |
20746 | { ac_try='test -s conftest.$ac_objext' | |
20747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20748 | (eval $ac_try) 2>&5 | |
20749 | ac_status=$? | |
20750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20751 | (exit $ac_status); }; }; then | |
a3828db0 | 20752 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 20753 | else |
bec39cab AC |
20754 | echo "$as_me: failed program was:" >&5 |
20755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20756 | ||
4e8d927d | 20757 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 20758 | fi |
4e8d927d | 20759 | |
bec39cab | 20760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
20761 | fi |
20762 | ||
4e8d927d DJ |
20763 | { echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
20764 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6; } | |
a3828db0 | 20765 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
20766 | |
20767 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 20768 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 20769 | _ACEOF |
451928c5 | 20770 | |
97bf5e38 | 20771 | fi |
451928c5 | 20772 | |
a3828db0 | 20773 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
4e8d927d DJ |
20774 | { echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
20775 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6; } | |
a3828db0 | 20776 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 20777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 20778 | else |
bec39cab AC |
20779 | cat >conftest.$ac_ext <<_ACEOF |
20780 | /* confdefs.h. */ | |
20781 | _ACEOF | |
20782 | cat confdefs.h >>conftest.$ac_ext | |
20783 | cat >>conftest.$ac_ext <<_ACEOF | |
20784 | /* end confdefs.h. */ | |
a3828db0 | 20785 | #include <sys/ptrace.h> |
bec39cab AC |
20786 | int |
20787 | main () | |
20788 | { | |
a3828db0 | 20789 | PTRACE_GETFPXREGS; |
bec39cab AC |
20790 | ; |
20791 | return 0; | |
20792 | } | |
20793 | _ACEOF | |
20794 | rm -f conftest.$ac_objext | |
20795 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20796 | (eval $ac_compile) 2>conftest.er1 | |
20797 | ac_status=$? | |
20798 | grep -v '^ *+' conftest.er1 >conftest.err | |
20799 | rm -f conftest.er1 | |
20800 | cat conftest.err >&5 | |
20801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20802 | (exit $ac_status); } && | |
121ce6e5 | 20803 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20805 | (eval $ac_try) 2>&5 | |
20806 | ac_status=$? | |
20807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20808 | (exit $ac_status); }; } && | |
20809 | { ac_try='test -s conftest.$ac_objext' | |
20810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20811 | (eval $ac_try) 2>&5 | |
20812 | ac_status=$? | |
20813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20814 | (exit $ac_status); }; }; then | |
a3828db0 | 20815 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 20816 | else |
bec39cab AC |
20817 | echo "$as_me: failed program was:" >&5 |
20818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20819 | ||
4e8d927d | 20820 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 20821 | fi |
4e8d927d | 20822 | |
bec39cab | 20823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
20824 | fi |
20825 | ||
4e8d927d DJ |
20826 | { echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
20827 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6; } | |
a3828db0 | 20828 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
20829 | |
20830 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 20831 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 20832 | _ACEOF |
451928c5 | 20833 | |
97bf5e38 | 20834 | fi |
451928c5 | 20835 | |
a3828db0 | 20836 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
4e8d927d DJ |
20837 | { echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
20838 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6; } | |
a3828db0 | 20839 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 20840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 20841 | else |
bec39cab AC |
20842 | cat >conftest.$ac_ext <<_ACEOF |
20843 | /* confdefs.h. */ | |
20844 | _ACEOF | |
20845 | cat confdefs.h >>conftest.$ac_ext | |
20846 | cat >>conftest.$ac_ext <<_ACEOF | |
20847 | /* end confdefs.h. */ | |
a3828db0 MK |
20848 | #include <sys/types.h> |
20849 | #include <sys/ptrace.h> | |
bec39cab AC |
20850 | int |
20851 | main () | |
20852 | { | |
a3828db0 | 20853 | PT_GETDBREGS; |
bec39cab AC |
20854 | ; |
20855 | return 0; | |
20856 | } | |
20857 | _ACEOF | |
20858 | rm -f conftest.$ac_objext | |
20859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20860 | (eval $ac_compile) 2>conftest.er1 | |
20861 | ac_status=$? | |
20862 | grep -v '^ *+' conftest.er1 >conftest.err | |
20863 | rm -f conftest.er1 | |
20864 | cat conftest.err >&5 | |
20865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20866 | (exit $ac_status); } && | |
121ce6e5 | 20867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20869 | (eval $ac_try) 2>&5 | |
20870 | ac_status=$? | |
20871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20872 | (exit $ac_status); }; } && | |
20873 | { ac_try='test -s conftest.$ac_objext' | |
20874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20875 | (eval $ac_try) 2>&5 | |
20876 | ac_status=$? | |
20877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20878 | (exit $ac_status); }; }; then | |
a3828db0 | 20879 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 20880 | else |
bec39cab AC |
20881 | echo "$as_me: failed program was:" >&5 |
20882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20883 | ||
4e8d927d | 20884 | gdb_cv_have_pt_getdbregs=no |
3862412b | 20885 | fi |
4e8d927d | 20886 | |
bec39cab | 20887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
20888 | fi |
20889 | ||
4e8d927d DJ |
20890 | { echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
20891 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6; } | |
a3828db0 | 20892 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
20893 | |
20894 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 20895 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 20896 | _ACEOF |
3862412b | 20897 | |
97bf5e38 | 20898 | fi |
3862412b | 20899 | |
a3828db0 | 20900 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
4e8d927d DJ |
20901 | { echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
20902 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6; } | |
a3828db0 | 20903 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 20904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 20905 | else |
bec39cab AC |
20906 | cat >conftest.$ac_ext <<_ACEOF |
20907 | /* confdefs.h. */ | |
20908 | _ACEOF | |
20909 | cat confdefs.h >>conftest.$ac_ext | |
20910 | cat >>conftest.$ac_ext <<_ACEOF | |
20911 | /* end confdefs.h. */ | |
a3828db0 MK |
20912 | #include <sys/types.h> |
20913 | #include <sys/ptrace.h> | |
bec39cab AC |
20914 | int |
20915 | main () | |
20916 | { | |
a3828db0 | 20917 | PT_GETXMMREGS; |
bec39cab AC |
20918 | ; |
20919 | return 0; | |
20920 | } | |
20921 | _ACEOF | |
20922 | rm -f conftest.$ac_objext | |
20923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20924 | (eval $ac_compile) 2>conftest.er1 | |
20925 | ac_status=$? | |
20926 | grep -v '^ *+' conftest.er1 >conftest.err | |
20927 | rm -f conftest.er1 | |
20928 | cat conftest.err >&5 | |
20929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20930 | (exit $ac_status); } && | |
121ce6e5 | 20931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
20932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20933 | (eval $ac_try) 2>&5 | |
20934 | ac_status=$? | |
20935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20936 | (exit $ac_status); }; } && | |
20937 | { ac_try='test -s conftest.$ac_objext' | |
20938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20939 | (eval $ac_try) 2>&5 | |
20940 | ac_status=$? | |
20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20942 | (exit $ac_status); }; }; then | |
a3828db0 | 20943 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 20944 | else |
bec39cab AC |
20945 | echo "$as_me: failed program was:" >&5 |
20946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20947 | ||
4e8d927d | 20948 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 20949 | fi |
4e8d927d | 20950 | |
bec39cab | 20951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
20952 | fi |
20953 | ||
4e8d927d DJ |
20954 | { echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
20955 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6; } | |
a3828db0 | 20956 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
20957 | |
20958 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 20959 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 20960 | _ACEOF |
3862412b | 20961 | |
97bf5e38 | 20962 | fi |
3862412b | 20963 | |
97bf5e38 MK |
20964 | # If we are configured native on GNU/Linux, work around problems with |
20965 | # sys/procfs.h | |
20966 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
20967 | ||
20968 | if test "${target}" = "${host}"; then | |
20969 | case "${host}" in | |
20970 | i[3456]86-*-linux*) | |
60ca704f SE |
20971 | |
20972 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20973 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 20974 | _ACEOF |
97bf5e38 | 20975 | |
60ca704f SE |
20976 | |
20977 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20978 | #define sys_quotactl 1 |
bec39cab | 20979 | _ACEOF |
97bf5e38 MK |
20980 | |
20981 | ;; | |
97bf5e38 | 20982 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
20983 | |
20984 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20985 | #define NEW_PROC_API 1 |
bec39cab | 20986 | _ACEOF |
97bf5e38 MK |
20987 | |
20988 | ;; | |
0bbc026e | 20989 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
20990 | |
20991 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20992 | #define NEW_PROC_API 1 |
bec39cab | 20993 | _ACEOF |
c960c18f AC |
20994 | |
20995 | ;; | |
20996 | mips-sgi-irix5*) | |
20997 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
20998 | |
20999 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 21000 | #define _KMEMUSER 1 |
bec39cab | 21001 | _ACEOF |
97bf5e38 MK |
21002 | |
21003 | ;; | |
21004 | esac | |
21005 | fi | |
21006 | ||
21007 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
4e8d927d DJ |
21008 | { echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
21009 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21010 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
21011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21012 | else | |
21013 | cat >conftest.$ac_ext <<_ACEOF | |
21014 | /* confdefs.h. */ | |
21015 | _ACEOF | |
21016 | cat confdefs.h >>conftest.$ac_ext | |
21017 | cat >>conftest.$ac_ext <<_ACEOF | |
21018 | /* end confdefs.h. */ | |
596c9d4b KB |
21019 | |
21020 | #define _SYSCALL32 | |
21021 | #include <sys/procfs.h> | |
bec39cab AC |
21022 | int |
21023 | main () | |
21024 | { | |
97bf5e38 | 21025 | pstatus_t avar |
bec39cab AC |
21026 | ; |
21027 | return 0; | |
21028 | } | |
21029 | _ACEOF | |
21030 | rm -f conftest.$ac_objext | |
21031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21032 | (eval $ac_compile) 2>conftest.er1 | |
21033 | ac_status=$? | |
21034 | grep -v '^ *+' conftest.er1 >conftest.err | |
21035 | rm -f conftest.er1 | |
21036 | cat conftest.err >&5 | |
21037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21038 | (exit $ac_status); } && | |
121ce6e5 | 21039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21041 | (eval $ac_try) 2>&5 | |
21042 | ac_status=$? | |
21043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21044 | (exit $ac_status); }; } && | |
21045 | { ac_try='test -s conftest.$ac_objext' | |
21046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21047 | (eval $ac_try) 2>&5 | |
21048 | ac_status=$? | |
21049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21050 | (exit $ac_status); }; }; then | |
97bf5e38 | 21051 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 21052 | else |
bec39cab AC |
21053 | echo "$as_me: failed program was:" >&5 |
21054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21055 | ||
4e8d927d | 21056 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 21057 | |
596c9d4b | 21058 | fi |
4e8d927d | 21059 | |
bec39cab | 21060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
21061 | fi |
21062 | ||
97bf5e38 | 21063 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
21064 | |
21065 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21066 | #define HAVE_PSTATUS_T 1 |
bec39cab | 21067 | _ACEOF |
596c9d4b KB |
21068 | |
21069 | fi | |
4e8d927d DJ |
21070 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
21071 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } | |
596c9d4b | 21072 | |
4e8d927d DJ |
21073 | { echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
21074 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21075 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
21076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 21077 | else |
bec39cab AC |
21078 | cat >conftest.$ac_ext <<_ACEOF |
21079 | /* confdefs.h. */ | |
21080 | _ACEOF | |
21081 | cat confdefs.h >>conftest.$ac_ext | |
21082 | cat >>conftest.$ac_ext <<_ACEOF | |
21083 | /* end confdefs.h. */ | |
596c9d4b KB |
21084 | |
21085 | #define _SYSCALL32 | |
21086 | #include <sys/procfs.h> | |
bec39cab AC |
21087 | int |
21088 | main () | |
21089 | { | |
97bf5e38 | 21090 | prrun_t avar |
bec39cab AC |
21091 | ; |
21092 | return 0; | |
21093 | } | |
21094 | _ACEOF | |
21095 | rm -f conftest.$ac_objext | |
21096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21097 | (eval $ac_compile) 2>conftest.er1 | |
21098 | ac_status=$? | |
21099 | grep -v '^ *+' conftest.er1 >conftest.err | |
21100 | rm -f conftest.er1 | |
21101 | cat conftest.err >&5 | |
21102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21103 | (exit $ac_status); } && | |
121ce6e5 | 21104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21106 | (eval $ac_try) 2>&5 | |
21107 | ac_status=$? | |
21108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21109 | (exit $ac_status); }; } && | |
21110 | { ac_try='test -s conftest.$ac_objext' | |
21111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21112 | (eval $ac_try) 2>&5 | |
21113 | ac_status=$? | |
21114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21115 | (exit $ac_status); }; }; then | |
97bf5e38 | 21116 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 21117 | else |
bec39cab AC |
21118 | echo "$as_me: failed program was:" >&5 |
21119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21120 | ||
4e8d927d | 21121 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 21122 | |
596c9d4b | 21123 | fi |
4e8d927d | 21124 | |
bec39cab | 21125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
21126 | fi |
21127 | ||
97bf5e38 | 21128 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
21129 | |
21130 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21131 | #define HAVE_PRRUN_T 1 |
bec39cab | 21132 | _ACEOF |
596c9d4b KB |
21133 | |
21134 | fi | |
4e8d927d DJ |
21135 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
21136 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6; } | |
596c9d4b | 21137 | |
4e8d927d DJ |
21138 | { echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
21139 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21140 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
21141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 21142 | else |
bec39cab AC |
21143 | cat >conftest.$ac_ext <<_ACEOF |
21144 | /* confdefs.h. */ | |
21145 | _ACEOF | |
21146 | cat confdefs.h >>conftest.$ac_ext | |
21147 | cat >>conftest.$ac_ext <<_ACEOF | |
21148 | /* end confdefs.h. */ | |
596c9d4b KB |
21149 | |
21150 | #define _SYSCALL32 | |
21151 | #include <sys/procfs.h> | |
bec39cab AC |
21152 | int |
21153 | main () | |
21154 | { | |
97bf5e38 | 21155 | gregset_t avar |
bec39cab AC |
21156 | ; |
21157 | return 0; | |
21158 | } | |
21159 | _ACEOF | |
21160 | rm -f conftest.$ac_objext | |
21161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21162 | (eval $ac_compile) 2>conftest.er1 | |
21163 | ac_status=$? | |
21164 | grep -v '^ *+' conftest.er1 >conftest.err | |
21165 | rm -f conftest.er1 | |
21166 | cat conftest.err >&5 | |
21167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21168 | (exit $ac_status); } && | |
121ce6e5 | 21169 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21171 | (eval $ac_try) 2>&5 | |
21172 | ac_status=$? | |
21173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21174 | (exit $ac_status); }; } && | |
21175 | { ac_try='test -s conftest.$ac_objext' | |
21176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21177 | (eval $ac_try) 2>&5 | |
21178 | ac_status=$? | |
21179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21180 | (exit $ac_status); }; }; then | |
97bf5e38 | 21181 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 21182 | else |
bec39cab AC |
21183 | echo "$as_me: failed program was:" >&5 |
21184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21185 | ||
4e8d927d | 21186 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 21187 | |
596c9d4b | 21188 | fi |
4e8d927d | 21189 | |
bec39cab | 21190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
21191 | fi |
21192 | ||
97bf5e38 | 21193 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
21194 | |
21195 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21196 | #define HAVE_GREGSET_T 1 |
bec39cab | 21197 | _ACEOF |
596c9d4b KB |
21198 | |
21199 | fi | |
4e8d927d DJ |
21200 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
21201 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6; } | |
451928c5 | 21202 | |
4e8d927d DJ |
21203 | { echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
21204 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21205 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
21206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 21207 | else |
bec39cab AC |
21208 | cat >conftest.$ac_ext <<_ACEOF |
21209 | /* confdefs.h. */ | |
21210 | _ACEOF | |
21211 | cat confdefs.h >>conftest.$ac_ext | |
21212 | cat >>conftest.$ac_ext <<_ACEOF | |
21213 | /* end confdefs.h. */ | |
97bf5e38 MK |
21214 | |
21215 | #define _SYSCALL32 | |
d84dd0c5 | 21216 | #include <sys/procfs.h> |
bec39cab AC |
21217 | int |
21218 | main () | |
21219 | { | |
97bf5e38 | 21220 | fpregset_t avar |
bec39cab AC |
21221 | ; |
21222 | return 0; | |
21223 | } | |
21224 | _ACEOF | |
21225 | rm -f conftest.$ac_objext | |
21226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21227 | (eval $ac_compile) 2>conftest.er1 | |
21228 | ac_status=$? | |
21229 | grep -v '^ *+' conftest.er1 >conftest.err | |
21230 | rm -f conftest.er1 | |
21231 | cat conftest.err >&5 | |
21232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21233 | (exit $ac_status); } && | |
121ce6e5 | 21234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21236 | (eval $ac_try) 2>&5 | |
21237 | ac_status=$? | |
21238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21239 | (exit $ac_status); }; } && | |
21240 | { ac_try='test -s conftest.$ac_objext' | |
21241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21242 | (eval $ac_try) 2>&5 | |
21243 | ac_status=$? | |
21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21245 | (exit $ac_status); }; }; then | |
97bf5e38 | 21246 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 21247 | else |
bec39cab AC |
21248 | echo "$as_me: failed program was:" >&5 |
21249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21250 | ||
4e8d927d | 21251 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 21252 | |
d84dd0c5 | 21253 | fi |
4e8d927d | 21254 | |
bec39cab | 21255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
21256 | fi |
21257 | ||
97bf5e38 | 21258 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
21259 | |
21260 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21261 | #define HAVE_FPREGSET_T 1 |
bec39cab | 21262 | _ACEOF |
d84dd0c5 | 21263 | |
97bf5e38 | 21264 | fi |
4e8d927d DJ |
21265 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
21266 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; } | |
d84dd0c5 | 21267 | |
4e8d927d DJ |
21268 | { echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
21269 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21270 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
21271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21272 | else |
bec39cab AC |
21273 | cat >conftest.$ac_ext <<_ACEOF |
21274 | /* confdefs.h. */ | |
21275 | _ACEOF | |
21276 | cat confdefs.h >>conftest.$ac_ext | |
21277 | cat >>conftest.$ac_ext <<_ACEOF | |
21278 | /* end confdefs.h. */ | |
c906108c | 21279 | |
97bf5e38 MK |
21280 | #define _SYSCALL32 |
21281 | #include <sys/procfs.h> | |
bec39cab AC |
21282 | int |
21283 | main () | |
21284 | { | |
97bf5e38 | 21285 | prgregset_t avar |
bec39cab AC |
21286 | ; |
21287 | return 0; | |
21288 | } | |
21289 | _ACEOF | |
21290 | rm -f conftest.$ac_objext | |
21291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21292 | (eval $ac_compile) 2>conftest.er1 | |
21293 | ac_status=$? | |
21294 | grep -v '^ *+' conftest.er1 >conftest.err | |
21295 | rm -f conftest.er1 | |
21296 | cat conftest.err >&5 | |
21297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21298 | (exit $ac_status); } && | |
121ce6e5 | 21299 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21301 | (eval $ac_try) 2>&5 | |
21302 | ac_status=$? | |
21303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21304 | (exit $ac_status); }; } && | |
21305 | { ac_try='test -s conftest.$ac_objext' | |
21306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21307 | (eval $ac_try) 2>&5 | |
21308 | ac_status=$? | |
21309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21310 | (exit $ac_status); }; }; then | |
97bf5e38 | 21311 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 21312 | else |
bec39cab AC |
21313 | echo "$as_me: failed program was:" >&5 |
21314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21315 | ||
4e8d927d | 21316 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 21317 | |
c906108c | 21318 | fi |
4e8d927d | 21319 | |
bec39cab | 21320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21321 | fi |
21322 | ||
97bf5e38 | 21323 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
21324 | |
21325 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21326 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 21327 | _ACEOF |
c906108c | 21328 | |
97bf5e38 | 21329 | fi |
4e8d927d DJ |
21330 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
21331 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; } | |
c906108c | 21332 | |
4e8d927d DJ |
21333 | { echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
21334 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21335 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
21336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21337 | else |
bec39cab AC |
21338 | cat >conftest.$ac_ext <<_ACEOF |
21339 | /* confdefs.h. */ | |
21340 | _ACEOF | |
21341 | cat confdefs.h >>conftest.$ac_ext | |
21342 | cat >>conftest.$ac_ext <<_ACEOF | |
21343 | /* end confdefs.h. */ | |
97bf5e38 MK |
21344 | |
21345 | #define _SYSCALL32 | |
21346 | #include <sys/procfs.h> | |
bec39cab AC |
21347 | int |
21348 | main () | |
21349 | { | |
97bf5e38 | 21350 | prfpregset_t avar |
bec39cab AC |
21351 | ; |
21352 | return 0; | |
21353 | } | |
21354 | _ACEOF | |
21355 | rm -f conftest.$ac_objext | |
21356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21357 | (eval $ac_compile) 2>conftest.er1 | |
21358 | ac_status=$? | |
21359 | grep -v '^ *+' conftest.er1 >conftest.err | |
21360 | rm -f conftest.er1 | |
21361 | cat conftest.err >&5 | |
21362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21363 | (exit $ac_status); } && | |
121ce6e5 | 21364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21366 | (eval $ac_try) 2>&5 | |
21367 | ac_status=$? | |
21368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21369 | (exit $ac_status); }; } && | |
21370 | { ac_try='test -s conftest.$ac_objext' | |
21371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21372 | (eval $ac_try) 2>&5 | |
21373 | ac_status=$? | |
21374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21375 | (exit $ac_status); }; }; then | |
97bf5e38 | 21376 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 21377 | else |
bec39cab AC |
21378 | echo "$as_me: failed program was:" >&5 |
21379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21380 | ||
4e8d927d | 21381 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 21382 | |
d45fe813 | 21383 | fi |
4e8d927d | 21384 | |
bec39cab | 21385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21386 | fi |
21387 | ||
97bf5e38 | 21388 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
21389 | |
21390 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21391 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 21392 | _ACEOF |
d45fe813 | 21393 | |
97bf5e38 | 21394 | fi |
4e8d927d DJ |
21395 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
21396 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; } | |
d45fe813 | 21397 | |
4e8d927d DJ |
21398 | { echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
21399 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21400 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
21401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21402 | else |
bec39cab AC |
21403 | cat >conftest.$ac_ext <<_ACEOF |
21404 | /* confdefs.h. */ | |
21405 | _ACEOF | |
21406 | cat confdefs.h >>conftest.$ac_ext | |
21407 | cat >>conftest.$ac_ext <<_ACEOF | |
21408 | /* end confdefs.h. */ | |
97bf5e38 MK |
21409 | |
21410 | #define _SYSCALL32 | |
21411 | #include <sys/procfs.h> | |
bec39cab AC |
21412 | int |
21413 | main () | |
21414 | { | |
97bf5e38 | 21415 | prgregset32_t avar |
bec39cab AC |
21416 | ; |
21417 | return 0; | |
21418 | } | |
21419 | _ACEOF | |
21420 | rm -f conftest.$ac_objext | |
21421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21422 | (eval $ac_compile) 2>conftest.er1 | |
21423 | ac_status=$? | |
21424 | grep -v '^ *+' conftest.er1 >conftest.err | |
21425 | rm -f conftest.er1 | |
21426 | cat conftest.err >&5 | |
21427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21428 | (exit $ac_status); } && | |
121ce6e5 | 21429 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21431 | (eval $ac_try) 2>&5 | |
21432 | ac_status=$? | |
21433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21434 | (exit $ac_status); }; } && | |
21435 | { ac_try='test -s conftest.$ac_objext' | |
21436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21437 | (eval $ac_try) 2>&5 | |
21438 | ac_status=$? | |
21439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21440 | (exit $ac_status); }; }; then | |
97bf5e38 | 21441 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 21442 | else |
bec39cab AC |
21443 | echo "$as_me: failed program was:" >&5 |
21444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21445 | ||
4e8d927d | 21446 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 21447 | |
d45fe813 | 21448 | fi |
4e8d927d | 21449 | |
bec39cab | 21450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21451 | fi |
21452 | ||
97bf5e38 | 21453 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
21454 | |
21455 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21456 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 21457 | _ACEOF |
d45fe813 | 21458 | |
97bf5e38 | 21459 | fi |
4e8d927d DJ |
21460 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
21461 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; } | |
d45fe813 | 21462 | |
4e8d927d DJ |
21463 | { echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
21464 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21465 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
21466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21467 | else |
bec39cab AC |
21468 | cat >conftest.$ac_ext <<_ACEOF |
21469 | /* confdefs.h. */ | |
21470 | _ACEOF | |
21471 | cat confdefs.h >>conftest.$ac_ext | |
21472 | cat >>conftest.$ac_ext <<_ACEOF | |
21473 | /* end confdefs.h. */ | |
97bf5e38 MK |
21474 | |
21475 | #define _SYSCALL32 | |
21476 | #include <sys/procfs.h> | |
bec39cab AC |
21477 | int |
21478 | main () | |
21479 | { | |
97bf5e38 | 21480 | prfpregset32_t avar |
bec39cab AC |
21481 | ; |
21482 | return 0; | |
21483 | } | |
21484 | _ACEOF | |
21485 | rm -f conftest.$ac_objext | |
21486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21487 | (eval $ac_compile) 2>conftest.er1 | |
21488 | ac_status=$? | |
21489 | grep -v '^ *+' conftest.er1 >conftest.err | |
21490 | rm -f conftest.er1 | |
21491 | cat conftest.err >&5 | |
21492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21493 | (exit $ac_status); } && | |
121ce6e5 | 21494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21496 | (eval $ac_try) 2>&5 | |
21497 | ac_status=$? | |
21498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21499 | (exit $ac_status); }; } && | |
21500 | { ac_try='test -s conftest.$ac_objext' | |
21501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21502 | (eval $ac_try) 2>&5 | |
21503 | ac_status=$? | |
21504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21505 | (exit $ac_status); }; }; then | |
97bf5e38 | 21506 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 21507 | else |
bec39cab AC |
21508 | echo "$as_me: failed program was:" >&5 |
21509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21510 | ||
4e8d927d | 21511 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 21512 | |
d45fe813 | 21513 | fi |
4e8d927d | 21514 | |
bec39cab | 21515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21516 | fi |
21517 | ||
97bf5e38 | 21518 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
21519 | |
21520 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21521 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 21522 | _ACEOF |
d45fe813 | 21523 | |
97bf5e38 | 21524 | fi |
4e8d927d DJ |
21525 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
21526 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; } | |
d45fe813 | 21527 | |
4e8d927d DJ |
21528 | { echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
21529 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21530 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
21531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 21532 | else |
bec39cab AC |
21533 | cat >conftest.$ac_ext <<_ACEOF |
21534 | /* confdefs.h. */ | |
21535 | _ACEOF | |
21536 | cat confdefs.h >>conftest.$ac_ext | |
21537 | cat >>conftest.$ac_ext <<_ACEOF | |
21538 | /* end confdefs.h. */ | |
97bf5e38 | 21539 | |
d45fe813 | 21540 | #define _SYSCALL32 |
97bf5e38 | 21541 | #include <sys/procfs.h> |
bec39cab AC |
21542 | int |
21543 | main () | |
21544 | { | |
97bf5e38 | 21545 | lwpid_t avar |
bec39cab AC |
21546 | ; |
21547 | return 0; | |
21548 | } | |
21549 | _ACEOF | |
21550 | rm -f conftest.$ac_objext | |
21551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21552 | (eval $ac_compile) 2>conftest.er1 | |
21553 | ac_status=$? | |
21554 | grep -v '^ *+' conftest.er1 >conftest.err | |
21555 | rm -f conftest.er1 | |
21556 | cat conftest.err >&5 | |
21557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21558 | (exit $ac_status); } && | |
121ce6e5 | 21559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21561 | (eval $ac_try) 2>&5 | |
21562 | ac_status=$? | |
21563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21564 | (exit $ac_status); }; } && | |
21565 | { ac_try='test -s conftest.$ac_objext' | |
21566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21567 | (eval $ac_try) 2>&5 | |
21568 | ac_status=$? | |
21569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21570 | (exit $ac_status); }; }; then | |
97bf5e38 | 21571 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 21572 | else |
bec39cab AC |
21573 | echo "$as_me: failed program was:" >&5 |
21574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21575 | ||
4e8d927d | 21576 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 21577 | |
d45fe813 | 21578 | fi |
4e8d927d | 21579 | |
bec39cab | 21580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
21581 | fi |
21582 | ||
97bf5e38 | 21583 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
21584 | |
21585 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21586 | #define HAVE_LWPID_T 1 |
bec39cab | 21587 | _ACEOF |
d45fe813 | 21588 | |
97bf5e38 | 21589 | fi |
4e8d927d DJ |
21590 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
21591 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; } | |
c906108c | 21592 | |
4e8d927d DJ |
21593 | { echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
21594 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21595 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
21596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21597 | else |
bec39cab AC |
21598 | cat >conftest.$ac_ext <<_ACEOF |
21599 | /* confdefs.h. */ | |
21600 | _ACEOF | |
21601 | cat confdefs.h >>conftest.$ac_ext | |
21602 | cat >>conftest.$ac_ext <<_ACEOF | |
21603 | /* end confdefs.h. */ | |
c906108c | 21604 | |
97bf5e38 MK |
21605 | #define _SYSCALL32 |
21606 | #include <sys/procfs.h> | |
bec39cab AC |
21607 | int |
21608 | main () | |
21609 | { | |
97bf5e38 | 21610 | psaddr_t avar |
bec39cab AC |
21611 | ; |
21612 | return 0; | |
21613 | } | |
21614 | _ACEOF | |
21615 | rm -f conftest.$ac_objext | |
21616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21617 | (eval $ac_compile) 2>conftest.er1 | |
21618 | ac_status=$? | |
21619 | grep -v '^ *+' conftest.er1 >conftest.err | |
21620 | rm -f conftest.er1 | |
21621 | cat conftest.err >&5 | |
21622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21623 | (exit $ac_status); } && | |
121ce6e5 | 21624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21626 | (eval $ac_try) 2>&5 | |
21627 | ac_status=$? | |
21628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21629 | (exit $ac_status); }; } && | |
21630 | { ac_try='test -s conftest.$ac_objext' | |
21631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21632 | (eval $ac_try) 2>&5 | |
21633 | ac_status=$? | |
21634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21635 | (exit $ac_status); }; }; then | |
97bf5e38 | 21636 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 21637 | else |
bec39cab AC |
21638 | echo "$as_me: failed program was:" >&5 |
21639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21640 | ||
4e8d927d | 21641 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 21642 | |
c906108c | 21643 | fi |
4e8d927d | 21644 | |
bec39cab | 21645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21646 | fi |
21647 | ||
97bf5e38 | 21648 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
21649 | |
21650 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21651 | #define HAVE_PSADDR_T 1 |
bec39cab | 21652 | _ACEOF |
c906108c | 21653 | |
97bf5e38 | 21654 | fi |
4e8d927d DJ |
21655 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
21656 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; } | |
c906108c | 21657 | |
4e8d927d DJ |
21658 | { echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
21659 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21660 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
21661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21662 | else |
bec39cab AC |
21663 | cat >conftest.$ac_ext <<_ACEOF |
21664 | /* confdefs.h. */ | |
21665 | _ACEOF | |
21666 | cat confdefs.h >>conftest.$ac_ext | |
21667 | cat >>conftest.$ac_ext <<_ACEOF | |
21668 | /* end confdefs.h. */ | |
c906108c | 21669 | |
97bf5e38 MK |
21670 | #define _SYSCALL32 |
21671 | #include <sys/procfs.h> | |
bec39cab AC |
21672 | int |
21673 | main () | |
21674 | { | |
97bf5e38 | 21675 | prsysent_t avar |
bec39cab AC |
21676 | ; |
21677 | return 0; | |
21678 | } | |
21679 | _ACEOF | |
21680 | rm -f conftest.$ac_objext | |
21681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21682 | (eval $ac_compile) 2>conftest.er1 | |
21683 | ac_status=$? | |
21684 | grep -v '^ *+' conftest.er1 >conftest.err | |
21685 | rm -f conftest.er1 | |
21686 | cat conftest.err >&5 | |
21687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21688 | (exit $ac_status); } && | |
121ce6e5 | 21689 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21691 | (eval $ac_try) 2>&5 | |
21692 | ac_status=$? | |
21693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21694 | (exit $ac_status); }; } && | |
21695 | { ac_try='test -s conftest.$ac_objext' | |
21696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21697 | (eval $ac_try) 2>&5 | |
21698 | ac_status=$? | |
21699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21700 | (exit $ac_status); }; }; then | |
97bf5e38 | 21701 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 21702 | else |
bec39cab AC |
21703 | echo "$as_me: failed program was:" >&5 |
21704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21705 | ||
4e8d927d | 21706 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 21707 | |
c906108c | 21708 | fi |
4e8d927d | 21709 | |
bec39cab | 21710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21711 | fi |
21712 | ||
97bf5e38 | 21713 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
21714 | |
21715 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21716 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 21717 | _ACEOF |
c906108c | 21718 | |
97bf5e38 | 21719 | fi |
4e8d927d DJ |
21720 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
21721 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; } | |
c906108c | 21722 | |
4e8d927d DJ |
21723 | { echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
21724 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21725 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
21726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21727 | else |
bec39cab AC |
21728 | cat >conftest.$ac_ext <<_ACEOF |
21729 | /* confdefs.h. */ | |
21730 | _ACEOF | |
21731 | cat confdefs.h >>conftest.$ac_ext | |
21732 | cat >>conftest.$ac_ext <<_ACEOF | |
21733 | /* end confdefs.h. */ | |
c906108c | 21734 | |
97bf5e38 MK |
21735 | #define _SYSCALL32 |
21736 | #include <sys/procfs.h> | |
bec39cab AC |
21737 | int |
21738 | main () | |
21739 | { | |
97bf5e38 | 21740 | pr_sigset_t avar |
bec39cab AC |
21741 | ; |
21742 | return 0; | |
21743 | } | |
21744 | _ACEOF | |
21745 | rm -f conftest.$ac_objext | |
21746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21747 | (eval $ac_compile) 2>conftest.er1 | |
21748 | ac_status=$? | |
21749 | grep -v '^ *+' conftest.er1 >conftest.err | |
21750 | rm -f conftest.er1 | |
21751 | cat conftest.err >&5 | |
21752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21753 | (exit $ac_status); } && | |
121ce6e5 | 21754 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21756 | (eval $ac_try) 2>&5 | |
21757 | ac_status=$? | |
21758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21759 | (exit $ac_status); }; } && | |
21760 | { ac_try='test -s conftest.$ac_objext' | |
21761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21762 | (eval $ac_try) 2>&5 | |
21763 | ac_status=$? | |
21764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21765 | (exit $ac_status); }; }; then | |
97bf5e38 | 21766 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 21767 | else |
bec39cab AC |
21768 | echo "$as_me: failed program was:" >&5 |
21769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21770 | ||
4e8d927d | 21771 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 21772 | |
c906108c | 21773 | fi |
4e8d927d | 21774 | |
bec39cab | 21775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21776 | fi |
21777 | ||
97bf5e38 | 21778 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
21779 | |
21780 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21781 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 21782 | _ACEOF |
c906108c | 21783 | |
97bf5e38 | 21784 | fi |
4e8d927d DJ |
21785 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
21786 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; } | |
c906108c | 21787 | |
4e8d927d DJ |
21788 | { echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
21789 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21790 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
21791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21792 | else |
bec39cab AC |
21793 | cat >conftest.$ac_ext <<_ACEOF |
21794 | /* confdefs.h. */ | |
21795 | _ACEOF | |
21796 | cat confdefs.h >>conftest.$ac_ext | |
21797 | cat >>conftest.$ac_ext <<_ACEOF | |
21798 | /* end confdefs.h. */ | |
c906108c | 21799 | |
97bf5e38 MK |
21800 | #define _SYSCALL32 |
21801 | #include <sys/procfs.h> | |
bec39cab AC |
21802 | int |
21803 | main () | |
21804 | { | |
97bf5e38 | 21805 | pr_sigaction64_t avar |
bec39cab AC |
21806 | ; |
21807 | return 0; | |
21808 | } | |
21809 | _ACEOF | |
21810 | rm -f conftest.$ac_objext | |
21811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21812 | (eval $ac_compile) 2>conftest.er1 | |
21813 | ac_status=$? | |
21814 | grep -v '^ *+' conftest.er1 >conftest.err | |
21815 | rm -f conftest.er1 | |
21816 | cat conftest.err >&5 | |
21817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21818 | (exit $ac_status); } && | |
121ce6e5 | 21819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21821 | (eval $ac_try) 2>&5 | |
21822 | ac_status=$? | |
21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21824 | (exit $ac_status); }; } && | |
21825 | { ac_try='test -s conftest.$ac_objext' | |
21826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21827 | (eval $ac_try) 2>&5 | |
21828 | ac_status=$? | |
21829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21830 | (exit $ac_status); }; }; then | |
97bf5e38 | 21831 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 21832 | else |
bec39cab AC |
21833 | echo "$as_me: failed program was:" >&5 |
21834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21835 | ||
4e8d927d | 21836 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 21837 | |
c906108c | 21838 | fi |
4e8d927d | 21839 | |
bec39cab | 21840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21841 | fi |
21842 | ||
97bf5e38 | 21843 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
21844 | |
21845 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21846 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 21847 | _ACEOF |
c906108c | 21848 | |
97bf5e38 | 21849 | fi |
4e8d927d DJ |
21850 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
21851 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; } | |
97bf5e38 | 21852 | |
4e8d927d DJ |
21853 | { echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
21854 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21855 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
21856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 21857 | else |
bec39cab AC |
21858 | cat >conftest.$ac_ext <<_ACEOF |
21859 | /* confdefs.h. */ | |
21860 | _ACEOF | |
21861 | cat confdefs.h >>conftest.$ac_ext | |
21862 | cat >>conftest.$ac_ext <<_ACEOF | |
21863 | /* end confdefs.h. */ | |
97bf5e38 MK |
21864 | |
21865 | #define _SYSCALL32 | |
21866 | #include <sys/procfs.h> | |
bec39cab AC |
21867 | int |
21868 | main () | |
21869 | { | |
97bf5e38 | 21870 | pr_siginfo64_t avar |
bec39cab AC |
21871 | ; |
21872 | return 0; | |
21873 | } | |
21874 | _ACEOF | |
21875 | rm -f conftest.$ac_objext | |
21876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21877 | (eval $ac_compile) 2>conftest.er1 | |
21878 | ac_status=$? | |
21879 | grep -v '^ *+' conftest.er1 >conftest.err | |
21880 | rm -f conftest.er1 | |
21881 | cat conftest.err >&5 | |
21882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21883 | (exit $ac_status); } && | |
121ce6e5 | 21884 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
21885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21886 | (eval $ac_try) 2>&5 | |
21887 | ac_status=$? | |
21888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21889 | (exit $ac_status); }; } && | |
21890 | { ac_try='test -s conftest.$ac_objext' | |
21891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21892 | (eval $ac_try) 2>&5 | |
21893 | ac_status=$? | |
21894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21895 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21896 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
21897 | else | |
bec39cab AC |
21898 | echo "$as_me: failed program was:" >&5 |
21899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21900 | ||
4e8d927d | 21901 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 21902 | |
97bf5e38 | 21903 | fi |
4e8d927d | 21904 | |
bec39cab | 21905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 21906 | fi |
c906108c | 21907 | |
97bf5e38 | 21908 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
21909 | |
21910 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21911 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 21912 | _ACEOF |
c906108c | 21913 | |
97bf5e38 | 21914 | fi |
4e8d927d DJ |
21915 | { echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
21916 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; } | |
bec39cab AC |
21917 | |
21918 | ||
97bf5e38 MK |
21919 | |
21920 | ||
21921 | ||
97bf5e38 | 21922 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
4e8d927d DJ |
21923 | { echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
21924 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6; } | |
bec39cab AC |
21925 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
21926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
21927 | else |
21928 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 21929 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 21930 | else |
bec39cab AC |
21931 | cat >conftest.$ac_ext <<_ACEOF |
21932 | /* confdefs.h. */ | |
21933 | _ACEOF | |
21934 | cat confdefs.h >>conftest.$ac_ext | |
21935 | cat >>conftest.$ac_ext <<_ACEOF | |
21936 | /* end confdefs.h. */ | |
97bf5e38 MK |
21937 | #include <sys/procfs.h> |
21938 | int main () | |
21939 | { | |
21940 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
21941 | return 1; | |
21942 | return 0; | |
21943 | } | |
bec39cab AC |
21944 | _ACEOF |
21945 | rm -f conftest$ac_exeext | |
21946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21947 | (eval $ac_link) 2>&5 | |
21948 | ac_status=$? | |
21949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21950 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21952 | (eval $ac_try) 2>&5 | |
21953 | ac_status=$? | |
21954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21955 | (exit $ac_status); }; }; then | |
97bf5e38 | 21956 | gdb_cv_prfpregset_t_broken=no |
c906108c | 21957 | else |
bec39cab AC |
21958 | echo "$as_me: program exited with status $ac_status" >&5 |
21959 | echo "$as_me: failed program was:" >&5 | |
21960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21961 | ||
21962 | ( exit $ac_status ) | |
21963 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 21964 | fi |
4e8d927d | 21965 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 21966 | fi |
4e8d927d DJ |
21967 | |
21968 | ||
c906108c SS |
21969 | fi |
21970 | ||
4e8d927d DJ |
21971 | { echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
21972 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6; } | |
97bf5e38 | 21973 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
21974 | |
21975 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21976 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 21977 | _ACEOF |
c906108c | 21978 | |
97bf5e38 MK |
21979 | fi |
21980 | fi | |
c906108c | 21981 | |
bec39cab | 21982 | |
4e8d927d DJ |
21983 | { echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
21984 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6; } | |
bec39cab AC |
21985 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
21986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21987 | else |
bec39cab AC |
21988 | cat >conftest.$ac_ext <<_ACEOF |
21989 | /* confdefs.h. */ | |
21990 | _ACEOF | |
21991 | cat confdefs.h >>conftest.$ac_ext | |
21992 | cat >>conftest.$ac_ext <<_ACEOF | |
21993 | /* end confdefs.h. */ | |
97bf5e38 MK |
21994 | #include <unistd.h> |
21995 | #include <sys/types.h> | |
21996 | #include <sys/procfs.h> | |
21997 | ||
bec39cab AC |
21998 | int |
21999 | main () | |
22000 | { | |
97bf5e38 MK |
22001 | |
22002 | int dummy;; | |
22003 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
22004 | |
22005 | ; | |
22006 | return 0; | |
22007 | } | |
22008 | _ACEOF | |
22009 | rm -f conftest.$ac_objext | |
22010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22011 | (eval $ac_compile) 2>conftest.er1 | |
22012 | ac_status=$? | |
22013 | grep -v '^ *+' conftest.er1 >conftest.err | |
22014 | rm -f conftest.er1 | |
22015 | cat conftest.err >&5 | |
22016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22017 | (exit $ac_status); } && | |
121ce6e5 | 22018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22020 | (eval $ac_try) 2>&5 | |
22021 | ac_status=$? | |
22022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22023 | (exit $ac_status); }; } && | |
22024 | { ac_try='test -s conftest.$ac_objext' | |
22025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22026 | (eval $ac_try) 2>&5 | |
22027 | ac_status=$? | |
22028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22029 | (exit $ac_status); }; }; then | |
97bf5e38 | 22030 | gdb_cv_have_procfs_piocset=yes |
c906108c | 22031 | else |
bec39cab AC |
22032 | echo "$as_me: failed program was:" >&5 |
22033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22034 | ||
4e8d927d | 22035 | gdb_cv_have_procfs_piocset=no |
c906108c | 22036 | fi |
4e8d927d | 22037 | |
bec39cab | 22038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 22039 | fi |
97bf5e38 | 22040 | |
4e8d927d DJ |
22041 | { echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
22042 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6; } | |
97bf5e38 | 22043 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
22044 | |
22045 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22046 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 22047 | _ACEOF |
97bf5e38 MK |
22048 | |
22049 | fi | |
c906108c | 22050 | fi |
c906108c | 22051 | |
97bf5e38 | 22052 | if test ${host} = ${target} ; then |
bec39cab | 22053 | |
4e8d927d DJ |
22054 | { echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
22055 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6; } | |
bec39cab AC |
22056 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
22057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22058 | else | |
22059 | cat >conftest.$ac_ext <<_ACEOF | |
22060 | /* confdefs.h. */ | |
22061 | _ACEOF | |
22062 | cat confdefs.h >>conftest.$ac_ext | |
22063 | cat >>conftest.$ac_ext <<_ACEOF | |
22064 | /* end confdefs.h. */ | |
97bf5e38 | 22065 | #include <link.h> |
bec39cab AC |
22066 | int |
22067 | main () | |
22068 | { | |
97bf5e38 | 22069 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
22070 | ; |
22071 | return 0; | |
22072 | } | |
22073 | _ACEOF | |
22074 | rm -f conftest.$ac_objext | |
22075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22076 | (eval $ac_compile) 2>conftest.er1 | |
22077 | ac_status=$? | |
22078 | grep -v '^ *+' conftest.er1 >conftest.err | |
22079 | rm -f conftest.er1 | |
22080 | cat conftest.err >&5 | |
22081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22082 | (exit $ac_status); } && | |
121ce6e5 | 22083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22085 | (eval $ac_try) 2>&5 | |
22086 | ac_status=$? | |
22087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22088 | (exit $ac_status); }; } && | |
22089 | { ac_try='test -s conftest.$ac_objext' | |
22090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22091 | (eval $ac_try) 2>&5 | |
22092 | ac_status=$? | |
22093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22094 | (exit $ac_status); }; }; then | |
97bf5e38 | 22095 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 22096 | else |
bec39cab AC |
22097 | echo "$as_me: failed program was:" >&5 |
22098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22099 | ||
4e8d927d | 22100 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 22101 | fi |
4e8d927d | 22102 | |
bec39cab | 22103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
22104 | fi |
22105 | ||
4e8d927d DJ |
22106 | { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
22107 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6; } | |
97bf5e38 | 22108 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
22109 | |
22110 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22111 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 22112 | _ACEOF |
97bf5e38 MK |
22113 | |
22114 | fi | |
22115 | ||
bec39cab | 22116 | |
4e8d927d DJ |
22117 | { echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
22118 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6; } | |
bec39cab AC |
22119 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
22120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22121 | else |
bec39cab AC |
22122 | cat >conftest.$ac_ext <<_ACEOF |
22123 | /* confdefs.h. */ | |
22124 | _ACEOF | |
22125 | cat confdefs.h >>conftest.$ac_ext | |
22126 | cat >>conftest.$ac_ext <<_ACEOF | |
22127 | /* end confdefs.h. */ | |
97bf5e38 MK |
22128 | #include <sys/types.h> |
22129 | #include <link.h> | |
bec39cab AC |
22130 | int |
22131 | main () | |
22132 | { | |
97bf5e38 | 22133 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
22134 | ; |
22135 | return 0; | |
22136 | } | |
22137 | _ACEOF | |
22138 | rm -f conftest.$ac_objext | |
22139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22140 | (eval $ac_compile) 2>conftest.er1 | |
22141 | ac_status=$? | |
22142 | grep -v '^ *+' conftest.er1 >conftest.err | |
22143 | rm -f conftest.er1 | |
22144 | cat conftest.err >&5 | |
22145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22146 | (exit $ac_status); } && | |
121ce6e5 | 22147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22149 | (eval $ac_try) 2>&5 | |
22150 | ac_status=$? | |
22151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22152 | (exit $ac_status); }; } && | |
22153 | { ac_try='test -s conftest.$ac_objext' | |
22154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22155 | (eval $ac_try) 2>&5 | |
22156 | ac_status=$? | |
22157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22158 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22159 | gdb_cv_have_struct_link_map_with_lm_members=yes |
22160 | else | |
bec39cab AC |
22161 | echo "$as_me: failed program was:" >&5 |
22162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22163 | ||
4e8d927d | 22164 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 22165 | fi |
4e8d927d | 22166 | |
bec39cab | 22167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 22168 | fi |
c906108c | 22169 | |
4e8d927d DJ |
22170 | { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
22171 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6; } | |
97bf5e38 | 22172 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
22173 | |
22174 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22175 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 22176 | _ACEOF |
97bf5e38 MK |
22177 | |
22178 | fi | |
22179 | ||
bec39cab | 22180 | |
4e8d927d DJ |
22181 | { echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
22182 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6; } | |
bec39cab AC |
22183 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
22184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22185 | else |
bec39cab AC |
22186 | cat >conftest.$ac_ext <<_ACEOF |
22187 | /* confdefs.h. */ | |
22188 | _ACEOF | |
22189 | cat confdefs.h >>conftest.$ac_ext | |
22190 | cat >>conftest.$ac_ext <<_ACEOF | |
22191 | /* end confdefs.h. */ | |
97bf5e38 MK |
22192 | #include <sys/types.h> |
22193 | #ifdef HAVE_NLIST_H | |
22194 | #include <nlist.h> | |
22195 | #endif | |
22196 | #include <link.h> | |
bec39cab AC |
22197 | int |
22198 | main () | |
22199 | { | |
97bf5e38 | 22200 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
22201 | ; |
22202 | return 0; | |
22203 | } | |
22204 | _ACEOF | |
22205 | rm -f conftest.$ac_objext | |
22206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22207 | (eval $ac_compile) 2>conftest.er1 | |
22208 | ac_status=$? | |
22209 | grep -v '^ *+' conftest.er1 >conftest.err | |
22210 | rm -f conftest.er1 | |
22211 | cat conftest.err >&5 | |
22212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22213 | (exit $ac_status); } && | |
121ce6e5 | 22214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22216 | (eval $ac_try) 2>&5 | |
22217 | ac_status=$? | |
22218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22219 | (exit $ac_status); }; } && | |
22220 | { ac_try='test -s conftest.$ac_objext' | |
22221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22222 | (eval $ac_try) 2>&5 | |
22223 | ac_status=$? | |
22224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22225 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22226 | gdb_cv_have_struct_so_map_with_som_members=yes |
22227 | else | |
bec39cab AC |
22228 | echo "$as_me: failed program was:" >&5 |
22229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22230 | ||
4e8d927d | 22231 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 22232 | fi |
4e8d927d | 22233 | |
bec39cab | 22234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22235 | fi |
c906108c | 22236 | |
4e8d927d DJ |
22237 | { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
22238 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6; } | |
97bf5e38 | 22239 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
22240 | |
22241 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22242 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 22243 | _ACEOF |
c906108c | 22244 | |
97bf5e38 | 22245 | fi |
c906108c | 22246 | |
bec39cab | 22247 | |
4e8d927d DJ |
22248 | { echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
22249 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6; } | |
bec39cab AC |
22250 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
22251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 22252 | else |
bec39cab AC |
22253 | cat >conftest.$ac_ext <<_ACEOF |
22254 | /* confdefs.h. */ | |
22255 | _ACEOF | |
22256 | cat confdefs.h >>conftest.$ac_ext | |
22257 | cat >>conftest.$ac_ext <<_ACEOF | |
22258 | /* end confdefs.h. */ | |
97bf5e38 MK |
22259 | #define _SYSCALL32 |
22260 | #include <sys/link.h> | |
bec39cab AC |
22261 | int |
22262 | main () | |
22263 | { | |
97bf5e38 | 22264 | struct link_map32 l; |
bec39cab AC |
22265 | ; |
22266 | return 0; | |
22267 | } | |
22268 | _ACEOF | |
22269 | rm -f conftest.$ac_objext | |
22270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22271 | (eval $ac_compile) 2>conftest.er1 | |
22272 | ac_status=$? | |
22273 | grep -v '^ *+' conftest.er1 >conftest.err | |
22274 | rm -f conftest.er1 | |
22275 | cat conftest.err >&5 | |
22276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22277 | (exit $ac_status); } && | |
121ce6e5 | 22278 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22280 | (eval $ac_try) 2>&5 | |
22281 | ac_status=$? | |
22282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22283 | (exit $ac_status); }; } && | |
22284 | { ac_try='test -s conftest.$ac_objext' | |
22285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22286 | (eval $ac_try) 2>&5 | |
22287 | ac_status=$? | |
22288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22289 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22290 | gdb_cv_have_struct_link_map32=yes |
22291 | else | |
bec39cab AC |
22292 | echo "$as_me: failed program was:" >&5 |
22293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22294 | ||
4e8d927d | 22295 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 22296 | fi |
4e8d927d | 22297 | |
bec39cab | 22298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22299 | fi |
c906108c | 22300 | |
4e8d927d DJ |
22301 | { echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
22302 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6; } | |
97bf5e38 | 22303 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
22304 | |
22305 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22306 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 22307 | _ACEOF |
c906108c | 22308 | |
60ca704f SE |
22309 | |
22310 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22311 | #define _SYSCALL32 1 |
bec39cab | 22312 | _ACEOF |
c906108c | 22313 | |
97bf5e38 MK |
22314 | fi |
22315 | fi | |
c906108c | 22316 | |
bc8bcb4b | 22317 | # Check if the compiler supports the `long long' type. |
c906108c | 22318 | |
4e8d927d DJ |
22319 | { echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
22320 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6; } | |
bec39cab AC |
22321 | if test "${gdb_cv_c_long_long+set}" = set; then |
22322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 22323 | else |
bec39cab AC |
22324 | cat >conftest.$ac_ext <<_ACEOF |
22325 | /* confdefs.h. */ | |
22326 | _ACEOF | |
22327 | cat confdefs.h >>conftest.$ac_ext | |
22328 | cat >>conftest.$ac_ext <<_ACEOF | |
22329 | /* end confdefs.h. */ | |
bc8bcb4b | 22330 | extern long long foo; |
bec39cab AC |
22331 | int |
22332 | main () | |
22333 | { | |
bc8bcb4b | 22334 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
22335 | ; |
22336 | return 0; | |
22337 | } | |
22338 | _ACEOF | |
22339 | rm -f conftest.$ac_objext | |
22340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22341 | (eval $ac_compile) 2>conftest.er1 | |
22342 | ac_status=$? | |
22343 | grep -v '^ *+' conftest.er1 >conftest.err | |
22344 | rm -f conftest.er1 | |
22345 | cat conftest.err >&5 | |
22346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22347 | (exit $ac_status); } && | |
121ce6e5 | 22348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22350 | (eval $ac_try) 2>&5 | |
22351 | ac_status=$? | |
22352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22353 | (exit $ac_status); }; } && | |
22354 | { ac_try='test -s conftest.$ac_objext' | |
22355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22356 | (eval $ac_try) 2>&5 | |
22357 | ac_status=$? | |
22358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22359 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22360 | gdb_cv_c_long_long=yes |
22361 | else | |
bec39cab AC |
22362 | echo "$as_me: failed program was:" >&5 |
22363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22364 | ||
4e8d927d | 22365 | gdb_cv_c_long_long=no |
97bf5e38 | 22366 | fi |
4e8d927d | 22367 | |
bec39cab | 22368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22369 | fi |
4e8d927d DJ |
22370 | { echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
22371 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6; } | |
97bf5e38 | 22372 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
22373 | |
22374 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22375 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 22376 | _ACEOF |
97bf5e38 MK |
22377 | |
22378 | fi | |
22379 | ||
bc8bcb4b | 22380 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 22381 | |
4e8d927d DJ |
22382 | { echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
22383 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6; } | |
bec39cab AC |
22384 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
22385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
22386 | else |
22387 | if test "$cross_compiling" = yes; then | |
22388 | gdb_cv_printf_has_long_long=no | |
22389 | else | |
bec39cab AC |
22390 | cat >conftest.$ac_ext <<_ACEOF |
22391 | /* confdefs.h. */ | |
22392 | _ACEOF | |
22393 | cat confdefs.h >>conftest.$ac_ext | |
22394 | cat >>conftest.$ac_ext <<_ACEOF | |
22395 | /* end confdefs.h. */ | |
bc8bcb4b MK |
22396 | $ac_includes_default |
22397 | int | |
22398 | main () | |
22399 | { | |
22400 | char buf[32]; | |
97bf5e38 MK |
22401 | long long l = 0; |
22402 | l = (l << 16) + 0x0123; | |
22403 | l = (l << 16) + 0x4567; | |
22404 | l = (l << 16) + 0x89ab; | |
22405 | l = (l << 16) + 0xcdef; | |
22406 | sprintf (buf, "0x%016llx", l); | |
22407 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
22408 | ; |
22409 | return 0; | |
c906108c | 22410 | } |
bec39cab AC |
22411 | _ACEOF |
22412 | rm -f conftest$ac_exeext | |
22413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22414 | (eval $ac_link) 2>&5 | |
22415 | ac_status=$? | |
22416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22419 | (eval $ac_try) 2>&5 | |
22420 | ac_status=$? | |
22421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22422 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22423 | gdb_cv_printf_has_long_long=yes |
22424 | else | |
bec39cab AC |
22425 | echo "$as_me: program exited with status $ac_status" >&5 |
22426 | echo "$as_me: failed program was:" >&5 | |
22427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22428 | ||
22429 | ( exit $ac_status ) | |
22430 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 22431 | fi |
4e8d927d | 22432 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22433 | fi |
4e8d927d DJ |
22434 | |
22435 | ||
97bf5e38 | 22436 | fi |
4e8d927d DJ |
22437 | { echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
22438 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6; } | |
97bf5e38 | 22439 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
22440 | |
22441 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22442 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 22443 | _ACEOF |
97bf5e38 MK |
22444 | |
22445 | fi | |
97bf5e38 | 22446 | |
bc8bcb4b MK |
22447 | # Check if the compiler supports the `long double' type. We can't use |
22448 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
22449 | # constants defined in <float.h> that fail on some systems, | |
22450 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 22451 | |
4e8d927d DJ |
22452 | { echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
22453 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6; } | |
bc8bcb4b | 22454 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 22455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 22456 | else |
bec39cab AC |
22457 | cat >conftest.$ac_ext <<_ACEOF |
22458 | /* confdefs.h. */ | |
22459 | _ACEOF | |
22460 | cat confdefs.h >>conftest.$ac_ext | |
22461 | cat >>conftest.$ac_ext <<_ACEOF | |
22462 | /* end confdefs.h. */ | |
97bf5e38 | 22463 | long double foo; |
bec39cab AC |
22464 | _ACEOF |
22465 | rm -f conftest.$ac_objext | |
22466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22467 | (eval $ac_compile) 2>conftest.er1 | |
22468 | ac_status=$? | |
22469 | grep -v '^ *+' conftest.er1 >conftest.err | |
22470 | rm -f conftest.er1 | |
22471 | cat conftest.err >&5 | |
22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22473 | (exit $ac_status); } && | |
121ce6e5 | 22474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22476 | (eval $ac_try) 2>&5 | |
22477 | ac_status=$? | |
22478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22479 | (exit $ac_status); }; } && | |
22480 | { ac_try='test -s conftest.$ac_objext' | |
22481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22482 | (eval $ac_try) 2>&5 | |
22483 | ac_status=$? | |
22484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22485 | (exit $ac_status); }; }; then | |
bc8bcb4b | 22486 | gdb_cv_c_long_double=yes |
97bf5e38 | 22487 | else |
bec39cab AC |
22488 | echo "$as_me: failed program was:" >&5 |
22489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22490 | ||
4e8d927d | 22491 | gdb_cv_c_long_double=no |
97bf5e38 | 22492 | fi |
4e8d927d | 22493 | |
bec39cab | 22494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22495 | fi |
4e8d927d DJ |
22496 | { echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
22497 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6; } | |
bc8bcb4b | 22498 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 22499 | |
bc8bcb4b | 22500 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 22501 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 22502 | _ACEOF |
97bf5e38 MK |
22503 | |
22504 | fi | |
22505 | ||
bc8bcb4b | 22506 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 22507 | |
4e8d927d DJ |
22508 | { echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
22509 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6; } | |
bec39cab AC |
22510 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
22511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
22512 | else |
22513 | if test "$cross_compiling" = yes; then | |
22514 | gdb_cv_printf_has_long_double=no | |
22515 | else | |
bec39cab AC |
22516 | cat >conftest.$ac_ext <<_ACEOF |
22517 | /* confdefs.h. */ | |
22518 | _ACEOF | |
22519 | cat confdefs.h >>conftest.$ac_ext | |
22520 | cat >>conftest.$ac_ext <<_ACEOF | |
22521 | /* end confdefs.h. */ | |
bc8bcb4b MK |
22522 | $ac_includes_default |
22523 | int | |
22524 | main () | |
22525 | { | |
22526 | char buf[16]; | |
97bf5e38 MK |
22527 | long double f = 3.141592653; |
22528 | sprintf (buf, "%Lg", f); | |
22529 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
22530 | ; |
22531 | return 0; | |
97bf5e38 | 22532 | } |
bec39cab AC |
22533 | _ACEOF |
22534 | rm -f conftest$ac_exeext | |
22535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22536 | (eval $ac_link) 2>&5 | |
22537 | ac_status=$? | |
22538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22541 | (eval $ac_try) 2>&5 | |
22542 | ac_status=$? | |
22543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22544 | (exit $ac_status); }; }; then | |
97bf5e38 | 22545 | gdb_cv_printf_has_long_double=yes |
c906108c | 22546 | else |
bec39cab AC |
22547 | echo "$as_me: program exited with status $ac_status" >&5 |
22548 | echo "$as_me: failed program was:" >&5 | |
22549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22550 | ||
22551 | ( exit $ac_status ) | |
22552 | gdb_cv_printf_has_long_double=no | |
c906108c | 22553 | fi |
4e8d927d | 22554 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 22555 | fi |
4e8d927d DJ |
22556 | |
22557 | ||
c906108c | 22558 | fi |
4e8d927d DJ |
22559 | { echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
22560 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6; } | |
97bf5e38 | 22561 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
22562 | |
22563 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22564 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 22565 | _ACEOF |
97bf5e38 MK |
22566 | |
22567 | fi | |
97bf5e38 | 22568 | |
bc8bcb4b | 22569 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 22570 | |
4e8d927d DJ |
22571 | { echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
22572 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6; } | |
bec39cab AC |
22573 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
22574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
22575 | else |
22576 | if test "$cross_compiling" = yes; then | |
22577 | gdb_cv_scanf_has_long_double=no | |
22578 | else | |
bec39cab AC |
22579 | cat >conftest.$ac_ext <<_ACEOF |
22580 | /* confdefs.h. */ | |
22581 | _ACEOF | |
22582 | cat confdefs.h >>conftest.$ac_ext | |
22583 | cat >>conftest.$ac_ext <<_ACEOF | |
22584 | /* end confdefs.h. */ | |
bc8bcb4b MK |
22585 | #include <stdio.h> |
22586 | int | |
22587 | main () | |
22588 | { | |
22589 | char *buf = "3.141592653"; | |
97bf5e38 MK |
22590 | long double f = 0; |
22591 | sscanf (buf, "%Lg", &f); | |
22592 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
22593 | ; |
22594 | return 0; | |
97bf5e38 | 22595 | } |
bec39cab AC |
22596 | _ACEOF |
22597 | rm -f conftest$ac_exeext | |
22598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22599 | (eval $ac_link) 2>&5 | |
22600 | ac_status=$? | |
22601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22602 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22604 | (eval $ac_try) 2>&5 | |
22605 | ac_status=$? | |
22606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22607 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
22608 | gdb_cv_scanf_has_long_double=yes |
22609 | else | |
bec39cab AC |
22610 | echo "$as_me: program exited with status $ac_status" >&5 |
22611 | echo "$as_me: failed program was:" >&5 | |
22612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22613 | ||
22614 | ( exit $ac_status ) | |
22615 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 22616 | fi |
4e8d927d | 22617 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 22618 | fi |
4e8d927d DJ |
22619 | |
22620 | ||
c906108c | 22621 | fi |
4e8d927d DJ |
22622 | { echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
22623 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6; } | |
97bf5e38 | 22624 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
22625 | |
22626 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 22627 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 22628 | _ACEOF |
97bf5e38 MK |
22629 | |
22630 | fi | |
c906108c | 22631 | |
438013df AO |
22632 | case ${host_os} in |
22633 | aix*) | |
4e8d927d DJ |
22634 | { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
22635 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; } | |
bec39cab AC |
22636 | if test "${gdb_cv_bigtoc+set}" = set; then |
22637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 22638 | else |
bec39cab | 22639 | |
438013df AO |
22640 | SAVE_LDFLAGS=$LDFLAGS |
22641 | ||
22642 | case $GCC in | |
22643 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
22644 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
22645 | esac | |
22646 | ||
22647 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
22648 | cat >conftest.$ac_ext <<_ACEOF |
22649 | /* confdefs.h. */ | |
22650 | _ACEOF | |
22651 | cat confdefs.h >>conftest.$ac_ext | |
22652 | cat >>conftest.$ac_ext <<_ACEOF | |
22653 | /* end confdefs.h. */ | |
438013df | 22654 | |
bec39cab AC |
22655 | int |
22656 | main () | |
22657 | { | |
438013df | 22658 | int i; |
bec39cab AC |
22659 | ; |
22660 | return 0; | |
22661 | } | |
22662 | _ACEOF | |
22663 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22665 | (eval $ac_link) 2>conftest.er1 | |
22666 | ac_status=$? | |
22667 | grep -v '^ *+' conftest.er1 >conftest.err | |
22668 | rm -f conftest.er1 | |
22669 | cat conftest.err >&5 | |
22670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22671 | (exit $ac_status); } && | |
121ce6e5 | 22672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22674 | (eval $ac_try) 2>&5 | |
22675 | ac_status=$? | |
22676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22677 | (exit $ac_status); }; } && | |
22678 | { ac_try='test -s conftest$ac_exeext' | |
22679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22680 | (eval $ac_try) 2>&5 | |
22681 | ac_status=$? | |
22682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22683 | (exit $ac_status); }; }; then | |
438013df AO |
22684 | : |
22685 | else | |
bec39cab AC |
22686 | echo "$as_me: failed program was:" >&5 |
22687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22688 | ||
4e8d927d | 22689 | gdb_cv_bigtoc= |
438013df | 22690 | fi |
4e8d927d | 22691 | |
bec39cab AC |
22692 | rm -f conftest.err conftest.$ac_objext \ |
22693 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 22694 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 22695 | |
bec39cab | 22696 | fi |
4e8d927d DJ |
22697 | { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
22698 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6; } | |
438013df AO |
22699 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
22700 | ;; | |
22701 | esac | |
22702 | ||
c906108c SS |
22703 | |
22704 | ||
22705 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
22706 | case ${host_os} in | |
22707 | hpux*) | |
4e8d927d DJ |
22708 | { echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
22709 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6; } | |
c906108c SS |
22710 | if test -f /usr/include/dce/cma_config.h ; then |
22711 | if test "$GCC" = "yes" ; then | |
4e8d927d DJ |
22712 | { echo "$as_me:$LINENO: result: yes" >&5 |
22713 | echo "${ECHO_T}yes" >&6; } | |
60ca704f SE |
22714 | |
22715 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 22716 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 22717 | _ACEOF |
c906108c | 22718 | |
3483b318 | 22719 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
22720 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
22721 | else | |
4e8d927d DJ |
22722 | { echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
22723 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6; } | |
c906108c SS |
22724 | fi |
22725 | else | |
4e8d927d DJ |
22726 | { echo "$as_me:$LINENO: result: no" >&5 |
22727 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
22728 | fi |
22729 | ;; | |
22730 | solaris*) | |
d92419e5 JB |
22731 | # See if thread_db library is around for Solaris thread debugging. |
22732 | # Note that we must explicitly test for version 1 of the library | |
22733 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
22734 | # the same API. | |
4e8d927d DJ |
22735 | { echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
22736 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6; } | |
c906108c | 22737 | if test -f /usr/lib/libthread_db.so.1 ; then |
4e8d927d DJ |
22738 | { echo "$as_me:$LINENO: result: yes" >&5 |
22739 | echo "${ECHO_T}yes" >&6; } | |
60ca704f SE |
22740 | |
22741 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 22742 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 22743 | _ACEOF |
c906108c | 22744 | |
3483b318 | 22745 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 22746 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 22747 | |
4e8d927d DJ |
22748 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
22749 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
bec39cab AC |
22750 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
22751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22752 | else |
bec39cab | 22753 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 22754 | LIBS="-ldl $LIBS" |
bec39cab AC |
22755 | cat >conftest.$ac_ext <<_ACEOF |
22756 | /* confdefs.h. */ | |
22757 | _ACEOF | |
22758 | cat confdefs.h >>conftest.$ac_ext | |
22759 | cat >>conftest.$ac_ext <<_ACEOF | |
22760 | /* end confdefs.h. */ | |
22761 | ||
4e8d927d DJ |
22762 | /* Override any GCC internal prototype to avoid an error. |
22763 | Use char because int might match the return type of a GCC | |
22764 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
22765 | #ifdef __cplusplus |
22766 | extern "C" | |
22767 | #endif | |
bec39cab AC |
22768 | char dlopen (); |
22769 | int | |
22770 | main () | |
22771 | { | |
4e8d927d | 22772 | return dlopen (); |
bec39cab AC |
22773 | ; |
22774 | return 0; | |
22775 | } | |
22776 | _ACEOF | |
22777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22779 | (eval $ac_link) 2>conftest.er1 | |
22780 | ac_status=$? | |
22781 | grep -v '^ *+' conftest.er1 >conftest.err | |
22782 | rm -f conftest.er1 | |
22783 | cat conftest.err >&5 | |
22784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22785 | (exit $ac_status); } && | |
121ce6e5 | 22786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22788 | (eval $ac_try) 2>&5 | |
22789 | ac_status=$? | |
22790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22791 | (exit $ac_status); }; } && | |
22792 | { ac_try='test -s conftest$ac_exeext' | |
22793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22794 | (eval $ac_try) 2>&5 | |
22795 | ac_status=$? | |
22796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22797 | (exit $ac_status); }; }; then | |
22798 | ac_cv_lib_dl_dlopen=yes | |
22799 | else | |
22800 | echo "$as_me: failed program was:" >&5 | |
22801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22802 | ||
4e8d927d | 22803 | ac_cv_lib_dl_dlopen=no |
bec39cab | 22804 | fi |
4e8d927d | 22805 | |
bec39cab AC |
22806 | rm -f conftest.err conftest.$ac_objext \ |
22807 | conftest$ac_exeext conftest.$ac_ext | |
22808 | LIBS=$ac_check_lib_save_LIBS | |
22809 | fi | |
4e8d927d DJ |
22810 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
22811 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
bec39cab AC |
22812 | if test $ac_cv_lib_dl_dlopen = yes; then |
22813 | cat >>confdefs.h <<_ACEOF | |
22814 | #define HAVE_LIBDL 1 | |
22815 | _ACEOF | |
c906108c SS |
22816 | |
22817 | LIBS="-ldl $LIBS" | |
22818 | ||
c906108c SS |
22819 | fi |
22820 | ||
22821 | if test "$GCC" = "yes" ; then | |
22822 | # The GNU linker requires the -export-dynamic option to make | |
22823 | # all symbols visible in the dynamic symbol table. | |
22824 | hold_ldflags=$LDFLAGS | |
4e8d927d DJ |
22825 | { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
22826 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; } | |
c906108c | 22827 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
22828 | cat >conftest.$ac_ext <<_ACEOF |
22829 | /* confdefs.h. */ | |
22830 | _ACEOF | |
22831 | cat confdefs.h >>conftest.$ac_ext | |
22832 | cat >>conftest.$ac_ext <<_ACEOF | |
22833 | /* end confdefs.h. */ | |
c906108c | 22834 | |
bec39cab AC |
22835 | int |
22836 | main () | |
22837 | { | |
c906108c | 22838 | int i; |
bec39cab AC |
22839 | ; |
22840 | return 0; | |
22841 | } | |
22842 | _ACEOF | |
22843 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22845 | (eval $ac_link) 2>conftest.er1 | |
22846 | ac_status=$? | |
22847 | grep -v '^ *+' conftest.er1 >conftest.err | |
22848 | rm -f conftest.er1 | |
22849 | cat conftest.err >&5 | |
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22851 | (exit $ac_status); } && | |
121ce6e5 | 22852 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22854 | (eval $ac_try) 2>&5 | |
22855 | ac_status=$? | |
22856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22857 | (exit $ac_status); }; } && | |
22858 | { ac_try='test -s conftest$ac_exeext' | |
22859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22860 | (eval $ac_try) 2>&5 | |
22861 | ac_status=$? | |
22862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22863 | (exit $ac_status); }; }; then | |
c906108c SS |
22864 | found=yes |
22865 | else | |
bec39cab AC |
22866 | echo "$as_me: failed program was:" >&5 |
22867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22868 | ||
4e8d927d | 22869 | found=no |
c906108c | 22870 | fi |
4e8d927d | 22871 | |
bec39cab AC |
22872 | rm -f conftest.err conftest.$ac_objext \ |
22873 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 22874 | LDFLAGS=$hold_ldflags |
4e8d927d DJ |
22875 | { echo "$as_me:$LINENO: result: $found" >&5 |
22876 | echo "${ECHO_T}$found" >&6; } | |
c906108c SS |
22877 | if test $found = yes; then |
22878 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
22879 | fi | |
22880 | fi | |
22881 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
22882 | # at one point. | |
4e8d927d DJ |
22883 | { echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
22884 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6; } | |
bec39cab AC |
22885 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
22886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 22887 | else |
bec39cab AC |
22888 | |
22889 | cat >conftest.$ac_ext <<_ACEOF | |
22890 | /* confdefs.h. */ | |
22891 | _ACEOF | |
22892 | cat confdefs.h >>conftest.$ac_ext | |
22893 | cat >>conftest.$ac_ext <<_ACEOF | |
22894 | /* end confdefs.h. */ | |
c906108c SS |
22895 | |
22896 | #include <proc_service.h> | |
22897 | ps_err_e ps_pdwrite | |
22898 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 22899 | |
bec39cab AC |
22900 | int |
22901 | main () | |
22902 | { | |
22903 | ||
22904 | ; | |
22905 | return 0; | |
22906 | } | |
22907 | _ACEOF | |
22908 | rm -f conftest.$ac_objext | |
22909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22910 | (eval $ac_compile) 2>conftest.er1 | |
22911 | ac_status=$? | |
22912 | grep -v '^ *+' conftest.er1 >conftest.err | |
22913 | rm -f conftest.er1 | |
22914 | cat conftest.err >&5 | |
22915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22916 | (exit $ac_status); } && | |
121ce6e5 | 22917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22919 | (eval $ac_try) 2>&5 | |
22920 | ac_status=$? | |
22921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22922 | (exit $ac_status); }; } && | |
22923 | { ac_try='test -s conftest.$ac_objext' | |
22924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22925 | (eval $ac_try) 2>&5 | |
22926 | ac_status=$? | |
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22928 | (exit $ac_status); }; }; then | |
c906108c SS |
22929 | gdb_cv_proc_service_is_old=no |
22930 | else | |
bec39cab AC |
22931 | echo "$as_me: failed program was:" >&5 |
22932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22933 | ||
4e8d927d | 22934 | gdb_cv_proc_service_is_old=yes |
c906108c | 22935 | fi |
4e8d927d | 22936 | |
bec39cab AC |
22937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
22938 | ||
c906108c SS |
22939 | fi |
22940 | ||
4e8d927d DJ |
22941 | { echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
22942 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6; } | |
c906108c | 22943 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
22944 | |
22945 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 22946 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 22947 | _ACEOF |
c906108c SS |
22948 | |
22949 | fi | |
22950 | else | |
4e8d927d DJ |
22951 | { echo "$as_me:$LINENO: result: no" >&5 |
22952 | echo "${ECHO_T}no" >&6; } | |
c906108c SS |
22953 | fi |
22954 | ;; | |
d92419e5 | 22955 | aix*) |
4e8d927d DJ |
22956 | { echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
22957 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6; } | |
bec39cab AC |
22958 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
22959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22960 | else | |
22961 | cat >conftest.$ac_ext <<_ACEOF | |
22962 | /* confdefs.h. */ | |
22963 | _ACEOF | |
22964 | cat confdefs.h >>conftest.$ac_ext | |
22965 | cat >>conftest.$ac_ext <<_ACEOF | |
22966 | /* end confdefs.h. */ | |
d92419e5 | 22967 | #include <sys/pthdebug.h> |
bec39cab AC |
22968 | int |
22969 | main () | |
22970 | { | |
d92419e5 JB |
22971 | #ifndef PTHDB_VERSION_3 |
22972 | #error | |
22973 | #endif | |
bec39cab AC |
22974 | ; |
22975 | return 0; | |
22976 | } | |
22977 | _ACEOF | |
22978 | rm -f conftest.$ac_objext | |
22979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22980 | (eval $ac_compile) 2>conftest.er1 | |
22981 | ac_status=$? | |
22982 | grep -v '^ *+' conftest.er1 >conftest.err | |
22983 | rm -f conftest.er1 | |
22984 | cat conftest.err >&5 | |
22985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22986 | (exit $ac_status); } && | |
121ce6e5 | 22987 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
22988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22989 | (eval $ac_try) 2>&5 | |
22990 | ac_status=$? | |
22991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22992 | (exit $ac_status); }; } && | |
22993 | { ac_try='test -s conftest.$ac_objext' | |
22994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22995 | (eval $ac_try) 2>&5 | |
22996 | ac_status=$? | |
22997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22998 | (exit $ac_status); }; }; then | |
d92419e5 JB |
22999 | gdb_cv_have_aix_thread_debug=yes |
23000 | else | |
bec39cab AC |
23001 | echo "$as_me: failed program was:" >&5 |
23002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23003 | ||
4e8d927d | 23004 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 23005 | fi |
4e8d927d | 23006 | |
bec39cab | 23007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
23008 | fi |
23009 | ||
4e8d927d DJ |
23010 | { echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
23011 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6; } | |
d92419e5 JB |
23012 | if test $gdb_cv_have_aix_thread_debug = yes; then |
23013 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 23014 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
23015 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
23016 | fi | |
23017 | ;; | |
c906108c | 23018 | esac |
bec39cab | 23019 | |
c906108c SS |
23020 | fi |
23021 | ||
3f47be5c | 23022 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
4e8d927d DJ |
23023 | { echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
23024 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6; } | |
bec39cab AC |
23025 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
23026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23027 | else | |
23028 | cat >conftest.$ac_ext <<_ACEOF | |
23029 | /* confdefs.h. */ | |
23030 | _ACEOF | |
23031 | cat confdefs.h >>conftest.$ac_ext | |
23032 | cat >>conftest.$ac_ext <<_ACEOF | |
23033 | /* end confdefs.h. */ | |
3f47be5c | 23034 | #include <thread_db.h> |
bec39cab AC |
23035 | int |
23036 | main () | |
23037 | { | |
3f47be5c | 23038 | int i = TD_NOTALLOC; |
bec39cab AC |
23039 | ; |
23040 | return 0; | |
23041 | } | |
23042 | _ACEOF | |
23043 | rm -f conftest.$ac_objext | |
23044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23045 | (eval $ac_compile) 2>conftest.er1 | |
23046 | ac_status=$? | |
23047 | grep -v '^ *+' conftest.er1 >conftest.err | |
23048 | rm -f conftest.er1 | |
23049 | cat conftest.err >&5 | |
23050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23051 | (exit $ac_status); } && | |
121ce6e5 | 23052 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
23053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23054 | (eval $ac_try) 2>&5 | |
23055 | ac_status=$? | |
23056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23057 | (exit $ac_status); }; } && | |
23058 | { ac_try='test -s conftest.$ac_objext' | |
23059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23060 | (eval $ac_try) 2>&5 | |
23061 | ac_status=$? | |
23062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23063 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
23064 | gdb_cv_thread_db_h_has_td_notalloc=yes |
23065 | else | |
bec39cab AC |
23066 | echo "$as_me: failed program was:" >&5 |
23067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23068 | ||
4e8d927d | 23069 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 23070 | |
3f47be5c | 23071 | fi |
4e8d927d | 23072 | |
bec39cab | 23073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 23074 | |
bec39cab | 23075 | fi |
4e8d927d DJ |
23076 | { echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
23077 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6; } | |
3f47be5c EZ |
23078 | fi |
23079 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
23080 | |
23081 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 23082 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 23083 | _ACEOF |
3f47be5c EZ |
23084 | |
23085 | fi | |
23086 | ||
b757528f | 23087 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
4e8d927d DJ |
23088 | { echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
23089 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6; } | |
bec39cab AC |
23090 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
23091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23092 | else | |
23093 | cat >conftest.$ac_ext <<_ACEOF | |
23094 | /* confdefs.h. */ | |
23095 | _ACEOF | |
23096 | cat confdefs.h >>conftest.$ac_ext | |
23097 | cat >>conftest.$ac_ext <<_ACEOF | |
23098 | /* end confdefs.h. */ | |
b757528f | 23099 | #include <sys/syscall.h> |
bec39cab AC |
23100 | int |
23101 | main () | |
23102 | { | |
b757528f | 23103 | int i = __NR_tkill; |
bec39cab AC |
23104 | ; |
23105 | return 0; | |
23106 | } | |
23107 | _ACEOF | |
23108 | rm -f conftest.$ac_objext | |
23109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23110 | (eval $ac_compile) 2>conftest.er1 | |
23111 | ac_status=$? | |
23112 | grep -v '^ *+' conftest.er1 >conftest.err | |
23113 | rm -f conftest.er1 | |
23114 | cat conftest.err >&5 | |
23115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23116 | (exit $ac_status); } && | |
121ce6e5 | 23117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
23118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23119 | (eval $ac_try) 2>&5 | |
23120 | ac_status=$? | |
23121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23122 | (exit $ac_status); }; } && | |
23123 | { ac_try='test -s conftest.$ac_objext' | |
23124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23125 | (eval $ac_try) 2>&5 | |
23126 | ac_status=$? | |
23127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23128 | (exit $ac_status); }; }; then | |
b757528f JJ |
23129 | gdb_cv_sys_syscall_h_has_tkill=yes |
23130 | else | |
bec39cab AC |
23131 | echo "$as_me: failed program was:" >&5 |
23132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23133 | ||
4e8d927d | 23134 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 23135 | |
b757528f | 23136 | fi |
4e8d927d | 23137 | |
bec39cab | 23138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 23139 | |
bec39cab | 23140 | fi |
4e8d927d DJ |
23141 | { echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
23142 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6; } | |
b757528f JJ |
23143 | fi |
23144 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
23145 | |
23146 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 23147 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 23148 | _ACEOF |
b757528f JJ |
23149 | |
23150 | fi | |
23151 | ||
fb40c209 | 23152 | |
bec39cab | 23153 | |
4e8d927d | 23154 | # Check whether --with-sysroot was given. |
030292b7 | 23155 | if test "${with_sysroot+set}" = set; then |
4e8d927d | 23156 | withval=$with_sysroot; |
030292b7 | 23157 | case ${with_sysroot} in |
715d1656 | 23158 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
23159 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
23160 | esac | |
23161 | ||
23162 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
23163 | ||
23164 | if test "x$exec_prefix" = xNONE; then | |
23165 | if test "x$prefix" = xNONE; then | |
23166 | test_prefix=/usr/local | |
23167 | else | |
23168 | test_prefix=$prefix | |
23169 | fi | |
23170 | else | |
23171 | test_prefix=$exec_prefix | |
23172 | fi | |
23173 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
23174 | "${test_prefix}"|"${test_prefix}/"*|\ |
23175 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
23176 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
23177 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
23178 | ;; | |
23179 | esac | |
23180 | ||
23181 | else | |
bec39cab | 23182 | |
030292b7 DJ |
23183 | TARGET_SYSTEM_ROOT= |
23184 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
23185 | ||
4e8d927d DJ |
23186 | fi |
23187 | ||
030292b7 DJ |
23188 | |
23189 | ||
23190 | ||
4e8d927d | 23191 | # Check whether --enable-werror was given. |
094a342e | 23192 | if test "${enable_werror+set}" = set; then |
4e8d927d | 23193 | enableval=$enable_werror; case "${enableval}" in |
094a342e MK |
23194 | yes | y) ERROR_ON_WARNING="yes" ;; |
23195 | no | n) ERROR_ON_WARNING="no" ;; | |
23196 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
23197 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
23198 | { (exit 1); exit 1; }; } ;; | |
23199 | esac | |
4e8d927d DJ |
23200 | fi |
23201 | ||
094a342e MK |
23202 | |
23203 | # Enable -Werror by default when using gcc | |
23204 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
23205 | ERROR_ON_WARNING=yes | |
23206 | fi | |
23207 | ||
23208 | WERROR_CFLAGS="" | |
23209 | if test "${ERROR_ON_WARNING}" = yes ; then | |
23210 | WERROR_CFLAGS="-Werror" | |
23211 | fi | |
23212 | ||
3b851bce AC |
23213 | # NOTE: Don't add -Wall or -Wunused, they both include |
23214 | # -Wunused-parameter which reports bogus warnings. | |
23215 | # NOTE: If you add to this list, remember to update | |
23216 | # gdb/doc/gdbint.texinfo. | |
1decb323 | 23217 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
a3b362c4 | 23218 | -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \ |
7be93b9e | 23219 | -Wunused-label -Wunused-function -Wno-pointer-sign" |
a3b362c4 JB |
23220 | |
23221 | # GCC supports -Wuninitialized only with -O or -On, n != 0. | |
ca231fcc | 23222 | if test x${CFLAGS+set} = xset; then |
a3b362c4 JB |
23223 | case "${CFLAGS}" in |
23224 | *"-O0"* ) ;; | |
23225 | *"-O"* ) | |
23226 | build_warnings="${build_warnings} -Wuninitialized" | |
23227 | ;; | |
23228 | esac | |
23229 | else | |
23230 | build_warnings="${build_warnings} -Wuninitialized" | |
23231 | fi | |
23232 | ||
d8038014 | 23233 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
0f0cffd2 | 23234 | # -Wunused-function -Wunused-variable -Wunused-value |
93d56215 | 23235 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
d8038014 AC |
23236 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
23237 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
23238 | # -Woverloaded-virtual -Winline -Werror" | |
4e8d927d | 23239 | # Check whether --enable-build-warnings was given. |
c906108c | 23240 | if test "${enable_build_warnings+set}" = set; then |
4e8d927d | 23241 | enableval=$enable_build_warnings; case "${enableval}" in |
c906108c SS |
23242 | yes) ;; |
23243 | no) build_warnings="-w";; | |
23244 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
23245 | build_warnings="${build_warnings} ${t}";; | |
23246 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
23247 | build_warnings="${t} ${build_warnings}";; | |
23248 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
23249 | esac | |
d4f3574e | 23250 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 23251 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 23252 | fi |
4e8d927d DJ |
23253 | fi |
23254 | # Check whether --enable-gdb-build-warnings was given. | |
3b851bce | 23255 | if test "${enable_gdb_build_warnings+set}" = set; then |
4e8d927d | 23256 | enableval=$enable_gdb_build_warnings; case "${enableval}" in |
3b851bce AC |
23257 | yes) ;; |
23258 | no) build_warnings="-w";; | |
23259 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
23260 | build_warnings="${build_warnings} ${t}";; | |
23261 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
23262 | build_warnings="${t} ${build_warnings}";; | |
23263 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
23264 | esac | |
23265 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
23266 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
23267 | fi | |
4e8d927d DJ |
23268 | fi |
23269 | WARN_CFLAGS="" | |
c906108c SS |
23270 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
23271 | then | |
4e8d927d DJ |
23272 | { echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
23273 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6; } | |
746a987d AC |
23274 | # Separate out the -Werror flag as some files just cannot be |
23275 | # compiled with it enabled. | |
23276 | for w in ${build_warnings}; do | |
23277 | case $w in | |
23278 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
23279 | *) # Check that GCC accepts it | |
4536bbc6 AC |
23280 | saved_CFLAGS="$CFLAGS" |
23281 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
23282 | cat >conftest.$ac_ext <<_ACEOF |
23283 | /* confdefs.h. */ | |
23284 | _ACEOF | |
23285 | cat confdefs.h >>conftest.$ac_ext | |
23286 | cat >>conftest.$ac_ext <<_ACEOF | |
23287 | /* end confdefs.h. */ | |
4536bbc6 | 23288 | |
bec39cab AC |
23289 | int |
23290 | main () | |
23291 | { | |
4536bbc6 | 23292 | |
bec39cab AC |
23293 | ; |
23294 | return 0; | |
23295 | } | |
23296 | _ACEOF | |
23297 | rm -f conftest.$ac_objext | |
23298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23299 | (eval $ac_compile) 2>conftest.er1 | |
23300 | ac_status=$? | |
23301 | grep -v '^ *+' conftest.er1 >conftest.err | |
23302 | rm -f conftest.er1 | |
23303 | cat conftest.err >&5 | |
23304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23305 | (exit $ac_status); } && | |
121ce6e5 | 23306 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
23307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23308 | (eval $ac_try) 2>&5 | |
23309 | ac_status=$? | |
23310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23311 | (exit $ac_status); }; } && | |
23312 | { ac_try='test -s conftest.$ac_objext' | |
23313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23314 | (eval $ac_try) 2>&5 | |
23315 | ac_status=$? | |
23316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23317 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
23318 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
23319 | else | |
bec39cab AC |
23320 | echo "$as_me: failed program was:" >&5 |
23321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23322 | ||
4e8d927d | 23323 | |
4536bbc6 | 23324 | fi |
4e8d927d | 23325 | |
bec39cab | 23326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 23327 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
23328 | esac |
23329 | done | |
4e8d927d DJ |
23330 | { echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
23331 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; } | |
c906108c SS |
23332 | fi |
23333 | ||
23334 | ||
104c1213 | 23335 | |
7a292a7a | 23336 | # In the Cygwin environment, we need some additional flags. |
4e8d927d DJ |
23337 | { echo "$as_me:$LINENO: checking for cygwin" >&5 |
23338 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6; } | |
bec39cab AC |
23339 | if test "${gdb_cv_os_cygwin+set}" = set; then |
23340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23341 | else | |
23342 | cat >conftest.$ac_ext <<_ACEOF | |
23343 | /* confdefs.h. */ | |
23344 | _ACEOF | |
23345 | cat confdefs.h >>conftest.$ac_ext | |
23346 | cat >>conftest.$ac_ext <<_ACEOF | |
23347 | /* end confdefs.h. */ | |
7a292a7a SS |
23348 | |
23349 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
23350 | lose | |
23351 | #endif | |
bec39cab | 23352 | _ACEOF |
7a292a7a | 23353 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 23354 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
23355 | gdb_cv_os_cygwin=yes |
23356 | else | |
7a292a7a SS |
23357 | gdb_cv_os_cygwin=no |
23358 | fi | |
23359 | rm -f conftest* | |
23360 | ||
23361 | fi | |
4e8d927d DJ |
23362 | { echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
23363 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6; } | |
7a292a7a | 23364 | |
aff38e61 | 23365 | |
3eb25fda | 23366 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 23367 | case ${host} in |
95cbc983 AC |
23368 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
23369 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 23370 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
23371 | esac |
23372 | ||
23373 | ||
cd0fc7c3 SS |
23374 | # libreadline needs libuser32.a in a cygwin environment |
23375 | WIN32LIBS= | |
23376 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
23377 | WIN32LIBS="-luser32" |
23378 | case "${target}" in | |
23379 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
23380 | ;; | |
23381 | esac | |
cd0fc7c3 | 23382 | fi |
c906108c | 23383 | |
b4505029 MM |
23384 | # The ser-tcp.c module requires sockets. |
23385 | case ${host} in | |
23386 | *mingw32*) | |
23387 | ||
23388 | cat >>confdefs.h <<\_ACEOF | |
23389 | #define USE_WIN32API 1 | |
23390 | _ACEOF | |
23391 | ||
23392 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
23393 | ;; | |
23394 | esac | |
23395 | ||
7a292a7a | 23396 | |
121ce6e5 DJ |
23397 | # Add any host-specific objects to GDB. |
23398 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
23399 | ||
3fc11d3e JM |
23400 | LIBGUI="../libgui/src/libgui.a" |
23401 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
23402 | ||
23403 | ||
7a292a7a | 23404 | |
3fc11d3e JM |
23405 | WIN32LDAPP= |
23406 | ||
23407 | ||
23408 | ||
d91670b9 CV |
23409 | case "${host}" in |
23410 | *-*-cygwin*) | |
23411 | configdir="win" | |
23412 | ;; | |
23413 | *) | |
23414 | configdir="unix" | |
23415 | ;; | |
23416 | esac | |
3fc11d3e JM |
23417 | |
23418 | GDBTKLIBS= | |
23419 | if test "${enable_gdbtk}" = "yes"; then | |
23420 | ||
d1c3b63a KS |
23421 | # Gdbtk must have an absolute path to srcdir in order to run |
23422 | # properly when not installed. | |
23423 | here=`pwd` | |
23424 | cd ${srcdir} | |
23425 | GDBTK_SRC_DIR=`pwd` | |
23426 | cd $here | |
23427 | ||
bec39cab | 23428 | |
3fc11d3e JM |
23429 | # |
23430 | # Ok, lets find the tcl configuration | |
bec39cab | 23431 | # First, look for one uninstalled. |
3fc11d3e JM |
23432 | # the alternative search directory is invoked by --with-tclconfig |
23433 | # | |
23434 | ||
23435 | if test x"${no_tcl}" = x ; then | |
23436 | # we reset no_tcl in case something fails here | |
23437 | no_tcl=true | |
bec39cab | 23438 | |
4e8d927d | 23439 | # Check whether --with-tclconfig was given. |
3fc11d3e | 23440 | if test "${with_tclconfig+set}" = set; then |
4e8d927d DJ |
23441 | withval=$with_tclconfig; with_tclconfig=${withval} |
23442 | fi | |
23443 | ||
23444 | { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
23445 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } | |
bec39cab AC |
23446 | if test "${ac_cv_c_tclconfig+set}" = set; then |
23447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23448 | else |
bec39cab | 23449 | |
3fc11d3e JM |
23450 | |
23451 | # First check to see if --with-tclconfig was specified. | |
23452 | if test x"${with_tclconfig}" != x ; then | |
23453 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
23454 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
23455 | else | |
bec39cab AC |
23456 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
23457 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
23458 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23459 | fi |
23460 | fi | |
23461 | ||
23462 | # then check for a private Tcl installation | |
23463 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
23464 | for i in \ | |
23465 | ../tcl \ | |
23466 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
23467 | ../../tcl \ | |
23468 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
23469 | ../../../tcl \ | |
23470 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
23471 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
23472 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
23473 | break | |
23474 | fi | |
23475 | done | |
23476 | fi | |
23477 | # check in a few common install locations | |
23478 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
23479 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
23480 | if test -f "$i/tclConfig.sh" ; then | |
23481 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
23482 | break | |
23483 | fi | |
23484 | done | |
23485 | fi | |
23486 | # check in a few other private locations | |
23487 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
23488 | for i in \ | |
23489 | ${srcdir}/../tcl \ | |
23490 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
23491 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
23492 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
23493 | break | |
23494 | fi | |
23495 | done | |
23496 | fi | |
bec39cab | 23497 | |
3fc11d3e JM |
23498 | fi |
23499 | ||
23500 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
23501 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
23502 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
23503 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
23504 | else |
23505 | no_tcl= | |
23506 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
4e8d927d DJ |
23507 | { echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
23508 | echo "${ECHO_T}found $TCLCONFIG" >&6; } | |
3fc11d3e JM |
23509 | fi |
23510 | fi | |
23511 | ||
23512 | if test -z "${no_tcl}"; then | |
bec39cab | 23513 | |
3fc11d3e JM |
23514 | . $TCLCONFIG |
23515 | ||
3fc11d3e JM |
23516 | |
23517 | ||
23518 | ||
23519 | ||
3fc11d3e JM |
23520 | |
23521 | ||
23522 | ||
bec39cab AC |
23523 | |
23524 | ||
23525 | ||
23526 | ||
23527 | ||
23528 | ||
23529 | ||
23530 | ||
23531 | ||
23532 | ||
23533 | ||
23534 | ||
23535 | ||
23536 | ||
23537 | ||
23538 | ||
23539 | ||
23540 | ||
23541 | ||
3fc11d3e JM |
23542 | # |
23543 | # Ok, lets find the tk configuration | |
bec39cab | 23544 | # First, look for one uninstalled. |
3fc11d3e JM |
23545 | # the alternative search directory is invoked by --with-tkconfig |
23546 | # | |
23547 | ||
23548 | if test x"${no_tk}" = x ; then | |
23549 | # we reset no_tk in case something fails here | |
23550 | no_tk=true | |
bec39cab | 23551 | |
4e8d927d | 23552 | # Check whether --with-tkconfig was given. |
3fc11d3e | 23553 | if test "${with_tkconfig+set}" = set; then |
4e8d927d DJ |
23554 | withval=$with_tkconfig; with_tkconfig=${withval} |
23555 | fi | |
23556 | ||
23557 | { echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
23558 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6; } | |
bec39cab AC |
23559 | if test "${ac_cv_c_tkconfig+set}" = set; then |
23560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23561 | else |
bec39cab | 23562 | |
3fc11d3e JM |
23563 | |
23564 | # First check to see if --with-tkconfig was specified. | |
23565 | if test x"${with_tkconfig}" != x ; then | |
23566 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
23567 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
23568 | else | |
bec39cab AC |
23569 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
23570 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
23571 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23572 | fi |
23573 | fi | |
23574 | ||
23575 | # then check for a private Tk library | |
23576 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
23577 | for i in \ | |
23578 | ../tk \ | |
23579 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
23580 | ../../tk \ | |
23581 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
23582 | ../../../tk \ | |
23583 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
23584 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
23585 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
23586 | break | |
23587 | fi | |
23588 | done | |
23589 | fi | |
23590 | # check in a few common install locations | |
23591 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
23592 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
23593 | if test -f "$i/tkConfig.sh" ; then | |
23594 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
23595 | break | |
23596 | fi | |
23597 | done | |
23598 | fi | |
23599 | # check in a few other private locations | |
23600 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
23601 | for i in \ | |
23602 | ${srcdir}/../tk \ | |
23603 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
23604 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
23605 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
23606 | break | |
23607 | fi | |
23608 | done | |
23609 | fi | |
bec39cab | 23610 | |
3fc11d3e JM |
23611 | fi |
23612 | ||
23613 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
23614 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
23615 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
23616 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
23617 | else |
23618 | no_tk= | |
23619 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
4e8d927d DJ |
23620 | { echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
23621 | echo "${ECHO_T}found $TKCONFIG" >&6; } | |
3fc11d3e JM |
23622 | fi |
23623 | fi | |
23624 | ||
23625 | ||
23626 | ||
dd2504ab JM |
23627 | # now look for Tcl library stuff |
23628 | ||
d91670b9 | 23629 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
23630 | |
23631 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
23632 | ||
3fc11d3e JM |
23633 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
23634 | # point to doing Tcl. | |
23635 | if test -z "${no_tk}"; then | |
bec39cab | 23636 | |
3fc11d3e JM |
23637 | if test -f "$TKCONFIG" ; then |
23638 | . $TKCONFIG | |
23639 | fi | |
23640 | ||
3fc11d3e | 23641 | |
3fc11d3e JM |
23642 | |
23643 | ||
3fc11d3e | 23644 | |
bec39cab AC |
23645 | |
23646 | ||
23647 | ||
23648 | ||
23649 | ||
23650 | ||
23651 | ||
23652 | ||
23653 | ||
3fc11d3e JM |
23654 | # |
23655 | # Ok, lets find the tcl source trees so we can use the headers | |
23656 | # Warning: transition of version 9 to 10 will break this algorithm | |
23657 | # because 10 sorts before 9. We also look for just tcl. We have to | |
23658 | # be careful that we don't match stuff like tclX by accident. | |
23659 | # the alternative search directory is involked by --with-tclinclude | |
23660 | # | |
23661 | ||
23662 | no_tcl=true | |
4e8d927d DJ |
23663 | { echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
23664 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6; } | |
bec39cab | 23665 | |
4e8d927d | 23666 | # Check whether --with-tclinclude was given. |
3fc11d3e | 23667 | if test "${with_tclinclude+set}" = set; then |
4e8d927d DJ |
23668 | withval=$with_tclinclude; with_tclinclude=${withval} |
23669 | fi | |
23670 | ||
bec39cab AC |
23671 | if test "${ac_cv_c_tclh+set}" = set; then |
23672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23673 | else |
bec39cab | 23674 | |
3fc11d3e JM |
23675 | # first check to see if --with-tclinclude was specified |
23676 | if test x"${with_tclinclude}" != x ; then | |
23677 | if test -f ${with_tclinclude}/tclInt.h ; then | |
23678 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
23679 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
23680 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
23681 | else | |
bec39cab AC |
23682 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
23683 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
23684 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23685 | fi |
23686 | fi | |
23687 | ||
23688 | # next check if it came with Tcl configuration file | |
23689 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
23690 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
23691 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
23692 | fi | |
23693 | fi | |
23694 | ||
23695 | # next check in private source directory | |
23696 | # | |
23697 | # since ls returns lowest version numbers first, reverse its output | |
23698 | if test x"${ac_cv_c_tclh}" = x ; then | |
23699 | for i in \ | |
23700 | ${srcdir}/../tcl \ | |
23701 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
23702 | ${srcdir}/../../tcl \ | |
23703 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
23704 | ${srcdir}/../../../tcl \ | |
23705 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
23706 | if test -f $i/generic/tclInt.h ; then | |
23707 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
23708 | break | |
23709 | fi | |
23710 | done | |
23711 | fi | |
23712 | # finally check in a few common install locations | |
23713 | # | |
23714 | # since ls returns lowest version numbers first, reverse its output | |
23715 | if test x"${ac_cv_c_tclh}" = x ; then | |
23716 | for i in \ | |
23717 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
23718 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
23719 | /usr/local/src/tcl \ | |
23720 | /usr/local/lib/tcl \ | |
23721 | ${prefix}/include ; do | |
23722 | if test -f $i/generic/tclInt.h ; then | |
23723 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
23724 | break | |
23725 | fi | |
23726 | done | |
23727 | fi | |
23728 | # see if one is installed | |
23729 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 23730 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
4e8d927d DJ |
23731 | { echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
23732 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; } | |
bec39cab AC |
23733 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
23734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23735 | fi | |
4e8d927d DJ |
23736 | { echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
23737 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; } | |
bec39cab AC |
23738 | else |
23739 | # Is the header compilable? | |
4e8d927d DJ |
23740 | { echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
23741 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6; } | |
bec39cab AC |
23742 | cat >conftest.$ac_ext <<_ACEOF |
23743 | /* confdefs.h. */ | |
23744 | _ACEOF | |
23745 | cat confdefs.h >>conftest.$ac_ext | |
23746 | cat >>conftest.$ac_ext <<_ACEOF | |
23747 | /* end confdefs.h. */ | |
23748 | $ac_includes_default | |
23749 | #include <tclInt.h> | |
23750 | _ACEOF | |
23751 | rm -f conftest.$ac_objext | |
23752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23753 | (eval $ac_compile) 2>conftest.er1 | |
23754 | ac_status=$? | |
23755 | grep -v '^ *+' conftest.er1 >conftest.err | |
23756 | rm -f conftest.er1 | |
23757 | cat conftest.err >&5 | |
23758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23759 | (exit $ac_status); } && | |
121ce6e5 | 23760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
23761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23762 | (eval $ac_try) 2>&5 | |
23763 | ac_status=$? | |
23764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23765 | (exit $ac_status); }; } && | |
23766 | { ac_try='test -s conftest.$ac_objext' | |
23767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23768 | (eval $ac_try) 2>&5 | |
23769 | ac_status=$? | |
23770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23771 | (exit $ac_status); }; }; then | |
23772 | ac_header_compiler=yes | |
23773 | else | |
23774 | echo "$as_me: failed program was:" >&5 | |
23775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23776 | ||
4e8d927d | 23777 | ac_header_compiler=no |
bec39cab | 23778 | fi |
4e8d927d | 23779 | |
bec39cab | 23780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
23781 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23782 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
23783 | |
23784 | # Is the header present? | |
4e8d927d DJ |
23785 | { echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
23786 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6; } | |
bec39cab AC |
23787 | cat >conftest.$ac_ext <<_ACEOF |
23788 | /* confdefs.h. */ | |
23789 | _ACEOF | |
23790 | cat confdefs.h >>conftest.$ac_ext | |
23791 | cat >>conftest.$ac_ext <<_ACEOF | |
23792 | /* end confdefs.h. */ | |
3fc11d3e | 23793 | #include <tclInt.h> |
bec39cab AC |
23794 | _ACEOF |
23795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23797 | ac_status=$? | |
23798 | grep -v '^ *+' conftest.er1 >conftest.err | |
23799 | rm -f conftest.er1 | |
23800 | cat conftest.err >&5 | |
23801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23802 | (exit $ac_status); } >/dev/null; then | |
23803 | if test -s conftest.err; then | |
23804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
23805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23806 | else | |
23807 | ac_cpp_err= | |
23808 | fi | |
23809 | else | |
23810 | ac_cpp_err=yes | |
3fc11d3e | 23811 | fi |
bec39cab AC |
23812 | if test -z "$ac_cpp_err"; then |
23813 | ac_header_preproc=yes | |
23814 | else | |
23815 | echo "$as_me: failed program was:" >&5 | |
23816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23817 | ||
23818 | ac_header_preproc=no | |
3fc11d3e | 23819 | fi |
4e8d927d | 23820 | |
bec39cab | 23821 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
23822 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23823 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
23824 | |
23825 | # So? What about this header? | |
23826 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23827 | yes:no: ) | |
23828 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23829 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23830 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
23831 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
23832 | ac_header_preproc=yes | |
23833 | ;; | |
23834 | no:yes:* ) | |
23835 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
23836 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
23837 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
23838 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
23839 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
23840 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
23841 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23842 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
23843 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
23844 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
23845 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
23846 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 23847 | |
bec39cab AC |
23848 | ;; |
23849 | esac | |
4e8d927d DJ |
23850 | { echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
23851 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6; } | |
bec39cab AC |
23852 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
23853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23854 | else | |
23855 | ac_cv_header_tclInt_h=$ac_header_preproc | |
23856 | fi | |
4e8d927d DJ |
23857 | { echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
23858 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6; } | |
bec39cab AC |
23859 | |
23860 | fi | |
23861 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
23862 | ac_cv_c_tclh=installed |
23863 | else | |
bec39cab | 23864 | ac_cv_c_tclh="" |
3fc11d3e JM |
23865 | fi |
23866 | ||
bec39cab | 23867 | |
3fc11d3e JM |
23868 | fi |
23869 | ||
23870 | fi | |
23871 | ||
23872 | if test x"${ac_cv_c_tclh}" = x ; then | |
23873 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
23874 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
23875 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
23876 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23877 | fi |
23878 | if test x"${ac_cv_c_tclh}" != x ; then | |
23879 | no_tcl="" | |
23880 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
4e8d927d DJ |
23881 | { echo "$as_me:$LINENO: result: is installed" >&5 |
23882 | echo "${ECHO_T}is installed" >&6; } | |
3fc11d3e JM |
23883 | TCLHDIR="" |
23884 | else | |
4e8d927d DJ |
23885 | { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
23886 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6; } | |
3fc11d3e JM |
23887 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
23888 | TCLHDIR="-I${ac_cv_c_tclh}" | |
23889 | fi | |
23890 | fi | |
23891 | ||
23892 | ||
23893 | ||
bec39cab | 23894 | |
3fc11d3e JM |
23895 | # |
23896 | # Ok, lets find the tk source trees so we can use the headers | |
23897 | # If the directory (presumably symlink) named "tk" exists, use that one | |
23898 | # in preference to any others. Same logic is used when choosing library | |
23899 | # and again with Tcl. The search order is the best place to look first, then in | |
23900 | # decreasing significance. The loop breaks if the trigger file is found. | |
23901 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
23902 | # directory. This converts the path from a relative to an absolute, so | |
23903 | # recursive cache variables for the path will work right. We check all | |
23904 | # the possible paths in one loop rather than many seperate loops to speed | |
23905 | # things up. | |
23906 | # the alternative search directory is involked by --with-tkinclude | |
23907 | # | |
23908 | no_tk=true | |
4e8d927d DJ |
23909 | { echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
23910 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6; } | |
bec39cab | 23911 | |
4e8d927d | 23912 | # Check whether --with-tkinclude was given. |
3fc11d3e | 23913 | if test "${with_tkinclude+set}" = set; then |
4e8d927d DJ |
23914 | withval=$with_tkinclude; with_tkinclude=${withval} |
23915 | fi | |
23916 | ||
bec39cab AC |
23917 | if test "${ac_cv_c_tkh+set}" = set; then |
23918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23919 | else |
bec39cab | 23920 | |
3fc11d3e JM |
23921 | # first check to see if --with-tkinclude was specified |
23922 | if test x"${with_tkinclude}" != x ; then | |
23923 | if test -f ${with_tkinclude}/tk.h ; then | |
23924 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
23925 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
23926 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
23927 | else | |
bec39cab AC |
23928 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
23929 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
23930 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23931 | fi |
23932 | fi | |
23933 | ||
23934 | # next check if it came with Tk configuration file | |
23935 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
23936 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
23937 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
23938 | fi | |
23939 | fi | |
23940 | ||
23941 | # next check in private source directory | |
23942 | # | |
23943 | # since ls returns lowest version numbers first, reverse its output | |
23944 | if test x"${ac_cv_c_tkh}" = x ; then | |
23945 | for i in \ | |
23946 | ${srcdir}/../tk \ | |
23947 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
23948 | ${srcdir}/../../tk \ | |
23949 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
23950 | ${srcdir}/../../../tk \ | |
23951 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
23952 | if test -f $i/generic/tk.h ; then | |
23953 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
23954 | break | |
23955 | fi | |
23956 | done | |
23957 | fi | |
23958 | # finally check in a few common install locations | |
23959 | # | |
23960 | # since ls returns lowest version numbers first, reverse its output | |
23961 | if test x"${ac_cv_c_tkh}" = x ; then | |
23962 | for i in \ | |
23963 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
23964 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
23965 | /usr/local/src/tk \ | |
23966 | /usr/local/lib/tk \ | |
23967 | ${prefix}/include ; do | |
23968 | if test -f $i/generic/tk.h ; then | |
23969 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
23970 | break | |
23971 | fi | |
23972 | done | |
23973 | fi | |
23974 | # see if one is installed | |
23975 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 23976 | if test "${ac_cv_header_tk_h+set}" = set; then |
4e8d927d DJ |
23977 | { echo "$as_me:$LINENO: checking for tk.h" >&5 |
23978 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; } | |
bec39cab AC |
23979 | if test "${ac_cv_header_tk_h+set}" = set; then |
23980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23981 | fi | |
4e8d927d DJ |
23982 | { echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
23983 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6; } | |
bec39cab AC |
23984 | else |
23985 | # Is the header compilable? | |
4e8d927d DJ |
23986 | { echo "$as_me:$LINENO: checking tk.h usability" >&5 |
23987 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6; } | |
bec39cab AC |
23988 | cat >conftest.$ac_ext <<_ACEOF |
23989 | /* confdefs.h. */ | |
23990 | _ACEOF | |
23991 | cat confdefs.h >>conftest.$ac_ext | |
23992 | cat >>conftest.$ac_ext <<_ACEOF | |
23993 | /* end confdefs.h. */ | |
23994 | $ac_includes_default | |
3fc11d3e | 23995 | #include <tk.h> |
bec39cab AC |
23996 | _ACEOF |
23997 | rm -f conftest.$ac_objext | |
23998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23999 | (eval $ac_compile) 2>conftest.er1 | |
24000 | ac_status=$? | |
24001 | grep -v '^ *+' conftest.er1 >conftest.err | |
24002 | rm -f conftest.er1 | |
24003 | cat conftest.err >&5 | |
24004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24005 | (exit $ac_status); } && | |
121ce6e5 | 24006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
24007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24008 | (eval $ac_try) 2>&5 | |
24009 | ac_status=$? | |
24010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24011 | (exit $ac_status); }; } && | |
24012 | { ac_try='test -s conftest.$ac_objext' | |
24013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24014 | (eval $ac_try) 2>&5 | |
24015 | ac_status=$? | |
24016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24017 | (exit $ac_status); }; }; then | |
24018 | ac_header_compiler=yes | |
24019 | else | |
24020 | echo "$as_me: failed program was:" >&5 | |
24021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24022 | ||
4e8d927d | 24023 | ac_header_compiler=no |
bec39cab | 24024 | fi |
4e8d927d | 24025 | |
bec39cab | 24026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
24027 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24028 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
bec39cab AC |
24029 | |
24030 | # Is the header present? | |
4e8d927d DJ |
24031 | { echo "$as_me:$LINENO: checking tk.h presence" >&5 |
24032 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6; } | |
bec39cab AC |
24033 | cat >conftest.$ac_ext <<_ACEOF |
24034 | /* confdefs.h. */ | |
24035 | _ACEOF | |
24036 | cat confdefs.h >>conftest.$ac_ext | |
24037 | cat >>conftest.$ac_ext <<_ACEOF | |
24038 | /* end confdefs.h. */ | |
24039 | #include <tk.h> | |
24040 | _ACEOF | |
24041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24043 | ac_status=$? | |
24044 | grep -v '^ *+' conftest.er1 >conftest.err | |
24045 | rm -f conftest.er1 | |
24046 | cat conftest.err >&5 | |
24047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24048 | (exit $ac_status); } >/dev/null; then | |
24049 | if test -s conftest.err; then | |
24050 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24051 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24052 | else | |
24053 | ac_cpp_err= | |
24054 | fi | |
24055 | else | |
24056 | ac_cpp_err=yes | |
3fc11d3e | 24057 | fi |
bec39cab AC |
24058 | if test -z "$ac_cpp_err"; then |
24059 | ac_header_preproc=yes | |
24060 | else | |
24061 | echo "$as_me: failed program was:" >&5 | |
24062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24063 | ||
24064 | ac_header_preproc=no | |
24065 | fi | |
4e8d927d | 24066 | |
bec39cab | 24067 | rm -f conftest.err conftest.$ac_ext |
4e8d927d DJ |
24068 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
24069 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
bec39cab AC |
24070 | |
24071 | # So? What about this header? | |
24072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24073 | yes:no: ) | |
24074 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24075 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24076 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
24077 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
24078 | ac_header_preproc=yes | |
24079 | ;; | |
24080 | no:yes:* ) | |
24081 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
24082 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
24083 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
24084 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
24085 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
24086 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
24087 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24088 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24089 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
24090 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
24091 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
24092 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
4e8d927d | 24093 | |
bec39cab AC |
24094 | ;; |
24095 | esac | |
4e8d927d DJ |
24096 | { echo "$as_me:$LINENO: checking for tk.h" >&5 |
24097 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6; } | |
bec39cab AC |
24098 | if test "${ac_cv_header_tk_h+set}" = set; then |
24099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24100 | else | |
24101 | ac_cv_header_tk_h=$ac_header_preproc | |
24102 | fi | |
4e8d927d DJ |
24103 | { echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
24104 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6; } | |
bec39cab | 24105 | |
3fc11d3e | 24106 | fi |
bec39cab | 24107 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
24108 | ac_cv_c_tkh=installed |
24109 | else | |
bec39cab | 24110 | ac_cv_c_tkh="" |
3fc11d3e JM |
24111 | fi |
24112 | ||
bec39cab | 24113 | |
3fc11d3e JM |
24114 | fi |
24115 | ||
24116 | fi | |
24117 | ||
24118 | if test x"${ac_cv_c_tkh}" != x ; then | |
24119 | no_tk="" | |
24120 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
4e8d927d DJ |
24121 | { echo "$as_me:$LINENO: result: is installed" >&5 |
24122 | echo "${ECHO_T}is installed" >&6; } | |
3fc11d3e JM |
24123 | TKHDIR="" |
24124 | else | |
4e8d927d DJ |
24125 | { echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
24126 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6; } | |
3fc11d3e JM |
24127 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
24128 | TKHDIR="-I${ac_cv_c_tkh}" | |
24129 | fi | |
24130 | else | |
24131 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
24132 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
24133 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
24134 | no_tk=true |
24135 | fi | |
24136 | ||
24137 | ||
24138 | ||
bec39cab | 24139 | |
4e8d927d DJ |
24140 | { echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
24141 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6; } | |
3fc11d3e JM |
24142 | if test x"${ac_cv_c_itclh}" = x ; then |
24143 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
24144 | if test -f $i/generic/itcl.h ; then | |
24145 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
24146 | break | |
24147 | fi | |
24148 | done | |
24149 | fi | |
24150 | if test x"${ac_cv_c_itclh}" = x ; then | |
24151 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
24152 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
24153 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
24154 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
24155 | fi |
24156 | if test x"${ac_cv_c_itclh}" != x ; then | |
24157 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
24158 | fi | |
24159 | # should always be here | |
24160 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
24161 | ||
24162 | #AC_SUBST(ITCLLIB) | |
24163 | ||
bec39cab | 24164 | |
4e8d927d DJ |
24165 | { echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
24166 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6; } | |
3fc11d3e JM |
24167 | if test x"${ac_cv_c_itkh}" = x ; then |
24168 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
24169 | if test -f $i/generic/itk.h ; then | |
24170 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
24171 | break | |
24172 | fi | |
24173 | done | |
24174 | fi | |
24175 | if test x"${ac_cv_c_itkh}" = x ; then | |
24176 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
24177 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
24178 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
24179 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
24180 | fi |
24181 | if test x"${ac_cv_c_itkh}" != x ; then | |
24182 | ITKHDIR="-I${ac_cv_c_itkh}" | |
24183 | fi | |
24184 | # should always be here | |
24185 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
24186 | ||
24187 | #AC_SUBST(ITKLIB) | |
24188 | ||
3fc11d3e | 24189 | |
dd2504ab JM |
24190 | |
24191 | # now look for Tk library stuff | |
24192 | ||
d91670b9 | 24193 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
24194 | |
24195 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
24196 | ||
3fc11d3e JM |
24197 | # now look for Itcl library stuff |
24198 | ||
bec39cab | 24199 | |
3fc11d3e JM |
24200 | # |
24201 | # Ok, lets find the itcl configuration | |
bec39cab | 24202 | # First, look for one uninstalled. |
3fc11d3e JM |
24203 | # the alternative search directory is invoked by --with-itclconfig |
24204 | # | |
24205 | ||
24206 | if test x"${no_itcl}" = x ; then | |
24207 | # we reset no_itcl in case something fails here | |
24208 | no_itcl=true | |
bec39cab | 24209 | |
4e8d927d | 24210 | # Check whether --with-itclconfig was given. |
3fc11d3e | 24211 | if test "${with_itclconfig+set}" = set; then |
4e8d927d DJ |
24212 | withval=$with_itclconfig; with_itclconfig=${withval} |
24213 | fi | |
24214 | ||
24215 | { echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
24216 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6; } | |
bec39cab AC |
24217 | if test "${ac_cv_c_itclconfig+set}" = set; then |
24218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 24219 | else |
bec39cab | 24220 | |
3fc11d3e JM |
24221 | |
24222 | # First check to see if --with-itclconfig was specified. | |
24223 | if test x"${with_itclconfig}" != x ; then | |
24224 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
24225 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
24226 | else | |
bec39cab AC |
24227 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
24228 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
24229 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
24230 | fi |
24231 | fi | |
24232 | ||
24233 | # then check for a private Itcl library | |
24234 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
24235 | for i in \ | |
24236 | ../itcl/itcl \ | |
24237 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
24238 | ../../itcl \ | |
24239 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
24240 | ../../../itcl \ | |
24241 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
24242 | if test -f "$i/itclConfig.sh" ; then | |
24243 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
24244 | break | |
24245 | fi | |
24246 | done | |
24247 | fi | |
24248 | # check in a few common install locations | |
24249 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
24250 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
24251 | if test -f "$i/itclConfig.sh" ; then | |
24252 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
24253 | break | |
24254 | fi | |
24255 | done | |
24256 | fi | |
24257 | # check in a few other private locations | |
24258 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
24259 | for i in \ | |
24260 | ${srcdir}/../itcl/itcl \ | |
24261 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
24262 | if test -f "$i/itclConfig.sh" ; then | |
24263 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
24264 | break | |
24265 | fi | |
24266 | done | |
24267 | fi | |
bec39cab | 24268 | |
3fc11d3e JM |
24269 | fi |
24270 | ||
24271 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
24272 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
24273 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
24274 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
24275 | else |
24276 | no_itcl= | |
24277 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
4e8d927d DJ |
24278 | { echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
24279 | echo "${ECHO_T}found $ITCLCONFIG" >&6; } | |
3fc11d3e JM |
24280 | fi |
24281 | fi | |
24282 | ||
24283 | if test -z "${no_itcl}"; then | |
bec39cab | 24284 | |
3fc11d3e JM |
24285 | if test -f "$ITCLCONFIG" ; then |
24286 | . $ITCLCONFIG | |
24287 | fi | |
24288 | ||
3fc11d3e | 24289 | |
3fc11d3e JM |
24290 | |
24291 | ||
bec39cab AC |
24292 | |
24293 | ||
24294 | ||
24295 | ||
24296 | ||
24297 | ||
24298 | ||
3fc11d3e JM |
24299 | |
24300 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 24301 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
24302 | fi |
24303 | ||
bec39cab | 24304 | |
3fc11d3e | 24305 | # now look for Itk library stuff |
bec39cab | 24306 | |
3fc11d3e JM |
24307 | # |
24308 | # Ok, lets find the itk configuration | |
bec39cab | 24309 | # First, look for one uninstalled. |
3fc11d3e JM |
24310 | # the alternative search directory is invoked by --with-itkconfig |
24311 | # | |
24312 | ||
24313 | if test x"${no_itk}" = x ; then | |
24314 | # we reset no_itk in case something fails here | |
24315 | no_itk=true | |
bec39cab | 24316 | |
4e8d927d | 24317 | # Check whether --with-itkconfig was given. |
3fc11d3e | 24318 | if test "${with_itkconfig+set}" = set; then |
4e8d927d DJ |
24319 | withval=$with_itkconfig; with_itkconfig=${withval} |
24320 | fi | |
24321 | ||
24322 | { echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
24323 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6; } | |
bec39cab AC |
24324 | if test "${ac_cv_c_itkconfig+set}" = set; then |
24325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 24326 | else |
bec39cab | 24327 | |
3fc11d3e JM |
24328 | |
24329 | # First check to see if --with-itkconfig was specified. | |
24330 | if test x"${with_itkconfig}" != x ; then | |
24331 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
24332 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
24333 | else | |
bec39cab AC |
24334 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
24335 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
24336 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
24337 | fi |
24338 | fi | |
24339 | ||
24340 | # then check for a private Itk library | |
24341 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
24342 | for i in \ | |
24343 | ../itcl/itk \ | |
24344 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
24345 | ../../itk \ | |
24346 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
24347 | ../../../itk \ | |
24348 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
24349 | if test -f "$i/itkConfig.sh" ; then | |
24350 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
24351 | break | |
24352 | fi | |
24353 | done | |
24354 | fi | |
24355 | # check in a few common install locations | |
24356 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
24357 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
24358 | if test -f "$i/itkConfig.sh" ; then | |
24359 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
24360 | break | |
24361 | fi | |
24362 | done | |
24363 | fi | |
24364 | # check in a few other private locations | |
24365 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
24366 | for i in \ | |
24367 | ${srcdir}/../itcl/itk \ | |
24368 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
24369 | if test -f "$i/itkConfig.sh" ; then | |
24370 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
24371 | break | |
24372 | fi | |
24373 | done | |
24374 | fi | |
bec39cab | 24375 | |
3fc11d3e JM |
24376 | fi |
24377 | ||
24378 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
24379 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
24380 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
24381 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
24382 | else |
24383 | no_itk= | |
24384 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
4e8d927d DJ |
24385 | { echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
24386 | echo "${ECHO_T}found $ITKCONFIG" >&6; } | |
3fc11d3e JM |
24387 | fi |
24388 | fi | |
24389 | ||
24390 | ||
bec39cab AC |
24391 | if test -z "${no_itcl}"; then |
24392 | ||
24393 | if test -f "$ITKCONFIG" ; then | |
24394 | . $ITKCONFIG | |
24395 | fi | |
24396 | ||
24397 | ||
24398 | ||
24399 | ||
24400 | ||
24401 | ||
3fc11d3e | 24402 | |
3fc11d3e | 24403 | |
3fc11d3e JM |
24404 | |
24405 | ||
3fc11d3e JM |
24406 | |
24407 | ||
3fc11d3e | 24408 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 24409 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
24410 | fi |
24411 | ||
4226a5a5 | 24412 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
24413 | |
24414 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 24415 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
24416 | # Yes, the ordering seems wrong here. But it isn't. |
24417 | # TK_LIBS is the list of libraries that need to be linked | |
24418 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
24419 | # were in LIBS then any link tests after this point would | |
24420 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
24421 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
24422 | |
24423 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
24424 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
24425 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
24426 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
24427 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
24428 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
24429 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
24430 | |
24431 | if test x$gdb_cv_os_cygwin = xyes; then | |
24432 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
24433 | WIN32LDAPP="-Wl,--subsystem,console" | |
24434 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
24435 | fi | |
24436 | fi | |
24437 | fi | |
ffc6a242 | 24438 | |
4e8d927d | 24439 | subdirs="$subdirs gdbtk" |
3ace7edb | 24440 | |
3fc11d3e JM |
24441 | fi |
24442 | ||
24443 | ||
24444 | ||
24445 | ||
24446 | ||
24447 | ||
24448 | ||
24449 | ||
24450 | ||
24451 | ||
24452 | ||
24453 | ||
24454 | ||
dd2504ab | 24455 | |
4e8d927d DJ |
24456 | { echo "$as_me:$LINENO: checking for X" >&5 |
24457 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
bec39cab | 24458 | |
121ce6e5 | 24459 | ac_path_x_has_been_run=yes |
c906108c | 24460 | |
4e8d927d | 24461 | # Check whether --with-x was given. |
c906108c | 24462 | if test "${with_x+set}" = set; then |
4e8d927d DJ |
24463 | withval=$with_x; |
24464 | fi | |
c906108c SS |
24465 | |
24466 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
24467 | if test "x$with_x" = xno; then | |
24468 | # The user explicitly disabled X. | |
24469 | have_x=disabled | |
24470 | else | |
24471 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
24472 | # Both variables are already set. | |
24473 | have_x=yes | |
24474 | else | |
bec39cab AC |
24475 | if test "${ac_cv_have_x+set}" = set; then |
24476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
24477 | else |
24478 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 24479 | ac_x_includes=no ac_x_libraries=no |
4e8d927d | 24480 | rm -f -r conftest.dir |
bec39cab AC |
24481 | if mkdir conftest.dir; then |
24482 | cd conftest.dir | |
c906108c | 24483 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 24484 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
24485 | acfindx: |
24486 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 24487 | _ACEOF |
4e8d927d | 24488 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
24489 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
24490 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
24491 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
24492 | for ac_extension in a so sl; do | |
24493 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
24494 | test -f $ac_im_libdir/libX11.$ac_extension; then |
24495 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
24496 | fi |
24497 | done | |
24498 | # Screen out bogus values from the imake configuration. They are | |
24499 | # bogus both because they are the default anyway, and because | |
24500 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 24501 | case $ac_im_incroot in |
4e8d927d | 24502 | /usr/include) ac_x_includes= ;; |
bec39cab | 24503 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 24504 | esac |
bec39cab | 24505 | case $ac_im_usrlibdir in |
c906108c | 24506 | /usr/lib | /lib) ;; |
bec39cab | 24507 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
24508 | esac |
24509 | fi | |
24510 | cd .. | |
4e8d927d | 24511 | rm -f -r conftest.dir |
c906108c SS |
24512 | fi |
24513 | ||
bec39cab AC |
24514 | # Standard set of common directories for X headers. |
24515 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24516 | ac_x_header_dirs=' | |
24517 | /usr/X11/include | |
24518 | /usr/X11R6/include | |
24519 | /usr/X11R5/include | |
24520 | /usr/X11R4/include | |
24521 | ||
24522 | /usr/include/X11 | |
24523 | /usr/include/X11R6 | |
24524 | /usr/include/X11R5 | |
24525 | /usr/include/X11R4 | |
24526 | ||
24527 | /usr/local/X11/include | |
24528 | /usr/local/X11R6/include | |
24529 | /usr/local/X11R5/include | |
24530 | /usr/local/X11R4/include | |
24531 | ||
24532 | /usr/local/include/X11 | |
24533 | /usr/local/include/X11R6 | |
24534 | /usr/local/include/X11R5 | |
24535 | /usr/local/include/X11R4 | |
24536 | ||
24537 | /usr/X386/include | |
24538 | /usr/x386/include | |
24539 | /usr/XFree86/include/X11 | |
24540 | ||
24541 | /usr/include | |
24542 | /usr/local/include | |
24543 | /usr/unsupported/include | |
24544 | /usr/athena/include | |
24545 | /usr/local/x11r5/include | |
24546 | /usr/lpp/Xamples/include | |
24547 | ||
24548 | /usr/openwin/include | |
24549 | /usr/openwin/share/include' | |
24550 | ||
24551 | if test "$ac_x_includes" = no; then | |
4e8d927d | 24552 | # Guess where to find include files, by looking for Xlib.h. |
c906108c | 24553 | # First, try using that file with no special directory specified. |
bec39cab AC |
24554 | cat >conftest.$ac_ext <<_ACEOF |
24555 | /* confdefs.h. */ | |
24556 | _ACEOF | |
24557 | cat confdefs.h >>conftest.$ac_ext | |
24558 | cat >>conftest.$ac_ext <<_ACEOF | |
24559 | /* end confdefs.h. */ | |
4e8d927d | 24560 | #include <X11/Xlib.h.h> |
bec39cab AC |
24561 | _ACEOF |
24562 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24563 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24564 | ac_status=$? | |
24565 | grep -v '^ *+' conftest.er1 >conftest.err | |
24566 | rm -f conftest.er1 | |
24567 | cat conftest.err >&5 | |
24568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24569 | (exit $ac_status); } >/dev/null; then | |
24570 | if test -s conftest.err; then | |
24571 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24572 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24573 | else | |
24574 | ac_cpp_err= | |
24575 | fi | |
24576 | else | |
24577 | ac_cpp_err=yes | |
24578 | fi | |
24579 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
24580 | # We can compile using X headers with no special include directory. |
24581 | ac_x_includes= | |
24582 | else | |
bec39cab AC |
24583 | echo "$as_me: failed program was:" >&5 |
24584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24585 | ||
24586 | for ac_dir in $ac_x_header_dirs; do | |
121ce6e5 | 24587 | if test -r "$ac_dir/X11/Xlib.h"; then |
bec39cab AC |
24588 | ac_x_includes=$ac_dir |
24589 | break | |
24590 | fi | |
24591 | done | |
c906108c | 24592 | fi |
4e8d927d | 24593 | |
bec39cab AC |
24594 | rm -f conftest.err conftest.$ac_ext |
24595 | fi # $ac_x_includes = no | |
c906108c | 24596 | |
bec39cab | 24597 | if test "$ac_x_libraries" = no; then |
c906108c | 24598 | # Check for the libraries. |
c906108c SS |
24599 | # See if we find them without any special options. |
24600 | # Don't add to $LIBS permanently. | |
bec39cab | 24601 | ac_save_LIBS=$LIBS |
4e8d927d | 24602 | LIBS="-lXt $LIBS" |
bec39cab AC |
24603 | cat >conftest.$ac_ext <<_ACEOF |
24604 | /* confdefs.h. */ | |
24605 | _ACEOF | |
24606 | cat confdefs.h >>conftest.$ac_ext | |
24607 | cat >>conftest.$ac_ext <<_ACEOF | |
24608 | /* end confdefs.h. */ | |
121ce6e5 | 24609 | #include <X11/Xlib.h> |
bec39cab AC |
24610 | int |
24611 | main () | |
24612 | { | |
121ce6e5 | 24613 | XrmInitialize () |
bec39cab AC |
24614 | ; |
24615 | return 0; | |
24616 | } | |
24617 | _ACEOF | |
24618 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24620 | (eval $ac_link) 2>conftest.er1 | |
24621 | ac_status=$? | |
24622 | grep -v '^ *+' conftest.er1 >conftest.err | |
24623 | rm -f conftest.er1 | |
24624 | cat conftest.err >&5 | |
24625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24626 | (exit $ac_status); } && | |
121ce6e5 | 24627 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
24628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24629 | (eval $ac_try) 2>&5 | |
24630 | ac_status=$? | |
24631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24632 | (exit $ac_status); }; } && | |
24633 | { ac_try='test -s conftest$ac_exeext' | |
24634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24635 | (eval $ac_try) 2>&5 | |
24636 | ac_status=$? | |
24637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24638 | (exit $ac_status); }; }; then | |
24639 | LIBS=$ac_save_LIBS | |
c906108c SS |
24640 | # We can link X programs with no special library path. |
24641 | ac_x_libraries= | |
24642 | else | |
bec39cab AC |
24643 | echo "$as_me: failed program was:" >&5 |
24644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24645 | ||
4e8d927d | 24646 | LIBS=$ac_save_LIBS |
bec39cab | 24647 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 24648 | do |
bec39cab | 24649 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 24650 | for ac_extension in a so sl; do |
121ce6e5 | 24651 | if test -r $ac_dir/libX11.$ac_extension; then |
c906108c SS |
24652 | ac_x_libraries=$ac_dir |
24653 | break 2 | |
24654 | fi | |
24655 | done | |
24656 | done | |
24657 | fi | |
4e8d927d | 24658 | |
bec39cab AC |
24659 | rm -f conftest.err conftest.$ac_objext \ |
24660 | conftest$ac_exeext conftest.$ac_ext | |
24661 | fi # $ac_x_libraries = no | |
c906108c | 24662 | |
bec39cab | 24663 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
24664 | # Didn't find X anywhere. Cache the known absence of X. |
24665 | ac_cv_have_x="have_x=no" | |
24666 | else | |
24667 | # Record where we found X for the cache. | |
24668 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 24669 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
24670 | fi |
24671 | fi | |
bec39cab | 24672 | |
c906108c SS |
24673 | fi |
24674 | eval "$ac_cv_have_x" | |
24675 | fi # $with_x != no | |
24676 | ||
24677 | if test "$have_x" != yes; then | |
4e8d927d DJ |
24678 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
24679 | echo "${ECHO_T}$have_x" >&6; } | |
c906108c SS |
24680 | no_x=yes |
24681 | else | |
24682 | # If each of the values was on the command line, it overrides each guess. | |
24683 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24684 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24685 | # Update the cache value to reflect the command line values. | |
24686 | ac_cv_have_x="have_x=yes \ | |
24687 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
121ce6e5 DJ |
24688 | # It might be that x_includes is empty (headers are found in the |
24689 | # standard search path. Then output the corresponding message | |
24690 | ac_out_x_includes=$x_includes | |
24691 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
4e8d927d DJ |
24692 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 |
24693 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; } | |
c906108c SS |
24694 | fi |
24695 | ||
24696 | ||
9cc52bde MK |
24697 | # Check whether we should enable the TUI, but only do so if we really |
24698 | # can. | |
24699 | if test x"$enable_tui" = xyes; then | |
24700 | if test -d $srcdir/tui; then | |
24701 | if test "$ac_cv_search_waddstr" != no; then | |
24702 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
24703 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
24704 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
24705 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
24706 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
24707 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
24708 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
24709 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
24710 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
24711 | else | |
bec39cab AC |
24712 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
24713 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
24714 | fi |
24715 | fi | |
24716 | fi | |
24717 | ||
bec39cab AC |
24718 | # Unlike the sim directory, whether a simulator is linked is controlled by |
24719 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
24720 | # This code just checks for a few cases where we'd like to ignore those |
24721 | # definitions, even when they're present in the '.mt' file. These cases | |
24722 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 24723 | # not part of the source tree. |
7a292a7a | 24724 | # |
4e8d927d | 24725 | # Check whether --enable-sim was given. |
7a292a7a | 24726 | if test "${enable_sim+set}" = set; then |
4e8d927d | 24727 | enableval=$enable_sim; echo "enable_sim = $enable_sim"; |
7a292a7a SS |
24728 | echo "enableval = ${enableval}"; |
24729 | case "${enableval}" in | |
24730 | yes) ignore_sim=false ;; | |
24731 | no) ignore_sim=true ;; | |
24732 | *) ignore_sim=false ;; | |
24733 | esac | |
24734 | else | |
24735 | ignore_sim=false | |
4e8d927d DJ |
24736 | fi |
24737 | ||
7a292a7a SS |
24738 | |
24739 | if test ! -d "${srcdir}/../sim"; then | |
24740 | ignore_sim=true | |
24741 | fi | |
24742 | ||
24743 | if test "${ignore_sim}" = "true"; then | |
24744 | IGNORE_SIM="SIM=" | |
24745 | IGNORE_SIM_OBS="SIM_OBS=" | |
24746 | else | |
24747 | IGNORE_SIM="" | |
24748 | IGNORE_SIM_OBS="" | |
60ca704f SE |
24749 | |
24750 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 24751 | #define WITH_SIM 1 |
bec39cab | 24752 | _ACEOF |
7a292a7a SS |
24753 | |
24754 | fi | |
24755 | ||
24756 | ||
24757 | ||
c906108c SS |
24758 | |
24759 | ||
24760 | ||
24761 | ||
24762 | ||
24763 | ||
dfcd3bfb | 24764 | |
e56ac5c3 AC |
24765 | |
24766 | ||
b3a90332 AC |
24767 | |
24768 | ||
c35f4ffc | 24769 | # List of host floatformats. |
bec39cab AC |
24770 | |
24771 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 24772 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 24773 | _ACEOF |
c35f4ffc | 24774 | |
bec39cab AC |
24775 | |
24776 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 24777 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
24778 | _ACEOF |
24779 | ||
c35f4ffc | 24780 | |
bec39cab | 24781 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 24782 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 24783 | _ACEOF |
c35f4ffc AC |
24784 | |
24785 | ||
c906108c SS |
24786 | # target_subdir is used by the testsuite to find the target libraries. |
24787 | target_subdir= | |
24788 | if test "${host}" != "${target}"; then | |
24789 | target_subdir="${target_alias}/" | |
24790 | fi | |
24791 | ||
24792 | ||
24793 | frags= | |
0dad8a66 MK |
24794 | if test "${target}" = "${host}"; then |
24795 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh | |
24796 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
24797 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
24798 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
24799 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
24800 | fi |
24801 | frags="$frags $host_makefile_frag" | |
24802 | else | |
24803 | host_makefile_frag=/dev/null | |
c906108c | 24804 | fi |
c906108c SS |
24805 | |
24806 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
24807 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
24808 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
24809 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
24810 | { (exit 1); exit 1; }; } | |
c906108c SS |
24811 | fi |
24812 | frags="$frags $target_makefile_frag" | |
24813 | ||
24814 | ||
24815 | ||
24816 | ||
24817 | ||
24818 | hostfile=`sed -n ' | |
24819 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
24820 | ' ${host_makefile_frag}` | |
24821 | ||
24822 | targetfile=`sed -n ' | |
2c0fc042 | 24823 | s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
24824 | ' ${target_makefile_frag}` |
24825 | ||
c906108c | 24826 | if test "${target}" = "${host}"; then |
a85f51e7 DJ |
24827 | # We pick this up from the host configuration file (.mh) because we |
24828 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
24829 | nativefile=`sed -n ' |
24830 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
24831 | ' ${host_makefile_frag}` | |
c906108c SS |
24832 | fi |
24833 | ||
24834 | ||
b00a8037 | 24835 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
24836 | |
24837 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 24838 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 24839 | _ACEOF |
b00a8037 DJ |
24840 | |
24841 | fi | |
24842 | ||
8dcde887 | 24843 | # Enable multi-ice-gdb-server. |
4e8d927d | 24844 | # Check whether --enable-multi-ice was given. |
8dcde887 | 24845 | if test "${enable_multi_ice+set}" = set; then |
4e8d927d | 24846 | enableval=$enable_multi_ice; case $enableval in |
8dcde887 MK |
24847 | yes | no) |
24848 | ;; | |
bec39cab AC |
24849 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
24850 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
24851 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 24852 | esac |
4e8d927d | 24853 | fi |
bec39cab | 24854 | |
4e8d927d DJ |
24855 | if test "x$enable_multi_ice" = xyes; then |
24856 | subdirs="$subdirs multi-ice" | |
3ace7edb | 24857 | |
a85f51e7 DJ |
24858 | fi |
24859 | ||
8dcde887 MK |
24860 | # We only build gdbserver automatically if host and target are the same. |
24861 | if test "x$target" = "x$host"; then | |
4e8d927d DJ |
24862 | { echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
24863 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6; } | |
8dcde887 | 24864 | if test "x$build_gdbserver" = xyes; then |
4e8d927d DJ |
24865 | { echo "$as_me:$LINENO: result: yes" >&5 |
24866 | echo "${ECHO_T}yes" >&6; } | |
24867 | subdirs="$subdirs gdbserver" | |
3ace7edb | 24868 | |
8dcde887 | 24869 | else |
4e8d927d DJ |
24870 | { echo "$as_me:$LINENO: result: no" >&5 |
24871 | echo "${ECHO_T}no" >&6; } | |
8dcde887 MK |
24872 | fi |
24873 | fi | |
24874 | ||
2c0fc042 AC |
24875 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
24876 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
24877 | # to an empty version. | |
c906108c SS |
24878 | |
24879 | files= | |
24880 | links= | |
5a2402b8 | 24881 | |
c906108c | 24882 | rm -f xm.h |
5a2402b8 | 24883 | xm_h="" |
c906108c | 24884 | if test "${hostfile}" != ""; then |
5a2402b8 | 24885 | xm_h=xm.h |
0f475e27 AC |
24886 | case "${hostfile}" in |
24887 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
24888 | * ) GDB_XM_FILE="${hostfile}" | |
24889 | esac | |
5a2402b8 AC |
24890 | files="${files} ${GDB_XM_FILE}" |
24891 | links="${links} xm.h" | |
60ca704f SE |
24892 | |
24893 | cat >>confdefs.h <<_ACEOF | |
b78960be | 24894 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 24895 | _ACEOF |
5a2402b8 | 24896 | |
c906108c | 24897 | fi |
5a2402b8 AC |
24898 | |
24899 | ||
c906108c | 24900 | rm -f tm.h |
5a2402b8 | 24901 | tm_h="" |
c906108c | 24902 | if test "${targetfile}" != ""; then |
5a2402b8 | 24903 | tm_h=tm.h |
0f475e27 | 24904 | case "${targetfile}" in |
b8c4aece | 24905 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
24906 | * ) GDB_TM_FILE="${targetfile}" |
24907 | esac | |
5a2402b8 AC |
24908 | files="${files} ${GDB_TM_FILE}" |
24909 | links="${links} tm.h" | |
60ca704f SE |
24910 | |
24911 | cat >>confdefs.h <<_ACEOF | |
b78960be | 24912 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 24913 | _ACEOF |
5a2402b8 | 24914 | |
c906108c | 24915 | fi |
5a2402b8 AC |
24916 | |
24917 | ||
c906108c | 24918 | rm -f nm.h |
5a2402b8 | 24919 | nm_h="" |
c906108c | 24920 | if test "${nativefile}" != ""; then |
5a2402b8 | 24921 | nm_h=nm.h |
0f475e27 AC |
24922 | case "${nativefile}" in |
24923 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
24924 | * ) GDB_NM_FILE="${nativefile}" | |
24925 | esac | |
5a2402b8 AC |
24926 | files="${files} ${GDB_NM_FILE}" |
24927 | links="${links} nm.h" | |
60ca704f SE |
24928 | |
24929 | cat >>confdefs.h <<_ACEOF | |
b78960be | 24930 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 24931 | _ACEOF |
5a2402b8 | 24932 | |
c906108c | 24933 | fi |
5a2402b8 AC |
24934 | |
24935 | ||
bec39cab AC |
24936 | ac_sources="$files" |
24937 | ac_dests="$links" | |
24938 | while test -n "$ac_sources"; do | |
24939 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
24940 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
24941 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
24942 | done | |
4e8d927d | 24943 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
24944 | |
24945 | ||
c906108c SS |
24946 | |
24947 | ||
c906108c | 24948 | |
c906108c | 24949 | |
bec39cab AC |
24950 | cat >>confdefs.h <<\_ACEOF |
24951 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
24952 | _ACEOF | |
c906108c | 24953 | |
234b45d4 | 24954 | |
234b45d4 KB |
24955 | |
24956 | ||
24957 | ||
4e8d927d | 24958 | # Check whether --with-libiconv-prefix was given. |
234b45d4 | 24959 | if test "${with_libiconv_prefix+set}" = set; then |
4e8d927d | 24960 | withval=$with_libiconv_prefix; |
234b45d4 KB |
24961 | for dir in `echo "$withval" | tr : ' '`; do |
24962 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
24963 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
24964 | done | |
234b45d4 | 24965 | |
4e8d927d DJ |
24966 | fi |
24967 | ||
234b45d4 | 24968 | |
4e8d927d DJ |
24969 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
24970 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } | |
bec39cab AC |
24971 | if test "${am_cv_func_iconv+set}" = set; then |
24972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 24973 | else |
bec39cab | 24974 | |
234b45d4 KB |
24975 | am_cv_func_iconv="no, consider installing GNU libiconv" |
24976 | am_cv_lib_iconv=no | |
bec39cab AC |
24977 | cat >conftest.$ac_ext <<_ACEOF |
24978 | /* confdefs.h. */ | |
24979 | _ACEOF | |
24980 | cat confdefs.h >>conftest.$ac_ext | |
24981 | cat >>conftest.$ac_ext <<_ACEOF | |
24982 | /* end confdefs.h. */ | |
234b45d4 KB |
24983 | #include <stdlib.h> |
24984 | #include <iconv.h> | |
bec39cab AC |
24985 | int |
24986 | main () | |
24987 | { | |
234b45d4 KB |
24988 | iconv_t cd = iconv_open("",""); |
24989 | iconv(cd,NULL,NULL,NULL,NULL); | |
24990 | iconv_close(cd); | |
bec39cab AC |
24991 | ; |
24992 | return 0; | |
24993 | } | |
24994 | _ACEOF | |
24995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24997 | (eval $ac_link) 2>conftest.er1 | |
24998 | ac_status=$? | |
24999 | grep -v '^ *+' conftest.er1 >conftest.err | |
25000 | rm -f conftest.er1 | |
25001 | cat conftest.err >&5 | |
25002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25003 | (exit $ac_status); } && | |
121ce6e5 | 25004 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
25005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25006 | (eval $ac_try) 2>&5 | |
25007 | ac_status=$? | |
25008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25009 | (exit $ac_status); }; } && | |
25010 | { ac_try='test -s conftest$ac_exeext' | |
25011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25012 | (eval $ac_try) 2>&5 | |
25013 | ac_status=$? | |
25014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25015 | (exit $ac_status); }; }; then | |
234b45d4 KB |
25016 | am_cv_func_iconv=yes |
25017 | else | |
bec39cab AC |
25018 | echo "$as_me: failed program was:" >&5 |
25019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25020 | ||
4e8d927d | 25021 | |
234b45d4 | 25022 | fi |
4e8d927d | 25023 | |
bec39cab AC |
25024 | rm -f conftest.err conftest.$ac_objext \ |
25025 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
25026 | if test "$am_cv_func_iconv" != yes; then |
25027 | am_save_LIBS="$LIBS" | |
25028 | LIBS="$LIBS -liconv" | |
bec39cab AC |
25029 | cat >conftest.$ac_ext <<_ACEOF |
25030 | /* confdefs.h. */ | |
25031 | _ACEOF | |
25032 | cat confdefs.h >>conftest.$ac_ext | |
25033 | cat >>conftest.$ac_ext <<_ACEOF | |
25034 | /* end confdefs.h. */ | |
234b45d4 KB |
25035 | #include <stdlib.h> |
25036 | #include <iconv.h> | |
bec39cab AC |
25037 | int |
25038 | main () | |
25039 | { | |
234b45d4 KB |
25040 | iconv_t cd = iconv_open("",""); |
25041 | iconv(cd,NULL,NULL,NULL,NULL); | |
25042 | iconv_close(cd); | |
bec39cab AC |
25043 | ; |
25044 | return 0; | |
25045 | } | |
25046 | _ACEOF | |
25047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25049 | (eval $ac_link) 2>conftest.er1 | |
25050 | ac_status=$? | |
25051 | grep -v '^ *+' conftest.er1 >conftest.err | |
25052 | rm -f conftest.er1 | |
25053 | cat conftest.err >&5 | |
25054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25055 | (exit $ac_status); } && | |
121ce6e5 | 25056 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
25057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25058 | (eval $ac_try) 2>&5 | |
25059 | ac_status=$? | |
25060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25061 | (exit $ac_status); }; } && | |
25062 | { ac_try='test -s conftest$ac_exeext' | |
25063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25064 | (eval $ac_try) 2>&5 | |
25065 | ac_status=$? | |
25066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25067 | (exit $ac_status); }; }; then | |
234b45d4 KB |
25068 | am_cv_lib_iconv=yes |
25069 | am_cv_func_iconv=yes | |
25070 | else | |
bec39cab AC |
25071 | echo "$as_me: failed program was:" >&5 |
25072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25073 | ||
4e8d927d | 25074 | |
234b45d4 | 25075 | fi |
4e8d927d | 25076 | |
bec39cab AC |
25077 | rm -f conftest.err conftest.$ac_objext \ |
25078 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
25079 | LIBS="$am_save_LIBS" |
25080 | fi | |
bec39cab AC |
25081 | |
25082 | fi | |
4e8d927d DJ |
25083 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
25084 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } | |
bec39cab AC |
25085 | if test "$am_cv_func_iconv" = yes; then |
25086 | ||
25087 | cat >>confdefs.h <<\_ACEOF | |
25088 | #define HAVE_ICONV 1 | |
25089 | _ACEOF | |
25090 | ||
4e8d927d DJ |
25091 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
25092 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } | |
bec39cab AC |
25093 | if test "${am_cv_proto_iconv+set}" = set; then |
25094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25095 | else | |
25096 | ||
25097 | cat >conftest.$ac_ext <<_ACEOF | |
25098 | /* confdefs.h. */ | |
25099 | _ACEOF | |
25100 | cat confdefs.h >>conftest.$ac_ext | |
25101 | cat >>conftest.$ac_ext <<_ACEOF | |
25102 | /* end confdefs.h. */ | |
25103 | ||
25104 | #include <stdlib.h> | |
25105 | #include <iconv.h> | |
25106 | extern | |
25107 | #ifdef __cplusplus | |
25108 | "C" | |
25109 | #endif | |
25110 | #if defined(__STDC__) || defined(__cplusplus) | |
25111 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
25112 | #else | |
25113 | size_t iconv(); | |
25114 | #endif | |
25115 | ||
25116 | int | |
25117 | main () | |
25118 | { | |
25119 | ||
25120 | ; | |
25121 | return 0; | |
25122 | } | |
25123 | _ACEOF | |
25124 | rm -f conftest.$ac_objext | |
25125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25126 | (eval $ac_compile) 2>conftest.er1 | |
25127 | ac_status=$? | |
25128 | grep -v '^ *+' conftest.er1 >conftest.err | |
25129 | rm -f conftest.er1 | |
25130 | cat conftest.err >&5 | |
25131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25132 | (exit $ac_status); } && | |
121ce6e5 | 25133 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bec39cab AC |
25134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25135 | (eval $ac_try) 2>&5 | |
25136 | ac_status=$? | |
25137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25138 | (exit $ac_status); }; } && | |
25139 | { ac_try='test -s conftest.$ac_objext' | |
25140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25141 | (eval $ac_try) 2>&5 | |
25142 | ac_status=$? | |
25143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25144 | (exit $ac_status); }; }; then | |
25145 | am_cv_proto_iconv_arg1="" | |
25146 | else | |
25147 | echo "$as_me: failed program was:" >&5 | |
25148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25149 | ||
4e8d927d | 25150 | am_cv_proto_iconv_arg1="const" |
bec39cab | 25151 | fi |
4e8d927d | 25152 | |
bec39cab AC |
25153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25154 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | |
25155 | fi | |
25156 | ||
25157 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
4e8d927d | 25158 | { echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
25159 | }$am_cv_proto_iconv" >&5 |
25160 | echo "${ECHO_T}${ac_t:- | |
4e8d927d | 25161 | }$am_cv_proto_iconv" >&6; } |
bec39cab AC |
25162 | |
25163 | cat >>confdefs.h <<_ACEOF | |
25164 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
25165 | _ACEOF | |
25166 | ||
25167 | fi | |
25168 | LIBICONV= | |
25169 | if test "$am_cv_lib_iconv" = yes; then | |
25170 | LIBICONV="-liconv" | |
25171 | fi | |
25172 | ||
25173 | ||
25174 | ||
4e8d927d DJ |
25175 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
25176 | ||
25177 | ac_config_commands="$ac_config_commands default" | |
25178 | ||
bec39cab AC |
25179 | cat >confcache <<\_ACEOF |
25180 | # This file is a shell script that caches the results of configure | |
25181 | # tests run on this system so they can be shared between configure | |
25182 | # scripts and configure runs, see configure's option --config-cache. | |
25183 | # It is not useful on other systems. If it contains results you don't | |
25184 | # want to keep, you may remove or edit it. | |
25185 | # | |
25186 | # config.status only pays attention to the cache file if you give it | |
25187 | # the --recheck option to rerun configure. | |
25188 | # | |
25189 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
25190 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25191 | # following values. | |
25192 | ||
25193 | _ACEOF | |
25194 | ||
25195 | # The following way of writing the cache mishandles newlines in values, | |
25196 | # but we know of no workaround that is simple, portable, and efficient. | |
4e8d927d | 25197 | # So, we kill variables containing newlines. |
bec39cab AC |
25198 | # Ultrix sh set writes to stderr and can't be redirected directly, |
25199 | # and sets the high bit in the cache file unless we assign to the vars. | |
4e8d927d DJ |
25200 | ( |
25201 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
25202 | eval ac_val=\$$ac_var | |
25203 | case $ac_val in #( | |
25204 | *${as_nl}*) | |
25205 | case $ac_var in #( | |
25206 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
25207 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
25208 | esac | |
25209 | case $ac_var in #( | |
25210 | _ | IFS | as_nl) ;; #( | |
25211 | *) $as_unset $ac_var ;; | |
25212 | esac ;; | |
25213 | esac | |
25214 | done | |
25215 | ||
bec39cab | 25216 | (set) 2>&1 | |
4e8d927d DJ |
25217 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
25218 | *${as_nl}ac_space=\ *) | |
bec39cab AC |
25219 | # `set' does not quote correctly, so add quotes (double-quote |
25220 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25221 | sed -n \ | |
25222 | "s/'/'\\\\''/g; | |
25223 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4e8d927d | 25224 | ;; #( |
bec39cab AC |
25225 | *) |
25226 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4e8d927d | 25227 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bec39cab | 25228 | ;; |
4e8d927d DJ |
25229 | esac | |
25230 | sort | |
25231 | ) | | |
bec39cab | 25232 | sed ' |
4e8d927d | 25233 | /^ac_cv_env_/b end |
bec39cab | 25234 | t clear |
4e8d927d | 25235 | :clear |
bec39cab AC |
25236 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
25237 | t end | |
4e8d927d DJ |
25238 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
25239 | :end' >>confcache | |
bec39cab AC |
25240 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
25241 | if test -w $cache_file; then | |
4e8d927d DJ |
25242 | test "x$cache_file" != "x/dev/null" && |
25243 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
25244 | echo "$as_me: updating cache $cache_file" >&6;} | |
bec39cab AC |
25245 | cat confcache >$cache_file |
25246 | else | |
4e8d927d DJ |
25247 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
25248 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
bec39cab AC |
25249 | fi |
25250 | fi | |
25251 | rm -f confcache | |
25252 | ||
25253 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
25254 | # Let make expand exec_prefix. | |
25255 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
25256 | ||
bec39cab AC |
25257 | DEFS=-DHAVE_CONFIG_H |
25258 | ||
25259 | ac_libobjs= | |
25260 | ac_ltlibobjs= | |
25261 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
25262 | # 1. Remove the extension, and $U if already installed. | |
4e8d927d DJ |
25263 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
25264 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
25265 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
25266 | # will be set to the directory where LIBOBJS objects are built. | |
25267 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
25268 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
bec39cab AC |
25269 | done |
25270 | LIBOBJS=$ac_libobjs | |
25271 | ||
25272 | LTLIBOBJS=$ac_ltlibobjs | |
25273 | ||
25274 | ||
85981d60 AC |
25275 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
25276 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25277 | Usually this means the macro was only invoked conditionally." >&5 | |
25278 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
25279 | Usually this means the macro was only invoked conditionally." >&2;} | |
25280 | { (exit 1); exit 1; }; } | |
25281 | fi | |
bec39cab AC |
25282 | |
25283 | : ${CONFIG_STATUS=./config.status} | |
25284 | ac_clean_files_save=$ac_clean_files | |
25285 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25286 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
25287 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
25288 | cat >$CONFIG_STATUS <<_ACEOF | |
25289 | #! $SHELL | |
25290 | # Generated by $as_me. | |
25291 | # Run this file to recreate the current configuration. | |
25292 | # Compiler output produced by configure, useful for debugging | |
25293 | # configure, is in config.log if it exists. | |
25294 | ||
25295 | debug=false | |
25296 | ac_cs_recheck=false | |
25297 | ac_cs_silent=false | |
25298 | SHELL=\${CONFIG_SHELL-$SHELL} | |
25299 | _ACEOF | |
25300 | ||
25301 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25302 | ## --------------------- ## | |
25303 | ## M4sh Initialization. ## | |
25304 | ## --------------------- ## | |
25305 | ||
25306 | # Be Bourne compatible | |
25307 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
25308 | emulate sh | |
25309 | NULLCMD=: | |
25310 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
25311 | # is contrary to our usage. Disable this feature. | |
25312 | alias -g '${1+"$@"}'='"$@"' | |
4e8d927d DJ |
25313 | setopt NO_GLOB_SUBST |
25314 | else | |
25315 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
bec39cab | 25316 | fi |
4e8d927d | 25317 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
bec39cab AC |
25318 | DUALCASE=1; export DUALCASE # for MKS sh |
25319 | ||
4e8d927d DJ |
25320 | |
25321 | # PATH needs CR | |
25322 | # Avoid depending upon Character Ranges. | |
25323 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
25324 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
25325 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
25326 | as_cr_digits='0123456789' | |
25327 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
25328 | ||
25329 | # The user is always right. | |
25330 | if test "${PATH_SEPARATOR+set}" != set; then | |
25331 | echo "#! /bin/sh" >conf$$.sh | |
25332 | echo "exit 0" >>conf$$.sh | |
25333 | chmod +x conf$$.sh | |
25334 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
25335 | PATH_SEPARATOR=';' | |
25336 | else | |
25337 | PATH_SEPARATOR=: | |
25338 | fi | |
25339 | rm -f conf$$.sh | |
25340 | fi | |
25341 | ||
bec39cab AC |
25342 | # Support unset when possible. |
25343 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
25344 | as_unset=unset | |
25345 | else | |
25346 | as_unset=false | |
25347 | fi | |
25348 | ||
25349 | ||
4e8d927d DJ |
25350 | # IFS |
25351 | # We need space, tab and new line, in precisely that order. Quoting is | |
25352 | # there to prevent editors from complaining about space-tab. | |
25353 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
25354 | # splitting by setting IFS to empty value.) | |
25355 | as_nl=' | |
25356 | ' | |
25357 | IFS=" "" $as_nl" | |
25358 | ||
25359 | # Find who we are. Look in the path if we contain no directory separator. | |
25360 | case $0 in | |
25361 | *[\\/]* ) as_myself=$0 ;; | |
25362 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25363 | for as_dir in $PATH | |
25364 | do | |
25365 | IFS=$as_save_IFS | |
25366 | test -z "$as_dir" && as_dir=. | |
25367 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
25368 | done | |
25369 | IFS=$as_save_IFS | |
25370 | ||
25371 | ;; | |
25372 | esac | |
25373 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
25374 | # in which case we are not to be found in the path. | |
25375 | if test "x$as_myself" = x; then | |
25376 | as_myself=$0 | |
25377 | fi | |
25378 | if test ! -f "$as_myself"; then | |
25379 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
25380 | { (exit 1); exit 1; } | |
25381 | fi | |
25382 | ||
bec39cab | 25383 | # Work around bugs in pre-3.0 UWIN ksh. |
4e8d927d DJ |
25384 | for as_var in ENV MAIL MAILPATH |
25385 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
25386 | done | |
bec39cab AC |
25387 | PS1='$ ' |
25388 | PS2='> ' | |
25389 | PS4='+ ' | |
25390 | ||
25391 | # NLS nuisances. | |
25392 | for as_var in \ | |
25393 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
25394 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
25395 | LC_TELEPHONE LC_TIME | |
25396 | do | |
25397 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
25398 | eval $as_var=C; export $as_var | |
25399 | else | |
4e8d927d | 25400 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
bec39cab AC |
25401 | fi |
25402 | done | |
25403 | ||
25404 | # Required to use basename. | |
4e8d927d DJ |
25405 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25406 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
25407 | as_expr=expr |
25408 | else | |
25409 | as_expr=false | |
25410 | fi | |
25411 | ||
4e8d927d | 25412 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
bec39cab AC |
25413 | as_basename=basename |
25414 | else | |
25415 | as_basename=false | |
25416 | fi | |
25417 | ||
25418 | ||
25419 | # Name of the executable. | |
4e8d927d | 25420 | as_me=`$as_basename -- "$0" || |
bec39cab AC |
25421 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
25422 | X"$0" : 'X\(//\)$' \| \ | |
4e8d927d | 25423 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
bec39cab | 25424 | echo X/"$0" | |
4e8d927d DJ |
25425 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
25426 | s//\1/ | |
25427 | q | |
25428 | } | |
25429 | /^X\/\(\/\/\)$/{ | |
25430 | s//\1/ | |
25431 | q | |
25432 | } | |
25433 | /^X\/\(\/\).*/{ | |
25434 | s//\1/ | |
25435 | q | |
25436 | } | |
25437 | s/.*/./; q'` | |
bec39cab | 25438 | |
4e8d927d DJ |
25439 | # CDPATH. |
25440 | $as_unset CDPATH | |
bec39cab AC |
25441 | |
25442 | ||
bec39cab | 25443 | |
bec39cab AC |
25444 | as_lineno_1=$LINENO |
25445 | as_lineno_2=$LINENO | |
bec39cab | 25446 | test "x$as_lineno_1" != "x$as_lineno_2" && |
4e8d927d | 25447 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
bec39cab AC |
25448 | |
25449 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
25450 | # uniformly replaced by the line number. The first 'sed' inserts a | |
4e8d927d DJ |
25451 | # line-number line after each line using $LINENO; the second 'sed' |
25452 | # does the real work. The second script uses 'N' to pair each | |
25453 | # line-number line with the line containing $LINENO, and appends | |
25454 | # trailing '-' during substitution so that $LINENO is not a special | |
25455 | # case at line end. | |
bec39cab | 25456 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
4e8d927d DJ |
25457 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
25458 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
25459 | sed -n ' | |
25460 | p | |
25461 | /[$]LINENO/= | |
25462 | ' <$as_myself | | |
bec39cab | 25463 | sed ' |
4e8d927d DJ |
25464 | s/[$]LINENO.*/&-/ |
25465 | t lineno | |
25466 | b | |
25467 | :lineno | |
bec39cab | 25468 | N |
4e8d927d DJ |
25469 | :loop |
25470 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
bec39cab | 25471 | t loop |
4e8d927d | 25472 | s/-\n.*// |
bec39cab | 25473 | ' >$as_me.lineno && |
4e8d927d DJ |
25474 | chmod +x "$as_me.lineno" || |
25475 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
bec39cab AC |
25476 | { (exit 1); exit 1; }; } |
25477 | ||
25478 | # Don't try to exec as it changes $[0], causing all sort of problems | |
25479 | # (the dirname of $[0] is not the place where we might find the | |
4e8d927d DJ |
25480 | # original and so on. Autoconf is especially sensitive to this). |
25481 | . "./$as_me.lineno" | |
bec39cab AC |
25482 | # Exit status is that of the last command. |
25483 | exit | |
25484 | } | |
25485 | ||
25486 | ||
4e8d927d DJ |
25487 | if (dirname -- /) >/dev/null 2>&1; then |
25488 | as_dirname=dirname | |
25489 | else | |
25490 | as_dirname=false | |
25491 | fi | |
25492 | ||
25493 | ECHO_C= ECHO_N= ECHO_T= | |
25494 | case `echo -n x` in | |
25495 | -n*) | |
25496 | case `echo 'x\c'` in | |
25497 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
25498 | *) ECHO_C='\c';; | |
25499 | esac;; | |
25500 | *) | |
25501 | ECHO_N='-n';; | |
bec39cab AC |
25502 | esac |
25503 | ||
4e8d927d DJ |
25504 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25505 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
bec39cab AC |
25506 | as_expr=expr |
25507 | else | |
25508 | as_expr=false | |
25509 | fi | |
25510 | ||
25511 | rm -f conf$$ conf$$.exe conf$$.file | |
4e8d927d DJ |
25512 | if test -d conf$$.dir; then |
25513 | rm -f conf$$.dir/conf$$.file | |
25514 | else | |
25515 | rm -f conf$$.dir | |
25516 | mkdir conf$$.dir | |
25517 | fi | |
bec39cab AC |
25518 | echo >conf$$.file |
25519 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
4e8d927d DJ |
25520 | as_ln_s='ln -s' |
25521 | # ... but there are two gotchas: | |
25522 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
25523 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
25524 | # In both cases, we have to default to `cp -p'. | |
25525 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
bec39cab | 25526 | as_ln_s='cp -p' |
bec39cab AC |
25527 | elif ln conf$$.file conf$$ 2>/dev/null; then |
25528 | as_ln_s=ln | |
25529 | else | |
25530 | as_ln_s='cp -p' | |
25531 | fi | |
4e8d927d DJ |
25532 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
25533 | rmdir conf$$.dir 2>/dev/null | |
bec39cab AC |
25534 | |
25535 | if mkdir -p . 2>/dev/null; then | |
25536 | as_mkdir_p=: | |
25537 | else | |
25538 | test -d ./-p && rmdir ./-p | |
25539 | as_mkdir_p=false | |
25540 | fi | |
25541 | ||
4e8d927d DJ |
25542 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
25543 | # systems may use methods other than mode bits to determine executability. | |
25544 | cat >conf$$.file <<_ASEOF | |
25545 | #! /bin/sh | |
25546 | exit 0 | |
25547 | _ASEOF | |
25548 | chmod +x conf$$.file | |
25549 | if test -x conf$$.file >/dev/null 2>&1; then | |
25550 | as_executable_p="test -x" | |
25551 | else | |
25552 | as_executable_p=: | |
25553 | fi | |
25554 | rm -f conf$$.file | |
bec39cab AC |
25555 | |
25556 | # Sed expression to map a string onto a valid CPP name. | |
25557 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
25558 | ||
25559 | # Sed expression to map a string onto a valid variable name. | |
25560 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
25561 | ||
25562 | ||
bec39cab AC |
25563 | exec 6>&1 |
25564 | ||
4e8d927d | 25565 | # Save the log message, to keep $[0] and so on meaningful, and to |
bec39cab | 25566 | # report actual input values of CONFIG_FILES etc. instead of their |
4e8d927d DJ |
25567 | # values after options handling. |
25568 | ac_log=" | |
bec39cab | 25569 | This file was extended by $as_me, which was |
4e8d927d | 25570 | generated by GNU Autoconf 2.59d. Invocation command line was |
bec39cab AC |
25571 | |
25572 | CONFIG_FILES = $CONFIG_FILES | |
25573 | CONFIG_HEADERS = $CONFIG_HEADERS | |
25574 | CONFIG_LINKS = $CONFIG_LINKS | |
25575 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
25576 | $ $0 $@ | |
25577 | ||
4e8d927d DJ |
25578 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
25579 | " | |
25580 | ||
bec39cab AC |
25581 | _ACEOF |
25582 | ||
4e8d927d | 25583 | cat >>$CONFIG_STATUS <<_ACEOF |
bec39cab | 25584 | # Files that config.status was made for. |
4e8d927d DJ |
25585 | config_files="$ac_config_files" |
25586 | config_headers="$ac_config_headers" | |
25587 | config_links="$ac_config_links" | |
25588 | config_commands="$ac_config_commands" | |
234b45d4 | 25589 | |
4e8d927d | 25590 | _ACEOF |
234b45d4 | 25591 | |
bec39cab | 25592 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
25593 | ac_cs_usage="\ |
25594 | \`$as_me' instantiates files from templates according to the | |
25595 | current configuration. | |
234b45d4 | 25596 | |
bec39cab | 25597 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 25598 | |
bec39cab AC |
25599 | -h, --help print this help, then exit |
25600 | -V, --version print version number, then exit | |
25601 | -q, --quiet do not print progress messages | |
25602 | -d, --debug don't remove temporary files | |
25603 | --recheck update $as_me by reconfiguring in the same conditions | |
25604 | --file=FILE[:TEMPLATE] | |
25605 | instantiate the configuration file FILE | |
25606 | --header=FILE[:TEMPLATE] | |
25607 | instantiate the configuration header FILE | |
234b45d4 | 25608 | |
bec39cab AC |
25609 | Configuration files: |
25610 | $config_files | |
234b45d4 | 25611 | |
bec39cab AC |
25612 | Configuration headers: |
25613 | $config_headers | |
234b45d4 | 25614 | |
bec39cab AC |
25615 | Configuration links: |
25616 | $config_links | |
234b45d4 | 25617 | |
bec39cab AC |
25618 | Configuration commands: |
25619 | $config_commands | |
25620 | ||
25621 | Report bugs to <bug-autoconf@gnu.org>." | |
bec39cab | 25622 | |
4e8d927d | 25623 | _ACEOF |
bec39cab AC |
25624 | cat >>$CONFIG_STATUS <<_ACEOF |
25625 | ac_cs_version="\\ | |
25626 | config.status | |
4e8d927d | 25627 | configured by $0, generated by GNU Autoconf 2.59d, |
bec39cab AC |
25628 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
25629 | ||
4e8d927d | 25630 | Copyright (C) 2006 Free Software Foundation, Inc. |
bec39cab AC |
25631 | This config.status script is free software; the Free Software Foundation |
25632 | gives unlimited permission to copy, distribute and modify it." | |
4e8d927d DJ |
25633 | |
25634 | ac_pwd='$ac_pwd' | |
25635 | srcdir='$srcdir' | |
25636 | INSTALL='$INSTALL' | |
bec39cab AC |
25637 | _ACEOF |
25638 | ||
25639 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25640 | # If no file are specified by the user, then we need to provide default | |
25641 | # value. By we need to know if files were specified by the user. | |
25642 | ac_need_defaults=: | |
25643 | while test $# != 0 | |
25644 | do | |
25645 | case $1 in | |
25646 | --*=*) | |
4e8d927d DJ |
25647 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
25648 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
bec39cab | 25649 | ac_shift=: |
c906108c | 25650 | ;; |
4e8d927d | 25651 | *) |
bec39cab AC |
25652 | ac_option=$1 |
25653 | ac_optarg=$2 | |
25654 | ac_shift=shift | |
c906108c | 25655 | ;; |
bec39cab | 25656 | esac |
c906108c | 25657 | |
bec39cab AC |
25658 | case $ac_option in |
25659 | # Handling of the options. | |
bec39cab AC |
25660 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25661 | ac_cs_recheck=: ;; | |
4e8d927d DJ |
25662 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
25663 | echo "$ac_cs_version"; exit ;; | |
25664 | --debug | --debu | --deb | --de | --d | -d ) | |
bec39cab AC |
25665 | debug=: ;; |
25666 | --file | --fil | --fi | --f ) | |
25667 | $ac_shift | |
25668 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
25669 | ac_need_defaults=false;; | |
25670 | --header | --heade | --head | --hea ) | |
25671 | $ac_shift | |
25672 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
25673 | ac_need_defaults=false;; | |
4e8d927d DJ |
25674 | --he | --h) |
25675 | # Conflict between --help and --header | |
25676 | { echo "$as_me: error: ambiguous option: $1 | |
25677 | Try \`$0 --help' for more information." >&2 | |
25678 | { (exit 1); exit 1; }; };; | |
25679 | --help | --hel | -h ) | |
25680 | echo "$ac_cs_usage"; exit ;; | |
bec39cab AC |
25681 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
25682 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
25683 | ac_cs_silent=: ;; | |
c906108c | 25684 | |
bec39cab | 25685 | # This is an error. |
4e8d927d DJ |
25686 | -*) { echo "$as_me: error: unrecognized option: $1 |
25687 | Try \`$0 --help' for more information." >&2 | |
bec39cab | 25688 | { (exit 1); exit 1; }; } ;; |
c906108c | 25689 | |
4e8d927d DJ |
25690 | *) ac_config_targets="$ac_config_targets $1" |
25691 | ac_need_defaults=false ;; | |
c906108c | 25692 | |
bec39cab AC |
25693 | esac |
25694 | shift | |
25695 | done | |
c906108c | 25696 | |
bec39cab | 25697 | ac_configure_extra_args= |
c906108c | 25698 | |
bec39cab AC |
25699 | if $ac_cs_silent; then |
25700 | exec 6>/dev/null | |
25701 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
25702 | fi | |
c906108c | 25703 | |
bec39cab AC |
25704 | _ACEOF |
25705 | cat >>$CONFIG_STATUS <<_ACEOF | |
25706 | if \$ac_cs_recheck; then | |
4e8d927d DJ |
25707 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
25708 | CONFIG_SHELL=$SHELL | |
25709 | export CONFIG_SHELL | |
25710 | exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
25711 | fi |
25712 | ||
25713 | _ACEOF | |
4e8d927d DJ |
25714 | cat >>$CONFIG_STATUS <<\_ACEOF |
25715 | exec 5>>config.log | |
25716 | { | |
25717 | echo | |
25718 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
25719 | ## Running $as_me. ## | |
25720 | _ASBOX | |
25721 | echo "$ac_log" | |
25722 | } >&5 | |
bec39cab | 25723 | |
4e8d927d | 25724 | _ACEOF |
bec39cab | 25725 | cat >>$CONFIG_STATUS <<_ACEOF |
c906108c | 25726 | # |
4e8d927d | 25727 | # INIT-COMMANDS |
c906108c | 25728 | # |
c906108c | 25729 | |
4e8d927d DJ |
25730 | GCC="$GCC" |
25731 | CC="$CC" | |
25732 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
25733 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
25734 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
25735 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
25736 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
25737 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
25738 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
25739 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
25740 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
25741 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
25742 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
25743 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
25744 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
25745 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
25746 | ||
bec39cab AC |
25747 | |
25748 | gdb_host_cpu=$gdb_host_cpu | |
25749 | gdb_target_cpu=$gdb_target_cpu | |
25750 | nativefile=$nativefile | |
25751 | ||
25752 | ||
25753 | _ACEOF | |
25754 | ||
bec39cab | 25755 | cat >>$CONFIG_STATUS <<\_ACEOF |
4e8d927d DJ |
25756 | |
25757 | # Handling of arguments. | |
bec39cab | 25758 | for ac_config_target in $ac_config_targets |
c906108c | 25759 | do |
4e8d927d DJ |
25760 | case $ac_config_target in |
25761 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
25762 | "gdb_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
25763 | "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
25764 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
25765 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
25766 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
25767 | ||
bec39cab AC |
25768 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
25769 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
25770 | { (exit 1); exit 1; }; };; | |
c906108c SS |
25771 | esac |
25772 | done | |
25773 | ||
4e8d927d | 25774 | |
bec39cab AC |
25775 | # If the user did not use the arguments to specify the items to instantiate, |
25776 | # then the envvar interface is used. Set only those that are not. | |
25777 | # We use the long form for the default assignment because of an extremely | |
25778 | # bizarre bug on SunOS 4.1.3. | |
25779 | if $ac_need_defaults; then | |
25780 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
25781 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
25782 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
25783 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
25784 | fi | |
25785 | ||
25786 | # Have a temporary directory for convenience. Make it in the build tree | |
4e8d927d | 25787 | # simply because there is no reason against having it here, and in addition, |
bec39cab | 25788 | # creating and moving files from /tmp can sometimes cause problems. |
4e8d927d DJ |
25789 | # Hook for its removal unless debugging. |
25790 | # Note that there is a small window in which the directory will not be cleaned: | |
25791 | # after its creation but before its name has been assigned to `$tmp'. | |
bec39cab AC |
25792 | $debug || |
25793 | { | |
4e8d927d DJ |
25794 | tmp= |
25795 | trap 'exit_status=$? | |
25796 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
25797 | ' 0 | |
bec39cab AC |
25798 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
25799 | } | |
bec39cab | 25800 | # Create a (secure) tmp directory for tmp files. |
c906108c | 25801 | |
bec39cab | 25802 | { |
4e8d927d | 25803 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bec39cab AC |
25804 | test -n "$tmp" && test -d "$tmp" |
25805 | } || | |
25806 | { | |
4e8d927d DJ |
25807 | tmp=./conf$$-$RANDOM |
25808 | (umask 077 && mkdir "$tmp") | |
bec39cab AC |
25809 | } || |
25810 | { | |
25811 | echo "$me: cannot create a temporary directory in ." >&2 | |
25812 | { (exit 1); exit 1; } | |
25813 | } | |
25814 | ||
bec39cab | 25815 | # |
4e8d927d | 25816 | # Set up the sed scripts for CONFIG_FILES section. |
bec39cab AC |
25817 | # |
25818 | ||
25819 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25820 | # This happens for instance when ./config.status config.h | |
4e8d927d DJ |
25821 | if test -n "$CONFIG_FILES"; then |
25822 | ||
25823 | _ACEOF | |
25824 | ||
25825 | # Create sed commands to just substitute file output variables. | |
25826 | ||
25827 | # Remaining file output variables are in a fragment that also has non-file | |
25828 | # output varibles. | |
25829 | ||
25830 | ||
25831 | ||
25832 | ac_delim='%!_!# ' | |
25833 | for ac_last_try in false false false false false :; do | |
25834 | cat >conf$$subs.sed <<_ACEOF | |
25835 | SHELL!$SHELL$ac_delim | |
25836 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
25837 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
25838 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
25839 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
25840 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
25841 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
25842 | exec_prefix!$exec_prefix$ac_delim | |
25843 | prefix!$prefix$ac_delim | |
25844 | program_transform_name!$program_transform_name$ac_delim | |
25845 | bindir!$bindir$ac_delim | |
25846 | sbindir!$sbindir$ac_delim | |
25847 | libexecdir!$libexecdir$ac_delim | |
25848 | datarootdir!$datarootdir$ac_delim | |
25849 | datadir!$datadir$ac_delim | |
25850 | sysconfdir!$sysconfdir$ac_delim | |
25851 | sharedstatedir!$sharedstatedir$ac_delim | |
25852 | localstatedir!$localstatedir$ac_delim | |
25853 | includedir!$includedir$ac_delim | |
25854 | oldincludedir!$oldincludedir$ac_delim | |
25855 | docdir!$docdir$ac_delim | |
25856 | infodir!$infodir$ac_delim | |
25857 | htmldir!$htmldir$ac_delim | |
25858 | dvidir!$dvidir$ac_delim | |
25859 | pdfdir!$pdfdir$ac_delim | |
25860 | psdir!$psdir$ac_delim | |
25861 | libdir!$libdir$ac_delim | |
25862 | localedir!$localedir$ac_delim | |
25863 | mandir!$mandir$ac_delim | |
25864 | DEFS!$DEFS$ac_delim | |
25865 | ECHO_C!$ECHO_C$ac_delim | |
25866 | ECHO_N!$ECHO_N$ac_delim | |
25867 | ECHO_T!$ECHO_T$ac_delim | |
25868 | LIBS!$LIBS$ac_delim | |
25869 | build_alias!$build_alias$ac_delim | |
25870 | host_alias!$host_alias$ac_delim | |
25871 | target_alias!$target_alias$ac_delim | |
25872 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
25873 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
25874 | MAINT!$MAINT$ac_delim | |
25875 | CC!$CC$ac_delim | |
25876 | CFLAGS!$CFLAGS$ac_delim | |
25877 | LDFLAGS!$LDFLAGS$ac_delim | |
25878 | CPPFLAGS!$CPPFLAGS$ac_delim | |
25879 | ac_ct_CC!$ac_ct_CC$ac_delim | |
25880 | EXEEXT!$EXEEXT$ac_delim | |
25881 | OBJEXT!$OBJEXT$ac_delim | |
25882 | CPP!$CPP$ac_delim | |
25883 | GREP!$GREP$ac_delim | |
25884 | EGREP!$EGREP$ac_delim | |
25885 | build!$build$ac_delim | |
25886 | build_cpu!$build_cpu$ac_delim | |
25887 | build_vendor!$build_vendor$ac_delim | |
25888 | build_os!$build_os$ac_delim | |
25889 | host!$host$ac_delim | |
25890 | host_cpu!$host_cpu$ac_delim | |
25891 | host_vendor!$host_vendor$ac_delim | |
25892 | host_os!$host_os$ac_delim | |
25893 | target!$target$ac_delim | |
25894 | target_cpu!$target_cpu$ac_delim | |
25895 | target_vendor!$target_vendor$ac_delim | |
25896 | target_os!$target_os$ac_delim | |
25897 | SET_MAKE!$SET_MAKE$ac_delim | |
25898 | RANLIB!$RANLIB$ac_delim | |
25899 | ALLOCA!$ALLOCA$ac_delim | |
25900 | USE_NLS!$USE_NLS$ac_delim | |
25901 | MSGFMT!$MSGFMT$ac_delim | |
25902 | GMSGFMT!$GMSGFMT$ac_delim | |
25903 | XGETTEXT!$XGETTEXT$ac_delim | |
25904 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim | |
25905 | CATALOGS!$CATALOGS$ac_delim | |
25906 | CATOBJEXT!$CATOBJEXT$ac_delim | |
25907 | DATADIRNAME!$DATADIRNAME$ac_delim | |
25908 | GMOFILES!$GMOFILES$ac_delim | |
25909 | INSTOBJEXT!$INSTOBJEXT$ac_delim | |
25910 | INTLDEPS!$INTLDEPS$ac_delim | |
25911 | INTLLIBS!$INTLLIBS$ac_delim | |
25912 | INTLOBJS!$INTLOBJS$ac_delim | |
25913 | POFILES!$POFILES$ac_delim | |
25914 | POSUB!$POSUB$ac_delim | |
25915 | INCLUDE_LOCALE_H!$INCLUDE_LOCALE_H$ac_delim | |
25916 | GT_NO!$GT_NO$ac_delim | |
25917 | GT_YES!$GT_YES$ac_delim | |
25918 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim | |
25919 | l!$l$ac_delim | |
25920 | PACKAGE!$PACKAGE$ac_delim | |
25921 | subdirs!$subdirs$ac_delim | |
25922 | AWK!$AWK$ac_delim | |
25923 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
25924 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
25925 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
25926 | _ACEOF | |
25927 | ||
25928 | if test `grep -c "$ac_delim\$" conf$$subs.sed` = 91; then | |
25929 | break | |
25930 | elif $ac_last_try; then | |
25931 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
25932 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
25933 | { (exit 1); exit 1; }; } | |
25934 | else | |
25935 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c906108c | 25936 | fi |
4e8d927d DJ |
25937 | done |
25938 | ||
25939 | ac_eof= | |
25940 | if grep '^CEOF$' conf$$subs.sed >/dev/null; then | |
25941 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` | |
25942 | ac_eof=`expr 0$ac_eof + 1` | |
25943 | fi | |
25944 | ||
25945 | cat >>$CONFIG_STATUS <<_ACEOF | |
25946 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
25947 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25948 | /^[ ]*@host_makefile_frag@[ ]*$/{ | |
25949 | r $host_makefile_frag | |
25950 | d | |
25951 | } | |
25952 | /^[ ]*@target_makefile_frag@[ ]*$/{ | |
25953 | r $target_makefile_frag | |
25954 | d | |
25955 | } | |
25956 | _ACEOF | |
25957 | sed ' | |
25958 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
25959 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
25960 | :n | |
25961 | t n | |
25962 | s/'"$ac_delim"'$/,g/; t | |
25963 | s/$/\\/; p | |
25964 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
25965 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
25966 | rm -f conf$$subs.sed | |
25967 | cat >>$CONFIG_STATUS <<_ACEOF | |
25968 | CEOF$ac_eof | |
25969 | _ACEOF | |
25970 | ||
25971 | ||
25972 | ac_delim='%!_!# ' | |
25973 | for ac_last_try in false false false false false :; do | |
25974 | cat >conf$$subs.sed <<_ACEOF | |
25975 | LN_S!$LN_S$ac_delim | |
25976 | YACC!$YACC$ac_delim | |
25977 | YFLAGS!$YFLAGS$ac_delim | |
25978 | AR!$AR$ac_delim | |
25979 | DLLTOOL!$DLLTOOL$ac_delim | |
25980 | WINDRES!$WINDRES$ac_delim | |
25981 | MIG!$MIG$ac_delim | |
25982 | CONFIG_LDFLAGS!$CONFIG_LDFLAGS$ac_delim | |
25983 | TARGET_SYSTEM_ROOT!$TARGET_SYSTEM_ROOT$ac_delim | |
25984 | TARGET_SYSTEM_ROOT_DEFINE!$TARGET_SYSTEM_ROOT_DEFINE$ac_delim | |
25985 | WARN_CFLAGS!$WARN_CFLAGS$ac_delim | |
25986 | WERROR_CFLAGS!$WERROR_CFLAGS$ac_delim | |
25987 | SER_HARDWIRE!$SER_HARDWIRE$ac_delim | |
25988 | WIN32LIBS!$WIN32LIBS$ac_delim | |
25989 | LIBGUI!$LIBGUI$ac_delim | |
25990 | GUI_CFLAGS_X!$GUI_CFLAGS_X$ac_delim | |
25991 | WIN32LDAPP!$WIN32LDAPP$ac_delim | |
25992 | TCL_VERSION!$TCL_VERSION$ac_delim | |
25993 | TCL_MAJOR_VERSION!$TCL_MAJOR_VERSION$ac_delim | |
25994 | TCL_MINOR_VERSION!$TCL_MINOR_VERSION$ac_delim | |
25995 | TCL_CC!$TCL_CC$ac_delim | |
25996 | TCL_DEFS!$TCL_DEFS$ac_delim | |
25997 | TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim | |
25998 | TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim | |
25999 | TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim | |
26000 | TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim | |
26001 | TCL_DL_LIBS!$TCL_DL_LIBS$ac_delim | |
26002 | TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim | |
26003 | TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim | |
26004 | TCL_CC_SEARCH_FLAGS!$TCL_CC_SEARCH_FLAGS$ac_delim | |
26005 | TCL_COMPAT_OBJS!$TCL_COMPAT_OBJS$ac_delim | |
26006 | TCL_RANLIB!$TCL_RANLIB$ac_delim | |
26007 | TCL_BUILD_LIB_SPEC!$TCL_BUILD_LIB_SPEC$ac_delim | |
26008 | TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim | |
26009 | TCL_LIB_VERSIONS_OK!$TCL_LIB_VERSIONS_OK$ac_delim | |
26010 | TK_VERSION!$TK_VERSION$ac_delim | |
26011 | TK_DEFS!$TK_DEFS$ac_delim | |
26012 | TK_BUILD_INCLUDES!$TK_BUILD_INCLUDES$ac_delim | |
26013 | TK_XINCLUDES!$TK_XINCLUDES$ac_delim | |
26014 | TK_XLIBSW!$TK_XLIBSW$ac_delim | |
26015 | TK_BUILD_LIB_SPEC!$TK_BUILD_LIB_SPEC$ac_delim | |
26016 | TK_LIB_SPEC!$TK_LIB_SPEC$ac_delim | |
26017 | TCLHDIR!$TCLHDIR$ac_delim | |
26018 | TKHDIR!$TKHDIR$ac_delim | |
26019 | ITCLHDIR!$ITCLHDIR$ac_delim | |
26020 | ITKHDIR!$ITKHDIR$ac_delim | |
26021 | ITCL_VERSION!$ITCL_VERSION$ac_delim | |
26022 | ITCL_DEFS!$ITCL_DEFS$ac_delim | |
26023 | ITCL_BUILD_INCLUDES!$ITCL_BUILD_INCLUDES$ac_delim | |
26024 | ITCL_BUILD_LIB_SPEC!$ITCL_BUILD_LIB_SPEC$ac_delim | |
26025 | ITCL_LIB_SPEC!$ITCL_LIB_SPEC$ac_delim | |
26026 | ITK_VERSION!$ITK_VERSION$ac_delim | |
26027 | ITK_DEFS!$ITK_DEFS$ac_delim | |
26028 | ITK_BUILD_INCLUDES!$ITK_BUILD_INCLUDES$ac_delim | |
26029 | ITK_BUILD_LIB_SPEC!$ITK_BUILD_LIB_SPEC$ac_delim | |
26030 | ITK_LIB_SPEC!$ITK_LIB_SPEC$ac_delim | |
26031 | X_CFLAGS!$X_CFLAGS$ac_delim | |
26032 | X_LDFLAGS!$X_LDFLAGS$ac_delim | |
26033 | X_LIBS!$X_LIBS$ac_delim | |
26034 | TCL_DEPS!$TCL_DEPS$ac_delim | |
26035 | TK_DEPS!$TK_DEPS$ac_delim | |
26036 | ITCLLIB!$ITCLLIB$ac_delim | |
26037 | ITCL_DEPS!$ITCL_DEPS$ac_delim | |
26038 | ITKLIB!$ITKLIB$ac_delim | |
26039 | ITK_DEPS!$ITK_DEPS$ac_delim | |
26040 | GDBTKLIBS!$GDBTKLIBS$ac_delim | |
26041 | GDBTK_CFLAGS!$GDBTK_CFLAGS$ac_delim | |
26042 | GDBTK_SRC_DIR!$GDBTK_SRC_DIR$ac_delim | |
26043 | XMKMF!$XMKMF$ac_delim | |
26044 | IGNORE_SIM!$IGNORE_SIM$ac_delim | |
26045 | IGNORE_SIM_OBS!$IGNORE_SIM_OBS$ac_delim | |
26046 | ENABLE_CFLAGS!$ENABLE_CFLAGS$ac_delim | |
26047 | PROFILE_CFLAGS!$PROFILE_CFLAGS$ac_delim | |
26048 | CONFIG_OBS!$CONFIG_OBS$ac_delim | |
26049 | CONFIG_DEPS!$CONFIG_DEPS$ac_delim | |
26050 | CONFIG_SRCS!$CONFIG_SRCS$ac_delim | |
26051 | CONFIG_ALL!$CONFIG_ALL$ac_delim | |
26052 | CONFIG_CLEAN!$CONFIG_CLEAN$ac_delim | |
26053 | CONFIG_INSTALL!$CONFIG_INSTALL$ac_delim | |
26054 | CONFIG_UNINSTALL!$CONFIG_UNINSTALL$ac_delim | |
26055 | target_subdir!$target_subdir$ac_delim | |
26056 | frags!$frags$ac_delim | |
26057 | xm_h!$xm_h$ac_delim | |
26058 | tm_h!$tm_h$ac_delim | |
26059 | nm_h!$nm_h$ac_delim | |
26060 | LIBICONV!$LIBICONV$ac_delim | |
26061 | LIBOBJS!$LIBOBJS$ac_delim | |
26062 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
26063 | _ACEOF | |
26064 | ||
26065 | if test `grep -c "$ac_delim\$" conf$$subs.sed` = 88; then | |
26066 | break | |
26067 | elif $ac_last_try; then | |
26068 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
26069 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
26070 | { (exit 1); exit 1; }; } | |
26071 | else | |
26072 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
26073 | fi | |
26074 | done | |
26075 | ||
26076 | ac_eof= | |
26077 | if grep '^CEOF$' conf$$subs.sed >/dev/null; then | |
26078 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` | |
26079 | ac_eof=`expr 0$ac_eof + 1` | |
26080 | fi | |
c906108c | 26081 | |
4e8d927d DJ |
26082 | cat >>$CONFIG_STATUS <<_ACEOF |
26083 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
26084 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
26085 | _ACEOF | |
26086 | sed ' | |
26087 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
26088 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
26089 | :n | |
26090 | t n | |
26091 | s/'"$ac_delim"'$/,g/; t | |
26092 | s/$/\\/; p | |
26093 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
26094 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
26095 | rm -f conf$$subs.sed | |
26096 | cat >>$CONFIG_STATUS <<_ACEOF | |
26097 | :end | |
26098 | s/|#_!!_#|//g | |
26099 | CEOF$ac_eof | |
bec39cab | 26100 | _ACEOF |
4e8d927d DJ |
26101 | |
26102 | ||
26103 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
26104 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
26105 | # trailing colons and then remove the whole line if VPATH becomes empty | |
26106 | # (actually we leave an empty line to preserve line numbers). | |
26107 | if test "x$srcdir" = x.; then | |
26108 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
26109 | s/:*\$(srcdir):*/:/ | |
26110 | s/:*\${srcdir}:*/:/ | |
26111 | s/:*@srcdir@:*/:/ | |
26112 | s/^\([^=]*=[ ]*\):*/\1/ | |
26113 | s/:*$// | |
26114 | s/^[^=]*=[ ]*$// | |
26115 | }' | |
26116 | fi | |
26117 | ||
bec39cab | 26118 | cat >>$CONFIG_STATUS <<\_ACEOF |
4e8d927d DJ |
26119 | fi # test -n "$CONFIG_FILES" |
26120 | ||
26121 | ||
26122 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS | |
26123 | do | |
26124 | case $ac_tag in | |
26125 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
26126 | esac | |
26127 | case $ac_mode$ac_tag in | |
26128 | :[FHL]*:*);; | |
26129 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
26130 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
26131 | { (exit 1); exit 1; }; };; | |
26132 | :[FH]-) ac_tag=-:-;; | |
26133 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
26134 | esac | |
26135 | ac_save_IFS=$IFS | |
26136 | IFS=: | |
26137 | set x $ac_tag | |
26138 | IFS=$ac_save_IFS | |
26139 | shift | |
26140 | ac_file=$1 | |
26141 | shift | |
26142 | ||
26143 | case $ac_mode in | |
26144 | :L) ac_source=$1;; | |
26145 | :[FH]) | |
26146 | ac_file_inputs= | |
26147 | for ac_f | |
26148 | do | |
26149 | case $ac_f in | |
26150 | -) ac_f="$tmp/stdin";; | |
26151 | *) # Look for the file first in the build tree, then in the source tree | |
26152 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
26153 | # because $ac_f cannot contain `:'. | |
26154 | test -f "$ac_f" || | |
26155 | case $ac_f in | |
26156 | [\\/$]*) false;; | |
26157 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
26158 | esac || | |
26159 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
26160 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
26161 | { (exit 1); exit 1; }; };; | |
26162 | esac | |
26163 | ac_file_inputs="$ac_file_inputs $ac_f" | |
26164 | done | |
26165 | ||
26166 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
26167 | # use $as_me), people would be surprised to read: | |
26168 | # /* config.h. Generated by config.status. */ | |
26169 | configure_input="Generated from "`IFS=: | |
26170 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
26171 | if test x"$ac_file" != x-; then | |
26172 | configure_input="$ac_file. $configure_input" | |
26173 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
26174 | echo "$as_me: creating $ac_file" >&6;} | |
26175 | fi | |
26176 | ||
26177 | case $ac_tag in | |
26178 | *:-:* | *:-) cat >"$tmp/stdin";; | |
26179 | esac | |
26180 | ;; | |
c906108c SS |
26181 | esac |
26182 | ||
4e8d927d | 26183 | ac_dir=`$as_dirname -- "$ac_file" || |
bec39cab AC |
26184 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26185 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
26186 | X"$ac_file" : 'X\(//\)$' \| \ | |
4e8d927d | 26187 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
bec39cab | 26188 | echo X"$ac_file" | |
4e8d927d DJ |
26189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26190 | s//\1/ | |
26191 | q | |
26192 | } | |
26193 | /^X\(\/\/\)[^/].*/{ | |
26194 | s//\1/ | |
26195 | q | |
26196 | } | |
26197 | /^X\(\/\/\)$/{ | |
26198 | s//\1/ | |
26199 | q | |
26200 | } | |
26201 | /^X\(\/\).*/{ | |
26202 | s//\1/ | |
26203 | q | |
26204 | } | |
26205 | s/.*/./; q'` | |
26206 | { as_dir="$ac_dir" | |
26207 | case $as_dir in #( | |
26208 | -*) as_dir=./$as_dir;; | |
26209 | esac | |
26210 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
bec39cab | 26211 | as_dirs= |
4e8d927d DJ |
26212 | while :; do |
26213 | case $as_dir in #( | |
26214 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
26215 | *) as_qdir=$as_dir;; | |
26216 | esac | |
26217 | as_dirs="'$as_qdir' $as_dirs" | |
26218 | as_dir=`$as_dirname -- "$as_dir" || | |
bec39cab AC |
26219 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26220 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26221 | X"$as_dir" : 'X\(//\)$' \| \ | |
4e8d927d | 26222 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bec39cab | 26223 | echo X"$as_dir" | |
4e8d927d DJ |
26224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26225 | s//\1/ | |
26226 | q | |
26227 | } | |
26228 | /^X\(\/\/\)[^/].*/{ | |
26229 | s//\1/ | |
26230 | q | |
26231 | } | |
26232 | /^X\(\/\/\)$/{ | |
26233 | s//\1/ | |
26234 | q | |
26235 | } | |
26236 | /^X\(\/\).*/{ | |
26237 | s//\1/ | |
26238 | q | |
26239 | } | |
26240 | s/.*/./; q'` | |
26241 | test -d "$as_dir" && break | |
bec39cab | 26242 | done |
4e8d927d DJ |
26243 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
26244 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
26245 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
bec39cab | 26246 | { (exit 1); exit 1; }; }; } |
bec39cab AC |
26247 | ac_builddir=. |
26248 | ||
4e8d927d DJ |
26249 | case "$ac_dir" in |
26250 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26251 | *) | |
bec39cab | 26252 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
4e8d927d DJ |
26253 | # A ".." for each directory in $ac_dir_suffix. |
26254 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
26255 | case $ac_top_builddir_sub in | |
26256 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26257 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
26258 | esac ;; | |
26259 | esac | |
26260 | ac_abs_top_builddir=$ac_pwd | |
26261 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
26262 | # for backward compatibility: | |
26263 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
26264 | |
26265 | case $srcdir in | |
4e8d927d | 26266 | .) # We are building in place. |
bec39cab | 26267 | ac_srcdir=. |
4e8d927d DJ |
26268 | ac_top_srcdir=$ac_top_builddir_sub |
26269 | ac_abs_top_srcdir=$ac_pwd ;; | |
26270 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 26271 | ac_srcdir=$srcdir$ac_dir_suffix; |
4e8d927d DJ |
26272 | ac_top_srcdir=$srcdir |
26273 | ac_abs_top_srcdir=$srcdir ;; | |
26274 | *) # Relative name. | |
26275 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
26276 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
26277 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 26278 | esac |
4e8d927d | 26279 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bec39cab | 26280 | |
c906108c | 26281 | |
4e8d927d DJ |
26282 | case $ac_mode in |
26283 | :F) | |
26284 | # | |
26285 | # CONFIG_FILE | |
26286 | # | |
c906108c | 26287 | |
bec39cab AC |
26288 | case $INSTALL in |
26289 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4e8d927d | 26290 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 26291 | esac |
4e8d927d | 26292 | _ACEOF |
c906108c | 26293 | |
4e8d927d DJ |
26294 | cat >>$CONFIG_STATUS <<\_ACEOF |
26295 | # If the template does not know about datarootdir, expand it. | |
26296 | # FIXME: This hack should be removed a few years after 2.60. | |
26297 | ac_datarootdir_hack= | |
121ce6e5 | 26298 | |
4e8d927d DJ |
26299 | case `sed -n '/datarootdir/ { |
26300 | p | |
26301 | q | |
26302 | } | |
26303 | /@datadir@/p | |
26304 | /@docdir@/p | |
26305 | /@infodir@/p | |
26306 | /@localedir@/p | |
26307 | /@mandir@/p | |
26308 | ' $ac_file_inputs` in | |
26309 | *datarootdir*) ;; | |
26310 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
26311 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
26312 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
bec39cab | 26313 | _ACEOF |
4e8d927d DJ |
26314 | cat >>$CONFIG_STATUS <<_ACEOF |
26315 | ac_datarootdir_hack=' | |
26316 | s&@datadir@&$datadir&g | |
26317 | s&@docdir@&$docdir&g | |
26318 | s&@infodir@&$infodir&g | |
26319 | s&@localedir@&$localedir&g | |
26320 | s&@mandir@&$mandir&g | |
26321 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
26322 | esac | |
26323 | _ACEOF | |
26324 | ||
26325 | # Neutralize VPATH when `$srcdir' = `.'. | |
26326 | # Shell code in configure.ac might set extrasub. | |
26327 | # FIXME: do we really want to maintain this feature? | |
bec39cab AC |
26328 | cat >>$CONFIG_STATUS <<_ACEOF |
26329 | sed "$ac_vpsub | |
26330 | $extrasub | |
26331 | _ACEOF | |
26332 | cat >>$CONFIG_STATUS <<\_ACEOF | |
26333 | :t | |
26334 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4e8d927d DJ |
26335 | s&@configure_input@&$configure_input&;t t |
26336 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
26337 | s&@srcdir@&$ac_srcdir&;t t | |
26338 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
26339 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
26340 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
26341 | s&@builddir@&$ac_builddir&;t t | |
26342 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
26343 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
26344 | s&@INSTALL@&$ac_INSTALL&;t t | |
26345 | $ac_datarootdir_hack | |
26346 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
26347 | ||
26348 | rm -f "$tmp/stdin" | |
bec39cab | 26349 | case $ac_file in |
4e8d927d DJ |
26350 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
26351 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
c906108c | 26352 | esac |
4e8d927d DJ |
26353 | ;; |
26354 | :H) | |
26355 | # | |
26356 | # CONFIG_HEADER | |
26357 | # | |
26358 | ||
26359 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
26360 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
26361 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
26362 | # just an empty string. | |
26363 | # | |
26364 | ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*' | |
26365 | ac_dB='\)[ (].*$,\1define\2' | |
26366 | ac_dC=' ' | |
26367 | ac_dD=' ,' | |
26368 | ||
26369 | ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]* | |
26370 | _ACEOF | |
26371 | ||
26372 | # Transform confdefs.h into a sed script `conftest.defines', that | |
26373 | # substitutes the proper values into config.h.in to produce config.h. | |
26374 | rm -f conftest.defines conftest.tail | |
26375 | # First, append a space to every undef/define line, to ease matching. | |
26376 | echo 's/$/ /' >conftest.defines | |
26377 | # Then, protect against being on the right side of a sed subst, or in | |
26378 | # an unquoted here document, in config.status. If some macros were | |
26379 | # called several times there might be several #defines for the same | |
26380 | # symbol, which is useless. But do not sort them, since the last | |
26381 | # AC_DEFINE must be honored. | |
26382 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
26383 | uniq confdefs.h | | |
26384 | sed -n ' | |
26385 | t rset | |
26386 | :rset | |
26387 | s/^[ ]*#[ ]*define[ ][ ]*// | |
26388 | t ok | |
26389 | d | |
26390 | :ok | |
26391 | s/[\\&,]/\\&/g | |
26392 | s/[\\$`]/\\&/g | |
26393 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p | |
26394 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p | |
26395 | ' >>conftest.defines | |
26396 | ||
26397 | # Remove the space that was appended to ease matching. | |
26398 | # Then replace #undef with comments. This is necessary, for | |
c906108c SS |
26399 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
26400 | # on some systems where configure will not decide to define it. | |
4e8d927d DJ |
26401 | # (The regexp can be short, since the line contains either #define or #undef.) |
26402 | echo 's/ $// | |
26403 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
26404 | ||
26405 | # Break up conftest.defines: | |
26406 | ac_max_sed_lines=96 | |
26407 | ||
26408 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
26409 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
26410 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
26411 | # et cetera. | |
26412 | ac_in='$ac_file_inputs' | |
26413 | ac_out='"$tmp/out1"' | |
26414 | ac_nxt='"$tmp/out2"' | |
26415 | ||
26416 | while : | |
bec39cab | 26417 | do |
4e8d927d DJ |
26418 | # Write a here document: |
26419 | echo ' # First, check the format of the line: | |
26420 | cat >"$tmp/defines.sed" <<CEOF | |
26421 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def | |
26422 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def | |
26423 | b | |
26424 | :def' >>$CONFIG_STATUS | |
26425 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 26426 | echo 'CEOF |
4e8d927d DJ |
26427 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
26428 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
26429 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
26430 | grep . conftest.tail >/dev/null || break | |
bec39cab AC |
26431 | rm -f conftest.defines |
26432 | mv conftest.tail conftest.defines | |
26433 | done | |
4e8d927d | 26434 | rm -f conftest.defines conftest.tail |
bec39cab | 26435 | |
4e8d927d | 26436 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
bec39cab | 26437 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab | 26438 | if test x"$ac_file" != x-; then |
4e8d927d DJ |
26439 | echo "/* $configure_input */" >"$tmp/config.h" |
26440 | cat "$ac_result" >>"$tmp/config.h" | |
26441 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
bec39cab AC |
26442 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
26443 | echo "$as_me: $ac_file is unchanged" >&6;} | |
26444 | else | |
bec39cab | 26445 | rm -f $ac_file |
4e8d927d | 26446 | mv "$tmp/config.h" $ac_file |
bec39cab AC |
26447 | fi |
26448 | else | |
4e8d927d DJ |
26449 | echo "/* $configure_input */" |
26450 | cat "$ac_result" | |
bec39cab | 26451 | fi |
4e8d927d DJ |
26452 | rm -f "$tmp/out12" |
26453 | ;; | |
26454 | :L) | |
26455 | # | |
26456 | # CONFIG_LINK | |
26457 | # | |
c906108c | 26458 | |
4e8d927d DJ |
26459 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5 |
26460 | echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;} | |
c906108c SS |
26461 | |
26462 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
26463 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
26464 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
26465 | { (exit 1); exit 1; }; } | |
c906108c | 26466 | fi |
4e8d927d | 26467 | rm -f $ac_file |
bec39cab | 26468 | |
4e8d927d | 26469 | # Try a relative symlink, then a hard link, then a copy. |
bec39cab AC |
26470 | case $srcdir in |
26471 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
4e8d927d | 26472 | *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;; |
c906108c | 26473 | esac |
4e8d927d DJ |
26474 | ln -s $ac_rel_source $ac_file 2>/dev/null || |
26475 | ln $srcdir/$ac_source $ac_file 2>/dev/null || | |
26476 | cp -p $srcdir/$ac_source $ac_file || | |
26477 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5 | |
26478 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;} | |
bec39cab | 26479 | { (exit 1); exit 1; }; } |
4e8d927d DJ |
26480 | ;; |
26481 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
26482 | echo "$as_me: executing $ac_file commands" >&6;} | |
26483 | ;; | |
26484 | esac | |
bec39cab | 26485 | |
bec39cab | 26486 | |
4e8d927d DJ |
26487 | case $ac_file$ac_mode in |
26488 | "gdb_stdint.h":C) | |
26489 | if test "$GCC" = yes; then | |
26490 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
26491 | else | |
26492 | echo "/* generated for $CC */" > tmp-stdint.h | |
26493 | fi | |
26494 | ||
26495 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26496 | ||
26497 | #ifndef GCC_GENERATED_STDINT_H | |
26498 | #define GCC_GENERATED_STDINT_H 1 | |
26499 | ||
26500 | #include <sys/types.h> | |
26501 | EOF | |
26502 | ||
26503 | if test "$acx_cv_header_stdint" != stdint.h; then | |
26504 | echo "#include <stddef.h>" >> tmp-stdint.h | |
26505 | fi | |
26506 | if test "$acx_cv_header_stdint" != stddef.h; then | |
26507 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
26508 | fi | |
26509 | ||
26510 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26511 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
26512 | #ifdef __int8_t_defined | |
26513 | #define _INT8_T | |
26514 | #define _INT16_T | |
26515 | #define _INT32_T | |
26516 | #endif | |
26517 | #ifdef __uint32_t_defined | |
26518 | #define _UINT32_T | |
26519 | #endif | |
26520 | ||
26521 | EOF | |
26522 | ||
26523 | # ----------------- done header, emit basic int types ------------- | |
26524 | if test "$acx_cv_header_stdint" = stddef.h; then | |
26525 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26526 | ||
26527 | #ifndef _UINT8_T | |
26528 | #define _UINT8_T | |
26529 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
26530 | #endif | |
26531 | ||
26532 | #ifndef _UINT16_T | |
26533 | #define _UINT16_T | |
26534 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
26535 | #endif | |
26536 | ||
26537 | #ifndef _UINT32_T | |
26538 | #define _UINT32_T | |
26539 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
26540 | #endif | |
26541 | ||
26542 | #ifndef _INT8_T | |
26543 | #define _INT8_T | |
26544 | typedef $acx_cv_type_int8_t int8_t; | |
26545 | #endif | |
26546 | ||
26547 | #ifndef _INT16_T | |
26548 | #define _INT16_T | |
26549 | typedef $acx_cv_type_int16_t int16_t; | |
26550 | #endif | |
26551 | ||
26552 | #ifndef _INT32_T | |
26553 | #define _INT32_T | |
26554 | typedef $acx_cv_type_int32_t int32_t; | |
26555 | #endif | |
26556 | EOF | |
26557 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
26558 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26559 | ||
26560 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
26561 | #ifndef _INT8_T | |
26562 | #define _INT8_T | |
26563 | #endif | |
26564 | #ifndef _INT16_T | |
26565 | #define _INT16_T | |
26566 | #endif | |
26567 | #ifndef _INT32_T | |
26568 | #define _INT32_T | |
26569 | #endif | |
26570 | ||
26571 | #ifndef _UINT8_T | |
26572 | #define _UINT8_T | |
26573 | typedef u_int8_t uint8_t; | |
26574 | #endif | |
26575 | ||
26576 | #ifndef _UINT16_T | |
26577 | #define _UINT16_T | |
26578 | typedef u_int16_t uint16_t; | |
26579 | #endif | |
26580 | ||
26581 | #ifndef _UINT32_T | |
26582 | #define _UINT32_T | |
26583 | typedef u_int32_t uint32_t; | |
26584 | #endif | |
26585 | EOF | |
26586 | else | |
26587 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26588 | ||
26589 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
26590 | #ifndef _INT8_T | |
26591 | #define _INT8_T | |
26592 | #endif | |
26593 | #ifndef _INT16_T | |
26594 | #define _INT16_T | |
26595 | #endif | |
26596 | #ifndef _INT32_T | |
26597 | #define _INT32_T | |
26598 | #endif | |
26599 | #ifndef _UINT8_T | |
26600 | #define _UINT8_T | |
26601 | #endif | |
26602 | #ifndef _UINT16_T | |
26603 | #define _UINT16_T | |
26604 | #endif | |
26605 | #ifndef _UINT32_T | |
26606 | #define _UINT32_T | |
26607 | #endif | |
26608 | EOF | |
26609 | fi | |
26610 | ||
26611 | # ------------- done basic int types, emit int64_t types ------------ | |
26612 | if test "$ac_cv_type_uint64_t" = yes; then | |
26613 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26614 | ||
26615 | /* system headers have good uint64_t and int64_t */ | |
26616 | #ifndef _INT64_T | |
26617 | #define _INT64_T | |
26618 | #endif | |
26619 | #ifndef _UINT64_T | |
26620 | #define _UINT64_T | |
26621 | #endif | |
26622 | EOF | |
26623 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
26624 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26625 | ||
26626 | /* system headers have an u_int64_t (and int64_t) */ | |
26627 | #ifndef _INT64_T | |
26628 | #define _INT64_T | |
26629 | #endif | |
26630 | #ifndef _UINT64_T | |
26631 | #define _UINT64_T | |
26632 | typedef u_int64_t uint64_t; | |
26633 | #endif | |
26634 | EOF | |
26635 | elif test -n "$acx_cv_type_int64_t"; then | |
26636 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26637 | ||
26638 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
26639 | #ifndef _INT64_T | |
26640 | #define _INT64_T | |
26641 | typedef $acx_cv_type_int64_t int64_t; | |
26642 | #endif | |
26643 | #ifndef _UINT64_T | |
26644 | #define _UINT64_T | |
26645 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
26646 | #endif | |
26647 | EOF | |
26648 | else | |
26649 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26650 | ||
26651 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
26652 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
26653 | #ifndef _INT64_T | |
26654 | #define _INT64_T | |
26655 | typedef long long int64_t; | |
26656 | #endif | |
26657 | #ifndef _UINT64_T | |
26658 | #define _UINT64_T | |
26659 | typedef unsigned long long uint64_t; | |
26660 | #endif | |
26661 | ||
26662 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
26663 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
26664 | does not implement __extension__. But that compiler doesn't define | |
26665 | __GNUC_MINOR__. */ | |
26666 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
26667 | # define __extension__ | |
26668 | # endif | |
26669 | ||
26670 | # ifndef _INT64_T | |
26671 | # define _INT64_T | |
26672 | __extension__ typedef long long int64_t; | |
26673 | # endif | |
26674 | # ifndef _UINT64_T | |
26675 | # define _UINT64_T | |
26676 | __extension__ typedef unsigned long long uint64_t; | |
26677 | # endif | |
26678 | ||
26679 | #elif !defined __STRICT_ANSI__ | |
26680 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
26681 | ||
26682 | # ifndef _INT64_T | |
26683 | # define _INT64_T | |
26684 | typedef __int64 int64_t; | |
26685 | # endif | |
26686 | # ifndef _UINT64_T | |
26687 | # define _UINT64_T | |
26688 | typedef unsigned __int64 uint64_t; | |
26689 | # endif | |
26690 | # endif /* compiler */ | |
26691 | ||
26692 | #endif /* ANSI version */ | |
26693 | EOF | |
26694 | fi | |
26695 | ||
26696 | # ------------- done int64_t types, emit intptr types ------------ | |
26697 | if test "$ac_cv_type_uintptr_t" != yes; then | |
26698 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26699 | ||
26700 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
26701 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
26702 | typedef $acx_cv_type_intptr_t intptr_t; | |
26703 | EOF | |
26704 | fi | |
26705 | ||
26706 | # ------------- done intptr types, emit int_least types ------------ | |
26707 | if test "$ac_cv_type_int_least32_t" != yes; then | |
26708 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26709 | ||
26710 | /* Define int_least types */ | |
26711 | typedef int8_t int_least8_t; | |
26712 | typedef int16_t int_least16_t; | |
26713 | typedef int32_t int_least32_t; | |
26714 | #ifdef _INT64_T | |
26715 | typedef int64_t int_least64_t; | |
26716 | #endif | |
26717 | ||
26718 | typedef uint8_t uint_least8_t; | |
26719 | typedef uint16_t uint_least16_t; | |
26720 | typedef uint32_t uint_least32_t; | |
26721 | #ifdef _UINT64_T | |
26722 | typedef uint64_t uint_least64_t; | |
26723 | #endif | |
26724 | EOF | |
26725 | fi | |
26726 | ||
26727 | # ------------- done intptr types, emit int_fast types ------------ | |
26728 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
26729 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26730 | ||
26731 | /* Define int_fast types. short is often slow */ | |
26732 | typedef int8_t int_fast8_t; | |
26733 | typedef int int_fast16_t; | |
26734 | typedef int32_t int_fast32_t; | |
26735 | #ifdef _INT64_T | |
26736 | typedef int64_t int_fast64_t; | |
26737 | #endif | |
26738 | ||
26739 | typedef uint8_t uint_fast8_t; | |
26740 | typedef unsigned int uint_fast16_t; | |
26741 | typedef uint32_t uint_fast32_t; | |
26742 | #ifdef _UINT64_T | |
26743 | typedef uint64_t uint_fast64_t; | |
26744 | #endif | |
26745 | EOF | |
26746 | fi | |
26747 | ||
26748 | if test "$ac_cv_type_uintmax_t" != yes; then | |
26749 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26750 | ||
26751 | /* Define intmax based on what we found */ | |
26752 | #ifdef _INT64_T | |
26753 | typedef int64_t intmax_t; | |
26754 | #else | |
26755 | typedef long intmax_t; | |
26756 | #endif | |
26757 | #ifdef _UINT64_T | |
26758 | typedef uint64_t uintmax_t; | |
26759 | #else | |
26760 | typedef unsigned long uintmax_t; | |
26761 | #endif | |
26762 | EOF | |
26763 | fi | |
26764 | ||
26765 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26766 | ||
26767 | #endif /* GCC_GENERATED_STDINT_H */ | |
26768 | EOF | |
26769 | ||
26770 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
26771 | rm -f tmp-stdint.h | |
26772 | else | |
26773 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
26774 | fi |
26775 | ||
4e8d927d DJ |
26776 | ;; |
26777 | "default":C) | |
c906108c | 26778 | |
2c0fc042 | 26779 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
26780 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
26781 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
26782 | mv -f Makefile.tmp Makefile | |
26783 | ||
2acceee2 | 26784 | |
c906108c SS |
26785 | case x$CONFIG_HEADERS in |
26786 | xconfig.h:config.in) | |
26787 | echo > stamp-h ;; | |
26788 | esac | |
bec39cab | 26789 | ;; |
4e8d927d | 26790 | |
bec39cab | 26791 | esac |
4e8d927d | 26792 | done # for ac_tag |
c906108c | 26793 | |
bec39cab AC |
26794 | |
26795 | { (exit 0); exit 0; } | |
26796 | _ACEOF | |
c906108c | 26797 | chmod +x $CONFIG_STATUS |
bec39cab AC |
26798 | ac_clean_files=$ac_clean_files_save |
26799 | ||
26800 | ||
26801 | # configure is writing to config.log, and then calls config.status. | |
26802 | # config.status does its own redirection, appending to config.log. | |
26803 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26804 | # by configure, so config.status won't be able to write to it; its | |
26805 | # output is simply discarded. So we exec the FD to /dev/null, | |
26806 | # effectively closing config.log, so it can be properly (re)opened and | |
26807 | # appended to by config.status. When coming back to configure, we | |
26808 | # need to make the FD available again. | |
26809 | if test "$no_create" != yes; then | |
26810 | ac_cs_success=: | |
26811 | ac_config_status_args= | |
26812 | test "$silent" = yes && | |
26813 | ac_config_status_args="$ac_config_status_args --quiet" | |
26814 | exec 5>/dev/null | |
26815 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26816 | exec 5>>config.log | |
26817 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26818 | # would make configure fail if this is the last instruction. | |
26819 | $ac_cs_success || { (exit 1); exit 1; } | |
26820 | fi | |
c906108c | 26821 | |
bec39cab AC |
26822 | # |
26823 | # CONFIG_SUBDIRS section. | |
26824 | # | |
c906108c SS |
26825 | if test "$no_recursion" != yes; then |
26826 | ||
26827 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
26828 | ac_sub_configure_args= | |
26829 | ac_prev= | |
4e8d927d DJ |
26830 | eval set x "$ac_configure_args" |
26831 | shift | |
26832 | for ac_arg | |
26833 | do | |
c906108c SS |
26834 | if test -n "$ac_prev"; then |
26835 | ac_prev= | |
26836 | continue | |
26837 | fi | |
bec39cab | 26838 | case $ac_arg in |
c906108c SS |
26839 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
26840 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
26841 | ac_prev=cache_file ;; | |
26842 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
26843 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
26844 | | --c=*) | |
26845 | ;; | |
26846 | --config-cache | -C) | |
c906108c SS |
26847 | ;; |
26848 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
26849 | ac_prev=srcdir ;; | |
26850 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
26851 | ;; | |
bec39cab AC |
26852 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
26853 | ac_prev=prefix ;; | |
26854 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
26855 | ;; | |
4e8d927d DJ |
26856 | *) |
26857 | case $ac_arg in | |
26858 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
26859 | esac | |
26860 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
c906108c SS |
26861 | esac |
26862 | done | |
26863 | ||
bec39cab AC |
26864 | # Always prepend --prefix to ensure using the same prefix |
26865 | # in subdir configurations. | |
26866 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
26867 | ||
4e8d927d | 26868 | ac_popdir="`pwd`" |
bec39cab | 26869 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
26870 | |
26871 | # Do not complain, so a configure script can configure whichever | |
26872 | # parts of a large source tree are present. | |
bec39cab | 26873 | test -d $srcdir/$ac_dir || continue |
c906108c | 26874 | |
4e8d927d DJ |
26875 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
26876 | echo "$as_me:$LINENO: $ac_msg" >&5 | |
26877 | echo "$ac_msg" >&6 | |
26878 | { as_dir="$ac_dir" | |
26879 | case $as_dir in #( | |
26880 | -*) as_dir=./$as_dir;; | |
26881 | esac | |
26882 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
bec39cab | 26883 | as_dirs= |
4e8d927d DJ |
26884 | while :; do |
26885 | case $as_dir in #( | |
26886 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
26887 | *) as_qdir=$as_dir;; | |
26888 | esac | |
26889 | as_dirs="'$as_qdir' $as_dirs" | |
26890 | as_dir=`$as_dirname -- "$as_dir" || | |
bec39cab AC |
26891 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26892 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26893 | X"$as_dir" : 'X\(//\)$' \| \ | |
4e8d927d | 26894 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
bec39cab | 26895 | echo X"$as_dir" | |
4e8d927d DJ |
26896 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26897 | s//\1/ | |
26898 | q | |
26899 | } | |
26900 | /^X\(\/\/\)[^/].*/{ | |
26901 | s//\1/ | |
26902 | q | |
26903 | } | |
26904 | /^X\(\/\/\)$/{ | |
26905 | s//\1/ | |
26906 | q | |
26907 | } | |
26908 | /^X\(\/\).*/{ | |
26909 | s//\1/ | |
26910 | q | |
26911 | } | |
26912 | s/.*/./; q'` | |
26913 | test -d "$as_dir" && break | |
bec39cab | 26914 | done |
4e8d927d DJ |
26915 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
26916 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
26917 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
bec39cab | 26918 | { (exit 1); exit 1; }; }; } |
bec39cab AC |
26919 | ac_builddir=. |
26920 | ||
4e8d927d DJ |
26921 | case "$ac_dir" in |
26922 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26923 | *) | |
bec39cab | 26924 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
4e8d927d DJ |
26925 | # A ".." for each directory in $ac_dir_suffix. |
26926 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
26927 | case $ac_top_builddir_sub in | |
26928 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
26929 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
26930 | esac ;; | |
26931 | esac | |
26932 | ac_abs_top_builddir=$ac_pwd | |
26933 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
26934 | # for backward compatibility: | |
26935 | ac_top_builddir=$ac_top_build_prefix | |
bec39cab AC |
26936 | |
26937 | case $srcdir in | |
4e8d927d | 26938 | .) # We are building in place. |
bec39cab | 26939 | ac_srcdir=. |
4e8d927d DJ |
26940 | ac_top_srcdir=$ac_top_builddir_sub |
26941 | ac_abs_top_srcdir=$ac_pwd ;; | |
26942 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
bec39cab | 26943 | ac_srcdir=$srcdir$ac_dir_suffix; |
4e8d927d DJ |
26944 | ac_top_srcdir=$srcdir |
26945 | ac_abs_top_srcdir=$srcdir ;; | |
26946 | *) # Relative name. | |
26947 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
26948 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
26949 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
bec39cab | 26950 | esac |
4e8d927d | 26951 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
c906108c | 26952 | |
c906108c | 26953 | |
4e8d927d | 26954 | cd "$ac_dir" |
c906108c SS |
26955 | |
26956 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
26957 | if test -f $ac_srcdir/configure.gnu; then |
26958 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
26959 | elif test -f $ac_srcdir/configure; then | |
26960 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
26961 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
26962 | ac_sub_configure=$ac_configure |
26963 | else | |
bec39cab AC |
26964 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
26965 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
26966 | ac_sub_configure= |
26967 | fi | |
26968 | ||
26969 | # The recursion is here. | |
26970 | if test -n "$ac_sub_configure"; then | |
c906108c | 26971 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
26972 | case $cache_file in |
26973 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
4e8d927d DJ |
26974 | *) # Relative name. |
26975 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
c906108c | 26976 | esac |
c906108c | 26977 | |
bec39cab AC |
26978 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
26979 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 26980 | # The eval makes quoting arguments work. |
4e8d927d DJ |
26981 | eval "$ac_sub_configure $ac_sub_configure_args \ |
26982 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" || | |
bec39cab AC |
26983 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
26984 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
26985 | { (exit 1); exit 1; }; } | |
c906108c SS |
26986 | fi |
26987 | ||
121ce6e5 | 26988 | cd "$ac_popdir" |
c906108c SS |
26989 | done |
26990 | fi | |
26991 | ||
26992 | ||
26993 | exit 0 |