Mercurial > fife-parpg
comparison ext/openal-soft/configure @ 0:4a0efb7baf70
* Datasets becomes the new trunk and retires after that :-)
author | mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sun, 29 Jun 2008 18:44:17 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4a0efb7baf70 |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.61 for FULL-PACKAGE-NAME VERSION. | |
4 # | |
5 # Report bugs to <BUG-REPORT-ADDRESS>. | |
6 # | |
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
9 # This configure script is free software; the Free Software Foundation | |
10 # gives unlimited permission to copy, distribute and modify it. | |
11 ## --------------------- ## | |
12 ## M4sh Initialization. ## | |
13 ## --------------------- ## | |
14 | |
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='FULL-PACKAGE-NAME' | |
576 PACKAGE_TARNAME='full-package-name' | |
577 PACKAGE_VERSION='VERSION' | |
578 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' | |
579 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' | |
580 | |
581 ac_unique_file="config.h.in" | |
582 # Factoring default headers for most tests. | |
583 ac_includes_default="\ | |
584 #include <stdio.h> | |
585 #ifdef HAVE_SYS_TYPES_H | |
586 # include <sys/types.h> | |
587 #endif | |
588 #ifdef HAVE_SYS_STAT_H | |
589 # include <sys/stat.h> | |
590 #endif | |
591 #ifdef STDC_HEADERS | |
592 # include <stdlib.h> | |
593 # include <stddef.h> | |
594 #else | |
595 # ifdef HAVE_STDLIB_H | |
596 # include <stdlib.h> | |
597 # endif | |
598 #endif | |
599 #ifdef HAVE_STRING_H | |
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
601 # include <memory.h> | |
602 # endif | |
603 # include <string.h> | |
604 #endif | |
605 #ifdef HAVE_STRINGS_H | |
606 # include <strings.h> | |
607 #endif | |
608 #ifdef HAVE_INTTYPES_H | |
609 # include <inttypes.h> | |
610 #endif | |
611 #ifdef HAVE_STDINT_H | |
612 # include <stdint.h> | |
613 #endif | |
614 #ifdef HAVE_UNISTD_H | |
615 # include <unistd.h> | |
616 #endif" | |
617 | |
618 ac_subst_vars='SHELL | |
619 PATH_SEPARATOR | |
620 PACKAGE_NAME | |
621 PACKAGE_TARNAME | |
622 PACKAGE_VERSION | |
623 PACKAGE_STRING | |
624 PACKAGE_BUGREPORT | |
625 exec_prefix | |
626 prefix | |
627 program_transform_name | |
628 bindir | |
629 sbindir | |
630 libexecdir | |
631 datarootdir | |
632 datadir | |
633 sysconfdir | |
634 sharedstatedir | |
635 localstatedir | |
636 includedir | |
637 oldincludedir | |
638 docdir | |
639 infodir | |
640 htmldir | |
641 dvidir | |
642 pdfdir | |
643 psdir | |
644 libdir | |
645 localedir | |
646 mandir | |
647 DEFS | |
648 ECHO_C | |
649 ECHO_N | |
650 ECHO_T | |
651 LIBS | |
652 build_alias | |
653 host_alias | |
654 target_alias | |
655 CC | |
656 CFLAGS | |
657 LDFLAGS | |
658 CPPFLAGS | |
659 ac_ct_CC | |
660 EXEEXT | |
661 OBJEXT | |
662 CPP | |
663 GREP | |
664 EGREP | |
665 LIBOBJS | |
666 LTLIBOBJS' | |
667 ac_subst_files='' | |
668 ac_precious_vars='build_alias | |
669 host_alias | |
670 target_alias | |
671 CC | |
672 CFLAGS | |
673 LDFLAGS | |
674 LIBS | |
675 CPPFLAGS | |
676 CPP' | |
677 | |
678 | |
679 # Initialize some variables set by options. | |
680 ac_init_help= | |
681 ac_init_version=false | |
682 # The variables have the same names as the options, with | |
683 # dashes changed to underlines. | |
684 cache_file=/dev/null | |
685 exec_prefix=NONE | |
686 no_create= | |
687 no_recursion= | |
688 prefix=NONE | |
689 program_prefix=NONE | |
690 program_suffix=NONE | |
691 program_transform_name=s,x,x, | |
692 silent= | |
693 site= | |
694 srcdir= | |
695 verbose= | |
696 x_includes=NONE | |
697 x_libraries=NONE | |
698 | |
699 # Installation directory options. | |
700 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
701 # and all the variables that are supposed to be based on exec_prefix | |
702 # by default will actually change. | |
703 # Use braces instead of parens because sh, perl, etc. also accept them. | |
704 # (The list follows the same order as the GNU Coding Standards.) | |
705 bindir='${exec_prefix}/bin' | |
706 sbindir='${exec_prefix}/sbin' | |
707 libexecdir='${exec_prefix}/libexec' | |
708 datarootdir='${prefix}/share' | |
709 datadir='${datarootdir}' | |
710 sysconfdir='${prefix}/etc' | |
711 sharedstatedir='${prefix}/com' | |
712 localstatedir='${prefix}/var' | |
713 includedir='${prefix}/include' | |
714 oldincludedir='/usr/include' | |
715 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
716 infodir='${datarootdir}/info' | |
717 htmldir='${docdir}' | |
718 dvidir='${docdir}' | |
719 pdfdir='${docdir}' | |
720 psdir='${docdir}' | |
721 libdir='${exec_prefix}/lib' | |
722 localedir='${datarootdir}/locale' | |
723 mandir='${datarootdir}/man' | |
724 | |
725 ac_prev= | |
726 ac_dashdash= | |
727 for ac_option | |
728 do | |
729 # If the previous option needs an argument, assign it. | |
730 if test -n "$ac_prev"; then | |
731 eval $ac_prev=\$ac_option | |
732 ac_prev= | |
733 continue | |
734 fi | |
735 | |
736 case $ac_option in | |
737 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
738 *) ac_optarg=yes ;; | |
739 esac | |
740 | |
741 # Accept the important Cygnus configure options, so we can diagnose typos. | |
742 | |
743 case $ac_dashdash$ac_option in | |
744 --) | |
745 ac_dashdash=yes ;; | |
746 | |
747 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
748 ac_prev=bindir ;; | |
749 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
750 bindir=$ac_optarg ;; | |
751 | |
752 -build | --build | --buil | --bui | --bu) | |
753 ac_prev=build_alias ;; | |
754 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
755 build_alias=$ac_optarg ;; | |
756 | |
757 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
759 ac_prev=cache_file ;; | |
760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
762 cache_file=$ac_optarg ;; | |
763 | |
764 --config-cache | -C) | |
765 cache_file=config.cache ;; | |
766 | |
767 -datadir | --datadir | --datadi | --datad) | |
768 ac_prev=datadir ;; | |
769 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
770 datadir=$ac_optarg ;; | |
771 | |
772 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
773 | --dataroo | --dataro | --datar) | |
774 ac_prev=datarootdir ;; | |
775 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
776 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
777 datarootdir=$ac_optarg ;; | |
778 | |
779 -disable-* | --disable-*) | |
780 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
781 # Reject names that are not valid shell variable names. | |
782 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
783 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
784 { (exit 1); exit 1; }; } | |
785 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
786 eval enable_$ac_feature=no ;; | |
787 | |
788 -docdir | --docdir | --docdi | --doc | --do) | |
789 ac_prev=docdir ;; | |
790 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
791 docdir=$ac_optarg ;; | |
792 | |
793 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
794 ac_prev=dvidir ;; | |
795 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
796 dvidir=$ac_optarg ;; | |
797 | |
798 -enable-* | --enable-*) | |
799 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
800 # Reject names that are not valid shell variable names. | |
801 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
802 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
803 { (exit 1); exit 1; }; } | |
804 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
805 eval enable_$ac_feature=\$ac_optarg ;; | |
806 | |
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
809 | --exec | --exe | --ex) | |
810 ac_prev=exec_prefix ;; | |
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
813 | --exec=* | --exe=* | --ex=*) | |
814 exec_prefix=$ac_optarg ;; | |
815 | |
816 -gas | --gas | --ga | --g) | |
817 # Obsolete; use --with-gas. | |
818 with_gas=yes ;; | |
819 | |
820 -help | --help | --hel | --he | -h) | |
821 ac_init_help=long ;; | |
822 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
823 ac_init_help=recursive ;; | |
824 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
825 ac_init_help=short ;; | |
826 | |
827 -host | --host | --hos | --ho) | |
828 ac_prev=host_alias ;; | |
829 -host=* | --host=* | --hos=* | --ho=*) | |
830 host_alias=$ac_optarg ;; | |
831 | |
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
833 ac_prev=htmldir ;; | |
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
835 | --ht=*) | |
836 htmldir=$ac_optarg ;; | |
837 | |
838 -includedir | --includedir | --includedi | --included | --include \ | |
839 | --includ | --inclu | --incl | --inc) | |
840 ac_prev=includedir ;; | |
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
842 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
843 includedir=$ac_optarg ;; | |
844 | |
845 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
846 ac_prev=infodir ;; | |
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
848 infodir=$ac_optarg ;; | |
849 | |
850 -libdir | --libdir | --libdi | --libd) | |
851 ac_prev=libdir ;; | |
852 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
853 libdir=$ac_optarg ;; | |
854 | |
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
856 | --libexe | --libex | --libe) | |
857 ac_prev=libexecdir ;; | |
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
859 | --libexe=* | --libex=* | --libe=*) | |
860 libexecdir=$ac_optarg ;; | |
861 | |
862 -localedir | --localedir | --localedi | --localed | --locale) | |
863 ac_prev=localedir ;; | |
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
865 localedir=$ac_optarg ;; | |
866 | |
867 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
868 | --localstate | --localstat | --localsta | --localst | --locals) | |
869 ac_prev=localstatedir ;; | |
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
872 localstatedir=$ac_optarg ;; | |
873 | |
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
875 ac_prev=mandir ;; | |
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
877 mandir=$ac_optarg ;; | |
878 | |
879 -nfp | --nfp | --nf) | |
880 # Obsolete; use --without-fp. | |
881 with_fp=no ;; | |
882 | |
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
884 | --no-cr | --no-c | -n) | |
885 no_create=yes ;; | |
886 | |
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
889 no_recursion=yes ;; | |
890 | |
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
893 | --oldin | --oldi | --old | --ol | --o) | |
894 ac_prev=oldincludedir ;; | |
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
898 oldincludedir=$ac_optarg ;; | |
899 | |
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
901 ac_prev=prefix ;; | |
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
903 prefix=$ac_optarg ;; | |
904 | |
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
906 | --program-pre | --program-pr | --program-p) | |
907 ac_prev=program_prefix ;; | |
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
910 program_prefix=$ac_optarg ;; | |
911 | |
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
913 | --program-suf | --program-su | --program-s) | |
914 ac_prev=program_suffix ;; | |
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
917 program_suffix=$ac_optarg ;; | |
918 | |
919 -program-transform-name | --program-transform-name \ | |
920 | --program-transform-nam | --program-transform-na \ | |
921 | --program-transform-n | --program-transform- \ | |
922 | --program-transform | --program-transfor \ | |
923 | --program-transfo | --program-transf \ | |
924 | --program-trans | --program-tran \ | |
925 | --progr-tra | --program-tr | --program-t) | |
926 ac_prev=program_transform_name ;; | |
927 -program-transform-name=* | --program-transform-name=* \ | |
928 | --program-transform-nam=* | --program-transform-na=* \ | |
929 | --program-transform-n=* | --program-transform-=* \ | |
930 | --program-transform=* | --program-transfor=* \ | |
931 | --program-transfo=* | --program-transf=* \ | |
932 | --program-trans=* | --program-tran=* \ | |
933 | --progr-tra=* | --program-tr=* | --program-t=*) | |
934 program_transform_name=$ac_optarg ;; | |
935 | |
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
937 ac_prev=pdfdir ;; | |
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
939 pdfdir=$ac_optarg ;; | |
940 | |
941 -psdir | --psdir | --psdi | --psd | --ps) | |
942 ac_prev=psdir ;; | |
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
944 psdir=$ac_optarg ;; | |
945 | |
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
947 | -silent | --silent | --silen | --sile | --sil) | |
948 silent=yes ;; | |
949 | |
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
951 ac_prev=sbindir ;; | |
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
953 | --sbi=* | --sb=*) | |
954 sbindir=$ac_optarg ;; | |
955 | |
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
958 | --sharedst | --shareds | --shared | --share | --shar \ | |
959 | --sha | --sh) | |
960 ac_prev=sharedstatedir ;; | |
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
964 | --sha=* | --sh=*) | |
965 sharedstatedir=$ac_optarg ;; | |
966 | |
967 -site | --site | --sit) | |
968 ac_prev=site ;; | |
969 -site=* | --site=* | --sit=*) | |
970 site=$ac_optarg ;; | |
971 | |
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
973 ac_prev=srcdir ;; | |
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
975 srcdir=$ac_optarg ;; | |
976 | |
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
978 | --syscon | --sysco | --sysc | --sys | --sy) | |
979 ac_prev=sysconfdir ;; | |
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
982 sysconfdir=$ac_optarg ;; | |
983 | |
984 -target | --target | --targe | --targ | --tar | --ta | --t) | |
985 ac_prev=target_alias ;; | |
986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
987 target_alias=$ac_optarg ;; | |
988 | |
989 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
990 verbose=yes ;; | |
991 | |
992 -version | --version | --versio | --versi | --vers | -V) | |
993 ac_init_version=: ;; | |
994 | |
995 -with-* | --with-*) | |
996 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
997 # Reject names that are not valid shell variable names. | |
998 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
999 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1000 { (exit 1); exit 1; }; } | |
1001 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1002 eval with_$ac_package=\$ac_optarg ;; | |
1003 | |
1004 -without-* | --without-*) | |
1005 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1006 # Reject names that are not valid shell variable names. | |
1007 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1008 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1009 { (exit 1); exit 1; }; } | |
1010 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1011 eval with_$ac_package=no ;; | |
1012 | |
1013 --x) | |
1014 # Obsolete; use --with-x. | |
1015 with_x=yes ;; | |
1016 | |
1017 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1018 | --x-incl | --x-inc | --x-in | --x-i) | |
1019 ac_prev=x_includes ;; | |
1020 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1021 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1022 x_includes=$ac_optarg ;; | |
1023 | |
1024 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1025 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1026 ac_prev=x_libraries ;; | |
1027 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1028 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1029 x_libraries=$ac_optarg ;; | |
1030 | |
1031 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1032 Try \`$0 --help' for more information." >&2 | |
1033 { (exit 1); exit 1; }; } | |
1034 ;; | |
1035 | |
1036 *=*) | |
1037 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1038 # Reject names that are not valid shell variable names. | |
1039 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1040 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1041 { (exit 1); exit 1; }; } | |
1042 eval $ac_envvar=\$ac_optarg | |
1043 export $ac_envvar ;; | |
1044 | |
1045 *) | |
1046 # FIXME: should be removed in autoconf 3.0. | |
1047 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1048 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1049 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1050 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1051 ;; | |
1052 | |
1053 esac | |
1054 done | |
1055 | |
1056 if test -n "$ac_prev"; then | |
1057 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1058 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1059 { (exit 1); exit 1; }; } | |
1060 fi | |
1061 | |
1062 # Be sure to have absolute directory names. | |
1063 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1064 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1066 libdir localedir mandir | |
1067 do | |
1068 eval ac_val=\$$ac_var | |
1069 case $ac_val in | |
1070 [\\/$]* | ?:[\\/]* ) continue;; | |
1071 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1072 esac | |
1073 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1074 { (exit 1); exit 1; }; } | |
1075 done | |
1076 | |
1077 # There might be people who depend on the old broken behavior: `$host' | |
1078 # used to hold the argument of --host etc. | |
1079 # FIXME: To remove some day. | |
1080 build=$build_alias | |
1081 host=$host_alias | |
1082 target=$target_alias | |
1083 | |
1084 # FIXME: To remove some day. | |
1085 if test "x$host_alias" != x; then | |
1086 if test "x$build_alias" = x; then | |
1087 cross_compiling=maybe | |
1088 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1089 If a cross compiler is detected then cross compile mode will be used." >&2 | |
1090 elif test "x$build_alias" != "x$host_alias"; then | |
1091 cross_compiling=yes | |
1092 fi | |
1093 fi | |
1094 | |
1095 ac_tool_prefix= | |
1096 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1097 | |
1098 test "$silent" = yes && exec 6>/dev/null | |
1099 | |
1100 | |
1101 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1102 ac_ls_di=`ls -di .` && | |
1103 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1104 { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1105 { (exit 1); exit 1; }; } | |
1106 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1107 { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1108 { (exit 1); exit 1; }; } | |
1109 | |
1110 | |
1111 # Find the source files, if location was not specified. | |
1112 if test -z "$srcdir"; then | |
1113 ac_srcdir_defaulted=yes | |
1114 # Try the directory containing this script, then the parent directory. | |
1115 ac_confdir=`$as_dirname -- "$0" || | |
1116 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1117 X"$0" : 'X\(//\)[^/]' \| \ | |
1118 X"$0" : 'X\(//\)$' \| \ | |
1119 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1120 echo X"$0" | | |
1121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1122 s//\1/ | |
1123 q | |
1124 } | |
1125 /^X\(\/\/\)[^/].*/{ | |
1126 s//\1/ | |
1127 q | |
1128 } | |
1129 /^X\(\/\/\)$/{ | |
1130 s//\1/ | |
1131 q | |
1132 } | |
1133 /^X\(\/\).*/{ | |
1134 s//\1/ | |
1135 q | |
1136 } | |
1137 s/.*/./; q'` | |
1138 srcdir=$ac_confdir | |
1139 if test ! -r "$srcdir/$ac_unique_file"; then | |
1140 srcdir=.. | |
1141 fi | |
1142 else | |
1143 ac_srcdir_defaulted=no | |
1144 fi | |
1145 if test ! -r "$srcdir/$ac_unique_file"; then | |
1146 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1147 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1148 { (exit 1); exit 1; }; } | |
1149 fi | |
1150 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1151 ac_abs_confdir=`( | |
1152 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1153 { (exit 1); exit 1; }; } | |
1154 pwd)` | |
1155 # When building in place, set srcdir=. | |
1156 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1157 srcdir=. | |
1158 fi | |
1159 # Remove unnecessary trailing slashes from srcdir. | |
1160 # Double slashes in file names in object file debugging info | |
1161 # mess up M-x gdb in Emacs. | |
1162 case $srcdir in | |
1163 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1164 esac | |
1165 for ac_var in $ac_precious_vars; do | |
1166 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1167 eval ac_env_${ac_var}_value=\$${ac_var} | |
1168 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1169 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1170 done | |
1171 | |
1172 # | |
1173 # Report the --help message. | |
1174 # | |
1175 if test "$ac_init_help" = "long"; then | |
1176 # Omit some internal or obsolete options to make the list less imposing. | |
1177 # This message is too long to be a string in the A/UX 3.1 sh. | |
1178 cat <<_ACEOF | |
1179 \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. | |
1180 | |
1181 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1182 | |
1183 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1184 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1185 | |
1186 Defaults for the options are specified in brackets. | |
1187 | |
1188 Configuration: | |
1189 -h, --help display this help and exit | |
1190 --help=short display options specific to this package | |
1191 --help=recursive display the short help of all the included packages | |
1192 -V, --version display version information and exit | |
1193 -q, --quiet, --silent do not print \`checking...' messages | |
1194 --cache-file=FILE cache test results in FILE [disabled] | |
1195 -C, --config-cache alias for \`--cache-file=config.cache' | |
1196 -n, --no-create do not create output files | |
1197 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1198 | |
1199 Installation directories: | |
1200 --prefix=PREFIX install architecture-independent files in PREFIX | |
1201 [$ac_default_prefix] | |
1202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1203 [PREFIX] | |
1204 | |
1205 By default, \`make install' will install all the files in | |
1206 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1207 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1208 for instance \`--prefix=\$HOME'. | |
1209 | |
1210 For better control, use the options below. | |
1211 | |
1212 Fine tuning of the installation directories: | |
1213 --bindir=DIR user executables [EPREFIX/bin] | |
1214 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1215 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1216 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1217 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1218 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1219 --libdir=DIR object code libraries [EPREFIX/lib] | |
1220 --includedir=DIR C header files [PREFIX/include] | |
1221 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1222 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1223 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1224 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1225 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1226 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1227 --docdir=DIR documentation root [DATAROOTDIR/doc/full-package-name] | |
1228 --htmldir=DIR html documentation [DOCDIR] | |
1229 --dvidir=DIR dvi documentation [DOCDIR] | |
1230 --pdfdir=DIR pdf documentation [DOCDIR] | |
1231 --psdir=DIR ps documentation [DOCDIR] | |
1232 _ACEOF | |
1233 | |
1234 cat <<\_ACEOF | |
1235 _ACEOF | |
1236 fi | |
1237 | |
1238 if test -n "$ac_init_help"; then | |
1239 case $ac_init_help in | |
1240 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; | |
1241 esac | |
1242 cat <<\_ACEOF | |
1243 | |
1244 Some influential environment variables: | |
1245 CC C compiler command | |
1246 CFLAGS C compiler flags | |
1247 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1248 nonstandard directory <lib dir> | |
1249 LIBS libraries to pass to the linker, e.g. -l<library> | |
1250 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1251 you have headers in a nonstandard directory <include dir> | |
1252 CPP C preprocessor | |
1253 | |
1254 Use these variables to override the choices made by `configure' or to help | |
1255 it to find libraries and programs with nonstandard names/locations. | |
1256 | |
1257 Report bugs to <BUG-REPORT-ADDRESS>. | |
1258 _ACEOF | |
1259 ac_status=$? | |
1260 fi | |
1261 | |
1262 if test "$ac_init_help" = "recursive"; then | |
1263 # If there are subdirs, report their specific --help. | |
1264 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1265 test -d "$ac_dir" || continue | |
1266 ac_builddir=. | |
1267 | |
1268 case "$ac_dir" in | |
1269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1270 *) | |
1271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1272 # A ".." for each directory in $ac_dir_suffix. | |
1273 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1274 case $ac_top_builddir_sub in | |
1275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1277 esac ;; | |
1278 esac | |
1279 ac_abs_top_builddir=$ac_pwd | |
1280 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1281 # for backward compatibility: | |
1282 ac_top_builddir=$ac_top_build_prefix | |
1283 | |
1284 case $srcdir in | |
1285 .) # We are building in place. | |
1286 ac_srcdir=. | |
1287 ac_top_srcdir=$ac_top_builddir_sub | |
1288 ac_abs_top_srcdir=$ac_pwd ;; | |
1289 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1290 ac_srcdir=$srcdir$ac_dir_suffix; | |
1291 ac_top_srcdir=$srcdir | |
1292 ac_abs_top_srcdir=$srcdir ;; | |
1293 *) # Relative name. | |
1294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1295 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1297 esac | |
1298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1299 | |
1300 cd "$ac_dir" || { ac_status=$?; continue; } | |
1301 # Check for guested configure. | |
1302 if test -f "$ac_srcdir/configure.gnu"; then | |
1303 echo && | |
1304 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1305 elif test -f "$ac_srcdir/configure"; then | |
1306 echo && | |
1307 $SHELL "$ac_srcdir/configure" --help=recursive | |
1308 else | |
1309 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1310 fi || ac_status=$? | |
1311 cd "$ac_pwd" || { ac_status=$?; break; } | |
1312 done | |
1313 fi | |
1314 | |
1315 test -n "$ac_init_help" && exit $ac_status | |
1316 if $ac_init_version; then | |
1317 cat <<\_ACEOF | |
1318 FULL-PACKAGE-NAME configure VERSION | |
1319 generated by GNU Autoconf 2.61 | |
1320 | |
1321 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1322 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1323 This configure script is free software; the Free Software Foundation | |
1324 gives unlimited permission to copy, distribute and modify it. | |
1325 _ACEOF | |
1326 exit | |
1327 fi | |
1328 cat >config.log <<_ACEOF | |
1329 This file contains any messages produced by compilers while | |
1330 running configure, to aid debugging if configure makes a mistake. | |
1331 | |
1332 It was created by FULL-PACKAGE-NAME $as_me VERSION, which was | |
1333 generated by GNU Autoconf 2.61. Invocation command line was | |
1334 | |
1335 $ $0 $@ | |
1336 | |
1337 _ACEOF | |
1338 exec 5>>config.log | |
1339 { | |
1340 cat <<_ASUNAME | |
1341 ## --------- ## | |
1342 ## Platform. ## | |
1343 ## --------- ## | |
1344 | |
1345 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1346 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1347 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1348 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1349 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1350 | |
1351 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1352 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1353 | |
1354 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1360 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1361 | |
1362 _ASUNAME | |
1363 | |
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1365 for as_dir in $PATH | |
1366 do | |
1367 IFS=$as_save_IFS | |
1368 test -z "$as_dir" && as_dir=. | |
1369 echo "PATH: $as_dir" | |
1370 done | |
1371 IFS=$as_save_IFS | |
1372 | |
1373 } >&5 | |
1374 | |
1375 cat >&5 <<_ACEOF | |
1376 | |
1377 | |
1378 ## ----------- ## | |
1379 ## Core tests. ## | |
1380 ## ----------- ## | |
1381 | |
1382 _ACEOF | |
1383 | |
1384 | |
1385 # Keep a trace of the command line. | |
1386 # Strip out --no-create and --no-recursion so they do not pile up. | |
1387 # Strip out --silent because we don't want to record it for future runs. | |
1388 # Also quote any args containing shell meta-characters. | |
1389 # Make two passes to allow for proper duplicate-argument suppression. | |
1390 ac_configure_args= | |
1391 ac_configure_args0= | |
1392 ac_configure_args1= | |
1393 ac_must_keep_next=false | |
1394 for ac_pass in 1 2 | |
1395 do | |
1396 for ac_arg | |
1397 do | |
1398 case $ac_arg in | |
1399 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1400 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1401 | -silent | --silent | --silen | --sile | --sil) | |
1402 continue ;; | |
1403 *\'*) | |
1404 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1405 esac | |
1406 case $ac_pass in | |
1407 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1408 2) | |
1409 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1410 if test $ac_must_keep_next = true; then | |
1411 ac_must_keep_next=false # Got value, back to normal. | |
1412 else | |
1413 case $ac_arg in | |
1414 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1415 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1416 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1417 | -with-* | --with-* | -without-* | --without-* | --x) | |
1418 case "$ac_configure_args0 " in | |
1419 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1420 esac | |
1421 ;; | |
1422 -* ) ac_must_keep_next=true ;; | |
1423 esac | |
1424 fi | |
1425 ac_configure_args="$ac_configure_args '$ac_arg'" | |
1426 ;; | |
1427 esac | |
1428 done | |
1429 done | |
1430 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1431 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1432 | |
1433 # When interrupted or exit'd, cleanup temporary files, and complete | |
1434 # config.log. We remove comments because anyway the quotes in there | |
1435 # would cause problems or look ugly. | |
1436 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1437 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1438 trap 'exit_status=$? | |
1439 # Save into config.log some information that might help in debugging. | |
1440 { | |
1441 echo | |
1442 | |
1443 cat <<\_ASBOX | |
1444 ## ---------------- ## | |
1445 ## Cache variables. ## | |
1446 ## ---------------- ## | |
1447 _ASBOX | |
1448 echo | |
1449 # The following way of writing the cache mishandles newlines in values, | |
1450 ( | |
1451 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1452 eval ac_val=\$$ac_var | |
1453 case $ac_val in #( | |
1454 *${as_nl}*) | |
1455 case $ac_var in #( | |
1456 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1457 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1458 esac | |
1459 case $ac_var in #( | |
1460 _ | IFS | as_nl) ;; #( | |
1461 *) $as_unset $ac_var ;; | |
1462 esac ;; | |
1463 esac | |
1464 done | |
1465 (set) 2>&1 | | |
1466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1467 *${as_nl}ac_space=\ *) | |
1468 sed -n \ | |
1469 "s/'\''/'\''\\\\'\'''\''/g; | |
1470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1471 ;; #( | |
1472 *) | |
1473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1474 ;; | |
1475 esac | | |
1476 sort | |
1477 ) | |
1478 echo | |
1479 | |
1480 cat <<\_ASBOX | |
1481 ## ----------------- ## | |
1482 ## Output variables. ## | |
1483 ## ----------------- ## | |
1484 _ASBOX | |
1485 echo | |
1486 for ac_var in $ac_subst_vars | |
1487 do | |
1488 eval ac_val=\$$ac_var | |
1489 case $ac_val in | |
1490 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1491 esac | |
1492 echo "$ac_var='\''$ac_val'\''" | |
1493 done | sort | |
1494 echo | |
1495 | |
1496 if test -n "$ac_subst_files"; then | |
1497 cat <<\_ASBOX | |
1498 ## ------------------- ## | |
1499 ## File substitutions. ## | |
1500 ## ------------------- ## | |
1501 _ASBOX | |
1502 echo | |
1503 for ac_var in $ac_subst_files | |
1504 do | |
1505 eval ac_val=\$$ac_var | |
1506 case $ac_val in | |
1507 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1508 esac | |
1509 echo "$ac_var='\''$ac_val'\''" | |
1510 done | sort | |
1511 echo | |
1512 fi | |
1513 | |
1514 if test -s confdefs.h; then | |
1515 cat <<\_ASBOX | |
1516 ## ----------- ## | |
1517 ## confdefs.h. ## | |
1518 ## ----------- ## | |
1519 _ASBOX | |
1520 echo | |
1521 cat confdefs.h | |
1522 echo | |
1523 fi | |
1524 test "$ac_signal" != 0 && | |
1525 echo "$as_me: caught signal $ac_signal" | |
1526 echo "$as_me: exit $exit_status" | |
1527 } >&5 | |
1528 rm -f core *.core core.conftest.* && | |
1529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1530 exit $exit_status | |
1531 ' 0 | |
1532 for ac_signal in 1 2 13 15; do | |
1533 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1534 done | |
1535 ac_signal=0 | |
1536 | |
1537 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1538 rm -f -r conftest* confdefs.h | |
1539 | |
1540 # Predefined preprocessor variables. | |
1541 | |
1542 cat >>confdefs.h <<_ACEOF | |
1543 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1544 _ACEOF | |
1545 | |
1546 | |
1547 cat >>confdefs.h <<_ACEOF | |
1548 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1549 _ACEOF | |
1550 | |
1551 | |
1552 cat >>confdefs.h <<_ACEOF | |
1553 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1554 _ACEOF | |
1555 | |
1556 | |
1557 cat >>confdefs.h <<_ACEOF | |
1558 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1559 _ACEOF | |
1560 | |
1561 | |
1562 cat >>confdefs.h <<_ACEOF | |
1563 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1564 _ACEOF | |
1565 | |
1566 | |
1567 # Let the site file select an alternate cache file if it wants to. | |
1568 # Prefer explicitly selected file to automatically selected ones. | |
1569 if test -n "$CONFIG_SITE"; then | |
1570 set x "$CONFIG_SITE" | |
1571 elif test "x$prefix" != xNONE; then | |
1572 set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1573 else | |
1574 set x "$ac_default_prefix/share/config.site" \ | |
1575 "$ac_default_prefix/etc/config.site" | |
1576 fi | |
1577 shift | |
1578 for ac_site_file | |
1579 do | |
1580 if test -r "$ac_site_file"; then | |
1581 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1582 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1583 sed 's/^/| /' "$ac_site_file" >&5 | |
1584 . "$ac_site_file" | |
1585 fi | |
1586 done | |
1587 | |
1588 if test -r "$cache_file"; then | |
1589 # Some versions of bash will fail to source /dev/null (special | |
1590 # files actually), so we avoid doing that. | |
1591 if test -f "$cache_file"; then | |
1592 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1593 echo "$as_me: loading cache $cache_file" >&6;} | |
1594 case $cache_file in | |
1595 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1596 *) . "./$cache_file";; | |
1597 esac | |
1598 fi | |
1599 else | |
1600 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1601 echo "$as_me: creating cache $cache_file" >&6;} | |
1602 >$cache_file | |
1603 fi | |
1604 | |
1605 # Check that the precious variables saved in the cache have kept the same | |
1606 # value. | |
1607 ac_cache_corrupted=false | |
1608 for ac_var in $ac_precious_vars; do | |
1609 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1610 eval ac_new_set=\$ac_env_${ac_var}_set | |
1611 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1612 eval ac_new_val=\$ac_env_${ac_var}_value | |
1613 case $ac_old_set,$ac_new_set in | |
1614 set,) | |
1615 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1616 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1617 ac_cache_corrupted=: ;; | |
1618 ,set) | |
1619 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1620 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1621 ac_cache_corrupted=: ;; | |
1622 ,);; | |
1623 *) | |
1624 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1625 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1626 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1627 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1628 echo "$as_me: former value: $ac_old_val" >&2;} | |
1629 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1630 echo "$as_me: current value: $ac_new_val" >&2;} | |
1631 ac_cache_corrupted=: | |
1632 fi;; | |
1633 esac | |
1634 # Pass precious variables to config.status. | |
1635 if test "$ac_new_set" = set; then | |
1636 case $ac_new_val in | |
1637 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1638 *) ac_arg=$ac_var=$ac_new_val ;; | |
1639 esac | |
1640 case " $ac_configure_args " in | |
1641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1642 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1643 esac | |
1644 fi | |
1645 done | |
1646 if $ac_cache_corrupted; then | |
1647 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1648 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1649 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1650 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1651 { (exit 1); exit 1; }; } | |
1652 fi | |
1653 | |
1654 | |
1655 | |
1656 | |
1657 | |
1658 | |
1659 | |
1660 | |
1661 | |
1662 | |
1663 | |
1664 | |
1665 | |
1666 | |
1667 | |
1668 | |
1669 | |
1670 | |
1671 | |
1672 | |
1673 | |
1674 | |
1675 | |
1676 | |
1677 | |
1678 ac_ext=c | |
1679 ac_cpp='$CPP $CPPFLAGS' | |
1680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1682 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1683 | |
1684 | |
1685 | |
1686 ac_config_headers="$ac_config_headers config.h" | |
1687 | |
1688 ac_ext=c | |
1689 ac_cpp='$CPP $CPPFLAGS' | |
1690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1692 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1693 if test -n "$ac_tool_prefix"; then | |
1694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1695 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1696 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1698 if test "${ac_cv_prog_CC+set}" = set; then | |
1699 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1700 else | |
1701 if test -n "$CC"; then | |
1702 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1703 else | |
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1705 for as_dir in $PATH | |
1706 do | |
1707 IFS=$as_save_IFS | |
1708 test -z "$as_dir" && as_dir=. | |
1709 for ac_exec_ext in '' $ac_executable_extensions; do | |
1710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1711 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1713 break 2 | |
1714 fi | |
1715 done | |
1716 done | |
1717 IFS=$as_save_IFS | |
1718 | |
1719 fi | |
1720 fi | |
1721 CC=$ac_cv_prog_CC | |
1722 if test -n "$CC"; then | |
1723 { echo "$as_me:$LINENO: result: $CC" >&5 | |
1724 echo "${ECHO_T}$CC" >&6; } | |
1725 else | |
1726 { echo "$as_me:$LINENO: result: no" >&5 | |
1727 echo "${ECHO_T}no" >&6; } | |
1728 fi | |
1729 | |
1730 | |
1731 fi | |
1732 if test -z "$ac_cv_prog_CC"; then | |
1733 ac_ct_CC=$CC | |
1734 # Extract the first word of "gcc", so it can be a program name with args. | |
1735 set dummy gcc; ac_word=$2 | |
1736 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1739 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1740 else | |
1741 if test -n "$ac_ct_CC"; then | |
1742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1743 else | |
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1745 for as_dir in $PATH | |
1746 do | |
1747 IFS=$as_save_IFS | |
1748 test -z "$as_dir" && as_dir=. | |
1749 for ac_exec_ext in '' $ac_executable_extensions; do | |
1750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1751 ac_cv_prog_ac_ct_CC="gcc" | |
1752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1753 break 2 | |
1754 fi | |
1755 done | |
1756 done | |
1757 IFS=$as_save_IFS | |
1758 | |
1759 fi | |
1760 fi | |
1761 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1762 if test -n "$ac_ct_CC"; then | |
1763 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1764 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1765 else | |
1766 { echo "$as_me:$LINENO: result: no" >&5 | |
1767 echo "${ECHO_T}no" >&6; } | |
1768 fi | |
1769 | |
1770 if test "x$ac_ct_CC" = x; then | |
1771 CC="" | |
1772 else | |
1773 case $cross_compiling:$ac_tool_warned in | |
1774 yes:) | |
1775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1776 whose name does not start with the host triplet. If you think this | |
1777 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1779 whose name does not start with the host triplet. If you think this | |
1780 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1781 ac_tool_warned=yes ;; | |
1782 esac | |
1783 CC=$ac_ct_CC | |
1784 fi | |
1785 else | |
1786 CC="$ac_cv_prog_CC" | |
1787 fi | |
1788 | |
1789 if test -z "$CC"; then | |
1790 if test -n "$ac_tool_prefix"; then | |
1791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1792 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1793 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1795 if test "${ac_cv_prog_CC+set}" = set; then | |
1796 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1797 else | |
1798 if test -n "$CC"; then | |
1799 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1800 else | |
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1802 for as_dir in $PATH | |
1803 do | |
1804 IFS=$as_save_IFS | |
1805 test -z "$as_dir" && as_dir=. | |
1806 for ac_exec_ext in '' $ac_executable_extensions; do | |
1807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1808 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1810 break 2 | |
1811 fi | |
1812 done | |
1813 done | |
1814 IFS=$as_save_IFS | |
1815 | |
1816 fi | |
1817 fi | |
1818 CC=$ac_cv_prog_CC | |
1819 if test -n "$CC"; then | |
1820 { echo "$as_me:$LINENO: result: $CC" >&5 | |
1821 echo "${ECHO_T}$CC" >&6; } | |
1822 else | |
1823 { echo "$as_me:$LINENO: result: no" >&5 | |
1824 echo "${ECHO_T}no" >&6; } | |
1825 fi | |
1826 | |
1827 | |
1828 fi | |
1829 fi | |
1830 if test -z "$CC"; then | |
1831 # Extract the first word of "cc", so it can be a program name with args. | |
1832 set dummy cc; ac_word=$2 | |
1833 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1835 if test "${ac_cv_prog_CC+set}" = set; then | |
1836 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1837 else | |
1838 if test -n "$CC"; then | |
1839 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1840 else | |
1841 ac_prog_rejected=no | |
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1843 for as_dir in $PATH | |
1844 do | |
1845 IFS=$as_save_IFS | |
1846 test -z "$as_dir" && as_dir=. | |
1847 for ac_exec_ext in '' $ac_executable_extensions; do | |
1848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1850 ac_prog_rejected=yes | |
1851 continue | |
1852 fi | |
1853 ac_cv_prog_CC="cc" | |
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1855 break 2 | |
1856 fi | |
1857 done | |
1858 done | |
1859 IFS=$as_save_IFS | |
1860 | |
1861 if test $ac_prog_rejected = yes; then | |
1862 # We found a bogon in the path, so make sure we never use it. | |
1863 set dummy $ac_cv_prog_CC | |
1864 shift | |
1865 if test $# != 0; then | |
1866 # We chose a different compiler from the bogus one. | |
1867 # However, it has the same basename, so the bogon will be chosen | |
1868 # first if we set CC to just the basename; use the full file name. | |
1869 shift | |
1870 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1871 fi | |
1872 fi | |
1873 fi | |
1874 fi | |
1875 CC=$ac_cv_prog_CC | |
1876 if test -n "$CC"; then | |
1877 { echo "$as_me:$LINENO: result: $CC" >&5 | |
1878 echo "${ECHO_T}$CC" >&6; } | |
1879 else | |
1880 { echo "$as_me:$LINENO: result: no" >&5 | |
1881 echo "${ECHO_T}no" >&6; } | |
1882 fi | |
1883 | |
1884 | |
1885 fi | |
1886 if test -z "$CC"; then | |
1887 if test -n "$ac_tool_prefix"; then | |
1888 for ac_prog in cl.exe | |
1889 do | |
1890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1892 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1894 if test "${ac_cv_prog_CC+set}" = set; then | |
1895 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1896 else | |
1897 if test -n "$CC"; then | |
1898 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1899 else | |
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1901 for as_dir in $PATH | |
1902 do | |
1903 IFS=$as_save_IFS | |
1904 test -z "$as_dir" && as_dir=. | |
1905 for ac_exec_ext in '' $ac_executable_extensions; do | |
1906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1907 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1909 break 2 | |
1910 fi | |
1911 done | |
1912 done | |
1913 IFS=$as_save_IFS | |
1914 | |
1915 fi | |
1916 fi | |
1917 CC=$ac_cv_prog_CC | |
1918 if test -n "$CC"; then | |
1919 { echo "$as_me:$LINENO: result: $CC" >&5 | |
1920 echo "${ECHO_T}$CC" >&6; } | |
1921 else | |
1922 { echo "$as_me:$LINENO: result: no" >&5 | |
1923 echo "${ECHO_T}no" >&6; } | |
1924 fi | |
1925 | |
1926 | |
1927 test -n "$CC" && break | |
1928 done | |
1929 fi | |
1930 if test -z "$CC"; then | |
1931 ac_ct_CC=$CC | |
1932 for ac_prog in cl.exe | |
1933 do | |
1934 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1935 set dummy $ac_prog; ac_word=$2 | |
1936 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1939 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1940 else | |
1941 if test -n "$ac_ct_CC"; then | |
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1943 else | |
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1945 for as_dir in $PATH | |
1946 do | |
1947 IFS=$as_save_IFS | |
1948 test -z "$as_dir" && as_dir=. | |
1949 for ac_exec_ext in '' $ac_executable_extensions; do | |
1950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1951 ac_cv_prog_ac_ct_CC="$ac_prog" | |
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1953 break 2 | |
1954 fi | |
1955 done | |
1956 done | |
1957 IFS=$as_save_IFS | |
1958 | |
1959 fi | |
1960 fi | |
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1962 if test -n "$ac_ct_CC"; then | |
1963 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1964 echo "${ECHO_T}$ac_ct_CC" >&6; } | |
1965 else | |
1966 { echo "$as_me:$LINENO: result: no" >&5 | |
1967 echo "${ECHO_T}no" >&6; } | |
1968 fi | |
1969 | |
1970 | |
1971 test -n "$ac_ct_CC" && break | |
1972 done | |
1973 | |
1974 if test "x$ac_ct_CC" = x; then | |
1975 CC="" | |
1976 else | |
1977 case $cross_compiling:$ac_tool_warned in | |
1978 yes:) | |
1979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
1980 whose name does not start with the host triplet. If you think this | |
1981 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
1982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
1983 whose name does not start with the host triplet. If you think this | |
1984 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
1985 ac_tool_warned=yes ;; | |
1986 esac | |
1987 CC=$ac_ct_CC | |
1988 fi | |
1989 fi | |
1990 | |
1991 fi | |
1992 | |
1993 | |
1994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1995 See \`config.log' for more details." >&5 | |
1996 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1997 See \`config.log' for more details." >&2;} | |
1998 { (exit 1); exit 1; }; } | |
1999 | |
2000 # Provide some information about the compiler. | |
2001 echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2002 ac_compiler=`set X $ac_compile; echo $2` | |
2003 { (ac_try="$ac_compiler --version >&5" | |
2004 case "(($ac_try" in | |
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2006 *) ac_try_echo=$ac_try;; | |
2007 esac | |
2008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2009 (eval "$ac_compiler --version >&5") 2>&5 | |
2010 ac_status=$? | |
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2012 (exit $ac_status); } | |
2013 { (ac_try="$ac_compiler -v >&5" | |
2014 case "(($ac_try" in | |
2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2016 *) ac_try_echo=$ac_try;; | |
2017 esac | |
2018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2019 (eval "$ac_compiler -v >&5") 2>&5 | |
2020 ac_status=$? | |
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2022 (exit $ac_status); } | |
2023 { (ac_try="$ac_compiler -V >&5" | |
2024 case "(($ac_try" in | |
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2026 *) ac_try_echo=$ac_try;; | |
2027 esac | |
2028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2029 (eval "$ac_compiler -V >&5") 2>&5 | |
2030 ac_status=$? | |
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2032 (exit $ac_status); } | |
2033 | |
2034 cat >conftest.$ac_ext <<_ACEOF | |
2035 /* confdefs.h. */ | |
2036 _ACEOF | |
2037 cat confdefs.h >>conftest.$ac_ext | |
2038 cat >>conftest.$ac_ext <<_ACEOF | |
2039 /* end confdefs.h. */ | |
2040 | |
2041 int | |
2042 main () | |
2043 { | |
2044 | |
2045 ; | |
2046 return 0; | |
2047 } | |
2048 _ACEOF | |
2049 ac_clean_files_save=$ac_clean_files | |
2050 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2051 # Try to create an executable without -o first, disregard a.out. | |
2052 # It will help us diagnose broken compilers, and finding out an intuition | |
2053 # of exeext. | |
2054 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2055 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
2056 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2057 # | |
2058 # List of possible output files, starting from the most likely. | |
2059 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2060 # only as a last resort. b.out is created by i960 compilers. | |
2061 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2062 # | |
2063 # The IRIX 6 linker writes into existing files which may not be | |
2064 # executable, retaining their permissions. Remove them first so a | |
2065 # subsequent execution test works. | |
2066 ac_rmfiles= | |
2067 for ac_file in $ac_files | |
2068 do | |
2069 case $ac_file in | |
2070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2071 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2072 esac | |
2073 done | |
2074 rm -f $ac_rmfiles | |
2075 | |
2076 if { (ac_try="$ac_link_default" | |
2077 case "(($ac_try" in | |
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2079 *) ac_try_echo=$ac_try;; | |
2080 esac | |
2081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2082 (eval "$ac_link_default") 2>&5 | |
2083 ac_status=$? | |
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2085 (exit $ac_status); }; then | |
2086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2087 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2088 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2089 # so that the user can short-circuit this test for compilers unknown to | |
2090 # Autoconf. | |
2091 for ac_file in $ac_files '' | |
2092 do | |
2093 test -f "$ac_file" || continue | |
2094 case $ac_file in | |
2095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
2096 ;; | |
2097 [ab].out ) | |
2098 # We found the default executable, but exeext='' is most | |
2099 # certainly right. | |
2100 break;; | |
2101 *.* ) | |
2102 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2103 then :; else | |
2104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2105 fi | |
2106 # We set ac_cv_exeext here because the later test for it is not | |
2107 # safe: cross compilers may not add the suffix if given an `-o' | |
2108 # argument, so we may need to know it at that point already. | |
2109 # Even if this section looks crufty: it has the advantage of | |
2110 # actually working. | |
2111 break;; | |
2112 * ) | |
2113 break;; | |
2114 esac | |
2115 done | |
2116 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2117 | |
2118 else | |
2119 ac_file='' | |
2120 fi | |
2121 | |
2122 { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2123 echo "${ECHO_T}$ac_file" >&6; } | |
2124 if test -z "$ac_file"; then | |
2125 echo "$as_me: failed program was:" >&5 | |
2126 sed 's/^/| /' conftest.$ac_ext >&5 | |
2127 | |
2128 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2129 See \`config.log' for more details." >&5 | |
2130 echo "$as_me: error: C compiler cannot create executables | |
2131 See \`config.log' for more details." >&2;} | |
2132 { (exit 77); exit 77; }; } | |
2133 fi | |
2134 | |
2135 ac_exeext=$ac_cv_exeext | |
2136 | |
2137 # Check that the compiler produces executables we can run. If not, either | |
2138 # the compiler is broken, or we cross compile. | |
2139 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2140 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
2141 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2142 # If not cross compiling, check that we can run a simple program. | |
2143 if test "$cross_compiling" != yes; then | |
2144 if { ac_try='./$ac_file' | |
2145 { (case "(($ac_try" in | |
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2147 *) ac_try_echo=$ac_try;; | |
2148 esac | |
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2150 (eval "$ac_try") 2>&5 | |
2151 ac_status=$? | |
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2153 (exit $ac_status); }; }; then | |
2154 cross_compiling=no | |
2155 else | |
2156 if test "$cross_compiling" = maybe; then | |
2157 cross_compiling=yes | |
2158 else | |
2159 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2160 If you meant to cross compile, use \`--host'. | |
2161 See \`config.log' for more details." >&5 | |
2162 echo "$as_me: error: cannot run C compiled programs. | |
2163 If you meant to cross compile, use \`--host'. | |
2164 See \`config.log' for more details." >&2;} | |
2165 { (exit 1); exit 1; }; } | |
2166 fi | |
2167 fi | |
2168 fi | |
2169 { echo "$as_me:$LINENO: result: yes" >&5 | |
2170 echo "${ECHO_T}yes" >&6; } | |
2171 | |
2172 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2173 ac_clean_files=$ac_clean_files_save | |
2174 # Check that the compiler produces executables we can run. If not, either | |
2175 # the compiler is broken, or we cross compile. | |
2176 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2178 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2179 echo "${ECHO_T}$cross_compiling" >&6; } | |
2180 | |
2181 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2183 if { (ac_try="$ac_link" | |
2184 case "(($ac_try" in | |
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2186 *) ac_try_echo=$ac_try;; | |
2187 esac | |
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2189 (eval "$ac_link") 2>&5 | |
2190 ac_status=$? | |
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2192 (exit $ac_status); }; then | |
2193 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2194 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2195 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2196 # `rm'. | |
2197 for ac_file in conftest.exe conftest conftest.*; do | |
2198 test -f "$ac_file" || continue | |
2199 case $ac_file in | |
2200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2201 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2202 break;; | |
2203 * ) break;; | |
2204 esac | |
2205 done | |
2206 else | |
2207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2208 See \`config.log' for more details." >&5 | |
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2210 See \`config.log' for more details." >&2;} | |
2211 { (exit 1); exit 1; }; } | |
2212 fi | |
2213 | |
2214 rm -f conftest$ac_cv_exeext | |
2215 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2216 echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
2217 | |
2218 rm -f conftest.$ac_ext | |
2219 EXEEXT=$ac_cv_exeext | |
2220 ac_exeext=$EXEEXT | |
2221 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
2223 if test "${ac_cv_objext+set}" = set; then | |
2224 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2225 else | |
2226 cat >conftest.$ac_ext <<_ACEOF | |
2227 /* confdefs.h. */ | |
2228 _ACEOF | |
2229 cat confdefs.h >>conftest.$ac_ext | |
2230 cat >>conftest.$ac_ext <<_ACEOF | |
2231 /* end confdefs.h. */ | |
2232 | |
2233 int | |
2234 main () | |
2235 { | |
2236 | |
2237 ; | |
2238 return 0; | |
2239 } | |
2240 _ACEOF | |
2241 rm -f conftest.o conftest.obj | |
2242 if { (ac_try="$ac_compile" | |
2243 case "(($ac_try" in | |
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2245 *) ac_try_echo=$ac_try;; | |
2246 esac | |
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2248 (eval "$ac_compile") 2>&5 | |
2249 ac_status=$? | |
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2251 (exit $ac_status); }; then | |
2252 for ac_file in conftest.o conftest.obj conftest.*; do | |
2253 test -f "$ac_file" || continue; | |
2254 case $ac_file in | |
2255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
2256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2257 break;; | |
2258 esac | |
2259 done | |
2260 else | |
2261 echo "$as_me: failed program was:" >&5 | |
2262 sed 's/^/| /' conftest.$ac_ext >&5 | |
2263 | |
2264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2265 See \`config.log' for more details." >&5 | |
2266 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2267 See \`config.log' for more details." >&2;} | |
2268 { (exit 1); exit 1; }; } | |
2269 fi | |
2270 | |
2271 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2272 fi | |
2273 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2274 echo "${ECHO_T}$ac_cv_objext" >&6; } | |
2275 OBJEXT=$ac_cv_objext | |
2276 ac_objext=$OBJEXT | |
2277 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
2279 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2280 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2281 else | |
2282 cat >conftest.$ac_ext <<_ACEOF | |
2283 /* confdefs.h. */ | |
2284 _ACEOF | |
2285 cat confdefs.h >>conftest.$ac_ext | |
2286 cat >>conftest.$ac_ext <<_ACEOF | |
2287 /* end confdefs.h. */ | |
2288 | |
2289 int | |
2290 main () | |
2291 { | |
2292 #ifndef __GNUC__ | |
2293 choke me | |
2294 #endif | |
2295 | |
2296 ; | |
2297 return 0; | |
2298 } | |
2299 _ACEOF | |
2300 rm -f conftest.$ac_objext | |
2301 if { (ac_try="$ac_compile" | |
2302 case "(($ac_try" in | |
2303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2304 *) ac_try_echo=$ac_try;; | |
2305 esac | |
2306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2307 (eval "$ac_compile") 2>conftest.er1 | |
2308 ac_status=$? | |
2309 grep -v '^ *+' conftest.er1 >conftest.err | |
2310 rm -f conftest.er1 | |
2311 cat conftest.err >&5 | |
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2313 (exit $ac_status); } && { | |
2314 test -z "$ac_c_werror_flag" || | |
2315 test ! -s conftest.err | |
2316 } && test -s conftest.$ac_objext; then | |
2317 ac_compiler_gnu=yes | |
2318 else | |
2319 echo "$as_me: failed program was:" >&5 | |
2320 sed 's/^/| /' conftest.$ac_ext >&5 | |
2321 | |
2322 ac_compiler_gnu=no | |
2323 fi | |
2324 | |
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2326 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2327 | |
2328 fi | |
2329 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2330 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
2331 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2332 ac_test_CFLAGS=${CFLAGS+set} | |
2333 ac_save_CFLAGS=$CFLAGS | |
2334 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
2336 if test "${ac_cv_prog_cc_g+set}" = set; then | |
2337 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2338 else | |
2339 ac_save_c_werror_flag=$ac_c_werror_flag | |
2340 ac_c_werror_flag=yes | |
2341 ac_cv_prog_cc_g=no | |
2342 CFLAGS="-g" | |
2343 cat >conftest.$ac_ext <<_ACEOF | |
2344 /* confdefs.h. */ | |
2345 _ACEOF | |
2346 cat confdefs.h >>conftest.$ac_ext | |
2347 cat >>conftest.$ac_ext <<_ACEOF | |
2348 /* end confdefs.h. */ | |
2349 | |
2350 int | |
2351 main () | |
2352 { | |
2353 | |
2354 ; | |
2355 return 0; | |
2356 } | |
2357 _ACEOF | |
2358 rm -f conftest.$ac_objext | |
2359 if { (ac_try="$ac_compile" | |
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_compile") 2>conftest.er1 | |
2366 ac_status=$? | |
2367 grep -v '^ *+' conftest.er1 >conftest.err | |
2368 rm -f conftest.er1 | |
2369 cat conftest.err >&5 | |
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2371 (exit $ac_status); } && { | |
2372 test -z "$ac_c_werror_flag" || | |
2373 test ! -s conftest.err | |
2374 } && test -s conftest.$ac_objext; then | |
2375 ac_cv_prog_cc_g=yes | |
2376 else | |
2377 echo "$as_me: failed program was:" >&5 | |
2378 sed 's/^/| /' conftest.$ac_ext >&5 | |
2379 | |
2380 CFLAGS="" | |
2381 cat >conftest.$ac_ext <<_ACEOF | |
2382 /* confdefs.h. */ | |
2383 _ACEOF | |
2384 cat confdefs.h >>conftest.$ac_ext | |
2385 cat >>conftest.$ac_ext <<_ACEOF | |
2386 /* end confdefs.h. */ | |
2387 | |
2388 int | |
2389 main () | |
2390 { | |
2391 | |
2392 ; | |
2393 return 0; | |
2394 } | |
2395 _ACEOF | |
2396 rm -f conftest.$ac_objext | |
2397 if { (ac_try="$ac_compile" | |
2398 case "(($ac_try" in | |
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2400 *) ac_try_echo=$ac_try;; | |
2401 esac | |
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2403 (eval "$ac_compile") 2>conftest.er1 | |
2404 ac_status=$? | |
2405 grep -v '^ *+' conftest.er1 >conftest.err | |
2406 rm -f conftest.er1 | |
2407 cat conftest.err >&5 | |
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2409 (exit $ac_status); } && { | |
2410 test -z "$ac_c_werror_flag" || | |
2411 test ! -s conftest.err | |
2412 } && test -s conftest.$ac_objext; then | |
2413 : | |
2414 else | |
2415 echo "$as_me: failed program was:" >&5 | |
2416 sed 's/^/| /' conftest.$ac_ext >&5 | |
2417 | |
2418 ac_c_werror_flag=$ac_save_c_werror_flag | |
2419 CFLAGS="-g" | |
2420 cat >conftest.$ac_ext <<_ACEOF | |
2421 /* confdefs.h. */ | |
2422 _ACEOF | |
2423 cat confdefs.h >>conftest.$ac_ext | |
2424 cat >>conftest.$ac_ext <<_ACEOF | |
2425 /* end confdefs.h. */ | |
2426 | |
2427 int | |
2428 main () | |
2429 { | |
2430 | |
2431 ; | |
2432 return 0; | |
2433 } | |
2434 _ACEOF | |
2435 rm -f conftest.$ac_objext | |
2436 if { (ac_try="$ac_compile" | |
2437 case "(($ac_try" in | |
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2439 *) ac_try_echo=$ac_try;; | |
2440 esac | |
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2442 (eval "$ac_compile") 2>conftest.er1 | |
2443 ac_status=$? | |
2444 grep -v '^ *+' conftest.er1 >conftest.err | |
2445 rm -f conftest.er1 | |
2446 cat conftest.err >&5 | |
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2448 (exit $ac_status); } && { | |
2449 test -z "$ac_c_werror_flag" || | |
2450 test ! -s conftest.err | |
2451 } && test -s conftest.$ac_objext; then | |
2452 ac_cv_prog_cc_g=yes | |
2453 else | |
2454 echo "$as_me: failed program was:" >&5 | |
2455 sed 's/^/| /' conftest.$ac_ext >&5 | |
2456 | |
2457 | |
2458 fi | |
2459 | |
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2461 fi | |
2462 | |
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2464 fi | |
2465 | |
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2467 ac_c_werror_flag=$ac_save_c_werror_flag | |
2468 fi | |
2469 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
2471 if test "$ac_test_CFLAGS" = set; then | |
2472 CFLAGS=$ac_save_CFLAGS | |
2473 elif test $ac_cv_prog_cc_g = yes; then | |
2474 if test "$GCC" = yes; then | |
2475 CFLAGS="-g -O2" | |
2476 else | |
2477 CFLAGS="-g" | |
2478 fi | |
2479 else | |
2480 if test "$GCC" = yes; then | |
2481 CFLAGS="-O2" | |
2482 else | |
2483 CFLAGS= | |
2484 fi | |
2485 fi | |
2486 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
2487 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2488 if test "${ac_cv_prog_cc_c89+set}" = set; then | |
2489 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2490 else | |
2491 ac_cv_prog_cc_c89=no | |
2492 ac_save_CC=$CC | |
2493 cat >conftest.$ac_ext <<_ACEOF | |
2494 /* confdefs.h. */ | |
2495 _ACEOF | |
2496 cat confdefs.h >>conftest.$ac_ext | |
2497 cat >>conftest.$ac_ext <<_ACEOF | |
2498 /* end confdefs.h. */ | |
2499 #include <stdarg.h> | |
2500 #include <stdio.h> | |
2501 #include <sys/types.h> | |
2502 #include <sys/stat.h> | |
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2504 struct buf { int x; }; | |
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2506 static char *e (p, i) | |
2507 char **p; | |
2508 int i; | |
2509 { | |
2510 return p[i]; | |
2511 } | |
2512 static char *f (char * (*g) (char **, int), char **p, ...) | |
2513 { | |
2514 char *s; | |
2515 va_list v; | |
2516 va_start (v,p); | |
2517 s = g (p, va_arg (v,int)); | |
2518 va_end (v); | |
2519 return s; | |
2520 } | |
2521 | |
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2523 function prototypes and stuff, but not '\xHH' hex character constants. | |
2524 These don't provoke an error unfortunately, instead are silently treated | |
2525 as 'x'. The following induces an error, until -std is added to get | |
2526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2527 array size at least. It's necessary to write '\x00'==0 to get something | |
2528 that's true only with -std. */ | |
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2530 | |
2531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2532 inside strings and character constants. */ | |
2533 #define FOO(x) 'x' | |
2534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2535 | |
2536 int test (int i, double x); | |
2537 struct s1 {int (*f) (int a);}; | |
2538 struct s2 {int (*f) (double a);}; | |
2539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2540 int argc; | |
2541 char **argv; | |
2542 int | |
2543 main () | |
2544 { | |
2545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2546 ; | |
2547 return 0; | |
2548 } | |
2549 _ACEOF | |
2550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2552 do | |
2553 CC="$ac_save_CC $ac_arg" | |
2554 rm -f conftest.$ac_objext | |
2555 if { (ac_try="$ac_compile" | |
2556 case "(($ac_try" in | |
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2558 *) ac_try_echo=$ac_try;; | |
2559 esac | |
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2561 (eval "$ac_compile") 2>conftest.er1 | |
2562 ac_status=$? | |
2563 grep -v '^ *+' conftest.er1 >conftest.err | |
2564 rm -f conftest.er1 | |
2565 cat conftest.err >&5 | |
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2567 (exit $ac_status); } && { | |
2568 test -z "$ac_c_werror_flag" || | |
2569 test ! -s conftest.err | |
2570 } && test -s conftest.$ac_objext; then | |
2571 ac_cv_prog_cc_c89=$ac_arg | |
2572 else | |
2573 echo "$as_me: failed program was:" >&5 | |
2574 sed 's/^/| /' conftest.$ac_ext >&5 | |
2575 | |
2576 | |
2577 fi | |
2578 | |
2579 rm -f core conftest.err conftest.$ac_objext | |
2580 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
2581 done | |
2582 rm -f conftest.$ac_ext | |
2583 CC=$ac_save_CC | |
2584 | |
2585 fi | |
2586 # AC_CACHE_VAL | |
2587 case "x$ac_cv_prog_cc_c89" in | |
2588 x) | |
2589 { echo "$as_me:$LINENO: result: none needed" >&5 | |
2590 echo "${ECHO_T}none needed" >&6; } ;; | |
2591 xno) | |
2592 { echo "$as_me:$LINENO: result: unsupported" >&5 | |
2593 echo "${ECHO_T}unsupported" >&6; } ;; | |
2594 *) | |
2595 CC="$CC $ac_cv_prog_cc_c89" | |
2596 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
2597 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
2598 esac | |
2599 | |
2600 | |
2601 ac_ext=c | |
2602 ac_cpp='$CPP $CPPFLAGS' | |
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2606 | |
2607 | |
2608 ac_ext=c | |
2609 ac_cpp='$CPP $CPPFLAGS' | |
2610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2612 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2613 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2614 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
2615 # On Suns, sometimes $CPP names a directory. | |
2616 if test -n "$CPP" && test -d "$CPP"; then | |
2617 CPP= | |
2618 fi | |
2619 if test -z "$CPP"; then | |
2620 if test "${ac_cv_prog_CPP+set}" = set; then | |
2621 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2622 else | |
2623 # Double quotes because CPP needs to be expanded | |
2624 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2625 do | |
2626 ac_preproc_ok=false | |
2627 for ac_c_preproc_warn_flag in '' yes | |
2628 do | |
2629 # Use a header file that comes with gcc, so configuring glibc | |
2630 # with a fresh cross-compiler works. | |
2631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2632 # <limits.h> exists even on freestanding compilers. | |
2633 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2634 # not just through cpp. "Syntax error" is here to catch this case. | |
2635 cat >conftest.$ac_ext <<_ACEOF | |
2636 /* confdefs.h. */ | |
2637 _ACEOF | |
2638 cat confdefs.h >>conftest.$ac_ext | |
2639 cat >>conftest.$ac_ext <<_ACEOF | |
2640 /* end confdefs.h. */ | |
2641 #ifdef __STDC__ | |
2642 # include <limits.h> | |
2643 #else | |
2644 # include <assert.h> | |
2645 #endif | |
2646 Syntax error | |
2647 _ACEOF | |
2648 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
2649 case "(($ac_try" in | |
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2651 *) ac_try_echo=$ac_try;; | |
2652 esac | |
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2655 ac_status=$? | |
2656 grep -v '^ *+' conftest.er1 >conftest.err | |
2657 rm -f conftest.er1 | |
2658 cat conftest.err >&5 | |
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2660 (exit $ac_status); } >/dev/null && { | |
2661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2662 test ! -s conftest.err | |
2663 }; then | |
2664 : | |
2665 else | |
2666 echo "$as_me: failed program was:" >&5 | |
2667 sed 's/^/| /' conftest.$ac_ext >&5 | |
2668 | |
2669 # Broken: fails on valid input. | |
2670 continue | |
2671 fi | |
2672 | |
2673 rm -f conftest.err conftest.$ac_ext | |
2674 | |
2675 # OK, works on sane cases. Now check whether nonexistent headers | |
2676 # can be detected and how. | |
2677 cat >conftest.$ac_ext <<_ACEOF | |
2678 /* confdefs.h. */ | |
2679 _ACEOF | |
2680 cat confdefs.h >>conftest.$ac_ext | |
2681 cat >>conftest.$ac_ext <<_ACEOF | |
2682 /* end confdefs.h. */ | |
2683 #include <ac_nonexistent.h> | |
2684 _ACEOF | |
2685 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
2686 case "(($ac_try" in | |
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2688 *) ac_try_echo=$ac_try;; | |
2689 esac | |
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2692 ac_status=$? | |
2693 grep -v '^ *+' conftest.er1 >conftest.err | |
2694 rm -f conftest.er1 | |
2695 cat conftest.err >&5 | |
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2697 (exit $ac_status); } >/dev/null && { | |
2698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2699 test ! -s conftest.err | |
2700 }; then | |
2701 # Broken: success on invalid input. | |
2702 continue | |
2703 else | |
2704 echo "$as_me: failed program was:" >&5 | |
2705 sed 's/^/| /' conftest.$ac_ext >&5 | |
2706 | |
2707 # Passes both tests. | |
2708 ac_preproc_ok=: | |
2709 break | |
2710 fi | |
2711 | |
2712 rm -f conftest.err conftest.$ac_ext | |
2713 | |
2714 done | |
2715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2716 rm -f conftest.err conftest.$ac_ext | |
2717 if $ac_preproc_ok; then | |
2718 break | |
2719 fi | |
2720 | |
2721 done | |
2722 ac_cv_prog_CPP=$CPP | |
2723 | |
2724 fi | |
2725 CPP=$ac_cv_prog_CPP | |
2726 else | |
2727 ac_cv_prog_CPP=$CPP | |
2728 fi | |
2729 { echo "$as_me:$LINENO: result: $CPP" >&5 | |
2730 echo "${ECHO_T}$CPP" >&6; } | |
2731 ac_preproc_ok=false | |
2732 for ac_c_preproc_warn_flag in '' yes | |
2733 do | |
2734 # Use a header file that comes with gcc, so configuring glibc | |
2735 # with a fresh cross-compiler works. | |
2736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2737 # <limits.h> exists even on freestanding compilers. | |
2738 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2739 # not just through cpp. "Syntax error" is here to catch this case. | |
2740 cat >conftest.$ac_ext <<_ACEOF | |
2741 /* confdefs.h. */ | |
2742 _ACEOF | |
2743 cat confdefs.h >>conftest.$ac_ext | |
2744 cat >>conftest.$ac_ext <<_ACEOF | |
2745 /* end confdefs.h. */ | |
2746 #ifdef __STDC__ | |
2747 # include <limits.h> | |
2748 #else | |
2749 # include <assert.h> | |
2750 #endif | |
2751 Syntax error | |
2752 _ACEOF | |
2753 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
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_cpp conftest.$ac_ext") 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); } >/dev/null && { | |
2766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2767 test ! -s conftest.err | |
2768 }; then | |
2769 : | |
2770 else | |
2771 echo "$as_me: failed program was:" >&5 | |
2772 sed 's/^/| /' conftest.$ac_ext >&5 | |
2773 | |
2774 # Broken: fails on valid input. | |
2775 continue | |
2776 fi | |
2777 | |
2778 rm -f conftest.err conftest.$ac_ext | |
2779 | |
2780 # OK, works on sane cases. Now check whether nonexistent headers | |
2781 # can be detected and how. | |
2782 cat >conftest.$ac_ext <<_ACEOF | |
2783 /* confdefs.h. */ | |
2784 _ACEOF | |
2785 cat confdefs.h >>conftest.$ac_ext | |
2786 cat >>conftest.$ac_ext <<_ACEOF | |
2787 /* end confdefs.h. */ | |
2788 #include <ac_nonexistent.h> | |
2789 _ACEOF | |
2790 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
2791 case "(($ac_try" in | |
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2793 *) ac_try_echo=$ac_try;; | |
2794 esac | |
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2797 ac_status=$? | |
2798 grep -v '^ *+' conftest.er1 >conftest.err | |
2799 rm -f conftest.er1 | |
2800 cat conftest.err >&5 | |
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2802 (exit $ac_status); } >/dev/null && { | |
2803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2804 test ! -s conftest.err | |
2805 }; then | |
2806 # Broken: success on invalid input. | |
2807 continue | |
2808 else | |
2809 echo "$as_me: failed program was:" >&5 | |
2810 sed 's/^/| /' conftest.$ac_ext >&5 | |
2811 | |
2812 # Passes both tests. | |
2813 ac_preproc_ok=: | |
2814 break | |
2815 fi | |
2816 | |
2817 rm -f conftest.err conftest.$ac_ext | |
2818 | |
2819 done | |
2820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2821 rm -f conftest.err conftest.$ac_ext | |
2822 if $ac_preproc_ok; then | |
2823 : | |
2824 else | |
2825 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2826 See \`config.log' for more details." >&5 | |
2827 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2828 See \`config.log' for more details." >&2;} | |
2829 { (exit 1); exit 1; }; } | |
2830 fi | |
2831 | |
2832 ac_ext=c | |
2833 ac_cpp='$CPP $CPPFLAGS' | |
2834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2836 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2837 | |
2838 | |
2839 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
2840 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
2841 if test "${ac_cv_path_GREP+set}" = set; then | |
2842 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2843 else | |
2844 # Extract the first word of "grep ggrep" to use in msg output | |
2845 if test -z "$GREP"; then | |
2846 set dummy grep ggrep; ac_prog_name=$2 | |
2847 if test "${ac_cv_path_GREP+set}" = set; then | |
2848 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2849 else | |
2850 ac_path_GREP_found=false | |
2851 # Loop through the user's path and test for each of PROGNAME-LIST | |
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2853 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
2854 do | |
2855 IFS=$as_save_IFS | |
2856 test -z "$as_dir" && as_dir=. | |
2857 for ac_prog in grep ggrep; do | |
2858 for ac_exec_ext in '' $ac_executable_extensions; do | |
2859 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
2860 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
2861 # Check for GNU ac_path_GREP and select it if it is found. | |
2862 # Check for GNU $ac_path_GREP | |
2863 case `"$ac_path_GREP" --version 2>&1` in | |
2864 *GNU*) | |
2865 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
2866 *) | |
2867 ac_count=0 | |
2868 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
2869 while : | |
2870 do | |
2871 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2872 mv "conftest.tmp" "conftest.in" | |
2873 cp "conftest.in" "conftest.nl" | |
2874 echo 'GREP' >> "conftest.nl" | |
2875 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2877 ac_count=`expr $ac_count + 1` | |
2878 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
2879 # Best one so far, save it but keep looking for a better one | |
2880 ac_cv_path_GREP="$ac_path_GREP" | |
2881 ac_path_GREP_max=$ac_count | |
2882 fi | |
2883 # 10*(2^10) chars as input seems more than enough | |
2884 test $ac_count -gt 10 && break | |
2885 done | |
2886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2887 esac | |
2888 | |
2889 | |
2890 $ac_path_GREP_found && break 3 | |
2891 done | |
2892 done | |
2893 | |
2894 done | |
2895 IFS=$as_save_IFS | |
2896 | |
2897 | |
2898 fi | |
2899 | |
2900 GREP="$ac_cv_path_GREP" | |
2901 if test -z "$GREP"; then | |
2902 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
2903 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
2904 { (exit 1); exit 1; }; } | |
2905 fi | |
2906 | |
2907 else | |
2908 ac_cv_path_GREP=$GREP | |
2909 fi | |
2910 | |
2911 | |
2912 fi | |
2913 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
2914 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
2915 GREP="$ac_cv_path_GREP" | |
2916 | |
2917 | |
2918 { echo "$as_me:$LINENO: checking for egrep" >&5 | |
2919 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
2920 if test "${ac_cv_path_EGREP+set}" = set; then | |
2921 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2922 else | |
2923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
2924 then ac_cv_path_EGREP="$GREP -E" | |
2925 else | |
2926 # Extract the first word of "egrep" to use in msg output | |
2927 if test -z "$EGREP"; then | |
2928 set dummy egrep; ac_prog_name=$2 | |
2929 if test "${ac_cv_path_EGREP+set}" = set; then | |
2930 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2931 else | |
2932 ac_path_EGREP_found=false | |
2933 # Loop through the user's path and test for each of PROGNAME-LIST | |
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2935 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
2936 do | |
2937 IFS=$as_save_IFS | |
2938 test -z "$as_dir" && as_dir=. | |
2939 for ac_prog in egrep; do | |
2940 for ac_exec_ext in '' $ac_executable_extensions; do | |
2941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
2942 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
2943 # Check for GNU ac_path_EGREP and select it if it is found. | |
2944 # Check for GNU $ac_path_EGREP | |
2945 case `"$ac_path_EGREP" --version 2>&1` in | |
2946 *GNU*) | |
2947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
2948 *) | |
2949 ac_count=0 | |
2950 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
2951 while : | |
2952 do | |
2953 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2954 mv "conftest.tmp" "conftest.in" | |
2955 cp "conftest.in" "conftest.nl" | |
2956 echo 'EGREP' >> "conftest.nl" | |
2957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2959 ac_count=`expr $ac_count + 1` | |
2960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
2961 # Best one so far, save it but keep looking for a better one | |
2962 ac_cv_path_EGREP="$ac_path_EGREP" | |
2963 ac_path_EGREP_max=$ac_count | |
2964 fi | |
2965 # 10*(2^10) chars as input seems more than enough | |
2966 test $ac_count -gt 10 && break | |
2967 done | |
2968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2969 esac | |
2970 | |
2971 | |
2972 $ac_path_EGREP_found && break 3 | |
2973 done | |
2974 done | |
2975 | |
2976 done | |
2977 IFS=$as_save_IFS | |
2978 | |
2979 | |
2980 fi | |
2981 | |
2982 EGREP="$ac_cv_path_EGREP" | |
2983 if test -z "$EGREP"; then | |
2984 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
2985 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
2986 { (exit 1); exit 1; }; } | |
2987 fi | |
2988 | |
2989 else | |
2990 ac_cv_path_EGREP=$EGREP | |
2991 fi | |
2992 | |
2993 | |
2994 fi | |
2995 fi | |
2996 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
2997 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
2998 EGREP="$ac_cv_path_EGREP" | |
2999 | |
3000 | |
3001 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3002 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
3003 if test "${ac_cv_header_stdc+set}" = set; then | |
3004 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3005 else | |
3006 cat >conftest.$ac_ext <<_ACEOF | |
3007 /* confdefs.h. */ | |
3008 _ACEOF | |
3009 cat confdefs.h >>conftest.$ac_ext | |
3010 cat >>conftest.$ac_ext <<_ACEOF | |
3011 /* end confdefs.h. */ | |
3012 #include <stdlib.h> | |
3013 #include <stdarg.h> | |
3014 #include <string.h> | |
3015 #include <float.h> | |
3016 | |
3017 int | |
3018 main () | |
3019 { | |
3020 | |
3021 ; | |
3022 return 0; | |
3023 } | |
3024 _ACEOF | |
3025 rm -f conftest.$ac_objext | |
3026 if { (ac_try="$ac_compile" | |
3027 case "(($ac_try" in | |
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3029 *) ac_try_echo=$ac_try;; | |
3030 esac | |
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3032 (eval "$ac_compile") 2>conftest.er1 | |
3033 ac_status=$? | |
3034 grep -v '^ *+' conftest.er1 >conftest.err | |
3035 rm -f conftest.er1 | |
3036 cat conftest.err >&5 | |
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3038 (exit $ac_status); } && { | |
3039 test -z "$ac_c_werror_flag" || | |
3040 test ! -s conftest.err | |
3041 } && test -s conftest.$ac_objext; then | |
3042 ac_cv_header_stdc=yes | |
3043 else | |
3044 echo "$as_me: failed program was:" >&5 | |
3045 sed 's/^/| /' conftest.$ac_ext >&5 | |
3046 | |
3047 ac_cv_header_stdc=no | |
3048 fi | |
3049 | |
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3051 | |
3052 if test $ac_cv_header_stdc = yes; then | |
3053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3054 cat >conftest.$ac_ext <<_ACEOF | |
3055 /* confdefs.h. */ | |
3056 _ACEOF | |
3057 cat confdefs.h >>conftest.$ac_ext | |
3058 cat >>conftest.$ac_ext <<_ACEOF | |
3059 /* end confdefs.h. */ | |
3060 #include <string.h> | |
3061 | |
3062 _ACEOF | |
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3064 $EGREP "memchr" >/dev/null 2>&1; then | |
3065 : | |
3066 else | |
3067 ac_cv_header_stdc=no | |
3068 fi | |
3069 rm -f conftest* | |
3070 | |
3071 fi | |
3072 | |
3073 if test $ac_cv_header_stdc = yes; then | |
3074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3075 cat >conftest.$ac_ext <<_ACEOF | |
3076 /* confdefs.h. */ | |
3077 _ACEOF | |
3078 cat confdefs.h >>conftest.$ac_ext | |
3079 cat >>conftest.$ac_ext <<_ACEOF | |
3080 /* end confdefs.h. */ | |
3081 #include <stdlib.h> | |
3082 | |
3083 _ACEOF | |
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3085 $EGREP "free" >/dev/null 2>&1; then | |
3086 : | |
3087 else | |
3088 ac_cv_header_stdc=no | |
3089 fi | |
3090 rm -f conftest* | |
3091 | |
3092 fi | |
3093 | |
3094 if test $ac_cv_header_stdc = yes; then | |
3095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3096 if test "$cross_compiling" = yes; then | |
3097 : | |
3098 else | |
3099 cat >conftest.$ac_ext <<_ACEOF | |
3100 /* confdefs.h. */ | |
3101 _ACEOF | |
3102 cat confdefs.h >>conftest.$ac_ext | |
3103 cat >>conftest.$ac_ext <<_ACEOF | |
3104 /* end confdefs.h. */ | |
3105 #include <ctype.h> | |
3106 #include <stdlib.h> | |
3107 #if ((' ' & 0x0FF) == 0x020) | |
3108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3110 #else | |
3111 # define ISLOWER(c) \ | |
3112 (('a' <= (c) && (c) <= 'i') \ | |
3113 || ('j' <= (c) && (c) <= 'r') \ | |
3114 || ('s' <= (c) && (c) <= 'z')) | |
3115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3116 #endif | |
3117 | |
3118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3119 int | |
3120 main () | |
3121 { | |
3122 int i; | |
3123 for (i = 0; i < 256; i++) | |
3124 if (XOR (islower (i), ISLOWER (i)) | |
3125 || toupper (i) != TOUPPER (i)) | |
3126 return 2; | |
3127 return 0; | |
3128 } | |
3129 _ACEOF | |
3130 rm -f conftest$ac_exeext | |
3131 if { (ac_try="$ac_link" | |
3132 case "(($ac_try" in | |
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3134 *) ac_try_echo=$ac_try;; | |
3135 esac | |
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3137 (eval "$ac_link") 2>&5 | |
3138 ac_status=$? | |
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3141 { (case "(($ac_try" in | |
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3143 *) ac_try_echo=$ac_try;; | |
3144 esac | |
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3146 (eval "$ac_try") 2>&5 | |
3147 ac_status=$? | |
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3149 (exit $ac_status); }; }; then | |
3150 : | |
3151 else | |
3152 echo "$as_me: program exited with status $ac_status" >&5 | |
3153 echo "$as_me: failed program was:" >&5 | |
3154 sed 's/^/| /' conftest.$ac_ext >&5 | |
3155 | |
3156 ( exit $ac_status ) | |
3157 ac_cv_header_stdc=no | |
3158 fi | |
3159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3160 fi | |
3161 | |
3162 | |
3163 fi | |
3164 fi | |
3165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
3167 if test $ac_cv_header_stdc = yes; then | |
3168 | |
3169 cat >>confdefs.h <<\_ACEOF | |
3170 #define STDC_HEADERS 1 | |
3171 _ACEOF | |
3172 | |
3173 fi | |
3174 | |
3175 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3176 | |
3177 | |
3178 | |
3179 | |
3180 | |
3181 | |
3182 | |
3183 | |
3184 | |
3185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3186 inttypes.h stdint.h unistd.h | |
3187 do | |
3188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3189 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3192 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3193 else | |
3194 cat >conftest.$ac_ext <<_ACEOF | |
3195 /* confdefs.h. */ | |
3196 _ACEOF | |
3197 cat confdefs.h >>conftest.$ac_ext | |
3198 cat >>conftest.$ac_ext <<_ACEOF | |
3199 /* end confdefs.h. */ | |
3200 $ac_includes_default | |
3201 | |
3202 #include <$ac_header> | |
3203 _ACEOF | |
3204 rm -f conftest.$ac_objext | |
3205 if { (ac_try="$ac_compile" | |
3206 case "(($ac_try" in | |
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3208 *) ac_try_echo=$ac_try;; | |
3209 esac | |
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3211 (eval "$ac_compile") 2>conftest.er1 | |
3212 ac_status=$? | |
3213 grep -v '^ *+' conftest.er1 >conftest.err | |
3214 rm -f conftest.er1 | |
3215 cat conftest.err >&5 | |
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3217 (exit $ac_status); } && { | |
3218 test -z "$ac_c_werror_flag" || | |
3219 test ! -s conftest.err | |
3220 } && test -s conftest.$ac_objext; then | |
3221 eval "$as_ac_Header=yes" | |
3222 else | |
3223 echo "$as_me: failed program was:" >&5 | |
3224 sed 's/^/| /' conftest.$ac_ext >&5 | |
3225 | |
3226 eval "$as_ac_Header=no" | |
3227 fi | |
3228 | |
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3230 fi | |
3231 ac_res=`eval echo '${'$as_ac_Header'}'` | |
3232 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3233 echo "${ECHO_T}$ac_res" >&6; } | |
3234 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3235 cat >>confdefs.h <<_ACEOF | |
3236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3237 _ACEOF | |
3238 | |
3239 fi | |
3240 | |
3241 done | |
3242 | |
3243 | |
3244 | |
3245 | |
3246 for ac_header in stdint.h dlfcn.h | |
3247 do | |
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3250 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3253 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3254 fi | |
3255 ac_res=`eval echo '${'$as_ac_Header'}'` | |
3256 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3257 echo "${ECHO_T}$ac_res" >&6; } | |
3258 else | |
3259 # Is the header compilable? | |
3260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
3262 cat >conftest.$ac_ext <<_ACEOF | |
3263 /* confdefs.h. */ | |
3264 _ACEOF | |
3265 cat confdefs.h >>conftest.$ac_ext | |
3266 cat >>conftest.$ac_ext <<_ACEOF | |
3267 /* end confdefs.h. */ | |
3268 $ac_includes_default | |
3269 #include <$ac_header> | |
3270 _ACEOF | |
3271 rm -f conftest.$ac_objext | |
3272 if { (ac_try="$ac_compile" | |
3273 case "(($ac_try" in | |
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3275 *) ac_try_echo=$ac_try;; | |
3276 esac | |
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3278 (eval "$ac_compile") 2>conftest.er1 | |
3279 ac_status=$? | |
3280 grep -v '^ *+' conftest.er1 >conftest.err | |
3281 rm -f conftest.er1 | |
3282 cat conftest.err >&5 | |
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3284 (exit $ac_status); } && { | |
3285 test -z "$ac_c_werror_flag" || | |
3286 test ! -s conftest.err | |
3287 } && test -s conftest.$ac_objext; then | |
3288 ac_header_compiler=yes | |
3289 else | |
3290 echo "$as_me: failed program was:" >&5 | |
3291 sed 's/^/| /' conftest.$ac_ext >&5 | |
3292 | |
3293 ac_header_compiler=no | |
3294 fi | |
3295 | |
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3298 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
3299 | |
3300 # Is the header present? | |
3301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
3303 cat >conftest.$ac_ext <<_ACEOF | |
3304 /* confdefs.h. */ | |
3305 _ACEOF | |
3306 cat confdefs.h >>conftest.$ac_ext | |
3307 cat >>conftest.$ac_ext <<_ACEOF | |
3308 /* end confdefs.h. */ | |
3309 #include <$ac_header> | |
3310 _ACEOF | |
3311 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3312 case "(($ac_try" in | |
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3314 *) ac_try_echo=$ac_try;; | |
3315 esac | |
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3318 ac_status=$? | |
3319 grep -v '^ *+' conftest.er1 >conftest.err | |
3320 rm -f conftest.er1 | |
3321 cat conftest.err >&5 | |
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3323 (exit $ac_status); } >/dev/null && { | |
3324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3325 test ! -s conftest.err | |
3326 }; then | |
3327 ac_header_preproc=yes | |
3328 else | |
3329 echo "$as_me: failed program was:" >&5 | |
3330 sed 's/^/| /' conftest.$ac_ext >&5 | |
3331 | |
3332 ac_header_preproc=no | |
3333 fi | |
3334 | |
3335 rm -f conftest.err conftest.$ac_ext | |
3336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3337 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
3338 | |
3339 # So? What about this header? | |
3340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3341 yes:no: ) | |
3342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3346 ac_header_preproc=yes | |
3347 ;; | |
3348 no:yes:* ) | |
3349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3361 ( cat <<\_ASBOX | |
3362 ## --------------------------------- ## | |
3363 ## Report this to BUG-REPORT-ADDRESS ## | |
3364 ## --------------------------------- ## | |
3365 _ASBOX | |
3366 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
3367 ;; | |
3368 esac | |
3369 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3372 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3373 else | |
3374 eval "$as_ac_Header=\$ac_header_preproc" | |
3375 fi | |
3376 ac_res=`eval echo '${'$as_ac_Header'}'` | |
3377 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3378 echo "${ECHO_T}$ac_res" >&6; } | |
3379 | |
3380 fi | |
3381 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3382 cat >>confdefs.h <<_ACEOF | |
3383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3384 _ACEOF | |
3385 | |
3386 fi | |
3387 | |
3388 done | |
3389 | |
3390 | |
3391 for ac_header in alsa/asoundlib.h | |
3392 do | |
3393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3395 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3398 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3399 fi | |
3400 ac_res=`eval echo '${'$as_ac_Header'}'` | |
3401 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3402 echo "${ECHO_T}$ac_res" >&6; } | |
3403 else | |
3404 # Is the header compilable? | |
3405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
3407 cat >conftest.$ac_ext <<_ACEOF | |
3408 /* confdefs.h. */ | |
3409 _ACEOF | |
3410 cat confdefs.h >>conftest.$ac_ext | |
3411 cat >>conftest.$ac_ext <<_ACEOF | |
3412 /* end confdefs.h. */ | |
3413 $ac_includes_default | |
3414 #include <$ac_header> | |
3415 _ACEOF | |
3416 rm -f conftest.$ac_objext | |
3417 if { (ac_try="$ac_compile" | |
3418 case "(($ac_try" in | |
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3420 *) ac_try_echo=$ac_try;; | |
3421 esac | |
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3423 (eval "$ac_compile") 2>conftest.er1 | |
3424 ac_status=$? | |
3425 grep -v '^ *+' conftest.er1 >conftest.err | |
3426 rm -f conftest.er1 | |
3427 cat conftest.err >&5 | |
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3429 (exit $ac_status); } && { | |
3430 test -z "$ac_c_werror_flag" || | |
3431 test ! -s conftest.err | |
3432 } && test -s conftest.$ac_objext; then | |
3433 ac_header_compiler=yes | |
3434 else | |
3435 echo "$as_me: failed program was:" >&5 | |
3436 sed 's/^/| /' conftest.$ac_ext >&5 | |
3437 | |
3438 ac_header_compiler=no | |
3439 fi | |
3440 | |
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3443 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
3444 | |
3445 # Is the header present? | |
3446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
3448 cat >conftest.$ac_ext <<_ACEOF | |
3449 /* confdefs.h. */ | |
3450 _ACEOF | |
3451 cat confdefs.h >>conftest.$ac_ext | |
3452 cat >>conftest.$ac_ext <<_ACEOF | |
3453 /* end confdefs.h. */ | |
3454 #include <$ac_header> | |
3455 _ACEOF | |
3456 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
3457 case "(($ac_try" in | |
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3459 *) ac_try_echo=$ac_try;; | |
3460 esac | |
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
3463 ac_status=$? | |
3464 grep -v '^ *+' conftest.er1 >conftest.err | |
3465 rm -f conftest.er1 | |
3466 cat conftest.err >&5 | |
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3468 (exit $ac_status); } >/dev/null && { | |
3469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3470 test ! -s conftest.err | |
3471 }; then | |
3472 ac_header_preproc=yes | |
3473 else | |
3474 echo "$as_me: failed program was:" >&5 | |
3475 sed 's/^/| /' conftest.$ac_ext >&5 | |
3476 | |
3477 ac_header_preproc=no | |
3478 fi | |
3479 | |
3480 rm -f conftest.err conftest.$ac_ext | |
3481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3482 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
3483 | |
3484 # So? What about this header? | |
3485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3486 yes:no: ) | |
3487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3491 ac_header_preproc=yes | |
3492 ;; | |
3493 no:yes:* ) | |
3494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3506 ( cat <<\_ASBOX | |
3507 ## --------------------------------- ## | |
3508 ## Report this to BUG-REPORT-ADDRESS ## | |
3509 ## --------------------------------- ## | |
3510 _ASBOX | |
3511 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
3512 ;; | |
3513 esac | |
3514 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
3516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
3517 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3518 else | |
3519 eval "$as_ac_Header=\$ac_header_preproc" | |
3520 fi | |
3521 ac_res=`eval echo '${'$as_ac_Header'}'` | |
3522 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3523 echo "${ECHO_T}$ac_res" >&6; } | |
3524 | |
3525 fi | |
3526 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3527 cat >>confdefs.h <<_ACEOF | |
3528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3529 _ACEOF | |
3530 | |
3531 fi | |
3532 | |
3533 done | |
3534 #for alsa | |
3535 | |
3536 | |
3537 for ac_func in strtof | |
3538 do | |
3539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3540 { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
3542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
3543 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3544 else | |
3545 cat >conftest.$ac_ext <<_ACEOF | |
3546 /* confdefs.h. */ | |
3547 _ACEOF | |
3548 cat confdefs.h >>conftest.$ac_ext | |
3549 cat >>conftest.$ac_ext <<_ACEOF | |
3550 /* end confdefs.h. */ | |
3551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3552 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3553 #define $ac_func innocuous_$ac_func | |
3554 | |
3555 /* System header to define __stub macros and hopefully few prototypes, | |
3556 which can conflict with char $ac_func (); below. | |
3557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3558 <limits.h> exists even on freestanding compilers. */ | |
3559 | |
3560 #ifdef __STDC__ | |
3561 # include <limits.h> | |
3562 #else | |
3563 # include <assert.h> | |
3564 #endif | |
3565 | |
3566 #undef $ac_func | |
3567 | |
3568 /* Override any GCC internal prototype to avoid an error. | |
3569 Use char because int might match the return type of a GCC | |
3570 builtin and then its argument prototype would still apply. */ | |
3571 #ifdef __cplusplus | |
3572 extern "C" | |
3573 #endif | |
3574 char $ac_func (); | |
3575 /* The GNU C library defines this for functions which it implements | |
3576 to always fail with ENOSYS. Some functions are actually named | |
3577 something starting with __ and the normal name is an alias. */ | |
3578 #if defined __stub_$ac_func || defined __stub___$ac_func | |
3579 choke me | |
3580 #endif | |
3581 | |
3582 int | |
3583 main () | |
3584 { | |
3585 return $ac_func (); | |
3586 ; | |
3587 return 0; | |
3588 } | |
3589 _ACEOF | |
3590 rm -f conftest.$ac_objext conftest$ac_exeext | |
3591 if { (ac_try="$ac_link" | |
3592 case "(($ac_try" in | |
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3594 *) ac_try_echo=$ac_try;; | |
3595 esac | |
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3597 (eval "$ac_link") 2>conftest.er1 | |
3598 ac_status=$? | |
3599 grep -v '^ *+' conftest.er1 >conftest.err | |
3600 rm -f conftest.er1 | |
3601 cat conftest.err >&5 | |
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3603 (exit $ac_status); } && { | |
3604 test -z "$ac_c_werror_flag" || | |
3605 test ! -s conftest.err | |
3606 } && test -s conftest$ac_exeext && | |
3607 $as_test_x conftest$ac_exeext; then | |
3608 eval "$as_ac_var=yes" | |
3609 else | |
3610 echo "$as_me: failed program was:" >&5 | |
3611 sed 's/^/| /' conftest.$ac_ext >&5 | |
3612 | |
3613 eval "$as_ac_var=no" | |
3614 fi | |
3615 | |
3616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3617 conftest$ac_exeext conftest.$ac_ext | |
3618 fi | |
3619 ac_res=`eval echo '${'$as_ac_var'}'` | |
3620 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3621 echo "${ECHO_T}$ac_res" >&6; } | |
3622 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3623 cat >>confdefs.h <<_ACEOF | |
3624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3625 _ACEOF | |
3626 | |
3627 fi | |
3628 done | |
3629 | |
3630 { echo "$as_me:$LINENO: checking for int64_t" >&5 | |
3631 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } | |
3632 if test "${ac_cv_type_int64_t+set}" = set; then | |
3633 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3634 else | |
3635 cat >conftest.$ac_ext <<_ACEOF | |
3636 /* confdefs.h. */ | |
3637 _ACEOF | |
3638 cat confdefs.h >>conftest.$ac_ext | |
3639 cat >>conftest.$ac_ext <<_ACEOF | |
3640 /* end confdefs.h. */ | |
3641 $ac_includes_default | |
3642 typedef int64_t ac__type_new_; | |
3643 int | |
3644 main () | |
3645 { | |
3646 if ((ac__type_new_ *) 0) | |
3647 return 0; | |
3648 if (sizeof (ac__type_new_)) | |
3649 return 0; | |
3650 ; | |
3651 return 0; | |
3652 } | |
3653 _ACEOF | |
3654 rm -f conftest.$ac_objext | |
3655 if { (ac_try="$ac_compile" | |
3656 case "(($ac_try" in | |
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3658 *) ac_try_echo=$ac_try;; | |
3659 esac | |
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3661 (eval "$ac_compile") 2>conftest.er1 | |
3662 ac_status=$? | |
3663 grep -v '^ *+' conftest.er1 >conftest.err | |
3664 rm -f conftest.er1 | |
3665 cat conftest.err >&5 | |
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3667 (exit $ac_status); } && { | |
3668 test -z "$ac_c_werror_flag" || | |
3669 test ! -s conftest.err | |
3670 } && test -s conftest.$ac_objext; then | |
3671 ac_cv_type_int64_t=yes | |
3672 else | |
3673 echo "$as_me: failed program was:" >&5 | |
3674 sed 's/^/| /' conftest.$ac_ext >&5 | |
3675 | |
3676 ac_cv_type_int64_t=no | |
3677 fi | |
3678 | |
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3680 fi | |
3681 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | |
3682 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } | |
3683 | |
3684 { echo "$as_me:$LINENO: checking for long" >&5 | |
3685 echo $ECHO_N "checking for long... $ECHO_C" >&6; } | |
3686 if test "${ac_cv_type_long+set}" = set; then | |
3687 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3688 else | |
3689 cat >conftest.$ac_ext <<_ACEOF | |
3690 /* confdefs.h. */ | |
3691 _ACEOF | |
3692 cat confdefs.h >>conftest.$ac_ext | |
3693 cat >>conftest.$ac_ext <<_ACEOF | |
3694 /* end confdefs.h. */ | |
3695 $ac_includes_default | |
3696 typedef long ac__type_new_; | |
3697 int | |
3698 main () | |
3699 { | |
3700 if ((ac__type_new_ *) 0) | |
3701 return 0; | |
3702 if (sizeof (ac__type_new_)) | |
3703 return 0; | |
3704 ; | |
3705 return 0; | |
3706 } | |
3707 _ACEOF | |
3708 rm -f conftest.$ac_objext | |
3709 if { (ac_try="$ac_compile" | |
3710 case "(($ac_try" in | |
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3712 *) ac_try_echo=$ac_try;; | |
3713 esac | |
3714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3715 (eval "$ac_compile") 2>conftest.er1 | |
3716 ac_status=$? | |
3717 grep -v '^ *+' conftest.er1 >conftest.err | |
3718 rm -f conftest.er1 | |
3719 cat conftest.err >&5 | |
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3721 (exit $ac_status); } && { | |
3722 test -z "$ac_c_werror_flag" || | |
3723 test ! -s conftest.err | |
3724 } && test -s conftest.$ac_objext; then | |
3725 ac_cv_type_long=yes | |
3726 else | |
3727 echo "$as_me: failed program was:" >&5 | |
3728 sed 's/^/| /' conftest.$ac_ext >&5 | |
3729 | |
3730 ac_cv_type_long=no | |
3731 fi | |
3732 | |
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3734 fi | |
3735 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
3736 echo "${ECHO_T}$ac_cv_type_long" >&6; } | |
3737 | |
3738 # The cast to long int works around a bug in the HP C Compiler | |
3739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
3740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
3741 # This bug is HP SR number 8606223364. | |
3742 { echo "$as_me:$LINENO: checking size of long" >&5 | |
3743 echo $ECHO_N "checking size of long... $ECHO_C" >&6; } | |
3744 if test "${ac_cv_sizeof_long+set}" = set; then | |
3745 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3746 else | |
3747 if test "$cross_compiling" = yes; then | |
3748 # Depending upon the size, compute the lo and hi bounds. | |
3749 cat >conftest.$ac_ext <<_ACEOF | |
3750 /* confdefs.h. */ | |
3751 _ACEOF | |
3752 cat confdefs.h >>conftest.$ac_ext | |
3753 cat >>conftest.$ac_ext <<_ACEOF | |
3754 /* end confdefs.h. */ | |
3755 $ac_includes_default | |
3756 typedef long ac__type_sizeof_; | |
3757 int | |
3758 main () | |
3759 { | |
3760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
3761 test_array [0] = 0 | |
3762 | |
3763 ; | |
3764 return 0; | |
3765 } | |
3766 _ACEOF | |
3767 rm -f conftest.$ac_objext | |
3768 if { (ac_try="$ac_compile" | |
3769 case "(($ac_try" in | |
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3771 *) ac_try_echo=$ac_try;; | |
3772 esac | |
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3774 (eval "$ac_compile") 2>conftest.er1 | |
3775 ac_status=$? | |
3776 grep -v '^ *+' conftest.er1 >conftest.err | |
3777 rm -f conftest.er1 | |
3778 cat conftest.err >&5 | |
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3780 (exit $ac_status); } && { | |
3781 test -z "$ac_c_werror_flag" || | |
3782 test ! -s conftest.err | |
3783 } && test -s conftest.$ac_objext; then | |
3784 ac_lo=0 ac_mid=0 | |
3785 while :; do | |
3786 cat >conftest.$ac_ext <<_ACEOF | |
3787 /* confdefs.h. */ | |
3788 _ACEOF | |
3789 cat confdefs.h >>conftest.$ac_ext | |
3790 cat >>conftest.$ac_ext <<_ACEOF | |
3791 /* end confdefs.h. */ | |
3792 $ac_includes_default | |
3793 typedef long ac__type_sizeof_; | |
3794 int | |
3795 main () | |
3796 { | |
3797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
3798 test_array [0] = 0 | |
3799 | |
3800 ; | |
3801 return 0; | |
3802 } | |
3803 _ACEOF | |
3804 rm -f conftest.$ac_objext | |
3805 if { (ac_try="$ac_compile" | |
3806 case "(($ac_try" in | |
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3808 *) ac_try_echo=$ac_try;; | |
3809 esac | |
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3811 (eval "$ac_compile") 2>conftest.er1 | |
3812 ac_status=$? | |
3813 grep -v '^ *+' conftest.er1 >conftest.err | |
3814 rm -f conftest.er1 | |
3815 cat conftest.err >&5 | |
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3817 (exit $ac_status); } && { | |
3818 test -z "$ac_c_werror_flag" || | |
3819 test ! -s conftest.err | |
3820 } && test -s conftest.$ac_objext; then | |
3821 ac_hi=$ac_mid; break | |
3822 else | |
3823 echo "$as_me: failed program was:" >&5 | |
3824 sed 's/^/| /' conftest.$ac_ext >&5 | |
3825 | |
3826 ac_lo=`expr $ac_mid + 1` | |
3827 if test $ac_lo -le $ac_mid; then | |
3828 ac_lo= ac_hi= | |
3829 break | |
3830 fi | |
3831 ac_mid=`expr 2 '*' $ac_mid + 1` | |
3832 fi | |
3833 | |
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3835 done | |
3836 else | |
3837 echo "$as_me: failed program was:" >&5 | |
3838 sed 's/^/| /' conftest.$ac_ext >&5 | |
3839 | |
3840 cat >conftest.$ac_ext <<_ACEOF | |
3841 /* confdefs.h. */ | |
3842 _ACEOF | |
3843 cat confdefs.h >>conftest.$ac_ext | |
3844 cat >>conftest.$ac_ext <<_ACEOF | |
3845 /* end confdefs.h. */ | |
3846 $ac_includes_default | |
3847 typedef long ac__type_sizeof_; | |
3848 int | |
3849 main () | |
3850 { | |
3851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
3852 test_array [0] = 0 | |
3853 | |
3854 ; | |
3855 return 0; | |
3856 } | |
3857 _ACEOF | |
3858 rm -f conftest.$ac_objext | |
3859 if { (ac_try="$ac_compile" | |
3860 case "(($ac_try" in | |
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3862 *) ac_try_echo=$ac_try;; | |
3863 esac | |
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3865 (eval "$ac_compile") 2>conftest.er1 | |
3866 ac_status=$? | |
3867 grep -v '^ *+' conftest.er1 >conftest.err | |
3868 rm -f conftest.er1 | |
3869 cat conftest.err >&5 | |
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3871 (exit $ac_status); } && { | |
3872 test -z "$ac_c_werror_flag" || | |
3873 test ! -s conftest.err | |
3874 } && test -s conftest.$ac_objext; then | |
3875 ac_hi=-1 ac_mid=-1 | |
3876 while :; do | |
3877 cat >conftest.$ac_ext <<_ACEOF | |
3878 /* confdefs.h. */ | |
3879 _ACEOF | |
3880 cat confdefs.h >>conftest.$ac_ext | |
3881 cat >>conftest.$ac_ext <<_ACEOF | |
3882 /* end confdefs.h. */ | |
3883 $ac_includes_default | |
3884 typedef long ac__type_sizeof_; | |
3885 int | |
3886 main () | |
3887 { | |
3888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
3889 test_array [0] = 0 | |
3890 | |
3891 ; | |
3892 return 0; | |
3893 } | |
3894 _ACEOF | |
3895 rm -f conftest.$ac_objext | |
3896 if { (ac_try="$ac_compile" | |
3897 case "(($ac_try" in | |
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3899 *) ac_try_echo=$ac_try;; | |
3900 esac | |
3901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3902 (eval "$ac_compile") 2>conftest.er1 | |
3903 ac_status=$? | |
3904 grep -v '^ *+' conftest.er1 >conftest.err | |
3905 rm -f conftest.er1 | |
3906 cat conftest.err >&5 | |
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3908 (exit $ac_status); } && { | |
3909 test -z "$ac_c_werror_flag" || | |
3910 test ! -s conftest.err | |
3911 } && test -s conftest.$ac_objext; then | |
3912 ac_lo=$ac_mid; break | |
3913 else | |
3914 echo "$as_me: failed program was:" >&5 | |
3915 sed 's/^/| /' conftest.$ac_ext >&5 | |
3916 | |
3917 ac_hi=`expr '(' $ac_mid ')' - 1` | |
3918 if test $ac_mid -le $ac_hi; then | |
3919 ac_lo= ac_hi= | |
3920 break | |
3921 fi | |
3922 ac_mid=`expr 2 '*' $ac_mid` | |
3923 fi | |
3924 | |
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3926 done | |
3927 else | |
3928 echo "$as_me: failed program was:" >&5 | |
3929 sed 's/^/| /' conftest.$ac_ext >&5 | |
3930 | |
3931 ac_lo= ac_hi= | |
3932 fi | |
3933 | |
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3935 fi | |
3936 | |
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3938 # Binary search between lo and hi bounds. | |
3939 while test "x$ac_lo" != "x$ac_hi"; do | |
3940 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3941 cat >conftest.$ac_ext <<_ACEOF | |
3942 /* confdefs.h. */ | |
3943 _ACEOF | |
3944 cat confdefs.h >>conftest.$ac_ext | |
3945 cat >>conftest.$ac_ext <<_ACEOF | |
3946 /* end confdefs.h. */ | |
3947 $ac_includes_default | |
3948 typedef long ac__type_sizeof_; | |
3949 int | |
3950 main () | |
3951 { | |
3952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
3953 test_array [0] = 0 | |
3954 | |
3955 ; | |
3956 return 0; | |
3957 } | |
3958 _ACEOF | |
3959 rm -f conftest.$ac_objext | |
3960 if { (ac_try="$ac_compile" | |
3961 case "(($ac_try" in | |
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3963 *) ac_try_echo=$ac_try;; | |
3964 esac | |
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3966 (eval "$ac_compile") 2>conftest.er1 | |
3967 ac_status=$? | |
3968 grep -v '^ *+' conftest.er1 >conftest.err | |
3969 rm -f conftest.er1 | |
3970 cat conftest.err >&5 | |
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3972 (exit $ac_status); } && { | |
3973 test -z "$ac_c_werror_flag" || | |
3974 test ! -s conftest.err | |
3975 } && test -s conftest.$ac_objext; then | |
3976 ac_hi=$ac_mid | |
3977 else | |
3978 echo "$as_me: failed program was:" >&5 | |
3979 sed 's/^/| /' conftest.$ac_ext >&5 | |
3980 | |
3981 ac_lo=`expr '(' $ac_mid ')' + 1` | |
3982 fi | |
3983 | |
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3985 done | |
3986 case $ac_lo in | |
3987 ?*) ac_cv_sizeof_long=$ac_lo;; | |
3988 '') if test "$ac_cv_type_long" = yes; then | |
3989 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
3990 See \`config.log' for more details." >&5 | |
3991 echo "$as_me: error: cannot compute sizeof (long) | |
3992 See \`config.log' for more details." >&2;} | |
3993 { (exit 77); exit 77; }; } | |
3994 else | |
3995 ac_cv_sizeof_long=0 | |
3996 fi ;; | |
3997 esac | |
3998 else | |
3999 cat >conftest.$ac_ext <<_ACEOF | |
4000 /* confdefs.h. */ | |
4001 _ACEOF | |
4002 cat confdefs.h >>conftest.$ac_ext | |
4003 cat >>conftest.$ac_ext <<_ACEOF | |
4004 /* end confdefs.h. */ | |
4005 $ac_includes_default | |
4006 typedef long ac__type_sizeof_; | |
4007 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
4008 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
4009 #include <stdio.h> | |
4010 #include <stdlib.h> | |
4011 int | |
4012 main () | |
4013 { | |
4014 | |
4015 FILE *f = fopen ("conftest.val", "w"); | |
4016 if (! f) | |
4017 return 1; | |
4018 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
4019 { | |
4020 long int i = longval (); | |
4021 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
4022 return 1; | |
4023 fprintf (f, "%ld\n", i); | |
4024 } | |
4025 else | |
4026 { | |
4027 unsigned long int i = ulongval (); | |
4028 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
4029 return 1; | |
4030 fprintf (f, "%lu\n", i); | |
4031 } | |
4032 return ferror (f) || fclose (f) != 0; | |
4033 | |
4034 ; | |
4035 return 0; | |
4036 } | |
4037 _ACEOF | |
4038 rm -f conftest$ac_exeext | |
4039 if { (ac_try="$ac_link" | |
4040 case "(($ac_try" in | |
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4042 *) ac_try_echo=$ac_try;; | |
4043 esac | |
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4045 (eval "$ac_link") 2>&5 | |
4046 ac_status=$? | |
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4049 { (case "(($ac_try" in | |
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4051 *) ac_try_echo=$ac_try;; | |
4052 esac | |
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4054 (eval "$ac_try") 2>&5 | |
4055 ac_status=$? | |
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4057 (exit $ac_status); }; }; then | |
4058 ac_cv_sizeof_long=`cat conftest.val` | |
4059 else | |
4060 echo "$as_me: program exited with status $ac_status" >&5 | |
4061 echo "$as_me: failed program was:" >&5 | |
4062 sed 's/^/| /' conftest.$ac_ext >&5 | |
4063 | |
4064 ( exit $ac_status ) | |
4065 if test "$ac_cv_type_long" = yes; then | |
4066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) | |
4067 See \`config.log' for more details." >&5 | |
4068 echo "$as_me: error: cannot compute sizeof (long) | |
4069 See \`config.log' for more details." >&2;} | |
4070 { (exit 77); exit 77; }; } | |
4071 else | |
4072 ac_cv_sizeof_long=0 | |
4073 fi | |
4074 fi | |
4075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4076 fi | |
4077 rm -f conftest.val | |
4078 fi | |
4079 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
4080 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } | |
4081 | |
4082 | |
4083 | |
4084 cat >>confdefs.h <<_ACEOF | |
4085 #define SIZEOF_LONG $ac_cv_sizeof_long | |
4086 _ACEOF | |
4087 | |
4088 | |
4089 { echo "$as_me:$LINENO: checking for long long" >&5 | |
4090 echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
4091 if test "${ac_cv_type_long_long+set}" = set; then | |
4092 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4093 else | |
4094 cat >conftest.$ac_ext <<_ACEOF | |
4095 /* confdefs.h. */ | |
4096 _ACEOF | |
4097 cat confdefs.h >>conftest.$ac_ext | |
4098 cat >>conftest.$ac_ext <<_ACEOF | |
4099 /* end confdefs.h. */ | |
4100 $ac_includes_default | |
4101 typedef long long ac__type_new_; | |
4102 int | |
4103 main () | |
4104 { | |
4105 if ((ac__type_new_ *) 0) | |
4106 return 0; | |
4107 if (sizeof (ac__type_new_)) | |
4108 return 0; | |
4109 ; | |
4110 return 0; | |
4111 } | |
4112 _ACEOF | |
4113 rm -f conftest.$ac_objext | |
4114 if { (ac_try="$ac_compile" | |
4115 case "(($ac_try" in | |
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4117 *) ac_try_echo=$ac_try;; | |
4118 esac | |
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4120 (eval "$ac_compile") 2>conftest.er1 | |
4121 ac_status=$? | |
4122 grep -v '^ *+' conftest.er1 >conftest.err | |
4123 rm -f conftest.er1 | |
4124 cat conftest.err >&5 | |
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4126 (exit $ac_status); } && { | |
4127 test -z "$ac_c_werror_flag" || | |
4128 test ! -s conftest.err | |
4129 } && test -s conftest.$ac_objext; then | |
4130 ac_cv_type_long_long=yes | |
4131 else | |
4132 echo "$as_me: failed program was:" >&5 | |
4133 sed 's/^/| /' conftest.$ac_ext >&5 | |
4134 | |
4135 ac_cv_type_long_long=no | |
4136 fi | |
4137 | |
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4139 fi | |
4140 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
4141 echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
4142 | |
4143 # The cast to long int works around a bug in the HP C Compiler | |
4144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4146 # This bug is HP SR number 8606223364. | |
4147 { echo "$as_me:$LINENO: checking size of long long" >&5 | |
4148 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } | |
4149 if test "${ac_cv_sizeof_long_long+set}" = set; then | |
4150 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4151 else | |
4152 if test "$cross_compiling" = yes; then | |
4153 # Depending upon the size, compute the lo and hi bounds. | |
4154 cat >conftest.$ac_ext <<_ACEOF | |
4155 /* confdefs.h. */ | |
4156 _ACEOF | |
4157 cat confdefs.h >>conftest.$ac_ext | |
4158 cat >>conftest.$ac_ext <<_ACEOF | |
4159 /* end confdefs.h. */ | |
4160 $ac_includes_default | |
4161 typedef long long ac__type_sizeof_; | |
4162 int | |
4163 main () | |
4164 { | |
4165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
4166 test_array [0] = 0 | |
4167 | |
4168 ; | |
4169 return 0; | |
4170 } | |
4171 _ACEOF | |
4172 rm -f conftest.$ac_objext | |
4173 if { (ac_try="$ac_compile" | |
4174 case "(($ac_try" in | |
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4176 *) ac_try_echo=$ac_try;; | |
4177 esac | |
4178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4179 (eval "$ac_compile") 2>conftest.er1 | |
4180 ac_status=$? | |
4181 grep -v '^ *+' conftest.er1 >conftest.err | |
4182 rm -f conftest.er1 | |
4183 cat conftest.err >&5 | |
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4185 (exit $ac_status); } && { | |
4186 test -z "$ac_c_werror_flag" || | |
4187 test ! -s conftest.err | |
4188 } && test -s conftest.$ac_objext; then | |
4189 ac_lo=0 ac_mid=0 | |
4190 while :; do | |
4191 cat >conftest.$ac_ext <<_ACEOF | |
4192 /* confdefs.h. */ | |
4193 _ACEOF | |
4194 cat confdefs.h >>conftest.$ac_ext | |
4195 cat >>conftest.$ac_ext <<_ACEOF | |
4196 /* end confdefs.h. */ | |
4197 $ac_includes_default | |
4198 typedef long long ac__type_sizeof_; | |
4199 int | |
4200 main () | |
4201 { | |
4202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
4203 test_array [0] = 0 | |
4204 | |
4205 ; | |
4206 return 0; | |
4207 } | |
4208 _ACEOF | |
4209 rm -f conftest.$ac_objext | |
4210 if { (ac_try="$ac_compile" | |
4211 case "(($ac_try" in | |
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4213 *) ac_try_echo=$ac_try;; | |
4214 esac | |
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4216 (eval "$ac_compile") 2>conftest.er1 | |
4217 ac_status=$? | |
4218 grep -v '^ *+' conftest.er1 >conftest.err | |
4219 rm -f conftest.er1 | |
4220 cat conftest.err >&5 | |
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4222 (exit $ac_status); } && { | |
4223 test -z "$ac_c_werror_flag" || | |
4224 test ! -s conftest.err | |
4225 } && test -s conftest.$ac_objext; then | |
4226 ac_hi=$ac_mid; break | |
4227 else | |
4228 echo "$as_me: failed program was:" >&5 | |
4229 sed 's/^/| /' conftest.$ac_ext >&5 | |
4230 | |
4231 ac_lo=`expr $ac_mid + 1` | |
4232 if test $ac_lo -le $ac_mid; then | |
4233 ac_lo= ac_hi= | |
4234 break | |
4235 fi | |
4236 ac_mid=`expr 2 '*' $ac_mid + 1` | |
4237 fi | |
4238 | |
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4240 done | |
4241 else | |
4242 echo "$as_me: failed program was:" >&5 | |
4243 sed 's/^/| /' conftest.$ac_ext >&5 | |
4244 | |
4245 cat >conftest.$ac_ext <<_ACEOF | |
4246 /* confdefs.h. */ | |
4247 _ACEOF | |
4248 cat confdefs.h >>conftest.$ac_ext | |
4249 cat >>conftest.$ac_ext <<_ACEOF | |
4250 /* end confdefs.h. */ | |
4251 $ac_includes_default | |
4252 typedef long long ac__type_sizeof_; | |
4253 int | |
4254 main () | |
4255 { | |
4256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
4257 test_array [0] = 0 | |
4258 | |
4259 ; | |
4260 return 0; | |
4261 } | |
4262 _ACEOF | |
4263 rm -f conftest.$ac_objext | |
4264 if { (ac_try="$ac_compile" | |
4265 case "(($ac_try" in | |
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4267 *) ac_try_echo=$ac_try;; | |
4268 esac | |
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4270 (eval "$ac_compile") 2>conftest.er1 | |
4271 ac_status=$? | |
4272 grep -v '^ *+' conftest.er1 >conftest.err | |
4273 rm -f conftest.er1 | |
4274 cat conftest.err >&5 | |
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4276 (exit $ac_status); } && { | |
4277 test -z "$ac_c_werror_flag" || | |
4278 test ! -s conftest.err | |
4279 } && test -s conftest.$ac_objext; then | |
4280 ac_hi=-1 ac_mid=-1 | |
4281 while :; do | |
4282 cat >conftest.$ac_ext <<_ACEOF | |
4283 /* confdefs.h. */ | |
4284 _ACEOF | |
4285 cat confdefs.h >>conftest.$ac_ext | |
4286 cat >>conftest.$ac_ext <<_ACEOF | |
4287 /* end confdefs.h. */ | |
4288 $ac_includes_default | |
4289 typedef long long ac__type_sizeof_; | |
4290 int | |
4291 main () | |
4292 { | |
4293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
4294 test_array [0] = 0 | |
4295 | |
4296 ; | |
4297 return 0; | |
4298 } | |
4299 _ACEOF | |
4300 rm -f conftest.$ac_objext | |
4301 if { (ac_try="$ac_compile" | |
4302 case "(($ac_try" in | |
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4304 *) ac_try_echo=$ac_try;; | |
4305 esac | |
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4307 (eval "$ac_compile") 2>conftest.er1 | |
4308 ac_status=$? | |
4309 grep -v '^ *+' conftest.er1 >conftest.err | |
4310 rm -f conftest.er1 | |
4311 cat conftest.err >&5 | |
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4313 (exit $ac_status); } && { | |
4314 test -z "$ac_c_werror_flag" || | |
4315 test ! -s conftest.err | |
4316 } && test -s conftest.$ac_objext; then | |
4317 ac_lo=$ac_mid; break | |
4318 else | |
4319 echo "$as_me: failed program was:" >&5 | |
4320 sed 's/^/| /' conftest.$ac_ext >&5 | |
4321 | |
4322 ac_hi=`expr '(' $ac_mid ')' - 1` | |
4323 if test $ac_mid -le $ac_hi; then | |
4324 ac_lo= ac_hi= | |
4325 break | |
4326 fi | |
4327 ac_mid=`expr 2 '*' $ac_mid` | |
4328 fi | |
4329 | |
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4331 done | |
4332 else | |
4333 echo "$as_me: failed program was:" >&5 | |
4334 sed 's/^/| /' conftest.$ac_ext >&5 | |
4335 | |
4336 ac_lo= ac_hi= | |
4337 fi | |
4338 | |
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4340 fi | |
4341 | |
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4343 # Binary search between lo and hi bounds. | |
4344 while test "x$ac_lo" != "x$ac_hi"; do | |
4345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
4346 cat >conftest.$ac_ext <<_ACEOF | |
4347 /* confdefs.h. */ | |
4348 _ACEOF | |
4349 cat confdefs.h >>conftest.$ac_ext | |
4350 cat >>conftest.$ac_ext <<_ACEOF | |
4351 /* end confdefs.h. */ | |
4352 $ac_includes_default | |
4353 typedef long long ac__type_sizeof_; | |
4354 int | |
4355 main () | |
4356 { | |
4357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
4358 test_array [0] = 0 | |
4359 | |
4360 ; | |
4361 return 0; | |
4362 } | |
4363 _ACEOF | |
4364 rm -f conftest.$ac_objext | |
4365 if { (ac_try="$ac_compile" | |
4366 case "(($ac_try" in | |
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4368 *) ac_try_echo=$ac_try;; | |
4369 esac | |
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4371 (eval "$ac_compile") 2>conftest.er1 | |
4372 ac_status=$? | |
4373 grep -v '^ *+' conftest.er1 >conftest.err | |
4374 rm -f conftest.er1 | |
4375 cat conftest.err >&5 | |
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4377 (exit $ac_status); } && { | |
4378 test -z "$ac_c_werror_flag" || | |
4379 test ! -s conftest.err | |
4380 } && test -s conftest.$ac_objext; then | |
4381 ac_hi=$ac_mid | |
4382 else | |
4383 echo "$as_me: failed program was:" >&5 | |
4384 sed 's/^/| /' conftest.$ac_ext >&5 | |
4385 | |
4386 ac_lo=`expr '(' $ac_mid ')' + 1` | |
4387 fi | |
4388 | |
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4390 done | |
4391 case $ac_lo in | |
4392 ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
4393 '') if test "$ac_cv_type_long_long" = yes; then | |
4394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
4395 See \`config.log' for more details." >&5 | |
4396 echo "$as_me: error: cannot compute sizeof (long long) | |
4397 See \`config.log' for more details." >&2;} | |
4398 { (exit 77); exit 77; }; } | |
4399 else | |
4400 ac_cv_sizeof_long_long=0 | |
4401 fi ;; | |
4402 esac | |
4403 else | |
4404 cat >conftest.$ac_ext <<_ACEOF | |
4405 /* confdefs.h. */ | |
4406 _ACEOF | |
4407 cat confdefs.h >>conftest.$ac_ext | |
4408 cat >>conftest.$ac_ext <<_ACEOF | |
4409 /* end confdefs.h. */ | |
4410 $ac_includes_default | |
4411 typedef long long ac__type_sizeof_; | |
4412 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
4413 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
4414 #include <stdio.h> | |
4415 #include <stdlib.h> | |
4416 int | |
4417 main () | |
4418 { | |
4419 | |
4420 FILE *f = fopen ("conftest.val", "w"); | |
4421 if (! f) | |
4422 return 1; | |
4423 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
4424 { | |
4425 long int i = longval (); | |
4426 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
4427 return 1; | |
4428 fprintf (f, "%ld\n", i); | |
4429 } | |
4430 else | |
4431 { | |
4432 unsigned long int i = ulongval (); | |
4433 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
4434 return 1; | |
4435 fprintf (f, "%lu\n", i); | |
4436 } | |
4437 return ferror (f) || fclose (f) != 0; | |
4438 | |
4439 ; | |
4440 return 0; | |
4441 } | |
4442 _ACEOF | |
4443 rm -f conftest$ac_exeext | |
4444 if { (ac_try="$ac_link" | |
4445 case "(($ac_try" in | |
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4447 *) ac_try_echo=$ac_try;; | |
4448 esac | |
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4450 (eval "$ac_link") 2>&5 | |
4451 ac_status=$? | |
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4454 { (case "(($ac_try" in | |
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4456 *) ac_try_echo=$ac_try;; | |
4457 esac | |
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4459 (eval "$ac_try") 2>&5 | |
4460 ac_status=$? | |
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4462 (exit $ac_status); }; }; then | |
4463 ac_cv_sizeof_long_long=`cat conftest.val` | |
4464 else | |
4465 echo "$as_me: program exited with status $ac_status" >&5 | |
4466 echo "$as_me: failed program was:" >&5 | |
4467 sed 's/^/| /' conftest.$ac_ext >&5 | |
4468 | |
4469 ( exit $ac_status ) | |
4470 if test "$ac_cv_type_long_long" = yes; then | |
4471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) | |
4472 See \`config.log' for more details." >&5 | |
4473 echo "$as_me: error: cannot compute sizeof (long long) | |
4474 See \`config.log' for more details." >&2;} | |
4475 { (exit 77); exit 77; }; } | |
4476 else | |
4477 ac_cv_sizeof_long_long=0 | |
4478 fi | |
4479 fi | |
4480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4481 fi | |
4482 rm -f conftest.val | |
4483 fi | |
4484 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
4485 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } | |
4486 | |
4487 | |
4488 | |
4489 cat >>confdefs.h <<_ACEOF | |
4490 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
4491 _ACEOF | |
4492 | |
4493 | |
4494 { echo "$as_me:$LINENO: checking for uint" >&5 | |
4495 echo $ECHO_N "checking for uint... $ECHO_C" >&6; } | |
4496 if test "${ac_cv_type_uint+set}" = set; then | |
4497 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4498 else | |
4499 cat >conftest.$ac_ext <<_ACEOF | |
4500 /* confdefs.h. */ | |
4501 _ACEOF | |
4502 cat confdefs.h >>conftest.$ac_ext | |
4503 cat >>conftest.$ac_ext <<_ACEOF | |
4504 /* end confdefs.h. */ | |
4505 $ac_includes_default | |
4506 typedef uint ac__type_new_; | |
4507 int | |
4508 main () | |
4509 { | |
4510 if ((ac__type_new_ *) 0) | |
4511 return 0; | |
4512 if (sizeof (ac__type_new_)) | |
4513 return 0; | |
4514 ; | |
4515 return 0; | |
4516 } | |
4517 _ACEOF | |
4518 rm -f conftest.$ac_objext | |
4519 if { (ac_try="$ac_compile" | |
4520 case "(($ac_try" in | |
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4522 *) ac_try_echo=$ac_try;; | |
4523 esac | |
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4525 (eval "$ac_compile") 2>conftest.er1 | |
4526 ac_status=$? | |
4527 grep -v '^ *+' conftest.er1 >conftest.err | |
4528 rm -f conftest.er1 | |
4529 cat conftest.err >&5 | |
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4531 (exit $ac_status); } && { | |
4532 test -z "$ac_c_werror_flag" || | |
4533 test ! -s conftest.err | |
4534 } && test -s conftest.$ac_objext; then | |
4535 ac_cv_type_uint=yes | |
4536 else | |
4537 echo "$as_me: failed program was:" >&5 | |
4538 sed 's/^/| /' conftest.$ac_ext >&5 | |
4539 | |
4540 ac_cv_type_uint=no | |
4541 fi | |
4542 | |
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4544 fi | |
4545 { echo "$as_me:$LINENO: result: $ac_cv_type_uint" >&5 | |
4546 echo "${ECHO_T}$ac_cv_type_uint" >&6; } | |
4547 | |
4548 # The cast to long int works around a bug in the HP C Compiler | |
4549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4551 # This bug is HP SR number 8606223364. | |
4552 { echo "$as_me:$LINENO: checking size of uint" >&5 | |
4553 echo $ECHO_N "checking size of uint... $ECHO_C" >&6; } | |
4554 if test "${ac_cv_sizeof_uint+set}" = set; then | |
4555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4556 else | |
4557 if test "$cross_compiling" = yes; then | |
4558 # Depending upon the size, compute the lo and hi bounds. | |
4559 cat >conftest.$ac_ext <<_ACEOF | |
4560 /* confdefs.h. */ | |
4561 _ACEOF | |
4562 cat confdefs.h >>conftest.$ac_ext | |
4563 cat >>conftest.$ac_ext <<_ACEOF | |
4564 /* end confdefs.h. */ | |
4565 $ac_includes_default | |
4566 typedef uint ac__type_sizeof_; | |
4567 int | |
4568 main () | |
4569 { | |
4570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
4571 test_array [0] = 0 | |
4572 | |
4573 ; | |
4574 return 0; | |
4575 } | |
4576 _ACEOF | |
4577 rm -f conftest.$ac_objext | |
4578 if { (ac_try="$ac_compile" | |
4579 case "(($ac_try" in | |
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4581 *) ac_try_echo=$ac_try;; | |
4582 esac | |
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4584 (eval "$ac_compile") 2>conftest.er1 | |
4585 ac_status=$? | |
4586 grep -v '^ *+' conftest.er1 >conftest.err | |
4587 rm -f conftest.er1 | |
4588 cat conftest.err >&5 | |
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4590 (exit $ac_status); } && { | |
4591 test -z "$ac_c_werror_flag" || | |
4592 test ! -s conftest.err | |
4593 } && test -s conftest.$ac_objext; then | |
4594 ac_lo=0 ac_mid=0 | |
4595 while :; do | |
4596 cat >conftest.$ac_ext <<_ACEOF | |
4597 /* confdefs.h. */ | |
4598 _ACEOF | |
4599 cat confdefs.h >>conftest.$ac_ext | |
4600 cat >>conftest.$ac_ext <<_ACEOF | |
4601 /* end confdefs.h. */ | |
4602 $ac_includes_default | |
4603 typedef uint ac__type_sizeof_; | |
4604 int | |
4605 main () | |
4606 { | |
4607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
4608 test_array [0] = 0 | |
4609 | |
4610 ; | |
4611 return 0; | |
4612 } | |
4613 _ACEOF | |
4614 rm -f conftest.$ac_objext | |
4615 if { (ac_try="$ac_compile" | |
4616 case "(($ac_try" in | |
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4618 *) ac_try_echo=$ac_try;; | |
4619 esac | |
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4621 (eval "$ac_compile") 2>conftest.er1 | |
4622 ac_status=$? | |
4623 grep -v '^ *+' conftest.er1 >conftest.err | |
4624 rm -f conftest.er1 | |
4625 cat conftest.err >&5 | |
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4627 (exit $ac_status); } && { | |
4628 test -z "$ac_c_werror_flag" || | |
4629 test ! -s conftest.err | |
4630 } && test -s conftest.$ac_objext; then | |
4631 ac_hi=$ac_mid; break | |
4632 else | |
4633 echo "$as_me: failed program was:" >&5 | |
4634 sed 's/^/| /' conftest.$ac_ext >&5 | |
4635 | |
4636 ac_lo=`expr $ac_mid + 1` | |
4637 if test $ac_lo -le $ac_mid; then | |
4638 ac_lo= ac_hi= | |
4639 break | |
4640 fi | |
4641 ac_mid=`expr 2 '*' $ac_mid + 1` | |
4642 fi | |
4643 | |
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4645 done | |
4646 else | |
4647 echo "$as_me: failed program was:" >&5 | |
4648 sed 's/^/| /' conftest.$ac_ext >&5 | |
4649 | |
4650 cat >conftest.$ac_ext <<_ACEOF | |
4651 /* confdefs.h. */ | |
4652 _ACEOF | |
4653 cat confdefs.h >>conftest.$ac_ext | |
4654 cat >>conftest.$ac_ext <<_ACEOF | |
4655 /* end confdefs.h. */ | |
4656 $ac_includes_default | |
4657 typedef uint ac__type_sizeof_; | |
4658 int | |
4659 main () | |
4660 { | |
4661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
4662 test_array [0] = 0 | |
4663 | |
4664 ; | |
4665 return 0; | |
4666 } | |
4667 _ACEOF | |
4668 rm -f conftest.$ac_objext | |
4669 if { (ac_try="$ac_compile" | |
4670 case "(($ac_try" in | |
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4672 *) ac_try_echo=$ac_try;; | |
4673 esac | |
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4675 (eval "$ac_compile") 2>conftest.er1 | |
4676 ac_status=$? | |
4677 grep -v '^ *+' conftest.er1 >conftest.err | |
4678 rm -f conftest.er1 | |
4679 cat conftest.err >&5 | |
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4681 (exit $ac_status); } && { | |
4682 test -z "$ac_c_werror_flag" || | |
4683 test ! -s conftest.err | |
4684 } && test -s conftest.$ac_objext; then | |
4685 ac_hi=-1 ac_mid=-1 | |
4686 while :; do | |
4687 cat >conftest.$ac_ext <<_ACEOF | |
4688 /* confdefs.h. */ | |
4689 _ACEOF | |
4690 cat confdefs.h >>conftest.$ac_ext | |
4691 cat >>conftest.$ac_ext <<_ACEOF | |
4692 /* end confdefs.h. */ | |
4693 $ac_includes_default | |
4694 typedef uint ac__type_sizeof_; | |
4695 int | |
4696 main () | |
4697 { | |
4698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
4699 test_array [0] = 0 | |
4700 | |
4701 ; | |
4702 return 0; | |
4703 } | |
4704 _ACEOF | |
4705 rm -f conftest.$ac_objext | |
4706 if { (ac_try="$ac_compile" | |
4707 case "(($ac_try" in | |
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4709 *) ac_try_echo=$ac_try;; | |
4710 esac | |
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4712 (eval "$ac_compile") 2>conftest.er1 | |
4713 ac_status=$? | |
4714 grep -v '^ *+' conftest.er1 >conftest.err | |
4715 rm -f conftest.er1 | |
4716 cat conftest.err >&5 | |
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 (exit $ac_status); } && { | |
4719 test -z "$ac_c_werror_flag" || | |
4720 test ! -s conftest.err | |
4721 } && test -s conftest.$ac_objext; then | |
4722 ac_lo=$ac_mid; break | |
4723 else | |
4724 echo "$as_me: failed program was:" >&5 | |
4725 sed 's/^/| /' conftest.$ac_ext >&5 | |
4726 | |
4727 ac_hi=`expr '(' $ac_mid ')' - 1` | |
4728 if test $ac_mid -le $ac_hi; then | |
4729 ac_lo= ac_hi= | |
4730 break | |
4731 fi | |
4732 ac_mid=`expr 2 '*' $ac_mid` | |
4733 fi | |
4734 | |
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4736 done | |
4737 else | |
4738 echo "$as_me: failed program was:" >&5 | |
4739 sed 's/^/| /' conftest.$ac_ext >&5 | |
4740 | |
4741 ac_lo= ac_hi= | |
4742 fi | |
4743 | |
4744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4745 fi | |
4746 | |
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4748 # Binary search between lo and hi bounds. | |
4749 while test "x$ac_lo" != "x$ac_hi"; do | |
4750 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
4751 cat >conftest.$ac_ext <<_ACEOF | |
4752 /* confdefs.h. */ | |
4753 _ACEOF | |
4754 cat confdefs.h >>conftest.$ac_ext | |
4755 cat >>conftest.$ac_ext <<_ACEOF | |
4756 /* end confdefs.h. */ | |
4757 $ac_includes_default | |
4758 typedef uint ac__type_sizeof_; | |
4759 int | |
4760 main () | |
4761 { | |
4762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
4763 test_array [0] = 0 | |
4764 | |
4765 ; | |
4766 return 0; | |
4767 } | |
4768 _ACEOF | |
4769 rm -f conftest.$ac_objext | |
4770 if { (ac_try="$ac_compile" | |
4771 case "(($ac_try" in | |
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4773 *) ac_try_echo=$ac_try;; | |
4774 esac | |
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4776 (eval "$ac_compile") 2>conftest.er1 | |
4777 ac_status=$? | |
4778 grep -v '^ *+' conftest.er1 >conftest.err | |
4779 rm -f conftest.er1 | |
4780 cat conftest.err >&5 | |
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4782 (exit $ac_status); } && { | |
4783 test -z "$ac_c_werror_flag" || | |
4784 test ! -s conftest.err | |
4785 } && test -s conftest.$ac_objext; then | |
4786 ac_hi=$ac_mid | |
4787 else | |
4788 echo "$as_me: failed program was:" >&5 | |
4789 sed 's/^/| /' conftest.$ac_ext >&5 | |
4790 | |
4791 ac_lo=`expr '(' $ac_mid ')' + 1` | |
4792 fi | |
4793 | |
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4795 done | |
4796 case $ac_lo in | |
4797 ?*) ac_cv_sizeof_uint=$ac_lo;; | |
4798 '') if test "$ac_cv_type_uint" = yes; then | |
4799 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint) | |
4800 See \`config.log' for more details." >&5 | |
4801 echo "$as_me: error: cannot compute sizeof (uint) | |
4802 See \`config.log' for more details." >&2;} | |
4803 { (exit 77); exit 77; }; } | |
4804 else | |
4805 ac_cv_sizeof_uint=0 | |
4806 fi ;; | |
4807 esac | |
4808 else | |
4809 cat >conftest.$ac_ext <<_ACEOF | |
4810 /* confdefs.h. */ | |
4811 _ACEOF | |
4812 cat confdefs.h >>conftest.$ac_ext | |
4813 cat >>conftest.$ac_ext <<_ACEOF | |
4814 /* end confdefs.h. */ | |
4815 $ac_includes_default | |
4816 typedef uint ac__type_sizeof_; | |
4817 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
4818 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
4819 #include <stdio.h> | |
4820 #include <stdlib.h> | |
4821 int | |
4822 main () | |
4823 { | |
4824 | |
4825 FILE *f = fopen ("conftest.val", "w"); | |
4826 if (! f) | |
4827 return 1; | |
4828 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
4829 { | |
4830 long int i = longval (); | |
4831 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
4832 return 1; | |
4833 fprintf (f, "%ld\n", i); | |
4834 } | |
4835 else | |
4836 { | |
4837 unsigned long int i = ulongval (); | |
4838 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
4839 return 1; | |
4840 fprintf (f, "%lu\n", i); | |
4841 } | |
4842 return ferror (f) || fclose (f) != 0; | |
4843 | |
4844 ; | |
4845 return 0; | |
4846 } | |
4847 _ACEOF | |
4848 rm -f conftest$ac_exeext | |
4849 if { (ac_try="$ac_link" | |
4850 case "(($ac_try" in | |
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4852 *) ac_try_echo=$ac_try;; | |
4853 esac | |
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4855 (eval "$ac_link") 2>&5 | |
4856 ac_status=$? | |
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4859 { (case "(($ac_try" in | |
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4861 *) ac_try_echo=$ac_try;; | |
4862 esac | |
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4864 (eval "$ac_try") 2>&5 | |
4865 ac_status=$? | |
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 (exit $ac_status); }; }; then | |
4868 ac_cv_sizeof_uint=`cat conftest.val` | |
4869 else | |
4870 echo "$as_me: program exited with status $ac_status" >&5 | |
4871 echo "$as_me: failed program was:" >&5 | |
4872 sed 's/^/| /' conftest.$ac_ext >&5 | |
4873 | |
4874 ( exit $ac_status ) | |
4875 if test "$ac_cv_type_uint" = yes; then | |
4876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint) | |
4877 See \`config.log' for more details." >&5 | |
4878 echo "$as_me: error: cannot compute sizeof (uint) | |
4879 See \`config.log' for more details." >&2;} | |
4880 { (exit 77); exit 77; }; } | |
4881 else | |
4882 ac_cv_sizeof_uint=0 | |
4883 fi | |
4884 fi | |
4885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4886 fi | |
4887 rm -f conftest.val | |
4888 fi | |
4889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint" >&5 | |
4890 echo "${ECHO_T}$ac_cv_sizeof_uint" >&6; } | |
4891 | |
4892 | |
4893 | |
4894 cat >>confdefs.h <<_ACEOF | |
4895 #define SIZEOF_UINT $ac_cv_sizeof_uint | |
4896 _ACEOF | |
4897 | |
4898 | |
4899 { echo "$as_me:$LINENO: checking for void *" >&5 | |
4900 echo $ECHO_N "checking for void *... $ECHO_C" >&6; } | |
4901 if test "${ac_cv_type_void_p+set}" = set; then | |
4902 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4903 else | |
4904 cat >conftest.$ac_ext <<_ACEOF | |
4905 /* confdefs.h. */ | |
4906 _ACEOF | |
4907 cat confdefs.h >>conftest.$ac_ext | |
4908 cat >>conftest.$ac_ext <<_ACEOF | |
4909 /* end confdefs.h. */ | |
4910 $ac_includes_default | |
4911 typedef void * ac__type_new_; | |
4912 int | |
4913 main () | |
4914 { | |
4915 if ((ac__type_new_ *) 0) | |
4916 return 0; | |
4917 if (sizeof (ac__type_new_)) | |
4918 return 0; | |
4919 ; | |
4920 return 0; | |
4921 } | |
4922 _ACEOF | |
4923 rm -f conftest.$ac_objext | |
4924 if { (ac_try="$ac_compile" | |
4925 case "(($ac_try" in | |
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4927 *) ac_try_echo=$ac_try;; | |
4928 esac | |
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4930 (eval "$ac_compile") 2>conftest.er1 | |
4931 ac_status=$? | |
4932 grep -v '^ *+' conftest.er1 >conftest.err | |
4933 rm -f conftest.er1 | |
4934 cat conftest.err >&5 | |
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4936 (exit $ac_status); } && { | |
4937 test -z "$ac_c_werror_flag" || | |
4938 test ! -s conftest.err | |
4939 } && test -s conftest.$ac_objext; then | |
4940 ac_cv_type_void_p=yes | |
4941 else | |
4942 echo "$as_me: failed program was:" >&5 | |
4943 sed 's/^/| /' conftest.$ac_ext >&5 | |
4944 | |
4945 ac_cv_type_void_p=no | |
4946 fi | |
4947 | |
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4949 fi | |
4950 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
4951 echo "${ECHO_T}$ac_cv_type_void_p" >&6; } | |
4952 | |
4953 # The cast to long int works around a bug in the HP C Compiler | |
4954 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4955 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4956 # This bug is HP SR number 8606223364. | |
4957 { echo "$as_me:$LINENO: checking size of void *" >&5 | |
4958 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } | |
4959 if test "${ac_cv_sizeof_void_p+set}" = set; then | |
4960 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4961 else | |
4962 if test "$cross_compiling" = yes; then | |
4963 # Depending upon the size, compute the lo and hi bounds. | |
4964 cat >conftest.$ac_ext <<_ACEOF | |
4965 /* confdefs.h. */ | |
4966 _ACEOF | |
4967 cat confdefs.h >>conftest.$ac_ext | |
4968 cat >>conftest.$ac_ext <<_ACEOF | |
4969 /* end confdefs.h. */ | |
4970 $ac_includes_default | |
4971 typedef void * ac__type_sizeof_; | |
4972 int | |
4973 main () | |
4974 { | |
4975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; | |
4976 test_array [0] = 0 | |
4977 | |
4978 ; | |
4979 return 0; | |
4980 } | |
4981 _ACEOF | |
4982 rm -f conftest.$ac_objext | |
4983 if { (ac_try="$ac_compile" | |
4984 case "(($ac_try" in | |
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4986 *) ac_try_echo=$ac_try;; | |
4987 esac | |
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4989 (eval "$ac_compile") 2>conftest.er1 | |
4990 ac_status=$? | |
4991 grep -v '^ *+' conftest.er1 >conftest.err | |
4992 rm -f conftest.er1 | |
4993 cat conftest.err >&5 | |
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4995 (exit $ac_status); } && { | |
4996 test -z "$ac_c_werror_flag" || | |
4997 test ! -s conftest.err | |
4998 } && test -s conftest.$ac_objext; then | |
4999 ac_lo=0 ac_mid=0 | |
5000 while :; do | |
5001 cat >conftest.$ac_ext <<_ACEOF | |
5002 /* confdefs.h. */ | |
5003 _ACEOF | |
5004 cat confdefs.h >>conftest.$ac_ext | |
5005 cat >>conftest.$ac_ext <<_ACEOF | |
5006 /* end confdefs.h. */ | |
5007 $ac_includes_default | |
5008 typedef void * ac__type_sizeof_; | |
5009 int | |
5010 main () | |
5011 { | |
5012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5013 test_array [0] = 0 | |
5014 | |
5015 ; | |
5016 return 0; | |
5017 } | |
5018 _ACEOF | |
5019 rm -f conftest.$ac_objext | |
5020 if { (ac_try="$ac_compile" | |
5021 case "(($ac_try" in | |
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5023 *) ac_try_echo=$ac_try;; | |
5024 esac | |
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5026 (eval "$ac_compile") 2>conftest.er1 | |
5027 ac_status=$? | |
5028 grep -v '^ *+' conftest.er1 >conftest.err | |
5029 rm -f conftest.er1 | |
5030 cat conftest.err >&5 | |
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5032 (exit $ac_status); } && { | |
5033 test -z "$ac_c_werror_flag" || | |
5034 test ! -s conftest.err | |
5035 } && test -s conftest.$ac_objext; then | |
5036 ac_hi=$ac_mid; break | |
5037 else | |
5038 echo "$as_me: failed program was:" >&5 | |
5039 sed 's/^/| /' conftest.$ac_ext >&5 | |
5040 | |
5041 ac_lo=`expr $ac_mid + 1` | |
5042 if test $ac_lo -le $ac_mid; then | |
5043 ac_lo= ac_hi= | |
5044 break | |
5045 fi | |
5046 ac_mid=`expr 2 '*' $ac_mid + 1` | |
5047 fi | |
5048 | |
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5050 done | |
5051 else | |
5052 echo "$as_me: failed program was:" >&5 | |
5053 sed 's/^/| /' conftest.$ac_ext >&5 | |
5054 | |
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 typedef void * ac__type_sizeof_; | |
5063 int | |
5064 main () | |
5065 { | |
5066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; | |
5067 test_array [0] = 0 | |
5068 | |
5069 ; | |
5070 return 0; | |
5071 } | |
5072 _ACEOF | |
5073 rm -f conftest.$ac_objext | |
5074 if { (ac_try="$ac_compile" | |
5075 case "(($ac_try" in | |
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5077 *) ac_try_echo=$ac_try;; | |
5078 esac | |
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5080 (eval "$ac_compile") 2>conftest.er1 | |
5081 ac_status=$? | |
5082 grep -v '^ *+' conftest.er1 >conftest.err | |
5083 rm -f conftest.er1 | |
5084 cat conftest.err >&5 | |
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5086 (exit $ac_status); } && { | |
5087 test -z "$ac_c_werror_flag" || | |
5088 test ! -s conftest.err | |
5089 } && test -s conftest.$ac_objext; then | |
5090 ac_hi=-1 ac_mid=-1 | |
5091 while :; do | |
5092 cat >conftest.$ac_ext <<_ACEOF | |
5093 /* confdefs.h. */ | |
5094 _ACEOF | |
5095 cat confdefs.h >>conftest.$ac_ext | |
5096 cat >>conftest.$ac_ext <<_ACEOF | |
5097 /* end confdefs.h. */ | |
5098 $ac_includes_default | |
5099 typedef void * ac__type_sizeof_; | |
5100 int | |
5101 main () | |
5102 { | |
5103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; | |
5104 test_array [0] = 0 | |
5105 | |
5106 ; | |
5107 return 0; | |
5108 } | |
5109 _ACEOF | |
5110 rm -f conftest.$ac_objext | |
5111 if { (ac_try="$ac_compile" | |
5112 case "(($ac_try" in | |
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5114 *) ac_try_echo=$ac_try;; | |
5115 esac | |
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5117 (eval "$ac_compile") 2>conftest.er1 | |
5118 ac_status=$? | |
5119 grep -v '^ *+' conftest.er1 >conftest.err | |
5120 rm -f conftest.er1 | |
5121 cat conftest.err >&5 | |
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5123 (exit $ac_status); } && { | |
5124 test -z "$ac_c_werror_flag" || | |
5125 test ! -s conftest.err | |
5126 } && test -s conftest.$ac_objext; then | |
5127 ac_lo=$ac_mid; break | |
5128 else | |
5129 echo "$as_me: failed program was:" >&5 | |
5130 sed 's/^/| /' conftest.$ac_ext >&5 | |
5131 | |
5132 ac_hi=`expr '(' $ac_mid ')' - 1` | |
5133 if test $ac_mid -le $ac_hi; then | |
5134 ac_lo= ac_hi= | |
5135 break | |
5136 fi | |
5137 ac_mid=`expr 2 '*' $ac_mid` | |
5138 fi | |
5139 | |
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5141 done | |
5142 else | |
5143 echo "$as_me: failed program was:" >&5 | |
5144 sed 's/^/| /' conftest.$ac_ext >&5 | |
5145 | |
5146 ac_lo= ac_hi= | |
5147 fi | |
5148 | |
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5150 fi | |
5151 | |
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5153 # Binary search between lo and hi bounds. | |
5154 while test "x$ac_lo" != "x$ac_hi"; do | |
5155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5156 cat >conftest.$ac_ext <<_ACEOF | |
5157 /* confdefs.h. */ | |
5158 _ACEOF | |
5159 cat confdefs.h >>conftest.$ac_ext | |
5160 cat >>conftest.$ac_ext <<_ACEOF | |
5161 /* end confdefs.h. */ | |
5162 $ac_includes_default | |
5163 typedef void * ac__type_sizeof_; | |
5164 int | |
5165 main () | |
5166 { | |
5167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; | |
5168 test_array [0] = 0 | |
5169 | |
5170 ; | |
5171 return 0; | |
5172 } | |
5173 _ACEOF | |
5174 rm -f conftest.$ac_objext | |
5175 if { (ac_try="$ac_compile" | |
5176 case "(($ac_try" in | |
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5178 *) ac_try_echo=$ac_try;; | |
5179 esac | |
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5181 (eval "$ac_compile") 2>conftest.er1 | |
5182 ac_status=$? | |
5183 grep -v '^ *+' conftest.er1 >conftest.err | |
5184 rm -f conftest.er1 | |
5185 cat conftest.err >&5 | |
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5187 (exit $ac_status); } && { | |
5188 test -z "$ac_c_werror_flag" || | |
5189 test ! -s conftest.err | |
5190 } && test -s conftest.$ac_objext; then | |
5191 ac_hi=$ac_mid | |
5192 else | |
5193 echo "$as_me: failed program was:" >&5 | |
5194 sed 's/^/| /' conftest.$ac_ext >&5 | |
5195 | |
5196 ac_lo=`expr '(' $ac_mid ')' + 1` | |
5197 fi | |
5198 | |
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5200 done | |
5201 case $ac_lo in | |
5202 ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
5203 '') if test "$ac_cv_type_void_p" = yes; then | |
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) | |
5205 See \`config.log' for more details." >&5 | |
5206 echo "$as_me: error: cannot compute sizeof (void *) | |
5207 See \`config.log' for more details." >&2;} | |
5208 { (exit 77); exit 77; }; } | |
5209 else | |
5210 ac_cv_sizeof_void_p=0 | |
5211 fi ;; | |
5212 esac | |
5213 else | |
5214 cat >conftest.$ac_ext <<_ACEOF | |
5215 /* confdefs.h. */ | |
5216 _ACEOF | |
5217 cat confdefs.h >>conftest.$ac_ext | |
5218 cat >>conftest.$ac_ext <<_ACEOF | |
5219 /* end confdefs.h. */ | |
5220 $ac_includes_default | |
5221 typedef void * ac__type_sizeof_; | |
5222 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5223 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } | |
5224 #include <stdio.h> | |
5225 #include <stdlib.h> | |
5226 int | |
5227 main () | |
5228 { | |
5229 | |
5230 FILE *f = fopen ("conftest.val", "w"); | |
5231 if (! f) | |
5232 return 1; | |
5233 if (((long int) (sizeof (ac__type_sizeof_))) < 0) | |
5234 { | |
5235 long int i = longval (); | |
5236 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5237 return 1; | |
5238 fprintf (f, "%ld\n", i); | |
5239 } | |
5240 else | |
5241 { | |
5242 unsigned long int i = ulongval (); | |
5243 if (i != ((long int) (sizeof (ac__type_sizeof_)))) | |
5244 return 1; | |
5245 fprintf (f, "%lu\n", i); | |
5246 } | |
5247 return ferror (f) || fclose (f) != 0; | |
5248 | |
5249 ; | |
5250 return 0; | |
5251 } | |
5252 _ACEOF | |
5253 rm -f conftest$ac_exeext | |
5254 if { (ac_try="$ac_link" | |
5255 case "(($ac_try" in | |
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5257 *) ac_try_echo=$ac_try;; | |
5258 esac | |
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5260 (eval "$ac_link") 2>&5 | |
5261 ac_status=$? | |
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5264 { (case "(($ac_try" in | |
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5266 *) ac_try_echo=$ac_try;; | |
5267 esac | |
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5269 (eval "$ac_try") 2>&5 | |
5270 ac_status=$? | |
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5272 (exit $ac_status); }; }; then | |
5273 ac_cv_sizeof_void_p=`cat conftest.val` | |
5274 else | |
5275 echo "$as_me: program exited with status $ac_status" >&5 | |
5276 echo "$as_me: failed program was:" >&5 | |
5277 sed 's/^/| /' conftest.$ac_ext >&5 | |
5278 | |
5279 ( exit $ac_status ) | |
5280 if test "$ac_cv_type_void_p" = yes; then | |
5281 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) | |
5282 See \`config.log' for more details." >&5 | |
5283 echo "$as_me: error: cannot compute sizeof (void *) | |
5284 See \`config.log' for more details." >&2;} | |
5285 { (exit 77); exit 77; }; } | |
5286 else | |
5287 ac_cv_sizeof_void_p=0 | |
5288 fi | |
5289 fi | |
5290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5291 fi | |
5292 rm -f conftest.val | |
5293 fi | |
5294 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
5295 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } | |
5296 | |
5297 | |
5298 | |
5299 cat >>confdefs.h <<_ACEOF | |
5300 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
5301 _ACEOF | |
5302 | |
5303 | |
5304 | |
5305 # need in checking separately | |
5306 | |
5307 { echo "$as_me:$LINENO: checking for acosf in -lm" >&5 | |
5308 echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6; } | |
5309 if test "${ac_cv_lib_m_acosf+set}" = set; then | |
5310 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5311 else | |
5312 ac_check_lib_save_LIBS=$LIBS | |
5313 LIBS="-lm $LIBS" | |
5314 cat >conftest.$ac_ext <<_ACEOF | |
5315 /* confdefs.h. */ | |
5316 _ACEOF | |
5317 cat confdefs.h >>conftest.$ac_ext | |
5318 cat >>conftest.$ac_ext <<_ACEOF | |
5319 /* end confdefs.h. */ | |
5320 | |
5321 /* Override any GCC internal prototype to avoid an error. | |
5322 Use char because int might match the return type of a GCC | |
5323 builtin and then its argument prototype would still apply. */ | |
5324 #ifdef __cplusplus | |
5325 extern "C" | |
5326 #endif | |
5327 char acosf (); | |
5328 int | |
5329 main () | |
5330 { | |
5331 return acosf (); | |
5332 ; | |
5333 return 0; | |
5334 } | |
5335 _ACEOF | |
5336 rm -f conftest.$ac_objext conftest$ac_exeext | |
5337 if { (ac_try="$ac_link" | |
5338 case "(($ac_try" in | |
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5340 *) ac_try_echo=$ac_try;; | |
5341 esac | |
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5343 (eval "$ac_link") 2>conftest.er1 | |
5344 ac_status=$? | |
5345 grep -v '^ *+' conftest.er1 >conftest.err | |
5346 rm -f conftest.er1 | |
5347 cat conftest.err >&5 | |
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5349 (exit $ac_status); } && { | |
5350 test -z "$ac_c_werror_flag" || | |
5351 test ! -s conftest.err | |
5352 } && test -s conftest$ac_exeext && | |
5353 $as_test_x conftest$ac_exeext; then | |
5354 ac_cv_lib_m_acosf=yes | |
5355 else | |
5356 echo "$as_me: failed program was:" >&5 | |
5357 sed 's/^/| /' conftest.$ac_ext >&5 | |
5358 | |
5359 ac_cv_lib_m_acosf=no | |
5360 fi | |
5361 | |
5362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5363 conftest$ac_exeext conftest.$ac_ext | |
5364 LIBS=$ac_check_lib_save_LIBS | |
5365 fi | |
5366 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 | |
5367 echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6; } | |
5368 if test $ac_cv_lib_m_acosf = yes; then | |
5369 cat >>confdefs.h <<_ACEOF | |
5370 #define HAVE_LIBM 1 | |
5371 _ACEOF | |
5372 | |
5373 LIBS="-lm $LIBS" | |
5374 | |
5375 fi | |
5376 | |
5377 | |
5378 { echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 | |
5379 echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6; } | |
5380 if test "${ac_cv_lib_m_sqrtf+set}" = set; then | |
5381 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5382 else | |
5383 ac_check_lib_save_LIBS=$LIBS | |
5384 LIBS="-lm $LIBS" | |
5385 cat >conftest.$ac_ext <<_ACEOF | |
5386 /* confdefs.h. */ | |
5387 _ACEOF | |
5388 cat confdefs.h >>conftest.$ac_ext | |
5389 cat >>conftest.$ac_ext <<_ACEOF | |
5390 /* end confdefs.h. */ | |
5391 | |
5392 /* Override any GCC internal prototype to avoid an error. | |
5393 Use char because int might match the return type of a GCC | |
5394 builtin and then its argument prototype would still apply. */ | |
5395 #ifdef __cplusplus | |
5396 extern "C" | |
5397 #endif | |
5398 char sqrtf (); | |
5399 int | |
5400 main () | |
5401 { | |
5402 return sqrtf (); | |
5403 ; | |
5404 return 0; | |
5405 } | |
5406 _ACEOF | |
5407 rm -f conftest.$ac_objext conftest$ac_exeext | |
5408 if { (ac_try="$ac_link" | |
5409 case "(($ac_try" in | |
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5411 *) ac_try_echo=$ac_try;; | |
5412 esac | |
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5414 (eval "$ac_link") 2>conftest.er1 | |
5415 ac_status=$? | |
5416 grep -v '^ *+' conftest.er1 >conftest.err | |
5417 rm -f conftest.er1 | |
5418 cat conftest.err >&5 | |
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5420 (exit $ac_status); } && { | |
5421 test -z "$ac_c_werror_flag" || | |
5422 test ! -s conftest.err | |
5423 } && test -s conftest$ac_exeext && | |
5424 $as_test_x conftest$ac_exeext; then | |
5425 ac_cv_lib_m_sqrtf=yes | |
5426 else | |
5427 echo "$as_me: failed program was:" >&5 | |
5428 sed 's/^/| /' conftest.$ac_ext >&5 | |
5429 | |
5430 ac_cv_lib_m_sqrtf=no | |
5431 fi | |
5432 | |
5433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5434 conftest$ac_exeext conftest.$ac_ext | |
5435 LIBS=$ac_check_lib_save_LIBS | |
5436 fi | |
5437 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 | |
5438 echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6; } | |
5439 if test $ac_cv_lib_m_sqrtf = yes; then | |
5440 cat >>confdefs.h <<_ACEOF | |
5441 #define HAVE_LIBM 1 | |
5442 _ACEOF | |
5443 | |
5444 LIBS="-lm $LIBS" | |
5445 | |
5446 fi | |
5447 | |
5448 | |
5449 # Checks for programs. | |
5450 #AC_PROG_CC | |
5451 | |
5452 # Checks for libraries. | |
5453 | |
5454 # Checks for header files. | |
5455 #AC_HEADER_STDC | |
5456 #AC_CHECK_HEADERS([fcntl.h float.h memory.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h]) | |
5457 | |
5458 # Checks for typedefs, structures, and compiler characteristics. | |
5459 #AC_C_CONST | |
5460 #AC_C_INLINE | |
5461 #AC_TYPE_INT64_T | |
5462 #AC_TYPE_SIZE_T | |
5463 #AC_HEADER_TIME | |
5464 #AC_HEADER_STDBOOL | |
5465 | |
5466 # Checks for library functions. | |
5467 #AC_PROG_GCC_TRADITIONAL | |
5468 #AC_FUNC_MALLOC | |
5469 #AC_FUNC_REALLOC | |
5470 #AC_FUNC_STRTOD | |
5471 #AC_CHECK_FUNCS([gettimeofday memmove memset pow strcasecmp strchr strdup strerror strncasecmp strrchr strtol]) | |
5472 | |
5473 cat >confcache <<\_ACEOF | |
5474 # This file is a shell script that caches the results of configure | |
5475 # tests run on this system so they can be shared between configure | |
5476 # scripts and configure runs, see configure's option --config-cache. | |
5477 # It is not useful on other systems. If it contains results you don't | |
5478 # want to keep, you may remove or edit it. | |
5479 # | |
5480 # config.status only pays attention to the cache file if you give it | |
5481 # the --recheck option to rerun configure. | |
5482 # | |
5483 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
5484 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5485 # following values. | |
5486 | |
5487 _ACEOF | |
5488 | |
5489 # The following way of writing the cache mishandles newlines in values, | |
5490 # but we know of no workaround that is simple, portable, and efficient. | |
5491 # So, we kill variables containing newlines. | |
5492 # Ultrix sh set writes to stderr and can't be redirected directly, | |
5493 # and sets the high bit in the cache file unless we assign to the vars. | |
5494 ( | |
5495 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5496 eval ac_val=\$$ac_var | |
5497 case $ac_val in #( | |
5498 *${as_nl}*) | |
5499 case $ac_var in #( | |
5500 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
5501 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
5502 esac | |
5503 case $ac_var in #( | |
5504 _ | IFS | as_nl) ;; #( | |
5505 *) $as_unset $ac_var ;; | |
5506 esac ;; | |
5507 esac | |
5508 done | |
5509 | |
5510 (set) 2>&1 | | |
5511 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
5512 *${as_nl}ac_space=\ *) | |
5513 # `set' does not quote correctly, so add quotes (double-quote | |
5514 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
5515 sed -n \ | |
5516 "s/'/'\\\\''/g; | |
5517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5518 ;; #( | |
5519 *) | |
5520 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
5522 ;; | |
5523 esac | | |
5524 sort | |
5525 ) | | |
5526 sed ' | |
5527 /^ac_cv_env_/b end | |
5528 t clear | |
5529 :clear | |
5530 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
5531 t end | |
5532 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
5533 :end' >>confcache | |
5534 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5535 if test -w "$cache_file"; then | |
5536 test "x$cache_file" != "x/dev/null" && | |
5537 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
5538 echo "$as_me: updating cache $cache_file" >&6;} | |
5539 cat confcache >$cache_file | |
5540 else | |
5541 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
5542 echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
5543 fi | |
5544 fi | |
5545 rm -f confcache | |
5546 | |
5547 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5548 # Let make expand exec_prefix. | |
5549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5550 | |
5551 DEFS=-DHAVE_CONFIG_H | |
5552 | |
5553 ac_libobjs= | |
5554 ac_ltlibobjs= | |
5555 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
5556 # 1. Remove the extension, and $U if already installed. | |
5557 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
5558 ac_i=`echo "$ac_i" | sed "$ac_script"` | |
5559 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
5560 # will be set to the directory where LIBOBJS objects are built. | |
5561 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5562 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
5563 done | |
5564 LIBOBJS=$ac_libobjs | |
5565 | |
5566 LTLIBOBJS=$ac_ltlibobjs | |
5567 | |
5568 | |
5569 | |
5570 : ${CONFIG_STATUS=./config.status} | |
5571 ac_clean_files_save=$ac_clean_files | |
5572 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
5574 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5575 cat >$CONFIG_STATUS <<_ACEOF | |
5576 #! $SHELL | |
5577 # Generated by $as_me. | |
5578 # Run this file to recreate the current configuration. | |
5579 # Compiler output produced by configure, useful for debugging | |
5580 # configure, is in config.log if it exists. | |
5581 | |
5582 debug=false | |
5583 ac_cs_recheck=false | |
5584 ac_cs_silent=false | |
5585 SHELL=\${CONFIG_SHELL-$SHELL} | |
5586 _ACEOF | |
5587 | |
5588 cat >>$CONFIG_STATUS <<\_ACEOF | |
5589 ## --------------------- ## | |
5590 ## M4sh Initialization. ## | |
5591 ## --------------------- ## | |
5592 | |
5593 # Be more Bourne compatible | |
5594 DUALCASE=1; export DUALCASE # for MKS sh | |
5595 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
5596 emulate sh | |
5597 NULLCMD=: | |
5598 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
5599 # is contrary to our usage. Disable this feature. | |
5600 alias -g '${1+"$@"}'='"$@"' | |
5601 setopt NO_GLOB_SUBST | |
5602 else | |
5603 case `(set -o) 2>/dev/null` in | |
5604 *posix*) set -o posix ;; | |
5605 esac | |
5606 | |
5607 fi | |
5608 | |
5609 | |
5610 | |
5611 | |
5612 # PATH needs CR | |
5613 # Avoid depending upon Character Ranges. | |
5614 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5615 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5616 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5617 as_cr_digits='0123456789' | |
5618 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5619 | |
5620 # The user is always right. | |
5621 if test "${PATH_SEPARATOR+set}" != set; then | |
5622 echo "#! /bin/sh" >conf$$.sh | |
5623 echo "exit 0" >>conf$$.sh | |
5624 chmod +x conf$$.sh | |
5625 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5626 PATH_SEPARATOR=';' | |
5627 else | |
5628 PATH_SEPARATOR=: | |
5629 fi | |
5630 rm -f conf$$.sh | |
5631 fi | |
5632 | |
5633 # Support unset when possible. | |
5634 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5635 as_unset=unset | |
5636 else | |
5637 as_unset=false | |
5638 fi | |
5639 | |
5640 | |
5641 # IFS | |
5642 # We need space, tab and new line, in precisely that order. Quoting is | |
5643 # there to prevent editors from complaining about space-tab. | |
5644 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
5645 # splitting by setting IFS to empty value.) | |
5646 as_nl=' | |
5647 ' | |
5648 IFS=" "" $as_nl" | |
5649 | |
5650 # Find who we are. Look in the path if we contain no directory separator. | |
5651 case $0 in | |
5652 *[\\/]* ) as_myself=$0 ;; | |
5653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5654 for as_dir in $PATH | |
5655 do | |
5656 IFS=$as_save_IFS | |
5657 test -z "$as_dir" && as_dir=. | |
5658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5659 done | |
5660 IFS=$as_save_IFS | |
5661 | |
5662 ;; | |
5663 esac | |
5664 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5665 # in which case we are not to be found in the path. | |
5666 if test "x$as_myself" = x; then | |
5667 as_myself=$0 | |
5668 fi | |
5669 if test ! -f "$as_myself"; then | |
5670 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
5671 { (exit 1); exit 1; } | |
5672 fi | |
5673 | |
5674 # Work around bugs in pre-3.0 UWIN ksh. | |
5675 for as_var in ENV MAIL MAILPATH | |
5676 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
5677 done | |
5678 PS1='$ ' | |
5679 PS2='> ' | |
5680 PS4='+ ' | |
5681 | |
5682 # NLS nuisances. | |
5683 for as_var in \ | |
5684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
5685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
5686 LC_TELEPHONE LC_TIME | |
5687 do | |
5688 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
5689 eval $as_var=C; export $as_var | |
5690 else | |
5691 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
5692 fi | |
5693 done | |
5694 | |
5695 # Required to use basename. | |
5696 if expr a : '\(a\)' >/dev/null 2>&1 && | |
5697 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5698 as_expr=expr | |
5699 else | |
5700 as_expr=false | |
5701 fi | |
5702 | |
5703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
5704 as_basename=basename | |
5705 else | |
5706 as_basename=false | |
5707 fi | |
5708 | |
5709 | |
5710 # Name of the executable. | |
5711 as_me=`$as_basename -- "$0" || | |
5712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
5713 X"$0" : 'X\(//\)$' \| \ | |
5714 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
5715 echo X/"$0" | | |
5716 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
5717 s//\1/ | |
5718 q | |
5719 } | |
5720 /^X\/\(\/\/\)$/{ | |
5721 s//\1/ | |
5722 q | |
5723 } | |
5724 /^X\/\(\/\).*/{ | |
5725 s//\1/ | |
5726 q | |
5727 } | |
5728 s/.*/./; q'` | |
5729 | |
5730 # CDPATH. | |
5731 $as_unset CDPATH | |
5732 | |
5733 | |
5734 | |
5735 as_lineno_1=$LINENO | |
5736 as_lineno_2=$LINENO | |
5737 test "x$as_lineno_1" != "x$as_lineno_2" && | |
5738 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
5739 | |
5740 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
5741 # uniformly replaced by the line number. The first 'sed' inserts a | |
5742 # line-number line after each line using $LINENO; the second 'sed' | |
5743 # does the real work. The second script uses 'N' to pair each | |
5744 # line-number line with the line containing $LINENO, and appends | |
5745 # trailing '-' during substitution so that $LINENO is not a special | |
5746 # case at line end. | |
5747 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
5748 # scripts with optimization help from Paolo Bonzini. Blame Lee | |
5749 # E. McMahon (1931-1989) for sed's syntax. :-) | |
5750 sed -n ' | |
5751 p | |
5752 /[$]LINENO/= | |
5753 ' <$as_myself | | |
5754 sed ' | |
5755 s/[$]LINENO.*/&-/ | |
5756 t lineno | |
5757 b | |
5758 :lineno | |
5759 N | |
5760 :loop | |
5761 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
5762 t loop | |
5763 s/-\n.*// | |
5764 ' >$as_me.lineno && | |
5765 chmod +x "$as_me.lineno" || | |
5766 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
5767 { (exit 1); exit 1; }; } | |
5768 | |
5769 # Don't try to exec as it changes $[0], causing all sort of problems | |
5770 # (the dirname of $[0] is not the place where we might find the | |
5771 # original and so on. Autoconf is especially sensitive to this). | |
5772 . "./$as_me.lineno" | |
5773 # Exit status is that of the last command. | |
5774 exit | |
5775 } | |
5776 | |
5777 | |
5778 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
5779 as_dirname=dirname | |
5780 else | |
5781 as_dirname=false | |
5782 fi | |
5783 | |
5784 ECHO_C= ECHO_N= ECHO_T= | |
5785 case `echo -n x` in | |
5786 -n*) | |
5787 case `echo 'x\c'` in | |
5788 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
5789 *) ECHO_C='\c';; | |
5790 esac;; | |
5791 *) | |
5792 ECHO_N='-n';; | |
5793 esac | |
5794 | |
5795 if expr a : '\(a\)' >/dev/null 2>&1 && | |
5796 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5797 as_expr=expr | |
5798 else | |
5799 as_expr=false | |
5800 fi | |
5801 | |
5802 rm -f conf$$ conf$$.exe conf$$.file | |
5803 if test -d conf$$.dir; then | |
5804 rm -f conf$$.dir/conf$$.file | |
5805 else | |
5806 rm -f conf$$.dir | |
5807 mkdir conf$$.dir | |
5808 fi | |
5809 echo >conf$$.file | |
5810 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5811 as_ln_s='ln -s' | |
5812 # ... but there are two gotchas: | |
5813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
5814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
5815 # In both cases, we have to default to `cp -p'. | |
5816 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
5817 as_ln_s='cp -p' | |
5818 elif ln conf$$.file conf$$ 2>/dev/null; then | |
5819 as_ln_s=ln | |
5820 else | |
5821 as_ln_s='cp -p' | |
5822 fi | |
5823 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
5824 rmdir conf$$.dir 2>/dev/null | |
5825 | |
5826 if mkdir -p . 2>/dev/null; then | |
5827 as_mkdir_p=: | |
5828 else | |
5829 test -d ./-p && rmdir ./-p | |
5830 as_mkdir_p=false | |
5831 fi | |
5832 | |
5833 if test -x / >/dev/null 2>&1; then | |
5834 as_test_x='test -x' | |
5835 else | |
5836 if ls -dL / >/dev/null 2>&1; then | |
5837 as_ls_L_option=L | |
5838 else | |
5839 as_ls_L_option= | |
5840 fi | |
5841 as_test_x=' | |
5842 eval sh -c '\'' | |
5843 if test -d "$1"; then | |
5844 test -d "$1/."; | |
5845 else | |
5846 case $1 in | |
5847 -*)set "./$1";; | |
5848 esac; | |
5849 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
5850 ???[sx]*):;;*)false;;esac;fi | |
5851 '\'' sh | |
5852 ' | |
5853 fi | |
5854 as_executable_p=$as_test_x | |
5855 | |
5856 # Sed expression to map a string onto a valid CPP name. | |
5857 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
5858 | |
5859 # Sed expression to map a string onto a valid variable name. | |
5860 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
5861 | |
5862 | |
5863 exec 6>&1 | |
5864 | |
5865 # Save the log message, to keep $[0] and so on meaningful, and to | |
5866 # report actual input values of CONFIG_FILES etc. instead of their | |
5867 # values after options handling. | |
5868 ac_log=" | |
5869 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was | |
5870 generated by GNU Autoconf 2.61. Invocation command line was | |
5871 | |
5872 CONFIG_FILES = $CONFIG_FILES | |
5873 CONFIG_HEADERS = $CONFIG_HEADERS | |
5874 CONFIG_LINKS = $CONFIG_LINKS | |
5875 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5876 $ $0 $@ | |
5877 | |
5878 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
5879 " | |
5880 | |
5881 _ACEOF | |
5882 | |
5883 cat >>$CONFIG_STATUS <<_ACEOF | |
5884 # Files that config.status was made for. | |
5885 config_headers="$ac_config_headers" | |
5886 | |
5887 _ACEOF | |
5888 | |
5889 cat >>$CONFIG_STATUS <<\_ACEOF | |
5890 ac_cs_usage="\ | |
5891 \`$as_me' instantiates files from templates according to the | |
5892 current configuration. | |
5893 | |
5894 Usage: $0 [OPTIONS] [FILE]... | |
5895 | |
5896 -h, --help print this help, then exit | |
5897 -V, --version print version number and configuration settings, then exit | |
5898 -q, --quiet do not print progress messages | |
5899 -d, --debug don't remove temporary files | |
5900 --recheck update $as_me by reconfiguring in the same conditions | |
5901 --header=FILE[:TEMPLATE] | |
5902 instantiate the configuration header FILE | |
5903 | |
5904 Configuration headers: | |
5905 $config_headers | |
5906 | |
5907 Report bugs to <bug-autoconf@gnu.org>." | |
5908 | |
5909 _ACEOF | |
5910 cat >>$CONFIG_STATUS <<_ACEOF | |
5911 ac_cs_version="\\ | |
5912 FULL-PACKAGE-NAME config.status VERSION | |
5913 configured by $0, generated by GNU Autoconf 2.61, | |
5914 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
5915 | |
5916 Copyright (C) 2006 Free Software Foundation, Inc. | |
5917 This config.status script is free software; the Free Software Foundation | |
5918 gives unlimited permission to copy, distribute and modify it." | |
5919 | |
5920 ac_pwd='$ac_pwd' | |
5921 srcdir='$srcdir' | |
5922 _ACEOF | |
5923 | |
5924 cat >>$CONFIG_STATUS <<\_ACEOF | |
5925 # If no file are specified by the user, then we need to provide default | |
5926 # value. By we need to know if files were specified by the user. | |
5927 ac_need_defaults=: | |
5928 while test $# != 0 | |
5929 do | |
5930 case $1 in | |
5931 --*=*) | |
5932 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
5933 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
5934 ac_shift=: | |
5935 ;; | |
5936 *) | |
5937 ac_option=$1 | |
5938 ac_optarg=$2 | |
5939 ac_shift=shift | |
5940 ;; | |
5941 esac | |
5942 | |
5943 case $ac_option in | |
5944 # Handling of the options. | |
5945 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
5946 ac_cs_recheck=: ;; | |
5947 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
5948 echo "$ac_cs_version"; exit ;; | |
5949 --debug | --debu | --deb | --de | --d | -d ) | |
5950 debug=: ;; | |
5951 --header | --heade | --head | --hea ) | |
5952 $ac_shift | |
5953 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
5954 ac_need_defaults=false;; | |
5955 --he | --h) | |
5956 # Conflict between --help and --header | |
5957 { echo "$as_me: error: ambiguous option: $1 | |
5958 Try \`$0 --help' for more information." >&2 | |
5959 { (exit 1); exit 1; }; };; | |
5960 --help | --hel | -h ) | |
5961 echo "$ac_cs_usage"; exit ;; | |
5962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
5963 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5964 ac_cs_silent=: ;; | |
5965 | |
5966 # This is an error. | |
5967 -*) { echo "$as_me: error: unrecognized option: $1 | |
5968 Try \`$0 --help' for more information." >&2 | |
5969 { (exit 1); exit 1; }; } ;; | |
5970 | |
5971 *) ac_config_targets="$ac_config_targets $1" | |
5972 ac_need_defaults=false ;; | |
5973 | |
5974 esac | |
5975 shift | |
5976 done | |
5977 | |
5978 ac_configure_extra_args= | |
5979 | |
5980 if $ac_cs_silent; then | |
5981 exec 6>/dev/null | |
5982 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5983 fi | |
5984 | |
5985 _ACEOF | |
5986 cat >>$CONFIG_STATUS <<_ACEOF | |
5987 if \$ac_cs_recheck; then | |
5988 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
5989 CONFIG_SHELL=$SHELL | |
5990 export CONFIG_SHELL | |
5991 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
5992 fi | |
5993 | |
5994 _ACEOF | |
5995 cat >>$CONFIG_STATUS <<\_ACEOF | |
5996 exec 5>>config.log | |
5997 { | |
5998 echo | |
5999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6000 ## Running $as_me. ## | |
6001 _ASBOX | |
6002 echo "$ac_log" | |
6003 } >&5 | |
6004 | |
6005 _ACEOF | |
6006 cat >>$CONFIG_STATUS <<_ACEOF | |
6007 _ACEOF | |
6008 | |
6009 cat >>$CONFIG_STATUS <<\_ACEOF | |
6010 | |
6011 # Handling of arguments. | |
6012 for ac_config_target in $ac_config_targets | |
6013 do | |
6014 case $ac_config_target in | |
6015 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
6016 | |
6017 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
6018 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
6019 { (exit 1); exit 1; }; };; | |
6020 esac | |
6021 done | |
6022 | |
6023 | |
6024 # If the user did not use the arguments to specify the items to instantiate, | |
6025 # then the envvar interface is used. Set only those that are not. | |
6026 # We use the long form for the default assignment because of an extremely | |
6027 # bizarre bug on SunOS 4.1.3. | |
6028 if $ac_need_defaults; then | |
6029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
6030 fi | |
6031 | |
6032 # Have a temporary directory for convenience. Make it in the build tree | |
6033 # simply because there is no reason against having it here, and in addition, | |
6034 # creating and moving files from /tmp can sometimes cause problems. | |
6035 # Hook for its removal unless debugging. | |
6036 # Note that there is a small window in which the directory will not be cleaned: | |
6037 # after its creation but before its name has been assigned to `$tmp'. | |
6038 $debug || | |
6039 { | |
6040 tmp= | |
6041 trap 'exit_status=$? | |
6042 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
6043 ' 0 | |
6044 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
6045 } | |
6046 # Create a (secure) tmp directory for tmp files. | |
6047 | |
6048 { | |
6049 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
6050 test -n "$tmp" && test -d "$tmp" | |
6051 } || | |
6052 { | |
6053 tmp=./conf$$-$RANDOM | |
6054 (umask 077 && mkdir "$tmp") | |
6055 } || | |
6056 { | |
6057 echo "$me: cannot create a temporary directory in ." >&2 | |
6058 { (exit 1); exit 1; } | |
6059 } | |
6060 | |
6061 | |
6062 for ac_tag in :H $CONFIG_HEADERS | |
6063 do | |
6064 case $ac_tag in | |
6065 :[FHLC]) ac_mode=$ac_tag; continue;; | |
6066 esac | |
6067 case $ac_mode$ac_tag in | |
6068 :[FHL]*:*);; | |
6069 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
6070 echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
6071 { (exit 1); exit 1; }; };; | |
6072 :[FH]-) ac_tag=-:-;; | |
6073 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6074 esac | |
6075 ac_save_IFS=$IFS | |
6076 IFS=: | |
6077 set x $ac_tag | |
6078 IFS=$ac_save_IFS | |
6079 shift | |
6080 ac_file=$1 | |
6081 shift | |
6082 | |
6083 case $ac_mode in | |
6084 :L) ac_source=$1;; | |
6085 :[FH]) | |
6086 ac_file_inputs= | |
6087 for ac_f | |
6088 do | |
6089 case $ac_f in | |
6090 -) ac_f="$tmp/stdin";; | |
6091 *) # Look for the file first in the build tree, then in the source tree | |
6092 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6093 # because $ac_f cannot contain `:'. | |
6094 test -f "$ac_f" || | |
6095 case $ac_f in | |
6096 [\\/$]*) false;; | |
6097 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6098 esac || | |
6099 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
6100 echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
6101 { (exit 1); exit 1; }; };; | |
6102 esac | |
6103 ac_file_inputs="$ac_file_inputs $ac_f" | |
6104 done | |
6105 | |
6106 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6107 # use $as_me), people would be surprised to read: | |
6108 # /* config.h. Generated by config.status. */ | |
6109 configure_input="Generated from "`IFS=: | |
6110 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
6111 if test x"$ac_file" != x-; then | |
6112 configure_input="$ac_file. $configure_input" | |
6113 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
6114 echo "$as_me: creating $ac_file" >&6;} | |
6115 fi | |
6116 | |
6117 case $ac_tag in | |
6118 *:-:* | *:-) cat >"$tmp/stdin";; | |
6119 esac | |
6120 ;; | |
6121 esac | |
6122 | |
6123 ac_dir=`$as_dirname -- "$ac_file" || | |
6124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6125 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6126 X"$ac_file" : 'X\(//\)$' \| \ | |
6127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
6128 echo X"$ac_file" | | |
6129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6130 s//\1/ | |
6131 q | |
6132 } | |
6133 /^X\(\/\/\)[^/].*/{ | |
6134 s//\1/ | |
6135 q | |
6136 } | |
6137 /^X\(\/\/\)$/{ | |
6138 s//\1/ | |
6139 q | |
6140 } | |
6141 /^X\(\/\).*/{ | |
6142 s//\1/ | |
6143 q | |
6144 } | |
6145 s/.*/./; q'` | |
6146 { as_dir="$ac_dir" | |
6147 case $as_dir in #( | |
6148 -*) as_dir=./$as_dir;; | |
6149 esac | |
6150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6151 as_dirs= | |
6152 while :; do | |
6153 case $as_dir in #( | |
6154 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
6155 *) as_qdir=$as_dir;; | |
6156 esac | |
6157 as_dirs="'$as_qdir' $as_dirs" | |
6158 as_dir=`$as_dirname -- "$as_dir" || | |
6159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6160 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6161 X"$as_dir" : 'X\(//\)$' \| \ | |
6162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6163 echo X"$as_dir" | | |
6164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6165 s//\1/ | |
6166 q | |
6167 } | |
6168 /^X\(\/\/\)[^/].*/{ | |
6169 s//\1/ | |
6170 q | |
6171 } | |
6172 /^X\(\/\/\)$/{ | |
6173 s//\1/ | |
6174 q | |
6175 } | |
6176 /^X\(\/\).*/{ | |
6177 s//\1/ | |
6178 q | |
6179 } | |
6180 s/.*/./; q'` | |
6181 test -d "$as_dir" && break | |
6182 done | |
6183 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
6184 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
6185 echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6186 { (exit 1); exit 1; }; }; } | |
6187 ac_builddir=. | |
6188 | |
6189 case "$ac_dir" in | |
6190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6191 *) | |
6192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
6193 # A ".." for each directory in $ac_dir_suffix. | |
6194 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
6195 case $ac_top_builddir_sub in | |
6196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
6198 esac ;; | |
6199 esac | |
6200 ac_abs_top_builddir=$ac_pwd | |
6201 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
6202 # for backward compatibility: | |
6203 ac_top_builddir=$ac_top_build_prefix | |
6204 | |
6205 case $srcdir in | |
6206 .) # We are building in place. | |
6207 ac_srcdir=. | |
6208 ac_top_srcdir=$ac_top_builddir_sub | |
6209 ac_abs_top_srcdir=$ac_pwd ;; | |
6210 [\\/]* | ?:[\\/]* ) # Absolute name. | |
6211 ac_srcdir=$srcdir$ac_dir_suffix; | |
6212 ac_top_srcdir=$srcdir | |
6213 ac_abs_top_srcdir=$srcdir ;; | |
6214 *) # Relative name. | |
6215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
6216 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
6217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
6218 esac | |
6219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
6220 | |
6221 | |
6222 case $ac_mode in | |
6223 | |
6224 :H) | |
6225 # | |
6226 # CONFIG_HEADER | |
6227 # | |
6228 _ACEOF | |
6229 | |
6230 # Transform confdefs.h into a sed script `conftest.defines', that | |
6231 # substitutes the proper values into config.h.in to produce config.h. | |
6232 rm -f conftest.defines conftest.tail | |
6233 # First, append a space to every undef/define line, to ease matching. | |
6234 echo 's/$/ /' >conftest.defines | |
6235 # Then, protect against being on the right side of a sed subst, or in | |
6236 # an unquoted here document, in config.status. If some macros were | |
6237 # called several times there might be several #defines for the same | |
6238 # symbol, which is useless. But do not sort them, since the last | |
6239 # AC_DEFINE must be honored. | |
6240 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6241 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
6242 # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
6243 # PARAMS is the parameter list in the macro definition--in most cases, it's | |
6244 # just an empty string. | |
6245 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
6246 ac_dB='\\)[ (].*,\\1define\\2' | |
6247 ac_dC=' ' | |
6248 ac_dD=' ,' | |
6249 | |
6250 uniq confdefs.h | | |
6251 sed -n ' | |
6252 t rset | |
6253 :rset | |
6254 s/^[ ]*#[ ]*define[ ][ ]*// | |
6255 t ok | |
6256 d | |
6257 :ok | |
6258 s/[\\&,]/\\&/g | |
6259 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
6260 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
6261 ' >>conftest.defines | |
6262 | |
6263 # Remove the space that was appended to ease matching. | |
6264 # Then replace #undef with comments. This is necessary, for | |
6265 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
6266 # on some systems where configure will not decide to define it. | |
6267 # (The regexp can be short, since the line contains either #define or #undef.) | |
6268 echo 's/ $// | |
6269 s,^[ #]*u.*,/* & */,' >>conftest.defines | |
6270 | |
6271 # Break up conftest.defines: | |
6272 ac_max_sed_lines=50 | |
6273 | |
6274 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
6275 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
6276 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
6277 # et cetera. | |
6278 ac_in='$ac_file_inputs' | |
6279 ac_out='"$tmp/out1"' | |
6280 ac_nxt='"$tmp/out2"' | |
6281 | |
6282 while : | |
6283 do | |
6284 # Write a here document: | |
6285 cat >>$CONFIG_STATUS <<_ACEOF | |
6286 # First, check the format of the line: | |
6287 cat >"\$tmp/defines.sed" <<\\CEOF | |
6288 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
6289 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
6290 b | |
6291 :def | |
6292 _ACEOF | |
6293 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
6294 echo 'CEOF | |
6295 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | |
6296 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
6297 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
6298 grep . conftest.tail >/dev/null || break | |
6299 rm -f conftest.defines | |
6300 mv conftest.tail conftest.defines | |
6301 done | |
6302 rm -f conftest.defines conftest.tail | |
6303 | |
6304 echo "ac_result=$ac_in" >>$CONFIG_STATUS | |
6305 cat >>$CONFIG_STATUS <<\_ACEOF | |
6306 if test x"$ac_file" != x-; then | |
6307 echo "/* $configure_input */" >"$tmp/config.h" | |
6308 cat "$ac_result" >>"$tmp/config.h" | |
6309 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
6310 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
6311 echo "$as_me: $ac_file is unchanged" >&6;} | |
6312 else | |
6313 rm -f $ac_file | |
6314 mv "$tmp/config.h" $ac_file | |
6315 fi | |
6316 else | |
6317 echo "/* $configure_input */" | |
6318 cat "$ac_result" | |
6319 fi | |
6320 rm -f "$tmp/out12" | |
6321 ;; | |
6322 | |
6323 | |
6324 esac | |
6325 | |
6326 done # for ac_tag | |
6327 | |
6328 | |
6329 { (exit 0); exit 0; } | |
6330 _ACEOF | |
6331 chmod +x $CONFIG_STATUS | |
6332 ac_clean_files=$ac_clean_files_save | |
6333 | |
6334 | |
6335 # configure is writing to config.log, and then calls config.status. | |
6336 # config.status does its own redirection, appending to config.log. | |
6337 # Unfortunately, on DOS this fails, as config.log is still kept open | |
6338 # by configure, so config.status won't be able to write to it; its | |
6339 # output is simply discarded. So we exec the FD to /dev/null, | |
6340 # effectively closing config.log, so it can be properly (re)opened and | |
6341 # appended to by config.status. When coming back to configure, we | |
6342 # need to make the FD available again. | |
6343 if test "$no_create" != yes; then | |
6344 ac_cs_success=: | |
6345 ac_config_status_args= | |
6346 test "$silent" = yes && | |
6347 ac_config_status_args="$ac_config_status_args --quiet" | |
6348 exec 5>/dev/null | |
6349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6350 exec 5>>config.log | |
6351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6352 # would make configure fail if this is the last instruction. | |
6353 $ac_cs_success || { (exit 1); exit 1; } | |
6354 fi | |
6355 |