1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.61 for advance source. |
---|
4 | # |
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
7 | # This configure script is free software; the Free Software Foundation |
---|
8 | # gives unlimited permission to copy, distribute and modify it. |
---|
9 | # |
---|
10 | # Copyright 2005 Andrea Mazzoleni |
---|
11 | ## --------------------- ## |
---|
12 | ## M4sh Initialization. ## |
---|
13 | ## --------------------- ## |
---|
14 | |
---|
15 | # Be more Bourne compatible |
---|
16 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
18 | emulate sh |
---|
19 | NULLCMD=: |
---|
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
21 | # is contrary to our usage. Disable this feature. |
---|
22 | alias -g '${1+"$@"}'='"$@"' |
---|
23 | setopt NO_GLOB_SUBST |
---|
24 | else |
---|
25 | case `(set -o) 2>/dev/null` in |
---|
26 | *posix*) set -o posix ;; |
---|
27 | esac |
---|
28 | |
---|
29 | fi |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | # PATH needs CR |
---|
35 | # Avoid depending upon Character Ranges. |
---|
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
39 | as_cr_digits='0123456789' |
---|
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
41 | |
---|
42 | # The user is always right. |
---|
43 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
44 | echo "#! /bin/sh" >conf$$.sh |
---|
45 | echo "exit 0" >>conf$$.sh |
---|
46 | chmod +x conf$$.sh |
---|
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
48 | PATH_SEPARATOR=';' |
---|
49 | else |
---|
50 | PATH_SEPARATOR=: |
---|
51 | fi |
---|
52 | rm -f conf$$.sh |
---|
53 | fi |
---|
54 | |
---|
55 | # Support unset when possible. |
---|
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
57 | as_unset=unset |
---|
58 | else |
---|
59 | as_unset=false |
---|
60 | fi |
---|
61 | |
---|
62 | |
---|
63 | # IFS |
---|
64 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
65 | # there to prevent editors from complaining about space-tab. |
---|
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
67 | # splitting by setting IFS to empty value.) |
---|
68 | as_nl=' |
---|
69 | ' |
---|
70 | IFS=" "" $as_nl" |
---|
71 | |
---|
72 | # Find who we are. Look in the path if we contain no directory separator. |
---|
73 | case $0 in |
---|
74 | *[\\/]* ) as_myself=$0 ;; |
---|
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
76 | for as_dir in $PATH |
---|
77 | do |
---|
78 | IFS=$as_save_IFS |
---|
79 | test -z "$as_dir" && as_dir=. |
---|
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
81 | done |
---|
82 | IFS=$as_save_IFS |
---|
83 | |
---|
84 | ;; |
---|
85 | esac |
---|
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
87 | # in which case we are not to be found in the path. |
---|
88 | if test "x$as_myself" = x; then |
---|
89 | as_myself=$0 |
---|
90 | fi |
---|
91 | if test ! -f "$as_myself"; then |
---|
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
93 | { (exit 1); exit 1; } |
---|
94 | fi |
---|
95 | |
---|
96 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
97 | for as_var in ENV MAIL MAILPATH |
---|
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
99 | done |
---|
100 | PS1='$ ' |
---|
101 | PS2='> ' |
---|
102 | PS4='+ ' |
---|
103 | |
---|
104 | # NLS nuisances. |
---|
105 | for as_var in \ |
---|
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
108 | LC_TELEPHONE LC_TIME |
---|
109 | do |
---|
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
111 | eval $as_var=C; export $as_var |
---|
112 | else |
---|
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
114 | fi |
---|
115 | done |
---|
116 | |
---|
117 | # Required to use basename. |
---|
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
120 | as_expr=expr |
---|
121 | else |
---|
122 | as_expr=false |
---|
123 | fi |
---|
124 | |
---|
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
126 | as_basename=basename |
---|
127 | else |
---|
128 | as_basename=false |
---|
129 | fi |
---|
130 | |
---|
131 | |
---|
132 | # Name of the executable. |
---|
133 | as_me=`$as_basename -- "$0" || |
---|
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
135 | X"$0" : 'X\(//\)$' \| \ |
---|
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
137 | echo X/"$0" | |
---|
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
139 | s//\1/ |
---|
140 | q |
---|
141 | } |
---|
142 | /^X\/\(\/\/\)$/{ |
---|
143 | s//\1/ |
---|
144 | q |
---|
145 | } |
---|
146 | /^X\/\(\/\).*/{ |
---|
147 | s//\1/ |
---|
148 | q |
---|
149 | } |
---|
150 | s/.*/./; q'` |
---|
151 | |
---|
152 | # CDPATH. |
---|
153 | $as_unset CDPATH |
---|
154 | |
---|
155 | |
---|
156 | if test "x$CONFIG_SHELL" = x; then |
---|
157 | if (eval ":") 2>/dev/null; then |
---|
158 | as_have_required=yes |
---|
159 | else |
---|
160 | as_have_required=no |
---|
161 | fi |
---|
162 | |
---|
163 | if test $as_have_required = yes && (eval ": |
---|
164 | (as_func_return () { |
---|
165 | (exit \$1) |
---|
166 | } |
---|
167 | as_func_success () { |
---|
168 | as_func_return 0 |
---|
169 | } |
---|
170 | as_func_failure () { |
---|
171 | as_func_return 1 |
---|
172 | } |
---|
173 | as_func_ret_success () { |
---|
174 | return 0 |
---|
175 | } |
---|
176 | as_func_ret_failure () { |
---|
177 | return 1 |
---|
178 | } |
---|
179 | |
---|
180 | exitcode=0 |
---|
181 | if as_func_success; then |
---|
182 | : |
---|
183 | else |
---|
184 | exitcode=1 |
---|
185 | echo as_func_success failed. |
---|
186 | fi |
---|
187 | |
---|
188 | if as_func_failure; then |
---|
189 | exitcode=1 |
---|
190 | echo as_func_failure succeeded. |
---|
191 | fi |
---|
192 | |
---|
193 | if as_func_ret_success; then |
---|
194 | : |
---|
195 | else |
---|
196 | exitcode=1 |
---|
197 | echo as_func_ret_success failed. |
---|
198 | fi |
---|
199 | |
---|
200 | if as_func_ret_failure; then |
---|
201 | exitcode=1 |
---|
202 | echo as_func_ret_failure succeeded. |
---|
203 | fi |
---|
204 | |
---|
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
206 | : |
---|
207 | else |
---|
208 | exitcode=1 |
---|
209 | echo positional parameters were not saved. |
---|
210 | fi |
---|
211 | |
---|
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
---|
213 | |
---|
214 | ( |
---|
215 | as_lineno_1=\$LINENO |
---|
216 | as_lineno_2=\$LINENO |
---|
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
---|
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
---|
219 | ") 2> /dev/null; then |
---|
220 | : |
---|
221 | else |
---|
222 | as_candidate_shells= |
---|
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
225 | do |
---|
226 | IFS=$as_save_IFS |
---|
227 | test -z "$as_dir" && as_dir=. |
---|
228 | case $as_dir in |
---|
229 | /*) |
---|
230 | for as_base in sh bash ksh sh5; do |
---|
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
---|
232 | done;; |
---|
233 | esac |
---|
234 | done |
---|
235 | IFS=$as_save_IFS |
---|
236 | |
---|
237 | |
---|
238 | for as_shell in $as_candidate_shells $SHELL; do |
---|
239 | # Try only shells that exist, to save several forks. |
---|
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
---|
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
243 | emulate sh |
---|
244 | NULLCMD=: |
---|
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
246 | # is contrary to our usage. Disable this feature. |
---|
247 | alias -g '${1+"$@"}'='"$@"' |
---|
248 | setopt NO_GLOB_SUBST |
---|
249 | else |
---|
250 | case `(set -o) 2>/dev/null` in |
---|
251 | *posix*) set -o posix ;; |
---|
252 | esac |
---|
253 | |
---|
254 | fi |
---|
255 | |
---|
256 | |
---|
257 | : |
---|
258 | _ASEOF |
---|
259 | }; then |
---|
260 | CONFIG_SHELL=$as_shell |
---|
261 | as_have_required=yes |
---|
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
---|
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
264 | emulate sh |
---|
265 | NULLCMD=: |
---|
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
267 | # is contrary to our usage. Disable this feature. |
---|
268 | alias -g '${1+"$@"}'='"$@"' |
---|
269 | setopt NO_GLOB_SUBST |
---|
270 | else |
---|
271 | case `(set -o) 2>/dev/null` in |
---|
272 | *posix*) set -o posix ;; |
---|
273 | esac |
---|
274 | |
---|
275 | fi |
---|
276 | |
---|
277 | |
---|
278 | : |
---|
279 | (as_func_return () { |
---|
280 | (exit $1) |
---|
281 | } |
---|
282 | as_func_success () { |
---|
283 | as_func_return 0 |
---|
284 | } |
---|
285 | as_func_failure () { |
---|
286 | as_func_return 1 |
---|
287 | } |
---|
288 | as_func_ret_success () { |
---|
289 | return 0 |
---|
290 | } |
---|
291 | as_func_ret_failure () { |
---|
292 | return 1 |
---|
293 | } |
---|
294 | |
---|
295 | exitcode=0 |
---|
296 | if as_func_success; then |
---|
297 | : |
---|
298 | else |
---|
299 | exitcode=1 |
---|
300 | echo as_func_success failed. |
---|
301 | fi |
---|
302 | |
---|
303 | if as_func_failure; then |
---|
304 | exitcode=1 |
---|
305 | echo as_func_failure succeeded. |
---|
306 | fi |
---|
307 | |
---|
308 | if as_func_ret_success; then |
---|
309 | : |
---|
310 | else |
---|
311 | exitcode=1 |
---|
312 | echo as_func_ret_success failed. |
---|
313 | fi |
---|
314 | |
---|
315 | if as_func_ret_failure; then |
---|
316 | exitcode=1 |
---|
317 | echo as_func_ret_failure succeeded. |
---|
318 | fi |
---|
319 | |
---|
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
---|
321 | : |
---|
322 | else |
---|
323 | exitcode=1 |
---|
324 | echo positional parameters were not saved. |
---|
325 | fi |
---|
326 | |
---|
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
---|
328 | |
---|
329 | ( |
---|
330 | as_lineno_1=$LINENO |
---|
331 | as_lineno_2=$LINENO |
---|
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
---|
334 | |
---|
335 | _ASEOF |
---|
336 | }; then |
---|
337 | break |
---|
338 | fi |
---|
339 | |
---|
340 | fi |
---|
341 | |
---|
342 | done |
---|
343 | |
---|
344 | if test "x$CONFIG_SHELL" != x; then |
---|
345 | for as_var in BASH_ENV ENV |
---|
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
347 | done |
---|
348 | export CONFIG_SHELL |
---|
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
---|
350 | fi |
---|
351 | |
---|
352 | |
---|
353 | if test $as_have_required = no; then |
---|
354 | echo This script requires a shell more modern than all the |
---|
355 | echo shells that I found on your system. Please install a |
---|
356 | echo modern shell, or manually run the script under such a |
---|
357 | echo shell if you do have one. |
---|
358 | { (exit 1); exit 1; } |
---|
359 | fi |
---|
360 | |
---|
361 | |
---|
362 | fi |
---|
363 | |
---|
364 | fi |
---|
365 | |
---|
366 | |
---|
367 | |
---|
368 | (eval "as_func_return () { |
---|
369 | (exit \$1) |
---|
370 | } |
---|
371 | as_func_success () { |
---|
372 | as_func_return 0 |
---|
373 | } |
---|
374 | as_func_failure () { |
---|
375 | as_func_return 1 |
---|
376 | } |
---|
377 | as_func_ret_success () { |
---|
378 | return 0 |
---|
379 | } |
---|
380 | as_func_ret_failure () { |
---|
381 | return 1 |
---|
382 | } |
---|
383 | |
---|
384 | exitcode=0 |
---|
385 | if as_func_success; then |
---|
386 | : |
---|
387 | else |
---|
388 | exitcode=1 |
---|
389 | echo as_func_success failed. |
---|
390 | fi |
---|
391 | |
---|
392 | if as_func_failure; then |
---|
393 | exitcode=1 |
---|
394 | echo as_func_failure succeeded. |
---|
395 | fi |
---|
396 | |
---|
397 | if as_func_ret_success; then |
---|
398 | : |
---|
399 | else |
---|
400 | exitcode=1 |
---|
401 | echo as_func_ret_success failed. |
---|
402 | fi |
---|
403 | |
---|
404 | if as_func_ret_failure; then |
---|
405 | exitcode=1 |
---|
406 | echo as_func_ret_failure succeeded. |
---|
407 | fi |
---|
408 | |
---|
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
---|
410 | : |
---|
411 | else |
---|
412 | exitcode=1 |
---|
413 | echo positional parameters were not saved. |
---|
414 | fi |
---|
415 | |
---|
416 | test \$exitcode = 0") || { |
---|
417 | echo No shell found that supports shell functions. |
---|
418 | echo Please tell autoconf@gnu.org about your system, |
---|
419 | echo including any error possibly output before this |
---|
420 | echo message |
---|
421 | } |
---|
422 | |
---|
423 | |
---|
424 | |
---|
425 | as_lineno_1=$LINENO |
---|
426 | as_lineno_2=$LINENO |
---|
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
429 | |
---|
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
432 | # line-number line after each line using $LINENO; the second 'sed' |
---|
433 | # does the real work. The second script uses 'N' to pair each |
---|
434 | # line-number line with the line containing $LINENO, and appends |
---|
435 | # trailing '-' during substitution so that $LINENO is not a special |
---|
436 | # case at line end. |
---|
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
440 | sed -n ' |
---|
441 | p |
---|
442 | /[$]LINENO/= |
---|
443 | ' <$as_myself | |
---|
444 | sed ' |
---|
445 | s/[$]LINENO.*/&-/ |
---|
446 | t lineno |
---|
447 | b |
---|
448 | :lineno |
---|
449 | N |
---|
450 | :loop |
---|
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
452 | t loop |
---|
453 | s/-\n.*// |
---|
454 | ' >$as_me.lineno && |
---|
455 | chmod +x "$as_me.lineno" || |
---|
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
457 | { (exit 1); exit 1; }; } |
---|
458 | |
---|
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
460 | # (the dirname of $[0] is not the place where we might find the |
---|
461 | # original and so on. Autoconf is especially sensitive to this). |
---|
462 | . "./$as_me.lineno" |
---|
463 | # Exit status is that of the last command. |
---|
464 | exit |
---|
465 | } |
---|
466 | |
---|
467 | |
---|
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
469 | as_dirname=dirname |
---|
470 | else |
---|
471 | as_dirname=false |
---|
472 | fi |
---|
473 | |
---|
474 | ECHO_C= ECHO_N= ECHO_T= |
---|
475 | case `echo -n x` in |
---|
476 | -n*) |
---|
477 | case `echo 'x\c'` in |
---|
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
479 | *) ECHO_C='\c';; |
---|
480 | esac;; |
---|
481 | *) |
---|
482 | ECHO_N='-n';; |
---|
483 | esac |
---|
484 | |
---|
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
487 | as_expr=expr |
---|
488 | else |
---|
489 | as_expr=false |
---|
490 | fi |
---|
491 | |
---|
492 | rm -f conf$$ conf$$.exe conf$$.file |
---|
493 | if test -d conf$$.dir; then |
---|
494 | rm -f conf$$.dir/conf$$.file |
---|
495 | else |
---|
496 | rm -f conf$$.dir |
---|
497 | mkdir conf$$.dir |
---|
498 | fi |
---|
499 | echo >conf$$.file |
---|
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
501 | as_ln_s='ln -s' |
---|
502 | # ... but there are two gotchas: |
---|
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
505 | # In both cases, we have to default to `cp -p'. |
---|
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
507 | as_ln_s='cp -p' |
---|
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
509 | as_ln_s=ln |
---|
510 | else |
---|
511 | as_ln_s='cp -p' |
---|
512 | fi |
---|
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
514 | rmdir conf$$.dir 2>/dev/null |
---|
515 | |
---|
516 | if mkdir -p . 2>/dev/null; then |
---|
517 | as_mkdir_p=: |
---|
518 | else |
---|
519 | test -d ./-p && rmdir ./-p |
---|
520 | as_mkdir_p=false |
---|
521 | fi |
---|
522 | |
---|
523 | if test -x / >/dev/null 2>&1; then |
---|
524 | as_test_x='test -x' |
---|
525 | else |
---|
526 | if ls -dL / >/dev/null 2>&1; then |
---|
527 | as_ls_L_option=L |
---|
528 | else |
---|
529 | as_ls_L_option= |
---|
530 | fi |
---|
531 | as_test_x=' |
---|
532 | eval sh -c '\'' |
---|
533 | if test -d "$1"; then |
---|
534 | test -d "$1/."; |
---|
535 | else |
---|
536 | case $1 in |
---|
537 | -*)set "./$1";; |
---|
538 | esac; |
---|
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
540 | ???[sx]*):;;*)false;;esac;fi |
---|
541 | '\'' sh |
---|
542 | ' |
---|
543 | fi |
---|
544 | as_executable_p=$as_test_x |
---|
545 | |
---|
546 | # Sed expression to map a string onto a valid CPP name. |
---|
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
548 | |
---|
549 | # Sed expression to map a string onto a valid variable name. |
---|
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
551 | |
---|
552 | |
---|
553 | |
---|
554 | exec 7<&0 </dev/null 6>&1 |
---|
555 | |
---|
556 | # Name of the host. |
---|
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
558 | # so uname gets run too. |
---|
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
560 | |
---|
561 | # |
---|
562 | # Initializations. |
---|
563 | # |
---|
564 | ac_default_prefix=/usr/local |
---|
565 | ac_clean_files= |
---|
566 | ac_config_libobj_dir=. |
---|
567 | LIBOBJS= |
---|
568 | cross_compiling=no |
---|
569 | subdirs= |
---|
570 | MFLAGS= |
---|
571 | MAKEFLAGS= |
---|
572 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
573 | |
---|
574 | # Identity of this package. |
---|
575 | PACKAGE_NAME='advance' |
---|
576 | PACKAGE_TARNAME='advance' |
---|
577 | PACKAGE_VERSION='source' |
---|
578 | PACKAGE_STRING='advance source' |
---|
579 | PACKAGE_BUGREPORT='' |
---|
580 | |
---|
581 | # Factoring default headers for most tests. |
---|
582 | ac_includes_default="\ |
---|
583 | #include <stdio.h> |
---|
584 | #ifdef HAVE_SYS_TYPES_H |
---|
585 | # include <sys/types.h> |
---|
586 | #endif |
---|
587 | #ifdef HAVE_SYS_STAT_H |
---|
588 | # include <sys/stat.h> |
---|
589 | #endif |
---|
590 | #ifdef STDC_HEADERS |
---|
591 | # include <stdlib.h> |
---|
592 | # include <stddef.h> |
---|
593 | #else |
---|
594 | # ifdef HAVE_STDLIB_H |
---|
595 | # include <stdlib.h> |
---|
596 | # endif |
---|
597 | #endif |
---|
598 | #ifdef HAVE_STRING_H |
---|
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
600 | # include <memory.h> |
---|
601 | # endif |
---|
602 | # include <string.h> |
---|
603 | #endif |
---|
604 | #ifdef HAVE_STRINGS_H |
---|
605 | # include <strings.h> |
---|
606 | #endif |
---|
607 | #ifdef HAVE_INTTYPES_H |
---|
608 | # include <inttypes.h> |
---|
609 | #endif |
---|
610 | #ifdef HAVE_STDINT_H |
---|
611 | # include <stdint.h> |
---|
612 | #endif |
---|
613 | #ifdef HAVE_UNISTD_H |
---|
614 | # include <unistd.h> |
---|
615 | #endif" |
---|
616 | |
---|
617 | ac_subst_vars='SHELL |
---|
618 | PATH_SEPARATOR |
---|
619 | PACKAGE_NAME |
---|
620 | PACKAGE_TARNAME |
---|
621 | PACKAGE_VERSION |
---|
622 | PACKAGE_STRING |
---|
623 | PACKAGE_BUGREPORT |
---|
624 | exec_prefix |
---|
625 | prefix |
---|
626 | program_transform_name |
---|
627 | bindir |
---|
628 | sbindir |
---|
629 | libexecdir |
---|
630 | datarootdir |
---|
631 | datadir |
---|
632 | sysconfdir |
---|
633 | sharedstatedir |
---|
634 | localstatedir |
---|
635 | includedir |
---|
636 | oldincludedir |
---|
637 | docdir |
---|
638 | infodir |
---|
639 | htmldir |
---|
640 | dvidir |
---|
641 | pdfdir |
---|
642 | psdir |
---|
643 | libdir |
---|
644 | localedir |
---|
645 | mandir |
---|
646 | DEFS |
---|
647 | ECHO_C |
---|
648 | ECHO_N |
---|
649 | ECHO_T |
---|
650 | LIBS |
---|
651 | build_alias |
---|
652 | host_alias |
---|
653 | target_alias |
---|
654 | build |
---|
655 | build_cpu |
---|
656 | build_vendor |
---|
657 | build_os |
---|
658 | host |
---|
659 | host_cpu |
---|
660 | host_vendor |
---|
661 | host_os |
---|
662 | ASMFLAGS |
---|
663 | CFLAGS_FOR_BUILD |
---|
664 | EXE |
---|
665 | CONF_SYSTEM |
---|
666 | CONF_HOST |
---|
667 | EXE_FOR_BUILD |
---|
668 | CONF_BUILD |
---|
669 | CC |
---|
670 | CFLAGS |
---|
671 | LDFLAGS |
---|
672 | CPPFLAGS |
---|
673 | ac_ct_CC |
---|
674 | EXEEXT |
---|
675 | OBJEXT |
---|
676 | CXX |
---|
677 | CXXFLAGS |
---|
678 | ac_ct_CXX |
---|
679 | INSTALL_PROGRAM |
---|
680 | INSTALL_SCRIPT |
---|
681 | INSTALL_DATA |
---|
682 | LN_S |
---|
683 | AR |
---|
684 | ac_ct_AR |
---|
685 | RC |
---|
686 | ac_ct_RC |
---|
687 | RM |
---|
688 | CP |
---|
689 | MKDIR |
---|
690 | ECHO |
---|
691 | TAR |
---|
692 | GZIP |
---|
693 | ZIP |
---|
694 | CC_FOR_BUILD |
---|
695 | CXX_FOR_BUILD |
---|
696 | CONF_DEBUG |
---|
697 | CONF_CFLAGS_OPT |
---|
698 | CONF_LDFLAGS |
---|
699 | CPP |
---|
700 | GREP |
---|
701 | EGREP |
---|
702 | ASM |
---|
703 | CONF_CFLAGS_ARCH |
---|
704 | CONF_EMU |
---|
705 | CONF_DEBUGGER |
---|
706 | ALLOCA |
---|
707 | CONF_LIB_ZLIB |
---|
708 | CONF_LIB_EXPAT |
---|
709 | CONF_LIB_SVGALIB |
---|
710 | CONF_LIB_FB |
---|
711 | CONF_LIB_ALSA |
---|
712 | CONF_LIB_OSS |
---|
713 | CONF_LIB_PTHREAD |
---|
714 | CONF_LIB_SLANG |
---|
715 | CONF_LIB_NCURSES |
---|
716 | ac_lib_freetype_config |
---|
717 | FREETYPECFLAGS |
---|
718 | FREETYPELIBS |
---|
719 | CONF_LIB_FREETYPE |
---|
720 | ac_lib_sdl_config |
---|
721 | SDLCFLAGS |
---|
722 | SDLLIBS |
---|
723 | CONF_LIB_SDL |
---|
724 | CONF_LIB_SVGAWIN |
---|
725 | CONF_LIB_MRAWINPUT |
---|
726 | CONF_LIB_MCPN |
---|
727 | CONF_LIB_KRAW |
---|
728 | CONF_LIB_JRAW |
---|
729 | CONF_LIB_MRAW |
---|
730 | CONF_LIB_MEVENT |
---|
731 | CONF_LIB_KEVENT |
---|
732 | CONF_LIB_JEVENT |
---|
733 | CONF_LIB_DIRECT |
---|
734 | LIBOBJS |
---|
735 | LTLIBOBJS' |
---|
736 | ac_subst_files='' |
---|
737 | ac_precious_vars='build_alias |
---|
738 | host_alias |
---|
739 | target_alias |
---|
740 | CC |
---|
741 | CFLAGS |
---|
742 | LDFLAGS |
---|
743 | LIBS |
---|
744 | CPPFLAGS |
---|
745 | CXX |
---|
746 | CXXFLAGS |
---|
747 | CCC |
---|
748 | CPP' |
---|
749 | |
---|
750 | |
---|
751 | # Initialize some variables set by options. |
---|
752 | ac_init_help= |
---|
753 | ac_init_version=false |
---|
754 | # The variables have the same names as the options, with |
---|
755 | # dashes changed to underlines. |
---|
756 | cache_file=/dev/null |
---|
757 | exec_prefix=NONE |
---|
758 | no_create= |
---|
759 | no_recursion= |
---|
760 | prefix=NONE |
---|
761 | program_prefix=NONE |
---|
762 | program_suffix=NONE |
---|
763 | program_transform_name=s,x,x, |
---|
764 | silent= |
---|
765 | site= |
---|
766 | srcdir= |
---|
767 | verbose= |
---|
768 | x_includes=NONE |
---|
769 | x_libraries=NONE |
---|
770 | |
---|
771 | # Installation directory options. |
---|
772 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
773 | # and all the variables that are supposed to be based on exec_prefix |
---|
774 | # by default will actually change. |
---|
775 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
776 | # (The list follows the same order as the GNU Coding Standards.) |
---|
777 | bindir='${exec_prefix}/bin' |
---|
778 | sbindir='${exec_prefix}/sbin' |
---|
779 | libexecdir='${exec_prefix}/libexec' |
---|
780 | datarootdir='${prefix}/share' |
---|
781 | datadir='${datarootdir}' |
---|
782 | sysconfdir='${prefix}/etc' |
---|
783 | sharedstatedir='${prefix}/com' |
---|
784 | localstatedir='${prefix}/var' |
---|
785 | includedir='${prefix}/include' |
---|
786 | oldincludedir='/usr/include' |
---|
787 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
788 | infodir='${datarootdir}/info' |
---|
789 | htmldir='${docdir}' |
---|
790 | dvidir='${docdir}' |
---|
791 | pdfdir='${docdir}' |
---|
792 | psdir='${docdir}' |
---|
793 | libdir='${exec_prefix}/lib' |
---|
794 | localedir='${datarootdir}/locale' |
---|
795 | mandir='${datarootdir}/man' |
---|
796 | |
---|
797 | ac_prev= |
---|
798 | ac_dashdash= |
---|
799 | for ac_option |
---|
800 | do |
---|
801 | # If the previous option needs an argument, assign it. |
---|
802 | if test -n "$ac_prev"; then |
---|
803 | eval $ac_prev=\$ac_option |
---|
804 | ac_prev= |
---|
805 | continue |
---|
806 | fi |
---|
807 | |
---|
808 | case $ac_option in |
---|
809 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
810 | *) ac_optarg=yes ;; |
---|
811 | esac |
---|
812 | |
---|
813 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
814 | |
---|
815 | case $ac_dashdash$ac_option in |
---|
816 | --) |
---|
817 | ac_dashdash=yes ;; |
---|
818 | |
---|
819 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
820 | ac_prev=bindir ;; |
---|
821 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
822 | bindir=$ac_optarg ;; |
---|
823 | |
---|
824 | -build | --build | --buil | --bui | --bu) |
---|
825 | ac_prev=build_alias ;; |
---|
826 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
827 | build_alias=$ac_optarg ;; |
---|
828 | |
---|
829 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
830 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
831 | ac_prev=cache_file ;; |
---|
832 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
833 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
834 | cache_file=$ac_optarg ;; |
---|
835 | |
---|
836 | --config-cache | -C) |
---|
837 | cache_file=config.cache ;; |
---|
838 | |
---|
839 | -datadir | --datadir | --datadi | --datad) |
---|
840 | ac_prev=datadir ;; |
---|
841 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
842 | datadir=$ac_optarg ;; |
---|
843 | |
---|
844 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
845 | | --dataroo | --dataro | --datar) |
---|
846 | ac_prev=datarootdir ;; |
---|
847 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
848 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
849 | datarootdir=$ac_optarg ;; |
---|
850 | |
---|
851 | -disable-* | --disable-*) |
---|
852 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
853 | # Reject names that are not valid shell variable names. |
---|
854 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
855 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
856 | { (exit 1); exit 1; }; } |
---|
857 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
858 | eval enable_$ac_feature=no ;; |
---|
859 | |
---|
860 | -docdir | --docdir | --docdi | --doc | --do) |
---|
861 | ac_prev=docdir ;; |
---|
862 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
863 | docdir=$ac_optarg ;; |
---|
864 | |
---|
865 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
866 | ac_prev=dvidir ;; |
---|
867 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
868 | dvidir=$ac_optarg ;; |
---|
869 | |
---|
870 | -enable-* | --enable-*) |
---|
871 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
872 | # Reject names that are not valid shell variable names. |
---|
873 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
874 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
875 | { (exit 1); exit 1; }; } |
---|
876 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
---|
877 | eval enable_$ac_feature=\$ac_optarg ;; |
---|
878 | |
---|
879 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
880 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
881 | | --exec | --exe | --ex) |
---|
882 | ac_prev=exec_prefix ;; |
---|
883 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
884 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
885 | | --exec=* | --exe=* | --ex=*) |
---|
886 | exec_prefix=$ac_optarg ;; |
---|
887 | |
---|
888 | -gas | --gas | --ga | --g) |
---|
889 | # Obsolete; use --with-gas. |
---|
890 | with_gas=yes ;; |
---|
891 | |
---|
892 | -help | --help | --hel | --he | -h) |
---|
893 | ac_init_help=long ;; |
---|
894 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
895 | ac_init_help=recursive ;; |
---|
896 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
897 | ac_init_help=short ;; |
---|
898 | |
---|
899 | -host | --host | --hos | --ho) |
---|
900 | ac_prev=host_alias ;; |
---|
901 | -host=* | --host=* | --hos=* | --ho=*) |
---|
902 | host_alias=$ac_optarg ;; |
---|
903 | |
---|
904 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
905 | ac_prev=htmldir ;; |
---|
906 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
907 | | --ht=*) |
---|
908 | htmldir=$ac_optarg ;; |
---|
909 | |
---|
910 | -includedir | --includedir | --includedi | --included | --include \ |
---|
911 | | --includ | --inclu | --incl | --inc) |
---|
912 | ac_prev=includedir ;; |
---|
913 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
914 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
915 | includedir=$ac_optarg ;; |
---|
916 | |
---|
917 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
918 | ac_prev=infodir ;; |
---|
919 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
920 | infodir=$ac_optarg ;; |
---|
921 | |
---|
922 | -libdir | --libdir | --libdi | --libd) |
---|
923 | ac_prev=libdir ;; |
---|
924 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
925 | libdir=$ac_optarg ;; |
---|
926 | |
---|
927 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
928 | | --libexe | --libex | --libe) |
---|
929 | ac_prev=libexecdir ;; |
---|
930 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
931 | | --libexe=* | --libex=* | --libe=*) |
---|
932 | libexecdir=$ac_optarg ;; |
---|
933 | |
---|
934 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
935 | ac_prev=localedir ;; |
---|
936 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
937 | localedir=$ac_optarg ;; |
---|
938 | |
---|
939 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
940 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
941 | ac_prev=localstatedir ;; |
---|
942 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
943 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
944 | localstatedir=$ac_optarg ;; |
---|
945 | |
---|
946 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
947 | ac_prev=mandir ;; |
---|
948 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
949 | mandir=$ac_optarg ;; |
---|
950 | |
---|
951 | -nfp | --nfp | --nf) |
---|
952 | # Obsolete; use --without-fp. |
---|
953 | with_fp=no ;; |
---|
954 | |
---|
955 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
956 | | --no-cr | --no-c | -n) |
---|
957 | no_create=yes ;; |
---|
958 | |
---|
959 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
960 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
961 | no_recursion=yes ;; |
---|
962 | |
---|
963 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
964 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
965 | | --oldin | --oldi | --old | --ol | --o) |
---|
966 | ac_prev=oldincludedir ;; |
---|
967 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
968 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
969 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
970 | oldincludedir=$ac_optarg ;; |
---|
971 | |
---|
972 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
973 | ac_prev=prefix ;; |
---|
974 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
975 | prefix=$ac_optarg ;; |
---|
976 | |
---|
977 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
978 | | --program-pre | --program-pr | --program-p) |
---|
979 | ac_prev=program_prefix ;; |
---|
980 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
981 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
982 | program_prefix=$ac_optarg ;; |
---|
983 | |
---|
984 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
985 | | --program-suf | --program-su | --program-s) |
---|
986 | ac_prev=program_suffix ;; |
---|
987 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
988 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
989 | program_suffix=$ac_optarg ;; |
---|
990 | |
---|
991 | -program-transform-name | --program-transform-name \ |
---|
992 | | --program-transform-nam | --program-transform-na \ |
---|
993 | | --program-transform-n | --program-transform- \ |
---|
994 | | --program-transform | --program-transfor \ |
---|
995 | | --program-transfo | --program-transf \ |
---|
996 | | --program-trans | --program-tran \ |
---|
997 | | --progr-tra | --program-tr | --program-t) |
---|
998 | ac_prev=program_transform_name ;; |
---|
999 | -program-transform-name=* | --program-transform-name=* \ |
---|
1000 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1001 | | --program-transform-n=* | --program-transform-=* \ |
---|
1002 | | --program-transform=* | --program-transfor=* \ |
---|
1003 | | --program-transfo=* | --program-transf=* \ |
---|
1004 | | --program-trans=* | --program-tran=* \ |
---|
1005 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1006 | program_transform_name=$ac_optarg ;; |
---|
1007 | |
---|
1008 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1009 | ac_prev=pdfdir ;; |
---|
1010 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1011 | pdfdir=$ac_optarg ;; |
---|
1012 | |
---|
1013 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1014 | ac_prev=psdir ;; |
---|
1015 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1016 | psdir=$ac_optarg ;; |
---|
1017 | |
---|
1018 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1019 | | -silent | --silent | --silen | --sile | --sil) |
---|
1020 | silent=yes ;; |
---|
1021 | |
---|
1022 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1023 | ac_prev=sbindir ;; |
---|
1024 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1025 | | --sbi=* | --sb=*) |
---|
1026 | sbindir=$ac_optarg ;; |
---|
1027 | |
---|
1028 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1029 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1030 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1031 | | --sha | --sh) |
---|
1032 | ac_prev=sharedstatedir ;; |
---|
1033 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1034 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1035 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1036 | | --sha=* | --sh=*) |
---|
1037 | sharedstatedir=$ac_optarg ;; |
---|
1038 | |
---|
1039 | -site | --site | --sit) |
---|
1040 | ac_prev=site ;; |
---|
1041 | -site=* | --site=* | --sit=*) |
---|
1042 | site=$ac_optarg ;; |
---|
1043 | |
---|
1044 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1045 | ac_prev=srcdir ;; |
---|
1046 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1047 | srcdir=$ac_optarg ;; |
---|
1048 | |
---|
1049 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1050 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1051 | ac_prev=sysconfdir ;; |
---|
1052 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1053 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1054 | sysconfdir=$ac_optarg ;; |
---|
1055 | |
---|
1056 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1057 | ac_prev=target_alias ;; |
---|
1058 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1059 | target_alias=$ac_optarg ;; |
---|
1060 | |
---|
1061 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1062 | verbose=yes ;; |
---|
1063 | |
---|
1064 | -version | --version | --versio | --versi | --vers | -V) |
---|
1065 | ac_init_version=: ;; |
---|
1066 | |
---|
1067 | -with-* | --with-*) |
---|
1068 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1069 | # Reject names that are not valid shell variable names. |
---|
1070 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1071 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1072 | { (exit 1); exit 1; }; } |
---|
1073 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1074 | eval with_$ac_package=\$ac_optarg ;; |
---|
1075 | |
---|
1076 | -without-* | --without-*) |
---|
1077 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1078 | # Reject names that are not valid shell variable names. |
---|
1079 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1080 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
1081 | { (exit 1); exit 1; }; } |
---|
1082 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
---|
1083 | eval with_$ac_package=no ;; |
---|
1084 | |
---|
1085 | --x) |
---|
1086 | # Obsolete; use --with-x. |
---|
1087 | with_x=yes ;; |
---|
1088 | |
---|
1089 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1090 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1091 | ac_prev=x_includes ;; |
---|
1092 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1093 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1094 | x_includes=$ac_optarg ;; |
---|
1095 | |
---|
1096 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1097 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1098 | ac_prev=x_libraries ;; |
---|
1099 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1100 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1101 | x_libraries=$ac_optarg ;; |
---|
1102 | |
---|
1103 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
1104 | Try \`$0 --help' for more information." >&2 |
---|
1105 | { (exit 1); exit 1; }; } |
---|
1106 | ;; |
---|
1107 | |
---|
1108 | *=*) |
---|
1109 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1110 | # Reject names that are not valid shell variable names. |
---|
1111 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
1112 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
1113 | { (exit 1); exit 1; }; } |
---|
1114 | eval $ac_envvar=\$ac_optarg |
---|
1115 | export $ac_envvar ;; |
---|
1116 | |
---|
1117 | *) |
---|
1118 | # FIXME: should be removed in autoconf 3.0. |
---|
1119 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1120 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1121 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1122 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
1123 | ;; |
---|
1124 | |
---|
1125 | esac |
---|
1126 | done |
---|
1127 | |
---|
1128 | if test -n "$ac_prev"; then |
---|
1129 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1130 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
1131 | { (exit 1); exit 1; }; } |
---|
1132 | fi |
---|
1133 | |
---|
1134 | # Be sure to have absolute directory names. |
---|
1135 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1136 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1137 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1138 | libdir localedir mandir |
---|
1139 | do |
---|
1140 | eval ac_val=\$$ac_var |
---|
1141 | case $ac_val in |
---|
1142 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1143 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1144 | esac |
---|
1145 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
1146 | { (exit 1); exit 1; }; } |
---|
1147 | done |
---|
1148 | |
---|
1149 | # There might be people who depend on the old broken behavior: `$host' |
---|
1150 | # used to hold the argument of --host etc. |
---|
1151 | # FIXME: To remove some day. |
---|
1152 | build=$build_alias |
---|
1153 | host=$host_alias |
---|
1154 | target=$target_alias |
---|
1155 | |
---|
1156 | # FIXME: To remove some day. |
---|
1157 | if test "x$host_alias" != x; then |
---|
1158 | if test "x$build_alias" = x; then |
---|
1159 | cross_compiling=maybe |
---|
1160 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
1161 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
1162 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1163 | cross_compiling=yes |
---|
1164 | fi |
---|
1165 | fi |
---|
1166 | |
---|
1167 | ac_tool_prefix= |
---|
1168 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1169 | |
---|
1170 | test "$silent" = yes && exec 6>/dev/null |
---|
1171 | |
---|
1172 | |
---|
1173 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1174 | ac_ls_di=`ls -di .` && |
---|
1175 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1176 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
---|
1177 | { (exit 1); exit 1; }; } |
---|
1178 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1179 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
---|
1180 | { (exit 1); exit 1; }; } |
---|
1181 | |
---|
1182 | |
---|
1183 | # Find the source files, if location was not specified. |
---|
1184 | if test -z "$srcdir"; then |
---|
1185 | ac_srcdir_defaulted=yes |
---|
1186 | # Try the directory containing this script, then the parent directory. |
---|
1187 | ac_confdir=`$as_dirname -- "$0" || |
---|
1188 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1189 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
1190 | X"$0" : 'X\(//\)$' \| \ |
---|
1191 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
1192 | echo X"$0" | |
---|
1193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1194 | s//\1/ |
---|
1195 | q |
---|
1196 | } |
---|
1197 | /^X\(\/\/\)[^/].*/{ |
---|
1198 | s//\1/ |
---|
1199 | q |
---|
1200 | } |
---|
1201 | /^X\(\/\/\)$/{ |
---|
1202 | s//\1/ |
---|
1203 | q |
---|
1204 | } |
---|
1205 | /^X\(\/\).*/{ |
---|
1206 | s//\1/ |
---|
1207 | q |
---|
1208 | } |
---|
1209 | s/.*/./; q'` |
---|
1210 | srcdir=$ac_confdir |
---|
1211 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1212 | srcdir=.. |
---|
1213 | fi |
---|
1214 | else |
---|
1215 | ac_srcdir_defaulted=no |
---|
1216 | fi |
---|
1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1218 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1219 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
1220 | { (exit 1); exit 1; }; } |
---|
1221 | fi |
---|
1222 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1223 | ac_abs_confdir=`( |
---|
1224 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
---|
1225 | { (exit 1); exit 1; }; } |
---|
1226 | pwd)` |
---|
1227 | # When building in place, set srcdir=. |
---|
1228 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1229 | srcdir=. |
---|
1230 | fi |
---|
1231 | # Remove unnecessary trailing slashes from srcdir. |
---|
1232 | # Double slashes in file names in object file debugging info |
---|
1233 | # mess up M-x gdb in Emacs. |
---|
1234 | case $srcdir in |
---|
1235 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1236 | esac |
---|
1237 | for ac_var in $ac_precious_vars; do |
---|
1238 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1239 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1240 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1241 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1242 | done |
---|
1243 | |
---|
1244 | # |
---|
1245 | # Report the --help message. |
---|
1246 | # |
---|
1247 | if test "$ac_init_help" = "long"; then |
---|
1248 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1249 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1250 | cat <<_ACEOF |
---|
1251 | \`configure' configures advance source to adapt to many kinds of systems. |
---|
1252 | |
---|
1253 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1254 | |
---|
1255 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1256 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1257 | |
---|
1258 | Defaults for the options are specified in brackets. |
---|
1259 | |
---|
1260 | Configuration: |
---|
1261 | -h, --help display this help and exit |
---|
1262 | --help=short display options specific to this package |
---|
1263 | --help=recursive display the short help of all the included packages |
---|
1264 | -V, --version display version information and exit |
---|
1265 | -q, --quiet, --silent do not print \`checking...' messages |
---|
1266 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1267 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1268 | -n, --no-create do not create output files |
---|
1269 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1270 | |
---|
1271 | Installation directories: |
---|
1272 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1273 | [$ac_default_prefix] |
---|
1274 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1275 | [PREFIX] |
---|
1276 | |
---|
1277 | By default, \`make install' will install all the files in |
---|
1278 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1279 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1280 | for instance \`--prefix=\$HOME'. |
---|
1281 | |
---|
1282 | For better control, use the options below. |
---|
1283 | |
---|
1284 | Fine tuning of the installation directories: |
---|
1285 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1286 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1287 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1288 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1289 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1290 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1291 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1292 | --includedir=DIR C header files [PREFIX/include] |
---|
1293 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1294 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1295 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1296 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1297 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1298 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1299 | --docdir=DIR documentation root [DATAROOTDIR/doc/advance] |
---|
1300 | --htmldir=DIR html documentation [DOCDIR] |
---|
1301 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1302 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1303 | --psdir=DIR ps documentation [DOCDIR] |
---|
1304 | _ACEOF |
---|
1305 | |
---|
1306 | cat <<\_ACEOF |
---|
1307 | |
---|
1308 | System types: |
---|
1309 | --build=BUILD configure for building on BUILD [guessed] |
---|
1310 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1311 | _ACEOF |
---|
1312 | fi |
---|
1313 | |
---|
1314 | if test -n "$ac_init_help"; then |
---|
1315 | case $ac_init_help in |
---|
1316 | short | recursive ) echo "Configuration of advance source:";; |
---|
1317 | esac |
---|
1318 | cat <<\_ACEOF |
---|
1319 | |
---|
1320 | Optional Features: |
---|
1321 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1322 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1323 | --enable-debug enable the test compilation without optimization and |
---|
1324 | with debug info. Only for developers. (default no) |
---|
1325 | --enable-test enable the test compilation without optimization. |
---|
1326 | Only for developers. (default no) |
---|
1327 | --enable-static enable static compilation. (default no) |
---|
1328 | --enable-backtrace enable the usage of backtrace (default auto) |
---|
1329 | --enable-ucontexth enable the usage of ucontext.h (default auto) |
---|
1330 | --enable-asm enable the Pentium assembler optimizations (default |
---|
1331 | auto) |
---|
1332 | --enable-asm-mips3 enable the Pentium assembler MIPS3 emulator (default |
---|
1333 | auto) |
---|
1334 | --enable-debugger enable the emulator debugger (default no) |
---|
1335 | --enable-zlib enable the use of the zlib library. (default auto) |
---|
1336 | --enable-expat enable the use of the expat library. (default auto) |
---|
1337 | --enable-svgalib enable the use of the SVGALIB library. (default |
---|
1338 | auto) |
---|
1339 | --enable-fb enable the use of the Frame Buffer library. (default |
---|
1340 | auto) |
---|
1341 | --enable-alsa enable the use of the ALSA library. (default auto) |
---|
1342 | --enable-oss enable the use of the OSS library. (default auto) |
---|
1343 | --enable-pthread enable the use of the pthread library (default auto) |
---|
1344 | --enable-slang enable the use of the sLang library (default auto) |
---|
1345 | --enable-ncurses enable the use of the ncurses library (default auto) |
---|
1346 | --enable-freetype enable the use of the FreeType2 library. (default |
---|
1347 | auto) |
---|
1348 | --enable-sdl enable the use of the SDL library. (default auto) |
---|
1349 | --enable-svgawin enable the use of the SVGAWIN library. (default |
---|
1350 | auto) |
---|
1351 | --enable-mrawinput enable the use of the Windows Raw input mouse |
---|
1352 | interface. (default auto) |
---|
1353 | --enable-mcpn enable the use of the Windows CPN mouse interface. |
---|
1354 | (default auto) |
---|
1355 | --enable-kraw enable the use of the raw keyboard interface. |
---|
1356 | (default auto) |
---|
1357 | --enable-jraw enable the use of the raw joystick interface. |
---|
1358 | (default auto) |
---|
1359 | --enable-mraw enable the use of the raw mouse interface. (default |
---|
1360 | auto) |
---|
1361 | --enable-mevent enable the use of the event mouse interface. |
---|
1362 | (default auto) |
---|
1363 | --enable-kevent enable the use of the event keyboard interface. |
---|
1364 | (default auto) |
---|
1365 | --enable-jevent enable the use of the event joystick interface. |
---|
1366 | (default auto) |
---|
1367 | |
---|
1368 | Optional Packages: |
---|
1369 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1370 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1371 | --with-emu select the emulator to use: mame, mess, none |
---|
1372 | (default auto) |
---|
1373 | --with-freetype-prefix=DIR |
---|
1374 | Prefix where FreeType2 is installed (optional) |
---|
1375 | --with-sdl-prefix=DIR Prefix where SDL is installed (optional) |
---|
1376 | |
---|
1377 | Some influential environment variables: |
---|
1378 | CC C compiler command |
---|
1379 | CFLAGS C compiler flags |
---|
1380 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1381 | nonstandard directory <lib dir> |
---|
1382 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1383 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
---|
1384 | you have headers in a nonstandard directory <include dir> |
---|
1385 | CXX C++ compiler command |
---|
1386 | CXXFLAGS C++ compiler flags |
---|
1387 | CPP C preprocessor |
---|
1388 | |
---|
1389 | Use these variables to override the choices made by `configure' or to help |
---|
1390 | it to find libraries and programs with nonstandard names/locations. |
---|
1391 | |
---|
1392 | _ACEOF |
---|
1393 | ac_status=$? |
---|
1394 | fi |
---|
1395 | |
---|
1396 | if test "$ac_init_help" = "recursive"; then |
---|
1397 | # If there are subdirs, report their specific --help. |
---|
1398 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1399 | test -d "$ac_dir" || continue |
---|
1400 | ac_builddir=. |
---|
1401 | |
---|
1402 | case "$ac_dir" in |
---|
1403 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1404 | *) |
---|
1405 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
1406 | # A ".." for each directory in $ac_dir_suffix. |
---|
1407 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
1408 | case $ac_top_builddir_sub in |
---|
1409 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1410 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1411 | esac ;; |
---|
1412 | esac |
---|
1413 | ac_abs_top_builddir=$ac_pwd |
---|
1414 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1415 | # for backward compatibility: |
---|
1416 | ac_top_builddir=$ac_top_build_prefix |
---|
1417 | |
---|
1418 | case $srcdir in |
---|
1419 | .) # We are building in place. |
---|
1420 | ac_srcdir=. |
---|
1421 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1422 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1423 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1424 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1425 | ac_top_srcdir=$srcdir |
---|
1426 | ac_abs_top_srcdir=$srcdir ;; |
---|
1427 | *) # Relative name. |
---|
1428 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1429 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1430 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1431 | esac |
---|
1432 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1433 | |
---|
1434 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1435 | # Check for guested configure. |
---|
1436 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1437 | echo && |
---|
1438 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1439 | elif test -f "$ac_srcdir/configure"; then |
---|
1440 | echo && |
---|
1441 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1442 | else |
---|
1443 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1444 | fi || ac_status=$? |
---|
1445 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1446 | done |
---|
1447 | fi |
---|
1448 | |
---|
1449 | test -n "$ac_init_help" && exit $ac_status |
---|
1450 | if $ac_init_version; then |
---|
1451 | cat <<\_ACEOF |
---|
1452 | advance configure source |
---|
1453 | generated by GNU Autoconf 2.61 |
---|
1454 | |
---|
1455 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
1456 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
---|
1457 | This configure script is free software; the Free Software Foundation |
---|
1458 | gives unlimited permission to copy, distribute and modify it. |
---|
1459 | |
---|
1460 | Copyright 2005 Andrea Mazzoleni |
---|
1461 | _ACEOF |
---|
1462 | exit |
---|
1463 | fi |
---|
1464 | cat >config.log <<_ACEOF |
---|
1465 | This file contains any messages produced by compilers while |
---|
1466 | running configure, to aid debugging if configure makes a mistake. |
---|
1467 | |
---|
1468 | It was created by advance $as_me source, which was |
---|
1469 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
1470 | |
---|
1471 | $ $0 $@ |
---|
1472 | |
---|
1473 | _ACEOF |
---|
1474 | exec 5>>config.log |
---|
1475 | { |
---|
1476 | cat <<_ASUNAME |
---|
1477 | ## --------- ## |
---|
1478 | ## Platform. ## |
---|
1479 | ## --------- ## |
---|
1480 | |
---|
1481 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1482 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1483 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1484 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1485 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1486 | |
---|
1487 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1488 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1489 | |
---|
1490 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1491 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1492 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1493 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1494 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1495 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1496 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1497 | |
---|
1498 | _ASUNAME |
---|
1499 | |
---|
1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1501 | for as_dir in $PATH |
---|
1502 | do |
---|
1503 | IFS=$as_save_IFS |
---|
1504 | test -z "$as_dir" && as_dir=. |
---|
1505 | echo "PATH: $as_dir" |
---|
1506 | done |
---|
1507 | IFS=$as_save_IFS |
---|
1508 | |
---|
1509 | } >&5 |
---|
1510 | |
---|
1511 | cat >&5 <<_ACEOF |
---|
1512 | |
---|
1513 | |
---|
1514 | ## ----------- ## |
---|
1515 | ## Core tests. ## |
---|
1516 | ## ----------- ## |
---|
1517 | |
---|
1518 | _ACEOF |
---|
1519 | |
---|
1520 | |
---|
1521 | # Keep a trace of the command line. |
---|
1522 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1523 | # Strip out --silent because we don't want to record it for future runs. |
---|
1524 | # Also quote any args containing shell meta-characters. |
---|
1525 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1526 | ac_configure_args= |
---|
1527 | ac_configure_args0= |
---|
1528 | ac_configure_args1= |
---|
1529 | ac_must_keep_next=false |
---|
1530 | for ac_pass in 1 2 |
---|
1531 | do |
---|
1532 | for ac_arg |
---|
1533 | do |
---|
1534 | case $ac_arg in |
---|
1535 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1537 | | -silent | --silent | --silen | --sile | --sil) |
---|
1538 | continue ;; |
---|
1539 | *\'*) |
---|
1540 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1541 | esac |
---|
1542 | case $ac_pass in |
---|
1543 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1544 | 2) |
---|
1545 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1546 | if test $ac_must_keep_next = true; then |
---|
1547 | ac_must_keep_next=false # Got value, back to normal. |
---|
1548 | else |
---|
1549 | case $ac_arg in |
---|
1550 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1551 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1552 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1553 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1554 | case "$ac_configure_args0 " in |
---|
1555 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1556 | esac |
---|
1557 | ;; |
---|
1558 | -* ) ac_must_keep_next=true ;; |
---|
1559 | esac |
---|
1560 | fi |
---|
1561 | ac_configure_args="$ac_configure_args '$ac_arg'" |
---|
1562 | ;; |
---|
1563 | esac |
---|
1564 | done |
---|
1565 | done |
---|
1566 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1567 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1568 | |
---|
1569 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1570 | # config.log. We remove comments because anyway the quotes in there |
---|
1571 | # would cause problems or look ugly. |
---|
1572 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1573 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1574 | trap 'exit_status=$? |
---|
1575 | # Save into config.log some information that might help in debugging. |
---|
1576 | { |
---|
1577 | echo |
---|
1578 | |
---|
1579 | cat <<\_ASBOX |
---|
1580 | ## ---------------- ## |
---|
1581 | ## Cache variables. ## |
---|
1582 | ## ---------------- ## |
---|
1583 | _ASBOX |
---|
1584 | echo |
---|
1585 | # The following way of writing the cache mishandles newlines in values, |
---|
1586 | ( |
---|
1587 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1588 | eval ac_val=\$$ac_var |
---|
1589 | case $ac_val in #( |
---|
1590 | *${as_nl}*) |
---|
1591 | case $ac_var in #( |
---|
1592 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
1593 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
1594 | esac |
---|
1595 | case $ac_var in #( |
---|
1596 | _ | IFS | as_nl) ;; #( |
---|
1597 | *) $as_unset $ac_var ;; |
---|
1598 | esac ;; |
---|
1599 | esac |
---|
1600 | done |
---|
1601 | (set) 2>&1 | |
---|
1602 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1603 | *${as_nl}ac_space=\ *) |
---|
1604 | sed -n \ |
---|
1605 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1606 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1607 | ;; #( |
---|
1608 | *) |
---|
1609 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1610 | ;; |
---|
1611 | esac | |
---|
1612 | sort |
---|
1613 | ) |
---|
1614 | echo |
---|
1615 | |
---|
1616 | cat <<\_ASBOX |
---|
1617 | ## ----------------- ## |
---|
1618 | ## Output variables. ## |
---|
1619 | ## ----------------- ## |
---|
1620 | _ASBOX |
---|
1621 | echo |
---|
1622 | for ac_var in $ac_subst_vars |
---|
1623 | do |
---|
1624 | eval ac_val=\$$ac_var |
---|
1625 | case $ac_val in |
---|
1626 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1627 | esac |
---|
1628 | echo "$ac_var='\''$ac_val'\''" |
---|
1629 | done | sort |
---|
1630 | echo |
---|
1631 | |
---|
1632 | if test -n "$ac_subst_files"; then |
---|
1633 | cat <<\_ASBOX |
---|
1634 | ## ------------------- ## |
---|
1635 | ## File substitutions. ## |
---|
1636 | ## ------------------- ## |
---|
1637 | _ASBOX |
---|
1638 | echo |
---|
1639 | for ac_var in $ac_subst_files |
---|
1640 | do |
---|
1641 | eval ac_val=\$$ac_var |
---|
1642 | case $ac_val in |
---|
1643 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1644 | esac |
---|
1645 | echo "$ac_var='\''$ac_val'\''" |
---|
1646 | done | sort |
---|
1647 | echo |
---|
1648 | fi |
---|
1649 | |
---|
1650 | if test -s confdefs.h; then |
---|
1651 | cat <<\_ASBOX |
---|
1652 | ## ----------- ## |
---|
1653 | ## confdefs.h. ## |
---|
1654 | ## ----------- ## |
---|
1655 | _ASBOX |
---|
1656 | echo |
---|
1657 | cat confdefs.h |
---|
1658 | echo |
---|
1659 | fi |
---|
1660 | test "$ac_signal" != 0 && |
---|
1661 | echo "$as_me: caught signal $ac_signal" |
---|
1662 | echo "$as_me: exit $exit_status" |
---|
1663 | } >&5 |
---|
1664 | rm -f core *.core core.conftest.* && |
---|
1665 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1666 | exit $exit_status |
---|
1667 | ' 0 |
---|
1668 | for ac_signal in 1 2 13 15; do |
---|
1669 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1670 | done |
---|
1671 | ac_signal=0 |
---|
1672 | |
---|
1673 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1674 | rm -f -r conftest* confdefs.h |
---|
1675 | |
---|
1676 | # Predefined preprocessor variables. |
---|
1677 | |
---|
1678 | cat >>confdefs.h <<_ACEOF |
---|
1679 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1680 | _ACEOF |
---|
1681 | |
---|
1682 | |
---|
1683 | cat >>confdefs.h <<_ACEOF |
---|
1684 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1685 | _ACEOF |
---|
1686 | |
---|
1687 | |
---|
1688 | cat >>confdefs.h <<_ACEOF |
---|
1689 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1690 | _ACEOF |
---|
1691 | |
---|
1692 | |
---|
1693 | cat >>confdefs.h <<_ACEOF |
---|
1694 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1695 | _ACEOF |
---|
1696 | |
---|
1697 | |
---|
1698 | cat >>confdefs.h <<_ACEOF |
---|
1699 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1700 | _ACEOF |
---|
1701 | |
---|
1702 | |
---|
1703 | # Let the site file select an alternate cache file if it wants to. |
---|
1704 | # Prefer explicitly selected file to automatically selected ones. |
---|
1705 | if test -n "$CONFIG_SITE"; then |
---|
1706 | set x "$CONFIG_SITE" |
---|
1707 | elif test "x$prefix" != xNONE; then |
---|
1708 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
---|
1709 | else |
---|
1710 | set x "$ac_default_prefix/share/config.site" \ |
---|
1711 | "$ac_default_prefix/etc/config.site" |
---|
1712 | fi |
---|
1713 | shift |
---|
1714 | for ac_site_file |
---|
1715 | do |
---|
1716 | if test -r "$ac_site_file"; then |
---|
1717 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1718 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1719 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1720 | . "$ac_site_file" |
---|
1721 | fi |
---|
1722 | done |
---|
1723 | |
---|
1724 | if test -r "$cache_file"; then |
---|
1725 | # Some versions of bash will fail to source /dev/null (special |
---|
1726 | # files actually), so we avoid doing that. |
---|
1727 | if test -f "$cache_file"; then |
---|
1728 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1729 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1730 | case $cache_file in |
---|
1731 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
1732 | *) . "./$cache_file";; |
---|
1733 | esac |
---|
1734 | fi |
---|
1735 | else |
---|
1736 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1737 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1738 | >$cache_file |
---|
1739 | fi |
---|
1740 | |
---|
1741 | # Check that the precious variables saved in the cache have kept the same |
---|
1742 | # value. |
---|
1743 | ac_cache_corrupted=false |
---|
1744 | for ac_var in $ac_precious_vars; do |
---|
1745 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1746 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1747 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
1748 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
1749 | case $ac_old_set,$ac_new_set in |
---|
1750 | set,) |
---|
1751 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1752 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1753 | ac_cache_corrupted=: ;; |
---|
1754 | ,set) |
---|
1755 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1756 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1757 | ac_cache_corrupted=: ;; |
---|
1758 | ,);; |
---|
1759 | *) |
---|
1760 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1761 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1762 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1763 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1764 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1765 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1766 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1767 | ac_cache_corrupted=: |
---|
1768 | fi;; |
---|
1769 | esac |
---|
1770 | # Pass precious variables to config.status. |
---|
1771 | if test "$ac_new_set" = set; then |
---|
1772 | case $ac_new_val in |
---|
1773 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1774 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1775 | esac |
---|
1776 | case " $ac_configure_args " in |
---|
1777 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1778 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1779 | esac |
---|
1780 | fi |
---|
1781 | done |
---|
1782 | if $ac_cache_corrupted; then |
---|
1783 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1784 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1785 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1786 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1787 | { (exit 1); exit 1; }; } |
---|
1788 | fi |
---|
1789 | |
---|
1790 | |
---|
1791 | |
---|
1792 | |
---|
1793 | |
---|
1794 | |
---|
1795 | |
---|
1796 | |
---|
1797 | |
---|
1798 | |
---|
1799 | |
---|
1800 | |
---|
1801 | |
---|
1802 | |
---|
1803 | |
---|
1804 | |
---|
1805 | |
---|
1806 | |
---|
1807 | |
---|
1808 | |
---|
1809 | |
---|
1810 | |
---|
1811 | |
---|
1812 | |
---|
1813 | |
---|
1814 | ac_ext=c |
---|
1815 | ac_cpp='$CPP $CPPFLAGS' |
---|
1816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1819 | |
---|
1820 | |
---|
1821 | ac_config_headers="$ac_config_headers advance/lib/config.h:advance/lib/config.hin" |
---|
1822 | |
---|
1823 | ac_aux_dir= |
---|
1824 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
1825 | if test -f "$ac_dir/install-sh"; then |
---|
1826 | ac_aux_dir=$ac_dir |
---|
1827 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1828 | break |
---|
1829 | elif test -f "$ac_dir/install.sh"; then |
---|
1830 | ac_aux_dir=$ac_dir |
---|
1831 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1832 | break |
---|
1833 | elif test -f "$ac_dir/shtool"; then |
---|
1834 | ac_aux_dir=$ac_dir |
---|
1835 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1836 | break |
---|
1837 | fi |
---|
1838 | done |
---|
1839 | if test -z "$ac_aux_dir"; then |
---|
1840 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
---|
1841 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
---|
1842 | { (exit 1); exit 1; }; } |
---|
1843 | fi |
---|
1844 | |
---|
1845 | # These three variables are undocumented and unsupported, |
---|
1846 | # and are intended to be withdrawn in a future Autoconf release. |
---|
1847 | # They can cause serious problems if a builder's source tree is in a directory |
---|
1848 | # whose full name contains unusual characters. |
---|
1849 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
1850 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
1851 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
1852 | |
---|
1853 | |
---|
1854 | # Make sure we can run config.sub. |
---|
1855 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
1856 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
---|
1857 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
---|
1858 | { (exit 1); exit 1; }; } |
---|
1859 | |
---|
1860 | { echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1861 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
---|
1862 | if test "${ac_cv_build+set}" = set; then |
---|
1863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1864 | else |
---|
1865 | ac_build_alias=$build_alias |
---|
1866 | test "x$ac_build_alias" = x && |
---|
1867 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
1868 | test "x$ac_build_alias" = x && |
---|
1869 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1870 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1871 | { (exit 1); exit 1; }; } |
---|
1872 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
1873 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
---|
1874 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
---|
1875 | { (exit 1); exit 1; }; } |
---|
1876 | |
---|
1877 | fi |
---|
1878 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1879 | echo "${ECHO_T}$ac_cv_build" >&6; } |
---|
1880 | case $ac_cv_build in |
---|
1881 | *-*-*) ;; |
---|
1882 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
---|
1883 | echo "$as_me: error: invalid value of canonical build" >&2;} |
---|
1884 | { (exit 1); exit 1; }; };; |
---|
1885 | esac |
---|
1886 | build=$ac_cv_build |
---|
1887 | ac_save_IFS=$IFS; IFS='-' |
---|
1888 | set x $ac_cv_build |
---|
1889 | shift |
---|
1890 | build_cpu=$1 |
---|
1891 | build_vendor=$2 |
---|
1892 | shift; shift |
---|
1893 | # Remember, the first character of IFS is used to create $*, |
---|
1894 | # except with old shells: |
---|
1895 | build_os=$* |
---|
1896 | IFS=$ac_save_IFS |
---|
1897 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
1898 | |
---|
1899 | |
---|
1900 | { echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1901 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
---|
1902 | if test "${ac_cv_host+set}" = set; then |
---|
1903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1904 | else |
---|
1905 | if test "x$host_alias" = x; then |
---|
1906 | ac_cv_host=$ac_cv_build |
---|
1907 | else |
---|
1908 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
1909 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
---|
1910 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
---|
1911 | { (exit 1); exit 1; }; } |
---|
1912 | fi |
---|
1913 | |
---|
1914 | fi |
---|
1915 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1916 | echo "${ECHO_T}$ac_cv_host" >&6; } |
---|
1917 | case $ac_cv_host in |
---|
1918 | *-*-*) ;; |
---|
1919 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
---|
1920 | echo "$as_me: error: invalid value of canonical host" >&2;} |
---|
1921 | { (exit 1); exit 1; }; };; |
---|
1922 | esac |
---|
1923 | host=$ac_cv_host |
---|
1924 | ac_save_IFS=$IFS; IFS='-' |
---|
1925 | set x $ac_cv_host |
---|
1926 | shift |
---|
1927 | host_cpu=$1 |
---|
1928 | host_vendor=$2 |
---|
1929 | shift; shift |
---|
1930 | # Remember, the first character of IFS is used to create $*, |
---|
1931 | # except with old shells: |
---|
1932 | host_os=$* |
---|
1933 | IFS=$ac_save_IFS |
---|
1934 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
1935 | |
---|
1936 | |
---|
1937 | |
---|
1938 | |
---|
1939 | |
---|
1940 | # Checks for system. |
---|
1941 | case "$host" in |
---|
1942 | *-*-linux*) |
---|
1943 | ac_system=unix |
---|
1944 | ac_host=linux |
---|
1945 | ac_host_cflags= |
---|
1946 | ac_host_ldflags= |
---|
1947 | ASMFLAGS="-f elf" |
---|
1948 | |
---|
1949 | CFLAGS_FOR_BUILD="-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_ELF -DUSE_OS_UNIX" |
---|
1950 | |
---|
1951 | |
---|
1952 | ;; |
---|
1953 | *-*-darwin*) |
---|
1954 | ac_system=unix |
---|
1955 | ac_host=darwin |
---|
1956 | ac_host_cflags=-no-cpp-precomp |
---|
1957 | ac_host_ldflags= |
---|
1958 | ASMFLAGS="" |
---|
1959 | |
---|
1960 | CFLAGS_FOR_BUILD="-O0" |
---|
1961 | |
---|
1962 | |
---|
1963 | ;; |
---|
1964 | *-*-cygwin* | *-*-mingw32*) |
---|
1965 | ac_system=windows |
---|
1966 | ac_host=windows |
---|
1967 | ac_host_cflags= |
---|
1968 | ac_host_ldflags= |
---|
1969 | ASMFLAGS="-f coff" |
---|
1970 | |
---|
1971 | CFLAGS_FOR_BUILD="-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_COFF -DUSE_OS_WINDOWS" |
---|
1972 | |
---|
1973 | EXE=.exe |
---|
1974 | |
---|
1975 | ;; |
---|
1976 | *-*-msdos*) |
---|
1977 | ac_system=dos |
---|
1978 | ac_host=dos |
---|
1979 | ac_host_cflags= |
---|
1980 | ac_host_ldflags= |
---|
1981 | ASMFLAGS="-f coff" |
---|
1982 | |
---|
1983 | CFLAGS_FOR_BUILD="-O0 -DUSE_COMPILER_GNUC -DUSE_OBJ_COFF -DUSE_OS_DOS" |
---|
1984 | |
---|
1985 | EXE=.exe |
---|
1986 | |
---|
1987 | ;; |
---|
1988 | *) |
---|
1989 | ac_system=unix |
---|
1990 | ac_host=generic |
---|
1991 | ac_host_cflags= |
---|
1992 | ac_host_ldflags= |
---|
1993 | ASMFLAGS="" |
---|
1994 | |
---|
1995 | CFLAGS_FOR_BUILD="-O0" |
---|
1996 | |
---|
1997 | |
---|
1998 | ;; |
---|
1999 | esac |
---|
2000 | CONF_SYSTEM=$ac_system |
---|
2001 | |
---|
2002 | CONF_HOST=$ac_host |
---|
2003 | |
---|
2004 | |
---|
2005 | case "$build" in |
---|
2006 | *-*-linux*) |
---|
2007 | ac_build=linux |
---|
2008 | |
---|
2009 | ;; |
---|
2010 | *-*-darwin*) |
---|
2011 | ac_build=darwin |
---|
2012 | |
---|
2013 | ;; |
---|
2014 | *-*-cygwin* | *-*-mingw32*) |
---|
2015 | ac_build=windows |
---|
2016 | EXE_FOR_BUILD=.exe |
---|
2017 | |
---|
2018 | ;; |
---|
2019 | *-*-msdos*) |
---|
2020 | ac_build=dos |
---|
2021 | EXE_FOR_BUILD=.exe |
---|
2022 | |
---|
2023 | ;; |
---|
2024 | *) |
---|
2025 | ac_build=unix |
---|
2026 | |
---|
2027 | ;; |
---|
2028 | esac |
---|
2029 | CONF_BUILD=$ac_build |
---|
2030 | |
---|
2031 | |
---|
2032 | if test -z "$CFLAGS" ; then |
---|
2033 | ac_auto_cflags=yes |
---|
2034 | else |
---|
2035 | ac_auto_cflags=no |
---|
2036 | fi |
---|
2037 | if test -z "$LDFLAGS" ; then |
---|
2038 | ac_auto_ldflags=yes |
---|
2039 | else |
---|
2040 | ac_auto_ldflags=no |
---|
2041 | fi |
---|
2042 | |
---|
2043 | # Checks for programs. |
---|
2044 | ac_ext=c |
---|
2045 | ac_cpp='$CPP $CPPFLAGS' |
---|
2046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2049 | if test -n "$ac_tool_prefix"; then |
---|
2050 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2051 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2052 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2054 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2056 | else |
---|
2057 | if test -n "$CC"; then |
---|
2058 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2059 | else |
---|
2060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2061 | for as_dir in $PATH |
---|
2062 | do |
---|
2063 | IFS=$as_save_IFS |
---|
2064 | test -z "$as_dir" && as_dir=. |
---|
2065 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2067 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2069 | break 2 |
---|
2070 | fi |
---|
2071 | done |
---|
2072 | done |
---|
2073 | IFS=$as_save_IFS |
---|
2074 | |
---|
2075 | fi |
---|
2076 | fi |
---|
2077 | CC=$ac_cv_prog_CC |
---|
2078 | if test -n "$CC"; then |
---|
2079 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2080 | echo "${ECHO_T}$CC" >&6; } |
---|
2081 | else |
---|
2082 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2083 | echo "${ECHO_T}no" >&6; } |
---|
2084 | fi |
---|
2085 | |
---|
2086 | |
---|
2087 | fi |
---|
2088 | if test -z "$ac_cv_prog_CC"; then |
---|
2089 | ac_ct_CC=$CC |
---|
2090 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2091 | set dummy gcc; ac_word=$2 |
---|
2092 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2094 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2096 | else |
---|
2097 | if test -n "$ac_ct_CC"; then |
---|
2098 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2099 | else |
---|
2100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2101 | for as_dir in $PATH |
---|
2102 | do |
---|
2103 | IFS=$as_save_IFS |
---|
2104 | test -z "$as_dir" && as_dir=. |
---|
2105 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2107 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2108 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2109 | break 2 |
---|
2110 | fi |
---|
2111 | done |
---|
2112 | done |
---|
2113 | IFS=$as_save_IFS |
---|
2114 | |
---|
2115 | fi |
---|
2116 | fi |
---|
2117 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2118 | if test -n "$ac_ct_CC"; then |
---|
2119 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2120 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2121 | else |
---|
2122 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2123 | echo "${ECHO_T}no" >&6; } |
---|
2124 | fi |
---|
2125 | |
---|
2126 | if test "x$ac_ct_CC" = x; then |
---|
2127 | CC="" |
---|
2128 | else |
---|
2129 | case $cross_compiling:$ac_tool_warned in |
---|
2130 | yes:) |
---|
2131 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2132 | whose name does not start with the host triplet. If you think this |
---|
2133 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2134 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2135 | whose name does not start with the host triplet. If you think this |
---|
2136 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2137 | ac_tool_warned=yes ;; |
---|
2138 | esac |
---|
2139 | CC=$ac_ct_CC |
---|
2140 | fi |
---|
2141 | else |
---|
2142 | CC="$ac_cv_prog_CC" |
---|
2143 | fi |
---|
2144 | |
---|
2145 | if test -z "$CC"; then |
---|
2146 | if test -n "$ac_tool_prefix"; then |
---|
2147 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2148 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2151 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2153 | else |
---|
2154 | if test -n "$CC"; then |
---|
2155 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2156 | else |
---|
2157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2158 | for as_dir in $PATH |
---|
2159 | do |
---|
2160 | IFS=$as_save_IFS |
---|
2161 | test -z "$as_dir" && as_dir=. |
---|
2162 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2164 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2166 | break 2 |
---|
2167 | fi |
---|
2168 | done |
---|
2169 | done |
---|
2170 | IFS=$as_save_IFS |
---|
2171 | |
---|
2172 | fi |
---|
2173 | fi |
---|
2174 | CC=$ac_cv_prog_CC |
---|
2175 | if test -n "$CC"; then |
---|
2176 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2177 | echo "${ECHO_T}$CC" >&6; } |
---|
2178 | else |
---|
2179 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2180 | echo "${ECHO_T}no" >&6; } |
---|
2181 | fi |
---|
2182 | |
---|
2183 | |
---|
2184 | fi |
---|
2185 | fi |
---|
2186 | if test -z "$CC"; then |
---|
2187 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2188 | set dummy cc; ac_word=$2 |
---|
2189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2191 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2193 | else |
---|
2194 | if test -n "$CC"; then |
---|
2195 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2196 | else |
---|
2197 | ac_prog_rejected=no |
---|
2198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2199 | for as_dir in $PATH |
---|
2200 | do |
---|
2201 | IFS=$as_save_IFS |
---|
2202 | test -z "$as_dir" && as_dir=. |
---|
2203 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2205 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2206 | ac_prog_rejected=yes |
---|
2207 | continue |
---|
2208 | fi |
---|
2209 | ac_cv_prog_CC="cc" |
---|
2210 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2211 | break 2 |
---|
2212 | fi |
---|
2213 | done |
---|
2214 | done |
---|
2215 | IFS=$as_save_IFS |
---|
2216 | |
---|
2217 | if test $ac_prog_rejected = yes; then |
---|
2218 | # We found a bogon in the path, so make sure we never use it. |
---|
2219 | set dummy $ac_cv_prog_CC |
---|
2220 | shift |
---|
2221 | if test $# != 0; then |
---|
2222 | # We chose a different compiler from the bogus one. |
---|
2223 | # However, it has the same basename, so the bogon will be chosen |
---|
2224 | # first if we set CC to just the basename; use the full file name. |
---|
2225 | shift |
---|
2226 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2227 | fi |
---|
2228 | fi |
---|
2229 | fi |
---|
2230 | fi |
---|
2231 | CC=$ac_cv_prog_CC |
---|
2232 | if test -n "$CC"; then |
---|
2233 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2234 | echo "${ECHO_T}$CC" >&6; } |
---|
2235 | else |
---|
2236 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2237 | echo "${ECHO_T}no" >&6; } |
---|
2238 | fi |
---|
2239 | |
---|
2240 | |
---|
2241 | fi |
---|
2242 | if test -z "$CC"; then |
---|
2243 | if test -n "$ac_tool_prefix"; then |
---|
2244 | for ac_prog in cl.exe |
---|
2245 | do |
---|
2246 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2247 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2248 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2250 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2252 | else |
---|
2253 | if test -n "$CC"; then |
---|
2254 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2255 | else |
---|
2256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2257 | for as_dir in $PATH |
---|
2258 | do |
---|
2259 | IFS=$as_save_IFS |
---|
2260 | test -z "$as_dir" && as_dir=. |
---|
2261 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2262 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2263 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2265 | break 2 |
---|
2266 | fi |
---|
2267 | done |
---|
2268 | done |
---|
2269 | IFS=$as_save_IFS |
---|
2270 | |
---|
2271 | fi |
---|
2272 | fi |
---|
2273 | CC=$ac_cv_prog_CC |
---|
2274 | if test -n "$CC"; then |
---|
2275 | { echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2276 | echo "${ECHO_T}$CC" >&6; } |
---|
2277 | else |
---|
2278 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2279 | echo "${ECHO_T}no" >&6; } |
---|
2280 | fi |
---|
2281 | |
---|
2282 | |
---|
2283 | test -n "$CC" && break |
---|
2284 | done |
---|
2285 | fi |
---|
2286 | if test -z "$CC"; then |
---|
2287 | ac_ct_CC=$CC |
---|
2288 | for ac_prog in cl.exe |
---|
2289 | do |
---|
2290 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2291 | set dummy $ac_prog; ac_word=$2 |
---|
2292 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2294 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2296 | else |
---|
2297 | if test -n "$ac_ct_CC"; then |
---|
2298 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2299 | else |
---|
2300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2301 | for as_dir in $PATH |
---|
2302 | do |
---|
2303 | IFS=$as_save_IFS |
---|
2304 | test -z "$as_dir" && as_dir=. |
---|
2305 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2307 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2309 | break 2 |
---|
2310 | fi |
---|
2311 | done |
---|
2312 | done |
---|
2313 | IFS=$as_save_IFS |
---|
2314 | |
---|
2315 | fi |
---|
2316 | fi |
---|
2317 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2318 | if test -n "$ac_ct_CC"; then |
---|
2319 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2320 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
---|
2321 | else |
---|
2322 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
2323 | echo "${ECHO_T}no" >&6; } |
---|
2324 | fi |
---|
2325 | |
---|
2326 | |
---|
2327 | test -n "$ac_ct_CC" && break |
---|
2328 | done |
---|
2329 | |
---|
2330 | if test "x$ac_ct_CC" = x; then |
---|
2331 | CC="" |
---|
2332 | else |
---|
2333 | case $cross_compiling:$ac_tool_warned in |
---|
2334 | yes:) |
---|
2335 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2336 | whose name does not start with the host triplet. If you think this |
---|
2337 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
2338 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
2339 | whose name does not start with the host triplet. If you think this |
---|
2340 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
2341 | ac_tool_warned=yes ;; |
---|
2342 | esac |
---|
2343 | CC=$ac_ct_CC |
---|
2344 | fi |
---|
2345 | fi |
---|
2346 | |
---|
2347 | fi |
---|
2348 | |
---|
2349 | |
---|
2350 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2351 | See \`config.log' for more details." >&5 |
---|
2352 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2353 | See \`config.log' for more details." >&2;} |
---|
2354 | { (exit 1); exit 1; }; } |
---|
2355 | |
---|
2356 | # Provide some information about the compiler. |
---|
2357 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
---|
2358 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2359 | { (ac_try="$ac_compiler --version >&5" |
---|
2360 | case "(($ac_try" in |
---|
2361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2362 | *) ac_try_echo=$ac_try;; |
---|
2363 | esac |
---|
2364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2365 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
2366 | ac_status=$? |
---|
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2368 | (exit $ac_status); } |
---|
2369 | { (ac_try="$ac_compiler -v >&5" |
---|
2370 | case "(($ac_try" in |
---|
2371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2372 | *) ac_try_echo=$ac_try;; |
---|
2373 | esac |
---|
2374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2375 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
2376 | ac_status=$? |
---|
2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2378 | (exit $ac_status); } |
---|
2379 | { (ac_try="$ac_compiler -V >&5" |
---|
2380 | case "(($ac_try" in |
---|
2381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2382 | *) ac_try_echo=$ac_try;; |
---|
2383 | esac |
---|
2384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2385 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
2386 | ac_status=$? |
---|
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2388 | (exit $ac_status); } |
---|
2389 | |
---|
2390 | cat >conftest.$ac_ext <<_ACEOF |
---|
2391 | /* confdefs.h. */ |
---|
2392 | _ACEOF |
---|
2393 | cat confdefs.h >>conftest.$ac_ext |
---|
2394 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2395 | /* end confdefs.h. */ |
---|
2396 | |
---|
2397 | int |
---|
2398 | main () |
---|
2399 | { |
---|
2400 | |
---|
2401 | ; |
---|
2402 | return 0; |
---|
2403 | } |
---|
2404 | _ACEOF |
---|
2405 | ac_clean_files_save=$ac_clean_files |
---|
2406 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
2407 | # Try to create an executable without -o first, disregard a.out. |
---|
2408 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2409 | # of exeext. |
---|
2410 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
2411 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
---|
2412 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2413 | # |
---|
2414 | # List of possible output files, starting from the most likely. |
---|
2415 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
---|
2416 | # only as a last resort. b.out is created by i960 compilers. |
---|
2417 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
---|
2418 | # |
---|
2419 | # The IRIX 6 linker writes into existing files which may not be |
---|
2420 | # executable, retaining their permissions. Remove them first so a |
---|
2421 | # subsequent execution test works. |
---|
2422 | ac_rmfiles= |
---|
2423 | for ac_file in $ac_files |
---|
2424 | do |
---|
2425 | case $ac_file in |
---|
2426 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
2427 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2428 | esac |
---|
2429 | done |
---|
2430 | rm -f $ac_rmfiles |
---|
2431 | |
---|
2432 | if { (ac_try="$ac_link_default" |
---|
2433 | case "(($ac_try" in |
---|
2434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2435 | *) ac_try_echo=$ac_try;; |
---|
2436 | esac |
---|
2437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2438 | (eval "$ac_link_default") 2>&5 |
---|
2439 | ac_status=$? |
---|
2440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2441 | (exit $ac_status); }; then |
---|
2442 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2443 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2444 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2445 | # so that the user can short-circuit this test for compilers unknown to |
---|
2446 | # Autoconf. |
---|
2447 | for ac_file in $ac_files '' |
---|
2448 | do |
---|
2449 | test -f "$ac_file" || continue |
---|
2450 | case $ac_file in |
---|
2451 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
---|
2452 | ;; |
---|
2453 | [ab].out ) |
---|
2454 | # We found the default executable, but exeext='' is most |
---|
2455 | # certainly right. |
---|
2456 | break;; |
---|
2457 | *.* ) |
---|
2458 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2459 | then :; else |
---|
2460 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2461 | fi |
---|
2462 | # We set ac_cv_exeext here because the later test for it is not |
---|
2463 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2464 | # argument, so we may need to know it at that point already. |
---|
2465 | # Even if this section looks crufty: it has the advantage of |
---|
2466 | # actually working. |
---|
2467 | break;; |
---|
2468 | * ) |
---|
2469 | break;; |
---|
2470 | esac |
---|
2471 | done |
---|
2472 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2473 | |
---|
2474 | else |
---|
2475 | ac_file='' |
---|
2476 | fi |
---|
2477 | |
---|
2478 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2479 | echo "${ECHO_T}$ac_file" >&6; } |
---|
2480 | if test -z "$ac_file"; then |
---|
2481 | echo "$as_me: failed program was:" >&5 |
---|
2482 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2483 | |
---|
2484 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
2485 | See \`config.log' for more details." >&5 |
---|
2486 | echo "$as_me: error: C compiler cannot create executables |
---|
2487 | See \`config.log' for more details." >&2;} |
---|
2488 | { (exit 77); exit 77; }; } |
---|
2489 | fi |
---|
2490 | |
---|
2491 | ac_exeext=$ac_cv_exeext |
---|
2492 | |
---|
2493 | # Check that the compiler produces executables we can run. If not, either |
---|
2494 | # the compiler is broken, or we cross compile. |
---|
2495 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
2496 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
---|
2497 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2498 | # If not cross compiling, check that we can run a simple program. |
---|
2499 | if test "$cross_compiling" != yes; then |
---|
2500 | if { ac_try='./$ac_file' |
---|
2501 | { (case "(($ac_try" in |
---|
2502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2503 | *) ac_try_echo=$ac_try;; |
---|
2504 | esac |
---|
2505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2506 | (eval "$ac_try") 2>&5 |
---|
2507 | ac_status=$? |
---|
2508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2509 | (exit $ac_status); }; }; then |
---|
2510 | cross_compiling=no |
---|
2511 | else |
---|
2512 | if test "$cross_compiling" = maybe; then |
---|
2513 | cross_compiling=yes |
---|
2514 | else |
---|
2515 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
2516 | If you meant to cross compile, use \`--host'. |
---|
2517 | See \`config.log' for more details." >&5 |
---|
2518 | echo "$as_me: error: cannot run C compiled programs. |
---|
2519 | If you meant to cross compile, use \`--host'. |
---|
2520 | See \`config.log' for more details." >&2;} |
---|
2521 | { (exit 1); exit 1; }; } |
---|
2522 | fi |
---|
2523 | fi |
---|
2524 | fi |
---|
2525 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
2526 | echo "${ECHO_T}yes" >&6; } |
---|
2527 | |
---|
2528 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2529 | ac_clean_files=$ac_clean_files_save |
---|
2530 | # Check that the compiler produces executables we can run. If not, either |
---|
2531 | # the compiler is broken, or we cross compile. |
---|
2532 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2533 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
---|
2534 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2535 | echo "${ECHO_T}$cross_compiling" >&6; } |
---|
2536 | |
---|
2537 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2538 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
---|
2539 | if { (ac_try="$ac_link" |
---|
2540 | case "(($ac_try" in |
---|
2541 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2542 | *) ac_try_echo=$ac_try;; |
---|
2543 | esac |
---|
2544 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2545 | (eval "$ac_link") 2>&5 |
---|
2546 | ac_status=$? |
---|
2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2548 | (exit $ac_status); }; then |
---|
2549 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2550 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2551 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2552 | # `rm'. |
---|
2553 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2554 | test -f "$ac_file" || continue |
---|
2555 | case $ac_file in |
---|
2556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
---|
2557 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2558 | break;; |
---|
2559 | * ) break;; |
---|
2560 | esac |
---|
2561 | done |
---|
2562 | else |
---|
2563 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2564 | See \`config.log' for more details." >&5 |
---|
2565 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2566 | See \`config.log' for more details." >&2;} |
---|
2567 | { (exit 1); exit 1; }; } |
---|
2568 | fi |
---|
2569 | |
---|
2570 | rm -f conftest$ac_cv_exeext |
---|
2571 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2572 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
---|
2573 | |
---|
2574 | rm -f conftest.$ac_ext |
---|
2575 | EXEEXT=$ac_cv_exeext |
---|
2576 | ac_exeext=$EXEEXT |
---|
2577 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2578 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
---|
2579 | if test "${ac_cv_objext+set}" = set; then |
---|
2580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2581 | else |
---|
2582 | cat >conftest.$ac_ext <<_ACEOF |
---|
2583 | /* confdefs.h. */ |
---|
2584 | _ACEOF |
---|
2585 | cat confdefs.h >>conftest.$ac_ext |
---|
2586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2587 | /* end confdefs.h. */ |
---|
2588 | |
---|
2589 | int |
---|
2590 | main () |
---|
2591 | { |
---|
2592 | |
---|
2593 | ; |
---|
2594 | return 0; |
---|
2595 | } |
---|
2596 | _ACEOF |
---|
2597 | rm -f conftest.o conftest.obj |
---|
2598 | if { (ac_try="$ac_compile" |
---|
2599 | case "(($ac_try" in |
---|
2600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2601 | *) ac_try_echo=$ac_try;; |
---|
2602 | esac |
---|
2603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2604 | (eval "$ac_compile") 2>&5 |
---|
2605 | ac_status=$? |
---|
2606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2607 | (exit $ac_status); }; then |
---|
2608 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
2609 | test -f "$ac_file" || continue; |
---|
2610 | case $ac_file in |
---|
2611 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
---|
2612 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2613 | break;; |
---|
2614 | esac |
---|
2615 | done |
---|
2616 | else |
---|
2617 | echo "$as_me: failed program was:" >&5 |
---|
2618 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2619 | |
---|
2620 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2621 | See \`config.log' for more details." >&5 |
---|
2622 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2623 | See \`config.log' for more details." >&2;} |
---|
2624 | { (exit 1); exit 1; }; } |
---|
2625 | fi |
---|
2626 | |
---|
2627 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2628 | fi |
---|
2629 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2630 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
---|
2631 | OBJEXT=$ac_cv_objext |
---|
2632 | ac_objext=$OBJEXT |
---|
2633 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2634 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
---|
2635 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2637 | else |
---|
2638 | cat >conftest.$ac_ext <<_ACEOF |
---|
2639 | /* confdefs.h. */ |
---|
2640 | _ACEOF |
---|
2641 | cat confdefs.h >>conftest.$ac_ext |
---|
2642 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2643 | /* end confdefs.h. */ |
---|
2644 | |
---|
2645 | int |
---|
2646 | main () |
---|
2647 | { |
---|
2648 | #ifndef __GNUC__ |
---|
2649 | choke me |
---|
2650 | #endif |
---|
2651 | |
---|
2652 | ; |
---|
2653 | return 0; |
---|
2654 | } |
---|
2655 | _ACEOF |
---|
2656 | rm -f conftest.$ac_objext |
---|
2657 | if { (ac_try="$ac_compile" |
---|
2658 | case "(($ac_try" in |
---|
2659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2660 | *) ac_try_echo=$ac_try;; |
---|
2661 | esac |
---|
2662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2663 | (eval "$ac_compile") 2>conftest.er1 |
---|
2664 | ac_status=$? |
---|
2665 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2666 | rm -f conftest.er1 |
---|
2667 | cat conftest.err >&5 |
---|
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2669 | (exit $ac_status); } && { |
---|
2670 | test -z "$ac_c_werror_flag" || |
---|
2671 | test ! -s conftest.err |
---|
2672 | } && test -s conftest.$ac_objext; then |
---|
2673 | ac_compiler_gnu=yes |
---|
2674 | else |
---|
2675 | echo "$as_me: failed program was:" >&5 |
---|
2676 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2677 | |
---|
2678 | ac_compiler_gnu=no |
---|
2679 | fi |
---|
2680 | |
---|
2681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2682 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2683 | |
---|
2684 | fi |
---|
2685 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2686 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
---|
2687 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2688 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2689 | ac_save_CFLAGS=$CFLAGS |
---|
2690 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2691 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
---|
2692 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2694 | else |
---|
2695 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
2696 | ac_c_werror_flag=yes |
---|
2697 | ac_cv_prog_cc_g=no |
---|
2698 | CFLAGS="-g" |
---|
2699 | cat >conftest.$ac_ext <<_ACEOF |
---|
2700 | /* confdefs.h. */ |
---|
2701 | _ACEOF |
---|
2702 | cat confdefs.h >>conftest.$ac_ext |
---|
2703 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2704 | /* end confdefs.h. */ |
---|
2705 | |
---|
2706 | int |
---|
2707 | main () |
---|
2708 | { |
---|
2709 | |
---|
2710 | ; |
---|
2711 | return 0; |
---|
2712 | } |
---|
2713 | _ACEOF |
---|
2714 | rm -f conftest.$ac_objext |
---|
2715 | if { (ac_try="$ac_compile" |
---|
2716 | case "(($ac_try" in |
---|
2717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2718 | *) ac_try_echo=$ac_try;; |
---|
2719 | esac |
---|
2720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2721 | (eval "$ac_compile") 2>conftest.er1 |
---|
2722 | ac_status=$? |
---|
2723 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2724 | rm -f conftest.er1 |
---|
2725 | cat conftest.err >&5 |
---|
2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2727 | (exit $ac_status); } && { |
---|
2728 | test -z "$ac_c_werror_flag" || |
---|
2729 | test ! -s conftest.err |
---|
2730 | } && test -s conftest.$ac_objext; then |
---|
2731 | ac_cv_prog_cc_g=yes |
---|
2732 | else |
---|
2733 | echo "$as_me: failed program was:" >&5 |
---|
2734 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2735 | |
---|
2736 | CFLAGS="" |
---|
2737 | cat >conftest.$ac_ext <<_ACEOF |
---|
2738 | /* confdefs.h. */ |
---|
2739 | _ACEOF |
---|
2740 | cat confdefs.h >>conftest.$ac_ext |
---|
2741 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2742 | /* end confdefs.h. */ |
---|
2743 | |
---|
2744 | int |
---|
2745 | main () |
---|
2746 | { |
---|
2747 | |
---|
2748 | ; |
---|
2749 | return 0; |
---|
2750 | } |
---|
2751 | _ACEOF |
---|
2752 | rm -f conftest.$ac_objext |
---|
2753 | if { (ac_try="$ac_compile" |
---|
2754 | case "(($ac_try" in |
---|
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2756 | *) ac_try_echo=$ac_try;; |
---|
2757 | esac |
---|
2758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2759 | (eval "$ac_compile") 2>conftest.er1 |
---|
2760 | ac_status=$? |
---|
2761 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2762 | rm -f conftest.er1 |
---|
2763 | cat conftest.err >&5 |
---|
2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2765 | (exit $ac_status); } && { |
---|
2766 | test -z "$ac_c_werror_flag" || |
---|
2767 | test ! -s conftest.err |
---|
2768 | } && test -s conftest.$ac_objext; then |
---|
2769 | : |
---|
2770 | else |
---|
2771 | echo "$as_me: failed program was:" >&5 |
---|
2772 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2773 | |
---|
2774 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2775 | CFLAGS="-g" |
---|
2776 | cat >conftest.$ac_ext <<_ACEOF |
---|
2777 | /* confdefs.h. */ |
---|
2778 | _ACEOF |
---|
2779 | cat confdefs.h >>conftest.$ac_ext |
---|
2780 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2781 | /* end confdefs.h. */ |
---|
2782 | |
---|
2783 | int |
---|
2784 | main () |
---|
2785 | { |
---|
2786 | |
---|
2787 | ; |
---|
2788 | return 0; |
---|
2789 | } |
---|
2790 | _ACEOF |
---|
2791 | rm -f conftest.$ac_objext |
---|
2792 | if { (ac_try="$ac_compile" |
---|
2793 | case "(($ac_try" in |
---|
2794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2795 | *) ac_try_echo=$ac_try;; |
---|
2796 | esac |
---|
2797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2798 | (eval "$ac_compile") 2>conftest.er1 |
---|
2799 | ac_status=$? |
---|
2800 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2801 | rm -f conftest.er1 |
---|
2802 | cat conftest.err >&5 |
---|
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2804 | (exit $ac_status); } && { |
---|
2805 | test -z "$ac_c_werror_flag" || |
---|
2806 | test ! -s conftest.err |
---|
2807 | } && test -s conftest.$ac_objext; then |
---|
2808 | ac_cv_prog_cc_g=yes |
---|
2809 | else |
---|
2810 | echo "$as_me: failed program was:" >&5 |
---|
2811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2812 | |
---|
2813 | |
---|
2814 | fi |
---|
2815 | |
---|
2816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2817 | fi |
---|
2818 | |
---|
2819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2820 | fi |
---|
2821 | |
---|
2822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2823 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
2824 | fi |
---|
2825 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2826 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
---|
2827 | if test "$ac_test_CFLAGS" = set; then |
---|
2828 | CFLAGS=$ac_save_CFLAGS |
---|
2829 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2830 | if test "$GCC" = yes; then |
---|
2831 | CFLAGS="-g -O2" |
---|
2832 | else |
---|
2833 | CFLAGS="-g" |
---|
2834 | fi |
---|
2835 | else |
---|
2836 | if test "$GCC" = yes; then |
---|
2837 | CFLAGS="-O2" |
---|
2838 | else |
---|
2839 | CFLAGS= |
---|
2840 | fi |
---|
2841 | fi |
---|
2842 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
---|
2843 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
---|
2844 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
---|
2845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2846 | else |
---|
2847 | ac_cv_prog_cc_c89=no |
---|
2848 | ac_save_CC=$CC |
---|
2849 | cat >conftest.$ac_ext <<_ACEOF |
---|
2850 | /* confdefs.h. */ |
---|
2851 | _ACEOF |
---|
2852 | cat confdefs.h >>conftest.$ac_ext |
---|
2853 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2854 | /* end confdefs.h. */ |
---|
2855 | #include <stdarg.h> |
---|
2856 | #include <stdio.h> |
---|
2857 | #include <sys/types.h> |
---|
2858 | #include <sys/stat.h> |
---|
2859 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2860 | struct buf { int x; }; |
---|
2861 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2862 | static char *e (p, i) |
---|
2863 | char **p; |
---|
2864 | int i; |
---|
2865 | { |
---|
2866 | return p[i]; |
---|
2867 | } |
---|
2868 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2869 | { |
---|
2870 | char *s; |
---|
2871 | va_list v; |
---|
2872 | va_start (v,p); |
---|
2873 | s = g (p, va_arg (v,int)); |
---|
2874 | va_end (v); |
---|
2875 | return s; |
---|
2876 | } |
---|
2877 | |
---|
2878 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
2879 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
2880 | These don't provoke an error unfortunately, instead are silently treated |
---|
2881 | as 'x'. The following induces an error, until -std is added to get |
---|
2882 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
2883 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
2884 | that's true only with -std. */ |
---|
2885 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
2886 | |
---|
2887 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
2888 | inside strings and character constants. */ |
---|
2889 | #define FOO(x) 'x' |
---|
2890 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
2891 | |
---|
2892 | int test (int i, double x); |
---|
2893 | struct s1 {int (*f) (int a);}; |
---|
2894 | struct s2 {int (*f) (double a);}; |
---|
2895 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2896 | int argc; |
---|
2897 | char **argv; |
---|
2898 | int |
---|
2899 | main () |
---|
2900 | { |
---|
2901 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2902 | ; |
---|
2903 | return 0; |
---|
2904 | } |
---|
2905 | _ACEOF |
---|
2906 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
2907 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2908 | do |
---|
2909 | CC="$ac_save_CC $ac_arg" |
---|
2910 | rm -f conftest.$ac_objext |
---|
2911 | if { (ac_try="$ac_compile" |
---|
2912 | case "(($ac_try" in |
---|
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2914 | *) ac_try_echo=$ac_try;; |
---|
2915 | esac |
---|
2916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
2917 | (eval "$ac_compile") 2>conftest.er1 |
---|
2918 | ac_status=$? |
---|
2919 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2920 | rm -f conftest.er1 |
---|
2921 | cat conftest.err >&5 |
---|
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2923 | (exit $ac_status); } && { |
---|
2924 | test -z "$ac_c_werror_flag" || |
---|
2925 | test ! -s conftest.err |
---|
2926 | } && test -s conftest.$ac_objext; then |
---|
2927 | ac_cv_prog_cc_c89=$ac_arg |
---|
2928 | else |
---|
2929 | echo "$as_me: failed program was:" >&5 |
---|
2930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2931 | |
---|
2932 | |
---|
2933 | fi |
---|
2934 | |
---|
2935 | rm -f core conftest.err conftest.$ac_objext |
---|
2936 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
2937 | done |
---|
2938 | rm -f conftest.$ac_ext |
---|
2939 | CC=$ac_save_CC |
---|
2940 | |
---|
2941 | fi |
---|
2942 | # AC_CACHE_VAL |
---|
2943 | case "x$ac_cv_prog_cc_c89" in |
---|
2944 | x) |
---|
2945 | { echo "$as_me:$LINENO: result: none needed" >&5 |
---|
2946 | echo "${ECHO_T}none needed" >&6; } ;; |
---|
2947 | xno) |
---|
2948 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
---|
2949 | echo "${ECHO_T}unsupported" >&6; } ;; |
---|
2950 | *) |
---|
2951 | CC="$CC $ac_cv_prog_cc_c89" |
---|
2952 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
---|
2953 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
---|
2954 | esac |
---|
2955 | |
---|
2956 | |
---|
2957 | ac_ext=c |
---|
2958 | ac_cpp='$CPP $CPPFLAGS' |
---|
2959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2962 | |
---|
2963 | ac_ext=cpp |
---|
2964 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
2965 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2966 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2967 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
2968 | if test -z "$CXX"; then |
---|
2969 | if test -n "$CCC"; then |
---|
2970 | CXX=$CCC |
---|
2971 | else |
---|
2972 | if test -n "$ac_tool_prefix"; then |
---|
2973 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
2974 | do |
---|
2975 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2976 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2977 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
2979 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
2980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2981 | else |
---|
2982 | if test -n "$CXX"; then |
---|
2983 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
2984 | else |
---|
2985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2986 | for as_dir in $PATH |
---|
2987 | do |
---|
2988 | IFS=$as_save_IFS |
---|
2989 | test -z "$as_dir" && as_dir=. |
---|
2990 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2992 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
2993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2994 | break 2 |
---|
2995 | fi |
---|
2996 | done |
---|
2997 | done |
---|
2998 | IFS=$as_save_IFS |
---|
2999 | |
---|
3000 | fi |
---|
3001 | fi |
---|
3002 | CXX=$ac_cv_prog_CXX |
---|
3003 | if test -n "$CXX"; then |
---|
3004 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
3005 | echo "${ECHO_T}$CXX" >&6; } |
---|
3006 | else |
---|
3007 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3008 | echo "${ECHO_T}no" >&6; } |
---|
3009 | fi |
---|
3010 | |
---|
3011 | |
---|
3012 | test -n "$CXX" && break |
---|
3013 | done |
---|
3014 | fi |
---|
3015 | if test -z "$CXX"; then |
---|
3016 | ac_ct_CXX=$CXX |
---|
3017 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
---|
3018 | do |
---|
3019 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3020 | set dummy $ac_prog; ac_word=$2 |
---|
3021 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3022 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3023 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
3024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3025 | else |
---|
3026 | if test -n "$ac_ct_CXX"; then |
---|
3027 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
3028 | else |
---|
3029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3030 | for as_dir in $PATH |
---|
3031 | do |
---|
3032 | IFS=$as_save_IFS |
---|
3033 | test -z "$as_dir" && as_dir=. |
---|
3034 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3036 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
3037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3038 | break 2 |
---|
3039 | fi |
---|
3040 | done |
---|
3041 | done |
---|
3042 | IFS=$as_save_IFS |
---|
3043 | |
---|
3044 | fi |
---|
3045 | fi |
---|
3046 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
3047 | if test -n "$ac_ct_CXX"; then |
---|
3048 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
3049 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
---|
3050 | else |
---|
3051 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3052 | echo "${ECHO_T}no" >&6; } |
---|
3053 | fi |
---|
3054 | |
---|
3055 | |
---|
3056 | test -n "$ac_ct_CXX" && break |
---|
3057 | done |
---|
3058 | |
---|
3059 | if test "x$ac_ct_CXX" = x; then |
---|
3060 | CXX="g++" |
---|
3061 | else |
---|
3062 | case $cross_compiling:$ac_tool_warned in |
---|
3063 | yes:) |
---|
3064 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3065 | whose name does not start with the host triplet. If you think this |
---|
3066 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
3067 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3068 | whose name does not start with the host triplet. If you think this |
---|
3069 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
3070 | ac_tool_warned=yes ;; |
---|
3071 | esac |
---|
3072 | CXX=$ac_ct_CXX |
---|
3073 | fi |
---|
3074 | fi |
---|
3075 | |
---|
3076 | fi |
---|
3077 | fi |
---|
3078 | # Provide some information about the compiler. |
---|
3079 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
---|
3080 | ac_compiler=`set X $ac_compile; echo $2` |
---|
3081 | { (ac_try="$ac_compiler --version >&5" |
---|
3082 | case "(($ac_try" in |
---|
3083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3084 | *) ac_try_echo=$ac_try;; |
---|
3085 | esac |
---|
3086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3087 | (eval "$ac_compiler --version >&5") 2>&5 |
---|
3088 | ac_status=$? |
---|
3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3090 | (exit $ac_status); } |
---|
3091 | { (ac_try="$ac_compiler -v >&5" |
---|
3092 | case "(($ac_try" in |
---|
3093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3094 | *) ac_try_echo=$ac_try;; |
---|
3095 | esac |
---|
3096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3097 | (eval "$ac_compiler -v >&5") 2>&5 |
---|
3098 | ac_status=$? |
---|
3099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3100 | (exit $ac_status); } |
---|
3101 | { (ac_try="$ac_compiler -V >&5" |
---|
3102 | case "(($ac_try" in |
---|
3103 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3104 | *) ac_try_echo=$ac_try;; |
---|
3105 | esac |
---|
3106 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3107 | (eval "$ac_compiler -V >&5") 2>&5 |
---|
3108 | ac_status=$? |
---|
3109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3110 | (exit $ac_status); } |
---|
3111 | |
---|
3112 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
3113 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
---|
3114 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
3115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3116 | else |
---|
3117 | cat >conftest.$ac_ext <<_ACEOF |
---|
3118 | /* confdefs.h. */ |
---|
3119 | _ACEOF |
---|
3120 | cat confdefs.h >>conftest.$ac_ext |
---|
3121 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3122 | /* end confdefs.h. */ |
---|
3123 | |
---|
3124 | int |
---|
3125 | main () |
---|
3126 | { |
---|
3127 | #ifndef __GNUC__ |
---|
3128 | choke me |
---|
3129 | #endif |
---|
3130 | |
---|
3131 | ; |
---|
3132 | return 0; |
---|
3133 | } |
---|
3134 | _ACEOF |
---|
3135 | rm -f conftest.$ac_objext |
---|
3136 | if { (ac_try="$ac_compile" |
---|
3137 | case "(($ac_try" in |
---|
3138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3139 | *) ac_try_echo=$ac_try;; |
---|
3140 | esac |
---|
3141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3142 | (eval "$ac_compile") 2>conftest.er1 |
---|
3143 | ac_status=$? |
---|
3144 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3145 | rm -f conftest.er1 |
---|
3146 | cat conftest.err >&5 |
---|
3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3148 | (exit $ac_status); } && { |
---|
3149 | test -z "$ac_cxx_werror_flag" || |
---|
3150 | test ! -s conftest.err |
---|
3151 | } && test -s conftest.$ac_objext; then |
---|
3152 | ac_compiler_gnu=yes |
---|
3153 | else |
---|
3154 | echo "$as_me: failed program was:" >&5 |
---|
3155 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3156 | |
---|
3157 | ac_compiler_gnu=no |
---|
3158 | fi |
---|
3159 | |
---|
3160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3161 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
3162 | |
---|
3163 | fi |
---|
3164 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
3165 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
---|
3166 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
3167 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
3168 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
3169 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
3170 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
---|
3171 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3173 | else |
---|
3174 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
---|
3175 | ac_cxx_werror_flag=yes |
---|
3176 | ac_cv_prog_cxx_g=no |
---|
3177 | CXXFLAGS="-g" |
---|
3178 | cat >conftest.$ac_ext <<_ACEOF |
---|
3179 | /* confdefs.h. */ |
---|
3180 | _ACEOF |
---|
3181 | cat confdefs.h >>conftest.$ac_ext |
---|
3182 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3183 | /* end confdefs.h. */ |
---|
3184 | |
---|
3185 | int |
---|
3186 | main () |
---|
3187 | { |
---|
3188 | |
---|
3189 | ; |
---|
3190 | return 0; |
---|
3191 | } |
---|
3192 | _ACEOF |
---|
3193 | rm -f conftest.$ac_objext |
---|
3194 | if { (ac_try="$ac_compile" |
---|
3195 | case "(($ac_try" in |
---|
3196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3197 | *) ac_try_echo=$ac_try;; |
---|
3198 | esac |
---|
3199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3200 | (eval "$ac_compile") 2>conftest.er1 |
---|
3201 | ac_status=$? |
---|
3202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3203 | rm -f conftest.er1 |
---|
3204 | cat conftest.err >&5 |
---|
3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3206 | (exit $ac_status); } && { |
---|
3207 | test -z "$ac_cxx_werror_flag" || |
---|
3208 | test ! -s conftest.err |
---|
3209 | } && test -s conftest.$ac_objext; then |
---|
3210 | ac_cv_prog_cxx_g=yes |
---|
3211 | else |
---|
3212 | echo "$as_me: failed program was:" >&5 |
---|
3213 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3214 | |
---|
3215 | CXXFLAGS="" |
---|
3216 | cat >conftest.$ac_ext <<_ACEOF |
---|
3217 | /* confdefs.h. */ |
---|
3218 | _ACEOF |
---|
3219 | cat confdefs.h >>conftest.$ac_ext |
---|
3220 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3221 | /* end confdefs.h. */ |
---|
3222 | |
---|
3223 | int |
---|
3224 | main () |
---|
3225 | { |
---|
3226 | |
---|
3227 | ; |
---|
3228 | return 0; |
---|
3229 | } |
---|
3230 | _ACEOF |
---|
3231 | rm -f conftest.$ac_objext |
---|
3232 | if { (ac_try="$ac_compile" |
---|
3233 | case "(($ac_try" in |
---|
3234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3235 | *) ac_try_echo=$ac_try;; |
---|
3236 | esac |
---|
3237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3238 | (eval "$ac_compile") 2>conftest.er1 |
---|
3239 | ac_status=$? |
---|
3240 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3241 | rm -f conftest.er1 |
---|
3242 | cat conftest.err >&5 |
---|
3243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3244 | (exit $ac_status); } && { |
---|
3245 | test -z "$ac_cxx_werror_flag" || |
---|
3246 | test ! -s conftest.err |
---|
3247 | } && test -s conftest.$ac_objext; then |
---|
3248 | : |
---|
3249 | else |
---|
3250 | echo "$as_me: failed program was:" >&5 |
---|
3251 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3252 | |
---|
3253 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3254 | CXXFLAGS="-g" |
---|
3255 | cat >conftest.$ac_ext <<_ACEOF |
---|
3256 | /* confdefs.h. */ |
---|
3257 | _ACEOF |
---|
3258 | cat confdefs.h >>conftest.$ac_ext |
---|
3259 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3260 | /* end confdefs.h. */ |
---|
3261 | |
---|
3262 | int |
---|
3263 | main () |
---|
3264 | { |
---|
3265 | |
---|
3266 | ; |
---|
3267 | return 0; |
---|
3268 | } |
---|
3269 | _ACEOF |
---|
3270 | rm -f conftest.$ac_objext |
---|
3271 | if { (ac_try="$ac_compile" |
---|
3272 | case "(($ac_try" in |
---|
3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3274 | *) ac_try_echo=$ac_try;; |
---|
3275 | esac |
---|
3276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
3277 | (eval "$ac_compile") 2>conftest.er1 |
---|
3278 | ac_status=$? |
---|
3279 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3280 | rm -f conftest.er1 |
---|
3281 | cat conftest.err >&5 |
---|
3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3283 | (exit $ac_status); } && { |
---|
3284 | test -z "$ac_cxx_werror_flag" || |
---|
3285 | test ! -s conftest.err |
---|
3286 | } && test -s conftest.$ac_objext; then |
---|
3287 | ac_cv_prog_cxx_g=yes |
---|
3288 | else |
---|
3289 | echo "$as_me: failed program was:" >&5 |
---|
3290 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3291 | |
---|
3292 | |
---|
3293 | fi |
---|
3294 | |
---|
3295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3296 | fi |
---|
3297 | |
---|
3298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3299 | fi |
---|
3300 | |
---|
3301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3302 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
---|
3303 | fi |
---|
3304 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
3305 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
---|
3306 | if test "$ac_test_CXXFLAGS" = set; then |
---|
3307 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
3308 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
3309 | if test "$GXX" = yes; then |
---|
3310 | CXXFLAGS="-g -O2" |
---|
3311 | else |
---|
3312 | CXXFLAGS="-g" |
---|
3313 | fi |
---|
3314 | else |
---|
3315 | if test "$GXX" = yes; then |
---|
3316 | CXXFLAGS="-O2" |
---|
3317 | else |
---|
3318 | CXXFLAGS= |
---|
3319 | fi |
---|
3320 | fi |
---|
3321 | ac_ext=c |
---|
3322 | ac_cpp='$CPP $CPPFLAGS' |
---|
3323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3326 | |
---|
3327 | # Find a good install program. We prefer a C program (faster), |
---|
3328 | # so one script is as good as another. But avoid the broken or |
---|
3329 | # incompatible versions: |
---|
3330 | # SysV /etc/install, /usr/sbin/install |
---|
3331 | # SunOS /usr/etc/install |
---|
3332 | # IRIX /sbin/install |
---|
3333 | # AIX /bin/install |
---|
3334 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
3335 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
3336 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
3337 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
3338 | # OS/2's system install, which has a completely different semantic |
---|
3339 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
3340 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
3341 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
---|
3342 | if test -z "$INSTALL"; then |
---|
3343 | if test "${ac_cv_path_install+set}" = set; then |
---|
3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3345 | else |
---|
3346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3347 | for as_dir in $PATH |
---|
3348 | do |
---|
3349 | IFS=$as_save_IFS |
---|
3350 | test -z "$as_dir" && as_dir=. |
---|
3351 | # Account for people who put trailing slashes in PATH elements. |
---|
3352 | case $as_dir/ in |
---|
3353 | ./ | .// | /cC/* | \ |
---|
3354 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
3355 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
3356 | /usr/ucb/* ) ;; |
---|
3357 | *) |
---|
3358 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
3359 | # Don't use installbsd from OSF since it installs stuff as root |
---|
3360 | # by default. |
---|
3361 | for ac_prog in ginstall scoinst install; do |
---|
3362 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3363 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
3364 | if test $ac_prog = install && |
---|
3365 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3366 | # AIX install. It has an incompatible calling convention. |
---|
3367 | : |
---|
3368 | elif test $ac_prog = install && |
---|
3369 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
3370 | # program-specific install script used by HP pwplus--don't use. |
---|
3371 | : |
---|
3372 | else |
---|
3373 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
3374 | break 3 |
---|
3375 | fi |
---|
3376 | fi |
---|
3377 | done |
---|
3378 | done |
---|
3379 | ;; |
---|
3380 | esac |
---|
3381 | done |
---|
3382 | IFS=$as_save_IFS |
---|
3383 | |
---|
3384 | |
---|
3385 | fi |
---|
3386 | if test "${ac_cv_path_install+set}" = set; then |
---|
3387 | INSTALL=$ac_cv_path_install |
---|
3388 | else |
---|
3389 | # As a last resort, use the slow shell script. Don't cache a |
---|
3390 | # value for INSTALL within a source directory, because that will |
---|
3391 | # break other packages using the cache if that directory is |
---|
3392 | # removed, or if the value is a relative name. |
---|
3393 | INSTALL=$ac_install_sh |
---|
3394 | fi |
---|
3395 | fi |
---|
3396 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
3397 | echo "${ECHO_T}$INSTALL" >&6; } |
---|
3398 | |
---|
3399 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
3400 | # It thinks the first close brace ends the variable substitution. |
---|
3401 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
3402 | |
---|
3403 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
3404 | |
---|
3405 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
3406 | |
---|
3407 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
3408 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
---|
3409 | LN_S=$as_ln_s |
---|
3410 | if test "$LN_S" = "ln -s"; then |
---|
3411 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
3412 | echo "${ECHO_T}yes" >&6; } |
---|
3413 | else |
---|
3414 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
3415 | echo "${ECHO_T}no, using $LN_S" >&6; } |
---|
3416 | fi |
---|
3417 | |
---|
3418 | if test -n "$ac_tool_prefix"; then |
---|
3419 | for ac_prog in ar |
---|
3420 | do |
---|
3421 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3422 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3423 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3425 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
3426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3427 | else |
---|
3428 | if test -n "$AR"; then |
---|
3429 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
3430 | else |
---|
3431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3432 | for as_dir in $PATH |
---|
3433 | do |
---|
3434 | IFS=$as_save_IFS |
---|
3435 | test -z "$as_dir" && as_dir=. |
---|
3436 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3438 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
---|
3439 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3440 | break 2 |
---|
3441 | fi |
---|
3442 | done |
---|
3443 | done |
---|
3444 | IFS=$as_save_IFS |
---|
3445 | |
---|
3446 | fi |
---|
3447 | fi |
---|
3448 | AR=$ac_cv_prog_AR |
---|
3449 | if test -n "$AR"; then |
---|
3450 | { echo "$as_me:$LINENO: result: $AR" >&5 |
---|
3451 | echo "${ECHO_T}$AR" >&6; } |
---|
3452 | else |
---|
3453 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3454 | echo "${ECHO_T}no" >&6; } |
---|
3455 | fi |
---|
3456 | |
---|
3457 | |
---|
3458 | test -n "$AR" && break |
---|
3459 | done |
---|
3460 | fi |
---|
3461 | if test -z "$AR"; then |
---|
3462 | ac_ct_AR=$AR |
---|
3463 | for ac_prog in ar |
---|
3464 | do |
---|
3465 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3466 | set dummy $ac_prog; ac_word=$2 |
---|
3467 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3469 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
---|
3470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3471 | else |
---|
3472 | if test -n "$ac_ct_AR"; then |
---|
3473 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
3474 | else |
---|
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3476 | for as_dir in $PATH |
---|
3477 | do |
---|
3478 | IFS=$as_save_IFS |
---|
3479 | test -z "$as_dir" && as_dir=. |
---|
3480 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3482 | ac_cv_prog_ac_ct_AR="$ac_prog" |
---|
3483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3484 | break 2 |
---|
3485 | fi |
---|
3486 | done |
---|
3487 | done |
---|
3488 | IFS=$as_save_IFS |
---|
3489 | |
---|
3490 | fi |
---|
3491 | fi |
---|
3492 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
3493 | if test -n "$ac_ct_AR"; then |
---|
3494 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
---|
3495 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
---|
3496 | else |
---|
3497 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3498 | echo "${ECHO_T}no" >&6; } |
---|
3499 | fi |
---|
3500 | |
---|
3501 | |
---|
3502 | test -n "$ac_ct_AR" && break |
---|
3503 | done |
---|
3504 | |
---|
3505 | if test "x$ac_ct_AR" = x; then |
---|
3506 | AR="" |
---|
3507 | else |
---|
3508 | case $cross_compiling:$ac_tool_warned in |
---|
3509 | yes:) |
---|
3510 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3511 | whose name does not start with the host triplet. If you think this |
---|
3512 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
3513 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3514 | whose name does not start with the host triplet. If you think this |
---|
3515 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
3516 | ac_tool_warned=yes ;; |
---|
3517 | esac |
---|
3518 | AR=$ac_ct_AR |
---|
3519 | fi |
---|
3520 | fi |
---|
3521 | |
---|
3522 | if test -n "$ac_tool_prefix"; then |
---|
3523 | for ac_prog in windres |
---|
3524 | do |
---|
3525 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3526 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3527 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3528 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3529 | if test "${ac_cv_prog_RC+set}" = set; then |
---|
3530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3531 | else |
---|
3532 | if test -n "$RC"; then |
---|
3533 | ac_cv_prog_RC="$RC" # Let the user override the test. |
---|
3534 | else |
---|
3535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3536 | for as_dir in $PATH |
---|
3537 | do |
---|
3538 | IFS=$as_save_IFS |
---|
3539 | test -z "$as_dir" && as_dir=. |
---|
3540 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3542 | ac_cv_prog_RC="$ac_tool_prefix$ac_prog" |
---|
3543 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3544 | break 2 |
---|
3545 | fi |
---|
3546 | done |
---|
3547 | done |
---|
3548 | IFS=$as_save_IFS |
---|
3549 | |
---|
3550 | fi |
---|
3551 | fi |
---|
3552 | RC=$ac_cv_prog_RC |
---|
3553 | if test -n "$RC"; then |
---|
3554 | { echo "$as_me:$LINENO: result: $RC" >&5 |
---|
3555 | echo "${ECHO_T}$RC" >&6; } |
---|
3556 | else |
---|
3557 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3558 | echo "${ECHO_T}no" >&6; } |
---|
3559 | fi |
---|
3560 | |
---|
3561 | |
---|
3562 | test -n "$RC" && break |
---|
3563 | done |
---|
3564 | fi |
---|
3565 | if test -z "$RC"; then |
---|
3566 | ac_ct_RC=$RC |
---|
3567 | for ac_prog in windres |
---|
3568 | do |
---|
3569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3570 | set dummy $ac_prog; ac_word=$2 |
---|
3571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3573 | if test "${ac_cv_prog_ac_ct_RC+set}" = set; then |
---|
3574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3575 | else |
---|
3576 | if test -n "$ac_ct_RC"; then |
---|
3577 | ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. |
---|
3578 | else |
---|
3579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3580 | for as_dir in $PATH |
---|
3581 | do |
---|
3582 | IFS=$as_save_IFS |
---|
3583 | test -z "$as_dir" && as_dir=. |
---|
3584 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3586 | ac_cv_prog_ac_ct_RC="$ac_prog" |
---|
3587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3588 | break 2 |
---|
3589 | fi |
---|
3590 | done |
---|
3591 | done |
---|
3592 | IFS=$as_save_IFS |
---|
3593 | |
---|
3594 | fi |
---|
3595 | fi |
---|
3596 | ac_ct_RC=$ac_cv_prog_ac_ct_RC |
---|
3597 | if test -n "$ac_ct_RC"; then |
---|
3598 | { echo "$as_me:$LINENO: result: $ac_ct_RC" >&5 |
---|
3599 | echo "${ECHO_T}$ac_ct_RC" >&6; } |
---|
3600 | else |
---|
3601 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3602 | echo "${ECHO_T}no" >&6; } |
---|
3603 | fi |
---|
3604 | |
---|
3605 | |
---|
3606 | test -n "$ac_ct_RC" && break |
---|
3607 | done |
---|
3608 | |
---|
3609 | if test "x$ac_ct_RC" = x; then |
---|
3610 | RC="" |
---|
3611 | else |
---|
3612 | case $cross_compiling:$ac_tool_warned in |
---|
3613 | yes:) |
---|
3614 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3615 | whose name does not start with the host triplet. If you think this |
---|
3616 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
---|
3617 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
---|
3618 | whose name does not start with the host triplet. If you think this |
---|
3619 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
---|
3620 | ac_tool_warned=yes ;; |
---|
3621 | esac |
---|
3622 | RC=$ac_ct_RC |
---|
3623 | fi |
---|
3624 | fi |
---|
3625 | |
---|
3626 | for ac_prog in rm |
---|
3627 | do |
---|
3628 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3629 | set dummy $ac_prog; ac_word=$2 |
---|
3630 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3632 | if test "${ac_cv_prog_RM+set}" = set; then |
---|
3633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3634 | else |
---|
3635 | if test -n "$RM"; then |
---|
3636 | ac_cv_prog_RM="$RM" # Let the user override the test. |
---|
3637 | else |
---|
3638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3639 | for as_dir in $PATH |
---|
3640 | do |
---|
3641 | IFS=$as_save_IFS |
---|
3642 | test -z "$as_dir" && as_dir=. |
---|
3643 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3645 | ac_cv_prog_RM="$ac_prog" |
---|
3646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3647 | break 2 |
---|
3648 | fi |
---|
3649 | done |
---|
3650 | done |
---|
3651 | IFS=$as_save_IFS |
---|
3652 | |
---|
3653 | fi |
---|
3654 | fi |
---|
3655 | RM=$ac_cv_prog_RM |
---|
3656 | if test -n "$RM"; then |
---|
3657 | { echo "$as_me:$LINENO: result: $RM" >&5 |
---|
3658 | echo "${ECHO_T}$RM" >&6; } |
---|
3659 | else |
---|
3660 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3661 | echo "${ECHO_T}no" >&6; } |
---|
3662 | fi |
---|
3663 | |
---|
3664 | |
---|
3665 | test -n "$RM" && break |
---|
3666 | done |
---|
3667 | |
---|
3668 | for ac_prog in cp |
---|
3669 | do |
---|
3670 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3671 | set dummy $ac_prog; ac_word=$2 |
---|
3672 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3674 | if test "${ac_cv_prog_CP+set}" = set; then |
---|
3675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3676 | else |
---|
3677 | if test -n "$CP"; then |
---|
3678 | ac_cv_prog_CP="$CP" # Let the user override the test. |
---|
3679 | else |
---|
3680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3681 | for as_dir in $PATH |
---|
3682 | do |
---|
3683 | IFS=$as_save_IFS |
---|
3684 | test -z "$as_dir" && as_dir=. |
---|
3685 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3687 | ac_cv_prog_CP="$ac_prog" |
---|
3688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3689 | break 2 |
---|
3690 | fi |
---|
3691 | done |
---|
3692 | done |
---|
3693 | IFS=$as_save_IFS |
---|
3694 | |
---|
3695 | fi |
---|
3696 | fi |
---|
3697 | CP=$ac_cv_prog_CP |
---|
3698 | if test -n "$CP"; then |
---|
3699 | { echo "$as_me:$LINENO: result: $CP" >&5 |
---|
3700 | echo "${ECHO_T}$CP" >&6; } |
---|
3701 | else |
---|
3702 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3703 | echo "${ECHO_T}no" >&6; } |
---|
3704 | fi |
---|
3705 | |
---|
3706 | |
---|
3707 | test -n "$CP" && break |
---|
3708 | done |
---|
3709 | |
---|
3710 | for ac_prog in mkdir |
---|
3711 | do |
---|
3712 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3713 | set dummy $ac_prog; ac_word=$2 |
---|
3714 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3716 | if test "${ac_cv_prog_MKDIR+set}" = set; then |
---|
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3718 | else |
---|
3719 | if test -n "$MKDIR"; then |
---|
3720 | ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test. |
---|
3721 | else |
---|
3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3723 | for as_dir in $PATH |
---|
3724 | do |
---|
3725 | IFS=$as_save_IFS |
---|
3726 | test -z "$as_dir" && as_dir=. |
---|
3727 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3729 | ac_cv_prog_MKDIR="$ac_prog" |
---|
3730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3731 | break 2 |
---|
3732 | fi |
---|
3733 | done |
---|
3734 | done |
---|
3735 | IFS=$as_save_IFS |
---|
3736 | |
---|
3737 | fi |
---|
3738 | fi |
---|
3739 | MKDIR=$ac_cv_prog_MKDIR |
---|
3740 | if test -n "$MKDIR"; then |
---|
3741 | { echo "$as_me:$LINENO: result: $MKDIR" >&5 |
---|
3742 | echo "${ECHO_T}$MKDIR" >&6; } |
---|
3743 | else |
---|
3744 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3745 | echo "${ECHO_T}no" >&6; } |
---|
3746 | fi |
---|
3747 | |
---|
3748 | |
---|
3749 | test -n "$MKDIR" && break |
---|
3750 | done |
---|
3751 | |
---|
3752 | for ac_prog in echo |
---|
3753 | do |
---|
3754 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3755 | set dummy $ac_prog; ac_word=$2 |
---|
3756 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3758 | if test "${ac_cv_prog_ECHO+set}" = set; then |
---|
3759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3760 | else |
---|
3761 | if test -n "$ECHO"; then |
---|
3762 | ac_cv_prog_ECHO="$ECHO" # Let the user override the test. |
---|
3763 | else |
---|
3764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3765 | for as_dir in $PATH |
---|
3766 | do |
---|
3767 | IFS=$as_save_IFS |
---|
3768 | test -z "$as_dir" && as_dir=. |
---|
3769 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3770 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3771 | ac_cv_prog_ECHO="$ac_prog" |
---|
3772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3773 | break 2 |
---|
3774 | fi |
---|
3775 | done |
---|
3776 | done |
---|
3777 | IFS=$as_save_IFS |
---|
3778 | |
---|
3779 | fi |
---|
3780 | fi |
---|
3781 | ECHO=$ac_cv_prog_ECHO |
---|
3782 | if test -n "$ECHO"; then |
---|
3783 | { echo "$as_me:$LINENO: result: $ECHO" >&5 |
---|
3784 | echo "${ECHO_T}$ECHO" >&6; } |
---|
3785 | else |
---|
3786 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3787 | echo "${ECHO_T}no" >&6; } |
---|
3788 | fi |
---|
3789 | |
---|
3790 | |
---|
3791 | test -n "$ECHO" && break |
---|
3792 | done |
---|
3793 | |
---|
3794 | for ac_prog in tar |
---|
3795 | do |
---|
3796 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3797 | set dummy $ac_prog; ac_word=$2 |
---|
3798 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3799 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3800 | if test "${ac_cv_prog_TAR+set}" = set; then |
---|
3801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3802 | else |
---|
3803 | if test -n "$TAR"; then |
---|
3804 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
---|
3805 | else |
---|
3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3807 | for as_dir in $PATH |
---|
3808 | do |
---|
3809 | IFS=$as_save_IFS |
---|
3810 | test -z "$as_dir" && as_dir=. |
---|
3811 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3813 | ac_cv_prog_TAR="$ac_prog" |
---|
3814 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3815 | break 2 |
---|
3816 | fi |
---|
3817 | done |
---|
3818 | done |
---|
3819 | IFS=$as_save_IFS |
---|
3820 | |
---|
3821 | fi |
---|
3822 | fi |
---|
3823 | TAR=$ac_cv_prog_TAR |
---|
3824 | if test -n "$TAR"; then |
---|
3825 | { echo "$as_me:$LINENO: result: $TAR" >&5 |
---|
3826 | echo "${ECHO_T}$TAR" >&6; } |
---|
3827 | else |
---|
3828 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3829 | echo "${ECHO_T}no" >&6; } |
---|
3830 | fi |
---|
3831 | |
---|
3832 | |
---|
3833 | test -n "$TAR" && break |
---|
3834 | done |
---|
3835 | |
---|
3836 | for ac_prog in gzip |
---|
3837 | do |
---|
3838 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3839 | set dummy $ac_prog; ac_word=$2 |
---|
3840 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3842 | if test "${ac_cv_prog_GZIP+set}" = set; then |
---|
3843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3844 | else |
---|
3845 | if test -n "$GZIP"; then |
---|
3846 | ac_cv_prog_GZIP="$GZIP" # Let the user override the test. |
---|
3847 | else |
---|
3848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3849 | for as_dir in $PATH |
---|
3850 | do |
---|
3851 | IFS=$as_save_IFS |
---|
3852 | test -z "$as_dir" && as_dir=. |
---|
3853 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3855 | ac_cv_prog_GZIP="$ac_prog" |
---|
3856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3857 | break 2 |
---|
3858 | fi |
---|
3859 | done |
---|
3860 | done |
---|
3861 | IFS=$as_save_IFS |
---|
3862 | |
---|
3863 | fi |
---|
3864 | fi |
---|
3865 | GZIP=$ac_cv_prog_GZIP |
---|
3866 | if test -n "$GZIP"; then |
---|
3867 | { echo "$as_me:$LINENO: result: $GZIP" >&5 |
---|
3868 | echo "${ECHO_T}$GZIP" >&6; } |
---|
3869 | else |
---|
3870 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3871 | echo "${ECHO_T}no" >&6; } |
---|
3872 | fi |
---|
3873 | |
---|
3874 | |
---|
3875 | test -n "$GZIP" && break |
---|
3876 | done |
---|
3877 | |
---|
3878 | for ac_prog in zip |
---|
3879 | do |
---|
3880 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3881 | set dummy $ac_prog; ac_word=$2 |
---|
3882 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3884 | if test "${ac_cv_prog_ZIP+set}" = set; then |
---|
3885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3886 | else |
---|
3887 | if test -n "$ZIP"; then |
---|
3888 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
---|
3889 | else |
---|
3890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3891 | for as_dir in $PATH |
---|
3892 | do |
---|
3893 | IFS=$as_save_IFS |
---|
3894 | test -z "$as_dir" && as_dir=. |
---|
3895 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3897 | ac_cv_prog_ZIP="$ac_prog" |
---|
3898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3899 | break 2 |
---|
3900 | fi |
---|
3901 | done |
---|
3902 | done |
---|
3903 | IFS=$as_save_IFS |
---|
3904 | |
---|
3905 | fi |
---|
3906 | fi |
---|
3907 | ZIP=$ac_cv_prog_ZIP |
---|
3908 | if test -n "$ZIP"; then |
---|
3909 | { echo "$as_me:$LINENO: result: $ZIP" >&5 |
---|
3910 | echo "${ECHO_T}$ZIP" >&6; } |
---|
3911 | else |
---|
3912 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3913 | echo "${ECHO_T}no" >&6; } |
---|
3914 | fi |
---|
3915 | |
---|
3916 | |
---|
3917 | test -n "$ZIP" && break |
---|
3918 | done |
---|
3919 | |
---|
3920 | |
---|
3921 | if test "x$cross_compiling" = "xyes"; then |
---|
3922 | # if cross compiling autodetect the system compilers |
---|
3923 | for ac_prog in gcc cc |
---|
3924 | do |
---|
3925 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3926 | set dummy $ac_prog; ac_word=$2 |
---|
3927 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3929 | if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then |
---|
3930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3931 | else |
---|
3932 | if test -n "$CC_FOR_BUILD"; then |
---|
3933 | ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. |
---|
3934 | else |
---|
3935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3936 | for as_dir in $PATH |
---|
3937 | do |
---|
3938 | IFS=$as_save_IFS |
---|
3939 | test -z "$as_dir" && as_dir=. |
---|
3940 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3942 | ac_cv_prog_CC_FOR_BUILD="$ac_prog" |
---|
3943 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3944 | break 2 |
---|
3945 | fi |
---|
3946 | done |
---|
3947 | done |
---|
3948 | IFS=$as_save_IFS |
---|
3949 | |
---|
3950 | fi |
---|
3951 | fi |
---|
3952 | CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD |
---|
3953 | if test -n "$CC_FOR_BUILD"; then |
---|
3954 | { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5 |
---|
3955 | echo "${ECHO_T}$CC_FOR_BUILD" >&6; } |
---|
3956 | else |
---|
3957 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
3958 | echo "${ECHO_T}no" >&6; } |
---|
3959 | fi |
---|
3960 | |
---|
3961 | |
---|
3962 | test -n "$CC_FOR_BUILD" && break |
---|
3963 | done |
---|
3964 | |
---|
3965 | for ac_prog in g++ gxx c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
3966 | do |
---|
3967 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3968 | set dummy $ac_prog; ac_word=$2 |
---|
3969 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
3970 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
3971 | if test "${ac_cv_prog_CXX_FOR_BUILD+set}" = set; then |
---|
3972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3973 | else |
---|
3974 | if test -n "$CXX_FOR_BUILD"; then |
---|
3975 | ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test. |
---|
3976 | else |
---|
3977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3978 | for as_dir in $PATH |
---|
3979 | do |
---|
3980 | IFS=$as_save_IFS |
---|
3981 | test -z "$as_dir" && as_dir=. |
---|
3982 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3984 | ac_cv_prog_CXX_FOR_BUILD="$ac_prog" |
---|
3985 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3986 | break 2 |
---|
3987 | fi |
---|
3988 | done |
---|
3989 | done |
---|
3990 | IFS=$as_save_IFS |
---|
3991 | |
---|
3992 | fi |
---|
3993 | fi |
---|
3994 | CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD |
---|
3995 | if test -n "$CXX_FOR_BUILD"; then |
---|
3996 | { echo "$as_me:$LINENO: result: $CXX_FOR_BUILD" >&5 |
---|
3997 | echo "${ECHO_T}$CXX_FOR_BUILD" >&6; } |
---|
3998 | else |
---|
3999 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4000 | echo "${ECHO_T}no" >&6; } |
---|
4001 | fi |
---|
4002 | |
---|
4003 | |
---|
4004 | test -n "$CXX_FOR_BUILD" && break |
---|
4005 | done |
---|
4006 | |
---|
4007 | else |
---|
4008 | #if not cross compiling use the already detected compilers |
---|
4009 | CC_FOR_BUILD=$CC |
---|
4010 | CXX_FOR_BUILD=$CXX |
---|
4011 | |
---|
4012 | |
---|
4013 | fi |
---|
4014 | |
---|
4015 | # Checks for optimizations |
---|
4016 | # Check whether --enable-debug was given. |
---|
4017 | if test "${enable_debug+set}" = set; then |
---|
4018 | enableval=$enable_debug; ac_enable_debug=$enableval |
---|
4019 | else |
---|
4020 | ac_enable_debug=no |
---|
4021 | |
---|
4022 | fi |
---|
4023 | |
---|
4024 | CONF_DEBUG=$ac_enable_debug |
---|
4025 | |
---|
4026 | |
---|
4027 | # Check whether --enable-test was given. |
---|
4028 | if test "${enable_test+set}" = set; then |
---|
4029 | enableval=$enable_test; ac_enable_test=$enableval |
---|
4030 | else |
---|
4031 | ac_enable_test=no |
---|
4032 | |
---|
4033 | fi |
---|
4034 | |
---|
4035 | |
---|
4036 | # Check whether --enable-static was given. |
---|
4037 | if test "${enable_static+set}" = set; then |
---|
4038 | enableval=$enable_static; ac_enable_static=$enableval |
---|
4039 | else |
---|
4040 | ac_enable_static=no |
---|
4041 | |
---|
4042 | fi |
---|
4043 | |
---|
4044 | |
---|
4045 | if test $ac_auto_cflags = yes; then |
---|
4046 | if test $ac_enable_debug = yes ; then |
---|
4047 | CFLAGS="-O0 -g -Wall -Wno-sign-compare -Wno-unused" |
---|
4048 | elif test $ac_enable_test = yes ; then |
---|
4049 | CFLAGS="-O0 -Wall -Wno-sign-compare -Wno-unused" |
---|
4050 | else |
---|
4051 | CFLAGS="" |
---|
4052 | |
---|
4053 | if test -f /proc/cpuinfo ; then |
---|
4054 | if grep -i "vendor_id.*:.*GenuineIntel" /proc/cpuinfo > /dev/null ; then |
---|
4055 | if grep -i "family.*: 15" /proc/cpuinfo > /dev/null ; then |
---|
4056 | ac_cpu_arch=pentium2 |
---|
4057 | ac_cpu_arch_secondary=i686 |
---|
4058 | elif grep -i "family.*: 6" /proc/cpuinfo > /dev/null ; then |
---|
4059 | ac_cpu_arch=pentiumpro |
---|
4060 | ac_cpu_arch_secondary=i686 |
---|
4061 | elif grep -i "family.*: 5" /proc/cpuinfo > /dev/null ; then |
---|
4062 | ac_cpu_arch=pentium |
---|
4063 | ac_cpu_arch_secondary=i586 |
---|
4064 | else |
---|
4065 | ac_cpu_arch=blend |
---|
4066 | ac_cpu_arch_secondary=blend |
---|
4067 | fi |
---|
4068 | elif grep -i "vendor_id.*:.*AuthenticAMD" /proc/cpuinfo > /dev/null ; then |
---|
4069 | if grep -i "family.*: 6" /proc/cpuinfo > /dev/null ; then |
---|
4070 | ac_cpu_arch=athlon |
---|
4071 | ac_cpu_arch_secondary=i586 |
---|
4072 | elif grep -i "family.*: 5" /proc/cpuinfo > /dev/null ; then |
---|
4073 | ac_cpu_arch=pentium |
---|
4074 | ac_cpu_arch_secondary=i586 |
---|
4075 | else |
---|
4076 | ac_cpu_arch=blend |
---|
4077 | ac_cpu_arch_secondary=blend |
---|
4078 | fi |
---|
4079 | else |
---|
4080 | ac_cpu_arch=blend |
---|
4081 | ac_cpu_arch_secondary=blend |
---|
4082 | fi |
---|
4083 | else |
---|
4084 | ac_cpu_arch=blend |
---|
4085 | ac_cpu_arch_secondary=blend |
---|
4086 | fi |
---|
4087 | |
---|
4088 | { echo "$as_me:$LINENO: checking build arch" >&5 |
---|
4089 | echo $ECHO_N "checking build arch... $ECHO_C" >&6; } |
---|
4090 | { echo "$as_me:$LINENO: result: $ac_cpu_arch" >&5 |
---|
4091 | echo "${ECHO_T}$ac_cpu_arch" >&6; } |
---|
4092 | |
---|
4093 | |
---|
4094 | if test $ac_cpu_arch = blend; then |
---|
4095 | ac_cc_arch=blend |
---|
4096 | else |
---|
4097 | |
---|
4098 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -march=$ac_cpu_arch" >&5 |
---|
4099 | echo $ECHO_N "checking whether ${CC-cc} accepts -march=$ac_cpu_arch... $ECHO_C" >&6; } |
---|
4100 | echo 'void f(){}' > conftest.c |
---|
4101 | if test -z "`${CC-cc} -c -march=$ac_cpu_arch conftest.c 2>&1`"; then |
---|
4102 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4103 | echo "${ECHO_T}yes" >&6; } |
---|
4104 | ac_cc_cpu_arch=yes |
---|
4105 | else |
---|
4106 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4107 | echo "${ECHO_T}no" >&6; } |
---|
4108 | ac_cc_cpu_arch=no |
---|
4109 | fi |
---|
4110 | rm -f conftest* |
---|
4111 | |
---|
4112 | if test $ac_cc_cpu_arch = yes ; then |
---|
4113 | ac_cc_arch=$ac_cpu_arch |
---|
4114 | else |
---|
4115 | |
---|
4116 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -march=$ac_cpu_arch_secondary" >&5 |
---|
4117 | echo $ECHO_N "checking whether ${CC-cc} accepts -march=$ac_cpu_arch_secondary... $ECHO_C" >&6; } |
---|
4118 | echo 'void f(){}' > conftest.c |
---|
4119 | if test -z "`${CC-cc} -c -march=$ac_cpu_arch_secondary conftest.c 2>&1`"; then |
---|
4120 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4121 | echo "${ECHO_T}yes" >&6; } |
---|
4122 | ac_cc_family_arch=yes |
---|
4123 | else |
---|
4124 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4125 | echo "${ECHO_T}no" >&6; } |
---|
4126 | ac_cc_family_arch=no |
---|
4127 | fi |
---|
4128 | rm -f conftest* |
---|
4129 | |
---|
4130 | if test $ac_cc_family_arch = yes ; then |
---|
4131 | ac_cc_arch=$ac_cpu_arch_secondary |
---|
4132 | else |
---|
4133 | ac_cc_arch=blend |
---|
4134 | fi |
---|
4135 | fi |
---|
4136 | fi |
---|
4137 | |
---|
4138 | if test ! $ac_cc_arch = blend; then |
---|
4139 | CFLAGS="$CFLAGS -march=$ac_cc_arch " |
---|
4140 | |
---|
4141 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fomit-frame-pointer" >&5 |
---|
4142 | echo $ECHO_N "checking whether ${CC-cc} accepts -fomit-frame-pointer... $ECHO_C" >&6; } |
---|
4143 | echo 'void f(){}' > conftest.c |
---|
4144 | if test -z "`${CC-cc} -c -fomit-frame-pointer conftest.c 2>&1`"; then |
---|
4145 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4146 | echo "${ECHO_T}yes" >&6; } |
---|
4147 | CFLAGS="$CFLAGS -fomit-frame-pointer" |
---|
4148 | else |
---|
4149 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4150 | echo "${ECHO_T}no" >&6; } |
---|
4151 | |
---|
4152 | fi |
---|
4153 | rm -f conftest* |
---|
4154 | |
---|
4155 | fi |
---|
4156 | # -O3 don't seem to be safe on x86 platforms, also on latest gcc 3.3.x |
---|
4157 | |
---|
4158 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -O2" >&5 |
---|
4159 | echo $ECHO_N "checking whether ${CC-cc} accepts -O2... $ECHO_C" >&6; } |
---|
4160 | echo 'void f(){}' > conftest.c |
---|
4161 | if test -z "`${CC-cc} -c -O2 conftest.c 2>&1`"; then |
---|
4162 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4163 | echo "${ECHO_T}yes" >&6; } |
---|
4164 | CFLAGS="$CFLAGS -O2" |
---|
4165 | else |
---|
4166 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4167 | echo "${ECHO_T}no" >&6; } |
---|
4168 | CFLAGS="$CFLAGS -O" |
---|
4169 | fi |
---|
4170 | rm -f conftest* |
---|
4171 | |
---|
4172 | # -fno-merge-constants is required to speedup the link time. ld spends a lot of time trying to merge partial strings. |
---|
4173 | |
---|
4174 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fno-merge-constants" >&5 |
---|
4175 | echo $ECHO_N "checking whether ${CC-cc} accepts -fno-merge-constants... $ECHO_C" >&6; } |
---|
4176 | echo 'void f(){}' > conftest.c |
---|
4177 | if test -z "`${CC-cc} -c -fno-merge-constants conftest.c 2>&1`"; then |
---|
4178 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4179 | echo "${ECHO_T}yes" >&6; } |
---|
4180 | CFLAGS="$CFLAGS -fno-merge-constants" |
---|
4181 | else |
---|
4182 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4183 | echo "${ECHO_T}no" >&6; } |
---|
4184 | |
---|
4185 | fi |
---|
4186 | rm -f conftest* |
---|
4187 | |
---|
4188 | |
---|
4189 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wall" >&5 |
---|
4190 | echo $ECHO_N "checking whether ${CC-cc} accepts -Wall... $ECHO_C" >&6; } |
---|
4191 | echo 'void f(){}' > conftest.c |
---|
4192 | if test -z "`${CC-cc} -c -Wall conftest.c 2>&1`"; then |
---|
4193 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4194 | echo "${ECHO_T}yes" >&6; } |
---|
4195 | CFLAGS="$CFLAGS -Wall" |
---|
4196 | else |
---|
4197 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4198 | echo "${ECHO_T}no" >&6; } |
---|
4199 | |
---|
4200 | fi |
---|
4201 | rm -f conftest* |
---|
4202 | |
---|
4203 | |
---|
4204 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-sign-compare" >&5 |
---|
4205 | echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-sign-compare... $ECHO_C" >&6; } |
---|
4206 | echo 'void f(){}' > conftest.c |
---|
4207 | if test -z "`${CC-cc} -c -Wno-sign-compare conftest.c 2>&1`"; then |
---|
4208 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4209 | echo "${ECHO_T}yes" >&6; } |
---|
4210 | CFLAGS="$CFLAGS -Wno-sign-compare" |
---|
4211 | else |
---|
4212 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4213 | echo "${ECHO_T}no" >&6; } |
---|
4214 | |
---|
4215 | fi |
---|
4216 | rm -f conftest* |
---|
4217 | |
---|
4218 | |
---|
4219 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Wno-unused" >&5 |
---|
4220 | echo $ECHO_N "checking whether ${CC-cc} accepts -Wno-unused... $ECHO_C" >&6; } |
---|
4221 | echo 'void f(){}' > conftest.c |
---|
4222 | if test -z "`${CC-cc} -c -Wno-unused conftest.c 2>&1`"; then |
---|
4223 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
4224 | echo "${ECHO_T}yes" >&6; } |
---|
4225 | CFLAGS="$CFLAGS -Wno-unused" |
---|
4226 | else |
---|
4227 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
4228 | echo "${ECHO_T}no" >&6; } |
---|
4229 | |
---|
4230 | fi |
---|
4231 | rm -f conftest* |
---|
4232 | |
---|
4233 | fi |
---|
4234 | if test ! -z $ac_host_cflags; then |
---|
4235 | CFLAGS="$ac_host_cflags $CFLAGS" |
---|
4236 | fi |
---|
4237 | fi |
---|
4238 | if test $ac_auto_ldflags = yes ; then |
---|
4239 | if test $ac_enable_debug = yes ; then |
---|
4240 | if test $ac_system = unix ; then |
---|
4241 | LDFLAGS="-rdynamic" |
---|
4242 | else |
---|
4243 | LDFLAGS="-g" |
---|
4244 | fi |
---|
4245 | else |
---|
4246 | LDFLAGS="-s" |
---|
4247 | fi |
---|
4248 | if test $ac_enable_static = yes ; then |
---|
4249 | LDFLAGS="-static $LDFLAGS" |
---|
4250 | fi |
---|
4251 | if test ! -z $ac_host_ldflags; then |
---|
4252 | LDFLAGS="$ac_host_ldflags $LDFLAGS" |
---|
4253 | fi |
---|
4254 | fi |
---|
4255 | |
---|
4256 | CONF_CFLAGS_OPT=$CFLAGS |
---|
4257 | |
---|
4258 | CONF_LDFLAGS=$LDFLAGS |
---|
4259 | |
---|
4260 | |
---|
4261 | # Checks for architecture |
---|
4262 | |
---|
4263 | ac_ext=c |
---|
4264 | ac_cpp='$CPP $CPPFLAGS' |
---|
4265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4268 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
4269 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
---|
4270 | # On Suns, sometimes $CPP names a directory. |
---|
4271 | if test -n "$CPP" && test -d "$CPP"; then |
---|
4272 | CPP= |
---|
4273 | fi |
---|
4274 | if test -z "$CPP"; then |
---|
4275 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
4276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4277 | else |
---|
4278 | # Double quotes because CPP needs to be expanded |
---|
4279 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
4280 | do |
---|
4281 | ac_preproc_ok=false |
---|
4282 | for ac_c_preproc_warn_flag in '' yes |
---|
4283 | do |
---|
4284 | # Use a header file that comes with gcc, so configuring glibc |
---|
4285 | # with a fresh cross-compiler works. |
---|
4286 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4287 | # <limits.h> exists even on freestanding compilers. |
---|
4288 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4289 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4290 | cat >conftest.$ac_ext <<_ACEOF |
---|
4291 | /* confdefs.h. */ |
---|
4292 | _ACEOF |
---|
4293 | cat confdefs.h >>conftest.$ac_ext |
---|
4294 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4295 | /* end confdefs.h. */ |
---|
4296 | #ifdef __STDC__ |
---|
4297 | # include <limits.h> |
---|
4298 | #else |
---|
4299 | # include <assert.h> |
---|
4300 | #endif |
---|
4301 | Syntax error |
---|
4302 | _ACEOF |
---|
4303 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4304 | case "(($ac_try" in |
---|
4305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4306 | *) ac_try_echo=$ac_try;; |
---|
4307 | esac |
---|
4308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4310 | ac_status=$? |
---|
4311 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4312 | rm -f conftest.er1 |
---|
4313 | cat conftest.err >&5 |
---|
4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4315 | (exit $ac_status); } >/dev/null && { |
---|
4316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4317 | test ! -s conftest.err |
---|
4318 | }; then |
---|
4319 | : |
---|
4320 | else |
---|
4321 | echo "$as_me: failed program was:" >&5 |
---|
4322 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4323 | |
---|
4324 | # Broken: fails on valid input. |
---|
4325 | continue |
---|
4326 | fi |
---|
4327 | |
---|
4328 | rm -f conftest.err conftest.$ac_ext |
---|
4329 | |
---|
4330 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4331 | # can be detected and how. |
---|
4332 | cat >conftest.$ac_ext <<_ACEOF |
---|
4333 | /* confdefs.h. */ |
---|
4334 | _ACEOF |
---|
4335 | cat confdefs.h >>conftest.$ac_ext |
---|
4336 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4337 | /* end confdefs.h. */ |
---|
4338 | #include <ac_nonexistent.h> |
---|
4339 | _ACEOF |
---|
4340 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4341 | case "(($ac_try" in |
---|
4342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4343 | *) ac_try_echo=$ac_try;; |
---|
4344 | esac |
---|
4345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4346 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4347 | ac_status=$? |
---|
4348 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4349 | rm -f conftest.er1 |
---|
4350 | cat conftest.err >&5 |
---|
4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4352 | (exit $ac_status); } >/dev/null && { |
---|
4353 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4354 | test ! -s conftest.err |
---|
4355 | }; then |
---|
4356 | # Broken: success on invalid input. |
---|
4357 | continue |
---|
4358 | else |
---|
4359 | echo "$as_me: failed program was:" >&5 |
---|
4360 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4361 | |
---|
4362 | # Passes both tests. |
---|
4363 | ac_preproc_ok=: |
---|
4364 | break |
---|
4365 | fi |
---|
4366 | |
---|
4367 | rm -f conftest.err conftest.$ac_ext |
---|
4368 | |
---|
4369 | done |
---|
4370 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4371 | rm -f conftest.err conftest.$ac_ext |
---|
4372 | if $ac_preproc_ok; then |
---|
4373 | break |
---|
4374 | fi |
---|
4375 | |
---|
4376 | done |
---|
4377 | ac_cv_prog_CPP=$CPP |
---|
4378 | |
---|
4379 | fi |
---|
4380 | CPP=$ac_cv_prog_CPP |
---|
4381 | else |
---|
4382 | ac_cv_prog_CPP=$CPP |
---|
4383 | fi |
---|
4384 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
4385 | echo "${ECHO_T}$CPP" >&6; } |
---|
4386 | ac_preproc_ok=false |
---|
4387 | for ac_c_preproc_warn_flag in '' yes |
---|
4388 | do |
---|
4389 | # Use a header file that comes with gcc, so configuring glibc |
---|
4390 | # with a fresh cross-compiler works. |
---|
4391 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
4392 | # <limits.h> exists even on freestanding compilers. |
---|
4393 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
4394 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
4395 | cat >conftest.$ac_ext <<_ACEOF |
---|
4396 | /* confdefs.h. */ |
---|
4397 | _ACEOF |
---|
4398 | cat confdefs.h >>conftest.$ac_ext |
---|
4399 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4400 | /* end confdefs.h. */ |
---|
4401 | #ifdef __STDC__ |
---|
4402 | # include <limits.h> |
---|
4403 | #else |
---|
4404 | # include <assert.h> |
---|
4405 | #endif |
---|
4406 | Syntax error |
---|
4407 | _ACEOF |
---|
4408 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4409 | case "(($ac_try" in |
---|
4410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4411 | *) ac_try_echo=$ac_try;; |
---|
4412 | esac |
---|
4413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4414 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4415 | ac_status=$? |
---|
4416 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4417 | rm -f conftest.er1 |
---|
4418 | cat conftest.err >&5 |
---|
4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4420 | (exit $ac_status); } >/dev/null && { |
---|
4421 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4422 | test ! -s conftest.err |
---|
4423 | }; then |
---|
4424 | : |
---|
4425 | else |
---|
4426 | echo "$as_me: failed program was:" >&5 |
---|
4427 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4428 | |
---|
4429 | # Broken: fails on valid input. |
---|
4430 | continue |
---|
4431 | fi |
---|
4432 | |
---|
4433 | rm -f conftest.err conftest.$ac_ext |
---|
4434 | |
---|
4435 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
4436 | # can be detected and how. |
---|
4437 | cat >conftest.$ac_ext <<_ACEOF |
---|
4438 | /* confdefs.h. */ |
---|
4439 | _ACEOF |
---|
4440 | cat confdefs.h >>conftest.$ac_ext |
---|
4441 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4442 | /* end confdefs.h. */ |
---|
4443 | #include <ac_nonexistent.h> |
---|
4444 | _ACEOF |
---|
4445 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
4446 | case "(($ac_try" in |
---|
4447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4448 | *) ac_try_echo=$ac_try;; |
---|
4449 | esac |
---|
4450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4451 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
4452 | ac_status=$? |
---|
4453 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4454 | rm -f conftest.er1 |
---|
4455 | cat conftest.err >&5 |
---|
4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4457 | (exit $ac_status); } >/dev/null && { |
---|
4458 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
4459 | test ! -s conftest.err |
---|
4460 | }; then |
---|
4461 | # Broken: success on invalid input. |
---|
4462 | continue |
---|
4463 | else |
---|
4464 | echo "$as_me: failed program was:" >&5 |
---|
4465 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4466 | |
---|
4467 | # Passes both tests. |
---|
4468 | ac_preproc_ok=: |
---|
4469 | break |
---|
4470 | fi |
---|
4471 | |
---|
4472 | rm -f conftest.err conftest.$ac_ext |
---|
4473 | |
---|
4474 | done |
---|
4475 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
4476 | rm -f conftest.err conftest.$ac_ext |
---|
4477 | if $ac_preproc_ok; then |
---|
4478 | : |
---|
4479 | else |
---|
4480 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
4481 | See \`config.log' for more details." >&5 |
---|
4482 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
4483 | See \`config.log' for more details." >&2;} |
---|
4484 | { (exit 1); exit 1; }; } |
---|
4485 | fi |
---|
4486 | |
---|
4487 | ac_ext=c |
---|
4488 | ac_cpp='$CPP $CPPFLAGS' |
---|
4489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
4490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
4491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
4492 | |
---|
4493 | |
---|
4494 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
---|
4495 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
---|
4496 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4498 | else |
---|
4499 | # Extract the first word of "grep ggrep" to use in msg output |
---|
4500 | if test -z "$GREP"; then |
---|
4501 | set dummy grep ggrep; ac_prog_name=$2 |
---|
4502 | if test "${ac_cv_path_GREP+set}" = set; then |
---|
4503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4504 | else |
---|
4505 | ac_path_GREP_found=false |
---|
4506 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4509 | do |
---|
4510 | IFS=$as_save_IFS |
---|
4511 | test -z "$as_dir" && as_dir=. |
---|
4512 | for ac_prog in grep ggrep; do |
---|
4513 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4514 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4515 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
4516 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4517 | # Check for GNU $ac_path_GREP |
---|
4518 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4519 | *GNU*) |
---|
4520 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4521 | *) |
---|
4522 | ac_count=0 |
---|
4523 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
4524 | while : |
---|
4525 | do |
---|
4526 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4527 | mv "conftest.tmp" "conftest.in" |
---|
4528 | cp "conftest.in" "conftest.nl" |
---|
4529 | echo 'GREP' >> "conftest.nl" |
---|
4530 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4531 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4532 | ac_count=`expr $ac_count + 1` |
---|
4533 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4534 | # Best one so far, save it but keep looking for a better one |
---|
4535 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4536 | ac_path_GREP_max=$ac_count |
---|
4537 | fi |
---|
4538 | # 10*(2^10) chars as input seems more than enough |
---|
4539 | test $ac_count -gt 10 && break |
---|
4540 | done |
---|
4541 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4542 | esac |
---|
4543 | |
---|
4544 | |
---|
4545 | $ac_path_GREP_found && break 3 |
---|
4546 | done |
---|
4547 | done |
---|
4548 | |
---|
4549 | done |
---|
4550 | IFS=$as_save_IFS |
---|
4551 | |
---|
4552 | |
---|
4553 | fi |
---|
4554 | |
---|
4555 | GREP="$ac_cv_path_GREP" |
---|
4556 | if test -z "$GREP"; then |
---|
4557 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
4558 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
4559 | { (exit 1); exit 1; }; } |
---|
4560 | fi |
---|
4561 | |
---|
4562 | else |
---|
4563 | ac_cv_path_GREP=$GREP |
---|
4564 | fi |
---|
4565 | |
---|
4566 | |
---|
4567 | fi |
---|
4568 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
---|
4569 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
---|
4570 | GREP="$ac_cv_path_GREP" |
---|
4571 | |
---|
4572 | |
---|
4573 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
4574 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
---|
4575 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
4576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4577 | else |
---|
4578 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4579 | then ac_cv_path_EGREP="$GREP -E" |
---|
4580 | else |
---|
4581 | # Extract the first word of "egrep" to use in msg output |
---|
4582 | if test -z "$EGREP"; then |
---|
4583 | set dummy egrep; ac_prog_name=$2 |
---|
4584 | if test "${ac_cv_path_EGREP+set}" = set; then |
---|
4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4586 | else |
---|
4587 | ac_path_EGREP_found=false |
---|
4588 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4590 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4591 | do |
---|
4592 | IFS=$as_save_IFS |
---|
4593 | test -z "$as_dir" && as_dir=. |
---|
4594 | for ac_prog in egrep; do |
---|
4595 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4596 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4597 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
4598 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4599 | # Check for GNU $ac_path_EGREP |
---|
4600 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4601 | *GNU*) |
---|
4602 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4603 | *) |
---|
4604 | ac_count=0 |
---|
4605 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
---|
4606 | while : |
---|
4607 | do |
---|
4608 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4609 | mv "conftest.tmp" "conftest.in" |
---|
4610 | cp "conftest.in" "conftest.nl" |
---|
4611 | echo 'EGREP' >> "conftest.nl" |
---|
4612 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4613 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4614 | ac_count=`expr $ac_count + 1` |
---|
4615 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4616 | # Best one so far, save it but keep looking for a better one |
---|
4617 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4618 | ac_path_EGREP_max=$ac_count |
---|
4619 | fi |
---|
4620 | # 10*(2^10) chars as input seems more than enough |
---|
4621 | test $ac_count -gt 10 && break |
---|
4622 | done |
---|
4623 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4624 | esac |
---|
4625 | |
---|
4626 | |
---|
4627 | $ac_path_EGREP_found && break 3 |
---|
4628 | done |
---|
4629 | done |
---|
4630 | |
---|
4631 | done |
---|
4632 | IFS=$as_save_IFS |
---|
4633 | |
---|
4634 | |
---|
4635 | fi |
---|
4636 | |
---|
4637 | EGREP="$ac_cv_path_EGREP" |
---|
4638 | if test -z "$EGREP"; then |
---|
4639 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
---|
4640 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
---|
4641 | { (exit 1); exit 1; }; } |
---|
4642 | fi |
---|
4643 | |
---|
4644 | else |
---|
4645 | ac_cv_path_EGREP=$EGREP |
---|
4646 | fi |
---|
4647 | |
---|
4648 | |
---|
4649 | fi |
---|
4650 | fi |
---|
4651 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
---|
4652 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
---|
4653 | EGREP="$ac_cv_path_EGREP" |
---|
4654 | |
---|
4655 | |
---|
4656 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
4657 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
4658 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
4659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4660 | else |
---|
4661 | cat >conftest.$ac_ext <<_ACEOF |
---|
4662 | /* confdefs.h. */ |
---|
4663 | _ACEOF |
---|
4664 | cat confdefs.h >>conftest.$ac_ext |
---|
4665 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4666 | /* end confdefs.h. */ |
---|
4667 | #include <stdlib.h> |
---|
4668 | #include <stdarg.h> |
---|
4669 | #include <string.h> |
---|
4670 | #include <float.h> |
---|
4671 | |
---|
4672 | int |
---|
4673 | main () |
---|
4674 | { |
---|
4675 | |
---|
4676 | ; |
---|
4677 | return 0; |
---|
4678 | } |
---|
4679 | _ACEOF |
---|
4680 | rm -f conftest.$ac_objext |
---|
4681 | if { (ac_try="$ac_compile" |
---|
4682 | case "(($ac_try" in |
---|
4683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4684 | *) ac_try_echo=$ac_try;; |
---|
4685 | esac |
---|
4686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4687 | (eval "$ac_compile") 2>conftest.er1 |
---|
4688 | ac_status=$? |
---|
4689 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4690 | rm -f conftest.er1 |
---|
4691 | cat conftest.err >&5 |
---|
4692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4693 | (exit $ac_status); } && { |
---|
4694 | test -z "$ac_c_werror_flag" || |
---|
4695 | test ! -s conftest.err |
---|
4696 | } && test -s conftest.$ac_objext; then |
---|
4697 | ac_cv_header_stdc=yes |
---|
4698 | else |
---|
4699 | echo "$as_me: failed program was:" >&5 |
---|
4700 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4701 | |
---|
4702 | ac_cv_header_stdc=no |
---|
4703 | fi |
---|
4704 | |
---|
4705 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4706 | |
---|
4707 | if test $ac_cv_header_stdc = yes; then |
---|
4708 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
4709 | cat >conftest.$ac_ext <<_ACEOF |
---|
4710 | /* confdefs.h. */ |
---|
4711 | _ACEOF |
---|
4712 | cat confdefs.h >>conftest.$ac_ext |
---|
4713 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4714 | /* end confdefs.h. */ |
---|
4715 | #include <string.h> |
---|
4716 | |
---|
4717 | _ACEOF |
---|
4718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4719 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
4720 | : |
---|
4721 | else |
---|
4722 | ac_cv_header_stdc=no |
---|
4723 | fi |
---|
4724 | rm -f conftest* |
---|
4725 | |
---|
4726 | fi |
---|
4727 | |
---|
4728 | if test $ac_cv_header_stdc = yes; then |
---|
4729 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
4730 | cat >conftest.$ac_ext <<_ACEOF |
---|
4731 | /* confdefs.h. */ |
---|
4732 | _ACEOF |
---|
4733 | cat confdefs.h >>conftest.$ac_ext |
---|
4734 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4735 | /* end confdefs.h. */ |
---|
4736 | #include <stdlib.h> |
---|
4737 | |
---|
4738 | _ACEOF |
---|
4739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4740 | $EGREP "free" >/dev/null 2>&1; then |
---|
4741 | : |
---|
4742 | else |
---|
4743 | ac_cv_header_stdc=no |
---|
4744 | fi |
---|
4745 | rm -f conftest* |
---|
4746 | |
---|
4747 | fi |
---|
4748 | |
---|
4749 | if test $ac_cv_header_stdc = yes; then |
---|
4750 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
4751 | if test "$cross_compiling" = yes; then |
---|
4752 | : |
---|
4753 | else |
---|
4754 | cat >conftest.$ac_ext <<_ACEOF |
---|
4755 | /* confdefs.h. */ |
---|
4756 | _ACEOF |
---|
4757 | cat confdefs.h >>conftest.$ac_ext |
---|
4758 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4759 | /* end confdefs.h. */ |
---|
4760 | #include <ctype.h> |
---|
4761 | #include <stdlib.h> |
---|
4762 | #if ((' ' & 0x0FF) == 0x020) |
---|
4763 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
4764 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
4765 | #else |
---|
4766 | # define ISLOWER(c) \ |
---|
4767 | (('a' <= (c) && (c) <= 'i') \ |
---|
4768 | || ('j' <= (c) && (c) <= 'r') \ |
---|
4769 | || ('s' <= (c) && (c) <= 'z')) |
---|
4770 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
4771 | #endif |
---|
4772 | |
---|
4773 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
4774 | int |
---|
4775 | main () |
---|
4776 | { |
---|
4777 | int i; |
---|
4778 | for (i = 0; i < 256; i++) |
---|
4779 | if (XOR (islower (i), ISLOWER (i)) |
---|
4780 | || toupper (i) != TOUPPER (i)) |
---|
4781 | return 2; |
---|
4782 | return 0; |
---|
4783 | } |
---|
4784 | _ACEOF |
---|
4785 | rm -f conftest$ac_exeext |
---|
4786 | if { (ac_try="$ac_link" |
---|
4787 | case "(($ac_try" in |
---|
4788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4789 | *) ac_try_echo=$ac_try;; |
---|
4790 | esac |
---|
4791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4792 | (eval "$ac_link") 2>&5 |
---|
4793 | ac_status=$? |
---|
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
4796 | { (case "(($ac_try" in |
---|
4797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4798 | *) ac_try_echo=$ac_try;; |
---|
4799 | esac |
---|
4800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4801 | (eval "$ac_try") 2>&5 |
---|
4802 | ac_status=$? |
---|
4803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4804 | (exit $ac_status); }; }; then |
---|
4805 | : |
---|
4806 | else |
---|
4807 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
4808 | echo "$as_me: failed program was:" >&5 |
---|
4809 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4810 | |
---|
4811 | ( exit $ac_status ) |
---|
4812 | ac_cv_header_stdc=no |
---|
4813 | fi |
---|
4814 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
4815 | fi |
---|
4816 | |
---|
4817 | |
---|
4818 | fi |
---|
4819 | fi |
---|
4820 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
4821 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
4822 | if test $ac_cv_header_stdc = yes; then |
---|
4823 | |
---|
4824 | cat >>confdefs.h <<\_ACEOF |
---|
4825 | #define STDC_HEADERS 1 |
---|
4826 | _ACEOF |
---|
4827 | |
---|
4828 | fi |
---|
4829 | |
---|
4830 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4831 | |
---|
4832 | |
---|
4833 | |
---|
4834 | |
---|
4835 | |
---|
4836 | |
---|
4837 | |
---|
4838 | |
---|
4839 | |
---|
4840 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4841 | inttypes.h stdint.h unistd.h |
---|
4842 | do |
---|
4843 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4844 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
4846 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
4847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4848 | else |
---|
4849 | cat >conftest.$ac_ext <<_ACEOF |
---|
4850 | /* confdefs.h. */ |
---|
4851 | _ACEOF |
---|
4852 | cat confdefs.h >>conftest.$ac_ext |
---|
4853 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4854 | /* end confdefs.h. */ |
---|
4855 | $ac_includes_default |
---|
4856 | |
---|
4857 | #include <$ac_header> |
---|
4858 | _ACEOF |
---|
4859 | rm -f conftest.$ac_objext |
---|
4860 | if { (ac_try="$ac_compile" |
---|
4861 | case "(($ac_try" in |
---|
4862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4863 | *) ac_try_echo=$ac_try;; |
---|
4864 | esac |
---|
4865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4866 | (eval "$ac_compile") 2>conftest.er1 |
---|
4867 | ac_status=$? |
---|
4868 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4869 | rm -f conftest.er1 |
---|
4870 | cat conftest.err >&5 |
---|
4871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4872 | (exit $ac_status); } && { |
---|
4873 | test -z "$ac_c_werror_flag" || |
---|
4874 | test ! -s conftest.err |
---|
4875 | } && test -s conftest.$ac_objext; then |
---|
4876 | eval "$as_ac_Header=yes" |
---|
4877 | else |
---|
4878 | echo "$as_me: failed program was:" >&5 |
---|
4879 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4880 | |
---|
4881 | eval "$as_ac_Header=no" |
---|
4882 | fi |
---|
4883 | |
---|
4884 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4885 | fi |
---|
4886 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
4887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
4888 | echo "${ECHO_T}$ac_res" >&6; } |
---|
4889 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4890 | cat >>confdefs.h <<_ACEOF |
---|
4891 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4892 | _ACEOF |
---|
4893 | |
---|
4894 | fi |
---|
4895 | |
---|
4896 | done |
---|
4897 | |
---|
4898 | |
---|
4899 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
---|
4900 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
---|
4901 | if test "${ac_cv_c_bigendian+set}" = set; then |
---|
4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4903 | else |
---|
4904 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
4905 | cat >conftest.$ac_ext <<_ACEOF |
---|
4906 | /* confdefs.h. */ |
---|
4907 | _ACEOF |
---|
4908 | cat confdefs.h >>conftest.$ac_ext |
---|
4909 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4910 | /* end confdefs.h. */ |
---|
4911 | #include <sys/types.h> |
---|
4912 | #include <sys/param.h> |
---|
4913 | |
---|
4914 | int |
---|
4915 | main () |
---|
4916 | { |
---|
4917 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
---|
4918 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
---|
4919 | bogus endian macros |
---|
4920 | #endif |
---|
4921 | |
---|
4922 | ; |
---|
4923 | return 0; |
---|
4924 | } |
---|
4925 | _ACEOF |
---|
4926 | rm -f conftest.$ac_objext |
---|
4927 | if { (ac_try="$ac_compile" |
---|
4928 | case "(($ac_try" in |
---|
4929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4930 | *) ac_try_echo=$ac_try;; |
---|
4931 | esac |
---|
4932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4933 | (eval "$ac_compile") 2>conftest.er1 |
---|
4934 | ac_status=$? |
---|
4935 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4936 | rm -f conftest.er1 |
---|
4937 | cat conftest.err >&5 |
---|
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4939 | (exit $ac_status); } && { |
---|
4940 | test -z "$ac_c_werror_flag" || |
---|
4941 | test ! -s conftest.err |
---|
4942 | } && test -s conftest.$ac_objext; then |
---|
4943 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
4944 | cat >conftest.$ac_ext <<_ACEOF |
---|
4945 | /* confdefs.h. */ |
---|
4946 | _ACEOF |
---|
4947 | cat confdefs.h >>conftest.$ac_ext |
---|
4948 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4949 | /* end confdefs.h. */ |
---|
4950 | #include <sys/types.h> |
---|
4951 | #include <sys/param.h> |
---|
4952 | |
---|
4953 | int |
---|
4954 | main () |
---|
4955 | { |
---|
4956 | #if BYTE_ORDER != BIG_ENDIAN |
---|
4957 | not big endian |
---|
4958 | #endif |
---|
4959 | |
---|
4960 | ; |
---|
4961 | return 0; |
---|
4962 | } |
---|
4963 | _ACEOF |
---|
4964 | rm -f conftest.$ac_objext |
---|
4965 | if { (ac_try="$ac_compile" |
---|
4966 | case "(($ac_try" in |
---|
4967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
4968 | *) ac_try_echo=$ac_try;; |
---|
4969 | esac |
---|
4970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
4971 | (eval "$ac_compile") 2>conftest.er1 |
---|
4972 | ac_status=$? |
---|
4973 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4974 | rm -f conftest.er1 |
---|
4975 | cat conftest.err >&5 |
---|
4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4977 | (exit $ac_status); } && { |
---|
4978 | test -z "$ac_c_werror_flag" || |
---|
4979 | test ! -s conftest.err |
---|
4980 | } && test -s conftest.$ac_objext; then |
---|
4981 | ac_cv_c_bigendian=yes |
---|
4982 | else |
---|
4983 | echo "$as_me: failed program was:" >&5 |
---|
4984 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4985 | |
---|
4986 | ac_cv_c_bigendian=no |
---|
4987 | fi |
---|
4988 | |
---|
4989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4990 | else |
---|
4991 | echo "$as_me: failed program was:" >&5 |
---|
4992 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4993 | |
---|
4994 | # It does not; compile a test program. |
---|
4995 | if test "$cross_compiling" = yes; then |
---|
4996 | # try to guess the endianness by grepping values into an object file |
---|
4997 | ac_cv_c_bigendian=unknown |
---|
4998 | cat >conftest.$ac_ext <<_ACEOF |
---|
4999 | /* confdefs.h. */ |
---|
5000 | _ACEOF |
---|
5001 | cat confdefs.h >>conftest.$ac_ext |
---|
5002 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5003 | /* end confdefs.h. */ |
---|
5004 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
---|
5005 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
---|
5006 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
---|
5007 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
---|
5008 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
---|
5009 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
---|
5010 | int |
---|
5011 | main () |
---|
5012 | { |
---|
5013 | _ascii (); _ebcdic (); |
---|
5014 | ; |
---|
5015 | return 0; |
---|
5016 | } |
---|
5017 | _ACEOF |
---|
5018 | rm -f conftest.$ac_objext |
---|
5019 | if { (ac_try="$ac_compile" |
---|
5020 | case "(($ac_try" in |
---|
5021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5022 | *) ac_try_echo=$ac_try;; |
---|
5023 | esac |
---|
5024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5025 | (eval "$ac_compile") 2>conftest.er1 |
---|
5026 | ac_status=$? |
---|
5027 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5028 | rm -f conftest.er1 |
---|
5029 | cat conftest.err >&5 |
---|
5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5031 | (exit $ac_status); } && { |
---|
5032 | test -z "$ac_c_werror_flag" || |
---|
5033 | test ! -s conftest.err |
---|
5034 | } && test -s conftest.$ac_objext; then |
---|
5035 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
---|
5036 | ac_cv_c_bigendian=yes |
---|
5037 | fi |
---|
5038 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
---|
5039 | if test "$ac_cv_c_bigendian" = unknown; then |
---|
5040 | ac_cv_c_bigendian=no |
---|
5041 | else |
---|
5042 | # finding both strings is unlikely to happen, but who knows? |
---|
5043 | ac_cv_c_bigendian=unknown |
---|
5044 | fi |
---|
5045 | fi |
---|
5046 | else |
---|
5047 | echo "$as_me: failed program was:" >&5 |
---|
5048 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5049 | |
---|
5050 | |
---|
5051 | fi |
---|
5052 | |
---|
5053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5054 | else |
---|
5055 | cat >conftest.$ac_ext <<_ACEOF |
---|
5056 | /* confdefs.h. */ |
---|
5057 | _ACEOF |
---|
5058 | cat confdefs.h >>conftest.$ac_ext |
---|
5059 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5060 | /* end confdefs.h. */ |
---|
5061 | $ac_includes_default |
---|
5062 | int |
---|
5063 | main () |
---|
5064 | { |
---|
5065 | |
---|
5066 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
5067 | union |
---|
5068 | { |
---|
5069 | long int l; |
---|
5070 | char c[sizeof (long int)]; |
---|
5071 | } u; |
---|
5072 | u.l = 1; |
---|
5073 | return u.c[sizeof (long int) - 1] == 1; |
---|
5074 | |
---|
5075 | ; |
---|
5076 | return 0; |
---|
5077 | } |
---|
5078 | _ACEOF |
---|
5079 | rm -f conftest$ac_exeext |
---|
5080 | if { (ac_try="$ac_link" |
---|
5081 | case "(($ac_try" in |
---|
5082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5083 | *) ac_try_echo=$ac_try;; |
---|
5084 | esac |
---|
5085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5086 | (eval "$ac_link") 2>&5 |
---|
5087 | ac_status=$? |
---|
5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5090 | { (case "(($ac_try" in |
---|
5091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5092 | *) ac_try_echo=$ac_try;; |
---|
5093 | esac |
---|
5094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5095 | (eval "$ac_try") 2>&5 |
---|
5096 | ac_status=$? |
---|
5097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5098 | (exit $ac_status); }; }; then |
---|
5099 | ac_cv_c_bigendian=no |
---|
5100 | else |
---|
5101 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5102 | echo "$as_me: failed program was:" >&5 |
---|
5103 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5104 | |
---|
5105 | ( exit $ac_status ) |
---|
5106 | ac_cv_c_bigendian=yes |
---|
5107 | fi |
---|
5108 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5109 | fi |
---|
5110 | |
---|
5111 | |
---|
5112 | fi |
---|
5113 | |
---|
5114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5115 | fi |
---|
5116 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
---|
5117 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
---|
5118 | case $ac_cv_c_bigendian in |
---|
5119 | yes) |
---|
5120 | ac_is_bigendian=yes ;; |
---|
5121 | no) |
---|
5122 | ac_is_bigendian=no |
---|
5123 | ;; |
---|
5124 | *) |
---|
5125 | { { echo "$as_me:$LINENO: error: unknown endianness |
---|
5126 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
---|
5127 | echo "$as_me: error: unknown endianness |
---|
5128 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
---|
5129 | { (exit 1); exit 1; }; } ;; |
---|
5130 | esac |
---|
5131 | |
---|
5132 | if test $ac_is_bigendian = yes; then |
---|
5133 | CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_MSB" |
---|
5134 | else |
---|
5135 | CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_LSB" |
---|
5136 | fi |
---|
5137 | |
---|
5138 | { echo "$as_me:$LINENO: checking for char" >&5 |
---|
5139 | echo $ECHO_N "checking for char... $ECHO_C" >&6; } |
---|
5140 | if test "${ac_cv_type_char+set}" = set; then |
---|
5141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5142 | else |
---|
5143 | cat >conftest.$ac_ext <<_ACEOF |
---|
5144 | /* confdefs.h. */ |
---|
5145 | _ACEOF |
---|
5146 | cat confdefs.h >>conftest.$ac_ext |
---|
5147 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5148 | /* end confdefs.h. */ |
---|
5149 | $ac_includes_default |
---|
5150 | typedef char ac__type_new_; |
---|
5151 | int |
---|
5152 | main () |
---|
5153 | { |
---|
5154 | if ((ac__type_new_ *) 0) |
---|
5155 | return 0; |
---|
5156 | if (sizeof (ac__type_new_)) |
---|
5157 | return 0; |
---|
5158 | ; |
---|
5159 | return 0; |
---|
5160 | } |
---|
5161 | _ACEOF |
---|
5162 | rm -f conftest.$ac_objext |
---|
5163 | if { (ac_try="$ac_compile" |
---|
5164 | case "(($ac_try" in |
---|
5165 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5166 | *) ac_try_echo=$ac_try;; |
---|
5167 | esac |
---|
5168 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5169 | (eval "$ac_compile") 2>conftest.er1 |
---|
5170 | ac_status=$? |
---|
5171 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5172 | rm -f conftest.er1 |
---|
5173 | cat conftest.err >&5 |
---|
5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5175 | (exit $ac_status); } && { |
---|
5176 | test -z "$ac_c_werror_flag" || |
---|
5177 | test ! -s conftest.err |
---|
5178 | } && test -s conftest.$ac_objext; then |
---|
5179 | ac_cv_type_char=yes |
---|
5180 | else |
---|
5181 | echo "$as_me: failed program was:" >&5 |
---|
5182 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5183 | |
---|
5184 | ac_cv_type_char=no |
---|
5185 | fi |
---|
5186 | |
---|
5187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5188 | fi |
---|
5189 | { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
---|
5190 | echo "${ECHO_T}$ac_cv_type_char" >&6; } |
---|
5191 | |
---|
5192 | # The cast to long int works around a bug in the HP C Compiler |
---|
5193 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5194 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5195 | # This bug is HP SR number 8606223364. |
---|
5196 | { echo "$as_me:$LINENO: checking size of char" >&5 |
---|
5197 | echo $ECHO_N "checking size of char... $ECHO_C" >&6; } |
---|
5198 | if test "${ac_cv_sizeof_char+set}" = set; then |
---|
5199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5200 | else |
---|
5201 | if test "$cross_compiling" = yes; then |
---|
5202 | # Depending upon the size, compute the lo and hi bounds. |
---|
5203 | cat >conftest.$ac_ext <<_ACEOF |
---|
5204 | /* confdefs.h. */ |
---|
5205 | _ACEOF |
---|
5206 | cat confdefs.h >>conftest.$ac_ext |
---|
5207 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5208 | /* end confdefs.h. */ |
---|
5209 | $ac_includes_default |
---|
5210 | typedef char ac__type_sizeof_; |
---|
5211 | int |
---|
5212 | main () |
---|
5213 | { |
---|
5214 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
---|
5215 | test_array [0] = 0 |
---|
5216 | |
---|
5217 | ; |
---|
5218 | return 0; |
---|
5219 | } |
---|
5220 | _ACEOF |
---|
5221 | rm -f conftest.$ac_objext |
---|
5222 | if { (ac_try="$ac_compile" |
---|
5223 | case "(($ac_try" in |
---|
5224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5225 | *) ac_try_echo=$ac_try;; |
---|
5226 | esac |
---|
5227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5228 | (eval "$ac_compile") 2>conftest.er1 |
---|
5229 | ac_status=$? |
---|
5230 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5231 | rm -f conftest.er1 |
---|
5232 | cat conftest.err >&5 |
---|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5234 | (exit $ac_status); } && { |
---|
5235 | test -z "$ac_c_werror_flag" || |
---|
5236 | test ! -s conftest.err |
---|
5237 | } && test -s conftest.$ac_objext; then |
---|
5238 | ac_lo=0 ac_mid=0 |
---|
5239 | while :; do |
---|
5240 | cat >conftest.$ac_ext <<_ACEOF |
---|
5241 | /* confdefs.h. */ |
---|
5242 | _ACEOF |
---|
5243 | cat confdefs.h >>conftest.$ac_ext |
---|
5244 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5245 | /* end confdefs.h. */ |
---|
5246 | $ac_includes_default |
---|
5247 | typedef char ac__type_sizeof_; |
---|
5248 | int |
---|
5249 | main () |
---|
5250 | { |
---|
5251 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
5252 | test_array [0] = 0 |
---|
5253 | |
---|
5254 | ; |
---|
5255 | return 0; |
---|
5256 | } |
---|
5257 | _ACEOF |
---|
5258 | rm -f conftest.$ac_objext |
---|
5259 | if { (ac_try="$ac_compile" |
---|
5260 | case "(($ac_try" in |
---|
5261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5262 | *) ac_try_echo=$ac_try;; |
---|
5263 | esac |
---|
5264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5265 | (eval "$ac_compile") 2>conftest.er1 |
---|
5266 | ac_status=$? |
---|
5267 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5268 | rm -f conftest.er1 |
---|
5269 | cat conftest.err >&5 |
---|
5270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5271 | (exit $ac_status); } && { |
---|
5272 | test -z "$ac_c_werror_flag" || |
---|
5273 | test ! -s conftest.err |
---|
5274 | } && test -s conftest.$ac_objext; then |
---|
5275 | ac_hi=$ac_mid; break |
---|
5276 | else |
---|
5277 | echo "$as_me: failed program was:" >&5 |
---|
5278 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5279 | |
---|
5280 | ac_lo=`expr $ac_mid + 1` |
---|
5281 | if test $ac_lo -le $ac_mid; then |
---|
5282 | ac_lo= ac_hi= |
---|
5283 | break |
---|
5284 | fi |
---|
5285 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
5286 | fi |
---|
5287 | |
---|
5288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5289 | done |
---|
5290 | else |
---|
5291 | echo "$as_me: failed program was:" >&5 |
---|
5292 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5293 | |
---|
5294 | cat >conftest.$ac_ext <<_ACEOF |
---|
5295 | /* confdefs.h. */ |
---|
5296 | _ACEOF |
---|
5297 | cat confdefs.h >>conftest.$ac_ext |
---|
5298 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5299 | /* end confdefs.h. */ |
---|
5300 | $ac_includes_default |
---|
5301 | typedef char ac__type_sizeof_; |
---|
5302 | int |
---|
5303 | main () |
---|
5304 | { |
---|
5305 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
---|
5306 | test_array [0] = 0 |
---|
5307 | |
---|
5308 | ; |
---|
5309 | return 0; |
---|
5310 | } |
---|
5311 | _ACEOF |
---|
5312 | rm -f conftest.$ac_objext |
---|
5313 | if { (ac_try="$ac_compile" |
---|
5314 | case "(($ac_try" in |
---|
5315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5316 | *) ac_try_echo=$ac_try;; |
---|
5317 | esac |
---|
5318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5319 | (eval "$ac_compile") 2>conftest.er1 |
---|
5320 | ac_status=$? |
---|
5321 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5322 | rm -f conftest.er1 |
---|
5323 | cat conftest.err >&5 |
---|
5324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5325 | (exit $ac_status); } && { |
---|
5326 | test -z "$ac_c_werror_flag" || |
---|
5327 | test ! -s conftest.err |
---|
5328 | } && test -s conftest.$ac_objext; then |
---|
5329 | ac_hi=-1 ac_mid=-1 |
---|
5330 | while :; do |
---|
5331 | cat >conftest.$ac_ext <<_ACEOF |
---|
5332 | /* confdefs.h. */ |
---|
5333 | _ACEOF |
---|
5334 | cat confdefs.h >>conftest.$ac_ext |
---|
5335 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5336 | /* end confdefs.h. */ |
---|
5337 | $ac_includes_default |
---|
5338 | typedef char ac__type_sizeof_; |
---|
5339 | int |
---|
5340 | main () |
---|
5341 | { |
---|
5342 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
---|
5343 | test_array [0] = 0 |
---|
5344 | |
---|
5345 | ; |
---|
5346 | return 0; |
---|
5347 | } |
---|
5348 | _ACEOF |
---|
5349 | rm -f conftest.$ac_objext |
---|
5350 | if { (ac_try="$ac_compile" |
---|
5351 | case "(($ac_try" in |
---|
5352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5353 | *) ac_try_echo=$ac_try;; |
---|
5354 | esac |
---|
5355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5356 | (eval "$ac_compile") 2>conftest.er1 |
---|
5357 | ac_status=$? |
---|
5358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5359 | rm -f conftest.er1 |
---|
5360 | cat conftest.err >&5 |
---|
5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5362 | (exit $ac_status); } && { |
---|
5363 | test -z "$ac_c_werror_flag" || |
---|
5364 | test ! -s conftest.err |
---|
5365 | } && test -s conftest.$ac_objext; then |
---|
5366 | ac_lo=$ac_mid; break |
---|
5367 | else |
---|
5368 | echo "$as_me: failed program was:" >&5 |
---|
5369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5370 | |
---|
5371 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
5372 | if test $ac_mid -le $ac_hi; then |
---|
5373 | ac_lo= ac_hi= |
---|
5374 | break |
---|
5375 | fi |
---|
5376 | ac_mid=`expr 2 '*' $ac_mid` |
---|
5377 | fi |
---|
5378 | |
---|
5379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5380 | done |
---|
5381 | else |
---|
5382 | echo "$as_me: failed program was:" >&5 |
---|
5383 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5384 | |
---|
5385 | ac_lo= ac_hi= |
---|
5386 | fi |
---|
5387 | |
---|
5388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5389 | fi |
---|
5390 | |
---|
5391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5392 | # Binary search between lo and hi bounds. |
---|
5393 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
5394 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
5395 | cat >conftest.$ac_ext <<_ACEOF |
---|
5396 | /* confdefs.h. */ |
---|
5397 | _ACEOF |
---|
5398 | cat confdefs.h >>conftest.$ac_ext |
---|
5399 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5400 | /* end confdefs.h. */ |
---|
5401 | $ac_includes_default |
---|
5402 | typedef char ac__type_sizeof_; |
---|
5403 | int |
---|
5404 | main () |
---|
5405 | { |
---|
5406 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
5407 | test_array [0] = 0 |
---|
5408 | |
---|
5409 | ; |
---|
5410 | return 0; |
---|
5411 | } |
---|
5412 | _ACEOF |
---|
5413 | rm -f conftest.$ac_objext |
---|
5414 | if { (ac_try="$ac_compile" |
---|
5415 | case "(($ac_try" in |
---|
5416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5417 | *) ac_try_echo=$ac_try;; |
---|
5418 | esac |
---|
5419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5420 | (eval "$ac_compile") 2>conftest.er1 |
---|
5421 | ac_status=$? |
---|
5422 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5423 | rm -f conftest.er1 |
---|
5424 | cat conftest.err >&5 |
---|
5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5426 | (exit $ac_status); } && { |
---|
5427 | test -z "$ac_c_werror_flag" || |
---|
5428 | test ! -s conftest.err |
---|
5429 | } && test -s conftest.$ac_objext; then |
---|
5430 | ac_hi=$ac_mid |
---|
5431 | else |
---|
5432 | echo "$as_me: failed program was:" >&5 |
---|
5433 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5434 | |
---|
5435 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
5436 | fi |
---|
5437 | |
---|
5438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5439 | done |
---|
5440 | case $ac_lo in |
---|
5441 | ?*) ac_cv_sizeof_char=$ac_lo;; |
---|
5442 | '') if test "$ac_cv_type_char" = yes; then |
---|
5443 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) |
---|
5444 | See \`config.log' for more details." >&5 |
---|
5445 | echo "$as_me: error: cannot compute sizeof (char) |
---|
5446 | See \`config.log' for more details." >&2;} |
---|
5447 | { (exit 77); exit 77; }; } |
---|
5448 | else |
---|
5449 | ac_cv_sizeof_char=0 |
---|
5450 | fi ;; |
---|
5451 | esac |
---|
5452 | else |
---|
5453 | cat >conftest.$ac_ext <<_ACEOF |
---|
5454 | /* confdefs.h. */ |
---|
5455 | _ACEOF |
---|
5456 | cat confdefs.h >>conftest.$ac_ext |
---|
5457 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5458 | /* end confdefs.h. */ |
---|
5459 | $ac_includes_default |
---|
5460 | typedef char ac__type_sizeof_; |
---|
5461 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
5462 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
5463 | #include <stdio.h> |
---|
5464 | #include <stdlib.h> |
---|
5465 | int |
---|
5466 | main () |
---|
5467 | { |
---|
5468 | |
---|
5469 | FILE *f = fopen ("conftest.val", "w"); |
---|
5470 | if (! f) |
---|
5471 | return 1; |
---|
5472 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
---|
5473 | { |
---|
5474 | long int i = longval (); |
---|
5475 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
5476 | return 1; |
---|
5477 | fprintf (f, "%ld\n", i); |
---|
5478 | } |
---|
5479 | else |
---|
5480 | { |
---|
5481 | unsigned long int i = ulongval (); |
---|
5482 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
5483 | return 1; |
---|
5484 | fprintf (f, "%lu\n", i); |
---|
5485 | } |
---|
5486 | return ferror (f) || fclose (f) != 0; |
---|
5487 | |
---|
5488 | ; |
---|
5489 | return 0; |
---|
5490 | } |
---|
5491 | _ACEOF |
---|
5492 | rm -f conftest$ac_exeext |
---|
5493 | if { (ac_try="$ac_link" |
---|
5494 | case "(($ac_try" in |
---|
5495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5496 | *) ac_try_echo=$ac_try;; |
---|
5497 | esac |
---|
5498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5499 | (eval "$ac_link") 2>&5 |
---|
5500 | ac_status=$? |
---|
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5503 | { (case "(($ac_try" in |
---|
5504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5505 | *) ac_try_echo=$ac_try;; |
---|
5506 | esac |
---|
5507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5508 | (eval "$ac_try") 2>&5 |
---|
5509 | ac_status=$? |
---|
5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5511 | (exit $ac_status); }; }; then |
---|
5512 | ac_cv_sizeof_char=`cat conftest.val` |
---|
5513 | else |
---|
5514 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5515 | echo "$as_me: failed program was:" >&5 |
---|
5516 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5517 | |
---|
5518 | ( exit $ac_status ) |
---|
5519 | if test "$ac_cv_type_char" = yes; then |
---|
5520 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) |
---|
5521 | See \`config.log' for more details." >&5 |
---|
5522 | echo "$as_me: error: cannot compute sizeof (char) |
---|
5523 | See \`config.log' for more details." >&2;} |
---|
5524 | { (exit 77); exit 77; }; } |
---|
5525 | else |
---|
5526 | ac_cv_sizeof_char=0 |
---|
5527 | fi |
---|
5528 | fi |
---|
5529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5530 | fi |
---|
5531 | rm -f conftest.val |
---|
5532 | fi |
---|
5533 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
---|
5534 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } |
---|
5535 | |
---|
5536 | |
---|
5537 | |
---|
5538 | cat >>confdefs.h <<_ACEOF |
---|
5539 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
---|
5540 | _ACEOF |
---|
5541 | |
---|
5542 | |
---|
5543 | { echo "$as_me:$LINENO: checking for short" >&5 |
---|
5544 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
---|
5545 | if test "${ac_cv_type_short+set}" = set; then |
---|
5546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5547 | else |
---|
5548 | cat >conftest.$ac_ext <<_ACEOF |
---|
5549 | /* confdefs.h. */ |
---|
5550 | _ACEOF |
---|
5551 | cat confdefs.h >>conftest.$ac_ext |
---|
5552 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5553 | /* end confdefs.h. */ |
---|
5554 | $ac_includes_default |
---|
5555 | typedef short ac__type_new_; |
---|
5556 | int |
---|
5557 | main () |
---|
5558 | { |
---|
5559 | if ((ac__type_new_ *) 0) |
---|
5560 | return 0; |
---|
5561 | if (sizeof (ac__type_new_)) |
---|
5562 | return 0; |
---|
5563 | ; |
---|
5564 | return 0; |
---|
5565 | } |
---|
5566 | _ACEOF |
---|
5567 | rm -f conftest.$ac_objext |
---|
5568 | if { (ac_try="$ac_compile" |
---|
5569 | case "(($ac_try" in |
---|
5570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5571 | *) ac_try_echo=$ac_try;; |
---|
5572 | esac |
---|
5573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5574 | (eval "$ac_compile") 2>conftest.er1 |
---|
5575 | ac_status=$? |
---|
5576 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5577 | rm -f conftest.er1 |
---|
5578 | cat conftest.err >&5 |
---|
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5580 | (exit $ac_status); } && { |
---|
5581 | test -z "$ac_c_werror_flag" || |
---|
5582 | test ! -s conftest.err |
---|
5583 | } && test -s conftest.$ac_objext; then |
---|
5584 | ac_cv_type_short=yes |
---|
5585 | else |
---|
5586 | echo "$as_me: failed program was:" >&5 |
---|
5587 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5588 | |
---|
5589 | ac_cv_type_short=no |
---|
5590 | fi |
---|
5591 | |
---|
5592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5593 | fi |
---|
5594 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
---|
5595 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
---|
5596 | |
---|
5597 | # The cast to long int works around a bug in the HP C Compiler |
---|
5598 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
5599 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
5600 | # This bug is HP SR number 8606223364. |
---|
5601 | { echo "$as_me:$LINENO: checking size of short" >&5 |
---|
5602 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
---|
5603 | if test "${ac_cv_sizeof_short+set}" = set; then |
---|
5604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5605 | else |
---|
5606 | if test "$cross_compiling" = yes; then |
---|
5607 | # Depending upon the size, compute the lo and hi bounds. |
---|
5608 | cat >conftest.$ac_ext <<_ACEOF |
---|
5609 | /* confdefs.h. */ |
---|
5610 | _ACEOF |
---|
5611 | cat confdefs.h >>conftest.$ac_ext |
---|
5612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5613 | /* end confdefs.h. */ |
---|
5614 | $ac_includes_default |
---|
5615 | typedef short ac__type_sizeof_; |
---|
5616 | int |
---|
5617 | main () |
---|
5618 | { |
---|
5619 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
---|
5620 | test_array [0] = 0 |
---|
5621 | |
---|
5622 | ; |
---|
5623 | return 0; |
---|
5624 | } |
---|
5625 | _ACEOF |
---|
5626 | rm -f conftest.$ac_objext |
---|
5627 | if { (ac_try="$ac_compile" |
---|
5628 | case "(($ac_try" in |
---|
5629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5630 | *) ac_try_echo=$ac_try;; |
---|
5631 | esac |
---|
5632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5633 | (eval "$ac_compile") 2>conftest.er1 |
---|
5634 | ac_status=$? |
---|
5635 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5636 | rm -f conftest.er1 |
---|
5637 | cat conftest.err >&5 |
---|
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5639 | (exit $ac_status); } && { |
---|
5640 | test -z "$ac_c_werror_flag" || |
---|
5641 | test ! -s conftest.err |
---|
5642 | } && test -s conftest.$ac_objext; then |
---|
5643 | ac_lo=0 ac_mid=0 |
---|
5644 | while :; do |
---|
5645 | cat >conftest.$ac_ext <<_ACEOF |
---|
5646 | /* confdefs.h. */ |
---|
5647 | _ACEOF |
---|
5648 | cat confdefs.h >>conftest.$ac_ext |
---|
5649 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5650 | /* end confdefs.h. */ |
---|
5651 | $ac_includes_default |
---|
5652 | typedef short ac__type_sizeof_; |
---|
5653 | int |
---|
5654 | main () |
---|
5655 | { |
---|
5656 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
5657 | test_array [0] = 0 |
---|
5658 | |
---|
5659 | ; |
---|
5660 | return 0; |
---|
5661 | } |
---|
5662 | _ACEOF |
---|
5663 | rm -f conftest.$ac_objext |
---|
5664 | if { (ac_try="$ac_compile" |
---|
5665 | case "(($ac_try" in |
---|
5666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5667 | *) ac_try_echo=$ac_try;; |
---|
5668 | esac |
---|
5669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5670 | (eval "$ac_compile") 2>conftest.er1 |
---|
5671 | ac_status=$? |
---|
5672 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5673 | rm -f conftest.er1 |
---|
5674 | cat conftest.err >&5 |
---|
5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5676 | (exit $ac_status); } && { |
---|
5677 | test -z "$ac_c_werror_flag" || |
---|
5678 | test ! -s conftest.err |
---|
5679 | } && test -s conftest.$ac_objext; then |
---|
5680 | ac_hi=$ac_mid; break |
---|
5681 | else |
---|
5682 | echo "$as_me: failed program was:" >&5 |
---|
5683 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5684 | |
---|
5685 | ac_lo=`expr $ac_mid + 1` |
---|
5686 | if test $ac_lo -le $ac_mid; then |
---|
5687 | ac_lo= ac_hi= |
---|
5688 | break |
---|
5689 | fi |
---|
5690 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
5691 | fi |
---|
5692 | |
---|
5693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5694 | done |
---|
5695 | else |
---|
5696 | echo "$as_me: failed program was:" >&5 |
---|
5697 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5698 | |
---|
5699 | cat >conftest.$ac_ext <<_ACEOF |
---|
5700 | /* confdefs.h. */ |
---|
5701 | _ACEOF |
---|
5702 | cat confdefs.h >>conftest.$ac_ext |
---|
5703 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5704 | /* end confdefs.h. */ |
---|
5705 | $ac_includes_default |
---|
5706 | typedef short ac__type_sizeof_; |
---|
5707 | int |
---|
5708 | main () |
---|
5709 | { |
---|
5710 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
---|
5711 | test_array [0] = 0 |
---|
5712 | |
---|
5713 | ; |
---|
5714 | return 0; |
---|
5715 | } |
---|
5716 | _ACEOF |
---|
5717 | rm -f conftest.$ac_objext |
---|
5718 | if { (ac_try="$ac_compile" |
---|
5719 | case "(($ac_try" in |
---|
5720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5721 | *) ac_try_echo=$ac_try;; |
---|
5722 | esac |
---|
5723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5724 | (eval "$ac_compile") 2>conftest.er1 |
---|
5725 | ac_status=$? |
---|
5726 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5727 | rm -f conftest.er1 |
---|
5728 | cat conftest.err >&5 |
---|
5729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5730 | (exit $ac_status); } && { |
---|
5731 | test -z "$ac_c_werror_flag" || |
---|
5732 | test ! -s conftest.err |
---|
5733 | } && test -s conftest.$ac_objext; then |
---|
5734 | ac_hi=-1 ac_mid=-1 |
---|
5735 | while :; do |
---|
5736 | cat >conftest.$ac_ext <<_ACEOF |
---|
5737 | /* confdefs.h. */ |
---|
5738 | _ACEOF |
---|
5739 | cat confdefs.h >>conftest.$ac_ext |
---|
5740 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5741 | /* end confdefs.h. */ |
---|
5742 | $ac_includes_default |
---|
5743 | typedef short ac__type_sizeof_; |
---|
5744 | int |
---|
5745 | main () |
---|
5746 | { |
---|
5747 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
---|
5748 | test_array [0] = 0 |
---|
5749 | |
---|
5750 | ; |
---|
5751 | return 0; |
---|
5752 | } |
---|
5753 | _ACEOF |
---|
5754 | rm -f conftest.$ac_objext |
---|
5755 | if { (ac_try="$ac_compile" |
---|
5756 | case "(($ac_try" in |
---|
5757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5758 | *) ac_try_echo=$ac_try;; |
---|
5759 | esac |
---|
5760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5761 | (eval "$ac_compile") 2>conftest.er1 |
---|
5762 | ac_status=$? |
---|
5763 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5764 | rm -f conftest.er1 |
---|
5765 | cat conftest.err >&5 |
---|
5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5767 | (exit $ac_status); } && { |
---|
5768 | test -z "$ac_c_werror_flag" || |
---|
5769 | test ! -s conftest.err |
---|
5770 | } && test -s conftest.$ac_objext; then |
---|
5771 | ac_lo=$ac_mid; break |
---|
5772 | else |
---|
5773 | echo "$as_me: failed program was:" >&5 |
---|
5774 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5775 | |
---|
5776 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
5777 | if test $ac_mid -le $ac_hi; then |
---|
5778 | ac_lo= ac_hi= |
---|
5779 | break |
---|
5780 | fi |
---|
5781 | ac_mid=`expr 2 '*' $ac_mid` |
---|
5782 | fi |
---|
5783 | |
---|
5784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5785 | done |
---|
5786 | else |
---|
5787 | echo "$as_me: failed program was:" >&5 |
---|
5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5789 | |
---|
5790 | ac_lo= ac_hi= |
---|
5791 | fi |
---|
5792 | |
---|
5793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5794 | fi |
---|
5795 | |
---|
5796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5797 | # Binary search between lo and hi bounds. |
---|
5798 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
5799 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
5800 | cat >conftest.$ac_ext <<_ACEOF |
---|
5801 | /* confdefs.h. */ |
---|
5802 | _ACEOF |
---|
5803 | cat confdefs.h >>conftest.$ac_ext |
---|
5804 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5805 | /* end confdefs.h. */ |
---|
5806 | $ac_includes_default |
---|
5807 | typedef short ac__type_sizeof_; |
---|
5808 | int |
---|
5809 | main () |
---|
5810 | { |
---|
5811 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
5812 | test_array [0] = 0 |
---|
5813 | |
---|
5814 | ; |
---|
5815 | return 0; |
---|
5816 | } |
---|
5817 | _ACEOF |
---|
5818 | rm -f conftest.$ac_objext |
---|
5819 | if { (ac_try="$ac_compile" |
---|
5820 | case "(($ac_try" in |
---|
5821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5822 | *) ac_try_echo=$ac_try;; |
---|
5823 | esac |
---|
5824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5825 | (eval "$ac_compile") 2>conftest.er1 |
---|
5826 | ac_status=$? |
---|
5827 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5828 | rm -f conftest.er1 |
---|
5829 | cat conftest.err >&5 |
---|
5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5831 | (exit $ac_status); } && { |
---|
5832 | test -z "$ac_c_werror_flag" || |
---|
5833 | test ! -s conftest.err |
---|
5834 | } && test -s conftest.$ac_objext; then |
---|
5835 | ac_hi=$ac_mid |
---|
5836 | else |
---|
5837 | echo "$as_me: failed program was:" >&5 |
---|
5838 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5839 | |
---|
5840 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
5841 | fi |
---|
5842 | |
---|
5843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5844 | done |
---|
5845 | case $ac_lo in |
---|
5846 | ?*) ac_cv_sizeof_short=$ac_lo;; |
---|
5847 | '') if test "$ac_cv_type_short" = yes; then |
---|
5848 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
---|
5849 | See \`config.log' for more details." >&5 |
---|
5850 | echo "$as_me: error: cannot compute sizeof (short) |
---|
5851 | See \`config.log' for more details." >&2;} |
---|
5852 | { (exit 77); exit 77; }; } |
---|
5853 | else |
---|
5854 | ac_cv_sizeof_short=0 |
---|
5855 | fi ;; |
---|
5856 | esac |
---|
5857 | else |
---|
5858 | cat >conftest.$ac_ext <<_ACEOF |
---|
5859 | /* confdefs.h. */ |
---|
5860 | _ACEOF |
---|
5861 | cat confdefs.h >>conftest.$ac_ext |
---|
5862 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5863 | /* end confdefs.h. */ |
---|
5864 | $ac_includes_default |
---|
5865 | typedef short ac__type_sizeof_; |
---|
5866 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
5867 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
5868 | #include <stdio.h> |
---|
5869 | #include <stdlib.h> |
---|
5870 | int |
---|
5871 | main () |
---|
5872 | { |
---|
5873 | |
---|
5874 | FILE *f = fopen ("conftest.val", "w"); |
---|
5875 | if (! f) |
---|
5876 | return 1; |
---|
5877 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
---|
5878 | { |
---|
5879 | long int i = longval (); |
---|
5880 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
5881 | return 1; |
---|
5882 | fprintf (f, "%ld\n", i); |
---|
5883 | } |
---|
5884 | else |
---|
5885 | { |
---|
5886 | unsigned long int i = ulongval (); |
---|
5887 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
5888 | return 1; |
---|
5889 | fprintf (f, "%lu\n", i); |
---|
5890 | } |
---|
5891 | return ferror (f) || fclose (f) != 0; |
---|
5892 | |
---|
5893 | ; |
---|
5894 | return 0; |
---|
5895 | } |
---|
5896 | _ACEOF |
---|
5897 | rm -f conftest$ac_exeext |
---|
5898 | if { (ac_try="$ac_link" |
---|
5899 | case "(($ac_try" in |
---|
5900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5901 | *) ac_try_echo=$ac_try;; |
---|
5902 | esac |
---|
5903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5904 | (eval "$ac_link") 2>&5 |
---|
5905 | ac_status=$? |
---|
5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5907 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5908 | { (case "(($ac_try" in |
---|
5909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5910 | *) ac_try_echo=$ac_try;; |
---|
5911 | esac |
---|
5912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5913 | (eval "$ac_try") 2>&5 |
---|
5914 | ac_status=$? |
---|
5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5916 | (exit $ac_status); }; }; then |
---|
5917 | ac_cv_sizeof_short=`cat conftest.val` |
---|
5918 | else |
---|
5919 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5920 | echo "$as_me: failed program was:" >&5 |
---|
5921 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5922 | |
---|
5923 | ( exit $ac_status ) |
---|
5924 | if test "$ac_cv_type_short" = yes; then |
---|
5925 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
---|
5926 | See \`config.log' for more details." >&5 |
---|
5927 | echo "$as_me: error: cannot compute sizeof (short) |
---|
5928 | See \`config.log' for more details." >&2;} |
---|
5929 | { (exit 77); exit 77; }; } |
---|
5930 | else |
---|
5931 | ac_cv_sizeof_short=0 |
---|
5932 | fi |
---|
5933 | fi |
---|
5934 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5935 | fi |
---|
5936 | rm -f conftest.val |
---|
5937 | fi |
---|
5938 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
---|
5939 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
---|
5940 | |
---|
5941 | |
---|
5942 | |
---|
5943 | cat >>confdefs.h <<_ACEOF |
---|
5944 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
---|
5945 | _ACEOF |
---|
5946 | |
---|
5947 | |
---|
5948 | { echo "$as_me:$LINENO: checking for int" >&5 |
---|
5949 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
---|
5950 | if test "${ac_cv_type_int+set}" = set; then |
---|
5951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5952 | else |
---|
5953 | cat >conftest.$ac_ext <<_ACEOF |
---|
5954 | /* confdefs.h. */ |
---|
5955 | _ACEOF |
---|
5956 | cat confdefs.h >>conftest.$ac_ext |
---|
5957 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5958 | /* end confdefs.h. */ |
---|
5959 | $ac_includes_default |
---|
5960 | typedef int ac__type_new_; |
---|
5961 | int |
---|
5962 | main () |
---|
5963 | { |
---|
5964 | if ((ac__type_new_ *) 0) |
---|
5965 | return 0; |
---|
5966 | if (sizeof (ac__type_new_)) |
---|
5967 | return 0; |
---|
5968 | ; |
---|
5969 | return 0; |
---|
5970 | } |
---|
5971 | _ACEOF |
---|
5972 | rm -f conftest.$ac_objext |
---|
5973 | if { (ac_try="$ac_compile" |
---|
5974 | case "(($ac_try" in |
---|
5975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
5976 | *) ac_try_echo=$ac_try;; |
---|
5977 | esac |
---|
5978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
5979 | (eval "$ac_compile") 2>conftest.er1 |
---|
5980 | ac_status=$? |
---|
5981 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5982 | rm -f conftest.er1 |
---|
5983 | cat conftest.err >&5 |
---|
5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5985 | (exit $ac_status); } && { |
---|
5986 | test -z "$ac_c_werror_flag" || |
---|
5987 | test ! -s conftest.err |
---|
5988 | } && test -s conftest.$ac_objext; then |
---|
5989 | ac_cv_type_int=yes |
---|
5990 | else |
---|
5991 | echo "$as_me: failed program was:" >&5 |
---|
5992 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5993 | |
---|
5994 | ac_cv_type_int=no |
---|
5995 | fi |
---|
5996 | |
---|
5997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5998 | fi |
---|
5999 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
---|
6000 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
---|
6001 | |
---|
6002 | # The cast to long int works around a bug in the HP C Compiler |
---|
6003 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
6004 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
6005 | # This bug is HP SR number 8606223364. |
---|
6006 | { echo "$as_me:$LINENO: checking size of int" >&5 |
---|
6007 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
---|
6008 | if test "${ac_cv_sizeof_int+set}" = set; then |
---|
6009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6010 | else |
---|
6011 | if test "$cross_compiling" = yes; then |
---|
6012 | # Depending upon the size, compute the lo and hi bounds. |
---|
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 | $ac_includes_default |
---|
6020 | typedef int ac__type_sizeof_; |
---|
6021 | int |
---|
6022 | main () |
---|
6023 | { |
---|
6024 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
---|
6025 | test_array [0] = 0 |
---|
6026 | |
---|
6027 | ; |
---|
6028 | return 0; |
---|
6029 | } |
---|
6030 | _ACEOF |
---|
6031 | rm -f conftest.$ac_objext |
---|
6032 | if { (ac_try="$ac_compile" |
---|
6033 | case "(($ac_try" in |
---|
6034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6035 | *) ac_try_echo=$ac_try;; |
---|
6036 | esac |
---|
6037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6038 | (eval "$ac_compile") 2>conftest.er1 |
---|
6039 | ac_status=$? |
---|
6040 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6041 | rm -f conftest.er1 |
---|
6042 | cat conftest.err >&5 |
---|
6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6044 | (exit $ac_status); } && { |
---|
6045 | test -z "$ac_c_werror_flag" || |
---|
6046 | test ! -s conftest.err |
---|
6047 | } && test -s conftest.$ac_objext; then |
---|
6048 | ac_lo=0 ac_mid=0 |
---|
6049 | while :; do |
---|
6050 | cat >conftest.$ac_ext <<_ACEOF |
---|
6051 | /* confdefs.h. */ |
---|
6052 | _ACEOF |
---|
6053 | cat confdefs.h >>conftest.$ac_ext |
---|
6054 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6055 | /* end confdefs.h. */ |
---|
6056 | $ac_includes_default |
---|
6057 | typedef int ac__type_sizeof_; |
---|
6058 | int |
---|
6059 | main () |
---|
6060 | { |
---|
6061 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
6062 | test_array [0] = 0 |
---|
6063 | |
---|
6064 | ; |
---|
6065 | return 0; |
---|
6066 | } |
---|
6067 | _ACEOF |
---|
6068 | rm -f conftest.$ac_objext |
---|
6069 | if { (ac_try="$ac_compile" |
---|
6070 | case "(($ac_try" in |
---|
6071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6072 | *) ac_try_echo=$ac_try;; |
---|
6073 | esac |
---|
6074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6075 | (eval "$ac_compile") 2>conftest.er1 |
---|
6076 | ac_status=$? |
---|
6077 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6078 | rm -f conftest.er1 |
---|
6079 | cat conftest.err >&5 |
---|
6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6081 | (exit $ac_status); } && { |
---|
6082 | test -z "$ac_c_werror_flag" || |
---|
6083 | test ! -s conftest.err |
---|
6084 | } && test -s conftest.$ac_objext; then |
---|
6085 | ac_hi=$ac_mid; break |
---|
6086 | else |
---|
6087 | echo "$as_me: failed program was:" >&5 |
---|
6088 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6089 | |
---|
6090 | ac_lo=`expr $ac_mid + 1` |
---|
6091 | if test $ac_lo -le $ac_mid; then |
---|
6092 | ac_lo= ac_hi= |
---|
6093 | break |
---|
6094 | fi |
---|
6095 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
6096 | fi |
---|
6097 | |
---|
6098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6099 | done |
---|
6100 | else |
---|
6101 | echo "$as_me: failed program was:" >&5 |
---|
6102 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6103 | |
---|
6104 | cat >conftest.$ac_ext <<_ACEOF |
---|
6105 | /* confdefs.h. */ |
---|
6106 | _ACEOF |
---|
6107 | cat confdefs.h >>conftest.$ac_ext |
---|
6108 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6109 | /* end confdefs.h. */ |
---|
6110 | $ac_includes_default |
---|
6111 | typedef int ac__type_sizeof_; |
---|
6112 | int |
---|
6113 | main () |
---|
6114 | { |
---|
6115 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
---|
6116 | test_array [0] = 0 |
---|
6117 | |
---|
6118 | ; |
---|
6119 | return 0; |
---|
6120 | } |
---|
6121 | _ACEOF |
---|
6122 | rm -f conftest.$ac_objext |
---|
6123 | if { (ac_try="$ac_compile" |
---|
6124 | case "(($ac_try" in |
---|
6125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6126 | *) ac_try_echo=$ac_try;; |
---|
6127 | esac |
---|
6128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6129 | (eval "$ac_compile") 2>conftest.er1 |
---|
6130 | ac_status=$? |
---|
6131 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6132 | rm -f conftest.er1 |
---|
6133 | cat conftest.err >&5 |
---|
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6135 | (exit $ac_status); } && { |
---|
6136 | test -z "$ac_c_werror_flag" || |
---|
6137 | test ! -s conftest.err |
---|
6138 | } && test -s conftest.$ac_objext; then |
---|
6139 | ac_hi=-1 ac_mid=-1 |
---|
6140 | while :; do |
---|
6141 | cat >conftest.$ac_ext <<_ACEOF |
---|
6142 | /* confdefs.h. */ |
---|
6143 | _ACEOF |
---|
6144 | cat confdefs.h >>conftest.$ac_ext |
---|
6145 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6146 | /* end confdefs.h. */ |
---|
6147 | $ac_includes_default |
---|
6148 | typedef int ac__type_sizeof_; |
---|
6149 | int |
---|
6150 | main () |
---|
6151 | { |
---|
6152 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
---|
6153 | test_array [0] = 0 |
---|
6154 | |
---|
6155 | ; |
---|
6156 | return 0; |
---|
6157 | } |
---|
6158 | _ACEOF |
---|
6159 | rm -f conftest.$ac_objext |
---|
6160 | if { (ac_try="$ac_compile" |
---|
6161 | case "(($ac_try" in |
---|
6162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6163 | *) ac_try_echo=$ac_try;; |
---|
6164 | esac |
---|
6165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6166 | (eval "$ac_compile") 2>conftest.er1 |
---|
6167 | ac_status=$? |
---|
6168 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6169 | rm -f conftest.er1 |
---|
6170 | cat conftest.err >&5 |
---|
6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6172 | (exit $ac_status); } && { |
---|
6173 | test -z "$ac_c_werror_flag" || |
---|
6174 | test ! -s conftest.err |
---|
6175 | } && test -s conftest.$ac_objext; then |
---|
6176 | ac_lo=$ac_mid; break |
---|
6177 | else |
---|
6178 | echo "$as_me: failed program was:" >&5 |
---|
6179 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6180 | |
---|
6181 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
6182 | if test $ac_mid -le $ac_hi; then |
---|
6183 | ac_lo= ac_hi= |
---|
6184 | break |
---|
6185 | fi |
---|
6186 | ac_mid=`expr 2 '*' $ac_mid` |
---|
6187 | fi |
---|
6188 | |
---|
6189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6190 | done |
---|
6191 | else |
---|
6192 | echo "$as_me: failed program was:" >&5 |
---|
6193 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6194 | |
---|
6195 | ac_lo= ac_hi= |
---|
6196 | fi |
---|
6197 | |
---|
6198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6199 | fi |
---|
6200 | |
---|
6201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6202 | # Binary search between lo and hi bounds. |
---|
6203 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
6204 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
6205 | cat >conftest.$ac_ext <<_ACEOF |
---|
6206 | /* confdefs.h. */ |
---|
6207 | _ACEOF |
---|
6208 | cat confdefs.h >>conftest.$ac_ext |
---|
6209 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6210 | /* end confdefs.h. */ |
---|
6211 | $ac_includes_default |
---|
6212 | typedef int ac__type_sizeof_; |
---|
6213 | int |
---|
6214 | main () |
---|
6215 | { |
---|
6216 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
6217 | test_array [0] = 0 |
---|
6218 | |
---|
6219 | ; |
---|
6220 | return 0; |
---|
6221 | } |
---|
6222 | _ACEOF |
---|
6223 | rm -f conftest.$ac_objext |
---|
6224 | if { (ac_try="$ac_compile" |
---|
6225 | case "(($ac_try" in |
---|
6226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6227 | *) ac_try_echo=$ac_try;; |
---|
6228 | esac |
---|
6229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6230 | (eval "$ac_compile") 2>conftest.er1 |
---|
6231 | ac_status=$? |
---|
6232 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6233 | rm -f conftest.er1 |
---|
6234 | cat conftest.err >&5 |
---|
6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6236 | (exit $ac_status); } && { |
---|
6237 | test -z "$ac_c_werror_flag" || |
---|
6238 | test ! -s conftest.err |
---|
6239 | } && test -s conftest.$ac_objext; then |
---|
6240 | ac_hi=$ac_mid |
---|
6241 | else |
---|
6242 | echo "$as_me: failed program was:" >&5 |
---|
6243 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6244 | |
---|
6245 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
6246 | fi |
---|
6247 | |
---|
6248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6249 | done |
---|
6250 | case $ac_lo in |
---|
6251 | ?*) ac_cv_sizeof_int=$ac_lo;; |
---|
6252 | '') if test "$ac_cv_type_int" = yes; then |
---|
6253 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
---|
6254 | See \`config.log' for more details." >&5 |
---|
6255 | echo "$as_me: error: cannot compute sizeof (int) |
---|
6256 | See \`config.log' for more details." >&2;} |
---|
6257 | { (exit 77); exit 77; }; } |
---|
6258 | else |
---|
6259 | ac_cv_sizeof_int=0 |
---|
6260 | fi ;; |
---|
6261 | esac |
---|
6262 | else |
---|
6263 | cat >conftest.$ac_ext <<_ACEOF |
---|
6264 | /* confdefs.h. */ |
---|
6265 | _ACEOF |
---|
6266 | cat confdefs.h >>conftest.$ac_ext |
---|
6267 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6268 | /* end confdefs.h. */ |
---|
6269 | $ac_includes_default |
---|
6270 | typedef int ac__type_sizeof_; |
---|
6271 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
6272 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
6273 | #include <stdio.h> |
---|
6274 | #include <stdlib.h> |
---|
6275 | int |
---|
6276 | main () |
---|
6277 | { |
---|
6278 | |
---|
6279 | FILE *f = fopen ("conftest.val", "w"); |
---|
6280 | if (! f) |
---|
6281 | return 1; |
---|
6282 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
---|
6283 | { |
---|
6284 | long int i = longval (); |
---|
6285 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
6286 | return 1; |
---|
6287 | fprintf (f, "%ld\n", i); |
---|
6288 | } |
---|
6289 | else |
---|
6290 | { |
---|
6291 | unsigned long int i = ulongval (); |
---|
6292 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
6293 | return 1; |
---|
6294 | fprintf (f, "%lu\n", i); |
---|
6295 | } |
---|
6296 | return ferror (f) || fclose (f) != 0; |
---|
6297 | |
---|
6298 | ; |
---|
6299 | return 0; |
---|
6300 | } |
---|
6301 | _ACEOF |
---|
6302 | rm -f conftest$ac_exeext |
---|
6303 | if { (ac_try="$ac_link" |
---|
6304 | case "(($ac_try" in |
---|
6305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6306 | *) ac_try_echo=$ac_try;; |
---|
6307 | esac |
---|
6308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6309 | (eval "$ac_link") 2>&5 |
---|
6310 | ac_status=$? |
---|
6311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6312 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6313 | { (case "(($ac_try" in |
---|
6314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6315 | *) ac_try_echo=$ac_try;; |
---|
6316 | esac |
---|
6317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6318 | (eval "$ac_try") 2>&5 |
---|
6319 | ac_status=$? |
---|
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6321 | (exit $ac_status); }; }; then |
---|
6322 | ac_cv_sizeof_int=`cat conftest.val` |
---|
6323 | else |
---|
6324 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6325 | echo "$as_me: failed program was:" >&5 |
---|
6326 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6327 | |
---|
6328 | ( exit $ac_status ) |
---|
6329 | if test "$ac_cv_type_int" = yes; then |
---|
6330 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
---|
6331 | See \`config.log' for more details." >&5 |
---|
6332 | echo "$as_me: error: cannot compute sizeof (int) |
---|
6333 | See \`config.log' for more details." >&2;} |
---|
6334 | { (exit 77); exit 77; }; } |
---|
6335 | else |
---|
6336 | ac_cv_sizeof_int=0 |
---|
6337 | fi |
---|
6338 | fi |
---|
6339 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6340 | fi |
---|
6341 | rm -f conftest.val |
---|
6342 | fi |
---|
6343 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
---|
6344 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
---|
6345 | |
---|
6346 | |
---|
6347 | |
---|
6348 | cat >>confdefs.h <<_ACEOF |
---|
6349 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
6350 | _ACEOF |
---|
6351 | |
---|
6352 | |
---|
6353 | { echo "$as_me:$LINENO: checking for long" >&5 |
---|
6354 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
---|
6355 | if test "${ac_cv_type_long+set}" = set; then |
---|
6356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6357 | else |
---|
6358 | cat >conftest.$ac_ext <<_ACEOF |
---|
6359 | /* confdefs.h. */ |
---|
6360 | _ACEOF |
---|
6361 | cat confdefs.h >>conftest.$ac_ext |
---|
6362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6363 | /* end confdefs.h. */ |
---|
6364 | $ac_includes_default |
---|
6365 | typedef long ac__type_new_; |
---|
6366 | int |
---|
6367 | main () |
---|
6368 | { |
---|
6369 | if ((ac__type_new_ *) 0) |
---|
6370 | return 0; |
---|
6371 | if (sizeof (ac__type_new_)) |
---|
6372 | return 0; |
---|
6373 | ; |
---|
6374 | return 0; |
---|
6375 | } |
---|
6376 | _ACEOF |
---|
6377 | rm -f conftest.$ac_objext |
---|
6378 | if { (ac_try="$ac_compile" |
---|
6379 | case "(($ac_try" in |
---|
6380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6381 | *) ac_try_echo=$ac_try;; |
---|
6382 | esac |
---|
6383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6384 | (eval "$ac_compile") 2>conftest.er1 |
---|
6385 | ac_status=$? |
---|
6386 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6387 | rm -f conftest.er1 |
---|
6388 | cat conftest.err >&5 |
---|
6389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6390 | (exit $ac_status); } && { |
---|
6391 | test -z "$ac_c_werror_flag" || |
---|
6392 | test ! -s conftest.err |
---|
6393 | } && test -s conftest.$ac_objext; then |
---|
6394 | ac_cv_type_long=yes |
---|
6395 | else |
---|
6396 | echo "$as_me: failed program was:" >&5 |
---|
6397 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6398 | |
---|
6399 | ac_cv_type_long=no |
---|
6400 | fi |
---|
6401 | |
---|
6402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6403 | fi |
---|
6404 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
---|
6405 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
---|
6406 | |
---|
6407 | # The cast to long int works around a bug in the HP C Compiler |
---|
6408 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
6409 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
6410 | # This bug is HP SR number 8606223364. |
---|
6411 | { echo "$as_me:$LINENO: checking size of long" >&5 |
---|
6412 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
---|
6413 | if test "${ac_cv_sizeof_long+set}" = set; then |
---|
6414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6415 | else |
---|
6416 | if test "$cross_compiling" = yes; then |
---|
6417 | # Depending upon the size, compute the lo and hi bounds. |
---|
6418 | cat >conftest.$ac_ext <<_ACEOF |
---|
6419 | /* confdefs.h. */ |
---|
6420 | _ACEOF |
---|
6421 | cat confdefs.h >>conftest.$ac_ext |
---|
6422 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6423 | /* end confdefs.h. */ |
---|
6424 | $ac_includes_default |
---|
6425 | typedef long ac__type_sizeof_; |
---|
6426 | int |
---|
6427 | main () |
---|
6428 | { |
---|
6429 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
---|
6430 | test_array [0] = 0 |
---|
6431 | |
---|
6432 | ; |
---|
6433 | return 0; |
---|
6434 | } |
---|
6435 | _ACEOF |
---|
6436 | rm -f conftest.$ac_objext |
---|
6437 | if { (ac_try="$ac_compile" |
---|
6438 | case "(($ac_try" in |
---|
6439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6440 | *) ac_try_echo=$ac_try;; |
---|
6441 | esac |
---|
6442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6443 | (eval "$ac_compile") 2>conftest.er1 |
---|
6444 | ac_status=$? |
---|
6445 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6446 | rm -f conftest.er1 |
---|
6447 | cat conftest.err >&5 |
---|
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6449 | (exit $ac_status); } && { |
---|
6450 | test -z "$ac_c_werror_flag" || |
---|
6451 | test ! -s conftest.err |
---|
6452 | } && test -s conftest.$ac_objext; then |
---|
6453 | ac_lo=0 ac_mid=0 |
---|
6454 | while :; do |
---|
6455 | cat >conftest.$ac_ext <<_ACEOF |
---|
6456 | /* confdefs.h. */ |
---|
6457 | _ACEOF |
---|
6458 | cat confdefs.h >>conftest.$ac_ext |
---|
6459 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6460 | /* end confdefs.h. */ |
---|
6461 | $ac_includes_default |
---|
6462 | typedef long ac__type_sizeof_; |
---|
6463 | int |
---|
6464 | main () |
---|
6465 | { |
---|
6466 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
6467 | test_array [0] = 0 |
---|
6468 | |
---|
6469 | ; |
---|
6470 | return 0; |
---|
6471 | } |
---|
6472 | _ACEOF |
---|
6473 | rm -f conftest.$ac_objext |
---|
6474 | if { (ac_try="$ac_compile" |
---|
6475 | case "(($ac_try" in |
---|
6476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6477 | *) ac_try_echo=$ac_try;; |
---|
6478 | esac |
---|
6479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6480 | (eval "$ac_compile") 2>conftest.er1 |
---|
6481 | ac_status=$? |
---|
6482 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6483 | rm -f conftest.er1 |
---|
6484 | cat conftest.err >&5 |
---|
6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6486 | (exit $ac_status); } && { |
---|
6487 | test -z "$ac_c_werror_flag" || |
---|
6488 | test ! -s conftest.err |
---|
6489 | } && test -s conftest.$ac_objext; then |
---|
6490 | ac_hi=$ac_mid; break |
---|
6491 | else |
---|
6492 | echo "$as_me: failed program was:" >&5 |
---|
6493 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6494 | |
---|
6495 | ac_lo=`expr $ac_mid + 1` |
---|
6496 | if test $ac_lo -le $ac_mid; then |
---|
6497 | ac_lo= ac_hi= |
---|
6498 | break |
---|
6499 | fi |
---|
6500 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
6501 | fi |
---|
6502 | |
---|
6503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6504 | done |
---|
6505 | else |
---|
6506 | echo "$as_me: failed program was:" >&5 |
---|
6507 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6508 | |
---|
6509 | cat >conftest.$ac_ext <<_ACEOF |
---|
6510 | /* confdefs.h. */ |
---|
6511 | _ACEOF |
---|
6512 | cat confdefs.h >>conftest.$ac_ext |
---|
6513 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6514 | /* end confdefs.h. */ |
---|
6515 | $ac_includes_default |
---|
6516 | typedef long ac__type_sizeof_; |
---|
6517 | int |
---|
6518 | main () |
---|
6519 | { |
---|
6520 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
---|
6521 | test_array [0] = 0 |
---|
6522 | |
---|
6523 | ; |
---|
6524 | return 0; |
---|
6525 | } |
---|
6526 | _ACEOF |
---|
6527 | rm -f conftest.$ac_objext |
---|
6528 | if { (ac_try="$ac_compile" |
---|
6529 | case "(($ac_try" in |
---|
6530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6531 | *) ac_try_echo=$ac_try;; |
---|
6532 | esac |
---|
6533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6534 | (eval "$ac_compile") 2>conftest.er1 |
---|
6535 | ac_status=$? |
---|
6536 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6537 | rm -f conftest.er1 |
---|
6538 | cat conftest.err >&5 |
---|
6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6540 | (exit $ac_status); } && { |
---|
6541 | test -z "$ac_c_werror_flag" || |
---|
6542 | test ! -s conftest.err |
---|
6543 | } && test -s conftest.$ac_objext; then |
---|
6544 | ac_hi=-1 ac_mid=-1 |
---|
6545 | while :; do |
---|
6546 | cat >conftest.$ac_ext <<_ACEOF |
---|
6547 | /* confdefs.h. */ |
---|
6548 | _ACEOF |
---|
6549 | cat confdefs.h >>conftest.$ac_ext |
---|
6550 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6551 | /* end confdefs.h. */ |
---|
6552 | $ac_includes_default |
---|
6553 | typedef long ac__type_sizeof_; |
---|
6554 | int |
---|
6555 | main () |
---|
6556 | { |
---|
6557 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
---|
6558 | test_array [0] = 0 |
---|
6559 | |
---|
6560 | ; |
---|
6561 | return 0; |
---|
6562 | } |
---|
6563 | _ACEOF |
---|
6564 | rm -f conftest.$ac_objext |
---|
6565 | if { (ac_try="$ac_compile" |
---|
6566 | case "(($ac_try" in |
---|
6567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6568 | *) ac_try_echo=$ac_try;; |
---|
6569 | esac |
---|
6570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6571 | (eval "$ac_compile") 2>conftest.er1 |
---|
6572 | ac_status=$? |
---|
6573 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6574 | rm -f conftest.er1 |
---|
6575 | cat conftest.err >&5 |
---|
6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6577 | (exit $ac_status); } && { |
---|
6578 | test -z "$ac_c_werror_flag" || |
---|
6579 | test ! -s conftest.err |
---|
6580 | } && test -s conftest.$ac_objext; then |
---|
6581 | ac_lo=$ac_mid; break |
---|
6582 | else |
---|
6583 | echo "$as_me: failed program was:" >&5 |
---|
6584 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6585 | |
---|
6586 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
6587 | if test $ac_mid -le $ac_hi; then |
---|
6588 | ac_lo= ac_hi= |
---|
6589 | break |
---|
6590 | fi |
---|
6591 | ac_mid=`expr 2 '*' $ac_mid` |
---|
6592 | fi |
---|
6593 | |
---|
6594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6595 | done |
---|
6596 | else |
---|
6597 | echo "$as_me: failed program was:" >&5 |
---|
6598 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6599 | |
---|
6600 | ac_lo= ac_hi= |
---|
6601 | fi |
---|
6602 | |
---|
6603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6604 | fi |
---|
6605 | |
---|
6606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6607 | # Binary search between lo and hi bounds. |
---|
6608 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
6609 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
6610 | cat >conftest.$ac_ext <<_ACEOF |
---|
6611 | /* confdefs.h. */ |
---|
6612 | _ACEOF |
---|
6613 | cat confdefs.h >>conftest.$ac_ext |
---|
6614 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6615 | /* end confdefs.h. */ |
---|
6616 | $ac_includes_default |
---|
6617 | typedef long ac__type_sizeof_; |
---|
6618 | int |
---|
6619 | main () |
---|
6620 | { |
---|
6621 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
6622 | test_array [0] = 0 |
---|
6623 | |
---|
6624 | ; |
---|
6625 | return 0; |
---|
6626 | } |
---|
6627 | _ACEOF |
---|
6628 | rm -f conftest.$ac_objext |
---|
6629 | if { (ac_try="$ac_compile" |
---|
6630 | case "(($ac_try" in |
---|
6631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6632 | *) ac_try_echo=$ac_try;; |
---|
6633 | esac |
---|
6634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6635 | (eval "$ac_compile") 2>conftest.er1 |
---|
6636 | ac_status=$? |
---|
6637 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6638 | rm -f conftest.er1 |
---|
6639 | cat conftest.err >&5 |
---|
6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6641 | (exit $ac_status); } && { |
---|
6642 | test -z "$ac_c_werror_flag" || |
---|
6643 | test ! -s conftest.err |
---|
6644 | } && test -s conftest.$ac_objext; then |
---|
6645 | ac_hi=$ac_mid |
---|
6646 | else |
---|
6647 | echo "$as_me: failed program was:" >&5 |
---|
6648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6649 | |
---|
6650 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
6651 | fi |
---|
6652 | |
---|
6653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6654 | done |
---|
6655 | case $ac_lo in |
---|
6656 | ?*) ac_cv_sizeof_long=$ac_lo;; |
---|
6657 | '') if test "$ac_cv_type_long" = yes; then |
---|
6658 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
---|
6659 | See \`config.log' for more details." >&5 |
---|
6660 | echo "$as_me: error: cannot compute sizeof (long) |
---|
6661 | See \`config.log' for more details." >&2;} |
---|
6662 | { (exit 77); exit 77; }; } |
---|
6663 | else |
---|
6664 | ac_cv_sizeof_long=0 |
---|
6665 | fi ;; |
---|
6666 | esac |
---|
6667 | else |
---|
6668 | cat >conftest.$ac_ext <<_ACEOF |
---|
6669 | /* confdefs.h. */ |
---|
6670 | _ACEOF |
---|
6671 | cat confdefs.h >>conftest.$ac_ext |
---|
6672 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6673 | /* end confdefs.h. */ |
---|
6674 | $ac_includes_default |
---|
6675 | typedef long ac__type_sizeof_; |
---|
6676 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
6677 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
6678 | #include <stdio.h> |
---|
6679 | #include <stdlib.h> |
---|
6680 | int |
---|
6681 | main () |
---|
6682 | { |
---|
6683 | |
---|
6684 | FILE *f = fopen ("conftest.val", "w"); |
---|
6685 | if (! f) |
---|
6686 | return 1; |
---|
6687 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
---|
6688 | { |
---|
6689 | long int i = longval (); |
---|
6690 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
6691 | return 1; |
---|
6692 | fprintf (f, "%ld\n", i); |
---|
6693 | } |
---|
6694 | else |
---|
6695 | { |
---|
6696 | unsigned long int i = ulongval (); |
---|
6697 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
6698 | return 1; |
---|
6699 | fprintf (f, "%lu\n", i); |
---|
6700 | } |
---|
6701 | return ferror (f) || fclose (f) != 0; |
---|
6702 | |
---|
6703 | ; |
---|
6704 | return 0; |
---|
6705 | } |
---|
6706 | _ACEOF |
---|
6707 | rm -f conftest$ac_exeext |
---|
6708 | if { (ac_try="$ac_link" |
---|
6709 | case "(($ac_try" in |
---|
6710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6711 | *) ac_try_echo=$ac_try;; |
---|
6712 | esac |
---|
6713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6714 | (eval "$ac_link") 2>&5 |
---|
6715 | ac_status=$? |
---|
6716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6718 | { (case "(($ac_try" in |
---|
6719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6720 | *) ac_try_echo=$ac_try;; |
---|
6721 | esac |
---|
6722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6723 | (eval "$ac_try") 2>&5 |
---|
6724 | ac_status=$? |
---|
6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6726 | (exit $ac_status); }; }; then |
---|
6727 | ac_cv_sizeof_long=`cat conftest.val` |
---|
6728 | else |
---|
6729 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6730 | echo "$as_me: failed program was:" >&5 |
---|
6731 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6732 | |
---|
6733 | ( exit $ac_status ) |
---|
6734 | if test "$ac_cv_type_long" = yes; then |
---|
6735 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
---|
6736 | See \`config.log' for more details." >&5 |
---|
6737 | echo "$as_me: error: cannot compute sizeof (long) |
---|
6738 | See \`config.log' for more details." >&2;} |
---|
6739 | { (exit 77); exit 77; }; } |
---|
6740 | else |
---|
6741 | ac_cv_sizeof_long=0 |
---|
6742 | fi |
---|
6743 | fi |
---|
6744 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6745 | fi |
---|
6746 | rm -f conftest.val |
---|
6747 | fi |
---|
6748 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
---|
6749 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
---|
6750 | |
---|
6751 | |
---|
6752 | |
---|
6753 | cat >>confdefs.h <<_ACEOF |
---|
6754 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
6755 | _ACEOF |
---|
6756 | |
---|
6757 | |
---|
6758 | { echo "$as_me:$LINENO: checking for long long" >&5 |
---|
6759 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
---|
6760 | if test "${ac_cv_type_long_long+set}" = set; then |
---|
6761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6762 | else |
---|
6763 | cat >conftest.$ac_ext <<_ACEOF |
---|
6764 | /* confdefs.h. */ |
---|
6765 | _ACEOF |
---|
6766 | cat confdefs.h >>conftest.$ac_ext |
---|
6767 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6768 | /* end confdefs.h. */ |
---|
6769 | $ac_includes_default |
---|
6770 | typedef long long ac__type_new_; |
---|
6771 | int |
---|
6772 | main () |
---|
6773 | { |
---|
6774 | if ((ac__type_new_ *) 0) |
---|
6775 | return 0; |
---|
6776 | if (sizeof (ac__type_new_)) |
---|
6777 | return 0; |
---|
6778 | ; |
---|
6779 | return 0; |
---|
6780 | } |
---|
6781 | _ACEOF |
---|
6782 | rm -f conftest.$ac_objext |
---|
6783 | if { (ac_try="$ac_compile" |
---|
6784 | case "(($ac_try" in |
---|
6785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6786 | *) ac_try_echo=$ac_try;; |
---|
6787 | esac |
---|
6788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6789 | (eval "$ac_compile") 2>conftest.er1 |
---|
6790 | ac_status=$? |
---|
6791 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6792 | rm -f conftest.er1 |
---|
6793 | cat conftest.err >&5 |
---|
6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6795 | (exit $ac_status); } && { |
---|
6796 | test -z "$ac_c_werror_flag" || |
---|
6797 | test ! -s conftest.err |
---|
6798 | } && test -s conftest.$ac_objext; then |
---|
6799 | ac_cv_type_long_long=yes |
---|
6800 | else |
---|
6801 | echo "$as_me: failed program was:" >&5 |
---|
6802 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6803 | |
---|
6804 | ac_cv_type_long_long=no |
---|
6805 | fi |
---|
6806 | |
---|
6807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6808 | fi |
---|
6809 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
---|
6810 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
---|
6811 | |
---|
6812 | # The cast to long int works around a bug in the HP C Compiler |
---|
6813 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
6814 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
6815 | # This bug is HP SR number 8606223364. |
---|
6816 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
---|
6817 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
---|
6818 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
---|
6819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6820 | else |
---|
6821 | if test "$cross_compiling" = yes; then |
---|
6822 | # Depending upon the size, compute the lo and hi bounds. |
---|
6823 | cat >conftest.$ac_ext <<_ACEOF |
---|
6824 | /* confdefs.h. */ |
---|
6825 | _ACEOF |
---|
6826 | cat confdefs.h >>conftest.$ac_ext |
---|
6827 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6828 | /* end confdefs.h. */ |
---|
6829 | $ac_includes_default |
---|
6830 | typedef long long ac__type_sizeof_; |
---|
6831 | int |
---|
6832 | main () |
---|
6833 | { |
---|
6834 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
---|
6835 | test_array [0] = 0 |
---|
6836 | |
---|
6837 | ; |
---|
6838 | return 0; |
---|
6839 | } |
---|
6840 | _ACEOF |
---|
6841 | rm -f conftest.$ac_objext |
---|
6842 | if { (ac_try="$ac_compile" |
---|
6843 | case "(($ac_try" in |
---|
6844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6845 | *) ac_try_echo=$ac_try;; |
---|
6846 | esac |
---|
6847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6848 | (eval "$ac_compile") 2>conftest.er1 |
---|
6849 | ac_status=$? |
---|
6850 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6851 | rm -f conftest.er1 |
---|
6852 | cat conftest.err >&5 |
---|
6853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6854 | (exit $ac_status); } && { |
---|
6855 | test -z "$ac_c_werror_flag" || |
---|
6856 | test ! -s conftest.err |
---|
6857 | } && test -s conftest.$ac_objext; then |
---|
6858 | ac_lo=0 ac_mid=0 |
---|
6859 | while :; do |
---|
6860 | cat >conftest.$ac_ext <<_ACEOF |
---|
6861 | /* confdefs.h. */ |
---|
6862 | _ACEOF |
---|
6863 | cat confdefs.h >>conftest.$ac_ext |
---|
6864 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6865 | /* end confdefs.h. */ |
---|
6866 | $ac_includes_default |
---|
6867 | typedef long long ac__type_sizeof_; |
---|
6868 | int |
---|
6869 | main () |
---|
6870 | { |
---|
6871 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
6872 | test_array [0] = 0 |
---|
6873 | |
---|
6874 | ; |
---|
6875 | return 0; |
---|
6876 | } |
---|
6877 | _ACEOF |
---|
6878 | rm -f conftest.$ac_objext |
---|
6879 | if { (ac_try="$ac_compile" |
---|
6880 | case "(($ac_try" in |
---|
6881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6882 | *) ac_try_echo=$ac_try;; |
---|
6883 | esac |
---|
6884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6885 | (eval "$ac_compile") 2>conftest.er1 |
---|
6886 | ac_status=$? |
---|
6887 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6888 | rm -f conftest.er1 |
---|
6889 | cat conftest.err >&5 |
---|
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6891 | (exit $ac_status); } && { |
---|
6892 | test -z "$ac_c_werror_flag" || |
---|
6893 | test ! -s conftest.err |
---|
6894 | } && test -s conftest.$ac_objext; then |
---|
6895 | ac_hi=$ac_mid; break |
---|
6896 | else |
---|
6897 | echo "$as_me: failed program was:" >&5 |
---|
6898 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6899 | |
---|
6900 | ac_lo=`expr $ac_mid + 1` |
---|
6901 | if test $ac_lo -le $ac_mid; then |
---|
6902 | ac_lo= ac_hi= |
---|
6903 | break |
---|
6904 | fi |
---|
6905 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
6906 | fi |
---|
6907 | |
---|
6908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6909 | done |
---|
6910 | else |
---|
6911 | echo "$as_me: failed program was:" >&5 |
---|
6912 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6913 | |
---|
6914 | cat >conftest.$ac_ext <<_ACEOF |
---|
6915 | /* confdefs.h. */ |
---|
6916 | _ACEOF |
---|
6917 | cat confdefs.h >>conftest.$ac_ext |
---|
6918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6919 | /* end confdefs.h. */ |
---|
6920 | $ac_includes_default |
---|
6921 | typedef long long ac__type_sizeof_; |
---|
6922 | int |
---|
6923 | main () |
---|
6924 | { |
---|
6925 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
---|
6926 | test_array [0] = 0 |
---|
6927 | |
---|
6928 | ; |
---|
6929 | return 0; |
---|
6930 | } |
---|
6931 | _ACEOF |
---|
6932 | rm -f conftest.$ac_objext |
---|
6933 | if { (ac_try="$ac_compile" |
---|
6934 | case "(($ac_try" in |
---|
6935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6936 | *) ac_try_echo=$ac_try;; |
---|
6937 | esac |
---|
6938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6939 | (eval "$ac_compile") 2>conftest.er1 |
---|
6940 | ac_status=$? |
---|
6941 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6942 | rm -f conftest.er1 |
---|
6943 | cat conftest.err >&5 |
---|
6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6945 | (exit $ac_status); } && { |
---|
6946 | test -z "$ac_c_werror_flag" || |
---|
6947 | test ! -s conftest.err |
---|
6948 | } && test -s conftest.$ac_objext; then |
---|
6949 | ac_hi=-1 ac_mid=-1 |
---|
6950 | while :; do |
---|
6951 | cat >conftest.$ac_ext <<_ACEOF |
---|
6952 | /* confdefs.h. */ |
---|
6953 | _ACEOF |
---|
6954 | cat confdefs.h >>conftest.$ac_ext |
---|
6955 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6956 | /* end confdefs.h. */ |
---|
6957 | $ac_includes_default |
---|
6958 | typedef long long ac__type_sizeof_; |
---|
6959 | int |
---|
6960 | main () |
---|
6961 | { |
---|
6962 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
---|
6963 | test_array [0] = 0 |
---|
6964 | |
---|
6965 | ; |
---|
6966 | return 0; |
---|
6967 | } |
---|
6968 | _ACEOF |
---|
6969 | rm -f conftest.$ac_objext |
---|
6970 | if { (ac_try="$ac_compile" |
---|
6971 | case "(($ac_try" in |
---|
6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
6973 | *) ac_try_echo=$ac_try;; |
---|
6974 | esac |
---|
6975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
6976 | (eval "$ac_compile") 2>conftest.er1 |
---|
6977 | ac_status=$? |
---|
6978 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6979 | rm -f conftest.er1 |
---|
6980 | cat conftest.err >&5 |
---|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6982 | (exit $ac_status); } && { |
---|
6983 | test -z "$ac_c_werror_flag" || |
---|
6984 | test ! -s conftest.err |
---|
6985 | } && test -s conftest.$ac_objext; then |
---|
6986 | ac_lo=$ac_mid; break |
---|
6987 | else |
---|
6988 | echo "$as_me: failed program was:" >&5 |
---|
6989 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6990 | |
---|
6991 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
6992 | if test $ac_mid -le $ac_hi; then |
---|
6993 | ac_lo= ac_hi= |
---|
6994 | break |
---|
6995 | fi |
---|
6996 | ac_mid=`expr 2 '*' $ac_mid` |
---|
6997 | fi |
---|
6998 | |
---|
6999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7000 | done |
---|
7001 | else |
---|
7002 | echo "$as_me: failed program was:" >&5 |
---|
7003 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7004 | |
---|
7005 | ac_lo= ac_hi= |
---|
7006 | fi |
---|
7007 | |
---|
7008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7009 | fi |
---|
7010 | |
---|
7011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7012 | # Binary search between lo and hi bounds. |
---|
7013 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
7014 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
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 | typedef long long ac__type_sizeof_; |
---|
7023 | int |
---|
7024 | main () |
---|
7025 | { |
---|
7026 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
7027 | test_array [0] = 0 |
---|
7028 | |
---|
7029 | ; |
---|
7030 | return 0; |
---|
7031 | } |
---|
7032 | _ACEOF |
---|
7033 | rm -f conftest.$ac_objext |
---|
7034 | if { (ac_try="$ac_compile" |
---|
7035 | case "(($ac_try" in |
---|
7036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7037 | *) ac_try_echo=$ac_try;; |
---|
7038 | esac |
---|
7039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7040 | (eval "$ac_compile") 2>conftest.er1 |
---|
7041 | ac_status=$? |
---|
7042 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7043 | rm -f conftest.er1 |
---|
7044 | cat conftest.err >&5 |
---|
7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7046 | (exit $ac_status); } && { |
---|
7047 | test -z "$ac_c_werror_flag" || |
---|
7048 | test ! -s conftest.err |
---|
7049 | } && test -s conftest.$ac_objext; then |
---|
7050 | ac_hi=$ac_mid |
---|
7051 | else |
---|
7052 | echo "$as_me: failed program was:" >&5 |
---|
7053 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7054 | |
---|
7055 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
7056 | fi |
---|
7057 | |
---|
7058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7059 | done |
---|
7060 | case $ac_lo in |
---|
7061 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
---|
7062 | '') if test "$ac_cv_type_long_long" = yes; then |
---|
7063 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
---|
7064 | See \`config.log' for more details." >&5 |
---|
7065 | echo "$as_me: error: cannot compute sizeof (long long) |
---|
7066 | See \`config.log' for more details." >&2;} |
---|
7067 | { (exit 77); exit 77; }; } |
---|
7068 | else |
---|
7069 | ac_cv_sizeof_long_long=0 |
---|
7070 | fi ;; |
---|
7071 | esac |
---|
7072 | else |
---|
7073 | cat >conftest.$ac_ext <<_ACEOF |
---|
7074 | /* confdefs.h. */ |
---|
7075 | _ACEOF |
---|
7076 | cat confdefs.h >>conftest.$ac_ext |
---|
7077 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7078 | /* end confdefs.h. */ |
---|
7079 | $ac_includes_default |
---|
7080 | typedef long long ac__type_sizeof_; |
---|
7081 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
7082 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
7083 | #include <stdio.h> |
---|
7084 | #include <stdlib.h> |
---|
7085 | int |
---|
7086 | main () |
---|
7087 | { |
---|
7088 | |
---|
7089 | FILE *f = fopen ("conftest.val", "w"); |
---|
7090 | if (! f) |
---|
7091 | return 1; |
---|
7092 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
---|
7093 | { |
---|
7094 | long int i = longval (); |
---|
7095 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
7096 | return 1; |
---|
7097 | fprintf (f, "%ld\n", i); |
---|
7098 | } |
---|
7099 | else |
---|
7100 | { |
---|
7101 | unsigned long int i = ulongval (); |
---|
7102 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
7103 | return 1; |
---|
7104 | fprintf (f, "%lu\n", i); |
---|
7105 | } |
---|
7106 | return ferror (f) || fclose (f) != 0; |
---|
7107 | |
---|
7108 | ; |
---|
7109 | return 0; |
---|
7110 | } |
---|
7111 | _ACEOF |
---|
7112 | rm -f conftest$ac_exeext |
---|
7113 | if { (ac_try="$ac_link" |
---|
7114 | case "(($ac_try" in |
---|
7115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7116 | *) ac_try_echo=$ac_try;; |
---|
7117 | esac |
---|
7118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7119 | (eval "$ac_link") 2>&5 |
---|
7120 | ac_status=$? |
---|
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7123 | { (case "(($ac_try" in |
---|
7124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7125 | *) ac_try_echo=$ac_try;; |
---|
7126 | esac |
---|
7127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7128 | (eval "$ac_try") 2>&5 |
---|
7129 | ac_status=$? |
---|
7130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7131 | (exit $ac_status); }; }; then |
---|
7132 | ac_cv_sizeof_long_long=`cat conftest.val` |
---|
7133 | else |
---|
7134 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7135 | echo "$as_me: failed program was:" >&5 |
---|
7136 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7137 | |
---|
7138 | ( exit $ac_status ) |
---|
7139 | if test "$ac_cv_type_long_long" = yes; then |
---|
7140 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
---|
7141 | See \`config.log' for more details." >&5 |
---|
7142 | echo "$as_me: error: cannot compute sizeof (long long) |
---|
7143 | See \`config.log' for more details." >&2;} |
---|
7144 | { (exit 77); exit 77; }; } |
---|
7145 | else |
---|
7146 | ac_cv_sizeof_long_long=0 |
---|
7147 | fi |
---|
7148 | fi |
---|
7149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7150 | fi |
---|
7151 | rm -f conftest.val |
---|
7152 | fi |
---|
7153 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
---|
7154 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
---|
7155 | |
---|
7156 | |
---|
7157 | |
---|
7158 | cat >>confdefs.h <<_ACEOF |
---|
7159 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
---|
7160 | _ACEOF |
---|
7161 | |
---|
7162 | |
---|
7163 | { echo "$as_me:$LINENO: checking for void*" >&5 |
---|
7164 | echo $ECHO_N "checking for void*... $ECHO_C" >&6; } |
---|
7165 | if test "${ac_cv_type_voidp+set}" = set; then |
---|
7166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7167 | else |
---|
7168 | cat >conftest.$ac_ext <<_ACEOF |
---|
7169 | /* confdefs.h. */ |
---|
7170 | _ACEOF |
---|
7171 | cat confdefs.h >>conftest.$ac_ext |
---|
7172 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7173 | /* end confdefs.h. */ |
---|
7174 | $ac_includes_default |
---|
7175 | typedef void* ac__type_new_; |
---|
7176 | int |
---|
7177 | main () |
---|
7178 | { |
---|
7179 | if ((ac__type_new_ *) 0) |
---|
7180 | return 0; |
---|
7181 | if (sizeof (ac__type_new_)) |
---|
7182 | return 0; |
---|
7183 | ; |
---|
7184 | return 0; |
---|
7185 | } |
---|
7186 | _ACEOF |
---|
7187 | rm -f conftest.$ac_objext |
---|
7188 | if { (ac_try="$ac_compile" |
---|
7189 | case "(($ac_try" in |
---|
7190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7191 | *) ac_try_echo=$ac_try;; |
---|
7192 | esac |
---|
7193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7194 | (eval "$ac_compile") 2>conftest.er1 |
---|
7195 | ac_status=$? |
---|
7196 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7197 | rm -f conftest.er1 |
---|
7198 | cat conftest.err >&5 |
---|
7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7200 | (exit $ac_status); } && { |
---|
7201 | test -z "$ac_c_werror_flag" || |
---|
7202 | test ! -s conftest.err |
---|
7203 | } && test -s conftest.$ac_objext; then |
---|
7204 | ac_cv_type_voidp=yes |
---|
7205 | else |
---|
7206 | echo "$as_me: failed program was:" >&5 |
---|
7207 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7208 | |
---|
7209 | ac_cv_type_voidp=no |
---|
7210 | fi |
---|
7211 | |
---|
7212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7213 | fi |
---|
7214 | { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 |
---|
7215 | echo "${ECHO_T}$ac_cv_type_voidp" >&6; } |
---|
7216 | |
---|
7217 | # The cast to long int works around a bug in the HP C Compiler |
---|
7218 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
7219 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
7220 | # This bug is HP SR number 8606223364. |
---|
7221 | { echo "$as_me:$LINENO: checking size of void*" >&5 |
---|
7222 | echo $ECHO_N "checking size of void*... $ECHO_C" >&6; } |
---|
7223 | if test "${ac_cv_sizeof_voidp+set}" = set; then |
---|
7224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7225 | else |
---|
7226 | if test "$cross_compiling" = yes; then |
---|
7227 | # Depending upon the size, compute the lo and hi bounds. |
---|
7228 | cat >conftest.$ac_ext <<_ACEOF |
---|
7229 | /* confdefs.h. */ |
---|
7230 | _ACEOF |
---|
7231 | cat confdefs.h >>conftest.$ac_ext |
---|
7232 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7233 | /* end confdefs.h. */ |
---|
7234 | $ac_includes_default |
---|
7235 | typedef void* ac__type_sizeof_; |
---|
7236 | int |
---|
7237 | main () |
---|
7238 | { |
---|
7239 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
---|
7240 | test_array [0] = 0 |
---|
7241 | |
---|
7242 | ; |
---|
7243 | return 0; |
---|
7244 | } |
---|
7245 | _ACEOF |
---|
7246 | rm -f conftest.$ac_objext |
---|
7247 | if { (ac_try="$ac_compile" |
---|
7248 | case "(($ac_try" in |
---|
7249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7250 | *) ac_try_echo=$ac_try;; |
---|
7251 | esac |
---|
7252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7253 | (eval "$ac_compile") 2>conftest.er1 |
---|
7254 | ac_status=$? |
---|
7255 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7256 | rm -f conftest.er1 |
---|
7257 | cat conftest.err >&5 |
---|
7258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7259 | (exit $ac_status); } && { |
---|
7260 | test -z "$ac_c_werror_flag" || |
---|
7261 | test ! -s conftest.err |
---|
7262 | } && test -s conftest.$ac_objext; then |
---|
7263 | ac_lo=0 ac_mid=0 |
---|
7264 | while :; do |
---|
7265 | cat >conftest.$ac_ext <<_ACEOF |
---|
7266 | /* confdefs.h. */ |
---|
7267 | _ACEOF |
---|
7268 | cat confdefs.h >>conftest.$ac_ext |
---|
7269 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7270 | /* end confdefs.h. */ |
---|
7271 | $ac_includes_default |
---|
7272 | typedef void* ac__type_sizeof_; |
---|
7273 | int |
---|
7274 | main () |
---|
7275 | { |
---|
7276 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
7277 | test_array [0] = 0 |
---|
7278 | |
---|
7279 | ; |
---|
7280 | return 0; |
---|
7281 | } |
---|
7282 | _ACEOF |
---|
7283 | rm -f conftest.$ac_objext |
---|
7284 | if { (ac_try="$ac_compile" |
---|
7285 | case "(($ac_try" in |
---|
7286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7287 | *) ac_try_echo=$ac_try;; |
---|
7288 | esac |
---|
7289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7290 | (eval "$ac_compile") 2>conftest.er1 |
---|
7291 | ac_status=$? |
---|
7292 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7293 | rm -f conftest.er1 |
---|
7294 | cat conftest.err >&5 |
---|
7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7296 | (exit $ac_status); } && { |
---|
7297 | test -z "$ac_c_werror_flag" || |
---|
7298 | test ! -s conftest.err |
---|
7299 | } && test -s conftest.$ac_objext; then |
---|
7300 | ac_hi=$ac_mid; break |
---|
7301 | else |
---|
7302 | echo "$as_me: failed program was:" >&5 |
---|
7303 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7304 | |
---|
7305 | ac_lo=`expr $ac_mid + 1` |
---|
7306 | if test $ac_lo -le $ac_mid; then |
---|
7307 | ac_lo= ac_hi= |
---|
7308 | break |
---|
7309 | fi |
---|
7310 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
7311 | fi |
---|
7312 | |
---|
7313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7314 | done |
---|
7315 | else |
---|
7316 | echo "$as_me: failed program was:" >&5 |
---|
7317 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7318 | |
---|
7319 | cat >conftest.$ac_ext <<_ACEOF |
---|
7320 | /* confdefs.h. */ |
---|
7321 | _ACEOF |
---|
7322 | cat confdefs.h >>conftest.$ac_ext |
---|
7323 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7324 | /* end confdefs.h. */ |
---|
7325 | $ac_includes_default |
---|
7326 | typedef void* ac__type_sizeof_; |
---|
7327 | int |
---|
7328 | main () |
---|
7329 | { |
---|
7330 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
---|
7331 | test_array [0] = 0 |
---|
7332 | |
---|
7333 | ; |
---|
7334 | return 0; |
---|
7335 | } |
---|
7336 | _ACEOF |
---|
7337 | rm -f conftest.$ac_objext |
---|
7338 | if { (ac_try="$ac_compile" |
---|
7339 | case "(($ac_try" in |
---|
7340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7341 | *) ac_try_echo=$ac_try;; |
---|
7342 | esac |
---|
7343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7344 | (eval "$ac_compile") 2>conftest.er1 |
---|
7345 | ac_status=$? |
---|
7346 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7347 | rm -f conftest.er1 |
---|
7348 | cat conftest.err >&5 |
---|
7349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7350 | (exit $ac_status); } && { |
---|
7351 | test -z "$ac_c_werror_flag" || |
---|
7352 | test ! -s conftest.err |
---|
7353 | } && test -s conftest.$ac_objext; then |
---|
7354 | ac_hi=-1 ac_mid=-1 |
---|
7355 | while :; do |
---|
7356 | cat >conftest.$ac_ext <<_ACEOF |
---|
7357 | /* confdefs.h. */ |
---|
7358 | _ACEOF |
---|
7359 | cat confdefs.h >>conftest.$ac_ext |
---|
7360 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7361 | /* end confdefs.h. */ |
---|
7362 | $ac_includes_default |
---|
7363 | typedef void* ac__type_sizeof_; |
---|
7364 | int |
---|
7365 | main () |
---|
7366 | { |
---|
7367 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
---|
7368 | test_array [0] = 0 |
---|
7369 | |
---|
7370 | ; |
---|
7371 | return 0; |
---|
7372 | } |
---|
7373 | _ACEOF |
---|
7374 | rm -f conftest.$ac_objext |
---|
7375 | if { (ac_try="$ac_compile" |
---|
7376 | case "(($ac_try" in |
---|
7377 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7378 | *) ac_try_echo=$ac_try;; |
---|
7379 | esac |
---|
7380 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7381 | (eval "$ac_compile") 2>conftest.er1 |
---|
7382 | ac_status=$? |
---|
7383 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7384 | rm -f conftest.er1 |
---|
7385 | cat conftest.err >&5 |
---|
7386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7387 | (exit $ac_status); } && { |
---|
7388 | test -z "$ac_c_werror_flag" || |
---|
7389 | test ! -s conftest.err |
---|
7390 | } && test -s conftest.$ac_objext; then |
---|
7391 | ac_lo=$ac_mid; break |
---|
7392 | else |
---|
7393 | echo "$as_me: failed program was:" >&5 |
---|
7394 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7395 | |
---|
7396 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
7397 | if test $ac_mid -le $ac_hi; then |
---|
7398 | ac_lo= ac_hi= |
---|
7399 | break |
---|
7400 | fi |
---|
7401 | ac_mid=`expr 2 '*' $ac_mid` |
---|
7402 | fi |
---|
7403 | |
---|
7404 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7405 | done |
---|
7406 | else |
---|
7407 | echo "$as_me: failed program was:" >&5 |
---|
7408 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7409 | |
---|
7410 | ac_lo= ac_hi= |
---|
7411 | fi |
---|
7412 | |
---|
7413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7414 | fi |
---|
7415 | |
---|
7416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7417 | # Binary search between lo and hi bounds. |
---|
7418 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
7419 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
7420 | cat >conftest.$ac_ext <<_ACEOF |
---|
7421 | /* confdefs.h. */ |
---|
7422 | _ACEOF |
---|
7423 | cat confdefs.h >>conftest.$ac_ext |
---|
7424 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7425 | /* end confdefs.h. */ |
---|
7426 | $ac_includes_default |
---|
7427 | typedef void* ac__type_sizeof_; |
---|
7428 | int |
---|
7429 | main () |
---|
7430 | { |
---|
7431 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
---|
7432 | test_array [0] = 0 |
---|
7433 | |
---|
7434 | ; |
---|
7435 | return 0; |
---|
7436 | } |
---|
7437 | _ACEOF |
---|
7438 | rm -f conftest.$ac_objext |
---|
7439 | if { (ac_try="$ac_compile" |
---|
7440 | case "(($ac_try" in |
---|
7441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7442 | *) ac_try_echo=$ac_try;; |
---|
7443 | esac |
---|
7444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7445 | (eval "$ac_compile") 2>conftest.er1 |
---|
7446 | ac_status=$? |
---|
7447 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7448 | rm -f conftest.er1 |
---|
7449 | cat conftest.err >&5 |
---|
7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7451 | (exit $ac_status); } && { |
---|
7452 | test -z "$ac_c_werror_flag" || |
---|
7453 | test ! -s conftest.err |
---|
7454 | } && test -s conftest.$ac_objext; then |
---|
7455 | ac_hi=$ac_mid |
---|
7456 | else |
---|
7457 | echo "$as_me: failed program was:" >&5 |
---|
7458 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7459 | |
---|
7460 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
7461 | fi |
---|
7462 | |
---|
7463 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7464 | done |
---|
7465 | case $ac_lo in |
---|
7466 | ?*) ac_cv_sizeof_voidp=$ac_lo;; |
---|
7467 | '') if test "$ac_cv_type_voidp" = yes; then |
---|
7468 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*) |
---|
7469 | See \`config.log' for more details." >&5 |
---|
7470 | echo "$as_me: error: cannot compute sizeof (void*) |
---|
7471 | See \`config.log' for more details." >&2;} |
---|
7472 | { (exit 77); exit 77; }; } |
---|
7473 | else |
---|
7474 | ac_cv_sizeof_voidp=0 |
---|
7475 | fi ;; |
---|
7476 | esac |
---|
7477 | else |
---|
7478 | cat >conftest.$ac_ext <<_ACEOF |
---|
7479 | /* confdefs.h. */ |
---|
7480 | _ACEOF |
---|
7481 | cat confdefs.h >>conftest.$ac_ext |
---|
7482 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7483 | /* end confdefs.h. */ |
---|
7484 | $ac_includes_default |
---|
7485 | typedef void* ac__type_sizeof_; |
---|
7486 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
7487 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
---|
7488 | #include <stdio.h> |
---|
7489 | #include <stdlib.h> |
---|
7490 | int |
---|
7491 | main () |
---|
7492 | { |
---|
7493 | |
---|
7494 | FILE *f = fopen ("conftest.val", "w"); |
---|
7495 | if (! f) |
---|
7496 | return 1; |
---|
7497 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
---|
7498 | { |
---|
7499 | long int i = longval (); |
---|
7500 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
7501 | return 1; |
---|
7502 | fprintf (f, "%ld\n", i); |
---|
7503 | } |
---|
7504 | else |
---|
7505 | { |
---|
7506 | unsigned long int i = ulongval (); |
---|
7507 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
---|
7508 | return 1; |
---|
7509 | fprintf (f, "%lu\n", i); |
---|
7510 | } |
---|
7511 | return ferror (f) || fclose (f) != 0; |
---|
7512 | |
---|
7513 | ; |
---|
7514 | return 0; |
---|
7515 | } |
---|
7516 | _ACEOF |
---|
7517 | rm -f conftest$ac_exeext |
---|
7518 | if { (ac_try="$ac_link" |
---|
7519 | case "(($ac_try" in |
---|
7520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7521 | *) ac_try_echo=$ac_try;; |
---|
7522 | esac |
---|
7523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7524 | (eval "$ac_link") 2>&5 |
---|
7525 | ac_status=$? |
---|
7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7528 | { (case "(($ac_try" in |
---|
7529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7530 | *) ac_try_echo=$ac_try;; |
---|
7531 | esac |
---|
7532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7533 | (eval "$ac_try") 2>&5 |
---|
7534 | ac_status=$? |
---|
7535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7536 | (exit $ac_status); }; }; then |
---|
7537 | ac_cv_sizeof_voidp=`cat conftest.val` |
---|
7538 | else |
---|
7539 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
7540 | echo "$as_me: failed program was:" >&5 |
---|
7541 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7542 | |
---|
7543 | ( exit $ac_status ) |
---|
7544 | if test "$ac_cv_type_voidp" = yes; then |
---|
7545 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*) |
---|
7546 | See \`config.log' for more details." >&5 |
---|
7547 | echo "$as_me: error: cannot compute sizeof (void*) |
---|
7548 | See \`config.log' for more details." >&2;} |
---|
7549 | { (exit 77); exit 77; }; } |
---|
7550 | else |
---|
7551 | ac_cv_sizeof_voidp=0 |
---|
7552 | fi |
---|
7553 | fi |
---|
7554 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
7555 | fi |
---|
7556 | rm -f conftest.val |
---|
7557 | fi |
---|
7558 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 |
---|
7559 | echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; } |
---|
7560 | |
---|
7561 | |
---|
7562 | |
---|
7563 | cat >>confdefs.h <<_ACEOF |
---|
7564 | #define SIZEOF_VOIDP $ac_cv_sizeof_voidp |
---|
7565 | _ACEOF |
---|
7566 | |
---|
7567 | |
---|
7568 | |
---|
7569 | # Check whether --enable-backtrace was given. |
---|
7570 | if test "${enable_backtrace+set}" = set; then |
---|
7571 | enableval=$enable_backtrace; ac_enable_backtrace=$enableleval |
---|
7572 | else |
---|
7573 | ac_enable_backtrace=auto |
---|
7574 | |
---|
7575 | fi |
---|
7576 | |
---|
7577 | # Check whether --enable-ucontexth was given. |
---|
7578 | if test "${enable_ucontexth+set}" = set; then |
---|
7579 | enableval=$enable_ucontexth; ac_enable_ucontexth=$enableleval |
---|
7580 | else |
---|
7581 | ac_enable_ucontexth=auto |
---|
7582 | |
---|
7583 | fi |
---|
7584 | |
---|
7585 | # Check whether --enable-asm was given. |
---|
7586 | if test "${enable_asm+set}" = set; then |
---|
7587 | enableval=$enable_asm; ac_enable_asm=$enableval |
---|
7588 | else |
---|
7589 | ac_enable_asm=auto |
---|
7590 | |
---|
7591 | fi |
---|
7592 | |
---|
7593 | if test $ac_enable_asm = auto; then |
---|
7594 | { echo "$as_me:$LINENO: checking whether ${CC-cc} accepts Pentium assembler" >&5 |
---|
7595 | echo $ECHO_N "checking whether ${CC-cc} accepts Pentium assembler... $ECHO_C" >&6; } |
---|
7596 | cat >conftest.$ac_ext <<_ACEOF |
---|
7597 | /* confdefs.h. */ |
---|
7598 | _ACEOF |
---|
7599 | cat confdefs.h >>conftest.$ac_ext |
---|
7600 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7601 | /* end confdefs.h. */ |
---|
7602 | |
---|
7603 | |
---|
7604 | int |
---|
7605 | main () |
---|
7606 | { |
---|
7607 | |
---|
7608 | #if !defined(__GNUC__) || !defined(__i386__) |
---|
7609 | choke me |
---|
7610 | #endif |
---|
7611 | |
---|
7612 | ; |
---|
7613 | return 0; |
---|
7614 | } |
---|
7615 | _ACEOF |
---|
7616 | rm -f conftest.$ac_objext |
---|
7617 | if { (ac_try="$ac_compile" |
---|
7618 | case "(($ac_try" in |
---|
7619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7620 | *) ac_try_echo=$ac_try;; |
---|
7621 | esac |
---|
7622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7623 | (eval "$ac_compile") 2>conftest.er1 |
---|
7624 | ac_status=$? |
---|
7625 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7626 | rm -f conftest.er1 |
---|
7627 | cat conftest.err >&5 |
---|
7628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7629 | (exit $ac_status); } && { |
---|
7630 | test -z "$ac_c_werror_flag" || |
---|
7631 | test ! -s conftest.err |
---|
7632 | } && test -s conftest.$ac_objext; then |
---|
7633 | ac_enable_asm=yes |
---|
7634 | else |
---|
7635 | echo "$as_me: failed program was:" >&5 |
---|
7636 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7637 | |
---|
7638 | ac_enable_asm=no |
---|
7639 | fi |
---|
7640 | |
---|
7641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7642 | { echo "$as_me:$LINENO: result: $ac_enable_asm" >&5 |
---|
7643 | echo "${ECHO_T}$ac_enable_asm" >&6; } |
---|
7644 | if test $ac_enable_asm = yes; then |
---|
7645 | for ac_prog in ${ac_tool_prefix}nasm |
---|
7646 | do |
---|
7647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
7648 | set dummy $ac_prog; ac_word=$2 |
---|
7649 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7651 | if test "${ac_cv_prog_ASM+set}" = set; then |
---|
7652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7653 | else |
---|
7654 | if test -n "$ASM"; then |
---|
7655 | ac_cv_prog_ASM="$ASM" # Let the user override the test. |
---|
7656 | else |
---|
7657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7658 | for as_dir in $PATH |
---|
7659 | do |
---|
7660 | IFS=$as_save_IFS |
---|
7661 | test -z "$as_dir" && as_dir=. |
---|
7662 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7664 | ac_cv_prog_ASM="$ac_prog" |
---|
7665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7666 | break 2 |
---|
7667 | fi |
---|
7668 | done |
---|
7669 | done |
---|
7670 | IFS=$as_save_IFS |
---|
7671 | |
---|
7672 | fi |
---|
7673 | fi |
---|
7674 | ASM=$ac_cv_prog_ASM |
---|
7675 | if test -n "$ASM"; then |
---|
7676 | { echo "$as_me:$LINENO: result: $ASM" >&5 |
---|
7677 | echo "${ECHO_T}$ASM" >&6; } |
---|
7678 | else |
---|
7679 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7680 | echo "${ECHO_T}no" >&6; } |
---|
7681 | fi |
---|
7682 | |
---|
7683 | |
---|
7684 | test -n "$ASM" && break |
---|
7685 | done |
---|
7686 | test -n "$ASM" || ASM="none" |
---|
7687 | |
---|
7688 | if test $ASM = none; then |
---|
7689 | ac_enable_asm=no |
---|
7690 | else |
---|
7691 | CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_ASM_INLINE" |
---|
7692 | fi |
---|
7693 | fi |
---|
7694 | elif test $ac_enable_asm = yes; then |
---|
7695 | for ac_prog in ${ac_tool_prefix}nasm |
---|
7696 | do |
---|
7697 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
7698 | set dummy $ac_prog; ac_word=$2 |
---|
7699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
7700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
7701 | if test "${ac_cv_prog_ASM+set}" = set; then |
---|
7702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7703 | else |
---|
7704 | if test -n "$ASM"; then |
---|
7705 | ac_cv_prog_ASM="$ASM" # Let the user override the test. |
---|
7706 | else |
---|
7707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
7708 | for as_dir in $PATH |
---|
7709 | do |
---|
7710 | IFS=$as_save_IFS |
---|
7711 | test -z "$as_dir" && as_dir=. |
---|
7712 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
7713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
7714 | ac_cv_prog_ASM="$ac_prog" |
---|
7715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
7716 | break 2 |
---|
7717 | fi |
---|
7718 | done |
---|
7719 | done |
---|
7720 | IFS=$as_save_IFS |
---|
7721 | |
---|
7722 | fi |
---|
7723 | fi |
---|
7724 | ASM=$ac_cv_prog_ASM |
---|
7725 | if test -n "$ASM"; then |
---|
7726 | { echo "$as_me:$LINENO: result: $ASM" >&5 |
---|
7727 | echo "${ECHO_T}$ASM" >&6; } |
---|
7728 | else |
---|
7729 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
7730 | echo "${ECHO_T}no" >&6; } |
---|
7731 | fi |
---|
7732 | |
---|
7733 | |
---|
7734 | test -n "$ASM" && break |
---|
7735 | done |
---|
7736 | test -n "$ASM" || ASM="none" |
---|
7737 | |
---|
7738 | if test $ASM = none; then |
---|
7739 | { { echo "$as_me:$LINENO: error: the NASM assembler is required for the \"asm\" compilation" >&5 |
---|
7740 | echo "$as_me: error: the NASM assembler is required for the \"asm\" compilation" >&2;} |
---|
7741 | { (exit 1); exit 1; }; } |
---|
7742 | else |
---|
7743 | CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_ASM_INLINE" |
---|
7744 | fi |
---|
7745 | fi |
---|
7746 | |
---|
7747 | # Check whether --enable-asm-mips3 was given. |
---|
7748 | if test "${enable_asm_mips3+set}" = set; then |
---|
7749 | enableval=$enable_asm_mips3; ac_enable_asm_mips3=$enableval |
---|
7750 | else |
---|
7751 | ac_enable_asm_mips3=auto |
---|
7752 | |
---|
7753 | fi |
---|
7754 | |
---|
7755 | if test $ac_enable_asm_mips3 = auto; then |
---|
7756 | if test $ac_enable_asm = yes; then |
---|
7757 | ac_enable_asm_mips3=yes |
---|
7758 | else |
---|
7759 | ac_enable_asm_mips3=no |
---|
7760 | fi |
---|
7761 | fi |
---|
7762 | if test $ac_enable_asm_mips3 = yes; then |
---|
7763 | if test ! $ac_enable_asm = yes; then |
---|
7764 | { { echo "$as_me:$LINENO: error: the Pentium assembler is required for the \"asm-mips3\" compilation" >&5 |
---|
7765 | echo "$as_me: error: the Pentium assembler is required for the \"asm-mips3\" compilation" >&2;} |
---|
7766 | { (exit 1); exit 1; }; } |
---|
7767 | fi |
---|
7768 | CFLAGS_ARCH="$CFLAGS_ARCH -DUSE_ASM_EMUMIPS3" |
---|
7769 | fi |
---|
7770 | |
---|
7771 | CONF_CFLAGS_ARCH=$CFLAGS_ARCH |
---|
7772 | |
---|
7773 | |
---|
7774 | # Checks for configuration options. |
---|
7775 | |
---|
7776 | # Check whether --with-emu was given. |
---|
7777 | if test "${with_emu+set}" = set; then |
---|
7778 | withval=$with_emu; ac_with_emu=$withval |
---|
7779 | else |
---|
7780 | ac_with_emu=auto |
---|
7781 | |
---|
7782 | fi |
---|
7783 | |
---|
7784 | if test $ac_with_emu = auto; then |
---|
7785 | if test -f $srcdir/advance/advmame.dif ; then |
---|
7786 | ac_with_emu=mame |
---|
7787 | elif test -f $srcdir/advance/advmess.dif ; then |
---|
7788 | ac_with_emu=mess |
---|
7789 | else |
---|
7790 | ac_with_emu=none |
---|
7791 | fi |
---|
7792 | fi |
---|
7793 | if test $ac_with_emu = mame; then |
---|
7794 | if test ! -f $srcdir/src/mame.mak ; then |
---|
7795 | { { echo "$as_me:$LINENO: error: you need the MAME source in the $srcdir/src/ directory. Check the BUILD file for instructions." >&5 |
---|
7796 | echo "$as_me: error: you need the MAME source in the $srcdir/src/ directory. Check the BUILD file for instructions." >&2;} |
---|
7797 | { (exit 1); exit 1; }; } |
---|
7798 | fi |
---|
7799 | if test ! -f $srcdir/src/advance.pat ; then |
---|
7800 | { { echo "$as_me:$LINENO: error: you must patch the MAME source in $srcdir/src/ with the $srcdir/advance/advmame.dif patch. Check the BUILD file for instructions." >&5 |
---|
7801 | echo "$as_me: error: you must patch the MAME source in $srcdir/src/ with the $srcdir/advance/advmame.dif patch. Check the BUILD file for instructions." >&2;} |
---|
7802 | { (exit 1); exit 1; }; } |
---|
7803 | fi |
---|
7804 | elif test $ac_with_emu = mess; then |
---|
7805 | if test ! -f $srcdir/srcmess/core.mak ; then |
---|
7806 | { { echo "$as_me:$LINENO: error: you need the MESS source in the $srcdir/srcmess/ directory. Check the BUILD file for instructions." >&5 |
---|
7807 | echo "$as_me: error: you need the MESS source in the $srcdir/srcmess/ directory. Check the BUILD file for instructions." >&2;} |
---|
7808 | { (exit 1); exit 1; }; } |
---|
7809 | fi |
---|
7810 | if test ! -f $srcdir/mess/mess.mak ; then |
---|
7811 | { { echo "$as_me:$LINENO: error: you need the MESS source in the $srcdir/mess/ directory. Check the BUILD file for instructions." >&5 |
---|
7812 | echo "$as_me: error: you need the MESS source in the $srcdir/mess/ directory. Check the BUILD file for instructions." >&2;} |
---|
7813 | { (exit 1); exit 1; }; } |
---|
7814 | fi |
---|
7815 | if test ! -f $srcdir/srcmess/advance.pat ; then |
---|
7816 | { { echo "$as_me:$LINENO: error: you must patch the MESS source in $srcdir/srcmess/ with the advance/advmess.dif patch. Check the BUILD file for instructions." >&5 |
---|
7817 | echo "$as_me: error: you must patch the MESS source in $srcdir/srcmess/ with the advance/advmess.dif patch. Check the BUILD file for instructions." >&2;} |
---|
7818 | { (exit 1); exit 1; }; } |
---|
7819 | fi |
---|
7820 | if test ! -f $srcdir/mess/advance.pat ; then |
---|
7821 | { { echo "$as_me:$LINENO: error: you must patch the MESS source in $srcdir/mess/ with the advance/mess.dif patch. Check the BUILD file for instructions." >&5 |
---|
7822 | echo "$as_me: error: you must patch the MESS source in $srcdir/mess/ with the advance/mess.dif patch. Check the BUILD file for instructions." >&2;} |
---|
7823 | { (exit 1); exit 1; }; } |
---|
7824 | fi |
---|
7825 | elif test ! $ac_with_emu = none; then |
---|
7826 | { { echo "$as_me:$LINENO: error: unknown emulator $ac_with_emu" >&5 |
---|
7827 | echo "$as_me: error: unknown emulator $ac_with_emu" >&2;} |
---|
7828 | { (exit 1); exit 1; }; } |
---|
7829 | fi |
---|
7830 | CONF_EMU=$ac_with_emu |
---|
7831 | |
---|
7832 | |
---|
7833 | # Check whether --enable-debugger was given. |
---|
7834 | if test "${enable_debugger+set}" = set; then |
---|
7835 | enableval=$enable_debugger; ac_enable_debugger=$enableval |
---|
7836 | else |
---|
7837 | ac_enable_debugger=no |
---|
7838 | |
---|
7839 | fi |
---|
7840 | |
---|
7841 | CONF_DEBUGGER=$ac_enable_debugger |
---|
7842 | |
---|
7843 | |
---|
7844 | # Checks for header files. |
---|
7845 | # Checks for typedefs, structures, and compiler characteristics. |
---|
7846 | # Checks for library functions. |
---|
7847 | |
---|
7848 | if test $ac_system = unix ; then |
---|
7849 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
7850 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
---|
7851 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
7852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7853 | else |
---|
7854 | cat >conftest.$ac_ext <<_ACEOF |
---|
7855 | /* confdefs.h. */ |
---|
7856 | _ACEOF |
---|
7857 | cat confdefs.h >>conftest.$ac_ext |
---|
7858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7859 | /* end confdefs.h. */ |
---|
7860 | #include <stdlib.h> |
---|
7861 | #include <stdarg.h> |
---|
7862 | #include <string.h> |
---|
7863 | #include <float.h> |
---|
7864 | |
---|
7865 | int |
---|
7866 | main () |
---|
7867 | { |
---|
7868 | |
---|
7869 | ; |
---|
7870 | return 0; |
---|
7871 | } |
---|
7872 | _ACEOF |
---|
7873 | rm -f conftest.$ac_objext |
---|
7874 | if { (ac_try="$ac_compile" |
---|
7875 | case "(($ac_try" in |
---|
7876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7877 | *) ac_try_echo=$ac_try;; |
---|
7878 | esac |
---|
7879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7880 | (eval "$ac_compile") 2>conftest.er1 |
---|
7881 | ac_status=$? |
---|
7882 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7883 | rm -f conftest.er1 |
---|
7884 | cat conftest.err >&5 |
---|
7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7886 | (exit $ac_status); } && { |
---|
7887 | test -z "$ac_c_werror_flag" || |
---|
7888 | test ! -s conftest.err |
---|
7889 | } && test -s conftest.$ac_objext; then |
---|
7890 | ac_cv_header_stdc=yes |
---|
7891 | else |
---|
7892 | echo "$as_me: failed program was:" >&5 |
---|
7893 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7894 | |
---|
7895 | ac_cv_header_stdc=no |
---|
7896 | fi |
---|
7897 | |
---|
7898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7899 | |
---|
7900 | if test $ac_cv_header_stdc = yes; then |
---|
7901 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7902 | cat >conftest.$ac_ext <<_ACEOF |
---|
7903 | /* confdefs.h. */ |
---|
7904 | _ACEOF |
---|
7905 | cat confdefs.h >>conftest.$ac_ext |
---|
7906 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7907 | /* end confdefs.h. */ |
---|
7908 | #include <string.h> |
---|
7909 | |
---|
7910 | _ACEOF |
---|
7911 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7912 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
7913 | : |
---|
7914 | else |
---|
7915 | ac_cv_header_stdc=no |
---|
7916 | fi |
---|
7917 | rm -f conftest* |
---|
7918 | |
---|
7919 | fi |
---|
7920 | |
---|
7921 | if test $ac_cv_header_stdc = yes; then |
---|
7922 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7923 | cat >conftest.$ac_ext <<_ACEOF |
---|
7924 | /* confdefs.h. */ |
---|
7925 | _ACEOF |
---|
7926 | cat confdefs.h >>conftest.$ac_ext |
---|
7927 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7928 | /* end confdefs.h. */ |
---|
7929 | #include <stdlib.h> |
---|
7930 | |
---|
7931 | _ACEOF |
---|
7932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7933 | $EGREP "free" >/dev/null 2>&1; then |
---|
7934 | : |
---|
7935 | else |
---|
7936 | ac_cv_header_stdc=no |
---|
7937 | fi |
---|
7938 | rm -f conftest* |
---|
7939 | |
---|
7940 | fi |
---|
7941 | |
---|
7942 | if test $ac_cv_header_stdc = yes; then |
---|
7943 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7944 | if test "$cross_compiling" = yes; then |
---|
7945 | : |
---|
7946 | else |
---|
7947 | cat >conftest.$ac_ext <<_ACEOF |
---|
7948 | /* confdefs.h. */ |
---|
7949 | _ACEOF |
---|
7950 | cat confdefs.h >>conftest.$ac_ext |
---|
7951 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7952 | /* end confdefs.h. */ |
---|
7953 | #include <ctype.h> |
---|
7954 | #include <stdlib.h> |
---|
7955 | #if ((' ' & 0x0FF) == 0x020) |
---|
7956 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7957 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7958 | #else |
---|
7959 | # define ISLOWER(c) \ |
---|
7960 | (('a' <= (c) && (c) <= 'i') \ |
---|
7961 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7962 | || ('s' <= (c) && (c) <= 'z')) |
---|
7963 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7964 | #endif |
---|
7965 | |
---|
7966 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7967 | int |
---|
7968 | main () |
---|
7969 | { |
---|
7970 | int i; |
---|
7971 | for (i = 0; i < 256; i++) |
---|
7972 | if (XOR (islower (i), ISLOWER (i)) |
---|
7973 | || toupper (i) != TOUPPER (i)) |
---|
7974 | return 2; |
---|
7975 | return 0; |
---|
7976 | } |
---|
7977 | _ACEOF |
---|
7978 | rm -f conftest$ac_exeext |
---|
7979 | if { (ac_try="$ac_link" |
---|
7980 | case "(($ac_try" in |
---|
7981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7982 | *) ac_try_echo=$ac_try;; |
---|
7983 | esac |
---|
7984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7985 | (eval "$ac_link") 2>&5 |
---|
7986 | ac_status=$? |
---|
7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
7989 | { (case "(($ac_try" in |
---|
7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
7991 | *) ac_try_echo=$ac_try;; |
---|
7992 | esac |
---|
7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
7994 | (eval "$ac_try") 2>&5 |
---|
7995 | ac_status=$? |
---|
7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7997 | (exit $ac_status); }; }; then |
---|
7998 | : |
---|
7999 | else |
---|
8000 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
8001 | echo "$as_me: failed program was:" >&5 |
---|
8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8003 | |
---|
8004 | ( exit $ac_status ) |
---|
8005 | ac_cv_header_stdc=no |
---|
8006 | fi |
---|
8007 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
8008 | fi |
---|
8009 | |
---|
8010 | |
---|
8011 | fi |
---|
8012 | fi |
---|
8013 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
8014 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
---|
8015 | if test $ac_cv_header_stdc = yes; then |
---|
8016 | |
---|
8017 | cat >>confdefs.h <<\_ACEOF |
---|
8018 | #define STDC_HEADERS 1 |
---|
8019 | _ACEOF |
---|
8020 | |
---|
8021 | fi |
---|
8022 | |
---|
8023 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
---|
8024 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
---|
8025 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
---|
8026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8027 | else |
---|
8028 | cat >conftest.$ac_ext <<_ACEOF |
---|
8029 | /* confdefs.h. */ |
---|
8030 | _ACEOF |
---|
8031 | cat confdefs.h >>conftest.$ac_ext |
---|
8032 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8033 | /* end confdefs.h. */ |
---|
8034 | #include <sys/types.h> |
---|
8035 | #include <sys/wait.h> |
---|
8036 | #ifndef WEXITSTATUS |
---|
8037 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
---|
8038 | #endif |
---|
8039 | #ifndef WIFEXITED |
---|
8040 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
8041 | #endif |
---|
8042 | |
---|
8043 | int |
---|
8044 | main () |
---|
8045 | { |
---|
8046 | int s; |
---|
8047 | wait (&s); |
---|
8048 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
8049 | ; |
---|
8050 | return 0; |
---|
8051 | } |
---|
8052 | _ACEOF |
---|
8053 | rm -f conftest.$ac_objext |
---|
8054 | if { (ac_try="$ac_compile" |
---|
8055 | case "(($ac_try" in |
---|
8056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8057 | *) ac_try_echo=$ac_try;; |
---|
8058 | esac |
---|
8059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8060 | (eval "$ac_compile") 2>conftest.er1 |
---|
8061 | ac_status=$? |
---|
8062 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8063 | rm -f conftest.er1 |
---|
8064 | cat conftest.err >&5 |
---|
8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8066 | (exit $ac_status); } && { |
---|
8067 | test -z "$ac_c_werror_flag" || |
---|
8068 | test ! -s conftest.err |
---|
8069 | } && test -s conftest.$ac_objext; then |
---|
8070 | ac_cv_header_sys_wait_h=yes |
---|
8071 | else |
---|
8072 | echo "$as_me: failed program was:" >&5 |
---|
8073 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8074 | |
---|
8075 | ac_cv_header_sys_wait_h=no |
---|
8076 | fi |
---|
8077 | |
---|
8078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8079 | fi |
---|
8080 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
---|
8081 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
---|
8082 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
8083 | |
---|
8084 | cat >>confdefs.h <<\_ACEOF |
---|
8085 | #define HAVE_SYS_WAIT_H 1 |
---|
8086 | _ACEOF |
---|
8087 | |
---|
8088 | fi |
---|
8089 | |
---|
8090 | |
---|
8091 | |
---|
8092 | |
---|
8093 | |
---|
8094 | |
---|
8095 | ac_header_dirent=no |
---|
8096 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
---|
8097 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
---|
8098 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
---|
8099 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } |
---|
8100 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8102 | else |
---|
8103 | cat >conftest.$ac_ext <<_ACEOF |
---|
8104 | /* confdefs.h. */ |
---|
8105 | _ACEOF |
---|
8106 | cat confdefs.h >>conftest.$ac_ext |
---|
8107 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8108 | /* end confdefs.h. */ |
---|
8109 | #include <sys/types.h> |
---|
8110 | #include <$ac_hdr> |
---|
8111 | |
---|
8112 | int |
---|
8113 | main () |
---|
8114 | { |
---|
8115 | if ((DIR *) 0) |
---|
8116 | return 0; |
---|
8117 | ; |
---|
8118 | return 0; |
---|
8119 | } |
---|
8120 | _ACEOF |
---|
8121 | rm -f conftest.$ac_objext |
---|
8122 | if { (ac_try="$ac_compile" |
---|
8123 | case "(($ac_try" in |
---|
8124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8125 | *) ac_try_echo=$ac_try;; |
---|
8126 | esac |
---|
8127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8128 | (eval "$ac_compile") 2>conftest.er1 |
---|
8129 | ac_status=$? |
---|
8130 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8131 | rm -f conftest.er1 |
---|
8132 | cat conftest.err >&5 |
---|
8133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8134 | (exit $ac_status); } && { |
---|
8135 | test -z "$ac_c_werror_flag" || |
---|
8136 | test ! -s conftest.err |
---|
8137 | } && test -s conftest.$ac_objext; then |
---|
8138 | eval "$as_ac_Header=yes" |
---|
8139 | else |
---|
8140 | echo "$as_me: failed program was:" >&5 |
---|
8141 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8142 | |
---|
8143 | eval "$as_ac_Header=no" |
---|
8144 | fi |
---|
8145 | |
---|
8146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8147 | fi |
---|
8148 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8149 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8150 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8151 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8152 | cat >>confdefs.h <<_ACEOF |
---|
8153 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
---|
8154 | _ACEOF |
---|
8155 | |
---|
8156 | ac_header_dirent=$ac_hdr; break |
---|
8157 | fi |
---|
8158 | |
---|
8159 | done |
---|
8160 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
---|
8161 | if test $ac_header_dirent = dirent.h; then |
---|
8162 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
8163 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
---|
8164 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
8165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8166 | else |
---|
8167 | ac_func_search_save_LIBS=$LIBS |
---|
8168 | cat >conftest.$ac_ext <<_ACEOF |
---|
8169 | /* confdefs.h. */ |
---|
8170 | _ACEOF |
---|
8171 | cat confdefs.h >>conftest.$ac_ext |
---|
8172 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8173 | /* end confdefs.h. */ |
---|
8174 | |
---|
8175 | /* Override any GCC internal prototype to avoid an error. |
---|
8176 | Use char because int might match the return type of a GCC |
---|
8177 | builtin and then its argument prototype would still apply. */ |
---|
8178 | #ifdef __cplusplus |
---|
8179 | extern "C" |
---|
8180 | #endif |
---|
8181 | char opendir (); |
---|
8182 | int |
---|
8183 | main () |
---|
8184 | { |
---|
8185 | return opendir (); |
---|
8186 | ; |
---|
8187 | return 0; |
---|
8188 | } |
---|
8189 | _ACEOF |
---|
8190 | for ac_lib in '' dir; do |
---|
8191 | if test -z "$ac_lib"; then |
---|
8192 | ac_res="none required" |
---|
8193 | else |
---|
8194 | ac_res=-l$ac_lib |
---|
8195 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
8196 | fi |
---|
8197 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8198 | if { (ac_try="$ac_link" |
---|
8199 | case "(($ac_try" in |
---|
8200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8201 | *) ac_try_echo=$ac_try;; |
---|
8202 | esac |
---|
8203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8204 | (eval "$ac_link") 2>conftest.er1 |
---|
8205 | ac_status=$? |
---|
8206 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8207 | rm -f conftest.er1 |
---|
8208 | cat conftest.err >&5 |
---|
8209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8210 | (exit $ac_status); } && { |
---|
8211 | test -z "$ac_c_werror_flag" || |
---|
8212 | test ! -s conftest.err |
---|
8213 | } && test -s conftest$ac_exeext && |
---|
8214 | $as_test_x conftest$ac_exeext; then |
---|
8215 | ac_cv_search_opendir=$ac_res |
---|
8216 | else |
---|
8217 | echo "$as_me: failed program was:" >&5 |
---|
8218 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8219 | |
---|
8220 | |
---|
8221 | fi |
---|
8222 | |
---|
8223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
8224 | conftest$ac_exeext |
---|
8225 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
8226 | break |
---|
8227 | fi |
---|
8228 | done |
---|
8229 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
8230 | : |
---|
8231 | else |
---|
8232 | ac_cv_search_opendir=no |
---|
8233 | fi |
---|
8234 | rm conftest.$ac_ext |
---|
8235 | LIBS=$ac_func_search_save_LIBS |
---|
8236 | fi |
---|
8237 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
8238 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
---|
8239 | ac_res=$ac_cv_search_opendir |
---|
8240 | if test "$ac_res" != no; then |
---|
8241 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
8242 | |
---|
8243 | fi |
---|
8244 | |
---|
8245 | else |
---|
8246 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
---|
8247 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } |
---|
8248 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
8249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8250 | else |
---|
8251 | ac_func_search_save_LIBS=$LIBS |
---|
8252 | cat >conftest.$ac_ext <<_ACEOF |
---|
8253 | /* confdefs.h. */ |
---|
8254 | _ACEOF |
---|
8255 | cat confdefs.h >>conftest.$ac_ext |
---|
8256 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8257 | /* end confdefs.h. */ |
---|
8258 | |
---|
8259 | /* Override any GCC internal prototype to avoid an error. |
---|
8260 | Use char because int might match the return type of a GCC |
---|
8261 | builtin and then its argument prototype would still apply. */ |
---|
8262 | #ifdef __cplusplus |
---|
8263 | extern "C" |
---|
8264 | #endif |
---|
8265 | char opendir (); |
---|
8266 | int |
---|
8267 | main () |
---|
8268 | { |
---|
8269 | return opendir (); |
---|
8270 | ; |
---|
8271 | return 0; |
---|
8272 | } |
---|
8273 | _ACEOF |
---|
8274 | for ac_lib in '' x; do |
---|
8275 | if test -z "$ac_lib"; then |
---|
8276 | ac_res="none required" |
---|
8277 | else |
---|
8278 | ac_res=-l$ac_lib |
---|
8279 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
8280 | fi |
---|
8281 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8282 | if { (ac_try="$ac_link" |
---|
8283 | case "(($ac_try" in |
---|
8284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8285 | *) ac_try_echo=$ac_try;; |
---|
8286 | esac |
---|
8287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8288 | (eval "$ac_link") 2>conftest.er1 |
---|
8289 | ac_status=$? |
---|
8290 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8291 | rm -f conftest.er1 |
---|
8292 | cat conftest.err >&5 |
---|
8293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8294 | (exit $ac_status); } && { |
---|
8295 | test -z "$ac_c_werror_flag" || |
---|
8296 | test ! -s conftest.err |
---|
8297 | } && test -s conftest$ac_exeext && |
---|
8298 | $as_test_x conftest$ac_exeext; then |
---|
8299 | ac_cv_search_opendir=$ac_res |
---|
8300 | else |
---|
8301 | echo "$as_me: failed program was:" >&5 |
---|
8302 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8303 | |
---|
8304 | |
---|
8305 | fi |
---|
8306 | |
---|
8307 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
8308 | conftest$ac_exeext |
---|
8309 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
8310 | break |
---|
8311 | fi |
---|
8312 | done |
---|
8313 | if test "${ac_cv_search_opendir+set}" = set; then |
---|
8314 | : |
---|
8315 | else |
---|
8316 | ac_cv_search_opendir=no |
---|
8317 | fi |
---|
8318 | rm conftest.$ac_ext |
---|
8319 | LIBS=$ac_func_search_save_LIBS |
---|
8320 | fi |
---|
8321 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
---|
8322 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } |
---|
8323 | ac_res=$ac_cv_search_opendir |
---|
8324 | if test "$ac_res" != no; then |
---|
8325 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
8326 | |
---|
8327 | fi |
---|
8328 | |
---|
8329 | fi |
---|
8330 | |
---|
8331 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
8332 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
---|
8333 | if test "${ac_cv_header_time+set}" = set; then |
---|
8334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8335 | else |
---|
8336 | cat >conftest.$ac_ext <<_ACEOF |
---|
8337 | /* confdefs.h. */ |
---|
8338 | _ACEOF |
---|
8339 | cat confdefs.h >>conftest.$ac_ext |
---|
8340 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8341 | /* end confdefs.h. */ |
---|
8342 | #include <sys/types.h> |
---|
8343 | #include <sys/time.h> |
---|
8344 | #include <time.h> |
---|
8345 | |
---|
8346 | int |
---|
8347 | main () |
---|
8348 | { |
---|
8349 | if ((struct tm *) 0) |
---|
8350 | return 0; |
---|
8351 | ; |
---|
8352 | return 0; |
---|
8353 | } |
---|
8354 | _ACEOF |
---|
8355 | rm -f conftest.$ac_objext |
---|
8356 | if { (ac_try="$ac_compile" |
---|
8357 | case "(($ac_try" in |
---|
8358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8359 | *) ac_try_echo=$ac_try;; |
---|
8360 | esac |
---|
8361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8362 | (eval "$ac_compile") 2>conftest.er1 |
---|
8363 | ac_status=$? |
---|
8364 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8365 | rm -f conftest.er1 |
---|
8366 | cat conftest.err >&5 |
---|
8367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8368 | (exit $ac_status); } && { |
---|
8369 | test -z "$ac_c_werror_flag" || |
---|
8370 | test ! -s conftest.err |
---|
8371 | } && test -s conftest.$ac_objext; then |
---|
8372 | ac_cv_header_time=yes |
---|
8373 | else |
---|
8374 | echo "$as_me: failed program was:" >&5 |
---|
8375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8376 | |
---|
8377 | ac_cv_header_time=no |
---|
8378 | fi |
---|
8379 | |
---|
8380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8381 | fi |
---|
8382 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
8383 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
---|
8384 | if test $ac_cv_header_time = yes; then |
---|
8385 | |
---|
8386 | cat >>confdefs.h <<\_ACEOF |
---|
8387 | #define TIME_WITH_SYS_TIME 1 |
---|
8388 | _ACEOF |
---|
8389 | |
---|
8390 | fi |
---|
8391 | |
---|
8392 | { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
---|
8393 | echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; } |
---|
8394 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then |
---|
8395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8396 | else |
---|
8397 | cat >conftest.$ac_ext <<_ACEOF |
---|
8398 | /* confdefs.h. */ |
---|
8399 | _ACEOF |
---|
8400 | cat confdefs.h >>conftest.$ac_ext |
---|
8401 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8402 | /* end confdefs.h. */ |
---|
8403 | #include <sys/types.h> |
---|
8404 | #include <termios.h> |
---|
8405 | #ifdef TIOCGWINSZ |
---|
8406 | yes |
---|
8407 | #endif |
---|
8408 | |
---|
8409 | _ACEOF |
---|
8410 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8411 | $EGREP "yes" >/dev/null 2>&1; then |
---|
8412 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
---|
8413 | else |
---|
8414 | ac_cv_sys_tiocgwinsz_in_termios_h=no |
---|
8415 | fi |
---|
8416 | rm -f conftest* |
---|
8417 | |
---|
8418 | fi |
---|
8419 | { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
---|
8420 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; } |
---|
8421 | |
---|
8422 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
---|
8423 | { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
---|
8424 | echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; } |
---|
8425 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then |
---|
8426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8427 | else |
---|
8428 | cat >conftest.$ac_ext <<_ACEOF |
---|
8429 | /* confdefs.h. */ |
---|
8430 | _ACEOF |
---|
8431 | cat confdefs.h >>conftest.$ac_ext |
---|
8432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8433 | /* end confdefs.h. */ |
---|
8434 | #include <sys/types.h> |
---|
8435 | #include <sys/ioctl.h> |
---|
8436 | #ifdef TIOCGWINSZ |
---|
8437 | yes |
---|
8438 | #endif |
---|
8439 | |
---|
8440 | _ACEOF |
---|
8441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8442 | $EGREP "yes" >/dev/null 2>&1; then |
---|
8443 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
---|
8444 | else |
---|
8445 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
---|
8446 | fi |
---|
8447 | rm -f conftest* |
---|
8448 | |
---|
8449 | fi |
---|
8450 | { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
---|
8451 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; } |
---|
8452 | |
---|
8453 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
---|
8454 | |
---|
8455 | cat >>confdefs.h <<\_ACEOF |
---|
8456 | #define GWINSZ_IN_SYS_IOCTL 1 |
---|
8457 | _ACEOF |
---|
8458 | |
---|
8459 | fi |
---|
8460 | fi |
---|
8461 | |
---|
8462 | |
---|
8463 | |
---|
8464 | |
---|
8465 | |
---|
8466 | |
---|
8467 | for ac_header in unistd.h sched.h netdb.h termios.h execinfo.h |
---|
8468 | do |
---|
8469 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8470 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8471 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8473 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8475 | fi |
---|
8476 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8477 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8478 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8479 | else |
---|
8480 | # Is the header compilable? |
---|
8481 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8482 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
8483 | cat >conftest.$ac_ext <<_ACEOF |
---|
8484 | /* confdefs.h. */ |
---|
8485 | _ACEOF |
---|
8486 | cat confdefs.h >>conftest.$ac_ext |
---|
8487 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8488 | /* end confdefs.h. */ |
---|
8489 | $ac_includes_default |
---|
8490 | #include <$ac_header> |
---|
8491 | _ACEOF |
---|
8492 | rm -f conftest.$ac_objext |
---|
8493 | if { (ac_try="$ac_compile" |
---|
8494 | case "(($ac_try" in |
---|
8495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8496 | *) ac_try_echo=$ac_try;; |
---|
8497 | esac |
---|
8498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8499 | (eval "$ac_compile") 2>conftest.er1 |
---|
8500 | ac_status=$? |
---|
8501 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8502 | rm -f conftest.er1 |
---|
8503 | cat conftest.err >&5 |
---|
8504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8505 | (exit $ac_status); } && { |
---|
8506 | test -z "$ac_c_werror_flag" || |
---|
8507 | test ! -s conftest.err |
---|
8508 | } && test -s conftest.$ac_objext; then |
---|
8509 | ac_header_compiler=yes |
---|
8510 | else |
---|
8511 | echo "$as_me: failed program was:" >&5 |
---|
8512 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8513 | |
---|
8514 | ac_header_compiler=no |
---|
8515 | fi |
---|
8516 | |
---|
8517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8518 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8519 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
8520 | |
---|
8521 | # Is the header present? |
---|
8522 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8523 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
8524 | cat >conftest.$ac_ext <<_ACEOF |
---|
8525 | /* confdefs.h. */ |
---|
8526 | _ACEOF |
---|
8527 | cat confdefs.h >>conftest.$ac_ext |
---|
8528 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8529 | /* end confdefs.h. */ |
---|
8530 | #include <$ac_header> |
---|
8531 | _ACEOF |
---|
8532 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
8533 | case "(($ac_try" in |
---|
8534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8535 | *) ac_try_echo=$ac_try;; |
---|
8536 | esac |
---|
8537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8538 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
8539 | ac_status=$? |
---|
8540 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8541 | rm -f conftest.er1 |
---|
8542 | cat conftest.err >&5 |
---|
8543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8544 | (exit $ac_status); } >/dev/null && { |
---|
8545 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
8546 | test ! -s conftest.err |
---|
8547 | }; then |
---|
8548 | ac_header_preproc=yes |
---|
8549 | else |
---|
8550 | echo "$as_me: failed program was:" >&5 |
---|
8551 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8552 | |
---|
8553 | ac_header_preproc=no |
---|
8554 | fi |
---|
8555 | |
---|
8556 | rm -f conftest.err conftest.$ac_ext |
---|
8557 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8558 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
8559 | |
---|
8560 | # So? What about this header? |
---|
8561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8562 | yes:no: ) |
---|
8563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8566 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8567 | ac_header_preproc=yes |
---|
8568 | ;; |
---|
8569 | no:yes:* ) |
---|
8570 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8571 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8572 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8573 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8574 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8575 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8576 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8577 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8578 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8579 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8580 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8581 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8582 | |
---|
8583 | ;; |
---|
8584 | esac |
---|
8585 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8587 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8589 | else |
---|
8590 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8591 | fi |
---|
8592 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8593 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8594 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8595 | |
---|
8596 | fi |
---|
8597 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8598 | cat >>confdefs.h <<_ACEOF |
---|
8599 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8600 | _ACEOF |
---|
8601 | |
---|
8602 | fi |
---|
8603 | |
---|
8604 | done |
---|
8605 | |
---|
8606 | |
---|
8607 | |
---|
8608 | |
---|
8609 | |
---|
8610 | |
---|
8611 | |
---|
8612 | |
---|
8613 | |
---|
8614 | |
---|
8615 | |
---|
8616 | |
---|
8617 | for ac_header in sys/utsname.h sys/types.h sys/stat.h sys/socket.h sys/select.h sys/ioctl.h sys/time.h sys/mman.h sys/io.h sys/kd.h sys/vt.h |
---|
8618 | do |
---|
8619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8620 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8621 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8623 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8625 | fi |
---|
8626 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8628 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8629 | else |
---|
8630 | # Is the header compilable? |
---|
8631 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8632 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
8633 | cat >conftest.$ac_ext <<_ACEOF |
---|
8634 | /* confdefs.h. */ |
---|
8635 | _ACEOF |
---|
8636 | cat confdefs.h >>conftest.$ac_ext |
---|
8637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8638 | /* end confdefs.h. */ |
---|
8639 | $ac_includes_default |
---|
8640 | #include <$ac_header> |
---|
8641 | _ACEOF |
---|
8642 | rm -f conftest.$ac_objext |
---|
8643 | if { (ac_try="$ac_compile" |
---|
8644 | case "(($ac_try" in |
---|
8645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8646 | *) ac_try_echo=$ac_try;; |
---|
8647 | esac |
---|
8648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8649 | (eval "$ac_compile") 2>conftest.er1 |
---|
8650 | ac_status=$? |
---|
8651 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8652 | rm -f conftest.er1 |
---|
8653 | cat conftest.err >&5 |
---|
8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8655 | (exit $ac_status); } && { |
---|
8656 | test -z "$ac_c_werror_flag" || |
---|
8657 | test ! -s conftest.err |
---|
8658 | } && test -s conftest.$ac_objext; then |
---|
8659 | ac_header_compiler=yes |
---|
8660 | else |
---|
8661 | echo "$as_me: failed program was:" >&5 |
---|
8662 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8663 | |
---|
8664 | ac_header_compiler=no |
---|
8665 | fi |
---|
8666 | |
---|
8667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8668 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8669 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
8670 | |
---|
8671 | # Is the header present? |
---|
8672 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8673 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
8674 | cat >conftest.$ac_ext <<_ACEOF |
---|
8675 | /* confdefs.h. */ |
---|
8676 | _ACEOF |
---|
8677 | cat confdefs.h >>conftest.$ac_ext |
---|
8678 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8679 | /* end confdefs.h. */ |
---|
8680 | #include <$ac_header> |
---|
8681 | _ACEOF |
---|
8682 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
8683 | case "(($ac_try" in |
---|
8684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8685 | *) ac_try_echo=$ac_try;; |
---|
8686 | esac |
---|
8687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8688 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
8689 | ac_status=$? |
---|
8690 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8691 | rm -f conftest.er1 |
---|
8692 | cat conftest.err >&5 |
---|
8693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8694 | (exit $ac_status); } >/dev/null && { |
---|
8695 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
8696 | test ! -s conftest.err |
---|
8697 | }; then |
---|
8698 | ac_header_preproc=yes |
---|
8699 | else |
---|
8700 | echo "$as_me: failed program was:" >&5 |
---|
8701 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8702 | |
---|
8703 | ac_header_preproc=no |
---|
8704 | fi |
---|
8705 | |
---|
8706 | rm -f conftest.err conftest.$ac_ext |
---|
8707 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8708 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
8709 | |
---|
8710 | # So? What about this header? |
---|
8711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8712 | yes:no: ) |
---|
8713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8717 | ac_header_preproc=yes |
---|
8718 | ;; |
---|
8719 | no:yes:* ) |
---|
8720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8732 | |
---|
8733 | ;; |
---|
8734 | esac |
---|
8735 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8739 | else |
---|
8740 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8741 | fi |
---|
8742 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8743 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8744 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8745 | |
---|
8746 | fi |
---|
8747 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8748 | cat >>confdefs.h <<_ACEOF |
---|
8749 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8750 | _ACEOF |
---|
8751 | |
---|
8752 | fi |
---|
8753 | |
---|
8754 | done |
---|
8755 | |
---|
8756 | |
---|
8757 | for ac_header in netinet/in.h |
---|
8758 | do |
---|
8759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8760 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8761 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8763 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8765 | fi |
---|
8766 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8767 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8768 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8769 | else |
---|
8770 | # Is the header compilable? |
---|
8771 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
8773 | cat >conftest.$ac_ext <<_ACEOF |
---|
8774 | /* confdefs.h. */ |
---|
8775 | _ACEOF |
---|
8776 | cat confdefs.h >>conftest.$ac_ext |
---|
8777 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8778 | /* end confdefs.h. */ |
---|
8779 | $ac_includes_default |
---|
8780 | #include <$ac_header> |
---|
8781 | _ACEOF |
---|
8782 | rm -f conftest.$ac_objext |
---|
8783 | if { (ac_try="$ac_compile" |
---|
8784 | case "(($ac_try" in |
---|
8785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8786 | *) ac_try_echo=$ac_try;; |
---|
8787 | esac |
---|
8788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8789 | (eval "$ac_compile") 2>conftest.er1 |
---|
8790 | ac_status=$? |
---|
8791 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8792 | rm -f conftest.er1 |
---|
8793 | cat conftest.err >&5 |
---|
8794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8795 | (exit $ac_status); } && { |
---|
8796 | test -z "$ac_c_werror_flag" || |
---|
8797 | test ! -s conftest.err |
---|
8798 | } && test -s conftest.$ac_objext; then |
---|
8799 | ac_header_compiler=yes |
---|
8800 | else |
---|
8801 | echo "$as_me: failed program was:" >&5 |
---|
8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8803 | |
---|
8804 | ac_header_compiler=no |
---|
8805 | fi |
---|
8806 | |
---|
8807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8808 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8809 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
8810 | |
---|
8811 | # Is the header present? |
---|
8812 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8813 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
8814 | cat >conftest.$ac_ext <<_ACEOF |
---|
8815 | /* confdefs.h. */ |
---|
8816 | _ACEOF |
---|
8817 | cat confdefs.h >>conftest.$ac_ext |
---|
8818 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8819 | /* end confdefs.h. */ |
---|
8820 | #include <$ac_header> |
---|
8821 | _ACEOF |
---|
8822 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
8823 | case "(($ac_try" in |
---|
8824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8825 | *) ac_try_echo=$ac_try;; |
---|
8826 | esac |
---|
8827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8828 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
8829 | ac_status=$? |
---|
8830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8831 | rm -f conftest.er1 |
---|
8832 | cat conftest.err >&5 |
---|
8833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8834 | (exit $ac_status); } >/dev/null && { |
---|
8835 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
8836 | test ! -s conftest.err |
---|
8837 | }; then |
---|
8838 | ac_header_preproc=yes |
---|
8839 | else |
---|
8840 | echo "$as_me: failed program was:" >&5 |
---|
8841 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8842 | |
---|
8843 | ac_header_preproc=no |
---|
8844 | fi |
---|
8845 | |
---|
8846 | rm -f conftest.err conftest.$ac_ext |
---|
8847 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8848 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
8849 | |
---|
8850 | # So? What about this header? |
---|
8851 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8852 | yes:no: ) |
---|
8853 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8854 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8856 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8857 | ac_header_preproc=yes |
---|
8858 | ;; |
---|
8859 | no:yes:* ) |
---|
8860 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8861 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8862 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8863 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8864 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8865 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8866 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8867 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8868 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8869 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8870 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8871 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8872 | |
---|
8873 | ;; |
---|
8874 | esac |
---|
8875 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8877 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8879 | else |
---|
8880 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8881 | fi |
---|
8882 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8883 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8884 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8885 | |
---|
8886 | fi |
---|
8887 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8888 | cat >>confdefs.h <<_ACEOF |
---|
8889 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8890 | _ACEOF |
---|
8891 | |
---|
8892 | fi |
---|
8893 | |
---|
8894 | done |
---|
8895 | |
---|
8896 | if test $ac_enable_ucontexth = auto; then |
---|
8897 | |
---|
8898 | for ac_header in ucontext.h |
---|
8899 | do |
---|
8900 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8901 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
8904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
8905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8906 | fi |
---|
8907 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
8908 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
8909 | echo "${ECHO_T}$ac_res" >&6; } |
---|
8910 | else |
---|
8911 | # Is the header compilable? |
---|
8912 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
8914 | cat >conftest.$ac_ext <<_ACEOF |
---|
8915 | /* confdefs.h. */ |
---|
8916 | _ACEOF |
---|
8917 | cat confdefs.h >>conftest.$ac_ext |
---|
8918 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8919 | /* end confdefs.h. */ |
---|
8920 | $ac_includes_default |
---|
8921 | #include <$ac_header> |
---|
8922 | _ACEOF |
---|
8923 | rm -f conftest.$ac_objext |
---|
8924 | if { (ac_try="$ac_compile" |
---|
8925 | case "(($ac_try" in |
---|
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8927 | *) ac_try_echo=$ac_try;; |
---|
8928 | esac |
---|
8929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8930 | (eval "$ac_compile") 2>conftest.er1 |
---|
8931 | ac_status=$? |
---|
8932 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8933 | rm -f conftest.er1 |
---|
8934 | cat conftest.err >&5 |
---|
8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8936 | (exit $ac_status); } && { |
---|
8937 | test -z "$ac_c_werror_flag" || |
---|
8938 | test ! -s conftest.err |
---|
8939 | } && test -s conftest.$ac_objext; then |
---|
8940 | ac_header_compiler=yes |
---|
8941 | else |
---|
8942 | echo "$as_me: failed program was:" >&5 |
---|
8943 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8944 | |
---|
8945 | ac_header_compiler=no |
---|
8946 | fi |
---|
8947 | |
---|
8948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8949 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8950 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
8951 | |
---|
8952 | # Is the header present? |
---|
8953 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8954 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
8955 | cat >conftest.$ac_ext <<_ACEOF |
---|
8956 | /* confdefs.h. */ |
---|
8957 | _ACEOF |
---|
8958 | cat confdefs.h >>conftest.$ac_ext |
---|
8959 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8960 | /* end confdefs.h. */ |
---|
8961 | #include <$ac_header> |
---|
8962 | _ACEOF |
---|
8963 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
8964 | case "(($ac_try" in |
---|
8965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
8966 | *) ac_try_echo=$ac_try;; |
---|
8967 | esac |
---|
8968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
8969 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
8970 | ac_status=$? |
---|
8971 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8972 | rm -f conftest.er1 |
---|
8973 | cat conftest.err >&5 |
---|
8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8975 | (exit $ac_status); } >/dev/null && { |
---|
8976 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
8977 | test ! -s conftest.err |
---|
8978 | }; then |
---|
8979 | ac_header_preproc=yes |
---|
8980 | else |
---|
8981 | echo "$as_me: failed program was:" >&5 |
---|
8982 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8983 | |
---|
8984 | ac_header_preproc=no |
---|
8985 | fi |
---|
8986 | |
---|
8987 | rm -f conftest.err conftest.$ac_ext |
---|
8988 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8989 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
8990 | |
---|
8991 | # So? What about this header? |
---|
8992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8993 | yes:no: ) |
---|
8994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8998 | ac_header_preproc=yes |
---|
8999 | ;; |
---|
9000 | no:yes:* ) |
---|
9001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9013 | |
---|
9014 | ;; |
---|
9015 | esac |
---|
9016 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9017 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
9018 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
9019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9020 | else |
---|
9021 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9022 | fi |
---|
9023 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
9024 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
9025 | echo "${ECHO_T}$ac_res" >&6; } |
---|
9026 | |
---|
9027 | fi |
---|
9028 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9029 | cat >>confdefs.h <<_ACEOF |
---|
9030 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9031 | _ACEOF |
---|
9032 | |
---|
9033 | fi |
---|
9034 | |
---|
9035 | done |
---|
9036 | |
---|
9037 | fi |
---|
9038 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
9039 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
---|
9040 | if test "${ac_cv_c_const+set}" = set; then |
---|
9041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9042 | else |
---|
9043 | cat >conftest.$ac_ext <<_ACEOF |
---|
9044 | /* confdefs.h. */ |
---|
9045 | _ACEOF |
---|
9046 | cat confdefs.h >>conftest.$ac_ext |
---|
9047 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9048 | /* end confdefs.h. */ |
---|
9049 | |
---|
9050 | int |
---|
9051 | main () |
---|
9052 | { |
---|
9053 | /* FIXME: Include the comments suggested by Paul. */ |
---|
9054 | #ifndef __cplusplus |
---|
9055 | /* Ultrix mips cc rejects this. */ |
---|
9056 | typedef int charset[2]; |
---|
9057 | const charset cs; |
---|
9058 | /* SunOS 4.1.1 cc rejects this. */ |
---|
9059 | char const *const *pcpcc; |
---|
9060 | char **ppc; |
---|
9061 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
9062 | struct point {int x, y;}; |
---|
9063 | static struct point const zero = {0,0}; |
---|
9064 | /* AIX XL C 1.02.0.0 rejects this. |
---|
9065 | It does not let you subtract one const X* pointer from another in |
---|
9066 | an arm of an if-expression whose if-part is not a constant |
---|
9067 | expression */ |
---|
9068 | const char *g = "string"; |
---|
9069 | pcpcc = &g + (g ? g-g : 0); |
---|
9070 | /* HPUX 7.0 cc rejects these. */ |
---|
9071 | ++pcpcc; |
---|
9072 | ppc = (char**) pcpcc; |
---|
9073 | pcpcc = (char const *const *) ppc; |
---|
9074 | { /* SCO 3.2v4 cc rejects this. */ |
---|
9075 | char *t; |
---|
9076 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
9077 | |
---|
9078 | *t++ = 0; |
---|
9079 | if (s) return 0; |
---|
9080 | } |
---|
9081 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
9082 | int x[] = {25, 17}; |
---|
9083 | const int *foo = &x[0]; |
---|
9084 | ++foo; |
---|
9085 | } |
---|
9086 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
9087 | typedef const int *iptr; |
---|
9088 | iptr p = 0; |
---|
9089 | ++p; |
---|
9090 | } |
---|
9091 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
9092 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
9093 | struct s { int j; const int *ap[3]; }; |
---|
9094 | struct s *b; b->j = 5; |
---|
9095 | } |
---|
9096 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
9097 | const int foo = 10; |
---|
9098 | if (!foo) return 0; |
---|
9099 | } |
---|
9100 | return !cs[0] && !zero.x; |
---|
9101 | #endif |
---|
9102 | |
---|
9103 | ; |
---|
9104 | return 0; |
---|
9105 | } |
---|
9106 | _ACEOF |
---|
9107 | rm -f conftest.$ac_objext |
---|
9108 | if { (ac_try="$ac_compile" |
---|
9109 | case "(($ac_try" in |
---|
9110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9111 | *) ac_try_echo=$ac_try;; |
---|
9112 | esac |
---|
9113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9114 | (eval "$ac_compile") 2>conftest.er1 |
---|
9115 | ac_status=$? |
---|
9116 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9117 | rm -f conftest.er1 |
---|
9118 | cat conftest.err >&5 |
---|
9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9120 | (exit $ac_status); } && { |
---|
9121 | test -z "$ac_c_werror_flag" || |
---|
9122 | test ! -s conftest.err |
---|
9123 | } && test -s conftest.$ac_objext; then |
---|
9124 | ac_cv_c_const=yes |
---|
9125 | else |
---|
9126 | echo "$as_me: failed program was:" >&5 |
---|
9127 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9128 | |
---|
9129 | ac_cv_c_const=no |
---|
9130 | fi |
---|
9131 | |
---|
9132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9133 | fi |
---|
9134 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
9135 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
---|
9136 | if test $ac_cv_c_const = no; then |
---|
9137 | |
---|
9138 | cat >>confdefs.h <<\_ACEOF |
---|
9139 | #define const |
---|
9140 | _ACEOF |
---|
9141 | |
---|
9142 | fi |
---|
9143 | |
---|
9144 | { echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5 |
---|
9145 | echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; } |
---|
9146 | if test "${ac_cv_c_restrict+set}" = set; then |
---|
9147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9148 | else |
---|
9149 | ac_cv_c_restrict=no |
---|
9150 | # Try the official restrict keyword, then gcc's __restrict, and |
---|
9151 | # the less common variants. |
---|
9152 | for ac_kw in restrict __restrict __restrict__ _Restrict; do |
---|
9153 | cat >conftest.$ac_ext <<_ACEOF |
---|
9154 | /* confdefs.h. */ |
---|
9155 | _ACEOF |
---|
9156 | cat confdefs.h >>conftest.$ac_ext |
---|
9157 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9158 | /* end confdefs.h. */ |
---|
9159 | typedef int * int_ptr; |
---|
9160 | int foo (int_ptr $ac_kw ip) { |
---|
9161 | return ip[0]; |
---|
9162 | } |
---|
9163 | int |
---|
9164 | main () |
---|
9165 | { |
---|
9166 | int s[1]; |
---|
9167 | int * $ac_kw t = s; |
---|
9168 | t[0] = 0; |
---|
9169 | return foo(t) |
---|
9170 | ; |
---|
9171 | return 0; |
---|
9172 | } |
---|
9173 | _ACEOF |
---|
9174 | rm -f conftest.$ac_objext |
---|
9175 | if { (ac_try="$ac_compile" |
---|
9176 | case "(($ac_try" in |
---|
9177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9178 | *) ac_try_echo=$ac_try;; |
---|
9179 | esac |
---|
9180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9181 | (eval "$ac_compile") 2>conftest.er1 |
---|
9182 | ac_status=$? |
---|
9183 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9184 | rm -f conftest.er1 |
---|
9185 | cat conftest.err >&5 |
---|
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9187 | (exit $ac_status); } && { |
---|
9188 | test -z "$ac_c_werror_flag" || |
---|
9189 | test ! -s conftest.err |
---|
9190 | } && test -s conftest.$ac_objext; then |
---|
9191 | ac_cv_c_restrict=$ac_kw |
---|
9192 | else |
---|
9193 | echo "$as_me: failed program was:" >&5 |
---|
9194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9195 | |
---|
9196 | |
---|
9197 | fi |
---|
9198 | |
---|
9199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9200 | test "$ac_cv_c_restrict" != no && break |
---|
9201 | done |
---|
9202 | |
---|
9203 | fi |
---|
9204 | { echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 |
---|
9205 | echo "${ECHO_T}$ac_cv_c_restrict" >&6; } |
---|
9206 | case $ac_cv_c_restrict in |
---|
9207 | restrict) ;; |
---|
9208 | no) |
---|
9209 | cat >>confdefs.h <<\_ACEOF |
---|
9210 | #define restrict |
---|
9211 | _ACEOF |
---|
9212 | ;; |
---|
9213 | *) cat >>confdefs.h <<_ACEOF |
---|
9214 | #define restrict $ac_cv_c_restrict |
---|
9215 | _ACEOF |
---|
9216 | ;; |
---|
9217 | esac |
---|
9218 | |
---|
9219 | { echo "$as_me:$LINENO: checking for inline" >&5 |
---|
9220 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
---|
9221 | if test "${ac_cv_c_inline+set}" = set; then |
---|
9222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9223 | else |
---|
9224 | ac_cv_c_inline=no |
---|
9225 | for ac_kw in inline __inline__ __inline; do |
---|
9226 | cat >conftest.$ac_ext <<_ACEOF |
---|
9227 | /* confdefs.h. */ |
---|
9228 | _ACEOF |
---|
9229 | cat confdefs.h >>conftest.$ac_ext |
---|
9230 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9231 | /* end confdefs.h. */ |
---|
9232 | #ifndef __cplusplus |
---|
9233 | typedef int foo_t; |
---|
9234 | static $ac_kw foo_t static_foo () {return 0; } |
---|
9235 | $ac_kw foo_t foo () {return 0; } |
---|
9236 | #endif |
---|
9237 | |
---|
9238 | _ACEOF |
---|
9239 | rm -f conftest.$ac_objext |
---|
9240 | if { (ac_try="$ac_compile" |
---|
9241 | case "(($ac_try" in |
---|
9242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9243 | *) ac_try_echo=$ac_try;; |
---|
9244 | esac |
---|
9245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9246 | (eval "$ac_compile") 2>conftest.er1 |
---|
9247 | ac_status=$? |
---|
9248 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9249 | rm -f conftest.er1 |
---|
9250 | cat conftest.err >&5 |
---|
9251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9252 | (exit $ac_status); } && { |
---|
9253 | test -z "$ac_c_werror_flag" || |
---|
9254 | test ! -s conftest.err |
---|
9255 | } && test -s conftest.$ac_objext; then |
---|
9256 | ac_cv_c_inline=$ac_kw |
---|
9257 | else |
---|
9258 | echo "$as_me: failed program was:" >&5 |
---|
9259 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9260 | |
---|
9261 | |
---|
9262 | fi |
---|
9263 | |
---|
9264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9265 | test "$ac_cv_c_inline" != no && break |
---|
9266 | done |
---|
9267 | |
---|
9268 | fi |
---|
9269 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
9270 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
---|
9271 | |
---|
9272 | |
---|
9273 | case $ac_cv_c_inline in |
---|
9274 | inline | yes) ;; |
---|
9275 | *) |
---|
9276 | case $ac_cv_c_inline in |
---|
9277 | no) ac_val=;; |
---|
9278 | *) ac_val=$ac_cv_c_inline;; |
---|
9279 | esac |
---|
9280 | cat >>confdefs.h <<_ACEOF |
---|
9281 | #ifndef __cplusplus |
---|
9282 | #define inline $ac_val |
---|
9283 | #endif |
---|
9284 | _ACEOF |
---|
9285 | ;; |
---|
9286 | esac |
---|
9287 | |
---|
9288 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
9289 | # for constant arguments. Useless! |
---|
9290 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
---|
9291 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
---|
9292 | if test "${ac_cv_working_alloca_h+set}" = set; then |
---|
9293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9294 | else |
---|
9295 | cat >conftest.$ac_ext <<_ACEOF |
---|
9296 | /* confdefs.h. */ |
---|
9297 | _ACEOF |
---|
9298 | cat confdefs.h >>conftest.$ac_ext |
---|
9299 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9300 | /* end confdefs.h. */ |
---|
9301 | #include <alloca.h> |
---|
9302 | int |
---|
9303 | main () |
---|
9304 | { |
---|
9305 | char *p = (char *) alloca (2 * sizeof (int)); |
---|
9306 | if (p) return 0; |
---|
9307 | ; |
---|
9308 | return 0; |
---|
9309 | } |
---|
9310 | _ACEOF |
---|
9311 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9312 | if { (ac_try="$ac_link" |
---|
9313 | case "(($ac_try" in |
---|
9314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9315 | *) ac_try_echo=$ac_try;; |
---|
9316 | esac |
---|
9317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9318 | (eval "$ac_link") 2>conftest.er1 |
---|
9319 | ac_status=$? |
---|
9320 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9321 | rm -f conftest.er1 |
---|
9322 | cat conftest.err >&5 |
---|
9323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9324 | (exit $ac_status); } && { |
---|
9325 | test -z "$ac_c_werror_flag" || |
---|
9326 | test ! -s conftest.err |
---|
9327 | } && test -s conftest$ac_exeext && |
---|
9328 | $as_test_x conftest$ac_exeext; then |
---|
9329 | ac_cv_working_alloca_h=yes |
---|
9330 | else |
---|
9331 | echo "$as_me: failed program was:" >&5 |
---|
9332 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9333 | |
---|
9334 | ac_cv_working_alloca_h=no |
---|
9335 | fi |
---|
9336 | |
---|
9337 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
9338 | conftest$ac_exeext conftest.$ac_ext |
---|
9339 | fi |
---|
9340 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
---|
9341 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
---|
9342 | if test $ac_cv_working_alloca_h = yes; then |
---|
9343 | |
---|
9344 | cat >>confdefs.h <<\_ACEOF |
---|
9345 | #define HAVE_ALLOCA_H 1 |
---|
9346 | _ACEOF |
---|
9347 | |
---|
9348 | fi |
---|
9349 | |
---|
9350 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
---|
9351 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
---|
9352 | if test "${ac_cv_func_alloca_works+set}" = set; then |
---|
9353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9354 | else |
---|
9355 | cat >conftest.$ac_ext <<_ACEOF |
---|
9356 | /* confdefs.h. */ |
---|
9357 | _ACEOF |
---|
9358 | cat confdefs.h >>conftest.$ac_ext |
---|
9359 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9360 | /* end confdefs.h. */ |
---|
9361 | #ifdef __GNUC__ |
---|
9362 | # define alloca __builtin_alloca |
---|
9363 | #else |
---|
9364 | # ifdef _MSC_VER |
---|
9365 | # include <malloc.h> |
---|
9366 | # define alloca _alloca |
---|
9367 | # else |
---|
9368 | # ifdef HAVE_ALLOCA_H |
---|
9369 | # include <alloca.h> |
---|
9370 | # else |
---|
9371 | # ifdef _AIX |
---|
9372 | #pragma alloca |
---|
9373 | # else |
---|
9374 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
9375 | char *alloca (); |
---|
9376 | # endif |
---|
9377 | # endif |
---|
9378 | # endif |
---|
9379 | # endif |
---|
9380 | #endif |
---|
9381 | |
---|
9382 | int |
---|
9383 | main () |
---|
9384 | { |
---|
9385 | char *p = (char *) alloca (1); |
---|
9386 | if (p) return 0; |
---|
9387 | ; |
---|
9388 | return 0; |
---|
9389 | } |
---|
9390 | _ACEOF |
---|
9391 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9392 | if { (ac_try="$ac_link" |
---|
9393 | case "(($ac_try" in |
---|
9394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9395 | *) ac_try_echo=$ac_try;; |
---|
9396 | esac |
---|
9397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9398 | (eval "$ac_link") 2>conftest.er1 |
---|
9399 | ac_status=$? |
---|
9400 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9401 | rm -f conftest.er1 |
---|
9402 | cat conftest.err >&5 |
---|
9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9404 | (exit $ac_status); } && { |
---|
9405 | test -z "$ac_c_werror_flag" || |
---|
9406 | test ! -s conftest.err |
---|
9407 | } && test -s conftest$ac_exeext && |
---|
9408 | $as_test_x conftest$ac_exeext; then |
---|
9409 | ac_cv_func_alloca_works=yes |
---|
9410 | else |
---|
9411 | echo "$as_me: failed program was:" >&5 |
---|
9412 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9413 | |
---|
9414 | ac_cv_func_alloca_works=no |
---|
9415 | fi |
---|
9416 | |
---|
9417 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
9418 | conftest$ac_exeext conftest.$ac_ext |
---|
9419 | fi |
---|
9420 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
---|
9421 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
---|
9422 | |
---|
9423 | if test $ac_cv_func_alloca_works = yes; then |
---|
9424 | |
---|
9425 | cat >>confdefs.h <<\_ACEOF |
---|
9426 | #define HAVE_ALLOCA 1 |
---|
9427 | _ACEOF |
---|
9428 | |
---|
9429 | else |
---|
9430 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
9431 | # that cause trouble. Some versions do not even contain alloca or |
---|
9432 | # contain a buggy version. If you still want to use their alloca, |
---|
9433 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
9434 | |
---|
9435 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
---|
9436 | |
---|
9437 | cat >>confdefs.h <<\_ACEOF |
---|
9438 | #define C_ALLOCA 1 |
---|
9439 | _ACEOF |
---|
9440 | |
---|
9441 | |
---|
9442 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
---|
9443 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
---|
9444 | if test "${ac_cv_os_cray+set}" = set; then |
---|
9445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9446 | else |
---|
9447 | cat >conftest.$ac_ext <<_ACEOF |
---|
9448 | /* confdefs.h. */ |
---|
9449 | _ACEOF |
---|
9450 | cat confdefs.h >>conftest.$ac_ext |
---|
9451 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9452 | /* end confdefs.h. */ |
---|
9453 | #if defined CRAY && ! defined CRAY2 |
---|
9454 | webecray |
---|
9455 | #else |
---|
9456 | wenotbecray |
---|
9457 | #endif |
---|
9458 | |
---|
9459 | _ACEOF |
---|
9460 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
9461 | $EGREP "webecray" >/dev/null 2>&1; then |
---|
9462 | ac_cv_os_cray=yes |
---|
9463 | else |
---|
9464 | ac_cv_os_cray=no |
---|
9465 | fi |
---|
9466 | rm -f conftest* |
---|
9467 | |
---|
9468 | fi |
---|
9469 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
---|
9470 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
---|
9471 | if test $ac_cv_os_cray = yes; then |
---|
9472 | for ac_func in _getb67 GETB67 getb67; do |
---|
9473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
9474 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
9475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
9476 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
9477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9478 | else |
---|
9479 | cat >conftest.$ac_ext <<_ACEOF |
---|
9480 | /* confdefs.h. */ |
---|
9481 | _ACEOF |
---|
9482 | cat confdefs.h >>conftest.$ac_ext |
---|
9483 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9484 | /* end confdefs.h. */ |
---|
9485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
9486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9487 | #define $ac_func innocuous_$ac_func |
---|
9488 | |
---|
9489 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9490 | which can conflict with char $ac_func (); below. |
---|
9491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9492 | <limits.h> exists even on freestanding compilers. */ |
---|
9493 | |
---|
9494 | #ifdef __STDC__ |
---|
9495 | # include <limits.h> |
---|
9496 | #else |
---|
9497 | # include <assert.h> |
---|
9498 | #endif |
---|
9499 | |
---|
9500 | #undef $ac_func |
---|
9501 | |
---|
9502 | /* Override any GCC internal prototype to avoid an error. |
---|
9503 | Use char because int might match the return type of a GCC |
---|
9504 | builtin and then its argument prototype would still apply. */ |
---|
9505 | #ifdef __cplusplus |
---|
9506 | extern "C" |
---|
9507 | #endif |
---|
9508 | char $ac_func (); |
---|
9509 | /* The GNU C library defines this for functions which it implements |
---|
9510 | to always fail with ENOSYS. Some functions are actually named |
---|
9511 | something starting with __ and the normal name is an alias. */ |
---|
9512 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
9513 | choke me |
---|
9514 | #endif |
---|
9515 | |
---|
9516 | int |
---|
9517 | main () |
---|
9518 | { |
---|
9519 | return $ac_func (); |
---|
9520 | ; |
---|
9521 | return 0; |
---|
9522 | } |
---|
9523 | _ACEOF |
---|
9524 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9525 | if { (ac_try="$ac_link" |
---|
9526 | case "(($ac_try" in |
---|
9527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9528 | *) ac_try_echo=$ac_try;; |
---|
9529 | esac |
---|
9530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9531 | (eval "$ac_link") 2>conftest.er1 |
---|
9532 | ac_status=$? |
---|
9533 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9534 | rm -f conftest.er1 |
---|
9535 | cat conftest.err >&5 |
---|
9536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9537 | (exit $ac_status); } && { |
---|
9538 | test -z "$ac_c_werror_flag" || |
---|
9539 | test ! -s conftest.err |
---|
9540 | } && test -s conftest$ac_exeext && |
---|
9541 | $as_test_x conftest$ac_exeext; then |
---|
9542 | eval "$as_ac_var=yes" |
---|
9543 | else |
---|
9544 | echo "$as_me: failed program was:" >&5 |
---|
9545 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9546 | |
---|
9547 | eval "$as_ac_var=no" |
---|
9548 | fi |
---|
9549 | |
---|
9550 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
9551 | conftest$ac_exeext conftest.$ac_ext |
---|
9552 | fi |
---|
9553 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
9554 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
9555 | echo "${ECHO_T}$ac_res" >&6; } |
---|
9556 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
9557 | |
---|
9558 | cat >>confdefs.h <<_ACEOF |
---|
9559 | #define CRAY_STACKSEG_END $ac_func |
---|
9560 | _ACEOF |
---|
9561 | |
---|
9562 | break |
---|
9563 | fi |
---|
9564 | |
---|
9565 | done |
---|
9566 | fi |
---|
9567 | |
---|
9568 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
---|
9569 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
---|
9570 | if test "${ac_cv_c_stack_direction+set}" = set; then |
---|
9571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9572 | else |
---|
9573 | if test "$cross_compiling" = yes; then |
---|
9574 | ac_cv_c_stack_direction=0 |
---|
9575 | else |
---|
9576 | cat >conftest.$ac_ext <<_ACEOF |
---|
9577 | /* confdefs.h. */ |
---|
9578 | _ACEOF |
---|
9579 | cat confdefs.h >>conftest.$ac_ext |
---|
9580 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9581 | /* end confdefs.h. */ |
---|
9582 | $ac_includes_default |
---|
9583 | int |
---|
9584 | find_stack_direction () |
---|
9585 | { |
---|
9586 | static char *addr = 0; |
---|
9587 | auto char dummy; |
---|
9588 | if (addr == 0) |
---|
9589 | { |
---|
9590 | addr = &dummy; |
---|
9591 | return find_stack_direction (); |
---|
9592 | } |
---|
9593 | else |
---|
9594 | return (&dummy > addr) ? 1 : -1; |
---|
9595 | } |
---|
9596 | |
---|
9597 | int |
---|
9598 | main () |
---|
9599 | { |
---|
9600 | return find_stack_direction () < 0; |
---|
9601 | } |
---|
9602 | _ACEOF |
---|
9603 | rm -f conftest$ac_exeext |
---|
9604 | if { (ac_try="$ac_link" |
---|
9605 | case "(($ac_try" in |
---|
9606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9607 | *) ac_try_echo=$ac_try;; |
---|
9608 | esac |
---|
9609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9610 | (eval "$ac_link") 2>&5 |
---|
9611 | ac_status=$? |
---|
9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
9614 | { (case "(($ac_try" in |
---|
9615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9616 | *) ac_try_echo=$ac_try;; |
---|
9617 | esac |
---|
9618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9619 | (eval "$ac_try") 2>&5 |
---|
9620 | ac_status=$? |
---|
9621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9622 | (exit $ac_status); }; }; then |
---|
9623 | ac_cv_c_stack_direction=1 |
---|
9624 | else |
---|
9625 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
9626 | echo "$as_me: failed program was:" >&5 |
---|
9627 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9628 | |
---|
9629 | ( exit $ac_status ) |
---|
9630 | ac_cv_c_stack_direction=-1 |
---|
9631 | fi |
---|
9632 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
9633 | fi |
---|
9634 | |
---|
9635 | |
---|
9636 | fi |
---|
9637 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
---|
9638 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
---|
9639 | |
---|
9640 | cat >>confdefs.h <<_ACEOF |
---|
9641 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
9642 | _ACEOF |
---|
9643 | |
---|
9644 | |
---|
9645 | fi |
---|
9646 | |
---|
9647 | |
---|
9648 | |
---|
9649 | for ac_header in stdlib.h unistd.h |
---|
9650 | do |
---|
9651 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9652 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
9653 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
9655 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
9656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9657 | fi |
---|
9658 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
9659 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
9660 | echo "${ECHO_T}$ac_res" >&6; } |
---|
9661 | else |
---|
9662 | # Is the header compilable? |
---|
9663 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9664 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
9665 | cat >conftest.$ac_ext <<_ACEOF |
---|
9666 | /* confdefs.h. */ |
---|
9667 | _ACEOF |
---|
9668 | cat confdefs.h >>conftest.$ac_ext |
---|
9669 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9670 | /* end confdefs.h. */ |
---|
9671 | $ac_includes_default |
---|
9672 | #include <$ac_header> |
---|
9673 | _ACEOF |
---|
9674 | rm -f conftest.$ac_objext |
---|
9675 | if { (ac_try="$ac_compile" |
---|
9676 | case "(($ac_try" in |
---|
9677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9678 | *) ac_try_echo=$ac_try;; |
---|
9679 | esac |
---|
9680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9681 | (eval "$ac_compile") 2>conftest.er1 |
---|
9682 | ac_status=$? |
---|
9683 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9684 | rm -f conftest.er1 |
---|
9685 | cat conftest.err >&5 |
---|
9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9687 | (exit $ac_status); } && { |
---|
9688 | test -z "$ac_c_werror_flag" || |
---|
9689 | test ! -s conftest.err |
---|
9690 | } && test -s conftest.$ac_objext; then |
---|
9691 | ac_header_compiler=yes |
---|
9692 | else |
---|
9693 | echo "$as_me: failed program was:" >&5 |
---|
9694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9695 | |
---|
9696 | ac_header_compiler=no |
---|
9697 | fi |
---|
9698 | |
---|
9699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9700 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9701 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
9702 | |
---|
9703 | # Is the header present? |
---|
9704 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9705 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
9706 | cat >conftest.$ac_ext <<_ACEOF |
---|
9707 | /* confdefs.h. */ |
---|
9708 | _ACEOF |
---|
9709 | cat confdefs.h >>conftest.$ac_ext |
---|
9710 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9711 | /* end confdefs.h. */ |
---|
9712 | #include <$ac_header> |
---|
9713 | _ACEOF |
---|
9714 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
9715 | case "(($ac_try" in |
---|
9716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9717 | *) ac_try_echo=$ac_try;; |
---|
9718 | esac |
---|
9719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9720 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
9721 | ac_status=$? |
---|
9722 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9723 | rm -f conftest.er1 |
---|
9724 | cat conftest.err >&5 |
---|
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9726 | (exit $ac_status); } >/dev/null && { |
---|
9727 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
9728 | test ! -s conftest.err |
---|
9729 | }; then |
---|
9730 | ac_header_preproc=yes |
---|
9731 | else |
---|
9732 | echo "$as_me: failed program was:" >&5 |
---|
9733 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9734 | |
---|
9735 | ac_header_preproc=no |
---|
9736 | fi |
---|
9737 | |
---|
9738 | rm -f conftest.err conftest.$ac_ext |
---|
9739 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9740 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
9741 | |
---|
9742 | # So? What about this header? |
---|
9743 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9744 | yes:no: ) |
---|
9745 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9746 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9748 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9749 | ac_header_preproc=yes |
---|
9750 | ;; |
---|
9751 | no:yes:* ) |
---|
9752 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9753 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9754 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9755 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9756 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9757 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9758 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9759 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9761 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9762 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9763 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9764 | |
---|
9765 | ;; |
---|
9766 | esac |
---|
9767 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
9769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
9770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9771 | else |
---|
9772 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9773 | fi |
---|
9774 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
9775 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
9776 | echo "${ECHO_T}$ac_res" >&6; } |
---|
9777 | |
---|
9778 | fi |
---|
9779 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9780 | cat >>confdefs.h <<_ACEOF |
---|
9781 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9782 | _ACEOF |
---|
9783 | |
---|
9784 | fi |
---|
9785 | |
---|
9786 | done |
---|
9787 | |
---|
9788 | |
---|
9789 | for ac_func in getpagesize |
---|
9790 | do |
---|
9791 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
9792 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
9793 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
9794 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
9795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9796 | else |
---|
9797 | cat >conftest.$ac_ext <<_ACEOF |
---|
9798 | /* confdefs.h. */ |
---|
9799 | _ACEOF |
---|
9800 | cat confdefs.h >>conftest.$ac_ext |
---|
9801 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9802 | /* end confdefs.h. */ |
---|
9803 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
9804 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9805 | #define $ac_func innocuous_$ac_func |
---|
9806 | |
---|
9807 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9808 | which can conflict with char $ac_func (); below. |
---|
9809 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9810 | <limits.h> exists even on freestanding compilers. */ |
---|
9811 | |
---|
9812 | #ifdef __STDC__ |
---|
9813 | # include <limits.h> |
---|
9814 | #else |
---|
9815 | # include <assert.h> |
---|
9816 | #endif |
---|
9817 | |
---|
9818 | #undef $ac_func |
---|
9819 | |
---|
9820 | /* Override any GCC internal prototype to avoid an error. |
---|
9821 | Use char because int might match the return type of a GCC |
---|
9822 | builtin and then its argument prototype would still apply. */ |
---|
9823 | #ifdef __cplusplus |
---|
9824 | extern "C" |
---|
9825 | #endif |
---|
9826 | char $ac_func (); |
---|
9827 | /* The GNU C library defines this for functions which it implements |
---|
9828 | to always fail with ENOSYS. Some functions are actually named |
---|
9829 | something starting with __ and the normal name is an alias. */ |
---|
9830 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
9831 | choke me |
---|
9832 | #endif |
---|
9833 | |
---|
9834 | int |
---|
9835 | main () |
---|
9836 | { |
---|
9837 | return $ac_func (); |
---|
9838 | ; |
---|
9839 | return 0; |
---|
9840 | } |
---|
9841 | _ACEOF |
---|
9842 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9843 | if { (ac_try="$ac_link" |
---|
9844 | case "(($ac_try" in |
---|
9845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
9846 | *) ac_try_echo=$ac_try;; |
---|
9847 | esac |
---|
9848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
9849 | (eval "$ac_link") 2>conftest.er1 |
---|
9850 | ac_status=$? |
---|
9851 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9852 | rm -f conftest.er1 |
---|
9853 | cat conftest.err >&5 |
---|
9854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9855 | (exit $ac_status); } && { |
---|
9856 | test -z "$ac_c_werror_flag" || |
---|
9857 | test ! -s conftest.err |
---|
9858 | } && test -s conftest$ac_exeext && |
---|
9859 | $as_test_x conftest$ac_exeext; then |
---|
9860 | eval "$as_ac_var=yes" |
---|
9861 | else |
---|
9862 | echo "$as_me: failed program was:" >&5 |
---|
9863 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9864 | |
---|
9865 | eval "$as_ac_var=no" |
---|
9866 | fi |
---|
9867 | |
---|
9868 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
9869 | conftest$ac_exeext conftest.$ac_ext |
---|
9870 | fi |
---|
9871 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
9872 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
9873 | echo "${ECHO_T}$ac_res" >&6; } |
---|
9874 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
9875 | cat >>confdefs.h <<_ACEOF |
---|
9876 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
9877 | _ACEOF |
---|
9878 | |
---|
9879 | fi |
---|
9880 | done |
---|
9881 | |
---|
9882 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
---|
9883 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
---|
9884 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
---|
9885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9886 | else |
---|
9887 | if test "$cross_compiling" = yes; then |
---|
9888 | ac_cv_func_mmap_fixed_mapped=no |
---|
9889 | else |
---|
9890 | cat >conftest.$ac_ext <<_ACEOF |
---|
9891 | /* confdefs.h. */ |
---|
9892 | _ACEOF |
---|
9893 | cat confdefs.h >>conftest.$ac_ext |
---|
9894 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9895 | /* end confdefs.h. */ |
---|
9896 | $ac_includes_default |
---|
9897 | /* malloc might have been renamed as rpl_malloc. */ |
---|
9898 | #undef malloc |
---|
9899 | |
---|
9900 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
9901 | Here is a matrix of mmap possibilities: |
---|
9902 | mmap private not fixed |
---|
9903 | mmap private fixed at somewhere currently unmapped |
---|
9904 | mmap private fixed at somewhere already mapped |
---|
9905 | mmap shared not fixed |
---|
9906 | mmap shared fixed at somewhere currently unmapped |
---|
9907 | mmap shared fixed at somewhere already mapped |
---|
9908 | For private mappings, we should verify that changes cannot be read() |
---|
9909 | back from the file, nor mmap's back from the file at a different |
---|
9910 | address. (There have been systems where private was not correctly |
---|
9911 | implemented like the infamous i386 svr4.0, and systems where the |
---|
9912 | VM page cache was not coherent with the file system buffer cache |
---|
9913 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
9914 | For shared mappings, we should conversely verify that changes get |
---|
9915 | propagated back to all the places they're supposed to be. |
---|
9916 | |
---|
9917 | Grep wants private fixed already mapped. |
---|
9918 | The main things grep needs to know about mmap are: |
---|
9919 | * does it exist and is it safe to write into the mmap'd area |
---|
9920 | * how to use it (BSD variants) */ |
---|
9921 | |
---|
9922 | #include <fcntl.h> |
---|
9923 | #include <sys/mman.h> |
---|
9924 | |
---|
9925 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
---|
9926 | char *malloc (); |
---|
9927 | #endif |
---|
9928 | |
---|
9929 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
9930 | #ifndef HAVE_GETPAGESIZE |
---|
9931 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
9932 | # ifndef HAVE_SYS_PARAM_H |
---|
9933 | # define HAVE_SYS_PARAM_H 1 |
---|
9934 | # endif |
---|
9935 | |
---|
9936 | # ifdef _SC_PAGESIZE |
---|
9937 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
9938 | # else /* no _SC_PAGESIZE */ |
---|
9939 | # ifdef HAVE_SYS_PARAM_H |
---|
9940 | # include <sys/param.h> |
---|
9941 | # ifdef EXEC_PAGESIZE |
---|
9942 | # define getpagesize() EXEC_PAGESIZE |
---|
9943 | # else /* no EXEC_PAGESIZE */ |
---|
9944 | # ifdef NBPG |
---|
9945 | # define getpagesize() NBPG * CLSIZE |
---|
9946 | # ifndef CLSIZE |
---|
9947 | # define CLSIZE 1 |
---|
9948 | # endif /* no CLSIZE */ |
---|
9949 | # else /* no NBPG */ |
---|
9950 | # ifdef NBPC |
---|
9951 | # define getpagesize() NBPC |
---|
9952 | # else /* no NBPC */ |
---|
9953 | # ifdef PAGESIZE |
---|
9954 | # define getpagesize() PAGESIZE |
---|
9955 | # endif /* PAGESIZE */ |
---|
9956 | # endif /* no NBPC */ |
---|
9957 | # endif /* no NBPG */ |
---|
9958 | # endif /* no EXEC_PAGESIZE */ |
---|
9959 | # else /* no HAVE_SYS_PARAM_H */ |
---|
9960 | # define getpagesize() 8192 /* punt totally */ |
---|
9961 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
9962 | # endif /* no _SC_PAGESIZE */ |
---|
9963 | |
---|
9964 | #endif /* no HAVE_GETPAGESIZE */ |
---|
9965 | |
---|
9966 | int |
---|
9967 | main () |
---|
9968 | { |
---|
9969 | char *data, *data2, *data3; |
---|
9970 | int i, pagesize; |
---|
9971 | int fd; |
---|
9972 | |
---|
9973 | pagesize = getpagesize (); |
---|
9974 | |
---|
9975 | /* First, make a file with some known garbage in it. */ |
---|
9976 | data = (char *) malloc (pagesize); |
---|
9977 | if (!data) |
---|
9978 | return 1; |
---|
9979 | for (i = 0; i < pagesize; ++i) |
---|
9980 | *(data + i) = rand (); |
---|
9981 | umask (0); |
---|
9982 | fd = creat ("conftest.mmap", 0600); |
---|
9983 | if (fd < 0) |
---|
9984 | return 1; |
---|
9985 | if (write (fd, data, pagesize) != pagesize) |
---|
9986 | return 1; |
---|
9987 | close (fd); |
---|
9988 | |
---|
9989 | /* Next, try to mmap the file at a fixed address which already has |
---|
9990 | something else allocated at it. If we can, also make sure that |
---|
9991 | we see the same garbage. */ |
---|
9992 | fd = open ("conftest.mmap", O_RDWR); |
---|
9993 | if (fd < 0) |
---|
9994 | return 1; |
---|
9995 | data2 = (char *) malloc (2 * pagesize); |
---|
9996 | if (!data2) |
---|
9997 | return 1; |
---|
9998 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
9999 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
---|
10000 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
10001 | return 1; |
---|
10002 | for (i = 0; i < pagesize; ++i) |
---|
10003 | if (*(data + i) != *(data2 + i)) |
---|
10004 | return 1; |
---|
10005 | |
---|
10006 | /* Finally, make sure that changes to the mapped area do not |
---|
10007 | percolate back to the file as seen by read(). (This is a bug on |
---|
10008 | some variants of i386 svr4.0.) */ |
---|
10009 | for (i = 0; i < pagesize; ++i) |
---|
10010 | *(data2 + i) = *(data2 + i) + 1; |
---|
10011 | data3 = (char *) malloc (pagesize); |
---|
10012 | if (!data3) |
---|
10013 | return 1; |
---|
10014 | if (read (fd, data3, pagesize) != pagesize) |
---|
10015 | return 1; |
---|
10016 | for (i = 0; i < pagesize; ++i) |
---|
10017 | if (*(data + i) != *(data3 + i)) |
---|
10018 | return 1; |
---|
10019 | close (fd); |
---|
10020 | return 0; |
---|
10021 | } |
---|
10022 | _ACEOF |
---|
10023 | rm -f conftest$ac_exeext |
---|
10024 | if { (ac_try="$ac_link" |
---|
10025 | case "(($ac_try" in |
---|
10026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10027 | *) ac_try_echo=$ac_try;; |
---|
10028 | esac |
---|
10029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10030 | (eval "$ac_link") 2>&5 |
---|
10031 | ac_status=$? |
---|
10032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
10034 | { (case "(($ac_try" in |
---|
10035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10036 | *) ac_try_echo=$ac_try;; |
---|
10037 | esac |
---|
10038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10039 | (eval "$ac_try") 2>&5 |
---|
10040 | ac_status=$? |
---|
10041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10042 | (exit $ac_status); }; }; then |
---|
10043 | ac_cv_func_mmap_fixed_mapped=yes |
---|
10044 | else |
---|
10045 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
10046 | echo "$as_me: failed program was:" >&5 |
---|
10047 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10048 | |
---|
10049 | ( exit $ac_status ) |
---|
10050 | ac_cv_func_mmap_fixed_mapped=no |
---|
10051 | fi |
---|
10052 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
10053 | fi |
---|
10054 | |
---|
10055 | |
---|
10056 | fi |
---|
10057 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
---|
10058 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
---|
10059 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
10060 | |
---|
10061 | cat >>confdefs.h <<\_ACEOF |
---|
10062 | #define HAVE_MMAP 1 |
---|
10063 | _ACEOF |
---|
10064 | |
---|
10065 | fi |
---|
10066 | rm -f conftest.mmap |
---|
10067 | |
---|
10068 | |
---|
10069 | |
---|
10070 | for ac_header in sys/select.h sys/socket.h |
---|
10071 | do |
---|
10072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
10073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10074 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
10076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10078 | fi |
---|
10079 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
10080 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10081 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10082 | else |
---|
10083 | # Is the header compilable? |
---|
10084 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
10085 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
10086 | cat >conftest.$ac_ext <<_ACEOF |
---|
10087 | /* confdefs.h. */ |
---|
10088 | _ACEOF |
---|
10089 | cat confdefs.h >>conftest.$ac_ext |
---|
10090 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10091 | /* end confdefs.h. */ |
---|
10092 | $ac_includes_default |
---|
10093 | #include <$ac_header> |
---|
10094 | _ACEOF |
---|
10095 | rm -f conftest.$ac_objext |
---|
10096 | if { (ac_try="$ac_compile" |
---|
10097 | case "(($ac_try" in |
---|
10098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10099 | *) ac_try_echo=$ac_try;; |
---|
10100 | esac |
---|
10101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10102 | (eval "$ac_compile") 2>conftest.er1 |
---|
10103 | ac_status=$? |
---|
10104 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10105 | rm -f conftest.er1 |
---|
10106 | cat conftest.err >&5 |
---|
10107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10108 | (exit $ac_status); } && { |
---|
10109 | test -z "$ac_c_werror_flag" || |
---|
10110 | test ! -s conftest.err |
---|
10111 | } && test -s conftest.$ac_objext; then |
---|
10112 | ac_header_compiler=yes |
---|
10113 | else |
---|
10114 | echo "$as_me: failed program was:" >&5 |
---|
10115 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10116 | |
---|
10117 | ac_header_compiler=no |
---|
10118 | fi |
---|
10119 | |
---|
10120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10121 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
10122 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
10123 | |
---|
10124 | # Is the header present? |
---|
10125 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
10126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
10127 | cat >conftest.$ac_ext <<_ACEOF |
---|
10128 | /* confdefs.h. */ |
---|
10129 | _ACEOF |
---|
10130 | cat confdefs.h >>conftest.$ac_ext |
---|
10131 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10132 | /* end confdefs.h. */ |
---|
10133 | #include <$ac_header> |
---|
10134 | _ACEOF |
---|
10135 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
10136 | case "(($ac_try" in |
---|
10137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10138 | *) ac_try_echo=$ac_try;; |
---|
10139 | esac |
---|
10140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
10142 | ac_status=$? |
---|
10143 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10144 | rm -f conftest.er1 |
---|
10145 | cat conftest.err >&5 |
---|
10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10147 | (exit $ac_status); } >/dev/null && { |
---|
10148 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
10149 | test ! -s conftest.err |
---|
10150 | }; then |
---|
10151 | ac_header_preproc=yes |
---|
10152 | else |
---|
10153 | echo "$as_me: failed program was:" >&5 |
---|
10154 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10155 | |
---|
10156 | ac_header_preproc=no |
---|
10157 | fi |
---|
10158 | |
---|
10159 | rm -f conftest.err conftest.$ac_ext |
---|
10160 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
10161 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
10162 | |
---|
10163 | # So? What about this header? |
---|
10164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
10165 | yes:no: ) |
---|
10166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
10167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
10168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
10169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
10170 | ac_header_preproc=yes |
---|
10171 | ;; |
---|
10172 | no:yes:* ) |
---|
10173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
10174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
10175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
10176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
10177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
10178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
10179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
10180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
10181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
10182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
10183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
10184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
10185 | |
---|
10186 | ;; |
---|
10187 | esac |
---|
10188 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
10189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
10190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10192 | else |
---|
10193 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
10194 | fi |
---|
10195 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
10196 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10197 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10198 | |
---|
10199 | fi |
---|
10200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
10201 | cat >>confdefs.h <<_ACEOF |
---|
10202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
10203 | _ACEOF |
---|
10204 | |
---|
10205 | fi |
---|
10206 | |
---|
10207 | done |
---|
10208 | |
---|
10209 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
---|
10210 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
---|
10211 | if test "${ac_cv_func_select_args+set}" = set; then |
---|
10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10213 | else |
---|
10214 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
---|
10215 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
---|
10216 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
---|
10217 | cat >conftest.$ac_ext <<_ACEOF |
---|
10218 | /* confdefs.h. */ |
---|
10219 | _ACEOF |
---|
10220 | cat confdefs.h >>conftest.$ac_ext |
---|
10221 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10222 | /* end confdefs.h. */ |
---|
10223 | $ac_includes_default |
---|
10224 | #ifdef HAVE_SYS_SELECT_H |
---|
10225 | # include <sys/select.h> |
---|
10226 | #endif |
---|
10227 | #ifdef HAVE_SYS_SOCKET_H |
---|
10228 | # include <sys/socket.h> |
---|
10229 | #endif |
---|
10230 | |
---|
10231 | int |
---|
10232 | main () |
---|
10233 | { |
---|
10234 | extern int select ($ac_arg1, |
---|
10235 | $ac_arg234, $ac_arg234, $ac_arg234, |
---|
10236 | $ac_arg5); |
---|
10237 | ; |
---|
10238 | return 0; |
---|
10239 | } |
---|
10240 | _ACEOF |
---|
10241 | rm -f conftest.$ac_objext |
---|
10242 | if { (ac_try="$ac_compile" |
---|
10243 | case "(($ac_try" in |
---|
10244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10245 | *) ac_try_echo=$ac_try;; |
---|
10246 | esac |
---|
10247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10248 | (eval "$ac_compile") 2>conftest.er1 |
---|
10249 | ac_status=$? |
---|
10250 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10251 | rm -f conftest.er1 |
---|
10252 | cat conftest.err >&5 |
---|
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10254 | (exit $ac_status); } && { |
---|
10255 | test -z "$ac_c_werror_flag" || |
---|
10256 | test ! -s conftest.err |
---|
10257 | } && test -s conftest.$ac_objext; then |
---|
10258 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
---|
10259 | else |
---|
10260 | echo "$as_me: failed program was:" >&5 |
---|
10261 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10262 | |
---|
10263 | |
---|
10264 | fi |
---|
10265 | |
---|
10266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
10267 | done |
---|
10268 | done |
---|
10269 | done |
---|
10270 | # Provide a safe default value. |
---|
10271 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
---|
10272 | |
---|
10273 | fi |
---|
10274 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
---|
10275 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
---|
10276 | ac_save_IFS=$IFS; IFS=',' |
---|
10277 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
---|
10278 | IFS=$ac_save_IFS |
---|
10279 | shift |
---|
10280 | |
---|
10281 | cat >>confdefs.h <<_ACEOF |
---|
10282 | #define SELECT_TYPE_ARG1 $1 |
---|
10283 | _ACEOF |
---|
10284 | |
---|
10285 | |
---|
10286 | cat >>confdefs.h <<_ACEOF |
---|
10287 | #define SELECT_TYPE_ARG234 ($2) |
---|
10288 | _ACEOF |
---|
10289 | |
---|
10290 | |
---|
10291 | cat >>confdefs.h <<_ACEOF |
---|
10292 | #define SELECT_TYPE_ARG5 ($3) |
---|
10293 | _ACEOF |
---|
10294 | |
---|
10295 | rm -f conftest* |
---|
10296 | |
---|
10297 | |
---|
10298 | for ac_func in vprintf |
---|
10299 | do |
---|
10300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10301 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
10303 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10305 | else |
---|
10306 | cat >conftest.$ac_ext <<_ACEOF |
---|
10307 | /* confdefs.h. */ |
---|
10308 | _ACEOF |
---|
10309 | cat confdefs.h >>conftest.$ac_ext |
---|
10310 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10311 | /* end confdefs.h. */ |
---|
10312 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10314 | #define $ac_func innocuous_$ac_func |
---|
10315 | |
---|
10316 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10317 | which can conflict with char $ac_func (); below. |
---|
10318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10319 | <limits.h> exists even on freestanding compilers. */ |
---|
10320 | |
---|
10321 | #ifdef __STDC__ |
---|
10322 | # include <limits.h> |
---|
10323 | #else |
---|
10324 | # include <assert.h> |
---|
10325 | #endif |
---|
10326 | |
---|
10327 | #undef $ac_func |
---|
10328 | |
---|
10329 | /* Override any GCC internal prototype to avoid an error. |
---|
10330 | Use char because int might match the return type of a GCC |
---|
10331 | builtin and then its argument prototype would still apply. */ |
---|
10332 | #ifdef __cplusplus |
---|
10333 | extern "C" |
---|
10334 | #endif |
---|
10335 | char $ac_func (); |
---|
10336 | /* The GNU C library defines this for functions which it implements |
---|
10337 | to always fail with ENOSYS. Some functions are actually named |
---|
10338 | something starting with __ and the normal name is an alias. */ |
---|
10339 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
10340 | choke me |
---|
10341 | #endif |
---|
10342 | |
---|
10343 | int |
---|
10344 | main () |
---|
10345 | { |
---|
10346 | return $ac_func (); |
---|
10347 | ; |
---|
10348 | return 0; |
---|
10349 | } |
---|
10350 | _ACEOF |
---|
10351 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10352 | if { (ac_try="$ac_link" |
---|
10353 | case "(($ac_try" in |
---|
10354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10355 | *) ac_try_echo=$ac_try;; |
---|
10356 | esac |
---|
10357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10358 | (eval "$ac_link") 2>conftest.er1 |
---|
10359 | ac_status=$? |
---|
10360 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10361 | rm -f conftest.er1 |
---|
10362 | cat conftest.err >&5 |
---|
10363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10364 | (exit $ac_status); } && { |
---|
10365 | test -z "$ac_c_werror_flag" || |
---|
10366 | test ! -s conftest.err |
---|
10367 | } && test -s conftest$ac_exeext && |
---|
10368 | $as_test_x conftest$ac_exeext; then |
---|
10369 | eval "$as_ac_var=yes" |
---|
10370 | else |
---|
10371 | echo "$as_me: failed program was:" >&5 |
---|
10372 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10373 | |
---|
10374 | eval "$as_ac_var=no" |
---|
10375 | fi |
---|
10376 | |
---|
10377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10378 | conftest$ac_exeext conftest.$ac_ext |
---|
10379 | fi |
---|
10380 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
10381 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10382 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10383 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10384 | cat >>confdefs.h <<_ACEOF |
---|
10385 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10386 | _ACEOF |
---|
10387 | |
---|
10388 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
---|
10389 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
---|
10390 | if test "${ac_cv_func__doprnt+set}" = set; then |
---|
10391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10392 | else |
---|
10393 | cat >conftest.$ac_ext <<_ACEOF |
---|
10394 | /* confdefs.h. */ |
---|
10395 | _ACEOF |
---|
10396 | cat confdefs.h >>conftest.$ac_ext |
---|
10397 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10398 | /* end confdefs.h. */ |
---|
10399 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
---|
10400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10401 | #define _doprnt innocuous__doprnt |
---|
10402 | |
---|
10403 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10404 | which can conflict with char _doprnt (); below. |
---|
10405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10406 | <limits.h> exists even on freestanding compilers. */ |
---|
10407 | |
---|
10408 | #ifdef __STDC__ |
---|
10409 | # include <limits.h> |
---|
10410 | #else |
---|
10411 | # include <assert.h> |
---|
10412 | #endif |
---|
10413 | |
---|
10414 | #undef _doprnt |
---|
10415 | |
---|
10416 | /* Override any GCC internal prototype to avoid an error. |
---|
10417 | Use char because int might match the return type of a GCC |
---|
10418 | builtin and then its argument prototype would still apply. */ |
---|
10419 | #ifdef __cplusplus |
---|
10420 | extern "C" |
---|
10421 | #endif |
---|
10422 | char _doprnt (); |
---|
10423 | /* The GNU C library defines this for functions which it implements |
---|
10424 | to always fail with ENOSYS. Some functions are actually named |
---|
10425 | something starting with __ and the normal name is an alias. */ |
---|
10426 | #if defined __stub__doprnt || defined __stub____doprnt |
---|
10427 | choke me |
---|
10428 | #endif |
---|
10429 | |
---|
10430 | int |
---|
10431 | main () |
---|
10432 | { |
---|
10433 | return _doprnt (); |
---|
10434 | ; |
---|
10435 | return 0; |
---|
10436 | } |
---|
10437 | _ACEOF |
---|
10438 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10439 | if { (ac_try="$ac_link" |
---|
10440 | case "(($ac_try" in |
---|
10441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10442 | *) ac_try_echo=$ac_try;; |
---|
10443 | esac |
---|
10444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10445 | (eval "$ac_link") 2>conftest.er1 |
---|
10446 | ac_status=$? |
---|
10447 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10448 | rm -f conftest.er1 |
---|
10449 | cat conftest.err >&5 |
---|
10450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10451 | (exit $ac_status); } && { |
---|
10452 | test -z "$ac_c_werror_flag" || |
---|
10453 | test ! -s conftest.err |
---|
10454 | } && test -s conftest$ac_exeext && |
---|
10455 | $as_test_x conftest$ac_exeext; then |
---|
10456 | ac_cv_func__doprnt=yes |
---|
10457 | else |
---|
10458 | echo "$as_me: failed program was:" >&5 |
---|
10459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10460 | |
---|
10461 | ac_cv_func__doprnt=no |
---|
10462 | fi |
---|
10463 | |
---|
10464 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10465 | conftest$ac_exeext conftest.$ac_ext |
---|
10466 | fi |
---|
10467 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
---|
10468 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
---|
10469 | if test $ac_cv_func__doprnt = yes; then |
---|
10470 | |
---|
10471 | cat >>confdefs.h <<\_ACEOF |
---|
10472 | #define HAVE_DOPRNT 1 |
---|
10473 | _ACEOF |
---|
10474 | |
---|
10475 | fi |
---|
10476 | |
---|
10477 | fi |
---|
10478 | done |
---|
10479 | |
---|
10480 | |
---|
10481 | |
---|
10482 | |
---|
10483 | for ac_func in strcasecmp strerror |
---|
10484 | do |
---|
10485 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10486 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10487 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
10488 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10490 | else |
---|
10491 | cat >conftest.$ac_ext <<_ACEOF |
---|
10492 | /* confdefs.h. */ |
---|
10493 | _ACEOF |
---|
10494 | cat confdefs.h >>conftest.$ac_ext |
---|
10495 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10496 | /* end confdefs.h. */ |
---|
10497 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10498 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10499 | #define $ac_func innocuous_$ac_func |
---|
10500 | |
---|
10501 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10502 | which can conflict with char $ac_func (); below. |
---|
10503 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10504 | <limits.h> exists even on freestanding compilers. */ |
---|
10505 | |
---|
10506 | #ifdef __STDC__ |
---|
10507 | # include <limits.h> |
---|
10508 | #else |
---|
10509 | # include <assert.h> |
---|
10510 | #endif |
---|
10511 | |
---|
10512 | #undef $ac_func |
---|
10513 | |
---|
10514 | /* Override any GCC internal prototype to avoid an error. |
---|
10515 | Use char because int might match the return type of a GCC |
---|
10516 | builtin and then its argument prototype would still apply. */ |
---|
10517 | #ifdef __cplusplus |
---|
10518 | extern "C" |
---|
10519 | #endif |
---|
10520 | char $ac_func (); |
---|
10521 | /* The GNU C library defines this for functions which it implements |
---|
10522 | to always fail with ENOSYS. Some functions are actually named |
---|
10523 | something starting with __ and the normal name is an alias. */ |
---|
10524 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
10525 | choke me |
---|
10526 | #endif |
---|
10527 | |
---|
10528 | int |
---|
10529 | main () |
---|
10530 | { |
---|
10531 | return $ac_func (); |
---|
10532 | ; |
---|
10533 | return 0; |
---|
10534 | } |
---|
10535 | _ACEOF |
---|
10536 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10537 | if { (ac_try="$ac_link" |
---|
10538 | case "(($ac_try" in |
---|
10539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10540 | *) ac_try_echo=$ac_try;; |
---|
10541 | esac |
---|
10542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10543 | (eval "$ac_link") 2>conftest.er1 |
---|
10544 | ac_status=$? |
---|
10545 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10546 | rm -f conftest.er1 |
---|
10547 | cat conftest.err >&5 |
---|
10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10549 | (exit $ac_status); } && { |
---|
10550 | test -z "$ac_c_werror_flag" || |
---|
10551 | test ! -s conftest.err |
---|
10552 | } && test -s conftest$ac_exeext && |
---|
10553 | $as_test_x conftest$ac_exeext; then |
---|
10554 | eval "$as_ac_var=yes" |
---|
10555 | else |
---|
10556 | echo "$as_me: failed program was:" >&5 |
---|
10557 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10558 | |
---|
10559 | eval "$as_ac_var=no" |
---|
10560 | fi |
---|
10561 | |
---|
10562 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10563 | conftest$ac_exeext conftest.$ac_ext |
---|
10564 | fi |
---|
10565 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
10566 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10567 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10568 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10569 | cat >>confdefs.h <<_ACEOF |
---|
10570 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10571 | _ACEOF |
---|
10572 | |
---|
10573 | fi |
---|
10574 | done |
---|
10575 | |
---|
10576 | if test $ac_enable_backtrace = auto; then |
---|
10577 | |
---|
10578 | |
---|
10579 | for ac_func in backtrace backtrace_symbols |
---|
10580 | do |
---|
10581 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10582 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10583 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
10584 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10586 | else |
---|
10587 | cat >conftest.$ac_ext <<_ACEOF |
---|
10588 | /* confdefs.h. */ |
---|
10589 | _ACEOF |
---|
10590 | cat confdefs.h >>conftest.$ac_ext |
---|
10591 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10592 | /* end confdefs.h. */ |
---|
10593 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10594 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10595 | #define $ac_func innocuous_$ac_func |
---|
10596 | |
---|
10597 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10598 | which can conflict with char $ac_func (); below. |
---|
10599 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10600 | <limits.h> exists even on freestanding compilers. */ |
---|
10601 | |
---|
10602 | #ifdef __STDC__ |
---|
10603 | # include <limits.h> |
---|
10604 | #else |
---|
10605 | # include <assert.h> |
---|
10606 | #endif |
---|
10607 | |
---|
10608 | #undef $ac_func |
---|
10609 | |
---|
10610 | /* Override any GCC internal prototype to avoid an error. |
---|
10611 | Use char because int might match the return type of a GCC |
---|
10612 | builtin and then its argument prototype would still apply. */ |
---|
10613 | #ifdef __cplusplus |
---|
10614 | extern "C" |
---|
10615 | #endif |
---|
10616 | char $ac_func (); |
---|
10617 | /* The GNU C library defines this for functions which it implements |
---|
10618 | to always fail with ENOSYS. Some functions are actually named |
---|
10619 | something starting with __ and the normal name is an alias. */ |
---|
10620 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
10621 | choke me |
---|
10622 | #endif |
---|
10623 | |
---|
10624 | int |
---|
10625 | main () |
---|
10626 | { |
---|
10627 | return $ac_func (); |
---|
10628 | ; |
---|
10629 | return 0; |
---|
10630 | } |
---|
10631 | _ACEOF |
---|
10632 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10633 | if { (ac_try="$ac_link" |
---|
10634 | case "(($ac_try" in |
---|
10635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10636 | *) ac_try_echo=$ac_try;; |
---|
10637 | esac |
---|
10638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10639 | (eval "$ac_link") 2>conftest.er1 |
---|
10640 | ac_status=$? |
---|
10641 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10642 | rm -f conftest.er1 |
---|
10643 | cat conftest.err >&5 |
---|
10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10645 | (exit $ac_status); } && { |
---|
10646 | test -z "$ac_c_werror_flag" || |
---|
10647 | test ! -s conftest.err |
---|
10648 | } && test -s conftest$ac_exeext && |
---|
10649 | $as_test_x conftest$ac_exeext; then |
---|
10650 | eval "$as_ac_var=yes" |
---|
10651 | else |
---|
10652 | echo "$as_me: failed program was:" >&5 |
---|
10653 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10654 | |
---|
10655 | eval "$as_ac_var=no" |
---|
10656 | fi |
---|
10657 | |
---|
10658 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10659 | conftest$ac_exeext conftest.$ac_ext |
---|
10660 | fi |
---|
10661 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
10662 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10663 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10664 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10665 | cat >>confdefs.h <<_ACEOF |
---|
10666 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10667 | _ACEOF |
---|
10668 | |
---|
10669 | fi |
---|
10670 | done |
---|
10671 | |
---|
10672 | fi |
---|
10673 | |
---|
10674 | |
---|
10675 | for ac_func in uname sysconf |
---|
10676 | do |
---|
10677 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10678 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10679 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
10680 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10682 | else |
---|
10683 | cat >conftest.$ac_ext <<_ACEOF |
---|
10684 | /* confdefs.h. */ |
---|
10685 | _ACEOF |
---|
10686 | cat confdefs.h >>conftest.$ac_ext |
---|
10687 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10688 | /* end confdefs.h. */ |
---|
10689 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10690 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10691 | #define $ac_func innocuous_$ac_func |
---|
10692 | |
---|
10693 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10694 | which can conflict with char $ac_func (); below. |
---|
10695 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10696 | <limits.h> exists even on freestanding compilers. */ |
---|
10697 | |
---|
10698 | #ifdef __STDC__ |
---|
10699 | # include <limits.h> |
---|
10700 | #else |
---|
10701 | # include <assert.h> |
---|
10702 | #endif |
---|
10703 | |
---|
10704 | #undef $ac_func |
---|
10705 | |
---|
10706 | /* Override any GCC internal prototype to avoid an error. |
---|
10707 | Use char because int might match the return type of a GCC |
---|
10708 | builtin and then its argument prototype would still apply. */ |
---|
10709 | #ifdef __cplusplus |
---|
10710 | extern "C" |
---|
10711 | #endif |
---|
10712 | char $ac_func (); |
---|
10713 | /* The GNU C library defines this for functions which it implements |
---|
10714 | to always fail with ENOSYS. Some functions are actually named |
---|
10715 | something starting with __ and the normal name is an alias. */ |
---|
10716 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
10717 | choke me |
---|
10718 | #endif |
---|
10719 | |
---|
10720 | int |
---|
10721 | main () |
---|
10722 | { |
---|
10723 | return $ac_func (); |
---|
10724 | ; |
---|
10725 | return 0; |
---|
10726 | } |
---|
10727 | _ACEOF |
---|
10728 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10729 | if { (ac_try="$ac_link" |
---|
10730 | case "(($ac_try" in |
---|
10731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10732 | *) ac_try_echo=$ac_try;; |
---|
10733 | esac |
---|
10734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10735 | (eval "$ac_link") 2>conftest.er1 |
---|
10736 | ac_status=$? |
---|
10737 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10738 | rm -f conftest.er1 |
---|
10739 | cat conftest.err >&5 |
---|
10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10741 | (exit $ac_status); } && { |
---|
10742 | test -z "$ac_c_werror_flag" || |
---|
10743 | test ! -s conftest.err |
---|
10744 | } && test -s conftest$ac_exeext && |
---|
10745 | $as_test_x conftest$ac_exeext; then |
---|
10746 | eval "$as_ac_var=yes" |
---|
10747 | else |
---|
10748 | echo "$as_me: failed program was:" >&5 |
---|
10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10750 | |
---|
10751 | eval "$as_ac_var=no" |
---|
10752 | fi |
---|
10753 | |
---|
10754 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10755 | conftest$ac_exeext conftest.$ac_ext |
---|
10756 | fi |
---|
10757 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
10758 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10759 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10760 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10761 | cat >>confdefs.h <<_ACEOF |
---|
10762 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10763 | _ACEOF |
---|
10764 | |
---|
10765 | fi |
---|
10766 | done |
---|
10767 | |
---|
10768 | |
---|
10769 | |
---|
10770 | |
---|
10771 | |
---|
10772 | |
---|
10773 | |
---|
10774 | for ac_func in flockfile funlockfile fread_unlocked fwrite_unlocked fgetc_unlocked feof_unlocked |
---|
10775 | do |
---|
10776 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10777 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10778 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
10779 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10781 | else |
---|
10782 | cat >conftest.$ac_ext <<_ACEOF |
---|
10783 | /* confdefs.h. */ |
---|
10784 | _ACEOF |
---|
10785 | cat confdefs.h >>conftest.$ac_ext |
---|
10786 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10787 | /* end confdefs.h. */ |
---|
10788 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10789 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10790 | #define $ac_func innocuous_$ac_func |
---|
10791 | |
---|
10792 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10793 | which can conflict with char $ac_func (); below. |
---|
10794 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10795 | <limits.h> exists even on freestanding compilers. */ |
---|
10796 | |
---|
10797 | #ifdef __STDC__ |
---|
10798 | # include <limits.h> |
---|
10799 | #else |
---|
10800 | # include <assert.h> |
---|
10801 | #endif |
---|
10802 | |
---|
10803 | #undef $ac_func |
---|
10804 | |
---|
10805 | /* Override any GCC internal prototype to avoid an error. |
---|
10806 | Use char because int might match the return type of a GCC |
---|
10807 | builtin and then its argument prototype would still apply. */ |
---|
10808 | #ifdef __cplusplus |
---|
10809 | extern "C" |
---|
10810 | #endif |
---|
10811 | char $ac_func (); |
---|
10812 | /* The GNU C library defines this for functions which it implements |
---|
10813 | to always fail with ENOSYS. Some functions are actually named |
---|
10814 | something starting with __ and the normal name is an alias. */ |
---|
10815 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
10816 | choke me |
---|
10817 | #endif |
---|
10818 | |
---|
10819 | int |
---|
10820 | main () |
---|
10821 | { |
---|
10822 | return $ac_func (); |
---|
10823 | ; |
---|
10824 | return 0; |
---|
10825 | } |
---|
10826 | _ACEOF |
---|
10827 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10828 | if { (ac_try="$ac_link" |
---|
10829 | case "(($ac_try" in |
---|
10830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10831 | *) ac_try_echo=$ac_try;; |
---|
10832 | esac |
---|
10833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10834 | (eval "$ac_link") 2>conftest.er1 |
---|
10835 | ac_status=$? |
---|
10836 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10837 | rm -f conftest.er1 |
---|
10838 | cat conftest.err >&5 |
---|
10839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10840 | (exit $ac_status); } && { |
---|
10841 | test -z "$ac_c_werror_flag" || |
---|
10842 | test ! -s conftest.err |
---|
10843 | } && test -s conftest$ac_exeext && |
---|
10844 | $as_test_x conftest$ac_exeext; then |
---|
10845 | eval "$as_ac_var=yes" |
---|
10846 | else |
---|
10847 | echo "$as_me: failed program was:" >&5 |
---|
10848 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10849 | |
---|
10850 | eval "$as_ac_var=no" |
---|
10851 | fi |
---|
10852 | |
---|
10853 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10854 | conftest$ac_exeext conftest.$ac_ext |
---|
10855 | fi |
---|
10856 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
10857 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10858 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10859 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10860 | cat >>confdefs.h <<_ACEOF |
---|
10861 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10862 | _ACEOF |
---|
10863 | |
---|
10864 | fi |
---|
10865 | done |
---|
10866 | |
---|
10867 | |
---|
10868 | |
---|
10869 | for ac_func in iopl mprotect |
---|
10870 | do |
---|
10871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
10872 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
10873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
---|
10874 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
10875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
10876 | else |
---|
10877 | cat >conftest.$ac_ext <<_ACEOF |
---|
10878 | /* confdefs.h. */ |
---|
10879 | _ACEOF |
---|
10880 | cat confdefs.h >>conftest.$ac_ext |
---|
10881 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10882 | /* end confdefs.h. */ |
---|
10883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
10884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
10885 | #define $ac_func innocuous_$ac_func |
---|
10886 | |
---|
10887 | /* System header to define __stub macros and hopefully few prototypes, |
---|
10888 | which can conflict with char $ac_func (); below. |
---|
10889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
10890 | <limits.h> exists even on freestanding compilers. */ |
---|
10891 | |
---|
10892 | #ifdef __STDC__ |
---|
10893 | # include <limits.h> |
---|
10894 | #else |
---|
10895 | # include <assert.h> |
---|
10896 | #endif |
---|
10897 | |
---|
10898 | #undef $ac_func |
---|
10899 | |
---|
10900 | /* Override any GCC internal prototype to avoid an error. |
---|
10901 | Use char because int might match the return type of a GCC |
---|
10902 | builtin and then its argument prototype would still apply. */ |
---|
10903 | #ifdef __cplusplus |
---|
10904 | extern "C" |
---|
10905 | #endif |
---|
10906 | char $ac_func (); |
---|
10907 | /* The GNU C library defines this for functions which it implements |
---|
10908 | to always fail with ENOSYS. Some functions are actually named |
---|
10909 | something starting with __ and the normal name is an alias. */ |
---|
10910 | #if defined __stub_$ac_func || defined __stub___$ac_func |
---|
10911 | choke me |
---|
10912 | #endif |
---|
10913 | |
---|
10914 | int |
---|
10915 | main () |
---|
10916 | { |
---|
10917 | return $ac_func (); |
---|
10918 | ; |
---|
10919 | return 0; |
---|
10920 | } |
---|
10921 | _ACEOF |
---|
10922 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10923 | if { (ac_try="$ac_link" |
---|
10924 | case "(($ac_try" in |
---|
10925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10926 | *) ac_try_echo=$ac_try;; |
---|
10927 | esac |
---|
10928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10929 | (eval "$ac_link") 2>conftest.er1 |
---|
10930 | ac_status=$? |
---|
10931 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10932 | rm -f conftest.er1 |
---|
10933 | cat conftest.err >&5 |
---|
10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10935 | (exit $ac_status); } && { |
---|
10936 | test -z "$ac_c_werror_flag" || |
---|
10937 | test ! -s conftest.err |
---|
10938 | } && test -s conftest$ac_exeext && |
---|
10939 | $as_test_x conftest$ac_exeext; then |
---|
10940 | eval "$as_ac_var=yes" |
---|
10941 | else |
---|
10942 | echo "$as_me: failed program was:" >&5 |
---|
10943 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
10944 | |
---|
10945 | eval "$as_ac_var=no" |
---|
10946 | fi |
---|
10947 | |
---|
10948 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
10949 | conftest$ac_exeext conftest.$ac_ext |
---|
10950 | fi |
---|
10951 | ac_res=`eval echo '${'$as_ac_var'}'` |
---|
10952 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
10953 | echo "${ECHO_T}$ac_res" >&6; } |
---|
10954 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
10955 | cat >>confdefs.h <<_ACEOF |
---|
10956 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
10957 | _ACEOF |
---|
10958 | |
---|
10959 | fi |
---|
10960 | done |
---|
10961 | |
---|
10962 | { echo "$as_me:$LINENO: checking for port in/out" >&5 |
---|
10963 | echo $ECHO_N "checking for port in/out... $ECHO_C" >&6; } |
---|
10964 | cat >conftest.$ac_ext <<_ACEOF |
---|
10965 | /* confdefs.h. */ |
---|
10966 | _ACEOF |
---|
10967 | cat confdefs.h >>conftest.$ac_ext |
---|
10968 | cat >>conftest.$ac_ext <<_ACEOF |
---|
10969 | /* end confdefs.h. */ |
---|
10970 | |
---|
10971 | #include <sys/io.h> |
---|
10972 | |
---|
10973 | int |
---|
10974 | main () |
---|
10975 | { |
---|
10976 | |
---|
10977 | outb(0x80, inb(0x80)); |
---|
10978 | |
---|
10979 | ; |
---|
10980 | return 0; |
---|
10981 | } |
---|
10982 | _ACEOF |
---|
10983 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
10984 | if { (ac_try="$ac_link" |
---|
10985 | case "(($ac_try" in |
---|
10986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
10987 | *) ac_try_echo=$ac_try;; |
---|
10988 | esac |
---|
10989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
10990 | (eval "$ac_link") 2>conftest.er1 |
---|
10991 | ac_status=$? |
---|
10992 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
10993 | rm -f conftest.er1 |
---|
10994 | cat conftest.err >&5 |
---|
10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
10996 | (exit $ac_status); } && { |
---|
10997 | test -z "$ac_c_werror_flag" || |
---|
10998 | test ! -s conftest.err |
---|
10999 | } && test -s conftest$ac_exeext && |
---|
11000 | $as_test_x conftest$ac_exeext; then |
---|
11001 | ac_func_inout=yes |
---|
11002 | else |
---|
11003 | echo "$as_me: failed program was:" >&5 |
---|
11004 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11005 | |
---|
11006 | ac_func_inout=no |
---|
11007 | fi |
---|
11008 | |
---|
11009 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11010 | conftest$ac_exeext conftest.$ac_ext |
---|
11011 | { echo "$as_me:$LINENO: result: $ac_func_inout" >&5 |
---|
11012 | echo "${ECHO_T}$ac_func_inout" >&6; } |
---|
11013 | if test $ac_func_inout = yes; then |
---|
11014 | |
---|
11015 | cat >>confdefs.h <<\_ACEOF |
---|
11016 | #define HAVE_INOUT 1 |
---|
11017 | _ACEOF |
---|
11018 | |
---|
11019 | fi |
---|
11020 | fi |
---|
11021 | |
---|
11022 | # Checks for libraries. |
---|
11023 | |
---|
11024 | ac_lib_direct_flag=no |
---|
11025 | ac_lib_video_flag=no |
---|
11026 | ac_lib_text_flag=no |
---|
11027 | ac_lib_sound_flag=no |
---|
11028 | ac_lib_keyboard_flag=no |
---|
11029 | |
---|
11030 | if test $ac_system = dos; then |
---|
11031 | ac_lib_video="$ac_lib_video svgaline vbeline vgaline vbe" |
---|
11032 | ac_lib_sound="$ac_lib_sound seal vsync allegro" |
---|
11033 | ac_lib_keyboard="$ac_lib_keyboard allegro" |
---|
11034 | ac_lib_joystick="$ac_lib_joystick allegro" |
---|
11035 | ac_lib_mouse="$ac_lib_mouse allegro" |
---|
11036 | ac_lib_direct_flag=yes |
---|
11037 | ac_lib_video_flag=yes |
---|
11038 | ac_lib_sound_flag=yes |
---|
11039 | ac_lib_keyboard_flag=yes |
---|
11040 | ac_lib_text_flag=yes |
---|
11041 | fi |
---|
11042 | |
---|
11043 | if test $ac_system = windows; then |
---|
11044 | ac_lib_text_flag=yes |
---|
11045 | fi |
---|
11046 | |
---|
11047 | # Checks for zlib |
---|
11048 | # Check whether --enable-zlib was given. |
---|
11049 | if test "${enable_zlib+set}" = set; then |
---|
11050 | enableval=$enable_zlib; ac_lib_zlib=$enableval |
---|
11051 | else |
---|
11052 | ac_lib_zlib=auto |
---|
11053 | |
---|
11054 | fi |
---|
11055 | |
---|
11056 | if test $ac_lib_zlib = auto; then |
---|
11057 | { echo "$as_me:$LINENO: checking for adler32 in -lz" >&5 |
---|
11058 | echo $ECHO_N "checking for adler32 in -lz... $ECHO_C" >&6; } |
---|
11059 | if test "${ac_cv_lib_z_adler32+set}" = set; then |
---|
11060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11061 | else |
---|
11062 | ac_check_lib_save_LIBS=$LIBS |
---|
11063 | LIBS="-lz $LIBS" |
---|
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 | |
---|
11071 | /* Override any GCC internal prototype to avoid an error. |
---|
11072 | Use char because int might match the return type of a GCC |
---|
11073 | builtin and then its argument prototype would still apply. */ |
---|
11074 | #ifdef __cplusplus |
---|
11075 | extern "C" |
---|
11076 | #endif |
---|
11077 | char adler32 (); |
---|
11078 | int |
---|
11079 | main () |
---|
11080 | { |
---|
11081 | return adler32 (); |
---|
11082 | ; |
---|
11083 | return 0; |
---|
11084 | } |
---|
11085 | _ACEOF |
---|
11086 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11087 | if { (ac_try="$ac_link" |
---|
11088 | case "(($ac_try" in |
---|
11089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11090 | *) ac_try_echo=$ac_try;; |
---|
11091 | esac |
---|
11092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11093 | (eval "$ac_link") 2>conftest.er1 |
---|
11094 | ac_status=$? |
---|
11095 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11096 | rm -f conftest.er1 |
---|
11097 | cat conftest.err >&5 |
---|
11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11099 | (exit $ac_status); } && { |
---|
11100 | test -z "$ac_c_werror_flag" || |
---|
11101 | test ! -s conftest.err |
---|
11102 | } && test -s conftest$ac_exeext && |
---|
11103 | $as_test_x conftest$ac_exeext; then |
---|
11104 | ac_cv_lib_z_adler32=yes |
---|
11105 | else |
---|
11106 | echo "$as_me: failed program was:" >&5 |
---|
11107 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11108 | |
---|
11109 | ac_cv_lib_z_adler32=no |
---|
11110 | fi |
---|
11111 | |
---|
11112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11113 | conftest$ac_exeext conftest.$ac_ext |
---|
11114 | LIBS=$ac_check_lib_save_LIBS |
---|
11115 | fi |
---|
11116 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_adler32" >&5 |
---|
11117 | echo "${ECHO_T}$ac_cv_lib_z_adler32" >&6; } |
---|
11118 | if test $ac_cv_lib_z_adler32 = yes; then |
---|
11119 | ac_lib_zlib=yes |
---|
11120 | else |
---|
11121 | ac_lib_zlib=no |
---|
11122 | |
---|
11123 | fi |
---|
11124 | |
---|
11125 | fi |
---|
11126 | if test $ac_lib_zlib = yes; then |
---|
11127 | ac_lib_other="$ac_lib_other zlib" |
---|
11128 | else |
---|
11129 | ac_lib_other="$ac_lib_other zlib(internal)" |
---|
11130 | fi |
---|
11131 | CONF_LIB_ZLIB=$ac_lib_zlib |
---|
11132 | |
---|
11133 | |
---|
11134 | # Checks for expat |
---|
11135 | # Check whether --enable-expat was given. |
---|
11136 | if test "${enable_expat+set}" = set; then |
---|
11137 | enableval=$enable_expat; ac_lib_expat=$enableval |
---|
11138 | else |
---|
11139 | ac_lib_expat=auto |
---|
11140 | |
---|
11141 | fi |
---|
11142 | |
---|
11143 | if test $ac_lib_expat = auto; then |
---|
11144 | { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 |
---|
11145 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; } |
---|
11146 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then |
---|
11147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11148 | else |
---|
11149 | ac_check_lib_save_LIBS=$LIBS |
---|
11150 | LIBS="-lexpat $LIBS" |
---|
11151 | cat >conftest.$ac_ext <<_ACEOF |
---|
11152 | /* confdefs.h. */ |
---|
11153 | _ACEOF |
---|
11154 | cat confdefs.h >>conftest.$ac_ext |
---|
11155 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11156 | /* end confdefs.h. */ |
---|
11157 | |
---|
11158 | /* Override any GCC internal prototype to avoid an error. |
---|
11159 | Use char because int might match the return type of a GCC |
---|
11160 | builtin and then its argument prototype would still apply. */ |
---|
11161 | #ifdef __cplusplus |
---|
11162 | extern "C" |
---|
11163 | #endif |
---|
11164 | char XML_ParserCreate (); |
---|
11165 | int |
---|
11166 | main () |
---|
11167 | { |
---|
11168 | return XML_ParserCreate (); |
---|
11169 | ; |
---|
11170 | return 0; |
---|
11171 | } |
---|
11172 | _ACEOF |
---|
11173 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11174 | if { (ac_try="$ac_link" |
---|
11175 | case "(($ac_try" in |
---|
11176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11177 | *) ac_try_echo=$ac_try;; |
---|
11178 | esac |
---|
11179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11180 | (eval "$ac_link") 2>conftest.er1 |
---|
11181 | ac_status=$? |
---|
11182 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11183 | rm -f conftest.er1 |
---|
11184 | cat conftest.err >&5 |
---|
11185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11186 | (exit $ac_status); } && { |
---|
11187 | test -z "$ac_c_werror_flag" || |
---|
11188 | test ! -s conftest.err |
---|
11189 | } && test -s conftest$ac_exeext && |
---|
11190 | $as_test_x conftest$ac_exeext; then |
---|
11191 | ac_cv_lib_expat_XML_ParserCreate=yes |
---|
11192 | else |
---|
11193 | echo "$as_me: failed program was:" >&5 |
---|
11194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11195 | |
---|
11196 | ac_cv_lib_expat_XML_ParserCreate=no |
---|
11197 | fi |
---|
11198 | |
---|
11199 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11200 | conftest$ac_exeext conftest.$ac_ext |
---|
11201 | LIBS=$ac_check_lib_save_LIBS |
---|
11202 | fi |
---|
11203 | { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 |
---|
11204 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; } |
---|
11205 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then |
---|
11206 | ac_lib_expat=yes |
---|
11207 | else |
---|
11208 | ac_lib_expat=no |
---|
11209 | |
---|
11210 | fi |
---|
11211 | |
---|
11212 | fi |
---|
11213 | if test $ac_lib_expat = yes; then |
---|
11214 | ac_lib_other="$ac_lib_other expat" |
---|
11215 | else |
---|
11216 | ac_lib_other="$ac_lib_other expat(internal)" |
---|
11217 | fi |
---|
11218 | CONF_LIB_EXPAT=$ac_lib_expat |
---|
11219 | |
---|
11220 | |
---|
11221 | # Checks for svgalib |
---|
11222 | # Check whether --enable-svgalib was given. |
---|
11223 | if test "${enable_svgalib+set}" = set; then |
---|
11224 | enableval=$enable_svgalib; ac_lib_svgalib=$enableval |
---|
11225 | else |
---|
11226 | ac_lib_svgalib=auto |
---|
11227 | |
---|
11228 | fi |
---|
11229 | |
---|
11230 | if test $ac_lib_svgalib = auto; then |
---|
11231 | { echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5 |
---|
11232 | echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6; } |
---|
11233 | if test "${ac_cv_lib_vga_vga_init+set}" = set; then |
---|
11234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11235 | else |
---|
11236 | ac_check_lib_save_LIBS=$LIBS |
---|
11237 | LIBS="-lvga -lm |
---|
11238 | $LIBS" |
---|
11239 | cat >conftest.$ac_ext <<_ACEOF |
---|
11240 | /* confdefs.h. */ |
---|
11241 | _ACEOF |
---|
11242 | cat confdefs.h >>conftest.$ac_ext |
---|
11243 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11244 | /* end confdefs.h. */ |
---|
11245 | |
---|
11246 | /* Override any GCC internal prototype to avoid an error. |
---|
11247 | Use char because int might match the return type of a GCC |
---|
11248 | builtin and then its argument prototype would still apply. */ |
---|
11249 | #ifdef __cplusplus |
---|
11250 | extern "C" |
---|
11251 | #endif |
---|
11252 | char vga_init (); |
---|
11253 | int |
---|
11254 | main () |
---|
11255 | { |
---|
11256 | return vga_init (); |
---|
11257 | ; |
---|
11258 | return 0; |
---|
11259 | } |
---|
11260 | _ACEOF |
---|
11261 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11262 | if { (ac_try="$ac_link" |
---|
11263 | case "(($ac_try" in |
---|
11264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11265 | *) ac_try_echo=$ac_try;; |
---|
11266 | esac |
---|
11267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11268 | (eval "$ac_link") 2>conftest.er1 |
---|
11269 | ac_status=$? |
---|
11270 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11271 | rm -f conftest.er1 |
---|
11272 | cat conftest.err >&5 |
---|
11273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11274 | (exit $ac_status); } && { |
---|
11275 | test -z "$ac_c_werror_flag" || |
---|
11276 | test ! -s conftest.err |
---|
11277 | } && test -s conftest$ac_exeext && |
---|
11278 | $as_test_x conftest$ac_exeext; then |
---|
11279 | ac_cv_lib_vga_vga_init=yes |
---|
11280 | else |
---|
11281 | echo "$as_me: failed program was:" >&5 |
---|
11282 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11283 | |
---|
11284 | ac_cv_lib_vga_vga_init=no |
---|
11285 | fi |
---|
11286 | |
---|
11287 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11288 | conftest$ac_exeext conftest.$ac_ext |
---|
11289 | LIBS=$ac_check_lib_save_LIBS |
---|
11290 | fi |
---|
11291 | { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5 |
---|
11292 | echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6; } |
---|
11293 | if test $ac_cv_lib_vga_vga_init = yes; then |
---|
11294 | ac_lib_svgalib=yes |
---|
11295 | else |
---|
11296 | ac_lib_svgalib=no |
---|
11297 | fi |
---|
11298 | |
---|
11299 | if test $ac_lib_svgalib = yes; then |
---|
11300 | { echo "$as_me:$LINENO: checking for svgalib version" >&5 |
---|
11301 | echo $ECHO_N "checking for svgalib version... $ECHO_C" >&6; } |
---|
11302 | cat >conftest.$ac_ext <<_ACEOF |
---|
11303 | /* confdefs.h. */ |
---|
11304 | _ACEOF |
---|
11305 | cat confdefs.h >>conftest.$ac_ext |
---|
11306 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11307 | /* end confdefs.h. */ |
---|
11308 | |
---|
11309 | #include <vga.h> |
---|
11310 | |
---|
11311 | int |
---|
11312 | main () |
---|
11313 | { |
---|
11314 | |
---|
11315 | #if !defined(SVGALIB_VER) || (SVGALIB_VER<0x010900) |
---|
11316 | choke me |
---|
11317 | #endif |
---|
11318 | |
---|
11319 | ; |
---|
11320 | return 0; |
---|
11321 | } |
---|
11322 | _ACEOF |
---|
11323 | rm -f conftest.$ac_objext |
---|
11324 | if { (ac_try="$ac_compile" |
---|
11325 | case "(($ac_try" in |
---|
11326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11327 | *) ac_try_echo=$ac_try;; |
---|
11328 | esac |
---|
11329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11330 | (eval "$ac_compile") 2>conftest.er1 |
---|
11331 | ac_status=$? |
---|
11332 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11333 | rm -f conftest.er1 |
---|
11334 | cat conftest.err >&5 |
---|
11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11336 | (exit $ac_status); } && { |
---|
11337 | test -z "$ac_c_werror_flag" || |
---|
11338 | test ! -s conftest.err |
---|
11339 | } && test -s conftest.$ac_objext; then |
---|
11340 | ac_lib_svgalib=yes |
---|
11341 | else |
---|
11342 | echo "$as_me: failed program was:" >&5 |
---|
11343 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11344 | |
---|
11345 | ac_lib_svgalib=no |
---|
11346 | fi |
---|
11347 | |
---|
11348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11349 | { echo "$as_me:$LINENO: result: $ac_lib_svgalib" >&5 |
---|
11350 | echo "${ECHO_T}$ac_lib_svgalib" >&6; } |
---|
11351 | fi |
---|
11352 | elif test $ac_lib_svgalib = yes; then |
---|
11353 | |
---|
11354 | { echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5 |
---|
11355 | echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6; } |
---|
11356 | if test "${ac_cv_lib_vga_vga_init+set}" = set; then |
---|
11357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11358 | else |
---|
11359 | ac_check_lib_save_LIBS=$LIBS |
---|
11360 | LIBS="-lvga -lm |
---|
11361 | $LIBS" |
---|
11362 | cat >conftest.$ac_ext <<_ACEOF |
---|
11363 | /* confdefs.h. */ |
---|
11364 | _ACEOF |
---|
11365 | cat confdefs.h >>conftest.$ac_ext |
---|
11366 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11367 | /* end confdefs.h. */ |
---|
11368 | |
---|
11369 | /* Override any GCC internal prototype to avoid an error. |
---|
11370 | Use char because int might match the return type of a GCC |
---|
11371 | builtin and then its argument prototype would still apply. */ |
---|
11372 | #ifdef __cplusplus |
---|
11373 | extern "C" |
---|
11374 | #endif |
---|
11375 | char vga_init (); |
---|
11376 | int |
---|
11377 | main () |
---|
11378 | { |
---|
11379 | return vga_init (); |
---|
11380 | ; |
---|
11381 | return 0; |
---|
11382 | } |
---|
11383 | _ACEOF |
---|
11384 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11385 | if { (ac_try="$ac_link" |
---|
11386 | case "(($ac_try" in |
---|
11387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11388 | *) ac_try_echo=$ac_try;; |
---|
11389 | esac |
---|
11390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11391 | (eval "$ac_link") 2>conftest.er1 |
---|
11392 | ac_status=$? |
---|
11393 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11394 | rm -f conftest.er1 |
---|
11395 | cat conftest.err >&5 |
---|
11396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11397 | (exit $ac_status); } && { |
---|
11398 | test -z "$ac_c_werror_flag" || |
---|
11399 | test ! -s conftest.err |
---|
11400 | } && test -s conftest$ac_exeext && |
---|
11401 | $as_test_x conftest$ac_exeext; then |
---|
11402 | ac_cv_lib_vga_vga_init=yes |
---|
11403 | else |
---|
11404 | echo "$as_me: failed program was:" >&5 |
---|
11405 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11406 | |
---|
11407 | ac_cv_lib_vga_vga_init=no |
---|
11408 | fi |
---|
11409 | |
---|
11410 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11411 | conftest$ac_exeext conftest.$ac_ext |
---|
11412 | LIBS=$ac_check_lib_save_LIBS |
---|
11413 | fi |
---|
11414 | { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5 |
---|
11415 | echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6; } |
---|
11416 | if test $ac_cv_lib_vga_vga_init = yes; then |
---|
11417 | cat >>confdefs.h <<_ACEOF |
---|
11418 | #define HAVE_LIBVGA 1 |
---|
11419 | _ACEOF |
---|
11420 | |
---|
11421 | LIBS="-lvga $LIBS" |
---|
11422 | |
---|
11423 | else |
---|
11424 | { { echo "$as_me:$LINENO: error: the SVGALIB library is missing" >&5 |
---|
11425 | echo "$as_me: error: the SVGALIB library is missing" >&2;} |
---|
11426 | { (exit 1); exit 1; }; } |
---|
11427 | fi |
---|
11428 | |
---|
11429 | { echo "$as_me:$LINENO: checking for svgalib version" >&5 |
---|
11430 | echo $ECHO_N "checking for svgalib version... $ECHO_C" >&6; } |
---|
11431 | cat >conftest.$ac_ext <<_ACEOF |
---|
11432 | /* confdefs.h. */ |
---|
11433 | _ACEOF |
---|
11434 | cat confdefs.h >>conftest.$ac_ext |
---|
11435 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11436 | /* end confdefs.h. */ |
---|
11437 | |
---|
11438 | #include <vga.h> |
---|
11439 | |
---|
11440 | int |
---|
11441 | main () |
---|
11442 | { |
---|
11443 | |
---|
11444 | #if !defined(SVGALIB_VER) || (SVGALIB_VER<0x010900) |
---|
11445 | choke me |
---|
11446 | #endif |
---|
11447 | |
---|
11448 | ; |
---|
11449 | return 0; |
---|
11450 | } |
---|
11451 | _ACEOF |
---|
11452 | rm -f conftest.$ac_objext |
---|
11453 | if { (ac_try="$ac_compile" |
---|
11454 | case "(($ac_try" in |
---|
11455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11456 | *) ac_try_echo=$ac_try;; |
---|
11457 | esac |
---|
11458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11459 | (eval "$ac_compile") 2>conftest.er1 |
---|
11460 | ac_status=$? |
---|
11461 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11462 | rm -f conftest.er1 |
---|
11463 | cat conftest.err >&5 |
---|
11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11465 | (exit $ac_status); } && { |
---|
11466 | test -z "$ac_c_werror_flag" || |
---|
11467 | test ! -s conftest.err |
---|
11468 | } && test -s conftest.$ac_objext; then |
---|
11469 | : |
---|
11470 | else |
---|
11471 | echo "$as_me: failed program was:" >&5 |
---|
11472 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11473 | |
---|
11474 | { { echo "$as_me:$LINENO: error: the SVGALIB library is too old. Please upgrade to the 1.9 or 2.0 version" >&5 |
---|
11475 | echo "$as_me: error: the SVGALIB library is too old. Please upgrade to the 1.9 or 2.0 version" >&2;} |
---|
11476 | { (exit 1); exit 1; }; } |
---|
11477 | fi |
---|
11478 | |
---|
11479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11480 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
11481 | echo "${ECHO_T}yes" >&6; } |
---|
11482 | fi |
---|
11483 | if test $ac_lib_svgalib = yes; then |
---|
11484 | ac_lib_video="$ac_lib_video svgalib" |
---|
11485 | ac_lib_keyboard="$ac_lib_keyboard svgalib" |
---|
11486 | ac_lib_mouse="$ac_lib_mouse svgalib" |
---|
11487 | ac_lib_joystick="$ac_lib_joystick svgalib" |
---|
11488 | ac_lib_direct_flag=yes |
---|
11489 | ac_lib_video_flag=yes |
---|
11490 | ac_lib_keyboard_flag=yes |
---|
11491 | fi |
---|
11492 | CONF_LIB_SVGALIB=$ac_lib_svgalib |
---|
11493 | |
---|
11494 | |
---|
11495 | # Checks for fb |
---|
11496 | # Check whether --enable-fb was given. |
---|
11497 | if test "${enable_fb+set}" = set; then |
---|
11498 | enableval=$enable_fb; ac_lib_fb=$enableval |
---|
11499 | else |
---|
11500 | ac_lib_fb=auto |
---|
11501 | |
---|
11502 | fi |
---|
11503 | |
---|
11504 | if test $ac_lib_fb = auto; then |
---|
11505 | { echo "$as_me:$LINENO: checking for FrameBuffer" >&5 |
---|
11506 | echo $ECHO_N "checking for FrameBuffer... $ECHO_C" >&6; } |
---|
11507 | cat >conftest.$ac_ext <<_ACEOF |
---|
11508 | /* confdefs.h. */ |
---|
11509 | _ACEOF |
---|
11510 | cat confdefs.h >>conftest.$ac_ext |
---|
11511 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11512 | /* end confdefs.h. */ |
---|
11513 | |
---|
11514 | #include <linux/fb.h> |
---|
11515 | |
---|
11516 | int |
---|
11517 | main () |
---|
11518 | { |
---|
11519 | |
---|
11520 | struct fb_var_screeninfo dummy; |
---|
11521 | |
---|
11522 | ; |
---|
11523 | return 0; |
---|
11524 | } |
---|
11525 | _ACEOF |
---|
11526 | rm -f conftest.$ac_objext |
---|
11527 | if { (ac_try="$ac_compile" |
---|
11528 | case "(($ac_try" in |
---|
11529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11530 | *) ac_try_echo=$ac_try;; |
---|
11531 | esac |
---|
11532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11533 | (eval "$ac_compile") 2>conftest.er1 |
---|
11534 | ac_status=$? |
---|
11535 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11536 | rm -f conftest.er1 |
---|
11537 | cat conftest.err >&5 |
---|
11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11539 | (exit $ac_status); } && { |
---|
11540 | test -z "$ac_c_werror_flag" || |
---|
11541 | test ! -s conftest.err |
---|
11542 | } && test -s conftest.$ac_objext; then |
---|
11543 | ac_lib_fb=yes |
---|
11544 | else |
---|
11545 | echo "$as_me: failed program was:" >&5 |
---|
11546 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11547 | |
---|
11548 | ac_lib_fb=no |
---|
11549 | fi |
---|
11550 | |
---|
11551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11552 | { echo "$as_me:$LINENO: result: $ac_lib_fb" >&5 |
---|
11553 | echo "${ECHO_T}$ac_lib_fb" >&6; } |
---|
11554 | elif test $ac_lib_fb = yes; then |
---|
11555 | { echo "$as_me:$LINENO: checking for FrameBuffer" >&5 |
---|
11556 | echo $ECHO_N "checking for FrameBuffer... $ECHO_C" >&6; } |
---|
11557 | cat >conftest.$ac_ext <<_ACEOF |
---|
11558 | /* confdefs.h. */ |
---|
11559 | _ACEOF |
---|
11560 | cat confdefs.h >>conftest.$ac_ext |
---|
11561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11562 | /* end confdefs.h. */ |
---|
11563 | |
---|
11564 | #include <linux/fb.h> |
---|
11565 | |
---|
11566 | int |
---|
11567 | main () |
---|
11568 | { |
---|
11569 | |
---|
11570 | struct fb_var_screeninfo dummy; |
---|
11571 | |
---|
11572 | ; |
---|
11573 | return 0; |
---|
11574 | } |
---|
11575 | _ACEOF |
---|
11576 | rm -f conftest.$ac_objext |
---|
11577 | if { (ac_try="$ac_compile" |
---|
11578 | case "(($ac_try" in |
---|
11579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11580 | *) ac_try_echo=$ac_try;; |
---|
11581 | esac |
---|
11582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11583 | (eval "$ac_compile") 2>conftest.er1 |
---|
11584 | ac_status=$? |
---|
11585 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11586 | rm -f conftest.er1 |
---|
11587 | cat conftest.err >&5 |
---|
11588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11589 | (exit $ac_status); } && { |
---|
11590 | test -z "$ac_c_werror_flag" || |
---|
11591 | test ! -s conftest.err |
---|
11592 | } && test -s conftest.$ac_objext; then |
---|
11593 | : |
---|
11594 | else |
---|
11595 | echo "$as_me: failed program was:" >&5 |
---|
11596 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11597 | |
---|
11598 | { { echo "$as_me:$LINENO: error: the Frame Buffer library is missing" >&5 |
---|
11599 | echo "$as_me: error: the Frame Buffer library is missing" >&2;} |
---|
11600 | { (exit 1); exit 1; }; } |
---|
11601 | fi |
---|
11602 | |
---|
11603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11604 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
11605 | echo "${ECHO_T}yes" >&6; } |
---|
11606 | fi |
---|
11607 | if test $ac_lib_fb = yes; then |
---|
11608 | ac_lib_video="$ac_lib_video fb" |
---|
11609 | ac_lib_direct_flag=yes |
---|
11610 | ac_lib_video_flag=yes |
---|
11611 | fi |
---|
11612 | CONF_LIB_FB=$ac_lib_fb |
---|
11613 | |
---|
11614 | |
---|
11615 | # Checks for alsa |
---|
11616 | # Check whether --enable-alsa was given. |
---|
11617 | if test "${enable_alsa+set}" = set; then |
---|
11618 | enableval=$enable_alsa; ac_lib_alsa=$enableval |
---|
11619 | else |
---|
11620 | ac_lib_alsa=auto |
---|
11621 | |
---|
11622 | fi |
---|
11623 | |
---|
11624 | if test $ac_lib_alsa = auto; then |
---|
11625 | { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
---|
11626 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; } |
---|
11627 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
---|
11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11629 | else |
---|
11630 | ac_check_lib_save_LIBS=$LIBS |
---|
11631 | LIBS="-lasound -lm |
---|
11632 | $LIBS" |
---|
11633 | cat >conftest.$ac_ext <<_ACEOF |
---|
11634 | /* confdefs.h. */ |
---|
11635 | _ACEOF |
---|
11636 | cat confdefs.h >>conftest.$ac_ext |
---|
11637 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11638 | /* end confdefs.h. */ |
---|
11639 | |
---|
11640 | /* Override any GCC internal prototype to avoid an error. |
---|
11641 | Use char because int might match the return type of a GCC |
---|
11642 | builtin and then its argument prototype would still apply. */ |
---|
11643 | #ifdef __cplusplus |
---|
11644 | extern "C" |
---|
11645 | #endif |
---|
11646 | char snd_pcm_open (); |
---|
11647 | int |
---|
11648 | main () |
---|
11649 | { |
---|
11650 | return snd_pcm_open (); |
---|
11651 | ; |
---|
11652 | return 0; |
---|
11653 | } |
---|
11654 | _ACEOF |
---|
11655 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11656 | if { (ac_try="$ac_link" |
---|
11657 | case "(($ac_try" in |
---|
11658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11659 | *) ac_try_echo=$ac_try;; |
---|
11660 | esac |
---|
11661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11662 | (eval "$ac_link") 2>conftest.er1 |
---|
11663 | ac_status=$? |
---|
11664 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11665 | rm -f conftest.er1 |
---|
11666 | cat conftest.err >&5 |
---|
11667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11668 | (exit $ac_status); } && { |
---|
11669 | test -z "$ac_c_werror_flag" || |
---|
11670 | test ! -s conftest.err |
---|
11671 | } && test -s conftest$ac_exeext && |
---|
11672 | $as_test_x conftest$ac_exeext; then |
---|
11673 | ac_cv_lib_asound_snd_pcm_open=yes |
---|
11674 | else |
---|
11675 | echo "$as_me: failed program was:" >&5 |
---|
11676 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11677 | |
---|
11678 | ac_cv_lib_asound_snd_pcm_open=no |
---|
11679 | fi |
---|
11680 | |
---|
11681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11682 | conftest$ac_exeext conftest.$ac_ext |
---|
11683 | LIBS=$ac_check_lib_save_LIBS |
---|
11684 | fi |
---|
11685 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
---|
11686 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; } |
---|
11687 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
---|
11688 | ac_lib_alsa=yes |
---|
11689 | else |
---|
11690 | ac_lib_alsa=no |
---|
11691 | fi |
---|
11692 | |
---|
11693 | if test $ac_lib_alsa = yes; then |
---|
11694 | { echo "$as_me:$LINENO: checking for ALSA" >&5 |
---|
11695 | echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; } |
---|
11696 | cat >conftest.$ac_ext <<_ACEOF |
---|
11697 | /* confdefs.h. */ |
---|
11698 | _ACEOF |
---|
11699 | cat confdefs.h >>conftest.$ac_ext |
---|
11700 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11701 | /* end confdefs.h. */ |
---|
11702 | |
---|
11703 | #include <alsa/asoundlib.h> |
---|
11704 | |
---|
11705 | int |
---|
11706 | main () |
---|
11707 | { |
---|
11708 | |
---|
11709 | #if SND_LIB_VERSION < ((0<<16)|(9<<8)|0) |
---|
11710 | choke me |
---|
11711 | #endif |
---|
11712 | |
---|
11713 | ; |
---|
11714 | return 0; |
---|
11715 | } |
---|
11716 | _ACEOF |
---|
11717 | rm -f conftest.$ac_objext |
---|
11718 | if { (ac_try="$ac_compile" |
---|
11719 | case "(($ac_try" in |
---|
11720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11721 | *) ac_try_echo=$ac_try;; |
---|
11722 | esac |
---|
11723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11724 | (eval "$ac_compile") 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); } && { |
---|
11731 | test -z "$ac_c_werror_flag" || |
---|
11732 | test ! -s conftest.err |
---|
11733 | } && test -s conftest.$ac_objext; then |
---|
11734 | ac_lib_alsa=yes |
---|
11735 | else |
---|
11736 | echo "$as_me: failed program was:" >&5 |
---|
11737 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11738 | |
---|
11739 | ac_lib_alsa=no |
---|
11740 | fi |
---|
11741 | |
---|
11742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11743 | { echo "$as_me:$LINENO: result: $ac_lib_alsa" >&5 |
---|
11744 | echo "${ECHO_T}$ac_lib_alsa" >&6; } |
---|
11745 | fi |
---|
11746 | elif test $ac_lib_alsa = yes; then |
---|
11747 | |
---|
11748 | { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5 |
---|
11749 | echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; } |
---|
11750 | if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then |
---|
11751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
11752 | else |
---|
11753 | ac_check_lib_save_LIBS=$LIBS |
---|
11754 | LIBS="-lasound -lm |
---|
11755 | $LIBS" |
---|
11756 | cat >conftest.$ac_ext <<_ACEOF |
---|
11757 | /* confdefs.h. */ |
---|
11758 | _ACEOF |
---|
11759 | cat confdefs.h >>conftest.$ac_ext |
---|
11760 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11761 | /* end confdefs.h. */ |
---|
11762 | |
---|
11763 | /* Override any GCC internal prototype to avoid an error. |
---|
11764 | Use char because int might match the return type of a GCC |
---|
11765 | builtin and then its argument prototype would still apply. */ |
---|
11766 | #ifdef __cplusplus |
---|
11767 | extern "C" |
---|
11768 | #endif |
---|
11769 | char snd_pcm_open (); |
---|
11770 | int |
---|
11771 | main () |
---|
11772 | { |
---|
11773 | return snd_pcm_open (); |
---|
11774 | ; |
---|
11775 | return 0; |
---|
11776 | } |
---|
11777 | _ACEOF |
---|
11778 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
11779 | if { (ac_try="$ac_link" |
---|
11780 | case "(($ac_try" in |
---|
11781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11782 | *) ac_try_echo=$ac_try;; |
---|
11783 | esac |
---|
11784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11785 | (eval "$ac_link") 2>conftest.er1 |
---|
11786 | ac_status=$? |
---|
11787 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11788 | rm -f conftest.er1 |
---|
11789 | cat conftest.err >&5 |
---|
11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11791 | (exit $ac_status); } && { |
---|
11792 | test -z "$ac_c_werror_flag" || |
---|
11793 | test ! -s conftest.err |
---|
11794 | } && test -s conftest$ac_exeext && |
---|
11795 | $as_test_x conftest$ac_exeext; then |
---|
11796 | ac_cv_lib_asound_snd_pcm_open=yes |
---|
11797 | else |
---|
11798 | echo "$as_me: failed program was:" >&5 |
---|
11799 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11800 | |
---|
11801 | ac_cv_lib_asound_snd_pcm_open=no |
---|
11802 | fi |
---|
11803 | |
---|
11804 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
11805 | conftest$ac_exeext conftest.$ac_ext |
---|
11806 | LIBS=$ac_check_lib_save_LIBS |
---|
11807 | fi |
---|
11808 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5 |
---|
11809 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; } |
---|
11810 | if test $ac_cv_lib_asound_snd_pcm_open = yes; then |
---|
11811 | cat >>confdefs.h <<_ACEOF |
---|
11812 | #define HAVE_LIBASOUND 1 |
---|
11813 | _ACEOF |
---|
11814 | |
---|
11815 | LIBS="-lasound $LIBS" |
---|
11816 | |
---|
11817 | else |
---|
11818 | { { echo "$as_me:$LINENO: error: the ALSA library is missing" >&5 |
---|
11819 | echo "$as_me: error: the ALSA library is missing" >&2;} |
---|
11820 | { (exit 1); exit 1; }; } |
---|
11821 | fi |
---|
11822 | |
---|
11823 | { echo "$as_me:$LINENO: checking for ALSA version" >&5 |
---|
11824 | echo $ECHO_N "checking for ALSA version... $ECHO_C" >&6; } |
---|
11825 | cat >conftest.$ac_ext <<_ACEOF |
---|
11826 | /* confdefs.h. */ |
---|
11827 | _ACEOF |
---|
11828 | cat confdefs.h >>conftest.$ac_ext |
---|
11829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11830 | /* end confdefs.h. */ |
---|
11831 | |
---|
11832 | #include <alsa/asoundlib.h> |
---|
11833 | |
---|
11834 | int |
---|
11835 | main () |
---|
11836 | { |
---|
11837 | |
---|
11838 | #if SND_LIB_VERSION < ((0<<16)|(9<<8)|0) |
---|
11839 | choke me |
---|
11840 | #endif |
---|
11841 | |
---|
11842 | ; |
---|
11843 | return 0; |
---|
11844 | } |
---|
11845 | _ACEOF |
---|
11846 | rm -f conftest.$ac_objext |
---|
11847 | if { (ac_try="$ac_compile" |
---|
11848 | case "(($ac_try" in |
---|
11849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11850 | *) ac_try_echo=$ac_try;; |
---|
11851 | esac |
---|
11852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11853 | (eval "$ac_compile") 2>conftest.er1 |
---|
11854 | ac_status=$? |
---|
11855 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11856 | rm -f conftest.er1 |
---|
11857 | cat conftest.err >&5 |
---|
11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11859 | (exit $ac_status); } && { |
---|
11860 | test -z "$ac_c_werror_flag" || |
---|
11861 | test ! -s conftest.err |
---|
11862 | } && test -s conftest.$ac_objext; then |
---|
11863 | : |
---|
11864 | else |
---|
11865 | echo "$as_me: failed program was:" >&5 |
---|
11866 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11867 | |
---|
11868 | { { echo "$as_me:$LINENO: error: the ALSA library is too old" >&5 |
---|
11869 | echo "$as_me: error: the ALSA library is too old" >&2;} |
---|
11870 | { (exit 1); exit 1; }; } |
---|
11871 | fi |
---|
11872 | |
---|
11873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11874 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
11875 | echo "${ECHO_T}yes" >&6; } |
---|
11876 | fi |
---|
11877 | if test $ac_lib_alsa = yes; then |
---|
11878 | ac_lib_sound="$ac_lib_sound alsa" |
---|
11879 | ac_lib_sound_flag=yes |
---|
11880 | fi |
---|
11881 | CONF_LIB_ALSA=$ac_lib_alsa |
---|
11882 | |
---|
11883 | |
---|
11884 | # Checks for oss |
---|
11885 | # Check whether --enable-oss was given. |
---|
11886 | if test "${enable_oss+set}" = set; then |
---|
11887 | enableval=$enable_oss; ac_lib_oss=$enableval |
---|
11888 | else |
---|
11889 | ac_lib_oss=auto |
---|
11890 | |
---|
11891 | fi |
---|
11892 | |
---|
11893 | if test $ac_lib_oss = auto; then |
---|
11894 | { echo "$as_me:$LINENO: checking for OSS" >&5 |
---|
11895 | echo $ECHO_N "checking for OSS... $ECHO_C" >&6; } |
---|
11896 | cat >conftest.$ac_ext <<_ACEOF |
---|
11897 | /* confdefs.h. */ |
---|
11898 | _ACEOF |
---|
11899 | cat confdefs.h >>conftest.$ac_ext |
---|
11900 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11901 | /* end confdefs.h. */ |
---|
11902 | |
---|
11903 | #include <sys/soundcard.h> |
---|
11904 | |
---|
11905 | int |
---|
11906 | main () |
---|
11907 | { |
---|
11908 | |
---|
11909 | int dummy = SNDCTL_DSP_SETFMT; |
---|
11910 | |
---|
11911 | ; |
---|
11912 | return 0; |
---|
11913 | } |
---|
11914 | _ACEOF |
---|
11915 | rm -f conftest.$ac_objext |
---|
11916 | if { (ac_try="$ac_compile" |
---|
11917 | case "(($ac_try" in |
---|
11918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11919 | *) ac_try_echo=$ac_try;; |
---|
11920 | esac |
---|
11921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11922 | (eval "$ac_compile") 2>conftest.er1 |
---|
11923 | ac_status=$? |
---|
11924 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11925 | rm -f conftest.er1 |
---|
11926 | cat conftest.err >&5 |
---|
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11928 | (exit $ac_status); } && { |
---|
11929 | test -z "$ac_c_werror_flag" || |
---|
11930 | test ! -s conftest.err |
---|
11931 | } && test -s conftest.$ac_objext; then |
---|
11932 | ac_lib_oss=yes |
---|
11933 | else |
---|
11934 | echo "$as_me: failed program was:" >&5 |
---|
11935 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11936 | |
---|
11937 | ac_lib_oss=no |
---|
11938 | fi |
---|
11939 | |
---|
11940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11941 | { echo "$as_me:$LINENO: result: $ac_lib_oss" >&5 |
---|
11942 | echo "${ECHO_T}$ac_lib_oss" >&6; } |
---|
11943 | elif test $ac_lib_oss = yes; then |
---|
11944 | { echo "$as_me:$LINENO: checking for OSS" >&5 |
---|
11945 | echo $ECHO_N "checking for OSS... $ECHO_C" >&6; } |
---|
11946 | cat >conftest.$ac_ext <<_ACEOF |
---|
11947 | /* confdefs.h. */ |
---|
11948 | _ACEOF |
---|
11949 | cat confdefs.h >>conftest.$ac_ext |
---|
11950 | cat >>conftest.$ac_ext <<_ACEOF |
---|
11951 | /* end confdefs.h. */ |
---|
11952 | |
---|
11953 | #include <sys/soundcard.h> |
---|
11954 | |
---|
11955 | int |
---|
11956 | main () |
---|
11957 | { |
---|
11958 | |
---|
11959 | int dummy = SNDCTL_DSP_SETFMT; |
---|
11960 | |
---|
11961 | ; |
---|
11962 | return 0; |
---|
11963 | } |
---|
11964 | _ACEOF |
---|
11965 | rm -f conftest.$ac_objext |
---|
11966 | if { (ac_try="$ac_compile" |
---|
11967 | case "(($ac_try" in |
---|
11968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
11969 | *) ac_try_echo=$ac_try;; |
---|
11970 | esac |
---|
11971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
11972 | (eval "$ac_compile") 2>conftest.er1 |
---|
11973 | ac_status=$? |
---|
11974 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
11975 | rm -f conftest.er1 |
---|
11976 | cat conftest.err >&5 |
---|
11977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
11978 | (exit $ac_status); } && { |
---|
11979 | test -z "$ac_c_werror_flag" || |
---|
11980 | test ! -s conftest.err |
---|
11981 | } && test -s conftest.$ac_objext; then |
---|
11982 | : |
---|
11983 | else |
---|
11984 | echo "$as_me: failed program was:" >&5 |
---|
11985 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
11986 | |
---|
11987 | { { echo "$as_me:$LINENO: error: the OSS library is missing" >&5 |
---|
11988 | echo "$as_me: error: the OSS library is missing" >&2;} |
---|
11989 | { (exit 1); exit 1; }; } |
---|
11990 | fi |
---|
11991 | |
---|
11992 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11993 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
11994 | echo "${ECHO_T}yes" >&6; } |
---|
11995 | fi |
---|
11996 | if test $ac_lib_oss = yes; then |
---|
11997 | ac_lib_sound="$ac_lib_sound oss" |
---|
11998 | ac_lib_sound_flag=yes |
---|
11999 | fi |
---|
12000 | CONF_LIB_OSS=$ac_lib_oss |
---|
12001 | |
---|
12002 | |
---|
12003 | # Checks for pthread |
---|
12004 | # Check whether --enable-pthread was given. |
---|
12005 | if test "${enable_pthread+set}" = set; then |
---|
12006 | enableval=$enable_pthread; ac_lib_pthread=$enableval |
---|
12007 | else |
---|
12008 | ac_lib_pthread=auto |
---|
12009 | |
---|
12010 | fi |
---|
12011 | |
---|
12012 | if test $ac_lib_pthread = auto; then |
---|
12013 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
---|
12014 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
---|
12015 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
---|
12016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12017 | else |
---|
12018 | ac_check_lib_save_LIBS=$LIBS |
---|
12019 | LIBS="-lpthread |
---|
12020 | $LIBS" |
---|
12021 | cat >conftest.$ac_ext <<_ACEOF |
---|
12022 | /* confdefs.h. */ |
---|
12023 | _ACEOF |
---|
12024 | cat confdefs.h >>conftest.$ac_ext |
---|
12025 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12026 | /* end confdefs.h. */ |
---|
12027 | |
---|
12028 | /* Override any GCC internal prototype to avoid an error. |
---|
12029 | Use char because int might match the return type of a GCC |
---|
12030 | builtin and then its argument prototype would still apply. */ |
---|
12031 | #ifdef __cplusplus |
---|
12032 | extern "C" |
---|
12033 | #endif |
---|
12034 | char pthread_create (); |
---|
12035 | int |
---|
12036 | main () |
---|
12037 | { |
---|
12038 | return pthread_create (); |
---|
12039 | ; |
---|
12040 | return 0; |
---|
12041 | } |
---|
12042 | _ACEOF |
---|
12043 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12044 | if { (ac_try="$ac_link" |
---|
12045 | case "(($ac_try" in |
---|
12046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12047 | *) ac_try_echo=$ac_try;; |
---|
12048 | esac |
---|
12049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12050 | (eval "$ac_link") 2>conftest.er1 |
---|
12051 | ac_status=$? |
---|
12052 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12053 | rm -f conftest.er1 |
---|
12054 | cat conftest.err >&5 |
---|
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12056 | (exit $ac_status); } && { |
---|
12057 | test -z "$ac_c_werror_flag" || |
---|
12058 | test ! -s conftest.err |
---|
12059 | } && test -s conftest$ac_exeext && |
---|
12060 | $as_test_x conftest$ac_exeext; then |
---|
12061 | ac_cv_lib_pthread_pthread_create=yes |
---|
12062 | else |
---|
12063 | echo "$as_me: failed program was:" >&5 |
---|
12064 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12065 | |
---|
12066 | ac_cv_lib_pthread_pthread_create=no |
---|
12067 | fi |
---|
12068 | |
---|
12069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12070 | conftest$ac_exeext conftest.$ac_ext |
---|
12071 | LIBS=$ac_check_lib_save_LIBS |
---|
12072 | fi |
---|
12073 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
---|
12074 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
---|
12075 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
---|
12076 | ac_lib_pthread=yes |
---|
12077 | else |
---|
12078 | ac_lib_pthread=no |
---|
12079 | fi |
---|
12080 | |
---|
12081 | elif test $ac_lib_pthread = yes; then |
---|
12082 | |
---|
12083 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
---|
12084 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
---|
12085 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
---|
12086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12087 | else |
---|
12088 | ac_check_lib_save_LIBS=$LIBS |
---|
12089 | LIBS="-lpthread |
---|
12090 | $LIBS" |
---|
12091 | cat >conftest.$ac_ext <<_ACEOF |
---|
12092 | /* confdefs.h. */ |
---|
12093 | _ACEOF |
---|
12094 | cat confdefs.h >>conftest.$ac_ext |
---|
12095 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12096 | /* end confdefs.h. */ |
---|
12097 | |
---|
12098 | /* Override any GCC internal prototype to avoid an error. |
---|
12099 | Use char because int might match the return type of a GCC |
---|
12100 | builtin and then its argument prototype would still apply. */ |
---|
12101 | #ifdef __cplusplus |
---|
12102 | extern "C" |
---|
12103 | #endif |
---|
12104 | char pthread_create (); |
---|
12105 | int |
---|
12106 | main () |
---|
12107 | { |
---|
12108 | return pthread_create (); |
---|
12109 | ; |
---|
12110 | return 0; |
---|
12111 | } |
---|
12112 | _ACEOF |
---|
12113 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12114 | if { (ac_try="$ac_link" |
---|
12115 | case "(($ac_try" in |
---|
12116 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12117 | *) ac_try_echo=$ac_try;; |
---|
12118 | esac |
---|
12119 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12120 | (eval "$ac_link") 2>conftest.er1 |
---|
12121 | ac_status=$? |
---|
12122 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12123 | rm -f conftest.er1 |
---|
12124 | cat conftest.err >&5 |
---|
12125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12126 | (exit $ac_status); } && { |
---|
12127 | test -z "$ac_c_werror_flag" || |
---|
12128 | test ! -s conftest.err |
---|
12129 | } && test -s conftest$ac_exeext && |
---|
12130 | $as_test_x conftest$ac_exeext; then |
---|
12131 | ac_cv_lib_pthread_pthread_create=yes |
---|
12132 | else |
---|
12133 | echo "$as_me: failed program was:" >&5 |
---|
12134 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12135 | |
---|
12136 | ac_cv_lib_pthread_pthread_create=no |
---|
12137 | fi |
---|
12138 | |
---|
12139 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12140 | conftest$ac_exeext conftest.$ac_ext |
---|
12141 | LIBS=$ac_check_lib_save_LIBS |
---|
12142 | fi |
---|
12143 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
---|
12144 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
---|
12145 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
---|
12146 | cat >>confdefs.h <<_ACEOF |
---|
12147 | #define HAVE_LIBPTHREAD 1 |
---|
12148 | _ACEOF |
---|
12149 | |
---|
12150 | LIBS="-lpthread $LIBS" |
---|
12151 | |
---|
12152 | else |
---|
12153 | { { echo "$as_me:$LINENO: error: the pthread library is missing" >&5 |
---|
12154 | echo "$as_me: error: the pthread library is missing" >&2;} |
---|
12155 | { (exit 1); exit 1; }; } |
---|
12156 | fi |
---|
12157 | |
---|
12158 | fi |
---|
12159 | if test $ac_lib_pthread = yes; then |
---|
12160 | ac_lib_other="$ac_lib_other pthread" |
---|
12161 | fi |
---|
12162 | CONF_LIB_PTHREAD=$ac_lib_pthread |
---|
12163 | |
---|
12164 | |
---|
12165 | # Checks for slang |
---|
12166 | # Check whether --enable-slang was given. |
---|
12167 | if test "${enable_slang+set}" = set; then |
---|
12168 | enableval=$enable_slang; ac_lib_slang=$enableval |
---|
12169 | else |
---|
12170 | ac_lib_slang=auto |
---|
12171 | |
---|
12172 | fi |
---|
12173 | |
---|
12174 | if test $ac_lib_slang = auto; then |
---|
12175 | { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5 |
---|
12176 | echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; } |
---|
12177 | if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then |
---|
12178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12179 | else |
---|
12180 | ac_check_lib_save_LIBS=$LIBS |
---|
12181 | LIBS="-lslang |
---|
12182 | $LIBS" |
---|
12183 | cat >conftest.$ac_ext <<_ACEOF |
---|
12184 | /* confdefs.h. */ |
---|
12185 | _ACEOF |
---|
12186 | cat confdefs.h >>conftest.$ac_ext |
---|
12187 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12188 | /* end confdefs.h. */ |
---|
12189 | |
---|
12190 | /* Override any GCC internal prototype to avoid an error. |
---|
12191 | Use char because int might match the return type of a GCC |
---|
12192 | builtin and then its argument prototype would still apply. */ |
---|
12193 | #ifdef __cplusplus |
---|
12194 | extern "C" |
---|
12195 | #endif |
---|
12196 | char SLang_init_tty (); |
---|
12197 | int |
---|
12198 | main () |
---|
12199 | { |
---|
12200 | return SLang_init_tty (); |
---|
12201 | ; |
---|
12202 | return 0; |
---|
12203 | } |
---|
12204 | _ACEOF |
---|
12205 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12206 | if { (ac_try="$ac_link" |
---|
12207 | case "(($ac_try" in |
---|
12208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12209 | *) ac_try_echo=$ac_try;; |
---|
12210 | esac |
---|
12211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12212 | (eval "$ac_link") 2>conftest.er1 |
---|
12213 | ac_status=$? |
---|
12214 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12215 | rm -f conftest.er1 |
---|
12216 | cat conftest.err >&5 |
---|
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12218 | (exit $ac_status); } && { |
---|
12219 | test -z "$ac_c_werror_flag" || |
---|
12220 | test ! -s conftest.err |
---|
12221 | } && test -s conftest$ac_exeext && |
---|
12222 | $as_test_x conftest$ac_exeext; then |
---|
12223 | ac_cv_lib_slang_SLang_init_tty=yes |
---|
12224 | else |
---|
12225 | echo "$as_me: failed program was:" >&5 |
---|
12226 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12227 | |
---|
12228 | ac_cv_lib_slang_SLang_init_tty=no |
---|
12229 | fi |
---|
12230 | |
---|
12231 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12232 | conftest$ac_exeext conftest.$ac_ext |
---|
12233 | LIBS=$ac_check_lib_save_LIBS |
---|
12234 | fi |
---|
12235 | { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5 |
---|
12236 | echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; } |
---|
12237 | if test $ac_cv_lib_slang_SLang_init_tty = yes; then |
---|
12238 | ac_lib_slang=yes |
---|
12239 | else |
---|
12240 | ac_lib_slang=no |
---|
12241 | fi |
---|
12242 | |
---|
12243 | elif test $ac_lib_slang = yes; then |
---|
12244 | |
---|
12245 | { echo "$as_me:$LINENO: checking for SLang_init_tty in -lslang" >&5 |
---|
12246 | echo $ECHO_N "checking for SLang_init_tty in -lslang... $ECHO_C" >&6; } |
---|
12247 | if test "${ac_cv_lib_slang_SLang_init_tty+set}" = set; then |
---|
12248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12249 | else |
---|
12250 | ac_check_lib_save_LIBS=$LIBS |
---|
12251 | LIBS="-lslang |
---|
12252 | $LIBS" |
---|
12253 | cat >conftest.$ac_ext <<_ACEOF |
---|
12254 | /* confdefs.h. */ |
---|
12255 | _ACEOF |
---|
12256 | cat confdefs.h >>conftest.$ac_ext |
---|
12257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12258 | /* end confdefs.h. */ |
---|
12259 | |
---|
12260 | /* Override any GCC internal prototype to avoid an error. |
---|
12261 | Use char because int might match the return type of a GCC |
---|
12262 | builtin and then its argument prototype would still apply. */ |
---|
12263 | #ifdef __cplusplus |
---|
12264 | extern "C" |
---|
12265 | #endif |
---|
12266 | char SLang_init_tty (); |
---|
12267 | int |
---|
12268 | main () |
---|
12269 | { |
---|
12270 | return SLang_init_tty (); |
---|
12271 | ; |
---|
12272 | return 0; |
---|
12273 | } |
---|
12274 | _ACEOF |
---|
12275 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12276 | if { (ac_try="$ac_link" |
---|
12277 | case "(($ac_try" in |
---|
12278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12279 | *) ac_try_echo=$ac_try;; |
---|
12280 | esac |
---|
12281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12282 | (eval "$ac_link") 2>conftest.er1 |
---|
12283 | ac_status=$? |
---|
12284 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12285 | rm -f conftest.er1 |
---|
12286 | cat conftest.err >&5 |
---|
12287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12288 | (exit $ac_status); } && { |
---|
12289 | test -z "$ac_c_werror_flag" || |
---|
12290 | test ! -s conftest.err |
---|
12291 | } && test -s conftest$ac_exeext && |
---|
12292 | $as_test_x conftest$ac_exeext; then |
---|
12293 | ac_cv_lib_slang_SLang_init_tty=yes |
---|
12294 | else |
---|
12295 | echo "$as_me: failed program was:" >&5 |
---|
12296 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12297 | |
---|
12298 | ac_cv_lib_slang_SLang_init_tty=no |
---|
12299 | fi |
---|
12300 | |
---|
12301 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12302 | conftest$ac_exeext conftest.$ac_ext |
---|
12303 | LIBS=$ac_check_lib_save_LIBS |
---|
12304 | fi |
---|
12305 | { echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLang_init_tty" >&5 |
---|
12306 | echo "${ECHO_T}$ac_cv_lib_slang_SLang_init_tty" >&6; } |
---|
12307 | if test $ac_cv_lib_slang_SLang_init_tty = yes; then |
---|
12308 | cat >>confdefs.h <<_ACEOF |
---|
12309 | #define HAVE_LIBSLANG 1 |
---|
12310 | _ACEOF |
---|
12311 | |
---|
12312 | LIBS="-lslang $LIBS" |
---|
12313 | |
---|
12314 | else |
---|
12315 | { { echo "$as_me:$LINENO: error: the sLang library is missing" >&5 |
---|
12316 | echo "$as_me: error: the sLang library is missing" >&2;} |
---|
12317 | { (exit 1); exit 1; }; } |
---|
12318 | fi |
---|
12319 | |
---|
12320 | fi |
---|
12321 | if test $ac_lib_slang = yes; then |
---|
12322 | |
---|
12323 | |
---|
12324 | for ac_header in slang.h slang/slang.h |
---|
12325 | do |
---|
12326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
12327 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
12328 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
12329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
12330 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
12331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12332 | fi |
---|
12333 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
12334 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
12335 | echo "${ECHO_T}$ac_res" >&6; } |
---|
12336 | else |
---|
12337 | # Is the header compilable? |
---|
12338 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
12339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
---|
12340 | cat >conftest.$ac_ext <<_ACEOF |
---|
12341 | /* confdefs.h. */ |
---|
12342 | _ACEOF |
---|
12343 | cat confdefs.h >>conftest.$ac_ext |
---|
12344 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12345 | /* end confdefs.h. */ |
---|
12346 | $ac_includes_default |
---|
12347 | #include <$ac_header> |
---|
12348 | _ACEOF |
---|
12349 | rm -f conftest.$ac_objext |
---|
12350 | if { (ac_try="$ac_compile" |
---|
12351 | case "(($ac_try" in |
---|
12352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12353 | *) ac_try_echo=$ac_try;; |
---|
12354 | esac |
---|
12355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12356 | (eval "$ac_compile") 2>conftest.er1 |
---|
12357 | ac_status=$? |
---|
12358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12359 | rm -f conftest.er1 |
---|
12360 | cat conftest.err >&5 |
---|
12361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12362 | (exit $ac_status); } && { |
---|
12363 | test -z "$ac_c_werror_flag" || |
---|
12364 | test ! -s conftest.err |
---|
12365 | } && test -s conftest.$ac_objext; then |
---|
12366 | ac_header_compiler=yes |
---|
12367 | else |
---|
12368 | echo "$as_me: failed program was:" >&5 |
---|
12369 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12370 | |
---|
12371 | ac_header_compiler=no |
---|
12372 | fi |
---|
12373 | |
---|
12374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
12375 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
12376 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
---|
12377 | |
---|
12378 | # Is the header present? |
---|
12379 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
12380 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
---|
12381 | cat >conftest.$ac_ext <<_ACEOF |
---|
12382 | /* confdefs.h. */ |
---|
12383 | _ACEOF |
---|
12384 | cat confdefs.h >>conftest.$ac_ext |
---|
12385 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12386 | /* end confdefs.h. */ |
---|
12387 | #include <$ac_header> |
---|
12388 | _ACEOF |
---|
12389 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
---|
12390 | case "(($ac_try" in |
---|
12391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12392 | *) ac_try_echo=$ac_try;; |
---|
12393 | esac |
---|
12394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12395 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
---|
12396 | ac_status=$? |
---|
12397 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12398 | rm -f conftest.er1 |
---|
12399 | cat conftest.err >&5 |
---|
12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12401 | (exit $ac_status); } >/dev/null && { |
---|
12402 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
12403 | test ! -s conftest.err |
---|
12404 | }; then |
---|
12405 | ac_header_preproc=yes |
---|
12406 | else |
---|
12407 | echo "$as_me: failed program was:" >&5 |
---|
12408 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12409 | |
---|
12410 | ac_header_preproc=no |
---|
12411 | fi |
---|
12412 | |
---|
12413 | rm -f conftest.err conftest.$ac_ext |
---|
12414 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
12415 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
---|
12416 | |
---|
12417 | # So? What about this header? |
---|
12418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
12419 | yes:no: ) |
---|
12420 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
12421 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
12422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
12423 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
12424 | ac_header_preproc=yes |
---|
12425 | ;; |
---|
12426 | no:yes:* ) |
---|
12427 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
12428 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
12429 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
12430 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
12431 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
12432 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
12433 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
12434 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
12435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
12436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
12437 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
12438 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
12439 | |
---|
12440 | ;; |
---|
12441 | esac |
---|
12442 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
12443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
---|
12444 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
---|
12445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12446 | else |
---|
12447 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
12448 | fi |
---|
12449 | ac_res=`eval echo '${'$as_ac_Header'}'` |
---|
12450 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
---|
12451 | echo "${ECHO_T}$ac_res" >&6; } |
---|
12452 | |
---|
12453 | fi |
---|
12454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
12455 | cat >>confdefs.h <<_ACEOF |
---|
12456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
12457 | _ACEOF |
---|
12458 | break |
---|
12459 | fi |
---|
12460 | |
---|
12461 | done |
---|
12462 | |
---|
12463 | ac_lib_video="$ac_lib_video slang" |
---|
12464 | ac_lib_text_flag=yes |
---|
12465 | fi |
---|
12466 | CONF_LIB_SLANG=$ac_lib_slang |
---|
12467 | |
---|
12468 | |
---|
12469 | # Checks for ncurses |
---|
12470 | # Check whether --enable-ncurses was given. |
---|
12471 | if test "${enable_ncurses+set}" = set; then |
---|
12472 | enableval=$enable_ncurses; ac_lib_ncurses=$enableval |
---|
12473 | else |
---|
12474 | ac_lib_ncurses=auto |
---|
12475 | |
---|
12476 | fi |
---|
12477 | |
---|
12478 | if test $ac_lib_ncurses = auto; then |
---|
12479 | { echo "$as_me:$LINENO: checking for endwin in -lncurses" >&5 |
---|
12480 | echo $ECHO_N "checking for endwin in -lncurses... $ECHO_C" >&6; } |
---|
12481 | if test "${ac_cv_lib_ncurses_endwin+set}" = set; then |
---|
12482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12483 | else |
---|
12484 | ac_check_lib_save_LIBS=$LIBS |
---|
12485 | LIBS="-lncurses |
---|
12486 | $LIBS" |
---|
12487 | cat >conftest.$ac_ext <<_ACEOF |
---|
12488 | /* confdefs.h. */ |
---|
12489 | _ACEOF |
---|
12490 | cat confdefs.h >>conftest.$ac_ext |
---|
12491 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12492 | /* end confdefs.h. */ |
---|
12493 | |
---|
12494 | /* Override any GCC internal prototype to avoid an error. |
---|
12495 | Use char because int might match the return type of a GCC |
---|
12496 | builtin and then its argument prototype would still apply. */ |
---|
12497 | #ifdef __cplusplus |
---|
12498 | extern "C" |
---|
12499 | #endif |
---|
12500 | char endwin (); |
---|
12501 | int |
---|
12502 | main () |
---|
12503 | { |
---|
12504 | return endwin (); |
---|
12505 | ; |
---|
12506 | return 0; |
---|
12507 | } |
---|
12508 | _ACEOF |
---|
12509 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12510 | if { (ac_try="$ac_link" |
---|
12511 | case "(($ac_try" in |
---|
12512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12513 | *) ac_try_echo=$ac_try;; |
---|
12514 | esac |
---|
12515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12516 | (eval "$ac_link") 2>conftest.er1 |
---|
12517 | ac_status=$? |
---|
12518 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12519 | rm -f conftest.er1 |
---|
12520 | cat conftest.err >&5 |
---|
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12522 | (exit $ac_status); } && { |
---|
12523 | test -z "$ac_c_werror_flag" || |
---|
12524 | test ! -s conftest.err |
---|
12525 | } && test -s conftest$ac_exeext && |
---|
12526 | $as_test_x conftest$ac_exeext; then |
---|
12527 | ac_cv_lib_ncurses_endwin=yes |
---|
12528 | else |
---|
12529 | echo "$as_me: failed program was:" >&5 |
---|
12530 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12531 | |
---|
12532 | ac_cv_lib_ncurses_endwin=no |
---|
12533 | fi |
---|
12534 | |
---|
12535 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12536 | conftest$ac_exeext conftest.$ac_ext |
---|
12537 | LIBS=$ac_check_lib_save_LIBS |
---|
12538 | fi |
---|
12539 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_endwin" >&5 |
---|
12540 | echo "${ECHO_T}$ac_cv_lib_ncurses_endwin" >&6; } |
---|
12541 | if test $ac_cv_lib_ncurses_endwin = yes; then |
---|
12542 | ac_lib_ncurses=yes |
---|
12543 | else |
---|
12544 | ac_lib_ncurses=no |
---|
12545 | fi |
---|
12546 | |
---|
12547 | elif test $ac_lib_ncurses = yes; then |
---|
12548 | |
---|
12549 | { echo "$as_me:$LINENO: checking for endwin in -lncurses" >&5 |
---|
12550 | echo $ECHO_N "checking for endwin in -lncurses... $ECHO_C" >&6; } |
---|
12551 | if test "${ac_cv_lib_ncurses_endwin+set}" = set; then |
---|
12552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12553 | else |
---|
12554 | ac_check_lib_save_LIBS=$LIBS |
---|
12555 | LIBS="-lncurses |
---|
12556 | $LIBS" |
---|
12557 | cat >conftest.$ac_ext <<_ACEOF |
---|
12558 | /* confdefs.h. */ |
---|
12559 | _ACEOF |
---|
12560 | cat confdefs.h >>conftest.$ac_ext |
---|
12561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12562 | /* end confdefs.h. */ |
---|
12563 | |
---|
12564 | /* Override any GCC internal prototype to avoid an error. |
---|
12565 | Use char because int might match the return type of a GCC |
---|
12566 | builtin and then its argument prototype would still apply. */ |
---|
12567 | #ifdef __cplusplus |
---|
12568 | extern "C" |
---|
12569 | #endif |
---|
12570 | char endwin (); |
---|
12571 | int |
---|
12572 | main () |
---|
12573 | { |
---|
12574 | return endwin (); |
---|
12575 | ; |
---|
12576 | return 0; |
---|
12577 | } |
---|
12578 | _ACEOF |
---|
12579 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12580 | if { (ac_try="$ac_link" |
---|
12581 | case "(($ac_try" in |
---|
12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12583 | *) ac_try_echo=$ac_try;; |
---|
12584 | esac |
---|
12585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12586 | (eval "$ac_link") 2>conftest.er1 |
---|
12587 | ac_status=$? |
---|
12588 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12589 | rm -f conftest.er1 |
---|
12590 | cat conftest.err >&5 |
---|
12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12592 | (exit $ac_status); } && { |
---|
12593 | test -z "$ac_c_werror_flag" || |
---|
12594 | test ! -s conftest.err |
---|
12595 | } && test -s conftest$ac_exeext && |
---|
12596 | $as_test_x conftest$ac_exeext; then |
---|
12597 | ac_cv_lib_ncurses_endwin=yes |
---|
12598 | else |
---|
12599 | echo "$as_me: failed program was:" >&5 |
---|
12600 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12601 | |
---|
12602 | ac_cv_lib_ncurses_endwin=no |
---|
12603 | fi |
---|
12604 | |
---|
12605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12606 | conftest$ac_exeext conftest.$ac_ext |
---|
12607 | LIBS=$ac_check_lib_save_LIBS |
---|
12608 | fi |
---|
12609 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_endwin" >&5 |
---|
12610 | echo "${ECHO_T}$ac_cv_lib_ncurses_endwin" >&6; } |
---|
12611 | if test $ac_cv_lib_ncurses_endwin = yes; then |
---|
12612 | cat >>confdefs.h <<_ACEOF |
---|
12613 | #define HAVE_LIBNCURSES 1 |
---|
12614 | _ACEOF |
---|
12615 | |
---|
12616 | LIBS="-lncurses $LIBS" |
---|
12617 | |
---|
12618 | else |
---|
12619 | { { echo "$as_me:$LINENO: error: the sLang library is missing" >&5 |
---|
12620 | echo "$as_me: error: the sLang library is missing" >&2;} |
---|
12621 | { (exit 1); exit 1; }; } |
---|
12622 | fi |
---|
12623 | |
---|
12624 | fi |
---|
12625 | if test $ac_lib_ncurses = yes; then |
---|
12626 | ac_lib_video="$ac_lib_video ncurses" |
---|
12627 | ac_lib_text_flag=yes |
---|
12628 | fi |
---|
12629 | CONF_LIB_NCURSES=$ac_lib_ncurses |
---|
12630 | |
---|
12631 | |
---|
12632 | # Checks for freetype |
---|
12633 | ac_lib_freetype_args= |
---|
12634 | ac_lib_freetype_path="$PATH" |
---|
12635 | |
---|
12636 | # Check whether --with-freetype-prefix was given. |
---|
12637 | if test "${with_freetype_prefix+set}" = set; then |
---|
12638 | withval=$with_freetype_prefix; ac_lib_freetype_prefix="$withval" |
---|
12639 | else |
---|
12640 | ac_lib_freetype_prefix="" |
---|
12641 | |
---|
12642 | fi |
---|
12643 | |
---|
12644 | if test ! -z $ac_lib_freetype_prefix; then |
---|
12645 | ac_lib_freetype_args="--prefix=${ac_lib_freetype_prefix}" |
---|
12646 | ac_lib_freetype_path="${ac_lib_freetype_prefix}/bin" |
---|
12647 | fi |
---|
12648 | # Check whether --enable-freetype was given. |
---|
12649 | if test "${enable_freetype+set}" = set; then |
---|
12650 | enableval=$enable_freetype; ac_lib_freetype=$enableval |
---|
12651 | else |
---|
12652 | ac_lib_freetype=auto |
---|
12653 | |
---|
12654 | fi |
---|
12655 | |
---|
12656 | if test $ac_lib_freetype = auto; then |
---|
12657 | for ac_prog in ${ac_tool_prefix}freetype-config |
---|
12658 | do |
---|
12659 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
12660 | set dummy $ac_prog; ac_word=$2 |
---|
12661 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
12662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
12663 | if test "${ac_cv_path_ac_lib_freetype_config+set}" = set; then |
---|
12664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12665 | else |
---|
12666 | case $ac_lib_freetype_config in |
---|
12667 | [\\/]* | ?:[\\/]*) |
---|
12668 | ac_cv_path_ac_lib_freetype_config="$ac_lib_freetype_config" # Let the user override the test with a path. |
---|
12669 | ;; |
---|
12670 | *) |
---|
12671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
12672 | for as_dir in ${ac_lib_freetype_path} |
---|
12673 | |
---|
12674 | do |
---|
12675 | IFS=$as_save_IFS |
---|
12676 | test -z "$as_dir" && as_dir=. |
---|
12677 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
12678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
12679 | ac_cv_path_ac_lib_freetype_config="$as_dir/$ac_word$ac_exec_ext" |
---|
12680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
12681 | break 2 |
---|
12682 | fi |
---|
12683 | done |
---|
12684 | done |
---|
12685 | IFS=$as_save_IFS |
---|
12686 | |
---|
12687 | ;; |
---|
12688 | esac |
---|
12689 | fi |
---|
12690 | ac_lib_freetype_config=$ac_cv_path_ac_lib_freetype_config |
---|
12691 | if test -n "$ac_lib_freetype_config"; then |
---|
12692 | { echo "$as_me:$LINENO: result: $ac_lib_freetype_config" >&5 |
---|
12693 | echo "${ECHO_T}$ac_lib_freetype_config" >&6; } |
---|
12694 | else |
---|
12695 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
12696 | echo "${ECHO_T}no" >&6; } |
---|
12697 | fi |
---|
12698 | |
---|
12699 | |
---|
12700 | test -n "$ac_lib_freetype_config" && break |
---|
12701 | done |
---|
12702 | |
---|
12703 | if test -z $ac_lib_freetype_config; then |
---|
12704 | ac_lib_freetype=no |
---|
12705 | else |
---|
12706 | ac_save_CFLAGS="$CFLAGS" |
---|
12707 | ac_save_LIBS="$LIBS" |
---|
12708 | FREETYPECFLAGS=`$ac_lib_freetype_config $ac_lib_freetype_args --cflags` |
---|
12709 | FREETYPELIBS=`$ac_lib_freetype_config $ac_lib_freetype_args --libs` |
---|
12710 | CFLAGS="$FREETYPECFLAGS $CFLAGS" |
---|
12711 | LIBS="$FREETYPELIBS $LIBS" |
---|
12712 | { echo "$as_me:$LINENO: checking for FreeType2" >&5 |
---|
12713 | echo $ECHO_N "checking for FreeType2... $ECHO_C" >&6; } |
---|
12714 | cat >conftest.$ac_ext <<_ACEOF |
---|
12715 | /* confdefs.h. */ |
---|
12716 | _ACEOF |
---|
12717 | cat confdefs.h >>conftest.$ac_ext |
---|
12718 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12719 | /* end confdefs.h. */ |
---|
12720 | |
---|
12721 | #include <ft2build.h> |
---|
12722 | #include FT_FREETYPE_H |
---|
12723 | #include FT_GLYPH_H |
---|
12724 | |
---|
12725 | int |
---|
12726 | main () |
---|
12727 | { |
---|
12728 | |
---|
12729 | FT_Library library; |
---|
12730 | int dummy = FT_RENDER_MODE_NORMAL; |
---|
12731 | FT_Init_FreeType(&library); |
---|
12732 | FT_Done_FreeType(library); |
---|
12733 | |
---|
12734 | ; |
---|
12735 | return 0; |
---|
12736 | } |
---|
12737 | _ACEOF |
---|
12738 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12739 | if { (ac_try="$ac_link" |
---|
12740 | case "(($ac_try" in |
---|
12741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12742 | *) ac_try_echo=$ac_try;; |
---|
12743 | esac |
---|
12744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12745 | (eval "$ac_link") 2>conftest.er1 |
---|
12746 | ac_status=$? |
---|
12747 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12748 | rm -f conftest.er1 |
---|
12749 | cat conftest.err >&5 |
---|
12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12751 | (exit $ac_status); } && { |
---|
12752 | test -z "$ac_c_werror_flag" || |
---|
12753 | test ! -s conftest.err |
---|
12754 | } && test -s conftest$ac_exeext && |
---|
12755 | $as_test_x conftest$ac_exeext; then |
---|
12756 | ac_lib_freetype=yes |
---|
12757 | else |
---|
12758 | echo "$as_me: failed program was:" >&5 |
---|
12759 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12760 | |
---|
12761 | ac_lib_freetype=no |
---|
12762 | fi |
---|
12763 | |
---|
12764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12765 | conftest$ac_exeext conftest.$ac_ext |
---|
12766 | { echo "$as_me:$LINENO: result: $ac_lib_freetype" >&5 |
---|
12767 | echo "${ECHO_T}$ac_lib_freetype" >&6; } |
---|
12768 | CFLAGS="$ac_save_CFLAGS" |
---|
12769 | LIBS="$ac_save_LIBS" |
---|
12770 | fi |
---|
12771 | elif test $ac_lib_freetype = yes; then |
---|
12772 | for ac_prog in ${ac_tool_prefix}freetype-config |
---|
12773 | do |
---|
12774 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
12775 | set dummy $ac_prog; ac_word=$2 |
---|
12776 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
12777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
12778 | if test "${ac_cv_path_ac_lib_freetype_config+set}" = set; then |
---|
12779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12780 | else |
---|
12781 | case $ac_lib_freetype_config in |
---|
12782 | [\\/]* | ?:[\\/]*) |
---|
12783 | ac_cv_path_ac_lib_freetype_config="$ac_lib_freetype_config" # Let the user override the test with a path. |
---|
12784 | ;; |
---|
12785 | *) |
---|
12786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
12787 | for as_dir in ${ac_lib_freetype_path} |
---|
12788 | |
---|
12789 | do |
---|
12790 | IFS=$as_save_IFS |
---|
12791 | test -z "$as_dir" && as_dir=. |
---|
12792 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
12793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
12794 | ac_cv_path_ac_lib_freetype_config="$as_dir/$ac_word$ac_exec_ext" |
---|
12795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
12796 | break 2 |
---|
12797 | fi |
---|
12798 | done |
---|
12799 | done |
---|
12800 | IFS=$as_save_IFS |
---|
12801 | |
---|
12802 | ;; |
---|
12803 | esac |
---|
12804 | fi |
---|
12805 | ac_lib_freetype_config=$ac_cv_path_ac_lib_freetype_config |
---|
12806 | if test -n "$ac_lib_freetype_config"; then |
---|
12807 | { echo "$as_me:$LINENO: result: $ac_lib_freetype_config" >&5 |
---|
12808 | echo "${ECHO_T}$ac_lib_freetype_config" >&6; } |
---|
12809 | else |
---|
12810 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
12811 | echo "${ECHO_T}no" >&6; } |
---|
12812 | fi |
---|
12813 | |
---|
12814 | |
---|
12815 | test -n "$ac_lib_freetype_config" && break |
---|
12816 | done |
---|
12817 | |
---|
12818 | if test -z $ac_lib_freetype_config ; then |
---|
12819 | { { echo "$as_me:$LINENO: error: the ${ac_tool_prefix}freetype-config tool is missing" >&5 |
---|
12820 | echo "$as_me: error: the ${ac_tool_prefix}freetype-config tool is missing" >&2;} |
---|
12821 | { (exit 1); exit 1; }; } |
---|
12822 | else |
---|
12823 | ac_save_CFLAGS="$CFLAGS" |
---|
12824 | ac_save_LIBS="$LIBS" |
---|
12825 | FREETYPECFLAGS=`$ac_lib_freetype_config $ac_lib_freetype_args --cflags` |
---|
12826 | FREETYPELIBS=`$ac_lib_freetype_config $ac_lib_freetype_args --libs` |
---|
12827 | CFLAGS="$FREETYPECFLAGS $CFLAGS" |
---|
12828 | LIBS="$FREETYPELIBS $LIBS" |
---|
12829 | { echo "$as_me:$LINENO: checking for FreeType2" >&5 |
---|
12830 | echo $ECHO_N "checking for FreeType2... $ECHO_C" >&6; } |
---|
12831 | cat >conftest.$ac_ext <<_ACEOF |
---|
12832 | /* confdefs.h. */ |
---|
12833 | _ACEOF |
---|
12834 | cat confdefs.h >>conftest.$ac_ext |
---|
12835 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12836 | /* end confdefs.h. */ |
---|
12837 | |
---|
12838 | #include <ft2build.h> |
---|
12839 | #include FT_FREETYPE_H |
---|
12840 | #include FT_GLYPH_H |
---|
12841 | |
---|
12842 | int |
---|
12843 | main () |
---|
12844 | { |
---|
12845 | |
---|
12846 | FT_Library library; |
---|
12847 | FT_Init_FreeType(&library); |
---|
12848 | FT_Done_FreeType(library); |
---|
12849 | |
---|
12850 | ; |
---|
12851 | return 0; |
---|
12852 | } |
---|
12853 | _ACEOF |
---|
12854 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
12855 | if { (ac_try="$ac_link" |
---|
12856 | case "(($ac_try" in |
---|
12857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
12858 | *) ac_try_echo=$ac_try;; |
---|
12859 | esac |
---|
12860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
12861 | (eval "$ac_link") 2>conftest.er1 |
---|
12862 | ac_status=$? |
---|
12863 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
12864 | rm -f conftest.er1 |
---|
12865 | cat conftest.err >&5 |
---|
12866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
12867 | (exit $ac_status); } && { |
---|
12868 | test -z "$ac_c_werror_flag" || |
---|
12869 | test ! -s conftest.err |
---|
12870 | } && test -s conftest$ac_exeext && |
---|
12871 | $as_test_x conftest$ac_exeext; then |
---|
12872 | : |
---|
12873 | else |
---|
12874 | echo "$as_me: failed program was:" >&5 |
---|
12875 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
12876 | |
---|
12877 | { { echo "$as_me:$LINENO: error: the FreeType2 library is missing" >&5 |
---|
12878 | echo "$as_me: error: the FreeType2 library is missing" >&2;} |
---|
12879 | { (exit 1); exit 1; }; } |
---|
12880 | fi |
---|
12881 | |
---|
12882 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
12883 | conftest$ac_exeext conftest.$ac_ext |
---|
12884 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
12885 | echo "${ECHO_T}yes" >&6; } |
---|
12886 | CFLAGS="$ac_save_CFLAGS" |
---|
12887 | LIBS="$ac_save_LIBS" |
---|
12888 | fi |
---|
12889 | fi |
---|
12890 | if test $ac_lib_freetype = yes; then |
---|
12891 | ac_lib_other="$ac_lib_other freetype2" |
---|
12892 | fi |
---|
12893 | |
---|
12894 | |
---|
12895 | CONF_LIB_FREETYPE=$ac_lib_freetype |
---|
12896 | |
---|
12897 | |
---|
12898 | # Checks for sdl |
---|
12899 | ac_lib_sdl_args= |
---|
12900 | ac_lib_sdl_path="$PATH" |
---|
12901 | |
---|
12902 | # Check whether --with-sdl-prefix was given. |
---|
12903 | if test "${with_sdl_prefix+set}" = set; then |
---|
12904 | withval=$with_sdl_prefix; ac_lib_sdl_prefix="$withval" |
---|
12905 | else |
---|
12906 | ac_lib_sdl_prefix="" |
---|
12907 | |
---|
12908 | fi |
---|
12909 | |
---|
12910 | if test ! -z $ac_lib_sdl_prefix; then |
---|
12911 | ac_lib_sdl_args="--prefix=${ac_lib_sdl_prefix}" |
---|
12912 | ac_lib_sdl_path="${ac_lib_sdl_prefix}/bin" |
---|
12913 | fi |
---|
12914 | # Check whether --enable-sdl was given. |
---|
12915 | if test "${enable_sdl+set}" = set; then |
---|
12916 | enableval=$enable_sdl; ac_lib_sdl=$enableval |
---|
12917 | else |
---|
12918 | ac_lib_sdl=auto |
---|
12919 | |
---|
12920 | fi |
---|
12921 | |
---|
12922 | if test $ac_lib_sdl = auto; then |
---|
12923 | for ac_prog in ${ac_tool_prefix}sdl-config |
---|
12924 | do |
---|
12925 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
12926 | set dummy $ac_prog; ac_word=$2 |
---|
12927 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
12928 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
12929 | if test "${ac_cv_path_ac_lib_sdl_config+set}" = set; then |
---|
12930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
12931 | else |
---|
12932 | case $ac_lib_sdl_config in |
---|
12933 | [\\/]* | ?:[\\/]*) |
---|
12934 | ac_cv_path_ac_lib_sdl_config="$ac_lib_sdl_config" # Let the user override the test with a path. |
---|
12935 | ;; |
---|
12936 | *) |
---|
12937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
12938 | for as_dir in ${ac_lib_sdl_path} |
---|
12939 | |
---|
12940 | do |
---|
12941 | IFS=$as_save_IFS |
---|
12942 | test -z "$as_dir" && as_dir=. |
---|
12943 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
12944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
12945 | ac_cv_path_ac_lib_sdl_config="$as_dir/$ac_word$ac_exec_ext" |
---|
12946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
12947 | break 2 |
---|
12948 | fi |
---|
12949 | done |
---|
12950 | done |
---|
12951 | IFS=$as_save_IFS |
---|
12952 | |
---|
12953 | ;; |
---|
12954 | esac |
---|
12955 | fi |
---|
12956 | ac_lib_sdl_config=$ac_cv_path_ac_lib_sdl_config |
---|
12957 | if test -n "$ac_lib_sdl_config"; then |
---|
12958 | { echo "$as_me:$LINENO: result: $ac_lib_sdl_config" >&5 |
---|
12959 | echo "${ECHO_T}$ac_lib_sdl_config" >&6; } |
---|
12960 | else |
---|
12961 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
12962 | echo "${ECHO_T}no" >&6; } |
---|
12963 | fi |
---|
12964 | |
---|
12965 | |
---|
12966 | test -n "$ac_lib_sdl_config" && break |
---|
12967 | done |
---|
12968 | |
---|
12969 | if test -z $ac_lib_sdl_config; then |
---|
12970 | ac_lib_sdl=no |
---|
12971 | else |
---|
12972 | ac_save_CFLAGS="$CFLAGS" |
---|
12973 | ac_save_LIBS="$LIBS" |
---|
12974 | SDLCFLAGS=`$ac_lib_sdl_config $ac_lib_sdl_args --cflags` |
---|
12975 | if test $ac_enable_static = yes ; then |
---|
12976 | SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --static-libs` |
---|
12977 | else |
---|
12978 | SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --libs` |
---|
12979 | fi |
---|
12980 | CFLAGS="$SDLCFLAGS $CFLAGS" |
---|
12981 | LIBS="$SDLLIBS $LIBS" |
---|
12982 | { echo "$as_me:$LINENO: checking for SDL" >&5 |
---|
12983 | echo $ECHO_N "checking for SDL... $ECHO_C" >&6; } |
---|
12984 | cat >conftest.$ac_ext <<_ACEOF |
---|
12985 | /* confdefs.h. */ |
---|
12986 | _ACEOF |
---|
12987 | cat confdefs.h >>conftest.$ac_ext |
---|
12988 | cat >>conftest.$ac_ext <<_ACEOF |
---|
12989 | /* end confdefs.h. */ |
---|
12990 | |
---|
12991 | #include "SDL.h" |
---|
12992 | #undef main |
---|
12993 | |
---|
12994 | int |
---|
12995 | main () |
---|
12996 | { |
---|
12997 | |
---|
12998 | SDL_Init(SDL_INIT_EVERYTHING); |
---|
12999 | |
---|
13000 | ; |
---|
13001 | return 0; |
---|
13002 | } |
---|
13003 | _ACEOF |
---|
13004 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13005 | if { (ac_try="$ac_link" |
---|
13006 | case "(($ac_try" in |
---|
13007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13008 | *) ac_try_echo=$ac_try;; |
---|
13009 | esac |
---|
13010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13011 | (eval "$ac_link") 2>conftest.er1 |
---|
13012 | ac_status=$? |
---|
13013 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13014 | rm -f conftest.er1 |
---|
13015 | cat conftest.err >&5 |
---|
13016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13017 | (exit $ac_status); } && { |
---|
13018 | test -z "$ac_c_werror_flag" || |
---|
13019 | test ! -s conftest.err |
---|
13020 | } && test -s conftest$ac_exeext && |
---|
13021 | $as_test_x conftest$ac_exeext; then |
---|
13022 | ac_lib_sdl=yes |
---|
13023 | else |
---|
13024 | echo "$as_me: failed program was:" >&5 |
---|
13025 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13026 | |
---|
13027 | ac_lib_sdl=no |
---|
13028 | fi |
---|
13029 | |
---|
13030 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13031 | conftest$ac_exeext conftest.$ac_ext |
---|
13032 | { echo "$as_me:$LINENO: result: $ac_lib_sdl" >&5 |
---|
13033 | echo "${ECHO_T}$ac_lib_sdl" >&6; } |
---|
13034 | CFLAGS="$ac_save_CFLAGS" |
---|
13035 | LIBS="$ac_save_LIBS" |
---|
13036 | fi |
---|
13037 | elif test $ac_lib_sdl = yes; then |
---|
13038 | for ac_prog in ${ac_tool_prefix}sdl-config |
---|
13039 | do |
---|
13040 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
13041 | set dummy $ac_prog; ac_word=$2 |
---|
13042 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
13043 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
---|
13044 | if test "${ac_cv_path_ac_lib_sdl_config+set}" = set; then |
---|
13045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
13046 | else |
---|
13047 | case $ac_lib_sdl_config in |
---|
13048 | [\\/]* | ?:[\\/]*) |
---|
13049 | ac_cv_path_ac_lib_sdl_config="$ac_lib_sdl_config" # Let the user override the test with a path. |
---|
13050 | ;; |
---|
13051 | *) |
---|
13052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
13053 | for as_dir in ${ac_lib_sdl_path} |
---|
13054 | |
---|
13055 | do |
---|
13056 | IFS=$as_save_IFS |
---|
13057 | test -z "$as_dir" && as_dir=. |
---|
13058 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
13059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
13060 | ac_cv_path_ac_lib_sdl_config="$as_dir/$ac_word$ac_exec_ext" |
---|
13061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
13062 | break 2 |
---|
13063 | fi |
---|
13064 | done |
---|
13065 | done |
---|
13066 | IFS=$as_save_IFS |
---|
13067 | |
---|
13068 | ;; |
---|
13069 | esac |
---|
13070 | fi |
---|
13071 | ac_lib_sdl_config=$ac_cv_path_ac_lib_sdl_config |
---|
13072 | if test -n "$ac_lib_sdl_config"; then |
---|
13073 | { echo "$as_me:$LINENO: result: $ac_lib_sdl_config" >&5 |
---|
13074 | echo "${ECHO_T}$ac_lib_sdl_config" >&6; } |
---|
13075 | else |
---|
13076 | { echo "$as_me:$LINENO: result: no" >&5 |
---|
13077 | echo "${ECHO_T}no" >&6; } |
---|
13078 | fi |
---|
13079 | |
---|
13080 | |
---|
13081 | test -n "$ac_lib_sdl_config" && break |
---|
13082 | done |
---|
13083 | |
---|
13084 | if test -z $ac_lib_sdl_config ; then |
---|
13085 | { { echo "$as_me:$LINENO: error: the ${ac_tool_prefix}sdl-config tool is missing" >&5 |
---|
13086 | echo "$as_me: error: the ${ac_tool_prefix}sdl-config tool is missing" >&2;} |
---|
13087 | { (exit 1); exit 1; }; } |
---|
13088 | else |
---|
13089 | ac_save_CFLAGS="$CFLAGS" |
---|
13090 | ac_save_LIBS="$LIBS" |
---|
13091 | SDLCFLAGS=`$ac_lib_sdl_config $ac_lib_sdl_args --cflags` |
---|
13092 | if test $ac_enable_static = yes ; then |
---|
13093 | SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --static-libs` |
---|
13094 | else |
---|
13095 | SDLLIBS=`$ac_lib_sdl_config $ac_lib_sdl_args --libs` |
---|
13096 | fi |
---|
13097 | CFLAGS="$SDLCFLAGS $CFLAGS" |
---|
13098 | LIBS="$SDLLIBS $LIBS" |
---|
13099 | { echo "$as_me:$LINENO: checking for SDL" >&5 |
---|
13100 | echo $ECHO_N "checking for SDL... $ECHO_C" >&6; } |
---|
13101 | cat >conftest.$ac_ext <<_ACEOF |
---|
13102 | /* confdefs.h. */ |
---|
13103 | _ACEOF |
---|
13104 | cat confdefs.h >>conftest.$ac_ext |
---|
13105 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13106 | /* end confdefs.h. */ |
---|
13107 | |
---|
13108 | #include "SDL.h" |
---|
13109 | #undef main |
---|
13110 | |
---|
13111 | int |
---|
13112 | main () |
---|
13113 | { |
---|
13114 | |
---|
13115 | SDL_Init(SDL_INIT_EVERYTHING); |
---|
13116 | |
---|
13117 | ; |
---|
13118 | return 0; |
---|
13119 | } |
---|
13120 | _ACEOF |
---|
13121 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
13122 | if { (ac_try="$ac_link" |
---|
13123 | case "(($ac_try" in |
---|
13124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13125 | *) ac_try_echo=$ac_try;; |
---|
13126 | esac |
---|
13127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13128 | (eval "$ac_link") 2>conftest.er1 |
---|
13129 | ac_status=$? |
---|
13130 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13131 | rm -f conftest.er1 |
---|
13132 | cat conftest.err >&5 |
---|
13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13134 | (exit $ac_status); } && { |
---|
13135 | test -z "$ac_c_werror_flag" || |
---|
13136 | test ! -s conftest.err |
---|
13137 | } && test -s conftest$ac_exeext && |
---|
13138 | $as_test_x conftest$ac_exeext; then |
---|
13139 | : |
---|
13140 | else |
---|
13141 | echo "$as_me: failed program was:" >&5 |
---|
13142 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13143 | |
---|
13144 | { { echo "$as_me:$LINENO: error: the SDL library is missing" >&5 |
---|
13145 | echo "$as_me: error: the SDL library is missing" >&2;} |
---|
13146 | { (exit 1); exit 1; }; } |
---|
13147 | fi |
---|
13148 | |
---|
13149 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
---|
13150 | conftest$ac_exeext conftest.$ac_ext |
---|
13151 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13152 | echo "${ECHO_T}yes" >&6; } |
---|
13153 | CFLAGS="$ac_save_CFLAGS" |
---|
13154 | LIBS="$ac_save_LIBS" |
---|
13155 | fi |
---|
13156 | fi |
---|
13157 | if test $ac_lib_sdl = yes; then |
---|
13158 | ac_lib_video="$ac_lib_video sdl" |
---|
13159 | ac_lib_sound="$ac_lib_sound sdl" |
---|
13160 | ac_lib_keyboard="$ac_lib_keyboard sdl" |
---|
13161 | ac_lib_joystick="$ac_lib_joystick sdl" |
---|
13162 | ac_lib_mouse="$ac_lib_mouse sdl" |
---|
13163 | ac_lib_video_flag=yes |
---|
13164 | ac_lib_sound_flag=yes |
---|
13165 | ac_lib_keyboard_flag=yes |
---|
13166 | fi |
---|
13167 | |
---|
13168 | |
---|
13169 | CONF_LIB_SDL=$ac_lib_sdl |
---|
13170 | |
---|
13171 | |
---|
13172 | # Checks for svgawin |
---|
13173 | # Check whether --enable-svgawin was given. |
---|
13174 | if test "${enable_svgawin+set}" = set; then |
---|
13175 | enableval=$enable_svgawin; ac_lib_svgawin=$enableval |
---|
13176 | else |
---|
13177 | ac_lib_svgawin=auto |
---|
13178 | |
---|
13179 | fi |
---|
13180 | |
---|
13181 | if test $ac_lib_svgawin = auto; then |
---|
13182 | if test $ac_system = windows; then |
---|
13183 | if test $ac_lib_sdl = yes; then |
---|
13184 | ac_lib_svgawin=yes |
---|
13185 | else |
---|
13186 | ac_lib_svgawin=no |
---|
13187 | fi |
---|
13188 | else |
---|
13189 | ac_lib_svgawin=no |
---|
13190 | fi |
---|
13191 | fi |
---|
13192 | if test $ac_lib_svgawin = yes; then |
---|
13193 | if test ! $ac_system = windows; then |
---|
13194 | { { echo "$as_me:$LINENO: error: the SVGAWIN library is not supported in this host" >&5 |
---|
13195 | echo "$as_me: error: the SVGAWIN library is not supported in this host" >&2;} |
---|
13196 | { (exit 1); exit 1; }; } |
---|
13197 | fi |
---|
13198 | if test $ac_lib_sdl = no; then |
---|
13199 | { { echo "$as_me:$LINENO: error: the SVGAWIN library requires the SDL library" >&5 |
---|
13200 | echo "$as_me: error: the SVGAWIN library requires the SDL library" >&2;} |
---|
13201 | { (exit 1); exit 1; }; } |
---|
13202 | fi |
---|
13203 | fi |
---|
13204 | if test $ac_lib_svgawin = yes; then |
---|
13205 | ac_lib_video="$ac_lib_video svgawin" |
---|
13206 | ac_lib_direct_flag=yes |
---|
13207 | ac_lib_video_flag=yes |
---|
13208 | fi |
---|
13209 | CONF_LIB_SVGAWIN=$ac_lib_svgawin |
---|
13210 | |
---|
13211 | |
---|
13212 | # Checks for mrawinput |
---|
13213 | # Check whether --enable-mrawinput was given. |
---|
13214 | if test "${enable_mrawinput+set}" = set; then |
---|
13215 | enableval=$enable_mrawinput; ac_lib_mrawinput=$enableval |
---|
13216 | else |
---|
13217 | ac_lib_mrawinput=auto |
---|
13218 | |
---|
13219 | fi |
---|
13220 | |
---|
13221 | if test $ac_lib_mrawinput = auto; then |
---|
13222 | if test $ac_system = windows; then |
---|
13223 | ac_lib_mrawinput=yes |
---|
13224 | else |
---|
13225 | ac_lib_mrawinput=no |
---|
13226 | fi |
---|
13227 | fi |
---|
13228 | if test $ac_lib_mrawinput = yes; then |
---|
13229 | if test ! $ac_system = windows; then |
---|
13230 | { { echo "$as_me:$LINENO: error: the rawinput library is not supported in this host" >&5 |
---|
13231 | echo "$as_me: error: the rawinput library is not supported in this host" >&2;} |
---|
13232 | { (exit 1); exit 1; }; } |
---|
13233 | fi |
---|
13234 | fi |
---|
13235 | if test $ac_lib_mrawinput = yes; then |
---|
13236 | ac_lib_mouse="$ac_lib_mouse rawinput" |
---|
13237 | fi |
---|
13238 | CONF_LIB_MRAWINPUT=$ac_lib_mrawinput |
---|
13239 | |
---|
13240 | |
---|
13241 | # Checks for mcpn |
---|
13242 | # Check whether --enable-mcpn was given. |
---|
13243 | if test "${enable_mcpn+set}" = set; then |
---|
13244 | enableval=$enable_mcpn; ac_lib_mcpn=$enableval |
---|
13245 | else |
---|
13246 | ac_lib_mcpn=auto |
---|
13247 | |
---|
13248 | fi |
---|
13249 | |
---|
13250 | if test $ac_lib_mcpn = auto; then |
---|
13251 | if test $ac_system = windows; then |
---|
13252 | ac_lib_mcpn=yes |
---|
13253 | else |
---|
13254 | ac_lib_mcpn=no |
---|
13255 | fi |
---|
13256 | fi |
---|
13257 | if test $ac_lib_mcpn = yes; then |
---|
13258 | if test ! $ac_system = windows; then |
---|
13259 | { { echo "$as_me:$LINENO: error: the cpn library is not supported in this host" >&5 |
---|
13260 | echo "$as_me: error: the cpn library is not supported in this host" >&2;} |
---|
13261 | { (exit 1); exit 1; }; } |
---|
13262 | fi |
---|
13263 | fi |
---|
13264 | if test $ac_lib_mcpn = yes; then |
---|
13265 | ac_lib_mouse="$ac_lib_mouse cpn" |
---|
13266 | fi |
---|
13267 | CONF_LIB_MCPN=$ac_lib_mcpn |
---|
13268 | |
---|
13269 | |
---|
13270 | # Checks for kraw |
---|
13271 | # Check whether --enable-kraw was given. |
---|
13272 | if test "${enable_kraw+set}" = set; then |
---|
13273 | enableval=$enable_kraw; ac_lib_kraw=$enableval |
---|
13274 | else |
---|
13275 | ac_lib_kraw=auto |
---|
13276 | |
---|
13277 | fi |
---|
13278 | |
---|
13279 | if test $ac_lib_kraw = auto; then |
---|
13280 | { echo "$as_me:$LINENO: checking for raw keyboard interface" >&5 |
---|
13281 | echo $ECHO_N "checking for raw keyboard interface... $ECHO_C" >&6; } |
---|
13282 | cat >conftest.$ac_ext <<_ACEOF |
---|
13283 | /* confdefs.h. */ |
---|
13284 | _ACEOF |
---|
13285 | cat confdefs.h >>conftest.$ac_ext |
---|
13286 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13287 | /* end confdefs.h. */ |
---|
13288 | |
---|
13289 | #include <sys/kd.h> |
---|
13290 | #include <sys/vt.h> |
---|
13291 | #include <sys/ioctl.h> |
---|
13292 | #include <termios.h> |
---|
13293 | |
---|
13294 | int |
---|
13295 | main () |
---|
13296 | { |
---|
13297 | |
---|
13298 | int dummy0 = K_MEDIUMRAW; |
---|
13299 | int dummy1 = VT_ACTIVATE; |
---|
13300 | struct termios dummy2; |
---|
13301 | |
---|
13302 | ; |
---|
13303 | return 0; |
---|
13304 | } |
---|
13305 | _ACEOF |
---|
13306 | rm -f conftest.$ac_objext |
---|
13307 | if { (ac_try="$ac_compile" |
---|
13308 | case "(($ac_try" in |
---|
13309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13310 | *) ac_try_echo=$ac_try;; |
---|
13311 | esac |
---|
13312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13313 | (eval "$ac_compile") 2>conftest.er1 |
---|
13314 | ac_status=$? |
---|
13315 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13316 | rm -f conftest.er1 |
---|
13317 | cat conftest.err >&5 |
---|
13318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13319 | (exit $ac_status); } && { |
---|
13320 | test -z "$ac_c_werror_flag" || |
---|
13321 | test ! -s conftest.err |
---|
13322 | } && test -s conftest.$ac_objext; then |
---|
13323 | ac_lib_kraw=yes |
---|
13324 | else |
---|
13325 | echo "$as_me: failed program was:" >&5 |
---|
13326 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13327 | |
---|
13328 | ac_lib_kraw=no |
---|
13329 | fi |
---|
13330 | |
---|
13331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13332 | { echo "$as_me:$LINENO: result: $ac_lib_kraw" >&5 |
---|
13333 | echo "${ECHO_T}$ac_lib_kraw" >&6; } |
---|
13334 | elif test $ac_lib_kraw = yes; then |
---|
13335 | { echo "$as_me:$LINENO: checking for raw keyboard interface" >&5 |
---|
13336 | echo $ECHO_N "checking for raw keyboard interface... $ECHO_C" >&6; } |
---|
13337 | cat >conftest.$ac_ext <<_ACEOF |
---|
13338 | /* confdefs.h. */ |
---|
13339 | _ACEOF |
---|
13340 | cat confdefs.h >>conftest.$ac_ext |
---|
13341 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13342 | /* end confdefs.h. */ |
---|
13343 | |
---|
13344 | #include <sys/kd.h> |
---|
13345 | #include <sys/vt.h> |
---|
13346 | #include <sys/ioctl.h> |
---|
13347 | #include <termios.h> |
---|
13348 | |
---|
13349 | int |
---|
13350 | main () |
---|
13351 | { |
---|
13352 | |
---|
13353 | int dummy0 = K_MEDIUMRAW; |
---|
13354 | int dummy1 = VT_ACTIVATE; |
---|
13355 | struct termios dummy2; |
---|
13356 | |
---|
13357 | ; |
---|
13358 | return 0; |
---|
13359 | } |
---|
13360 | _ACEOF |
---|
13361 | rm -f conftest.$ac_objext |
---|
13362 | if { (ac_try="$ac_compile" |
---|
13363 | case "(($ac_try" in |
---|
13364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13365 | *) ac_try_echo=$ac_try;; |
---|
13366 | esac |
---|
13367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13368 | (eval "$ac_compile") 2>conftest.er1 |
---|
13369 | ac_status=$? |
---|
13370 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13371 | rm -f conftest.er1 |
---|
13372 | cat conftest.err >&5 |
---|
13373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13374 | (exit $ac_status); } && { |
---|
13375 | test -z "$ac_c_werror_flag" || |
---|
13376 | test ! -s conftest.err |
---|
13377 | } && test -s conftest.$ac_objext; then |
---|
13378 | : |
---|
13379 | else |
---|
13380 | echo "$as_me: failed program was:" >&5 |
---|
13381 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13382 | |
---|
13383 | { { echo "$as_me:$LINENO: error: the KRAW keyboard interface is missing" >&5 |
---|
13384 | echo "$as_me: error: the KRAW keyboard interface is missing" >&2;} |
---|
13385 | { (exit 1); exit 1; }; } |
---|
13386 | fi |
---|
13387 | |
---|
13388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13389 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13390 | echo "${ECHO_T}yes" >&6; } |
---|
13391 | fi |
---|
13392 | if test $ac_lib_kraw = yes; then |
---|
13393 | ac_lib_keyboard="$ac_lib_keyboard raw" |
---|
13394 | ac_lib_keyboard_flag=yes |
---|
13395 | fi |
---|
13396 | CONF_LIB_KRAW=$ac_lib_kraw |
---|
13397 | |
---|
13398 | |
---|
13399 | # Checks for jraw |
---|
13400 | # Check whether --enable-jraw was given. |
---|
13401 | if test "${enable_jraw+set}" = set; then |
---|
13402 | enableval=$enable_jraw; ac_lib_jraw=$enableval |
---|
13403 | else |
---|
13404 | ac_lib_jraw=auto |
---|
13405 | |
---|
13406 | fi |
---|
13407 | |
---|
13408 | if test $ac_lib_jraw = auto; then |
---|
13409 | { echo "$as_me:$LINENO: checking for raw joystick interface" >&5 |
---|
13410 | echo $ECHO_N "checking for raw joystick interface... $ECHO_C" >&6; } |
---|
13411 | cat >conftest.$ac_ext <<_ACEOF |
---|
13412 | /* confdefs.h. */ |
---|
13413 | _ACEOF |
---|
13414 | cat confdefs.h >>conftest.$ac_ext |
---|
13415 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13416 | /* end confdefs.h. */ |
---|
13417 | |
---|
13418 | #include <linux/joystick.h> |
---|
13419 | |
---|
13420 | int |
---|
13421 | main () |
---|
13422 | { |
---|
13423 | |
---|
13424 | #ifndef JS_VERSION |
---|
13425 | choke me |
---|
13426 | #endif |
---|
13427 | |
---|
13428 | ; |
---|
13429 | return 0; |
---|
13430 | } |
---|
13431 | _ACEOF |
---|
13432 | rm -f conftest.$ac_objext |
---|
13433 | if { (ac_try="$ac_compile" |
---|
13434 | case "(($ac_try" in |
---|
13435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13436 | *) ac_try_echo=$ac_try;; |
---|
13437 | esac |
---|
13438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13439 | (eval "$ac_compile") 2>conftest.er1 |
---|
13440 | ac_status=$? |
---|
13441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13442 | rm -f conftest.er1 |
---|
13443 | cat conftest.err >&5 |
---|
13444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13445 | (exit $ac_status); } && { |
---|
13446 | test -z "$ac_c_werror_flag" || |
---|
13447 | test ! -s conftest.err |
---|
13448 | } && test -s conftest.$ac_objext; then |
---|
13449 | ac_lib_jraw=yes |
---|
13450 | else |
---|
13451 | echo "$as_me: failed program was:" >&5 |
---|
13452 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13453 | |
---|
13454 | ac_lib_jraw=no |
---|
13455 | fi |
---|
13456 | |
---|
13457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13458 | { echo "$as_me:$LINENO: result: $ac_lib_jraw" >&5 |
---|
13459 | echo "${ECHO_T}$ac_lib_jraw" >&6; } |
---|
13460 | elif test $ac_lib_jraw = yes; then |
---|
13461 | { echo "$as_me:$LINENO: checking for raw joystick interface" >&5 |
---|
13462 | echo $ECHO_N "checking for raw joystick interface... $ECHO_C" >&6; } |
---|
13463 | cat >conftest.$ac_ext <<_ACEOF |
---|
13464 | /* confdefs.h. */ |
---|
13465 | _ACEOF |
---|
13466 | cat confdefs.h >>conftest.$ac_ext |
---|
13467 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13468 | /* end confdefs.h. */ |
---|
13469 | |
---|
13470 | #include <linux/joystick.h> |
---|
13471 | |
---|
13472 | int |
---|
13473 | main () |
---|
13474 | { |
---|
13475 | |
---|
13476 | #ifndef JS_VERSION |
---|
13477 | choke me |
---|
13478 | #endif |
---|
13479 | |
---|
13480 | ; |
---|
13481 | return 0; |
---|
13482 | } |
---|
13483 | _ACEOF |
---|
13484 | rm -f conftest.$ac_objext |
---|
13485 | if { (ac_try="$ac_compile" |
---|
13486 | case "(($ac_try" in |
---|
13487 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13488 | *) ac_try_echo=$ac_try;; |
---|
13489 | esac |
---|
13490 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13491 | (eval "$ac_compile") 2>conftest.er1 |
---|
13492 | ac_status=$? |
---|
13493 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13494 | rm -f conftest.er1 |
---|
13495 | cat conftest.err >&5 |
---|
13496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13497 | (exit $ac_status); } && { |
---|
13498 | test -z "$ac_c_werror_flag" || |
---|
13499 | test ! -s conftest.err |
---|
13500 | } && test -s conftest.$ac_objext; then |
---|
13501 | : |
---|
13502 | else |
---|
13503 | echo "$as_me: failed program was:" >&5 |
---|
13504 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13505 | |
---|
13506 | { { echo "$as_me:$LINENO: error: the JRAW joystick interface is missing" >&5 |
---|
13507 | echo "$as_me: error: the JRAW joystick interface is missing" >&2;} |
---|
13508 | { (exit 1); exit 1; }; } |
---|
13509 | fi |
---|
13510 | |
---|
13511 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13512 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13513 | echo "${ECHO_T}yes" >&6; } |
---|
13514 | fi |
---|
13515 | if test $ac_lib_jraw = yes; then |
---|
13516 | ac_lib_joystick="$ac_lib_joystick raw" |
---|
13517 | fi |
---|
13518 | CONF_LIB_JRAW=$ac_lib_jraw |
---|
13519 | |
---|
13520 | |
---|
13521 | # Checks for mraw |
---|
13522 | # Check whether --enable-mraw was given. |
---|
13523 | if test "${enable_mraw+set}" = set; then |
---|
13524 | enableval=$enable_mraw; ac_lib_mraw=$enableval |
---|
13525 | else |
---|
13526 | ac_lib_mraw=auto |
---|
13527 | |
---|
13528 | fi |
---|
13529 | |
---|
13530 | if test $ac_lib_mraw = auto; then |
---|
13531 | { echo "$as_me:$LINENO: checking for raw mouse interface" >&5 |
---|
13532 | echo $ECHO_N "checking for raw mouse interface... $ECHO_C" >&6; } |
---|
13533 | cat >conftest.$ac_ext <<_ACEOF |
---|
13534 | /* confdefs.h. */ |
---|
13535 | _ACEOF |
---|
13536 | cat confdefs.h >>conftest.$ac_ext |
---|
13537 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13538 | /* end confdefs.h. */ |
---|
13539 | |
---|
13540 | #include <termios.h> |
---|
13541 | |
---|
13542 | int |
---|
13543 | main () |
---|
13544 | { |
---|
13545 | |
---|
13546 | tcsetattr(0, TCSAFLUSH, 0); |
---|
13547 | |
---|
13548 | ; |
---|
13549 | return 0; |
---|
13550 | } |
---|
13551 | _ACEOF |
---|
13552 | rm -f conftest.$ac_objext |
---|
13553 | if { (ac_try="$ac_compile" |
---|
13554 | case "(($ac_try" in |
---|
13555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13556 | *) ac_try_echo=$ac_try;; |
---|
13557 | esac |
---|
13558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13559 | (eval "$ac_compile") 2>conftest.er1 |
---|
13560 | ac_status=$? |
---|
13561 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13562 | rm -f conftest.er1 |
---|
13563 | cat conftest.err >&5 |
---|
13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13565 | (exit $ac_status); } && { |
---|
13566 | test -z "$ac_c_werror_flag" || |
---|
13567 | test ! -s conftest.err |
---|
13568 | } && test -s conftest.$ac_objext; then |
---|
13569 | ac_lib_mraw=yes |
---|
13570 | else |
---|
13571 | echo "$as_me: failed program was:" >&5 |
---|
13572 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13573 | |
---|
13574 | ac_lib_mraw=no |
---|
13575 | fi |
---|
13576 | |
---|
13577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13578 | { echo "$as_me:$LINENO: result: $ac_lib_mraw" >&5 |
---|
13579 | echo "${ECHO_T}$ac_lib_mraw" >&6; } |
---|
13580 | elif test $ac_lib_mraw = yes; then |
---|
13581 | { echo "$as_me:$LINENO: checking for raw mouse interface" >&5 |
---|
13582 | echo $ECHO_N "checking for raw mouse interface... $ECHO_C" >&6; } |
---|
13583 | cat >conftest.$ac_ext <<_ACEOF |
---|
13584 | /* confdefs.h. */ |
---|
13585 | _ACEOF |
---|
13586 | cat confdefs.h >>conftest.$ac_ext |
---|
13587 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13588 | /* end confdefs.h. */ |
---|
13589 | |
---|
13590 | #include <termios.h> |
---|
13591 | |
---|
13592 | int |
---|
13593 | main () |
---|
13594 | { |
---|
13595 | |
---|
13596 | tcsetattr(0, TCSAFLUSH, 0); |
---|
13597 | |
---|
13598 | ; |
---|
13599 | return 0; |
---|
13600 | } |
---|
13601 | _ACEOF |
---|
13602 | rm -f conftest.$ac_objext |
---|
13603 | if { (ac_try="$ac_compile" |
---|
13604 | case "(($ac_try" in |
---|
13605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13606 | *) ac_try_echo=$ac_try;; |
---|
13607 | esac |
---|
13608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13609 | (eval "$ac_compile") 2>conftest.er1 |
---|
13610 | ac_status=$? |
---|
13611 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13612 | rm -f conftest.er1 |
---|
13613 | cat conftest.err >&5 |
---|
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13615 | (exit $ac_status); } && { |
---|
13616 | test -z "$ac_c_werror_flag" || |
---|
13617 | test ! -s conftest.err |
---|
13618 | } && test -s conftest.$ac_objext; then |
---|
13619 | : |
---|
13620 | else |
---|
13621 | echo "$as_me: failed program was:" >&5 |
---|
13622 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13623 | |
---|
13624 | { { echo "$as_me:$LINENO: error: the MRAW mouse interface is missing" >&5 |
---|
13625 | echo "$as_me: error: the MRAW mouse interface is missing" >&2;} |
---|
13626 | { (exit 1); exit 1; }; } |
---|
13627 | fi |
---|
13628 | |
---|
13629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13630 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13631 | echo "${ECHO_T}yes" >&6; } |
---|
13632 | fi |
---|
13633 | if test $ac_lib_mraw = yes; then |
---|
13634 | ac_lib_mouse="$ac_lib_mouse raw" |
---|
13635 | fi |
---|
13636 | CONF_LIB_MRAW=$ac_lib_mraw |
---|
13637 | |
---|
13638 | |
---|
13639 | # Checks for mevent |
---|
13640 | # Check whether --enable-mevent was given. |
---|
13641 | if test "${enable_mevent+set}" = set; then |
---|
13642 | enableval=$enable_mevent; ac_lib_mevent=$enableval |
---|
13643 | else |
---|
13644 | ac_lib_mevent=auto |
---|
13645 | |
---|
13646 | fi |
---|
13647 | |
---|
13648 | if test $ac_lib_mevent = auto; then |
---|
13649 | { echo "$as_me:$LINENO: checking for event mouse interface" >&5 |
---|
13650 | echo $ECHO_N "checking for event mouse interface... $ECHO_C" >&6; } |
---|
13651 | cat >conftest.$ac_ext <<_ACEOF |
---|
13652 | /* confdefs.h. */ |
---|
13653 | _ACEOF |
---|
13654 | cat confdefs.h >>conftest.$ac_ext |
---|
13655 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13656 | /* end confdefs.h. */ |
---|
13657 | |
---|
13658 | #include <linux/input.h> |
---|
13659 | |
---|
13660 | int |
---|
13661 | main () |
---|
13662 | { |
---|
13663 | |
---|
13664 | int dummy = EVIOCGVERSION; |
---|
13665 | |
---|
13666 | ; |
---|
13667 | return 0; |
---|
13668 | } |
---|
13669 | _ACEOF |
---|
13670 | rm -f conftest.$ac_objext |
---|
13671 | if { (ac_try="$ac_compile" |
---|
13672 | case "(($ac_try" in |
---|
13673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13674 | *) ac_try_echo=$ac_try;; |
---|
13675 | esac |
---|
13676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13677 | (eval "$ac_compile") 2>conftest.er1 |
---|
13678 | ac_status=$? |
---|
13679 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13680 | rm -f conftest.er1 |
---|
13681 | cat conftest.err >&5 |
---|
13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13683 | (exit $ac_status); } && { |
---|
13684 | test -z "$ac_c_werror_flag" || |
---|
13685 | test ! -s conftest.err |
---|
13686 | } && test -s conftest.$ac_objext; then |
---|
13687 | ac_lib_mevent=yes |
---|
13688 | else |
---|
13689 | echo "$as_me: failed program was:" >&5 |
---|
13690 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13691 | |
---|
13692 | ac_lib_mevent=no |
---|
13693 | fi |
---|
13694 | |
---|
13695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13696 | { echo "$as_me:$LINENO: result: $ac_lib_mevent" >&5 |
---|
13697 | echo "${ECHO_T}$ac_lib_mevent" >&6; } |
---|
13698 | elif test $ac_lib_mevent = yes; then |
---|
13699 | { echo "$as_me:$LINENO: checking for event mouse interface" >&5 |
---|
13700 | echo $ECHO_N "checking for event mouse interface... $ECHO_C" >&6; } |
---|
13701 | cat >conftest.$ac_ext <<_ACEOF |
---|
13702 | /* confdefs.h. */ |
---|
13703 | _ACEOF |
---|
13704 | cat confdefs.h >>conftest.$ac_ext |
---|
13705 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13706 | /* end confdefs.h. */ |
---|
13707 | |
---|
13708 | #include <linux/input.h> |
---|
13709 | |
---|
13710 | int |
---|
13711 | main () |
---|
13712 | { |
---|
13713 | |
---|
13714 | int dummy = EVIOCGVERSION; |
---|
13715 | |
---|
13716 | ; |
---|
13717 | return 0; |
---|
13718 | } |
---|
13719 | _ACEOF |
---|
13720 | rm -f conftest.$ac_objext |
---|
13721 | if { (ac_try="$ac_compile" |
---|
13722 | case "(($ac_try" in |
---|
13723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13724 | *) ac_try_echo=$ac_try;; |
---|
13725 | esac |
---|
13726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13727 | (eval "$ac_compile") 2>conftest.er1 |
---|
13728 | ac_status=$? |
---|
13729 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13730 | rm -f conftest.er1 |
---|
13731 | cat conftest.err >&5 |
---|
13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13733 | (exit $ac_status); } && { |
---|
13734 | test -z "$ac_c_werror_flag" || |
---|
13735 | test ! -s conftest.err |
---|
13736 | } && test -s conftest.$ac_objext; then |
---|
13737 | : |
---|
13738 | else |
---|
13739 | echo "$as_me: failed program was:" >&5 |
---|
13740 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13741 | |
---|
13742 | { { echo "$as_me:$LINENO: error: the event mouse interface is missing" >&5 |
---|
13743 | echo "$as_me: error: the event mouse interface is missing" >&2;} |
---|
13744 | { (exit 1); exit 1; }; } |
---|
13745 | fi |
---|
13746 | |
---|
13747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13748 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13749 | echo "${ECHO_T}yes" >&6; } |
---|
13750 | fi |
---|
13751 | if test $ac_lib_mevent = yes; then |
---|
13752 | ac_lib_mouse="$ac_lib_mouse event" |
---|
13753 | fi |
---|
13754 | CONF_LIB_MEVENT=$ac_lib_mevent |
---|
13755 | |
---|
13756 | |
---|
13757 | # Checks for kevent |
---|
13758 | # Check whether --enable-kevent was given. |
---|
13759 | if test "${enable_kevent+set}" = set; then |
---|
13760 | enableval=$enable_kevent; ac_lib_kevent=$enableval |
---|
13761 | else |
---|
13762 | ac_lib_kevent=auto |
---|
13763 | |
---|
13764 | fi |
---|
13765 | |
---|
13766 | if test $ac_lib_kevent = auto; then |
---|
13767 | { echo "$as_me:$LINENO: checking for event keyboard interface" >&5 |
---|
13768 | echo $ECHO_N "checking for event keyboard interface... $ECHO_C" >&6; } |
---|
13769 | cat >conftest.$ac_ext <<_ACEOF |
---|
13770 | /* confdefs.h. */ |
---|
13771 | _ACEOF |
---|
13772 | cat confdefs.h >>conftest.$ac_ext |
---|
13773 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13774 | /* end confdefs.h. */ |
---|
13775 | |
---|
13776 | #include <linux/input.h> |
---|
13777 | |
---|
13778 | int |
---|
13779 | main () |
---|
13780 | { |
---|
13781 | |
---|
13782 | int dummy = EVIOCGVERSION; |
---|
13783 | |
---|
13784 | ; |
---|
13785 | return 0; |
---|
13786 | } |
---|
13787 | _ACEOF |
---|
13788 | rm -f conftest.$ac_objext |
---|
13789 | if { (ac_try="$ac_compile" |
---|
13790 | case "(($ac_try" in |
---|
13791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13792 | *) ac_try_echo=$ac_try;; |
---|
13793 | esac |
---|
13794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13795 | (eval "$ac_compile") 2>conftest.er1 |
---|
13796 | ac_status=$? |
---|
13797 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13798 | rm -f conftest.er1 |
---|
13799 | cat conftest.err >&5 |
---|
13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13801 | (exit $ac_status); } && { |
---|
13802 | test -z "$ac_c_werror_flag" || |
---|
13803 | test ! -s conftest.err |
---|
13804 | } && test -s conftest.$ac_objext; then |
---|
13805 | ac_lib_kevent=yes |
---|
13806 | else |
---|
13807 | echo "$as_me: failed program was:" >&5 |
---|
13808 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13809 | |
---|
13810 | ac_lib_kevent=no |
---|
13811 | fi |
---|
13812 | |
---|
13813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13814 | { echo "$as_me:$LINENO: result: $ac_lib_kevent" >&5 |
---|
13815 | echo "${ECHO_T}$ac_lib_kevent" >&6; } |
---|
13816 | elif test $ac_lib_kevent = yes; then |
---|
13817 | { echo "$as_me:$LINENO: checking for event keyboard interface" >&5 |
---|
13818 | echo $ECHO_N "checking for event keyboard interface... $ECHO_C" >&6; } |
---|
13819 | cat >conftest.$ac_ext <<_ACEOF |
---|
13820 | /* confdefs.h. */ |
---|
13821 | _ACEOF |
---|
13822 | cat confdefs.h >>conftest.$ac_ext |
---|
13823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13824 | /* end confdefs.h. */ |
---|
13825 | |
---|
13826 | #include <linux/input.h> |
---|
13827 | |
---|
13828 | int |
---|
13829 | main () |
---|
13830 | { |
---|
13831 | |
---|
13832 | int dummy = EVIOCGVERSION; |
---|
13833 | |
---|
13834 | ; |
---|
13835 | return 0; |
---|
13836 | } |
---|
13837 | _ACEOF |
---|
13838 | rm -f conftest.$ac_objext |
---|
13839 | if { (ac_try="$ac_compile" |
---|
13840 | case "(($ac_try" in |
---|
13841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13842 | *) ac_try_echo=$ac_try;; |
---|
13843 | esac |
---|
13844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13845 | (eval "$ac_compile") 2>conftest.er1 |
---|
13846 | ac_status=$? |
---|
13847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13848 | rm -f conftest.er1 |
---|
13849 | cat conftest.err >&5 |
---|
13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13851 | (exit $ac_status); } && { |
---|
13852 | test -z "$ac_c_werror_flag" || |
---|
13853 | test ! -s conftest.err |
---|
13854 | } && test -s conftest.$ac_objext; then |
---|
13855 | : |
---|
13856 | else |
---|
13857 | echo "$as_me: failed program was:" >&5 |
---|
13858 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13859 | |
---|
13860 | { { echo "$as_me:$LINENO: error: the event keyboard interface is missing" >&5 |
---|
13861 | echo "$as_me: error: the event keyboard interface is missing" >&2;} |
---|
13862 | { (exit 1); exit 1; }; } |
---|
13863 | fi |
---|
13864 | |
---|
13865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13866 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13867 | echo "${ECHO_T}yes" >&6; } |
---|
13868 | fi |
---|
13869 | if test $ac_lib_kevent = yes; then |
---|
13870 | ac_lib_keyboard="$ac_lib_keyboard event" |
---|
13871 | ac_lib_keyboard_flag=yes |
---|
13872 | fi |
---|
13873 | CONF_LIB_KEVENT=$ac_lib_kevent |
---|
13874 | |
---|
13875 | |
---|
13876 | # Checks for jevent |
---|
13877 | # Check whether --enable-jevent was given. |
---|
13878 | if test "${enable_jevent+set}" = set; then |
---|
13879 | enableval=$enable_jevent; ac_lib_jevent=$enableval |
---|
13880 | else |
---|
13881 | ac_lib_jevent=auto |
---|
13882 | |
---|
13883 | fi |
---|
13884 | |
---|
13885 | if test $ac_lib_jevent = auto; then |
---|
13886 | { echo "$as_me:$LINENO: checking for event joystick interface" >&5 |
---|
13887 | echo $ECHO_N "checking for event joystick interface... $ECHO_C" >&6; } |
---|
13888 | cat >conftest.$ac_ext <<_ACEOF |
---|
13889 | /* confdefs.h. */ |
---|
13890 | _ACEOF |
---|
13891 | cat confdefs.h >>conftest.$ac_ext |
---|
13892 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13893 | /* end confdefs.h. */ |
---|
13894 | |
---|
13895 | #include <linux/input.h> |
---|
13896 | |
---|
13897 | int |
---|
13898 | main () |
---|
13899 | { |
---|
13900 | |
---|
13901 | int dummy = EVIOCGVERSION; |
---|
13902 | |
---|
13903 | ; |
---|
13904 | return 0; |
---|
13905 | } |
---|
13906 | _ACEOF |
---|
13907 | rm -f conftest.$ac_objext |
---|
13908 | if { (ac_try="$ac_compile" |
---|
13909 | case "(($ac_try" in |
---|
13910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13911 | *) ac_try_echo=$ac_try;; |
---|
13912 | esac |
---|
13913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13914 | (eval "$ac_compile") 2>conftest.er1 |
---|
13915 | ac_status=$? |
---|
13916 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13917 | rm -f conftest.er1 |
---|
13918 | cat conftest.err >&5 |
---|
13919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13920 | (exit $ac_status); } && { |
---|
13921 | test -z "$ac_c_werror_flag" || |
---|
13922 | test ! -s conftest.err |
---|
13923 | } && test -s conftest.$ac_objext; then |
---|
13924 | ac_lib_jevent=yes |
---|
13925 | else |
---|
13926 | echo "$as_me: failed program was:" >&5 |
---|
13927 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13928 | |
---|
13929 | ac_lib_jevent=no |
---|
13930 | fi |
---|
13931 | |
---|
13932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13933 | { echo "$as_me:$LINENO: result: $ac_lib_jevent" >&5 |
---|
13934 | echo "${ECHO_T}$ac_lib_jevent" >&6; } |
---|
13935 | elif test $ac_lib_jevent = yes; then |
---|
13936 | { echo "$as_me:$LINENO: checking for event joystick interface" >&5 |
---|
13937 | echo $ECHO_N "checking for event joystick interface... $ECHO_C" >&6; } |
---|
13938 | cat >conftest.$ac_ext <<_ACEOF |
---|
13939 | /* confdefs.h. */ |
---|
13940 | _ACEOF |
---|
13941 | cat confdefs.h >>conftest.$ac_ext |
---|
13942 | cat >>conftest.$ac_ext <<_ACEOF |
---|
13943 | /* end confdefs.h. */ |
---|
13944 | |
---|
13945 | #include <linux/input.h> |
---|
13946 | |
---|
13947 | int |
---|
13948 | main () |
---|
13949 | { |
---|
13950 | |
---|
13951 | int dummy = EVIOCGVERSION; |
---|
13952 | |
---|
13953 | ; |
---|
13954 | return 0; |
---|
13955 | } |
---|
13956 | _ACEOF |
---|
13957 | rm -f conftest.$ac_objext |
---|
13958 | if { (ac_try="$ac_compile" |
---|
13959 | case "(($ac_try" in |
---|
13960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
13961 | *) ac_try_echo=$ac_try;; |
---|
13962 | esac |
---|
13963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
---|
13964 | (eval "$ac_compile") 2>conftest.er1 |
---|
13965 | ac_status=$? |
---|
13966 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
13967 | rm -f conftest.er1 |
---|
13968 | cat conftest.err >&5 |
---|
13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
13970 | (exit $ac_status); } && { |
---|
13971 | test -z "$ac_c_werror_flag" || |
---|
13972 | test ! -s conftest.err |
---|
13973 | } && test -s conftest.$ac_objext; then |
---|
13974 | : |
---|
13975 | else |
---|
13976 | echo "$as_me: failed program was:" >&5 |
---|
13977 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
13978 | |
---|
13979 | { { echo "$as_me:$LINENO: error: the event joystick interface is missing" >&5 |
---|
13980 | echo "$as_me: error: the event joystick interface is missing" >&2;} |
---|
13981 | { (exit 1); exit 1; }; } |
---|
13982 | fi |
---|
13983 | |
---|
13984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
13985 | { echo "$as_me:$LINENO: result: yes" >&5 |
---|
13986 | echo "${ECHO_T}yes" >&6; } |
---|
13987 | fi |
---|
13988 | if test $ac_lib_jevent = yes; then |
---|
13989 | ac_lib_joystick="$ac_lib_joystick event" |
---|
13990 | fi |
---|
13991 | CONF_LIB_JEVENT=$ac_lib_jevent |
---|
13992 | |
---|
13993 | |
---|
13994 | # Final |
---|
13995 | CONF_LIB_DIRECT=$ac_lib_direct_flag |
---|
13996 | |
---|
13997 | ac_config_files="$ac_config_files Makefile" |
---|
13998 | |
---|
13999 | cat >confcache <<\_ACEOF |
---|
14000 | # This file is a shell script that caches the results of configure |
---|
14001 | # tests run on this system so they can be shared between configure |
---|
14002 | # scripts and configure runs, see configure's option --config-cache. |
---|
14003 | # It is not useful on other systems. If it contains results you don't |
---|
14004 | # want to keep, you may remove or edit it. |
---|
14005 | # |
---|
14006 | # config.status only pays attention to the cache file if you give it |
---|
14007 | # the --recheck option to rerun configure. |
---|
14008 | # |
---|
14009 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
14010 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
14011 | # following values. |
---|
14012 | |
---|
14013 | _ACEOF |
---|
14014 | |
---|
14015 | # The following way of writing the cache mishandles newlines in values, |
---|
14016 | # but we know of no workaround that is simple, portable, and efficient. |
---|
14017 | # So, we kill variables containing newlines. |
---|
14018 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
14019 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
14020 | ( |
---|
14021 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
14022 | eval ac_val=\$$ac_var |
---|
14023 | case $ac_val in #( |
---|
14024 | *${as_nl}*) |
---|
14025 | case $ac_var in #( |
---|
14026 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
---|
14027 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
---|
14028 | esac |
---|
14029 | case $ac_var in #( |
---|
14030 | _ | IFS | as_nl) ;; #( |
---|
14031 | *) $as_unset $ac_var ;; |
---|
14032 | esac ;; |
---|
14033 | esac |
---|
14034 | done |
---|
14035 | |
---|
14036 | (set) 2>&1 | |
---|
14037 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
14038 | *${as_nl}ac_space=\ *) |
---|
14039 | # `set' does not quote correctly, so add quotes (double-quote |
---|
14040 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
14041 | sed -n \ |
---|
14042 | "s/'/'\\\\''/g; |
---|
14043 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
14044 | ;; #( |
---|
14045 | *) |
---|
14046 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
14047 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
14048 | ;; |
---|
14049 | esac | |
---|
14050 | sort |
---|
14051 | ) | |
---|
14052 | sed ' |
---|
14053 | /^ac_cv_env_/b end |
---|
14054 | t clear |
---|
14055 | :clear |
---|
14056 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
14057 | t end |
---|
14058 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
14059 | :end' >>confcache |
---|
14060 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
14061 | if test -w "$cache_file"; then |
---|
14062 | test "x$cache_file" != "x/dev/null" && |
---|
14063 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
---|
14064 | echo "$as_me: updating cache $cache_file" >&6;} |
---|
14065 | cat confcache >$cache_file |
---|
14066 | else |
---|
14067 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
---|
14068 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
14069 | fi |
---|
14070 | fi |
---|
14071 | rm -f confcache |
---|
14072 | |
---|
14073 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
14074 | # Let make expand exec_prefix. |
---|
14075 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
14076 | |
---|
14077 | DEFS=-DHAVE_CONFIG_H |
---|
14078 | |
---|
14079 | ac_libobjs= |
---|
14080 | ac_ltlibobjs= |
---|
14081 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
14082 | # 1. Remove the extension, and $U if already installed. |
---|
14083 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
14084 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
---|
14085 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
14086 | # will be set to the directory where LIBOBJS objects are built. |
---|
14087 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
14088 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
14089 | done |
---|
14090 | LIBOBJS=$ac_libobjs |
---|
14091 | |
---|
14092 | LTLIBOBJS=$ac_ltlibobjs |
---|
14093 | |
---|
14094 | |
---|
14095 | |
---|
14096 | : ${CONFIG_STATUS=./config.status} |
---|
14097 | ac_clean_files_save=$ac_clean_files |
---|
14098 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
14099 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
14100 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
14101 | cat >$CONFIG_STATUS <<_ACEOF |
---|
14102 | #! $SHELL |
---|
14103 | # Generated by $as_me. |
---|
14104 | # Run this file to recreate the current configuration. |
---|
14105 | # Compiler output produced by configure, useful for debugging |
---|
14106 | # configure, is in config.log if it exists. |
---|
14107 | |
---|
14108 | debug=false |
---|
14109 | ac_cs_recheck=false |
---|
14110 | ac_cs_silent=false |
---|
14111 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
14112 | _ACEOF |
---|
14113 | |
---|
14114 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
14115 | ## --------------------- ## |
---|
14116 | ## M4sh Initialization. ## |
---|
14117 | ## --------------------- ## |
---|
14118 | |
---|
14119 | # Be more Bourne compatible |
---|
14120 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
14121 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
14122 | emulate sh |
---|
14123 | NULLCMD=: |
---|
14124 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
14125 | # is contrary to our usage. Disable this feature. |
---|
14126 | alias -g '${1+"$@"}'='"$@"' |
---|
14127 | setopt NO_GLOB_SUBST |
---|
14128 | else |
---|
14129 | case `(set -o) 2>/dev/null` in |
---|
14130 | *posix*) set -o posix ;; |
---|
14131 | esac |
---|
14132 | |
---|
14133 | fi |
---|
14134 | |
---|
14135 | |
---|
14136 | |
---|
14137 | |
---|
14138 | # PATH needs CR |
---|
14139 | # Avoid depending upon Character Ranges. |
---|
14140 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
14141 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
14142 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
14143 | as_cr_digits='0123456789' |
---|
14144 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
14145 | |
---|
14146 | # The user is always right. |
---|
14147 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
14148 | echo "#! /bin/sh" >conf$$.sh |
---|
14149 | echo "exit 0" >>conf$$.sh |
---|
14150 | chmod +x conf$$.sh |
---|
14151 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
14152 | PATH_SEPARATOR=';' |
---|
14153 | else |
---|
14154 | PATH_SEPARATOR=: |
---|
14155 | fi |
---|
14156 | rm -f conf$$.sh |
---|
14157 | fi |
---|
14158 | |
---|
14159 | # Support unset when possible. |
---|
14160 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
14161 | as_unset=unset |
---|
14162 | else |
---|
14163 | as_unset=false |
---|
14164 | fi |
---|
14165 | |
---|
14166 | |
---|
14167 | # IFS |
---|
14168 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
14169 | # there to prevent editors from complaining about space-tab. |
---|
14170 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
14171 | # splitting by setting IFS to empty value.) |
---|
14172 | as_nl=' |
---|
14173 | ' |
---|
14174 | IFS=" "" $as_nl" |
---|
14175 | |
---|
14176 | # Find who we are. Look in the path if we contain no directory separator. |
---|
14177 | case $0 in |
---|
14178 | *[\\/]* ) as_myself=$0 ;; |
---|
14179 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
14180 | for as_dir in $PATH |
---|
14181 | do |
---|
14182 | IFS=$as_save_IFS |
---|
14183 | test -z "$as_dir" && as_dir=. |
---|
14184 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
14185 | done |
---|
14186 | IFS=$as_save_IFS |
---|
14187 | |
---|
14188 | ;; |
---|
14189 | esac |
---|
14190 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
14191 | # in which case we are not to be found in the path. |
---|
14192 | if test "x$as_myself" = x; then |
---|
14193 | as_myself=$0 |
---|
14194 | fi |
---|
14195 | if test ! -f "$as_myself"; then |
---|
14196 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
14197 | { (exit 1); exit 1; } |
---|
14198 | fi |
---|
14199 | |
---|
14200 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
14201 | for as_var in ENV MAIL MAILPATH |
---|
14202 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
14203 | done |
---|
14204 | PS1='$ ' |
---|
14205 | PS2='> ' |
---|
14206 | PS4='+ ' |
---|
14207 | |
---|
14208 | # NLS nuisances. |
---|
14209 | for as_var in \ |
---|
14210 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
14211 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
14212 | LC_TELEPHONE LC_TIME |
---|
14213 | do |
---|
14214 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
14215 | eval $as_var=C; export $as_var |
---|
14216 | else |
---|
14217 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
---|
14218 | fi |
---|
14219 | done |
---|
14220 | |
---|
14221 | # Required to use basename. |
---|
14222 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
14223 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
14224 | as_expr=expr |
---|
14225 | else |
---|
14226 | as_expr=false |
---|
14227 | fi |
---|
14228 | |
---|
14229 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
14230 | as_basename=basename |
---|
14231 | else |
---|
14232 | as_basename=false |
---|
14233 | fi |
---|
14234 | |
---|
14235 | |
---|
14236 | # Name of the executable. |
---|
14237 | as_me=`$as_basename -- "$0" || |
---|
14238 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
14239 | X"$0" : 'X\(//\)$' \| \ |
---|
14240 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
14241 | echo X/"$0" | |
---|
14242 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
14243 | s//\1/ |
---|
14244 | q |
---|
14245 | } |
---|
14246 | /^X\/\(\/\/\)$/{ |
---|
14247 | s//\1/ |
---|
14248 | q |
---|
14249 | } |
---|
14250 | /^X\/\(\/\).*/{ |
---|
14251 | s//\1/ |
---|
14252 | q |
---|
14253 | } |
---|
14254 | s/.*/./; q'` |
---|
14255 | |
---|
14256 | # CDPATH. |
---|
14257 | $as_unset CDPATH |
---|
14258 | |
---|
14259 | |
---|
14260 | |
---|
14261 | as_lineno_1=$LINENO |
---|
14262 | as_lineno_2=$LINENO |
---|
14263 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
14264 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
---|
14265 | |
---|
14266 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
14267 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
14268 | # line-number line after each line using $LINENO; the second 'sed' |
---|
14269 | # does the real work. The second script uses 'N' to pair each |
---|
14270 | # line-number line with the line containing $LINENO, and appends |
---|
14271 | # trailing '-' during substitution so that $LINENO is not a special |
---|
14272 | # case at line end. |
---|
14273 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
14274 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
---|
14275 | # E. McMahon (1931-1989) for sed's syntax. :-) |
---|
14276 | sed -n ' |
---|
14277 | p |
---|
14278 | /[$]LINENO/= |
---|
14279 | ' <$as_myself | |
---|
14280 | sed ' |
---|
14281 | s/[$]LINENO.*/&-/ |
---|
14282 | t lineno |
---|
14283 | b |
---|
14284 | :lineno |
---|
14285 | N |
---|
14286 | :loop |
---|
14287 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
14288 | t loop |
---|
14289 | s/-\n.*// |
---|
14290 | ' >$as_me.lineno && |
---|
14291 | chmod +x "$as_me.lineno" || |
---|
14292 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
14293 | { (exit 1); exit 1; }; } |
---|
14294 | |
---|
14295 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
14296 | # (the dirname of $[0] is not the place where we might find the |
---|
14297 | # original and so on. Autoconf is especially sensitive to this). |
---|
14298 | . "./$as_me.lineno" |
---|
14299 | # Exit status is that of the last command. |
---|
14300 | exit |
---|
14301 | } |
---|
14302 | |
---|
14303 | |
---|
14304 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
14305 | as_dirname=dirname |
---|
14306 | else |
---|
14307 | as_dirname=false |
---|
14308 | fi |
---|
14309 | |
---|
14310 | ECHO_C= ECHO_N= ECHO_T= |
---|
14311 | case `echo -n x` in |
---|
14312 | -n*) |
---|
14313 | case `echo 'x\c'` in |
---|
14314 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
14315 | *) ECHO_C='\c';; |
---|
14316 | esac;; |
---|
14317 | *) |
---|
14318 | ECHO_N='-n';; |
---|
14319 | esac |
---|
14320 | |
---|
14321 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
14322 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
14323 | as_expr=expr |
---|
14324 | else |
---|
14325 | as_expr=false |
---|
14326 | fi |
---|
14327 | |
---|
14328 | rm -f conf$$ conf$$.exe conf$$.file |
---|
14329 | if test -d conf$$.dir; then |
---|
14330 | rm -f conf$$.dir/conf$$.file |
---|
14331 | else |
---|
14332 | rm -f conf$$.dir |
---|
14333 | mkdir conf$$.dir |
---|
14334 | fi |
---|
14335 | echo >conf$$.file |
---|
14336 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
14337 | as_ln_s='ln -s' |
---|
14338 | # ... but there are two gotchas: |
---|
14339 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
14340 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
14341 | # In both cases, we have to default to `cp -p'. |
---|
14342 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
14343 | as_ln_s='cp -p' |
---|
14344 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
14345 | as_ln_s=ln |
---|
14346 | else |
---|
14347 | as_ln_s='cp -p' |
---|
14348 | fi |
---|
14349 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
14350 | rmdir conf$$.dir 2>/dev/null |
---|
14351 | |
---|
14352 | if mkdir -p . 2>/dev/null; then |
---|
14353 | as_mkdir_p=: |
---|
14354 | else |
---|
14355 | test -d ./-p && rmdir ./-p |
---|
14356 | as_mkdir_p=false |
---|
14357 | fi |
---|
14358 | |
---|
14359 | if test -x / >/dev/null 2>&1; then |
---|
14360 | as_test_x='test -x' |
---|
14361 | else |
---|
14362 | if ls -dL / >/dev/null 2>&1; then |
---|
14363 | as_ls_L_option=L |
---|
14364 | else |
---|
14365 | as_ls_L_option= |
---|
14366 | fi |
---|
14367 | as_test_x=' |
---|
14368 | eval sh -c '\'' |
---|
14369 | if test -d "$1"; then |
---|
14370 | test -d "$1/."; |
---|
14371 | else |
---|
14372 | case $1 in |
---|
14373 | -*)set "./$1";; |
---|
14374 | esac; |
---|
14375 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
---|
14376 | ???[sx]*):;;*)false;;esac;fi |
---|
14377 | '\'' sh |
---|
14378 | ' |
---|
14379 | fi |
---|
14380 | as_executable_p=$as_test_x |
---|
14381 | |
---|
14382 | # Sed expression to map a string onto a valid CPP name. |
---|
14383 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
14384 | |
---|
14385 | # Sed expression to map a string onto a valid variable name. |
---|
14386 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
14387 | |
---|
14388 | |
---|
14389 | exec 6>&1 |
---|
14390 | |
---|
14391 | # Save the log message, to keep $[0] and so on meaningful, and to |
---|
14392 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
14393 | # values after options handling. |
---|
14394 | ac_log=" |
---|
14395 | This file was extended by advance $as_me source, which was |
---|
14396 | generated by GNU Autoconf 2.61. Invocation command line was |
---|
14397 | |
---|
14398 | CONFIG_FILES = $CONFIG_FILES |
---|
14399 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
14400 | CONFIG_LINKS = $CONFIG_LINKS |
---|
14401 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
14402 | $ $0 $@ |
---|
14403 | |
---|
14404 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
14405 | " |
---|
14406 | |
---|
14407 | _ACEOF |
---|
14408 | |
---|
14409 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14410 | # Files that config.status was made for. |
---|
14411 | config_files="$ac_config_files" |
---|
14412 | config_headers="$ac_config_headers" |
---|
14413 | |
---|
14414 | _ACEOF |
---|
14415 | |
---|
14416 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
14417 | ac_cs_usage="\ |
---|
14418 | \`$as_me' instantiates files from templates according to the |
---|
14419 | current configuration. |
---|
14420 | |
---|
14421 | Usage: $0 [OPTIONS] [FILE]... |
---|
14422 | |
---|
14423 | -h, --help print this help, then exit |
---|
14424 | -V, --version print version number and configuration settings, then exit |
---|
14425 | -q, --quiet do not print progress messages |
---|
14426 | -d, --debug don't remove temporary files |
---|
14427 | --recheck update $as_me by reconfiguring in the same conditions |
---|
14428 | --file=FILE[:TEMPLATE] |
---|
14429 | instantiate the configuration file FILE |
---|
14430 | --header=FILE[:TEMPLATE] |
---|
14431 | instantiate the configuration header FILE |
---|
14432 | |
---|
14433 | Configuration files: |
---|
14434 | $config_files |
---|
14435 | |
---|
14436 | Configuration headers: |
---|
14437 | $config_headers |
---|
14438 | |
---|
14439 | Report bugs to <bug-autoconf@gnu.org>." |
---|
14440 | |
---|
14441 | _ACEOF |
---|
14442 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14443 | ac_cs_version="\\ |
---|
14444 | advance config.status source |
---|
14445 | configured by $0, generated by GNU Autoconf 2.61, |
---|
14446 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
---|
14447 | |
---|
14448 | Copyright (C) 2006 Free Software Foundation, Inc. |
---|
14449 | This config.status script is free software; the Free Software Foundation |
---|
14450 | gives unlimited permission to copy, distribute and modify it." |
---|
14451 | |
---|
14452 | ac_pwd='$ac_pwd' |
---|
14453 | srcdir='$srcdir' |
---|
14454 | INSTALL='$INSTALL' |
---|
14455 | _ACEOF |
---|
14456 | |
---|
14457 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
14458 | # If no file are specified by the user, then we need to provide default |
---|
14459 | # value. By we need to know if files were specified by the user. |
---|
14460 | ac_need_defaults=: |
---|
14461 | while test $# != 0 |
---|
14462 | do |
---|
14463 | case $1 in |
---|
14464 | --*=*) |
---|
14465 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
14466 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
14467 | ac_shift=: |
---|
14468 | ;; |
---|
14469 | *) |
---|
14470 | ac_option=$1 |
---|
14471 | ac_optarg=$2 |
---|
14472 | ac_shift=shift |
---|
14473 | ;; |
---|
14474 | esac |
---|
14475 | |
---|
14476 | case $ac_option in |
---|
14477 | # Handling of the options. |
---|
14478 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
14479 | ac_cs_recheck=: ;; |
---|
14480 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
14481 | echo "$ac_cs_version"; exit ;; |
---|
14482 | --debug | --debu | --deb | --de | --d | -d ) |
---|
14483 | debug=: ;; |
---|
14484 | --file | --fil | --fi | --f ) |
---|
14485 | $ac_shift |
---|
14486 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
14487 | ac_need_defaults=false;; |
---|
14488 | --header | --heade | --head | --hea ) |
---|
14489 | $ac_shift |
---|
14490 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
14491 | ac_need_defaults=false;; |
---|
14492 | --he | --h) |
---|
14493 | # Conflict between --help and --header |
---|
14494 | { echo "$as_me: error: ambiguous option: $1 |
---|
14495 | Try \`$0 --help' for more information." >&2 |
---|
14496 | { (exit 1); exit 1; }; };; |
---|
14497 | --help | --hel | -h ) |
---|
14498 | echo "$ac_cs_usage"; exit ;; |
---|
14499 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
14500 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
14501 | ac_cs_silent=: ;; |
---|
14502 | |
---|
14503 | # This is an error. |
---|
14504 | -*) { echo "$as_me: error: unrecognized option: $1 |
---|
14505 | Try \`$0 --help' for more information." >&2 |
---|
14506 | { (exit 1); exit 1; }; } ;; |
---|
14507 | |
---|
14508 | *) ac_config_targets="$ac_config_targets $1" |
---|
14509 | ac_need_defaults=false ;; |
---|
14510 | |
---|
14511 | esac |
---|
14512 | shift |
---|
14513 | done |
---|
14514 | |
---|
14515 | ac_configure_extra_args= |
---|
14516 | |
---|
14517 | if $ac_cs_silent; then |
---|
14518 | exec 6>/dev/null |
---|
14519 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
14520 | fi |
---|
14521 | |
---|
14522 | _ACEOF |
---|
14523 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14524 | if \$ac_cs_recheck; then |
---|
14525 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
14526 | CONFIG_SHELL=$SHELL |
---|
14527 | export CONFIG_SHELL |
---|
14528 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
14529 | fi |
---|
14530 | |
---|
14531 | _ACEOF |
---|
14532 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
14533 | exec 5>>config.log |
---|
14534 | { |
---|
14535 | echo |
---|
14536 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
14537 | ## Running $as_me. ## |
---|
14538 | _ASBOX |
---|
14539 | echo "$ac_log" |
---|
14540 | } >&5 |
---|
14541 | |
---|
14542 | _ACEOF |
---|
14543 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14544 | _ACEOF |
---|
14545 | |
---|
14546 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
14547 | |
---|
14548 | # Handling of arguments. |
---|
14549 | for ac_config_target in $ac_config_targets |
---|
14550 | do |
---|
14551 | case $ac_config_target in |
---|
14552 | "advance/lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS advance/lib/config.h:advance/lib/config.hin" ;; |
---|
14553 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
14554 | |
---|
14555 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
14556 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
14557 | { (exit 1); exit 1; }; };; |
---|
14558 | esac |
---|
14559 | done |
---|
14560 | |
---|
14561 | |
---|
14562 | # If the user did not use the arguments to specify the items to instantiate, |
---|
14563 | # then the envvar interface is used. Set only those that are not. |
---|
14564 | # We use the long form for the default assignment because of an extremely |
---|
14565 | # bizarre bug on SunOS 4.1.3. |
---|
14566 | if $ac_need_defaults; then |
---|
14567 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
14568 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
14569 | fi |
---|
14570 | |
---|
14571 | # Have a temporary directory for convenience. Make it in the build tree |
---|
14572 | # simply because there is no reason against having it here, and in addition, |
---|
14573 | # creating and moving files from /tmp can sometimes cause problems. |
---|
14574 | # Hook for its removal unless debugging. |
---|
14575 | # Note that there is a small window in which the directory will not be cleaned: |
---|
14576 | # after its creation but before its name has been assigned to `$tmp'. |
---|
14577 | $debug || |
---|
14578 | { |
---|
14579 | tmp= |
---|
14580 | trap 'exit_status=$? |
---|
14581 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
---|
14582 | ' 0 |
---|
14583 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
14584 | } |
---|
14585 | # Create a (secure) tmp directory for tmp files. |
---|
14586 | |
---|
14587 | { |
---|
14588 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
14589 | test -n "$tmp" && test -d "$tmp" |
---|
14590 | } || |
---|
14591 | { |
---|
14592 | tmp=./conf$$-$RANDOM |
---|
14593 | (umask 077 && mkdir "$tmp") |
---|
14594 | } || |
---|
14595 | { |
---|
14596 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
14597 | { (exit 1); exit 1; } |
---|
14598 | } |
---|
14599 | |
---|
14600 | # |
---|
14601 | # Set up the sed scripts for CONFIG_FILES section. |
---|
14602 | # |
---|
14603 | |
---|
14604 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
14605 | # This happens for instance when ./config.status config.h |
---|
14606 | if test -n "$CONFIG_FILES"; then |
---|
14607 | |
---|
14608 | _ACEOF |
---|
14609 | |
---|
14610 | |
---|
14611 | |
---|
14612 | ac_delim='%!_!# ' |
---|
14613 | for ac_last_try in false false false false false :; do |
---|
14614 | cat >conf$$subs.sed <<_ACEOF |
---|
14615 | SHELL!$SHELL$ac_delim |
---|
14616 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
---|
14617 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
---|
14618 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
---|
14619 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
---|
14620 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
---|
14621 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
---|
14622 | exec_prefix!$exec_prefix$ac_delim |
---|
14623 | prefix!$prefix$ac_delim |
---|
14624 | program_transform_name!$program_transform_name$ac_delim |
---|
14625 | bindir!$bindir$ac_delim |
---|
14626 | sbindir!$sbindir$ac_delim |
---|
14627 | libexecdir!$libexecdir$ac_delim |
---|
14628 | datarootdir!$datarootdir$ac_delim |
---|
14629 | datadir!$datadir$ac_delim |
---|
14630 | sysconfdir!$sysconfdir$ac_delim |
---|
14631 | sharedstatedir!$sharedstatedir$ac_delim |
---|
14632 | localstatedir!$localstatedir$ac_delim |
---|
14633 | includedir!$includedir$ac_delim |
---|
14634 | oldincludedir!$oldincludedir$ac_delim |
---|
14635 | docdir!$docdir$ac_delim |
---|
14636 | infodir!$infodir$ac_delim |
---|
14637 | htmldir!$htmldir$ac_delim |
---|
14638 | dvidir!$dvidir$ac_delim |
---|
14639 | pdfdir!$pdfdir$ac_delim |
---|
14640 | psdir!$psdir$ac_delim |
---|
14641 | libdir!$libdir$ac_delim |
---|
14642 | localedir!$localedir$ac_delim |
---|
14643 | mandir!$mandir$ac_delim |
---|
14644 | DEFS!$DEFS$ac_delim |
---|
14645 | ECHO_C!$ECHO_C$ac_delim |
---|
14646 | ECHO_N!$ECHO_N$ac_delim |
---|
14647 | ECHO_T!$ECHO_T$ac_delim |
---|
14648 | LIBS!$LIBS$ac_delim |
---|
14649 | build_alias!$build_alias$ac_delim |
---|
14650 | host_alias!$host_alias$ac_delim |
---|
14651 | target_alias!$target_alias$ac_delim |
---|
14652 | build!$build$ac_delim |
---|
14653 | build_cpu!$build_cpu$ac_delim |
---|
14654 | build_vendor!$build_vendor$ac_delim |
---|
14655 | build_os!$build_os$ac_delim |
---|
14656 | host!$host$ac_delim |
---|
14657 | host_cpu!$host_cpu$ac_delim |
---|
14658 | host_vendor!$host_vendor$ac_delim |
---|
14659 | host_os!$host_os$ac_delim |
---|
14660 | ASMFLAGS!$ASMFLAGS$ac_delim |
---|
14661 | CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim |
---|
14662 | EXE!$EXE$ac_delim |
---|
14663 | CONF_SYSTEM!$CONF_SYSTEM$ac_delim |
---|
14664 | CONF_HOST!$CONF_HOST$ac_delim |
---|
14665 | EXE_FOR_BUILD!$EXE_FOR_BUILD$ac_delim |
---|
14666 | CONF_BUILD!$CONF_BUILD$ac_delim |
---|
14667 | CC!$CC$ac_delim |
---|
14668 | CFLAGS!$CFLAGS$ac_delim |
---|
14669 | LDFLAGS!$LDFLAGS$ac_delim |
---|
14670 | CPPFLAGS!$CPPFLAGS$ac_delim |
---|
14671 | ac_ct_CC!$ac_ct_CC$ac_delim |
---|
14672 | EXEEXT!$EXEEXT$ac_delim |
---|
14673 | OBJEXT!$OBJEXT$ac_delim |
---|
14674 | CXX!$CXX$ac_delim |
---|
14675 | CXXFLAGS!$CXXFLAGS$ac_delim |
---|
14676 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
---|
14677 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
---|
14678 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
---|
14679 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
---|
14680 | LN_S!$LN_S$ac_delim |
---|
14681 | AR!$AR$ac_delim |
---|
14682 | ac_ct_AR!$ac_ct_AR$ac_delim |
---|
14683 | RC!$RC$ac_delim |
---|
14684 | ac_ct_RC!$ac_ct_RC$ac_delim |
---|
14685 | RM!$RM$ac_delim |
---|
14686 | CP!$CP$ac_delim |
---|
14687 | MKDIR!$MKDIR$ac_delim |
---|
14688 | ECHO!$ECHO$ac_delim |
---|
14689 | TAR!$TAR$ac_delim |
---|
14690 | GZIP!$GZIP$ac_delim |
---|
14691 | ZIP!$ZIP$ac_delim |
---|
14692 | CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim |
---|
14693 | CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim |
---|
14694 | CONF_DEBUG!$CONF_DEBUG$ac_delim |
---|
14695 | CONF_CFLAGS_OPT!$CONF_CFLAGS_OPT$ac_delim |
---|
14696 | CONF_LDFLAGS!$CONF_LDFLAGS$ac_delim |
---|
14697 | CPP!$CPP$ac_delim |
---|
14698 | GREP!$GREP$ac_delim |
---|
14699 | EGREP!$EGREP$ac_delim |
---|
14700 | ASM!$ASM$ac_delim |
---|
14701 | CONF_CFLAGS_ARCH!$CONF_CFLAGS_ARCH$ac_delim |
---|
14702 | CONF_EMU!$CONF_EMU$ac_delim |
---|
14703 | CONF_DEBUGGER!$CONF_DEBUGGER$ac_delim |
---|
14704 | ALLOCA!$ALLOCA$ac_delim |
---|
14705 | CONF_LIB_ZLIB!$CONF_LIB_ZLIB$ac_delim |
---|
14706 | CONF_LIB_EXPAT!$CONF_LIB_EXPAT$ac_delim |
---|
14707 | CONF_LIB_SVGALIB!$CONF_LIB_SVGALIB$ac_delim |
---|
14708 | CONF_LIB_FB!$CONF_LIB_FB$ac_delim |
---|
14709 | CONF_LIB_ALSA!$CONF_LIB_ALSA$ac_delim |
---|
14710 | CONF_LIB_OSS!$CONF_LIB_OSS$ac_delim |
---|
14711 | CONF_LIB_PTHREAD!$CONF_LIB_PTHREAD$ac_delim |
---|
14712 | _ACEOF |
---|
14713 | |
---|
14714 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
---|
14715 | break |
---|
14716 | elif $ac_last_try; then |
---|
14717 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
14718 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
14719 | { (exit 1); exit 1; }; } |
---|
14720 | else |
---|
14721 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
14722 | fi |
---|
14723 | done |
---|
14724 | |
---|
14725 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
14726 | if test -n "$ac_eof"; then |
---|
14727 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
14728 | ac_eof=`expr $ac_eof + 1` |
---|
14729 | fi |
---|
14730 | |
---|
14731 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14732 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
---|
14733 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
14734 | _ACEOF |
---|
14735 | sed ' |
---|
14736 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
14737 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
14738 | :n |
---|
14739 | t n |
---|
14740 | s/'"$ac_delim"'$/,g/; t |
---|
14741 | s/$/\\/; p |
---|
14742 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
14743 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
14744 | rm -f conf$$subs.sed |
---|
14745 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14746 | CEOF$ac_eof |
---|
14747 | _ACEOF |
---|
14748 | |
---|
14749 | |
---|
14750 | ac_delim='%!_!# ' |
---|
14751 | for ac_last_try in false false false false false :; do |
---|
14752 | cat >conf$$subs.sed <<_ACEOF |
---|
14753 | CONF_LIB_SLANG!$CONF_LIB_SLANG$ac_delim |
---|
14754 | CONF_LIB_NCURSES!$CONF_LIB_NCURSES$ac_delim |
---|
14755 | ac_lib_freetype_config!$ac_lib_freetype_config$ac_delim |
---|
14756 | FREETYPECFLAGS!$FREETYPECFLAGS$ac_delim |
---|
14757 | FREETYPELIBS!$FREETYPELIBS$ac_delim |
---|
14758 | CONF_LIB_FREETYPE!$CONF_LIB_FREETYPE$ac_delim |
---|
14759 | ac_lib_sdl_config!$ac_lib_sdl_config$ac_delim |
---|
14760 | SDLCFLAGS!$SDLCFLAGS$ac_delim |
---|
14761 | SDLLIBS!$SDLLIBS$ac_delim |
---|
14762 | CONF_LIB_SDL!$CONF_LIB_SDL$ac_delim |
---|
14763 | CONF_LIB_SVGAWIN!$CONF_LIB_SVGAWIN$ac_delim |
---|
14764 | CONF_LIB_MRAWINPUT!$CONF_LIB_MRAWINPUT$ac_delim |
---|
14765 | CONF_LIB_MCPN!$CONF_LIB_MCPN$ac_delim |
---|
14766 | CONF_LIB_KRAW!$CONF_LIB_KRAW$ac_delim |
---|
14767 | CONF_LIB_JRAW!$CONF_LIB_JRAW$ac_delim |
---|
14768 | CONF_LIB_MRAW!$CONF_LIB_MRAW$ac_delim |
---|
14769 | CONF_LIB_MEVENT!$CONF_LIB_MEVENT$ac_delim |
---|
14770 | CONF_LIB_KEVENT!$CONF_LIB_KEVENT$ac_delim |
---|
14771 | CONF_LIB_JEVENT!$CONF_LIB_JEVENT$ac_delim |
---|
14772 | CONF_LIB_DIRECT!$CONF_LIB_DIRECT$ac_delim |
---|
14773 | LIBOBJS!$LIBOBJS$ac_delim |
---|
14774 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
---|
14775 | _ACEOF |
---|
14776 | |
---|
14777 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then |
---|
14778 | break |
---|
14779 | elif $ac_last_try; then |
---|
14780 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
---|
14781 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
---|
14782 | { (exit 1); exit 1; }; } |
---|
14783 | else |
---|
14784 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
14785 | fi |
---|
14786 | done |
---|
14787 | |
---|
14788 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
---|
14789 | if test -n "$ac_eof"; then |
---|
14790 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
---|
14791 | ac_eof=`expr $ac_eof + 1` |
---|
14792 | fi |
---|
14793 | |
---|
14794 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14795 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
---|
14796 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
---|
14797 | _ACEOF |
---|
14798 | sed ' |
---|
14799 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
---|
14800 | s/^/s,@/; s/!/@,|#_!!_#|/ |
---|
14801 | :n |
---|
14802 | t n |
---|
14803 | s/'"$ac_delim"'$/,g/; t |
---|
14804 | s/$/\\/; p |
---|
14805 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
---|
14806 | ' >>$CONFIG_STATUS <conf$$subs.sed |
---|
14807 | rm -f conf$$subs.sed |
---|
14808 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
14809 | :end |
---|
14810 | s/|#_!!_#|//g |
---|
14811 | CEOF$ac_eof |
---|
14812 | _ACEOF |
---|
14813 | |
---|
14814 | |
---|
14815 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
14816 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
14817 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
14818 | # (actually we leave an empty line to preserve line numbers). |
---|
14819 | if test "x$srcdir" = x.; then |
---|
14820 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
14821 | s/:*\$(srcdir):*/:/ |
---|
14822 | s/:*\${srcdir}:*/:/ |
---|
14823 | s/:*@srcdir@:*/:/ |
---|
14824 | s/^\([^=]*=[ ]*\):*/\1/ |
---|
14825 | s/:*$// |
---|
14826 | s/^[^=]*=[ ]*$// |
---|
14827 | }' |
---|
14828 | fi |
---|
14829 | |
---|
14830 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
14831 | fi # test -n "$CONFIG_FILES" |
---|
14832 | |
---|
14833 | |
---|
14834 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS |
---|
14835 | do |
---|
14836 | case $ac_tag in |
---|
14837 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
14838 | esac |
---|
14839 | case $ac_mode$ac_tag in |
---|
14840 | :[FHL]*:*);; |
---|
14841 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
---|
14842 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
---|
14843 | { (exit 1); exit 1; }; };; |
---|
14844 | :[FH]-) ac_tag=-:-;; |
---|
14845 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
14846 | esac |
---|
14847 | ac_save_IFS=$IFS |
---|
14848 | IFS=: |
---|
14849 | set x $ac_tag |
---|
14850 | IFS=$ac_save_IFS |
---|
14851 | shift |
---|
14852 | ac_file=$1 |
---|
14853 | shift |
---|
14854 | |
---|
14855 | case $ac_mode in |
---|
14856 | :L) ac_source=$1;; |
---|
14857 | :[FH]) |
---|
14858 | ac_file_inputs= |
---|
14859 | for ac_f |
---|
14860 | do |
---|
14861 | case $ac_f in |
---|
14862 | -) ac_f="$tmp/stdin";; |
---|
14863 | *) # Look for the file first in the build tree, then in the source tree |
---|
14864 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
14865 | # because $ac_f cannot contain `:'. |
---|
14866 | test -f "$ac_f" || |
---|
14867 | case $ac_f in |
---|
14868 | [\\/$]*) false;; |
---|
14869 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
14870 | esac || |
---|
14871 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
---|
14872 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
---|
14873 | { (exit 1); exit 1; }; };; |
---|
14874 | esac |
---|
14875 | ac_file_inputs="$ac_file_inputs $ac_f" |
---|
14876 | done |
---|
14877 | |
---|
14878 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
14879 | # use $as_me), people would be surprised to read: |
---|
14880 | # /* config.h. Generated by config.status. */ |
---|
14881 | configure_input="Generated from "`IFS=: |
---|
14882 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
---|
14883 | if test x"$ac_file" != x-; then |
---|
14884 | configure_input="$ac_file. $configure_input" |
---|
14885 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
14886 | echo "$as_me: creating $ac_file" >&6;} |
---|
14887 | fi |
---|
14888 | |
---|
14889 | case $ac_tag in |
---|
14890 | *:-:* | *:-) cat >"$tmp/stdin";; |
---|
14891 | esac |
---|
14892 | ;; |
---|
14893 | esac |
---|
14894 | |
---|
14895 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
14896 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
14897 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
14898 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
14899 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
14900 | echo X"$ac_file" | |
---|
14901 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
14902 | s//\1/ |
---|
14903 | q |
---|
14904 | } |
---|
14905 | /^X\(\/\/\)[^/].*/{ |
---|
14906 | s//\1/ |
---|
14907 | q |
---|
14908 | } |
---|
14909 | /^X\(\/\/\)$/{ |
---|
14910 | s//\1/ |
---|
14911 | q |
---|
14912 | } |
---|
14913 | /^X\(\/\).*/{ |
---|
14914 | s//\1/ |
---|
14915 | q |
---|
14916 | } |
---|
14917 | s/.*/./; q'` |
---|
14918 | { as_dir="$ac_dir" |
---|
14919 | case $as_dir in #( |
---|
14920 | -*) as_dir=./$as_dir;; |
---|
14921 | esac |
---|
14922 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
---|
14923 | as_dirs= |
---|
14924 | while :; do |
---|
14925 | case $as_dir in #( |
---|
14926 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
---|
14927 | *) as_qdir=$as_dir;; |
---|
14928 | esac |
---|
14929 | as_dirs="'$as_qdir' $as_dirs" |
---|
14930 | as_dir=`$as_dirname -- "$as_dir" || |
---|
14931 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
14932 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
14933 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
14934 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
14935 | echo X"$as_dir" | |
---|
14936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
14937 | s//\1/ |
---|
14938 | q |
---|
14939 | } |
---|
14940 | /^X\(\/\/\)[^/].*/{ |
---|
14941 | s//\1/ |
---|
14942 | q |
---|
14943 | } |
---|
14944 | /^X\(\/\/\)$/{ |
---|
14945 | s//\1/ |
---|
14946 | q |
---|
14947 | } |
---|
14948 | /^X\(\/\).*/{ |
---|
14949 | s//\1/ |
---|
14950 | q |
---|
14951 | } |
---|
14952 | s/.*/./; q'` |
---|
14953 | test -d "$as_dir" && break |
---|
14954 | done |
---|
14955 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
14956 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
---|
14957 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
---|
14958 | { (exit 1); exit 1; }; }; } |
---|
14959 | ac_builddir=. |
---|
14960 | |
---|
14961 | case "$ac_dir" in |
---|
14962 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
14963 | *) |
---|
14964 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
14965 | # A ".." for each directory in $ac_dir_suffix. |
---|
14966 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
---|
14967 | case $ac_top_builddir_sub in |
---|
14968 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
14969 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
14970 | esac ;; |
---|
14971 | esac |
---|
14972 | ac_abs_top_builddir=$ac_pwd |
---|
14973 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
14974 | # for backward compatibility: |
---|
14975 | ac_top_builddir=$ac_top_build_prefix |
---|
14976 | |
---|
14977 | case $srcdir in |
---|
14978 | .) # We are building in place. |
---|
14979 | ac_srcdir=. |
---|
14980 | ac_top_srcdir=$ac_top_builddir_sub |
---|
14981 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
14982 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
14983 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
14984 | ac_top_srcdir=$srcdir |
---|
14985 | ac_abs_top_srcdir=$srcdir ;; |
---|
14986 | *) # Relative name. |
---|
14987 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
14988 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
14989 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
14990 | esac |
---|
14991 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
14992 | |
---|
14993 | |
---|
14994 | case $ac_mode in |
---|
14995 | :F) |
---|
14996 | # |
---|
14997 | # CONFIG_FILE |
---|
14998 | # |
---|
14999 | |
---|
15000 | case $INSTALL in |
---|
15001 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
15002 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
15003 | esac |
---|
15004 | _ACEOF |
---|
15005 | |
---|
15006 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
15007 | # If the template does not know about datarootdir, expand it. |
---|
15008 | # FIXME: This hack should be removed a few years after 2.60. |
---|
15009 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
15010 | |
---|
15011 | case `sed -n '/datarootdir/ { |
---|
15012 | p |
---|
15013 | q |
---|
15014 | } |
---|
15015 | /@datadir@/p |
---|
15016 | /@docdir@/p |
---|
15017 | /@infodir@/p |
---|
15018 | /@localedir@/p |
---|
15019 | /@mandir@/p |
---|
15020 | ' $ac_file_inputs` in |
---|
15021 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
15022 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
15023 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
15024 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
15025 | _ACEOF |
---|
15026 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
15027 | ac_datarootdir_hack=' |
---|
15028 | s&@datadir@&$datadir&g |
---|
15029 | s&@docdir@&$docdir&g |
---|
15030 | s&@infodir@&$infodir&g |
---|
15031 | s&@localedir@&$localedir&g |
---|
15032 | s&@mandir@&$mandir&g |
---|
15033 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
15034 | esac |
---|
15035 | _ACEOF |
---|
15036 | |
---|
15037 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
15038 | # Shell code in configure.ac might set extrasub. |
---|
15039 | # FIXME: do we really want to maintain this feature? |
---|
15040 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
15041 | sed "$ac_vpsub |
---|
15042 | $extrasub |
---|
15043 | _ACEOF |
---|
15044 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
15045 | :t |
---|
15046 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
15047 | s&@configure_input@&$configure_input&;t t |
---|
15048 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
15049 | s&@srcdir@&$ac_srcdir&;t t |
---|
15050 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
15051 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
15052 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
15053 | s&@builddir@&$ac_builddir&;t t |
---|
15054 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
15055 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
15056 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
15057 | $ac_datarootdir_hack |
---|
15058 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
---|
15059 | |
---|
15060 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
15061 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
---|
15062 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
---|
15063 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
15064 | which seems to be undefined. Please make sure it is defined." >&5 |
---|
15065 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
15066 | which seems to be undefined. Please make sure it is defined." >&2;} |
---|
15067 | |
---|
15068 | rm -f "$tmp/stdin" |
---|
15069 | case $ac_file in |
---|
15070 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
---|
15071 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
---|
15072 | esac |
---|
15073 | ;; |
---|
15074 | :H) |
---|
15075 | # |
---|
15076 | # CONFIG_HEADER |
---|
15077 | # |
---|
15078 | _ACEOF |
---|
15079 | |
---|
15080 | # Transform confdefs.h into a sed script `conftest.defines', that |
---|
15081 | # substitutes the proper values into config.h.in to produce config.h. |
---|
15082 | rm -f conftest.defines conftest.tail |
---|
15083 | # First, append a space to every undef/define line, to ease matching. |
---|
15084 | echo 's/$/ /' >conftest.defines |
---|
15085 | # Then, protect against being on the right side of a sed subst, or in |
---|
15086 | # an unquoted here document, in config.status. If some macros were |
---|
15087 | # called several times there might be several #defines for the same |
---|
15088 | # symbol, which is useless. But do not sort them, since the last |
---|
15089 | # AC_DEFINE must be honored. |
---|
15090 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
15091 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
---|
15092 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
---|
15093 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
---|
15094 | # just an empty string. |
---|
15095 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
---|
15096 | ac_dB='\\)[ (].*,\\1define\\2' |
---|
15097 | ac_dC=' ' |
---|
15098 | ac_dD=' ,' |
---|
15099 | |
---|
15100 | uniq confdefs.h | |
---|
15101 | sed -n ' |
---|
15102 | t rset |
---|
15103 | :rset |
---|
15104 | s/^[ ]*#[ ]*define[ ][ ]*// |
---|
15105 | t ok |
---|
15106 | d |
---|
15107 | :ok |
---|
15108 | s/[\\&,]/\\&/g |
---|
15109 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
---|
15110 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
---|
15111 | ' >>conftest.defines |
---|
15112 | |
---|
15113 | # Remove the space that was appended to ease matching. |
---|
15114 | # Then replace #undef with comments. This is necessary, for |
---|
15115 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
15116 | # on some systems where configure will not decide to define it. |
---|
15117 | # (The regexp can be short, since the line contains either #define or #undef.) |
---|
15118 | echo 's/ $// |
---|
15119 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
---|
15120 | |
---|
15121 | # Break up conftest.defines: |
---|
15122 | ac_max_sed_lines=50 |
---|
15123 | |
---|
15124 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
---|
15125 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
---|
15126 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
---|
15127 | # et cetera. |
---|
15128 | ac_in='$ac_file_inputs' |
---|
15129 | ac_out='"$tmp/out1"' |
---|
15130 | ac_nxt='"$tmp/out2"' |
---|
15131 | |
---|
15132 | while : |
---|
15133 | do |
---|
15134 | # Write a here document: |
---|
15135 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
15136 | # First, check the format of the line: |
---|
15137 | cat >"\$tmp/defines.sed" <<\\CEOF |
---|
15138 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
---|
15139 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
---|
15140 | b |
---|
15141 | :def |
---|
15142 | _ACEOF |
---|
15143 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
---|
15144 | echo 'CEOF |
---|
15145 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
---|
15146 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
---|
15147 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
---|
15148 | grep . conftest.tail >/dev/null || break |
---|
15149 | rm -f conftest.defines |
---|
15150 | mv conftest.tail conftest.defines |
---|
15151 | done |
---|
15152 | rm -f conftest.defines conftest.tail |
---|
15153 | |
---|
15154 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
---|
15155 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
15156 | if test x"$ac_file" != x-; then |
---|
15157 | echo "/* $configure_input */" >"$tmp/config.h" |
---|
15158 | cat "$ac_result" >>"$tmp/config.h" |
---|
15159 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
---|
15160 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
15161 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
15162 | else |
---|
15163 | rm -f $ac_file |
---|
15164 | mv "$tmp/config.h" $ac_file |
---|
15165 | fi |
---|
15166 | else |
---|
15167 | echo "/* $configure_input */" |
---|
15168 | cat "$ac_result" |
---|
15169 | fi |
---|
15170 | rm -f "$tmp/out12" |
---|
15171 | ;; |
---|
15172 | |
---|
15173 | |
---|
15174 | esac |
---|
15175 | |
---|
15176 | done # for ac_tag |
---|
15177 | |
---|
15178 | |
---|
15179 | { (exit 0); exit 0; } |
---|
15180 | _ACEOF |
---|
15181 | chmod +x $CONFIG_STATUS |
---|
15182 | ac_clean_files=$ac_clean_files_save |
---|
15183 | |
---|
15184 | |
---|
15185 | # configure is writing to config.log, and then calls config.status. |
---|
15186 | # config.status does its own redirection, appending to config.log. |
---|
15187 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
15188 | # by configure, so config.status won't be able to write to it; its |
---|
15189 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
15190 | # effectively closing config.log, so it can be properly (re)opened and |
---|
15191 | # appended to by config.status. When coming back to configure, we |
---|
15192 | # need to make the FD available again. |
---|
15193 | if test "$no_create" != yes; then |
---|
15194 | ac_cs_success=: |
---|
15195 | ac_config_status_args= |
---|
15196 | test "$silent" = yes && |
---|
15197 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
15198 | exec 5>/dev/null |
---|
15199 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
15200 | exec 5>>config.log |
---|
15201 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
15202 | # would make configure fail if this is the last instruction. |
---|
15203 | $ac_cs_success || { (exit 1); exit 1; } |
---|
15204 | fi |
---|
15205 | |
---|
15206 | |
---|
15207 | # Print user information |
---|
15208 | echo "" |
---|
15209 | echo "== Host ==" |
---|
15210 | echo "Environment :" $host |
---|
15211 | if test $ac_is_bigendian = yes; then |
---|
15212 | echo "Endianess : big" |
---|
15213 | else |
---|
15214 | echo "Endianess : little" |
---|
15215 | fi |
---|
15216 | echo "Bits :" $((8 * $ac_cv_sizeof_voidp)) |
---|
15217 | if test $ac_enable_asm = yes; then |
---|
15218 | echo "Assembler for Pentium : yes" |
---|
15219 | else |
---|
15220 | echo "Assembler for Pentium : no" |
---|
15221 | fi |
---|
15222 | if test $ac_enable_asm_mips3 = yes; then |
---|
15223 | echo "Assembler MIPS3 emulator for Pentium : yes" |
---|
15224 | else |
---|
15225 | echo "Assembler MIPS3 emulator for Pentium : no" |
---|
15226 | fi |
---|
15227 | |
---|
15228 | echo "" |
---|
15229 | echo "== Drivers/Libraries ==" |
---|
15230 | if test $ac_lib_direct_flag = no ; then |
---|
15231 | echo "Video :" $ac_lib_video |
---|
15232 | echo "(No video driver is capable to program directly your video board." |
---|
15233 | echo "You will not be able to use not standard video modes.)" |
---|
15234 | else |
---|
15235 | echo "Video :" $ac_lib_video |
---|
15236 | fi |
---|
15237 | echo "Sound :" $ac_lib_sound |
---|
15238 | echo "Keyboard :" $ac_lib_keyboard |
---|
15239 | echo "Joystick :" $ac_lib_joystick |
---|
15240 | echo "Mouse :" $ac_lib_mouse |
---|
15241 | echo "Misc :" $ac_lib_other |
---|
15242 | |
---|
15243 | if test $ac_enable_debug = no ; then |
---|
15244 | if test $ac_lib_video_flag = no; then |
---|
15245 | { { echo "$as_me:$LINENO: error: no video library found. If you have the SDL library installed somewhere try using the --with-sdl-prefix option." >&5 |
---|
15246 | echo "$as_me: error: no video library found. If you have the SDL library installed somewhere try using the --with-sdl-prefix option." >&2;} |
---|
15247 | { (exit 1); exit 1; }; } |
---|
15248 | fi |
---|
15249 | if test $ac_lib_sound_flag = no; then |
---|
15250 | { { echo "$as_me:$LINENO: error: no sound library found" >&5 |
---|
15251 | echo "$as_me: error: no sound library found" >&2;} |
---|
15252 | { (exit 1); exit 1; }; } |
---|
15253 | fi |
---|
15254 | if test $ac_lib_text_flag = no; then |
---|
15255 | { echo "$as_me:$LINENO: WARNING: no text video mode library found. The advv/advcfg utilities will not work!" >&5 |
---|
15256 | echo "$as_me: WARNING: no text video mode library found. The advv/advcfg utilities will not work!" >&2;} |
---|
15257 | fi |
---|
15258 | fi |
---|
15259 | |
---|
15260 | echo "" |
---|
15261 | echo "== Compiler ==" |
---|
15262 | echo "CC :" $CC |
---|
15263 | echo "CXX :" $CXX |
---|
15264 | echo "CFLAGS :" $CFLAGS $CFLAGS_OPTOPT |
---|
15265 | echo "LDFLAGS :" $LDFLAGS |
---|
15266 | |
---|
15267 | if test ! $ac_with_emu = none ; then |
---|
15268 | echo "" |
---|
15269 | echo "== Configuration ==" |
---|
15270 | echo "Emulator :" $ac_with_emu |
---|
15271 | echo "Debugger :" $ac_enable_debugger |
---|
15272 | fi |
---|
15273 | |
---|